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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var tN,f_H,ME5,R3,Yv,hTs,Lg,xv,BR,Fe,RTe,VEv,rB,Y5R,mrR,pg,Ogv,j3B,ZgT,l_R,Lse,xrg,zTR,Ksb,DrR,nvv,m_,ue3,Zh,a_R,Lr,PHR,xg,rh,CHe,Ev3,an,Po,cNb,kbg,TBH,co,q5_,fhR,HrR,tvN,wRT,A9,hZB,y9g,OrH,WA,gg_,Ihs,Sb_,dTH,jnB,$5,mT3,Y5,$Tb,W_3,xTB,zZR,F_E,Ux,DTv,K_v,ogv,nge,por,uaE,ahv,CCT,Egb,Xob,brT,kHB,H0N,tpb,v5r,aF,Mp3,YxB,mxR,WWB,Sxr,g5e,dxr,Irb,Ex,Qne,Nx,cA,AW,jFT,bt,JWr,sFT,Z05,qx,lrv,UxR,LWv,BiB,xxR,zwT,FWR,rWs,Th,Dxs,n5R,hD,QF5,Ghr,VO,Nis,AWe,ubN,b0H,khs,Tiv,MVe,fM_,Rqv,yDg,Y43,$Ag,WLB,dAe,lME,zq5,DA_,
aME,Bv,G1s,EUs,Nev,no,po,uD,AD,iD,kU,wve,HS3,vuT,hS_,VaH,yfg,Yu,YqR,$u,Wj,gU,Id,$eE,WhR,OS5,gu3,IcN,deH,jdH,sdN,ZSb,lcB,sq,ja,UeR,eSR,Lhg,BUB,xeB,zSv,Fhr,rfH,zo,FP,rU,KS,od,Deb,nS,nu_,Pk3,Q1,GoT,CkH,Eug,ad,NUE,cf3,XjH,Pj,iSN,Eq,wjT,qqR,cj,HdH,fRv,vOv,tFH,MFH,hgs,bk,RgE,VFs,ik,yTv,YZ_,ku,To,wU,qe,md5,WS3,$dv,fd,gO3,IR_,SZ5,vQ,Md,hT,Rl,VA,yA,dds,jlg,ZdB,JTH,lR3,Ud3,eg_,LS_,xde,Bre,zgv,FSv,rTR,KS_,WQ,Dds,oOH,SF,nOT,jF,sZ,pQR,aRs,PhR,GfE,EOe,Nre,cTv,idg,kf5,Tr5,wQB,qZg,fPT,H93,hd_,lh,Rdb,Vzs,yxe,Y1E,
mjg,$jR,O9R,LvT,xjR,BAE,rxv,KvH,DR,Djv,p_B,aPN,PSv,GOb,CSR,ElN,NAv,cxT,X_s,b9v,i9H,QN3,kOr,TA_,w_T,q1E,ftR,H4g,vmN,t7s,M7g,ymr,RiE,$kb,YgR,mke,gmv,Itr,Sgv,W7E,jhT,O43,Z4H,kO,JmH,Tf,qd,ltb,eig,L7N,zi3,atg,rmT,F7r,DkR,nme,K7r,cmb,Cgg,XMN,Amg,b4g,i4E,kL3,wMs,Tpb,qg5,fpN,Hcg,vk5,MKR,RpE,VKB,yre,mwB,YSb,lpv,tx,Uwb,LZb,xwv,BuR,zpN,FZ_,KZ5,DwE,okv,mv,$l,nkB,Gev,IN,Sz,cre,Arb,t$b,ZP,RvR,V$R,$JN,Yks,mJb,L9,WpH,r8g,DJ5,oZe,nZe,phg,Q2N,umg,ayR,GEv,CdR,NH3,EZR,A8E,n9,aN,ilN,kEN,TH_,whE,qkB,fUb,vXR,MkT,tk_,TO,
qj,gXE,tm,ZNE,JaN,Mk,URR,lUB,DRR,oXe,nX3,QPs,Gj_,EXe,Nks,cag,X8v,bNE,kjT,Tk5,yL,q0b,vFT,tNR,MNr,hlN,VNR,Hbs,w83,RlN,m7,YPT,Ob_,$$v,Og,IKv,d$s,jON,sOT,Zbe,dp,J7r,U$E,lKB,elR,x$R,Zt,oFR,pke,u7g,P$3,L4,C$5,zL,rp,FT,Xkb,GNe,A7H,n4,T8e,PM,GL,fxe,t63,hLR,RLg,V6B,C4,yMs,Eg,Yo3,$VT,WuR,O1N,g7H,Sos,cM,dVs,jV_,Am,km,JMv,lxR,UV3,eLe,BTg,zLR,rM_,KuR,axR,PKv,pbT,CKE,E73,cM_,VP,Yk,$k,i1N,k5R,OS,TTB,wbs,qov,fFr,v1s,tqg,MqT,ha5,HPb,Ras,SK,yg5,mCr,du,YeN,$CN,VqT,Wgv,sS,g1_,IF5,dC3,jWs,ZPR,sWb,Jg5,eaE,lFR,xCH,n1R,
p7v,ujH,GPT,Py3,aFb,CyR,NIR,X7s,cge,bPs,ze,kPB,TIe,w7B,qer,MGs,RFT,hFR,VGe,yXT,Dp,YjR,m65,WbT,gE5,d6B,srv,jrv,fl,ZQg,OQ3,BjE,Fbb,rX3,Kb5,R2,D6H,nE5,ul3,GiT,P0g,cX3,XV_,AXH,bQr,ki5,HYH,Tj3,qje,fq5,vTR,tBB,hjg,MB5,VBR,RjE,j$,ydb,mOg,$OR,IqR,xZ,Bh,SF_,dOR,zE,Jdb,Dy,o2,nl,LOE,pl,zj_,a2,FOg,rdB,KOR,DOr,Cl,oTR,nT5,paT,uGb,PAT,ETR,cdH,wH,Xas,AdE,bYB,iYR,kZR,TL5,was,qFr,H8,vzH,tcN,Mc3,h9v,R9g,Vc_,yte,Y6v,mSr,$S3,WNE,OGH,gzT,$X,xSE,BZe,W8,O0,gk,z9e,FNH,rtE,KNg,DSr,ozT,nzb,PYE,GDb,CYN,EzN,NZN,jk,ZU,Ja,l7,xX,
B8,zj,XSe,rk,bG3,KN,iGR,kDr,DU,TZR,wSE,q6H,yJs,mu3,IwH,sKN,jK_,YER,Z25,Uue,uIe,FFr,EVb,KFB,CJN,NXe,aP,XB5,Gj,b2N,i2e,TXT,wBH,qEH,Hub,NR,tW5,MW5,hUr,RUN,VWH,yVg,YVs,v6s,Wxe,OuB,g6E,XB,Zug,JV5,su3,UE5,eUE,xE5,B9b,Lxr,n6e,QuR,aIR,GKg,t7,AVb,XKv,wKR,fEs,HVH,vKb,t2e,M2s,h0R,Wk,gKg,SRg,W3R,$YR,IET,V2H,jme,F3b,JEb,lEb,UYe,PEg,CET,aE5,bVr,uWB,R0r,AEr,ZVN,z0r,GI3,dYT,YR5,yEv,mY5,OVH,QmT,F7,yjR,mlr,$lR,WVB,OTb,lOT,zIr,FVE,GN,KVR,n$T,aO_,uss,GVr,CFR,N33,Xxg,cjH,AjT,q$,bT5,iTH,kVe,f1,tOR,vdb,HpN,VOB,MOr,yY_,
R7E,vb,Ywr,Opr,$iH,W25,I4s,jcN,scR,l4R,Ui5,e7b,xiT,hM,z7E,K2E,F2R,DiH,Qcb,uXb,G7E,EdN,mu,$7,AYH,bpT,Wb,Oo,ipB,gT,IV,k7B,S6,Ty5,dT,wsN,qwg,so,fb5,HAg,vfg,t4T,M4s,RHN,hHs,yQ_,$NR,mNB,Wms,OAR,V4r,gfR,dNe,SHr,YHr,j0H,s0B,L1,ZAe,lbs,JQ_,UNe,eHe,xNg,LmT,Bsg,Bb,Fms,rQE,zHN,DN_,ofs,nfH,abs,CLr,AQN,Tsg,z5,fVT,H8B,F2,v__,p1,QI,yZe,oV,Pb,YUR,myT,W9R,O8T,IV5,dyr,jpN,spE,Z8_,Uyb,zVr,xy3,lV5,F9E,rZe,NV,BPs,K9B,AM,DyN,o_e,n_R,pIv,PTH,QpE,aVT,NPv,cZs,kXR,i8E,qUH,hKB,RK5,yhN,mtH,$tT,O6H,g0e,IDe,dt_,jHN,sHe,lDH,xtT,
BQ5,UtT,FPR,Dt3,KP5,zKb,o0N,p4N,QHe,u_g,aDE,PsT,hg,Ve,mg,W7,E0e,NQN,X4R,i6e,Oe,gI,k_N,IW,q$v,feb,Hh5,dI,R83,mcB,WQ_,OhB,gRb,Ie5,SBv,sS5,se,Zhg,UcN,ZF,e85,BmR,z8v,FQb,xcb,pUR,aee,QSH,Pzs,ERs,ceb,Aeg,TmB,kUN,HZe,LP,vJ3,tdR,x1,MdR,B7,hQH,RQE,Vdg,Yvg,ykB,m73,$7r,W6g,OZR,ZZB,lYe,eQR,U7s,d7H,IYN,x7g,zQs,oJE,nJN,u4b,NKH,XCs,KP,AkT,iZH,kMT,wCN,v4H,hzR,yA_,YTE,mge,$g3,STB,WcB,ZRH,JA5,lBB,ez5,nP,Lcg,B_3,zzN,Fcb,rAb,Kce,Dg3,o4s,pDR,QQN,aW,uQe,aBs,GCv,GP,PbE,E4b,AAs,NC,bR5,iRR,kCH,qTs,fNv,T_3,vav,Rug,VhE,yq_,
k1,Y33,OKg,gav,fQ,dLN,INs,S3_,ZKR,JqR,lNH,xLg,FA5,zuH,BgB,rqR,DLb,oag,aNR,naR,PeT,CeE,GsE,bKR,TgN,q3R,H33,hRR,W4E,pQ,g3E,jqR,Z3N,or,N6,x_3,rHN,F4b,D_5,o3b,pw3,n3v,QqT,uyr,cV,SE5,BS_,K4N,zRv,CQ,GAs,CpT,E3g,NST,cHR,XwE,AHs,b3T,va,i3R,kAB,TS5,wws,q83,R5,fk5,tA3,hYR,RY5,OvR,Ikv,SpR,dQR,sfv,Zve,jB,lkv,UQr,eYr,L5s,xQ5,BC_,F5N,K5E,oWv,nWv,G33,akB,CP5,ccR,Xdv,LY,AcR,bvR,iv_,wd_,f7H,qp3,vPR,M0_,FG,R4r,V0E,h4R,yG3,YI_,$IT,OOg,WEr,gPH,mIb,I7v,SIR,dIH,jX3,sX5,ZO_,JGH,l7B,UIR,xIR,LEB,Bog,FER,z45,rL,rGv,oPR,uzH,
KEe,GuR,C3B,EP3,No3,AGe,f5H,HMg,tDT,MDR,NO,ypb,WHs,I5v,ca,sjs,jjH,ZMR,bA,JpE,l5E,UBb,LHB,xBe,B4E,zPE,rpg,KHs,jMe,u9E,SLR,ZWs,sMv,J$E,lsg,e53,x8R,z5v,r$H,D8v,EpT,Xpe,bWR,iWs,k$b,TtN,wp_,fuv,Hms,M5r,hBs,RBb,V5e,y_B,Yhr,mWR,$W_,gIv,jiE,VS,yS,Yz,mN,siB,O6,J_v,r_R,Qiv,nIE,qhs,ffE,HXv,UWe,Fye,xWr,tUe,MUr,hf3,DWb,VUs,YsT,$2N,g8E,IfE,xz,FE,rZ,lfv,J3N,x25,BYr,Qtb,afg,GQb,C5B,c3e,A3R,X5e,kQ5,w5s,hOg,tYN,fje,MYT,H5H,RO_,mvR,XE,sYE,Sie,Jz3,lje,eOB,LaH,bY,xvE,FaT,Kav,DvN,nDR,oDb,TD,G6v,tJ,EDR,Nq3,hJ,czH,XiN,Azs,
b5g,i5e,k65,TqR,wiv,qiH,f1s,H_E,vMs,tl_,Mle,h2s,RK,R25,VlE,yog,Y_B,m35,$3H,WdN,O_B,gMH,I1N,S_R,d3R,ys,se_,Jo_,U3g,x3b,FdR,roB,Kdv,oMe,pOr,Qer,uCs,dX,EMT,GgT,NzB,coR,XOb,i_b,kgb,TzB,q_v,FI,Hk3,BB,tu_,Mu3,Dw,hhb,RhT,Vub,y1e,n2,We_,gCN,s$v,j$H,J1R,l2R,C2,UUb,ehr,xUR,zhN,FeH,Ke3,DUN,B2R,oCv,a2v,ECH,N2s,EE,c13,XcT,T2B,A1_,ikR,kqT,tQN,qJv,MQ5,R3b,ynB,YW3,mmE,$m_,Wre,Ofg,Izb,SWe,dme,jke,sk5,Jns,UmH,xmv,rn5,oxe,pJb,az3,kV,Plb,G95,Cl_,ExN,NFE,XJN,AnR,bfH,if3,k9N,TFB,wJH,qWE,fvN,HL5,vcs,MXs,tXE,VXv,YtB,qu,
mzb,OLg,WIT,StT,dzN,jIR,ZLB,UzH,xzB,LI3,lv5,FI_,zAv,ncR,rs5,ME,Dz_,CUv,uYH,avR,PUN,Gyg,EcT,csB,Nv_,hV,Ru,wTH,AsE,TvH,kyE,bLs,iLH,HB5,teR,h$s,MeE,Yc_,yPR,$nb,gbE,IHN,OBT,Scg,saN,ja_,JPT,e$H,OV,L1b,xnR,F15,nbH,GmR,Iu,Ebv,APv,T5R,kmR,bBH,iBs,ZI,Hqe,wrs,qcE,v9v,MJr,tJs,VJr,yBR,mpR,$pH,Wzb,OqH,g9N,SOv,dpR,ou,sUs,Zqs,e_5,Lzr,au,xp5,z_g,u8b,cK,Dpb,QUR,o9R,n95,CoN,Gtr,Xl5,E9b,ABb,bqE,AV,ktE,Twr,wlT,iqg,k6,qOr,bV,toR,maE,$aB,WMR,Oer,gAr,I$5,szs,dag,jzR,S2b,J25,ekg,BGT,zkE,r2H,oAg,KM5,DaB,nAH,Qz_,uNb,a$r,PBs,
Gc3,CBs,NG5,MY,XYe,ier,beB,TGe,kce,wYR,q23,hE,vGE,OiH,$G_,SlT,dGg,UG3,eNg,LTb,xGR,Bl_,zNb,KTr,DGs,oG5,p0b,QRT,utv,j2,CRN,GdR,PRb,aA5,Nle,ART,cRb,iiH,kdE,TlN,w0b,tbR,qle,fLT,HjN,MbE,hbR,RbH,vSg,lE,Ym3,$s3,msR,e2,OjN,gS5,ILr,WYe,SmT,dsR,jTs,sTb,Zje,lLe,Uss,ebB,LYv,zbB,Bar,oSe,xse,LV,nSB,FY3,DsR,uvT,aLs,POg,GvE,COR,ESR,Nab,cbR,Xqv,Abs,bjB,kvT,TaH,wqH,f35,vwT,Mne,RJ3,$bR,Yue,mbT,yFR,Vnr,WiR,ODH,gwE,I3B,am,j6H,s6v,ZDT,JFR,l3v,Ubs,zJb,LiE,eJe,xbR,PQB,uKN,BJg,Q6s,AFR,bD3,iDs,k8r,TJb,wWR,quR,f0T,tSv,hcb,
VSe,YXT,m1E,$13,I0E,gee,SX5,jAs,Rs,JiR,l0e,U1r,ecR,y4,Y$,Bdg,rib,QAE,Gze,Cu5,EeN,Nds,ciE,X$v,bas,kzN,iaB,TdR,qXs,fmH,H7R,vLs,t1E,M1b,Is,hx5,Wlg,O7_,YDR,ySe,$X_,mXb,jwR,swr,Z7E,JSB,lmE,UXR,xX3,exH,Llv,pPR,Qwr,urR,GY_,Cf_,amB,Pfv,kYR,wP_,fJE,vhb,MyH,RnN,mMN,$Mb,WC_,IJE,ghR,OJv,SyB,dMg,sxB,ZJr,JL5,lJv,UM5,enN,xME,Bnv,zng,FCr,rL5,KC_,nhE,pg3,uVB,PGH,aJ5,G4s,Bx,CGb,EhT,NnN,cLr,iJ3,bJR,k4v,Tnr,wgT,qyR,vHb,MTH,hob,Ros,VT3,yOR,YNR,mfs,$fN,WjR,Oxb,Iob,gHg,SNH,dfv,joN,sob,ZxR,JO5,loR,UfR,Q4,LjE,xfs,zoE,FjR,
rOe,Kjr,Dfs,oHR,p9H,QoT,aoE,GTs,EHe,AOT,cO5,N0s,X9E,bxs,ixB,kTb,qNR,f83,HFR,vQ3,M85,h6H,R6H,yK3,V8s,YMH,m5R,$5B,gQ5,I8R,SMs,d55,j7R,s7B,l8g,U5R,k$,FkR,rKB,D5E,pme,nQ5,Q7v,uSg,TV,ql,P6s,Gpb,vs,tY,cKT,C6E,EQT,bFR,iFE,kpr,Tf3,HHb,tMe,MMB,hEs,REN,VMH,YrB,mH_,$Hg,Ww_,OH5,gtR,Idv,Rc,Srs,dHR,yp,jDv,sDN,ZHb,JCe,ldb,UHT,$d,Ws,eEr,LwR,Ow,xHT,BNb,zEb,FwE,Kw5,DHg,ntv,P1H,ad_,uhe,Gn5,C1R,bHN,cCs,Xze,NN5,ACE,Ic,TN3,wzB,qr5,fWT,HCv,twT,hG5,yws,WXe,mDe,SO,YYB,dDb,sCe,dy,ZC5,Jwr,lWg,eGH,LXB,xDR,BxE,FXv,rw3,KXR,oYT,
nY3,QCr,u5g,EY_,C__,cwR,XFg,Txg,wFR,qYs,fXv,tt5,Rte,Uw,eO,Vtr,yUb,YaE,mh5,$he,OwB,gBB,IX_,SaT,jBN,sBH,Zwb,Lp,JUT,lXB,L0N,xhb,xd,Bs,F0T,Bc_,DhH,rUH,oBB,pXB,Kp,QBB,ufT,Gkr,EB3,D4,cUb,XXe,AUv,bw3,iws,kk5,TcN,HIs,vqg,h1H,tPE,MP5,R1R,m0T,VPE,YC5,$0b,WtB,OIR,SCE,d0b,jge,ZIR,J6B,BOB,x03,oq_,Qgr,Cp,uRB,epR,aiT,PrN,Crb,c6R,XEb,qCB,f9N,Hse,vyT,tCe,MCb,RXB,VCv,YGv,$Fv,yuN,mFB,OsN,WRH,I9v,j4R,SG_,s4g,ZsB,JuH,l9r,UFe,eXR,xFH,LRv,rur,oye,KR3,ny5,pZ5,Q4B,kd,u0g,a9B,wy,GJr,P2g,C2_,Eyv,cuH,XZH,bsg,isR,kJr,TEv,wZ3,
HyE,tis,RrN,hrv,Vib,yyH,$og,Jyr,Ig_,Uor,er_,xos,BDR,KKg,Dov,orB,nr3,pNg,QZe,uZb,agv,C9H,ErN,NDs,cyR,XNN,AyR,byR,krR,qfs,fS_,HUN,vnT,t_e,M_5,hD_,ylN,V_v,WBR,OUe,gnR,ISv,SnR,j_E,dPH,ZUB,LBE,rlv,zDR,KBT,DP_,onB,puR,j4,u6s,lL,PW_,CWN,Env,bUE,kxe,qnN,HnB,vj5,M9b,he3,Ree,y0e,m4R,$4r,Ong,SdB,IG5,gj_,KA,jLR,d4e,sLb,Znr,J03,lG5,U4H,ee3,LDR,BRr,zeH,FDb,r0v,KD_,D4N,oj5,nj_,peE,upv,aG_,A0R,bnv,in5,TRg,weE,qd3,v23,a0,y4v,Y9s,mZb,$ZT,Wfs,P1,GB,wA,CA,NN,ZtR,UZ3,LfH,eCE,XL,xZR,BVE,zC5;
_.vR=function(f,H){if(Error.captureStackTrace)Error.captureStackTrace(this,_.vR);else{var v=Error().stack;v&&(this.stack=v)}f&&(this.message=String(f));H!==void 0&&(this.cause=H)};
tN=function(){throw Error("E");};
f_H=function(f,H){H=String.fromCharCode.apply(null,H);return f==null?H:f+H};
ME5=function(f){var H=!1;H=H===void 0?!1:H;if(HgR){if(H&&(vvN?!f.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(f)))throw Error("F");f=(tEH||(tEH=new TextEncoder)).encode(f)}else{for(var v=0,t=new Uint8Array(3*f.length),M=0;M<f.length;M++){var h=f.charCodeAt(M);if(h<128)t[v++]=h;else{if(h<2048)t[v++]=h>>6|192;else{if(h>=55296&&h<=57343){if(h<=56319&&M<f.length){var y=f.charCodeAt(++M);if(y>=56320&&y<=57343){h=(h-55296)*1024+y-56320+65536;t[v++]=h>>18|
240;t[v++]=h>>12&63|128;t[v++]=h>>6&63|128;t[v++]=h&63|128;continue}else M--}if(H)throw Error("F");h=65533}t[v++]=h>>12|224;t[v++]=h>>6&63|128}t[v++]=h&63|128}}f=v===t.length?t:t.subarray(0,v)}return f};
R3=function(f){_.Mr.setTimeout(function(){throw f;},0)};
_.VR=function(f,H){return f.lastIndexOf(H,0)==0};
Yv=function(f,H){var v=f.length-H.length;return v>=0&&f.indexOf(H,v)==v};
_.ms=function(f){return/^[\s\xa0]*$/.test(f)};
_.$v=function(f,H){return f.indexOf(H)!=-1};
_.WR=function(f,H){return _.$v(f.toLowerCase(),H.toLowerCase())};
_.SE=function(f,H){var v=0;f=I3(String(f)).split(".");H=I3(String(H)).split(".");for(var t=Math.max(f.length,H.length),M=0;v==0&&M<t;M++){var h=f[M]||"",y=H[M]||"";do{h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];y=/(\d*)(\D*)(.*)/.exec(y)||["","","",""];if(h[0].length==0&&y[0].length==0)break;v=hTs(h[1].length==0?0:parseInt(h[1],10),y[1].length==0?0:parseInt(y[1],10))||hTs(h[2].length==0,y[2].length==0)||hTs(h[2],y[2]);h=h[3];y=y[3]}while(v==0)}return v};
hTs=function(f,H){return f<H?-1:f>H?1:0};
_.jE=function(){var f=_.Mr.navigator;return f&&(f=f.userAgent)?f:""};
Lg=function(f){if(!Z_||!JN)return!1;for(var H=0;H<JN.brands.length;H++){var v=JN.brands[H].brand;if(v&&_.$v(v,f))return!0}return!1};
xv=function(f){return _.$v(_.jE(),f)};
BR=function(){return Z_?!!JN&&JN.brands.length>0:!1};
Fe=function(){return BR()?!1:xv("Opera")};
RTe=function(){return BR()?!1:xv("Trident")||xv("MSIE")};
VEv=function(){return BR()?Lg("Microsoft Edge"):xv("Edg/")};
rB=function(){return xv("Firefox")||xv("FxiOS")};
_.o3=function(){return xv("Safari")&&!(_.Kg()||(BR()?0:xv("Coast"))||Fe()||(BR()?0:xv("Edge"))||VEv()||(BR()?Lg("Opera"):xv("OPR"))||rB()||xv("Silk")||xv("Android"))};
_.Kg=function(){return BR()?Lg("Chromium"):(xv("Chrome")||xv("CriOS"))&&!(BR()?0:xv("Edge"))||xv("Silk")};
_.yNE=function(){return xv("Android")&&!(_.Kg()||rB()||Fe()||xv("Silk"))};
Y5R=function(f){var H={};f.forEach(function(v){H[v[0]]=v[1]});
return function(v){return H[v.find(function(t){return t in H})]||""}};
mrR=function(f){var H=_.jE();if(f==="Internet Explorer"){if(RTe())if((f=/rv: *([\d\.]*)/.exec(H))&&f[1])H=f[1];else{f="";var v=/MSIE +([\d\.]+)/.exec(H);if(v&&v[1])if(H=/Trident\/(\d.\d)/.exec(H),v[1]=="7.0")if(H&&H[1])switch(H[1]){case "4.0":f="8.0";break;case "5.0":f="9.0";break;case "6.0":f="10.0";break;case "7.0":f="11.0"}else f="7.0";else f=v[1];H=f}else H="";return H}var t=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");v=[];for(var M;M=t.exec(H);)v.push([M[1],M[2],M[3]||void 0]);
H=Y5R(v);switch(f){case "Opera":if(Fe())return H(["Version","Opera"]);if(BR()?Lg("Opera"):xv("OPR"))return H(["OPR"]);break;case "Microsoft Edge":if(BR()?0:xv("Edge"))return H(["Edge"]);if(VEv())return H(["Edg"]);break;case "Chromium":if(_.Kg())return H(["Chrome","CriOS","HeadlessChrome"])}return f==="Firefox"&&rB()||f==="Safari"&&_.o3()||f==="Android Browser"&&_.yNE()||f==="Silk"&&xv("Silk")?(H=v[2])&&H[1]||"":""};
_.$rT=function(f){if(BR()&&f!=="Silk"){var H=JN.brands.find(function(v){return v.brand===f});
if(!H||!H.version)return NaN;H=H.version.split(".")}else{H=mrR(f);if(H==="")return NaN;H=H.split(".")}return H.length===0?NaN:Number(H[0])};
pg=function(){return Z_?!!JN&&!!JN.platform:!1};
_.Wss=function(){return pg()?JN.platform==="Android":xv("Android")};
Ogv=function(){return xv("iPhone")&&!xv("iPod")&&!xv("iPad")};
_.QR=function(){return Ogv()||xv("iPad")||xv("iPod")};
_.gv5=function(){return pg()?JN.platform==="macOS":xv("Macintosh")};
_.I_5=function(){return pg()?JN.platform==="Windows":xv("Windows")};
_.S5v=function(){return pg()?JN.platform==="Chrome OS":xv("CrOS")};
_.PR=function(f){return f[f.length-1]};
_.Gb=function(f,H,v){H=_.drT(f,H,v);return H<0?null:typeof f==="string"?f.charAt(H):f[H]};
_.drT=function(f,H,v){for(var t=f.length,M=typeof f==="string"?f.split(""):f,h=0;h<t;h++)if(h in M&&H.call(v,M[h],h,f))return h;return-1};
j3B=function(f){for(var H=_.Cg,v=typeof f==="string"?f.split(""):f,t=f.length-1;t>=0;t--)if(t in v&&H.call(void 0,v[t],t,f))return t;return-1};
_.cR=function(f,H){return _.Nr(f,H)>=0};
_.AN=function(f,H){_.cR(f,H)||f.push(H)};
_.iH=function(f,H){H=_.Nr(f,H);var v;(v=H>=0)&&_.s3g(f,H);return v};
_.s3g=function(f,H){Array.prototype.splice.call(f,H,1)};
_.kv=function(f){var H=f.length;if(H>0){for(var v=Array(H),t=0;t<H;t++)v[t]=f[t];return v}return[]};
_.qr=function(f,H){for(var v=1;v<arguments.length;v++){var t=arguments[v];if(_.Tb(t)){var M=f.length||0,h=t.length||0;f.length=M+h;for(var y=0;y<h;y++)f[M+y]=t[y]}else f.push(t)}};
_.JNH=function(f,H,v,t){Array.prototype.splice.apply(f,ZgT(arguments,1))};
ZgT=function(f,H,v){return arguments.length<=2?Array.prototype.slice.call(f,H):Array.prototype.slice.call(f,H,v)};
l_R=function(f,H){H=H||f;for(var v=0,t=0,M={};t<f.length;){var h=f[t++],y=_.vo(h)?"o"+_.h9(h):(typeof h).charAt(0)+h;Object.prototype.hasOwnProperty.call(M,y)||(M[y]=!0,H[v++]=h)}H.length=v};
_.eTe=function(f,H,v){v=v||_.Ur5;for(var t=0,M=f.length,h;t<M;){var y=t+(M-t>>>1);var m=v(H,f[y]);m>0?t=y+1:(M=y,h=!m)}return h?t:-t-1};
_.VM=function(f,H,v){if(!_.Tb(f)||!_.Tb(H)||f.length!=H.length)return!1;var t=f.length;v=v||Lse;for(var M=0;M<t;M++)if(!v(f[M],H[M]))return!1;return!0};
_.Ur5=function(f,H){return f>H?1:f<H?-1:0};
Lse=function(f,H){return f===H};
xrg=function(f,H,v){H=Array.prototype.splice.call(f,H,1);Array.prototype.splice.call(f,v,0,H[0])};
zTR=function(f){return BBg[f]||""};
Ksb=function(f){if(!Fse)return _.yM(f);f=rNH.test(f)?f.replace(rNH,zTR):f;f=atob(f);for(var H=new Uint8Array(f.length),v=0;v<f.length;v++)H[v]=f.charCodeAt(v);return H};
DrR=function(f,H){f.__closure__error__context__984382||(f.__closure__error__context__984382={});f.__closure__error__context__984382.severity=H};
_.Yg=function(f){f=Error(f);DrR(f,"warning");return f};
nvv=function(f,H){if(f!=null){var v;var t=(v=ovg)!=null?v:ovg={};v=t[f]||0;v>=H||(t[f]=v+1,f=Error(),DrR(f,"incident"),R3(f))}};
m_=function(f,H,v){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(v===void 0?0:v)&&Symbol.for&&f?Symbol.for(f):f!=null?Symbol(f):Symbol():H};
ue3=function(f,H){Wo||_.Ob in f||pRg(f,Q3_);f[_.Ob]|=H};
Zh=function(f,H){Wo||_.Ob in f||pRg(f,Q3_);f[_.Ob]=H};
a_R=function(f){if(4&f)return 512&f?512:1024&f?1024:0};
Lr=function(f){ue3(f,34);return f};
PHR=function(f){ue3(f,32);return f};
xg=function(){return typeof BigInt==="function"};
rh=function(f,H){return H===void 0?f.copyOnWrite!==Bo&&!!(2&(f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.Ob]|0)):!!(2&H)&&f.copyOnWrite!==Bo};
_.QM=function(f,H){if(f!=null)if(typeof f==="string")f=f?new Dh(f,on):_.nr();else if(f.constructor!==Dh)if(GbN&&f!=null&&f instanceof Uint8Array)f=f.length?new Dh(new Uint8Array(f),on):_.nr();else{if(!H)throw Error();f=void 0}return f};
CHe=function(f,H){if(typeof H!=="number"||H<0||H>=f.length)throw Error();};
Ev3=function(f,H,v){var t=H&128?0:-1,M=f.length,h;if(h=!!M)h=f[M-1],h=h!=null&&typeof h==="object"&&h.constructor===Object;var y=M+(h?-1:0);for(H=H&128?1:0;H<y;H++)v(H-t,f[H]);if(h){f=f[M-1];for(var m in f)!isNaN(m)&&v(+m,f[m])}};
an=function(f){return f&128?uC:void 0};
Po=function(f){f.isGuard_doNotManuallySetPrettyPlease=!0;return f};
cNb=function(){var f=NBe;return Po(function(H){for(var v in f)if(H===f[v]&&!/^[0-9]+$/.test(v))return!0;return!1})};
_.GH=function(f){var H=f;if(XRs(H)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(H))throw Error(String(H));}else if(AN3(H)&&!Number.isSafeInteger(H))throw Error(String(H));return bgr?BigInt(f):f=igg(f)?f?"1":"0":XRs(f)?f.trim()||"0":String(f)};
kbg=function(f,H){if(f.length>H.length)return!1;if(f.length<H.length||f===H)return!0;for(var v=0;v<f.length;v++){var t=f[v],M=H[v];if(t>M)return!1;if(t<M)return!0}};
TBH=function(f){var H=f>>>0;Cr=H;NT=(f-H)/4294967296>>>0};
co=function(f){if(f<0){TBH(-f);var H=_.V(wRT(Cr,NT));f=H.next().value;H=H.next().value;Cr=f>>>0;NT=H>>>0}else TBH(f)};
q5_=function(f,H){var v=H*4294967296+(f>>>0);return Number.isSafeInteger(v)?v:_.Xa(f,H)};
fhR=function(f,H){var v=H&2147483648;v&&(f=~f+1>>>0,H=~H>>>0,f==0&&(H=H+1>>>0));f=q5_(f,H);return typeof f==="number"?v?-f:f:v?"-"+f:f};
_.Xa=function(f,H){H>>>=0;f>>>=0;if(H<=2097151)var v=""+(4294967296*H+f);else xg()?v=""+(BigInt(H)<<BigInt(32)|BigInt(f)):(v=(f>>>24|H<<8)&16777215,H=H>>16&65535,f=(f&16777215)+v*6777216+H*6710656,v+=H*8147497,H*=2,f>=1E7&&(v+=f/1E7>>>0,f%=1E7),v>=1E7&&(H+=v/1E7>>>0,v%=1E7),v=H+HrR(v)+HrR(f));return v};
HrR=function(f){f=String(f);return"0000000".slice(f.length)+f};
_.vg5=function(f,H){H&2147483648?xg()?f=""+(BigInt(H|0)<<BigInt(32)|BigInt(f>>>0)):(H=_.V(wRT(f,H)),f=H.next().value,H=H.next().value,f="-"+_.Xa(f,H)):f=_.Xa(f,H);return f};
tvN=function(f){if(f.length<16)co(Number(f));else if(xg())f=BigInt(f),Cr=Number(f&BigInt(4294967295))>>>0,NT=Number(f>>BigInt(32)&BigInt(4294967295));else{var H=+(f[0]==="-");NT=Cr=0;for(var v=f.length,t=H,M=(v-H)%6+H;M<=v;t=M,M+=6)t=Number(f.slice(t,M)),NT*=1E6,Cr=Cr*1E6+t,Cr>=4294967296&&(NT+=Math.trunc(Cr/4294967296),NT>>>=0,Cr>>>=0);H&&(H=_.V(wRT(Cr,NT)),f=H.next().value,H=H.next().value,Cr=f,NT=H)}};
wRT=function(f,H){H=~H;f?f=~f+1:H+=1;return[f,H]};
A9=function(f){return Array.prototype.slice.call(f)};
_.bC=function(f,H){throw Error(H===void 0?"unexpected value "+f+"!":H);};
_.wh=function(f){if(f!=null&&typeof f!=="number")throw Error("L`"+typeof f+"`"+f);return f};
_.Mvs=function(f){if(f==null||typeof f==="number")return f;if(f==="NaN"||f==="Infinity"||f==="-Infinity")return Number(f)};
hZB=function(f){if(f!=null&&typeof f!=="boolean")throw Error("M`"+_.qT(f)+"`"+f);return f};
_.RZe=function(f){if(f==null||typeof f==="boolean")return f;if(typeof f==="number")return!!f};
_.tW=function(f){switch(typeof f){case "bigint":return!0;case "number":return f0(f);case "string":return Vvg.test(f);default:return!1}};
_.Mx=function(f){if(!f0(f))throw _.Yg("enum");return f|0};
_.hW=function(f){return f==null?f:f0(f)?f|0:void 0};
y9g=function(f){if(typeof f!=="number")throw _.Yg("int32");if(!f0(f))throw _.Yg("int32");return f|0};
_.RF=function(f){return f==null?f:y9g(f)};
_.VG=function(f){if(f==null)return f;if(typeof f==="string"&&f)f=+f;else if(typeof f!=="number")return;return f0(f)?f|0:void 0};
_.Ybv=function(f){if(f==null)return f;if(typeof f==="string"&&f)f=+f;else if(typeof f!=="number")return;return f0(f)?f>>>0:void 0};
OrH=function(f){var H=0;H=H===void 0?0:H;if(!_.tW(f))throw _.Yg("int64");var v=typeof f;switch(H){case 512:switch(v){case "string":return Y5(f);case "bigint":return String(mW(64,f));default:return mT3(f)}case 1024:switch(v){case "string":return $Tb(f);case "bigint":return _.GH(mW(64,f));default:return W_3(f)}case 0:switch(v){case "string":return Y5(f);case "bigint":return _.GH(mW(64,f));default:return $5(f)}default:return _.bC(H,"Unknown format requested type for int64")}};
WA=function(f){return f==null?f:OrH(f)};
gg_=function(f){if(f[0]==="-")return!1;var H=f.length;return H<20?!0:H===20&&Number(f.substring(0,6))<184467};
Ihs=function(f){var H=f.length;return f[0]==="-"?H<20?!0:H===20&&Number(f.substring(0,7))>-922337:H<19?!0:H===19&&Number(f.substring(0,6))<922337};
Sb_=function(f){if(f<0){co(f);var H=_.Xa(Cr,NT);f=Number(H);return IF(f)?f:H}H=String(f);if(gg_(H))return H;co(f);return q5_(Cr,NT)};
dTH=function(f){if(Ihs(f))return f;tvN(f);return _.vg5(Cr,NT)};
jnB=function(f){if(gg_(f))return f;tvN(f);return _.Xa(Cr,NT)};
$5=function(f){f=Sp(f);IF(f)||(co(f),f=fhR(Cr,NT));return f};
_.sn3=function(f){f=Sp(f);return f>=0&&IF(f)?f:Sb_(f)};
mT3=function(f){f=Sp(f);if(IF(f))f=String(f);else{var H=String(f);Ihs(H)?f=H:(co(f),f=_.vg5(Cr,NT))}return f};
_.Zrs=function(f){f=Sp(f);if(f>=0&&IF(f))f=String(f);else{var H=String(f);gg_(H)?f=H:(co(f),f=_.Xa(Cr,NT))}return f};
Y5=function(f){var H=Sp(Number(f));if(IF(H))return String(H);H=f.indexOf(".");H!==-1&&(f=f.substring(0,H));return dTH(f)};
$Tb=function(f){var H=Sp(Number(f));if(IF(H))return _.GH(H);H=f.indexOf(".");H!==-1&&(f=f.substring(0,H));return xg()?_.GH(mW(64,BigInt(f))):_.GH(dTH(f))};
W_3=function(f){return IF(f)?_.GH($5(f)):_.GH(mT3(f))};
_.J9b=function(f){return IF(f)?_.GH(_.sn3(f)):_.GH(_.Zrs(f))};
_.lhB=function(f){var H=Sp(Number(f));if(IF(H)&&H>=0)return String(H);H=f.indexOf(".");H!==-1&&(f=f.substring(0,H));return jnB(f)};
_.UT5=function(f){var H=Sp(Number(f));if(IF(H)&&H>=0)return _.GH(H);H=f.indexOf(".");H!==-1&&(f=f.substring(0,H));return xg()?_.GH((0,_.Zr)(64,BigInt(f))):_.GH(jnB(f))};
_.L_r=function(f){if(f==null)return f;if(typeof f==="bigint")return eZg(f)?f=Number(f):(f=mW(64,f),f=eZg(f)?Number(f):String(f)),f;if(_.tW(f))return typeof f==="number"?$5(f):Y5(f)};
xTB=function(f,H){H=H===void 0?!1:H;var v=typeof f;if(f==null)return f;if(v==="bigint")return String(mW(64,f));if(_.tW(f))return v==="string"?Y5(f):H?mT3(f):$5(f)};
_.Bhe=function(f){var H=typeof f;if(f==null)return f;if(H==="bigint")return _.GH(mW(64,f));if(_.tW(f))return H==="string"?$Tb(f):W_3(f)};
zZR=function(f){if(f==null)return f;var H=typeof f;if(H==="bigint")return String(mW(64,f));if(_.tW(f)){if(H==="string")return Y5(f);if(H==="number")return $5(f)}};
F_E=function(f){if(f==null)return f;var H=typeof f;if(H==="bigint")return String((0,_.Zr)(64,f));if(_.tW(f)){if(H==="string")return _.lhB(f);if(H==="number")return _.sn3(f)}};
_.JW=function(f){if(typeof f!=="string")throw Error();return f};
Ux=function(f){if(f!=null&&typeof f!=="string")throw Error();return f};
_.ep=function(f){return f==null||typeof f==="string"?f:void 0};
DTv=function(f,H,v,t){if(f!=null&&f[zh]===Fb)return f;if(!Array.isArray(f))return v?t&2?H[r9s]||(H[r9s]=K_v(H)):new H:void 0;v=f[_.Ob]|0;t=v|t&32|t&2;t!==v&&Zh(f,t);return new H(f)};
K_v=function(f){f=new f;Lr(f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return f};
ogv=function(f,H,v){f=H?y9g(f):_.VG(f);return f==null?v?0:void 0:f|0};
nge=function(f){return f};
por=function(f){return f};
uaE=function(f,H,v,t,M,h){f=DTv(f,t,v,h);M&&(f=Qne(f));return f};
ahv=function(f){return[f,this.get(f)]};
CCT=function(){return PCv||(PCv=new K0(Lr([]),void 0,void 0,void 0,GHg))};
Egb=function(f){var H=Dr(oF);return H?f[H]:void 0};
Xob=function(f,H){var v=v===void 0?!1:v;if(Dr(Nh_)&&Dr(oF)&&void 0===Nh_){var t=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=t[oF];if(!M)return;if(M=M.reviveUnknownFields)try{M(t,H,c9T);return}catch(h){R3(h)}}v&&(f=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(v=Dr(oF))&&v in f&&(f=f[v])&&delete f[H])};
brT=function(f,H){var v=Dr(oF),t;Wo&&v&&((t=f[v])==null?void 0:t[H])!=null&&nvv(A9s,3)};
kHB=function(f,H){H<100||nvv(irE,1)};
H0N=function(f,H,v,t){var M=t!==void 0;t=!!t;var h=Dr(oF),y;!M&&Wo&&h&&(y=f[h])&&ThN(y,kHB);h=[];var m=f.length;y=4294967295;var W=!1,I=!!(H&64),S=I?H&128?0:-1:void 0;if(!(H&1)){var d=m&&f[m-1];d!=null&&typeof d==="object"&&d.constructor===Object?(m--,y=m):d=void 0;if(I&&!(H&128)&&!M){W=!0;var Z;y=((Z=woB)!=null?Z:nge)(y-S,S,f,d,void 0)+S}}H=void 0;for(Z=0;Z<m;Z++){var l=f[Z];if(l!=null&&(l=v(l,t))!=null)if(I&&Z>=y){var L=Z-S,r=void 0;((r=H)!=null?r:H={})[L]=l}else h[Z]=l}if(d)for(var n in d)m=d[n],
m!=null&&(m=v(m,t))!=null&&(Z=+n,l=void 0,I&&!Number.isNaN(Z)&&(l=Z+S)<y?h[l]=m:(Z=void 0,((Z=H)!=null?Z:H={})[n]=m));H&&(W?h.push(H):h[y]=H);M&&Dr(oF)&&(f=Egb(f))&&f instanceof qb3&&(h[oF]=fr3(f));return h};
tpb=function(f){f[0]=v5r(f[0]);f[1]=v5r(f[1]);return f};
v5r=function(f){switch(typeof f){case "number":return Number.isFinite(f)?f:""+f;case "bigint":return eZg(f)?Number(f):""+f;case "boolean":return f?1:0;case "object":if(Array.isArray(f)){var H=f[_.Ob]|0;return f.length===0&&H&1?void 0:H0N(f,H,v5r)}if(f!=null&&f[zh]===Fb)return Mp3(f);if(f instanceof Dh){H=f.JSC$8810_value_;if(H==null)f="";else if(typeof H==="string")f=H;else{if(Fse){for(var v="",t=0,M=H.length-10240;t<M;)v+=String.fromCharCode.apply(null,H.subarray(t,t+=10240));v+=String.fromCharCode.apply(null,
t?H.subarray(t):H);H=btoa(v)}else H=_.QG(H);f=f.JSC$8810_value_=H}return f}if(f instanceof K0)return f=f.size!==0?Array.from(ut.prototype.entries.call(f),tpb):void 0,f;return}return f};
aF=function(f,H){if(H){woB=H==null||H===nge||H[hw5]!==Rwr?nge:H;try{return Mp3(f)}finally{woB=void 0}}return Mp3(f)};
Mp3=function(f){f=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return H0N(f,f[_.Ob]|0,v5r)};
YxB=function(f){switch(typeof f){case "boolean":return Vp3||(Vp3=[0,void 0,!0]);case "number":return f>0?void 0:f===0?yWT||(yWT=[0,void 0]):[-f,void 0];case "string":return[0,f];case "object":return f}};
mxR=function(f,H,v){return f=_.C0(f,H[0],H[1],v?1:2)};
_.C0=function(f,H,v,t){t=t===void 0?0:t;if(f==null){var M=32;v?(f=[v],M|=128):f=[];H&&(M=M&-8380417|(H&1023)<<13)}else{if(!Array.isArray(f))throw Error("O");M=f[_.Ob]|0;if($xe&&1&M)throw Error("P");2048&M&&!(2&M)&&WWB();if(M&256)throw Error("Q");if(M&64)return t!==0||M&2048||Zh(f,M|2048),f;if(v&&(M|=128,v!==f[0]))throw Error("R");a:{v=f;M|=64;var h=v.length;if(h){var y=h-1,m=v[y];if(m!=null&&typeof m==="object"&&m.constructor===Object){H=M&128?0:-1;y-=H;if(y>=1024)throw Error("T");for(var W in m)h=
+W,h<y&&(v[h+H]=m[W],delete m[W]);M=M&-8380417|(y&1023)<<13;break a}}if(H){W=Math.max(H,h-(M&128?0:-1));if(W>1024)throw Error("U");M=M&-8380417|(W&1023)<<13}}}M|=64;t===0&&(M|=2048);Zh(f,M);return f};
WWB=function(){if($xe)throw Error("S");nvv(O0N,5)};
Sxr=function(f,H){if(typeof f!=="object")return f;if(Array.isArray(f)){var v=f[_.Ob]|0;return f.length===0&&v&1?void 0:g5e(f,v,H)}if(f!=null&&f[zh]===Fb)return Irb(f);if(f instanceof K0){H=f.arrayState;if(H&2)return f;if(!f.size)return;v=Lr(Array.from(ut.prototype.entries.call(f)));if(f.valueCtor)for(f=0;f<v.length;f++){var t=v[f],M=t[1];M==null||typeof M!=="object"?M=void 0:M!=null&&M[zh]===Fb?M=Irb(M):Array.isArray(M)?M=g5e(M,M[_.Ob]|0,!!(H&32)):M=void 0;t[1]=M}return v}if(f instanceof Dh)return f};
g5e=function(f,H,v){if(H&2)return f;!v||4096&H||16&H?f=Ex(f,H,!1,v&&!(H&16)):(ue3(f,34),H&4&&Object.freeze(f));return f};
dxr=function(f,H,v){f=new f.constructor(H);v&&(f.copyOnWrite=Bo);f.noLegacyNull=Bo;return f};
Irb=function(f){var H=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,v=H[_.Ob]|0;return rh(f,v)?f:jFT(f,H,v)?dxr(f,H):Ex(H,v)};
Ex=function(f,H,v,t){t!=null||(t=!!(34&H));f=H0N(f,H,Sxr,t);t=32;v&&(t|=2);H=H&8380609|t;Zh(f,H);return f};
Qne=function(f){var H=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,v=H[_.Ob]|0;return rh(f,v)?jFT(f,H,v)?dxr(f,H,!0):new f.constructor(Ex(H,v,!1)):f};
Nx=function(f){if(f.copyOnWrite!==Bo)return!1;var H=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;H=Ex(H,H[_.Ob]|0);ue3(H,2048);f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=H;f.copyOnWrite=void 0;f.noLegacyNull=void 0;return!0};
cA=function(f){if(!Nx(f)&&rh(f,f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.Ob]|0))throw Error();};
AW=function(f,H){H===void 0&&(H=f[_.Ob]|0);H&32&&!(H&4096)&&Zh(f,H|4096)};
jFT=function(f,H,v){return v&2?!0:v&32&&!(v&4096)?(Zh(H,v|2),f.copyOnWrite=Bo,!0):!1};
bt=function(f,H,v,t,M){var h=v+(M?0:-1),y=f.length-1;if(y>=1+(M?0:-1)&&h>=y){var m=f[y];if(m!=null&&typeof m==="object"&&m.constructor===Object)return m[v]=t,H}if(h<=y)return f[h]=t,H;if(t!==void 0){var W;y=((W=H)!=null?W:H=f[_.Ob]|0)>>13&1023||536870912;v>=y?t!=null&&(h={},f[y+(M?0:-1)]=(h[v]=t,h)):f[h]=t}return H};
_.wi=function(f,H,v,t,M){var h=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=h[_.Ob]|0;t=rh(f,y)?1:t;M=!!M||t===3;t===2&&Nx(f)&&(h=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=h[_.Ob]|0);f=sFT(h,H);var m=f===k5?7:f[_.Ob]|0,W=Z05(m,y);var I=4&W?!1:!0;if(I){4&W&&(f=A9(f),m=0,W=Th(W,y),y=bt(h,y,H,f));for(var S=0,d=0;S<f.length;S++){var Z=v(f[S]);Z!=null&&(f[d++]=Z)}d<S&&(f.length=d);v=(W|4)&-513;W=v&=-1025;W&=-4097}W!==m&&(Zh(f,W),2&W&&Object.freeze(f));return f=JWr(f,W,h,
y,H,t,I,M)};
JWr=function(f,H,v,t,M,h,y,m){var W=H;h===1||(h!==4?0:2&H||!(16&H)&&32&t)?qx(H)||(H|=!f.length||y&&!(4096&H)||32&t&&!(4096&H||16&H)?2:256,H!==W&&Zh(f,H),Object.freeze(f)):(h===2&&qx(H)&&(f=A9(f),W=0,H=Th(H,t),t=bt(v,t,M,f)),qx(H)||(m||(H|=16),H!==W&&Zh(f,H)));2&H||!(4096&H||16&H)||AW(v,t);return f};
sFT=function(f,H,v){f=fo(f,H,v);return Array.isArray(f)?f:k5};
Z05=function(f,H){2&H&&(f|=2);return f|1};
qx=function(f){return!!(2&f)&&!!(4&f)||!!(256&f)};
lrv=function(f){return _.QM(f,!0)};
UxR=function(f,H){var v=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=v[_.Ob]|0;a:{var M=t;t=rh(f,t);!t&&Nx(f)&&(v=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=v[_.Ob]|0);var h=fo(v,H);f=!1;if(h==null){if(t){H=CCT();break a}h=[]}else if(h.constructor===K0)if(h.arrayState&2&&!t)h=Array.from(ut.prototype.entries.call(h));else{H=h;break a}else Array.isArray(h)?f=!!((h[_.Ob]|0)&2):h=[];if(t){if(!h.length){H=CCT();break a}f||(f=!0,Lr(h))}else if(f){f=!1;t=h;t=A9(t);for(h=0;h<
t.length;h++){var y=t[h]=A9(t[h]);Array.isArray(y[1])&&(y[1]=Lr(y[1]))}h=t}!f&&M&32&&PHR(h);t=new K0(h,void 0,ogv,ogv);M=bt(v,M,H,t);f||AW(v,M);H=t}return H};
_.Hv=function(f,H,v,t){cA(f);var M=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,h=M[_.Ob]|0;if(v==null)return bt(M,h,H),f;var y=v===k5?7:v[_.Ob]|0,m=y,W=qx(y),I=W||Object.isFrozen(v);W||(y=0);I||(v=A9(v),m=0,y=Th(y,h),I=!1);y|=5;var S;W=(S=a_R(y))!=null?S:0;for(S=0;S<v.length;S++){var d=v[S],Z=t(d,W);Object.is(d,Z)||(I&&(v=A9(v),m=0,y=Th(y,h),I=!1),v[S]=Z)}y!==m&&(I&&(v=A9(v),y=Th(y,h)),Zh(v,y));bt(M,h,H,v);return f};
_.vv=function(f,H,v,t,M){cA(f);var h=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;bt(h,h[_.Ob]|0,H,(t==="0"?Number(v)===0:v===t)?void 0:v,M);return f};
_.ewg=function(f,H,v){if(H&2)throw Error();var t=an(H),M=sFT(f,v,t),h=M===k5?7:M[_.Ob]|0,y=Z05(h,H);if(2&y||qx(y)||16&y)M=A9(M),h=0,y=Th(y,H),bt(f,H,v,M,t);y&=-13;y!==h&&Zh(M,y);return M};
LWv=function(f){if(Wo){var H;return(H=f[tD])!=null?H:f[tD]=new Map}if(tD in f)return f[tD];H=new Map;Object.defineProperty(f,tD,{value:H});return H};
BiB=function(f,H,v,t,M){var h=LWv(f),y=xxR(h,f,H,v,M);y!==t&&(y&&(H=bt(f,H,y,void 0,M)),h.set(v,t));return H};
xxR=function(f,H,v,t,M){var h=f.get(t);if(h!=null)return h;for(var y=h=0;y<t.length;y++){var m=t[y];fo(H,m,M)!=null&&(h!==0&&(v=bt(H,v,h,void 0,M)),h=m)}f.set(t,h);return h};
zwT=function(f,H,v,t,M){var h=!1;t=fo(f,t,M,function(y){var m=DTv(y,v,!1,H);h=m!==y&&m!=null;return m});
if(t!=null)return h&&!rh(t)&&AW(f,H),t};
FWR=function(f,H,v,t,M,h,y,m){var W=rh(f,v);h=W?1:h;y=!!y||h===3;W=m&&!W;(h===2||W)&&Nx(f)&&(H=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,v=H[_.Ob]|0);f=sFT(H,M);var I=f===k5?7:f[_.Ob]|0,S=Z05(I,v);if(m=!(4&S)){var d=f,Z=v,l=!!(2&S);l&&(Z|=2);for(var L=!l,r=!0,n=0,Q=0;n<d.length;n++){var C=DTv(d[n],t,!1,Z);if(C instanceof t){if(!l){var w=rh(C);L&&(L=!w);r&&(r=w)}d[Q++]=C}}Q<n&&(d.length=Q);S|=4;S=r?S&-4097:S|4096;S=L?S|8:S&-9}S!==I&&(Zh(f,S),2&S&&Object.freeze(f));if(W&&!(8&S||!f.length&&
(h===1||(h!==4?0:2&S||!(16&S)&&32&v)))){qx(S)&&(f=A9(f),S=Th(S,v),v=bt(H,v,M,f));t=f;W=S;for(I=0;I<t.length;I++)d=t[I],S=Qne(d),d!==S&&(t[I]=S);W|=8;S=W=t.length?W|4096:W&-4097;Zh(f,S)}return f=JWr(f,S,H,v,M,h,m,y)};
rWs=function(f){f==null&&(f=void 0);return f};
Th=function(f,H){return f=(2&H?f|2:f&-3)&-273};
_.KWE=function(f,H,v,t,M){cA(f);H=_.wi(f,H,M,2,!0);var h;M=(h=a_R(H===k5?7:H[_.Ob]|0))!=null?h:0;H.push(v(t,M));return f};
Dxs=function(f,H,v,t,M,h,y){cA(f);var m=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;f=FWR(f,m,m[_.Ob]|0,v,H,2,!0);if(h&&y)M!=null||(M=f.length-1),CHe(f,M),f.splice(M,h),f.length||(f[_.Ob]&=-4097);else{if(h){if(typeof M!=="number"||M<0||M>f.length)throw Error();}else t=t!=null?t:new v;M!=void 0?f.splice(M,h,t):f.push(t);M=v=f===k5?7:f[_.Ob]|0;(t=rh(t))?(v&=-9,f.length===1&&(v&=-4097)):v|=4096;v!==M&&Zh(f,v);t||AW(m)}};
n5R=function(f,H){if(typeof f==="string")return new MA(Ksb(f),H);if(Array.isArray(f))return new MA(new Uint8Array(f),H);if(f.constructor===Uint8Array)return new MA(f,!1);if(f.constructor===ArrayBuffer)return f=new Uint8Array(f),new MA(f,!1);if(f.constructor===Dh)return H=o55(f)||new Uint8Array(0),new MA(H,!0,f);if(f instanceof Uint8Array)return f=f.constructor===Uint8Array?f:new Uint8Array(f.buffer,f.byteOffset,f.byteLength),new MA(f,!1);throw Error();};
hD=function(){var f=function(){throw Error();};
Object.setPrototypeOf(f,f.prototype);return f};
QF5=function(f,H){var v=v===void 0?pAg:v;return new R1(f,H,v)};
Ghr=function(f,H,v,t,M){H=ubN(H,t);H!=null&&(v=_.arH(f,v),M(H,f),_.Pts(f,v))};
VO=function(f,H,v,t){var M=t[f];if(M)return M;M={};M.binaryFields=t;M.messageMetadata=YxB(t[0]);var h=t[1],y=1;h&&h.constructor===Object&&(M.extensions=h,h=t[++y],typeof h==="function"&&(M.isMessageSet=!0,CtR!=null||(CtR=h),E5E!=null||(E5E=t[y+1]),h=t[y+=2]));for(var m={};h&&Nis(h);){for(var W=0;W<h.length;W++)m[h[W]]=h;h=t[++y]}for(W=1;h!==void 0;){typeof h==="number"&&(W+=h,h=t[++y]);var I=void 0;if(h instanceof R1)var S=h;else S=cWR,y--;h=void 0;if((h=S)==null?0:h.$$isMsg){h=t[++y];I=t;var d=y;
typeof h==="function"&&(h=h(),I[d]=h);I=h}h=t[++y];d=W+1;typeof h==="number"&&h<0&&(d-=h,h=t[++y]);for(;W<d;W++){var Z=m[W];I?v(M,W,S,I,Z):H(M,W,S,Z)}}return t[f]=M};
Nis=function(f){return Array.isArray(f)&&!!f.length&&typeof f[0]==="number"&&f[0]>0};
AWe=function(f){return Array.isArray(f)?f[0]instanceof R1?f:[XAT,f]:[f,void 0]};
ubN=function(f,H){if(f instanceof _.mL)return f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(f))return mxR(f,H,!1)};
b0H=function(f,H,v,t){var M=v.$$binaryReaderFn;f[H]=t?function(h,y,m){return M(h,y,m,t)}:M};
khs=function(f,H,v,t,M){var h=v.$$binaryReaderFn,y,m;f[H]=function(W,I,S){return h(W,I,S,m||(m=VO(i0b,b0H,khs,t).messageMetadata),y||(y=Tiv(t)),M)}};
Tiv=function(f){var H=f[wAr];if(H!=null)return H;var v=VO(i0b,b0H,khs,f);H=v.isMessageSet?function(t,M){return CtR(t,M,v)}:function(t,M){for(;qxe(M)&&M.nextWireType_!=4;){var h=M.nextField_,y=v[h];
if(y==null){var m=v.extensions;m&&(m=m[h])&&(m=fM_(m),m!=null&&(y=v[h]=m))}if(y==null||!y(M,t,h)){m=M;y=m.fieldCursor_;Hos(m);if(m.discardUnknownFields)var W=void 0;else{var I=m.decoder_.cursor_-y;m.decoder_.cursor_=y;W=vU_(m.decoder_,I)}I=m=y=void 0;var S=t;W&&((y=(m=(I=S[oF])!=null?I:S[oF]=new qb3)[h])!=null?y:m[h]=[]).push(W)}}if(t=Egb(t))t.reviveUnknownFields=v.binaryFields[tVT];return!0};
f[wAr]=H;f[tVT]=MVe.bind(f);return H};
MVe=function(f,H,v,t){var M=this[i0b],h=this[wAr],y=mxR(void 0,M.messageMetadata,!1),m=Egb(f);if(m){var W=!1,I=M.extensions;if(I){M=function(L,r,n){if(n.length!==0)if(I[r])for(L=_.V(n),r=L.next();!r.done;r=L.next()){r=hqe(r.value);try{W=!0,h(y,r)}finally{r.free()}}else t==null||t(f,r,n)};
if(H==null)ThN(m,M);else if(m!=null){var S=m[H];S&&M(m,H,S)}if(W){var d=f[_.Ob]|0;if(d&2&&d&2048&&(v==null||!v.reviveIntoImmutable))throw Error();var Z=an(d),l=function(L,r){if(fo(f,L,Z)!=null)switch(v==null?void 0:v.resolutionBehavior){case 1:return;default:throw Error();}r!=null&&(d=bt(f,d,L,r,Z));delete m[L]};
H==null?Ev3(y,y[_.Ob]|0,function(L,r){l(L,r)}):l(H,fo(y,H,Z))}}}};
fM_=function(f){f=AWe(f);var H=f[0].$$binaryReaderFn;if(f=f[1]){var v=Tiv(f),t=VO(i0b,b0H,khs,f).messageMetadata;return function(M,h,y){return H(M,h,y,t,v)}}return H};
Rqv=function(f,H,v){f[H]=v.$$binaryWriterFn};
yDg=function(f,H,v,t){var M,h,y=v.$$binaryWriterFn;f[H]=function(m,W,I){return y(m,W,I,h||(h=VO(VVe,Rqv,yDg,t).messageMetadata),M||(M=Y43(t)))}};
Y43=function(f){var H=f[mAs];if(!H){var v=VO(VVe,Rqv,yDg,f);H=function(t,M){return $Ag(t,M,v)};
f[mAs]=H}return H};
$Ag=function(f,H,v){Ev3(f,f[_.Ob]|0,function(t,M){if(M!=null){var h=WLB(v,t);h?h(H,M,t):t<500||nvv(Oo3,3)}});
(f=Egb(f))&&ThN(f,function(t,M,h){$U(H,H.encoder_.end());for(t=0;t<h.length;t++)$U(H,o55(h[t])||new Uint8Array(0))})};
WLB=function(f,H){var v=f[H];if(v)return v;if(v=f.extensions)if(v=v[H]){v=AWe(v);var t=v[0].$$binaryWriterFn;if(v=v[1]){var M=Y43(v),h=VO(VVe,Rqv,yDg,v).messageMetadata;v=f.isMessageSet?E5E(h,M):function(y,m,W){return t(y,m,W,h,M)}}else v=t;
return f[H]=v}};
_.gUB=function(f,H,v){if(Array.isArray(H)){var t=H[_.Ob]|0;if(t&4)return H;for(var M=0,h=0;M<H.length;M++){var y=f(H[M]);y!=null&&(H[h++]=y)}h<M&&(H.length=h);v&&(Zh(H,(t|5)&-1537),t&2&&Object.freeze(H));return H}};
_.Wv=function(f,H,v){return new R1(f,H,v)};
_.IMv=function(f,H,v){return new R1(f,H,v)};
_.O4=function(f,H,v){bt(f,f[_.Ob]|0,H,v,an(f[_.Ob]|0))};
dAe=function(f,H,v){H=_.Mvs(H);H!=null&&(_.ge(f,v,1),f=f.encoder_,v=S43||(S43=new DataView(new ArrayBuffer(8))),v.setFloat64(0,+H,!0),Cr=v.getUint32(0,!0),NT=v.getUint32(4,!0),_.I1(f,Cr),_.I1(f,NT))};
_.SV=function(f,H,v){H=zZR(H);if(H!=null){switch(typeof H){case "string":j1N(H)}if(H!=null)switch(_.ge(f,v,0),typeof H){case "number":f=f.encoder_;co(H);s1B(f,Cr,NT);break;case "bigint":v=BigInt.asUintN(64,H);v=new Zoe(Number(v&BigInt(4294967295)),Number(v>>BigInt(32)));s1B(f.encoder_,v.JSC$8853_lo,v.JSC$8853_hi);break;default:v=j1N(H),s1B(f.encoder_,v.JSC$8853_lo,v.JSC$8853_hi)}}};
lME=function(f,H,v){H=_.VG(H);H!=null&&H!=null&&(_.ge(f,v,0),_.JDE(f.encoder_,H))};
_.eq_=function(f,H,v){UAe(f,v,F_E(H))};
_.LLv=function(f,H,v){H=_.RZe(H);H!=null&&(_.ge(f,v,0),f.encoder_.JSC$8855_buffer_.push(H?1:0))};
_.Bes=function(f,H,v){H=_.ep(H);H!=null&&xAN(f,v,ME5(H))};
zq5=function(f,H,v,t,M){H=ubN(H,t);H!=null&&(v=_.arH(f,v),M(H,f),_.Pts(f,v))};
_.FLE=function(f,H,v){H=H==null||typeof H=="string"||H instanceof Dh?H:void 0;H!=null&&xAN(f,v,n5R(H,!0).buffer)};
_.rDR=function(f,H,v){H=_.VG(H);H!=null&&(H=parseInt(H,10),_.ge(f,v,0),_.JDE(f.encoder_,H))};
_.s4=function(f,H){return function(v,t){var M={treatNewDataAsImmutable:!0};t&&Object.assign(M,t);v=hqe(v,void 0,void 0,M);try{var h=new f,y=h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Tiv(H)(y,v);var m=h}finally{v.free()}return m}};
_.JD=function(f){return function(H){return KLR(H,f)}};
DA_=function(f){return function(){return KLR(this,f)}};
_.oUR=function(f){return Po(function(H){return H instanceof f&&!rh(H)})};
_.lD=function(f){return function(H){return nU5(f,H)}};
aME=function(f,H){return pvr({child:f,origin:H||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:Q15,getPayloadCase:function(v){return v.getPayloadCase()},
createInitMessage:function(v){var t=new U4,M=new uMR;v=_.eV(M,1,v);return _.Lo(t,5,xU,v)}})};
Bv=function(f){return{valueOf:f}.valueOf()};
G1s=function(){var f=null;if(!PDr)return f;try{var H=function(v){return v};
f=PDr.createPolicy("goog#html",{createHTML:H,createScript:H,createScriptURL:H})}catch(v){}return f};
EUs=function(){CDB===void 0&&(CDB=G1s());return CDB};
_.FM=function(f){var H=EUs();f=H?H.createScriptURL(f):f;return new z1(f)};
_.re=function(f){if(f instanceof z1)return f.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.Ko=function(f){return Object.isFrozen(f)&&Object.isFrozen(f.raw)};
Nev=function(f){return f.toString().indexOf("`")===-1};
no=function(f){return new _.o1(cD5,f)};
po=function(f){return f instanceof _.o1};
_.QO=function(f){if(po(f))return f.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
uD=function(f){return new XvT(function(H){return H.substr(0,f.length+1).toLowerCase()===f+":"})};
_.Pv=function(f,H){H=H===void 0?AD3:H;if(po(f))return f;for(var v=0;v<H.length;++v){var t=H[v];if(t instanceof XvT&&t.isValid(f))return no(f)}};
_.Co=function(f,H){H=H===void 0?AD3:H;return _.Pv(f,H)||G1};
_.E4=function(f){var H=window;if(typeof MediaSource!=="undefined"&&f instanceof MediaSource||typeof H.ManagedMediaSource!=="undefined"&&f instanceof H.ManagedMediaSource)return no(URL.createObjectURL(f));H=f.type;H.toLowerCase()==="application/octet-stream"?H=!0:(H=H.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),H=(H==null?void 0:H.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(H[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(H[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(H[1])||/^font\/[\w-]+$/i.test(H[1])));if(!H)throw Error("Z");return no(URL.createObjectURL(f))};
_.boe=function(f){for(var H=_.NA.apply(1,arguments),v=[f[0]],t=0;t<H.length;t++)v.push(String(H[t])),v.push(f[t+1]);return no(v.join(""))};
_.k1N=function(f){if(!ioT){a:{var H=document.createElement("a");try{H.href=f}catch(v){f=void 0;break a}f=H.protocol;f=f===":"||f===""?"https:":f}return f}try{H=new URL(f)}catch(v){return"https:"}return H.protocol};
_.cv=function(f){f instanceof _.o1?f=_.QO(f):f=Teb.test(f)?f:void 0;return f};
AD=function(f,H){H=_.cv(H);H!==void 0&&(f.href=H)};
iD=function(f){var H=EUs();f=H?H.createHTML(f):f;return new bD(f)};
kU=function(f){if(f instanceof bD)return f.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.T1=function(f,H){f.src=_.re(H).toString()};
wve=function(f,H){f.setAttribute("sandbox","");for(var v=0;v<H.length;v++)f.sandbox.supports&&!f.sandbox.supports(H[v])||f.sandbox.add(H[v])};
_.fcg=function(f,H,v){f.removeAttribute("srcdoc");switch(H){case 0:if(v instanceof z1)throw new q4B("TrustedResourceUrl",0);wve(f,[]);H=_.cv(v);H!==void 0&&(f.src=H);break;case 1:if(!(v instanceof z1))throw new q4B(typeof v,1);wve(f,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.T1(f,v);break;case 2:if(v instanceof z1)throw new q4B("TrustedResourceUrl",2);wve(f,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
H=_.cv(v);H!==void 0&&(f.src=H);break;default:_.bC(H)}};
_.we=function(f,H,v,t){H=_.cv(H);return H!==void 0?f.open(H,v,t):null};
_.qA=function(f){f=f===void 0?document:f;var H,v;f=(v=(H=f).querySelector)==null?void 0:v.call(H,"script[nonce]");return f==null?"":f.nonce||f.getAttribute("nonce")||""};
_.Hj=function(f){var H=EUs();f=H?H.createScript(f):f;return new _.fS(f)};
HS3=function(f){if(f instanceof _.fS)return f.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
vuT=function(f){var H=_.qA(f.ownerDocument);H&&f.setAttribute("nonce",H)};
_.vj=function(f,H){f.textContent=HS3(H);vuT(f)};
_.tf=function(f,H){f.src=_.re(H);vuT(f)};
_.Me=function(f,H){if(f.nodeType===1&&/^(script|style)$/i.test(f.tagName))throw Error("Z");f.innerHTML=kU(H)};
_.hf=function(f,H,v,t){if(f.length===0)throw Error("Z");f=f.map(function(h){if(h instanceof ta3)h=h.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return h});
var M=v.toLowerCase();if(f.every(function(h){return M.indexOf(h)!==0}))throw Error("aa`"+v);
H.setAttribute(v,t)};
_.V1=function(f,H,v){if(H instanceof z1)f.href=_.re(H).toString(),f.rel=v;else{if(Ma5.indexOf(v)===-1)throw Error("ba`"+v);H=_.cv(H);H!==void 0&&(f.href=H,f.rel=v)}};
hS_=function(f){if(f instanceof y1)return f.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.RS3=function(f,H){H=_.cv(H);H!==void 0&&(f.href=H)};
VaH=function(f){return _.FM(f)};
yfg=function(f,H){f&&(H=f.indexOf(H),0<=H&&f.splice(H,1))};
Yu=function(f){return typeof f==="function"};
YqR=function(f){return f instanceof mh||f&&"closed"in f&&Yu(f.remove)&&Yu(f.add)&&Yu(f.unsubscribe)};
$u=function(){};
Wj=function(f){meE(function(){throw f;})};
gU=function(f){return f};
Id=function(){return $eE(_.NA.apply(0,arguments))};
$eE=function(f){return f.length===0?gU:f.length===1?f[0]:function(H){return f.reduce(function(v,t){return t(v)},H)}};
WhR=function(f){var H;return(H=f!=null?f:void 0)!=null?H:Promise};
OS5=function(f,H){return new Sa(function(v){var t=0;return H.schedule(function(){t===f.length?v.complete():(v.next(f[t++]),v.closed||this.schedule())})})};
gu3=function(f,H){if(!f)throw Error("ca");return new Sa(function(v){var t=new mh;t.add(H.schedule(function(){var M=f[Symbol.asyncIterator]();t.add(H.schedule(function(){var h=this;M.next().then(function(y){y.done?v.complete():(v.next(y.value),h.schedule())})}))}));
return t})};
IcN=function(f,H,v){H=H.schedule(function(){try{v.call(this)}catch(t){f.error(t)}},0);
f.add(H)};
deH=function(f,H){return new Sa(function(v){var t;v.add(H.schedule(function(){t=f[SqT]();IcN(v,H,function(){var M=t.next(),h=M.value;M.done?v.complete():(v.next(h),this.schedule())})}));
return function(){var M;return Yu((M=t)==null?void 0:M.return)&&t.return()}})};
jdH=function(f,H){return new Sa(function(v){var t=new mh;t.add(H.schedule(function(){var M=f[dU]();t.add(M.subscribe({next:function(h){t.add(H.schedule(function(){return v.next(h)}))},
error:function(h){t.add(H.schedule(function(){return v.error(h)}))},
complete:function(){t.add(H.schedule(function(){return v.complete()}))}}))}));
return t})};
sdN=function(f,H){return new Sa(function(v){return H.schedule(function(){return f.then(function(t){v.add(H.schedule(function(){v.next(t);v.add(H.schedule(function(){return v.complete()}))}))},function(t){v.add(H.schedule(function(){return v.error(t)}))})})})};
ZSb=function(f){return new TypeError("da`"+(f!==null&&typeof f==="object"?"an invalid object":"'"+f+"'"))};
lcB=function(f,H){if(f!=null){if(Yu(f[dU]))return jdH(f,H);if(Jfb(f))return OS5(f,H);if(Yu(f==null?void 0:f.then))return sdN(f,H);if(Symbol.asyncIterator&&Yu(f==null?void 0:f[Symbol.asyncIterator]))return gu3(f,H);if(Yu(f==null?void 0:f[SqT]))return deH(f,H)}throw ZSb(f);};
sq=function(f,H){return H?lcB(f,H):ja(f)};
ja=function(f){if(f instanceof Sa)return f;if(f!=null){if(Yu(f[dU]))return UeR(f);if(Jfb(f))return eSR(f);if(Yu(f==null?void 0:f.then))return Lhg(f);if(Symbol.asyncIterator&&Yu(f==null?void 0:f[Symbol.asyncIterator]))return xeB(f);if(Yu(f==null?void 0:f[SqT]))return BUB(f)}throw ZSb(f);};
UeR=function(f){return new Sa(function(H){var v=f[dU]();if(Yu(v.subscribe))return v.subscribe(H);throw new TypeError("ea");})};
eSR=function(f){return new Sa(function(H){for(var v=0;v<f.length&&!H.closed;v++)H.next(f[v]);H.complete()})};
Lhg=function(f){return new Sa(function(H){f.then(function(v){H.closed||(H.next(v),H.complete())},function(v){return H.error(v)}).then(null,Wj)})};
BUB=function(f){return new Sa(function(H){for(var v=f[SqT]();!H.closed;){var t=v.next(),M=t.value;t.done?H.complete():H.next(M)}return function(){return Yu(v==null?void 0:v.return)&&v.return()}})};
xeB=function(f){return new Sa(function(H){zSv(f,H).catch(function(v){return H.error(v)})})};
zSv=function(f,H){var v,t,M,h,y,m;return _.Y(function(W){switch(W.nextAddress){case 1:_.Zc(W,2,3),h=_.Jf(f);case 5:return W.yield(h.next(),8);case 8:t=W.yieldResult;if(t.done){W.jumpTo(3);break}y=t.value;H.next(y);W.jumpTo(5);break;case 3:_.lk(W);_.Uq(W,9);if(!t||t.done||!(M=h.return)){W.jumpTo(9);break}return W.yield(M.call(h),9);case 9:_.lk(W,0,0,1);if(v)throw v.error;_.ea(W,10,1);break;case 10:_.ea(W,4);break;case 2:m=_.xu(W);v={error:m};W.jumpTo(3);break;case 4:H.complete(),_.Bj(W)}})};
Fhr=function(f,H){return H?OS5(f,H):eSR(f)};
rfH=function(f){return Yu(f[f.length-1])?f.pop():void 0};
zo=function(f){var H=f[f.length-1];return H&&Yu(H.schedule)?f.pop():void 0};
FP=function(){var f=_.NA.apply(0,arguments),H=zo(f);return H?OS5(f,H):Fhr(f)};
rU=function(f){var H=Yu(f)?f:function(){return f};
return new Sa(function(v){return v.error(H())})};
KS=function(f){return function(H){if(Yu(H==null?void 0:H.lift))return H.lift(function(v){try{return f(v,this)}catch(t){this.error(t)}});
throw new TypeError("fa");}};
od=function(){return KS(function(f,H){var v=null;f._refCount++;var t=new Dc(H,void 0,void 0,void 0,function(){if(!f||f._refCount<=0||0<--f._refCount)v=null;else{var M=f._connection,h=v;v=null;!M||h&&M!==h||M.unsubscribe();H.unsubscribe()}});
f.subscribe(t);t.closed||(v=f.connect())})};
Deb=function(){var f=Khv;var H=H===void 0?0:H;return KS(function(v,t){t.add(f.schedule(function(){return v.subscribe(t)},H))})};
nS=function(f){return KS(function(H,v){var t=0;H.subscribe(new Dc(v,function(M){v.next(f.call(void 0,M,t++))}))})};
nu_=function(f){return nS(function(H){return ouv(H)?f.apply(null,_.pS(H)):f(H)})};
Pk3=function(f){if(f.length===1){var H=f[0];if(pjR(H))return{args:H,keys:null};if(H&&typeof H==="object"&&Qds(H)===uPB)return f=ac3(H),{args:f.map(function(v){return H[v]}),
keys:f}}return{args:f,keys:null}};
Q1=function(){var f=_.NA.apply(0,arguments),H=zo(f),v=rfH(f);f=Pk3(f);var t=f.args,M=f.keys;if(t.length===0)return sq([],H);H=new Sa(GoT(t,H,M?function(h){for(var y={},m=0;m<h.length;m++)y[M[m]]=h[m];return y}:gU));
return v?H.pipe(nu_(v)):H};
GoT=function(f,H,v){v=v===void 0?gU:v;return function(t){CkH(H,function(){for(var M=f.length,h=Array(M),y=M,m=f.map(function(){return!1}),W=!0,I={i$jscomp$217:0};I.i$jscomp$217<M;I={i$jscomp$217:I.i$jscomp$217},I.i$jscomp$217++)CkH(H,function(S){return function(){sq(f[S.i$jscomp$217],H).subscribe(new uk(t,function(d){h[S.i$jscomp$217]=d;
W&&(m[S.i$jscomp$217]=!0,W=!m.every(gU));W||t.next(v(h.slice()))},function(){return--y===0}))}}(I),t)},t)}};
CkH=function(f,H,v){f?v.add(f.schedule(H)):H()};
Eug=function(f,H,v,t){var M=[],h=0,y=0,m=!1,W=function(I){h++;ja(v(I,y++)).subscribe(new Dc(H,function(S){H.next(S)},void 0,function(){h--;
for(var S={};M.length&&h<t;S={bufferedValue:void 0})S.bufferedValue=M.shift(),W(S.bufferedValue);!m||M.length||h||H.complete()}))};
f.subscribe(new Dc(H,function(I){return h<t?W(I):M.push(I)},void 0,function(){m=!0;
!m||M.length||h||H.complete()}));
return function(){M=null}};
ad=function(f,H){var v=v===void 0?Infinity:v;if(Yu(H))return ad(function(t,M){return nS(function(h,y){return H(t,h,M,y)})(ja(f(t,M)))},v);
typeof H==="number"&&(v=H);return KS(function(t,M){return Eug(t,M,f,v)})};
NUE=function(f){f=f===void 0?Infinity:f;return ad(gU,f)};
cf3=function(){var f=_.NA.apply(0,arguments);return NUE(1)(Fhr(f,zo(f)))};
XjH=function(f){return new Sa(function(H){ja(f()).subscribe(H)})};
Pj=function(f,H,v){if(Yu(v)){var t=v;v=void 0}if(t)return Pj(f,H,v).pipe(nu_(t));t=_.V(Yu(f.addEventListener)&&Yu(f.removeEventListener)?Afs.map(function(y){return function(m){return f[y](H,m,v)}}):Yu(f.addListener)&&Yu(f.removeListener)?bSs.map(iSN(f,H)):Yu(f.on)&&Yu(f.off)?koB.map(iSN(f,H)):[]);
var M=t.next().value,h=t.next().value;return!M&&Jfb(f)?ad(function(y){return Pj(y,H,v)})(Fhr(f)):new Sa(function(y){if(!M)throw new TypeError("ga");
var m=function(){var W=_.NA.apply(0,arguments);return y.next(1<W.length?W:W[0])};
M(m);return function(){return h(m)}})};
iSN=function(f,H){return function(v){return function(t){return f[v](H,t)}}};
Eq=function(){var f=_.NA.apply(0,arguments),H=zo(f);var v=typeof f[f.length-1]==="number"?f.pop():Infinity;return f.length?f.length===1?ja(f[0]):NUE(v)(Fhr(f,H)):CS};
wjT=function(f){return f.length===1&&TUE(f[0])?f[0]:f};
qqR=function(){var f=wjT(_.NA.apply(0,arguments));return KS(function(H,v){var t=[H].concat(_.pS(f)),M=function(){if(!v.closed)if(t.length>0){try{var h=ja(t.shift())}catch(m){M();return}var y=new Dc(v,void 0,$u,$u);v.add(h.subscribe(y));y.add(M)}else v.complete()};
M()})};
cj=function(f){return KS(function(H,v){var t=0;H.subscribe(new Dc(v,function(M){return f.call(void 0,M,t++)&&v.next(M)}))})};
HdH=function(){var f=_.NA.apply(0,arguments);f=wjT(f);return f.length===1?ja(f[0]):new Sa(fRv(f))};
fRv=function(f){return function(H){for(var v=[],t={i$jscomp$220:0};v&&!H.closed&&t.i$jscomp$220<f.length;t={i$jscomp$220:t.i$jscomp$220},t.i$jscomp$220++)v.push(ja(f[t.i$jscomp$220]).subscribe(new Dc(H,function(M){return function(h){if(v){for(var y=0;y<v.length;y++)y!==M.i$jscomp$220&&v[y].unsubscribe();v=null}H.next(h)}}(t))))}};
vOv=function(){var f=_.NA.apply(0,arguments),H=rfH(f),v=wjT(f);return v.length?new Sa(function(t){var M=v.map(function(){return[]}),h=v.map(function(){return!1});
t.add(function(){M=h=null});
for(var y={sourceIndex$jscomp$1:0};!t.closed&&y.sourceIndex$jscomp$1<v.length;y={sourceIndex$jscomp$1:y.sourceIndex$jscomp$1},y.sourceIndex$jscomp$1++)ja(v[y.sourceIndex$jscomp$1]).subscribe(new Dc(t,function(m){return function(W){M[m.sourceIndex$jscomp$1].push(W);M.every(function(I){return I.length})&&(W=M.map(function(I){return I.shift()}),t.next(H?H.apply(null,_.pS(W)):W),M.some(function(I,S){return!I.length&&h[S]})&&t.complete())}}(y),void 0,function(m){return function(){h[m.sourceIndex$jscomp$1]=
!0;
!M[m.sourceIndex$jscomp$1].length&&t.complete()}}(y)));
return function(){M=h=null}}):CS};
tFH=function(f){var H,v,t;return!!f&&typeof f.active==="boolean"&&typeof((H=f.clock)==null?void 0:H.now)==="function"&&((v=f.clock)==null?void 0:v.timeline)!==void 0&&!((t=f.lastMeasurement)==null||!t.timestamp)&&typeof f.equivalentTo==="function"&&typeof f.extrapolateToNow==="function"&&typeof f.extrapolateToTime==="function"&&typeof f.map==="function"&&typeof f.joinWith==="function"};
MFH=function(f){function H(v){return typeof v==="boolean"||typeof v==="string"||typeof v==="number"||v===void 0||v===null}
return H(f)?!0:Array.isArray(f)?f.every(H):typeof f==="object"?Object.keys(f).every(function(v){return typeof v==="string"})&&Object.values(f).every(function(v){return Array.isArray(v)?v.every(H):H(v)}):!1};
hgs=function(f){if(MFH(f))return f;if(tFH(f))return{lastMeasurement:{value:hgs(f.lastMeasurement.value),timestamp:XP(f.lastMeasurement.timestamp,new Af(0,f.lastMeasurement.timestamp.timeline))},active:f.active};try{return JSON.parse(JSON.stringify(f))}catch(H){}return String(f)};
bk=function(f,H){return function(v){return new Sa(function(t){return v.subscribe(function(M){f.timeExecution(H,function(){t.next(M)})()},function(M){f.timeExecution(H,function(){t.error(M)})()},function(){f.timeExecution(H,function(){t.complete()})()})})}};
RgE=function(f,H){var v=!1;return new Sa(function(t){var M=f.setTimeout(function(){v=!0;t.next(!0);t.complete()},H);
return function(){v||f.clearTimeout(M)}})};
VFs=function(f){f=f.global;if(f.fetchLater)return f.fetchLater.bind(f)};
ik=function(f){return KS(function(H,v){var t=null,M=!1,h;t=H.subscribe(new Dc(v,void 0,function(y){h=ja(f(y,ik(f)(H)));t?(t.unsubscribe(),t=null,h.subscribe(v)):M=!0}));
M&&(t.unsubscribe(),t=null,h.subscribe(v))})};
yTv=function(f,H,v){return function(t,M){var h=v,y=H,m=0;t.subscribe(new Dc(M,function(W){var I=m++;y=h?f(y,W,I):(h=!0,W);M.next(y)},void 0,void 0))}};
YZ_=function(f){f=f===void 0?null:f;return KS(function(H,v){var t=!1;H.subscribe(new Dc(v,function(M){t=!0;v.next(M)},void 0,function(){t||v.next(f);
v.complete()}))})};
ku=function(){return KS(function(f,H){f.subscribe(new Dc(H,$u))})};
To=function(f){return KS(function(H,v){H.subscribe(new Dc(v,function(){return v.next(f)}))})};
wU=function(f){return f<=0?function(){return CS}:KS(function(H,v){var t=0;
H.subscribe(new Dc(v,function(M){++t<=f&&(v.next(M),f<=t&&v.complete())}))})};
qe=function(f){var H=H===void 0?gU:H;var v;f=(v=f)!=null?v:md5;return KS(function(t,M){var h,y=!0;t.subscribe(new Dc(M,function(m){var W=H(m);if(y||!f(h,W))y=!1,h=W,M.next(m)}))})};
md5=function(f,H){return f===H};
WS3=function(f){f=f===void 0?$dv:f;return KS(function(H,v){var t=!1;H.subscribe(new Dc(v,function(M){t=!0;v.next(M)},void 0,function(){return t?v.complete():v.error(f())}))})};
$dv=function(){return new Od_};
fd=function(){var f=_.NA.apply(0,arguments);return function(H){return cf3(H,FP.apply(null,_.pS(f)))}};
gO3=function(f){return KS(function(H,v){var t=0;H.subscribe(new Dc(v,function(M){f.call(void 0,M,t++,H)||(v.next(!1),v.complete())},void 0,function(){v.next(!0);
v.complete()}))})};
IR_=function(){return KS(function(f,H){var v=[];f.subscribe(new Dc(H,function(t){v.push(t);1<v.length&&v.shift()},void 0,function(){for(var t=_.V(v),M=t.next();!M.done;M=t.next())H.next(M.value);
H.complete()},function(){v=null}))})};
SZ5=function(f,H){var v=arguments.length>=2;return function(t){return t.pipe(f?cj(function(M,h){return f(M,h,t)}):gU,IR_(),v?YZ_(H):WS3(function(){return new Od_}))}};
vQ=function(f){var H=Yu(f)?f:function(){return f};
return Yu()?KS(function(v,t){var M=H();(void 0)(M).subscribe(t).add(v.subscribe(M))}):function(v){var t=new HQ(v,H);
Yu(v==null?void 0:v.lift)&&(t.lift=v.lift);t.source=v;t.subjectFactory=H;return t}};
Md=function(f){var H=new tT(f,void 0,void 0);return function(v){return vQ(function(){return H})(v)}};
hT=function(f,H){return KS(yTv(f,H,arguments.length>=2))};
Rl=function(){var f=_.NA.apply(0,arguments),H=zo(f);return KS(function(v,t){(H?cf3(f,v,H):cf3(f,v)).subscribe(t)})};
VA=function(f){return KS(function(H,v){var t=null,M=0,h=!1;H.subscribe(new Dc(v,function(y){var m;(m=t)==null||m.unsubscribe();m=M++;ja(f(y,m)).subscribe(t=new Dc(v,function(W){return v.next(W)},void 0,function(){t=null;
h&&!t&&v.complete()}))},void 0,function(){(h=!0,!t)&&v.complete()}))})};
yA=function(f,H){H=H===void 0?!1:H;return KS(function(v,t){var M=0;v.subscribe(new Dc(t,function(h){var y=f(h,M++);(y||H)&&t.next(h);!y&&t.complete()}))})};
dds=function(f,H,v){var t=Yu(f)||H||v?{next:f,error:H,complete:v}:f;return t?KS(function(M,h){M.subscribe(new Dc(h,function(y){var m;(m=t.next)==null||m.call(t,y);h.next(y)},function(y){var m;
(m=t.error)==null||m.call(t,y);h.error(y)},function(){var y;
(y=t.complete)==null||y.call(t);h.complete()}))}):gU};
jlg=function(){var f=_.NA.apply(0,arguments),H=rfH(f);return KS(function(v,t){for(var M=f.length,h=Array(M),y=f.map(function(){return!1}),m=!1,W={i$jscomp$230:0};W.i$jscomp$230<M;W={i$jscomp$230:W.i$jscomp$230},W.i$jscomp$230++)ja(f[W.i$jscomp$230]).subscribe(new Dc(t,function(I){return function(S){h[I.i$jscomp$230]=S;
m||y[I.i$jscomp$230]||(y[I.i$jscomp$230]=!0,(m=y.every(gU))&&(y=null))}}(W),void 0,$u));
v.subscribe(new Dc(t,function(I){m&&(I=[I].concat(_.pS(h)),t.next(H?H.apply(null,_.pS(I)):I))}))})};
ZdB=function(f){try{return!!f&&f.location.href!=null&&slv(f,"foo")}catch(H){return!1}};
JTH=function(f){var H=[],v=0,t;for(t in f)H[v++]=t;return H};
lR3=function(f,H){for(var v in f)if(f[v]==H)return!0;return!1};
Ud3=function(f,H,v){for(var t in f)if(H.call(v,f[t],t,f))return t};
eg_=function(f){if(!f||typeof f!=="object")return f;if(typeof f.clone==="function")return f.clone();if(typeof Map!=="undefined"&&f instanceof Map)return new Map(f);if(typeof Set!=="undefined"&&f instanceof Set)return new Set(f);if(f instanceof Date)return new Date(f.getTime());var H=Array.isArray(f)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(f)||f instanceof DataView?{}:new f.constructor(f.length),v;for(v in f)H[v]=eg_(f[v]);return H};
LS_=function(f){var H=arguments.length;if(H==1&&Array.isArray(arguments[0]))return LS_.apply(null,arguments[0]);if(H%2)throw Error("ka");for(var v={},t=0;t<H;t+=2)v[arguments[t]]=arguments[t+1];return v};
xde=function(f){var H=arguments.length;if(H==1&&Array.isArray(arguments[0]))return xde.apply(null,arguments[0]);for(var v={},t=0;t<H;t++)v[arguments[t]]=!0;return v};
_.YO=function(f){return new ta3(f[0].toLowerCase())};
Bre=function(f){for(var H=_.NA.apply(1,arguments),v=f[0],t=0;t<f.length-1;t++)v+=String(H[t]),v+=f[t+1];H=document.implementation.createHTMLDocument("");t=H.createElement("style");H.head.appendChild(t);H=t.sheet;H.insertRule(v,0);if(H.cssRules.length===1&&(v=H.cssRules[0],v instanceof CSSStyleRule))return new y1(v.cssText.replace(/</g,"\\3C "))};
zgv=function(f){try{return new URL(f,window.document.baseURI)}catch(H){return new URL("about:invalid")}};
FSv=function(f,H){var v=H.createRange();v.selectNode(H.body);f=iD(f);return v.createContextualFragment(kU(f))};
rTR=function(f){f=f.nodeName;return typeof f==="string"?f:"FORM"};
KS_=function(f){f=f.nodeType;return f===1||typeof f!=="number"};
WQ=function(f,H,v){f.setAttribute(H,v)};
Dds=function(f){return f.parts.map(function(H){var v=H.descriptor;return""+H.url+(v?" "+v:"")}).join(" , ")};
_.gr=function(f){var H=_.NA.apply(1,arguments);if(H.length===0)return _.FM(f[0]);for(var v=f[0],t=0;t<H.length;t++)v+=encodeURIComponent(H[t])+f[t+1];return _.FM(v)};
_.Il=function(f,H){f=_.re(f).toString();var v=f.split(/[?#]/),t=/[?]/.test(f)?"?"+v[1]:"";return oOH(v[0],t,/[#]/.test(f)?"#"+(t?v[2]:v[1]):"",H)};
oOH=function(f,H,v,t){function M(y,m){y!=null&&(Array.isArray(y)?y.forEach(function(W){return M(W,m)}):(H+=h+encodeURIComponent(m)+"="+encodeURIComponent(y),h="&"))}
var h=H.length?"&":"?";t.constructor===Object&&(t=Object.entries(t));Array.isArray(t)?t.forEach(function(y){return M(y[1],y[0])}):t.forEach(M);
return _.FM(f+H+v)};
SF=function(f,H,v,t){this.top=f;this.right=H;this.bottom=v;this.left=t};
nOT=function(f){f=f.global;if(f.PendingGetBeacon)return f.PendingGetBeacon};
jF=function(f){return function(H){return H.pipe(pQR(f,vQ(new dr)))}};
sZ=function(f){return function(H){return H.pipe(pQR(f,Md(1)))}};
pQR=function(f,H){function v(t){return new Sa(function(M){return t.subscribe(function(h){ZR(f,function(){return void M.next(h)},3)},function(h){ZR(f,function(){return void M.error(h)},3)},function(){ZR(f,function(){return void M.complete()},3)})})}
return Id(v,Deb(),H,od(),v)};
aRs=function(f){var H=Ql5(f);return H===null?new JT(null):H.pipe(nS(function(v){v=v.serialize();if(uUr)v=_.Mr.btoa(v);else{for(var t=[],M=0,h=0;h<v.length;h++){var y=v.charCodeAt(h);y>255&&(t[M++]=y&255,y>>=8);t[M++]=y}v=_.QG(t)}return v}),wU(1),sZ(f.queue))};
PhR=function(f){var H=H===void 0?{}:H;if(typeof Event==="function")return new Event(f,H);if(typeof document!=="undefined"){var v=document.createEvent("CustomEvent");v.initCustomEvent(f,H.bubbles||!1,H.cancelable||!1,H.detail);return v}throw Error();};
GfE=function(f){return typeof f==="string"?document.getElementById(f):f};
EOe=function(f){var H=!1;H=H===void 0?!1:H;if(f.tagName==="IMG"){if(f.complete&&(!f.naturalWidth||!f.naturalHeight))return!0;var v;if(H&&((v=f.style)==null?void 0:v.display)==="none")return!0}var t,M;return Ch_.test((t=f.getAttribute("width"))!=null?t:"")&&Ch_.test((M=f.getAttribute("height"))!=null?M:"")};
Nre=function(f,H){if(f.tagName==="IMG")return f.naturalWidth&&f.naturalHeight?!0:!1;try{if(f.readyState)var v=f.readyState;else{var t,M;v=(t=f.contentWindow)==null?void 0:(M=t.document)==null?void 0:M.readyState}return v==="complete"}catch(h){return H===void 0?!1:H}};
cTv=function(f){f||(f=function(H,v,t){H.addEventListener(v,t)});
return f};
idg=function(f,H){var v=XQH();v=v===void 0?new ATR:v;if(f=GfE(f)){var t=cTv(t);for(var M=!1,h=function(n){M||(M=!0,H(n))},y,m=2,W=0;W<bdR.length;++W)if(bdR[W]===f.tagName){m=3;
y=[f];break}y||(y=f.querySelectorAll(bdR.join(",")));var I=0,S=0,d=!0,Z=f=!1;W={};for(var l=0;l<y.length;W={isImg:void 0},l++){var L=y[l];if(!EOe(L))if(W.isImg=L.tagName==="IMG",Nre(L,v.crossDomainLoadedDefault))f=!0,W.isImg&&(d=!0);else{I++;var r=function(n){return function(Q){I--;!I&&d&&h(m);n.isImg&&(Q=Q&&Q.type==="error",S--,Q||(d=!0),!S&&Z&&d&&h(m))}}(W);
t(L,"load",r);W.isImg&&(S++,t(L,"error",r))}}S===0&&(d=!0);y=null;y=_.Mr.document.readyState==="complete";if(I===0&&!f&&y)m=5;else if(I||!f){t(_.Mr,"load",function(){!v.pendingImagesBlockLoad||!S&&d?h(4):Z=!0});
return}h(m)}};
kf5=function(f,H,v){if(f)for(var t=0;f!=null&&t<500&&!v(f);++t)f=H(f)};
Tr5=function(f,H){kf5(f,function(v){try{return v===v.parent?null:v.parent}catch(t){}return null},H)};
wQB=function(f,H){if(f.tagName=="IFRAME")H(f);else{f=f.querySelectorAll("IFRAME");for(var v=0;v<f.length&&!H(f[v]);++v);}};
qZg=function(f){return(f=f.ownerDocument)&&(f.parentWindow||f.defaultView)||null};
fPT=function(f,H,v){try{var t=JSON.parse(v.data)}catch(y){}if(typeof t==="object"&&t&&t.type==="creativeLoad"){var M=qZg(f);if(v.source&&M){var h;Tr5(v.source,function(y){try{if(y.parent===M)return h=y,!0}catch(m){}});
h&&wQB(f,function(y){if(y.contentWindow===h)return H(t),!0})}}};
H93=function(f){return typeof f==="string"?document.getElementById(f):f};
hd_=function(){var f={};return f[0]=_.gr(vlB,"current"),f[1]=_.gr(tzg),f[2]=_.gr(MzN),f};
lh=function(f,H){return f.left===H.left&&f.top===H.top&&f.width===H.width&&f.height===H.height};
Rdb=function(f,H){return{left:Math.max(f.left,H.left),top:Math.max(f.top,H.top),width:Math.max(0,Math.min(f.left+f.width,H.left+H.width)-Math.max(f.left,H.left)),height:Math.max(0,Math.min(f.top+f.height,H.top+H.height)-Math.max(f.top,H.top))}};
Vzs=function(f,H){return{left:Math.round(f.left+H.x),top:Math.round(f.top+H.y),width:f.width,height:f.height}};
yxe=function(f,H,v){if(f&&H!==null&&H!=H.top){if(!H.top)return new _.eF(-12245933,-12245933);H=H.top}try{return(v===void 0?0:v)?(new _.eF(H.innerWidth,H.innerHeight)).round():_.Ld(H).round()}catch(t){return new _.eF(-12245933,-12245933)}};
Y1E=function(f,H,v){try{if(f){if(!H.top)return new SF(-12245933,-12245933,-12245933,-12245933);H=H.top}var t=yxe(f,H,v),M=t.height,h=t.width;if(h===-12245933)return new SF(h,h,h,h);var y=xO(BQ(H.document)),m=y.x,W=y.y;return new SF(W,m+h,W+M,m)}catch(I){return new SF(-12245933,-12245933,-12245933,-12245933)}};
mjg=function(f){var H;return(H=f.google_tag_data)!=null?H:f.google_tag_data={}};
$jR=function(f){var H,v;return typeof((H=f.navigator)==null?void 0:(v=H.userAgentData)==null?void 0:v.getHighEntropyValues)==="function"};
O9R=function(f){if(!$jR(f))return null;var H=mjg(f);if(H.uach_promise)return H.uach_promise;f=f.navigator.userAgentData.getHighEntropyValues(WvB).then(function(v){H.uach!=null||(H.uach=v);return v});
return H.uach_promise=f};
LvT=function(f){var H;return gle(IPv(S1T(djB(jNR(sNR(Z9s(Jxb(lP3(new Uj5,f.architecture||""),f.bitness||""),f.mobile||!1),f.model||""),f.platform||""),f.platformVersion||""),f.uaFullVersion||""),((H=f.fullVersionList)==null?void 0:H.map(function(v){var t=new eds;t=_.rr(t,1,v.brand);return _.rr(t,2,v.version)}))||[]),f.wow64||!1)};
xjR=function(f){var H,v;return(v=(H=O9R(f))==null?void 0:H.then(function(t){return LvT(t)}))!=null?v:null};
BAE=function(f,H){return new Sa(function(v){var t=!1,M=Array(H.length);M.fill(void 0);var h=new Set,y=new Set,m=function(d,Z){f.running?(M[Z]=d,h.add(Z),t||(t=!0,ZR(f,function(){t=!1;v.next(_.kv(M))},1))):v.error(new Kd(Z))},W=function(d,Z){y.add(Z);
h.add(Z);ZR(f,function(){v.error(d)},1)},I=function(d){y.add(d);
ZR(f,function(){y.size===H.length&&v.complete()},1)},S=H.map(function(d,Z){return d.subscribe(function(l){return void m(l,Z)},function(l){return void W(l,Z)},function(){return void I(Z)})});
return function(){S.forEach(function(d){return void d.unsubscribe()})}})};
rxv=function(f,H,v){function t(){if(H.debugChannel){var n=H.debugChannel,Q=n.next;var C={creativeId:H.debugNames.getName(v),requiredSignals:M,signals:Object.assign({},h),hasPrematurelyCompleted:y,errorMessage:m,erroredSignalKey:W};C={specMajor:2,specMinor:0,specPatch:0,timestamp:XP(H.timeProvider.now(),new Af(0,H.timeProvider.timeline)),instanceId:H.debugNames.getName(H.symbol),creativeState:C};Q.call(n,C)}}
for(var M=Object.keys(f),h={},y=!1,m=null,W=null,I={},S=new Set,d=[],Z=[],l=_.V(M),L=l.next(),r={};!L.done;r={key$jscomp$396:void 0},L=l.next())r.key$jscomp$396=L.value,L=f[r.key$jscomp$396],L instanceof JT?(I[r.key$jscomp$396]=L.value,S.add(r.key$jscomp$396),H.debugChannel&&(h[String(r.key$jscomp$396)]=hgs(L.value))):(L=L.pipe(qe(function(n,Q){return tFH(n)||tFH(Q)?!1:n===Q}),nS(function(n){return function(Q){H.debugChannel&&(h[String(n.key$jscomp$396)]=hgs(Q),t());
var C={};return C[n.key$jscomp$396]=Q,C}}(r)),ik(function(n){return function(Q){if(Q instanceof Kd)throw new zdE(String(n.key$jscomp$396));
throw Q;}}(r)),dds(function(n){return function(){S.add(n.key$jscomp$396)}}(r),function(n){return function(Q){W=String(n.key$jscomp$396);
m=String(Q);t()}}(r),function(n){return function(){S.has(n.key$jscomp$396)||(y=!0,t())}}(r))),Z.push(r.key$jscomp$396),d.push(L));
(f=Object.keys(h).length>0)&&t();l=BAE(H.queue,d).pipe(ik(function(n){if(n instanceof Kd)throw new FvH(String(Z[n.inputObservableIndex]));throw n;}),nS(function(n){return Object.freeze(Object.assign.apply(Object,[{},
I].concat(_.pS(n))))}));
return(d=d.length>0)&&f?Eq(FP(Object.freeze(I)),l):d?l:FP(Object.freeze(I))};
KvH=function(f,H,v,t,M){return f.performanceMonitor.timeExecution.bind(f.performanceMonitor)(733,function(){var h={};try{return H.pipe(ik(function(y){t(Object.assign({},h,{error:y}));return CS}),ad(function(y){try{var m=v(f,y)}catch(I){return t(Object.assign({},h,{error:I instanceof Error?I:String(I)})),CS}var W={};
return rxv(m,f,y.symbol).pipe(dds(function(I){W=I}),Md(1),od()).pipe(M,ik(function(I){t(Object.assign({},W,{error:I}));
return CS}),fd(void 0),nS(function(){return!0}))})).pipe(hT(function(y){return y+1},0),ik(function(y){t(Object.assign({},h,{error:y}));
return CS}))}catch(y){return t(Object.assign({},h,{error:y})),CS}})()};
DR=function(f){var H=new Map;if(typeof f!=="object"||f===null)return H;Object.values(f).forEach(function(v){v&&typeof v.extrapolateToNow==="function"&&(H.has(v.clock.timeline)||H.set(v.clock.timeline,v.clock.now()))});
return H};
Djv=function(f,H){return typeof f==="string"?encodeURIComponent(f):typeof f==="number"?String(f):Array.isArray(f)?f.map(function(v){return Djv(v,H)}).join(","):f instanceof Af?f.toString():f&&typeof f.extrapolateToNow==="function"?Djv(f.extrapolateUsingTimestampMap(H).value,H):f===!0?"1":f===!1?"0":f===void 0||f===null?null:f instanceof ol5?nl_(f):[f.top,
f.left,f.top+f.height,f.left+f.width].join()};
p_B=function(f,H){f=Object.entries(f).map(function(v){var t=_.V(v);v=t.next().value;t=t.next().value;t=Djv(t,H);return t===null?"":v+"="+t}).filter(function(v){return v!==""});
return f.length?f.join("&"):""};
aPN=function(f,H){var v=QN3,t=uHT;H=H===void 0?.01:H;return function(M){H>0&&Math.random()<=H&&(f.global.HTMLFencedFrameElement&&f.global.fence&&typeof f.global.fence.reportEvent==="function"&&f.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),M=Object.assign({},M,{errorMessage:M.error instanceof Error&&M.error.message?M.error.message:String(M.error),errorStack:M.error instanceof Error&&M.error.stack?String(M.error.stack):null,errorName:M.error instanceof
Error&&M.error.name?String(M.error.name):null,errorContext:String(f.performanceMonitor.timedFunctionContext),errorEscapedQueryId:M.escapedQueryId}),v(Object.assign({},M,{payloadMapper:function(){return function(h){try{return t(Object.assign({},h))}catch(y){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),DR(M)).forEach(function(h){f.beaconFactory.makeBeacon(h).sendNow()}))}};
PSv=function(){var f=_.NA.apply(0,arguments);return function(H){var v=H.pipe(Md(1),od());H=f.map(function(t){return v.pipe(t,fd(!0))});
return Q1(H).pipe(wU(1),ku())}};
GOb=function(){var f=_.NA.apply(0,arguments);return function(H){var v=H.pipe(Md(1),od());H=f.map(function(t){return v.pipe(t,fd(!0))});
return Eq.apply(null,_.pS(H)).pipe(wU(1),ku())}};
CSR=function(f,H){return function(v){var t=v.pipe(Md(1),od());v=t.pipe(f,fd(!0));t=t.pipe(Id(H,Md(),od()),fd(!0));v=Q1([v,t]);return HdH(v,t).pipe(wU(1),ku())}};
ElN=function(f,H,v){v(!0)};
NAv=function(f,H){return Id(VA(function(v){var t=f(v),M=H(v),h={};return t&&M&&h?new Sa(function(y){M(t,h,function(m){y.next(Object.assign({},v,{canEmit:m}));y.complete()});
return function(){}}):ol}),cj(function(v){return v.canEmit}))};
cxT=function(f){var H={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(v){return v.pipe(VA(function(t){return new Sa(function(M){function h(){m.disconnect();W.unsubscribe()}
var y=f.MutationObserver;if(y&&t.ref!==void 0){var m=new y(function(I){M.next(I)});
m.observe(t.ref,H);var W=t.JSC$9351_released.subscribe(h);return h}})}))}};
X_s=function(f){if(f.measurementDeferralState===3)return null;if(f.timeOnScreenReason!==void 0){var H=f.creativeFound===!1?"n":null;if(H!==null)return H}return f.geometricMeasurementErrors instanceof nd?"msf":f.contextValidationErrors instanceof pd?"c":f.contextVisibilityKnown===!1?"pv":f.geometricMeasurementErrors||f.contextValidationErrors?"x":null};
b9v=function(f,H){return f.replace(AxE,function(v,t){try{var M=_.QA.get(H,t);if(M==null||M.toString()==null)return v;M=M.toString();if(M==""||!_.ms(M==null?"":String(M)))return encodeURIComponent(M).replace(/%2C/g,",")}catch(h){}return v})};
i9H=function(f,H){var v=Object.assign({},f),t=f.userAgentClientHints;v=(delete v.userAgentClientHints,v);v=f.payloadMapper(v);var M=p_B(v,H);return _.uh(f.urlPrefixes,function(h){var y="";typeof t==="string"&&(y="&"+p_B({uach:t},H));var m={};return b9v(h,(m.VIEWABILITY=M,m))+y})};
QN3=function(f,H){var v=f.payloadMapper(f),t=p_B(v,H);return t?_.uh(f.urlPrefixes,function(M){M=M.indexOf("?")>=0?M:M+"?";M="?&".indexOf(M.slice(-1))>=0?M:M+"&";return M+t}):f.urlPrefixes};
kOr=function(){return Id(cj(function(f){return f!==void 0}),nS(function(f){return f}))};
TA_=function(f){return Id(nS(function(){return!0}),Rl(!1),sZ(f))};
w_T=function(f){return f.length<=0?CS:Q1(f.map(function(H){var v=0;return H.pipe(nS(function(t){return{index:v++,value:t}}))})).pipe(cj(function(H){return H.every(function(v){return v.index===H[0].index})}),nS(function(H){return H.map(function(v){return v.value})}))};
q1E=function(f,H){f.currentState&&(f.previousState=f.currentState);f.currentState=H;f.previousState&&f.previousState.value?(H=Math.max(0,XP(H.timestamp,f.previousState.timestamp)),f.totalTime+=H,f.consecutiveTime+=H):f.consecutiveTime=0;return f};
ftR=function(){return Id(hT(q1E,{totalTime:0,consecutiveTime:0}),nS(function(f){return f.totalTime}))};
H4g=function(){return Id(hT(q1E,{totalTime:0,consecutiveTime:0}),nS(function(f){return f.consecutiveTime}))};
vmN=function(f,H){return function(v){return w_T(H.map(function(t){return v.pipe(f(t))}))}};
t7s=function(){var f;return Id(dds(function(H){return void(f=H.timestamp)}),H4g(),nS(function(H){return{timestamp:f,
value:Math.round(H)}}))};
M7g=function(f,H){return lh(f.topWindowViewportExternalGeometry,H.topWindowViewportExternalGeometry)&&lh(f.elementGeometry,H.elementGeometry)&&lh(f.exposedViewportLocalGeometry,H.exposedViewportLocalGeometry)&&lh(f.intersectionGeometry,H.intersectionGeometry)&&f.elementGeometrySourceName===H.elementGeometrySourceName&&f.measurementRequests===H.measurementRequests&&f.viewportGeometrySourceName===H.viewportGeometrySourceName&&f.viewportLocalAppOffset.x===H.viewportLocalAppOffset.x&&f.viewportLocalAppOffset.y===
H.viewportLocalAppOffset.y};
ymr=function(f,H){return function(v){return function(t){var M=t.pipe(vQ(new dr),od());t=v.element.pipe(qe());M=M.pipe(nS(function(h){return h.value}));
return Q1([t,M,H]).pipe(nS(function(h){var y=_.V(h);h=y.next().value;var m=y.next().value;y=y.next().value;if(h.ref===void 0)var W={top:0,left:0,width:0,height:0};else{W=h.ref.getBoundingClientRect();var I=h.ref,S=f.global,d=new _.al(0,0),Z=PQ(_.Gf(I));if(slv(Z,"parent")){do{if(Z==S)var l=_.Cd(I);else l=hiB(I),l=new _.al(l.left,l.top);d.x+=l.x;d.y+=l.y}while(Z&&Z!=S&&Z!=Z.parent&&(I=Z.frameElement)&&(Z=Z.parent))}W={top:d.y,left:d.x,width:W.width,height:W.height}}W=Vzs(W,m.viewportLocalAppOffset);
S=Rdb(W,m.exposedViewportLocalGeometry);d=f.timeProvider.now();Z=Object;I=Z.assign;if(y!==2||f.inCrossDomainIframe||S.width<=0||S.height<=0)var L=!1;else try{var r=f.document.elementFromPoint(S.left+S.width/2,S.top+S.height/2);L=r?!RiE(r,h):!1}catch(n){L=!1}return{timestamp:d,value:I.call(Z,{},m,{elementGeometrySourceName:"geo",intersectionGeometry:L?V7s.intersectionGeometry:S,elementGeometry:W})}}),jF(f.queue))}}};
RiE=function(f,H,v){v=v===void 0?0:v;return f.ref===void 0||H.ref===void 0?!1:f.ref===H.ref||_.EZ(H.ref,function(t){return t===f.ref})?!0:H.ref.ownerDocument&&H.ref.ownerDocument.defaultView&&H.ref.ownerDocument.defaultView===H.ref.ownerDocument.defaultView.top?!1:v<10&&H.ref.ownerDocument&&H.ref.ownerDocument.defaultView&&H.ref.ownerDocument.defaultView.frameElement?RiE(f,new Nd(H.ref.ownerDocument.defaultView.frameElement),v+1):!0};
$kb=function(f){return function(H){return H.pipe(f.ResizeObserver?YgR(f):mke(f),Md(1),od())}};
YgR=function(f){return function(H){return H.pipe(VA(function(v){var t=f.ResizeObserver;if(!t||v.ref===void 0)return FP(V7s.elementGeometry);var M=(new Sa(function(h){function y(){v.ref!==void 0&&m.unobserve(v.ref);m.disconnect();W.unsubscribe()}
if(v.ref===void 0)return h.complete(),function(){};
var m=new t(function(I){I.forEach(function(S){h.next(S)})});
m.observe(v.ref);var W=v.JSC$9351_released.subscribe(y);return y})).pipe(bk(f.performanceMonitor,736),nS(function(h){return h.contentRect}));
return Eq(FP(v.ref.getBoundingClientRect()),M)}),qe(lh))}};
mke=function(f){return function(H){var v=H.pipe(cxT(f)),t=f.onResize;v=Eq(H.pipe(nS(function(){return PhR("resize")})),v,t);
return Q1(H,v).pipe(bk(f.performanceMonitor,737),nS(function(M){M=_.V(M).next().value;return M.ref===void 0?void 0:M.ref.getBoundingClientRect()}),kOr(),qe(lh))}};
gmv=function(f,H){var v=W7E(f,H).pipe(Md(1),od());return function(t){return function(M){M=M.pipe(VA(function(h){return h.element}),qe());
return Q1([v,M]).pipe(VA(function(h){var y=_.V(h);h=y.next().value;y=y.next().value;return O43(f,h.intersectionObserver,$kb(f),h.observations,t,h.flushRecords,y)}),jF(f.queue))}}};
Itr=function(f){return nS(function(H){return H.value.viewportGeometrySourceName!=="nio"?H:Object.assign({},H,{value:Object.assign({},H.value,{exposedViewportLocalGeometry:cQ(f,!0),topWindowViewportExternalGeometry:cQ(f,!0)})})})};
Sgv=function(f,H){return FP(H).pipe(f,nS(function(){return H}))};
W7E=function(f,H){return f.timeProvider.timeline!==dkg?rU(new nd(2)):f.MutationObserver?typeof IntersectionObserver==="undefined"?rU(new nd(0)):(new Sa(function(v){var t=new dr,M=new AT(t.next.bind(t),{threshold:[].concat(_.pS(H))});v.next({observations:t.pipe(bk(f.performanceMonitor,735)),intersectionObserver:M,flushRecords:function(h){h=M.takeRecords(h);h.length>0&&t.next(h)}})})).pipe(wU(1),Md(1),od()):rU(new nd(1))};
jhT=function(f){return lcB(f.sort(function(H,v){return H.time-v.time}),Khv)};
O43=function(f,H,v,t,M,h,y){return new Sa(function(m){function W(){L||(L=!0,y.ref!==void 0&&H.unobserve(M,y.ref),S.unsubscribe(),l.unsubscribe(),Z.unsubscribe(),r.unsubscribe())}
if(y.ref!==void 0){shR(H,M);H.observe(M,y.ref);var I=new bh({timestamp:f.timeProvider.now(),value:Object.assign({},V7s,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),S=t.pipe(ad(function(n){return jhT(n)}),cj(function(n){return n.target===y.ref}),nS(function(n){return{timestamp:new Af(n.time,dkg),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:n.rootBounds||ih,topWindowViewportExternalGeometry:n.rootBounds||cQ(f,!0),measurementRequests:d,elementGeometrySourceName:"nio",intersectionGeometry:n.intersectionRect,elementGeometry:n.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:n.isIntersecting,isV2Visible:n.isVisible}}}),vQ(I),od()).subscribe(m),d=new dr,Z=d.subscribe(function(){h(M);
m.next({timestamp:f.timeProvider.now(),value:I.value.value});y.ref!==void 0&&(H.unobserve(M,y.ref),H.observe(M,y.ref))}),l=Sgv(v,y).subscribe(function(){d.next()}),L=!1,r=y.JSC$9351_released.subscribe(function(){return W()});
return W}})};
Z4H=function(f,H){var v=f.getOnBackgrounded().pipe(nS(function(){return"b"}));
return HdH(H,v).pipe(wU(1),sZ(f.queue))};
kO=function(f){return function(H){var v;return H.pipe(dds(function(t){return void(v=t.timestamp)}),nS(function(t){return t.value}),f,nS(function(t){return{timestamp:v,
value:t}}))}};
JmH=function(f){return f.intersectionGeometry.width*f.intersectionGeometry.height/(f.elementGeometry.width*f.elementGeometry.height)};
Tf=function(f,H,v){v=v===void 0?function(t,M){return t===M}:v;
return f.timestamp.equals(H.timestamp)&&v(f.value,H.value)};
qd=function(f,H){return H.pipe(nS(function(v){return new wr(f.timeProvider,{timestamp:f.timeProvider.now(),value:v})}))};
ltb=function(f){return function(H){return H.pipe(jlg(f),nS(function(v){var t=_.V(v);v=t.next().value;t=t.next().value;var M=v.value;return{timestamp:v.timestamp,value:M>=1?!0:M<=0?!1:M>=t}}))}};
eig=function(){return Id(cj(function(f,H){return H>0}),UkB,Rl(-1),qe())};
L7N=function(f,H,v){return f?Q1([H,v]).pipe(cj(function(t){var M=_.V(t);t=M.next().value;M=M.next().value;return t.timestamp.equals(M.timestamp)}),nS(function(t){var M=_.V(t);
t=M.next().value;M=M.next().value;return t.value>M.value?t:M})):H};
zi3=function(f){return function(H){var v=H.pipe(xkg),t=H.pipe(Bpg);return f instanceof Sa?f.pipe(VA(function(M){return L7N(M,v,t)})):L7N(f.value,v,t)}};
atg=function(f,H,v,t){var M=t.geometryIsOccluded,h=t.exposureThreshold,y=t.wasLargeAdAtRender,m=t.allowLargeAdThreshold,W=t.largeAdExposureThreshold,I=t.mayUseViewportShareExposure,S=t.hasMeasurementStarted;t=t.useIntersectionObserverV2;H=F7r(f,v,H);v=rmT(f,v);t=K7r(H,t);var d=DkR(f,M,I,H),Z=d.pipe(nS(function(A){return A.value}),qe(),sZ(f),hT(function(A,X){return Math.max(A,X)},0)),l=d.pipe(nS(function(A){return A.value}),eig(),sZ(f)),L=H.pipe(omT,nS(function(A){return A.value}),wU(2),qe(),sZ(f));
y=nme(f,H,y,m);var r=y.pipe(Rl(!1),qe(),nS(function(A){return A?W:h}));
m=d.pipe(ltb(r),qe(),sZ(f));var n=Q1([m,H]).pipe(cj(function(A){var X=_.V(A);A=X.next().value;X=X.next().value;return A.timestamp.equals(X.timestamp)}),nS(function(A){var X=_.V(A);
A=X.next().value;X=X.next().value;return{visible:A.value,geometry:X.value.elementGeometry}}),hT(function(A,X){return!X.visible&&A.visible?A:X},{visible:!1,
geometry:ih}),nS(function(A){return A.geometry}),Rl(ih),sZ(f),qe(lh));
I=I instanceof Sa?I.pipe(qe(),To()):ol;r=Q1([I,r]).pipe(To());var Q=H.pipe(cj(function(A){return A.value.viewportGeometrySourceName!=="ns"&&A.value.elementGeometrySourceName!=="ns"}),hT(function(A){return A+1},0),Rl(0),sZ(f)),C=v.pipe(To(!0),Rl(!1),sZ(f));
C=Q1([S,C]).pipe(nS(function(A){var X=_.V(A);A=X.next().value;X=X.next().value;return A&&!X}),sZ(f));
var w=H.pipe(pMH,qe()),c=w.pipe(nS(function(A){return A.value}),hT(function(A,X){return Math.max(A,X)},0),qe(),sZ(f));
f=w.pipe(nS(function(A){return A.value}),eig(),sZ(f));
return{shouldResetExposureSignals:I,shouldResetViewabilitySignals:r,geometrySignals:{readyGeometryWithDefault:H,measurementStrategy:H.pipe(Qh5),creativePosition:n.pipe(qe(lh)),visible:m.pipe(qe(Tf)),timestampedExposure:d.pipe(qe(Tf)),maximumExposure:Z,minimumExposure:l,browserSize:H.pipe(uTN,qe(_.VM)),timestampedScreenShare:w,maxScreenShare:c,minScreenShare:f,geometricMeasurementErrors:v,measurementRequests:H.pipe(nS(function(A){return A.value.measurementRequests})),
isLargeAd:y,geometryIsOccluded:M,hasMeasurementStarted:S,geometryMeasurable:C,validMeasurementCount:Q,loadTimeExposure:L,v2VisibilityBitVector:t}}};
rmT=function(f,H){return H.pipe(cj(function(){return!1}),nS(function(v){return v}),ik(function(v){return f9(new JT(v),f)}))};
F7r=function(f,H,v){return H.pipe(qqR(ol),sZ(f)).pipe(qe(function(t,M){return Tf(t,M,M7g)}),Rl({timestamp:v.now(),
value:V7s}),sZ(f))};
DkR=function(f,H,v,t){v=t.pipe(zi3(v),kO(nS(function(M){return Math.round(M*100)/100})),sZ(f));
return H instanceof JT?v:Q1([v,H]).pipe(nS(function(M){var h=_.V(M);M=h.next().value;h=h.next().value;return{timestamp:h.timestamp.maximum(M.timestamp),value:h.value?0:M.value}}),qe(Tf),sZ(f))};
nme=function(f,H,v,t){H=[H.pipe(nS(function(M){return M.value.elementGeometry.width*M.value.elementGeometry.height>=242500}))];
v instanceof Sa&&H.push(v.pipe(nS(function(M){return!!M})));
v=Q1(H);return t?v.pipe(nS(function(M){return M.some(function(h){return h})}),Rl(!1),qe(),sZ(f)):f9(new JT(!1),f)};
K7r=function(f,H){f=Q1([f,H]).pipe(nS(function(M){var h=_.V(M);M=h.next().value;if(h.next().value&&M.value.isIntersecting)return M.value.isV2Visible}),qe());
var v=f.pipe(nS(function(M){return M===void 0?!0:M}),hT(function(M,h){return M||!h},!1)),t=f.pipe(hT(function(M,h){return h===void 0?M:h?!1:M!=null?M:!0},void 0),nS(function(M){return!!M}));
return Q1([H,vOv(f,v,t)]).pipe(nS(function(M){var h=_.V(M);M=h.next().value;var y=_.V(h.next().value);h=y.next().value;var m=y.next().value;y=y.next().value;var W=0;if(!M)return 0;if(h===void 0)return 16;h&&(W|=1);h||(W|=2);m&&(W|=4);y&&(W|=8);return W}))};
cmb=function(f,H,v,t,M){var h=PgH.timeThresholdMs;var y=y===void 0?new GLg(H,t):y;return(new Sa(function(m){var W=v.pipe(Rl(void 0),VA(function(){return Cgg(M)})).pipe(nS(function(I){var S=I.value;
I=I.timestamp;var d=S.visible;S=S.consecutiveViewTime;var Z=S>=h;Z||!d?EmH(y):(I=Math.max(0,XP(H.now(),I)),NpR(y,Math.max(0,h-S-I)));return Z}),hT(function(I,S){return S||I},!1),qe()).subscribe(m);
return function(){y.dispose();W.unsubscribe()}})).pipe(yA(function(m){return!m},!0),sZ(f))};
Cgg=function(f){return w_T([f,f.pipe(t7s())]).pipe(nS(function(H){var v=_.V(H);H=v.next().value;v=v.next().value;return{timestamp:H.timestamp,value:{visible:H.value,consecutiveViewTime:v.value}}}),qe(function(H,v){return Tf(H,v,function(t,M){return t.consecutiveViewTime===M.consecutiveViewTime&&t.visible===M.visible})}))};
XMN=function(){return Id(H4g(),hT(function(f,H){return Math.max(f,H)},0),nS(function(f){return Math.round(f)}))};
Amg=function(f){return Id(ltb(FP(f)),XMN())};
b4g=function(f,H){return H instanceof Sa?H.pipe(VA(function(v){return(v=v?15:null)?rU(new nd(v)):f})):(H=H.value?15:null)?rU(new nd(H)):f};
i4E=function(f){var H=new nd(13);if(f.length<1)return{chain:CS,capturedErrors:CS};var v=new dr,t=f[0];return{chain:f.slice(1).reduce(function(M,h){return M.pipe(ik(function(y){v.next(y);return h}))},t).pipe(ik(function(M){v.next(M);
return rU(H)}),vQ(new dr),od()),
capturedErrors:v}};
kL3=function(f,H){var v=f.pipe(vQ(new dr),od());return VA(function(t){return v.pipe(H(t))})};
wMs=function(f,H){if(f.inCrossDomainIframe)return rU(new nd(6));var v=new dr;return Eq(FP({}),H,v).pipe(nS(function(){return{timestamp:f.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:Tpb(f),topWindowViewportExternalGeometry:cQ(f,!0),measurementRequests:v,viewportLocalAppOffset:{x:0,y:0}}}}),jF(f.queue))};
Tpb=function(f){var H=cQ(f,!1);if(!f.inIframe||!ZdB(f.global.parent)||f.global.parent===f.global)return H;var v=new H_(f.global.parent,f.debugChannel);v.beaconFactory=f.beaconFactory;v=Tpb(v);f=f.global.frameElement.getBoundingClientRect();return Rdb(Vzs(Rdb(v,f),{x:H.left-f.left,y:H.top-f.top}),H)};
qg5=function(f){if(f.prerendering)return 3;var H;return(H={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[f.visibilityState||f.webkitVisibilityState||f.mozVisibilityState||""])!=null?H:0};
fpN=function(f){return f.document.JSC$9362_onVisibilityChange.pipe(nS(function(H){return H==="visible"}),qe(),sZ(f.queue))};
Hcg=function(f,H,v){var t;return H.pipe(qe(),VA(function(M){return v.pipe(nS(function(){if(!t){t=!0;try{M.next()}finally{t=!1}}return!0}))}),Rl(!1),sZ(f.queue))};
vk5=function(f){return Id(kO(nS(function(H){return H>=1?!0:H<=0?!1:H>=f})),ftR(),nS(function(H){return Math.round(H)}))};
MKR=function(f,H,v,t,M){var h=tKT;if(h.length>1)for(var y=0;y<h.length-1;y++)if(h[y]<h[y+1])throw Error();y=M.pipe(Rl(void 0),VA(function(){return v.pipe(t7s())}),qe(),sZ(f));
M=M.pipe(Rl(void 0),VA(function(){return v.pipe(XMN())}),qe(),sZ(f));
return{totalMeasurementTime:t.pipe(Rl(void 0),VA(function(){return H.pipe(nS(function(m){return{timestamp:m.timestamp,value:!0}}),ftR())}),qe(),sZ(f)),
totalUnviewedTime:t.pipe(Rl(void 0),VA(function(){return H.pipe(nS(function(m){return{timestamp:m.timestamp,value:m.value===0}}),ftR())}),qe(),sZ(f)),
maxTimeOnScreen:t.pipe(Rl(void 0),VA(function(){return H.pipe(vmN(Amg,h))}),qe(_.VM),sZ(f)),
timeOnScreen:t.pipe(Rl(void 0),VA(function(){return H.pipe(vmN(vk5,h),nS(function(m){return m.map(function(W,I){return I>0?W-m[I-1]:W})}))}),qe(_.VM),sZ(f)),
maxConsecutiveViewTime:M,consecutiveViewTime:y.pipe(qe(Tf),sZ(f))}};
RpE=function(f){var H=!0;H=H===void 0?!1:H;return Id(VA(function(v){return hps(f.document,v,H)}),sZ(f.queue))};
VKB=function(f,H,v){var t=v.pipe(nS(function(M){return{value:M,timestamp:f.timeProvider.now()}}),qe(Tf));
return H instanceof Sa?H.pipe(qe(),VA(function(M){return M?f9(new JT({value:!1,timestamp:f.timeProvider.now()}),f.queue):t})):H.value===!1?t:new JT(!1)};
yre=function(f,H,v,t,M,h,y){var m=PgH;H=H instanceof Sa?H.pipe(Rl(!1),qe()):H;var W=!f.isMobile();v=VKB(f,v,t);f=y.measurableCreative.pipe(TA_(f.queue));return Object.assign({},m,{geometryIsOccluded:v,wasLargeAdAtRender:M,allowLargeAdThreshold:W,mayUseViewportShareExposure:H,hasMeasurementStarted:f,useIntersectionObserverV2:h})};
mwB=function(f,H,v,t,M,h){var y=1;h=h===void 0?!0:h;y=y===void 0?.01:y;var m=m===void 0?f.timeProvider.intervalObservable(100).pipe(sZ(f.queue)):m;return f.performanceMonitor.timeExecution(916,function(){return YSb(f,H.pipe(jF(f.queue)),v.pipe(jF(f.queue)),t,M,h,y,m)})()};
YSb=function(f,H,v,t,M,h,y,m){var W=fpN(f).pipe(nS(function(S){return!S})),I=new $wR(f,[new WZT(f,tKT),
new Ocb(f,m)]);m=PSv(gkT,Ip3);return KvH(f,H,function(S,d){var Z=f9(new JT(d.element),S.queue).pipe(RpE(S),sZ(S.queue)),l={loadedElement:Z,shouldMeasure:Z.pipe(To(!0)),measurableCreative:Z.pipe(nS(function(A){var X=X===void 0?Symbol():X;return Object.freeze({symbol:X,element:f9(new JT(A),S.queue)})})),
creativeSearchResult:f9(new JT("mue"),S.queue)},L=new JT(!1),r=new JT(!1),n=new JT(17),Q=new JT(!1),C=new JT(!1),w=f9(v_,S.queue);L=I.buildGeometrySource(l,{inApp:L,useV2:!1,requestSource:f9(n,S.queue)}).geometrySource;l=yre(S,Q,r,W,C,w,l);r=atg(S.queue,S.timeProvider,L,l);l=r.geometrySignals;Q=r.shouldResetViewabilitySignals;r=MKR(S.queue,l.timestampedExposure,l.visible,r.shouldResetExposureSignals,Q);Q=cmb(S.queue,S.timeProvider,Q,l.measurementRequests,l.visible);C=v.pipe(cj(function(A){return A===
d.element.ref}),nS(function(){return"ur"}));
w=RgE(S.timeProvider,M).pipe(To("t"));C=Z4H(S,Eq(C,w));w=Hcg(S,l.measurementRequests,C.pipe(cj(function(A){return A!==null})));
L=C.pipe(cj(function(A){return A!==null}),nS(function(){return qg5(S.global.document)===1}));
var c=SSe(S.document);return Object.assign({},{beaconFactory:new JT(S.beaconFactory),context:new JT(S),inferredPingId:new JT("lidar2"),timeOnScreenPingId:new JT("lidartos"),binaryContext:new JT(17),binaryVersion:new JT(t),requestSource:n,contextValidationErrors:new JT(S.validate()?null:new pd),contextVisibilityKnown:new JT(c),payloadMapper:new JT(uHT),endOfSessionReason:C,timeOnScreenReason:C,requestMeasurementOnEndOfSession:w,hasImpressionFired:dwg,crossDomainIframeState:new JT(S.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:v_,inFetchLaterBeaconExperiment:v_,isTurtlex:v_,turtlexReportEventData:new JT(""),reportFencedFrameEvent:ol,isViewableAttributionEnabled:v_,inViewableAttributionExperiment:new JT(0),fetchBeaconFactory:ol,supportsPendingBeacon:v_,supportsFetchLater:v_,emit:new JT(ElN),beginToRenderEvent:new JT(Symbol()),activeViewUnmeasurableEvent:new JT(Symbol()),activeViewViewableEvent:new JT(Symbol()),creativeFound:dwg,immediateUrlPrefixes:new JT(d.immediateUrls),timeOnScreenUrlPrefixes:new JT(d.timeOnScreenUrls),
cpmavUrls:ol,viewableRelayUrls:ol,measurementDeferralState:new JT(2),urlSerializer:new JT(i9H),viewUrlSerializer:new JT(j8v),isCreativeLoaded:Z.pipe(TA_(S.queue)),pageVisible:W.pipe(nS(function(A){return!A})),
eosPageVisible:L,timestampedExposureHistory:l.timestampedExposure.pipe(hT(function(A,X){A.push(X);return A},[]))},l,{viewable:qd(S,Q),
maxTimeOnScreen:qd(S,r.maxTimeOnScreen),timeOnScreen:qd(S,r.timeOnScreen),maxConsecutiveViewTime:qd(S,r.maxConsecutiveViewTime),consecutiveViewTime:r.consecutiveViewTime.pipe(nS(function(A){return new wr(S.timeProvider,A)})),
totalMeasurementTime:qd(S,r.totalMeasurementTime),totalUnviewedTime:qd(S,r.totalUnviewedTime),userAgentClientHints:aRs(S),clientOrderPingCounter:new JT(new ol5)})},aPN(f,y),GOb(h?CSR(m,s8B):CSR(m,ZcB),Jr5))};
lpv=function(f){var H=_.NA.apply(1,arguments).filter(Boolean).join("&");if(!H)return f;var v=f.match(/[?&]adurl=/);return v?f.slice(0,v.index+1)+H+"&"+f.slice(v.index+1):f+(f.indexOf("?")<0?"?":"&")+H};
tx=function(f,H){return H?"&"+f+"="+encodeURIComponent(H):""};
Uwb=function(){try{var f,H;return!!((f=window)==null?0:(H=f.top)==null?0:H.location.href)&&!1}catch(v){return!0}};
_.Mj=function(f){f&&typeof f.dispose=="function"&&f.dispose()};
_.hx=function(f){for(var H=0,v=arguments.length;H<v;++H){var t=arguments[H];_.Tb(t)?_.hx.apply(null,t):_.Mj(t)}};
LZb=function(){var f=epR();f=f===void 0?"bevasrsg":f;return new Promise(function(H){var v=window===window.top?window:Uwb()?window:window.top,t=v[f],M;((M=t)==null?0:M.bevasrs)?H(new RN(t.bevasrs)):(t||(t={},t=(t.nqfbel=[],t),v[f]=t),t.nqfbel.push(function(h){H(new RN(h))}))})};
xwv=function(f){var H={c:f.yQ,e:f.sP1,mc:f.glk,me:f.rMv};f.qb&&(H.co={c:f.qb.oct,a:f.qb.tfe,s:f.qb.vFA});return H};
BuR=function(f){var H,v,t={yQ:f.c,sP1:f.e,glk:(H=f.mc)!=null?H:!1,rMv:(v=f.me)!=null?v:!1};f.co&&(t.qb={oct:f.co.c,tfe:f.co.a,vFA:f.co.s});return t};
zpN=function(f){return function(){var H;return _.Y(function(v){if(v.nextAddress==1)return v.yield(f(),2);H=v.yieldResult;return v.return({f:function(){return H.bxt()},
c:function(t){return H.cgk(t)},
m:function(t){return H.mr(BuR(t))},
mws:function(t){return H.lvx(BuR(t))}})})}};
FZ_=function(f,H){var v=epR();v=v===void 0?"bevasrsg":v;H={s:function(h){var y;return f.snapshot(Object.assign({},h.c&&{yQ:h.c},h.s&&{jUt:h.s},{sRQ:(y=h.p)!=null?y:!0}))},
e:function(h){var y;return void((y=f.k5N)==null?void 0:y.call(f,h))},
c:function(h,y){return f.o7A(h,y)},
p:f.vHj,l:function(){return f.rPA()},
wpc:H?zpN(H):void 0};var t=window===window.top?window:Uwb()?window:window.top,M=t[v];if(M){M.bevasrs=H;if(M.nqfbel!==void 0)for(v=_.V(M.nqfbel),t=v.next();!t.done;t=v.next())t=t.value,t(H);M.nqfbel=void 0}else M={},M=(M.bevasrs=H,M.nqfbel=void 0,M),t[v]=M};
KZ5=function(f){var H=H===void 0?51:H;var v=[];_.VX(f,rrR,6,_.yX()).forEach(function(t){_.Yl(t,2)<=H&&v.push(_.Yl(t,1))});
return v};
DwE=function(f){var H=H===void 0?51:H;var v=[];_.VX(f,rrR,6,_.yX()).forEach(function(t){_.Yl(t,2)>H&&v.push(_.Yl(t,1))});
return v};
okv=function(f){f.then(function(){},function(){})};
mv=function(f){return{fieldType:1,fieldName:f}};
$l=function(f){return{fieldType:2,fieldName:f}};
_.W_=function(f){return{fieldType:3,fieldName:f}};
nkB=function(){function f(){M[0]=1732584193;M[1]=4023233417;M[2]=2562383102;M[3]=271733878;M[4]=3285377520;S=I=0}
function H(d){for(var Z=y,l=0;l<64;l+=4)Z[l/4]=d[l]<<24|d[l+1]<<16|d[l+2]<<8|d[l+3];for(l=16;l<80;l++)d=Z[l-3]^Z[l-8]^Z[l-14]^Z[l-16],Z[l]=(d<<1|d>>>31)&4294967295;d=M[0];var L=M[1],r=M[2],n=M[3],Q=M[4];for(l=0;l<80;l++){if(l<40)if(l<20){var C=n^L&(r^n);var w=1518500249}else C=L^r^n,w=1859775393;else l<60?(C=L&r|n&(L|r),w=2400959708):(C=L^r^n,w=3395469782);C=((d<<5|d>>>27)&4294967295)+C+Q+w+Z[l]&4294967295;Q=n;n=r;r=(L<<30|L>>>2)&4294967295;L=d;d=C}M[0]=M[0]+d&4294967295;M[1]=M[1]+L&4294967295;M[2]=
M[2]+r&4294967295;M[3]=M[3]+n&4294967295;M[4]=M[4]+Q&4294967295}
function v(d,Z){if(typeof d==="string"){d=unescape(encodeURIComponent(d));for(var l=[],L=0,r=d.length;L<r;++L)l.push(d.charCodeAt(L));d=l}Z||(Z=d.length);l=0;if(I==0)for(;l+64<Z;)H(d.slice(l,l+64)),l+=64,S+=64;for(;l<Z;)if(h[I++]=d[l++],S++,I==64)for(I=0,H(h);l+64<Z;)H(d.slice(l,l+64)),l+=64,S+=64}
function t(){var d=[],Z=S*8;I<56?v(m,56-I):v(m,64-(I-56));for(var l=63;l>=56;l--)h[l]=Z&255,Z>>>=8;H(h);for(l=Z=0;l<5;l++)for(var L=24;L>=0;L-=8)d[Z++]=M[l]>>L&255;return d}
for(var M=[],h=[],y=[],m=[128],W=1;W<64;++W)m[W]=0;var I,S;f();return{reset:f,update:v,digest:t,digestString:function(){for(var d=t(),Z="",l=0;l<d.length;l++)Z+="0123456789ABCDEF".charAt(Math.floor(d[l]/16))+"0123456789ABCDEF".charAt(d[l]%16);return Z}}};
Gev=function(f,H){H=H===void 0?p6T:H;if(!Q8H){var v;f=(v=f.navigator)==null?void 0:v.userAgentData;if(!f||typeof f.getHighEntropyValues!=="function"||f.brands&&typeof f.brands.map!=="function")return Promise.reject(Error("ua"));u3H((f.brands||[]).map(function(M){var h=new apH;h=_.rr(h,1,M.brand);return _.rr(h,2,M.version)}));
typeof f.mobile==="boolean"&&_.O1(PZe,2,f.mobile);Q8H=f.getHighEntropyValues(H)}var t=new Set(H);return Q8H.then(function(M){var h=PZe.clone();t.has("platform")&&_.rr(h,3,M.platform);t.has("platformVersion")&&_.rr(h,4,M.platformVersion);t.has("architecture")&&_.rr(h,5,M.architecture);t.has("model")&&_.rr(h,6,M.model);t.has("uaFullVersion")&&_.rr(h,7,M.uaFullVersion);return h.serialize()}).catch(function(){return PZe.serialize()})};
IN=function(f,H,v,t){this.initialValue_=f;this.maxValue_=H;this.currBaseValue_=this.currValue_=f;this.randomFactor_=v||0;this.backoffFactor_=t||2};
Sz=function(f){this.src=f;this.listeners={};this.typeCount_=0};
cre=function(){for(var f;f=CZe.remove();){try{f.fn.call(f.scope)}catch(H){R3(H)}Ekg.put(f)}Nu3=!1};
_.X6T=function(f){switch(f){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}};
Arb=function(f){switch(f){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""}};
_.bcs=function(){};
t$b=function(f,H,v,t){f=icB(keH(Tu_(new _.dA(1828,"0"),f),new w6g)).disableWithCredentials();H.length&&qS5(f,fyE(new Hl3,H));t!==void 0&&(f.destinationUrl=t);var M=new vZT(1828,"","",!1,"",f.build());_.jz(M,f);var h=new s1({flush:function(y){try{M.flush(y)}catch(m){v(m)}}});
h.addOnDisposeCallback(function(){setTimeout(function(){try{h.snapshotAndFlush()}finally{M.dispose()}})});
h.invocationLimit=1E5;h.flushInterval=3E4;h.JSC$9778_flushTimer.setInterval(3E4);return h};
ZP=function(){var f,H,v;return(v=(f=globalThis.performance)==null?void 0:(H=f.now)==null?void 0:H.call(f))!=null?v:Date.now()};
RvR=function(f,H){if(f.disable)return new M$R;H=H?KZ5(H):[];f={ia:f.ia,np1:f.n8I,vFc:f.wSw,destinationUrl:f.destinationUrl,oC1:f.oC1,oHN:f.oHN};H=H===void 0?[]:H;return new hvB(f,H)};
V$R=function(f){if(!f)return null;f=_.Jx(f,2);return f===null||f===void 0?null:iD(f)};
_.y85=function(f){if(!f)return null;f=_.Jx(f,4);return f===null||f===void 0?null:_.FM(f)};
$JN=function(f,H){return H?Yks(H):f?mJb(f):Promise.resolve()};
Yks=function(f){return new Promise(function(H,v){var t=_.lS("SCRIPT"),M=_.y85(f);_.tf(t,M);t.onload=function(){_.U1(t);H()};
t.onerror=function(){_.U1(t);v(Error("Fa"))};
(ez("HEAD")[0]||document.documentElement).appendChild(t)})};
mJb=function(f){return new Promise(function(H){var v=_.lS("SCRIPT");if(f){var t=_.Jx(f,6);t=t===null||t===void 0?null:_.Hj(t)}else t=null;_.vj(v,t);(ez("HEAD")[0]||document.documentElement).appendChild(v);_.U1(v);H()})};
L9=function(f,H,v){var t,M=new Promise(function(h){t=setTimeout(h,H)});
return Promise.race([f.finally(function(){return void clearTimeout(t)}),
M.then(v)])};
WpH=function(f,H){try{return globalThis.sessionStorage.setItem(f,H),!0}catch(v){return!1}};
r8g=function(f,H,v,t){H=H===void 0?0:H;v=v===void 0?f.length:v;var M=0;for(t&&(M=r8g(t));H<v;H++)t=typeof f==="string"?f.charCodeAt(H):f[H],M=KpN(31,M)+t|0;return M};
DJ5=function(f,H){return[r8g(f,0,f.length>>1,H),r8g(f,f.length>>1)]};
oZe=function(f){var H=_.V(DJ5(f,xl));f=H.next().value;H=H.next().value;return f.toString(16)+H.toString(16)};
nZe=function(f,H){var v=DJ5(H);f=new Uint32Array(f.buffer);H=f[0];var t=_.V(v);v=t.next().value;t=t.next().value;for(var M=1;M<f.length;M+=2){for(var h=H,y=M,m=v,W=t,I=0;I<22;I++)y=y>>>8|y<<24,y+=h|0,y^=m+38293,h=h<<3|h>>>29,h^=y,W=W>>>8|W<<24,W+=m|0,W^=I+38293,m=m<<3|m>>>29,m^=W;h=[h,y];f[M]^=h[0];M+1<f.length&&(f[M+1]^=h[1])}};
phg=function(f,H,v,t,M){var h=(4-(xl.length+v.length)%4)%4,y=new Uint8Array(4+h+xl.length+4+v.length),m=new DataView(y.buffer),W=0;m.setUint32(W,Math.random()*4294967295);W=W+4+h;y.set(xl,W);W+=xl.length;m.setUint32(W,M);y.set(v,W+4);nZe(y,t);return f.insert(H,function(I){return void globalThis.sessionStorage.removeItem(I)})?WpH(H,_.QG(y))?"s":"t":"i"};
Q2N=function(f,H){var v=globalThis.sessionStorage.getItem(f);if(!v)return["m"];try{var t=_.yM(v);nZe(t,H)}catch(M){return globalThis.sessionStorage.removeItem(f),["c"]}for(H=4;H<7&&t[H]===0;)H++;for(v=0;v<xl.length;v++)if(t[H++]!==xl[v])return globalThis.sessionStorage.removeItem(f),["d"];v=(new DataView(t.buffer)).getUint32(H);return Math.floor(Date.now()/1E3)>=v?(globalThis.sessionStorage.removeItem(f),["e"]):["a",new Uint8Array(t.buffer,H+4)]};
umg=function(f){return globalThis.TextEncoder?(new TextEncoder).encode(f):_.B_(f)};
ayR=function(f){var H=f,v;return function(){if(H){var t=H;H=void 0;v=t.apply(this,arguments)}return v}};
GEv=function(f){return Po(function(H){if(H instanceof f)return!0;var v,t,M=H==null?void 0:(v=H.ownerDocument)==null?void 0:(t=v.defaultView)==null?void 0:t[f.name];return PdR(M)&&H instanceof M})};
_.rA=function(f,H,v){_.zO.call(this);this.JSC$9991_listener_=f;this.JSC$9991_interval_=H||0;this.handler_=v;this.callback_=(0,_.FH)(this.JSC$9993_doAction_,this)};
_.K9=function(f){f=CdR(f);return _.FM(f)};
CdR=function(f){return f===null?"null":f===void 0?"undefined":f};
NH3=function(f){if(f&&f.focus)if(f!==document.activeElement)f.focus();else return EZR(function(){return _.Y(function(H){document.activeElement&&document.activeElement.blur();return H.return(EZR(function(){f.focus()}))})})};
_.c8s=function(f){var H=H===void 0?5:H;setTimeout(function(){var v;return _.Y(function(t){t.nextAddress==1&&(v=document.activeElement);if(t.nextAddress!=5)return(document.activeElement===v||document.activeElement===document.body)&&H>=0&&f?t.yield(NH3(f),5):t.jumpTo(0);if(document.activeElement===f)return t.return();f=f.parentElement;--H;return t.jumpTo(2)})},15)};
EZR=function(f){return new Promise(function(H){requestAnimationFrame(function(){H(f())})})};
A8E=function(f){if(_.DP)f(_.DP);else{var H;((H=Xhs)!=null?H:Xhs=[]).push(f)}};
n9=function(){!_.DP&&_.oN&&_.blR(_.oN());return _.DP};
_.blR=function(f){_.DP=f;var H;(H=Xhs)==null||H.forEach(A8E);Xhs=void 0};
_.QX=function(f){_.DP&&_.DP.beforeLoadModuleCode(f)};
_.uS=function(){_.DP&&_.DP.JSC$11035_setLoaded()};
aN=function(f){return eZg(f)?Number(f):String(f)};
ilN=function(f){this.action=f;this.wfv=!1};
kEN=function(f,H){ilN.call(this,"set-drive-options");this.appId=f;this.appOrigin=H};
TH_=function(f){ilN.call(this,"visibility");this.visible=f};
whE=function(f,H,v){P_.call(this,f,H,v)};
qkB=function(f){GO.call(this,f)};
fUb=function(f){f=f&&f.getWindow()||window;return f.gadgets&&f.gadgets.rpc};
vXR=function(f,H){var v=H&&H.getWindow()||window;if(fUb(H))f();else if(HNR)HNR.push(f);else var t=HNR=[f],M=v.setInterval(function(){if(fUb(H)){v.clearInterval(M);for(var h=0;h<t.length;h++)t[h]();HNR=null}},100)};
MkT=function(f,H){var v=new C9(f);_.jz(H,v);var t={passive:!1};H.listen(v,"mousewheel",function(M){return void tk_(f,M)},t).listen(f,"scroll",function(M){return void tk_(f,M)},t)};
tk_=function(f,H){var v;a:{for(v=H.target;v;){if(v.nodeType==1){var t=_.E1(v,"overflowY");if(t=="auto"||t=="scroll")break a}v=v.parentNode}v=null}if(!v||!_.Nj(f,v)||v.scrollHeight==v.clientHeight||H.deltaY>0&&Math.abs(v.scrollTop-(v.scrollHeight-v.clientHeight))<=1||H.deltaY<0&&v.scrollTop==0)H.preventDefault(),H.stopPropagation()};
TO=function(f,H,v,t,M,h,y,m,W){m=m===void 0?!1:m;W=W===void 0?!1:W;P_.call(this,void 0,void 0,void 0);P_.call(this,h?h+" picker modal-dialog":"picker modal-dialog",!0,v);_.c_(f,"protocol");this.iframeManager_=new hms;this.targetId_=XH();this.rpcToken_=XH();f=_.Ax(f);_.bS(f,"hostId");v=_.bS(f,"parent");this.useGapi_=!W&&!0||(v==null?void 0:v.includes("onepick.corp.google.com"));m&&_.iS(f,"fv2","true");this.setUrl(f.toString());this.preferredDialogWidth_=t;this.preferredDialogHeight_=M;t!==void 0||
M!==void 0?t=!0:(t=_.bS(_.Ax(f.toString()),"hostId"),RmR||(RmR=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),t=!RmR.has(t));this.autoSizeDialog_=t;this.JSC$10181_gadgetsDomHelper_=y||this.JSC$10132_dom_;H&&(y=this.JSC$10181_gadgetsDomHelper_,H=_.bS(_.Ax(this.JSC$10183_url_),"grugl")=="true"?Vk5:yaR,fUb(y)||(y=y||BQ(document),t=y.createElement("SCRIPT"),_.tf(t,H),t.type="text/javascript",y.JSC$9317_document_.body.appendChild(t)));
f=f.toString();H=null;y=f.indexOf("/picker?");y>-1?H=f.substring(0,y+8-1):Yv(f,"/picker")&&(H=f);H&&this.setRelayUrl(H+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(f=this.buttons_,f.JSC$10166_element_=this.buttonEl_,f.render()):_.Me(this.buttonEl_,Y0E),_.kl(this.buttonEl_,!!this.buttons_))};
_.ONE=function(f){var H=H===void 0?mRB:H;var v=_.h9(f),t=function(h){h=_.V(h);h.next();h=wA(h);return H(v,h)},M=function(h){var y=_.V(h);
h=y.next().value;y=wA(y);return f.apply(h,y)};
return function(){var h=_.NA.apply(0,arguments),y=this||_.Mr,m=$RN.get(y);m||(m={},$RN.set(y,m));return W$R(m,[this].concat(_.pS(h)),M,t)}};
qj=function(f){var H={};f=f.replace(/\r/g,"").split("\n");for(var v=0;v<f.length;v++){var t=f[v],M=t.indexOf(":");M<0||(H[t.substring(0,M)]=t.substring(M+2,t.length))}return H};
gXE=function(f,H,v){v=v===void 0?function(){}:v;
return f?H():v()};
_.S05=function(f){var H;return((H=IU5.documentOverride)!=null?H:f).__wizdispatcher};
_.HM=function(f){var H=f4;f4=f;return H};
_.jP3=function(f){return f===dRR||(f==null?void 0:f.name)==="\u0275NotFound"};
_.vM=function(f,H){var v;if((v=f)==null?0:v.isDisposed)throw Error("jb`"+String(f.debugName));for(;f!==void 0;){v=f;if(v.retrieve)return v.retrieve(H,{optional:!0});f=f.parent}return dRR};
tm=function(f){return{"\u0275prov":{providedIn:"root",token:Symbol(f),factory:void 0,value:void 0}}};
_.sPv=function(f){var H=f4;if(!H){switch(f===void 0?3:f){case 0:f=Error("ib");break;case 1:f=Error("kb");break;case 2:f=Error("lb");break;default:f=Error("mb")}throw f;}return H};
ZNE=function(f){var H=_.HM(f);f={};return f[Symbol.dispose]=function(){_.HM(H)},f};
JaN=function(f,H){f.disposables||(f.disposables=[]);f.disposables.push(H)};
Mk=function(f){var H=f4;H&&!H.isDisposed&&(JaN(H,f),f.parent=H)};
URR=function(f){if(f.disposables){for(var H=_.V(f.disposables),v=H.next();!v.done;v=H.next())v=v.value,typeof v==="function"?v():lUB(v);f.disposables.length=0}};
lUB=function(f){if(!f.isDisposed){f.isDisposed=!0;var H;(H=f[Symbol.dispose])==null||H.call(f);delete f.parent;URR(f)}};
DRR=function(f){var H={retrieve:function(v){switch(v.\u0275prov.token){case ems.\u0275prov.token:var t=f.asyncDeps;break;case _.L$v.\u0275prov.token:t=f.rootElement;break;case xRs.\u0275prov.token:t=f.modelRootElement;break;case Bk5.\u0275prov.token:t=f.appContext;break;case zmB.\u0275prov.token:t=f.rendererData;break;case F$H.\u0275prov.token:t=f.injectingConstructor;break;case raE.\u0275prov.token:t=f.dispatcher}if(t)v=t;else a:{for(t=H.parent;t;){var M=t;if(M.retrieve){v=M.retrieve(v);break a}t=
t.parent}t=v.\u0275prov.token;M=K$R[t];M!==void 0?v=M:(M=v.\u0275prov.providedIn,v.\u0275prov.factory?(v=v.\u0275prov.factory(),t&&M==="root"&&(K$R[t]=v)):v=dRR)}return v}};
Mk(H);return H};
oXe=function(){var f=_.sPv(1),H=_.vM(f,Bk5);_.jP3(H)&&(f=_.vM(f,raE),_.jP3(f)||f.getOptionalAppContext())};
nX3=function(f){if(typeof document!=="undefined"&&document&&document.getElementById&&(f=document.getElementById(f))){var H=f.tagName.toUpperCase();if(H=="SCRIPT"||H=="LINK")return f}return null};
QPs=function(f,H){if((f=f===void 0?"":f)&&H)throw Error("sb");var v="";var t=_.Mr._F_jsUrl;(f=H||nX3(f))&&(v=f.src?f.src:f.getAttribute("href"));if(t&&v){if(t!=v)throw Error("tb`"+t+"`"+v);v=t}else v=t||v;if(!p85(v))throw Error("ub");return v};
Gj_=function(){if(!uBN){uBN=!0;try{var f=QPs(_.Mr._F_jsUrl?"":"base-js")}catch(t){return}var H=aUT(P75(f)),v=Object.keys(H);v.length!==0&&A8E(function(t){for(var M=_.V(v),h=M.next();!h.done;h=M.next()){h=h.value;for(var y=_.V(Object.keys(H[h])),m=y.next();!m.done;m=y.next())t.addExtraEdge(h,m.value)}})}};
EXe=function(){var f=Object.assign({},C7T);Object.getOwnPropertyNames(C7T).forEach(function(H){hm[H]!==void 0&&(f[H]=hm[H])});
return f};
Nks=function(f,H){if(hm.enablePerformanceTiming){var v,t;(t=(v=performance).mark)==null||t.call(v,f+"Start__"+H)}};
cag=function(f,H){if(hm.enablePerformanceTiming){var v,t;(t=(v=performance).measure)==null||t.call(v,f+"__"+H,f+"Start__"+H)}};
X8v=function(f,H,v){var t;return f&&H?f+"__"+H:(t=f!=null?f:H)!=null?t:v};
bNE=function(f,H){var v=Object.create(Aav);v.debugName=H;!f4||Mk(v);H=_.HM(v);try{f(v)}finally{_.HM(H)}return function(){return void lUB(v)}};
kjT=function(f){return Rh(f)&&iNH in f};
Tk5=function(f,H){return Object.is(f,H)};
yL=function(f){var H=VL;VL=f;return H};
q0b=function(f){if(Ym)throw Error("Z");if(VL!==null){var H=VL.producersTail;if(H===void 0||H.producer!==f){var v=void 0,t=VL.recomputing;if(t&&(v=H!==void 0?H.nextProducer:VL.producers,v!==void 0&&v.producer===f)){VL.producersTail=v;v.lastReadVersion=f.version;return}var M=f.consumersTail,h;if(!(h=M===void 0||M.consumer!==VL)){if(t){a:{h=VL;t=h.producersTail;if(t!==void 0){h=h.producers;do{if(h===M){t=!0;break a}if(h===t)break;h=h.nextProducer}while(h!==void 0)}t=!1}t=!t}h=t}h&&(t=m7(VL),v={producer:f,
consumer:VL,nextProducer:v,prevConsumer:M,lastReadVersion:f.version,nextConsumer:void 0},VL.producersTail=v,H!==void 0?H.nextProducer=v:VL.producers=v,t&&w83(f,v))}}};
vFT=function(f){if(!m7(f)||f.dirty)if(f.dirty||f.lastCleanEpoch!==fKr)(f.producerMustRecompute(f)||Hbs(f))&&f.producerRecomputeValue(f),f.dirty=!1,f.lastCleanEpoch=fKr};
tNR=function(f){if(f.consumers!==void 0){var H=Ym;Ym=!0;try{for(var v=f.consumers;v!==void 0;v=v.nextConsumer){var t=v.consumer;t.dirty||(f=void 0,t.dirty=!0,tNR(t),(f=t.consumerMarkedDirty)==null||f.call(t,t))}}finally{Ym=H}}};
MNr=function(){var f;return((f=VL)==null?void 0:f.consumerAllowSignalWrites)!==!1};
hlN=function(f){f&&(f.producersTail=void 0,f.recomputing=!0);return yL(f)};
VNR=function(f,H){yL(H);if(f){f.recomputing=!1;H=f.producersTail;var v=H!==void 0?H.nextProducer:f.producers;if(v!==void 0){if(m7(f)){do v=RlN(v);while(v!==void 0)}H!==void 0?H.nextProducer=void 0:f.producers=void 0}}};
Hbs=function(f){for(f=f.producers;f!==void 0;f=f.nextProducer){var H=f.producer,v=f.lastReadVersion;if(v!==H.version)return!0;vFT(H);if(v!==H.version)return!0}return!1};
w83=function(f,H){var v=f.consumersTail,t=m7(f);v!==void 0?(H.nextConsumer=v.nextConsumer,v.nextConsumer=H):(H.nextConsumer=void 0,f.consumers=H);H.prevConsumer=v;f.consumersTail=H;if(!t)for(f=f.producers;f!==void 0;f=f.nextProducer)w83(f.producer,f)};
RlN=function(f){var H=f.producer,v=f.nextProducer,t=f.nextConsumer,M=f.prevConsumer;f.nextConsumer=void 0;f.prevConsumer=void 0;t!==void 0?t.prevConsumer=M:H.consumersTail=M;if(M!==void 0)M.nextConsumer=t;else if(H.consumers=t,!m7(H))for(f=H.producers;f!==void 0;)f=RlN(f);return v};
m7=function(f){return f.consumerIsAlwaysLive||f.consumers!==void 0};
YPT=function(f){var H=Object.create(y7N);H.computation=f;f=function(){vFT(H);q0b(H);if(H.value===$m)throw H.error;return H.value};
f[WM]=H;return f};
Ob_=function(f,H){var v=Object.create(m$s);v.value=f;H!==void 0&&(v.equal=H);f=function(){q0b(v);return v.value};
f[WM]=v;return[f,function(t){return $$v(v,t)},
function(t){MNr()||WUR(v);$$v(v,t(v.value))}]};
$$v=function(f,H){MNr()||WUR(f);if(!f.equal(f.value,H)){f.value=H;f.version++;fKr++;tNR(f);var v;(v=gF_)==null||v(f)}};
Og=function(f){var H=yL(null);try{return f()}finally{yL(H)}};
_.gp=function(f,H,v){v=v===void 0?"":v;f=Ob_(f,H==null?void 0:H.equals);var t=f[0],M=t[WM];M.debugName=X8v(H==null?void 0:H.debugName,v,"[signal]");if(!hm.enablePerformanceTiming)return f;var h=f[1],y=f[2];return[t,function(m){IKv(function(){return void h(m)},M)},
function(m){IKv(function(){return void y(m)},M)}]};
IKv=function(f,H){Nks("signalSet",H.debugName);try{f()}finally{cag("signalSet",H.debugName)}};
d$s=function(f,H){var v=_.V(_.gp(f,void 0,"cPpJzc"));f=v.next().value;v=v.next().value;f[SPT]=v;f[Ih]=H;return f};
jON=function(f){return!!f&&typeof f==="object"&&Object.getPrototypeOf(f)===Object.prototype};
sOT=function(f){return typeof f==="function"&&SPT in f&&typeof f[SPT]==="function"};
Zbe=function(f,H){Object.defineProperty(f,Ih,{get:function(){return H}})};
dp=function(f,H){if(S7(f)){var v=f.map(function(h){return dp(h,H)});
Zbe(v,H);return v}if(jON(f)){v={};f=_.V(Object.entries(f));for(var t=f.next();!t.done;t=f.next()){var M=_.V(t.value);t=M.next().value;M=M.next().value;v[t]=dp(M,H)}Zbe(v,H);return v}return d$s(f,H)};
J7r=function(f){if(S7(f))return f.map(function(M){return J7r(M)});
if(jON(f)){var H={};f=_.V(Object.entries(f));for(var v=f.next();!v.done;v=f.next()){var t=_.V(v.value);v=t.next().value;t=t.next().value;H[v]=J7r(t)}return H}return sOT(f)?f():f};
U$E=function(){var f={height:0,width:0};if(!jON(f))throw Error("Gb");var H=Symbol("Hb");return[dp(f,H),function(v,t){if(v[Ih]===H)if(typeof t==="function"){var M=[].concat(_.pS(J7r(v)));t=t(M)||M;lKB(v,[].concat(_.pS(t)))}else lKB(v,t);else throw Error("Ib");}]};
lKB=function(f,H){if(sOT(f))f[SPT](H);else if(S7(f)&&S7(H))H=dp(H,f[Ih]),f.length=0,f.push.apply(f,_.pS(H));else if((jON(f)||S7(f))&&(S7(H)||typeof H==="object"&&H!==null)){H=_.V(Object.entries(H));for(var v=H.next();!v.done;v=H.next()){var t=_.V(v.value);v=t.next().value;t=t.next().value;var M=f,h=M[v];Object.hasOwn(f,v)?lKB(h,t):M[v]=dp(t,f[Ih])}}else throw Error("Jb");};
elR=function(f){return Object.create(Object.assign({},j7,f))};
x$R=function(){var f;return(f=LUB)!=null?f:LUB=elR({consumerAllowSignalWrites:!0})};
_.sg=function(f,H,v){v=v===void 0?"":v;f=YPT(f);var t=f[WM];t.debugName=X8v(H==null?void 0:H.debugName,v,"[computed]");(H==null?void 0:H.equals)!=null&&(t.equal=H.equals);return f};
Zt=function(f){var H=yL(B8r);try{f()}finally{yL(H)}};
oFR=function(f){if(!f.isDisposed)switch(f.effectType){case lg:zlB.schedule(f);break;case FUR:r7e.schedule(f);break;case KU3:D$B.schedule(f);break;default:_.bC(f.effectType)}};
pke=function(f){nFs.push(f);return function(){var H=nFs.indexOf(f);H!==-1&&nFs.splice(H,1)}};
u7g=function(){if(Ug>0)hm.flushRenderEffectsDuringRender&&zlB.flush();else for(var f=_.V(QOH),H=f.next();!H.done;H=f.next())H.value.flush()};
P$3=function(f){e7=!0;try{for(var H=_.V(f),v=H.next();!v.done;v=H.next()){for(var t=v.value,M=[t],h=t;h.parent!==void 0;)h=h.parent,aKE(h)&&f.has(h)&&M.push(h);for(;M.length>0;){var y=M.pop();f.delete(y);y.run()}}}finally{e7=!1}};
L4=function(f){Ug--;if(f){f=_.V(QOH);for(var H=f.next();!H.done;H=f.next())H.value.clear()}else Ug>0||e7&&!hm.flushRenderEffectsDuringRender||u7g()};
C$5=function(f,H,v){var t=GNe(f);xm={name:v?t+" ("+v+")":t,isReactive:f.componentType!==_.BM,parent:xm};f=H();xm=xm.parent;return f};
zL=function(){var f=xm;return f?f.isReactive:!1};
rp=function(f,H,v){var t=xm;H&&(xm=H);try{return v==null?f():f.call(v)}catch(h){f=h;FT(f,xm);if(f!==EFb){N8R=xm;H=[];for(v=f4;v;){var M=void 0;H.push((M=v.debugName)!=null?M:"[context]");M=void 0;v=(M=v.parent)!=null?M:null}c7B=H.reverse()}EFb=f;throw f;}finally{xm=t}};
FT=function(f,H){try{var v=Xkb(H);if(v&&!f.componentStack&&(f.componentStack=v,hm.enableComponentStacksInErrorMessages)){var t=f.message+"\n\nComponent stack: "+v;f.stack&&(f.stack=f.stack.replace(f.message,t));f.message=t}}catch(M){}};
Xkb=function(f){if(Rh(f)&&f.name!==void 0&&f.isReactive!==void 0&&f.parent!==void 0||f===null){for(var H=0,v="";H<20&&f;)v+=f.name+" > ",f=f.parent,H++;f=v.slice(0,-3)}else if(hm.enableContextBasedComponentStacks){a:{for(f=f===void 0?f4:f;f;){if(kjT(f))break a;H=void 0;f=(H=f.parent)!=null?H:null}f=null}f=f.getComponentStack().slice(0,20).join(" > ")}else f="";return f};
GNe=function(f){return f.debugName||f.name||"[component]"};
A7H=function(f,H,v){H=Object.create(H);f&&(H.effectFn=f);v&&(H.debugName=v);Mk(H);H.componentStack=xm;return H};
_.K4=function(f,H){f=A7H(f,bbR,H);oFR(f)};
_.Dt=function(f){var H=f4;if(H){var v=xm;JaN(H,function(){var t=yL(x$R());try{rp(function(){return void f()},v)}catch(M){throw hm.enableContextBasedComponentStacks&&FT(M),M;
}finally{yL(t)}})}};
n4=function(f,H){var v={};(H===void 0||H)&&Mk(v);H=_.HM(v);try{f(v)}finally{_.HM(H)}return function(){return void lUB(v)}};
_.p4=function(f){return typeof f==="function"?f():(f==null?0:f[ibE])?f.get():f};
_.QL=function(f,H){f=A7H(f,kNR,H);oFR(f)};
T8e=function(f){if(f4)throw Error("nb");n4(f,!1)};
PM=function(f,H){f=_.HM(f);try{return Og(H)}finally{_.HM(f)}};
GL=function(f,H){var v=Xkb(N8R),t,M;var h=(M=(t=c7B)==null?void 0:t.slice())!=null?M:[];H={componentStack:v,contextTrace:h,errorSeverity:3,featureFlags:EXe(),tagName:H};return[f,H]};
fxe=function(f,H,v){if(Object.hasOwnProperty.call(wkg,f)&&(f=wkg[f],Object.hasOwnProperty.call(f,H)&&(f=f[H],f instanceof Array))){for(var t=null,M=!1,h=0,y=f.length;h<y;++h){var m=f[h],W=m.contingentAttribute;if(!W)return m.contract;t===null&&(t={});W=Object.hasOwnProperty.call(t,W)?t[W]:t[W]=v(W);if(W===m.requiredValue)return m.contract;W==null&&(M=!0)}if(M)return null}H=qPr[H];return typeof H==="number"?H:null};
t63=function(f,H,v){var t=null;(f=H13[f])&&(t=f[H]);return typeof t!=="number"&&((f=H13["*"])&&(t=f[H]),typeof t!=="number")?!1:!0===v7E[t][String(v).toLowerCase()]};
hLR=function(f,H){H=fxe(f.toLowerCase(),H,function(){var t;(t=hm.handleError)==null||t.call.apply(t,[hm].concat(_.pS(GL(Error("Ob"),f.toLowerCase()))))});
if(H===null)return null;var v;return(v=M6E[H])!=null?v:null};
RLg=function(f,H,v){if(v===null||v===void 0)return v;H=H.toLowerCase();f=hLR(f,H);return f===null?v:f(H,v)};
V6B=function(){};
C4=function(f,H){for(;f.length>H;)f.pop()};
yMs=function(f){f=Array(f);C4(f,0);return f};
Eg=function(f,H,v){if(v==null)f.removeAttribute(H);else{var t;(t=H.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":H.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?f.setAttributeNS(t,H,v):f.setAttribute(H,v)}};
Yo3=function(f,H,v){f[H]=v};
$VT=function(f,H,v){f=f.style;if(typeof v==="string")f.cssText=v;else{f.cssText="";for(var t in v)if(mVs.call(v,t)){H=f;var M=t,h=v[t];M.indexOf("-")>=0?H.setProperty(M,h):H[M]=h}}};
WuR=function(f,H,v){var t=typeof v;t==="object"||t==="function"?f[H]=v:Eg(f,H,v)};
O1N=function(){var f=new V6B;f[Nk.default]=WuR;f.style=$VT;return f};
g7H=function(f,H,v,t){(t[H]||t[Nk.default])(f,H,v)};
Sos=function(f,H,v){H=new Ixv(H,v);return f.__incrementalDOMData=H};
cM=function(f,H){if(f.__incrementalDOMData)return f.__incrementalDOMData;var v=f.nodeType===1?f.localName:f.nodeName,t=f.nodeType===1?f.getAttribute("key"):null;H=Sos(f,v,f.nodeType===1?t||H:null);if(f.nodeType===1&&(f=f.attributes,v=f.length)){t=H._attrsArr||(H._attrsArr=yMs(v*2));for(var M=0,h=0;M<v;M+=1,h+=2){var y=f[M],m=y.value;t[h]=y.name;t[h+1]=m}}return H};
dVs=function(f,H,v,t,M){return H==v&&t==M};
jV_=function(f){for(var H=XT,v=Am();v!==f;){var t=v.nextSibling;H.removeChild(v);bg.deleted.push(v);v=t}};
Am=function(){return ig?ig.nextSibling:XT.firstChild};
km=function(){ig=Am()};
JMv=function(f,H,v){km();var t;a:{if(t=ig){do{var M=t,h=f,y=H,m=cM(M,y);if(sVR(M,h,m.nameOrCtor,y,m.key))break a}while(H&&(t=t.nextSibling))}t=null}t||(f==="#text"?(v=TL.createTextNode(""),Sos(v,"#text",null),f=v):(t=TL,M=XT,typeof f==="function"?t=new f:t=(M=f==="svg"?"http://www.w3.org/2000/svg":f==="math"?"http://www.w3.org/1998/Math/MathML":M==null||cM(M).nameOrCtor==="foreignObject"?null:M.namespaceURI)?t.createElementNS(M,f):t.createElement(f),Sos(t,f,H),f=t,v&&f.setAttribute("nonce",v)),bg.created.push(f),
t=f);v=t;if(v!==ig){if(Z1R.indexOf(v)>=0)for(f=XT,H=v.nextSibling,t=ig;t!==null&&t!==v;)M=t.nextSibling,f.insertBefore(t,H),t=M;else XT.insertBefore(v,ig);ig=v}};
lxR=function(f,H,v){JMv(f,H,v);XT=ig;ig=null;return XT};
UV3=function(){jV_(null);ig=XT;XT=XT.parentNode};
eLe=function(){ig=XT.lastChild};
BTg=function(f,H){H=H===void 0?{}:H;var v=H.matches===void 0?dVs:H.matches;return function(t,M,h){var y=bg,m=TL,W=Z1R,I=wp,S=qk,d=ig,Z=XT,l=sVR;TL=t.ownerDocument;bg=new Lu_(t);sVR=v;wp=[];qk=[];ig=null;var L=XT=t.parentNode,r,n=xVN.call(t);if((r=n.nodeType===11||n.nodeType===9?n.activeElement:null)&&t.contains(r)){for(n=[];r!==L;)n.push(r),r=r.parentNode||(L?r.host:null);L=n}else L=[];Z1R=L;try{return f(t,M,h)}finally{t=bg,fc&&t.deleted.length>0&&fc(t.deleted),TL=m,bg=y,sVR=l,wp=I,qk=S,ig=d,XT=Z,
Z1R=W}}};
zLR=function(f,H,v,t){H6.push(g7H);H6.push(f);H6.push(H);H6.push(v);H6.push(t)};
rM_=function(f,H,v){var t=qk;H=H._attrsArr||(H._attrsArr=yMs(t.length));for(var M=!H.length||!1,h=0;h<t.length;h+=2){var y=t[h];if(M)H[h]=y;else if(H[h]!==y)break;var m=t[h+1];if(M||H[h+1]!==m)H[h+1]=m,zLR(f,y,m,v)}if(h<t.length||h<H.length){for(h=M=h;h<H.length;h+=2)v6[H[h]]=H[h+1];for(h=M;h<t.length;h+=2)M=t[h],y=t[h+1],v6[M]!==y&&zLR(f,M,y,v),H[h]=M,H[h+1]=y,delete v6[M];C4(H,t.length);for(var W in v6)zLR(f,W,void 0,v),delete v6[W]}f=FuT;FuT=v=H6.length;for(W=f;W<v;W+=5)(0,H6[W])(H6[W+1],H6[W+
2],H6[W+3],H6[W+4]);FuT=f;C4(H6,f);C4(t,0)};
KuR=function(f){JMv("#text",null);var H=ig;var v=cM(H);if(v.text!==f){v=v.text=f;for(var t=1;t<arguments.length;t+=1)v=(0,arguments[t])(v);H.data!==v&&(H.data=v)}};
axR=function(f,H,v){if(v===!1&&DVr.has(H))Eg(f,H,null);else if(H!=="idomKey"&&H!=="skip"&&H!=="skipchildren"&&H!=="children"&&H!=="el")if(H.startsWith("on")){if(H[2]!==":")throw Error("Nb`"+H);if(v===void 0||v===null){var t;(t=hm.handleError)==null||t.call.apply(t,[hm].concat(_.pS(GL(Error("Sb`"+H),f.tagName))));f[H]=void 0}else{var M=H.slice(3);t=zL();if(M==="jsaction"){v=Array.isArray(v)?v:[v];v=_.V(v);for(var h=v.next();!h.done;h=v.next()){h=h.value;if(typeof h!=="object"||h===null||typeof h.selfReg!==
"function")throw Error("Vb`"+H);h.selfReg(0,f,t?_.Dt:function(){})}}else{if(typeof v!=="object"||v===null)throw Error("Tb`"+H+"`"+typeof v);
if(typeof v.getFn!=="function")throw Error("Ub`"+H+"`"+Object.keys(v));if(v.selfReg)v.selfReg(0,f,M,t?_.Dt:function(){});
else if(t&&f["on"+M]===void 0){var y=v.getFn(0);f.addEventListener(M,y);_.Dt(function(){return void f.removeEventListener(M,y)})}else if(t||!o7e.includes(M))f["on"+M]=v.getFn(0)}}}else{if(H.startsWith("data-")&&typeof v==="string")try{v=n7s(v)}catch(m){v="zSoyz"}typeof v!=="function"||f._disposeEffects!=null?((t=H.startsWith("prop:"))&&(H=H.slice(5)),hm.enableAttributeSanitization&&(t&&pbT(f.tagName)||(v=RLg(f.tagName,H,v))),H==="style"?("function"==typeof _.tr&&v instanceof _.tr&&(v=v.toString()),
QVe(f,H,v)):t?f[H]=v:u2R(f,H,v)):(f._signalProps||(f._signalProps=[]),f._signalValues||(f._signalValues=[]),f._signalProps.push(H))}};
PKv=function(f,H,v){v=(v===void 0?{}:v).isReactive;if(H==null?0:H.el){var t=H.el;if(typeof t==="function")t(f);else{var M;(M=t.onRender)==null||M.call(t,f);f._disposeRef||(f._disposeRef=function(){var h;(h=t.onUnmount)==null||h.call(t);delete f._disposeRef},v&&_.Dt(function(){var h;
(h=f._disposeRef)==null||h.call(f)}))}}};
pbT=function(f){return f.length>0&&f.includes("-")&&!G5e.includes(f.toLowerCase())};
CKE=function(f){return Rh(f)&&Mw in f};
E73=function(f){return CKE(f)?f[Mw].flattened:f};
cM_=function(f,H){var v=_.NA.apply(2,arguments),t;H=(t=H)!=null?t:{};t={};return t.type=f,t.props=H,t.children=v,t[NTg]=!0,t};
_.R8=function(f){return f.children};
VP=function(f){var H=Xbe!==cM_;Xbe=f?AMH:cM_;return H};
_.yP=function(f){return _.vo(f)?"nodeType"in f:!1};
Yk=function(){return document.createTextNode("")};
$k=function(f){f=document.createTextNode(String(f));f._isSignalTextNode=!0;return f};
i1N=function(f){return f!=null&&f.contentKind===W6||f instanceof bD||b1b(f)};
k5R=function(f){var H=document.createElement("div");if(b1b(f)&&V$R(f))_.Me(H,V$R(f));else if(f instanceof bD)_.Me(H,f);else if(f!=null&&f.contentKind===W6){if(f.contentKind!==W6)throw Error("Rb");f=iD(f.toString());_.Me(H,f)}f=_.V(H.childNodes);for(var v=f.next();!v.done;v=f.next())v.value._isSafeOrSanitizedHtmlNode=!0;return H};
OS=function(f){f=typeof f;return f==="string"||f==="number"||f==="boolean"};
TTB=function(f){return f instanceof z1||po(f)||f instanceof y1||"function"==typeof _.tr&&f instanceof _.tr};
wbs=function(f,H){var v=f.parentElement;if(!v)return H;v.replaceChild(H,f);return H};
qov=function(f,H){var v=f[0].parentElement;if(v)if(f[0].previousSibling||f[f.length-1].nextSibling){v.insertBefore(H,f[0]);for(var t=f.length-1;t>=0;t--)v.removeChild(f[t])}else v.textContent="",v.appendChild(H);return H};
fFr=function(f,H){if(f[0].parentElement)for(var v=f[0].parentElement,t=H.length,M=f.length,h=t,y=0,m=0,W=f[M-1].nextSibling,I=null;y<M||m<h;)if(f[y]===H[m])y++,m++;else{for(;f[M-1]===H[h-1];)M--,h--;if(M===y)for(var S=h<t?m?H[m-1].nextSibling:H[h-m]:W;m<h;){var d=H[m++];v.insertBefore(d,S)}else if(h===m)for(;y<M;)S=f[y],I&&I.has(S)||v.removeChild(S),y++;else if(f[y]===H[h-1]&&H[m]===f[M-1])S=f[--M].nextSibling,v.insertBefore(H[m++],f[y++].nextSibling),v.insertBefore(H[--h],S),f[M]=H[h];else{if(!I)for(I=
new Map,S=m;S<h;)I.set(H[S],S++);S=I.get(f[y]);if(S==null)v.removeChild(f[y]),y++;else if(m<S&&S<h){d=y;for(var Z=1,l=void 0;++d<M&&d<h&&(l=I.get(f[d]))!=null&&l===S+Z;)Z++;if(Z>S-m)for(d=f[y];m<S;)v.insertBefore(H[m++],d);else v.replaceChild(H[m++],f[y++])}else y++}}return H};
v1s=function(f){if(Array.isArray(f)){if(f.length>1)throw Error("dc`"+f.length+"`"+f.map(HPb).join(", "));f=f[0]}if(f==null)return null;if(!(f instanceof _.fS)){var H,v;if((H=window)==null?0:(v=H.trustedTypes)==null?0:v.isScript(f))throw Error("cc");if(String(f).trim().length===0)return null;throw Error("ec`"+HPb(f));}return f};
tqg=function(f,H){H=v1s(H);H!==null&&_.vj(f,H)};
MqT=function(f){if(Array.isArray(f)){if(f.length>1)throw Error("fc`"+f.length+"`"+f.map(HPb).join(", "));f=f[0]}if(f==null)return null;if(!(f instanceof y1)){if(String(f).trim().length===0)return null;throw Error("gc`"+HPb(f));}return f};
ha5=function(f,H){H=MqT(H);H!==null&&(f.textContent=hS_(H))};
HPb=function(f){return"("+typeof f+") "+(f!=null&&typeof f==="object"?f.constructor.name:typeof f)+" "+f};
Ras=function(){};
SK=function(f,H){H=H===void 0?{}:H;var v=VqT();hm.legacyTriggerSoyRendererEvents&&oXe();_.QL(function(){gu.setUp();H.isControlFlowComponent&&Ug++;var t=v[0],M=v[Mw].flattened,h=VP(!0);try{var y=f(),m=yg5(t,y,v);Array.isArray(m)||(v[Mw].flattened=[m]);var W=v[Mw].flattened;if(M&&(!Array.isArray(M)||M.length!==0)){var I=Array.isArray(M)?M[0]:M,S=I[I8],d=I._disposeEffects;I._disposeEffects=void 0;I=Array.isArray(W)?W[0]:W;I[I8]=S;I[I8]&&(I[I8].numNodes=I===W?1:W.length);I._disposeEffects=d}v[0]=m;H.isControlFlowComponent&&
L4(!1)}catch(Z){throw H.isControlFlowComponent&&L4(!0),Z;}finally{VP(h),gu.tearDown()}},H.debugName);
return v};
yg5=function(f,H,v){for(;typeof H==="function";)H=H();if(H!=null&&H[NTg]){var t,M,h;(h=hm.handleError)==null||h.call.apply(h,[hm].concat(_.pS(GL(Error("hc`"+((t=H.type)==null?void 0:t.TAG_NAME)),(M=H.type)==null?void 0:M.TAG_NAME))))}if(f==null)return H==null?Yk():OS(H)?$k(H):TTB(H)?$k(H.toString()):_.yP(H)?H:H.length===0?Yk():YeN(H,v);if(_.yP(f)){if(H==null)return wbs(f,Yk());if(OS(H))return mCr(f,H);if(TTB(H))return mCr(f,H.toString());if(_.yP(H))return wbs(f,H);if(H.length===0)return wbs(f,Yk());
H=YeN(H,v);fFr([f],v[Mw].flattened);return H}f=du(f);if(H==null)return qov(f,Yk());if(OS(H))return qov(f,$k(H));if(TTB(H))return qov(f,$k(H.toString()));if(_.yP(H))return fFr(f,[H])[0];if(H.length===0)return qov(f,Yk());H=YeN(H,v);fFr(f,v[Mw].flattened);return H};
mCr=function(f,H){f.nodeType===Node.TEXT_NODE?f.textContent!==String(H)&&(f.textContent=String(H)):f=wbs(f,$k(H));return f};
du=function(f,H,v){return $CN(f,H!=null?H:[],v===void 0?!1:v)};
YeN=function(f,H){var v=du(f,void 0,!0);if(v.length===0)return Yk();H[Mw].flattened=v;return f};
$CN=function(f,H,v,t,M){H=H===void 0?[]:H;v=v===void 0?!1:v;M=M===void 0?-1:M;if(f==null)return H;if(f instanceof jK){var h=f.render();return $CN(h,H,v,t,M)}if(_.yP(H)&&H.nodeType===Node.ELEMENT_NODE)switch(H.tagName){case "SCRIPT":tqg(H,f);return;case "STYLE":ha5(H,f);return}OS(f)&&(f=$k(f),t&&v&&(t[M]=f));if(i1N(f)){v=k5R(f);v=Array.from(v.childNodes);v=_.V(v);for(h=v.next();!h.done;h=v.next())Wgv(H,h.value);return H}TTB(f)&&(f=$k(f.toString()),t&&v&&(t[M]=f));if(_.yP(f))return Wgv(H,f);if(Array.isArray(f)){for(h=
0;h<f.length;h++)$CN(f[h],H,v,f,h);return H}if(typeof f==="function"){h=SK(function(){var m=f();return m!=null&&!OS(m)&&i1N(m)?(m=k5R(m),Array.from(m.childNodes)):m},{debugName:"qmF2ne",
debugFn:f})[0];if(Array.isArray(h)){v=_.V(h);for(h=v.next();!h.done;h=v.next())Wgv(H,h.value);return H}t&&v&&(t[M]=h);return Wgv(H,h)}if(f!=null&&f[NTg]){t=f;M=VP(!0);var y=Xbe;try{h=y.apply(null,[t.type,t.props].concat(_.pS(t.children)))}finally{VP(M)}return $CN(h,H,v)}(y=hm.handleError)==null||y.call.apply(y,[hm].concat(_.pS(GL(Error("ic")))));return H};
VqT=function(f){var H={};H=Object.assign([],(H[Mw]={flattened:[]},H));if(!f)return H;H[0]=YeN(f,H);return H};
Wgv=function(f,H){Array.isArray(f)?f.push(H):f.appendChild(H);return f};
sS=function(f){if(!hm.enableLazyTsx)return f;if(Array.isArray(f)){for(var H=0;H<f.length;H++)f[H]=sS(f[H]);return f}return f instanceof jK?(f=f.render(),sS(f)):f};
g1_=function(f,H){var v,t,M=GNe(f),h=function(l){t=l;l=VP(!0);var L=yL(Zp);Nks("render",M);try{v=sS(f(H))}finally{cag("render",M),yL(L),VP(l)}};
h=hm.enableContextPerComponent?bNE(h,M):n4(h,hm.alwaysTrackContexts||!!f4);kjT(t);if(!H.renderedFromIdom){var y=_.HM(t);try{return OPv(f,H,v),v}finally{_.HM(y)}}!CKE(v)&&Array.isArray(v)&&(v=VqT(v));var m=E73(v);y=Array.isArray(m)?m[0]:m;var W=!1;if(y){var I,S=(I=H==null?void 0:H.idomKey)!=null?I:f;I=m!==y;y._disposeEffects=h;var d=y[I8]||{},Z=CKE(v)?v:d.sourceDynamicRange;Object.assign(d,{key:S,numNodes:I?m.length:1,context:t,higherOrder:!!y[I8],sourceDynamicRange:Z});y[I8]=d}else W=!0;(function(){var l=
_.HM(t);try{OPv(f,H,m)}finally{_.HM(l)}})();
W&&h();return v};
IF5=function(f){var H={},v;for(v in f)H={prev$jscomp$23:void 0,next$jscomp$33:void 0},H.prev$jscomp$23=Jr[v],H.next$jscomp$33=f[v],Jr[v]=function(t){return function(){var M=_.NA.apply(0,arguments);t.prev$jscomp$23.apply(null,_.pS(M));t.next$jscomp$33.apply(null,_.pS(M))}}(H)};
dC3=function(){if(zL())throw Error("jc");return Se_};
jWs=function(f,H){if(!f.__unmounted&&H){f.__unmounted=!0;try{f.didUnmount()}catch(M){var v,t;(t=hm.handleError)==null||t.call.apply(t,[hm].concat(_.pS(GL(M,(v=f.__type)==null?void 0:v.TAG_NAME))))}Jr.didUnmount(f);f.el=null;H.__instance&&delete H.__instance}};
ZPR=function(f,H,v){f._signalProps!=null&&f._disposeEffects==null&&((v===void 0?0:v)?f._disposeEffects=n4(function(){return void sWb(f,H)},hm.alwaysTrackContexts||!!f4):sWb(f,H))};
sWb=function(f,H){_.QL(function(){for(var v=f._signalProps,t=f._signalValues,M=0;M<v.length;M++){var h=v[M],y=H[h]();t[M]!==y&&(t[M]=y,axR(f,h,y))}},"e3YVbb")};
Jg5=function(f,H,v){var t,M=[];f._disposeEffects=n4(function(){_.QL(function(){var h=v();if(h===null||h===void 0)h="";if(OS(h)||h===null)t!=null||(t=document.createTextNode("")),t.parentNode!==f&&(t._isSignalTextNode=!0,f.insertBefore(t,H)),t.textContent=String(h);else if(i1N(h)){for(var y=M.length>0?M[M.length-1].nextSibling:H,m=_.V(M),W=m.next();!W.done;W=m.next())f.removeChild(W.value);h=k5R(h);M=Array.from(h.childNodes);h=_.V(M);for(m=h.next();!m.done;m=h.next())f.insertBefore(m.value,y)}else throw W=
(m=(y=xm)==null?void 0:y.name)!=null?m:"unknown",Error("Zb`"+W+"`"+typeof h);},"VvDgC")},hm.alwaysTrackContexts||!!f4)};
eaE=function(f,H){var v=_.NA.apply(2,arguments);H!=null||(H={});return!hm.enableLazyTsx||xm!=null&&!zL()?lFR(f,H,v):new UCg(f,H,v)};
lFR=function(f,H,v){if(f===_.R8)return v;if(typeof f==="function")return xm&&!zL()&&(H.renderedFromIdom=!0),C$5(f,function(){var h=Lg5(f,H,v);if(h)return h;v.length>0&&(H.children=v.length===1?v[0]:v);if(f.componentType===_.BM){var y;bNE(function(){var m=H;if(f.componentType!==_.BM)y=!1;else{m||(m={});var W=new lZ(m,f),I=yL(Zp);try{var S=W.render(m)}finally{yL(I)}S instanceof HTMLElement?(S.__instance=W,W.el=S,W.__type=f,f.TAG_NAME=S.tagName.toLowerCase(),Jr.didPatch(W),y=S):y=S}},f.name);
if(y)return y}return g1_(f,H)},H.debugInstance);
var t=xCH(f,H),M;for(M in H)axR(t,M,H[M]);ZPR(t,H);du(v,t);PKv(t,H,{isReactive:!0});BIR(t,H);return t};
xCH=function(f,H){f=(zaN.has(f.toLowerCase())?0:Fgb.has(f.startsWith("svg:")?f.replace("svg:",""):f))?document.createElementNS("http://www.w3.org/2000/svg",f.startsWith("svg:")?f.replace("svg:",""):f):rgE(f,H)||document.createElement(f);f[KgH]=!0;return f};
_.DCe=function(f){if(f){var H;(H=f._disposeRef)==null||H.call(f);var v;(v=f._disposeEffects)==null||v.call(f);f.__instance&&f.__instance instanceof US&&(H=f.__instance,jWs(H,f),H instanceof lZ&&H.disposeEffects());for(H=0;H<f.childNodes.length;H++)_.DCe(f.childNodes[H])}};
n1R=function(f){o1R.push(f)===1&&requestAnimationFrame(function(){setTimeout(function(){var H=[].concat(_.pS(o1R));o1R=[];H=_.V(H);for(var v=H.next();!v.done;v=H.next()){v=v.value;try{for(var t=0;t<v.length;t++)_.DCe(v[t])}catch(M){t=v=void 0,(t=(v=hm).handleError)==null||t.call.apply(t,[v].concat(_.pS(GL(M))))}}})})};
_.O=function(f,H){return Xbe.apply(null,[f,H].concat(_.pS(_.NA.apply(2,arguments))))};
p7v=function(f,H){H=H===void 0?new Map:H;f=_.V(f);for(var v=f.next();!v.done;v=f.next())if(v=v.value,!H.has(v)){for(var t=[],M=v.producers;M!==void 0;M=M.nextProducer)t.push(M.producer);H.set(v,t);p7v(t,H)}return H};
_.g=function(f){var H=f.cond;if(H===void 0)return f.else&&f.else();var v=_.sg(function(){return!!H()},void 0,"JHVi8"),t=function(){var M=H();
if(!M){var h;(h=hm.handleError)==null||h.call.apply(h,[hm].concat(_.pS(GL(QWT.nonNullableCondIsNull()))))}return M};
return SK(function(){var M=v(),h;n4(function(){var y=yL(Zp);try{h=sS(M?f.then(t):f.else&&f.else())}finally{yL(y)}},!0);
return h},{debugName:f.debugInstance,
debugFn:f.then,isControlFlowComponent:!0})};
ujH=function(f){return _.g(f)};
_.eK=function(f){return f.keyBy==="INDEX"?aFb(f):Py3(f)};
GPT=function(f){f=_.V(f);for(var H=f.next();!H.done;H=f.next()){var v=void 0;(v=H.value)==null||v()}};
Py3=function(f){var H=f.keyBy===void 0||f.keyBy==="REFERENCE",v=H?function(S){return S}:f.keyBy,t=[],M=[],h=[],y=[],m=[],W=[],I=!0;
_.Dt(function(){GPT(y)});
return SK(function(){var S=f.each(),d=S.length;if(d===0){if(t.length===0&&!I)return h;GPT(y);t=S;M=[];for(S=0;S<t.length;S++)M.push(v(t[S]));h=[];y=[];m=[];W=[];f.fallback&&(y[0]=CyR(function(){h[0]=sS(f.fallback())}));
I=!1;return h}for(var Z=new E1R,l=t.length-1;l>=0;l--)Z.push(M[l],l);l=Array(d);for(var L=Array(d),r=Array(d),n=Array(d),Q=Array(H?0:d),C={i$jscomp$446:0};C.i$jscomp$446<d;C={i$jscomp$446:C.i$jscomp$446,item$jscomp$104:void 0,key$jscomp$551:void 0},C.i$jscomp$446++){C.item$jscomp$104=S[C.i$jscomp$446];C.key$jscomp$551=v(C.item$jscomp$104);var w=Z.pop(C.key$jscomp$551);w!=null?(r[C.i$jscomp$446]=h[w],L[C.i$jscomp$446]=M[w],l[C.i$jscomp$446]=y[w],n[C.i$jscomp$446]=m[w],H||(Q[C.i$jscomp$446]=W[w]),Zt(function(c){return function(){n[c.i$jscomp$446](c.i$jscomp$446);
if(!H)Q[c.i$jscomp$446](c.item$jscomp$104)}}(C)),delete y[w]):l[C.i$jscomp$446]=CyR(function(c){return function(){var A=_.V(_.gp(c.i$jscomp$446,void 0,"Fqk1zd")),X=A.next().value;
A=A.next().value;n[c.i$jscomp$446]=A;L[c.i$jscomp$446]=c.key$jscomp$551;if(H)r[c.i$jscomp$446]=sS(f.children(c.item$jscomp$104,X));else{var fg=_.V(_.gp(c.item$jscomp$104,void 0,"GBj5de"));A=fg.next().value;fg=fg.next().value;Q[c.i$jscomp$446]=fg;r[c.i$jscomp$446]=sS(f.children(A,X))}}}(C))}GPT(y);
t=S;M=L;h=r;y=l;m=n;W=Q;I=!1;return r},{debugName:f.debugInstance,
debugFn:f.each,isControlFlowComponent:!0})};
aFb=function(f){var H=[],v=[],t=[],M=[],h=!1;_.Dt(function(){for(var y=_.V(M),m=y.next();!m.done;m=y.next())m=m.value,m()});
return SK(function(){var y=f.each();h&&y.length>0&&(M.pop()(),H.pop(),h=!1);for(var m=Array(y.length),W={i$jscomp$447:0};W.i$jscomp$447<y.length;W={i$jscomp$447:W.i$jscomp$447},W.i$jscomp$447++)if(W.i$jscomp$447<H.length)H[W.i$jscomp$447]!==y[W.i$jscomp$447]&&(Zt(function(S){return function(){return void v[S.i$jscomp$447](y[S.i$jscomp$447])}}(W)),H[W.i$jscomp$447]=y[W.i$jscomp$447]),m[W.i$jscomp$447]=t[W.i$jscomp$447];
else{var I=CyR(function(S){return function(){H[S.i$jscomp$447]=y[S.i$jscomp$447];var d=_.V(_.gp(y[S.i$jscomp$447],void 0,"JMMLmd")),Z=d.next().value;d=d.next().value;v[S.i$jscomp$447]=d;m[S.i$jscomp$447]=sS(f.children(Z,S.i$jscomp$447))}}(W));
M[W.i$jscomp$447]=I}for(;H.length>y.length;)H.pop(),M.pop()(),v.pop();y.length===0&&!h&&f.fallback&&(W=CyR(function(){m[0]=sS(f.fallback())}),M[0]=W,h=!0);
return t=m},{debugName:f.debugInstance,
isControlFlowComponent:!0})};
CyR=function(f){var H=f4;return n4(function(v){var t=yL(Zp);try{v.parent=H,f(v)}finally{yL(t)}},!1)};
_.Lc=function(f){return f};
_.xk=function(f){return{isDefault:!0,children:f.children}};
_.B6=function(f){var H=NIR(f),v=_.sg(function(){return cge(H)},void 0,"F1PF4");
return SK(function(){var t=v(),M;n4(function(){var h=yL(Zp);try{M=sS(t())}finally{yL(h)}});
return M},{debugName:f.debugInstance,
isControlFlowComponent:!0})};
NIR=function(f){f=f.children;return Array.isArray(f)?f:[f]};
X7s=function(f){var H=f.props;f=f.getChildren()[0];return H.when?{when:H.when,children:f}:{isDefault:!0,children:f}};
cge=function(f){var H=function(){return null};
f=_.V(f);for(var v=f.next();!v.done;v=f.next())if(v=v.value,v!=null&&v[NTg]&&(v=v.type===_.xk?{isDefault:!0,children:v.children[0]}:{when:v.props.when,children:v.children[0]}),v instanceof jK&&(v=X7s(v)),v.isDefault)H=v.children;else if(v.when())return v.children;return H};
bPs=function(f){var H=null,v,t={get value(){var h,y;(y=(h=M).validateGetValue)==null||y.call(h);return M.__value},set value(h){var y,m;(m=(y=M).validateSetValue)==null||m.call(y,h);M.__value=h;M.__hasBeenSet=!0}},M=(t.__value=null,t.__hasBeenSet=!1,t.__hasErrored=!1,t.onRender=function(h){if(v&&h!==v){v._disposeRef=void 0;var y;(y=H)==null||y()}v=h;H=f(h)||null},t.onUnmount=function(){var h;
(h=H)==null||h();H=M.value=null},t[_.Ag3]=!0,t);
return M};
ze=function(f){return typeof f==="symbol"};
kPB=function(f){var H=dC3();if(H==null)throw _.iPs.PRIMITIVE_INVALID_HOOK_CALL();var v=H.hookCounter++;H.hooks||(H.hooks=[]);var t=H.hooks;t[v]||(t[v]={key:f,host:H});if(f!==t[v].key){if(H.__type){var M;f=(M=H.__type)==null?void 0:M.name}else f=H instanceof lZ?GNe(H.functionComponent):"<"+H.el.tagName.toLowerCase()+">";throw _.iPs.OUT_OF_ORDER_HOOK_CALL(f);}return t[v]};
TIe=function(f,H){return!f||f.length!==(H==null?void 0:H.length)||f.some(function(v,t){return v!==H[t]})};
w7B=function(f,H){var v=kPB("onChange"),t=dC3();TIe(v.deps,H)&&(v.deps=H,v.pendingEffect=f,t.__syncEffects||(t.__syncEffects=[]),t.__syncEffects.push(v))};
_.F3=function(f,H,v){v!=null||(v={});v=v.appContext;var t=!!hm.legacyTriggerSoyRendererEvents;gu.setUp();try{var M=qer(f,H,v);t&&(H=v,H==null&&(H=_.S05(document).getAppContext()),H.get(fC5).JSC$28992_getEventTarget().dispatchEvent(new HQ5(vEe,f,W6)));gu.log(f);return M}finally{gu.tearDown()}};
qer=function(f,H,v){var t=function(){var h=yL(Zp);try{return n4(function(){var y=_.S05(_.Gf(f)),m;var W=DRR({rootElement:{value:f},appContext:v||(y==null?void 0:(m=y.getOptionalAppContext)==null?void 0:m.call(y)),dispatcher:y});y=_.HM(W);W=VP(!0);Ug++;try{du(H(),f),L4(!1)}catch(I){throw L4(!0),I;}finally{VP(W),_.HM(y)}},!1)}catch(y){throw hm.enableContextBasedComponentStacks&&FT(y),y;
}finally{yL(h)}},M=rp(function(){return t()});
f[tGg]=!0;return function(){f.textContent="";M();f[tGg]=!1}};
_.ru=function(f){if(aKE(VL)){var H;(H=hm.handleError)==null||H.call.apply(H,[hm].concat(_.pS(GL(Error("Yb")))))}var v=f4,t=xm;Promise.resolve().then(function(){if(v&&!v.isDisposed){var M=_.HM(v);try{rp(function(){return void f()},t)}catch(h){throw hm.enableContextBasedComponentStacks&&FT(h),h;
}finally{_.HM(M)}}})};
MGs=function(f,H){w7B(function(){return Og(f)},H)};
_.Kc=function(f){zL()?_.ru(function(){Og(f)}):w7B(function(){return Og(f)},[])};
RFT=function(f){var H=[].concat(_.pS(f));f.length=0;f=_.V(H);for(H=f.next();!H.done;H=f.next()){H=H.value;hFR(H);var v=H.pendingEffect;H.pendingEffect=null;if(v=v==null?void 0:v())H.pendingCleanup=v}};
hFR=function(f){var H=f.pendingCleanup;f.pendingCleanup=null;H==null||H()};
VGe=function(f,H){if(zL())return f();var v=kPB("useMemoInternal");TIe(v.deps,H)&&(v.deps=H,v.value=f());return v.value};
yXT=function(f,H){return VGe(f,H)};
Dp=function(f){return VGe(f,[])};
YjR=function(f){return Dp(function(){return{value:f}})};
_.o8=function(f,H){if(!f)return null;f=Object.keys(f);f=_.V(f);for(var v=f.next();!v.done;v=f.next()){v=v.value;var t=v.toLowerCase();if(t.indexOf(H,t.length-H.length)>-1)return v}return null};
_.pc=function(){var f=arguments,H=_.nc;f.length>1?H[f[0]]=f[1]:f.length===1&&Object.assign(H,f[0])};
_.a8=function(f,H){return f in _.nc?_.nc[f]:H};
_.P6=function(f,H){return!!_.a8(f,H)};
m65=function(f){var H=_.nc.EXPERIMENT_FLAGS;return H?H[f]:void 0};
WbT=function(f){$6e.forEach(function(H){return H(f)})};
_.Cc=function(f){return f&&window.yterr?function(){try{return f.apply(this,arguments)}catch(H){_.Ge(H)}}:f};
_.Ge=function(f){var H=_.ES("yt.logging.errors.log");H?H(f,"ERROR",void 0,void 0,void 0,void 0,void 0):(H=_.a8("ERRORS",[]),H.push([f,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.pc("ERRORS",H));WbT(f)};
_.Nw=function(f,H,v,t,M){var h=_.ES("yt.logging.errors.log");h?h(f,"WARNING",H,v,t,void 0,M):(h=_.a8("ERRORS",[]),h.push([f,"WARNING",H,v,t,void 0,M]),_.pc("ERRORS",h))};
gE5=function(f,H){H=f.split(H);for(var v={},t=0,M=H.length;t<M;t++){var h=H[t].split("=");if(h.length===1&&h[0]||h.length===2)try{var y=OQ3(h[0]||""),m=OQ3(h[1]||"");if(y in v){var W=v[y];Array.isArray(W)?_.qr(W,m):v[y]=[W,m]}else v[y]=m}catch(Z){var I=Z,S=h[0],d=String(gE5);I.args=[{key:S,value:h[1],query:f,method:ICe===d?"unchanged":d}];SjE.hasOwnProperty(S)||_.Nw(I)}}return v};
d6B=function(f){var H=[];_.QA.forEach(f,function(v,t){var M=_.c6(t);v=Array.isArray(v)?v:[v];_.X3(v,function(h){h==""?H.push(M):H.push(M+"="+_.c6(h))})});
return H.join("&")};
_.Ar=function(f){f.charAt(0)==="?"&&(f=f.substring(1));return gE5(f,"&")};
_.bZ=function(f){return f.indexOf("?")!==-1?(f=(f||"").split("#")[0],f=f.split("?",2),_.Ar(f.length>1?f[1]:f[0])):{}};
_.iZ=function(f,H){return jrv(f,H||{},!0)};
srv=function(f,H){return jrv(f,H||{},!1)};
jrv=function(f,H,v){var t=f.split("#",2);f=t[0];t=t.length>1?"#"+t[1]:"";var M=f.split("?",2);f=M[0];M=_.Ar(M[1]||"");for(var h in H)if(v||!_.QA.containsKey(M,h))M[h]=H[h];return _.kk(f,M)+t};
fl=function(f){if(!H)var H=window.location.href;var v=_.Te(f)[1]||null,t=_.wu(f);return v&&t?qw(f,H):t?_.wu(H)===t&&(Number(_.Te(H)[4]||null)||null)===(Number(_.Te(f)[4]||null)||null):!0};
_.JXs=function(f){f=ZQg(f);return f===null?!1:f[0]==="com"&&f[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
ZQg=function(f){f=_.wu(f);return f!==null?f.split(".").reverse():null};
OQ3=function(f){return f&&f.match(lCE)?f:Hh(f)};
_.vh=function(f){return new U63(f)};
_.t8=function(){eFE||(eFE=new Lb5);return eFE};
BjE=function(){var f=x65;return function(){var H=_.t8();H.resolve(_.vh(f))||H.addProvider({provide:f,useClass:f});return H.resolve(f)}};
Fbb=function(f){var H=_.MJ,v,t;_.Y(function(M){v=_.t8();return(t=v.resolve(_.vh(H)))?(f(t),M.return(Promise.resolve(t))):M.return(v.resolve(new zFN(H)).then(function(h){f(h);return h}))})};
_.J=function(f){f=R2(f);return typeof f==="string"&&f==="false"?!1:!!f};
_.VQ=function(f,H){f=R2(f);return f===void 0&&H!==void 0?H:Number(f||0)};
rX3=function(f){f=R2(f);return Array.isArray(f)?_.uh(f,function(H){return Number(H||0)}):[Number(f||0)]};
_.yQ=function(f){f=R2(f);return f!==void 0?String(f):""};
_.YZ=function(f){f=R2(f);return Array.isArray(f)?_.uh(f,function(H){return String(H||"")}):[String(f||"")]};
Kb5=function(){return _.a8("EXPERIMENTS_TOKEN","")};
R2=function(f){return _.a8("EXPERIMENT_FLAGS",{})[f]};
D6H=function(){for(var f=[],H=_.a8("EXPERIMENTS_FORCED_FLAGS",{}),v=_.V(Object.keys(H)),t=v.next();!t.done;t=v.next())t=t.value,f.push({key:t,value:String(H[t])});v=_.a8("EXPERIMENT_FLAGS",{});t=_.V(Object.keys(v));for(var M=t.next();!M.done;M=t.next())M=M.value,M.startsWith("force_")&&H[M]===void 0&&f.push({key:M,value:String(v[M])});return f};
nE5=function(){if(!oEN)return null;var f=oEN();return"open"in f?f:null};
_.pVT=function(f){switch(_.mp(f)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.mp=function(f){return f&&"status"in f?f.status:-1};
_.$Z=function(f,H){typeof f==="function"&&(f=_.Cc(f));return window.setTimeout(f,H)};
_.Wh=function(f,H){typeof f==="function"&&(f=_.Cc(f));return window.setInterval(f,H)};
_.Ok=function(f){window.clearTimeout(f)};
ul3=function(f){f=_.bZ(f);for(var H=_.V(Qre),v=H.next();!v.done;v=H.next())if(f[v.value]!==void 0)return!0;return!1};
GiT=function(f,H,v,t,M,h,y,m,W){v=v===void 0?"GET":v;t=t===void 0?"":t;m=m===void 0?!1:m;var I=nE5();if(!I)return null;var S=function(){(I&&"readyState"in I?I.readyState:0)===4&&H&&_.Cc(H)(I)};
"onloadend"in I?I.addEventListener("loadend",S,!1):I.onreadystatechange=S;_.J("debug_forward_web_query_parameters")&&(f=aCR(f,window.location.search));I.open(v,f,!0);h&&(I.responseType=h);y&&(I.withCredentials=!0);v=v==="POST"&&(window.FormData===void 0||!(t instanceof FormData));if(M=P0g(f,M))for(var d in M)I.setRequestHeader(d,M[d]),"content-type"===d.toLowerCase()&&(v=!1);v&&I.setRequestHeader("Content-Type","application/x-www-form-urlencoded");W&&"onprogress"in I&&(I.onprogress=function(){W(I.responseText)});
if(m&&"setAttributionReporting"in XMLHttpRequest.prototype){f={eventSourceEligible:!0,triggerEligible:!1};try{I.setAttributionReporting(f)}catch(Z){_.Nw(Z)}}I.send(t);return I};
P0g=function(f,H){H=H===void 0?{}:H;var v=fl(f),t=_.a8("INNERTUBE_CLIENT_NAME"),M=_.J("web_ajax_ignore_global_headers_if_set"),h;for(h in C0H){var y=_.a8(C0H[h]),m=h==="X-Goog-AuthUser"||h==="X-Goog-PageId";h!=="X-Goog-Visitor-Id"||y||(y=_.a8("VISITOR_DATA"));var W;if(!(W=!y)){if(!(W=v||(_.wu(f)?!1:!0))){W=f;var I;if(I=_.J("add_auth_headers_to_remarketing_google_dot_com_ping")&&h==="Authorization"&&(t==="TVHTML5"||t==="TVHTML5_UNPLUGGED"||t==="TVHTML5_SIMPLY"))I=ZQg(W),I=I===null?!1:I[1]==="google"?
!0:I[2]==="google"?I[0]==="au"&&I[1]==="com"?!0:I[0]==="uk"&&I[1]==="co"?!0:!1:!1;I&&(W=_.gH(W)||"",W=W.split("/"),W="/"+(W.length>1?W[1]:""),I=W==="/pagead");W=I?!0:!1}W=!W}W||M&&H[h]!==void 0||t==="TVHTML5_UNPLUGGED"&&m||(H[h]=y)}"X-Goog-EOM-Visitor-Id"in H&&"X-Goog-Visitor-Id"in H&&delete H["X-Goog-Visitor-Id"];if(v||!_.wu(f))H["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(v||!_.wu(f)){try{var S=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(d){}S&&(H["X-YouTube-Time-Zone"]=
S)}document.location.hostname.endsWith("youtubeeducation.com")||!v&&_.wu(f)||(H["X-YouTube-Ad-Signals"]=d6B(EER()));return H};
_.Njg=function(f,H){var v=_.wu(f);_.J("debug_handle_relative_url_for_query_forward_killswitch")||!v&&fl(f)&&(v=document.location.hostname);var t=_.gH(f);t=(v=v&&(v.endsWith("youtube.com")||v.endsWith("youtube-nocookie.com")))&&t&&t.startsWith("/api/");if(!v||t)return f;var M=_.Ar(H),h={};_.X3(Qre,function(y){M[y]&&(h[y]=M[y])});
return srv(f,h)};
cX3=function(f,H){H.method="POST";H.postParams||(H.postParams={});return _.I2(f,H)};
XV_=function(f,H){var v=_.a8("XSRF_FIELD_NAME"),t;H.headers&&(t=H.headers["Content-Type"]);return!H.excludeXsrf&&(!_.wu(f)||H.withCredentials||_.wu(f)===document.location.hostname)&&H.method==="POST"&&(!t||t==="application/x-www-form-urlencoded")&&!(H.postParams&&H.postParams[v])};
_.I2=function(f,H){var v=H.format||"JSON";f=AXH(f,H);var t=bQr(f,H),M=!1,h=iQv(f,function(W){if(!M){M=!0;m&&_.Ok(m);var I=_.pVT(W),S=null,d=400<=W.status&&W.status<500,Z=500<=W.status&&W.status<600;if(I||d||Z)S=ki5(f,v,W,H.convertToSafeHtml);I&&(I=Tj3(v,W,S));S=S||{};d=H.context||_.Mr;I?H.onSuccess&&H.onSuccess.call(d,W,S):H.onError&&H.onError.call(d,W,S);H.onFinish&&H.onFinish.call(d,W,S)}},H.method,t,H.headers,H.responseType,H.withCredentials,!1,H.onProgress);
t=H.timeout||0;if(H.onTimeout&&t>0){var y=H.onTimeout;var m=_.$Z(function(){M||(M=!0,h.abort(),_.Ok(m),y.call(H.context||_.Mr,h))},t)}return h};
AXH=function(f,H){H.includeDomain&&(f=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+f);var v=_.a8("XSRF_FIELD_NAME");if(H=H.urlParams)H[v]&&delete H[v],f=_.iZ(f,H);return f};
bQr=function(f,H){var v=_.a8("XSRF_FIELD_NAME"),t=_.a8("XSRF_TOKEN"),M=H.postBody||"",h=H.postParams;XV_(f,H)&&(h||(h={}),h[v]=t);(_.J("ajax_parse_query_data_only_when_filled")&&h&&Object.keys(h).length>0||h)&&typeof M==="string"&&(M=_.Ar(M),_.QA.extend(M,h),M=H.postBodyFormat&&H.postBodyFormat==="JSON"?JSON.stringify(M):_.S$(M));h=M||h&&!_.QA.isEmpty(h);!wVR&&h&&H.method!=="POST"&&(wVR=!0,_.Ge(Error("Hc")));return M};
ki5=function(f,H,v,t){var M=null;switch(H){case "JSON":try{var h=v.responseText}catch(y){throw t=Error("Ic"),t.params=f,_.Nw(t),y;}f=v.getResponseHeader("Content-Type")||"";h&&f.indexOf("json")>=0&&(h.substring(0,5)===")]}'\n"&&(h=h.substring(5)),M=JSON.parse(h));break;case "XML":if(f=(f=v.responseXML)?qje(f):null)M={},_.X3(f.getElementsByTagName("*"),function(y){M[y.tagName]=fq5(y)})}t&&HYH(M);
return M};
HYH=function(f){if(_.vo(f))for(var H in f)H==="html_content"||Yv(H,"_html")?f[H]=iD(f[H]):HYH(f[H])};
Tj3=function(f,H,v){if(H&&H.status===204)return!0;switch(f){case "JSON":return!!v;case "XML":return Number(v&&v.return_code)===0;case "RAW":return!0;default:return!!v}};
qje=function(f){return f?(f=("responseXML"in f?f.responseXML:f).getElementsByTagName("root"))&&f.length>0?f[0]:null:null};
fq5=function(f){var H="";_.X3(f.childNodes,function(v){H+=v.nodeValue});
return H};
vTR=function(f){if(f.name==="JavaException")return!0;f=f.stack;return f.includes("chrome://")||f.includes("-extension://")||f.includes("webkit-masked-url://")};
tBB=function(f){if(!f.stack)return!0;var H=!f.stack.includes("\n");return H&&f.stack.includes("ErrorType: ")||H&&f.stack.includes("Anonymous function (Unknown script")||f.stack.toLowerCase()==="not available"||f.fileName==="user-script"||f.fileName.startsWith("user-script:")?!0:!1};
_.dH=function(f){_.zO.call(this);this.JSC$10500_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!f};
hjg=function(f,H){var v=f.length,t=0,M=function(){return f.charCodeAt(t++)};
do{var h=MB5(M);if(h===Infinity)break;var y=h>>3;switch(h&7){case 0:h=MB5(M);if(y===H)return h;break;case 1:if(y===H)return;t+=8;break;case 2:h=MB5(M);if(y===H)return f.substr(t,h);t+=h;break;case 5:if(y===H)return;t+=4;break;default:return}}while(t<v)};
MB5=function(f){var H=f(),v=H&127;if(H<128)return v;H=f();v|=(H&127)<<7;if(H<128)return v;H=f();v|=(H&127)<<14;if(H<128)return v;H=f();return H<128?v|(H&127)<<21:Infinity};
VBR=function(f,H,v,t){if(f)if(Array.isArray(f)){var M=t;for(t=0;t<f.length&&!(f[t]&&(M+=RjE(t,f[t],H,v),M>500));t++);t=M}else if(typeof f==="object")for(M in f){if(f[M]){var h=M;var y=f[M],m=H,W=v;h=typeof y!=="string"||h!=="clickTrackingParams"&&h!=="trackingParams"?0:(y=hjg(atob(y.replace(/-/g,"+").replace(/_/g,"/")),2))?RjE(h+".ve",y,m,W):0;t+=h;t+=RjE(M,f[M],H,v);if(t>500)break}}else v[H]=j$(f),t+=v[H].length;else v[H]=j$(f),t+=v[H].length;return t};
RjE=function(f,H,v,t){v+="."+f;f=j$(H);t[v]=f;return v.length+f.length};
j$=function(f){try{return(typeof f==="string"?f:String(JSON.stringify(f))).substr(0,500)}catch(H){return"unable to serialize "+typeof f+" ("+H.message+")"}};
ydb=function(f){switch(f){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}};
_.Zy=function(f,H,v,t,M){_.sk.set(f,H,{maxAge:v,path:"/",domain:t===void 0?"youtube.com":t,secure:M===void 0?!1:M})};
_.YFE=function(f,H,v){_.sk.remove(f,H===void 0?"/":H,v===void 0?"youtube.com":v)};
_.J8=function(){if(_.J("embeds_web_enable_cookie_detection_fix")){if(!_.Mr.navigator.cookieEnabled)return!1}else if(!_.sk.isEnabled())return!1;if(!_.sk.isEmpty())return!0;_.J("embeds_web_enable_cookie_detection_fix")?_.sk.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.sk.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.sk.get("TESTCOOKIESENABLED")!=="1")return!1;_.sk.remove("TESTCOOKIESENABLED");return!0};
mOg=function(){var f=_.Mr.navigator;return f?f.connection:void 0};
$OR=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(f){}};
_.OYR=function(){var f=mOg();if(f){var H=WOT[f.type||"unknown"]||"CONN_UNKNOWN";f=WOT[f.effectiveType||"unknown"]||"CONN_UNKNOWN";H==="CONN_CELLULAR_UNKNOWN"&&f!=="CONN_UNKNOWN"&&(H=f);if(H!=="CONN_UNKNOWN")return H;if(f!=="CONN_UNKNOWN")return f}};
IqR=function(){var f=mOg();if(f!=null&&f.effectiveType)return gT3.hasOwnProperty(f.effectiveType)?gT3[f.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.Uk=function(){try{return _.ld(),!0}catch(f){return!1}};
_.ld=function(f){if(_.a8("DATASYNC_ID")!==void 0)return _.a8("DATASYNC_ID");throw new _.e$("Datasync ID not set",f===void 0?"unknown":f);};
_.Ll=function(f){this.mechanism=f};
xZ=function(f){this.mechanism=f};
Bh=function(f){this.storage_=f;this.cachedIsStorageAvailable_=null};
SF_=function(){var f=null;try{f=_.Mr.localStorage||null}catch(H){}Bh.call(this,f)};
dOR=function(){var f=null;try{f=_.Mr.sessionStorage||null}catch(H){}Bh.call(this,f)};
zE=function(f,H){this.mechanism_=f;this.JSC$10602_prefix_=H+"::"};
_.j5r=function(f){var H=new SF_;return H.isAvailable()?f?new zE(H,f):H:null};
_.s5E=function(f){var H=new dOR;return H.isAvailable()?f?new zE(H,f):H:null};
Jdb=function(){var f;return(f=ZY3())==null?void 0:f.get("LAST_RESULT_ENTRY_KEY",!0)};
_.Kl=function(f){lqg||(_.Fm?_.Fm.logError(f):(_.rH.push({type:"ERROR",payload:f}),_.rH.length>10&&_.rH.shift()))};
Dy=function(f,H){lqg||(_.Fm?_.Fm.logEvent(f,H):(_.rH.push({type:"EVENT",eventType:f,payload:H}),_.rH.length>10&&_.rH.shift()))};
o2=function(f){if(f.indexOf(":")>=0)throw Error("Pc");};
nl=function(f){return f.substr(0,f.indexOf(":"))||f};
LOE=function(){return(UON||ej5)&&pl("applewebkit")&&!pl("version")&&(!pl("safari")||pl("gsa/"))};
pl=function(f){var H=_.jE();return H?H.toLowerCase().indexOf(f)>=0:!1};
zj_=function(f,H,v,t){H=nl(H);var M=f instanceof Error?f:Error("Qc`"+f);if(M instanceof QQ)return M;f={objectStoreNames:v,dbName:H,dbVersion:t};if(M.name==="QuotaExceededError")return new QQ("QUOTA_EXCEEDED",f);if(_.ud&&M.name==="UnknownError")return new QQ("QUOTA_MAYBE_EXCEEDED",f);if(M instanceof xON)return new QQ("MISSING_INDEX",Object.assign({},f,{objectStore:M.objectStore,index:M.index}));if(M.name==="InvalidStateError"&&BLR.some(function(h){return M.message.includes(h)}))return new QQ("EXECUTE_TRANSACTION_ON_CLOSED_DB",
f);
if(M.name==="AbortError")return new QQ("UNKNOWN_ABORT",f,M.message);M.args=[Object.assign({},f,{name:"IdbError",originalName:M.name})];M.level="WARNING";return M};
a2=function(f,H,v){var t=Jdb();return new QQ("IDB_NOT_SUPPORTED",{context:{caller:f,publicName:H,version:v,hasSucceededOnce:t==null?void 0:t.hasSucceededOnce}})};
FOg=function(f){if(!f)throw Error();throw f;};
rdB=function(f){return f};
KOR=function(f,H,v){var t=function(){try{f.removeEventListener("success",M),f.removeEventListener("error",h)}catch(y){}},M=function(){H(f.result);
t()},h=function(){v(f.error);
t()};
f.addEventListener("success",M);f.addEventListener("error",h)};
DOr=function(f){return new Promise(function(H,v){KOR(f,H,v)})};
Cl=function(f){return new Ph(new GE(function(H,v){KOR(f,H,v)}))};
oTR=function(f,H){return new Ph(new GE(function(v,t){var M=function(){var h=f?H(f):null;h?h.then(function(y){f=y;M()},t):v()};
M()}))};
nT5=function(f,H,v){return new Promise(function(t,M){var h=H!==void 0?self.indexedDB.open(f,H):self.indexedDB.open(f);var y=v.blocked,m=v.blocking,W=v.terminated,I=v.upgrade,S=v.closed,d,Z=function(){d||(d=new Ek(h.result,{closed:S}));return d};
h.addEventListener("upgradeneeded",function(l){try{if(l.newVersion===null)throw Error("Vc");if(h.transaction===null)throw Error("Wc");l.dataLoss&&l.dataLoss!=="none"&&Dy("IDB_DATA_CORRUPTED",{reason:l.dataLossMessage||"unknown reason",dbName:nl(f)});var L=Z(),r=new NJ(h.transaction);I&&I(L,function(n){return l.oldVersion<n&&l.newVersion>=n},r);
r.done.catch(function(n){M(n)})}catch(n){M(n)}});
h.addEventListener("success",function(){var l=h.result;m&&l.addEventListener("versionchange",function(){m(Z())});
l.addEventListener("close",function(){Dy("IDB_UNEXPECTEDLY_CLOSED",{dbName:nl(f),dbVersion:l.version});W&&W()});
t(Z())});
h.addEventListener("error",function(){M(h.error)});
y&&h.addEventListener("blocked",function(){y()})})};
paT=function(f,H,v){v=v===void 0?{}:v;return nT5(f,H,v)};
_.Xm=function(f,H){H=H===void 0?{}:H;var v,t,M,h;return _.Y(function(y){if(y.nextAddress==1)return _.Zc(y,2),v=self.indexedDB.deleteDatabase(f),t=H,(M=t.blocked)&&v.addEventListener("blocked",function(){M()}),y.yield(DOr(v),4);
if(y.nextAddress!=2)return _.ch(y,0);h=_.xu(y);throw zj_(h,f,"",-1);})};
uGb=function(f,H){var v;return _.Y(function(t){if(t.nextAddress==1)return t.yield(_.A8(Q5B,H),2);v=t.yieldResult;return t.return(_.bd(v,["databases"],{enableRetries:!0,mode:"readwrite"},function(M){var h=M.objectStore("databases");return h.get(f.actualName).then(function(y){if(y?f.actualName!==y.actualName||f.publicName!==y.publicName||f.userIdentifier!==y.userIdentifier:1)return h.put(f).then(function(){})})}))})};
_.id=function(f,H){var v;return _.Y(function(t){if(t.nextAddress==1)return f?t.yield(_.A8(Q5B,H),2):t.return();v=t.yieldResult;return t.return(v.delete("databases",f))})};
_.aqv=function(f,H){var v,t;return _.Y(function(M){return M.nextAddress==1?(v=[],M.yield(_.A8(Q5B,H),2)):M.nextAddress!=3?(t=M.yieldResult,M.yield(_.bd(t,["databases"],{enableRetries:!0,mode:"readonly"},function(h){v.length=0;return kZ(h.objectStore("databases"),{},function(y){f(y.getValue())&&v.push(y.getValue());return y.continue()})}),3)):M.return(v)})};
PAT=function(f,H){return _.aqv(function(v){return v.publicName===f&&v.userIdentifier!==void 0},H)};
ETR=function(){var f,H,v,t;return _.Y(function(M){switch(M.nextAddress){case 1:f=Jdb();if((H=f)==null?0:H.hasSucceededOnce)return M.return(!0);var h;if(h=GZH)h=/WebKit\/([0-9]+)/.exec(_.jE()),h=!!(h&&parseInt(h[1],10)>=600);h&&(h=/WebKit\/([0-9]+)/.exec(_.jE()),h=!(h&&parseInt(h[1],10)>=602));if(h||TE)return M.return(!1);try{if(v=self,!(v.indexedDB&&v.IDBIndex&&v.IDBKeyRange&&v.IDBObjectStore))return M.return(!1)}catch(y){return M.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return M.return(!1);
_.Zc(M,2);t={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return M.yield(uGb(t,CAb),4);case 4:return M.yield(_.id("yt-idb-test-do-not-use",CAb),5);case 5:return M.return(!0);case 2:return _.xu(M),M.return(!1)}})};
cdH=function(){if(NLg!==void 0)return NLg;lqg=!0;return NLg=ETR().then(function(f){lqg=!1;var H;if((H=ZY3())!=null&&H.expiringStorage_){var v;H={hasSucceededOnce:((v=Jdb())==null?void 0:v.hasSucceededOnce)||f};var t;(t=ZY3())==null||t.set("LAST_RESULT_ENTRY_KEY",H,2592E3,!0)}return f})};
wH=function(){return _.ES("ytglobal.idbToken_")||void 0};
_.fN=function(){var f=wH();return f?Promise.resolve(f):cdH().then(function(H){(H=H?CAb:void 0)&&_.qJ("ytglobal.idbToken_",H);return H})};
Xas=function(f){if(!_.Uk())throw f=new QQ("AUTH_INVALID",{dbName:f}),_.Kl(f),f;var H=_.ld();return{actualName:f+":"+H,publicName:f,userIdentifier:H}};
AdE=function(f,H,v,t){var M,h,y,m,W,I;return _.Y(function(S){switch(S.nextAddress){case 1:return h=(M=Error().stack)!=null?M:"",S.yield(_.fN(),2);case 2:y=S.yieldResult;if(!y)throw m=a2("openDbImpl",f,H),_.J("ytidb_async_stack_killswitch")||(m.stack=m.stack+"\n"+h.substring(h.indexOf("\n")+1)),_.Kl(m),m;o2(f);W=v?{actualName:f,publicName:f,userIdentifier:void 0}:Xas(f);_.Zc(S,3);return S.yield(uGb(W,y),5);case 5:return S.yield(paT(W.actualName,H,t),6);case 6:return S.return(S.yieldResult);case 3:return I=
_.xu(S),_.Zc(S,7),S.yield(_.id(W.actualName,y),9);case 9:_.ch(S,8);break;case 7:_.xu(S);case 8:throw I;}})};
bYB=function(f,H,v){v=v===void 0?{}:v;return AdE(f,H,!1,v)};
iYR=function(f,H,v){v=v===void 0?{}:v;return AdE(f,H,!0,v)};
kZR=function(f,H){H=H===void 0?{}:H;var v,t;return _.Y(function(M){if(M.nextAddress==1)return M.yield(_.fN(),2);if(M.nextAddress!=3){v=M.yieldResult;if(!v)return M.return();o2(f);t=Xas(f);return M.yield(_.Xm(t.actualName,H),3)}return M.yield(_.id(t.actualName,v),0)})};
TL5=function(f,H,v){f=f.map(function(t){return _.Y(function(M){return M.nextAddress==1?M.yield(_.Xm(t.actualName,H),2):M.yield(_.id(t.actualName,v),0)})});
return Promise.all(f).then(function(){})};
was=function(f){var H=H===void 0?{}:H;var v,t;return _.Y(function(M){if(M.nextAddress==1)return M.yield(_.fN(),2);if(M.nextAddress!=3){v=M.yieldResult;if(!v)return M.return();o2(f);return M.yield(PAT(f,v),3)}t=M.yieldResult;return M.yield(TL5(t,H,v),0)})};
qFr=function(f,H){H=H===void 0?{}:H;var v;return _.Y(function(t){if(t.nextAddress==1)return t.yield(_.fN(),2);if(t.nextAddress!=3){v=t.yieldResult;if(!v)return t.return();o2(f);return t.yield(_.Xm(f,H),3)}return t.yield(_.id(f,v),0)})};
H8=function(f,H){return fnR(f,H)};
vzH=function(f){return _.A8(HGg(),f)};
tcN=function(f,H,v,t){var M,h,y;return _.Y(function(m){switch(m.nextAddress){case 1:return M={config:f,hashData:H,timestamp:t!==void 0?t:(0,_.ta)()},m.yield(vzH(v),2);case 2:return h=m.yieldResult,m.yield(h.clear("hotConfigStore"),3);case 3:return m.yield(h.put("hotConfigStore",M),4);case 4:return y=m.yieldResult,m.return(y)}})};
Mc3=function(f,H,v,t,M){var h,y,m;return _.Y(function(W){switch(W.nextAddress){case 1:return h={config:f,hashData:H,configData:v,timestamp:M!==void 0?M:(0,_.ta)()},W.yield(vzH(t),2);case 2:return y=W.yieldResult,W.yield(y.clear("coldConfigStore"),3);case 3:return W.yield(y.put("coldConfigStore",h),4);case 4:return m=W.yieldResult,W.return(m)}})};
h9v=function(f){var H,v;return _.Y(function(t){return t.nextAddress==1?t.yield(vzH(f),2):t.nextAddress!=3?(H=t.yieldResult,v=void 0,t.yield(_.bd(H,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(M){return _.ha(M.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(h){v=h.getValue()})}),3)):t.return(v)})};
R9g=function(f){var H,v;return _.Y(function(t){return t.nextAddress==1?t.yield(vzH(f),2):t.nextAddress!=3?(H=t.yieldResult,v=void 0,t.yield(_.bd(H,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(M){return _.ha(M.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(h){v=h.getValue()})}),3)):t.return(v)})};
Vc_=function(){return _.Y(function(f){return f.yield(was("ytGcfConfig"),0)})};
yte=function(){return"INNERTUBE_API_KEY"in _.nc&&"INNERTUBE_API_VERSION"in _.nc};
_.RP=function(){return{innertubeApiKey:_.a8("INNERTUBE_API_KEY"),innertubeApiVersion:_.a8("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.a8("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.a8("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.a8("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.a8("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.a8("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.a8("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.a8("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.P6("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.P6("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.a8("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.In3=function(f){var H={client:{hl:f.innertubeContextHostLanguage,gl:f.innertubeContextGeoLocation,clientName:f.innertubeContextClientName,clientVersion:f.innertubeContextClientVersion,configInfo:f.innertubeContextClientConfigInfo}};navigator.userAgent&&(H.client.userAgent=String(navigator.userAgent));var v=_.Mr.devicePixelRatio;v&&v!=1&&(H.client.screenDensityFloat=String(v));v=Kb5();v!==""&&(H.client.experimentsToken=v);v=D6H();v.length>0&&(H.request={internalExperimentFlags:v});Y6v(f,void 0,H);
mSr(void 0,H);$S3(void 0,H);WNE(f,void 0,H);OGH(void 0,H);_.J("start_client_gcf")&&gzT(void 0,H);_.a8("DELEGATED_SESSION_ID")&&!_.J("pageid_as_header_web")&&(H.user={onBehalfOfUser:_.a8("DELEGATED_SESSION_ID")});!_.J("fill_delegate_context_in_gel_killswitch")&&(f=_.a8("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(H.user=Object.assign({},H.user,{serializedDelegationContext:f}));f=_.a8("INNERTUBE_CONTEXT");var t;if(_.J("enable_persistent_device_token")&&(f==null?0:(t=f.client)==null?0:t.rolloutToken)){var M;
H.client.rolloutToken=f==null?void 0:(M=f.client)==null?void 0:M.rolloutToken}t=Object;M=t.assign;f=H.client;v={};for(var h=_.V(Object.entries(_.Ar(_.a8("DEVICE","")))),y=h.next();!y.done;y=h.next()){var m=_.V(y.value);y=m.next().value;m=m.next().value;y==="cbrand"?v.deviceMake=m:y==="cmodel"?v.deviceModel=m:y==="cbr"?v.browserName=m:y==="cbrver"?v.browserVersion=m:y==="cos"?v.osName=m:y==="cosver"?v.osVersion=m:y==="cplatform"&&(v.platform=m)}H.client=M.call(t,f,v);return H};
Y6v=function(f,H,v){f=f.innertubeContextClientName;if(f==="WEB"||f==="MWEB"||f===1||f===2)if(H){v=_.V$(H,S6E,96)||new S6E;var t=dSg();t=Object.keys(j93).indexOf(t);t=t===-1?null:t;t!==null&&_.y$(v,3,t);_.eV(H,96,v)}else v&&(v.client.mainAppWebInfo=(t=v.client.mainAppWebInfo)!=null?t:{},v.client.mainAppWebInfo.webDisplayMode=dSg())};
mSr=function(f,H){var v=_.ES("yt.embedded_player.embed_url");v&&(f?(H=_.V$(f,s93,7)||new s93,_.rr(H,4,v),_.eV(f,7,H)):H&&(H.thirdParty={embedUrl:v}))};
$S3=function(f,H){var v;if(_.J("web_log_memory_total_kbytes")&&((v=_.Mr.navigator)==null?0:v.deviceMemory)){var t;v=(t=_.Mr.navigator)==null?void 0:t.deviceMemory;f?_.YX(f,95,WA(v*1E6)):H&&(H.client.memoryTotalKbytes=""+v*1E6)}};
WNE=function(f,H,v){if(f.appInstallData)if(H){var t;v=(t=_.V$(H,m$,62))!=null?t:new m$;_.rr(v,6,f.appInstallData);_.eV(H,62,v)}else v&&(v.client.configInfo=v.client.configInfo||{},v.client.configInfo.appInstallData=f.appInstallData)};
OGH=function(f,H){var v=_.OYR();v&&(f?_.y$(f,61,ZGR[v]):H&&(H.client.connectionType=v));_.J("web_log_effective_connection_type")&&(v=IqR())&&(f?_.y$(f,94,JtR[v]):H&&(H.client.effectiveConnectionType=v))};
_.e9g=function(f,H,v){v=v===void 0?{}:v;var t={};_.a8("EOM_VISITOR_DATA")?t={"X-Goog-EOM-Visitor-Id":_.a8("EOM_VISITOR_DATA")}:t={"X-Goog-Visitor-Id":v.visitorData||_.a8("VISITOR_DATA","")};if(H&&H.includes("www.youtube-nocookie.com"))return t;H=v.authorization||_.a8("AUTHORIZATION");H||(f?H="Bearer "+_.ES("gapi.auth.getToken")().access_token:(lng.instance||(lng.instance=new lng),f=USe(),_.J("pageid_as_header_web")||delete f["X-Goog-PageId"],t=Object.assign({},t,f)));H&&(t.Authorization=H);return t};
gzT=function(f,H){var v=LN3();if(v){var t=v.coldConfigData,M=v.coldHashData;v=v.hotHashData;if(f){var h;H=(h=_.V$(f,m$,62))!=null?h:new m$;t=_.rr(H,1,t);_.rr(t,3,M).setHotHashData(v);_.eV(f,62,H)}else H&&(H.client.configInfo=H.client.configInfo||{},t&&(H.client.configInfo.coldConfigData=t),M&&(H.client.configInfo.coldHashData=M),v&&(H.client.configInfo.hotHashData=v))}};
$X=function(f){for(var H=f.length;--H>=0;)f[H]=0};
xSE=function(f,H,v,t,M){this.static_tree=f;this.extra_bits=H;this.extra_base=v;this.elems=t;this.max_length=M;this.has_stree=f&&f.length};
BZe=function(f,H){this.dyn_tree=f;this.max_code=0;this.stat_desc=H};
W8=function(f,H){f.pending_buf[f.pending++]=H&255;f.pending_buf[f.pending++]=H>>>8&255};
O0=function(f,H,v){f.bi_valid>16-v?(f.bi_buf|=H<<f.bi_valid&65535,W8(f,f.bi_buf),f.bi_buf=H>>16-f.bi_valid,f.bi_valid+=v-16):(f.bi_buf|=H<<f.bi_valid&65535,f.bi_valid+=v)};
gk=function(f,H,v){O0(f,v[H*2],v[H*2+1])};
z9e=function(f,H){var v=0;do v|=f&1,f>>>=1,v<<=1;while(--H>0);return v>>>1};
FNH=function(f,H,v){var t=Array(16),M=0,h;for(h=1;h<=15;h++)t[h]=M=M+v[h-1]<<1;for(v=0;v<=H;v++)M=f[v*2+1],M!==0&&(f[v*2]=z9e(t[M]++,M))};
rtE=function(f){var H;for(H=0;H<286;H++)f.dyn_ltree[H*2]=0;for(H=0;H<30;H++)f.dyn_dtree[H*2]=0;for(H=0;H<19;H++)f.bl_tree[H*2]=0;f.dyn_ltree[512]=1;f.opt_len=f.static_len=0;f.last_lit=f.matches=0};
KNg=function(f){f.bi_valid>8?W8(f,f.bi_buf):f.bi_valid>0&&(f.pending_buf[f.pending++]=f.bi_buf);f.bi_buf=0;f.bi_valid=0};
DSr=function(f,H,v){KNg(f);W8(f,v);W8(f,~v);IP.arraySet(f.pending_buf,f.window,H,v,f.pending);f.pending+=v};
ozT=function(f,H,v,t){var M=H*2,h=v*2;return f[M]<f[h]||f[M]===f[h]&&t[H]<=t[v]};
nzb=function(f,H,v){for(var t=f.heap[v],M=v<<1;M<=f.heap_len;){M<f.heap_len&&ozT(H,f.heap[M+1],f.heap[M],f.depth)&&M++;if(ozT(H,t,f.heap[M],f.depth))break;f.heap[v]=f.heap[M];v=M;M<<=1}f.heap[v]=t};
PYE=function(f,H,v){var t=0;if(f.last_lit!==0){do{var M=f.pending_buf[f.d_buf+t*2]<<8|f.pending_buf[f.d_buf+t*2+1];var h=f.pending_buf[f.l_buf+t];t++;if(M===0)gk(f,h,H);else{var y=Sk[h];gk(f,y+256+1,H);var m=pSs[y];m!==0&&(h-=Q9b[y],O0(f,h,m));M--;y=M<256?dk[M]:dk[256+(M>>>7)];gk(f,y,v);m=uE5[y];m!==0&&(M-=anr[y],O0(f,M,m))}}while(t<f.last_lit)}gk(f,256,H)};
GDb=function(f,H){var v=H.dyn_tree,t=H.stat_desc.static_tree,M=H.stat_desc.has_stree,h=H.stat_desc.elems,y,m=-1;f.heap_len=0;f.heap_max=573;for(y=0;y<h;y++)v[y*2]!==0?(f.heap[++f.heap_len]=m=y,f.depth[y]=0):v[y*2+1]=0;for(;f.heap_len<2;){var W=f.heap[++f.heap_len]=m<2?++m:0;v[W*2]=1;f.depth[W]=0;f.opt_len--;M&&(f.static_len-=t[W*2+1])}H.max_code=m;for(y=f.heap_len>>1;y>=1;y--)nzb(f,v,y);W=h;do y=f.heap[1],f.heap[1]=f.heap[f.heap_len--],nzb(f,v,1),t=f.heap[1],f.heap[--f.heap_max]=y,f.heap[--f.heap_max]=
t,v[W*2]=v[y*2]+v[t*2],f.depth[W]=(f.depth[y]>=f.depth[t]?f.depth[y]:f.depth[t])+1,v[y*2+1]=v[t*2+1]=W,f.heap[1]=W++,nzb(f,v,1);while(f.heap_len>=2);f.heap[--f.heap_max]=f.heap[1];y=H.dyn_tree;W=H.max_code;t=H.stat_desc.static_tree;M=H.stat_desc.has_stree;h=H.stat_desc.extra_bits;var I=H.stat_desc.extra_base,S=H.stat_desc.max_length,d,Z=0;for(d=0;d<=15;d++)f.bl_count[d]=0;y[f.heap[f.heap_max]*2+1]=0;for(H=f.heap_max+1;H<573;H++){var l=f.heap[H];d=y[y[l*2+1]*2+1]+1;d>S&&(d=S,Z++);y[l*2+1]=d;if(!(l>
W)){f.bl_count[d]++;var L=0;l>=I&&(L=h[l-I]);var r=y[l*2];f.opt_len+=r*(d+L);M&&(f.static_len+=r*(t[l*2+1]+L))}}if(Z!==0){do{for(d=S-1;f.bl_count[d]===0;)d--;f.bl_count[d]--;f.bl_count[d+1]+=2;f.bl_count[S]--;Z-=2}while(Z>0);for(d=S;d!==0;d--)for(l=f.bl_count[d];l!==0;)t=f.heap[--H],t>W||(y[t*2+1]!==d&&(f.opt_len+=(d-y[t*2+1])*y[t*2],y[t*2+1]=d),l--)}FNH(v,m,f.bl_count)};
CYN=function(f,H,v){var t,M=-1,h=H[1],y=0,m=7,W=4;h===0&&(m=138,W=3);H[(v+1)*2+1]=65535;for(t=0;t<=v;t++){var I=h;h=H[(t+1)*2+1];++y<m&&I===h||(y<W?f.bl_tree[I*2]+=y:I!==0?(I!==M&&f.bl_tree[I*2]++,f.bl_tree[32]++):y<=10?f.bl_tree[34]++:f.bl_tree[36]++,y=0,M=I,h===0?(m=138,W=3):I===h?(m=6,W=3):(m=7,W=4))}};
EzN=function(f,H,v){var t,M=-1,h=H[1],y=0,m=7,W=4;h===0&&(m=138,W=3);for(t=0;t<=v;t++){var I=h;h=H[(t+1)*2+1];if(!(++y<m&&I===h)){if(y<W){do gk(f,I,f.bl_tree);while(--y!==0)}else I!==0?(I!==M&&(gk(f,I,f.bl_tree),y--),gk(f,16,f.bl_tree),O0(f,y-3,2)):y<=10?(gk(f,17,f.bl_tree),O0(f,y-3,3)):(gk(f,18,f.bl_tree),O0(f,y-11,7));y=0;M=I;h===0?(m=138,W=3):I===h?(m=6,W=3):(m=7,W=4)}}};
NZN=function(f){var H=4093624447,v;for(v=0;v<=31;v++,H>>>=1)if(H&1&&f.dyn_ltree[v*2]!==0)return 0;if(f.dyn_ltree[18]!==0||f.dyn_ltree[20]!==0||f.dyn_ltree[26]!==0)return 1;for(v=32;v<256;v++)if(f.dyn_ltree[v*2]!==0)return 1;return 0};
jk=function(f,H,v){f.pending_buf[f.d_buf+f.last_lit*2]=H>>>8&255;f.pending_buf[f.d_buf+f.last_lit*2+1]=H&255;f.pending_buf[f.l_buf+f.last_lit]=v&255;f.last_lit++;H===0?f.dyn_ltree[v*2]++:(f.matches++,H--,f.dyn_ltree[(Sk[v]+256+1)*2]++,f.dyn_dtree[(H<256?dk[H]:dk[256+(H>>>7)])*2]++);return f.last_lit===f.lit_bufsize-1};
ZU=function(f,H){f.msg=s0[H];return H};
Ja=function(f){for(var H=f.length;--H>=0;)f[H]=0};
l7=function(f){var H=f.state,v=H.pending;v>f.avail_out&&(v=f.avail_out);v!==0&&(IP.arraySet(f.output,H.pending_buf,H.pending_out,v,f.next_out),f.next_out+=v,H.pending_out+=v,f.total_out+=v,f.avail_out-=v,H.pending-=v,H.pending===0&&(H.pending_out=0))};
xX=function(f,H){var v=f.block_start>=0?f.block_start:-1,t=f.strstart-f.block_start,M=0;if(f.level>0){f.strm.data_type===2&&(f.strm.data_type=NZN(f));GDb(f,f.l_desc);GDb(f,f.d_desc);CYN(f,f.dyn_ltree,f.l_desc.max_code);CYN(f,f.dyn_dtree,f.d_desc.max_code);GDb(f,f.bl_desc);for(M=18;M>=3&&f.bl_tree[ctR[M]*2+1]===0;M--);f.opt_len+=3*(M+1)+5+5+4;var h=f.opt_len+3+7>>>3;var y=f.static_len+3+7>>>3;y<=h&&(h=y)}else h=y=t+5;if(t+4<=h&&v!==-1)O0(f,H?1:0,3),DSr(f,v,t);else if(f.strategy===4||y===h)O0(f,2+(H?
1:0),3),PYE(f,ek,LN);else{O0(f,4+(H?1:0),3);v=f.l_desc.max_code+1;t=f.d_desc.max_code+1;M+=1;O0(f,v-257,5);O0(f,t-1,5);O0(f,M-4,4);for(h=0;h<M;h++)O0(f,f.bl_tree[ctR[h]*2+1],3);EzN(f,f.dyn_ltree,v-1);EzN(f,f.dyn_dtree,t-1);PYE(f,f.dyn_ltree,f.dyn_dtree)}rtE(f);H&&KNg(f);f.block_start=f.strstart;l7(f.strm)};
B8=function(f,H){f.pending_buf[f.pending++]=H};
zj=function(f,H){f.pending_buf[f.pending++]=H>>>8&255;f.pending_buf[f.pending++]=H&255};
XSe=function(f,H){var v=f.max_chain_length,t=f.strstart,M=f.prev_length,h=f.nice_match,y=f.strstart>f.w_size-262?f.strstart-(f.w_size-262):0,m=f.window,W=f.w_mask,I=f.prev,S=f.strstart+258,d=m[t+M-1],Z=m[t+M];f.prev_length>=f.good_match&&(v>>=2);h>f.lookahead&&(h=f.lookahead);do{var l=H;if(m[l+M]===Z&&m[l+M-1]===d&&m[l]===m[t]&&m[++l]===m[t+1]){t+=2;for(l++;m[++t]===m[++l]&&m[++t]===m[++l]&&m[++t]===m[++l]&&m[++t]===m[++l]&&m[++t]===m[++l]&&m[++t]===m[++l]&&m[++t]===m[++l]&&m[++t]===m[++l]&&t<S;);
l=258-(S-t);t=S-258;if(l>M){f.match_start=H;M=l;if(l>=h)break;d=m[t+M-1];Z=m[t+M]}}}while((H=I[H&W])>y&&--v!==0);return M<=f.lookahead?M:f.lookahead};
rk=function(f){var H=f.w_size,v;do{var t=f.window_size-f.lookahead-f.strstart;if(f.strstart>=H+(H-262)){IP.arraySet(f.window,f.window,H,H,0);f.match_start-=H;f.strstart-=H;f.block_start-=H;var M=v=f.hash_size;do{var h=f.head[--M];f.head[M]=h>=H?h-H:0}while(--v);M=v=H;do h=f.prev[--M],f.prev[M]=h>=H?h-H:0;while(--v);t+=H}if(f.strm.avail_in===0)break;M=f.strm;v=f.window;h=f.strstart+f.lookahead;var y=M.avail_in;y>t&&(y=t);y===0?v=0:(M.avail_in-=y,IP.arraySet(v,M.input,M.next_in,y,h),M.state.wrap===
1?M.adler=AtT(M.adler,v,y,h):M.state.wrap===2&&(M.adler=FB(M.adler,v,y,h)),M.next_in+=y,M.total_in+=y,v=y);f.lookahead+=v;if(f.lookahead+f.insert>=3)for(t=f.strstart-f.insert,f.ins_h=f.window[t],f.ins_h=(f.ins_h<<f.hash_shift^f.window[t+1])&f.hash_mask;f.insert&&!(f.ins_h=(f.ins_h<<f.hash_shift^f.window[t+3-1])&f.hash_mask,f.prev[t&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=t,t++,f.insert--,f.lookahead+f.insert<3););}while(f.lookahead<262&&f.strm.avail_in!==0)};
bG3=function(f,H){for(var v;;){if(f.lookahead<262){rk(f);if(f.lookahead<262&&H===0)return 1;if(f.lookahead===0)break}v=0;f.lookahead>=3&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+3-1])&f.hash_mask,v=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart);v!==0&&f.strstart-v<=f.w_size-262&&(f.match_length=XSe(f,v));if(f.match_length>=3)if(v=jk(f,f.strstart-f.match_start,f.match_length-3),f.lookahead-=f.match_length,f.match_length<=f.max_lazy_match&&f.lookahead>=3){f.match_length--;
do f.strstart++,f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+3-1])&f.hash_mask,f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart;while(--f.match_length!==0);f.strstart++}else f.strstart+=f.match_length,f.match_length=0,f.ins_h=f.window[f.strstart],f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+1])&f.hash_mask;else v=jk(f,0,f.window[f.strstart]),f.lookahead--,f.strstart++;if(v&&(xX(f,!1),f.strm.avail_out===0))return 1}f.insert=f.strstart<2?f.strstart:2;return H===4?(xX(f,
!0),f.strm.avail_out===0?3:4):f.last_lit&&(xX(f,!1),f.strm.avail_out===0)?1:2};
KN=function(f,H){for(var v,t;;){if(f.lookahead<262){rk(f);if(f.lookahead<262&&H===0)return 1;if(f.lookahead===0)break}v=0;f.lookahead>=3&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+3-1])&f.hash_mask,v=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart);f.prev_length=f.match_length;f.prev_match=f.match_start;f.match_length=2;v!==0&&f.prev_length<f.max_lazy_match&&f.strstart-v<=f.w_size-262&&(f.match_length=XSe(f,v),f.match_length<=5&&(f.strategy===1||f.match_length===3&&
f.strstart-f.match_start>4096)&&(f.match_length=2));if(f.prev_length>=3&&f.match_length<=f.prev_length){t=f.strstart+f.lookahead-3;v=jk(f,f.strstart-1-f.prev_match,f.prev_length-3);f.lookahead-=f.prev_length-1;f.prev_length-=2;do++f.strstart<=t&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+3-1])&f.hash_mask,f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart);while(--f.prev_length!==0);f.match_available=0;f.match_length=2;f.strstart++;if(v&&(xX(f,!1),f.strm.avail_out===0))return 1}else if(f.match_available){if((v=
jk(f,0,f.window[f.strstart-1]))&&xX(f,!1),f.strstart++,f.lookahead--,f.strm.avail_out===0)return 1}else f.match_available=1,f.strstart++,f.lookahead--}f.match_available&&(jk(f,0,f.window[f.strstart-1]),f.match_available=0);f.insert=f.strstart<2?f.strstart:2;return H===4?(xX(f,!0),f.strm.avail_out===0?3:4):f.last_lit&&(xX(f,!1),f.strm.avail_out===0)?1:2};
iGR=function(f,H){for(var v,t,M,h=f.window;;){if(f.lookahead<=258){rk(f);if(f.lookahead<=258&&H===0)return 1;if(f.lookahead===0)break}f.match_length=0;if(f.lookahead>=3&&f.strstart>0&&(t=f.strstart-1,v=h[t],v===h[++t]&&v===h[++t]&&v===h[++t])){for(M=f.strstart+258;v===h[++t]&&v===h[++t]&&v===h[++t]&&v===h[++t]&&v===h[++t]&&v===h[++t]&&v===h[++t]&&v===h[++t]&&t<M;);f.match_length=258-(M-t);f.match_length>f.lookahead&&(f.match_length=f.lookahead)}f.match_length>=3?(v=jk(f,1,f.match_length-3),f.lookahead-=
f.match_length,f.strstart+=f.match_length,f.match_length=0):(v=jk(f,0,f.window[f.strstart]),f.lookahead--,f.strstart++);if(v&&(xX(f,!1),f.strm.avail_out===0))return 1}f.insert=0;return H===4?(xX(f,!0),f.strm.avail_out===0?3:4):f.last_lit&&(xX(f,!1),f.strm.avail_out===0)?1:2};
kDr=function(f,H){for(var v;;){if(f.lookahead===0&&(rk(f),f.lookahead===0)){if(H===0)return 1;break}f.match_length=0;v=jk(f,0,f.window[f.strstart]);f.lookahead--;f.strstart++;if(v&&(xX(f,!1),f.strm.avail_out===0))return 1}f.insert=0;return H===4?(xX(f,!0),f.strm.avail_out===0?3:4):f.last_lit&&(xX(f,!1),f.strm.avail_out===0)?1:2};
DU=function(f,H,v,t,M){this.good_length=f;this.max_lazy=H;this.nice_length=v;this.max_chain=t;this.func=M};
TZR=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 IP.Buf16(1146);this.dyn_dtree=new IP.Buf16(122);this.bl_tree=new IP.Buf16(78);Ja(this.dyn_ltree);Ja(this.dyn_dtree);Ja(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new IP.Buf16(16);this.heap=new IP.Buf16(573);Ja(this.heap);this.heap_max=this.heap_len=0;this.depth=new IP.Buf16(573);Ja(this.depth);this.bi_valid=this.bi_buf=this.insert=this.matches=this.static_len=this.opt_len=
this.d_buf=this.last_lit=this.lit_bufsize=this.l_buf=0};
wSE=function(f,H){if(!f||!f.state||H>5||H<0)return f?ZU(f,-2):-2;var v=f.state;if(!f.output||!f.input&&f.avail_in!==0||v.status===666&&H!==4)return ZU(f,f.avail_out===0?-5:-2);v.strm=f;var t=v.last_flush;v.last_flush=H;if(v.status===42)if(v.wrap===2)f.adler=0,B8(v,31),B8(v,139),B8(v,8),v.gzhead?(B8(v,(v.gzhead.text?1:0)+(v.gzhead.hcrc?2:0)+(v.gzhead.extra?4:0)+(v.gzhead.name?8:0)+(v.gzhead.comment?16:0)),B8(v,v.gzhead.time&255),B8(v,v.gzhead.time>>8&255),B8(v,v.gzhead.time>>16&255),B8(v,v.gzhead.time>>
24&255),B8(v,v.level===9?2:v.strategy>=2||v.level<2?4:0),B8(v,v.gzhead.os&255),v.gzhead.extra&&v.gzhead.extra.length&&(B8(v,v.gzhead.extra.length&255),B8(v,v.gzhead.extra.length>>8&255)),v.gzhead.hcrc&&(f.adler=FB(f.adler,v.pending_buf,v.pending,0)),v.gzindex=0,v.status=69):(B8(v,0),B8(v,0),B8(v,0),B8(v,0),B8(v,0),B8(v,v.level===9?2:v.strategy>=2||v.level<2?4:0),B8(v,3),v.status=113);else{var M=8+(v.w_bits-8<<4)<<8;M|=(v.strategy>=2||v.level<2?0:v.level<6?1:v.level===6?2:3)<<6;v.strstart!==0&&(M|=
32);v.status=113;zj(v,M+(31-M%31));v.strstart!==0&&(zj(v,f.adler>>>16),zj(v,f.adler&65535));f.adler=1}if(v.status===69)if(v.gzhead.extra){for(M=v.pending;v.gzindex<(v.gzhead.extra.length&65535)&&(v.pending!==v.pending_buf_size||(v.gzhead.hcrc&&v.pending>M&&(f.adler=FB(f.adler,v.pending_buf,v.pending-M,M)),l7(f),M=v.pending,v.pending!==v.pending_buf_size));)B8(v,v.gzhead.extra[v.gzindex]&255),v.gzindex++;v.gzhead.hcrc&&v.pending>M&&(f.adler=FB(f.adler,v.pending_buf,v.pending-M,M));v.gzindex===v.gzhead.extra.length&&
(v.gzindex=0,v.status=73)}else v.status=73;if(v.status===73)if(v.gzhead.name){M=v.pending;do{if(v.pending===v.pending_buf_size&&(v.gzhead.hcrc&&v.pending>M&&(f.adler=FB(f.adler,v.pending_buf,v.pending-M,M)),l7(f),M=v.pending,v.pending===v.pending_buf_size)){var h=1;break}h=v.gzindex<v.gzhead.name.length?v.gzhead.name.charCodeAt(v.gzindex++)&255:0;B8(v,h)}while(h!==0);v.gzhead.hcrc&&v.pending>M&&(f.adler=FB(f.adler,v.pending_buf,v.pending-M,M));h===0&&(v.gzindex=0,v.status=91)}else v.status=91;if(v.status===
91)if(v.gzhead.comment){M=v.pending;do{if(v.pending===v.pending_buf_size&&(v.gzhead.hcrc&&v.pending>M&&(f.adler=FB(f.adler,v.pending_buf,v.pending-M,M)),l7(f),M=v.pending,v.pending===v.pending_buf_size)){h=1;break}h=v.gzindex<v.gzhead.comment.length?v.gzhead.comment.charCodeAt(v.gzindex++)&255:0;B8(v,h)}while(h!==0);v.gzhead.hcrc&&v.pending>M&&(f.adler=FB(f.adler,v.pending_buf,v.pending-M,M));h===0&&(v.status=103)}else v.status=103;v.status===103&&(v.gzhead.hcrc?(v.pending+2>v.pending_buf_size&&l7(f),
v.pending+2<=v.pending_buf_size&&(B8(v,f.adler&255),B8(v,f.adler>>8&255),f.adler=0,v.status=113)):v.status=113);if(v.pending!==0){if(l7(f),f.avail_out===0)return v.last_flush=-1,0}else if(f.avail_in===0&&(H<<1)-(H>4?9:0)<=(t<<1)-(t>4?9:0)&&H!==4)return ZU(f,-5);if(v.status===666&&f.avail_in!==0)return ZU(f,-5);if(f.avail_in!==0||v.lookahead!==0||H!==0&&v.status!==666){t=v.strategy===2?kDr(v,H):v.strategy===3?iGR(v,H):oP[v.level].func(v,H);if(t===3||t===4)v.status=666;if(t===1||t===3)return f.avail_out===
0&&(v.last_flush=-1),0;if(t===2&&(H===1?(O0(v,2,3),gk(v,256,ek),v.bi_valid===16?(W8(v,v.bi_buf),v.bi_buf=0,v.bi_valid=0):v.bi_valid>=8&&(v.pending_buf[v.pending++]=v.bi_buf&255,v.bi_buf>>=8,v.bi_valid-=8)):H!==5&&(O0(v,0,3),DSr(v,0,0),H===3&&(Ja(v.head),v.lookahead===0&&(v.strstart=0,v.block_start=0,v.insert=0))),l7(f),f.avail_out===0))return v.last_flush=-1,0}if(H!==4)return 0;if(v.wrap<=0)return 1;v.wrap===2?(B8(v,f.adler&255),B8(v,f.adler>>8&255),B8(v,f.adler>>16&255),B8(v,f.adler>>24&255),B8(v,
f.total_in&255),B8(v,f.total_in>>8&255),B8(v,f.total_in>>16&255),B8(v,f.total_in>>24&255)):(zj(v,f.adler>>>16),zj(v,f.adler&65535));l7(f);v.wrap>0&&(v.wrap=-v.wrap);return v.pending!==0?0:1};
q6H=function(f){if(!(this instanceof q6H))return new q6H(f);f=this.options=IP.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},f||{});f.raw&&f.windowBits>0?f.windowBits=-f.windowBits:f.gzip&&f.windowBits>0&&f.windowBits<16&&(f.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new fwR;this.strm.avail_out=0;var H=this.strm;var v=f.level,t=f.method,M=f.windowBits,h=f.memLevel,y=f.strategy;if(H){var m=1;v===-1&&(v=6);M<0?(m=0,M=-M):M>15&&
(m=2,M-=16);if(h<1||h>9||t!==8||M<8||M>15||v<0||v>9||y<0||y>4)H=ZU(H,-2);else{M===8&&(M=9);var W=new TZR;H.state=W;W.strm=H;W.wrap=m;W.gzhead=null;W.w_bits=M;W.w_size=1<<W.w_bits;W.w_mask=W.w_size-1;W.hash_bits=h+7;W.hash_size=1<<W.hash_bits;W.hash_mask=W.hash_size-1;W.hash_shift=~~((W.hash_bits+3-1)/3);W.window=new IP.Buf8(W.w_size*2);W.head=new IP.Buf16(W.hash_size);W.prev=new IP.Buf16(W.w_size);W.lit_bufsize=1<<h+6;W.pending_buf_size=W.lit_bufsize*4;W.pending_buf=new IP.Buf8(W.pending_buf_size);
W.d_buf=W.lit_bufsize;W.l_buf=3*W.lit_bufsize;W.level=v;W.strategy=y;W.method=t;if(H&&H.state){H.total_in=H.total_out=0;H.data_type=2;v=H.state;v.pending=0;v.pending_out=0;v.wrap<0&&(v.wrap=-v.wrap);v.status=v.wrap?42:113;H.adler=v.wrap===2?0:1;v.last_flush=0;if(!H2B){t=Array(16);for(h=y=0;h<28;h++)for(Q9b[h]=y,M=0;M<1<<pSs[h];M++)Sk[y++]=h;Sk[y-1]=h;for(h=y=0;h<16;h++)for(anr[h]=y,M=0;M<1<<uE5[h];M++)dk[y++]=h;for(y>>=7;h<30;h++)for(anr[h]=y<<7,M=0;M<1<<uE5[h]-7;M++)dk[256+y++]=h;for(M=0;M<=15;M++)t[M]=
0;for(M=0;M<=143;)ek[M*2+1]=8,M++,t[8]++;for(;M<=255;)ek[M*2+1]=9,M++,t[9]++;for(;M<=279;)ek[M*2+1]=7,M++,t[7]++;for(;M<=287;)ek[M*2+1]=8,M++,t[8]++;FNH(ek,287,t);for(M=0;M<30;M++)LN[M*2+1]=5,LN[M*2]=z9e(M,5);vVv=new xSE(ek,pSs,257,286,15);tr3=new xSE(LN,uE5,0,30,15);Mrr=new xSE([],hs5,0,19,7);H2B=!0}v.l_desc=new BZe(v.dyn_ltree,vVv);v.d_desc=new BZe(v.dyn_dtree,tr3);v.bl_desc=new BZe(v.bl_tree,Mrr);v.bi_buf=0;v.bi_valid=0;rtE(v);v=0}else v=ZU(H,-2);v===0&&(H=H.state,H.window_size=2*H.w_size,Ja(H.head),
H.max_lazy_match=oP[H.level].max_lazy,H.good_match=oP[H.level].good_length,H.nice_match=oP[H.level].nice_length,H.max_chain_length=oP[H.level].max_chain,H.strstart=0,H.block_start=0,H.lookahead=0,H.insert=0,H.match_length=H.prev_length=2,H.match_available=0,H.ins_h=0);H=v}}else H=-2;if(H!==0)throw Error(s0[H]);f.header&&(H=this.strm)&&H.state&&H.state.wrap===2&&(H.state.gzhead=f.header);if(f.dictionary){var I;typeof f.dictionary==="string"?I=RsH(f.dictionary):Vrs.call(f.dictionary)==="[object ArrayBuffer]"?
I=new Uint8Array(f.dictionary):I=f.dictionary;f=this.strm;h=I;y=h.length;if(f&&f.state)if(I=f.state,H=I.wrap,H===2||H===1&&I.status!==42||I.lookahead)H=-2;else{H===1&&(f.adler=AtT(f.adler,h,y,0));I.wrap=0;y>=I.w_size&&(H===0&&(Ja(I.head),I.strstart=0,I.block_start=0,I.insert=0),v=new IP.Buf8(I.w_size),IP.arraySet(v,h,y-I.w_size,I.w_size,0),h=v,y=I.w_size);v=f.avail_in;t=f.next_in;M=f.input;f.avail_in=y;f.next_in=0;f.input=h;for(rk(I);I.lookahead>=3;){h=I.strstart;y=I.lookahead-2;do I.ins_h=(I.ins_h<<
I.hash_shift^I.window[h+3-1])&I.hash_mask,I.prev[h&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=h,h++;while(--y);I.strstart=h;I.lookahead=2;rk(I)}I.strstart+=I.lookahead;I.block_start=I.strstart;I.insert=I.lookahead;I.lookahead=0;I.match_length=I.prev_length=2;I.match_available=0;f.next_in=t;f.input=M;f.avail_in=v;I.wrap=H;H=0}else H=-2;if(H!==0)throw Error(s0[H]);this._dict_set=!0}};
yJs=function(f,H){H=H||{};H.gzip=!0;H=new q6H(H);H.push(f,!0);if(H.err)throw H.msg||s0[H.err];return H.result};
mu3=function(f,H){var v=YER();v&&v.publish.call(v,f.toString(),f,H)};
IwH=function(f,H,v){var t=YER();if(!t)return 0;var M=t.subscribe(f.toString(),function(h,y){var m=_.ES("ytPubsub2Pubsub2SkipSubKey");m&&m==M||(m=function(){if($ue[M])try{if(y&&f instanceof WFs&&f!=h)try{var W=f.dataClass,I=y;if(!I.args||!I.version)throw Error("Yc");try{if(!W.version_){var S=new W;W.version_=S.version}var d=W.version_}catch(Z){}if(!d||I.version!=d)throw Error("Zc");try{y=Reflect.construct(W,_.kv(I.args))}catch(Z){throw Z.message="yt.pubsub2.Data.deserialize(): "+Z.message,Z;}}catch(Z){throw Z.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+f.toString()+": "+Z.message,Z;}H.call(v||window,y)}catch(Z){_.Ge(Z)}},O2g[f.toString()]?_.ES("yt.scheduler.instance")?_.nN.addLowPriorityJob(m):_.$Z(m,0):m())});
$ue[M]=!0;gVe[f.toString()]||(gVe[f.toString()]=[]);gVe[f.toString()].push(M);return M};
sKN=function(){var f=SE5,H=IwH(duH,function(v){f.apply(void 0,arguments);jK_(H)});
return H};
jK_=function(f){var H=YER();H&&(typeof f==="number"&&(f=[f]),_.X3(f,function(v){H.unsubscribeByKey(v);delete $ue[v]}))};
YER=function(){return _.ES("ytPubsub2Pubsub2Instance")};
Z25=function(f,H,v){v=v===void 0?{sampleRate:.1}:v;Math.random()<Math.min(.02,v.sampleRate/100)&&mu3("meta_logging_csi_event",{timerName:f,timelineData:H})};
_.JJ_=function(f){return f?(f=f.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.Hj(f):null:null};
_.pN=function(f){return f?(f=f.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.FM(f):null:null};
Uue=function(){lwR||(lwR=_.pN(_.a8("WORKER_SERIALIZATION_URL")));return lwR||void 0};
_.LFr=function(){var f=Uue();esR||f===void 0||(esR=new Worker(_.re(f),void 0));return esR};
_.xur=function(){return typeof Worker==="function"&&Uue()?!0:!1};
_.rJb=function(){if(_.xur()&&!BXg){var f=function(v){v=v.data;if(v.op==="gzippedGelBatch"){var t=zs_.get(v.key);t&&(FFr(v.gzippedBatch,t.latencyPayload,t.url,t.options,t.sendFn),zs_.delete(v.key))}},H=_.LFr();
H&&(H.addEventListener("message",f),H.onerror=function(){zs_.clear()},BXg=!0)}};
uIe=function(f,H,v,t,M){M=M===void 0?!1:M;var h={startTime:(0,_.ta)(),ticks:{},infos:{}};if(Q$)try{var y=KFB(H);if(y!=null&&(y>Due||y<oVv))t(f,v);else{if(_.J("gzip_gel_with_worker")&&(_.J("initial_gzip_use_main_thread")&&!nVB||!_.J("initial_gzip_use_main_thread"))){BXg||_.rJb();var m=_.LFr();if(m&&!M){zs_.set(pBH,{latencyPayload:h,url:f,options:v,sendFn:t});m.postMessage({op:"gelBatchToGzip",serializedBatch:H,key:pBH});pBH++;return}}var W=yJs(QKH(H));FFr(W,h,f,v,t)}}catch(I){_.Nw(I),t(f,v)}else t(f,
v)};
FFr=function(f,H,v,t,M){nVB=!1;var h=(0,_.ta)();H.ticks.gelc=h;u7++;_.J("disable_compression_due_to_performance_degredation")&&h-H.startTime>=aws&&(PJT++,_.J("abandon_compression_after_N_slow_zips")?u7===_.VQ("compression_disable_point")&&PJT>GWb&&(Q$=!1):Q$=!1);CJN(H);t.headers||(t.headers={});t.headers["Content-Encoding"]="gzip";t.postBody=f;t.postParams=void 0;M(v,t)};
EVb=function(f){var H=H===void 0?!1:H;var v=v===void 0?!1:v;var t=(0,_.ta)(),M={startTime:t,ticks:{},infos:{}},h=H?_.ES("yt.logging.gzipForFetch",!1):!0;if(Q$&&h){if(!f.body)return f;try{var y=v?f.body:typeof f.body==="string"?f.body:JSON.stringify(f.body);h=y;if(!v&&typeof y==="string"){var m=KFB(y);if(m!=null&&(m>Due||m<oVv))return f;v=H?{level:1}:void 0;h=yJs(QKH(y),v);var W=(0,_.ta)();M.ticks.gelc=W;if(H){u7++;if((_.J("disable_compression_due_to_performance_degredation")||_.J("disable_compression_due_to_performance_degradation_lr"))&&
W-t>=aws)if(PJT++,_.J("abandon_compression_after_N_slow_zips")||_.J("abandon_compression_after_N_slow_zips_lr")){H=PJT/u7;var I=GWb/_.VQ("compression_disable_point");u7>0&&u7%_.VQ("compression_disable_point")===0&&H>=I&&(Q$=!1)}else Q$=!1;CJN(M)}}f.headers=Object.assign({},{"Content-Encoding":"gzip"},f.headers||{});f.body=h;return f}catch(S){return _.Nw(S),f}}else return f};
KFB=function(f){try{return(new Blob(f.split(""))).size}catch(H){return _.Nw(H),null}};
CJN=function(f){_.J("gel_compression_csi_killswitch")||!_.J("log_gel_compression_latency")&&!_.J("log_gel_compression_latency_lr")||Z25("gel_compression",f,{sampleRate:.1})};
NXe=function(){this.blockSize=-1};
aP=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var f=1;f<this.blockSize;++f)this.pad_[f]=0;this.total_=this.inbuf_=0;this.reset()};
XB5=function(f){f=Object.assign({},f);delete f.Authorization;var H=_.cJR();if(H){var v=new aP;v.update(_.a8("INNERTUBE_API_KEY"));v.update(H);f.hash=_.QG(v.digest(),3)}return f};
Gj=function(){AJN||(AJN=new _.P8("yt.innertube"));return AJN};
b2N=function(f,H,v,t){if(t)return null;t=Gj().get("nextId",!0)||1;var M=Gj().get("requests",!0)||{};M[t]={method:f,request:H,authState:XB5(v),requestTime:Math.round((0,_.ta)())};Gj().set("nextId",t+1,86400,!0);Gj().set("requests",M,86400,!0);return t};
i2e=function(f){var H=Gj().get("requests",!0)||{};delete H[f];Gj().set("requests",H,86400,!0)};
TXT=function(f){var H=Gj().get("requests",!0);if(H){for(var v in H){var t=H[v];if(!(Math.round((0,_.ta)())-t.requestTime<6E4)){var M=t.authState,h=XB5(_.e9g(!1));_.QA.equals(M,h)&&(M=t.request,"requestTimeMs"in M&&(M.requestTimeMs=Math.round((0,_.ta)())),kW_(f,t.method,M,{}));delete H[v]}}Gj().set("requests",H,86400,!0)}};
wBH=function(f){var H;return(f=f==null?void 0:(H=f.error)==null?void 0:H.code)&&f>=400&&f<=599?!1:!0};
qEH=function(f){var H;f=f==null?void 0:(H=f.error)==null?void 0:H.code;return!(f!==400&&f!==415)};
Hub=function(){if(fIg)return fIg();var f={};fIg=H8("LogsDatabaseV2",{objectStores:(f.LogsRequestsStore={addedAtVersion:2},f),shared:!1,upgrade:function(H,v,t){v(2)&&CN(H,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});v(3);v(5)&&(t=t.objectStore("LogsRequestsStore"),t.JSC$10661_wrapped.indexNames.contains("newRequest")&&t.JSC$10661_wrapped.deleteIndex("newRequest"),E0(t,"newRequestV2",["status","interface","timestamp"]));v(7)&&H.JSC$10646_wrapped.objectStoreNames.contains("sapisid")&&H.JSC$10646_wrapped.deleteObjectStore("sapisid");
v(9)&&H.JSC$10646_wrapped.objectStoreNames.contains("SWHealthLog")&&H.JSC$10646_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return fIg()};
NR=function(f){return _.A8(Hub(),f)};
tW5=function(f,H){var v,t,M,h;return _.Y(function(y){if(y.nextAddress==1)return v={startTime:(0,_.ta)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},y.yield(NR(H),2);if(y.nextAddress!=3)return t=y.yieldResult,M=Object.assign({},f,{options:JSON.parse(JSON.stringify(f.options)),interface:_.a8("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),y.yield(t.put("LogsRequestsStore",M),3);h=y.yieldResult;v.ticks.tc=(0,_.ta)();v6s(v);return y.return(h)})};
MW5=function(f,H){var v,t,M,h,y,m,W,I,S;return _.Y(function(d){if(d.nextAddress==1)return v={startTime:(0,_.ta)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},d.yield(NR(H),2);if(d.nextAddress!=3)return t=d.yieldResult,M=_.a8("INNERTUBE_CONTEXT_CLIENT_NAME",0),h=[f,M,0],y=[f,M,(0,_.ta)()],m=IDBKeyRange.bound(h,y),W="prev",_.J("use_fifo_for_networkless")&&(W="next"),I=void 0,S=f==="NEW"?"readwrite":"readonly",_.J("use_readonly_for_get_most_recent_by_status_killswitch")&&(S="readwrite"),
d.yield(_.bd(t,["LogsRequestsStore"],{mode:S,enableRetries:!0},function(Z){return _.ha(Z.objectStore("LogsRequestsStore").index("newRequestV2"),{query:m,direction:W},function(l){l.getValue()&&(I=l.getValue(),f==="NEW"&&(I.status="QUEUED",l.update(I)))})}),3);
v.ticks.tc=(0,_.ta)();v6s(v);return d.return(I)})};
hUr=function(f,H){var v;return _.Y(function(t){if(t.nextAddress==1)return t.yield(NR(H),2);v=t.yieldResult;return t.return(_.bd(v,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(M){var h=M.objectStore("LogsRequestsStore");return h.get(f).then(function(y){if(y)return y.status="QUEUED",h.put(y).then(function(){return y})})}))})};
RUN=function(f,H,v,t){v=v===void 0?!0:v;var M;return _.Y(function(h){if(h.nextAddress==1)return h.yield(NR(H),2);M=h.yieldResult;return h.return(_.bd(M,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(y){var m=y.objectStore("LogsRequestsStore");return m.get(f).then(function(W){return W?(W.status="NEW",v&&(W.sendCount+=1),t!==void 0&&(W.options.compress=t),m.put(W).then(function(){return W})):Ph.resolve(void 0)})}))})};
VWH=function(f,H){var v;return _.Y(function(t){if(t.nextAddress==1)return t.yield(NR(H),2);v=t.yieldResult;return t.return(v.delete("LogsRequestsStore",f))})};
yVg=function(f){var H,v;return _.Y(function(t){if(t.nextAddress==1)return t.yield(NR(f),2);H=t.yieldResult;v=(0,_.ta)()-2592E6;return t.yield(_.bd(H,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(M){return kZ(M.objectStore("LogsRequestsStore"),{},function(h){if(h.getValue().timestamp<=v)return h.delete().then(function(){return h.continue()})})}),0)})};
YVs=function(){_.Y(function(f){return f.yield(was("LogsDatabaseV2"),0)})};
v6s=function(f){_.J("nwl_csi_killswitch")||Z25("networkless_performance",f,{sampleRate:1})};
_.$Eg=function(f){return _.A8(mE5(),f)};
Wxe=function(f){var H,v;_.Y(function(t){if(t.nextAddress==1)return t.yield(_.$Eg(f),2);H=t.yieldResult;v=(0,_.ta)()-2592E6;return t.yield(_.bd(H,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(M){return kZ(M.objectStore("SWHealthLog"),{},function(h){if(h.getValue().timestamp<=v)return h.delete().then(function(){return h.continue()})})}),0)})};
OuB=function(f){var H;return _.Y(function(v){if(v.nextAddress==1)return v.yield(_.$Eg(f),2);H=v.yieldResult;return v.yield(H.clear("SWHealthLog"),0)})};
_.c8=function(f,H,v,t,M,h,y){M=M===void 0?"":M;h=h===void 0?!1:h;y=y===void 0?!1:y;if(f)if(v&&!pl("cobalt"))_.Nw(new _.e$("Legacy referrer-scrubbed ping detected")),f&&g6E(f,void 0,{scrubReferrer:!0});else if(M)GiT(f,H,"POST",M,t);else if(_.a8("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||t||y)GiT(f,H,"GET","",t,void 0,h,y);else{b:{try{c:{var m=new IIb({url:f});if(m.urlParamValues_.dsh==="1")var W=null;else{var I=m.urlParamValues_.ae;if(I==="1"){var S=m.urlParamValues_.adurl;if(S)try{W={version:3,directUrl:decodeURIComponent(S),
asyncUrl:lpv(m.JSC$9467_url_,"act=1","ri=1",SV_(m))};break c}catch(L){}}W=I==="2"?{version:4,directUrl:lpv(m.JSC$9467_url_,"dct=1","suid="+m.suid_,""),asyncUrl:lpv(m.JSC$9467_url_,"act=1","ri=1","suid="+m.suid_)}:null}}if(W){var d=_.gH(f);var Z=!(!d||!d.endsWith("/aclk")||_.c_(f,"ri")!=="1");break b}}catch(L){}Z=!1}if(Z){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(f,"")){var l=!0;break b}}catch(L){}l=!1}l?(H&&H(),v=!0):v=!1}else v=!1;v||g6E(f,H)}};
g6E=function(f,H,v){v=v===void 0?{}:v;var t=new Image,M=""+dEv++;jus[M]=t;t.onload=t.onerror=function(){H&&jus[M]&&H();delete jus[M]};
v.scrubReferrer&&(t.referrerPolicy="no-referrer");t.src=f};
XB=function(f,H){su3(f,H==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
Zug=function(f){var H;return((H=document.featurePolicy)==null?0:H.allowedFeatures().includes("attribution-reporting"))?f+"&nis=6":f+"&nis=5"};
JV5=function(f){if(!f)return!1;try{var H;if(((H=_.Ar(f))==null?void 0:H.asm)==="4")return!0}catch(v){_.Ge(v)}return!1};
su3=function(f,H){H?(f=Zug(f),_.c8(f,void 0,void 0,void 0,"",!0,!0)):_.c8(f)};
UE5=function(){lIb||(lIb=new _.P8("yt.offline"));return lIb};
eUE=function(f){if(_.J("offline_error_handling")){var H=UE5().get("errors",!0)||{};H[f.message]={name:f.name,stack:f.stack};f.level&&(H[f.message].level=f.level);UE5().set("errors",H,2592E3,!0)}};
xE5=function(f,H,v,t){t=t===void 0?!1:t;H=_.J("web_fp_via_jspb")?Object.assign({},H):H;_.J("use_cfr_monitor")&&Lxr(f,H);if(_.J("use_request_time_ms_header"))H.headers&&fl(f)&&(H.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.ta)())));else{var M;if((M=H.postParams)==null?0:M.requestTimeMs)H.postParams.requestTimeMs=Math.round((0,_.ta)())}v&&Object.keys(H).length===0?_.c8(f):H.compress?H.postBody?(typeof H.postBody!=="string"&&(H.postBody=JSON.stringify(H.postBody)),uIe(f,H.postBody,
H,_.I2,t)):uIe(f,JSON.stringify(H.postParams),H,cX3,t):_.I2(f,H)};
B9b=function(f,H){_.J("use_event_time_ms_header")&&fl(f)&&(H.headers||(H.headers={}),H.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.ta)())));return H};
_.Fx_=function(){zUe||(zUe=new _.Aa({logOfflineErrors:!0,enablePolling:!0}));return zUe};
Lxr=function(f,H){var v=H.onError?H.onError:function(){};
H.onError=function(M,h){b7().requestComplete(f,!1);v(M,h)};
var t=H.onSuccess?H.onSuccess:function(){};
H.onSuccess=function(M,h){b7().requestComplete(f,!0);t(M,h)}};
_.rV5=function(){return _.wu(document.location.toString())!=="www.youtube-nocookie.com"};
_.o65=function(){return _.ES("ytNetworklessLoggingInitializationOptions")?_.KxE.isNwlInitialized:_.DEH};
n6e=function(f,H){if(_.J("polymer_on_demand_shady_dom")){var v;var t=(v=f.__shady_native_firstElementChild)!=null?v:f.firstElementChild}else t=f.firstElementChild;for(;t;){if(f=H(t)?t:n6e(t,H))return f;t=t.nextElementSibling}return null};
QuR=function(){var f=document;if("visibilityState"in f)return f.visibilityState;var H=pKB+"VisibilityState";if(H in f)return f[H]};
_.uAg=function(f,H){var v;i7(f,function(t){v=H[t];return!!v});
return v};
_.Tj=function(f){var H=aIR(f);H?H.focus(void 0):_.kX(f)};
aIR=function(f){return(f=n6e(f,function(H){return _.wk(H)?PV5(H)&&!!H.offsetParent:!1}))?f:null};
_.kX=function(f,H){f.hasAttribute("tabindex")||f.setAttribute("tabindex","-1");f.focus(H)};
GKg=function(f,H,v,t){t=t===void 0?{}:t;f.addEventListener&&(H!="mouseenter"||"onmouseenter"in document?H!="mouseleave"||"onmouseenter"in document?H=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(H="MozMousePixelScroll"):H="mouseout":H="mouseover");return _.QA.findKey(qR,function(M){var h=typeof M[4]==="boolean"&&M[4]==!!t,y=_.vo(M[4])&&_.vo(t)&&_.QA.equals(M[4],t);return!!M.length&&M[0]==f&&M[1]==H&&M[2]==v&&(h||y)})};
_.vk=function(f,H,v,t){t=t===void 0?{}:t;if(!f||!f.addEventListener&&!f.attachEvent)return"";var M=GKg(f,H,v,t);if(M)return M;M=++CVR.count+"";var h=!(H!="mouseenter"&&H!="mouseleave"||!f.addEventListener||"onmouseenter"in document);var y=h?function(m){m=new Hk(m);if(!_.EZ(m.relatedTarget,function(W){return W==f},!0))return m.currentTarget=f,m.type=H,v.call(f,m)}:function(m){m=new Hk(m);
m.currentTarget=f;return v.call(f,m)};
y=_.Cc(y);f.addEventListener?(H=="mouseenter"&&h?H="mouseover":H=="mouseleave"&&h?H="mouseout":H=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(H="MozMousePixelScroll"),E6N()||typeof t==="boolean"?f.addEventListener(H,y,t):f.addEventListener(H,y,!!t.capture)):f.attachEvent("on"+H,y);qR[M]=[f,H,v,y,t];return M};
_.cVB=function(f,H,v){var t=t===void 0?{}:t;var M=_.vk(f,H,function(){_.N93(M);v.apply(f,arguments)},t)};
_.N93=function(f){f&&(typeof f=="string"&&(f=[f]),_.X3(f,function(H){if(H in qR){var v=qR[H],t=v[0],M=v[1],h=v[3];v=v[4];t.removeEventListener?E6N()||typeof v==="boolean"?t.removeEventListener(M,h,v):t.removeEventListener(M,h,!!v.capture):t.detachEvent&&t.detachEvent("on"+M,h);delete qR[H]}}))};
t7=function(f){this.callback_=f;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(f=0;f<4;f++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.vk(window,"mousemove",(0,_.FH)(this.onMouseMove_,this));this.timerId_=_.Wh((0,_.FH)(this.checkPosition_,this),25)};
AVb=function(){var f={};var H=f.preferMobileEvents===void 0?!1:f.preferMobileEvents;f=f.enableScrollEventListener===void 0?!0:f.enableScrollEventListener;if(_.ES("_lact",window)==null){var v=parseInt(_.a8("LACT"),10);v=isFinite(v)?Date.now()-Math.max(v,0):-1;_.qJ("_lact",v,window);_.qJ("_fact",v,window);v==-1&&_.M$();_.vk(document,"keydown",_.M$);_.vk(document,"keyup",_.M$);_.vk(document,"mousedown",_.M$);_.vk(document,"mouseup",_.M$);H?_.vk(window,"touchmove",function(){XKv("touchmove",200)},{passive:!0}):
(_.vk(window,"resize",function(){XKv("resize",200)}),f&&_.vk(window,"scroll",function(){XKv("scroll",200)}));
new t7(function(){XKv("mouse",100)});
_.vk(document,"touchstart",_.M$,{passive:!0});_.vk(document,"touchend",_.M$,{passive:!0})}};
XKv=function(f,H){buR[f]||(buR[f]=!0,_.nN.addLowPriorityJob(function(){_.M$();buR[f]=!1},H))};
_.M$=function(){_.ES("_lact",window)==null&&AVb();var f=Date.now();_.qJ("_lact",f,window);_.ES("_fact",window)==-1&&_.qJ("_fact",f,window);(f=_.ES("ytglobal.ytUtilActivityCallback_"))&&f()};
_.h7=function(){var f=_.ES("_lact",window);return f==null?-1:Math.max(Date.now()-f,0)};
_.YF=function(f,H,v){var t=_.RO();if(t&&H){var M=t.subscribe(f,function(){var h=arguments,y=function(){V_[M]&&H.apply&&typeof H.apply=="function"&&H.apply(v||window,h)};
try{_.iub[f]?y():_.$Z(y,0)}catch(m){_.Ge(m)}},v);
V_[M]=!0;y_[f]||(y_[f]=[]);y_[f].push(M);return M}return 0};
_.kKH=function(f){var H=_.RO();H&&(typeof f==="number"?f=[f]:typeof f==="string"&&(f=[parseInt(f,10)]),_.X3(f,function(v){H.unsubscribeByKey(v);delete V_[v]}))};
_.T95=function(f,H){var v=_.RO();v&&v.publish.apply(v,arguments)};
_.qVR=function(f){var H=_.RO();if(H)if(H.clear(f),f)wKR(f);else for(var v in y_)wKR(v)};
_.RO=function(){return _.Mr.ytPubsubPubsubInstance};
wKR=function(f){y_[f]&&(f=y_[f],_.X3(f,function(H){V_[H]&&delete V_[H]}),f.length=0)};
fEs=function(){var f,H;return"h5vcc"in mU&&((f=mU.h5vcc.traceEvent)==null?0:f.traceBegin)&&((H=mU.h5vcc.traceEvent)==null?0:H.traceEnd)?1:"performance"in mU&&mU.performance.mark&&mU.performance.measure?2:0};
HVH=function(f){var H=fEs();switch(H){case 1:mU.h5vcc.traceEvent.traceBegin("YTLR",f);break;case 2:mU.performance.mark(f+"-start");break;case 0:break;default:_.bC(H,"unknown trace type")}};
vKb=function(f){var H=fEs();switch(H){case 1:mU.h5vcc.traceEvent.traceEnd("YTLR",f);break;case 2:H=f+"-start";var v=f+"-end";mU.performance.mark(v);mU.performance.measure(f,H,v);break;case 0:break;default:_.bC(H,"unknown trace type")}};
t2e=function(f){var H,v;(v=(H=window).onerror)==null||v.call(H,f.message,"",0,0,f)};
M2s=function(f){if(_.J("web_lifecycle_error_handling_killswitch"))return f();try{return f()}catch(H){t2e(H)}};
h0R=function(f){return[f.auth===void 0?"undefined":f.auth,f.isJspb===void 0?"undefined":f.isJspb,f.cttAuthInfo===void 0?"undefined":f.cttAuthInfo,f.tier===void 0?"undefined":f.tier].join("/")};
_.U=function(f,H){if(f)return f[H.name]};
Wk=function(){var f=_.ES("yt.logging.ims");f||(f=new $F,_.qJ("yt.logging.ims",f));return f};
gKg=function(f,H){if(f.endpoint==="log_event"){R0r(f);var v=V2H(f),t=yEv(f.payload)||"",M=YR5(t),h=200;if(M){if(M.enabled===!1&&!_.J("web_payload_policy_disabled_killswitch"))return;h=mY5(M.tier);if(h===400){$YR(f,H);return}}OP[v]=!0;v={cttAuthInfo:v,isJspb:!1,tier:h};Wk().storePayload(v,f.payload);W3R(H,!1,v,OVH(t))}};
SRg=function(f,H,v){if(H.endpoint==="log_event"){R0r(void 0,H);var t=V2H(H,!0),M=YR5(f),h=200;if(M){if(M.enabled===!1&&!_.J("web_payload_policy_disabled_killswitch"))return;h=mY5(M.tier);if(h===400){IET(f,H,v);return}}OP[t]=!0;t={cttAuthInfo:t,isJspb:!0,tier:h};Wk().storePayload(t,aF(H.payload));W3R(v,!0,t,OVH(f))}};
W3R=function(f,H,v,t){H=H===void 0?!1:H;t=t===void 0?!1:t;f&&(g8=new f);f=_.VQ("tvhtml5_logging_max_batch_ads_fork")||_.VQ("tvhtml5_logging_max_batch")||_.VQ("web_logging_max_batch")||100;var M=(0,_.ta)(),h=dYT(H,v.tier),y=h.lastDebounceQueueFromLogTimeMs;t&&(h.useVideoStatsEndPoint=!0);t=0;v&&(t=Wk().getSequenceCount(v));var m=function(){jme({writeThenSend:!0},H,v.tier)};
t>=1E3?m():t>=f?smH||(smH=ZVN(function(){m();smH=void 0},0)):M-y>=10&&(JEb(H,v.tier),h.lastDebounceQueueFromLogTimeMs=M)};
$YR=function(f,H){if(f.endpoint==="log_event"){_.J("more_accurate_gel_parser")&&Wk().storePayload({isJspb:!1},f.payload);R0r(f);var v=V2H(f),t=new Map;t.set(v,[f.payload]);var M=yEv(f.payload)||"";H&&(g8=new H);return new _.IO(function(h,y){g8&&g8.isReady()?lEb(t,g8,h,y,{bypassNetworkless:!0},!0,OVH(M)):h()})}};
IET=function(f,H,v){if(H.endpoint==="log_event"){R0r(void 0,H);var t=V2H(H,!0),M=new Map;M.set(t,[aF(H.payload)]);v&&(g8=new v);return new _.IO(function(h){g8&&g8.isReady()?UYe(M,g8,h,{bypassNetworkless:!0},!0,OVH(f)):h()})}};
V2H=function(f,H){var v="";if(f.dangerousLogToVisitorSession)v="visitorOnlyApprovedKey";else if(f.cttAuthInfo){if(H===void 0?0:H){H=f.cttAuthInfo.token;v=f.cttAuthInfo;var t=new e03;v.videoId?t.setVideoId(v.videoId):v.playlistId&&SN(t,2,L3H,Ux(v.playlistId));xYb[H]=t}else H=f.cttAuthInfo,v={},H.videoId?v.videoId=H.videoId:H.playlistId&&(v.playlistId=H.playlistId),B6e[f.cttAuthInfo.token]=v;v=f.cttAuthInfo.token}return v};
jme=function(f,H,v){f=f===void 0?{}:f;H=H===void 0?!1:H;new _.IO(function(t,M){var h=dYT(H,v),y=h.useVideoStatsEndPoint;h.useVideoStatsEndPoint=!1;z0r(h.queueTimer);z0r(h.queueMaxTimer);h.queueMaxTimer=0;g8&&g8.isReady()?v===void 0&&_.J("enable_web_tiered_gel")?F3b(t,M,f,H,300,y):F3b(t,M,f,H,v,y):(JEb(H,v),t())})};
F3b=function(f,H,v,t,M,h){var y=g8;v=v===void 0?{}:v;t=t===void 0?!1:t;M=M===void 0?200:M;h=h===void 0?!1:h;var m=new Map,W=new Map,I={isJspb:t,cttAuthInfo:void 0,tier:M},S={isJspb:t,cttAuthInfo:void 0};if(t){H=_.V(Object.keys(OP));for(M=H.next();!M.done;M=H.next())M=M.value,W=_.J("enable_web_tiered_gel")?Wk().smartExtractMatchingEntries({keys:[I,S],sizeLimit:1E3}):Wk().extractMatchingEntries({isJspb:!0,cttAuthInfo:M}),W.length>0&&m.set(M,W),(_.J("web_fp_via_jspb_and_json")&&v.writeThenSend||!_.J("web_fp_via_jspb_and_json"))&&
delete OP[M];UYe(m,y,f,v,!1,h)}else{m=_.V(Object.keys(OP));for(I=m.next();!I.done;I=m.next())I=I.value,S=_.J("enable_web_tiered_gel")?Wk().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:I,tier:M},{isJspb:!1,cttAuthInfo:I}],sizeLimit:1E3}):Wk().extractMatchingEntries({isJspb:!1,cttAuthInfo:I}),S.length>0&&W.set(I,S),(_.J("web_fp_via_jspb_and_json")&&v.writeThenSend||!_.J("web_fp_via_jspb_and_json"))&&delete OP[I];lEb(W,y,f,H,v,!1,h)}};
JEb=function(f,H){f=f===void 0?!1:f;H=H===void 0?200:H;var v=function(){jme({writeThenSend:!0},f,H)},t=dYT(f,H),M=t===rEs||t===K3E?5E3:DYB;
_.J("web_gel_timeout_cap")&&!t.queueMaxTimer&&(M=ZVN(function(){v()},M),t.queueMaxTimer=M);
z0r(t.queueTimer);M=_.a8("LOGGING_BATCH_TIMEOUT",_.VQ("web_gel_debounce_ms",1E4));_.J("shorten_initial_gel_batch_timeout")&&oKr&&(M=nKr);M=ZVN(function(){_.VQ("gel_min_batch_size")>0?Wk().getSequenceCount({cttAuthInfo:void 0,isJspb:f,tier:H})>=pnH&&v():v()},M);
t.queueTimer=M};
lEb=function(f,H,v,t,M,h,y){M=M===void 0?{}:M;var m=Math.round((0,_.ta)()),W=f.size,I=QmT(y);f=_.V(f);var S=f.next();for(y={};!S.done;y={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},S=f.next()){var d=_.V(S.value);S=d.next().value;d=d.next().value;y.batchRequest=_.QA.unsafeClone({context:_.In3(H.config_||_.RP())});if(!_.Tb(d)&&!_.J("throw_err_when_logevent_malformed_killswitch")){t();break}y.batchRequest.events=d;
(d=B6e[S])&&uWB(y.batchRequest,S,d);delete B6e[S];y.dangerousLogToVisitorSession=S==="visitorOnlyApprovedKey";aE5(y.batchRequest,m,y.dangerousLogToVisitorSession);PEg(M);y.onSuccess$jscomp$3=function(Z){_.J("start_client_gcf")&&_.nN.addLowPriorityJob(function(){return _.Y(function(l){return l.yield(GI3(Z),0)})});
W--;W||v()};
y.networkFailures=0;y.onError$jscomp$5=function(Z){return function(){Z.networkFailures++;if(M.bypassNetworkless&&Z.networkFailures===1)try{kW_(H,I,Z.batchRequest,CET({writeThenSend:!0},Z.dangerousLogToVisitorSession,Z.onSuccess$jscomp$3,Z.onError$jscomp$5,h)),oKr=!1}catch(l){_.Ge(l),t()}W--;W||v()}}(y);
try{kW_(H,I,y.batchRequest,CET(M,y.dangerousLogToVisitorSession,y.onSuccess$jscomp$3,y.onError$jscomp$5,h)),oKr=!1}catch(Z){_.Ge(Z),t()}}};
UYe=function(f,H,v,t,M,h){t=t===void 0?{}:t;var y=Math.round((0,_.ta)()),m={value:f.size},W=new Map([].concat(_.pS(f)));W=_.V(W);for(var I=W.next();!I.done;I=W.next()){var S=_.V(I.value).next().value,d=f.get(S);I=new EK3;var Z=H.config_||_.RP(),l=new d8,L=new N65;_.rr(L,1,Z.innertubeContextHostLanguage);_.rr(L,2,Z.innertubeContextGeoLocation);_.y$(L,16,Z.innertubeContextClientNameFieldNumber);_.rr(L,17,Z.innertubeContextClientVersion);if(Z.innertubeContextClientConfigInfo){var r=Z.innertubeContextClientConfigInfo,
n=new m$;r.coldConfigData&&_.rr(n,1,r.coldConfigData);r.appInstallData&&_.rr(n,6,r.appInstallData);r.coldHashData&&_.rr(n,3,r.coldHashData);r.hotHashData&&n.setHotHashData(r.hotHashData);_.eV(L,62,n)}(r=_.Mr.devicePixelRatio)&&r!=1&&_.YX(L,65,_.wh(r));r=Kb5();r!==""&&_.rr(L,54,r);r=D6H();if(r.length>0){n=new cEB;for(var Q=0;Q<r.length;Q++){var C=new jN;C.setKey(r[Q].key);SN(C,2,Xn3,Ux(r[Q].value));sP(n,15,jN,C)}_.eV(l,5,n)}Y6v(Z,L);mSr(l);$S3(L);WNE(Z,L);OGH(L);_.J("start_client_gcf")&&gzT(L);_.a8("DELEGATED_SESSION_ID")&&
!_.J("pageid_as_header_web")&&(Z=new ZK,_.rr(Z,3,_.a8("DELEGATED_SESSION_ID")));!_.J("fill_delegate_context_in_gel_killswitch")&&(r=_.a8("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(n=_.V$(l,ZK,3)||new ZK,Z=l,r=_.rr(n,18,r),_.eV(Z,3,r));Z=L;r=_.V(Object.entries(_.Ar(_.a8("DEVICE",""))));for(n=r.next();!n.done;n=r.next())Q=_.V(n.value),n=Q.next().value,Q=Q.next().value,n==="cbrand"?_.rr(Z,12,Q):n==="cmodel"?_.rr(Z,13,Q):n==="cbr"?_.rr(Z,87,Q):n==="cbrver"?_.rr(Z,88,Q):n==="cos"?_.rr(Z,18,
Q):n==="cosver"?_.rr(Z,19,Q):n==="cplatform"&&_.y$(Z,42,ydb(Q));l.setClient(L);_.eV(I,1,l);if(L=xYb[S])a:{if(_.Jx(L,J7(L,L3H,1)))l=1;else if(L.getPlaylistId())l=2;else break a;_.eV(I,4,L);L=I.getContext()||new d8;Z=_.V$(L,ZK,3)||new ZK;r=new l$;r.setToken(S);_.y$(r,1,l);sP(Z,12,l$,r);_.eV(L,3,Z)}delete xYb[S];S=S==="visitorOnlyApprovedKey";AEr()||_.UP(I,2,y);!S&&(l=_.a8("EVENT_ID"))&&(L=bVr(),Z=new iVv,_.rr(Z,1,l),_.UP(Z,2,L),_.eV(I,5,Z));PEg(t);if(_.J("jspb_serialize_with_worker")&&(l=_.LFr())&&
t.writeThenSend){_.kIg.set(T6_,{client:H,resolve:v,networklessOptions:t,isIsolated:M,useVSSEndpoint:h,dangerousLogToVisitorSession:S,requestsOutstanding:m});l.postMessage({op:"gelBatchToSerialize",batchRequest:aF(I),clientEvents:d,key:T6_});T6_++;break}if(d){l=[];for(L=0;L<d.length;L++)try{l.push(new eN(d[L]))}catch(w){_.Ge(new _.e$("Transport failed to deserialize "+String(d[L])))}d=l}else d=[];d=_.V(d);for(l=d.next();!l.done;l=d.next())sP(I,3,eN,l.value);d={startTime:(0,_.ta)(),ticks:{},infos:{}};
I=I.serialize();d.ticks.geljspc=(0,_.ta)();_.J("log_jspb_serialize_latency")&&Z25("gel_jspb_serialize",d,{sampleRate:.1});_.wnv(I,H,v,t,M,h,S,m)}};
_.wnv=function(f,H,v,t,M,h,y,m){t=t===void 0?{}:t;m=m===void 0?{value:0}:m;h=QmT(h);t=CET(t,y,function(W){_.J("start_client_gcf")&&_.nN.addLowPriorityJob(function(){return _.Y(function(I){return I.yield(GI3(W),0)})});
m.value--;m.value||v()},function(){m.value--;
m.value||v()},M);
t.headers["Content-Type"]="application/json+protobuf";t.postBodyFormat="JSPB";t.postBody=f;kW_(H,h,"",t);oKr=!1};
PEg=function(f){_.J("always_send_and_write")&&(f.writeThenSend=!1)};
CET=function(f,H,v,t,M){f={retry:!0,onSuccess:v,onError:t,networklessOptions:f,dangerousLogToVisitorSession:H,bypassMonitoring:!!M,headers:{},postBodyFormat:"",postBody:"",compress:_.J("compress_gel")||_.J("compress_gel_lr")};AEr()&&(f.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.ta)())));return f};
aE5=function(f,H,v){AEr()||(f.requestTimeMs=String(H));_.J("unsplit_gel_payloads_in_logs")&&(f.unsplitGelPayloadsInLogs=!0);!v&&(H=_.a8("EVENT_ID"))&&(v=bVr(),f.serializedClientEventId={serializedEventId:H,clientCounter:String(v)})};
bVr=function(){var f=_.a8("BATCH_CLIENT_COUNTER")||0;f||(f=Math.floor(Math.random()*65535/2));f++;f>65535&&(f=1);_.pc("BATCH_CLIENT_COUNTER",f);return f};
uWB=function(f,H,v){if(v.videoId)var t="VIDEO";else if(v.playlistId)t="PLAYLIST";else return;f.credentialTransferTokenTargetId=v;f.context=f.context||{};f.context.user=f.context.user||{};f.context.user.credentialTransferTokens=[{token:H,scope:t}]};
R0r=function(f,H){var v=_.yQ("il_payload_scraping")==="enable_il_payload_scraping";if(!_.ES("yt.logging.transport.enableScrapingForTest"))if(v)qRB=[],_.qJ("yt.logging.transport.enableScrapingForTest",!0),_.qJ("yt.logging.transport.scrapedPayloadsForTesting",qRB),_.qJ("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.qJ("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.qJ("yt.logging.transport.scrapeClientEvent",!0);else return;v=_.ES("yt.logging.transport.scrapedPayloadsForTesting");var t=_.ES("yt.logging.transport.payloadToScrape");H&&(H=_.ES("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(H.payload)())&&v.push(H);H=_.ES("yt.logging.transport.scrapeClientEvent");if(t&&t.length>=1)for(var M=0;M<t.length;M++)if(f&&f.payload[t[M]])if(H)v.push(f.payload);else{var h=void 0;v.push(((h=f)==null?void 0:h.payload)[t[M]])}_.qJ("yt.logging.transport.scrapedPayloadsForTesting",
v)};
AEr=function(){return _.J("use_request_time_ms_header")||_.J("lr_use_request_time_ms_header")};
ZVN=function(f,H){return _.J("transport_use_scheduler")===!1?_.$Z(f,H):_.J("logging_avoid_blocking_during_navigation")||_.J("lr_logging_avoid_blocking_during_navigation")?_.Lb(_.nN,function(){if(_.fOv().currentState==="none")f();else{var v={};_.fOv().install((v.none={callback:f},v))}},H):_.Lb(_.nN,f,H)};
z0r=function(f){_.J("transport_use_scheduler")?_.nN.cancelJob(f):_.Ok(f)};
GI3=function(f){var H,v,t,M,h,y,m,W,I,S;return _.Y(function(d){return d.nextAddress==1?(t=(H=f)==null?void 0:(v=H.responseContext)==null?void 0:v.globalConfigGroup,M=_.U(t,HTR),y=(h=t)==null?void 0:h.hotHashData,m=_.U(t,v$e),I=(W=t)==null?void 0:W.coldHashData,(S=_.t8().resolve(_.vh(xF)))?y?M?d.yield(tfr(S,y,M),2):d.yield(tfr(S,y),2):d.jumpTo(2):d.return()):I?m?d.yield(Mfr(S,I,m),0):d.yield(Mfr(S,I),0):d.jumpTo(0)})};
dYT=function(f,H){H=H===void 0?200:H;return f?H===300?rEs:hIH:H===300?K3E:RIT};
YR5=function(f){if(_.J("enable_web_tiered_gel")){f=VfN[f||""];var H,v,t,M=_.t8().resolve(_.vh(xF))==null?void 0:(H=Bk())==null?void 0:(v=H.loggingHotConfig)==null?void 0:(t=v.eventLoggingConfig)==null?void 0:t.payloadPolicies;if(M)for(H=0;H<M.length;H++)if(M[H].payloadNumber===f)return M[H]}};
yEv=function(f){f=Object.keys(f);f=_.V(f);for(var H=f.next();!H.done;H=f.next())if(H=H.value,VfN[H])return H};
mY5=function(f){switch(f){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}};
OVH=function(f){return f==="gelDebuggingEvent"};
QmT=function(f){return(f===void 0?0:f)&&_.J("vss_through_gel_video_stats")?"video_stats":"log_event"};
F7=function(f,H,v,t){t=t===void 0?{}:t;var M={},h=Math.round(t.timestamp||(0,_.ta)());M.eventTimeMs=h<Number.MAX_SAFE_INTEGER?h:0;M[f]=H;f=_.h7();M.context={lastActivityMs:String(t.timestamp||!isFinite(f)?-1:f)};t.sequenceGroup&&!_.J("web_gel_sequence_info_killswitch")&&(f=M.context,H=t.sequenceGroup,H={index:yjR(H),groupKey:H},f.sequence=H,t.endOfSequence&&delete zN[t.sequenceGroup]);_.J("web_tag_automated_log_events")&&(M.context.automatedLogEventSource=t.automatedLogEventSource);(t.sendIsolatedPayload?
$YR:gKg)({endpoint:"log_event",payload:M,cttAuthInfo:t.cttAuthInfo,dangerousLogToVisitorSession:t.dangerousLogToVisitorSession},v)};
yjR=function(f){zN[f]=f in zN?zN[f]+1:0;return zN[f]};
_.Kb=function(f,H,v){v=v===void 0?{}:v;var t=r8;_.P6("ytLoggingEventsDefaultDisabled",!1)&&r8===r8&&(t=null);F7(f,H,t,v)};
_.DK=function(){if(_.J("web_fp_via_jspb")){var f=!0;f=f===void 0?!1:f;var H=Y7r;Y7r=[];if(H){H=_.V(H);for(var v=H.next();!v.done;v=H.next())v=v.value,f?F7(v.payloadName,v.payload,r8,v.options):_.Kb(v.payloadName,v.payload,v.options)}jme(void 0,!0);if(!_.J("web_fp_via_jspb_and_json"))return}jme(void 0,!1)};
mlr=function(f,H){var v;if((v=H)==null?0:v.componentStack)return H;if(f=f.componentStack)H||(H={}),H.componentStack=f;return H};
$lR=function(){_.X3(_.a8("ERRORS")||[],function(f){_.oO.apply(null,f)});
_.pc("ERRORS",[])};
_.nb=function(f){_.oO(f)};
_.pb=function(f){_.oO(f,"WARNING")};
WVB=function(f){f instanceof Error?_.oO(f):(f=_.vo(f)?JSON.stringify(f):String(f),f=new _.e$(f),f.name="RejectedPromiseError",_.pb(f))};
OTb=function(f,H,v,t,M,h){H=H===void 0?"Unknown file":H;v=v===void 0?0:v;var y=!1,m=m65("log_window_onerror_fraction");if(m&&Math.random()<m)y=!0;else{m=document.getElementsByTagName("script");for(var W=0,I=m.length;W<I;W++)if(m[W].src.indexOf("/debug-")>0){y=!0;break}}y&&(y=!1,M?y=!0:(typeof f==="string"?m=f:ErrorEvent&&f instanceof ErrorEvent?(y=!0,m=f.message,H=f.filename,v=f.lineno,t=f.colno):(m="Unknown error",H="Unknown file",v=0),M=new _.e$(m),M.name="UnhandledWindowError",M.message=m,M.fileName=
H,M.lineNumber=v,isNaN(t)?delete M.columnNumber:M.columnNumber=t),_.J("wiz_enable_component_stack_propagation_killswitch")||(h=mlr(M,h)),h&&_.u$(M,h),y?_.oO(M):_.pb(M))};
_.oO=function(f,H,v,t,M,h,y,m){h=h===void 0?{}:h;h.name=v||_.a8("INNERTUBE_CONTEXT_CLIENT_NAME",1);h.version=t||_.a8("INNERTUBE_CONTEXT_CLIENT_VERSION");v=h;H=H===void 0?"ERROR":H;y=y===void 0?!1:y;H=H===void 0?"ERROR":H;y=y===void 0?!1:y;if(f&&(f.hasOwnProperty("level")&&f.level&&(H=f.level),_.J("console_log_js_exceptions")&&(t=[],t.push("Name: "+f.name),t.push("Message: "+f.message),f.hasOwnProperty("params")&&t.push("Error Params: "+JSON.stringify(f.params)),f.hasOwnProperty("args")&&t.push("Error args: "+
JSON.stringify(f.args)),t.push("File name: "+f.fileName),t.push("Stacktrace: "+f.stack),t=t.join("\n"),window.console.log(t,f)),!(g$s>=5))){t=[];M=_.V(IO5);for(h=M.next();!h.done;h=M.next()){h=h.value;try{h()&&t.push(h())}catch(n){}}t=[].concat(_.pS(S7R),_.pS(t));var W=dlR(f);M=W.message||"Unknown Error";h=W.name||"UnknownError";var I=W.stack||f.stacktrace||"Not available";if(I.startsWith(h+": "+M)){var S=I.split("\n");S.shift();I=S.join("\n")}S=W.lineNumber||"Not available";W=W.fileName||"Not available";
var d=0;if(f.hasOwnProperty("args")&&f.args&&f.args.length)for(var Z=0;Z<f.args.length&&!(d=VBR(f.args[Z],"params."+Z,v,d),d>=500);Z++);else if(f.hasOwnProperty("params")&&f.params){var l=f.params;if(typeof f.params==="object")for(Z in l){if(l[Z]){var L="params."+Z,r=j$(l[Z]);v[L]=r;d+=L.length+r.length;if(d>500)break}}else v.params=j$(l)}if(t.length)for(Z=0;Z<t.length&&!(d=VBR(t[Z],"params.context."+Z,v,d),d>=500);Z++);navigator.vendor&&!v.hasOwnProperty("vendor")&&(v["device.vendor"]=navigator.vendor);
Z={message:M,name:h,lineNumber:S,fileName:W,stack:I,params:v,sampleWeight:1};v=Number(f.columnNumber);isNaN(v)||(Z.lineNumber=Z.lineNumber+":"+v);if(f.level==="IGNORED")f=0;else a:{f=jsR();v=_.V(f.messageWeights);for(t=v.next();!t.done;t=v.next())if(t=t.value,Z.message&&Z.message.match(t.messageRegExp)){f=t.weight;break a}f=_.V(f.callbackWeights);for(v=f.next();!v.done;v=f.next())if(v=v.value,v.callback(Z)){f=v.weight;break a}f=1}Z.sampleWeight=f;f=_.V(ss3);for(v=f.next();!v.done;v=f.next())if(v=
v.value,v.patternsForType[Z.name])for(M=_.V(v.patternsForType[Z.name]),t=M.next();!t.done;t=M.next())if(h=t.value,t=Z.message.match(h.regexp)){Z.params["params.error.original"]=t[0];M=h.groups;h={};for(S=0;S<M.length;S++)h[M[S]]=t[S+1],Z.params["params.error."+M[S]]=t[S+1];Z.message=v.messageFn(h);break}Z.params||(Z.params={});f=jsR();Z.params["params.errorServiceSignature"]="msg="+f.messageWeights.length+"&cb="+f.callbackWeights.length;Z.params["params.serviceWorker"]="false";_.Mr.document&&_.Mr.document.querySelectorAll&&
(Z.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new aO(ZTE,"sample")).constructor!==aO&&(Z.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(Z);if(Z.sampleWeight!==0&&!Jjv.has(Z.message)){if(y&&_.J("web_enable_error_204"))lOT(H===void 0?"ERROR":H,Z);else{H=H===void 0?"ERROR":H;H==="ERROR"?(Ul3.publish("handleError",Z),_.J("record_app_crashed_web")&&eIg===0&&Z.sampleWeight===1&&(eIg++,y={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.J("report_client_error_with_app_crash_ks")||(y.systemHealth={crashData:{clientError:{logMessage:{message:Z.message}}}}),_.Kb("appCrashed",y)),LVe++):H==="WARNING"&&Ul3.publish("handleWarning",Z);if(_.J("kevlar_gel_error_routing")){y=H;m=m===void 0?{}:m;b:{f=_.V(xlT);for(v=f.next();!v.done;v=f.next())if(pl(v.value.toLowerCase())){f=!0;break b}f=!1}if(f)m=void 0;else{v={stackTrace:Z.stack};Z.fileName&&(v.filename=Z.fileName);f=Z.lineNumber&&Z.lineNumber.split?Z.lineNumber.split(":"):[];f.length!==
0&&(f.length!==1||isNaN(Number(f[0]))?f.length!==2||isNaN(Number(f[0]))||isNaN(Number(f[1]))||(v.lineNumber=Number(f[0]),v.columnNumber=Number(f[1])):v.lineNumber=Number(f[0]));f={level:"ERROR_LEVEL_UNKNOWN",message:Z.message,errorClassName:Z.name,sampleWeight:Z.sampleWeight};y==="ERROR"?f.level="ERROR_LEVEL_ERROR":y==="WARNING"&&(f.level="ERROR_LEVEL_WARNNING");v={isObfuscated:!0,browserStackInfo:v};m.pageUrl=window.location.href;m.kvPairs=[];_.a8("FEXP_EXPERIMENTS")&&(m.experimentIds=_.a8("FEXP_EXPERIMENTS"));
t=_.a8("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!m65("web_disable_gel_stp_ecatcher_killswitch")&&t)for(M=_.V(Object.keys(t)),h=M.next();!h.done;h=M.next())h=h.value,m.kvPairs.push({key:h,value:String(t[h])});if(t=Z.params)for(M=_.V(Object.keys(t)),h=M.next();!h.done;h=M.next())h=h.value,m.kvPairs.push({key:"client."+h,value:String(t[h])});t=_.a8("SERVER_NAME");M=_.a8("SERVER_VERSION");t&&M&&(m.kvPairs.push({key:"server.name",value:t}),m.kvPairs.push({key:"server.version",value:M}));m={errorMetadata:m,
stackTrace:v,logMessage:f}}m&&(_.Kb("clientError",m),(y==="ERROR"||_.J("errors_flush_gel_always_killswitch"))&&_.DK())}_.J("suppress_error_204_logging")||lOT(H,Z)}try{Jjv.add(Z.message)}catch(n){}g$s++}}};
lOT=function(f,H){var v=H.params||{};f={urlParams:{a:"logerror",t:"jserror",type:H.name,msg:H.message.substr(0,250),line:H.lineNumber,level:f,"client.name":v.name},postParams:{url:_.a8("PAGE_NAME",window.location.href),file:H.fileName},method:"POST"};v.version&&(f["client.version"]=v.version);if(f.postParams){H.stack&&(f.postParams.stack=H.stack);H=_.V(Object.keys(v));for(var t=H.next();!t.done;t=H.next())t=t.value,f.postParams["client."+t]=v[t];if(v=_.a8("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(H=
_.V(Object.keys(v)),t=H.next();!t.done;t=H.next())t=t.value,f.postParams[t]=v[t];(v=_.a8("LAVA_VERSION"))&&(f.postParams["lava.version"]=v);v=_.a8("SERVER_NAME");H=_.a8("SERVER_VERSION");v&&H&&(f.postParams["server.name"]=v,f.postParams["server.version"]=H)}_.I2(_.a8("ECATCHER_REPORT_HOST","")+"/error_204",f)};
_.B3H=function(f,H){H=H===void 0?"ERROR":H;var v=v===void 0?{}:v;var t=_.ES("ytbin.polymer.shared.lib.tampering.info");t&&(t=t())&&(v["params.tamperingInfo"]=t.sort().join(","));_.oO(f,H,void 0,void 0,!0,v)};
_.u$=function(f){var H=_.NA.apply(1,arguments);f.args||(f.args=[]);Array.isArray(f.args)&&f.args.push.apply(f.args,_.pS(H))};
zIr=function(f){f.level="IGNORED"};
FVE=function(f,H){S7R.push(f);H();S7R.pop()};
GN=function(f,H){for(var v in H)H.hasOwnProperty(v)&&(f=_.Pk(f,v,H[v]));return f};
_.rjR=function(f,H,v){v=v===void 0?!1:v;if(!f)return null;if(f.adInfoDialogEndpoint||f.backstageImageUploadEndpoint||f.confirmDialogEndpoint||f.clientActionEndpoint||f.createBackstagePostDialogEndpoint||f.createCommentReplyDialogEndpoint||f.flowEndpoint||f.guideBuilderEndpoint||f.liveChatDialogEndpoint||f.modalEndpoint||f.openPopupAction||f.shareEndpoint||f.shareEntityEndpoint||f.showLiveChatItemEndpoint||f.subscriptionManagerEndpoint||f.unlimitedCreateFamilyEndpoint||f.unlimitedFamilyFlowEndpoint||
f.updateCommentDialogEndpoint||f.updateCommentReplyDialogEndpoint||f.userFeedbackEndpoint||f.videoEditorEndpoint||f.ypcCancelSurveyEndpoint)return H=_.VQ("polymer_report_client_url_requested_rate"),!v&&Math.random()<H&&_.pb(new _.e$("urlForEndpoint used on client endpoint",f)),null;var t=_.VQ("polymer_report_missing_web_navigation_endpoint_rate");if(f.liveChatEndpoint||f.liveChatReplayEndpoint)t=0;if(!f.commandMetadata&&!f.clickTrackingParams&&Math.random()<t){var M={},h;for(h in f)M[h]="1";_.pb(new _.e$("Missing navigation data",
M))}M="";if(f.commandMetadata&&f.commandMetadata.webCommandMetadata&&f.commandMetadata.webCommandMetadata.url)M=f.commandMetadata.webCommandMetadata.url;else if(f.searchEndpoint)Math.random()<t&&_.pb(new _.e$("Should not manually handle search",f)),M="/results?search_query="+encodeURIComponent(f.searchEndpoint.query).replace(/%20/g,"+"),f.searchEndpoint.params&&(M+="&sp="+f.searchEndpoint.params);else if(f.watchEndpoint)Math.random()<t&&_.pb(new _.e$("Should not manually handle watch",f)),M="/watch?v="+
f.watchEndpoint.videoId,f.watchEndpoint.playlistId&&(M+="&list="+f.watchEndpoint.playlistId),f.watchEndpoint.index&&(M+="&index="+f.watchEndpoint.index),f.watchEndpoint.startTimeSeconds&&(M+="&t="+f.watchEndpoint.startTimeSeconds);else if(f.browseEndpoint)t=f.browseEndpoint.browseId,(h=f.browseEndpoint.canonicalBaseUrl)?M=h:t&&(M=t.substr(0,2),M=M==="FE"?t==="FEwhat_to_watch"?"/":t==="FEmy_videos"?"/my_videos":"/feed/"+t.substr(2):M==="VL"?"/playlist?list="+t.substr(2):"/channel/"+t),M&&f.browseEndpoint.query&&
(M=GN(M+"/search",{query:f.browseEndpoint.query})),M&&f.browseEndpoint.params&&(M=GN(M,{params:f.browseEndpoint.params}));else{if(f.urlEndpoint)return f.urlEndpoint.url;f.signInEndpoint?(M="https://accounts.google.com/ServiceLogin",t={},_.QA.extend(t,H||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),H=t):f.uploadEndpoint?M="//www.youtube.com/upload":f.liveChatEndpoint?(M=f.liveChatEndpoint,t=_.QA.clone(M),_.vo(M.continuation)&&(h=Object.keys(M.continuation)[0],
t.continuation=M.continuation[h].continuation),M=GN("/youtubei/v1/live_chat/get_live_chat",t)):f.liveChatReplayEndpoint?(M=_.QA.clone(f.liveChatReplayEndpoint),M.currentPlayerState&&(_.QA.extend(M,M.currentPlayerState),delete M.currentPlayerState),M=GN("/youtubei/v1/live_chat/get_live_chat_replay",M)):f.liveChatItemContextMenuEndpoint?M=GN("/youtubei/v1/live_chat/get_item_context_menu",f.liveChatItemContextMenuEndpoint):f.liveChatPurchaseMessageEndpoint?M=GN("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
f.liveChatPurchaseMessageEndpoint):f.openSuperStickerBuyFlowCommand?M=GN("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",f.openSuperStickerBuyFlowCommand):f.videoEditEndpoint?M=GN("/edit",{video_id:f.videoEditEndpoint.videoId}):f.liveDashboardEndpoint?M=f.liveDashboardEndpoint.videoId?GN("/live_dashboard",{v:f.liveDashboardEndpoint.videoId}):"/live_dashboard":f.signalNavigationEndpoint&&f.signalNavigationEndpoint.signal&&f.signalNavigationEndpoint.signal==="WEBCAM"?M="/webcam":f.getPdgBuyFlowCommand&&
(M=GN(f.getPdgBuyFlowCommand.buyflowApiPath,{params:f.getPdgBuyFlowCommand.params}))}return M||v?GN(M,H||{}):(_.pb(new _.e$("Error: Can't construct url for endpoint","keys:"+Object.keys(f).sort().join(","),f)),null)};
KVR=function(f){if(f){if(f.browseEndpoint)return!!f.browseEndpoint.nofollow;if(f.watchEndpoint)return!!f.watchEndpoint.nofollow;if(f.urlEndpoint)return!!f.urlEndpoint.nofollow}return!1};
_.o$E=function(f,H){var v=H+f,t=DlE.get(v);if(t)return t;f=H+"-"+f.replace(/([A-Z])/g,"-$1").toLowerCase();DlE.set(v,f);return f};
n$T=function(f){var H=_.o8(f,"action")||_.o8(f,"command")||_.o8(f,"endpoint");if(!H)return null;H=_.o$E(H,"yt");_.U(f,_.N$)&&(H+="-"+_.U(f,_.N$).signal.toLowerCase().replace(/_/g,"-"));return H};
aO_=function(f){try{var H=Object.keys(f)}catch(M){return[]}for(var v=0;v<H.length;v++){var t=H[v];if(pxr.test(t)||Qss.test(t))return uss(f[t])}return[]};
uss=function(f){return f.command?[f.command]:f.onExecutionAction?[f.onExecutionAction]:f.onResponseReceivedCommand?[f.onResponseReceivedCommand]:f.updateFlowCommand?[f.updateFlowCommand]:f.clientActions?f.clientActions:f.action?[f.action]:f.actions||f.commands||f.onResponseReceivedActions||f.onResponseReceivedCommands||f.onResponseReceivedEndpoints||[]};
GVr=function(f,H){H=H===void 0?!1:H;var v=_.t8().resolve(_.vh(ck));v||(v=new PFe,_.t8().addProvider({provide:ck,useValue:v}));return v&&f&&!_.QA.isEmpty(f)?v.getUrl(f,H):""};
CFR=function(f,H,v){v=v===void 0?"":v;if(H){f.data=H;var t=GVr(H);t?(AD(f,t),KVR(H)||!fl(t)?f.rel="nofollow":f.removeAttribute("rel"),_.U(H,_.X7)&&_.U(H,_.X7).target==="TARGET_NEW_WINDOW"?f.target="_blank":v?f.target=v:f.removeAttribute("target")):(f.removeAttribute("href"),f.removeAttribute("rel"),f.removeAttribute("target"))}};
_.kF=function(f,H){var v=f4;if(zL())E$T(f,function(){var h=_.NA.apply(0,arguments);PM(v,function(){H.apply(null,_.pS(h))})});
else{var t=_.A7.getInstance(),M=YjR(H);w7B(function(){M.value=H});
_.Kc(function(){var h={},y=_.b$(t,(h[f]=function(){var m=_.NA.apply(0,arguments);PM(v,function(){M.value.apply(M,_.pS(m))})},h));
return function(){var m={};_.i$(t,(m[f]="",m),y)}})}};
_.TN=function(f,H){return N33(f,!1,H)};
_.w8=function(f,H){return N33(f,!0,H)};
N33=function(f,H,v){return zL()?cjH(f,H,v):Xxg(f,H,v)};
Xxg=function(f,H,v){return Dp(function(){return cjH(f,H,v)})};
cjH=function(f,H,v){var t=bPs(function(M){t.value=M;var h=function(){var y=yL(null);try{return v==null?void 0:v(M)}finally{yL(y)}}();
return function(){h==null||h()}});
t.__expectedTagName=f;t.__optional=H;t.isIdom=!zL();return t};
AjT=function(f){var H=f4,v=xm;return{getFn:function(){return function(t){H.isDisposed||rp(function(){return Og(function(){return f(t)})},v)!==!0&&t.stopPropagation()}}}};
q$=function(f){if(typeof f.children==="function")return f.children(),null;f=_.V(f.children);for(var H=f.next();!H.done;H=f.next())H=H.value,H();return null};
bT5=function(f){var H;return((H=f.prototype)==null?void 0:H.render)===void 0};
iTH=function(f){return f.items.map(f.children)};
_.T3e=function(f,H,v){v=v===void 0?!1:v;rp(function(){return kVe(f,H,v)})};
kVe=function(f,H,v){var t=null;Ug++;v=(v===void 0?0:v)?wxR:q7b;try{t=v(f,function(){f1(H)}),L4(!1)}catch(M){throw L4(!0),M;
}return t===null?f:t};
f1=function(f){if(f!==void 0&&f!==null)if(f instanceof jK)for(var H=XT;Am()!=null&&KgH in Am()&&H.contains(Am());)km();else if(Array.isArray(f))for(H=_.V(f),f=H.next();!f.done;f=H.next())f1(f.value);else if(f instanceof z1||f instanceof y1||"function"==typeof _.tr&&f instanceof _.tr)KuR(f.toString());else if(_.yP(f)){if(Am()!==f){var v,t;H=(t=(v=xm)==null?void 0:v.name)!=null?t:"unknown";throw Error("bc`"+f.tagName+"`"+H);}km()}else if(f!=null&&f.contentKind===W6||f instanceof bD||b1b(f))for(H=k5R(f),
H=Array.from(H.childNodes),H=_.V(H),f=H.next();!f.done;f=H.next())XT.appendChild(f.value),km();else if(po(f)&&(f=f.toString()),v=typeof f,v==="boolean"||v==="number"||v==="string")KuR(f);else if(typeof f==="function"){H=XT;var M=Am();M&&(M._isSignalTextNode||M._isSafeOrSanitizedHtmlNode)||Jg5(H,M,f);km()}else if(f.type===iTH)f1(f.type(Object.assign({},f.props,{children:f.children[0]})));else{Jr.beforeVisit(f);if(typeof f.type==="string"){a:{f.__open||lxR(f.type,f.props.idomKey);M=XT;for(H in f.props)if(f.props[H]!==
f4v){var h=f.props[H];v=qk;v.push(H);v.push(h)}H=hm.attributes;H=H===void 0?Hb:H;h=XT;v=cM(h);rM_(h,v,H);ZPR(M,f.props,!0);if((f.props.skip||f.props.skipchildren)&&XT.hasChildNodes())eLe();else{if(f.type==="style"&&MqT(f.children)===null){eLe();H=void 0;break a}f1(f.children)}UV3();f.__open&&(f.__open=!1);PKv(M,f.props);H=M}return H}if(f.type===_.R8)f1(f.children);else if(!HpN(f)){H=f;try{vdb(H)}catch(y){f=y,(h=hm.handleError)==null||h.call.apply(h,[hm].concat(_.pS(GL(f,(M=H.type)==null?void 0:M.TAG_NAME))))}H.__open&&
(UV3(),H.__open=!1)}}};
tOR=function(f,H){var v;bT5(f)?v=new lZ(H,f):v=new f(H);v.__type=f;v.__updateContext={nextState:v.state,isForced:!1};return v};
vdb=function(f){var H=f.type,v=H.TAG_NAME;if(H===q$)f.props.children=f.children,H(f.props);else{f.children.length>0&&(f.props.children=f.children);var t;(t=f.props).idomKey||(t.idomKey=H);if(v){var M=lxR(v,f.props.idomKey);f.__open=!0;var h=M.__instance}h||(h=tOR(H,f.props),h.props=null,M&&(M.__instance=h,h.el=M));var y;v=((y=h.__updateContext)!=null?y:{nextState:h.state,isForced:!1}).nextState;h.__updateContext=void 0;H.getDerivedStateFromProps&&(v=H.getDerivedStateFromProps(f.props,v));h.props=
f.props;h.state=v;y=function(){var m=h;Jr.beforeRender(m);var W=m.render(m.props);Jr.afterRender(m,W);W?(m.props.idomKey&&(W.props.idomKey=m.props.idomKey),m=W):m=void 0;if(W=m)if(W.__open=f.__open,m=f1(W),f.__open=W.__open,!H.TAG_NAME)if(m)H.TAG_NAME=m.tagName.toLowerCase(),m.__instance=h,h.el=m;else{var I;if((I=h.hooks)==null?0:I.length){var S;(S=hm.handleError)==null||S.call.apply(S,[hm].concat(_.pS(GL(Error("ld")))))}}h.didPatch();Jr.didPatch(h)};
(v=h.functionComponent)?C$5(v,y,h.props.debugInstance):y()}};
HpN=function(f){var H=f.type;if(!bT5(H)||H===q$||H.componentType===_.BM)return!1;f.props.children=f.children.length>1?f.children:f.children[0];var v,t=(v=f.props.idomKey)!=null?v:f.type,M;if(Am()&&((M=Am()[I8])==null?void 0:M.key)===t){var h=Am(),y=h[I8];if(!y)throw Error("ac`"+h.tagName);var m;(m=y.updateSignalsFromIdomProps)==null||m.call(y,f.props);MOr(y);return!0}if(h7v.has(H.name))throw m=H.name,H=(y=(h=xm)==null?void 0:h.name)!=null?y:"unknown",Error("$b`"+m+"`"+H);Lg5(f.type,f.props,f.children);
f.props.renderedFromIdom=!0;(m=C$5(f.type,function(){return g1_(f.type,f.props)},f.props.debugInstance))&&R7E(m);
return!0};
VOB=function(f){for(var H=0;H<du(f).length;H++)km()};
MOr=function(f){var H=yY_();if(H)VOB(H);else for(var v=0;v<f.numNodes;v++)(H=yY_())?VOB(H):km()};
yY_=function(){var f;return(f=Am()[I8])==null?void 0:f.sourceDynamicRange};
R7E=function(f){f=E73(f);f=Array.isArray(f)?f:[f];f=_.V(f);for(var H=f.next();!H.done;H=f.next())XT.insertBefore(H.value,Am()),km()};
vb=function(f,H){var v=f4,t=function(M){PM(v,function(){H(M)})};
window.addEventListener(f,t,void 0);_.Dt(function(){window.removeEventListener(f,t,void 0)})};
_.MV=function(f){var H=f4;return function(v){var t,M=(t=f.observer)!=null?t:_.t8().resolve(tM);t=Ywr(v);var h=[];f.showOption&&h.push(M.observe(v,function(){PM(H,function(){f.visibilityCallback(!0,v)})},f.showOption));
f.hideOption&&h.push(M.observe(v,function(){PM(H,function(){f.visibilityCallback(!1,v)})},f.hideOption));
f.prescanOption&&f.prescanCallback&&h.push(M.observe(v,function(){PM(H,function(){f.prescanCallback()})},f.prescanOption));
var y;t.visibilityMonitorKeys=((y=t.visibilityMonitorKeys)!=null?y:[]).concat(h)}};
Ywr=function(f){var H;return(H=f.polymerController)!=null?H:f};
Opr=function(f,H){var v=mi_;return _.O(_.R8,null,gXE(hm.enableLazyTsx,function(){return _.O($iH,{id:v,value:f,children:H})},function(){var t=W25(v,f);
Mk(t);t=_.HM(t);try{return H()}finally{_.HM(t)}}))};
$iH=function(f){var H=f.children;f=W25(f.id,f.value);Mk(f);f=_.HM(f);try{return _.O(_.R8,null,sS(H()))}finally{_.HM(f)}};
W25=function(f,H){return Object.assign(Object.create(gdg),{id:f,contextValue:H})};
I4s=function(f){var H,v=f4;_.QL(function(){var t=_.HM(v),M=VP(!H);try{if(H)_.T3e(H,f.children(),!0);else if(H=sS(f.children()),!(H instanceof Element))throw Error("md");}finally{VP(M),_.HM(t)}});
return H};
_.Swe=function(f,H){var v;H=n4(function(){var t=VP(!0);Ug++;try{v=du(f()),L4(!1)}catch(M){throw L4(!0),M;}finally{VP(t)}},H===void 0?!1:H);
return[v,H]};
jcN=function(f){var H=new diE;H.abort(f);return H.signal};
scR=function(){if(this.aborted){var f;throw(f=this.reason)!=null?f:new DOMException("signal is aborted without reason","AbortError");}};
l4R=function(f){var H=new diE;f=_.V(f);for(var v=f.next();!v.done;v=f.next())if(v=v.value,v.aborted){H.abort(v.reason);break}else Zpg.set(H.signal,H),JYb.add(v,H.signal);return H.signal};
Ui5=function(){for(var f=_.V(JYb.get(this)),H=f.next();!H.done;H=f.next())Zpg.get(H.value).abort(this.reason)};
e7b=function(f){var H=new diE;setTimeout(function(){H.abort(new DOMException("signal timed out","TimeoutError"))},f);
return H.signal};
xiT=function(f){f=f.buf.charCodeAt(f.pos++);return L2T[f]};
hM=function(f){var H=0,v=0;do{var t=xiT(f);H|=(t&31)<<v;v+=5}while(t&32);return H<0?H+4294967296:H};
z7E=function(){var f=!0;f=f===void 0?!1:f;var H=H===void 0?!1:H;var v=v===void 0?{}:v;var t=v.cssRowKey||"",M=v.combinedSignature||"";!t&&window&&window._F_cssRowKey&&(t=window._F_cssRowKey,!M&&window._F_combinedSignature&&(M=window._F_combinedSignature));if(t&&typeof window._F_installCss!=="function")throw Error("vd");var h=v.loaderClass||_.RV,y=nX3("base-js");f=new h(VaH(QPs("",y)),t,M,f,H);H=v.useCors||y&&y.hasAttribute("crossorigin");y=v.corsMode||y&&y.getAttribute("crossorigin");H&&(f.useCors_=
H);y&&(f.corsMode_=y);v.urlMaxLength&&(f.urlMaxLength=v.urlMaxLength);v.fetchPriority&&(f.fetchPriority=v.fetchPriority);var m=n9();m.JSC$10044_loader_=f;m.setBatchModeEnabled(!0);_.ByN=function(W){return Promise.resolve(m.load(W))}};
K2E=function(f,H,v){F2R(f,H);f[H][rYB].unshift(v)};
F2R=function(f,H){if(!f[H]||!f[H][rYB]){var v=f[H],t=v?[v]:[];f[H]=function(){for(var M=_.V(t),h=M.next();!h.done;h=M.next())h.value.apply(this,arguments)};
f[H][rYB]=t}};
DiH=function(f){if(!f)return[];var H=[];f=_.V(f);for(var v=f.next();!v.done;v=f.next())v=v.value,Array.isArray(v)?H.push.apply(H,_.pS(DiH(v))):H.push(v);return H};
_.yI=function(f,H){if(f&&odR.test(f)||f==="//")return f;if(ndT===void 0){ndT=!1;try{var v=new URL("b","http://a");v.pathname="c%20d";ndT=v.href==="http://a/c%20d"}catch(t){}}H||(H=document.baseURI||window.location.href);if(ndT)try{return(new URL(f,H)).href}catch(t){return f}VI||(VI=document.implementation.createHTMLDocument("temp"),VI.base=VI.createElement("base"),VI.head.appendChild(VI.base),VI.anchor=VI.createElement("a"),VI.body.appendChild(VI.anchor));VI.base.href=H;VI.anchor.href=f;return VI.anchor.href||
f};
Qcb=function(f,H){return f.replace(psB,function(v,t,M,h){return t+"'"+_.yI(M.replace(/["']/g,""),H)+"'"+h})};
uXb=function(f){return f.substring(0,f.lastIndexOf("/")+1)};
G7E=function(){a4R=!1;for(var f=Y7.length,H=0;H<f;H++){var v=Y7[H];if(v)try{v()}catch(t){setTimeout(function(){throw t;})}}Y7.splice(0,f);
PwH+=f};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(f){console.log("["+f.is+"]: registered")};
EdN=function(f){CwE.push(f)};
mu=function(f){return Ny_[f]||(Ny_[f]=f.indexOf("-")<0?f:f.replace(cYr,function(H){return H[1].toUpperCase()}))};
$7=function(f){return Ny_[f]||(Ny_[f]=f.replace(Xsr,"-$1").toLowerCase())};
AYH=function(f,H){var v=H.parentInfo&&AYH(f,H.parentInfo);if(v)for(f=v.firstChild,v=0;f;f=f.nextSibling){if(H.parentIndex===v++)return f}else return f};
bpT=function(f,H){f=f._methodHost||f;return function(v){if(f[H])f[H](v,v.detail);else console.warn("listener method `"+H+"` not defined")}};
Wb=function(f){return f.indexOf(".")>=0};
Oo=function(f){var H=f.indexOf(".");return H===-1?f:f.slice(0,H)};
ipB=function(f,H){return f.indexOf(H+".")===0};
gT=function(f,H){return H.indexOf(f+".")===0};
IV=function(f,H,v){return H+v.slice(f.length)};
k7B=function(f,H){return f===H||ipB(f,H)||gT(f,H)};
S6=function(f){if(Array.isArray(f)){for(var H=[],v=0;v<f.length;v++)for(var t=f[v].toString().split("."),M=0;M<t.length;M++)H.push(t[M]);return H.join(".")}return f};
Ty5=function(f){return Array.isArray(f)?S6(f).split("."):f.toString().split(".")};
dT=function(f,H,v){H=Ty5(H);for(var t=0;t<H.length;t++){if(!f)return;f=f[H[t]]}v&&(v.path=H.join("."));return f};
wsN=function(f,H,v){var t=Ty5(H),M=t[t.length-1];if(t.length>1){for(H=0;H<t.length-1;H++)if(f=f[t[H]],!f)return;f[M]=v}else f[H]=v;return t.join(".")};
qwg=function(f,H,v){var t=f[H];if(!t)t=f[H]={};else if(!f.hasOwnProperty(H)&&(t=f[H]=Object.create(f[H]),v))for(var M in t)for(f=t[M],H=t[M]=Array(f.length),v=0;v<f.length;v++)H[v]=f[v];return t};
so=function(f,H,v,t,M,h){if(H){var y=!1,m=j6++,W;for(W in v){var I=M?Oo(W):W;if(I=H[I])for(var S=0,d=I.length,Z=void 0;S<d&&(Z=I[S]);S++)Z.info&&Z.info.lastRun===m||M&&!fb5(W,Z.trigger)||(Z.info&&(Z.info.lastRun=m),Z.fn(f,W,v,t,Z.info,M,h),y=!0)}return y}return!1};
fb5=function(f,H){if(H){var v=H.name;return v==f||!(!H.structured||!ipB(v,f))||!(!H.wildcard||!gT(v,f))}return!0};
HAg=function(f,H,v,t,M){H=typeof M.method==="string"?f[M.method]:M.method;v=M.property;H?H.call(f,f.__data[v],t[v]):M.dynamicFn||console.warn("observer method `"+M.method+"` not defined")};
vfg=function(f,H,v,t){v={value:v,queueProperty:!0};t&&(v.path=t);(0,_.Zx)(f).dispatchEvent(new CustomEvent(H,{detail:v}))};
t4T=function(f,H,v,t,M,h){h=(t=(h?Oo(H):H)!=H?H:null)?dT(f,t):f.__data[H];t&&h===void 0&&(h=v[H]);vfg(f,M.eventName,h,t)};
M4s=function(f,H,v,t,M){v=f.__data[H];JM&&(v=JM(v,M.attrName,"attribute",f));f._propertyToAttribute(H,M.attrName,v)};
RHN=function(f){var H=f.constructor.__orderedComputedDeps;if(!H){H=new Map;for(var v=f.__computeEffects,t=hHs(f),M=t.counts,h=t.ready,y=t.total;t=h.shift();)H.set(t,H.size),(t=v[t])&&t.forEach(function(m){m=m.info.methodInfo;--y;--M[m]===0&&h.push(m)});
y!==0&&console.warn("Computed graph for "+f.localName+" incomplete; circular?");f.constructor.__orderedComputedDeps=H}return H};
hHs=function(f){var H=f.__computeInfo,v={};f=f.__computeEffects;var t=[],M=0,h;for(h in H){var y=H[h];M+=v[h]=y.args.filter(function(W){return!W.literal}).length+(y.dynamicFn?1:0)}for(var m in f)H[m]||t.push(m);
return{counts:v,ready:t,total:M}};
yQ_=function(f,H,v,t,M){H=V4r(f,H,v,t,M);if(H===Uo)return!1;M=M.methodInfo;if(f.__dataHasAccessor&&f.__dataHasAccessor[M])return f._setPendingProperty(M,H,!0);f[M]=H;return!1};
$NR=function(f,H,v,t,M,h,y){v.bindings=v.bindings||[];t={kind:t,target:M,parts:h,literal:y,isCompound:h.length!==1};v.bindings.push(t);t.target&&t.kind!="attribute"&&t.kind!="text"&&!t.isCompound&&t.parts[0].mode==="{"&&(v=t.parts[0],h=v.negate,t.listenerEvent=v.event||$7(M)+"-changed",t.listenerNegate=h);M=H.nodeInfoList.length;for(v=0;v<t.parts.length;v++){var m=t.parts[v];m.compoundIndex=v;h=f;y=H;var W=t,I=m,S=M;if(!I.literal)if(W.kind==="attribute"&&W.target[0]==="-")console.warn("Cannot set attribute "+
W.target+' because "-" is not a valid attribute starting character');else for(m=I.dependencies,W={index:S,binding:W,part:I,evaluator:h},I=0;I<m.length;I++)S=m[I],typeof S=="string"&&(S=YHr(S),S.wildcard=!0),h._addTemplatePropertyEffect(y,S.rootProperty,{fn:mNB,info:W,trigger:S})}};
mNB=function(f,H,v,t,M,h,y){y=y[M.index];var m=M.binding,W=M.part;h&&W.source&&H.length>W.source.length&&m.kind=="property"&&!m.isCompound&&y.__isPropertyEffectsClient&&y.__dataHasAccessor&&y.__dataHasAccessor[m.target]?(v=v[H],H=IV(W.source,m.target,H),y._setPendingPropertyOrPath(H,v,!1,!0)&&f._enqueueClient(y)):(H=M.evaluator._evaluateBinding(f,W,H,v,t,h),H!==Uo&&(m.isCompound&&(v=y.__dataCompoundStorage[m.target],v[W.compoundIndex]=H,H=v.join("")),m.kind==="attribute"||m.target!=="textContent"&&
(m.target!=="value"||y.localName!=="input"&&y.localName!=="textarea")||(H=H==void 0?"":H),W=H,JM&&(W=JM(W,m.target,m.kind,y)),m.kind=="attribute"?f._valueToNodeAttribute(y,W,m.target):(m=m.target,y.__isPropertyEffectsClient&&y.__dataHasAccessor&&y.__dataHasAccessor[m]?y.__readOnly&&y.__readOnly[m]||y._setPendingProperty(m,W)&&f._enqueueClient(y):f._setUnmanagedPropertyToNode(y,m,W))))};
Wms=function(f,H,v){if(v.listenerEvent){var t=v.parts[0];f.addEventListener(v.listenerEvent,function(M){var h=v.target,y=t.source,m=t.negate,W=M.detail,I=W&&W.path;I?(y=IV(h,y,I),M=W&&W.value):M=M.currentTarget[h];H.__readOnly&&H.__readOnly[y]||!H._setPendingPropertyOrPath(y,m?!M:M,!0,!!I)||W&&W.queueProperty||H._invalidateProperties()})}};
OAR=function(f,H,v,t,M,h){h=H.static||h&&(typeof h!=="object"||h[H.methodName]);M={methodName:H.methodName,args:H.args,methodInfo:M,dynamicFn:h};for(var y=0,m=void 0;y<H.args.length&&(m=H.args[y]);y++)m.literal||f._addPropertyEffect(m.rootProperty,v,{fn:t,info:M,trigger:m});h&&f._addPropertyEffect(H.methodName,v,{fn:t,info:M});return M};
V4r=function(f,H,v,t,M){t=f._methodHost||f;var h=t[M.methodName];if(h)return f=f._marshalArgs(M.args,H,v),f===Uo?Uo:h.apply(t,f);M.dynamicFn||console.warn("method `"+M.methodName+"` not defined")};
gfR=function(f){for(var H="",v=0;v<f.length;v++)H+=f[v].literal||"";return H};
dNe=function(f){if(f=f.match(/([^\s]+?)\(([\s\S]*)\)/)){var H={methodName:f[1],static:!0,args:Ibg};return f[2].trim()?SHr(f[2].replace(/\\,/g,"&comma;").split(","),H):H}return null};
SHr=function(f,H){H.args=f.map(function(v){v=YHr(v);v.literal||(H.static=!1);return v},this);
return H};
YHr=function(f){f=f.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var H={name:f,value:"",literal:!1},v=f[0];v==="-"&&(v=f[1]);v>="0"&&v<="9"&&(v="#");switch(v){case "'":case '"':H.value=f.slice(1,-1);H.literal=!0;break;case "#":H.value=Number(f),H.literal=!0}H.literal||(H.rootProperty=Oo(f),H.structured=Wb(f),H.structured&&(H.wildcard=f.slice(-2)==".*",H.wildcard&&(H.name=f.slice(0,-2))));return H};
j0H=function(f,H,v){f=dT(f,v);f===void 0&&(f=H[v]);return f};
s0B=function(f,H,v,t){t={indexSplices:t};e6&&!f._overrideLegacyUndefined&&(H.splices=t);f.notifyPath(v+".splices",t);f.notifyPath(v+".length",H.length);e6&&!f._overrideLegacyUndefined&&(t.indexSplices=[])};
L1=function(f,H,v,t,M,h){s0B(f,H,v,[{index:t,addedCount:M,removed:h,object:H,type:"splice"}])};
ZAe=function(f){f=Qcb((f.body?f.body:f).textContent,f.baseURI);var H=document.createElement("style");H.textContent=f;return H};
lbs=function(f){f=f.trim().split(/\s+/);for(var H=[],v=0;v<f.length;v++)H.push.apply(H,_.pS(JQ_(f[v])));return H};
JQ_=function(f){var H=x7.import(f);if(!H)return console.warn("Could not find style data in module named",f),[];if(H._styles===void 0){f=[];f.push.apply(f,_.pS(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(H)));var v=H.querySelector("template");v&&f.push.apply(f,_.pS(UNe(v,H.assetpath)));H._styles=f}return H._styles};
UNe=function(f,H){if(!f._styles){for(var v=[],t=f.content.querySelectorAll("style"),M=0;M<t.length;M++){var h=t[M],y=h.getAttribute("include");y&&v.push.apply(v,_.pS(lbs(y).filter(function(m,W,I){return I.indexOf(m)===W})));
H&&(h.textContent=Qcb(h.textContent,H));v.push(h)}f._styles=v}return f._styles};
eHe=function(f){return(f=x7.import(f))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(f):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(f){var H=[];f=f.querySelectorAll("link[rel=import][type~=css]");for(var v=0;v<f.length;v++){var t=f[v];if(t.import){var M=t.import;if((t=t.hasAttribute("shady-unscoped"))&&!M._unscopedStyle){var h=ZAe(M);h.setAttribute("shady-unscoped","");M._unscopedStyle=h}else M._style||(M._style=ZAe(M));H.push(t?M._unscopedStyle:M._style)}}return H};
xNg=function(f){f=f.trim().split(/\s+/);for(var H="",v=0;v<f.length;v++)H+=LmT(f[v]);return H};
LmT=function(f){var H=x7.import(f);if(H&&H._cssText===void 0){var v=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(H),t=H.querySelector("template");t&&(v+=Bsg(t,H.assetpath));H._cssText=v||null}H||console.warn("Could not find style data in module named",f);return H&&H._cssText||""};
Bsg=function(f,H){var v="";f=UNe(f,H);for(H=0;H<f.length;H++){var t=f[H];t.parentNode&&t.parentNode.removeChild(t);v+=t.textContent}return v};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(f){var H="";f=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(f);for(var v=0;v<f.length;v++)H+=f[v].textContent;return H};
Bb=function(f,H){return{index:f,removed:[],addedCount:H}};
Fms=function(f,H,v,t){var M=0,h=0,y=0,m=0,W=Math.min(H-M,t-h);if(M==0&&h==0)a:{for(y=0;y<W;y++)if(f[y]!==v[y])break a;y=W}if(H==f.length&&t==v.length){m=f.length;for(var I=v.length,S=0;S<W-y&&zHN(f[--m],v[--I]);)S++;m=S}M+=y;h+=y;H-=m;t-=m;if(H-M==0&&t-h==0)return[];if(M==H){for(H=Bb(M,0);h<t;)H.removed.push(v[h++]);return[H]}if(h==t)return[Bb(M,H-M)];W=M;y=h;t=t-y+1;m=H-W+1;H=Array(t);for(I=0;I<t;I++)H[I]=Array(m),H[I][0]=I;for(I=0;I<m;I++)H[0][I]=I;for(I=1;I<t;I++)for(S=1;S<m;S++)if(f[W+S-1]===
v[y+I-1])H[I][S]=H[I-1][S-1];else{var d=H[I-1][S]+1,Z=H[I][S-1]+1;H[I][S]=d<Z?d:Z}W=H.length-1;y=H[0].length-1;t=H[W][y];for(f=[];W>0||y>0;)W==0?(f.push(2),y--):y==0?(f.push(3),W--):(m=H[W-1][y-1],I=H[W-1][y],S=H[W][y-1],d=I<S?I<m?I:m:S<m?S:m,d==m?(m==t?f.push(0):(f.push(1),t=m),W--,y--):d==I?(f.push(3),W--,t=I):(f.push(2),y--,t=S));f.reverse();H=void 0;W=[];for(y=0;y<f.length;y++)switch(f[y]){case 0:H&&(W.push(H),H=void 0);M++;h++;break;case 1:H||(H=Bb(M,0));H.addedCount++;M++;H.removed.push(v[h]);
h++;break;case 2:H||(H=Bb(M,0));H.addedCount++;M++;break;case 3:H||(H=Bb(M,0)),H.removed.push(v[h]),h++}H&&W.push(H);return W};
rQE=function(f,H){return Fms(f,f.length,H,H.length)};
zHN=function(f,H){return f===H};
DN_=function(f){if(f instanceof Km_)return f.value;throw Error("Dd`"+f);};
ofs=function(f,H){for(var v in H)v===null?f.style.removeProperty(v):f.style.setProperty(v,H[v])};
nfH=function(f,H){return(f=window.getComputedStyle(f).getPropertyValue(H))?f.trim():""};
abs=function(f){requestAnimationFrame(function(){p1r?p1r(f):(Q0s||(Q0s=new Promise(function(H){uLv=H}),document.readyState==="complete"?uLv():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&uLv()})),Q0s.then(function(){f&&f()}))})};
CLr=function(f){PLB=f&&f.shimcssproperties?!1:GBb||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
AQN=function(f){if(!(Ef5.indexOf(f)>-1)&&f!=="touchend"&&Nsb&&cQe&&X1r)return{passive:!0}};
Tsg=function(f){for(var H=bA3?["click"]:Ef5,v=0,t;v<H.length;v++)t=H[v],f?(iA5.length=0,document.addEventListener(t,kBe,!0)):document.removeEventListener(t,kBe,!0)};
z5=function(f){var H=f.type;return Ef5.indexOf(H)>-1?H==="mousemove"?(H=f.buttons===void 0?1:f.buttons,f instanceof window.MouseEvent&&!w1s&&(H=qH_[f.which]||0),!!(H&1)):(f.button===void 0?0:f.button)===0:!1};
fVT=function(f){if(f.type==="click"){if(f.detail===0)return!0;var H=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f);if(!H.nodeType||H.nodeType!==Node.ELEMENT_NODE)return!0;H=H.getBoundingClientRect();var v=f.pageX;f=f.pageY;return!(v>=H.left&&v<=H.right&&f>=H.top&&f<=H.bottom)}return!1};
H8B=function(f,H,v){f.movefn=H;f.upfn=v;document.addEventListener("mousemove",H);document.addEventListener("mouseup",v)};
F2=function(f){document.removeEventListener("mousemove",f.movefn);document.removeEventListener("mouseup",f.upfn);f.movefn=null;f.upfn=null};
v__=function(f,H){for(var v=document.elementFromPoint(f,H),t=v;t&&t.shadowRoot&&!window.ShadyDOM;){var M=t;t=t.shadowRoot.elementFromPoint(f,H);if(M===t)break;t&&(v=t)}return v};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(f){var H=tsT(f);return H.length>0?H[0]:f.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(f){var H=f.type,v=f.currentTarget.__polymerGestures;if(v&&(v=v[H])){if(!f.__polymerGesturesHandled&&(f.__polymerGesturesHandled={},H.slice(0,5)==="touch")){var t=f.changedTouches[0];H==="touchstart"&&f.touches.length===1&&(Ms3=t.identifier);if(Ms3!==t.identifier)return;Nsb||(H==="touchstart"||H==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f)}t=
f.__polymerGesturesHandled;if(!t.skip){for(var M=0,h;M<Dx.length;M++)h=Dx[M],v[h.name]&&!t[h.name]&&h.flow&&h.flow.start.indexOf(f.type)>-1&&h.reset&&h.reset();for(M=0;M<Dx.length;M++)h=Dx[M],v[h.name]&&!t[h.name]&&(t[h.name]=!0,h[H](f))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(f){var H=f.changedTouches[0],v=f.type;if(v==="touchstart")hV3=H.clientX,RVs=H.clientY,Vs3=!1;else if(v==="touchmove"&&!Vs3){Vs3=!0;v="auto";for(var t=tsT(f),M=0,h;M<t.length;M++)if(h=t[M],h.__polymerGesturesTouchAction){v=h.__polymerGesturesTouchAction;break}t=!1;M=Math.abs(hV3-H.clientX);H=Math.abs(RVs-H.clientY);f.cancelable&&(v==="none"?t=!0:v==="pan-x"?t=H>M:v==="pan-y"&&(t=M>H));t?f.preventDefault():
oV("track")}};
p1=function(f,H,v){return n1[H]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f,H,v),!0):!1};
QI=function(f,H,v){return n1[H]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f,H,v),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(f,H,v){var t=n1[H],M=t.deps,h=t.name,y=f.__polymerGestures;y||(f.__polymerGestures=y={});for(var m=0,W,I;m<M.length;m++)W=M[m],bA3&&Ef5.indexOf(W)>-1&&W!=="click"||((I=y[W])||(y[W]=I={_count:0}),I._count===0&&f.addEventListener(W,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,AQN(W)),I[h]=(I[h]||0)+1,I._count=(I._count||0)+1);f.addEventListener(H,v);t.touchAction&&_.uK(f,t.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(f,H,v){var t=n1[H],M=t.deps;t=t.name;var h=f.__polymerGestures;if(h)for(var y=0,m,W;y<M.length;y++)m=M[y],(W=h[m])&&W[t]&&(W[t]=(W[t]||1)-1,W._count=(W._count||1)-1,W._count===0&&f.removeEventListener(m,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,AQN(m)));f.removeEventListener(H,v)};
yZe=function(f){Dx.push(f);for(var H=0;H<f.emits.length;H++)n1[f.emits[H]]=f};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(f){for(var H=0,v;H<Dx.length;H++){v=Dx[H];for(var t=0,M;t<v.emits.length;t++)if(M=v.emits[t],M===f)return v}return null};
_.uK=function(f,H){Nsb&&f instanceof HTMLElement&&aV.run(function(){f.style.touchAction=H});
f.__polymerGesturesTouchAction=H};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(f,H,v){H=new Event(H,{bubbles:!0,cancelable:!0,composed:!0});H.detail=v;(0,_.Zx)(f).dispatchEvent(H);H.defaultPrevented&&(f=v.preventer||v.sourceEvent)&&f.preventDefault&&f.preventDefault()};
oV=function(f){f=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f);f.info&&(f.info.prevent=!0)};
Pb=function(f,H,v,t){H&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H,f,{x:v.clientX,y:v.clientY,sourceEvent:v,preventer:t,prevent:function(M){return oV(M)}})};
YUR=function(f,H,v){if(f.prevent)return!1;if(f.started)return!0;v=Math.abs(f.y-v);return Math.abs(f.x-H)>=5||v>=5};
myT=function(f,H,v){if(H){var t=f.moves[f.moves.length-2],M=f.moves[f.moves.length-1],h=M.x-f.x,y=M.y-f.y,m=0;if(t){var W=M.x-t.x;m=M.y-t.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H,"track",{state:f.state,x:v.clientX,y:v.clientY,dx:h,dy:y,ddx:W,ddy:m,sourceEvent:v,hover:function(){return v__(v.clientX,v.clientY)}})}};
W9R=function(f,H,v){var t=Math.abs(H.clientX-f.x),M=Math.abs(H.clientY-f.y),h=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(v||H);!h||$ys[h.localName]&&h.hasAttribute("disabled")||!(isNaN(t)||isNaN(M)||t<=25&&M<=25||fVT(H))||f.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(h,"tap",{x:H.clientX,y:H.clientY,sourceEvent:H,preventer:v})};
O8T=function(f,H,v,t,M){var h;M&&(h=typeof v==="object"&&v!==null)&&(t=f.__dataTemp[H]);t=t!==v&&(t===t||v===v);h&&t&&(f.__dataTemp[H]=v);return t};
IV5=function(){if(G5&&!C1){if(!g_e){g_e=!0;var f=document.createElement("style");f.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(f)}return!0}return!1};
dyr=function(){return SU3};
jpN=function(f,H){SU3=f;Object.setPrototypeOf(f,H.prototype);new H;SU3=null};
spE=function(f,H){for(var v=0;v<H.length;v++){var t=H[v];if(!!f!=!!t.__hideTemplateChildren__)if(t.nodeType===Node.TEXT_NODE)f?(t.__polymerTextContent__=t.textContent,t.textContent=""):t.textContent=t.__polymerTextContent__;else if(t.localName==="slot")if(f)t.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.Zx)((0,_.Zx)(t).parentNode).replaceChild(t.__polymerReplaced__,t);else{var M=t.__polymerReplaced__;M&&(0,_.Zx)((0,_.Zx)(M).parentNode).replaceChild(t,M)}else t.style&&(f?(t.__polymerDisplay__=
t.style.display,t.style.display="none"):t.style.display=t.__polymerDisplay__);t.__hideTemplateChildren__=f;t._showHideChildren&&t._showHideChildren(f)}};
Z8_=function(f){return(f=f.__dataHost)&&f._methodHost||f};
Uyb=function(f,H,v){var t=v.mutableData?JZB:Eo;NV.mixin&&(t=NV.mixin(t));var M=function(){return t.apply(this,arguments)||this};
_.e(M,t);M.prototype.__templatizeOptions=v;M.prototype._bindTemplate(f);lV5(M,f,H,v);return M};
zVr=function(f,H,v,t){var M=v.forwardHostProp;if(M&&H.hasHostProps){var h=f.localName=="template",y=H.templatizeTemplateClass;if(!y){if(h){var m=v.mutableData?eVE:L9H;y=function(){return m.apply(this,arguments)||this};
_.e(y,m);y=H.templatizeTemplateClass=y}else{var W=f.constructor;y=function(){return W.apply(this,arguments)||this};
_.e(y,W);y=H.templatizeTemplateClass=y}var I=H.hostProps,S;for(S in I)y.prototype._addPropertyEffect("_host_"+S,y.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:xy3(M)}),y.prototype._createNotifyingProperty("_host_"+S);cb&&t&&BPs(H,v,t)}f.__dataProto&&Object.assign(f.__data,f.__dataProto);if(h)jpN(f,y),f.__dataTemp={},f.__dataPending=null,f.__dataOld=null,f._enableProperties();else{Object.setPrototypeOf(f,y.prototype);H=H.hostProps;for(var d in H)d="_host_"+d,d in f&&(H=f[d],delete f[d],f.__data[d]=
H)}}};
xy3=function(f){return function(H,v,t){f.call(H.__templatizeOwner,v.substring(6),t[v])}};
lV5=function(f,H,v,t){var M=v.hostProps||{},h;for(h in t.instanceProps){delete M[h];var y=t.notifyInstanceProp;y&&f.prototype._addPropertyEffect(h,f.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:F9E(y)})}if(t.forwardHostProp&&H.__dataHost)for(var m in M)v.hasHostProps||(v.hasHostProps=!0),f.prototype._addPropertyEffect(m,f.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:rZe()})};
F9E=function(f){return function(H,v,t){f.call(H.__templatizeOwner,H,v,t[v])}};
rZe=function(){return function(f,H,v){f.__dataHost._setPendingPropertyOrPath("_host_"+H,v[H],!0,!0)}};
NV=function(f,H,v){if(X2&&!Z8_(f))throw Error("Jd");v=v||{};if(f.__templatizeOwner)throw Error("Kd");f.__templatizeOwner=H;var t=(H?H.constructor:Eo)._parseTemplate(f),M=t.templatizeInstanceClass;M||(M=Uyb(f,t,v),t.templatizeInstanceClass=M);var h=Z8_(f);zVr(f,t,v,h);v=function(){return M.apply(this,arguments)||this};
_.e(v,M);v.prototype._methodHost=h;v.prototype.__dataHost=f;v.prototype.__templatizeOwner=H;v.prototype.__hostProps=t.hostProps;return v};
BPs=function(f,H,v){v=v.constructor._properties;f=f.propertyEffects;H=H.instanceProps;for(var t in f)if(!(v[t]||H&&H[t]))for(var M=f[t],h=0;h<M.length;h++){var y=M[h].info.part;if(!y.signature||!y.signature.static){console.warn("Property '"+t+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
K9B=function(f,H){for(var v;H;)if(v=H.__dataHost?H:H.__templatizeInstance)if(v.__dataHost!=f)H=v.__dataHost;else return v;else H=(0,_.Zx)(H).parentNode;return null};
AM=function(f){return f.localName==="slot"};
DyN=function(){for(var f=bK.prototype,H="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),v={},t=0;t<H.length;v={method$jscomp$33:void 0},t++)v.method$jscomp$33=H[t],f[v.method$jscomp$33]=function(M){return function(){return this.node[M.method$jscomp$33].apply(this.node,arguments)}}(v)};
o_e=function(f,H){for(var v={},t=0;t<H.length;v={name$jscomp$438:void 0},t++)v.name$jscomp$438=H[t],Object.defineProperty(f,v.name$jscomp$438,{get:function(M){return function(){return this.node[M.name$jscomp$438]}}(v),
configurable:!0})};
n_R=function(){for(var f=bK.prototype,H=["textContent","innerHTML","className"],v={},t=0;t<H.length;v={name$jscomp$439:void 0},t++)v.name$jscomp$439=H[t],Object.defineProperty(f,v.name$jscomp$439,{get:function(M){return function(){return this.node[M.name$jscomp$439]}}(v),
set:function(M){return function(h){this.node[M.name$jscomp$439]=h}}(v),
configurable:!0})};
pIv=function(){iK=document.documentElement.getAttribute("dir");iK=document.documentElement.getAttribute("dir");for(var f=0;f<k7.length;f++){var H=k7[f];H.__autoDirOptOut||H.setAttribute("dir",iK)}};
PTH=function(){T5=!0;requestAnimationFrame(function(){T5=!1;QpE(ugT);setTimeout(function(){for(var f=0,H=wT.length;f<H;f++)aVT(wT.shift())})})};
QpE=function(f){for(;f.length;)aVT(f.shift())};
aVT=function(f){var H=f[0],v=f[1];f=f[2];try{v.apply(H,f)}catch(t){setTimeout(function(){throw t;})}};
_.GXE=function(f,H,v){T5||PTH();ugT.push([f,H,v])};
_.qV=function(f,H,v){T5||PTH();wT.push([f,H,v])};
NPv=function(f,H){H=H===void 0?!1:H;if(!CT5||!E_E||!CT5.handlesDynamicScoping)return null;var v=E_E.ScopingShim;if(!v)return null;var t=v.scopeForNode(f),M=(0,_.Zx)(f).getRootNode(),h=function(y){if((0,_.Zx)(y).getRootNode()===M){var m=Array.from(CT5.nativeMethods.querySelectorAll.call(y,"*"));m.push(y);for(y=0;y<m.length;y++){var W=m[y];if((0,_.Zx)(W).getRootNode()===M){var I=v.currentScopeForNode(W);I!==t&&(I!==""&&v.unscopeNode(W,I),v.scopeNode(W,t))}}}};
h(f);return H?(H=new MutationObserver(function(y){for(var m=0;m<y.length;m++)for(var W=y[m],I=0;I<W.addedNodes.length;I++){var S=W.addedNodes[I];S.nodeType===Node.ELEMENT_NODE&&h(S)}}),H.observe(f,{childList:!0,
subtree:!0}),H):null};
cZs=function(){document.body.removeAttribute("unresolved")};
kXR=function(f){var H=f=f.replace(XIR,"").replace(AZR,""),v=new b8b;v.start=0;v.end=H.length;for(var t=v,M=0,h=H.length;M<h;M++)if(H[M]==="{"){t.rules||(t.rules=[]);var y=t,m=y.rules[y.rules.length-1]||null;t=new b8b;t.start=M+1;t.parent=y;t.previous=m;y.rules.push(t)}else H[M]==="}"&&(t.end=M+1,t=t.parent||v);return i8E(v,f)};
i8E=function(f,H){var v=H.substring(f.start,f.end-1);f.parsedCssText=f.cssText=v.trim();f.parent&&(v=H.substring(f.previous?f.previous.end:f.parent.start,f.start-1),v=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(v),v=v.replace(TPE," "),v=v.substring(v.lastIndexOf(";")+1),v=f.parsedSelector=f.selector=v.trim(),f.atRule=v.indexOf("@")===0,f.atRule?v.indexOf("@media")===0?f.type=4:v.match(wI_)&&(f.type=7,f.keyframesName=f.selector.split(TPE).pop()):v.indexOf("--")===
0?f.type=1E3:f.type=1);if(v=f.rules)for(var t=0,M=v.length,h=void 0;t<M&&(h=v[t]);t++)i8E(h,H);return f};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(f){return f.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var H=arguments[1],v=6-H.length;v--;)H="0"+H;return"\\"+H})};
qUH=function(f,H,v){v=v===void 0?"":v;var t="";if(f.cssText||f.rules){var M=f.rules;if(M&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(M))for(var h=0,y=M.length,m=void 0;h<y&&(m=M[h]);h++)t=qUH(m,H,t);else H?H=f.cssText:(H=f.cssText,H=H.replace(fD5,"").replace(H6g,""),H=H.replace(v0_,"").replace(tIg,"")),(t=H.trim())&&(t="  "+t+"\n")}t&&(f.selector&&(v+=f.selector+" {\n"),v+=t,f.selector&&(v+="}\n\n"));return v};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(f){f=f[0];return!!f&&!!f.selector&&f.selector.indexOf("--")===0};
hKB=function(f){if(f=MIH[f])f._applyShimCurrentVersion=f._applyShimCurrentVersion||0,f._applyShimValidatingVersion=f._applyShimValidatingVersion||0,f._applyShimNextVersion=(f._applyShimNextVersion||0)+1};
RK5=function(f){return f._applyShimCurrentVersion===f._applyShimNextVersion};
yhN=function(f){f._applyShimValidatingVersion=f._applyShimNextVersion;f._validating||(f._validating=!0,VIR.then(function(){f._applyShimCurrentVersion=f._applyShimNextVersion;f._validating=!1}))};
mtH=function(f){if(!f)return"";typeof f==="string"&&(f=kXR(f));return qUH(f,Y$3)};
$tT=function(f){!f.__cssRules&&f.textContent&&(f.__cssRules=kXR(f.textContent));return f.__cssRules||null};
O6H=function(f,H,v,t){if(f){var M=!1,h=f.type;if(t&&h===4){var y=f.selector.match(WP3);y&&(window.matchMedia(y[1]).matches||(M=!0))}h===1?H(f):v&&h===7?v(f):h===1E3&&(M=!0);if((f=f.rules)&&!M)for(M=0,h=f.length,y=void 0;M<h&&(y=f[M]);M++)O6H(y,H,v,t)}};
g0e=function(f,H){var v=f.indexOf("var(");if(v===-1)return H(f,"","","");a:{var t=0;var M=v+3;for(var h=f.length;M<h;M++)if(f[M]==="(")t++;else if(f[M]===")"&&--t===0)break a;M=-1}t=f.substring(v+4,M);v=f.substring(0,v);f=g0e(f.substring(M+1),H);h=t.indexOf(",");if(h===-1)return H(v,t.trim(),"",f);M=t.substring(0,h).trim();t=t.substring(h+1).trim();return H(v,M,t,f)};
IDe=function(f){if(fP!==void 0)return fP;if(f.__cssBuild===void 0){var H=f.getAttribute("css-build");if(H)f.__cssBuild=H;else{a:{H=f.localName==="template"?f.content.firstChild:f.firstChild;if(H instanceof Comment&&(H=H.textContent.trim().split(":"),H[0]==="css-build")){H=H[1];break a}H=""}if(H!==""){var v=f.localName==="template"?f.content.firstChild:f.firstChild;v.parentNode.removeChild(v)}f.__cssBuild=H}}return f.__cssBuild||""};
dt_=function(f,H,v,t){for(var M=H._noAccessors,h=Object.getOwnPropertyNames(H),y=0;y<h.length;y++){var m=h[y];if(!(m in t))if(M)f[m]=H[m];else{var W=Object.getOwnPropertyDescriptor(H,m);W&&(W.configurable=!0,Object.defineProperty(f,m,W))}}for(var I in S$e)H[I]&&(v[I]=v[I]||[],v[I].push(H[I]))};
jHN=function(f,H,v){H=H||[];for(var t=f.length-1;t>=0;t--){var M=f[t];M?Array.isArray(M)?jHN(M,H):H.indexOf(M)<0&&(!v||v.indexOf(M)<0)&&H.unshift(M):console.warn("behavior is null, check for missing or 404 import")}return H};
sHe=function(f,H){for(var v in H){var t=f[v],M=H[v];f[v]=!("value"in M)&&t&&"value"in t?Object.assign({value:t.value},M):M}};
lDH=function(f,H,v){var t={},M=function(){return H.apply(this,arguments)||this};
_.e(M,H);M._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(y)for(var W=0,I;W<y.length;W++)I=y[W],I.properties&&this.createProperties(I.properties),I.observers&&this.createObservers(I.observers,I.properties);f.properties&&this.createProperties(f.properties);f.observers&&this.createObservers(f.observers,f.properties);this._prepareTemplate()}else H._finalizeClass.call(this)};
M.prototype.created=function(){H.prototype.created.call(this);var W=t.created;if(W)for(var I=0;I<W.length;I++)W[I].call(this)};
M.prototype._registered=function(){var W=M.prototype;if(!W.hasOwnProperty("__hasRegisterFinished")){W.__hasRegisterFinished=!0;H.prototype._registered.call(this);G5&&m(W);W=Object.getPrototypeOf(this);var I=t.beforeRegister;if(I)for(var S=0;S<I.length;S++)I[S].call(W);if(I=t.registered)for(S=0;S<I.length;S++)I[S].call(W)}};
M.prototype._applyListeners=function(){H.prototype._applyListeners.call(this);var W=t.listeners;if(W)for(var I=0;I<W.length;I++){var S=W[I];if(S)for(var d in S)this._addMethodEventListenerToNode(this,d,S[d])}};
M.prototype._ensureAttributes=function(){var W=t.hostAttributes;if(W)for(var I=W.length-1;I>=0;I--){var S=W[I],d;for(d in S)this._ensureAttribute(d,S[d])}H.prototype._ensureAttributes.call(this)};
M.prototype.ready=function(){H.prototype.ready.call(this);var W=t.ready;if(W)for(var I=0;I<W.length;I++)W[I].call(this)};
M.prototype.attached=function(){H.prototype.attached.call(this);var W=t.attached;if(W)for(var I=0;I<W.length;I++)W[I].call(this)};
M.prototype.detached=function(){H.prototype.detached.call(this);var W=t.detached;if(W)for(var I=0;I<W.length;I++)W[I].call(this)};
M.prototype.attributeChanged=function(W,I,S){H.prototype.attributeChanged.call(this);var d=t.attributeChanged;if(d)for(var Z=0;Z<d.length;Z++)d[Z].call(this,W,I,S)};
_.H7.Object.defineProperties(M,{properties:{configurable:!0,enumerable:!0,get:function(){var W={};if(y)for(var I=0;I<y.length;I++)sHe(W,y[I].properties);sHe(W,f.properties);return W}},
observers:{configurable:!0,enumerable:!0,get:function(){var W=[];if(y)for(var I=0,S;I<y.length;I++)S=y[I],S.observers&&(W=W.concat(S.observers));f.observers&&(W=W.concat(f.observers));return W}}});
if(v){Array.isArray(v)||(v=[v]);var h=H.prototype.behaviors;var y=jHN(v,null,h);M.prototype.behaviors=h?h.concat(v):y}var m=function(W){if(y)for(var I=y,S=0;S<I.length;S++)dt_(W,I[S],t,Z6R);dt_(W,f,t,JhB)};
G5||m(M.prototype);M.generatedFrom=f;return M};
xtT=function(f){var H=typeof f!=="string"?f:{is:f,notifyObserversOnUndefined:!0};H.fastInit===void 0&&(H.fastInit=!0);return function(v){if(!H.disableInheritanceCheck&&Object.getPrototypeOf(v.prototype).constructor!==_.v7)throw Error("Od");var t=v.prototype;t.is=H.is;K2E(t,"created",function(){this.hostElement=this;this.polymerController=this});
UtT(t,v,H.fastInit);H.notifyObserversOnUndefined&&(t._overrideLegacyUndefined=!0);if(eKT)for(var M=_.V(Object.getOwnPropertyNames(t)),h=M.next();!h.done;h=M.next()){h=h.value;var y=Object.getOwnPropertyDescriptor(t,h);y.enumerable===!1&&(y.enumerable=!0,Object.defineProperty(t,h,y))}if("template"in v)var m=function(){return v.template};
else H.template!==void 0&&(m=H.template);if(m!==void 0){var W;Object.defineProperty(t,"_template",{get:function(){W===void 0&&(W=m());return W},
set:function(I){W=I},
configurable:!0,enumerable:!0})}Polymer(t);v[LPR]=t}};
BQ5=function(f){f=f===void 0?{}:f;f.fastInit===void 0&&(f.fastInit=!0);return function(H){if(!f.disableInheritanceCheck&&Object.getPrototypeOf(H.prototype).constructor!==tg)throw Error("Pd");UtT(H.prototype,H,f.fastInit)}};
UtT=function(f,H,v){v=v===void 0?!1:v;zKb(H);v?K2E(f,"created",function(){this.disableEnforceFastDefaultValuesCheck||FPR(H,this)}):K2E(f,"ready",function(){for(var t={},M=_.V(DiH(this.behaviors)),h=M.next();!h.done;h=M.next())h=h.value,h.properties&&Object.assign(t,KP5(this,h.properties));
Object.assign(t,KP5(this,this.properties));FPR(H,this);M=_.V(Object.keys(t));for(h=M.next();!h.done;h=M.next())h=h.value,this[h]=t[h]})};
FPR=function(f,H){if(eKT){f=new f;for(var v=_.V(Object.getOwnPropertyNames(f)),t=v.next();!t.done;t=v.next())t=t.value,H[t]=f[t];for(v=H;v&&v!==Object.prototype;v=Object.getPrototypeOf(v)){t=_.V(Object.getOwnPropertyNames(v));for(var M=t.next();!M.done;M=t.next())M=M.value,f.hasOwnProperty(M)||Object.defineProperty(f,M,Dt3(H,M))}}else f.apply(H)};
Dt3=function(f,H){return{get:function(){var v=f[H];return v instanceof Function?v.bind(f):v},
set:function(v){f[H]=v}}};
KP5=function(f,H){if(!H)return{};for(var v={},t=_.V(Object.keys(H)),M=t.next();!M.done;M=t.next())if(M=M.value,!H[M].readOnly){var h=f[M];h!==void 0&&(v[M]=h)}return v};
zKb=function(f){var H=new f;f=f.prototype.properties||{};for(var v=_.V(Object.keys(f)),t=v.next();!t.done;t=v.next())if(t=t.value,H.hasOwnProperty(t)){var M=f[t];typeof M==="function"&&(f[t]=M={type:M});H[t]!=null&&M.type===Object&&(M.type=o0N(H[t].constructor))}};
o0N=function(f){for(var H=_.V(n0H),v=H.next();!v.done;v=H.next())if(v=v.value,f===v)return v;return Object};
p4N=function(f){return function(H,v){H.behaviors=H.behaviors||[];H.behaviors.push(f||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",H,v).prototype:void 0));Object.defineProperty(H,v,{get:function(){return this},
enumerable:!0,configurable:!0})}};
QHe=function(f){f=f===void 0?{}:f;return function(H,v){H.properties=H.properties||{};f.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?f.type=o0N(Reflect.getMetadata("design:type",H,v)):f.type=String);var t=f,M=H.properties[v];H.properties[v]=M?Object.assign({},M,t):t}};
u_g=function(f){return function(H,v){H.listeners=H.listeners||{};H.listeners[f]=v}};
aDE=function(){var f=_.NA.apply(0,arguments);if(f.length===0)throw Error("Qd");return function(H,v){H.observers=H.observers||[];H.observers.push(v+"("+f.join(",")+")")}};
PsT=function(){var f=_.NA.apply(0,arguments);return function(H,v,t){var M=Object.getOwnPropertyDescriptor(H,v).get,h="__compute__"+v;Object.defineProperty(H,h,{value:M,enumerable:!0});H.properties=H.properties||{};M=H.properties[v];M||(M={},H.properties[v]=M);M.computed=h+"("+f.join(",")+")";t.get=void 0}};
_.MC=function(f,H,v){_.zO.call(this);this.JSC$11294_id_=null;this.usingListeners_=!1;this.JSC$11294_listener_=f;this.handler_=v;this.JSC$11294_win_=H||window;this.callback_=(0,_.FH)(this.JSC$11296_doAction_,this)};
hg=function(f){this.range_=f};
Ve=function(f){this.range_=f};
mg=function(f,H,v){_.zO.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=f;this.scrollTimer_=new _.ye(50);this.JSC$11373_eventHandler_=new _.Y1(this);this.scrollDelta_=new _.al;this.containerIsActuallyContent_=f.tagName==="BODY"||f.tagName==="HTML";this.containerBounds_=G_B(f);this.containerIsActuallyContent_&&(f=_.Ld(),this.containerBounds_.height=f.height,this.containerBounds_.width=f.width);this.margin_=H||0;if(H){if(H=this.containerBounds_.clone(),f=this.margin_){var t=
Math.min(f,H.height*.25);H.top+=t;H.height-=2*t;f=Math.min(f,H.width*.25);H.left+=f;H.width-=2*f}}else H=this.containerBounds_;this.scrollBounds_=H;v||this.JSC$11373_eventHandler_.listen(_.Gf(this.containerNode_),"mousemove",this.JSC$11375_onMouseMove);this.JSC$11373_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11375_onTick_)};
_.$1=function(f){this.mechanism=f};
W7=function(f,H){this.JSC$11471_key_=f;this.JSC$11471_value_=H};
E0e=function(f){if(f>=55296&&f<=57343||f>1114111)return"\ufffd";f in Cs3&&(f=Cs3[f]);var H="";f>65535&&(f-=65536,H+=String.fromCharCode(f>>>10&1023|55296),f=56320|f&1023);return H+=String.fromCharCode(f)};
NQN=function(f,H){return f<H?1:-1};
X4R=function(){return function(f){return f.charAt(1)==="#"?f.charAt(2)==="X"||f.charAt(2)==="x"?E0e(parseInt(f.substr(3),16)):E0e(parseInt(f.substr(2),10)):chN[f.slice(1,-1)]}};
i6e=function(f){return f.slice(1,f.length-1).trim().replace(AhR,function(H){return b6R[H]||" "})};
Oe=function(f){return f===32||f===9};
gI=function(f,H){return H<f.length?f.charCodeAt(H):-1};
k_N=function(f){for(;f;){if(f._lastLineBlank)return!0;var H=f.type;if(H==="list"||H==="item")f=f._lastChild;else break}return!1};
IW=function(f){if(TQT.test(f)){var H=1,v=0,t=0;for(f[v]=="|"&&v++;v<f.length;){switch(f[v]){case "|":t=1;break;case " ":break;case "\t":break;default:t&&(t=0,H++)}v++}return w4B.test(f)?-H:H}return 0};
q$v=function(f){return f=="table"||f=="row"||f=="cell"};
feb=function(){return new Sq("document",[[1,1],[0,0]])};
Hh5=function(){};
dI=function(){var f={safe:!1};f=f||{};f.softbreak=f.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=f};
R83=function(f,H){var v="";if(f)if(f=f.toLowerCase(),f===" "||vR5.test(f))v="space";else if(tge.test(f))v="esc";else if(f.length==1){if(!H||MgT.test(f))v=f}else v=h8T.test(f)?f.replace("arrow",""):f=="multiply"?"*":f;return v};
mcB=function(f,H){var v=f.hasModifiers;if(H.key)v=R83(H.key,v);else if(H.detail&&H.detail.key)v=R83(H.detail.key,v);else{v=H.keyIdentifier;var t="";v&&(v in Vgr?t=Vgr[v]:yeN.test(v)?(v=parseInt(v.replace("U+","0x"),16),t=String.fromCharCode(v).toLowerCase()):t=v.toLowerCase());(v=t)||(v=H.keyCode,t="",Number(v)&&(v>=65&&v<=90?t=String.fromCharCode(32+v):v>=112&&v<=123?t="f"+(v-112+1):v>=48&&v<=57?t=String(v-48):v>=96&&v<=105?t=String(v-96):t=YBr[v]),v=t);v=v||""}return v===f.key&&(!f.hasModifiers||
!!H.shiftKey===!!f.shiftKey&&!!H.ctrlKey===!!f.ctrlKey&&!!H.altKey===!!f.altKey&&!!H.metaKey===!!f.metaKey)};
WQ_=function(f){return f.length===1?{combo:f,key:f,event:"keydown"}:f.split("+").reduce(function(H,v){var t=v.split(":");v=t[0];t=t[1];v in $cH?(H[$cH[v]]=!0,H.hasModifiers=!0):(H.key=v,H.event=t||"keydown");return H},{combo:f.split(":").shift()})};
OhB=function(f){return f.trim().split(" ").map(function(H){return WQ_(H)})};
gRb=function(f,H){if(f&&f.fn){var v=f.fn;f.fn=function(){try{v.apply(this,arguments)}catch(t){if(t instanceof jq)console.warn("Argument '"+t.arg+"'"+(H?" for method '"+H+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw t;}}}return f};
Ie5=function(){var f=_.NA.apply(0,arguments);return f.length===0?function(H){return H}:f.length===1?f[0]:f.reduce(function(H,v){return function(){return H(v.apply(null,_.pS(_.NA.apply(0,arguments))))}})};
SBv=function(){var f=_.NA.apply(0,arguments);return function(H){return function(v,t){v=H(v,t);var M=function(){throw Error("Ae");},h={getState:v.getState,
dispatch:function(y){return M.apply(null,[y].concat(_.pS(_.NA.apply(1,arguments))))}};
t=f.map(function(y){return y(h)});
M=Ie5.apply(null,_.pS(t))(v.dispatch);return Object.assign({},v,{dispatch:M})}}};
sS5=function(f){Object.keys(f).forEach(function(H){var v=f[H];if(typeof v(void 0,{type:dcg})==="undefined")throw Error("Be`"+H);if(typeof v(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+jSR()})==="undefined")throw Error("Ce`"+H+"`"+dcg);})};
se=function(f){for(var H=Object.keys(f),v={},t=0;t<H.length;t++){var M=H[t];typeof f[M]==="function"&&(v[M]=f[M])}var h=Object.keys(v);try{sS5(v)}catch(m){var y=m}return function(m,W){m=m===void 0?{}:m;if(y)throw y;for(var I=!1,S={},d=0;d<h.length;d++){var Z=h[d],l=m[Z],L=(0,v[Z])(l,W);if(typeof L==="undefined")throw m=W&&W.type,Error("De`"+(m?'"'+String(m)+'"':"(unknown type)")+"`"+Z);S[Z]=L;I=I||L!==l}return(I=I||h.length!==Object.keys(m).length)?S:m}};
Zhg=function(f,H,v){function t(){if(S)throw Error("Ee");return m}
function M(l){if(typeof l!=="function")throw Error("Fe`"+typeof l);if(S)throw Error("Ge");var L=!0;I===W&&(I=W.slice());I.push(l);return function(){if(L){if(S)throw Error("He");L=!1;I===W&&(I=W.slice());var r=I.indexOf(l);I.splice(r,1);W=null}}}
function h(l){if(typeof l!=="object"||l===null)var L=!1;else{for(L=l;Object.getPrototypeOf(L)!==null;)L=Object.getPrototypeOf(L);L=Object.getPrototypeOf(l)===L}if(!L)throw Error("Ie`"+typeof l);if(typeof l.type==="undefined")throw Error("Je");if(S)throw Error("Ke");try{S=!0,m=y(m,l)}finally{S=!1}L=W=I;for(var r=0;r<L.length;r++)(0,L[r])();return l}
if(typeof H==="function"&&typeof v==="function"||typeof v==="function"&&typeof arguments[3]==="function")throw Error("Le");typeof H==="function"&&typeof v==="undefined"&&(v=H,H=void 0);if(typeof v!=="undefined"){if(typeof v!=="function")throw Error("Me`"+typeof v);return v(Zhg)(f,H)}if(typeof f!=="function")throw Error("Ne`"+typeof f);var y=f,m=H,W=[],I=W,S=!1;h({type:dcg});var d={},Z=(d.dispatch=h,d.subscribe=M,d.getState=t,d.replaceReducer=function(l){if(typeof l!=="function")throw Error("Oe`"+
typeof l);y=l;h({type:Je_});return Z},d[les]=function(){var l={};
return l.subscribe=function(L){function r(){L.next&&L.next(t())}
if(typeof L!=="object"||L===null)throw new TypeError("Pe`"+typeof L);r();return{unsubscribe:M(r)}},l[les]=function(){return this},l},d);
return Z};
UcN=function(f){function H(){M&&(M=!1,f());h&&t()}
function v(){requestAnimationFrame(H)}
function t(){var m=Date.now();if(M){if(m-y<2)return;h=!0}else M=!0,h=!1,setTimeout(v,20);y=m}
var M=!1,h=!1,y=0;return t};
ZF=function(f){return typeof f==="number"?f:parseFloat(f)||0};
e85=function(f){return _.NA.apply(1,arguments).reduce(function(H,v){return H+ZF(f["border-"+v+"-width"])},0)};
_.x=function(f,H){H=kU(iD(H));f.innerHTML=H};
BmR=function(f){var H=LQv;H||(H=xcb(),H=LQv=_.QA.transpose(H));H=H[f];return typeof H==="string"?H:_.Jg(f)};
z8v=function(f){f=String(f).toLowerCase();var H=xcb()[f];return typeof H==="string"?H:_.ly(f)};
FQb=function(f){f=f.toLowerCase();f=xcb()[f];return typeof f==="string"?f:null};
xcb=function(){if(!res){for(var f=Object.assign({},KQv),H=_.V(Dc_),v=H.next();!v.done;v=H.next())v=v.value,f[v.toLowerCase()]=v;res=f}return res};
pUR=function(f,H){var v=window.customElements;return v&&v.get(f)||oRg[f]===!0?2:H.name==="HTMLUnknownElement"?1:H.name==="HTMLElement"&&nRg.test(f)?3:0};
aee=function(f,H){switch(H){case "innerHTML":return QSH(f)===1?2:null;case "textContent":return f=QSH(f),f===1||f===6?1:null;default:var v,t;return(t=(v=uJB[f.localName])==null?void 0:v[H])!=null?t:null}};
QSH=function(f){var H=f.localName,v=pUR(H,f.constructor);switch(v){case 0:case 1:return Pzs(H,f);case 3:case 2:return 1;default:_.bC(v,"got an unknown element classification")}};
Pzs=function(f,H){var v=Object.hasOwnProperty.call(GU_,f)?GU_[f]:null;return v!==null?v:Object.hasOwnProperty.call(CzR,f)&&H instanceof SVGElement?CzR[f]:null};
ERs=function(f,H){return H};
ceb=function(f){return(f=f.split(Nmg,2))?{url:f[0],metadata:f[1]}:null};
Aeg=function(f){var H=String(f.url).replace(XUs,encodeURIComponent);if(f=f.metadata){XUs.lastIndex=0;if(XUs.test(f))return null;H+=" "+f}return H};
TmB=function(f){function H(I){var S=I.localName;if(!I.getAttribute("is")&&pUR(S,I.constructor)===2){var d;return(d=W)!=null?d:W=document.createElement("polyresinuncustomized")}(I=m[S])||(I=m[S]=document.createElement(S));return I}
var v=f.reportHandler||void 0,t=f.safeTypesBridge||bh_,M=/^$/;if(f=f.allowedIdentifierPrefixes){f=_.V(f);for(var h=f.next();!h.done;h=f.next())M=new RegExp(M.source+"|^"+_.ih3(h.value))}v&&v(!1,"initResin",null);var y=kUN(M,t,v),m={},W=null;return function(I,S,d){var Z=I.nodeType;if(Z!==Node.ELEMENT_NODE){if(Z===Node.TEXT_NODE){S=I.parentElement;d=!S;if(S&&S.nodeType===Node.ELEMENT_NODE){Z=S.localName;var l=pUR(Z,S.constructor);switch(l){case 0:case 1:S=Pzs(Z,S);d=S===1||S===6;break;case 3:case 2:d=
!0;break;default:_.bC(l,"got an unknown element classification")}}if(d)return function(Q){return""+t(Q,"STRING",Q)}}return function(Q){if(!Q&&Q!==document.all)return Q;
v&&v(!0,"Failed to sanitize "+(I.parentElement&&I.parentElement.nodeName)+" #text node to value "+Q,I.parentElement);return Ue}}var L=I.localName;
Z=H(I);var r=null;switch(d){case "attribute":if(z8v(S)in Z)break;return function(Q){return Q};
case "property":if(S in Z){r=aee(Z,S);break}if((l=FQb(S))&&l in Z)break;return function(Q){return Q};
default:_.bC(d,"got an unknown resin type, expected either 'property' or 'attribute'")}var n=d==="attribute"?S.toLowerCase():BmR(S);r||(r=fxe(L,n,function(Q){var C=I.getAttribute(Q);return!C||/[\[\{]/.test(Q)?null:C}));
return function(Q){var C=eq,w=null;if(!Q&&Q!==document.all)return Q;if(r!=null){var c=y[r],A=c.safeType;w=c.safeReplacement;A&&(C=t(Q,A,eq));C===eq&&(c.filterString?(C=String(t(Q,"STRING",Q)),C=c.filterString(L,n,C)):c.filterRaw&&(C=c.filterRaw(L,n,Q,I)),C===w&&(C=eq))}C===eq&&(C=w||Ue,v&&v(!0,"Failed to sanitize attribute of <"+L+">: <"+L+" "+n+'="'+Q+'">',I));return C}}};
kUN=function(f,H,v){return[,{filterRaw:function(t,M,h){return h},
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:wUT,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:wUT,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:Ue,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:qBN,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(t,M,h){h=
String(h).toLowerCase();return t63(t,M,h)?h:Ue},
safeReplacement:Ue,safeType:void 0},,{filterRaw:void 0,filterString:function(t,M,h){return f.test(h)?h:Ue},
safeReplacement:Ue,safeType:"CONSTANT"},{filterRaw:function(t,M,h,y){if(typeof h==="string")var m=(m=h.match(fYe))?m.map(ceb).filter(Boolean):[];else if(Array.isArray(h))m=h;else return wUT;var W=m;m=[];var I=[],S={};if(Array.isArray(W))for(var d=0,Z=W.length;d<Z;++d){var l=W[d],L=l&&l.url;if(L){var r=H(L,"URL",S);if(r){var n=r!==S;(n?m:I).push({url:n?r:L,metadata:l.metadata})}}}else I.push(W);W=I.length?JSON.stringify(I):null;I=eq;if(m.length){if(!Array.isArray(m))throw Error();I=m.map(Aeg).filter(Boolean).join(" , ")||
eq}W&&v&&v(!0,"Failed to sanitize attribute value of <"+t+">: <"+t+" "+M+'="'+h+'">: '+W,y);return I===eq?wUT:I},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
HZe=function(f){var H=TmB(f);return function(v,t,M,h){return h||h===document.all?H(v,t,M)(h):h}};
LP=function(f,H){function v(){function M(m,W,I){for(W=Reflect.getMetadata("parameters",m)||[];W.length<=I;)W.push(null);W[I]=W[I]||[];W[I].push(y);Reflect.defineMetadata(W,m);return m}
var h=_.NA.apply(0,arguments);if(this instanceof v)return t.apply(this,h),this;var y=new (Function.prototype.bind.apply(v,[null].concat(_.pS(h))));M.annotation=y;return M}
var t=vJ3(H);v.prototype.toString=function(){return"@"+f};
return v.annotationCls=v};
vJ3=function(f){return function(){var H=_.NA.apply(0,arguments),v=this;f.forEach(function(t,M){M=H[M];if(Array.isArray(t))v[t[0]]=M&&M!==void 0?M:t[1];else for(var h in t)v[h]=M&&M[h]!==void 0?M[h]:t[h]})}};
tdR=function(f){return f!==void 0&&f!==null};
x1=function(f){if(typeof f==="string")return f;if(f===void 0||f===null)return""+f;if(f.overriddenName)return f.overriddenName;if(f.name)return f.name;f=f.toString();var H=f.indexOf("\n");return H===-1?f:f.substring(0,H)};
MdR=function(f){f.__forward_ref__=MdR;f.toString=function(){return x1(this())};
return f};
B7=function(f){return typeof f==="function"&&f.hasOwnProperty("__forward_ref__")&&f.__forward_ref__===MdR?f():f};
hQH=function(f){return f?f.map(function(H){return new (Function.prototype.bind.apply(H.type.annotationCls,[null].concat(_.pS(H.args?H.args:[]))))}):[]};
RQE=function(f){for(var H=[],v=0;v<f.length;++v){if(H.indexOf(f[v])>-1){H.push(f[v]);break}H.push(f[v])}return H};
Vdg=function(f){return f.length>1?" ("+RQE(f.slice().reverse()).map(function(H){return x1(H.token)}).join(" -> ")+")":""};
Yvg=function(f,H,v,t){if(t){var M=Error("We``"+(t instanceof Error?t.message:t));M.ngOriginalError=t}else M=Error();M.addKey=ykB;M.keys=[H];M.injectors=[f];M.constructResolvingMessage=v;M.message=M.constructResolvingMessage();M.ngOriginalError=t;return M};
ykB=function(f,H){this.injectors.push(f);this.keys.push(H);this.message=this.constructResolvingMessage()};
m73=function(f,H){return Yvg(f,H,function(){return"No provider for "+x1(this.keys[0].token)+"!"+Vdg(this.keys)})};
$7r=function(f,H){return Yvg(f,H,function(){return"Cannot instantiate cyclic dependency!"+Vdg(this.keys)})};
W6g=function(f,H,v){return Yvg(f,v,function(){var t=x1(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+t+"!"+Vdg(this.keys)+"."},H)};
OZR=function(f,H){for(var v=[],t=0,M=H.length;t<M;t++){var h=H[t];h&&h.length!=0?v.push(h.map(x1).join(" ")):v.push("?")}return Error("$e`"+x1(f)+"`"+v.join(", ")+"`"+x1(f))};
ZZB=function(f){var H=void 0,v=void 0;if(f&&f.useClass!==void 0){H=f.useClass;var t=B7(f.useClass);var M=gJ_.factory(t);t=IYN(t)}else f&&f.useExisting!==void 0?(M=function(h){return h},t=[SvR(zP.get(B7(f.useExisting)))]):f&&f.useFactory!==void 0?(M=f.useFactory,t=d7H(f.useFactory,f.deps)):(v=f.useValue,M=function(){return f.useValue},t=jvT);
return new svv(M,t,H,v)};
lYe=function(f){return new Jk3(zP.get(B7(f.provide)),[ZZB(f)],f.multi)};
eQR=function(f){f=U7s(f,[]).map(lYe);for(var H=new Map,v=0;v<f.length;v++){var t=f[v],M=H.get(t.key.id);if(M){if(t.multiProvider!==M.multiProvider)throw Error("bf`"+M+"`"+t);if(t.multiProvider)for(var h=0;h<t.resolvedFactories.length;h++)M.resolvedFactories.push(t.resolvedFactories[h]);else H.set(t.key.id,t)}else M=void 0,t.multiProvider?M=new Jk3(t.key,t.resolvedFactories.slice(),t.multiProvider):M=t,H.set(t.key.id,M)}return Array.from(H.values())};
U7s=function(f,H){f.forEach(function(v){if(v instanceof L6T)H.push({provide:v,useClass:v});else if(v&&typeof v=="object"&&v.provide!==void 0)H.push(v);else if(v instanceof Array)U7s(v,H);else throw Error("Ze`"+v);});
return H};
d7H=function(f,H){if(H){var v=H.map(function(t){return[t]});
return H.map(function(t){return x7g(f,t,v)})}return IYN(f)};
IYN=function(f){var H=gJ_.parameters(f);if(!H)return[];if(H.some(function(v){return v==null}))throw OZR(f,H);
return H.map(function(v){return x7g(f,v,H)})};
x7g=function(f,H,v){var t=null,M=!1;if(!Array.isArray(H))return H instanceof BK3?zQs(H.token,M,null):zQs(H,M,null);for(var h=null,y=0;y<H.length;++y){var m=H[y];if(m instanceof L6T)t=m;else if(m instanceof BK3)t=m.token;else if(m instanceof F6e)M=!0;else if(m instanceof rkR||m instanceof K6e)h=m}t=B7(t);if(t!=null)return zQs(t,M,h);throw OZR(f,v);};
zQs=function(f,H,v){return new D7r(zP.get(B7(f)),H,v)};
oJE=function(f,H){for(var v=Array(f.providers.length),t=0;t<f.providers.length;++t){var M=t;if(t<0||t>=f.providers.length)throw Error("af`"+t);v[M]=H(f.providers[t])}return v};
nJN=function(f){return typeof f==="function"&&gJ_.parameters(f).every(function(H){return!!H})};
u4b=function(f){var H=pCb;QvN.get(f)||QvN.set(f,new H);return QvN.get(f)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(f){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(f)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(f){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(f)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(f,H){var v,t;if(f.contains(H))return!0;f=_.Fj(f).querySelectorAll("content,slot");for(v=0;v<f.length;++v){var M=_.Fj(f[v]).getDistributedNodes();for(t=0;t<M.length;++t)if(M[t].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(M[t],H))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(f){f.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(f)&&f.preventDefault();f.targetTouches&&(f=f.targetTouches[0],aYH=f.pageX,PNE=f.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 f=0,H=rI.length;f<H;f++)document.addEventListener(rI[f],_._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 f=0,H=rI.length;f<H;f++)document.removeEventListener(rI[f],_._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(f){var H=_.Fj(f).rootTarget;f.type!=="touchmove"&&GMg!==H&&(GMg=H,CNH=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.Fj(f).path));if(!CNH.length)return!0;if(f.type==="touchstart")return!1;f=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(f);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(CNH,f.deltaX,f.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(f){for(var H=[],v=f.indexOf(EJT),t=0;t<=v;t++)if(f[t].nodeType===Node.ELEMENT_NODE){var M=f[t],h=M.style;h.overflow!=="scroll"&&h.overflow!=="auto"&&(h=window.getComputedStyle(M));h.overflow!=="scroll"&&h.overflow!=="auto"||H.push(M)}return H};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(f,H,v){if(H||v)for(var t=Math.abs(v)>=Math.abs(H),M=0;M<f.length;M++){var h=f[M];if(t?v<0?h.scrollTop>0:h.scrollTop<h.scrollHeight-h.clientHeight:H<0?h.scrollLeft>0:h.scrollLeft<h.scrollWidth-h.clientWidth)return h}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(f){var H={deltaX:f.deltaX,deltaY:f.deltaY};"deltaX"in f||("wheelDeltaX"in f&&"wheelDeltaY"in f?(H.deltaX=-f.wheelDeltaX,H.deltaY=-f.wheelDeltaY):"wheelDelta"in f?(H.deltaX=0,H.deltaY=-f.wheelDelta):"axis"in f?(H.deltaX=f.axis===1?f.detail:0,H.deltaY=f.axis===2?f.detail:0):f.targetTouches&&(f=f.targetTouches[0],H.deltaX=aYH-f.pageX,H.deltaY=PNE-f.pageY));return H};
NKH=function(f){this.element=f;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
XCs=function(f){this.element=f;this.color=window.getComputedStyle(f).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");_.Fj(this.waveContainer).appendChild(this.wave);ckR(this)};
KP=function(f,H){for(var v in f)if(v.toLowerCase()===H.toLowerCase())return f[v]};
AkT=function(f,H){for(var v in f)if(v.toLowerCase()===H.toLowerCase()){delete f[v];break}};
iZH=function(f){f=_.QA.clone(f);for(var H=0;H<bZ5.length;++H){var v=bZ5[H],t=KP(f,v);t&&(f["X-Goog-Upload-Header-"+v]=t,AkT(f,v))}return f};
kMT=function(f){f=_.QA.clone(f);AkT(f,"X-Goog-Upload-Status")};
wCN=function(f){return TK5.some(function(H){return H.test(f)})};
v4H=function(f,H){var v;var t=(v=f.formContent)==null?void 0:v.locale;v=t==null?void 0:t.split("-")[0];t=t&&qv3.includes(t)?t:v&&qv3.includes(v)?v:void 0;t=(t!=null?t:"en").replaceAll("-","_").toLowerCase();var M;f=((M=f.initializationData)==null?0:M.useNightlyRelease)?"nightly":"live";var h;return(H==null?0:(h=H.getEnableAlohaBinarySplit)==null?0:h.call(H))?_.gr(fBE,f):_.gr(HRB,f,t)};
hzR=function(f,H,v,t){if(txR&&Mxs===H)return txR;Mxs=H;var M=v4H(f,t);return txR=H.feedbackV2GlobalObject?Promise.resolve(H.feedbackV2GlobalObject):new Promise(function(h,y){var m=_.lS("SCRIPT");_.tf(m,M);m.onload=function(){H.feedbackV2GlobalObject?h(H.feedbackV2GlobalObject):y(Error("ef"))};
m.onerror=function(){y(Error("ff`"+M.toString()))};
v.body.appendChild(m)})};
yA_=function(f,H,v,t){if(Rz5&&Vxb===H)return Rz5;Vxb=H;var M=v4H(f,t);return Rz5=H.feedbackV2GlobalObject?Promise.resolve(H.feedbackV2GlobalObject):new Promise(function(h,y){var m=_.lS("SCRIPT");_.tf(m,M);m.onload=function(){H.feedbackV2GlobalObject?h(H.feedbackV2GlobalObject):y(Error("ef"))};
m.onerror=function(){y(Error("ff`"+M.toString()))};
v.body.appendChild(m)})};
YTE=function(f,H,v,t,M){M=M===void 0?!0:M;var h,y,m,W,I;return _.Y(function(S){switch(S.nextAddress){case 1:return h=Date.now(),S.yield(hzR(f,v,t,H),2);case 2:y=S.yieldResult;if(!(M||((W=f.initializationData)==null?0:W.useNightlyRelease)||((I=f.initializationData)==null?0:I.isLocalServer))){m=y.initializeFeedbackClient(f,h,H);S.jumpTo(3);break}return S.yield(y.initializeFeedbackClientAsync(f,h,H),4);case 4:m=S.yieldResult;case 3:return m.initiateAloha(),S.return(m)}})};
mge=function(f,H,v,t){var M,h,y;return _.Y(function(m){if(m.nextAddress==1)return M=Date.now(),m.yield(yA_(f,v,t.document,H),2);if(m.nextAddress!=3)return h=m.yieldResult,m.yield(h.initializeFeedbackClientAsync(f,M,H,t),3);y=m.yieldResult;y.initiateAloha();return m.return(y)})};
$g3=function(f,H,v){var t=!0;t=t===void 0?!0:t;var M,h,y,m,W,I,S,d,Z,l;return _.Y(function(L){M=v||_.Mr;if((h=H)==null?0:(m=(y=h).getEnableAlohaBinarySplit)==null?0:m.call(y)){W=M;if(W.isFormOpened)throw I=Error("gf"),I.name="DuplicateFormError",I;W.isFormOpened=!0;f.callbacks=f.callbacks||{};S=f.callbacks.onClose||function(){};
f.callbacks.onClose=function(r){W.isFormOpened=!1;S(r)};
try{return L.return(mge(f,H,W,M))}catch(r){throw W.isFormOpened=!1,r;}}else{d=M;if(d.isFormOpened)throw Z=Error("gf"),Z.name="DuplicateFormError",Z;d.isFormOpened=!0;f.callbacks=f.callbacks||{};l=f.callbacks.onClose||function(){};
f.callbacks.onClose=function(r){d.isFormOpened=!1;l(r)};
try{return L.return(YTE(f,H,d,M.document,t))}catch(r){throw d.isFormOpened=!1,r;}}_.Bj(L)})};
STB=function(f,H){return _.Y(function(v){return v.return(new Promise(function(t){var M=WcB(H!=null?H:"")+"/aloha_form_properties?productId="+f;ORE(M,function(h){h=h.target;var y=null;try{var m=JSON,W=m.stringify;if(h.JSC$9787_xhr_){var I=h.JSC$9787_xhr_.responseText;I.indexOf(")]}'\n")==0&&(I=I.substring(5));var S=(0,_.DF)(I)}else S=void 0;y=nU5(g4R,W.call(m,S))}catch(d){W=new g4R,S=IBr(),S=_.oW(S,13,!1),S=_.oW(S,14,!0),S=_.oW(S,15,!0),S=_.oW(S,20,!1),y=_.eV(W,1,S)}t(y)},"GET","",{},2E3,!0)}))})};
WcB=function(f){return wCN(f)?f:"https://www.google.com/tools/feedback"};
ZRH=function(f){f=f.match(new RegExp(dg5,"gi"))||[];f=_.V(f);for(var H=f.next();!H.done;H=f.next()){H=H.value;a:{var v=_.V(jQb);for(var t=v.next();!t.done;t=v.next())if(t.value.test(H)){v=!1;break a}v=!0}if(!v)a:{v=_.V(sQT);for(t=v.next();!t.done;t=v.next())if(t.value.test(H)){v=!0;break a}v=!1}if(v)return!0}return!1};
JA5=function(f,H){var v={},t=Object.keys(f);t=_.V(t);for(var M=t.next();!M.done;M=t.next())M=M.value,v[M]=H(M,f[M]);return v};
lBB=function(f){switch(f){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"}};
ez5=function(f){if(window.crypto&&window.crypto.getRandomValues)try{var H=Array(f),v=new Uint8Array(f);window.crypto.getRandomValues(v);for(var t=0;t<H.length;t++)H[t]=v[t];return H}catch(h){}H=Array(f);for(v=0;v<f;v++){t=Date.now();for(var M=0;M<t%23;M++)H[v]=Math.random();H[v]=Math.floor(Math.random()*256)}if(Ugv)for(v=1,t=0;t<Ugv.length;t++)H[v%f]^=H[(v-1)%f]/4^Ugv.charCodeAt(t),v++;return H};
nP=function(f){f=ez5(f);for(var H=[],v=0;v<f.length;v++)H.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(f[v]&63));return H.join("")};
Lcg=function(){var f=_.Mr.ytLoggingDocDocumentNonce_;f||(f=nP(16),_.qJ("ytLoggingDocDocumentNonce_",f));return f};
B_3=function(f){f&&_.Kb("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:xgR,clientScreenNonce:f})};
zzN=function(f){return _.a8("client-screen-nonce-store",{})[f===void 0?0:f]};
Fcb=function(f,H){H=H===void 0?0:H;var v=_.a8("client-screen-nonce-store");v||(v={},_.pc("client-screen-nonce-store",v));v[H]=f};
rAb=function(f){f=f===void 0?0:f;return f===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+f};
Kce=function(f){return _.a8(rAb(f===void 0?0:f))};
_.Qe=function(f){return(f=Kce(f===void 0?0:f))?new pP({veType:f,youtubeData:void 0,jspbYoutubeData:void 0}):null};
Dg3=function(){var f=_.a8("csn-to-ctt-auth-info");f||(f={},_.pc("csn-to-ctt-auth-info",f));return f};
o4s=function(){return Object.values(_.a8("client-screen-nonce-store",{})).filter(function(f){return f!==void 0})};
_.uy=function(f){f=zzN(f===void 0?0:f);if(!f&&!_.P6("USE_CSN_FALLBACK",!0))return null;f||(f="UNDEFINED_CSN");return f?f:null};
pDR=function(f){for(var H=_.V(Object.values(n4g)),v=H.next();!v.done;v=H.next())if(_.uy(v.value)===f)return!0;return!1};
QQN=function(f,H,v){var t=Dg3();(v=_.uy(v))&&delete t[v];H&&(t[f]=H)};
aW=function(f){return Dg3()[f]};
_.P7=function(f,H,v,t){v=v===void 0?0:v;if(f!==zzN(v)||H!==_.a8(rAb(v)))if(QQN(f,t,v),Fcb(f,v),_.pc(rAb(v),H),H=function(){setTimeout(function(){B_3(f)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(H)}catch(M){H()}else H()};
uQe=function(f,H){H=H===void 0?"":H;var v=[],t;for(t in f)if(f.hasOwnProperty(t)){var M=H!==""?H+"."+t:t;typeof f[t]==="object"?v.push.apply(v,_.pS(uQe(f[t],M))):v.push([M,f[t]])}v.sort();return v};
_.CP=function(f){var H=_.NA.apply(1,arguments);if(!GP(f)||H.some(function(t){return!GP(t)}))throw Error("hf");
H=_.V(H);for(var v=H.next();!v.done;v=H.next())aBs(f,v.value)};
aBs=function(f,H){for(var v in H)if(GP(H[v])){if(v in f&&!GP(f[v]))throw Error("jf");v in f||(f[v]={});aBs(f[v],H[v])}else if(PbE(H[v])){if(v in f&&!PbE(f[v]))throw Error("kf");v in f||(f[v]=[]);GCv(f[v],H[v])}else f[v]=H[v];return f};
GCv=function(f,H){H=_.V(H);for(var v=H.next();!v.done;v=H.next())v=v.value,GP(v)?f.push(aBs({},v)):PbE(v)?f.push(GCv([],v)):f.push(v);return f};
GP=function(f){return typeof f==="object"&&!Array.isArray(f)};
PbE=function(f){return typeof f==="object"&&Array.isArray(f)};
E4b=function(f){for(var H=_.V(Object.entries(Cbg)),v=H.next();!v.done;v=H.next())if(v=_.V(v.value),v.next(),v=v.next().value,v==="SLI_STATUS_"+f)return v;return"SLI_STATUS_UNKNOWN"};
_.Ee=function(f,H,v,t){return N_e(f,H,function(){return new _.cAE(f,H,v,t)})};
_.XDr=function(){return _.Ee("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
AAs=function(){return _.Ee("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
NC=function(){return _.Ee("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
bR5=function(){return _.Ee("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
iRR=function(){return _.Ee("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
kCH=function(){return _.Ee("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
qTs=function(f){f&&(f.dataset?f.dataset[T_3()]="true":_.hf([_.YO(wDr)],f,"data-loaded","true".toString()))};
fNv=function(f){return f?f.dataset?f.dataset[T_3()]:f.getAttribute("data-loaded"):null};
T_3=function(){return HKN.loaded||(HKN.loaded="loaded".replace(/\-([a-z])/g,function(f,H){return H.toUpperCase()}))};
_.c7=function(f,H,v){vav(f,H,v===void 0?null:v)};
_.Mh3=function(f,H){f&&H&&(f=""+_.h9(H),(f=thT[f])&&_.kKH(f))};
vav=function(f,H,v){v=v===void 0?null:v;var t=_.hu5(typeof f==="string"?f:f.toString()),M=document.getElementById(t),h=M&&fNv(M),y=M&&!h;h?H&&H():(H&&(h=_.YF(t,H),H=""+_.h9(H),thT[H]=h),y||(M=Rug(f,t,function(){fNv(M)||(qTs(M),_.T95(t),_.$Z(function(){_.qVR(t)},0))},v)))};
Rug=function(f,H,v,t){t=t===void 0?null:t;var M=_.lS("SCRIPT");M.id=H;M.onload=function(){v&&setTimeout(v,0)};
M.onreadystatechange=function(){switch(M.readyState){case "loaded":case "complete":M.onload()}};
t&&M.setAttribute("nonce",t);_.tf(M,typeof f==="string"?_.K9(f):f);f=document.getElementsByTagName("head")[0]||document.body;f.insertBefore(M,f.firstChild);return M};
_.hu5=function(f){var H=document.createElement("a");AD(H,f);return"js-"+Xj(H.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
VhE=function(f){var H=_.a8("INNERTUBE_HOST_OVERRIDE");H&&(f=String(H)+String(_.Ag(f)));return f};
yq_=function(f){var H={};_.J("json_condensed_response")&&(H.prettyPrint="false");return f=srv(f,H)};
_.by=function(f){return fl(f)?"same-origin":"include"};
_.iy=function(f){return fl(f)?"same-origin":"cors"};
k1=function(f,H,v){v=v===void 0?{}:v;f={method:H===void 0?"POST":H,mode:_.iy(f),credentials:_.by(f)};H={};for(var t=_.V(Object.keys(v)),M=t.next();!M.done;M=t.next())M=M.value,v[M]&&(H[M]=v[M]);Object.keys(H).length>0&&(f.headers=H);return f};
_.TP=function(f,H){H=H===void 0?{}:H;return"service:"+f+"/"+Object.keys(H).sort().map(function(v){return v+":"+H[v]}).join("/")};
Y33=function(f){var H,v,t,M;f=(H=_.U(f,_.wI))==null?void 0:(v=H.watchEndpointSupportedOnesieConfig)==null?void 0:(t=v.html5PlaybackOnesieConfig)==null?void 0:(M=t.commonConfig)==null?void 0:M.url;if(!f)return[];H=new _.qC(f);return H.JSC$10022_domain_?["https://"+H.JSC$10022_domain_+"/generate_204"]:[]};
_.WAb=function(){return mLv()||LOE()||$L3&&pl("version/")?!0:_.a8("EOM_VISITOR_DATA")?!1:!0};
OKg=function(f){var H=f.docid||f.video_id||f.videoId||f.id;if(H)return H;H=f.raw_player_response;H||(f=f.player_response)&&(H=JSON.parse(f));return H&&H.videoDetails&&H.videoDetails.videoId||null};
gav=function(f){return f.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
fQ=function(f){return!isNaN(Number(f))&&!_.ms(f)};
_.vV=function(f,H,v,t){t=t===void 0?!0:t;var M=_.a8("VALID_SESSION_TEMPDATA_DOMAINS",[]),h=_.wu(window.location.href);h&&M.push(h);h=_.wu(f);if(_.cR(M,h)||!h&&_.VR(f,"/"))if(M=document.createElement("a"),AD(M,f),f=M.href)if(f=_.Ag(f),f=_.HV(f))t&&!H.csn&&(H.itct||H.ved)&&(H=Object.assign({csn:_.uy()},H)),v?(v=parseInt(v,10),isFinite(v)&&v>0&&INs(f,H,v)):INs(f,H)};
dLN=function(f){var H=_.a8("VALID_SESSION_TEMPDATA_DOMAINS",[]),v=_.wu(window.location.href);v&&H.push(v);v=_.wu(f);if(!(_.cR(H,v)||!v&&_.VR(f,"/")))return null;f=_.Ag(f);(f=_.HV(f))?(f=S3_(f),f=(f=_.sk.get(f,void 0)||null)?_.Ar(f):{}):f=null;return f};
INs=function(f,H,v){f=S3_(f);H=H?_.S$(H):"";v=v||5;_.WAb()&&_.Zy(f,H,v)};
S3_=function(f){for(var H=_.V(jEg),v=H.next();!v.done;v=H.next())f=_.tX(f,v.value);return"ST-"+Xj(f).toString(36)};
_.sER=function(f){if(f.requestFullscreen)f=f.requestFullscreen(void 0);else if(f.webkitRequestFullscreen)f=f.webkitRequestFullscreen();else if(f.mozRequestFullScreen)f=f.mozRequestFullScreen();else if(f.msRequestFullscreen)f=f.msRequestFullscreen();else if(f.webkitEnterFullscreen)f=f.webkitEnterFullscreen();else return Promise.reject(Error("tf"));return f instanceof Promise?f:Promise.resolve()};
_.Rr=function(f){var H;_.uAg(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.M6()==f&&(H=document):H=f;if(H&&(f=_.uAg(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],H))){f.call(H)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.M6=function(){var f=f===void 0?!1:f;var H=_.uAg(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(f)for(;H&&H.shadowRoot;)H=H.shadowRoot.fullscreenElement;return H?H:null};
_.VZ=function(f,H){H=H===void 0?!0:H;f.addEventListener("wheel",ZKR);f.overscrollConfig={cooldown:H}};
_.yZ=function(f){f.overscrollConfig=void 0;f.removeEventListener("wheel",ZKR)};
ZKR=function(f){var H=f.deltaY,v=f.target,t=null;if(window.Polymer&&window.Polymer.Element){if(v=f.path||f.composedPath&&f.composedPath()){v=_.V(v);for(var M=v.next();!M.done&&(M=M.value,!JqR(M,H));M=v.next())if(M.overscrollConfig){t=M;break}}}else for(;v&&!JqR(v,H);){if(v.overscrollConfig){t=v;break}v=v.parentElement}t&&(H=t.overscrollConfig,H.cooldown?(t=f.deltaY,v=H.lastDeltaY||0,H.lastDeltaY=t,M=H.lastStopped||0,v&&M&&v>0==t>0?Math.abs(v)>=Math.abs(t)?(t=M+1200,v=!1):(t=M+600,v=!0):(t=Date.now()+
600,v=!0),t>Date.now()&&(f.preventDefault(),v&&(H.lastStopped=Date.now()))):f.preventDefault())};
JqR=function(f,H){return H<0&&f.scrollTop>0||H>0&&f.scrollTop<f.scrollHeight-f.clientHeight-1?(f=getComputedStyle(f).overflowY,f=="auto"||f=="scroll"):!1};
_.YE=function(f,H,v,t){t||(t={bubbles:!0,cancelable:!1,composed:!0});v!==null&&v!==void 0&&(t.detail=v);var M=new CustomEvent(H,t);_.J("untrack_fire_custom_event_killswitch")?f.dispatchEvent(M):Og(function(){return void f.dispatchEvent(M)});
return M};
lNH=function(f){var H=window,v=function(t){H.removeEventListener("yt-navigate-start",v);return f.call(H,t)};
H.addEventListener("yt-navigate-start",v,void 0)};
_.mb=function(f,H,v,t){H=new ULv(H,!(t===void 0||!t),v);_.YE(f,"yt-action",H);return H.returnValue};
_.$E=function(f,H,v){return _.mb(f,H,v,!0)};
_.Oj=function(f,H,v,t){H&&H.length&&H.forEach(function(M){var h=n$T(M);h&&(_.J("handle_service_request_actions")&&M.commandMetadata&&M.commandMetadata.webCommandMetadata&&M.commandMetadata.webCommandMetadata.sendPost?_.WV(v?v:f,[M]):_.$E(f,h,[M,v,t]))})};
_.WV=function(f,H){var v=[f];H&&v.push.apply(v,H);H=_.mb(f,"yt-service-request",v);return H.length>0&&(H=H[0],_.YE(f,"yt-service-request-sent",H),H&&H.ajaxPromise)?(H.ajaxPromise.then(function(t){_.YE(f,"yt-service-request-completed",t)},function(t){_.YE(f,"yt-service-request-error",{error:t,
params:v})},f),H.ajaxPromise):_.gj()};
_.SG=function(f,H){if(_.J("handle_service_request_actions"))_.Oj(H,f,H);else{f=_.V(f);for(var v=f.next();!v.done;v=f.next()){v=v.value;var t=void 0;((t=_.U(v,_.Ir))==null?0:t.commands)?_.SG(_.U(v,_.Ir).commands,H):(t=void 0,((t=_.U(v,_.dj))==null?0:t.actions)?_.SG(_.U(v,_.dj).actions,H):(t=void 0,((t=_.U(v.commandMetadata,_.jG))==null?0:t.sendPost)?_.WV(H,[v]):_.Oj(H,[v],H)))}}};
_.LAR=function(f,H,v){H=H===void 0?{}:H;typeof H==="function"&&(H={callback:H});v||H._c&&H._c.jsl&&H._c.jsl.h||_.QA.extend(H,{_c:{jsl:{h:_.a8("GAPI_HINT_PARAMS")}}});(H.gapiHintOverride||_.a8("GAPI_HINT_OVERRIDE"))&&(v=_.bZ(document.location.href).gapi_jsh)&&_.QA.extend(H,{_c:{jsl:{h:v}}});euv(f,H)};
_.ZC=function(f,H,v){H=H===void 0?{}:H;f=(f=f in sj?sj[f]:v)||"";v={};for(var t in H){v={key$jscomp$836:v.key$jscomp$836};v.key$jscomp$836=t;var M=function(h){return function(){return String(H[h.key$jscomp$836])}}(v);
f=f.replace(new RegExp("\\$\\{"+v.key$jscomp$836+"\\}","gi"),M);f=f.replace(new RegExp("\\$"+v.key$jscomp$836,"gi"),M)}return f};
_.JX=function(f,H){return xLg(f in sj?sj[f]:{},H)};
xLg=function(f,H){var v=_.a8("I18N_PLURAL_RULES");v||(v=function(t){return t==1?"one":"other"});
return(f=f["case"+H]||f[v(H)])?f.replace("#",H.toString()):H+""};
FA5=function(f){var H=BgB(f),v=document.getElementById(H),t=v&&fNv(v);t||v&&!t||(v=zuH(f,H,function(){if(!fNv(v)){qTs(v);_.T95(H);var M=_.l0(_.qVR,H);_.$Z(M,0)}}))};
zuH=function(f,H,v){var t=document.createElement("link");t.id=H;t.onload=function(){v&&setTimeout(v,0)};
f=_.K9(f);_.V1(t,f,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(t);return t};
BgB=function(f){var H=_.lS("A");AD(H,no(f));return"css-"+Xj(H.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.KAr=function(f){var H=rqR();f!==H&&(H=_.Uj(),!_.J("web_autonav_allow_off_by_default")&&f||_.eG(0,141,!0),_.eG(0,140,!f),H.save())};
rqR=function(){var f=_.Uj();return _.J("web_autonav_allow_off_by_default")&&!f.getFlag(141)&&_.a8("AUTONAV_OFF_BY_DEFAULT")?!1:!f.getFlag(140)};
DLb=function(f,H){var v,t;f=((v=f.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(t=v.videoAuthorizationToken)==null?void 0:t.credentialTransferTokens)||[];for(v=0;v<f.length;++v)if(f[v].scope===H)return f[v].token||void 0};
oag=function(f){for(var H=0,v=0;v<f.length;v++)H=H*31+f.charCodeAt(v),v<f.length-1&&(H%=0x800000000000);return H%1E5};
_.LQ=function(f){return _.ES("ytcsi."+(f||"")+"data_")||naR(f)};
_.ptv=function(f){f=_.LQ(f);f.metadata||(f.metadata={});return f.metadata};
_.QE5=function(f){f=_.LQ(f);f.tick||(f.tick={});return f.tick};
_.xE=function(f){f=_.LQ(f);if(f.gel){var H=f.gel;H.gelInfos||(H.gelInfos={});H.gelTicks||(H.gelTicks={})}else f.gel={gelTicks:{},gelInfos:{}};return f.gel};
_.uDH=function(f){f=_.xE(f);f.gelInfos||(f.gelInfos={});return f.gelInfos};
aNR=function(f){var H=_.LQ(f).nonce;H||(H=nP(16),_.LQ(f).nonce=H);return H};
naR=function(f){var H={tick:{},info:{}};_.qJ("ytcsi."+(f||"")+"data_",H);return H};
PeT=function(){var f=_.ES("ytcsi.debug");f||(f=[],_.qJ("ytcsi.debug",f),_.qJ("ytcsi.reference",{}));return f};
_.BV=function(f){f=f||"";var H=GsE();if(H[f])return H[f];var v=PeT(),t={timerName:f,info:{},tick:{},span:{},jspbInfo:[]};v.push(t);return H[f]=t};
CeE=function(f){f=f||"";var H=GsE();H[f]&&delete H[f];var v=PeT(),t={timerName:f,info:{},tick:{},span:{},jspbInfo:[]};v.push(t);H[f]=t};
GsE=function(){var f=_.ES("ytcsi.reference");if(f)return f;PeT();return _.ES("ytcsi.reference")};
_.Ng5=function(f){return Eag[f]||"LATENCY_ACTION_UNKNOWN"};
bKR=function(f,H,v){v=v===void 0?{}:v;var t=!1;_.P6("ytLoggingEventsDefaultDisabled",!1)&&(t=!0);t=t?null:r8;v=v===void 0?{}:v;var M=Math.round(v.timestamp||(0,_.ta)());_.UP(H,1,M<Number.MAX_SAFE_INTEGER?M:0);M=new cqH;if(v.lact)_.UP(M,1,isFinite(v.lact)?v.lact:-1);else if(v.timestamp)_.UP(M,1,-1);else{var h=_.h7();_.UP(M,1,isFinite(h)?h:-1)}if(v.sequenceGroup&&!_.J("web_gel_sequence_info_killswitch")){h=v.sequenceGroup;var y=yjR(h),m=new XtE;_.UP(m,2,y);_.rr(m,1,h);_.eV(M,3,m);v.endOfSequence&&delete Aq_[v.sequenceGroup]}_.eV(H,
33,M);(v.sendIsolatedPayload?IET:SRg)(f,{endpoint:"log_event",payload:H,cttAuthInfo:v.cttAuthInfo,dangerousLogToVisitorSession:v.dangerousLogToVisitorSession},t)};
_.Fl=function(){return(_.J("csi_use_time_origin")||_.J("csi_use_time_origin_tvhtml5"))&&_.zi.timeOrigin?Math.floor(_.zi.timeOrigin):_.zi.timing.navigationStart};
_.iKE=function(f,H){_.rj("_start",f,H)};
_.KQ=function(f,H){if(!_.J("web_csi_action_sampling_enabled")||!_.LQ(H).actionDisabled){var v=_.BV(H||"");_.CP(v.info,f);f.loadType&&(v=f.loadType,_.ptv(H).loadType=v);_.CP(_.uDH(H),f);v=aNR(H);H=_.LQ(H).cttAuthInfo;ksr().info(f,v,H)}};
TgN=function(){var f,H,v,t;return((t=_.t8().resolve(_.vh(xF))==null?void 0:(f=Bk())==null?void 0:(H=f.loggingHotConfig)==null?void 0:(v=H.csiConfig)==null?void 0:v.debugTicks)!=null?t:[]).map(function(M){return Object.values(M)[0]})};
_.rj=function(f,H,v){if(!_.J("web_csi_action_sampling_enabled")||!_.LQ(v).actionDisabled){var t=aNR(v),M;if(M=_.J("web_csi_debug_sample_enabled")&&t){(_.t8().resolve(_.vh(xF))==null?0:Bk())&&!wtb&&(wtb=!0,_.rj("gcfl",(0,_.ta)(),v));var h,y,m;M=(_.t8().resolve(_.vh(xF))==null?void 0:(h=Bk())==null?void 0:(y=h.loggingHotConfig)==null?void 0:(m=y.csiConfig)==null?void 0:m.debugSampleWeight)||0;if(h=M!==0)b:{h=TgN();if(h.length>0)for(y=0;y<h.length;y++)if(f===h[y]){h=!0;break b}h=!1}h?(M=oag(t)%M!==0,
_.LQ(v).debugTicksExcludedLogged||(h={},h.debugTicksExcluded=M,_.KQ(h,v)),_.LQ(v).debugTicksExcludedLogged=!0):M=!1}if(!M){f[0]!=="_"&&q3R(f,v,H);M=_.BV(v||"");M.tick[f]=H||(0,_.ta)();if(M.callback&&M.callback[f])for(M=_.V(M.callback[f]),h=M.next();!h.done;h=M.next())h=h.value,h();M=_.xE(v);M.gelTicks&&(M.gelTicks[f]=!0);h=_.QE5(v);M=H||(0,_.ta)();_.J("log_repeated_ytcsi_ticks")?f in h||(h[f]=M):h[f]=M;h=_.LQ(v).cttAuthInfo;f==="_start"?ksr().baseline(t,H,h):ksr().tick(f,t,H,h);_.f6e(v);return M}}};
q3R=function(f,H,v){if(_.zi.mark)if(f.startsWith("mark_")||(f="mark_"+f),H&&(f+=" ("+H+")"),v===void 0||_.J("web_csi_disable_alt_time_performance_mark"))_.zi.mark(f);else{v=_.J("csi_use_performance_navigation_timing")?v-_.zi.timeOrigin:v-(_.zi.timeOrigin||_.zi.timing.navigationStart);try{_.zi.mark(f,{startTime:v})}catch(t){}}};
H33=function(){var f,H=(f=_.zi.getEntriesByType)==null?void 0:f.call(_.zi,"mark");H&&H.forEach(function(v){if(v.name.startsWith("mark_")){var t;(t=_.zi.clearMarks)==null||t.call(_.zi,v.name)}})};
_.v3N=function(){switch(QuR()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.tHe=function(f){var H={},v=function(h,y,m){y=y.match("_rid")?y.split("_rid")[0]:y;typeof m==="number"&&(m=JSON.stringify(m));h.requestIds?h.requestIds.push({endpoint:y,id:m}):h.requestIds=[{endpoint:y,id:m}]};
f=_.V(Object.entries(f));for(var t=f.next();!t.done;t=f.next()){var M=_.V(t.value);t=M.next().value;M=M.next().value;switch(t){case "GetBrowse_rid":v(H,t,M);break;case "GetGuide_rid":v(H,t,M);break;case "GetHome_rid":v(H,t,M);break;case "GetPlayer_rid":v(H,t,M);break;case "GetSearch_rid":v(H,t,M);break;case "GetSettings_rid":v(H,t,M);break;case "GetTrending_rid":v(H,t,M);break;case "GetWatchNext_rid":v(H,t,M);break;case "yt_red":H.isRedSubscriber=!!M;break;case "yt_ad":H.isMonetized=!!M}}return H};
hRR=function(f,H,v,t,M,h){if(!_.J("web_csi_action_sampling_enabled")||!_.LQ(h).actionDisabled){var y=_.xE(h);if(y.gelSpans)y.gelSpans[f]=!0;else{var m={};y.gelSpans=(m[f]=!0,m)}MHR++;f={spanName:f,spanLengthUsec:String(Math.round(H*1E3)),spanNonce:MHR};t&&(f.spanInfo=t);M&&(f.parentSpanNonce=M);v&&(f.spanStartTimeUsec=String(Math.round(v*1E3)));_.BV(h||"").span[String(f.spanName)]=f;v=_.xE(h);v.gelSpans||(v.gelSpans={});_.CP(v.gelSpans,f);v=aNR(h);h=_.LQ(h).cttAuthInfo;ksr().span(f,v,h);return f.spanNonce}};
_.RRB=function(f){var H=_.DC("aft",f);if(H)return H;H=_.a8((f||"")+"TIMING_AFT_KEYS",["ol"]);for(var v=H.length,t=0;t<v;t++){var M=_.DC(H[t],f);if(M)return M}return NaN};
_.VHH=function(f,H){_.qJ("ytglobal.timing"+(H||"")+"ready_",f)};
_.DC=function(f,H){if(f=_.QE5(H)[f])return typeof f==="number"?f:f[f.length-1]};
_.f6e=function(f){var H=_.DC("_start",f),v=_.RRB(f),t=!yHB;H&&v&&t&&(mu3(Y8v,new m_N(Math.round(v-H),f)),yHB=!0)};
W4E=function(f){naR(f);$_T();H33();f||(_.a8("TIMING_ACTION")&&_.pc("PREVIOUS_ACTION",_.a8("TIMING_ACTION")),_.pc("TIMING_ACTION",""))};
_.O3T=function(f){f=f===void 0?{}:f;_.Cc(function(){or();CeE();W4E();_.VHH(!1);f.cttAuthInfo&&(_.LQ().cttAuthInfo=f.cttAuthInfo);_.pc("TIMING_AFT_KEYS",[]);f.isHot?_.nQ({loadType:"hot"}):_.nQ({loadType:"warm"});_.pc("TIMING_ACTION","");delete _.a8("TIMING_INFO",{}).yt_lt;_.Cc(_.iKE)(f.startTime,void 0)})()};
_.QZ=function(f,H,v,t){H=H===void 0?{}:H;_.Cc(function(){var M=v?v:f;pQ(M);var h=H.sampleRate;if(!_.J("web_csi_action_sampling_enabled")||h===void 0||h<=1)h=!1;else{var y=aNR(M);h=oag(y)%h!==0}h&&(_.LQ(M).actionDisabled=!0);_.BV(M||"").info.actionType=f;H.cttAuthInfo&&(_.LQ(M).cttAuthInfo=H.cttAuthInfo);_.pc(M+"TIMING_ACTION",f);_.Cc(_.iKE)(H.startTime,M);h={actionType:t||_.Ng5(f)};H.logPreviousAction&&(h.previousAction=_.Ng5(_.a8("TIMING_ACTION")));(y=_.uy())&&y!=="UNDEFINED_CSN"&&(h.clientScreenNonce=
y);_.nQ(h,M);_.VHH(!0,M)})()};
pQ=function(f){_.Cc(function(){or(f);CeE(f);W4E(f)})()};
g3E=function(){_.Cc(function(){var f=[],H;for(H in _.ES("ytcsi.".slice(0,-1)))H.endsWith("data_")&&f.push(H.slice(0,-5));f=_.V(f);for(H=f.next();!H.done;H=f.next())pQ(H.value);or()})()};
_.S8r=function(f){return _.Cc(function(){return _.I6R("_start",f)})()};
_.nQ=function(f,H,v){_.Cc(_.KQ)(f,H,v===void 0?!1:v)};
_.u0=function(f,H,v){return _.Cc(_.rj)(f,H,v)};
_.I6R=function(f,H){return _.Cc(function(){var v=_.QE5(H);return f in v})()};
jqR=function(f){if(!_.J("universal_csi_network_ticks"))return"";f=_.gH(f)||"";for(var H=Object.keys(d_T),v=0;v<H.length;v++){var t=H[v];if(f.includes(t))return t}return""};
Z3N=function(f){if(!_.J("universal_csi_network_ticks"))return function(){};
var H=d_T[f];return H?(_.ar(H),function(){var v=_.J("universal_csi_network_ticks")?(v=sqE[f])?_.ar(v):!1:!1;return v}):function(){}};
_.ar=function(f,H,v){return _.Cc(function(){if(_.I6R(f,v))return!1;_.u0(f,H,v);return!0})()};
_.PV=function(f,H,v){_.Cc(function(){if(!_.S8r(v)||_.I6R(f,v))return!1;_.u0(f,H,v);return!0})()};
_.Gi=function(f){return _.Cc(_.DC)(f,void 0)};
or=function(f){_.S8r(f)&&_.u0("aa",void 0,f)};
_.L4R=function(f,H,v,t,M,h,y,m,W){var I=JHB();m=new pP({veType:H,youtubeData:h,jspbYoutubeData:m});h=CQ({},I);M&&(h.cttAuthInfo=M);M={csn:I,pageVe:m.getAsJson()};_.J("expectation_logging")&&W&&W.screenCreatedLoggingExpectations&&(M.screenCreatedLoggingExpectations=W.screenCreatedLoggingExpectations);v&&v.visualElement?(M.implicitGesture={parentCsn:v.clientScreenNonce,gesturedVe:v.visualElement.getAsJson()},y&&(M.implicitGesture.gestureType=y)):v&&_.pb(new _.e$("newScreen() parent element does not have a VE - rootVe",
H));t&&(M.cloneCsn=t);f?F7("screenCreated",M,f,h):_.Kb("screenCreated",M,h);mu3(duH,new l63(I));Ej.clear();U_H.clear();eRR.clear();return I};
N6=function(f,H,v,t,M,h){h=h===void 0?{}:h;x_3(f,H,v,[t],M===void 0?!1:M,h)};
x_3=function(f,H,v,t,M,h){M=M===void 0?!1:M;h=h===void 0?{}:h;Object.assign(h,CQ({cttAuthInfo:aW(H)||void 0},H));for(var y=_.V(t),m=y.next();!m.done;m=y.next()){m=m.value;var W=m.getAsJson();(_.QA.isEmpty(W)||!W.trackingParams&&!W.veType)&&_.pb(Error("uf"));if(_.J("no_client_ve_attach_unless_shown")){var I=BS_(m,H);if(W.veType&&!U_H.has(I)&&!eRR.has(I)&&!M){if(!_.J("il_attach_cache_limit")||Ej.size<1E3){Ej.set(I,[f,H,v,m]);return}_.J("il_attach_cache_limit")&&Ej.size>1E3&&_.pb(new _.e$("IL Attach cache exceeded limit"))}m=
BS_(v,H);Ej.has(m)?zRv(v,H):eRR.set(m,!0)}}t=t.filter(function(S){S.csn!==H?(S.csn=H,S=!0):S=!1;return S});
v={csn:H,parentVe:v.getAsJson(),childVes:_.uh(t,function(S){return S.getAsJson()})};
H==="UNDEFINED_CSN"?cV("visualElementAttached",h,v):f?F7("visualElementAttached",v,f,h):_.Kb("visualElementAttached",v,h)};
rHN=function(f,H,v,t,M){F4b(f,H,v,M)};
F4b=function(f,H,v,t){K4N(v,H);var M=CQ({cttAuthInfo:aW(H)||void 0},H);v={csn:H,ve:v.getAsJson(),eventType:1};t&&(v.clientData=t);H==="UNDEFINED_CSN"?cV("visualElementShown",M,v):f?F7("visualElementShown",v,f,M):_.Kb("visualElementShown",v,M)};
D_5=function(f,H,v,t){K4N(v,H);var M=CQ({cttAuthInfo:aW(H)||void 0},H);v={csn:H,ve:v.getAsJson(),eventType:4};t&&(v.clientData=t);H==="UNDEFINED_CSN"?cV("visualElementShown",M,v):f?F7("visualElementShown",v,f,M):_.Kb("visualElementShown",v,M)};
o3b=function(f,H,v,t,M){var h=(t=t===void 0?!1:t)?16:8;t=CQ({cttAuthInfo:aW(H)||void 0,endOfSequence:t},H);v={csn:H,ve:v.getAsJson(),eventType:h};M&&(v.clientData=M);H==="UNDEFINED_CSN"?cV("visualElementHidden",t,v):f?F7("visualElementHidden",v,f,t):_.Kb("visualElementHidden",v,t)};
pw3=function(f,H,v,t,M){n3v(f,H,v,void 0,t,M)};
n3v=function(f,H,v,t,M){K4N(v,H);t=t||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var h=CQ({cttAuthInfo:aW(H)||void 0},H);v={csn:H,ve:v.getAsJson(),gestureType:t};M&&(v.clientData=M);H==="UNDEFINED_CSN"?cV("visualElementGestured",h,v):f?F7("visualElementGestured",v,f,h):_.Kb("visualElementGestured",v,h)};
QqT=function(f,H,v,t){var M=CQ({cttAuthInfo:aW(H)||void 0},H);v={csn:H,ve:v.getAsJson(),clientData:t};H==="UNDEFINED_CSN"?cV("visualElementStateChanged",M,v):f?F7("visualElementStateChanged",v,f,M):_.Kb("visualElementStateChanged",v,M)};
uyr=function(){var f=ez5(16);for(var H=[],v=0;v<f.length;v++)H.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(f[v]&63));return H.join("")};
cV=function(f,H,v){a65.push({payloadName:f,payload:v,jspbPayload:void 0,options:H});Pp_||(Pp_=sKN())};
SE5=function(f){if(a65){for(var H=_.V(a65),v=H.next();!v.done;v=H.next())v=v.value,v.payload&&(v.payload.csn=f.csn,_.Kb(v.payloadName,v.payload,v.options));a65.length=0}Pp_=0};
BS_=function(f,H){return""+f.getAsJson().veType+f.getAsJson().veCounter+H};
K4N=function(f,H){if(_.J("no_client_ve_attach_unless_shown")){var v=BS_(f,H);U_H.set(v,!0);zRv(f,H)}};
zRv=function(f,H){f=BS_(f,H);Ej.has(f)&&(H=Ej.get(f)||[],N6(H[0],H[1],H[2],H[3],!0),Ej.delete(f))};
CQ=function(f,H){_.J("log_sequence_info_on_gel_web")&&(f.sequenceGroup=H);return f};
_.Xl=function(f,H,v){_.Cc(N6)(void 0,f,H,v)};
_.AX=function(f,H,v){_.Cc(x_3)(void 0,f,H,v)};
_.b0=function(f,H){_.Cc(rHN)(void 0,f,H,void 0,void 0,void 0)};
_.i0=function(f,H,v){_.Cc(function(){_.X3(H,function(t){D_5(void 0,f,t,v)})})()};
_.kE=function(f,H,v,t){_.Cc(function(){_.X3(H,function(M){o3b(void 0,f,M,v,t)})})()};
_.Ti=function(f,H,v){_.Cc(pw3)(void 0,f,H,v,void 0)};
_.wj=function(f,H,v,t){_.Cc(n3v)(void 0,f,H,v,t,void 0)};
_.q6=function(f,H,v){_.Cc(QqT)(void 0,f,H,v,void 0)};
GAs=function(f,H){fY.set(f,H)};
CpT=function(f){return Ha.initialized?Ha.enabledSpans?Ha.enabledSpans[f]:!0:!1};
E3g=function(f,H){if(f){H=H===void 0?1:H;if(f){f.endTime=(0,_.ta)();H&&(f.status=H);H=_.V(Ha.processors);for(var v=H.next();!v.done;v=H.next()){var t=void 0,M=void 0;(M=(t=v.value).onSpanEnd)==null||M.call(t,f)}}f!==Ha.stack[Ha.stack.length-1]&&_.pb(Error("xf`"+f.name));Ha.stack.pop()}};
NST=function(f,H,v){if(CpT(f)){var t=Ha.nextSpanId++,M=Ha.stack[Ha.stack.length-1];f={id:t,parentId:M==null?void 0:M.id,name:f,attributes:H,traceId:M?M.traceId:t,sessionId:Ha.sessionId,startTime:(0,_.ta)(),status:0};M&&(M.children||(M.children=[]),M.children.push(f));M=_.V(Ha.processors);for(H=M.next();!H.done;H=M.next()){var h=t=void 0;(h=(t=H.value).onSpanStart)==null||h.call(t,f)}}else f=void 0;f?Ha.stack.push(f):f=void 0;if(!f)return v();try{var y=v(f);E3g(f);return y}catch(m){throw E3g(f,2),
m;}};
cHR=function(){};
XwE=function(f,H){var v=Object.keys(f);f=new _.e$("[Command Handler] "+H,{filteredCommandNames:v,originalCommand:f});_.oO(f)};
AHs=function(f,H){XwE(f,H+" was called but not set")};
b3T=function(f){return function(){return new f}};
va=function(f){return function(){return _.t8().resolve(f)}};
i3R=function(f,H){var v=_.U(f,_.N$);if(v&&(v=H[v.signal]))return v();f=_.V(Object.keys(f));for(v=f.next();!v.done;v=f.next())if(v=v.value,H[v]&&(v=H[v]))return v()};
_.td=function(f,H,v,t){return{browseEndpoint:{browseId:f},commandMetadata:{webCommandMetadata:{url:H,rootVe:v,webPageType:t===void 0?"WEB_PAGE_TYPE_BROWSE":t}}}};
kAB=function(f,H,v){var t=H=H===void 0?0:H;v=v===void 0?0:v;var M=v-t;return _.MO(f,"PPSV",void 0,void 0,(M>600?0:M<60||v<=0||t/v>.9)?0:H)};
_.MO=function(f,H,v,t,M){var h="/watch?v="+f;f={videoId:f};H&&(f.playlistId=H,h+="&list="+H);t&&(h+="&pp="+t);M&&(f.startTimeSeconds=M,h+="&t="+M+"s");H={watchEndpoint:f,commandMetadata:{webCommandMetadata:{url:h,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};v&&(H.clickTrackingParams=v);t&&(_.U(H,_.wI).playerParams=t);return H};
TS5=function(f){return{browseEndpoint:{browseId:"VL"+f},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+f,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
wws=function(f){if(f){var H;if(f){var v=(H=_.U(f.commandMetadata,_.jG))==null?void 0:H.url;H=!(!v||v==="/service_ajax")}else H=!1;if(H)return f;var t;if(f=(t=_.U(f,_.Ir))==null?void 0:t.commands)for(t=_.V(f),f=t.next();!f.done;f=t.next())if(f=wws(f.value))return f}};
_.hd=function(f){return{runs:[{text:f}]}};
q83=function(f,H){return f&&H?{runs:[{text:f,navigationEndpoint:H}]}:void 0};
R5=function(f){return f?_.hd(f):void 0};
_.Vq=function(f){return f?{simpleText:f}:void 0};
_.yq=function(f){var H=f.type;f=f.payload;H={type:H};f!==void 0&&(H.payload=f);return H};
fk5=function(f,H,v){for(var t=Object.assign({},f),M=_.V(Object.keys(H)),h=M.next();!h.done;h=M.next()){h=h.value;var y=f[h],m=H[h];if(m===void 0)delete t[h];else if(y===void 0)t[h]=m;else if(Array.isArray(m)&&Array.isArray(y))t[h]=v?[].concat(_.pS(y),_.pS(m)):m;else if(!Array.isArray(m)&&_.vo(m)&&!Array.isArray(y)&&_.vo(y))t[h]=fk5(y,m,v);else if(typeof m===typeof y)t[h]=m;else return H=new _.e$("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:h,originalValue:y,updateValue:m}),
_.oO(H),f}return t};
tA3=function(f){if(!f.length)return"";try{if(Hv_)return Hv_.decode(f);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(f)}catch(y){}for(var H=0,v=[],t=f.length;H<t;){for(var M=0;M<1024&&H<t;){var h=f[H++];if(h<128)vW_[M++]=h;else{if(h<224)h=(h&31)<<6|f[H++]&63;else if(h<240)h=(h&15)<<12|(f[H++]&63)<<6|f[H++]&63;else{if(M+1===1024){--H;break}h=(h&7)<<18|(f[H++]&63)<<12|(f[H++]&63)<<6|f[H++]&63;h-=65536;vW_[M++]=55296|h>>10;h=56320|h&1023}vW_[M++]=h}}h=String.fromCharCode.apply(String,
vW_);M<1024&&(h=h.substring(0,M));v.push(h)}return v.join("")};
hYR=function(f,H){var v;if((v=MAT)==null?0:v.encodeInto)return H=MAT.encodeInto(f,H),H.read<f.length?f.length*4:H.written;for(var t=v=0;t<f.length;t++){var M=f.charCodeAt(t);M<128?H[v++]=M:(M<2048?H[v++]=M>>6|192:((M&64512)===55296&&t+1<f.length&&(f.charCodeAt(t+1)&64512)===56320?(M=65536+((M&1023)<<10)+(f.charCodeAt(++t)&1023),H[v++]=M>>18|240,H[v++]=M>>12&63|128):H[v++]=M>>12|224,H[v++]=M>>6&63|128),H[v++]=M&63|128)}return v};
RY5=function(f,H,v){if(H&&v&&v.buffer===H.exports.memory.buffer){var t=H.realloc(v.byteOffset,f);if(t)return new Uint8Array(H.exports.memory.buffer,t,f)}f=H?new Uint8Array(H.exports.memory.buffer,H.malloc(f),f):new Uint8Array(f);v&&f.set(v);return f};
_.OF=function(f){f=new VAs(new ycv([_.yM(decodeURIComponent(f))]));if(Yp5(f,2)){var H=Wa(f);var v=f.pos;var t=f.arrayView;v=v===void 0?0:v;var M=H===void 0?-1:H;v=v===void 0?0:v;M=M===void 0?-1:M;if(t.totalLength&&M){M<0&&(M=t.totalLength-v);t.focus(v);if(!(v-t.arrayPos+M<=t.arrays[t.arrayIdx].length)){var h=t.arrayIdx,y=t.arrayPos;t.focus(v+M-1);y=new Uint8Array(t.arrayPos+t.arrays[t.arrayIdx].length-y);for(var m=0,W=h;W<=t.arrayIdx;W++)y.set(t.arrays[W],m),m+=t.arrays[W].length;t.arrays.splice(h,
t.arrayIdx-h+1,y);t.arrayIdx=0;t.arrayPos=0;t.focus(v)}h=t.arrays[t.arrayIdx];t=new DataView(h.buffer,h.byteOffset+v-t.arrayPos,M)}else t=new DataView(new ArrayBuffer(0));t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);f.pos+=H;H=t}else H=void 0;H=H?tA3(H):void 0;f=Yp5(f,4)?Wa(f):void 0;t=mQs[f];if(typeof t==="undefined")throw f=new _.e$("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:f}),_.oO(f),f;return{entityTypeFieldNumber:f,entityType:t,entityId:H}};
_.SB=function(f,H,v){v=v===void 0?0:v;var t=new $QH;if(MAT)f=MAT.encode(f);else{var M=new Uint8Array(Math.ceil(f.length*1.2)),h=hYR(f,M);M.length<h&&(M=new Uint8Array(h),h=hYR(f,M));M.length>h&&(M=M.subarray(0,h));f=M}f!==void 0&&(gL(t,18),M=f.length,gL(t,M),I5(t,M),t.buf.set(f,t.pos),t.pos+=M);f=W5_[H];if(typeof f==="undefined")throw v=new _.e$("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:H}),_.oO(v),v;f!==void 0&&(gL(t,32),gL(t,f));gL(t,40);gL(t,1);H=new Uint8Array(t.buf.buffer,
t.buf.byteOffset,t.pos);return encodeURIComponent(_.QG(H,v))};
OvR=function(f){f=f.key||f.id;if(!f)throw Error("zf");return f};
Ikv=function(f,H){f=f===void 0?{}:f;return gWg(f,H)};
SpR=function(f,H,v,t){if(t===void 0)return t=Object.assign({},f[H]||{}),v=(delete t[v],t),t={},Object.assign({},f,(t[H]=v,t));var M={},h={};return Object.assign({},f,(h[H]=Object.assign({},f[H],(M[v]=t,M)),h))};
dQR=function(f,H,v,t,M){var h=f[H];if(h==null||!h[v])return f;t=fk5(h[v],t,M==="REPEATED_FIELDS_MERGE_OPTION_APPEND");M={};h={};return Object.assign({},f,(h[H]=Object.assign({},f[H],(M[v]=t,M)),h))};
_.dL=function(f,H,v){return f[H]?f[H][v]||null:null};
sfv=function(){if(jf5)return jf5();var f={};jf5=H8("PersistentEntityStoreDb",{objectStores:(f.EntityStore={addedAtVersion:1},f.EntityAssociationStore={addedAtVersion:2},f),shared:!1,upgrade:function(H,v){v(1)&&E0(CN(H,"EntityStore",{keyPath:"key"}),"entityType","entityType");v(2)&&(H=CN(H,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),E0(H,"byParentEntityKey","parentEntityKey"),E0(H,"byChildEntityKey","childEntityKey"))},
version:3});return jf5()};
Zve=function(f){return _.A8(sfv(),f)};
jB=function(f){return window.Int32Array?new Int32Array(f):Array(f)};
lkv=function(f){return _.A8(Jcb(),f)};
UQr=function(f){return new sF("WRONG_DATA_TYPE",{encoderVersion:f})};
eYr=function(f){return f instanceof Error?new sF("UNKNOWN_ENCODE_ERROR",{originalMessage:f.message}):new sF("UNKNOWN_ENCODE_ERROR")};
L5s=function(f){return f instanceof Error?new sF("UNKNOWN_DECODE_ERROR",{originalMessage:f.message}):new sF("UNKNOWN_DECODE_ERROR")};
xQ5=function(f,H){f=f instanceof sF?f:H(f);_.oO(f);throw f;};
BC_=function(f){f=(new TextEncoder).encode(f).subarray(0,16);var H=new Uint8Array(16);H.set(f);return H};
F5N=function(f){var H=zYN[f];if(H)return H;_.pb(new _.e$("Entity model not found.",{entityType:f}))};
_.Zq=function(){rcv||(rcv=K5E());return rcv};
K5E=function(){var f,H,v;return _.Y(function(t){if(t.nextAddress==1)return _.Zc(t,2),t.yield(_.fN(),4);if(t.nextAddress!=2){f=t.yieldResult;if(!f||!_.Uk()||typeof _.Mr.BroadcastChannel==="undefined")return t.return();H=new DQT;return t.return(new Jd(f,H))}v=_.xu(t);v instanceof Error&&_.oO(v);return t.return()})};
_.lA=function(f,H){var v;return _.Y(function(t){if(t.nextAddress==1){v=f.mutations;if(!v||v.length<=0)return t.return();H&&H.dispatch(_.yq({type:"ENTITY_LOADED",payload:v}));return t.yield(oWv(v),2)}v.length=0;_.Bj(t)})};
oWv=function(f){var H;return _.Y(function(v){return v.nextAddress==1?v.yield(_.Zq(),2):(H=v.yieldResult)?v.yield(_.UF(H,"readwrite",function(t){for(var M={},h=_.V(f),y=h.next(),m={};!y.done;m={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},y=h.next())m.mutation$jscomp$4=y.value,m.mutation$jscomp$4.entityKey&&nWv(m.mutation$jscomp$4)&&(m.mutationEntityType$jscomp$3=(0,_.QA.getAnyKey)(m.mutation$jscomp$4.payload),y=void 0,m.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(y=function(W){return function(){return _.pd5(t,
W.mutation$jscomp$4.payload[W.mutationEntityType$jscomp$3],W.mutationEntityType$jscomp$3)}}(m)),m.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(y=function(W){return function(){return Qf_(t,W.mutation$jscomp$4.entityKey)}}(m)),m.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(y=function(W){return function(){return udR(t,W.mutation$jscomp$4.entityKey,W.mutation$jscomp$4.payload[W.mutationEntityType$jscomp$3],W.mutationEntityType$jscomp$3)}}(m)),y&&(M[m.mutation$jscomp$4.entityKey]=
M[m.mutation$jscomp$4.entityKey]?M[m.mutation$jscomp$4.entityKey].then(y):y()));
return Ph.all(Object.values(M))}),0):v.return()})};
nWv=function(f){var H;f=(H=f.options)==null?void 0:H.persistenceOption;return f==="ENTITY_PERSISTENCE_OPTION_PERSIST"||f==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
G33=function(f,H){var v,t;_.Y(function(M){if(M.nextAddress==1)return M.yield(_.Zq(),2);if(M.nextAddress!=3)return(v=M.yieldResult)?M.yield(_.UF(v,"readonly",function(h){var y={},m=Object.keys(H).map(function(W){var I=H[W]?[].concat(_.pS(H[W])):[];return akB(h,W,I,y)});
return Ph.all(m).then(function(){return y})}),3):M.return();
t=M.yieldResult;Object.keys(t).length>0&&f.dispatch(PP_(t));_.Bj(M)})};
akB=function(f,H,v,t){return eB(f,H,v).then(function(M){t[H]=CP5(v,M)})};
CP5=function(f,H){if(H.length!==f.length)throw Error("Cf");return H.reduce(function(v,t,M){v[f[M]]=t;return v},{})};
ccR=function(f){var H=f.filter(function(M){var h;return(M==null?void 0:(h=M.transferEntity)==null?void 0:h.transferState)==="TRANSFER_STATE_COMPLETE"}).length,v=f.filter(function(M){var h;
return(M==null?void 0:(h=M.transferEntity)==null?void 0:h.transferState)==="TRANSFER_STATE_FAILED"}).length,t=f.filter(function(M){var h;
return(M==null?void 0:(h=M.transferEntity)==null?void 0:h.transferState)&&EWR.includes(M.transferEntity.transferState)});
if(!(H||t!=null&&t.length))return 0;H=_.NCg(t)+H;f=f.length-v;return f===0?0:Math.round(H*100/f)/100};
_.NCg=function(f){var H=[];H=H.concat.apply(H,_.pS(f.filter(function(h){return h.streamEntity}).map(function(h){var y=Object.assign({},h.streamEntity),m,W=(m=h.transferEntity)==null?void 0:m.transferState;
y.streamsProgress=y.streamsProgress||[];y.streamsProgress=y.streamsProgress.map(function(I){var S=Object.assign({},I);S.numBytesDownloaded=W==="TRANSFER_STATE_COMPLETE"?I.numTotalBytes:I.numBytesDownloaded;return S});
return y}).map(function(h){return h.streamsProgress})));
var v=f=0;H=_.V(H);for(var t=H.next();!t.done;t=H.next()){var M=t.value;t=Number(M.numBytesDownloaded);M=Number(M.numTotalBytes);v+=isNaN(t)?0:t;f+=isNaN(M)?0:M}return f===0?0:Math.round(v*100/f)/100};
Xdv=function(f){if(!f||!f.expirationTimestamp||!f.action)return!1;var H=(0,_.ta)()/1E3;return Number(f.expirationTimestamp)>=H};
LY=function(f){return f&&f.expirationTimestamp&&f.action?Xdv(f)&&f.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.xT=function(f){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(f||"TRANSFER_STATE_UNKNOWN")};
AcR=function(f){var H=new $QH;if(f!==void 0){var v=Math.ceil(Math.log2(f.length*4+2)/7);v=v===void 0?2:v;gL(H,10);H.submessagePosStack.push(H.pos);H.submessagePosStack.push(v);H.pos+=v;I5(H,f.length*1.2);v=hYR(f,H.buf.subarray(H.pos));H.pos+v>H.buf.length&&(I5(H,v),v=hYR(f,H.buf.subarray(H.pos)));H.pos+=v;f=H.submessagePosStack.pop();v=H.submessagePosStack.pop();for(var t=H.pos-v-f;f--;){var M=f?128:0;H.view.setUint8(v++,t&127|M);t>>=7}}H=new Uint8Array(H.buf.buffer,H.buf.byteOffset,H.pos);return(new TextDecoder("utf-8")).decode(H)};
_.Ba=function(f){var H=0;f=_.V(f);for(var v=f.next(),t={};!v.done;t={transferState$jscomp$3:void 0},v=f.next()){var M=v.value,h=void 0;v=(h=M.streamEntity)!=null?h:{};h=void 0;t.transferState$jscomp$3=(h=M.transferEntity)==null?void 0:h.transferState;h=M=void 0;((M=v)==null?0:(h=M.streamsProgress)==null?0:h.length)&&v.streamsProgress.forEach(function(y){return function(m){m=Number(y.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?m.numTotalBytes:m.numBytesDownloaded);isFinite(m)&&(H+=m)}}(t))}return H};
bvR=function(f){return f.some(function(H){var v;if(!(H==null?0:(v=H.transferEntity)==null?0:v.transferState)){var t;return!(H==null?0:(t=H.policyEntity)==null?0:t.action)||H.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return EWR.includes(H.transferEntity.transferState)})};
iv_=function(f,H){if(!H)return!1;if(_.J("of_pb_en_po_ks"))return!0;var v;f=(v=_.dL(f,"offlineVideoPolicy",_.SB(H,"offlineVideoPolicy")))!=null?v:void 0;return!!f&&LY(f)};
_.TCB=function(f){var H=["TRANSFER_STATE_COMPLETE"];H=H===void 0?k3B:H;return f.filter(function(v){var t,M;return H.includes((M=(t=v.transferEntity)==null?void 0:t.transferState)!=null?M:"TRANSFER_STATE_UNKNOWN")})};
wd_=function(f,H){if(H){var v,t=(v=_.dL(f,"playbackData",_.SB(H,"playbackData")))!=null?v:null,M;v=(M=_.dL(f,"transfer",_.SB(H,"transfer")))!=null?M:null;var h;M=(h=_.dL(f,"offlineVideoStreams",_.SB(H,"offlineVideoStreams")))!=null?h:null;var y;f=(y=_.dL(f,"offlineVideoPolicy",_.SB(H,"offlineVideoPolicy")))!=null?y:null;if(t||v||M||f)return{playbackDataEntity:t,transferEntity:v,streamEntity:M,policyEntity:f}}};
_.zZ=function(f){var H=f.playbackData;if(!H)return[];var v=[];H=_.V(Object.keys(H));for(var t=H.next();!t.done;t=H.next()){var M=t.value;if(!qp3(f,_.OF(M).entityId)&&(t=wd_(f,_.OF(M).entityId))){var h=void 0,y=void 0;M=(y=Number((h=_.dL(f,"playbackData",M))==null?void 0:h.streamDownloadTimestampSeconds))!=null?y:(0,_.ta)();v.push({entity:t,streamDownloadTimestamp:M})}}return v.sort(function(m,W){var I=m.streamDownloadTimestamp,S=W.streamDownloadTimestamp;return S===I?m.entity.streamEntity&&!W.entity.streamEntity?
1:-1:S-I}).map(function(m){return m.entity})};
f7H=function(f){return _.TCB(_.zZ(f))};
_.HOB=function(f){return _.zZ(f).filter(function(H){var v;if(((v=H.policyEntity)==null?0:v.action)&&H.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var t;if((t=H.transferEntity)==null?0:t.transferState){var M;return EWR.includes((M=H.transferEntity)==null?void 0:M.transferState)}return!0})};
qp3=function(f,H){var v;return((v=_.dL(f,"downloadStatusEntity",_.SB(H,"downloadStatusEntity")))==null?void 0:v.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
vPR=function(f){var H;if(f==null?0:(H=f.playbackDataEntity)==null?0:H.key)return _.OF(f.playbackDataEntity.key).entityId;var v;if(f==null?0:(v=f.transferEntity)==null?0:v.key)return _.OF(f.transferEntity.key).entityId;var t;if(f==null?0:(t=f.streamEntity)==null?0:t.key)return _.OF(f.streamEntity.key).entityId;var M;if(f==null?0:(M=f.policyEntity)==null?0:M.key)return _.OF(f.policyEntity.key).entityId};
M0_=function(f){var H=new Set,v;f=(v=f.mainDownloadsListEntity)==null?void 0:v[t0s];var t;if(!(f==null?0:(t=f.downloads)==null?0:t.length))return H;var M;f==null||(M=f.downloads)==null||M.forEach(function(h){(h==null?0:h.videoItem)&&H.add(h.videoItem)});
return H};
FG=function(f,H){if(H){var v=_.dL(f,"mainVideoEntity",_.SB(H,"mainVideoEntity")),t=_.dL(f,"downloadStatusEntity",_.SB(H,"downloadStatusEntity")),M=_.dL(f,"ytMainChannelEntity",_.SB(H,"ytMainChannelEntity")),h={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};f=wd_(f,H);t=(t==null?void 0:t.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.J("woffle_render_failed_download_state_ks")&&(t==null?void 0:t.downloadState)==="DOWNLOAD_STATE_FAILED";!f&&t&&(f=h);if(f&&v&&
M)return Object.assign({},{videoEntity:v,channelEntity:M},f)}};
R4r=function(f,H){return h4R(f,H)==="TRANSFER_STATE_COMPLETE"&&iv_(f,H)};
V0E=function(f,H){if(!H)return!1;var v;f=(v=_.dL(f,"playbackData",_.SB(H,"playbackData")))!=null?v:void 0;return!!f&&!!f.playerResponseJson};
h4R=function(f,H){if(!H)return"TRANSFER_STATE_UNKNOWN";var v=_.dL(f,"transfer",_.SB(H,"transfer"));if(v){var t;return(t=v.transferState)!=null?t:"TRANSFER_STATE_UNKNOWN"}v=_.dL(f,"offlineOrchestrationActionWrapperEntity",_.SB(H,"offlineOrchestrationActionWrapperEntity"));f=_.dL(f,"mainVideoEntity",_.SB(H,"mainVideoEntity"));return v||f?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
yG3=function(f,H){if(!H)return"TRANSFER_STATE_UNKNOWN";if(f=_.dL(f,"transfer",_.SB(H,"transfer"))){var v;return(v=f.transferState)!=null?v:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
YI_=function(f,H){return H&&(f=_.dL(f,"videoPlaybackPositionEntity",_.SB(H,"videoPlaybackPositionEntity")),f==null?0:f.lastPlaybackPositionSeconds)?Number(f.lastPlaybackPositionSeconds):0};
$IT=function(f,H){return mIb(f).some(function(v){var t;return(v==null?void 0:(t=v.mainPlaylistEntity)==null?void 0:t.playlistId)===H})};
OOg=function(f,H,v){var t=WEr(f,H);if(!t.length)return[];H=[];t=_.V(t);for(var M=t.next();!M.done;M=t.next()){M=M.value;var h=FG(f,M);v&&h4R(f,M)!=="TRANSFER_STATE_COMPLETE"||h&&H.push(h)}return H};
WEr=function(f,H){if(!H)return[];var v=_.SB(H,"mainPlaylistEntity"),t;H=(t=f.mainPlaylistEntity)==null?void 0:t[v];t=[];if(H==null||!H.videos)return t;H=_.V(H.videos);for(v=H.next();!v.done;v=H.next()){v=v.value;var M=void 0,h=void 0,y=void 0,m=(M=f)==null?void 0:(h=M.mainPlaylistVideoEntity)==null?void 0:(y=h[v])==null?void 0:y.video;m&&(v=_.OF(m).entityId)&&t.push(v)}return t};
gPH=function(f,H){if(H){var v=_.dL(f,"mainPlaylistEntity",_.SB(H,"mainPlaylistEntity")),t=_.dL(f,"mainPlaylistDownloadStateEntity",_.SB(H,"mainPlaylistDownloadStateEntity"));f=_.dL(f,"ytMainChannelEntity",_.SB(H,"ytMainChannelEntity"));if(t&&v)return Object.assign({},{mainPlaylistEntity:v,mainPlaylistDownloadStateEntity:t},!!f&&{channelEntity:f})}};
mIb=function(f){return I7v(f).sort(function(H,v){return v.addedTimestampMillis-H.addedTimestampMillis}).map(function(H){return H.downloadedPlaylistEntities})};
I7v=function(f){var H=f.mainPlaylistDownloadStateEntity,v=[];if(!H)return v;for(var t=_.V(Object.keys(H)),M=t.next();!M.done;M=t.next()){var h=M.value;M=gPH(f,_.OF(h).entityId);var y=void 0;h=Number((y=H[h])==null?void 0:y.addedTimestampMillis);y=isNaN(h)?(0,_.ta)():h;M!==void 0&&v.push({downloadedPlaylistEntities:M,addedTimestampMillis:y})}return v};
SIR=function(f){var H,v=(H=f.mainPlaylistVideoEntity)!=null?H:{};return new Set(mIb(f).reduce(function(t,M){t=t===void 0?[]:t;var h,y;M==null||(h=M.mainPlaylistEntity)==null||(y=h.videos)==null||y.forEach(function(m){var W;(m=(W=v[m])==null?void 0:W.video)&&t.push(m)});
return t},[]))};
dIH=function(f){return"downloadedMusicPlaylistEntities"in f};
jX3=function(f){return"mainPlaylistEntity"in f&&"mainPlaylistDownloadStateEntity"in f};
sX5=function(f){return"videoEntity"in f&&"channelEntity"in f};
ZO_=function(f){var H=f.musicPlaylistDownloadMetadataEntity,v=[];if(!H)return v;for(var t=_.V(Object.keys(H)),M=t.next();!M.done;M=t.next()){M=M.value;a:{var h=f,y=_.OF(M).entityId;if(y){var m=_.dL(h,"musicPlaylist",_.SB(y,"musicPlaylist"));h=_.dL(h,"musicPlaylistDownloadMetadataEntity",_.SB(y,"musicPlaylistDownloadMetadataEntity"));if(m&&h){m={musicPlaylistEntity:m,musicPlaylistDownloadStateEntity:h};break a}}m=void 0}h=void 0;M=Number((h=H[M])==null?void 0:h.addedTimestampMillis);M=isNaN(M)?(0,_.ta)():
M;m!==void 0&&v.push({downloadedMusicPlaylistEntities:m,addedTimestampMillis:M})}return v};
JGH=function(f){var H=new Set;f=_.V(f);for(var v=f.next();!v.done;v=f.next())if(v=v.value,"musicPlaylistEntity"in v&&"musicPlaylistDownloadStateEntity"in v){v=_.V(v.musicPlaylistEntity.tracks);for(var t=v.next();!t.done;t=v.next())H.add(t.value)}return H};
l7B=function(f,H){if(H){var v=_.dL(f,"musicTrack",_.SB(H,"musicTrack")),t=_.dL(f,"musicArtist",_.SB(H,"musicArtist"))||{};if((f=wd_(f,H))&&v&&t)return Object.assign({},{musicTrackEntity:v,musicArtistEntity:t},f)}};
UIR=function(f){var H=f.musicTrackDownloadMetadataEntity,v=[];if(!H)return[];H=_.V(Object.keys(H));for(var t=H.next();!t.done;t=H.next()){var M=t.value;t=l7B(f,_.OF(M).entityId);var h=void 0;M=Number((h=_.dL(f,"musicTrackDownloadMetadataEntity",M))==null?void 0:h.addedTimestampMillis);h=isNaN(M)?(0,_.ta)():M;t!==void 0&&v.push({downloadedMusicEntities:t,addedTimestampMillis:h})}return v};
xIR=function(f,H){if(!H)return[];if(Object.values(e45).includes(H))return LEB(f,H);H=_.SB(H,"musicPlaylist");var v;f=(v=f.musicPlaylist)==null?void 0:v[H];v=[];if(f==null||!f.tracks)return v;f=_.V(f.tracks);for(H=f.next();!H.done;H=f.next())(H=_.OF(H.value).entityId)&&v.push(H);return v};
LEB=function(f,H){var v=new Set,t=ZO_(f).map(function(h){return h.downloadedMusicPlaylistEntities});
t=JGH(t);t=_.V(t);for(var M=t.next();!M.done;M=t.next())(M=_.OF(M.value).entityId)&&v.add(M);return Bog(f).downloadedMusicEntities.filter(function(h){var y;if((y=h.musicTrackEntity)!=null&&y.videoId){h=h.musicTrackEntity;if(y=H==="PPOM"?!0:!v.has(h.videoId))b:switch(h=h.musicVideoType,H){case "PPSE":y=h==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:y=h!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}h=y}else h=!1;return h}).map(function(h){var y;
return(y=h.musicTrackEntity)==null?void 0:y.videoId})};
Bog=function(f){var H=UIR(f).sort(function(v,t){return t.addedTimestampMillis-v.addedTimestampMillis}).map(function(v){return"downloadedMusicEntities"in v?v.downloadedMusicEntities:dIH(v)?v.downloadedMusicPlaylistEntities:{}});
f=ZO_(f).sort(function(v,t){return t.addedTimestampMillis-v.addedTimestampMillis}).map(function(v){return"downloadedMusicEntities"in v?v.downloadedMusicEntities:dIH(v)?v.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:H,downloadedMusicPlaylistEntities:f}};
FER=function(f,H){H=_.a8("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?xIR(f,H):WEr(f,H);if(!H.length)return"TRANSFER_STATE_UNKNOWN";H=H.map(function(v){return yG3(f,v)});
return z45(H)};
z45=function(f){var H=new Set(f);if(H.has("TRANSFER_STATE_FAILED")&&H.size===1)return"TRANSFER_STATE_FAILED";H.delete("TRANSFER_STATE_FAILED");if(H.has("TRANSFER_STATE_UNKNOWN")&&H.size===1)return"TRANSFER_STATE_PRE_TRANSFER";H.delete("TRANSFER_STATE_UNKNOWN");if(H.has("TRANSFER_STATE_PRE_TRANSFER")&&H.size===1||H.size===0)return"TRANSFER_STATE_PRE_TRANSFER";f=H.has("TRANSFER_STATE_TRANSFERRING");H=H.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return f||H?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
rL=function(f){var H=f.mainVideoDownloadStateEntity,v=[];if(!H)return[];H=_.V(Object.keys(H));for(var t=H.next();!t.done;t=H.next()){var M=t.value;if(!qp3(f,_.OF(M).entityId)){t=FG(f,_.OF(M).entityId);var h=void 0,y=void 0;M=(y=Number((h=_.dL(f,"mainVideoDownloadStateEntity",M))==null?void 0:h.addedTimestampMillis))!=null?y:(0,_.ta)();t!==void 0&&v.push({downloadedVideoEntities:t,addedTimestampMillis:M})}}return v};
rGv=function(f){return rL(f).sort(function(H,v){return v.addedTimestampMillis-H.addedTimestampMillis}).map(function(H){return H.downloadedVideoEntities})};
_.DI_=function(f){var H=SIR(f),v=_.KY(f),t=M0_(f),M=rL(f).filter(function(y){var m,W;if((y==null?void 0:(m=y.downloadedVideoEntities)==null?void 0:(W=m.transferEntity)==null?void 0:W.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var I,S;y=y==null?void 0:(I=y.downloadedVideoEntities)==null?void 0:(S=I.videoEntity)==null?void 0:S.key;return _.J("kevlar_use_library_entity")?y&&(t.has(y)||v[y]):y&&!H.has(y)}),h=I7v(f).filter(function(y){return FER(f,y.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.pS(M),_.pS(h)).sort(function(y,m){return m.addedTimestampMillis-y.addedTimestampMillis}).map(function(y){return KEe(y)})};
oPR=function(f,H){if(H&&iv_(f,H)){var v,t,M=(t=(v=_.dL(f,"playbackData",_.SB(H,"playbackData")))!=null?v:void 0)==null?void 0:t.playerResponseJson;if(M){try{var h=JSON.parse(M);var y=_.dL(f,"transfer",_.SB(H,"transfer")),m=YI_(f,H);m&&(h=Object.assign({},h,{playerConfig:Object.assign({},h.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+m*1E3}}})}));h.cotn=y==null?void 0:y.cotn}catch(W){}return h}}};
_.pLR=function(f){var H,v,t;f=(t=(v=((H=f.downloadsPageViewConfigurationEntity)!=null?H:{})[_.Dq])==null?void 0:v.smartDownloadsOptInBannerVisibility)!=null?t:{};var M;return(M=_.U(f,nPE))!=null?M:{}};
_.KY=function(f){var H,v,t;f=(t=(v=((H=f.mainDownloadsListEntity)!=null?H:{})[_.QXs])==null?void 0:v.downloads)!=null?t:[];H={};v=_.V(f);for(t=v.next();!t.done;t=v.next())f=void 0,H[(f=t.value.videoItem)!=null?f:""]=!0;return H};
uzH=function(f){var H=_.KY(f);if(Object.keys(H).length===0)return!1;var v=f.mainVideoEntity;if(!v)return!0;v=_.V(Object.keys(v));for(var t=v.next();!t.done;t=v.next()){t=t.value;var M=_.OF(t).entityId;if(H[t]&&!qp3(f,M))return!1}return!0};
_.o5=function(f){var H=_.KY(f);return rL(f).sort(function(v,t){return v.addedTimestampMillis-t.addedTimestampMillis}).map(function(v){return v.downloadedVideoEntities}).filter(function(v){var t;
return(v=v==null?void 0:(t=v.videoEntity)==null?void 0:t.key)&&!!H[v]})};
_.P3_=function(f){var H,v,t;f=(t=(v=((H=f.downloadsPageViewConfigurationEntity)!=null?H:{})[_.Dq])==null?void 0:v.downloadsUpsellBannerVisibility)!=null?t:{};var M;return(M=_.U(f,a7g))!=null?M:{}};
KEe=function(f){return"downloadedVideoEntities"in f?f.downloadedVideoEntities:"downloadedPlaylistEntities"in f?f.downloadedPlaylistEntities:{}};
GuR=function(f){var H=_.KY(f),v=SIR(f),t=rL(f).filter(function(M){var h,y;return(M=M==null?void 0:(h=M.downloadedVideoEntities)==null?void 0:(y=h.videoEntity)==null?void 0:y.key)&&!H[M]&&!v.has(M)});
f=I7v(f);return[].concat(_.pS(t),_.pS(f)).sort(function(M,h){return h.addedTimestampMillis-M.addedTimestampMillis}).map(function(M){return KEe(M)})};
_.nY=function(f){if(!_.J("kevlar_use_library_entity"))return GuR(f);var H=rL(f).filter(function(t){var M,h;if(M=t=t==null?void 0:(M=t.downloadedVideoEntities)==null?void 0:(h=M.videoEntity)==null?void 0:h.key){var y,m,W;M=((m=(y=f.mainDownloadsListEntity)==null?void 0:y[t0s])==null?0:(W=m.downloads)==null?0:W.length)?M0_(f).has(t):!1}return M}),v=I7v(f);
return[].concat(_.pS(H),_.pS(v)).sort(function(t,M){return M.addedTimestampMillis-t.addedTimestampMillis}).map(function(t){return KEe(t)})};
C3B=function(f){var H=_.KY(f),v=SIR(f);return rGv(f).filter(function(t){var M;return(t=t==null?void 0:(M=t.videoEntity)==null?void 0:M.key)&&!H[t]&&!v.has(t)})};
EP3=function(f){if(!_.J("kevlar_use_library_entity"))return C3B(f);var H=_.KY(f),v=M0_(f);return rGv(f).filter(function(t){var M;return(t=t==null?void 0:(M=t.videoEntity)==null?void 0:M.key)&&!H[t]&&v.has(t)})};
No3=function(f,H){H=_.SB(H,"settingEntity");var v,t,M;return!!((M=(t=((v=f.settingEntity)!=null?v:{})[H])==null?void 0:t.settingOptionValue)!=null?M:{}).boolValue};
_.pY=function(f){var H=_.o5(f);if(bvR(H))return 0;var v=[];H=_.V(H);for(var t=H.next();!t.done;t=H.next()){t=t.value;var M=void 0,h=void 0;if((M=t)==null?0:(h=M.videoEntity)==null?0:h.key)M=_.OF(t.videoEntity.key).entityId,t=f,M=_.SB(M,"mainVideoDownloadStateEntity"),t=_.dL(t,"mainVideoDownloadStateEntity",M),(t=Number(t==null?void 0:t.addedTimestampMillis))&&v.push(t)}return Math.max.apply(Math,_.pS(v))};
_.Qq=function(f){return f.ui.richGridMiniMode};
_.uA=function(f){return f.ui.richGridItemsPerRow};
_.cGT=function(f){return f.ui.richGridSlimItemsPerRow};
_.XLs=function(f){return f.ui.guideIsExpanded};
_.a5=function(f){return f.ui.miniplayerIsActive};
AGe=function(f){return f.ui.singleOptionSurveyIsActive};
_.Pa=function(f){var H;return((H=f.ui)==null?void 0:H.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.bO3=function(f){return _.Pa(f)==="WEB_PAGE_TYPE_WATCH"};
_.iO_=function(f){return _.Pa(f)==="WEB_PAGE_TYPE_SHORTS"};
_.kuH=function(f){return f.ui.inlinePreviewIsActive};
_.ToN=function(f){return f.ui.inlinePreviewIsEnabled};
_.wLE=function(f){return f.ui.miniplayerPlaybackState};
_.GZ=function(f){return f.ui.isOnline};
_.qI5=function(f){return f.ui.frostedGlassMode};
_.CY=function(f,H){return h4R(f.entities,H)};
_.EF=function(f,H){return FER(f.entities,H)};
f5H=function(f,H){var v;if(H){var t;f=(t=_.dL(f.entities,"offlineVideoPolicy",_.SB(H,"offlineVideoPolicy")))==null?void 0:t.action}else f=void 0;return(v=f)!=null?v:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
HMg=function(f,H){var v;H?(f=_.dL(f.entities,"offlineVideoPolicy",_.SB(H,"offlineVideoPolicy")),f=Number(f==null?void 0:f.expirationTimestamp)):f=void 0;return(v=f)!=null?v:0};
_.viB=function(f){return _.zZ(f.entities).length};
tDT=function(f,H){return FG(f.entities,H)};
MDR=function(f,H){return gPH(f.entities,H)};
NO=function(f,H){return(f=FG(f.entities,H))?_.NCg([f]):0};
_.hPR=function(f,H){var v=_.a8("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(v){var t=f.entities;var M=xIR(t,H);if(M.length){var h=[];M=_.V(M);for(var y=M.next();!y.done;y=M.next())(y=l7B(t,y.value))&&h.push(y);t=h}else t=[]}else t=OOg(f.entities,H);var m;if(v){var W=f.entities;H?(H=_.SB(H,"musicPlaylist"),W=(m=W.musicPlaylist)==null?void 0:m[H],m=W!=null&&W.tracks?W.tracks.length:0):m=0}else m=f.entities,H?(H=_.SB(H,"mainPlaylistEntity"),m=(W=m.mainPlaylistEntity)==null?void 0:W[H],m=m!=null&&m.videos?
m.videos.length:0):m=0;return t.length!==m?0:t?ccR(t):0};
_.RPN=function(f){return f.download.isLeaderTab};
_.VDT=function(f,H,v){if(!H&&v){var t=f.entities;if(v){var M=AcR(v),h,y;H=(y=(h=_.dL(t,"offlineabilityEntity",_.SB(M,"offlineabilityEntity")))==null?void 0:h.addToOfflineButtonState)!=null?y:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else H="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else h=f.entities,H?(y=AcR(H),H=(M=(t=_.dL(h,"offlineabilityEntity",_.SB(y,"offlineabilityEntity")))==null?void 0:t.addToOfflineButtonState)!=null?M:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):H="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return H};
ypb=function(f,H){f=f.entities;if(H){H=AcR(H);var v,t;H=(t=(v=_.dL(f,"offlineabilityEntity",_.SB(H,"offlineabilityEntity")))==null?void 0:v.addToOfflineButtonState)!=null?t:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else H="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return H};
_.Yzr=function(f){var H=f.entities;f=_.GZ(f);var v=No3(H,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.J("kevlar_modern_downloads_page")&&v)var t=!1;else{var M,h;H=(h=(M=((t=H.downloadsPageViewConfigurationEntity)!=null?t:{})[_.Dq])==null?void 0:M.smartDownloadsOptInBannerVisibility)!=null?h:{};t=f?!!H.visibleWithConnection:!!H.visibleWithoutConnection}return t};
_.mBb=function(f){return No3(f.entities,"SMART_DOWNLOADS_ENABLED")};
_.$BN=function(f){return uzH(f.entities)};
WHs=function(f){return _.o5(f.entities).every(function(H){var v;return(H==null?void 0:(v=H.transferEntity)==null?void 0:v.transferState)&&!EWR.includes(H.transferEntity.transferState)})};
_.OMR=function(f){var H,v,t,M=(t=(v=((H=f.entities.downloadsPageViewConfigurationEntity)!=null?H:{})[_.Dq])==null?void 0:v.downloadsUpsellBannerVisibility)!=null?t:{};return _.GZ(f)?!!M.visibleWithConnection:!!M.visibleWithoutConnection};
_.gig=function(f,H){return qp3(f.entities,H)};
I5v=function(f,H){if(H){var v,t;f=(t=(v=_.dL(f.entities,"downloadStatusEntity",_.SB(H,"downloadStatusEntity")))==null?void 0:v.downloadState)!=null?t:"DOWNLOAD_STATE_UNKNOWN"}else f="DOWNLOAD_STATE_UNKNOWN";return f};
ca=function(f,H){return YI_(f.entities,H)};
sjs=function(f){f=_.SzT(f);var H=f.hours===void 0?0:f.hours,v=f.minutes===void 0?0:f.minutes,t=f.seconds===void 0?0:f.seconds,M=H>0;f=[];M&&(H=_.dBe(H),f.push(H));H=M;H=H===void 0?!1:H;v=(["af","be","lt"].includes(_.XG)||H)&&v<10?jjH().format(v):(new Intl.NumberFormat("en-u-nu-latn")).format(v);f.push(v);v=jjH().format(t);f.push(v);v=":";"da fi id si sr sr-Latn".split(" ").includes(_.XG)&&(v=".");return f.join(v)};
_.SzT=function(f){var H=f.hours||0,v=f.minutes||0,t=f.seconds||0;H=t+v*60+H*3600+(f.days||0)*86400+(f.weeks||0)*604800+(f.months||0)*2629800+(f.years||0)*31557600;if(H<=0)return{hours:0,minutes:0,seconds:0};f=H;H=Math.floor(f/3600);f%=3600;v=Math.floor(f/60);t=Math.floor(f%60);return{hours:H,minutes:v,seconds:t}};
_.dBe=function(f){f=(new Intl.NumberFormat("en-u-nu-latn")).format(f);var H=["fr"],v="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" ");return"af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(_.XG)?f.replace(",","\u00a0"):H.includes(_.XG)?f.replace(",","\u202f"):v.includes(_.XG)?f.replace(",","."):f};
jjH=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
ZMR=function(f){try{return(new _.Ad(5)).format(f)}catch(H){}};
bA=function(f){return{thumbnailOverlayDownloadingRenderer:{state:f}}};
JpE=function(f){if(f=ZMR(f))return{thumbnailOverlaySidePanelRenderer:{text:_.hd(f),icon:{iconType:"PLAYLISTS"}}}};
l5E=function(){var f=_.ZC("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.hd(f),icon:{iconType:"PLAY_ALL"}}}};
UBb=function(f){f=_.iA(f,2);return _.XG!=="ru"&&_.XG!=="es_419"&&_.XG!=="es-419"&&_.XG!=="es"&&_.XG!=="es_US"&&_.XG!=="es-US"&&_.XG!=="fr"&&_.XG!=="pl"&&_.XG!=="it"&&_.XG!=="nl"&&_.XG!=="uk"&&_.XG!=="fr_CA"&&_.XG!=="fr-CA"||f===""?f:f[0].toLocaleUpperCase()+f.substring(1)};
LHB=function(f){return function(H){var v=f(),t=_.iA(H,v.dateFormat);H=_.iA(H,v.timeFormat);var M=ePr.DATETIMEFORMATS[v.joinerStyle];M=M.replace(/'(?!')/g,"");M=M.replace("{0}",H);M=M.replace("{1}",t);return v.capitalize(M)}};
xBe=function(f){return f?typeof f.seconds==="string"&&(f.nanos===void 0||typeof f.nanos==="number"):!1};
B4E=function(f){return new Date(Number(f.seconds)*1E3+(f.nanos||0)*1E-6)};
_.iA=function(f,H){if(typeof f.getTime==="function")f={date:f};else if(xBe(f))f={date:B4E(f)};else if(typeof xBe(f.timestamp)&&typeof f.i18nInternalSecondsEastOfUtc==="number")f={date:B4E(f.timestamp),timeZone:kT(-f.i18nInternalSecondsEastOfUtc/60)};else throw Error("Df`"+JSON.stringify(f));var v=f;f=v.date;v=v.timeZone;H=zPE(H).format(f,v);_.XG==="zh-TW"&&(f=v?Number(zPE("H").format(f,v)):f.getHours(),H=f<5?H.replace("\u4e0a\u5348","\u51cc\u6668"):f<8?H.replace("\u4e0a\u5348","\u65e9\u4e0a"):f<12?
H.replace("\u4e0a\u5348","\u4e0a\u5348"):f<13?H.replace("\u4e0b\u5348","\u4e2d\u5348"):f<19?H.replace("\u4e0b\u5348","\u4e0b\u5348"):H.replace("\u4e0b\u5348","\u665a\u4e0a"));return H};
zPE=function(f){if(FH5.has(f))return FH5.get(f);var H=rpg(f);H=KHs(H);DBr!==!0&&(DBr=!0);oiH=!0;oiH=!1;H=new TZ(H,ePr);FH5.set(f,H);return H};
rpg=function(f){return(new TZ(f,ePr)).patternParts_.map(function(H){return H.type===0?"'"+H.text+"'":H.text}).join("")};
KHs=function(f){return _.XG==="en"||_.XG==="es_US"||_.XG==="es-US"?f:f.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(H,v,t){return"H".repeat(v.length)+t})};
jMe=function(f,H){nig||(_.wL=_.pHB,nig=new QjR);var v=nig;a:if(f=u9E(f),H=u9E(H||new Date),f>H)v=f.getTime()-H.getTime()>6048E5?_.iA(f,1):IsB(f);else{for(var t=0;SLR(f,12*(t+1))<H;)++t;if(t>0)v=v.format(-t,0);else{for(t=0;SLR(f,t+1)<H;)++t;if(t>0)v=v.format(-t,2);else{f=H.getTime()-f.getTime();H=_.V(d8N);for(t=H.next();!t.done;t=H.next()){t=t.value;var M=t.unit,h=Math.floor(f/t.unitDuration);if(h>=(t.threshold===void 0?1:t.threshold)){v=v.format(-h,M);break a}}v=v.format(-0,7)}}}return v};
u9E=function(f){if(typeof f.getTime==="function")return f;if(xBe(f))return B4E(f);throw Error("Ef`"+JSON.stringify(f));};
SLR=function(f,H){for(var v=0,t;;++v)if(t=new Date(f.getFullYear(),f.getMonth()+H,f.getDate()-v,f.getHours(),f.getMinutes(),f.getSeconds()),t.getMonth()===(f.getMonth()+H)%12)return t};
_.qO=function(f){return{runs:[{text:f}]}};
_.fG=function(f){if(f&&f.simpleText)return f.simpleText;var H="";if(f&&f.runs)for(var v=0;v<f.runs.length;v++)f.runs[v].text&&(H+=f.runs[v].text);return H};
ZWs=function(f,H,v,t){return f.videoEntity&&!f.policyEntity&&v!=="DOWNLOAD_STATE_FAILED"?[bA("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:LY(f.policyEntity)&&H!=="TRANSFER_STATE_FAILED"&&H!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?H==="TRANSFER_STATE_PAUSED_BY_USER"?[bA("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.xT(H)?[bA("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:f.videoEntity.lengthSeconds?sMv(f.videoEntity.lengthSeconds,t):[]:
[bA("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
sMv=function(f,H){var v=[{thumbnailOverlayTimeStatusRenderer:{text:_.hd(sjs({seconds:f})),style:"DEFAULT"}}];H&&(f=H<=0||f<=0?0:H>=f?100:Math.ceil(H*100/f),f>0&&v.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:f}}));return v};
J$E=function(f,H,v,t,M){if(H==="TRANSFER_STATE_UNKNOWN"||!f)return{};if(_.xT(H)||H==="TRANSFER_STATE_PRE_TRANSFER")var h=[bA("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var y,m;if(H==="TRANSFER_STATE_COMPLETE"&&((y=f.mainPlaylistEntity)==null?0:(m=y.videos)==null?0:m.length)){if(_.J("web_modern_collections_v2")){var W;var I=(h=f.mainPlaylistEntity)==null?void 0:(W=h.videos)==null?void 0:W.length;h=(h=ZMR(I))?{thumbnailOverlayBottomPanelRenderer:{text:_.hd(h),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var S;h=JpE((I=f.mainPlaylistEntity)==null?void 0:(S=I.videos)==null?void 0:S.length)}var d;h=[l5E(),Object.assign({},(d=h)!=null?d:{})]}else h=[]}d=h;a:if(H==="TRANSFER_STATE_PRE_TRANSFER")v=R5(_.ZC("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(H==="TRANSFER_STATE_TRANSFER_IN_QUEUE")v=R5(_.ZC("WAITING_TO_DOWNLOAD"));else if(_.xT(H))v=Math.floor(v*100).toString(),v=R5(_.ZC("DOWNLOADING_PERCENT",{percent:v},"Downloading... "+v+"%"));else{if(t&&(_.J("playlist_is_offline_selector_killswitch")&&
(M=_.t8().resolve(_.Aa).isNetworkAvailable()),M)){v=q83(_.ZC("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),TS5(t));break a}v=void 0}H=H==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.ZC("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},d.length?{thumbnailOverlays:d}:{},v?{viewPlaylistText:v}:{viewPlaylistText:_.qO("")},H.length?{badges:H}:{})};
lsg=function(f,H,v,t,M,h){if(H==="TRANSFER_STATE_UNKNOWN"||!f)return{};if(t==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var y=ZWs(f,H,t);if(f.videoEntity&&!f.policyEntity&&t!=="DOWNLOAD_STATE_FAILED"){var m=_.ZC("WAITING_TO_DOWNLOAD");if(m)return{shortViewCountText:_.qO(m),publishedTimeText:void 0,thumbnailOverlays:y}}if(!LY(f.policyEntity)){h=f.policyEntity&&!Xdv(f.policyEntity)?_.ZC("DOWNLOAD_EXPIRED",{},"Download expired"):
_.ZC("TRANSFER_FAILED",{},"Download failed");var W;if((W=f.policyEntity)==null?0:W.shortMessageForDisabledAction)h=f.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:R5(h),publishedTimeText:void 0,thumbnailOverlays:y}}if(H==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.qO(_.ZC("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:y};if(H==="TRANSFER_STATE_FAILED"||H==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.qO(_.ZC("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:y};if(H==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(W=_.ZC("WAITING_TO_DOWNLOAD"),t==="DOWNLOAD_STATE_PAUSED"&&(W=_.ZC("DOWNLOAD_PAUSED",{},"Download paused")),W))return{shortViewCountText:_.qO(W),publishedTimeText:void 0,thumbnailOverlays:y};if(_.xT(H))return f=Math.floor(v*100).toString(),{shortViewCountText:_.qO(_.ZC("DOWNLOADING_PERCENT",{percent:f},"Downloading... "+f+"%")),publishedTimeText:void 0,thumbnailOverlays:y};H=void 0;f.videoEntity.publishedTimestampMillis&&
(H=new Date,M&&(H=new Date(M)),H=R5(jMe(new Date(Number(f.videoEntity.publishedTimestampMillis)),H)));M=[];_.J("kevlar_woffle_badge_killswitch")||(M=[{metadataBadgeRenderer:{label:_.ZC("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var I;f=R5((I=f.videoEntity.localizedStrings)==null?void 0:I.viewCount);return Object.assign({},h?{shortViewCountText:void 0}:{shortViewCountText:f},h?{}:{publishedTimeText:H},{badges:M,thumbnailOverlays:y})};
e53=function(f,H){f=f===void 0?U8R:f;switch(H.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:H.payload.playlistId,inviteLinkURL:H.payload.inviteLinkUrl};default:return f}};
x8R=function(f,H){f=f===void 0?LJT:f;switch(H.type){case "SET_CURRENT_FORM_ID":return H=H.payload.formId,f.currentFormId===H?f:{currentFormId:H,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var v=H.payload;H=v.groupId;v=v.command;if(f.currentFormId){var t=Object.assign({},f.commandsMap);t[H]=v;f=Object.assign({},f,{commandsMap:t})}return f;case "RESET_COMMAND_MAP":return Object.assign({},f,{commandsMap:{}});default:return f}};
z5v=function(f,H){f=f===void 0?Btr:f;switch(H.type){case "UPDATE_CANVAS_MODE":return Object.assign({},f,{currentMode:H.payload.currentMode});default:return f}};
r$H=function(f,H){f=f===void 0?FJ5:f;switch(H.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},f,{guideIsExpanded:H.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},f,{scrollAtTop:H.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},f,{guideIsVisibleButNotPersistent:H.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},f,{miniplayerIsActive:H.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},f,{singleOptionSurveyIsActive:H.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},f,{slimlineSurveyRatingSelectedIndex:H.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},f,{richGridMiniMode:H.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},f,{richGridItemsPerRow:H.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},f,{richGridSlimItemsPerRow:H.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},f,{richGridContainerWidth:H.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},f,{richGridStyle:H.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},f,{currentPageType:H.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},f,{inlinePreviewIsActive:H.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},f,{inlinePreviewIsEnabled:H.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},f,{darkModeIsEnabled:H.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
f,{miniplayerPlaybackState:H.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},f,{tabGesturesIsActive:H.payload});case "SET_ONLINE_STATUS":return Object.assign({},f,{isOnline:H.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},f,{chipBarIsSticky:H.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},f,{frostedGlassMode:H.payload});default:return f}};
D8v=function(f,H){f=f===void 0?KJH:f;switch(H.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},f,{transcription:H.payload});case "SET_OVERLAY_STATE":return Object.assign({},f,{overlay:H.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return f}};
EpT=function(){return se(Object.assign({},{continuation:opE,download:npv,canvas:z5v,reportChannelAbuse:pps,share:QME,talkToRecs:uoR,ui:r$H,voiceSearch:D8v,watch:asR,ypc:PMR,shorts:G$R,radioButtonGroup:x8R,collabInviteLink:e53},CMH))};
Xpe=function(){return _.J("web_player_entities_middleware")?new HS(EpT(),[NtT,c$g]):new HS(EpT(),[NtT])};
_.vS=function(){A$r||(A$r=Xpe());return A$r};
bWR=function(f,H,v){if(f.length)return{titleText:_.hd(H!=null?H:_.ZC("DOWNLOADS",void 0,"Downloads")),contents:f.map(function(t){var M=t.videoEntity;t={videoId:M.videoId,title:R5(M.title),shortBylineText:R5(t.channelEntity.title),thumbnail:M.thumbnail};var h=M.videoId?ca(_.vS().getState(),M.videoId):0;M.videoId&&v?t.navigationEndpoint=_.MO(M.videoId,v,void 0,void 0,h):M.videoId&&(t.navigationEndpoint=kAB(M.videoId,h,M.lengthSeconds));M.lengthSeconds&&(t.thumbnailOverlays=sMv(M.lengthSeconds,h));return{playlistPanelVideoRenderer:t}}),
totalVideos:f.length}};
iWs=function(f){return(f=(0,_.QA.getValueByKeys)(f,"playlistId"))?{playlistId:f}:null};
k$b=function(){return{}};
TtN=function(f,H){return new _.IO(function(v,t){f.then(function(M){if(M){if(M=H(M))return v(M);t()}},t)})};
wp_=function(f){var H,v,t,M=(H=f.contents)==null?void 0:(v=H.twoColumnWatchNextResults)==null?void 0:(t=v.autoplay)==null?void 0:t.autoplay,h,y,m;H=(h=f.contents)==null?void 0:(y=h.twoColumnWatchNextResults)==null?void 0:(m=y.playlist)==null?void 0:m.playlist;return M&&H&&H.playlistId?{rawResponse:f,autoplayRenderer:M,playlistPanelRenderer:H,playlistId:H.playlistId}:null};
fuv=function(f){var H=H===void 0?"UNKNOWN_INTERFACE":H;if(f.length===1)return f[0];var v=qL5[H];if(v){v=new RegExp(v);for(var t=_.V(f),M=t.next();!M.done;M=t.next())if(M=M.value,v.exec(M))return M}var h=[];Object.entries(qL5).forEach(function(y){var m=_.V(y);y=m.next().value;m=m.next().value;H!==y&&h.push(m)});
v=new RegExp(h.join("|"));f.sort(function(y,m){return y.length-m.length});
t=_.V(f);for(M=t.next();!M.done;M=t.next())if(M=M.value,!v.exec(M))return M;return f[0]};
_.tt=function(f){return"/youtubei/v1/"+fuv(f)};
_.MS=function(f){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:f}}}}};
_.ht=function(f){return _.MS(_.qO(f))};
Hms=function(f,H){var v={mode:"NORMAL"};f&&(v.autoplayVideo=f.navigationEndpoint,v.nextButtonVideo=f.navigationEndpoint);H&&(v.previousButtonVideo=H.navigationEndpoint);return v};
M5r=function(f,H,v){if(!v||!v.sets)return{sets:[Hms(f,H)]};var t=v.sets.find(function(y){return y.mode==="NORMAL"}),M=(0,_.QA.unsafeClone)(v);
if(!t)return M.sets.push(Hms(f,H)),M;if(!f)return v;t=_.QA.getValueByKeys.apply(null,[t].concat(_.pS(vIb)));var h=_.QA.getValueByKeys.apply(null,[f].concat(_.pS(t5r)));if(t===h)return v;M.sets=M.sets.filter(function(y){return y.mode!=="NORMAL"});
M.sets.push(Hms(f,H));return M};
hBs=function(f){return!!f.playlistPanelVideoRenderer&&!f.playlistPanelVideoRenderer.unplayableText};
RBb=function(f){return!!f.playlistPanelVideoRenderer&&!!f.playlistPanelVideoRenderer.title};
V5e=function(f,H){if(H.contents&&!(f>=H.contents.length)&&(f=H.contents.slice(f).find(hBs)))return f.playlistPanelVideoRenderer};
y_B=function(f,H){if(H.contents)return(H=H.contents.find(function(v){return!!v.playlistPanelVideoRenderer&&v.playlistPanelVideoRenderer.videoId===f}))?H.playlistPanelVideoRenderer:void 0};
Yhr=function(f,H){return H.contents?H.contents.findIndex(function(v){return!!v.playlistPanelVideoRenderer&&v.playlistPanelVideoRenderer.videoId===f}):-1};
mWR=function(f,H){return H.contents?H.contents.findIndex(function(v){return!!v.playlistPanelVideoRenderer&&v.playlistPanelVideoRenderer.playlistSetVideoId===f}):-1};
$W_=function(f,H){f.contents&&H!==-1&&f.contents.splice(H,1).length===1&&f.totalVideos!==void 0&&(--f.totalVideos,delete f.videoCountText)};
_.WyR=function(f){var H=[];if(!f||!f.contents)return H;f=_.V(f.contents);for(var v=f.next();!v.done;v=f.next())v=v.value,v.playlistPanelVideoRenderer&&v.playlistPanelVideoRenderer.videoId&&H.push(v.playlistPanelVideoRenderer.videoId);return H};
_.Omv=function(f){if(f&&f.contents)return(f=f.contents.find(function(H){return!!H.playlistPanelVideoRenderer&&!!H.playlistPanelVideoRenderer.selected})||f.contents[f.currentIndex])?f.playlistPanelVideoRenderer:void 0};
gIv=function(f,H,v,t,M,h,y){M=M===void 0?!1:M;h=h===void 0?!1:h;y=y===void 0?!1:y;if(f.contents&&f.contents.length!==0){t&&(f.contents=f.contents.filter(t));t=f.contents.length;for(var m=0;m<t;m++){var W=f.contents[m].playlistPanelVideoRenderer;W&&(m===H?(h&&delete W.menu,W.indexText=_.qO("\u25b6")):M||f.isInfinite||W.indexText===void 0?delete W.indexText:W.indexText=_.qO((m+1+v).toString()))}f.currentIndex=H+v;y&&(delete f.videoCountText,f.totalVideos=t)}};
_.R9=function(f){f=Iu3(f);if(f){var H=f.length;var v=-37%H;v<0&&(v=H+v);f=f.slice(H-v)+f.slice(0,H-v)}else f="";v="";for(H=0;H<f.length&&f[H]!==ShE;H++)v+=f[H];return v};
_.dWT=function(f,H){var v=document.body;H=H===void 0?function(m){return m}:H;
var t,M=null;f=_.V(f);for(t=f.next();!t.done;t=f.next()){var h=t.value;t="div";h[2]&&(t=H(h[2]));t=document.createElement(t);M||(M=t);var y=h[0];h=h[1];y&&(t.id=H(y));if(h)for(h=_.V(h),y=h.next();!y.done;y=h.next())t.classList.add(H(y.value));v.appendChild(t);v=t}return[M,v]};
jiE=function(f,H){for(var v="",t=0;t<H;t++)v+=f.charAt(Math.floor(Math.random()*f.length));return v};
VS=function(f){return jiE("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",f)};
yS=function(f){return jiE("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",f)};
Yz=function(f){return jiE("0123456789",f)};
mN=function(){var f=performance.now(),H=new Date;var v="2."+H.getFullYear()+String(H.getMonth()+1).padStart(2,"0")+String(H.getDate()).padStart(2,"0");for(var t,M=Math.floor(Math.random()*11)+15,h=[],y=0;y<M;y++)h.push(Math.floor(Math.random()*26476865)+24547720);t=h.join(",");var m=VS(10),W=VS(100),I=VS(102),S=VS(106),d=VS(108),Z=VS(11),l=VS(1140),L=VS(123),r=VS(14),n=VS(16),Q=VS(1900),C=VS(23),w=VS(26),c=VS(34),A=VS(397),X=VS(44),fg=VS(5),gB=VS(72),O5=VS(74),s5=VS(75),U5=VS(88),lH=VS(91),E5="rr5---sn-5hne6nsd rr2---sn-5hneknek rr4---sn-5hne6nsy rr5---sn-q4fl6n6z rr1---sn-aigl6nzl rr3---sn-5hneknek rr1---sn-q4fl6nsl rr4---sn-5hnednss rr1---sn-q4fl6nz6 rr4---sn-4g5edndk rr2---sn-ntq7yned rr2---sn-ntqe6n7k rr2---sn-q4fl6nz6 rr3---sn-q4flrn7k rr4---sn-ntqe6nes rr3---sn-q4fl6nd7 rr5---sn-q4flrn7r rr4---sn-q4fl6nzy rr3---sn-q4fl6nde rr5---sn-ntqe6nel".split(" ");
var uH=E5[Math.floor(Math.random()*E5.length)];var Rn=(new Date("2010-01-01")).getTime();var pr=(new Date(Rn+Math.random()*((new Date).getTime()-Rn))).toISOString().split("T")[0];for(var gh,fr=[],sb=0;sb<4;sb++)fr.push(Math.floor(Math.random()*100));gh=fr.join(".");var In=Number(Yz(5)),Kr=Number(Yz(6)),BA=Number(Yz(7)),TH=Number(Yz(9)),hN=Yz(1),Ho=Yz(10),J9=Yz(16),Ox=Yz(19),lC=Yz(2),vA=Yz(20),Rd=Yz(21),HA=Yz(3),$g=Yz(4),iC=Yz(5),jp=Yz(6),zH=Yz(7),Fa=Yz(8),lt=Yz(9);var Oq=jiE("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var di=[yS(5),yS(5),yS(5)].join("%2C"),zf=[Yz(3),Yz(5),Yz(5)].join("%2C"),lK=yS(0),Eb=yS(1),PA=yS(10),Xb=yS(108),YU=yS(11),MR=yS(12),mS=yS(13),U0=yS(14),Jm=yS(15),Go=yS(16),RW=yS(17),zb=yS(18),a3=yS(19),Xe=yS(2),dh=yS(20),gi=yS(22),DM=yS(23),L0=yS(24),ev=yS(266),Ub=yS(3),n0=yS(30),de=yS(34),jv=yS(35),UZ=yS(36),hr=yS(4),a1=yS(40),oh=yS(43),Q_=yS(47),iT=yS(5),FU=yS(6),IK=yS(7),kA=yS(75),bH=yS(8),sx=yS(80),p0=yS(9),yG="https://www."+yS(12)+".com",$O={},XU={},p9={},EV={},jf={},Mh={},hU={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:t}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:v},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+yS(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:v},{key:"client.name",value:"WEB"},{key:"client.fexp",value:t}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:Rd+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+yS(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:a1,ypcGetOfflineUpsellEndpoint:{params:sx}},trackingParams:jv+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+uH+".googlevideo.com/videoplayback?expire="+Ho+"&ei="+C+"&ip="+gh+"&id=o-AF"+oh+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+zf+"&mn="+di+"&ms="+di+"&mv="+Eb+"&mvi="+hN+"&pl="+lC+"&initcwndbps="+zH+"&siu="+hN+"&spc="+X+"&vprv="+hN+"&svpuc="+hN+"&mime=video%2Fmp4&ns="+L0+"&cnr="+lC+"&ratebypass=yes&dur="+Fa+"&lmt="+J9+"&mt="+Ho+"&fvip=3&c=WEB&txp="+zH+"&n="+n+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:Kr,width:640,height:360,lastModified:J9,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:zH,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+uH+".googlevideo.com/videoplayback?expire="+Ho+"&ei="+C+"&ip="+gh+"&id=o-AF"+oh+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+zf+"&mn="+
di+"&ms="+di+"&mv="+Eb+"&mvi="+hN+"&pl="+lC+"&initcwndbps="+zH+"&siu="+hN+"&spc="+X+"&vprv="+hN+"&svpuc="+hN+"&mime=video%2Fmp4&ns="+L0+"&cnr="+lC+"&ratebypass=yes&dur="+Fa+"&lmt="+J9+"&mt="+Ho+"&fvip=3&c=WEB&txp="+zH+"&n="+n+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+Xb+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:Kr,width:1280,
height:720,lastModified:J9,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:zH,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+uH+".googlevideo.com/videoplayback?expire="+Ho+"&ei="+C+"&ip="+gh+"&id=o-AF"+oh+"&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="+zf+"&mn="+di+"&ms="+
di+"&mv="+Eb+"&mvi="+hN+"&pl="+lC+"&initcwndbps="+zH+"&siu="+hN+"&spc="+X+"&vprv="+hN+"&svpuc="+hN+"&mime=video%2Fmp4&ns="+L0+"&gir="+Ub+"&clen="+lt+"&dur="+Fa+"&lmt="+J9+"&mt="+Ho+"&fvip=3&keepalive="+Ub+"&c=WEB&txp="+zH+"&n="+Go+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+W+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:BA,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:HA,end:$g},lastModified:J9,contentLength:lt,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:BA,approxDurationMs:zH},{itag:248,url:"https://"+uH+".googlevideo.com/videoplayback?expire="+Ho+"&ei="+C+"&ip="+gh+"&id=o-AF"+oh+"&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="+zf+"&mn="+di+"&ms="+di+"&mv="+
Eb+"&mvi="+hN+"&pl="+lC+"&initcwndbps="+zH+"&siu="+hN+"&spc="+X+"&vprv="+hN+"&svpuc="+hN+"&mime=video%2Fwebm&ns="+L0+"&gir="+Ub+"&clen="+lt+"&dur="+Fa+"&lmt="+J9+"&mt="+Ho+"&fvip=3&keepalive="+Ub+"&c=WEB&txp="+zH+"&n="+Go+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/webm; codecs="vp9"',bitrate:BA,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:HA,end:$g},lastModified:J9,contentLength:lt,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:BA,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:zH},{itag:399,url:"https://"+uH+".googlevideo.com/videoplayback?expire="+Ho+"&ei="+C+"&ip="+gh+"&id=o-AF"+oh+"&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="+
zf+"&mn="+di+"&ms="+di+"&mv="+Eb+"&mvi="+hN+"&pl="+lC+"&initcwndbps="+zH+"&siu="+hN+"&spc="+X+"&vprv="+hN+"&svpuc="+hN+"&mime=video%2Fmp4&ns="+L0+"&gir="+Ub+"&clen="+lt+"&dur="+Fa+"&lmt="+J9+"&mt="+Ho+"&fvip=3&keepalive="+Ub+"&c=WEB&txp="+zH+"&n="+Go+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+W+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:BA,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:HA,end:$g},lastModified:J9,contentLength:lt,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:BA,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:zH},{itag:136,url:"https://"+uH+".googlevideo.com/videoplayback?expire="+Ho+"&ei="+C+"&ip="+gh+"&id=o-AF"+oh+"&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="+
zf+"&mn="+di+"&ms="+di+"&mv="+Eb+"&mvi="+hN+"&pl="+lC+"&initcwndbps="+zH+"&siu="+hN+"&spc="+X+"&vprv="+hN+"&svpuc="+hN+"&mime=video%2Fmp4&ns="+L0+"&gir="+Ub+"&clen="+lt+"&dur="+Fa+"&lmt="+J9+"&mt="+Ho+"&fvip=3&keepalive="+Ub+"&c=WEB&txp="+zH+"&n="+Go+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:BA,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:HA,end:$g},lastModified:J9,contentLength:lt,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Kr,approxDurationMs:zH},{itag:247,url:"https://"+uH+".googlevideo.com/videoplayback?expire="+Ho+"&ei="+C+"&ip="+gh+"&id=o-AF"+oh+"&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="+zf+"&mn="+
di+"&ms="+di+"&mv="+Eb+"&mvi="+hN+"&pl="+lC+"&initcwndbps="+zH+"&siu="+hN+"&spc="+X+"&vprv="+hN+"&svpuc="+hN+"&mime=video%2Fwebm&ns="+L0+"&gir="+Ub+"&clen="+lt+"&dur="+Fa+"&lmt="+J9+"&mt="+Ho+"&fvip=3&keepalive="+Ub+"&c=WEB&txp="+zH+"&n="+Go+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/webm; codecs="vp9"',bitrate:BA,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:HA,end:$g},lastModified:J9,contentLength:lt,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Kr,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:zH},{itag:398,url:"https://"+uH+".googlevideo.com/videoplayback?expire="+Ho+"&ei="+C+"&ip="+gh+"&id=o-AF"+oh+"&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="+
zf+"&mn="+di+"&ms="+di+"&mv="+Eb+"&mvi="+hN+"&pl="+lC+"&initcwndbps="+zH+"&siu="+hN+"&spc="+X+"&vprv="+hN+"&svpuc="+hN+"&mime=video%2Fmp4&ns="+L0+"&gir="+Ub+"&clen="+lt+"&dur="+Fa+"&lmt="+J9+"&mt="+Ho+"&fvip=3&keepalive="+Ub+"&c=WEB&txp="+zH+"&n="+Go+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:BA,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:HA,end:$g},lastModified:J9,contentLength:lt,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Kr,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:zH},{itag:135,url:"https://"+uH+".googlevideo.com/videoplayback?expire="+Ho+"&ei="+C+"&ip="+gh+"&id=o-AF"+oh+"&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="+
zf+"&mn="+di+"&ms="+di+"&mv="+Eb+"&mvi="+hN+"&pl="+lC+"&initcwndbps="+zH+"&siu="+hN+"&spc="+X+"&vprv="+hN+"&svpuc="+hN+"&mime=video%2Fmp4&ns="+L0+"&gir="+Ub+"&clen="+Fa+"&dur="+Fa+"&lmt="+J9+"&mt="+Ho+"&fvip=3&keepalive="+Ub+"&c=WEB&txp="+zH+"&n="+Go+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Kr,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:HA,end:$g},lastModified:J9,contentLength:Fa,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Kr,approxDurationMs:zH},{itag:244,url:"https://"+uH+".googlevideo.com/videoplayback?expire="+Ho+"&ei="+C+"&ip="+gh+"&id=o-AF"+oh+"&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="+zf+"&mn="+
di+"&ms="+di+"&mv="+Eb+"&mvi="+hN+"&pl="+lC+"&initcwndbps="+zH+"&siu="+hN+"&spc="+X+"&vprv="+hN+"&svpuc="+hN+"&mime=video%2Fwebm&ns="+L0+"&gir="+Ub+"&clen="+Fa+"&dur="+Fa+"&lmt="+J9+"&mt="+Ho+"&fvip=3&keepalive="+Ub+"&c=WEB&txp="+zH+"&n="+Go+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Xb+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/webm; codecs="vp9"',bitrate:Kr,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:HA,end:$g},lastModified:J9,contentLength:Fa,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Kr,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:zH},{itag:397,url:"https://"+uH+".googlevideo.com/videoplayback?expire="+Ho+"&ei="+C+"&ip="+gh+"&id=o-AF"+oh+"&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="+
zf+"&mn="+di+"&ms="+di+"&mv="+Eb+"&mvi="+hN+"&pl="+lC+"&initcwndbps="+zH+"&siu="+hN+"&spc="+X+"&vprv="+hN+"&svpuc="+hN+"&mime=video%2Fmp4&ns="+L0+"&gir="+Ub+"&clen="+Fa+"&dur="+Fa+"&lmt="+J9+"&mt="+Ho+"&fvip=3&keepalive="+Ub+"&c=WEB&txp="+zH+"&n="+Go+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+W+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:Kr,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:HA,end:$g},lastModified:J9,contentLength:Fa,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Kr,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:zH},{itag:134,url:"https://"+uH+".googlevideo.com/videoplayback?expire="+Ho+"&ei="+C+"&ip="+gh+"&id=o-AF"+oh+"&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="+
zf+"&mn="+di+"&ms="+di+"&mv="+Eb+"&mvi="+hN+"&pl="+lC+"&initcwndbps="+zH+"&siu="+hN+"&spc="+X+"&vprv="+hN+"&svpuc="+hN+"&mime=video%2Fmp4&ns="+L0+"&gir="+Ub+"&clen="+Fa+"&dur="+Fa+"&lmt="+J9+"&mt="+Ho+"&fvip=3&keepalive="+Ub+"&c=WEB&txp="+zH+"&n="+Go+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:Kr,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:HA,end:$g},lastModified:J9,contentLength:Fa,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Kr,highReplication:!0,approxDurationMs:zH},{itag:243,url:"https://"+uH+".googlevideo.com/videoplayback?expire="+Ho+"&ei="+C+"&ip="+gh+"&id=o-AF"+oh+"&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="+
zf+"&mn="+di+"&ms="+di+"&mv="+Eb+"&mvi="+hN+"&pl="+lC+"&initcwndbps="+zH+"&siu="+hN+"&spc="+X+"&vprv="+hN+"&svpuc="+hN+"&mime=video%2Fwebm&ns="+L0+"&gir="+Ub+"&clen="+Fa+"&dur="+Fa+"&lmt="+J9+"&mt="+Ho+"&fvip=3&keepalive="+Ub+"&c=WEB&txp="+zH+"&n="+Go+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/webm; codecs="vp9"',bitrate:Kr,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:HA,end:$g},lastModified:J9,contentLength:Fa,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Kr,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:zH},{itag:396,url:"https://"+uH+".googlevideo.com/videoplayback?expire="+Ho+"&ei="+C+"&ip="+gh+"&id=o-AF"+oh+"&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="+
zf+"&mn="+di+"&ms="+di+"&mv="+Eb+"&mvi="+hN+"&pl="+lC+"&initcwndbps="+zH+"&siu="+hN+"&spc="+X+"&vprv="+hN+"&svpuc="+hN+"&mime=video%2Fmp4&ns="+L0+"&gir="+Ub+"&clen="+Fa+"&dur="+Fa+"&lmt="+J9+"&mt="+Ho+"&fvip=3&keepalive="+Ub+"&c=WEB&txp="+zH+"&n="+Go+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:Kr,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:HA,end:$g},lastModified:J9,contentLength:Fa,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Kr,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:zH},{itag:133,url:"https://"+uH+".googlevideo.com/videoplayback?expire="+Ho+"&ei="+C+"&ip="+gh+"&id=o-AF"+oh+"&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="+
zf+"&mn="+di+"&ms="+di+"&mv="+Eb+"&mvi="+hN+"&pl="+lC+"&initcwndbps="+zH+"&siu="+hN+"&spc="+X+"&vprv="+hN+"&svpuc="+hN+"&mime=video%2Fmp4&ns="+L0+"&gir="+Ub+"&clen="+Fa+"&dur="+Fa+"&lmt="+J9+"&mt="+Ho+"&fvip=3&keepalive="+Ub+"&c=WEB&txp="+zH+"&n="+Go+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:Kr,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:HA,end:$g},lastModified:J9,contentLength:Fa,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Kr,approxDurationMs:zH},{itag:242,url:"https://"+uH+".googlevideo.com/videoplayback?expire="+Ho+"&ei="+C+"&ip="+gh+"&id=o-AF"+oh+"&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="+zf+"&mn="+
di+"&ms="+di+"&mv="+Eb+"&mvi="+hN+"&pl="+lC+"&initcwndbps="+zH+"&siu="+hN+"&spc="+X+"&vprv="+hN+"&svpuc="+hN+"&mime=video%2Fwebm&ns="+L0+"&gir="+Ub+"&clen="+Fa+"&dur="+Fa+"&lmt="+J9+"&mt="+Ho+"&fvip=3&keepalive="+Ub+"&c=WEB&txp="+zH+"&n="+Go+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/webm; codecs="vp9"',bitrate:Kr,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:HA,end:$g},lastModified:J9,contentLength:Fa,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Kr,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:zH},{itag:395,url:"https://"+uH+".googlevideo.com/videoplayback?expire="+Ho+"&ei="+C+"&ip="+gh+"&id=o-AF"+oh+"&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="+
zf+"&mn="+di+"&ms="+di+"&mv="+Eb+"&mvi="+hN+"&pl="+lC+"&initcwndbps="+zH+"&siu="+hN+"&spc="+X+"&vprv="+hN+"&svpuc="+hN+"&mime=video%2Fmp4&ns="+L0+"&gir="+Ub+"&clen="+Fa+"&dur="+Fa+"&lmt="+J9+"&mt="+Ho+"&fvip=3&keepalive="+Ub+"&c=WEB&txp="+zH+"&n="+Go+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Kr,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:HA,end:$g},lastModified:J9,contentLength:Fa,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Kr,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:zH},{itag:160,url:"https://"+uH+".googlevideo.com/videoplayback?expire="+Ho+"&ei="+C+"&ip="+gh+"&id=o-AF"+oh+"&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="+
zf+"&mn="+di+"&ms="+di+"&mv="+Eb+"&mvi="+hN+"&pl="+lC+"&initcwndbps="+zH+"&siu="+hN+"&spc="+X+"&vprv="+hN+"&svpuc="+hN+"&mime=video%2Fmp4&ns="+L0+"&gir="+Ub+"&clen="+Fa+"&dur="+Fa+"&lmt="+J9+"&mt="+Ho+"&fvip=3&keepalive="+Ub+"&c=WEB&txp="+zH+"&n="+Go+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:Kr,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:HA,end:$g},lastModified:J9,contentLength:Fa,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:In,approxDurationMs:zH},{itag:278,url:"https://"+uH+".googlevideo.com/videoplayback?expire="+Ho+"&ei="+C+"&ip="+gh+"&id=o-AF"+oh+"&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="+zf+"&mn="+
di+"&ms="+di+"&mv="+Eb+"&mvi="+hN+"&pl="+lC+"&initcwndbps="+zH+"&siu="+hN+"&spc="+X+"&vprv="+hN+"&svpuc="+hN+"&mime=video%2Fwebm&ns="+L0+"&gir="+Ub+"&clen="+Fa+"&dur="+Fa+"&lmt="+J9+"&mt="+Ho+"&fvip=3&keepalive="+Ub+"&c=WEB&txp="+zH+"&n="+Go+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/webm; codecs="vp9"',bitrate:Kr,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:HA,end:$g},lastModified:J9,contentLength:Fa,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:In,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:zH},{itag:394,url:"https://"+uH+".googlevideo.com/videoplayback?expire="+Ho+"&ei="+C+"&ip="+gh+"&id=o-AF"+oh+"&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="+
zf+"&mn="+di+"&ms="+di+"&mv="+Eb+"&mvi="+hN+"&pl="+lC+"&initcwndbps="+zH+"&siu="+hN+"&spc="+X+"&vprv="+hN+"&svpuc="+hN+"&mime=video%2Fmp4&ns="+L0+"&gir="+Ub+"&clen="+Fa+"&dur="+Fa+"&lmt="+J9+"&mt="+Ho+"&fvip=3&keepalive="+Ub+"&c=WEB&txp="+zH+"&n="+Go+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+W+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:In,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:HA,end:$g},lastModified:J9,contentLength:Fa,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:In,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:zH},{itag:140,url:"https://"+uH+".googlevideo.com/videoplayback?expire="+Ho+"&ei="+C+"&ip="+gh+"&id=o-AF"+oh+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
zf+"&mn="+di+"&ms="+di+"&mv="+Eb+"&mvi="+hN+"&pl="+lC+"&initcwndbps="+zH+"&siu="+hN+"&spc="+X+"&vprv="+hN+"&svpuc="+hN+"&mime=audio%2Fmp4&ns="+L0+"&gir="+Ub+"&clen="+Fa+"&dur="+Fa+"&lmt="+J9+"&mt="+Ho+"&fvip=3&keepalive="+Ub+"&c=WEB&txp="+zH+"&n="+Go+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:Kr,
initRange:{start:"0",end:"631"},indexRange:{start:HA,end:$g},lastModified:J9,contentLength:Fa,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Kr,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:zH,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+uH+".googlevideo.com/videoplayback?expire="+Ho+"&ei="+C+"&ip="+gh+"&id=o-AF"+oh+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+zf+"&mn="+di+"&ms="+di+"&mv="+Eb+"&mvi="+hN+"&pl="+
lC+"&initcwndbps="+zH+"&siu="+hN+"&spc="+X+"&vprv="+hN+"&svpuc="+hN+"&mime=audio%2Fwebm&ns="+L0+"&gir="+Ub+"&clen="+zH+"&dur="+Fa+"&lmt="+J9+"&mt="+Ho+"&fvip=3&keepalive="+Ub+"&c=WEB&txp="+zH+"&n="+Go+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'audio/webm; codecs="opus"',bitrate:In,initRange:{start:"0",end:"265"},indexRange:{start:HA,
end:$g},lastModified:J9,contentLength:zH,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:In,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:zH,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+uH+".googlevideo.com/videoplayback?expire="+Ho+"&ei="+C+"&ip="+gh+"&id=o-AF"+oh+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+zf+"&mn="+di+"&ms="+di+"&mv="+Eb+"&mvi="+hN+"&pl="+lC+"&initcwndbps="+zH+"&siu="+hN+"&spc="+X+"&vprv="+hN+"&svpuc="+hN+"&mime=audio%2Fwebm&ns="+
L0+"&gir="+Ub+"&clen="+zH+"&dur="+Fa+"&lmt="+J9+"&mt="+Ho+"&fvip=3&keepalive="+Ub+"&c=WEB&txp="+zH+"&n="+Go+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+S+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'audio/webm; codecs="opus"',bitrate:In,initRange:{start:"0",end:"265"},indexRange:{start:HA,end:$g},lastModified:J9,contentLength:zH,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:In,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:zH,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+uH+".googlevideo.com/videoplayback?expire="+Ho+"&ei="+C+"&ip="+gh+"&id=o-AF"+oh+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+zf+"&mn="+di+"&ms="+di+"&mv="+Eb+"&mvi="+hN+"&pl="+lC+"&initcwndbps="+zH+"&siu="+hN+"&spc="+X+"&vprv="+hN+"&svpuc="+hN+"&mime=audio%2Fwebm&ns="+L0+"&gir="+Ub+"&clen="+Fa+"&dur="+Fa+"&lmt="+J9+"&mt="+Ho+"&fvip=3&keepalive="+Ub+"&c=WEB&txp="+
zH+"&n="+Go+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+W+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'audio/webm; codecs="opus"',bitrate:Kr,initRange:{start:"0",end:"265"},indexRange:{start:HA,end:$g},lastModified:J9,contentLength:Fa,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Kr,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:zH,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="+lt+"&docid="+Z+"&ei="+C+"&feature="+m+"&fexp="+lK+"&ns="+Xe+"&plid="+n+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Eb+"&el="+PA+"&len="+$g+"&of="+gi+
"&uga="+lC+"&vm="+ev},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+lt+"&docid="+Z+"&ei="+C+"&feature="+m+"&fexp="+lK+"&ns="+Xe+"&plid="+n+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Eb+"&el="+PA+"&len="+$g+"&of="+gi+"&uga="+lC+"&vm="+ev},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+lt+"&docid="+Z+"&ei="+C+"&feature="+m+"&fexp="+lK+"&ns="+Xe+"&plid="+n+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
Eb+"&el="+PA+"&len="+$g+"&of="+gi+"&uga="+lC+"&vm="+ev},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+C+"&m="+U5+"&oid="+gi+"&plid="+n+"&pltype="+IK+"&ptchn="+gi+"&ptk="+r+"&video_id="+Z},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+lt+"&docid="+Z+"&ei="+C+"&event="+U0+"&feature="+m+"&fexp="+lK+"&ns="+Xe+"&plid="+n+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Eb},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+Z+"&ei="+C+"&feature="+
m+"&len="+$g+"&ns="+Xe+"&plid="+n+"&ver="+hN,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+Z+"&caps="+Ub+"&opi="+lt+"&xoaf="+hN+"&hl="+Xe+"&ip="+gh+"&ipbits="+hN+"&expire="+Ho+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+gh+"&key="+Ub+"&lang="+fg,name:{simpleText:a3},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+Z+"&caps="+Ub+"&opi="+lt+"&xoaf="+hN+"&hl="+Xe+"&ip="+gh+"&ipbits="+hN+"&expire="+Ho+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+gh+"&key="+Ub+"&kind="+Ub+"&lang="+Xe,name:{simpleText:YU},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:YU,title:YU,lengthSeconds:"1155",keywords:[Jm,dh,YU,dh],
channelId:L0,isOwnerViewing:!1,shortDescription:iT,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+Z+"/hqdefault.jpg?sqp=-oaymwE"+UZ+"G&rs="+de,width:168,height:94},{url:"https://i.ytimg.com/vi/"+Z+"/hqdefault.jpg?sqp=-oaymwE"+UZ+"G&rs="+de,width:196,height:110},{url:"https://i.ytimg.com/vi/"+Z+"/hqdefault.jpg?sqp=-oaymwE"+UZ+"G&rs="+c,width:246,height:138},{url:"https://i.ytimg.com/vi/"+Z+"/hqdefault.jpg?sqp=-oaymwE"+UZ+"G&rs="+c,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
Z+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:zH,author:mS,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:zH,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+gi+"/featured_channel.jpg?v="+bH,width:40,height:40}]},trackingParams:jv+"=",navigationEndpoint:{clickTrackingParams:a1,commandMetadata:{webCommandMetadata:{url:"/channel/"+L0,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:L0}},channelName:mS,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:p0}]},subscribed:!1,enabled:!0,type:"FREE",channelId:L0,showPreferences:!1,subscribedButtonText:{runs:[{text:FU}]},unsubscribedButtonText:{runs:[{text:U0}]},trackingParams:jv+"=",unsubscribeButtonText:{runs:[{text:bH}]},serviceEndpoints:[{clickTrackingParams:a1,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[L0],params:bH}},{clickTrackingParams:a1,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:a1,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:jv+"=",dialogMessages:[{runs:[{text:MR},{text:IK},{text:dh}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:dh}]},serviceEndpoint:{clickTrackingParams:a1,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[L0],params:bH}},accessibility:{label:IK},trackingParams:jv+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:p0}]},accessibility:{label:IK},trackingParams:jv+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:mS}},unsubscribeAccessibility:{accessibilityData:{label:iT}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:Fa},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:a1,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:a1,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[L0],params:bH}},unsubscribeCommand:{clickTrackingParams:a1,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[L0],params:bH}},addToWatchLaterCommand:{clickTrackingParams:a1,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:YU,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:a1,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:YU}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+Z+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+UZ+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
Z+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+YU,width:1280,height:720},title:{simpleText:Jm},description:{simpleText:Jm},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+bH,externalChannelId:L0,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:zH,category:"Travel & Events",publishDate:pr,ownerChannelName:mS,uploadDate:pr}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:hr},trackingParams:jv+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:a1,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:jv+"="}}],headerText:{simpleText:dh},icon:{infoCardIconRenderer:{trackingParams:jv+"="}},closeButton:{infoCardIconRenderer:{trackingParams:jv+"="}},trackingParams:jv+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:jv+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+YU+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:Oq,interpreterSafeUrl:($O.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+n0+".js",$O),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:PA},{text:iT,bold:!0}]},endpoint:{clickTrackingParams:a1,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:jv+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:a3}]},actionButton:{buttonRenderer:{text:{runs:[{text:IK}]},navigationEndpoint:{clickTrackingParams:a1,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+Z,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
Z,target:"TARGET_NEW_WINDOW"}},trackingParams:jv+"="}},trackingParams:jv+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+gB+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+gB+"=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:zH,endMs:zH,title:{accessibility:{accessibilityData:{label:Jm}},simpleText:RW},metadata:{simpleText:zb},callToAction:{simpleText:dh},dismiss:{simpleText:PA},endpoint:{clickTrackingParams:a1,commandMetadata:{webCommandMetadata:{url:"/channel/"+L0,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:L0}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Go}]},subscribed:!1,enabled:!0,type:"FREE",channelId:L0,showPreferences:!1,
subscribedButtonText:{runs:[{text:PA}]},unsubscribedButtonText:{runs:[{text:mS}]},trackingParams:jv+"=",unsubscribeButtonText:{runs:[{text:PA}]},serviceEndpoints:[{clickTrackingParams:a1,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[L0],params:bH}},{clickTrackingParams:a1,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:a1,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:jv+
"=",dialogMessages:[{runs:[{text:Go},{text:a3},{text:mS}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:p0}]},serviceEndpoint:{clickTrackingParams:a1,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[L0],params:bH}},accessibility:{label:IK},trackingParams:jv+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:a3}]},
accessibility:{label:FU},trackingParams:jv+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:bH}},unsubscribeAccessibility:{accessibilityData:{label:PA}}}},trackingParams:jv+"=",isSubscribe:!0,id:vA}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+Z+"/hqdefault.jpg?sqp=-oaymwE"+UZ+"G&rs="+c,width:168,height:94},{url:"https://i.ytimg.com/vi/"+Z+"/hqdefault.jpg?sqp=-oaymwE"+UZ+"G&rs="+de,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+Z+"/hqdefault.jpg?sqp=-oaymwE"+UZ+"G&rs="+c,width:246,height:138},{url:"https://i.ytimg.com/vi/"+Z+"/hqdefault.jpg?sqp=-oaymwE"+UZ+"G&rs="+c,width:336,height:188},{url:"https://i.ytimg.com/vi/"+Z+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:zH,endMs:zH,title:{accessibility:{accessibilityData:{label:YU}},simpleText:bH},metadata:{simpleText:bH},endpoint:{clickTrackingParams:a1,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
YU,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:YU,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+uH+".googlevideo.com/videoplayback?source=youtube&oeis="+hN+"&c=WEB&oad="+$g+"&ovd="+$g+"&oaad="+iC+"&oavd="+iC+"&ocs="+HA+"&oewis="+hN+"&oputc="+hN+"&ofpcc="+hN+"&siu="+hN+"&msp="+hN+"&odepv="+hN+
"&id=o-AF"+oh+"&ip="+gh+"&initcwndbps="+zH+"&mt="+Ho+"&oweuc="+lK}}}}},trackingParams:jv+"=",id:vA,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:YU}},simpleText:bH},style:"DEFAULT"}}]}}],startMs:zH,trackingParams:jv+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:hN,offsetEndMilliseconds:iC},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+lt+";dc_trk_cid="+lt+";dc_dbm_token="+d+";ord="+Ho+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hN+";dc_rui="+hN+";dc_exteid="+vA+";dc_av="+HA+";dc_sk="+hN+";dc_ctype="+lC+";dc_ref=http://www.youtube.com/video/"+YU+";dc_pubid="+hN+";dc_btype=23?gclid="+lH+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
l+"____________"+L+"AxAA&sigh="+YU+"&cid="+w+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+hN+"&ns="+hN+"&event="+hN+"&device="+hN+"&content_v="+Z+"&el="+PA+"&ei="+C+"&devicever="+v+"&bti="+zH+"&format="+jp+"&break_type="+hN+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+hN+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+gh+"&slot_pos="+hN+"&slot_len="+hN+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+zf+"&ad_len="+iC+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
YU+"&aqi="+C+"&ad_rmp="+hN+"&sli="+hN}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+Z+"&cid="+w+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+Z+"&cid="+w+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hN+";dc_exteid="+vA+";met="+hN+";ecn"+hN+"="+hN+
";etm1="+hN+";eid1="+lC+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+Z+"&cid="+w+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hN+";dc_exteid="+vA+";met="+hN+";ecn"+hN+"="+hN+";etm1="+hN+";eid1="+jp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
l+"____________"+L+"AxAA&sigh="+Z+"&cid="+w+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hN+";dc_exteid="+vA+";met="+hN+";ecn"+hN+"="+hN+";etm1="+hN+";eid1="+lC+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+Z+"&cid="+w+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+Z+"&cid="+w+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hN+";dc_exteid="+vA+";met="+hN+";ecn"+hN+"="+hN+";etm1="+hN+";eid1="+lC+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+Z+"&cid="+w+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hN+";dc_exteid="+vA+";met="+hN+";ecn"+hN+"="+hN+";etm1="+hN+";eid1="+zH+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+Z+"&cid="+w+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
l+"____________"+L+"AxAA&sigh="+Z+"&cid="+w+"&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"+l+"____________"+L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&ctype="+HA+"&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"+
l+"____________"+L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_engaged_view&ctype="+HA+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hN+";dc_exteid="+vA+";met="+hN+";ecn"+hN+"="+hN+";etm1="+hN+";eid1="+jp+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
lt+";dc_trk_cid="+lt+";dc_dbm_token="+d+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hN+";ord="+lt+";dc_rui="+hN+";dc_exteid="+Ox+";dc_av="+hN+";dc_sk="+hN+";dc_ctype="+lC+";dc_pubid="+hN+";dc_btype=3?gclid="+lH+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+Z+"&cid="+w+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hN+";dc_exteid="+vA+";met="+hN+";ecn"+hN+"="+hN+";etm1="+hN+";eid1="+lC+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+I+"&sig="+DM+"&ad_cpn=[AD_CPN]&id="+FU+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+FU+"&dc_pubid="+hN+"&dc_exteid="+vA+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+Z+"&cid="+w+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+I+"&sig="+DM+"&ad_cpn=[AD_CPN]&id="+FU+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+hN},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+FU+"&avm="+hN+"&dc_pubid="+hN+"&dc_exteid="+
vA+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+Z+"&cid="+w+"&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="+hN+";dc_exteid="+vA+";met="+hN+";ecn"+hN+"="+hN+";etm1="+hN+";eid1="+lC+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
I+"&sig="+DM+"&ad_cpn=[AD_CPN]&id="+FU+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+hN},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+FU+"&dc_pubid="+hN+"&dc_exteid="+vA+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hN+";dc_exteid="+vA+";met="+hN+";ecn"+hN+"="+hN+";etm1="+hN+";eid1="+lC+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
hN+";dc_exteid="+vA+";met="+hN+";ecn"+hN+"="+hN+";etm1="+hN+";eid1="+jp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hN+";dc_exteid="+vA+";met="+hN+";ecn"+hN+"="+hN+";etm1="+hN+";eid1="+lC+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hN+";dc_exteid="+vA+";met="+hN+";ecn"+hN+"="+hN+";etm1="+hN+";eid1="+jp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+Z+"&cid="+w+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hN+";dc_exteid="+vA+";met="+hN+";ecn"+hN+"="+hN+";etm1="+hN+";eid1="+lC+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:a1,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_click_to_advertiser_site&ctype="+HA+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_click_to_advertiser_site&ctype="+
HA+"&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/"+Z+"/mqdefault.jpg",width:320,height:180}]},trackingParams:jv+"="},trackingParams:jv+
"=",templatedCountdown:{templatedAdText:{text:Jm,isTemplated:!0,trackingParams:jv+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:hr,isTemplated:!1,trackingParams:jv+"="},trackingParams:jv+"="}},trackingParams:jv+"=",skipOffsetMilliseconds:5E3}},trackingParams:jv+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:hr},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:a1,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
l+"____________"+L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_click_to_advertiser_site&ctype="+HA+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_click_to_advertiser_site&ctype="+HA+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:jv+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:IK,isTemplated:!1,trackingParams:jv+"="},trackingParams:jv+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:dh,isTemplated:!0,trackingParams:jv+"="}},trackingParams:jv+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:a1,openPopupAction:{popup:{aboutThisAdRenderer:{url:(XU.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+Q+"&hl="+Xe+"&origin=www.youtube.com&ata_theme="+hr,XU),trackingParams:jv+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:jv+"="}},hoverText:{runs:[{text:RW}]},trackingParams:jv+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Q_+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:jv+"="},headline:{text:MR,isTemplated:!1,trackingParams:jv+"="},description:{text:hr,
trackingParams:jv+"="},actionButton:{buttonRenderer:{text:{simpleText:a3},navigationEndpoint:{clickTrackingParams:a1,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+lt+";dc_trk_cid="+lt+";dc_dbm_token="+d+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hN+";ord="+lt+";dc_rui="+hN+";dc_exteid="+vA+";dc_av="+hN+";dc_sk="+hN+";dc_ctype="+lC+";dc_pubid="+hN+";dc_btype=3?gclid="+lH+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
l+"____________"+L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_click_to_advertiser_site&ctype="+HA+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_click_to_advertiser_site&ctype="+HA+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:jv+"="}},startMs:hN,trackingParams:jv+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:bH},elementId:Go}},elementId:bH,trackingParams:jv+"=",legacyInfoCardVastExtension:U0,sodarExtensionData:{siub:MR,bgub:Jm,scs:dh,bgp:U0},externalVideoId:YU,adLayoutLoggingData:{serializedAdServingDataEntry:U0},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Q_+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:jv+"="},
headline:{text:bH,isTemplated:!1,trackingParams:jv+"="},description:{text:bH,isTemplated:!1,trackingParams:jv+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:p0},navigationEndpoint:{clickTrackingParams:a1,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+lt+";dc_trk_cid="+lt+";dc_dbm_token="+d+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hN+";ord="+lt+";dc_rui="+hN+";dc_exteid="+
vA+";dc_av="+hN+";dc_sk="+hN+";dc_ctype="+lC+";dc_pubid="+hN+";dc_btype=3?gclid="+lH+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_click_to_advertiser_site&ctype="+HA+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+L+"AxAA&ase=2&num="+
hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_click_to_advertiser_site&ctype="+HA+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:jv+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:jv+"="}},navigationEndpoint:{clickTrackingParams:a1,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+lt+";dc_trk_cid="+
lt+";dc_dbm_token="+d+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hN+";ord="+lt+";dc_rui="+hN+";dc_exteid="+vA+";dc_av="+hN+";dc_sk="+hN+";dc_ctype="+lC+";dc_pubid="+hN+";dc_btype=3?gclid="+lH+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+Z+"&cid="+w+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+
L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_click_to_advertiser_site&ctype="+HA+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_click_to_advertiser_site&ctype="+HA+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:jv+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:jv+"="},abandonCommands:{commands:[{clickTrackingParams:a1,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+Z+"&cid="+w+"&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="+hN+";dc_exteid="+vA+";met="+hN+";ecn"+
hN+"="+hN+";etm1="+hN+";eid1="+lC+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:a1,commandExecutorCommand:{commands:[{clickTrackingParams:a1,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+Z+"&cid="+w+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:RW,isTemplated:!1,trackingParams:jv+
"="},trackingParams:jv+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:bH},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+Z+"&cid="+w+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hN+";dc_exteid="+vA+";met="+hN+";ecn"+hN+"="+hN+";etm1="+hN+";eid1="+zH+";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="+lt+";dc_trk_cid="+lt+";ord="+Ho+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hN+";dc_rui="+hN+";dc_exteid="+vA+";dc_av="+HA+";dc_sk="+hN+";dc_ctype="+lC+";dc_ref=http://www.youtube.com/video/"+YU+";dc_pubid="+hN+";dc_btype=23?gclid="+lH+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+l+"____________"+L+"AxAA&sigh="+YU+"&cid="+w+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+hN+"&ns="+hN+"&event="+hN+"&device="+hN+"&content_v="+Z+"&el="+PA+"&ei="+C+"&devicever="+v+"&bti="+zH+"&format="+jp+"&break_type="+hN+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+hN+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+gh+"&slot_pos="+hN+"&slot_len="+hN+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
zf+"&ad_len="+iC+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+YU+"&aqi="+C+"&ad_rmp="+hN+"&sli="+hN}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+YU+"&cid="+w+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+YU+"&cid="+w+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
hN+";dc_exteid="+vA+";met="+hN+";ecn"+hN+"="+hN+";etm1="+hN+";eid1="+lC+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+YU+"&cid="+w+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hN+";dc_exteid="+vA+";met="+hN+";ecn"+hN+"="+hN+";etm1="+hN+";eid1="+jp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+YU+"&cid="+w+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hN+";dc_exteid="+vA+";met="+hN+";ecn"+hN+"="+hN+";etm1="+hN+";eid1="+lC+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+YU+"&cid="+
w+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+YU+"&cid="+w+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hN+";dc_exteid="+vA+";met="+hN+";ecn"+hN+"="+hN+";etm1="+hN+";eid1="+lC+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
l+"____________"+L+"AxAA&sigh="+YU+"&cid="+w+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hN+";dc_exteid="+vA+";met="+hN+";ecn"+hN+"="+hN+";etm1="+hN+";eid1="+zH+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+YU+"&cid="+w+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+YU+"&cid="+w+"&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"+l+"____________"+L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&ctype="+HA+"&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"+l+"____________"+L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_engaged_view&ctype="+HA+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hN+";dc_exteid="+vA+";met="+hN+";ecn"+hN+"="+hN+";etm1="+hN+";eid1="+jp+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+YU+"&cid="+w+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hN+";dc_exteid="+vA+";met="+hN+";ecn"+hN+"="+hN+";etm1="+hN+";eid1="+lC+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+I+"&sig="+DM+"&ad_cpn=[AD_CPN]&id="+
FU+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+FU+"&dc_pubid="+hN+"&dc_exteid="+vA+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+YU+"&cid="+w+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+I+
"&sig="+DM+"&ad_cpn=[AD_CPN]&id="+FU+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+hN},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+FU+"&avm="+hN+"&dc_pubid="+hN+"&dc_exteid="+vA+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+YU+"&cid="+w+"&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="+hN+";dc_exteid="+vA+";met="+hN+";ecn"+hN+"="+hN+";etm1="+hN+";eid1="+lC+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+I+"&sig="+DM+"&ad_cpn=[AD_CPN]&id="+FU+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+hN},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+FU+"&dc_pubid="+hN+"&dc_exteid="+vA+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hN+";dc_exteid="+vA+";met="+hN+";ecn"+hN+"="+hN+";etm1="+hN+";eid1="+lC+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hN+";dc_exteid="+vA+";met="+hN+";ecn"+hN+"="+hN+";etm1="+hN+";eid1="+jp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
hN+";dc_exteid="+vA+";met="+hN+";ecn"+hN+"="+hN+";etm1="+hN+";eid1="+lC+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hN+";dc_exteid="+vA+";met="+hN+";ecn"+hN+"="+hN+";etm1="+hN+";eid1="+jp+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+YU+"&cid="+w+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hN+";dc_exteid="+vA+";met="+hN+";ecn"+hN+"="+hN+";etm1="+hN+";eid1="+lC+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:a1,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_click_to_advertiser_site&ctype="+
HA+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_click_to_advertiser_site&ctype="+HA+"&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/"+Z+"/mqdefault.jpg",width:320,height:180}]},trackingParams:jv+"="},trackingParams:jv+"=",templatedCountdown:{templatedAdText:{text:IK,isTemplated:!0,trackingParams:jv+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:bH,isTemplated:!1,trackingParams:jv+"="},trackingParams:jv+"="}},
trackingParams:jv+"=",skipOffsetMilliseconds:5E3}},trackingParams:jv+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:FU},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:a1,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_click_to_advertiser_site&ctype="+HA+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_click_to_advertiser_site&ctype="+HA+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:jv+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:PA,isTemplated:!1,trackingParams:jv+"="},trackingParams:jv+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Jm,
isTemplated:!0,trackingParams:jv+"="}},trackingParams:jv+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:a1,openPopupAction:{popup:{aboutThisAdRenderer:{url:(p9.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+Q+"&hl="+Xe+"&origin=www.youtube.com&ata_theme="+hr,p9),trackingParams:jv+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:jv+"="}},hoverText:{runs:[{text:iT}]},trackingParams:jv+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+O5+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:jv+"="},headline:{text:zb,isTemplated:!1,trackingParams:jv+"="},description:{text:IK,trackingParams:jv+"="},actionButton:{buttonRenderer:{text:{simpleText:Go},navigationEndpoint:{clickTrackingParams:a1,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
l+"____________"+L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_click_to_advertiser_site&ctype="+HA+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_click_to_advertiser_site&ctype="+HA+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:jv+"="}},startMs:hN,trackingParams:jv+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:mS},elementId:Go}},elementId:iT,trackingParams:jv+"=",legacyInfoCardVastExtension:mS,sodarExtensionData:{siub:dh,bgub:mS,scs:RW,bgp:hr},externalVideoId:YU,adLayoutLoggingData:{serializedAdServingDataEntry:U0},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+O5+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:jv+"="},headline:{text:Jm,
isTemplated:!1,trackingParams:jv+"="},description:{text:FU,isTemplated:!1,trackingParams:jv+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:hr},navigationEndpoint:{clickTrackingParams:a1,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_click_to_advertiser_site&ctype="+HA+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_click_to_advertiser_site&ctype="+HA+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:jv+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:jv+"="}},navigationEndpoint:{clickTrackingParams:a1,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
l+"____________"+L+"AxAA&sigh="+YU+"&cid="+w+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_click_to_advertiser_site&ctype="+HA+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+L+"AxAA&ase=2&num="+
hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_click_to_advertiser_site&ctype="+HA+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:jv+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:jv+"="},abandonCommands:{commands:[{clickTrackingParams:a1,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+YU+"&cid="+w+"&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="+hN+";dc_exteid="+vA+";met="+hN+";ecn"+hN+"="+hN+";etm1="+hN+";eid1="+lC+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:a1,commandExecutorCommand:{commands:[{clickTrackingParams:a1,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+YU+"&cid="+w+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:YU,isTemplated:!1,trackingParams:jv+"="},trackingParams:jv+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:a3},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+YU+"&cid="+w+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+hN+";dc_exteid="+vA+";met="+hN+";ecn"+hN+"="+hN+";etm1="+hN+";eid1="+
zH+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:dh}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:bH}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:iC,offsetEndMilliseconds:jp},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+C+"&m_pos="+lC+"&token=ALHj"+A+"&index="+hN+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+v+"&m_pos_ms="+iC}},adSlotLoggingData:{serializedSlotAdServingDataEntry:MR}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:jp,offsetEndMilliseconds:jp},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+C+"&m_pos="+HA+"&token=ALHj"+A+"&index="+hN+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
v+"&m_pos_ms="+jp}},adSlotLoggingData:{serializedSlotAdServingDataEntry:IK}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:jp,offsetEndMilliseconds:jp},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+C+"&m_pos="+HA+"&token=ALHj"+A+"&index="+hN+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
v+"&m_pos_ms="+jp}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Jm}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:jp,offsetEndMilliseconds:jp},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+C+"&m_pos="+HA+"&token=ALHj"+A+"&index="+hN+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
v+"&m_pos_ms="+jp}},adSlotLoggingData:{serializedSlotAdServingDataEntry:hr}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:jp,offsetEndMilliseconds:lC},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+C+"&m_pos="+HA+"&token=ALHj"+A+"&index="+hN+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
v+"&m_pos_ms="+jp}},adSlotLoggingData:{serializedSlotAdServingDataEntry:MR}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:lC,offsetEndMilliseconds:lC},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+C+"&m_pos="+lC+"&token=ALHj"+A+"&index="+hN+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
v+"&m_pos_ms="+lC}},adSlotLoggingData:{serializedSlotAdServingDataEntry:RW}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Go,isTemplated:!1,trackingParams:jv+"="},description:{text:p0,isTemplated:!1,trackingParams:jv+"="},actionButton:{buttonRenderer:{text:{simpleText:p0},navigationEndpoint:{clickTrackingParams:a1,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
lt+";dc_trk_cid="+lt+";dc_dbm_token="+d+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hN+";ord="+lt+";dc_rui="+hN+";dc_exteid="+vA+";dc_av="+hN+";dc_sk="+hN+";dc_ctype="+lC+";dc_pubid="+hN+";dc_btype=3?gclid="+lH+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_click_to_advertiser_site&ctype="+HA+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_click_to_advertiser_site&ctype="+HA+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:jv+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Q_+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:jv+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+s5+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:jv+"="},navigationEndpoint:{clickTrackingParams:a1,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+lt+";dc_trk_cid="+lt+";dc_dbm_token="+d+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hN+";ord="+lt+
";dc_rui="+hN+";dc_exteid="+vA+";dc_av="+hN+";dc_sk="+hN+";dc_ctype="+lC+";dc_pubid="+hN+";dc_btype=3?gclid="+lH+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_click_to_advertiser_site&ctype="+HA+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
l+"____________"+L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_click_to_advertiser_site&ctype="+HA+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:jv+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:a1,openPopupAction:{popup:{aboutThisAdRenderer:{url:(EV.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+Q+"&hl="+Xe+"&origin=www.youtube.com&ata_theme="+hr,EV),trackingParams:jv+"="}},popupType:"DIALOG"}},trackingParams:jv+"="}},hoverText:{runs:[{text:Jm}]},trackingParams:jv+"="}},adVideoId:YU,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+Z+"&cid="+w+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Go},associatedCompositePlayerBytesLayoutId:Go}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:Jm}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:RW,isTemplated:!1,trackingParams:jv+"="},description:{text:Jm,isTemplated:!1,trackingParams:jv+"="},actionButton:{buttonRenderer:{text:{simpleText:dh},navigationEndpoint:{clickTrackingParams:a1,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+
L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_click_to_advertiser_site&ctype="+HA+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_click_to_advertiser_site&ctype="+HA+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:jv+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+O5+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:jv+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+kA+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:jv+"="},navigationEndpoint:{clickTrackingParams:a1,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+L+"AxAA&ase=2&num="+
hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_click_to_advertiser_site&ctype="+HA+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_click_to_advertiser_site&ctype="+HA+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:jv+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:a1,openPopupAction:{popup:{aboutThisAdRenderer:{url:(jf.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+Q+"&hl="+Xe+"&origin=www.youtube.com&ata_theme="+hr,jf),trackingParams:jv+"="}},popupType:"DIALOG"}},trackingParams:jv+"="}},
hoverText:{runs:[{text:Go}]},trackingParams:jv+"="}},adVideoId:YU,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+YU+"&cid="+w+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:RW},associatedCompositePlayerBytesLayoutId:Go}},adSlotLoggingData:{serializedSlotAdServingDataEntry:U0}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Go,
isTemplated:!1,trackingParams:jv+"="},description:{text:RW,isTemplated:!1,trackingParams:jv+"="},actionButton:{buttonRenderer:{text:{simpleText:FU},navigationEndpoint:{clickTrackingParams:a1,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+lt+";dc_trk_cid="+lt+";dc_dbm_token="+d+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hN+";ord="+lt+";dc_rui="+hN+";dc_exteid="+vA+";dc_av="+hN+";dc_sk="+hN+";dc_ctype="+
lC+";dc_pubid="+hN+";dc_btype=3?gclid="+lH+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_click_to_advertiser_site&ctype="+HA+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+
c+"&adurl="+yG+"&label=video_click_to_advertiser_site&ctype="+HA+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:jv+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Q_+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:jv+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+s5+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:jv+
"="},navigationEndpoint:{clickTrackingParams:a1,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+lt+";dc_trk_cid="+lt+";dc_dbm_token="+d+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+hN+";ord="+lt+";dc_rui="+hN+";dc_exteid="+vA+";dc_av="+hN+";dc_sk="+hN+";dc_ctype="+lC+";dc_pubid="+hN+";dc_btype=3?gclid="+lH+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
l+"____________"+L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_click_to_advertiser_site&ctype="+HA+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+L+"AxAA&ase=2&num="+hN+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+c+"&adurl="+yG+"&label=video_click_to_advertiser_site&ctype="+HA+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:jv+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:a1,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Mh.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+Q+"&hl="+Xe+"&origin=www.youtube.com&ata_theme="+hr,Mh),trackingParams:jv+"="}},popupType:"DIALOG"}},trackingParams:jv+
"="}},hoverText:{runs:[{text:iT}]},trackingParams:jv+"="}},adVideoId:YU,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+L+"AxAA&sigh="+Z+"&cid="+w+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:zb},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:Go}},adSlotLoggingData:{serializedSlotAdServingDataEntry:YU}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:n0,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:n0,command:{innertubeCommand:{clickTrackingParams:a1,ypcGetOfflineUpsellEndpoint:{params:sx}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:jv+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:Ho,nanos:TH}}}},rhT=JSON.stringify(hU),RB=performance.now()-f;return{objectRepresentation:hU,jsonRepresentation:rhT,generationTime:RB}};
siB=function(f,H){if(f===H)return!0;if(!f||!H||typeof f!==typeof H)return!1;if(f instanceof Array&&H instanceof Array){if(f.length!==H.length)return!1;for(var v=0;v<f.length;v++)if(!siB(f[v],H[v]))return!1;return!0}if(typeof f==="object"&&typeof H==="object"&&f&&H){for(v in f)if(!(v in H&&siB(f[v],H[v])))return!1;for(var t in H)if(!(t in f))return!1;return!0}return!1};
_.WS=function(){if(!$z){$z=new s1(new Zme);var f=_.VQ("client_streamz_web_flush_count",-1);f!==-1&&($z.invocationLimit=f)}return $z};
O6=function(f,H,v,t){if(f===H)return!0;if(Array.isArray(f)&&Array.isArray(H)){if(f.length!==H.length)return!1;for(var M=0;M<f.length;M++)if(!O6(f[M],H[M],v,t))return!1;return!0}if(f instanceof Set||H instanceof Set){if(f instanceof Set&&H instanceof Set){if(f.size!==H.size)return!1;t=_.V(f.values());for(M=t.next();!M.done;M=t.next())if(!H.has(M.value))return!1;return!0}return!1}if(f instanceof Function){if(t)return!0;f.name===""&&_.oO(Error("If"),"ERROR");return!1}if(f instanceof Date&&H instanceof
Date)return f.getTime()===H.getTime();if(f instanceof Object&&H instanceof Object){if(J_v(f)&&J_v(H))try{return f.equals(H)}catch(y){_.oO(Error("Jf`"+y),"ERROR")}M=Object.getOwnPropertyNames(f).filter(function(y){return v?f[y]!==void 0:!0});
var h=Object.getOwnPropertyNames(H).filter(function(y){return v?H[y]!==void 0:!0});
if(M.length!==h.length)return!1;M=_.V(M);for(h=M.next();!h.done;h=M.next())if(h=h.value,!O6(f[h],H[h],v,t))return!1;return!0}return!1};
J_v=function(f){f=Object.getPrototypeOf(f).equals;return f instanceof Function&&f.length===1};
_.eBg=function(){return _.Y(function(f){if(f.nextAddress==1)return lu_!==2?f.jumpTo(2):f.yield(UWe(),3);f.nextAddress!=2&&(lu_=f.yieldResult);return f.return(lu_)})};
_.B$H=function(){return _.Y(function(f){if(f.nextAddress==1)return _.J("ab_pl_man")?LyN!==2?f.jumpTo(2):f.yield(xWr(),3):f.return(1);f.nextAddress!=2&&(LyN=f.yieldResult);return f.return(LyN)})};
r_R=function(){return _.Y(function(f){if(f.nextAddress==1)return _.J("ab_fk_sk_cl")?zBg!==2?f.jumpTo(2):f.yield(Fye(),3):f.return(1);f.nextAddress!=2&&(zBg=f.yieldResult);return f.return(zBg)})};
_.oIH=function(){return _.Y(function(f){if(f.nextAddress==1)return _.J("ab_det_apb_b")?KyB!==2?f.jumpTo(2):f.yield(DWb(),3):f.return(1);f.nextAddress!=2&&(KyB=f.yieldResult);return f.return(KyB)})};
Qiv=function(){var f;return _.Y(function(H){if(H.nextAddress==1)return H.yield(Promise.all([_.eBg(),_.oIH(),_.B$H(),r_R()]),2);if(H.nextAddress!=3)return nIE()?H.return(!0):H.yield(_.pG_(),3);f=H.yieldResult;return H.return(f===0)})};
nIE=function(){var f=!1,H=function(v,t){uiR.increment(t,v);v===0&&(f=!0)};
H(_.auE(),"j.s_");H(lu_,"f.i_");H(KyB,"a.b_");H(LyN,"p.m_");H(zBg,"i.f_");PmE===2&&(PmE=_.Glg(Cmr));H(PmE,"e.h_");_.J("ks_det_gpbl")||H(_.EI5(),"p.i_");_.J("ks_get_o_pp")||H(_.N$5(),"g.o_");_.J("ab_deg_unex_thr")||H(_.c_R(),"a.o_");H(XGE,"s.t_");_.J("ab_det_sc_inj_enf")&&H(_.A_B(),"s.i_");H(bme,"d.p_");H(_.imB(_.gZ),"o.p_");H(_.klb()===0?0:_.T$b(),"o.a_");return _.J("debug_sk_em_precheck")?!0:f};
qhs=function(){var f=[].concat(_.pS(wG_));try{var H=mN();f.push({jsonRepresentation:H.jsonRepresentation,objectRepresentation:H.objectRepresentation})}catch(v){f=[].concat(_.pS(wG_))}return f};
ffE=function(){var f=["adPlacements","adSlots"];try{return f.filter(function(){return!0}).length!==f.length?0:1}catch(H){return 0}};
_.N$5=function(){if(ffE()===0)return 0;var f=mN(),H=f.objectRepresentation,v=(0,_.QA.unsafeClone)(H),t=[];if(H&&typeof H==="object")for(var M in H)t.push(M);else return 4;f=f.objectRepresentation.adPlacements;if(!(f&&f.length>0))return 4;try{if(!siB(t,Object.getOwnPropertyNames(H)))return 0}catch(h){return 0}return siB(v,H)?1:0};
_.imB=function(f){if(!f||!f.length||typeof f==="string")return 0;for(var H=Object.getOwnPropertyNames(Object.prototype),v=0;v<f.length;v++)for(var t=_.R9(f[v]),M=_.V(H),h=M.next();!h.done;h=M.next())if(t===h.value)return 0;return 1};
HXv=function(f){var H=_.R9(f[1]);if(f[0]===null)return H;f=f[0];for(var v={},t=0;t<f.length;t++){var M=_.R9(f[t]);if(t===0)v[M]=H;else{var h={};h[M]=v;v=h}}return v};
_.klb=function(){for(var f=_.I9,H=0;H<f.length;H++){var v=HXv(f[H]),t=[];t.push(v);if(t.length===0)return 0}return 1};
_.T$b=function(){for(var f=_.I9,H={},v=0;v<f.length;H={wT9:void 0},v++){var t=[HXv(f[v])];H.wT9=[];t.forEach(function(M){return function(h){M.wT9[M.wT9.length]=h}}(H));
if(H.wT9.length===0)return 0}return 1};
_.auE=function(){for(var f=_.V(qhs()),H=f.next();!H.done;H=f.next()){var v=H.value;H=v.jsonRepresentation;v=v.objectRepresentation;try{var t=JSON.parse(H);if(!O6(t,v,!1,!1))return 0}catch(M){return 0}}return 1};
_.A_B=function(){try{var f=_.YZ("ab_det_sc_inj_val");f.length===1&&f[0]===""&&(f=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var H=document.querySelectorAll("script"),v=_.V(H),t=v.next();!t.done;t=v.next())for(var M=t.value,h=_.V(f),y=h.next();!y.done;y=h.next()){var m=y.value;H=void 0;if((H=M.textContent)==null?0:H.includes(m))return 0}}catch(W){return 4}return 1};
_.pG_=function(){var f,H,v,t,M,h,y;return _.Y(function(m){switch(m.nextAddress){case 1:_.Zc(m,2),f=_.V(wG_),H=f.next();case 4:if(H.done)return m.return(1);t=v=H.value;M=t.jsonRepresentation;h=t.objectRepresentation;return m.yield((new Response(M,{status:200})).json(),7);case 7:y=m.yieldResult;if(!O6(y,h,!1,!1))return m.return(0);H=f.next();m.jumpTo(4);break;case 2:return _.xu(m),m.return(4)}})};
_.c_R=function(){try{btoa("abc")}catch(f){return 0}return 1};
UWe=function(){var f,H,v,t,M,h,y,m,W,I,S;return _.Y(function(d){switch(d.nextAddress){case 1:_.Zc(d,2),f=_.V(qhs()),H=f.next();case 4:if(H.done)return d.return(1);t=v=H.value;M=t.jsonRepresentation;h=t.objectRepresentation;y=btoa(M);m="data:application/json;base64,"+y;W=new Request(m);Object.defineProperty(W,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(W,"method",{get:function(){return"POST"}});
Object.defineProperty(W,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(W,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(W,"body",{get:function(){return new ReadableStream}});
return d.yield(fetch(W),7);case 7:return I=d.yieldResult,d.yield(I.json(),8);case 8:S=d.yieldResult;if(!O6(S,h,!1,!1))return d.return(0);H=f.next();d.jumpTo(4);break;case 2:return _.xu(d),d.return(4)}})};
_.Glg=function(f){if(!f||!f.length||typeof f==="string")return 0;for(var H=function(M){return _.R9(M)},v=2,t=0;t<f.length&&(v=_.v8R(_.dWT(f[t],H)),v!==0);t++);
return v};
_.v8R=function(f){var H=_.V(f);f=H.next().value;H=H.next().value;try{var v=document.createElement("div");document.body.appendChild(v);var t=getComputedStyle(v).display;document.body.removeChild(v);if(t==="none")return 4;var M=getComputedStyle(H).display==="none"?0:1;document.body.removeChild(f);return M}catch(h){return 4}};
Fye=function(){var f,H,v;return _.Y(function(t){f=new _.dZ;H=document.createElement("button");H.classList.add("ytp-ad-skip-button");H.style.opacity="0";H.style.height="0px";H.style.width="0px";H.style.padding="0px";H.style.border="none";v=function(){H.parentElement&&H.parentElement.removeChild(H)};
H.onclick=function(){f.resolve(0);v()};
document.body.appendChild(H);setTimeout(function(){v();f.resolve(1)},50);
return t.return(f.promise)})};
xWr=function(){var f,H,v,t,M,h,y;return _.Y(function(m){f=new _.dZ;H=document.createElement("ytd-player");try{document.body.prepend(H)}catch(W){return m.return(4)}v=function(){H.parentElement&&H.parentElement.removeChild(H)};
H.getElementsByTagName("div").length>0?t=H.getElementsByTagName("div")[0]:(t=document.createElement("div"),H.appendChild(t));M=document.createElement("div");t.appendChild(M);h=document.createElement("video");y=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"});h.src=_.QO(_.E4(y));h.ontimeupdate=function(){v();f.resolve(0)};
M.appendChild(h);h.classList.add("html5-main-video");setTimeout(function(){M.classList.add("ad-interrupting")},200);
setTimeout(function(){v();f.resolve(1)},5E3);
return m.return(f.promise)})};
tUe=function(f,H){var v,t;return _.Y(function(M){switch(M.nextAddress){case 1:v=[],t=0;case 2:if(!(t<3)){M.jumpTo(4);break}return M.yield(fetch(f,{cache:"no-store",method:H}).then(function(h){v.push(h.status)}).catch(function(){v.push(-1)}),3);
case 3:t++;M.jumpTo(2);break;case 4:return M.return(v)}})};
MUr=function(f){return f.domainLookupStart===0&&f.domainLookupEnd===0&&f.connectStart===0&&f.connectEnd===0};
hf3=function(f,H,v){v=v===void 0?"GET":v;var t,M,h,y,m,W,I,S,d,Z;return _.Y(function(l){if(l.nextAddress==1)return l.yield(Promise.all([tUe(f,v),tUe(H,v)]),2);t=l.yieldResult;M=_.V(t);h=M.next().value;y=M.next().value;m=h;W=y;if(Math.min.apply(Math,_.pS(W))!==Math.max.apply(Math,_.pS(W))||Math.min.apply(Math,_.pS(m))!==Math.max.apply(Math,_.pS(m)))return l.return(2);if(Math.min.apply(Math,_.pS(W))===Math.min.apply(Math,_.pS(m)))return l.return(1);S=(I=performance.getEntriesByName(f))==null?void 0:
I[0];Z=(d=performance.getEntriesByName(H))==null?void 0:d[0];return S&&Z?MUr(Z)?l.return(1):MUr(S)?l.return(0):l.return(1):l.return(2)})};
DWb=function(){var f;return _.Y(function(H){var v=[];var t;var M,h,y;(M=t=(M=mN().objectRepresentation.streamingData)==null?void 0:(h=M.formats)==null?void 0:(y=h[0])==null?void 0:y.url)&&M&&!t.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(M=M.replace("initcwndbps","ctier=L&initcwndbps"),M=M.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),t={testUrl:M,baseUrl:t,method:"GET"}):t=void 0;t&&v.push(t);_.J("ab_net_tp_e")&&v.push({testUrl:_.Mr.location.origin+"/ad_companion",baseUrl:_.Mr.location.origin+
"/generate_204",method:"OPTIONS"});if(_.J("ad_net_pb_ab")){var m;b:{t=/api\/stats\/ads/;var W,I,S,d;M=(m=mN().objectRepresentation.adPlacements)==null?void 0:(W=m[0])==null?void 0:(I=W.adPlacementRenderer)==null?void 0:(S=I.renderer)==null?void 0:(d=S.linearAdSequenceRenderer)==null?void 0:d.linearAds;if(M!=null&&M.length&&(m=_.U(M[0],Rf3))&&(m=m.pings,m!=null&&m.impressionPings))for(W=[].concat(_.pS(m.impressionPings)),m.progressPings&&(W=[].concat(_.pS(W),_.pS(m.progressPings))),m=_.V(W),W=m.next();!W.done;W=
m.next())if(W=W.value,W.baseUrl&&t.test(W.baseUrl)){m=W.baseUrl.replace("https://www.youtube.com","");break b}m=void 0}m&&v.push({testUrl:_.Mr.location.origin+m,baseUrl:_.Mr.location.origin+"/feed/download",method:"GET"})}if(_.J("ad_net_pb_pbp")){var Z;b:{m=/api\/stats\/qoe/;if(W=mN().objectRepresentation.playbackTracking){I=[];I.push(W==null?void 0:(Z=W.videostatsPlaybackUrl)==null?void 0:Z.baseUrl);var l;I.push(W==null?void 0:(l=W.videostatsDelayplayUrl)==null?void 0:l.baseUrl);var L;I.push(W==
null?void 0:(L=W.videostatsWatchtimeUrl)==null?void 0:L.baseUrl);var r;I.push(W==null?void 0:(r=W.ptrackingUrl)==null?void 0:r.baseUrl);var n;I.push(W==null?void 0:(n=W.qoeUrl)==null?void 0:n.baseUrl);var Q;I.push(W==null?void 0:(Q=W.atrUrl)==null?void 0:Q.baseUrl);Z=_.V(I);for(l=Z.next();!l.done;l=Z.next())if((l=l.value)&&m.test(l)){Z=l.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}Z=void 0}Z&&v.push({testUrl:_.Mr.location.origin+Z,baseUrl:_.Mr.location.origin+
"/feed/download",method:"GET"})}v=v.length!==0?v[Math.floor(Math.random()*v.length)]:void 0;return(f=v)?H.return(hf3(f.testUrl,f.baseUrl,f.method)):H.return(4)})};
_.EI5=function(){if(_.Mr.igo===void 0||_.Mr.igo===null||typeof _.Mr.igo!=="function")return 2;try{return _.Mr.igo()===!0?0:1}catch(f){return 0}};
VUs=function(f){switch(f){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.bC(f,"unknown result type")}};
_.y3B=function(f,H){var v=Number(_.a8("CATSTAT",0));if(H.bdt===void 0)return v;H=H.bdt;f=VUs(f);return v&~(3<<H)|f<<H};
YsT=function(f){var H,v;if((f=(H=f.auxiliaryUi)==null?void 0:(v=H.messageRenderers)==null?void 0:v.bkaEnforcementMessageViewModel)&&f.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return f};
$2N=function(){for(var f=_.V(Object.values(_.m2r)),H=f.next();!H.done;H=f.next())H=H.value,H.isAsync&&H.bdt&&_.pc("CATSTAT",_.y3B(2,H))};
_.Jt=function(f,H){f=_.jc("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",f);(H===void 0?0:H)?_.Wn5(f,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.s6(_.Zn(),f,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
g8E=function(){if(!OXv){if(Polymer.Base){var f=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{f.apply(this,arguments)}catch(d){_.Ge(d)}};
var H=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{H.apply(this,arguments)}catch(d){_.Ge(d)}};
var v=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{v.apply(this,arguments)}catch(d){_.Ge(d)}};
var t=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{t.apply(this,arguments)}catch(d){_.Ge(d)}};
var M=Polymer.Base._listen,h=new WeakMap;Polymer.Base._listen=function(d,Z,l){var L=function(){try{l.apply(this,arguments)}catch(r){_.Ge(r)}};
h.set(l,L);M.call(this,d,Z,L)};
var y=Polymer.Base._unlisten;Polymer.Base._unlisten=function(d,Z,l){y.call(this,d,Z,h.get(l))}}if(Polymer.Async){var m=Polymer.Async,W=m._atEndOfMicrotask;
m._atEndOfMicrotask=function(){try{W.apply(m,arguments)}catch(d){_.Ge(d)}}}if(Polymer.RenderStatus){var I=Polymer.RenderStatus,S=I.afterNextRender;
I.afterNextRender=function(d,Z,l){S.call(I,d,function(){try{Z.apply(this,arguments)}catch(L){_.Ge(L)}},l)}}OXv=!0}};
_.lY=function(f){var H=f?_.gH(f):"";if(H){if(H.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(H.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(H.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(H.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(H.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.J("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(H.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";H=H.toLowerCase();if(H==="/")return"home";if(H==="/channel_memberships")return"channel-memberships-shopfront";if(H.indexOf("/feed/trending")===0)return"trending";if(H.indexOf("/feed/explore")===0)return"explore";if(H.indexOf("/live")===0)return"live";if(H.indexOf("/results")===0)return"search";if(H.indexOf("/sports")===0)return"sports";if(H.indexOf("/fashion")===0||H.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(H))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(H))return _.J("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(H.indexOf("/channel/")===0||H.indexOf("/user/")===0||H.indexOf("/gaming")===0||H.indexOf("/post/")===0)return"channel";if(IfE(f))return"show";if(H==="/playlist"||H.indexOf("/playlist/")===0||H==="/view_play_list"||H.indexOf("/view_play_list/")===0||H.indexOf("/show/")===0)return"playlist";if(H==="/feed/history"||H.indexOf("/feed/history/")===0)return"history";if(H===
"/new")return"labs";if(H==="/feed/subscriptions")return"subscriptions";if(H.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(H==="/history_controls")return"standalone";if(H.indexOf("/account")===0||H==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(H.indexOf("/paid_memberships")===0||H.indexOf("/refund")===0||H.indexOf("/purchases")===0||H.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(H.indexOf("/product")===0)return"yts-products";if(H.indexOf("/premium")===
0||H.indexOf("/musicpremium")===0)return H.indexOf("/premium/offers")===0||H.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(H==="/cart/checkout"||H==="/cart")return"ypc-checkout";if(H.indexOf("/feed/downloads")===0||H.indexOf("/redeem")===0||H.indexOf("/reporthistory")===0)return"browse";if(H.indexOf("/hashtag")===0)return"hashtag-landing-page";if(H.indexOf("/handle")===0)return"handle";if(H.indexOf("/source")===0)return"audio-pivot";if(H.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";
if(H.indexOf("/playables")===0)return"playables";if(H.indexOf("/create/live/join")===0)return"open-in-app";if(H.indexOf("/shorts")===0)return"shorts";if(H.indexOf("/feed/channels")===0)return"subscriptions-channels";(H=f?_.gH(f):"")&&H.indexOf("/watch")===0&&_.J("web_watch_enable_learning_journey")?(f=_.bZ(f),f=!!f.list&&f.list.indexOf("LJPP")===0):f=!1;if(f)return"learning_journey_watch"}};
_.U6=function(f){var H,v;(f=(v=_.U(f==null?void 0:f.commandMetadata,_.jG))==null?void 0:v.url)&&(H=_.lY(f));return H};
IfE=function(f){var H=f?_.gH(f):"";if(!H)return!1;H=H.toLowerCase();return H.indexOf("/show/")===0||H.indexOf("/playlist")===0&&(f=_.bZ(f),f.list&&f.list.indexOf("EL")===0)?!0:!1};
xz=function(f){var H="unknown",v;var t=((v=_.U(f==null?void 0:f.commandMetadata,_.jG))==null?void 0:v.webPageType)||"";t?(v=t.toLowerCase(),v.startsWith("web_page_type_")&&(v=v.slice(14))):v=t;v&&SsR[v.toUpperCase()]?H=SsR[v.toUpperCase()]:_.U(f,_.ec)||_.U(f,d2e)?H="browse":_.U(f,_.LG)?H="search":_.U(f,_.wI)&&(H="watch");H==="watch"&&_.U6(f||null)==="learning_journey_watch"&&(H="learning_journey_watch");H==="unknown"&&_.pb(Error("Lf`"+JSON.stringify({clickTrackingParams:f==null?void 0:f.clickTrackingParams,
commandMetadata:f==null?void 0:f.commandMetadata,allEndpointKeys:Object.keys(f||[])})));return H};
_.BS=function(f){if(!_.jtr||f)_.jtr=_.Ld();return _.jtr};
_.stH=function(f){return!!_.U(f,_.wI)||!!_.U(f,_.zD)&&_.J("kevlar_enable_shorts_prefetch")};
_.ZXe=function(f,H){f=_.U(f,_.wI)||_.U(f,_.zD);return"v"+f.videoId+(f.playlistId?"-pl"+f.playlistId:"")+(H?"-an1":"")+(f.params?"-pr"+f.params:"")};
FE=function(f){return function(){return new f}};
rZ=function(f){var H=_.t8();return function(){return H.resolve(f)}};
lfv=function(f){var H=_.VQ("web_pbj_log_warning_rate",0);H=H>0&&Math.random()<H;if(!_.U(f,_.zD))return H&&_.pb(Error("Of")),!1;var v;return _.J("shorts_controller_retrieve_seedless_sequence_v2")&&((v=_.U(f,_.zD))==null?void 0:v.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:J3N(f)?!0:(H&&_.pb(Error("Pf")),!1)};
J3N=function(f){var H=(_.U(f,_.wI)||_.U(f,_.zD)).videoId;if(!H||!U2r.test(H))return!1;var v;return(f=(v=_.U(f.commandMetadata,_.jG))==null?void 0:v.url)&&(f.includes(H)||f.startsWith("/clip"))?!0:!1};
_.Lnr=function(){var f=_.Uj();return f.getFlag(192)?f.getFlag(190):!(_.J("web_watch_cinematics_disabled_by_default")||_.J("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&efN())};
_.KG=function(f,H,v){var t={};t.currentUrl=H;t.vis=f.vis!==void 0?f.vis:0;t.splay=!1;H=_.Uj();t.autoCaptionsDefaultOn=H.getFlag(66);H.getFlag(141)?H.getFlag(140)?t.autonavState="STATE_OFF":t.autonavState="STATE_ON":t.autonavState="STATE_NONE";t.html5Preference="HTML5_PREF_WANTS";isNaN(_.a8("STS"))||(t.signatureTimestamp=_.a8("STS"));f.autonav&&(t.autoplay=!0,t.autonav=!0);f.mutedAutoplay&&(t.autoplay=!0,t.mutedAutoplay=!0);f.inlinePlayback&&(t.autoplay=!0,t.autonav=!1,t.isInlineUnmutedPlayback=!!f.inlineUnmuted);
t.referer=v;t.lactMilliseconds=f.lact!==void 0?f.lact.toString():"-1";_.J("enable_unknown_lact_fix_on_html5")&&t.lactMilliseconds==="-1"&&_.pb(new _.e$("Unknown LACT is set in playbackContext.",{"lact in tempData":f.lact||"undefined",autonav:f.autonav||"undefined"}));f={};H.getFlag(194)&&(f.hasShownAmbientMode=!0);H.getFlag(192)&&(f.hasToggledOffAmbientMode=!0);_.Lnr()&&(f.watchAmbientModeEnabled=!0);t.watchAmbientModeContext=f;return t};
x25=function(f){var H={},v=f.pbis||0;v&&(H.playbackBeginsInSeconds=v);f.prefetch_reason&&f.prefetch_reason==="hc_pbis"&&(H.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return H};
_.o9=function(f){f=f===void 0?!1:f;var H=_.Uj(),v="USER_INTERFACE_THEME_LIGHT";H.getFlag(165)?v="USER_INTERFACE_THEME_DARK":H.getFlag(174)?v="USER_INTERFACE_THEME_LIGHT":_.Dn()&&(v="USER_INTERFACE_THEME_DARK");return f?v:BYr()||v};
_.zfN=function(){return!_.J("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.Dn=function(){return _.zfN()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.nG=function(){var f=_.Uj();return _.zfN()&&!f.getFlag(165)&&!f.getFlag(174)};
BYr=function(){var f=f===void 0?window.location.href:f;if(_.J("kevlar_disable_theme_param"))return null;var H=_.gH(f);if(_.FnR(H))return"USER_INTERFACE_THEME_DARK";try{var v=_.bZ(f).theme;return r3R.get(v)||null}catch(t){}return null};
_.FnR=function(f){return _.J("enable_dark_theme_only_on_shorts")?!(f==null||!f.startsWith("/shorts/")):!1};
_.o8H=function(f,H,v,t,M){H=H===void 0?!1:H;v=v===void 0?!1:v;var h=_.a8("INNERTUBE_CONTEXT");if(!h)return _.oO(Error("Sf")),{};h=(0,_.QA.unsafeClone)(h);_.J("web_no_tracking_params_in_shell_killswitch")||delete h.clickTracking;h.client||(h.client={});var y=h.client;y.clientName==="MWEB"&&y.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(y.clientFormFactor=_.a8("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");y.screenWidthPoints=window.innerWidth;y.screenHeightPoints=window.innerHeight;y.screenPixelDensity=
Math.round(window.devicePixelRatio||1);y.screenDensityFloat=window.devicePixelRatio||1;y.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());y.userInterfaceTheme=_.o9();if(!H){var m=_.OYR();m&&(y.connectionType=m);_.J("web_log_effective_connection_type")&&(m=IqR())&&(h.client.effectiveConnectionType=m)}var W;if(_.J("web_log_memory_total_kbytes")&&((W=_.Mr.navigator)==null?0:W.deviceMemory)){var I;W=(I=_.Mr.navigator)==null?void 0:I.deviceMemory;h.client.memoryTotalKbytes=""+W*1E6}H&&t&&!_.J("web_it_context_set_original_url_ks")&&
(y.originalUrl=Kng(_.Mr.location.href,t).toString());_.J("web_gcf_hashes_innertube")&&(m=LN3())&&(I=m.coldConfigData,W=m.coldHashData,m=m.hotHashData,h.client.configInfo=h.client.configInfo||{},I&&(h.client.configInfo.coldConfigData=I),W&&(h.client.configInfo.coldHashData=W),m&&(h.client.configInfo.hotHashData=m));I=_.bZ(_.Mr.location.href);!_.J("web_populate_internal_geo_killswitch")&&I.internalcountrycode&&(y.internalGeo=I.internalcountrycode);!_.J("web_populate_client_screen_killswitch")&&M&&(y.clientScreen=
M);y.clientName==="MWEB"||y.clientName==="WEB"?(y.mainAppWebInfo||(y.mainAppWebInfo={}),y.mainAppWebInfo.graftUrl=t||_.Mr.location.href,_.J("kevlar_woffle")&&_.pG.instance&&(t=_.pG.instance,y.mainAppWebInfo.pwaInstallabilityStatus=!t.appInstalledEventFired&&t.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),y.mainAppWebInfo.webDisplayMode=dSg(),y.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):y.clientName==="TVHTML5"&&
(!_.J("web_lr_app_quality_killswitch")&&(t=_.a8("LIVING_ROOM_APP_QUALITY"))&&(y.tvAppInfo=Object.assign(y.tvAppInfo||{},{appQuality:t})),t=_.a8("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(y.tvAppInfo=Object.assign(y.tvAppInfo||{},{certificationScope:t}));!_.J("web_populate_time_zone_itc_killswitch")&&(t=$OR())&&(y.timeZone=t);(t=Kb5())?y.experimentsToken=t:delete y.experimentsToken;y=D6H();t=_.D2R();t=(0,_.QA.getValues)(t.tokenJars);h.request=Object.assign({},h.request,{internalExperimentFlags:y,consistencyTokenJars:t});
!_.J("web_prequest_context_killswitch")&&(y=_.a8("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(h.request.externalPrequestContext=y);t=_.Uj();y=t.getFlag(58);t=t.get("gsml","");h.user=Object.assign({},h.user);y&&(h.user.enableSafetyMode=y);t&&(h.user.lockedSafetyMode=!0);_.J("warm_op_csn_cleanup")?v&&(H=_.uy())&&(h.clientScreenNonce=H):!H&&(H=_.uy())&&(h.clientScreenNonce=H);f&&(h.clickTracking={clickTrackingParams:f});if(f=_.ES("yt.mdx.remote.remoteClient_"))h.remoteClient=f;_.QS.getInstance().setLocationOnInnerTubeContext(h);
try{var S=EER(),d=S.bid;delete S.bid;h.adSignalsInfo={params:[],bid:d};for(var Z=_.V(Object.entries(S)),l=Z.next();!l.done;l=Z.next()){var L=_.V(l.value),r=L.next().value,n=L.next().value;S=r;d=n;f=void 0;(f=h.adSignalsInfo.params)==null||f.push({key:S,value:""+d})}var Q,C;if(((Q=h.client)==null?void 0:Q.clientName)==="TVHTML5"||((C=h.client)==null?void 0:C.clientName)==="TVHTML5_UNPLUGGED"){var w=_.a8("INNERTUBE_CONTEXT");w.adSignalsInfo&&(h.adSignalsInfo.advertisingId=w.adSignalsInfo.advertisingId,
h.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",h.adSignalsInfo.limitAdTracking=w.adSignalsInfo.limitAdTracking)}}catch(c){_.oO(c)}return h};
_.n8v=function(f){var H=new uY(_.a8("ONE_PICK_URL",""));H.urlParamMap_.set("hostId",f);(f=_.a8("GAPI_LOCALE"))&&H.urlParamMap_.set("hl",f);(f=_.a8("SESSION_INDEX"))&&H.urlParamMap_.set("authuser",f);(f=_.a8("DELEGATED_SESSION_ID"))&&H.urlParamMap_.set("groupId",f);return H};
Qtb=function(){var f=_.t8(),H=f.resolve(_.a9);f=f.resolve(_.PS);return new p55(H,f)};
afg=function(f){if(window.IntersectionObserver)return new uFv(f,400);throw new TypeError("Zf");};
GQb=function(){var f=Hammer.TouchAction,H=f.prototype.preventDefaults;f.prototype.preventDefaults=function(v){var t=this.actions.indexOf("pan-down")>-1;if(!t)return H.call(this,v);if(!P5H){var M=v.srcEvent;v=v.direction;var h;if((h=this.manager)==null?0:h.session.prevented)M.preventDefault();else if(t&&v&Hammer.DIRECTION_DOWN)return this.preventSrc(M)}}};
C5B=function(f){if(!f||f.size===0)return Hammer.DIRECTION_ALL;if(f.size===2){if(f.has("up")&&f.has("down"))return Hammer.DIRECTION_VERTICAL;if(f.has("right")&&f.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(f.size===1){if(f.has("up"))return Hammer.DIRECTION_UP;if(f.has("down"))return Hammer.DIRECTION_DOWN;if(f.has("right"))return Hammer.DIRECTION_RIGHT;if(f.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.NYv=function(){return E8b?Promise.resolve(E8b):new Promise(function(f,H){var v=self.indexedDB.open("swpushnotificationsdb");v.onerror=H;v.onsuccess=function(){var t=v.result;if(t.objectStoreNames.contains("swpushnotificationsstore"))E8b=t,f(E8b);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.NYv()};
v.onupgradeneeded=c3e})};
c3e=function(f){f=f.target.result;f.objectStoreNames.contains("swpushnotificationsstore")&&f.deleteObjectStore("swpushnotificationsstore");f.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
A3R=function(f){var H=X5e(),v;return _.Y(function(t){switch(t.nextAddress){case 1:return _.Zc(t,2),t.yield(f.match(H,{cacheName:"yt-appshell-assets"}),4);case 4:v=t.yieldResult;_.ch(t,3);break;case 2:_.xu(t);case 3:return t.return(v)}})};
X5e=function(){var f=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?bXg.registration.scope:iXs;f.endsWith("/")&&(f=f.slice(0,-1));return f+"/app_shell_home"};
kQ5=function(f){f.map(function(H){return H.source}).join("|")};
_.TYN=function(f){return _.Y(function(H){return H.return(A3R(f))})};
w5s=function(){var f=window.caches,H;return _.Y(function(v){if(v.nextAddress==1)return v.yield(_.TYN(f),2);H=v.yieldResult;return v.return(!!H)})};
hOg=function(){_.Y(function(f){if(f.nextAddress==1){if(qsE)return f.jumpTo(0);qsE=!0;if(_.J("enable_system_health_primes_monitoring"))return _.Wh(fje,3E4),H5H(),f.return();if(!(Math.random()<_.VQ("web_system_health_fraction")))return f.jumpTo(0);vD_={heightPixels:screen.height,widthPixels:screen.width};GD&&!isNaN(GD.jsHeapSizeLimit)&&(vD_.memoryTotalKbytes=String(Math.round(GD.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(vD_.devicePixelRatio=window.devicePixelRatio);return f.yield(tYN(),4)}_.Wh(fje,
3E4);return f.yield(MYT(),0)})};
tYN=function(){return _.Y(function(f){if(f.nextAddress==1)return CG.intersectionObserverPresent="IntersectionObserver"in window,CG.serviceWorkerPresent="serviceWorker"in navigator,CG.webSharePresent="share"in navigator,CG.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,CG.cacheStoragePresent="caches"in window,CG.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,CG.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
CG.webkitTemporaryStoragePresent="webkitTemporaryStorage"in E6&&E6.webkitTemporaryStorage&&"queryUsageAndQuota"in E6.webkitTemporaryStorage,CG.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",f.yield(cdH(),2);CG.indexedDbPresent=f.yieldResult;CG.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;CG.broadcastChannelPresent="BroadcastChannel"in window;CG.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(CG.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,CG.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.Bj(f)})};
fje=function(){var f=9E4+Math.random()*2E3;_.h7()>f||(_.J("enable_system_health_primes_monitoring")?H5H():MYT())};
MYT=function(){var f;return _.Y(function(H){if(H.nextAddress==1)return H.yield(RO_(),2);f=H.yieldResult;_.Kb("systemHealthCaptured",f);_.Bj(H)})};
H5H=function(){var f={metric:{}},H=VYH();H.networkEvents.length&&(f.metric.networkEvents=yzb(H));_.Kb("systemHealthCaptured",f)};
RO_=function(){var f,H,v,t,M,h,y,m,W,I;return _.Y(function(S){switch(S.nextAddress){case 1:f={viewportHeightPixels:Math.max(document.documentElement?document.documentElement.clientHeight||0:0,window.innerHeight||0),viewportWidthPixels:Math.max(document.documentElement?document.documentElement.clientWidth||0:0,window.innerWidth||0)};H=window.screen;_.J("enable_is_extended_monitoring")&&H&&"isExtended"in H&&(f.isExtended=!!H.isExtended);v={metric:{staticContext:vD_,dynamicContext:f,webMetric:YiR,webApiSupport:CG}};
if(t=_.uy())v.csn=t;GD&&(v.metric.webMetric.currentHeapKbytes=Math.round(GD.usedJSHeapSize/1E3));window.matchMedia&&(v.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,v.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,v.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in E6&&typeof E6.getBattery==="function")){S.jumpTo(2);break}return S.yield(E6.getBattery(),3);case 3:if(M=
S.yieldResult)v.metric.dynamicContext.chargingStatus=M.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(v.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(CG.storageEstimatePresent)return S.yield(navigator.storage.estimate(),8);if(!CG.webkitTemporaryStoragePresent){S.jumpTo(5);break}return S.yield(mvR(),7);case 7:h=S.yieldResult;S.jumpTo(5);break;case 8:h=S.yieldResult;case 5:return v.metric.dynamicContext.deviceStorageQuotaMbytes=((y=h)==null?0:y.quota)?String(Math.round(h.quota/
1048576/10)*10):"-1",v.metric.dynamicContext.deviceStorageUsageMbytes=((m=h)==null?0:m.usage)?String(Math.round(h.usage/1048576/10)*10):"-1",W=v.metric.dynamicContext,S.yield(w5s(),9);case 9:return W.hasAppShell=S.yieldResult,I=VYH(),I.networkEvents.length&&(v.metric.networkEvents=yzb(I)),S.return(v)}})};
mvR=function(){return new Promise(function(f){var H;CG.webkitTemporaryStoragePresent&&(H=E6.webkitTemporaryStorage)!=null&&H.queryUsageAndQuota?E6.webkitTemporaryStorage.queryUsageAndQuota(function(v,t){f({usage:v,quota:t})}):f(void 0)})};
_.NS=function(f){f&=16777215;f=[(f&16711680)>>16,(f&65280)>>8,f&255];return $v_(f[0],f[1],f[2])};
_.cS=function(f){f=[(f&16711680)>>>16,(f&65280)>>>8,f&255,(f&4278190080)>>>24];var H=_.Wa5(f,function(v){return v==(v&255)});
f[3]=(f[3]/255).toFixed(3);if(!H)throw Error("$f`"+f.join(","));return"rgba("+f.join(",")+")"};
_.O5g=function(f){return[(f&16711680)>>>16,(f&65280)>>>8,f&255]};
_.gDH=function(f){f=f.map(function(H){H/=255;return H<=.03928?H/12.92:Math.pow((H+.05)/1.05,2.4)});
return f[0]*.2126+f[1]*.7152+f[2]*.0722};
XE=function(f,H){f=_.O5g(f);return"rgba("+f[0]+", "+f[1]+", "+f[2]+", "+H+")"};
_.IjN=function(){try{return!!self.localStorage}catch(f){return!1}};
sYE=function(){if(Sie())_.pb(Error("ag"));else{var f=document.createElement("iframe");f.style.display="none";var H=H===void 0?window.location.href:H;var v=_.pN(_.a8("PERSIST_IDENTITY_IFRAME_URL"));H=v?v:(new URL(H)).host.indexOf("studio")===0?_.gr(dvr,"persist_identity"):_.gr(jY_,"persist_identity");_.fcg(f,1,H);f.id="persist_identity";var t;(t=document.body)==null||t.appendChild(f)}};
Sie=function(){var f=Z53;f||(f=document.querySelector("#persist_identity"));return f};
Jz3=function(){var f=!1;try{f=!!window.sessionStorage.getItem("session_logininfo")}catch(H){f=!0}return(_.a8("INNERTUBE_CLIENT_NAME")==="WEB"||_.a8("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&f};
lje=function(f,H){if(!Jz3())return!1;H||(H=_.a8("LOGIN_INFO"));return H?(f.session_logininfo=H,!0):!1};
eOB=function(f,H){f=f===void 0?!1:f;if((H===void 0||!H)&&Uvv!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.P6("LOG_STICKINESS",!1)){H=_.uy();var v=_.Qe(),t={identityStickinessData:{initialState:Uvv}};H&&v&&_.q6(H,v,t)}if(H=Sie())if(v=H.src?(new URL(H.src)).origin:"*",f){var M;(M=H.contentWindow)==null||M.postMessage({action:"clear"},v)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(f=window.sessionStorage.getItem("session_logininfo"))){var h;(h=H.contentWindow)==null||h.postMessage({loginInfo:f},v)}};
_.At=function(f){f=f===void 0?!0:f;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.pc("LOGIN_INFO",""),f&&window.sessionStorage.setItem("from_switch_account","1"),eOB(!0,f)}catch(H){}};
LaH=function(f){f&&(f.startsWith("https://accounts.google.com/AddSession")?_.At():f.startsWith("https://accounts.google.com/ServiceLogin")?_.At():f.startsWith("https://myaccount.google.com")&&_.Ax(f).getPath().endsWith("/youtubeoptions")&&_.At())};
bY=function(f,H){LaH(f);if(_.P6("LOGGED_IN",!0)&&Jz3()){var v=dLN(f);v==null&&(v={});lje(v,H)&&_.vV(f,v)}};
xvE=function(){function f(H){for(H=H.target;H&&H.nodeName!=="A";)if(H=H.parentNode,!(H&&H instanceof HTMLElement))return;if(H&&!H.hasAttribute("download")&&H.getAttribute("rel")!=="external"&&H.href)return H.href}
document.addEventListener("mousedown",function(H){H.button!==0&&(H=f(H))&&bY(H)});
document.addEventListener("click",function(H){(H=f(H))&&bY(H)})};
FaT=function(){var f=new BqB;try{if(_.P6("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(m){f.increment(5,!1);return}if(_.a8("LOGIN_INFO")){var H=zO5?zO5:window.location;_.a8("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&sYE();var v=dLN(H.href);v==null&&(v={});var t=v.session_logininfo,M=Number(window.sessionStorage.getItem("stickiness_reload")),h=t===_.a8("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
M>=2||h)M>=2?f.increment(2,h):h?f.increment(7,h):window.sessionStorage.getItem("session_logininfo")||(f.increment(3,h),Uvv="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.a8("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.a8("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))f.increment(4,h),window.sessionStorage.removeItem("stickiness_reload");
else if(M<2){window.sessionStorage.setItem("stickiness_reload",String(M+1));var y=H.href;y=_.tX(y,"sttick");bY(y,window.sessionStorage.getItem("session_logininfo"));y=_.iZ(y,{sttick:M});f.increment(M,h);_.RS3(H,y)}}else f.increment(6,!1)}else _.At(!1)}catch(m){}};
_.iY=function(f,H,v,t,M){H=H===void 0?{}:H;v=v===void 0?"":v;t=t===void 0?window:t;f=_.kk(f,H);bY(f);v=_.Co(f+v,M);_.RS3(t.location,v)};
_.rz5=function(f,H,v,t,M){M=M===void 0?!1:M;v&&_.vV(f,v);v=_.Co(f);var h=_.QO(v);f!=h&&_.Nw(Error("bg`"+f));f=h;H=H||Xj(f).toString(36);try{if(M)return M=f,M=Zug(M),bY(M),_.we(window,M,H,"attributionsrc")}catch(y){_.Ge(y)}bY(f);return _.we(window,v,H,t)};
Kav=function(f){if(f.urlEndpoint){if(f=_.bZ(f.urlEndpoint.url),f.adurl)return Hh(f.adurl)}else if(f.watchEndpoint)return"//www.youtube.com/watch?v="+f.watchEndpoint.videoId;return null};
DvN=function(f){if(!f||!f.reportingPings)return null;var H={};f.reportingPings.forEach(function(v){v.pingType in H?H[v.pingType].push(v.url):H[v.pingType]=[v.url]});
return{adpings:d6B(H)}};
_.kz=function(){return{isShellLoad:_.P6("IS_SHELL_LOAD",!1)}};
nDR=function(){navigator.serviceWorker.getRegistrations().then(function(f){f.forEach(oDb)})};
oDb=function(f){f&&_.piR(QYT,f.scope)};
_.piR=function(f,H){H={scope:H||_.yQ("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.re(f),H)};
TD=function(f,H,v,t){if(H&&H.serializedYpcCujLoggingParams){if(v){var M={};M.transactionErrorType=v;t&&(M.errorMessage=t);H.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:M}}}v={};v.ypcCujContext=H;f=_.jc("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",f,v);_.s6(_.Zn(),f,"FLOW_TYPE_YPC_ACQUISITION")}};
_.unE=function(f,H,v,t){var M={};M.serializedTransactionFlowLoggingParams=H;v&&(M.errorType=v);t&&(M.errorMessage=t);_.Kb(f,M);_.DK()};
_.ajT=function(f){f&&_.unE("transactionFlowStarted",f)};
_.PvT=function(f){f&&_.unE("transactionFlowCancelled",f)};
_.wZ=function(f,H,v){H&&_.unE("transactionFlowFailed",H,f,v)};
G6v=function(f){var H=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");H&&(H.inert=f)};
_.qS=function(){this.megabloxUrl_=null};
_.f2=function(f){try{var H=CvH==null?void 0:CvH.composedPath(f)}catch(v){H=f.composedPath?f.composedPath():[]}return H&&H.length>0?H:f.composedPath?f.composedPath():[]};
_.HB=function(f){return _.f2(f)[0]};
_.vB=function(f){if(!(f instanceof Element))return null;f=f.classList?Array.from(f.classList):void 0;if(!f)return null;var H=f.indexOf("style-scope");return H>-1&&H+1<f.length?f[H+1]:null};
tJ=function(f){if(!(f instanceof HTMLElement))return null;var H=f&&(f.$$||f.polymerController)?f.tagName.toLowerCase():null;return H?H:_.vB(f)};
EDR=function(f,H){return f.replace(/[^a-z]*[^\s]+/g,function(v){return v+".style-scope."+H})};
Nq3=function(f,H){return H?f.split(",").map(function(v){return EDR(v.trim(),H)}).join(", "):f};
_.Mu=function(f){var H,v,t,M;return(M=(t=(v=(H=f.root)!=null?H:f.shadowRoot)!=null?v:f.__shady_native_shadowRoot)!=null?t:f.__shady_shadowRoot)!=null?M:f};
hJ=function(f){return f instanceof ShadowRoot?ShadowRoot:f instanceof DocumentFragment?DocumentFragment:f instanceof Document?Document:HTMLElement};
czH=function(f){var H,v,t;return(t=(v=(H=f.parentElement)!=null?H:f.__shady_native_parentElement)!=null?v:f.__shady_parentElement)!=null?t:null};
XiN=function(f){var H,v,t;return(t=(v=(H=f.parentNode)!=null?H:f.__shady_native_parentNode)!=null?v:f.__shady_parentNode)!=null?t:null};
Azs=function(f){var H,v,t;return(t=(v=(H=f.__shady_parentNode)!=null?H:f.__shady_native_parentNode)!=null?v:f.parentNode)!=null?t:null};
b5g=function(f){var H,v;return(v=(H=XiN(f))!=null?H:f.host)!=null?v:null};
i5e=function(f){var H,v,t;return(t=(v=(H=f.nextSibling)!=null?H:f.__shady_native_nextSibling)!=null?v:f.__shady_nextSibling)!=null?t:null};
k65=function(f){var H,v,t;return(t=(v=(H=f.previousSibling)!=null?H:f.__shady_native_previousSibling)!=null?v:f.__shady_previousSibling)!=null?t:null};
TqR=function(f){var H,v,t;return(t=(v=(H=f.nextElementSibling)!=null?H:f.__shady_native_nextElementSibling)!=null?v:f.__shady_nextElementSibling)!=null?t:null};
wiv=function(f){var H,v,t;return(t=(v=(H=f.previousElementSibling)!=null?H:f.__shady_native_previousElementSibling)!=null?v:f.__shady_previousElementSibling)!=null?t:null};
qiH=function(f){var H,v,t;return new Set([].concat(_.pS((H=f.children)!=null?H:[]),_.pS((v=f.__shady_native_children)!=null?v:[]),_.pS((t=f.__shady_children)!=null?t:[])))};
f1s=function(f){var H,v,t;return new Set([].concat(_.pS((H=f.childNodes)!=null?H:[]),_.pS((v=f.__shady_native_childNodes)!=null?v:[]),_.pS((t=f.__shady_childNodes)!=null?t:[])))};
H_E=function(f){if(!f)return null;var H=_.vB(f);if(!H){var v;return(v=Node.prototype.getRootNode)==null?void 0:v.call(f)}H=H.toUpperCase();for(f=czH(f);f&&f.tagName!==H;)f=czH(f);return f?_.Mu(f):null};
vMs=function(f){for(;f&&!(f instanceof HTMLElement);)f=b5g(f);return f};
tl_=function(f){var H=vMs(f);return f===H?_.vB(f):H?tJ(H):null};
Mle=function(f){return(f=vMs(f))?tJ(f):null};
h2s=function(f){if(f instanceof Comment)return!1;if(f instanceof Text){var H,v;if(((v=(H=f.textContent)==null?void 0:H.trim())!=null?v:"")==="")return!1}return!0};
RK=function(f,H,v){var t=H(f);for(v=v===void 0?Mle(f):v;t&&(tl_(t)!==v||!h2s(t));)f=t,t=H(f);return t};
R25=function(f,H,v){if(!H)return null;f=Mle(f);return tl_(H)===f&&h2s(H)?H:RK(H,v,f)};
VlE=function(f){return RK(f,Azs,_.vB(f))};
yog=function(f){return RK(f,TqR)};
Y_B=function(f){return RK(f,i5e)};
m35=function(f){return RK(f,wiv)};
$3H=function(f){return RK(f,k65)};
WdN=function(f){return R25(f,f.firstChild||f.__shady_native_firstChild||f.__shady_firstChild||null,i5e)};
O_B=function(f){var H,v,t;var M=(t=(v=(H=f.firstElementChild)!=null?H:f.__shady_native_firstElementChild)!=null?v:f.__shady_firstElementChild)!=null?t:null;return R25(f,M,TqR)};
gMH=function(f){var H,v,t;var M=(t=(v=(H=f.lastChild)!=null?H:f.__shady_native_lastChild)!=null?v:f.__shady_lastChild)!=null?t:null;return R25(f,M,k65)};
I1N=function(f){var H,v,t;var M=(t=(v=(H=f.lastElementChild)!=null?H:f.__shady_native_lastElementChild)!=null?v:f.__shady_lastElementChild)!=null?t:null;return R25(f,M,wiv)};
S_R=function(f){var H=Mle(f);return Array.from(f1s(f)).filter(function(v){return tl_(v)===H})};
d3R=function(f){var H=tJ(f);return Array.from(qiH(f)).filter(function(v){return _.vB(v)===H})};
_.Vs=function(f,H,v){if(f instanceof HTMLElement&&_.vB(f)===v){var t=Array.from(f.classList).indexOf("style-scope");if(t===-1)f.classList.add("style-scope"),f.classList.add(H);else if(!(t+1>=f.classList.length)){t=f.classList[t+1];var M,h;f==null||(M=f.classList)==null||(h=M.replace)==null||h.call(M,t,H)}}if(f instanceof HTMLElement||f instanceof DocumentFragment)for(M=_.V(qiH(f)),h=M.next();!h.done;h=M.next())_.Vs(h.value,H,v);return f};
ys=function(f,H){if(f instanceof HTMLElement&&_.vB(f)===H){var v=Array.from(f.classList).indexOf("style-scope");v===-1||v+1>=f.classList.length||f.classList.remove("style-scope",f.classList[v+1])}if(f instanceof HTMLElement||f instanceof DocumentFragment){v=_.V(f.children);for(var t=v.next();!t.done;t=v.next())ys(t.value,H)}return f};
_.jeH=function(f,H){return hJ(f).prototype.appendChild.call(f,H)};
se_=function(f,H){if(f===H)return!0;f=f1s(f);return Array.from(f).some(function(v){return se_(v,H)})};
_.mF=function(f,H){if(f instanceof YV)return f;(H==null?0:H.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(f,"ownerDocument")&&Object.defineProperty(f,"ownerDocument",{get:function(){return window.document}});
return new YV(f)};
Jo_=function(){var f=YV.prototype,H=[].concat(_.pS(Z_3?[]:["getRootNode"]),["setAttribute","removeAttribute"]);H=_.V(H);for(var v=H.next(),t={};!v.done;t={method$jscomp$51:void 0},v=H.next())t.method$jscomp$51=v.value,f[t.method$jscomp$51]=function(M){return function(){return this.host[M.method$jscomp$51].apply(this.host,arguments)}}(t)};
U3g=function(){var f=YV.prototype,H=[].concat(_.pS(Z_3?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.pS(l1v?[]:["querySelector","querySelectorAll"]));H=_.V(H);for(var v=H.next(),t={};!v.done;t={method$jscomp$52:void 0},v=H.next())t.method$jscomp$52=v.value,f[t.method$jscomp$52]=function(M){return function(){return this.root[M.method$jscomp$52].apply(this.root,arguments)}}(t)};
x3b=function(){var f=YV.prototype,H=[].concat(_.pS(e2H?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.pS(LdH?[]:["parentNode"]));H=_.V(H);for(var v=H.next(),t={};!v.done;t={prop$jscomp$63:void 0},v=H.next())t.prop$jscomp$63=v.value,Object.defineProperty(f,t.prop$jscomp$63,{get:function(M){return function(){return this.host[M.prop$jscomp$63]}}(t),
configurable:!0})};
FdR=function(){var f=YV.prototype,H=["activeElement"].concat(_.pS(e2H?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.pS(BzN?[]:["children"]),_.pS(z2T?[]:["lastChild"]));H=_.V(H);for(var v=H.next(),t={};!v.done;t={prop$jscomp$64:void 0},v=H.next())t.prop$jscomp$64=v.value,Object.defineProperty(f,t.prop$jscomp$64,{get:function(M){return function(){return this.root[M.prop$jscomp$64]}}(t),
configurable:!0})};
roB=function(){for(var f=YV.prototype,H=_.V(["innerHTML","textContent"]),v=H.next(),t={};!v.done;t={prop$jscomp$65:void 0},v=H.next())t.prop$jscomp$65=v.value,Object.defineProperty(f,t.prop$jscomp$65,{get:function(M){return function(){return this.root[M.prop$jscomp$65]}}(t),
set:function(M){return function(h){this.root[M.prop$jscomp$65]=h}}(t),
configurable:!0})};
Kdv=function(f){var H=YV.prototype;f=_.V(Object.entries(f));for(var v=f.next(),t={};!v.done;t={fn$jscomp$400:void 0},v=f.next()){var M=_.V(v.value);v=M.next().value;M=M.next().value;t.fn$jscomp$400=M;H[v]=function(h){return function(){return h.fn$jscomp$400.apply(null,[this.host.node||this.host].concat(_.pS(arguments)))}}(t)}};
oMe=function(){for(var f=YV.prototype,H=_.V(Object.entries(D3_)),v=H.next(),t={};!v.done;t={fn$jscomp$401:void 0},v=H.next()){var M=_.V(v.value);v=M.next().value;M=M.next().value;t.fn$jscomp$401=M;Object.defineProperty(f,v,{get:function(h){return function(){return h.fn$jscomp$401.apply(null,[this.host.node||this.host].concat(_.pS(arguments)))}}(t),
configurable:!0})}};
_.$V=function(f){return f instanceof nM5||f instanceof Document?f:new nM5(f)};
pOr=function(){for(var f=nM5.prototype,H=_.V("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),v=H.next(),t={};!v.done;t={method$jscomp$53:void 0},v=H.next())t.method$jscomp$53=v.value,f[t.method$jscomp$53]=function(M){return function(){return HTMLElement.prototype[M.method$jscomp$53].call.apply(HTMLElement.prototype[M.method$jscomp$53],[this.node].concat(_.pS(arguments)))}}(t)};
Qer=function(){for(var f=nM5.prototype,H=_.V("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),v=H.next(),t={};!v.done;t={prop$jscomp$66:void 0},v=H.next())t.prop$jscomp$66=v.value,Object.defineProperty(f,t.prop$jscomp$66,{get:function(M){return function(){var h;return(h=this.node["__shady_native_"+M.prop$jscomp$66])!=null?h:this.node[M.prop$jscomp$66]}}(t),
configurable:!0})};
_.WB=function(f,H,v){v===void 0&&(v=!f.classList.contains(H));v?f.classList.add(H):f.classList.remove(H)};
_.OE=function(f,H,v){v===void 0&&(v=!f.hasAttribute(H));if(H==="class")throw Error("fg");v?_.$V(f).setAttribute(H,""):_.$V(f).removeAttribute(H)};
uCs=function(f){return(f.localName!=="slot"?[]:(0,_.gX)(f).assignedNodes({flatten:!0})).filter(function(H){return H.nodeType===Node.ELEMENT_NODE})};
_.a1E=function(f){return(f=_.mF(f).querySelector("slot"))&&f.localName==="slot"?uCs(f):[]};
_.Sr=function(f,H){window.ShadyCSS&&window.ShadyCSS.styleSubtree(f,H)};
dX=function(f,H){var v=H.bind(f);return function(t){v(t,t.detail)}};
_.jr=function(f,H){var v=Pn_.get(f);v||(v=new WeakMap,Pn_.set(f,v));if(v.has(H))return v.get(H);if(_.J("web_fi_listen_disable_bound_fn_helper")){var t=H.bind(f);f=function(M){t(M,M==null?void 0:M.detail)}}else f=dX(f,H);
v.set(H,f);return f};
EMT=function(f,H){GgT(f);f.created[Cnr].push(H)};
GgT=function(f){if(!f.created||!f.created[Cnr]){var H=f.created,v=H?[H]:[];f.created=function(){for(var t=_.V(v),M=t.next();!M.done;M=t.next())M.value.apply(this)};
f.created[Cnr]=v}};
NzB=function(f){return function(){var H=_.NA.apply(0,arguments);return function(v,t,M){f.apply(null,_.pS(H))(v,t,M)}}};
coR=function(){return function(){var f=_.NA.apply(0,arguments);return function(H,v,t){p4N.apply(null,_.pS(f))(H,v,t)}}};
_.B=function(f){return coR()(f)};
_.z=function(){return NzB(PsT).apply(null,_.pS(_.NA.apply(0,arguments)))};
_.sE=function(f){return _.J("pbcm_fi_listen_decorators")?XOb(f):NzB(u_g)(f)};
XOb=function(f){return function(H,v){EMT(H,function(){var t=this[v],M=_.J("web_fi_listen_disable_bound_fn_helper")?function(h){t(h,h.detail)}.bind(this):dX(this,t);
Aog.has(f)?p1(this.hostElement,f,M):this.hostElement.addEventListener(f,M)})}};
_.Zw=function(){return NzB(aDE).apply(null,_.pS(_.NA.apply(0,arguments)))};
_.F=function(f){f=f===void 0?{}:f;return NzB(QHe)(f)};
_.JJ=function(f){if(f.hostElement&&f!==f.hostElement){var H=_.Fj(f.hostElement);H=f.renderIdom?H:H.shadowRoot}H||(f=f.root,H=f instanceof Node?_.Fj(f):null);return H};
_.lJ=function(f){return b_3?i_b(f):function(H,v){Object.defineProperty(H,v,{get:function(){var t;return(t=_.JJ(this))==null?void 0:t.querySelector(f)},
enumerable:!0,configurable:!0})}};
i_b=function(f){return function(H,v){Object.defineProperty(H,v,{get:function(){var t,M=(t=_.mF(this.hostElement))==null?void 0:t.querySelector(f);if(M)return M;var h;return(h=_.JJ(this))==null?void 0:h.querySelector(f)},
enumerable:!0,configurable:!0})}};
_.UE=function(f){return b_3?kgb(f):function(H,v){Object.defineProperty(H,v,{get:function(){var t;return(t=_.JJ(this))==null?void 0:t.querySelectorAll(f)},
enumerable:!0,configurable:!0})}};
kgb=function(f){return function(H,v){Object.defineProperty(H,v,{get:function(){var t,M=(t=_.mF(this.hostElement))==null?void 0:t.querySelectorAll(f);if(M==null?0:M.length)return M;var h;return(h=_.JJ(this))==null?void 0:h.querySelectorAll(f)},
enumerable:!0,configurable:!0})}};
TzB=function(f){return function(H){if(![_.v7,_.K].includes(Object.getPrototypeOf(H.prototype).constructor))throw Error("gg");xtT(Object.assign({},typeof f!=="string"?f:{is:f,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(H)}};
_.L2=function(){var f=f===void 0?{}:f;return function(H){if(![tg,_.er].includes(Object.getPrototypeOf(H.prototype).constructor))throw Error("hg");BQ5(Object.assign({},f,{disableInheritanceCheck:!0}))(H)}};
q_v=function(f,H){wOR[f]!=null||(wOR[f]=new Set);wOR[f].add(H)};
_.xV=function(){var f=_.Zw.apply(null,_.pS(_.NA.apply(0,arguments)));return function(H,v){q_v(H.is,v);f(H,v)}};
FI=function(f,H,v){if(BB(f)&&!f2R.has(H)){H=H.replace(/^JSC\$[\d]+_/,"");H=H.replace(/\.\d+(\.|$)/g,function(h,y){return".#"+y});
zW[f]!=null||(zW[f]={});var t,M;(t=zW[f])[M=H]!=null||(t[M]=new Set);zW[f][H].has(v)||(zW[f][H].add(v),_.Kb("polymerPropertyAccessEvent",{componentName:f,propertyName:H,accessType:v}))}};
Hk3=function(){return _.J("polymer_property_access_logging_debug")||_.J("polymer_enable_property_access_logging")};
BB=function(f){if(_.J("polymer_property_access_logging_debug"))return!0;if(!_.J("polymer_enable_property_access_logging"))return!1;vCs||(vCs=Date.now());return(Xj(f)+vCs)%100<_.VQ("polymer_property_access_logging_percent")};
tu_=function(f,H){return BB(H)&&f.hostElement.loggingStatus?new Proxy(f,{get:function(v,t,M){if(v.hostElement.loggingStatus.bypassProxyController)return v[t];v.hostElement.loggingStatus.isExternalGet=!0;var h=v[t];v.hostElement.loggingStatus.isExternalGet=!1;if(h instanceof Function)return function(){var y=_.NA.apply(0,arguments);try{return v.hostElement.loggingStatus.currentExternalCall=t,FI(H,t,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),h.apply(this===M?v:this,y)}finally{v.hostElement.loggingStatus.currentExternalCall=
void 0}};
FI(H,t,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return h},
set:function(v,t,M){if(v.hostElement.loggingStatus.bypassProxyController)return v[t]=M,!0;v.hostElement.loggingStatus.isRendererStamper?FI(H,t,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):v.hostElement.loggingStatus.isDeclarativeExternal||FI(H,t,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{v.hostElement.loggingStatus.currentExternalSet=t,v[t]=M}finally{v.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):f};
Mu3=function(f,H){f&&f.loggingStatus&&!f.loggingStatus.isDeclarativeExternal&&!f.loggingStatus.isExternalGet&&f.loggingStatus.currentExternalSet!==H&&FI(f.tagName.toLowerCase(),H,"PROPERTY_ACCESS_GET_INTERNAL")};
Dw=function(f,H,v){f&&(v||f.loggingStatus&&!f.loggingStatus.isInitializing&&!f.loggingStatus.isDefiningPropertyAccessor&&f.loggingStatus.currentExternalSet!==H)&&FI(f.tagName.toLowerCase(),H,"PROPERTY_ACCESS_SET_INTERNAL")};
hhb=function(){return{_definePropertyAccessor:function(f,H){var v=this,t=v.hostElement.loggingStatus;t&&(t.isDefiningPropertyAccessor=!0);var M=v[f];M!==void 0&&(v.__data?v._setPendingProperty(f,M):(v.__dataProto!=null||(v.__dataProto={}),v.__dataProto[f]=M));t&&(t.isDefiningPropertyAccessor=!1);Object.defineProperty(this,f,{get:function(){Mu3(v.hostElement,f);return this.__data[f]},
set:function(h){H||this._setPendingProperty(f,h,!0)&&this._invalidateProperties()}})},
created:function(){var f=this._setPendingProperty.bind(this);this._setPendingProperty=function(H,v,t){Dw(this.hostElement,H);return f.apply(this,[H,v,t])}}}};
RhT=function(f){Hk3()&&_.B(oK.prototype)(f.prototype,"__templateBindingLoggingBehavior")};
Vub=function(f,H){if(H.resolvedFactories.length!==f.resolvedFactories.length)return!0;H=_.V(H.resolvedFactories.entries());for(var v=H.next();!v.done;v=H.next()){var t=_.V(v.value);v=t.next().value;t=t.next().value;if(t.providerClass){if(t.providerClass!==f.resolvedFactories[v].providerClass)return!0}else if(t.providerValue){if(t.providerValue!==f.resolvedFactories[v].providerValue)return!0}else if(t.factory!==f.resolvedFactories[v].factory)return!0}return!1};
y1e=function(f,H){f=_.V(f);for(var v=f.next();!v.done;v=f.next())if(v=v.value,v.constructor===Array)y1e(v,H);else{var t=H;t.has(v)||(v.inject&&t.add(v),v.behaviors&&y1e(v.behaviors,t))}};
n2=function(f,H){var v=f[H];f[H]=function(){var t=_.NA.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(v)return v.apply(this,t)}};
We_=function(){_.p2.Class=function(v,t){v=YJb(v,t);n2(v.prototype,"created");return v};
n2(Qs.prototype,"_initializeProperties");n2(_.uJ.prototype,"_initializeProperties");if(mU5)n2($UT,"created");else{var f=function(){n2(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))f();else{var H=customElements.define;customElements.define=function(v,t,M){H.call(customElements,v,t,M);v==="tp-yt-iron-list"&&(f(),customElements.define=H)}}}};
gCN=function(f,H){f.prototype.behaviors=f.prototype.behaviors||[];f.prototype.behaviors.unshift(OkE.InjectBehavior);f.prototype.provide=H};
_.GW=function(f){return function(H){if(!f.disableElementRegistration){f.noInjection||gCN(H,f.providers);var v=H.prototype;v.__templateHelpers||p4N(aK.prototype)(v,"__templateHelpers");v=f.is;I2R||(I2R=Date.now());(Xj(v)+I2R)%100<_.VQ("polymer_log_prop_change_observer_percent")&&p4N(PB.prototype)(H.prototype,"__propertyObserverObserver");H.prototype.behaviors=H.prototype.behaviors||[];H.prototype.behaviors.unshift(_.SJR.YtHostElementBehavior);RhT(H);TzB({is:f.is,notifyObserversOnUndefined:f.notifyObserversOnUndefined!==
!1,fastInit:f.fastInit,template:f.template,disableEnforceFastDefaultValuesCheck:!0})(H)}}};
_.u=function(f){return _.GW({is:f.is,template:f.template,disableElementRegistration:f.disableElementRegistration,cssBuildOptOut:f.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
s$v=function(f,H){if(dUB){f=new f;for(var v=_.V(Object.getOwnPropertyNames(f)),t=v.next();!t.done;t=v.next())t=t.value,H[t]=f[t];for(v=H;v&&v!==Object.prototype;v=Object.getPrototypeOf(v)){t=_.V(Object.getOwnPropertyNames(v));for(var M=t.next();!M.done;M=t.next())M=M.value,f.hasOwnProperty(M)||Object.defineProperty(f,M,j$H(H,M))}}else f.apply(H)};
j$H=function(f,H){return{get:function(){var v=f[H];return v instanceof Function?v.bind(f):v},
set:function(v){f[H]=v}}};
J1R=function(f,H){for(var v=f._noAccessors,t=_.V(Object.getOwnPropertyNames(f)),M=t.next();!M.done;M=t.next())if(M=M.value,!Zkb.has(M))if(v)H[M]=f[M];else{var h=Object.getOwnPropertyDescriptor(f,M);h&&(h.configurable=!0,Object.defineProperty(H,M,h))}};
l2R=function(f,H,v){return function(t){if(v){var M=v();t.model=M}if(f[H])f[H](t,t.detail)}};
C2=function(f){var H=[];if(typeof f==="string")f.length>0&&H.push.apply(H,_.pS(f.split(".")));else{f=_.V(f);for(var v=f.next();!v.done;v=f.next())v=v.value,typeof v==="string"?H.push.apply(H,_.pS(v.split("."))):H.push(v)}return H};
UUb=function(f,H){if(H[H.length-1]!=="*"&&H[H.length-1]!=="splices"){for(var v=0;v<H.length;v++){if(!f)return;f=f[H[v]]}return f}};
ehr=function(f,H){if(f.length>H.length)return!1;for(var v=0;v<f.length;v++)if(f[v]!==H[v])return!1;return!0};
xUR=function(f,H,v){if(H.type==="compute"){var t=H.getter.bind(v);var M=H.args}else t=function(){return v[H.method.methodName].apply(v,_.pS(_.NA.apply(0,arguments)))},M=H.method.args;
LeE(f,H.propertyKey,t,M,H.value)};
zhN=function(f,H){if(H.readOnly){var v=Object.getOwnPropertyDescriptor(f.model,H.propertyKey);Object.defineProperty(f.model,H.propertyKey,{get:v.get,set:function(){}});
f.model[B2R(H.propertyKey)]=v.set}};
FeH=function(f,H,v){if(v){var t=H.propertyKey,M=H.selector;H=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.pS(H.selectorArgs.map(function(h){return{type:"path",path:h}})));
LeE(f,t,function(h){var y=_.NA.apply(1,arguments);return M.apply(null,[v.getState()].concat(_.pS(y)))},H)}};
Ke3=function(f,H,v){var t=_.Jg(H.propertyKey)+"-changed";r1B(f,function(M){var h={value:M.value,queueProperty:!0};M.path.split(".").length>1&&(h.path=M.path);v.dispatchEvent(new CustomEvent(t,{detail:h}))},[{type:"wildcard",
path:H.propertyKey}])};
DUN=function(f,H,v){r1B(f,function(){v[H.method.methodName].apply(v,_.pS(_.NA.apply(0,arguments)))},H.method.args)};
B2R=function(f){return"_set"+(f.charAt(0).toUpperCase()+f.slice(1))};
oCv=function(){var f,H=n4(function(v){f=v},!1);
return[f,H]};
a2v=function(f){f=f.trim().replace(nC5,",").replace(pcB,"$1");var H=f[0];H==="-"&&(H=f[1]);if(H>="0"&&H<="9")return{type:"literal",value:Number(f)};if(H==="'"||H==='"')return{type:"literal",value:f.slice(1,-1)};if(H=f.match(Q$v)){H=H[1];var v=u$B[H];if(v)return{type:v,path:f.slice(0,-(H.length+1))}}return{type:"path",path:f}};
ECH=function(f){var H=f.match(PaH);if(H)return f={methodName:H[1],args:GqT},H[2].trim()&&(H=H[2].replace(CaE,"&comma;").split(","),f.args=H.map(a2v)),f};
N2s=function(f,H,v,t){t=t===void 0?!1:t;H=_.Jg(H);var M=JM;M&&(v=M(v,H,"attribute",f));EE(f,v,H,t)};
EE=function(f,H,v,t){H=c13(H,t===void 0?!1:t);H===void 0?f.removeAttribute(v):f.setAttribute(v,H)};
c13=function(f,H){switch(typeof f){case "object":case "function":if(f instanceof Date)return f.toString();if(f){if((H===void 0?0:H)&&!_.J("polymer_reflect_objects_as_boolean_killswitch"))return f?"":void 0;H=window.trustedTypes?window.trustedTypes.isHTML(f)||window.trustedTypes.isScript(f)||window.trustedTypes.isScriptURL(f):void 0;if(H)return f;try{return JSON.stringify(f)}catch(v){_.pb(Error("Dg`"+f))}}break;case "boolean":return f?"":void 0;default:return f!==null&&f!==void 0?f.toString():void 0}};
XcT=function(f){if(f===void 0)throw Error("Eg");return f};
T2B=function(f,H,v,t){var M=A1_(t);if(M.length){t=v;var h="property";bkN.test(v)?h="attribute":v[v.length-1]==="$"&&(v=v.slice(0,-1),h="attribute");var y=ikR(M);y&&h==="attribute"&&(v==="class"&&f.hasAttribute("class")&&(y+=" "+f.getAttribute(v)),EE(f,y,v));h==="attribute"&&t==="disable-upgrade$"&&f.setAttribute("disable-upgrade","");f.localName==="input"&&t==="value"&&f.setAttribute("value","");f.removeAttribute(t);h==="property"&&(v=_.ly(v));H=XcT(H);kqT(H,h,v,M);return!0}return v.slice(0,3)===
"on-"?(f.removeAttribute(v),(h=H).events!=null||(h.events=[]),H.events.push({name:v.slice(3),value:t}),!0):v==="id"?(H.id=t,!0):!1};
A1_=function(f){for(var H=[],v=0,t;(t=wc3.exec(f))!==null;){t.index>v&&H.push({type:"literal",value:f.slice(v,t.index)});var M=t[1][0];v=!!t[2];t=t[3].trim();if(M==="{")throw Error("Fg");(M=ECH(t))?H.push({type:"method",negate:v,signature:M}):H.push({type:"path",negate:v,path:t});v=wc3.lastIndex}v&&v<f.length&&(f=f.substring(v))&&H.push({type:"literal",value:f});return H};
ikR=function(f){for(var H="",v=0;v<f.length;v++){var t=f[v];t.type==="literal"&&(H+=t.value)}return H};
kqT=function(f,H,v,t){f.bindings!=null||(f.bindings=[]);f.bindings.push({kind:H,target:v,parts:t})};
tQN=function(f,H,v){var t=!1;if(f.localName==="template"){t=v;var M=H.stripWhitespace;M=qJv(f,M===void 0?!1:M);var h=f.content.ownerDocument.createDocumentFragment();M.content=h;h.appendChild(f.content);t&&(t.templateInfo=M);t=!0}else f.localName==="slot"&&(H.hasInsertionPoint=!0);if(f.firstChild&&(M=v,f.localName!=="script"&&f.localName!=="style")){h=0;for(var y=f.firstChild;y;){var m=y;if(m.localName==="template"){var W=m.getAttribute("is");if((y=W==="dom-if")||W==="dom-repeat"){m.removeAttribute("is");
W=m.ownerDocument.createElement("ps-"+W);m.parentNode.replaceChild(W,m);W.appendChild(m);var I=Array.from(m.attributes);I=_.V(I);for(var S=I.next();!S.done;S=I.next())S=S.value,y?fz3.has(S.name)&&EE(W,S.value,S.name):HfH.has(S.name)?EE(W,S.value,S.name):vxH.has(S.name),m.removeAttribute(S.name);y=W}else y=m}if(y.nodeType===Node.TEXT_NODE){m=void 0;W=f;for(I=y;((m=I.nextSibling)==null?void 0:m.nodeType)===Node.TEXT_NODE;)S=void 0,(S=I).textContent!=null||(S.textContent=""),I.nextSibling.textContent&&
(I.textContent+=I.nextSibling.textContent),W.removeChild(I.nextSibling);if(H.stripWhitespace&&y.textContent&&!y.textContent.trim()){f.removeChild(y);y=y.nextSibling;continue}}tQN(y,H,{parentIndex:h,parentInfo:M});y.parentNode&&h++;y=y.nextSibling}}var d;if((d=f.hasAttributes)==null?0:d.call(f)){d=v=XcT(v);M=!1;h=Array.from(f.attributes);h=_.V(h);for(m=h.next();!m.done;m=h.next())m=m.value,M=T2B(f,d,m.name,m.value)||M;t=M||t}f.nodeType===Node.TEXT_NODE&&(d=A1_(f.textContent),d.length&&(f.textContent=
ikR(d)||" ",v=XcT(v),kqT(v,"text","textContent",d),t=!0));v&&t&&(v.infoIndex=H.nodeInfoList.push(v)-1)};
qJv=function(f,H){H={nodeInfoList:[],stripWhitespace:(H===void 0?!1:H)||f.hasAttribute("strip-whitespace")};tQN(f.content,H);return H};
MQ5=function(f){Object.assign(f,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
R3b=function(f,H,v){H.signalCache!=null||(H.signalCache={});var t=H.signalCache[v];if(!t){var M=v.split(".");t=!h3R(f,M[0]);if(M.length>1&&t){var h=f.getPathMutationSignal(M);t=function(){var y=PM(f.owner,function(){return f.getWithPath([M[0]])}),m,W=(m=h())==null?void 0:m.value;
return{rootWasDefined:y!==void 0,value:W}}}else t=function(){var y=f.getWithPath(M);
return{rootWasDefined:y!==void 0,value:y}};
H.signalCache[v]=t}return t()};
ynB=function(f,H,v,t,M){H=H.parts.map(function(y,m){if(y.type==="literal"){v.partWasDefined!=null||(v.partWasDefined=[]);var W;(W=v.partWasDefined)[m]||(W[m]=y.value!==void 0);return y.value}var I;if(y.type==="method"){var S,d=(S=(I=v.partWasDefined)==null?void 0:I[m])!=null?S:!1;d||(d=y.signature.args.every(function(L){return L.type==="literal"}));
var Z=!1,l=!0;I=y.signature.args.map(function(L){if(L.type==="literal")return L.value;if(L.type!=="path")throw Error("Gg`"+L.type);var r=R3b(f,v,L.path);L=r.value;r=r.rootWasDefined;Z||(Z=r);l&&(l=r);return L});
d||(d=M===1?l:Z);v.partWasDefined!=null||(v.partWasDefined={});v.partWasDefined[m]=d;if(!d)return;I=(m=R3b(f,v,y.signature.methodName).value)&&typeof m==="function"?m.apply(t,I):void 0}else S=R3b(f,v,y.path),I=S.value,v.partWasDefined!=null||(v.partWasDefined={}),(d=v.partWasDefined)[m]||(d[m]=I!==void 0||S.rootWasDefined);y.negate&&(I=!I);return I});
if(H.length===1){var h;return((h=v.partWasDefined)==null?0:h[0])?H[0]:VQR}return H.join("")};
YW3=function(f){return typeof f==="object"&&!!f&&"notifyPath"in f&&"canNotifyPath"in f};
mmE=function(f){return typeof f==="object"&&!!f&&"notifyPath"in f};
$m_=function(f){return"polymerController"in f};
Wre=function(f,H){H=""+C2(H)[0];if(YW3(f))return f.canNotifyPath(H);if($m_(f)&&YW3(f.polymerController))return f.polymerController.canNotifyPath(H);if(mmE(f)){var v;return!((v=f.properties)==null||!v[H])}if($m_(f)&&mmE(f.polymerController)){var t;return!((t=f.polymerController.properties)==null||!t[H])}return!1};
Ofg=function(f,H,v){YW3(f)||mmE(f)?f.notifyPath(H,v):$m_(f)&&(YW3(f.polymerController)||mmE(f.polymerController))&&f.polymerController.notifyPath(H,v)};
Izb=function(f,H,v){if(v!==VQR){f.kind==="attribute"||f.target!=="textContent"&&(f.target!=="value"||H.localName!=="input"&&H.localName!=="textarea")||(v=v===void 0?"":v);var t,M=(t=gxg.Polymer)==null?void 0:t.sanitizeDOMValue;M&&(v=M(v,f.target,f.kind,H));if(f.kind==="attribute"){f=f.target;if(f==="class"||f==="name"||f==="slot")H=(0,_.gX)(H);EE(H,v,f)}else if(f=f.target,v!==H[f]||typeof v==="object")H.loggingStatus&&(H.loggingStatus.isDeclarativeExternal=!0,FI(H.localName,f,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
H[f]=v,H.loggingStatus&&(H.loggingStatus.isDeclarativeExternal=!1)}};
SWe=function(f,H,v,t){var M=H.parts[0];if(H.parts.length!==1||M.type!=="path"||!Wre(v,H.target))return!1;var h=_.V(M.path.split(".")),y=h.next().value,m=wA(h);if(h3R(f,y))return!1;t.signalCache!=null||(t.signalCache={});h=t.signalCache[M.path];var W;h=(W=h)==null?void 0:W().value;if((h==null?void 0:h.path)!==void 0){t=C2(h.path);var I=C2(M.path);t=[H.target].concat(_.pS(t.slice(I.length-1)));Ofg(v,t,M.negate?!h.value:h.value);return!0}var S=Nu(f,y);var d=S.getChangeRecordSignal(m),Z=!1;h=function(){if(!Z){var L=
PM(f.owner,function(){return S.getWithPath([])});
Z||(Z=L!==void 0)}return{value:d(),rootWasDefined:Z}};
t.signalCache[M.path]=h;t.partWasDefined!=null||(t.partWasDefined={});h=h();(I=t.partWasDefined)[0]||(I[0]=h.rootWasDefined);var l=PM(f.owner,function(){return S.getWithPath(m)});
t.partWasDefined[0]&&PM(f.owner,function(){return void Izb(H,v,M.negate?!l:l)});
return!0};
dme=function(f,H,v,t,M,h){if(!SWe(f,H,v,t)){var y=ynB(f,H,t,M,h);PM(f.owner,function(){return void Izb(H,v,y)})}};
jke=function(f,H,v,t,M,h){v=_.V(v);for(var y=v.next(),m={};!y.done;m={infoIndex:void 0},y=v.next()){y=y.value;var W=y.bindings;m.infoIndex=y.infoIndex;y=y.parentInfo;if(W){W=_.V(W);for(var I=W.next(),S={};!I.done;S={b$jscomp$253:void 0,bindingCtx$jscomp$4:void 0},I=W.next()){S.b$jscomp$253=I.value;if(m.infoIndex===void 0)throw Error("Hg");S.bindingCtx$jscomp$4={};f.effect(function(d,Z){return function(){M&&!M()||dme(f,d.b$jscomp$253,H[Z.infoIndex],d.bindingCtx$jscomp$4,t,h)}}(S,m))}}y&&jke(f,H,[y],
t,M,h)}};
sk5=function(f,H){f=(H.parentInfo?sk5(f,H.parentInfo):f).firstChild;for(var v=0;f;f=f.nextSibling)if(H.parentIndex===v++)return f;throw Error("Ig");};
Jns=function(f,H,v,t){f=document.importNode(f.content,!0);f.__noInsertionPoint=!(t==null?0:t.hasInsertionPoint);for(var M=Array(H.length),h={},y=0;y<H.length;y++){var m=H[y],W=sk5(f,m);M[y]=W;m.id&&(h[m.id]=W);if(m.templateInfo){var I=W.parentElement;I&&(I.templateInfo=m.templateInfo,I.parentSignalProxy=v,I.eventListenerHost=t.eventListenerHost,I.stampingEnabled=t.enabledSignal)}I=void 0;if((I=m.events)==null?0:I.length)for(I=0;I<m.events.length;I++){var S=m.events[I];Zf5(t.eventListenerHost,W,S.name,
S.value,t.getModel)}}jke(v,M,H,t.thisCtx,t.enabledSignal,t.methodInvocationRequirement);return{root:f,nodes:M,nodesById:h}};
UmH=function(f,H){f=f();var v;(v=lzb.ShadyCSS)==null||v.prepareTemplate(f,H);H=qJv(f);return{template:f,nodeInfoList:H.nodeInfoList,hasInsertionPoint:H.hasInsertionPoint}};
xmv=function(){e3B=!1;for(var f=cB.length,H=0;H<f;H++){var v=cB[H];if(v)try{v()}catch(t){Promise.resolve().then(function(){throw t;})}}cB.splice(0,f);
Lr_+=f};
rn5=function(f){e3B||(e3B=!0,BFg.textContent=(z3g++).toString());cB.push(f);return FrT++};
_.bJ=function(f,H,v){XI++;f=H?new Krb(XI,f,H,v):new Dm3(XI,f);AJ.set(XI,f);return XI};
oxe=function(f){(f=AJ.get(f))&&f.cancel()};
pJb=function(f,H){f=nxr.get(f);return f?(H=f.get(H))?H:null:null};
_.iJ=function(f,H,v,t){var M=pJb(f,H);if(!M){M=new Qkb;var h=nxr.get(f);h||(h=new Map,nxr.set(f,h));h.set(H,M)}f=v.bind(f);M.run(f,t,void 0)};
_.uwT=function(f,H){var v;(v=pJb(f,H))==null||v.cancel()};
az3=function(f){var H;(H=pJb(f,"doRender"))==null||H.flush()};
kV=function(f){var H;return(H=f.hostElement)!=null?H:f};
Plb=function(f){var H=f.indexOf(".");return H===-1?f:f.slice(0,H)};
G95=function(f,H,v,t,M,h){h=(M=(t=h?Plb(H):H)?H:null)?f.get(M):f.__data[H];M&&h===void 0&&(h=v[H]);_.YE(f.hostElement,gav(t)+"-changed",{value:h,queueProperty:!0,path:M!=null?M:void 0},{bubbles:!1,composed:!1})};
Cl_=function(f,H){f.__isReflecting=!0;N2s(f.hostElement,H,f.__data[H]);f.__isReflecting=!1};
ExN=function(f){if(f._onIronRequestResizeNotifications){var H=f._onIronRequestResizeNotifications.bind(f);f._onIronRequestResizeNotifications=function(v){_.HB(v)!==f.hostElement&&H(v)}}f._ariaActiveAttributeChanged&&(f._ariaActiveAttributeChanged=f._ariaActiveAttributeChanged.bind(f.hostElement));
f._activeChanged&&(f._activeChanged=function(v){f.toggles?EE(f.hostElement,v?"true":"false",f.ariaActiveAttribute):f.hostElement.removeAttribute(f.ariaActiveAttribute);f._changedButtonState()});
f._asyncClick&&(f._asyncClick=function(){_.bJ(function(){f.hostElement.click()},1)});
!f.keyEventTarget||f.keyEventTarget instanceof EventTarget||(f.keyEventTarget=kV(f.keyEventTarget));f._disabledChanged&&(f._disabledChanged=f._disabledChanged.bind(f.hostElement));f._observeItems&&(f._observeItems=function(v){var t=kV(v);return _.Fj(t).observeNodes(function(M){f._updateItems();f._updateSelected();_.YE(t,"iron-items-changed",M,{bubbles:!1,cancelable:!1})})});
f._updateItems&&f._updateItems===_.TW._updateItems&&(f._updateItems=function(){var v=_.Fj(f.hostElement).queryDistributedElements(f.selectable||"*");v=Array.prototype.filter.call(v,f._bindFilterItem);f._setItems(v)});
f._computeKeyboardClass&&(f._computeKeyboardClass=function(v){_.WB(f.hostElement,"keyboard-focus",v)});
f.ensureRipple&&(f.ensureRipple=function(v){if(f.hasRipple&&!f.hasRipple()){if(!f._createRipple)return;f._ripple=f._createRipple();f._ripple.noink=f.noink;var t=f._rippleContainer||f.hostElement;t&&_.mF(t).appendChild(f._ripple)}var M;if(v&&((M=f._ripple)==null?0:M.uiDownAction)){t=_.mF(f._rippleContainer||f.hostElement);var h;M=(h=v.composedPath())==null?void 0:h[0];t.contains(M)&&f._ripple.uiDownAction(v)}});
f._updateMultiselectable&&(f._updateMultiselectable=function(v){v?f.hostElement.setAttribute("aria-multiselectable","true"):f.hostElement.removeAttribute("aria-multiselectable")})};
NFE=function(f,H,v){v=_.V(v);for(var t=v.next();!t.done;t=v.next())s$v(t.value.constructor,f);s$v(H.constructor,f)};
XJN=function(f,H){f=_.V(f);for(var v=f.next();!v.done;v=f.next())if(v=v.value,v.type==="signal"){var t=v.propertyKey;if(H.hasOwnProperty(t)&&H[t]!=null&&v.attributeType===Object){a:{t=H[t].constructor;for(var M=_.V(cnv),h=M.next();!h.done;h=M.next())if(h=h.value,t===h){t=h;break a}t=Object}v.attributeType=t}}};
AnR=function(){};
bfH=function(f){var H;return(H=f.hostElement)!=null?H:f};
if3=function(){throw Error("Mg");};
k9N=function(f,H){f.constructor.prototype.useSignals=!0;var v=new f.constructor;NFE(v,f,H.behaviors);XJN(H.reactiveSchemas,v);v={};for(var t=_.V(H.reactiveSchemas),M=t.next();!M.done;M=t.next())M=M.value,M.type==="signal"&&(v[M.propertyKey]=M.attributeType);var h={copyPropertiesToProto:if3,didRegister:!1,typesForSignals:v},y=["disable-upgrade"].concat(_.pS(H.observedAttributes)),m=function(W){wX.call(this,f,H,h,W)};
_.e(m,wX);_.H7.Object.defineProperties(m,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return y}}});
h.copyPropertiesToProto=function(){for(var W=0;W<H.behaviors.length;W++)J1R(H.behaviors[W],m.prototype);J1R(f,m.prototype)};
H.legacyOptimizations||h.copyPropertiesToProto();m.prototype.is=f.is;return m};
TFB=function(f,H){if(Object.getPrototypeOf(H.prototype).constructor!==_.K)throw Error("Ng");H.prototype.is=f.is;return k9N(H.prototype,f)};
wJH=function(f){return f.type==="compute"||f.type==="computeWithMethod"};
qWE=function(f){for(var H=f.reactiveSchemas.filter(wJH),v=new Map,t=new Map,M=new Map,h=_.V(H),y=h.next();!y.done;y=h.next())y=y.value,v.set(y.propertyKey,y),t.set(y.propertyKey,[]),M.set(y.propertyKey,0);h=0;H=_.V(H);for(y=H.next();!y.done;y=H.next()){y=y.value;for(var m=_.V(y.type==="computeWithMethod"?y.method.args:y.args),W=m.next();!W.done;W=m.next())W=W.value,W.type!=="literal"&&(W=W.path.split(".")[0],t.has(W)&&(t.get(W).push(y.propertyKey),M.set(y.propertyKey,M.get(y.propertyKey)+1),h++))}y=
[].concat(_.pS(t.keys())).filter(function(I){return M.get(I)===0});
for(H=[];y.length;)for(m=y.shift(),H.push(v.get(m)),m=_.V(t.get(m)),W=m.next();!W.done;W=m.next())W=W.value,M.set(W,M.get(W)-1),h--,M.get(W)===0&&y.push(W);v=f.reactiveSchemas.filter(function(I){return!wJH(I)});
f.reactiveSchemas=[].concat(_.pS(v),_.pS(H))};
fvN=function(f,H){if(H.properties)for(var v=_.V(Object.entries(H.properties)),t=v.next();!t.done;t=v.next()){var M=_.V(t.value);t=M.next().value;M=M.next().value;f.properties[t]=typeof M==="function"?{type:M}:M}H.observers&&f.observers.push.apply(f.observers,_.pS(H.observers));H.disabledPolySiReactions&&f.disabledPolySiReactions.push.apply(f.disabledPolySiReactions,_.pS(H.disabledPolySiReactions))};
HL5=function(f,H){for(var v=H.length-1;v>=0;v--){var t=H[v];Array.isArray(t)?HL5(f,t):f.indexOf(t)<0&&f.unshift(t)}};
vcs=function(f,H){f.reactiveSchemas=f.reactiveSchemas.filter(function(v){return v.type==="observe"&&H.includes(v.method.methodName)||wJH(v)&&H.includes(v.propertyKey)?!1:!0})};
MXs=function(f,H){var v=H.prototype,t,M,h={is:f.is,reactiveSchemas:[],observedAttributes:[],behaviors:[OkE.InjectBehavior,aK.prototype],disableElementRegistration:f.disableElementRegistration,provide:(t=f.providers)!=null?t:[],reactivityMode:f.reactivityMode,signalProperties:(M=v.signalProperties)!=null?M:[]};"template"in H?h.templateGetter=function(){return H.template}:f.getTemplate&&(h.templateGetter=f.getTemplate);
v.behaviors&&HL5(h.behaviors,v.behaviors);tXE(h,H);return h};
tXE=function(f,H){for(var v=H.prototype,t={properties:{},observers:[],disabledPolySiReactions:[]},M=_.V(f.behaviors),h=M.next();!h.done;h=M.next())fvN(t,h.value);fvN(t,v);if(f.signalProperties)for(v=_.V(f.signalProperties),M=v.next();!M.done;M=v.next())delete t.properties[M.value];v=_.V(Object.entries(t.properties));for(M=v.next();!M.done;M=v.next()){h=_.V(M.value);M=h.next().value;h=h.next().value;var y=void 0;if((y=f.signalProperties)==null||!y.includes(M)){y=void 0;var m=f,W=h.type;if(!W)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{W=Reflect.getMetadata("design:type",H,M);for(var I=_.V(hAr),S=I.next();!S.done;S=I.next())if(S=S.value,W===S){W=S;break a}W=Object}else W=String;h.computed||h.selector||(m.reactiveSchemas.push({type:"signal",propertyKey:M,value:h.value,attributeType:W,readOnly:h.readOnly}),m.observedAttributes.push(_.Jg(M)));h.reflectToAttribute&&m.reactiveSchemas.push({type:"reflect",propertyKey:M});if(h.computed){W=ECH(h.computed);if(!W)throw Error("Og");m.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:M,method:W,value:h.value})}h.observer&&m.reactiveSchemas.push({type:"observe",method:{methodName:h.observer,args:[{type:"path",path:M}]}});h.notify&&m.reactiveSchemas.push({type:"notify",propertyKey:M});h.selector&&m.reactiveSchemas.push({type:"redux",propertyKey:M,selector:h.selector,selectorArgs:(y=h.selectorArgs)!=null?y:[]})}}RAs&&qWE(f);H=_.V(t.observers);for(M=H.next();!M.done;M=H.next())v=f,M=M.value,(h=ECH(M))?v.reactiveSchemas.push({type:"observe",method:h}):console.log('Warning: unable to parse observe declaration: "'+
M+'"');vcs(f,t.disabledPolySiReactions)};
VXv=function(f,H){for(var v=0;v<H.length;v++){var t=H[v],M=void 0;(M=t).showHideApi!=null||(M.showHideApi={});M=void 0;!!f!==!((M=t.showHideApi)==null||!M.hideTemplateChildren)&&(t.nodeType===Node.TEXT_NODE?f?(t.showHideApi.polymerTextContent=t.textContent,t.textContent=""):(M=void 0,t.textContent=(M=t.showHideApi.polymerTextContent)!=null?M:null):t instanceof Element&&t.localName==="slot"?f?(t.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.gX)((0,_.gX)(t).parentNode).replaceChild(t.showHideApi.polymerReplaced,
t)):(M=t.showHideApi.polymerReplaced)&&(0,_.gX)((0,_.gX)(M).parentNode).replaceChild(t,M):t instanceof HTMLElement&&t.style&&(f?(t.showHideApi.polymerDisplay=t.style.display,t.style.display="none"):t.style.display=t.showHideApi.polymerDisplay));t.showHideApi.hideTemplateChildren=f;t.showHideChildren&&t.showHideChildren(f)}};
YtB=function(){if(!ysH){var f=document.createElement("style");f.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(f);ysH=!0}};
qu=function(){return _.J("disable_hidden_dom_if_using_stamper")};
mzb=function(f,H){var v=_.fu().getState();return H?f.apply(null,[v].concat(_.pS(H))):f(v)};
OLg=function(){if($zv)return $zv;var f=_.V(_.gp(0,void 0,"MB1Hb")),H=f.next().value;f.next();var v=f.next().value;_.fu().subscribe(function(){WIT(v)});
return $zv=H};
WIT=function(f){gcg||(gcg=!0,Promise.resolve().then(function(){f(function(H){return H+1});
gcg=!1}))};
_.fu=function(){return Ive.getAppStore()};
StT=function(f,H){return Ive.getSelectFn()(f,H)};
_.HK=function(f){Ive.getDispatchFn()(f)};
dzN=function(f,H){var v={},t;for(t in f)v[t]=H(f[t],t);return v};
_.vK=function(f,H){return function(){var v;return(v=_.p4(f))!=null?v:H}};
_.tV=function(f,H){var v=Object.assign({},f),t;for(t in H)H.hasOwnProperty(t)&&(v[t]=_.vK(f[t],H[t]));return v};
jIR=function(f,H,v){f instanceof Element&&(v.debugName||(v.debugName="<"+f.tagName.toLowerCase()+(f.tagName.includes("-")?">":"."+f.className+">")),_.J("ytwiz_enable_debug_component_props")&&(f.debugProps||(f.debugProps=dzN(H,function(t){return function(){return t()}}))))};
ZLB=function(f){var H;return sIT.value.traceAllComponents||((H=Ha.stack[Ha.stack.length-1])==null?void 0:H.name)!=="ytComponent"?NST("ytComponent",{},f):f()};
_.a=function(f,H){var v=function(t){return ZLB(function(M){var h=JsR={};var y;if(((y=v)==null?0:y.idomCompat)&&t.renderedFromIdom){var m;y=typeof v.idomCompat==="object"?(m=v)==null?void 0:m.idomCompat.callbacks:{};y=_.V(lv5(t,y,v.debugName));m=y.next().value;y.next();y=y.next().value;var W=UzH(f,m);h.privateValue=W;JsR=void 0;jIR(W,m,v);h={debugName:v.debugName};M&&h&&Object.assign(M.attributes,h);M=E73(W);M=Array.isArray(M)?M[0]:M;M[I8]||(M[I8]={});M[I8].updateSignalsFromIdomProps=y;eAR(m,W);return W}y=
dzN(t,LI3);m=UzH(f,y);h.privateValue=m;JsR=void 0;jIR(m,y,v);h={debugName:v.debugName};M&&h&&Object.assign(M.attributes,h);eAR(y,m);return m})};
v.debugName=H===void 0?"":H;return v};
UzH=function(f,H){f=f(H);return sS(f)};
xzB=function(f,H){f[H]||(f=new _.e$("IDOM interop setter undefined. Key:",H),_.oO(f))};
LI3=function(f,H){return H==="children"||H==="ref"||typeof f==="function"||f===void 0?f:function(){return _.p4(f)}};
lv5=function(f,H,v){var t={},M={},h={},y={},m;for(m in f){y={key$jscomp$944:y.key$jscomp$944};y.key$jscomp$944=m;var W=f[y.key$jscomp$944];if(y.key$jscomp$944==="children"||y.key$jscomp$944==="ref")t[y.key$jscomp$944]=W;else if(typeof W==="function")y.key$jscomp$944 in H||W.length>0?(h[y.key$jscomp$944]=W,t[y.key$jscomp$944]=function(S){return function(){return h[S.key$jscomp$944].apply(h,_.pS(_.NA.apply(0,arguments)))}}(y)):t[y.key$jscomp$944]=W;
else if(!(f[y.key$jscomp$944]===void 0&&y.key$jscomp$944 in H)){var I=_.V(_.gp(f[y.key$jscomp$944],{debugName:y.key$jscomp$944+":cwis:"+v},"rvrjQe"));W=I.next().value;I=I.next().value;t[y.key$jscomp$944]=W;M[y.key$jscomp$944]=I}}return[t,M,function(S){var d={},Z;for(Z in S)d={key$jscomp$945:d.key$jscomp$945,val$jscomp$123:void 0},d.key$jscomp$945=Z,d.val$jscomp$123=S[d.key$jscomp$945],d.key$jscomp$945!=="children"&&d.key$jscomp$945!=="ref"&&(typeof d.val$jscomp$123==="function"?d.key$jscomp$945 in
H?h[d.key$jscomp$945]=d.val$jscomp$123:d.val$jscomp$123.length>0&&(h[d.key$jscomp$945]=d.val$jscomp$123,_.pb(new _.e$("Callback detected that was not set in the idomCompat callbacks map. Key:",d.key$jscomp$945))):d.key$jscomp$945 in H&&d.val$jscomp$123===void 0||(xzB(M,d.key$jscomp$945),Zt(function(l){return function(){M[l.key$jscomp$945](l.val$jscomp$123)}}(d))))}]};
FI_=function(f,H,v){var t=lDH(f.prototype,Bvg,f.prototype.behaviors);t.prototype.is=H;t.prototype.localName=H;v&&zAv(t,v);return function(M){M&&(t.prototype.hostElement=M);var h=new t;h.root=h;h.hostElement=M;return h}};
zAv=function(f,H){var v;Object.defineProperty(f.prototype,"_template",{get:function(){v===void 0&&(v=H());return v},
set:function(t){v=t},
configurable:!0,enumerable:!0})};
ncR=function(f,H,v,t){function M(){if(!l){for(var L=new Set,r=_.V(S),n=r.next();!n.done;n=r.next()){n=n.value;for(var Q=_.V(Object.getOwnPropertyNames(n)),C=Q.next();!C.done;C=Q.next()){C=C.value;var w=void 0,c=(w=Object.getOwnPropertyDescriptor(n,C))==null?void 0:w.value;c&&c instanceof Function&&!ME(C)&&(!m[C]||_.J("polymer_forward_method_killswitch"))&&L.add(C)}}r=_.V(Object.entries(Object.getOwnPropertyDescriptors(f.prototype)));for(n=r.next();!n.done;n=r.next())Q=_.V(n.value),n=Q.next().value,
Q=Q.next().value,Q.value instanceof Function&&!ME(n)&&L.add(n);l=L}return l}
rs5(f,H,t==null?void 0:t.providers);UtT(f.prototype,f,!0);var h=FI_(f,H,v),y,m=(y=f.prototype.properties)!=null?y:{},W,I,S=(I=(W=f.prototype.behaviors)==null?void 0:W.flat(Infinity))!=null?I:[];v=_.V(S);for(y=v.next();!y.done;y=v.next())m=Object.assign({},y.value.properties,m);var d=[].concat(_.pS(KI_),_.pS(Object.keys(m).map(function(L){return _.Jg(L)}))),Z=!1,l;
return{ctor:function(L,r){var n=h(L),Q,C;L=[].concat(_.pS((Q=t==null?void 0:t.allowedProps)!=null?Q:[]),_.pS((C=t==null?void 0:t.allowedPropsFromBehaviors)!=null?C:[]));n.allowedProps=L.length>0?L:void 0;Q={};C=_.V(d);for(L=C.next();!L.done;L=C.next())L=L.value,Q[L]=_.ly(L);n.__dataAttributes=Q;var w=n.ready.bind(n);n.ready=function(){r.beforeReady();w();if(BB(H)&&!Z){var c=n.__templateInfo;if(c==null?0:c.hostProps){c=_.V(Object.keys(c.hostProps));for(var A=c.next();!A.done;A=c.next())FI(H,A.value,
"PROPERTY_ACCESS_GET_INTERNAL")}Z=!0}};
n._overrideLegacyUndefined=!0;return n},
props:m,observedAttributes:d,getInitialMethods:M,getPropsToForwardBeforeRegister:function(){for(var L=[],r=new Set,n=_.V(Object.keys(m)),Q=n.next();!Q.done;Q=n.next())Q=Q.value,L.push([Q,m[Q].readOnly]),r.add(Q);n=M();Q=_.V(Object.keys(Object.getOwnPropertyDescriptors(f.prototype)));for(var C=Q.next();!C.done;C=Q.next())C=C.value,!Dz_(C)||n.has(C)||r.has(C)||(L.push([C,!1]),r.add(C));r=_.V(ocE);for(n=r.next();!n.done;n=r.next())L.push([n.value,!0]);return L},
getPropsToForwardBeforeReady:function(L){for(var r=[],n=_.V(Object.entries(L)),Q=n.next();!Q.done;Q=n.next()){var C=_.V(Q.value);Q=C.next().value;C=C.next().value;if(Dz_(Q)&&!(C instanceof Function)&&(r.push([Q,!1]),BB(H))){var w=C=void 0;(w=(C=L)._createPropertyAccessor)==null||w.call(C,Q)}}return r},
shouldForwardProp:Dz_,shouldLog:BB}};
rs5=function(f,H,v){gCN(f,v);f.prototype.behaviors.unshift(pTe);if(Hk3()){if(BB(H)){var t;(t=f.prototype).behaviors!=null||(t.behaviors=[]);f.prototype.behaviors.unshift(hhb())}RhT(f)}_.B(aK.prototype)(f.prototype,"__templateHelpers")};
ME=function(f){return QIs.has(f)||f.startsWith("__compute__")};
Dz_=function(f){return!ME(f)&&!f.startsWith("_")&&!f.endsWith("_")};
CUv=function(f,H){function v(){var Z=W();Z=_.V(Z);for(var l=Z.next();!l.done;l=Z.next()){var L=_.V(l.value);l=L.next().value;L=L.next().value;uYH(d.prototype,l,L)}t=!0}
var t=!1,M=f.ctor,h=f.getInitialMethods,y=f.observedAttributes,m=f.getPropsToForwardBeforeReady,W=f.getPropsToForwardBeforeRegister,I=f.shouldForwardProp,S=f.shouldLog,d=function(){var Z=HTMLElement.call(this)||this;Z.didForwardDynamicProps=!1;Z.loggingStatus={};t||v();Z.inst=M(Z,{beforeReady:function(){Z.didForwardDynamicProps||(Z.forwardDynamicProps(),Z.didForwardDynamicProps=!0)}});
Z.controllerProxy=tu_(Z.inst,H);Z.forwardMethods();return Z};
_.e(d,HTMLElement);d.prototype.forwardMethods=function(){for(var Z=this,l=_.V(this.inst.getExtraMethodsToForward()),L=l.next(),r={};!L.done;r={method$jscomp$63:void 0},L=l.next()){var n=_.V(L.value);L=n.next().value;n=n.next().value;r.method$jscomp$63=n;this[L]=function(Q){return function(){return Q.method$jscomp$63.call.apply(Q.method$jscomp$63,[Z.inst].concat(_.pS(_.NA.apply(0,arguments))))}}(r)}l=_.V(h());
for(r=l.next();!r.done;r=l.next())r=r.value,I(r)&&avR(this,r),S(H)&&!ME(r)&&PUN(this.inst,r)};
d.prototype.forwardDynamicProps=function(){var Z=m(this.inst);Z=_.V(Z);for(var l=Z.next();!l.done;l=Z.next()){var L=_.V(l.value);l=L.next().value;L=L.next().value;uYH(this,l,L);S(H)&&!ME(l)&&Gyg(this.inst,l)}};
d.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
d.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
d.prototype.attributeChangedCallback=function(Z,l,L){this.inst.attributeChangedCallbackWrapper(Z,l,L)};
_.H7.Object.defineProperties(d.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return H}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.H7.Object.defineProperties(d,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return y}}});
customElements.define(H,d)};
uYH=function(f,H,v){f.hasOwnProperty(H)||Object.defineProperty(f,H,{get:function(){var t,M=((t=f.is)!=null?t:f.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||FI(M,H,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,t=this.polymerController[H],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,t},
set:function(t){if(!v){var M,h=((M=f.is)!=null?M:f.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||FI(h,H,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=H,this.loggingStatus.bypassProxyController=!0,this.polymerController[H]!==t&&(M={},this.polymerController.setProperties((M[H]=t,M)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
avR=function(f,H,v){var t=f.polymerController;f[H]=function(){var M=_.NA.apply(0,arguments);f.loggingStatus.currentExternalCall=H;f.loggingStatus.bypassProxyController=!0;var h,y=((h=f.is)!=null?h:f.tagName).toLowerCase();FI(y,H,"PROPERTY_ACCESS_CALL_EXTERNAL");var m;h=(m=v!=null?v:t[H])==null?void 0:m.call.apply(m,[t].concat(_.pS(M)));f.loggingStatus.currentExternalCall=void 0;f.loggingStatus.bypassProxyController=!1;return h}};
PUN=function(f,H){var v=f.hostElement,t=f[H];f[H]=function(){var M=_.NA.apply(0,arguments);if(v.loggingStatus.currentExternalCall!==H){var h,y=((h=v.is)!=null?h:v.tagName).toLowerCase();FI(y,H,"PROPERTY_ACCESS_CALL_INTERNAL")}return t==null?void 0:t.apply(f,M)}};
Gyg=function(f,H){var v=Object.getOwnPropertyDescriptor(f,H);v&&!v.get&&Object.defineProperty(f,H,{get:function(){Mu3(f.hostElement,H);return v.value},
set:function(t){Dw(f.hostElement,H);v.value=t}})};
EcT=function(f){return _.J("poly_si_dom_repeat_detached_fix_killswitch")||f.tagName!=="PS-DOM-REPEAT"?f.tagName==="DOM-REPEAT":!0};
csB=function(f,H){var v=Nv_(f);f instanceof Element&&v.unshift(f);f=_.V(v.filter(EcT));for(var t=f.next();!t.done;t=f.next()){var M=void 0;t=_.V((M=t.value.__instances)!=null?M:[]);for(M=t.next();!M.done;M=t.next())if(M=M.value,M.root){M=Array.from(M.root.children);M=_.V(M);for(var h=M.next();!h.done;h=M.next())v.push.apply(v,_.pS(csB(h.value,H)))}}return v.filter(function(y){return y.usePatchedLifecycles&&y.lifecycleIsConnected===H})};
Nv_=function(f){var H=null;f instanceof Element?H=Element.prototype.querySelectorAll:f instanceof DocumentFragment&&(H=DocumentFragment.prototype.querySelectorAll);return H?Array.from(H.call(f,"*")):[]};
hV=function(f){Og(function(){for(var H=_.V(csB(f,!1)),v=H.next();!v.done;v=H.next()){v=v.value;v.lifecycleIsConnected=!0;try{var t=void 0,M=void 0,h=void 0,y=void 0;(t=(y=v.polymerController)!=null?y:v)==null||(h=(M=t).connectedCallback)==null||h.call(M)}catch(m){_.oO(m)}}})};
Ru=function(f){Og(function(){for(var H=_.V(csB(f,!0)),v=H.next();!v.done;v=H.next()){v=v.value;v.lifecycleIsConnected=!1;try{var t=void 0,M=void 0,h=void 0,y=void 0;(t=(y=v.polymerController)!=null?y:v)==null||(h=(M=t).disconnectedCallback)==null||h.call(M)}catch(m){_.oO(m)}}})};
wTH=function(){if(!XTv){XTv=!0;var f=[Node];Vz&&f.push(Vz.Wrapper);var H=Node.prototype.insertBefore,v=Node.prototype.removeChild;f=_.V(f);for(var t=f.next(),M={};!t.done;M={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},t=f.next())t=t.value,M.nativeInsertBefore=t.prototype.insertBefore,t.prototype.insertBefore=function(y){return function(m,W){if(m instanceof DocumentFragment){var I=Array.from(m.children);m=y.nativeInsertBefore.call(this,m,W);
if(this.isConnected&&y.nativeInsertBefore===H)for(W=_.V(I),I=W.next();!I.done;I=W.next())hV(I.value);return m}I=m instanceof Element&&m.isConnected;W=y.nativeInsertBefore.call(this,m,W);I&&Ru(m);this.isConnected&&hV(m);return W}}(M),M.nativeAppendChild=t.prototype.appendChild,t.prototype.appendChild=function(y){return function(m){if(m instanceof DocumentFragment){var W=Array.from(m.children);
m=y.nativeAppendChild.call(this,m);if(this.isConnected){W=_.V(W);for(var I=W.next();!I.done;I=W.next())hV(I.value)}return m}W=m instanceof Element&&m.isConnected;I=y.nativeAppendChild.call(this,m);W&&Ru(m);this.isConnected&&hV(m);return I}}(M),M.nativeRemoveChild=t.prototype.removeChild,t.prototype.removeChild=function(y){return function(m){var W=m instanceof Element&&m.isConnected,I=y.nativeRemoveChild.call(this,m);
W&&v===y.nativeRemoveChild&&Ru(m);return I}}(M),M.nativeReplaceChild=t.prototype.replaceChild,t.prototype.replaceChild=function(y){return function(m,W){if(m instanceof DocumentFragment){var I=Array.from(m.children);
m=y.nativeReplaceChild.call(this,m,W);if(this.isConnected)for(Ru(W),W=_.V(I),I=W.next();!I.done;I=W.next())hV(I.value);return m}I=m instanceof Element&&m.isConnected;var S=this.isConnected,d=y.nativeReplaceChild.call(this,m,W);S&&Ru(W);I&&Ru(m);S&&hV(m);return d}}(M);
f=[Element];Vz&&f.push(Vz.Wrapper);f=_.V(f);t=f.next();for(M={};!t.done;M={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},t=f.next())t=t.value,t.prototype.before=AsE(t.prototype.before),t.prototype.after=AsE(t.prototype.after),M.nativeReplaceWith=t.prototype.replaceWith,t.prototype.replaceWith=function(y){return function(){var m=_.NA.apply(0,arguments),W=_.V(bLs(m)),I=W.next().value,
S=W.next().value;W=this.isConnected;y.nativeReplaceWith.apply(this,m);m=_.V(S);for(S=m.next();!S.done;S=m.next())Ru(S.value);if(W)for(Ru(this),I=_.V(I),W=I.next();!W.done;W=I.next())W=W.value,W instanceof Element&&hV(W)}}(M),M.nativeRemove=t.prototype.remove,t.prototype.remove=function(y){return function(){var m=this.isConnected;
y.nativeRemove.call(this);m&&Ru(this)}}(M),M.nativeInsertAdjacentElement=t.prototype.insertAdjacentElement,t.prototype.insertAdjacentElement=function(y){return function(m,W){var I=W.isConnected;
m=y.nativeInsertAdjacentElement.call(this,m,W);I&&Ru(W);m.isConnected&&hV(m);return m}}(M),M.nativeSetAttribute=t.prototype.setAttribute,t.prototype.setAttribute=function(y){return function(m,W){var I=iLH(this);
if(!I.usePatchedLifecycles)return y.nativeSetAttribute.call(this,m,W);var S=this.getAttribute(m);y.nativeSetAttribute.call(this,m,W);W=this.getAttribute(m);kyE(I,m,S,W)}}(M),M.nativeRemoveAttribute=t.prototype.removeAttribute,t.prototype.removeAttribute=function(y){return function(m){var W=iLH(this);
if(!W.usePatchedLifecycles)return y.nativeRemoveAttribute.call(this,m);var I=this.getAttribute(m);y.nativeRemoveAttribute.call(this,m);I!==null&&kyE(W,m,I,null)}}(M),M.nativeToggleAttribute=t.prototype.toggleAttribute,t.prototype.toggleAttribute=function(y){return function(m,W){var I=iLH(this);
if(!this.usePatchedLifecycles)return y.nativeToggleAttribute.call(this,m,W);var S=this.getAttribute(m),d=S!==null;W=y.nativeToggleAttribute.call(this,m,W);W!==d&&kyE(I,m,S,W?"":null);return W}}(M);
f=[Document,DocumentFragment,Element,ShadowRoot];Vz&&f.push(Vz.Wrapper);f=_.V(f);for(M=f.next();!M.done;M=f.next())M=M.value,M.prototype.prepend=AsE(M.prototype.prepend),M.prototype.append=AsE(M.prototype.append);(Vz==null?void 0:Vz.noPatch)===!0&&TvH();document.readyState==="complete"?hV(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&hV(document.body)});
var h=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");h&&h.get&&h.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:h.enumerable,configurable:!0,get:h.get,set:function(y){y||Ru(this);h.set.call(this,y);return y}})}};
AsE=function(f){return function(){var H=_.NA.apply(0,arguments),v=_.V(bLs(H)),t=v.next().value;v=v.next().value;f.apply(this,H);H=_.V(v);for(v=H.next();!v.done;v=H.next())Ru(v.value);if(this.isConnected)for(t=_.V(t),H=t.next();!H.done;H=t.next())H=H.value,H instanceof Element&&hV(H)}};
TvH=function(){for(var f=_.V(qtb),H=f.next();!H.done;H=f.next()){H=H.value.prototype;for(var v=_.V(fHb),t=v.next();!t.done;t=v.next()){t=t.value;var M=Object.getOwnPropertyDescriptor(H,t);M&&Object.defineProperty(H,"__shady_native_"+t,M)}}};
kyE=function(f,H,v,t){var M,h;if((M=f.polymerController)==null?0:(h=M.observedAttributes)==null?0:h.includes(H))if(f=f.polymerController,f.attributeChangedCallbackWrapper)f.attributeChangedCallbackWrapper.call(f,H,v,t);else{var y;(y=f.attributeChangedCallback)==null||y.call(f,H,v,t)}};
bLs=function(f){var H=[],v=[];f=_.V(f);for(var t=f.next();!t.done;t=f.next())t=t.value,t instanceof Element&&t.isConnected&&v.push(t),t instanceof DocumentFragment?H.push.apply(H,_.pS(Array.from(t.children))):H.push(t);return[H,v]};
iLH=function(f){return!(f instanceof Element)&&f.node instanceof Element?f.node:f};
HB5=function(f,H){var v=H?["children"].concat(_.pS(H)):["children"];H=[];v=_.V(v);for(var t=v.next();!t.done;t=v.next()){var M=t.value;if(f.hasOwnProperty(M)){t=f[M];t=typeof t==="function"?t():t;t=Array.isArray(t)?t:[t];t=sS(t).flat();if(M!=="children"){M=gav(M);for(var h=_.V(t),y=h.next();!y.done;y=h.next())y=y.value,y instanceof Element&&y.setAttribute("slot",M)}H.push(t)}}H.length===0?f=[]:(f=sS(_.O("div",null,H)),f=Array.from(f.childNodes));return f};
teR=function(f,H,v){var t={};_.QL(function(){var M={},h;for(h in H)if(H.hasOwnProperty(h)){var y=void 0,m=void 0;if(!(((y=v.slotProps)==null?0:y.includes(h))||h==="children"||((m=v.callbackProps)==null?0:m.includes(h))||h==="ref")&&(y=_.p4(H[h]),t[h]!==y)){t[h]=y;m=void 0;var W=(m=f.hostElement)!=null?m:f;vbN.has(h)&&(W[h]=y);M[h]=y}}Zt(function(){if(f.setProperties)f.setProperties(M);else for(var I=_.V(Object.entries(M)),S=I.next();!S.done;S=I.next()){var d=_.V(S.value);S=d.next().value;d=d.next().value;
f[S]=d}})})};
h$s=function(f,H,v,t){var M=HB5(v,t.slotProps),h=(0,_.gX)(f);M=_.V(M);for(var y=M.next();!y.done;y=M.next())h.appendChild(y.value);teR(H,v,t);t=_.V(t.callbackProps||[]);M=t.next();for(h={};!M.done;h={kebabEventName:void 0,eventListener:void 0},M=t.next())y=M=M.value,String(M).substring(0,2)==="on"&&v[y]?(h.kebabEventName=gav(String(M).substring(2)),h.eventListener=v[y],f.addEventListener(h.kebabEventName,h.eventListener),_.Dt(function(S){return function(){f.removeEventListener(S.kebabEventName,S.eventListener)}}(h))):
H[y]=v[y];
if(v.ref){v=_.V(MeE(v.ref));var m=v.next().value,W=v.next().value,I=H.attached.bind(H);H.attached=function(){m(f);I()};
_.Dt(function(){W()})}};
MeE=function(f){if(typeof f==="function"){var H;return[function(v){H=f(v)},
function(){var v;(v=H)==null||v()}]}if(!f.onRender||!f.onUnmount)throw Error("Sg");
return[f.onRender,f.onUnmount]};
Yc_=function(f,H,v,t,M){t=t===void 0?{}:t;var h=R$3,y=!1;h?(y=!0,R$3=void 0):(Ve5=H,h=document.createElement(H),Ve5=void 0);var m=h;m.usePatchedLifecycles=!0;m.lifecycleIsConnected=!1;h.loggingStatus={};var W=yPR(f,H,h,t,M);_.Dt(function(){m.lifecycleIsConnected&&(m.lifecycleIsConnected=!1,W.disconnectedCallback())});
y||(h.__noInsertionPoint=!0,h$s(h,W,v,t));return h};
yPR=function(f,H,v,t,M){M=M===void 0?ncR:M;mne[H]!=null||(mne[H]=M(f,H,t==null?void 0:t.getTemplate,t));var h=mne[H],y=h.ctor;M=h.getInitialMethods;var m=h.getPropsToForwardBeforeReady;f=h.getPropsToForwardBeforeRegister;t=h.shouldForwardProp;var W=h.observedAttributes,I=h.shouldLog,S=y(v,{beforeReady:function(){var d=S;d._takeAttributes?d._takeAttributes():d.setPropertiesFromInitialAttributeValues&&d.setPropertiesFromInitialAttributeValues();d=_.V(m(v.polymerController));for(var Z=d.next();!Z.done;Z=
d.next()){var l=_.V(Z.value);Z=l.next().value;l=l.next().value;uYH(v,Z,l);I(H)&&!ME(Z)&&Gyg(v.polymerController,Z)}v.polymerController=tu_(S,H)}});
v.polymerController=S;v.polymerController.observedAttributes=W;h=_.V(S.getExtraMethodsToForward());for(y=h.next();!y.done;y=h.next())W=_.V(y.value),y=W.next().value,W=W.next().value,avR(v,y,W);M=_.V(M());for(h=M.next();!h.done;h=M.next())h=h.value,t(h)&&avR(v,h),I(H)&&!ME(h)&&PUN(S,h);f=_.V(f());for(t=f.next();!t.done;t=f.next())M=_.V(t.value),t=M.next().value,M=M.next().value,uYH(v,t,M);return S};
$nb=function(f){var H=yz;yz=f;return H};
gbE=function(f){if(_.Y6.has(f))_.W1N=f;else if(mx.has(f)&&yz&&OBT(yz)===f){var H;(H=yz)._numRenders!=null||(H._numRenders=0);yz._numRenders++;if(yz._numRenders>1)throw Error("Tg");return yz}};
IHN=function(f){_.Y6.has(OBT(f))?_.W1N=OBT(f):mx.has(OBT(f))&&yz!==f&&(f._isInert=!0)};
OBT=function(f){var H;return(H=f==null?void 0:f.tagName.toLowerCase())!=null?H:""};
Scg=function(f,H){if(f.componentType===_.BM)throw Error("Ug");mx.add(H);var v=function(){var t=HTMLElement.call(this)||this;t.is=H;if(Ve5===H)return t.isInert=!0,t;t.createElement();return t};
_.e(v,HTMLElement);v.prototype.createElement=function(){if(!this.isInert){R$3=this;var t=_.V(_.Swe(function(){return _.O(f,null)})).next().value;
R$3=void 0;MQ5(this);return t}};
customElements.define(H,v)};
saN=function(f,H,v,t,M){f.prototype.is=H;(t==null?0:t.useSink)?ja_(f,H,v,t,M):(v=ncR(f,H,v,t),CUv(v,H));return f};
ja_=function(f,H,v,t,M){wTH();var h=_.a(function(y){return Yc_(f,H,y,Object.assign({},t,{getTemplate:v}),M)},"a");
h.debugName=H+" (CoW wrapped)";Scg(h,H);return h};
JPT=function(f){return!ZBR.has(f)};
e$H=function(f,H,v,t){function M(){if(!d){for(var Z=new Set(lHe),l=_.V(h.behaviors),L=l.next();!L.done;L=l.next()){L=L.value;for(var r=_.V(Object.getOwnPropertyNames(L)),n=r.next();!n.done;n=r.next()){n=n.value;var Q=void 0,C=(Q=Object.getOwnPropertyDescriptor(L,n))==null?void 0:Q.value;C&&C instanceof Function&&(!I[n]||_.J("polymer_forward_method_killswitch"))&&Z.add(n)}}l=_.V(Object.entries(Object.getOwnPropertyDescriptors(f.prototype)));for(L=l.next();!L.done;L=l.next())r=_.V(L.value),L=r.next().value,
r=r.next().value,r.value instanceof Function&&Z.add(L);d=Z}return d}
var h=MXs({is:H,disableElementRegistration:!1,getTemplate:v,providers:t==null?void 0:t.providers,reactivityMode:t==null?void 0:t.reactivityMode},f);if((t==null?0:t.allowedProps)||(t==null?0:t.allowedPropsFromBehaviors)){var y,m;h.allowedProps=[].concat(_.pS((y=t.allowedProps)!=null?y:[]),_.pS((m=t.allowedPropsFromBehaviors)!=null?m:[]))}var W=TFB(h,f);H=W.observedAttributes;var I={};v=_.V(h.reactiveSchemas);for(t=v.next();!t.done;t=v.next())if(t=t.value,t.type==="signal")I[t.propertyKey]={readOnly:t.readOnly},
t.readOnly&&(I[B2R(t.propertyKey)]={readOnly:!0});else if(t.type==="compute"||t.type==="computeWithMethod"||t.type==="redux")I[t.propertyKey]={readOnly:!0};var S=h.reactiveSchemas.length,d;return{ctor:function(Z,l){Z=new W(Z);Z.beforeReady=l.beforeReady;return Z},
props:I,observedAttributes:H,getInitialMethods:M,getPropsToForwardBeforeRegister:function(){for(var Z=[],l=new Set,L=_.V(Une),r=L.next();!r.done;r=L.next())r=r.value,Z.push([r,r!=="observers"&&r!=="properties"]),l.add(r);L=_.V(Object.keys(I));for(r=L.next();!r.done;r=L.next())r=r.value,Z.push([r,I[r].readOnly]),l.add(r);L=M();r=_.V(Object.keys(Object.getOwnPropertyDescriptors(f.prototype)));for(var n=r.next();!n.done;n=r.next())n=n.value,!JPT(n)||L.has(n)||l.has(n)||(Z.push([n,!1]),l.add(n));Z.push(["allowedProps",
!0]);return Z},
getPropsToForwardBeforeReady:function(Z){var l=[];Z=_.V(Object.keys(Z));for(var L=Z.next();!L.done;L=Z.next()){L=L.value;var r=M();JPT(L)&&!r.has(L)&&l.push([L,!1])}Z=_.V(h.reactiveSchemas.slice(S));for(L=Z.next();!L.done;L=Z.next())L=L.value,L.type!=="compute"&&L.type!=="computeWithMethod"&&L.type!=="redux"&&L.type!=="signal"||l.push([L.propertyKey,L.type==="signal"?L.readOnly:!0]);return l},
shouldForwardProp:JPT,shouldLog:BB}};
_.G=function(f,H,v,t){var M,h,y=(h=(M=t)==null?void 0:M.mode)!=null?h:0;t!=null||(t={});var m;(m=t).reactivityMode!=null||(m.reactivityMode=0);y===1&&_.YZ("creator_poly_si_disable_list").includes(H)&&(y=2);return y===1?saN(f,H,v,Object.assign({},t,{useSink:!0}),e$H):saN(f,H,v,Object.assign({},t,{useSink:y===2}))};
_.$6=function(){return function(f,H,v,t){var M,h,y=(h=(M=t)==null?void 0:M.mode)!=null?h:2;t!=null||(t={});var m;(m=t).reactivityMode!=null||(m.reactivityMode=0);if(y===0)throw Error("Vg`"+y);return ja_(f,H,v,t,y===1?e$H:void 0)}};
_.WK=function(f){return _.J("creator_poly_si_killswitch")?!1:_.J("force_all_poly_si_batches")&&(f==="poly_si_all_on_test_check"||f==="creator_poly_si_batch_050"?0:f)||document.documentElement.hasAttribute("use-signals")?!0:!f||_.J(f+"_holdback_enabled")&&_.J("kevlar_polysi_holdback")?!1:_.J(f)};
OV=function(f){return f?f.icon?f.icon.iconType.toLowerCase():f.customThumbnail?"member":"":""};
L1b=function(f){if(!f)return"";f=_.V(f);for(var H=f.next();!H.done;H=f.next())if((H=H.value)&&H.liveChatAuthorBadgeRenderer&&(H=OV(H.liveChatAuthorBadgeRenderer))&&H!=="verified")return H;return""};
xnR=function(f,H){if(!f)return null;var v;return((v=f.find(function(t){return t&&t.liveChatAuthorBadgeRenderer?OV(t.liveChatAuthorBadgeRenderer)===H:!1}))==null?void 0:v.liveChatAuthorBadgeRenderer)||null};
_.DnT=function(f){var H=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;f=B5s(f);H=B5s(H);var v=z$s(f.hex);H=z$s(H.hex);var t=H[0]/255;var M=H[1]/255,h=H[2]/255,y=Math.max(t,M,h),m=Math.min(t,M,h),W=0,I=0,S=.5*(y+m);y!=m&&(y==t?W=60*(M-h)/(y-m):y==M?W=60*(h-t)/(y-m)+120:y==h&&(W=60*(t-M)/(y-m)+240),I=0<S&&S<=.5?(y-m)/(2*S):(y-m)/(2-2*S));t=[Math.round(W+360)%360,I,S];v=F15(v,H);for(f=rPe(f.hex);v<4.5;){f=t[2]>=.5?f.darker((4.5-v)/2):f.brighter((4.5-v)/2);v=f.toString();
M=K1E(v);if(!M.length)throw Error("Sd`"+v);v=M;v=F15(v,H)}return f.hex()};
F15=function(f,H){f=_.gDH(f);H=_.gDH(H);return(Math.max(f,H)+.05)/(Math.min(f,H)+.05)};
_.g9=function(f){return"#"+("000000"+(f&16777215).toString(16)).slice(-6)};
_.obH=function(f){for(var H=0,v=0;v<f.length;v++)H=f.charCodeAt(v)+((H<<5)-H);f="#";for(v=0;v<3;v++)f+=("00"+(H>>v*8&255).toString(16)).slice(-2);return f};
nbH=function(f){f=(f||"").split(":");f.length===1&&f.unshift("yt-icons");f[1]=f[1].toLowerCase();return f};
GmR=function(f,H){var v=(H=H===void 0?!1:H)?prE:QaH,t=H?ux3:aHE;f.getIconNames().forEach(function(M){M=H?M:M.substring(M.indexOf(":")+1);f.name==="yt-icons"?P4T.add(M):M.includes("-filled")?v.add(M):t.add(M)})};
Iu=function(f,H,v,t){v=v===void 0?!1:v;t=t===void 0?!1:t;var M,h,y;return _.Y(function(m){if(m.nextAddress==1)return m.yield(C45,2);if(t)return m.return(P4T.has(f));M=v?prE:QaH;h=v?ux3:aHE;return H?(y=f.includes("-filled")?f:f.concat("-filled"),m.return(M.has(y))):m.return(h.has(f))})};
_.cPb=function(f){if(Ebv(f))return f;var H=f=f.toLowerCase();(f=N53.get(f))&&(H=f);return H};
_.SW=function(f){if(Ebv(f))return f.toString();var H=Xr3.get(f);if(H)return H;H=f.toLowerCase();var v="yt-icons",t=H.replace(/_/g,"-");switch(f){case "MY_CHANNEL":H="account_circle";break;case "ADD_TO_LIBRARY":H="add";break;case "ALERT_WARN_RED":H="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":H="person_music";break;case "BLOCK_USER":H="block";break;case "CAPTIONS":H="closed_caption";break;case "CLOSED_CAPTION":v="av";H="closed-caption";break;case "COLLECTION":v="maps";H="layers";break;case "CONTACT":v=
"icons";H="business";break;case "CREATOR_STUDIO_ERROR_ON_LOAD":case "CREATOR_STUDIO_ERROR_ON_LOAD_V2":case "CREATOR_STUDIO_NO_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS_V2":case "CREATOR_STUDIO_NO_SEARCH_MATCH":case "CREATOR_STUDIO_NO_SEARCH_MATCH_V2":v="ytcp-icons";H=t.split("creator-studio-")[1];break;case "DISMISSAL":H="close";break;case "DO_NOT_DISTURB":H="block";break;case "DOGFOOD":v="icons";H="pets";break;case "DRAFT":H="paper_corner_folded";break;
case "EMPTY_LIKE":H="like_outline";break;case "EXIT_APP":H="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":H=t;break;case "GAMES":v="ytg";H="my-games";break;case "GO_TO_PAGE":H="arrow-forward";break;case "GROUP":v="social";break;case "HIDE":H="not_interested";break;case "INPUT_COMPONENT":v="icons";H="settings-input-component";break;case "KIDS_BLOCK":H="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":v="ytg";H="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":v=
"ytg";H="membership-post-purchase";break;case "MULTIVIEW":H="screen_multi_view";break;case "MY_LOCATION":v="maps";H=t;break;case "NOTIFICATIONS_INBOX":H="NOTIFICATIONS";break;case "NEXT":H="chevron_right";break;case "OFFLINE":H="power-settings-new";break;case "PAUSE":v="miniplayer";break;case "PAYMENT":v="icons";break;case "PHONE_DOWNLOAD":H="phone_download";break;case "PREMIUM_STANDALONE":v="yt-logos";H="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":v="yt-logos";H="premium_standalone_cairo";
break;case "QUESTION_ANSWER":H="question_answer";break;case "REDEEM":v="icons";H="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":H="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":H="library_add";break;case "SCHOOL":v="yt-sys-icons";H="creator_academy";break;case "SETTINGS_LIGHT":H="settings_applications";break;case "SETTINGS_MATERIAL":H="settings";break;case "SEARCH_HISTORY":H="watch_history";break;case "SHOPPING_BAG":H="bag";break;case "SOCIAL":case "PEOPLE":v=
"yt-icons";H="people";break;case "STAFF_PICK":v="ytg";H="spotlight";break;case "START_DVR":H="add";break;case "STOP_DVR":v="av";H="stop";break;case "TAB_LIKED":H="like";break;case "TAB_INBOX":H="mail";break;case "TERMS_OF_SERVICE":v="icons";H="description";break;case "TRENDING":H="fire";break;case "UNBLOCK_USER":H="remove";break;case "UNPLUGGED_DARK_THEME":v="image";H="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":H="live";break;case "UNPLUGGED_SPORTS":v="ytu";H="visibility-off";break;
case "VIDEOS":v="av";H="play-circle-filled";break;case "YOUTUBE":v="yt-logos";H="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":v="yt-logos-ext";H="yt-logo-red-updated";break;case "YOUTUBE_LOGO":v="yt-logos-ext";H="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":v="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":v="shorts";H=t;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":v="yt-sys-icons";H="youtube_improve_tv";break;case "OUTLINE_BAG":v=
"yt-sys-icons";H="bag";break;case "QUEUE_PLAY_LAST":v="yt-sys-icons";H="list_queue_last";break;case "SLASH_CIRCLE_LEFT":H="slash_circle_left";break;case "SPEED_1_POINT_2X":H="1_point_2x";break;case "SPEED_1_POINT_5X":H="1_point_5x";break;case "SPEED_1_POINT_8X":H="1_point_8x";break;case "SPEED_POINT_2X":H="point_2x";break;case "SPEED_POINT_5X":H="point_5x";break;case "SPEED_POINT_8X":H="point_8x";break;case "SPEED_1X":H="1x";break;case "SPEED_2X":H="2x";break;case "TAB_BOOKMARK":H="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":v="yt-sys-icons";H="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":v="yt-sys-icons";H="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":v="yt-sys-icons",H="tic_tac_toe"}H=v+":"+H;Xr3.set(f,H);return H};
Ebv=function(f){var H;_.J("kevlar_use_wil_icons")?H=!!_.t8().resolve(_.d9).resolveIcon({iconName:f.toString()}):H=!1;return H};
_.sV=function(f,H,v,t){v=v===void 0?{}:v;t=t===void 0?!1:t;v===null&&(v={});var M=_.YZ("kevlar_command_handler_command_banlist");M=_.V(M);for(var h=M.next();!h.done;h=M.next())if(h=f?f.hasOwnProperty(h.value):void 0,h)return!1;M=_.U(f.commandMetadata,_.jG);return t&&M!=null&&M.url?!1:!H.disableCommandHandlerOverride&&_.jW.instance?(t=_.jW.instance,v.form||(v.form={element:H}),v.form.element||(v.form.element=H),!v.clickedVisualElement&&H.visualElement&&(v.clickedVisualElement=H.visualElement),t.resolveCommand(f,
v),!0):!1};
APv=function(f,H){f=ZI(f);for(var v=_.V(f.visibilityMonitorKeys||[]),t=v.next();!t.done;t=v.next())H.unobserveByKey(t.value);f.visibilityMonitorKeys=void 0};
T5R=function(f,H){if(_.uy()){if(_.J("kevlar_vimio_use_shared_monitor"))bBH(f,H.data);else if(!bBH(f,H.data))return;var v=H.data,t=iBs(v);if(_.J("enable_client_ve_spec_logging"))APv(f,H.observer);else{var M=ZI(f);M.trackedParams&&M.trackedParams!==t&&APv(f,H.observer)}M=ZI(f);!v||M.data&&M.data===v||(M.data=v);kmR(f,H);M.trackedParams=t}};
kmR=function(f,H){var v=H.observer;if(!v&&_.J("web_skip_missing_vimio_observer")){var t,M;_.pb(new _.e$("VisibilityObserver is not defined.",f.tagName,f.trackedParams,(t=H.data)==null?void 0:t.trackingParams,(M=H.data)==null?void 0:M.loggingDirectives))}else{var h=H.layer,y=H.visibilityCallback||function(){},m=H.prescanCallback,W=ZI(f);
t=[];H.showOption&&t.push(v.observe(f,function(){H.skipLogging&&H.skipLogging()||_.JV().reportShown(W,void 0,h);y(!0)},H.showOption));
H.hideOption&&t.push(v.observe(f,function(){_.JV().reportHidden(W,void 0,h);y(!1)},H.hideOption));
H.prescanOption&&m&&t.push(v.observe(f,function(){m()},H.prescanOption));
W.visibilityMonitorKeys=t}};
bBH=function(f,H){f=ZI(f);if(f.visualElement&&!H)return!0;if(!H)return!1;var v=!1;if(_.J("enable_client_ve_spec_logging")){var t,M;v=!!((t=H.loggingDirectives)==null?0:(M=t.clientVeSpec)==null?0:M.uiType)}t=iBs(H);if(!t&&!v)return!1;_.J("mweb_component_visibility_logging")&&(f.veContainer||(f.veContainer={}),f.veContainer.trackingParams=t);if(f.trackedParams&&f.trackedParams===t)return!1;var h;if(_.J("enable_client_ve_spec_logging")&&((h=f.visualElement)==null?0:h.isClientVe())){var y;h=(y=f.visualElement)==
null?void 0:y.getAsJspb();var m,W,I,S;if(_.Yl(h,2)===((m=H.loggingDirectives)==null?void 0:(W=m.clientVeSpec)==null?void 0:W.uiType)&&_.Yl(h,3,-1)===((I=H.loggingDirectives)==null?void 0:(S=I.clientVeSpec)==null?void 0:S.elementIndex))return!1}if(_.J("enable_client_ve_spec_logging")){var d,Z;!f.visualElement&&((d=H.loggingDirectives)==null?0:(Z=d.clientVeSpec)==null?0:Z.uiType)&&(m=H.loggingDirectives.clientVeSpec,H=m.uiType,y=m.elementIndex,m=m.clientYoutubeData,f.visualElement=_.lV(_.UV(),{veType:H,
elementIndex:y,clientYouTubeData:m}))}return!0};
iBs=function(f){if(f==null?0:f.rendererContext){var H=_.U(f.rendererContext,_.eW);if(H==null?0:H.loggingDirectives)return H.loggingDirectives.trackingParams}return(f==null?0:f.loggingDirectives)?f.loggingDirectives.trackingParams:f==null?void 0:f.trackingParams};
ZI=function(f){var H;return(H=f.polymerController)!=null?H:f};
Hqe=function(f){_.JV();if(_.Cc(Lu().JSC$12545_elementShouldLogGesture).bind(Lu())(f,4)){wrs(f);var H=qcE(f);flR.set(f,H)}};
wrs=function(f){flR.has(f)&&(flR.get(f).cancel("untrack hover element"),flR.delete(f))};
qcE=function(f){var H,v=[],t=!1,M=new _.IO(function(h,y){x6(f,"mouseenter",_.Cc(function(){var m,W,I;return _.Y(function(S){if(S.nextAddress==1)return H=(0,_.ta)(),m=v9v(f),v.push(m),W=tJs(f,function(){t=!0;y(Error("Wg"))}),S.yield(m,2);
if(S.nextAddress!=3)return W&&BK(W),I=MJr(f),v.push(I),S.yield(I,3);h();_.Bj(S)})}))});
M.then(function(){var h=(0,_.ta)()-H;h=Math.round(h);if(!(500>h||6E5<=h)){var y=f.getScreenLayer?f.getScreenLayer():void 0;y=_.uy(y)||"";var m=h_H(_.JV(),f);_.wj(y,f.visualElement?f.visualElement:_.zK(m),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:h}})}Hqe(f)},function(){FA&&(FA(),FA=null);
t&&(wrs(f),Hqe(f))});
return M};
v9v=function(f){var H;return(new _.IO(function(v,t){FA=function(){t(Error("Xg"))};
H=_.nN.debounce(_.Cc(function(){BK(M);v()}),1,100);
var M=_.r9(f,"mousemove",H)})).thenCatch(function(){var v=_.nN.cancelDebouncedJobMap.get(H);
v&&_.nN.cancelJob(v)})};
MJr=function(f){var H;return(new _.IO(function(v,t){FA=function(){t(Error("Yg"))};
H=x6(f,"mouseleave",_.Cc(function(){v()}))})).thenCatch(function(){BK(H)})};
tJs=function(f,H){return x6(f,"mouseleave",_.Cc(H))};
VJr=function(f){R_T&&_.Ku.cancel(R_T);R_T=_.Ku.run(function(){_.YE(f,"yt-visibility-refresh");R_T=0})};
yBR=function(f){f=Number(f);return"rgba("+[f>>16&255,f>>8&255,f&255,(f>>24&255)/255].join()+")"};
mpR=function(f){if(!f)return!1;if(_.U(f,_.YOH))return!0;var H;if(f=(H=_.U(f,_.Ir))==null?void 0:H.commands)for(H=_.V(f),f=H.next();!f.done;f=H.next())if(_.U(f.value,_.YOH))return!0;return!1};
$pH=function(f){var H=!0;H=H===void 0?!0:H;if(!f.useSignals&&!f.experimentalPropertiesChanged||_.J("experimental_templating_behavior_nopatch_killswitch")){var v=f._propertiesChanged;f._propertiesChanged=function(t,M,h){H?f.debounceRender():f.doRender();v&&v.call(f,t,M,h)}}};
Wzb=function(f,H){if(f.useSignals||f.experimentalPropertiesChanged)if(_.J("experimental_templating_behavior_nopatch_killswitch"))f.experimentalPropertiesChanged=function(){};
else return;var v=new Set,t=[f].concat(_.pS(f.behaviors));t=_.V(t);for(var M=t.next();!M.done;M=t.next()){M=M.value;for(var h in M.properties)v.has(h)||(f._addPropertyEffect(h,"function",H),v.add(h))}};
OqH=function(){var f=Polymer.Element,H=f._prepareTemplate;f._prepareTemplate=function(){H.call(this);var v=this.prototype;if(v.experimentalTemplatingInUse&&v.experimentalTemplatingInUse()&&v.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.oO(Error("Zg"));else{v=this.template.content.childNodes;for(var t=v.length-1;t>=0;t--){var M=v[t];M.nodeName!=="STYLE"&&M.nodeName!=="LINK"&&M.nodeName!=="SCRIPT"&&M.nodeName!=="#comment"&&M.remove()}}}};
g9N=function(f){var H=!0;H=H===void 0?!0:H;OqH();var v=f.ready;f.ready=function(){this._template=null;v.call(this)};
Wzb(f,H?f.debounceRender:f.doRender)};
SOv=function(f,H,v){if(v===null||v===void 0)return v;var t=fxe(f.tagName.toLowerCase(),H,function(){throw Error("Ob");});
if(t===null)return v;t=IlR[t];var M;if((M=t.isUnwrappable)==null?0:M.call(t,v)){if(t.unwrap)return t.unwrap(v);throw Error("bh");}return t.filterString?t.filterString(f.tagName,H,String(v)):v};
dpR=function(f,H,v){var t=H[H.length-1]!=="$",M=SOv(f,H,v);if(t)if(typeof M==="function"&&H.startsWith("reactiveon")&&H===H.toLowerCase()){var h=f4;Yo3(f,H.slice(8),function(y){PM(h,function(){M(y)})})}else f[H]=M;
else v=M==null?null:String(M),Eg(f,H.slice(0,-1),v)};
ou=function(f){jUE.length===0&&requestAnimationFrame(function(){setTimeout(function(){var H=jUE.slice();jUE.length=0;H=_.V(H);for(var v=H.next();!v.done;v=H.next()){v=v.value;try{v()}catch(t){_.DI(t)}}})});
jUE.push(f)};
sUs=function(f){if(f){var H=f.component;if(H){var v;H==null||(v=H.events)==null||v.publish("DISCONNECTED");var t;H==null||(t=H.onDisconnected)==null||t.call(H)}var M,h;(M=f.__spec)==null||(h=M.didUnmount)==null||h.call(M);for(H=0;H<f.childNodes.length;H++)sUs(f.childNodes[H])}};
Zqs=function(f,H,v){var t=H&&H.key,M=wp;M[0]=f;M[1]=t;M[2]=void 0;for(var h in H)H.hasOwnProperty(h)&&(f=H[h],t=qk,t.push(h),t.push(f));H=wp;a:{if(h=wp[2])for(f=0;f<h.length;f+=2)if(h[f]==="nonce"){h=h[f+1];break a}h=""}h=lxR(H[0],H[1],h);f=cM(h);t=H[2];if(!f.staticsApplied&&(f.staticsApplied=!0,t&&t.length))if((M=f._attrsArr)&&M.length){for(M=0;M<t.length;M+=2)nu[t[M]]=M+1;M=f._attrsArr||(f._attrsArr=yMs(0));for(var y=0,m=0;m<M.length;m+=2){var W=M[m],I=M[m+1],S=nu[W];S?t[S]===I&&delete nu[W]:(M[y]=
W,M[y+1]=I,y+=2)}C4(M,y);for(var d in nu)g7H(h,d,t[nu[d]],Hb),delete nu[d]}else for(d=0;d<t.length;d+=2)g7H(h,t[d],t[d+1],Hb);rM_(h,f,Hb);C4(H,0);v&&v(XT);UV3()};
_.pu=function(f,H,v){v===void 0?delete f[H.name]:f[H.name]=v};
_.Qz=function(f){var H={androidIncludeFontPadding:!1},v=0,t=[],M=[],h=[];if(f.simpleText)return H.content=f.simpleText,H;if(f.runs===void 0)return H.content="",H;f=_.V(f.runs);for(var y=f.next();!y.done;y=f.next()){y=y.value;var m=y.text,W=void 0,I=(W=m)==null?void 0:W.length;if(m&&I){t.push(m);if(y.bold||y.italics||y.strikethrough||y.underline||y.textColor!=null&&y.textColor!==0||y.deemphasize){m=M;W=m.push;var S={startIndex:v,length:I};y.bold&&(S.weightLabel="FONT_WEIGHT_MEDIUM");y.italics&&(S.italic=
!0);y.strikethrough&&(S.strikethrough="LINE_STYLE_SINGLE");y.underline&&(S.underline="LINE_STYLE_SINGLE");y.textColor!=null&&y.textColor!==0?document.documentElement.hasAttribute("dark")?S.fontColor=y.darkModeTextColor||y.textColor:S.fontColor=y.textColor:y.deemphasize&&(document.documentElement.hasAttribute("dark")?S.fontColor=parseInt("ff"+JBg("#aaa").substring(1),16):S.fontColor=parseInt("ff"+JBg("#606060").substring(1),16));W.call(m,S)}y.navigationEndpoint&&(m=h,W=m.push,S={startIndex:v,length:I,
onTap:{innertubeCommand:y.navigationEndpoint}},y.loggingDirectives&&_.pu(S,llB,y.loggingDirectives),W.call(m,S));v+=I}}H.content=t.join("");H.styleRuns=M.length?M:void 0;H.commandRuns=h.length?h:void 0;return H};
e_5=function(f){if(f==null||!f.runs)return!0;f=_.V(f.runs);for(var H=f.next();!H.done;H=f.next())if(H=H.value,H.bracket||H.errorUnderline||H.deemphasize||_.U(H,uV)||_.U(H,UpR))return!1;return!0};
Lzr=function(f,H){return function(v){var t=H.unit;if(t!==v)throw Error("eh`"+f+"`"+t+"`"+v);return H}};
au=function(f){if(!((f==null?0:f.value)&&(f==null?0:f.unit)))return"";switch(f.unit){case "DIMENSION_UNIT_FRACTION":var H="%";break;default:H="px"}f=f.value;H==="%"&&(f*=100);return""+f+H};
xp5=function(f){try{return f()}catch(H){_.pb(H)}};
_.GK=function(f){var H=_.U(f,_.PK);if(H)return H;if((H=_.U(f,Bw3))&&H.commands)return z_g(H.commands);if((H=_.U(f,FzB))&&H.commands)return z_g(H.commands);if((f=_.U(f,rBB))&&f.identifier&&f.command&&(Kz3||(Kz3=[]),!Kz3.includes(f.identifier)))return Kz3.push(f.identifier),_.U(f.command,_.PK)};
z_g=function(f){if(f.length!==0){var H=[];f=_.V(f);for(var v=f.next();!v.done;v=f.next())(v=_.GK(v.value))&&H.push(v);return{commandExecutorCommand:{commands:H}}}};
_.NE=function(f){var H=f.defaultTarget,v=f.elementConfig,t=f.elementsCommand,M=f.skipOnClick,h=f.forceNewState,y=f.additionalCommandArgs,m=f.innertubeCommand||_.GK(t);if(m){f={};var W=Dpb(m);t=W.navigatingCommand;W=W.href;t&&W?(f.href$=W,o9R(f,t,W,H),_.J("web_atagconfig_pointerdown")&&n95(f,t),h&&(f["force-new-state$"]=!0)):(f.role$="button",f.href$="javascript:void(0);");_.U(m,plr)&&(f["aria-haspopup$"]=!0);M||(f.onclick=function(I){var S={};if(QUR(I)){var d=(y==null?void 0:y.clickedVisualElement)||
(y==null?void 0:y.getClickedVisualElement)&&y.getClickedVisualElement();d&&(S={clickedVisualElement:d});S=Object.assign({},{form:{element:I.target,event:I,createScreenConfig:S}},y);I.preventDefault();_.Cu(m,S)}});
return Object.assign({},v,f)}};
u8b=function(f){if(f.length){if(f.length===1)return f[0];var H={};_.pu(H,_.Ir,{commands:f});return H}};
cK=function(f){return f&&f.href$!=="javascript:void(0);"};
Dpb=function(f){var H,v=((H=_.U(f,_.Ir))==null?void 0:H.commands)||[f];f=_.V(v);for(H=f.next();!H.done;H=f.next()){H=H.value;var t=void 0,M=void 0;v=(M=_.U((t=H)==null?void 0:t.commandMetadata,_.jG))==null?void 0:M.url;_.J("web_remove_web_navigation_endpoint_data")||(t=void 0,v=v||((t=_.U(H,alH))==null?void 0:t.url));if(v&&v!=="/service_ajax"){if(t=_.Pv(v,Poe))return f=_.QO(t),{navigatingCommand:H,href:f};_.pb(new _.e$("AttributedString URL could not be sanitized",v))}}return{}};
QUR=function(f){return f.button!==void 0?f.button===0&&!(f.shiftKey||f.altKey||f.metaKey||f.ctrlKey):!(f.shiftKey||f.altKey||f.metaKey||f.ctrlKey)};
o9R=function(f,H,v,t){v=!fl(v);var M,h,y;if((M=_.U(H,_.ec))!=null&&M.nofollow||(h=_.U(H,_.wI))!=null&&h.nofollow||(y=_.U(H,_.X7))!=null&&y.nofollow||v)f.rel$="nofollow";var m;H=((m=_.U(H,_.X7))==null?void 0:m.target)==="TARGET_NEW_WINDOW"?"_blank":t===void 0?"":t;f.target$=H};
n95=function(f,H){H.clickTrackingParams&&(f.params={itct:H.clickTrackingParams});f.onpointerdown=function(v){Gtr(v)};
f._data=H};
CoN=function(f){(f.loggingUrls||[]).forEach(function(H){XB(H.baseUrl,H.attributionSrcMode)})};
Gtr=function(f){var H=f.currentTarget;f=xp5(function(){return H.href});
var v=H.params;f&&_.vV(f,v||{},8,!0)};
_.XA=function(f,H){(f=_.GK(f))&&_.Cu(f,H)};
_.Cu=function(f,H){Fbb(function(v){H?v.resolveCommand(f,H):v.resolveCommand(f)})};
Xl5=function(f,H){var v=["yt-core-attributed-string__link"];H!=null&&H.noLinkColor||((H==null?0:H.isOverlay)?v.push("yt-core-attributed-string__link--overlay-call-to-action-color"):v.push("yt-core-attributed-string__link--call-to-action-color"),(H==null?0:H.linkInheritColor)&&v.push("yt-core-attributed-string--link-inherit-color"));v={className:v.join(" "),tabindex$:"0"};var t=f.onTap||f.onLongPress;if(!t)return v;var M=E9b(f);M&&(v["aria-label$"]=M);H=_.NE({elementsCommand:t,elementConfig:v,skipOnClick:!(H==
null||!H.skipOnClick),forceNewState:!0});f.onLongPress&&(t=new NwR(function(){var h=_.GK(f.onLongPress);h&&_.t8().resolve(_.MJ).resolveCommand(h)}),H&&cBr(t,H));
return H||v};
E9b=function(f){var H,v;return(H=f.onTapOptions)==null?void 0:(v=H.accessibilityInfo)==null?void 0:v.accessibilityLabel};
ABb=function(f){var H=f;f<=16777215&&(H+=parseInt("ff000000",16));return _.cS(H)};
bqE=function(f){var H=f.isDarkTheme;var v=f.extension;f=f.runColor;var t=void 0;if(v=v==null?void 0:v.colorMap){H=H?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";v=_.V(v);for(var M=v.next();!M.done;M=v.next())if(M=M.value,H===M.key){t=M.value;break}}t==null&&f&&(t=f);if(t)return ABb(t)};
AV=function(f){var H=f.config;var v=f.image;var t=f.imageConfig;var M=f.imageWrapperConfig;var h=f.run;var y=f.tag;var m=f.textLength;var W=f.startIndex===void 0?0:f.startIndex;f=f.length;W===void 0&&(W=0);h={run:h,startIndex:W,endIndex:f!==void 0?W+f:m,tag:y};v&&(h.image=v);t&&(h.imageConfig=t);M&&(h.imageWrapperConfig=M);H&&(h.config=H);return h};
ktE=function(f,H){var v=[];v.push("yt-core-attributed-string");(H==null?0:H.className)&&v.push(H==null?void 0:H.className);(H==null?0:H.ellipsisTruncate)?v.push("yt-core-attributed-string--ellipsis-truncate"):(H==null?0:H.noWrap)?v.push("yt-core-attributed-string--white-space-no-wrap"):(H==null?0:H.noPreWrap)||v.push("yt-core-attributed-string--white-space-pre-wrap");(H==null?0:H.linkInheritColor)&&v.push("yt-core-attributed-string--link-inherit-color");f.alignment&&v.push(iqg(f.alignment));f.lineBreakMode&&
v.push("yt-core-attributed-string--word-wrapping");return v.join(" ")};
Twr=function(f,H){if(f.weight)return f.weight;switch(f.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return H?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
wlT=function(f){switch(f){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"}};
iqg=function(f){switch(f){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"}};
k6=function(f,H,v){var t=H;f.content&&v&&(v=f.content.indexOf("\n"),v!==-1&&(t=Math.min(H,v)));if(!f.content||f.content.length<=t)H=f;else if(f.attachmentRuns||f.commandRuns||f.decorationRuns||f.styleRuns||f.paragraphStyleRuns){H=bV(f.content,t);v=t;var M=f.attachmentRuns;if(M){var h=[];M=_.V(M);for(var y=M.next();!y.done;y=M.next())y=Object.assign({},y.value),y.startIndex===void 0||y.startIndex>=v||(y.length||(y.length=0),y.length+y.startIndex>v&&(y.length=v-y.startIndex),h.push(y));v=h}else v=void 0;
h=qOr(t,f.commandRuns);M=t;var m=f.decorationRuns;if(m){y=[];m=_.V(m);for(var W=m.next();!W.done;W=m.next()){W=W.value;var I=_.U(W.textDecorator,iV);if(I&&I.startIndex!==void 0&&!(I.startIndex>=M)){W=Object.assign({},W,{textDecorator:{highlightTextDecorator:Object.assign({},I)}});I=_.U(W.textDecorator,iV);if(!I.length||I.length+I.startIndex>M)I.length=M-I.startIndex;y.push(W)}}M=y}else M=void 0;y=qOr(t,f.styleRuns);if(m=f.paragraphStyleRuns)for(f=[],m=_.V(m),W=m.next();!W.done;W=m.next()){var S=W.value;
W=Object.assign({},S);if(!(W.startIndex===void 0||W.startIndex>=t)){if(!W.length||W.length+W.startIndex>t)W.length=t-W.startIndex;I=[];var d=void 0,Z=void 0;if((d=S)==null?0:(Z=d.listGroup)==null?0:Z.listItems)for(S=_.V(S.listGroup.listItems),d=S.next();!d.done;d=S.next())if(d=Object.assign({},d.value),!(d.startIndex===void 0||d.startIndex>=t)){if(!d.length||d.length+d.startIndex>t)d.length=t-d.startIndex;I.push(d)}I.length>0&&(W.listGroup||(W.listGroup={}),W.listGroup=Object.assign({},W.listGroup,
{listItems:I}));f.push(W)}}else f=void 0;H={content:H,attachmentRuns:v,commandRuns:h,decorationRuns:M,styleRuns:y,paragraphStyleRuns:f}}else H=Object.assign({},f,{content:bV(f.content,t)});return H};
qOr=function(f,H){if(H){var v=[];H=_.V(H);for(var t=H.next();!t.done;t=H.next())if(t=Object.assign({},t.value),!(t.startIndex===void 0||t.startIndex>=f)){if(!t.length||t.length+t.startIndex>f)t.length=f-t.startIndex;v.push(t)}return v}};
bV=function(f,H){var v=H,t;if(t=v>0)t=f.charCodeAt(v-1),t=t>=55296&&t<=56319;t&&(v=f.charCodeAt(v),t=v>=56320&&v<=57343);t&&--H;return f.substring(0,H)};
toR=function(f,H,v){v=v===void 0?f$B:v;if(f){var t=_.t8().resolve(tM);t||_.J("mweb_no_observer_killswitch")?T5R(f,{data:H,observer:t,visibilityCallback:v,hideOption:HeE,showOption:vAR,layer:f.layer}):_.pb(new _.e$("Warning: monitorVisibility called with null observer",f.tagName,H==null?void 0:H.loggingDirectives,H==null?void 0:H.trackingParams))}else _.pb(new _.e$("Warning: monitorVisibility called with null element",H==null?void 0:H.loggingDirectives,H==null?void 0:H.trackingParams,H==null?void 0:
H.rendererContext))};
maE=function(f,H){var v=[],t=f.content.length,M,h=(M=_.t8().resolve(_.vh(_.TK)))==null?void 0:M();if(f.paragraphStyleRuns){M=_.V(f.paragraphStyleRuns);for(var y=M.next();!y.done;y=M.next()){var m=v.push,W=m.apply;var I=void 0;y=y.value;if((I=y.listGroup)!=null&&I.listItems){I=[];b:switch(y.listGroup.listType){case "LIST_TYPE_BULLET":var S="ul";break b;default:S="span"}I.push(AV({run:y,textLength:t,tag:S,config:{className:"yt-core-attributed-string__list-group"},startIndex:y.startIndex,length:y.length}));
S=_.V(y.listGroup.listItems);for(var d=S.next();!d.done;d=S.next()){d=d.value;b:switch(y.listGroup.listType){case "LIST_TYPE_BULLET":var Z="li";break b;default:Z="span"}I.push(AV({run:y,textLength:t,tag:Z,startIndex:d.startIndex,length:d.length}))}y=I}else y=[];W.call(m,v,_.pS(y))}}if(f.styleRuns&&(H==null||!H.noStyleRuns))for(M=_.V(f.styleRuns),m=M.next();!m.done;m=M.next()){y=m=m.value;I=h;W=H;I=bqE({extension:_.U(y.styleRunExtensions,MoT),isDarkTheme:I===void 0?!1:I,runColor:y.fontColor});d=y;
S=[];I&&S.push("yt-core-attributed-string--link-inherit-color");d.italic&&S.push("yt-core-attributed-string--italicized");d.underline&&d.strikethrough?S.push("yt-core-attributed-string--underline-strikethrough",wlT(d.underline)):d.underline?S.push("yt-core-attributed-string--underlined",wlT(d.underline)):d.strikethrough&&S.push("yt-core-attributed-string--strikethrough",wlT(d.strikethrough));if(d.baselineOffset){a:switch(d.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":d="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":d="yt-core-attributed-string--baseline-offset-superscript";break a;default:d="yt-core-attributed-string--baseline-offset-unknown"}S.push(d)}S=S.join(" ");d={};if(y.weight||y.weightLabel)d.fontWeight=Twr(y,W==null?void 0:W.isHeadline).toString();I&&(d.color=I);v.push(AV({run:m,textLength:t,tag:"span",config:{className:S,style:d},startIndex:m.startIndex,length:m.length}))}if(f.decorationRuns)for(M=_.V(f.decorationRuns),m=M.next();!m.done;m=M.next())m=m.value,
W={},m.textDecorator&&(S=m.textDecorator,y=h===void 0?!1:h,d=[],I=_.U(S,iV),S=_.U(S,hkv),I?(S=d,d=S.concat,Z=[],(y=bqE({extension:_.U(I.highlightTextDecoratorExtensions,RkR),isDarkTheme:y,runColor:I.backgroundColor}))&&Z.push("background-color: "+y+";"),I.backgroundCornerRadius!==void 0&&Z.push("border-radius: "+I.backgroundCornerRadius+"px;"),I.leftPadding!==void 0&&Z.push("padding-left: "+I.leftPadding+"px;"),I.rightPadding!==void 0&&Z.push("padding-right: "+I.rightPadding+"px;"),I.topPadding!==
void 0&&Z.push("padding-top: "+I.topPadding+"px;"),I.bottomPadding!==void 0&&Z.push("padding-bottom: "+I.bottomPadding+"px;"),d=d.call(S,Z)):S&&(I=d,d=I.concat,y=y?"#2ba640":"#107516",y=S.color?ABb(S.color):y,y=["padding: 2px;","border-top: solid "+y+" 2px;","border-bottom: solid "+y+" 2px;","background: linear-gradient(135deg, "+y+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+y+" 3px, rgba(0, 0, 0, 0) 3px);"],d=d.call(I,y)),y=d.join(" "),W.style$=y,y=m.textDecorator,I=[],S=_.U(y,
hkv),_.U(y,iV)?I.push("yt-core-attributed-string--highlight-text-decorator"):S&&I.push("yt-core-attributed-string--bracket-text-decorator"),y=I.join(" "),W.className=y,W.dir="auto"),y=_.U(m.textDecorator,iV),I=_.U(m.textDecorator,hkv),S=_.U(m.textDecorator,iV),d=_.U(m.textDecorator,hkv),v.push(AV({run:m,textLength:t,tag:"span",config:W,startIndex:(y==null?void 0:y.startIndex)||(I==null?void 0:I.startIndex)||0,length:(S==null?void 0:S.length)||(d==null?void 0:d.length)||0}));if(f.commandRuns&&(H==
null||!H.noEndpoints))for(h=_.V(f.commandRuns),M=h.next();!M.done;M=h.next())M=M.value,m=Xl5(M,H),v.push(AV({run:M,textLength:t,tag:"a",config:m,startIndex:M.startIndex,length:M.length}));if(f.attachmentRuns)for(f=_.V(f.attachmentRuns),h=f.next();!h.done;h=f.next()){h=h.value;W=m=void 0;M={className:"yt-core-attributed-string--inline-block-mod"};if((W=h.element)==null?0:W.properties){W=(m=h.element)==null?void 0:m.properties;m=[];W=_.U(W,Vos);if(W==null?0:W.margin)W=W.margin,W.left&&m.push("margin-left: "+
au(W.left)+";"),W.right&&m.push("margin-right: "+au(W.right)+";"),W.top&&m.push("margin-top: "+au(W.top)+";"),W.bottom&&m.push("margin-bottom: "+au(W.bottom)+";");m=m.length!==0?m.join(" "):void 0;M.style$=m}y=void 0;m={alt:"",preserveHeight:!0,preserveWidth:!0};W=["yt-core-attributed-string__image-element"];if(h.alignment){a:switch(h.alignment){case "ALIGNMENT_BASELINE":I="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":I="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:I="yt-core-attributed-string__image-element--image-alignment-bottom"}W.push(I)}if((y=h.element)==null?0:y.properties)y=[],I=_.U(h.element.properties,Vos),(I==null?0:I.height)&&y.push("height: "+au(I.height)+";"),(I==null?0:I.width)&&y.push("width: "+au(I.width)+";"),y=y.length!==0?y.join(" "):void 0,m.style$=y,I=void 0,y=((I=_.U(h.element.properties,y2b))==null?void 0:I.label)||"",m.alt=y;m.className=W.join(" ");W=void 0;S=I=void 0;y=((S=h.element)==null?0:S.type)?(I=_.U(h.element.type,
Y2s))==null?void 0:I.image:void 0;v.push(AV({run:h,textLength:t,tag:"img",image:y,imageConfig:m,imageWrapperConfig:M,startIndex:h.startIndex,length:(W=h.length)!=null?W:0}))}if(H==null?0:H.headerRuns)for(H=_.V(H.headerRuns),f=H.next();!f.done;f=H.next())if(f=f.value,f.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(f.headerMapping)){a:{switch(f.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":h=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":h="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":h="yt-core-attributed-string--heading-3";break a}h=void 0}v.push(AV({run:f,textLength:t,tag:"span",config:h?{className:h}:void 0,startIndex:f.startIndex,length:f.length}))}return v};
_.w9=function(f){return(f==null?void 0:f.content)!==void 0};
$aB=function(f){return _.w9(f)?f:_.Qz(f)};
WMR=function(f){return f.image!==void 0&&f.imageConfig!==void 0};
Oer=function(f,H){if(H==null?0:H.userInput)for(f=_.V(f),H=f.next();!H.done;H=f.next())if(H=H.value,H.tag!=="a"&&H.tag!=="li"){var v=void 0;(v=H).config||(v.config={});H.config.dir=H.tag==="ul"?_.t8().resolve(_.qE):"auto"}};
gAr=function(f){return function(H){var v=f.run;(v.onTap!==void 0||v.onLongPress!==void 0)&&_.U(v,llB)&&toR(H,{loggingDirectives:_.U(v,llB)})}};
I$5=function(f){return function(H){for(var v in f)(Hb[v]||Hb[Nk["default"]])(H,v,f[v])}};
szs=function(f,H){S2b(H);var v={data:null,start:0,end:f.length,parts:[]};H=_.V(H);for(var t=H.next();!t.done;t=H.next())t=t.value,dag(v,t.startIndex,t.endIndex,t);jzR(f,v);return v};
dag=function(f,H,v,t){for(var M=_.V(f.parts),h=M.next();!h.done;h=M.next()){h=h.value;if(typeof h==="string")throw Error("gh");if(h.start<=H&&v<=h.end){dag(h,H,v,t);return}}f.parts.push({data:t,parts:[],start:H,end:v})};
jzR=function(f,H){for(var v=H.parts.length;v>=0;v--){var t=H.parts[v],M=H.parts[v-1],h=v===H.parts.length?H.end:t.start;M=v===0?H.start:M.end;h!==M&&H.parts.splice(v,0,f.slice(M,h));t&&jzR(f,t)}};
S2b=function(f){f.sort(function(H,v){if(H.startIndex<v.startIndex)return-1;if(v.startIndex<H.startIndex)return 1;H=H.endIndex-H.startIndex;v=v.endIndex-v.startIndex;return H>v?-1:v>H?1:0})};
_.Ze5=function(f){var H=f.thumbnails;if(H){f={sources:[]};H=_.V(H);for(var v=H.next();!v.done;v=H.next()){v=v.value;var t={};t.url=v.url;t.width=v.width;t.height=v.height;f.sources.push(t)}return f}};
J25=function(f,H,v,t){if(!H)return f.length>=1?f[f.length-1]:null;if(t)for(var M=_.V(f),h=M.next();!h.done;h=M.next()){h=h.value;var y=void 0,m=(y=h.url)==null?void 0:y.indexOf(t);if(m!==void 0&&m>=0)return h}t=_.V(f);for(M=t.next();!M.done;M=t.next())if(M=M.value,M.width&&M.height&&(v&&M.width>=H||!v&&M.height>=H))return M;for(H=f.length-1;H>=0;H--)if(v&&f[H].width||!v&&f[H].height)return f[H];return f[0]};
_.l$E=function(f){var H;return(f=(H=f.sources)==null?void 0:H[0])?f.width/f.height:0};
_.Uae=function(f){if(f.sources){f=_.V(f.sources);for(var H=f.next();!H.done;H=f.next()){H=H.value;var v=void 0;if((v=H.clientResource)==null?0:v.imageName)return H}}};
ekg=function(f){var H;if((H=f.clientResource)!=null&&H.imageColor)return _.cS(f.clientResource.imageColor)};
_.xaN=function(f,H,v,t,M,h,y){if(!H||H.length===0||H[0].clientResource)return null;if(v&&H[0].url)return H[0].url;t===void 0&&(t=!0);if(t){var m;f=LM5*(M||(f==null?void 0:(m=f.getBoundingClientRect())==null?void 0:m.width)||0)}else{var W;f=LM5*(h||(f==null?void 0:(W=f.getBoundingClientRect())==null?void 0:W.height)||0)}H=J25(H,f,t,y);return(H==null?0:H.url)?H.url:(H==null?0:H.imageData)?H.imageData:null};
BGT=function(f,H,v){v=v?[v]:[];f.opacity&&v.push("opacity: "+f.opacity+";");H&&f.placeholderColor?(f=_.cS(f.placeholderColor),v.push("background-color: "+f+";")):v.push("background-color: transparent;");return v.join(" ")};
zkE=function(f,H,v,t,M){var h=["ytCoreImageHost"];H&&h.push(H);v||h.push("ytCoreImageFillParentHeight");t||h.push("ytCoreImageFillParentWidth");switch(f.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":h.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":h.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":h.push("ytCoreImageContentModeCenter");break;default:h.push("ytCoreImageContentModeScaleToFill")}f.flipForRtlLayout&&h.push("ytCoreImageFlipRtl");
switch(M){case "TOP_START":var y;h.push(((y=document.body)==null?void 0:y.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return h.join(" ")};
r2H=function(f){var H;if(f==null?0:(H=f.clientResource)==null?0:H.imageName){var v;f=(v=f.clientResource)==null?void 0:v.imageName;a:{switch(f){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":v="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":v="yt-logos-ext:yt-logo-updated";break a}v=void 0}return v||FM5.get(f)||f}};
oAg=function(f){return _.J("mweb_wiz_skip_render")?KM5(f):DaB(f)};
KM5=function(f){return function(H){var v=lxR("wink-root");eLe();UV3();_.T3e(v,_.O(f,H))}};
DaB=function(f){var H=H===void 0?!1:H;return function(v){if(!H||!_.J("mweb_skip_keto_to_c3_if_no_data")||v.data!==void 0){var t=VP(!1);try{var M=v.children;_.J("mweb_render_outside_patch_killswitch")||XT?M?f1(_.O(f,v,M)):f1(_.O(f,v)):_.pb(new _.e$("ketoToC3 called outside of a patch",{tagName:f.TAG_NAME}))}finally{VP(t)}}}};
nAH=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
Qz_=function(f,H){f.onViewportEntered=H;pYR.observe(f)};
uNb=function(){var f={rootMargin:"10%",threshold:.01};_.J("mweb_enable_set_io_root_to_null_safari")?f.root=null:_.J("mweb_enable_set_io_root_to_body_safari")&&(f.root=document.body);return new IntersectionObserver(function(H,v){H.filter(function(t){return t.intersectionRect.height>0}).forEach(function(t){t=t.target;
if(!_.J("mweb_enable_only_update_image_when_connected")||t.isConnected!==!1){var M;(M=t.onViewportEntered)==null||M.call(t);v.unobserve(t)}})},f)};
a$r=function(f,H,v,t,M){function h(){if(t){var m=t.loadedClass,W=t.notifyOnUnloaded;m&&_.fV(f,m);W&&f.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function y(){var m=v(H,f);m&&f.getAttribute("src")!==m&&(_.J("mweb_enable_only_update_image_when_connected")&&f.isConnected===!1||m===f.src||(f.src=m),h())}
M=M===void 0?!0:M;f.removeAttribute("src");h();H&&(M?Qz_(f,y):y())};
PBs=function(f,H,v){if(!H)return!1;H=v(H,f);v=f.getAttribute("src");return H&&H===v&&f.complete};
Gc3=function(f,H){for(var v in H)v==="className"?f.className=H[v]:(Hb[v]||Hb[Nk.default])(f,v,H[v])};
CBs=function(f,H,v,t){oAg(_.Hn)({contentMode:H.contentMode,loadedClass:H.loadedClass,isPreloaded:H.isPreloaded,notifyOnLoaded:H.notifyOnLoaded,notifyOnUnloaded:H.notifyOnUnloaded,preferredThumbnail:H.preferredThumbnail,preserveHeight:H.preserveHeight,preserveWidth:H.preserveWidth,objectPosition:H.objectPosition,targetWidth:H.targetWidth,targetHeight:H.targetHeight,shouldShowPlaceholder:H.shouldShowPlaceholder,useWidth:H.useWidth,isToggled:H.isToggled,alt:H.alt,className:H.className,onerror:H.onerror,
onload:H.onload,style$:H.style$,color:H.color,width:H.width,height:H.height,"aria-hidden$":H["aria-hidden$"],draggable:H.draggable,"data-disabled$":H["data-disabled$"],data:f,callback:v,renderLazy:t===void 0?!0:t,hideOn404:!1})};
NG5=function(f,H,v){v=v===void 0?!1:v;var t=f.sources!==void 0?f:_.Ze5(f);if(t){var M=H.onload;H.onload=function(W){var I=W.target;v&&I.naturalWidth===120||_.vn(I,"ytCoreImageLoaded");H.notifyOnLoaded&&I.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));M==null||M(W)};
H.targetWidth&&H.preserveWidth&&(H.width=H.targetWidth);H.targetHeight&&H.preserveHeight&&(H.height=H.targetHeight);var h=_.Uae(t),y=h&&r2H(h);if(y)return(f=ekg(h))&&(H.color=f),{type:"icon",iconName:y,config:Object.assign({},H,H.alt?{}:{"aria-hidden$":"true"},{"aria-label$":H.alt,role:"img"})};if(f.sources===void 0){H.alt=f.accessibility&&f.accessibility.accessibilityData&&f.accessibility.accessibilityData.label||H.alt;H.style$=BGT(f,H.shouldShowPlaceholder,H.style$);var m;H.isPreloaded=!((m=_.U(f,
EA3))==null||!m.isPreloaded)}H.contentMode&&!t.contentMode&&(t.contentMode=H.contentMode);H.className=zkE(t,H.className,H.preserveHeight,H.preserveWidth,H.objectPosition);H.loadedClass="ytCoreImageLoaded";return{type:"image",image:t,config:H}}};
_.tE=function(){var f=_.NA.apply(0,arguments);return _.w8(c2E,function(H){var v=f.map(function(t){return t==null?void 0:t(H)});
return function(){return void v.forEach(function(t){return void(t==null?void 0:t())})}})};
MY=function(f,H){var v=H==null?void 0:H.initial;return _.sg(function(){_.p4(!0);return v=f(v)},{equals:H==null?void 0:H.isEqual},"rSlKsc")};
XYe=function(f,H){if(f===H)return!0;if(f===void 0||H===void 0)return!1;var v,t,M,h,y,m,W,I;return f.content===H.content&&((v=f.styleRuns)==null?void 0:v.length)===((t=H.styleRuns)==null?void 0:t.length)&&((M=f.commandRuns)==null?void 0:M.length)===((h=H.commandRuns)==null?void 0:h.length)&&((y=f.attachmentRuns)==null?void 0:y.length)===((m=H.attachmentRuns)==null?void 0:m.length)&&((W=f.decorationRuns)==null?void 0:W.length)===((I=H.decorationRuns)==null?void 0:I.length)};
ier=function(f,H){if(f){var v=$aB(f);if(v!=null&&v.content)if(_.J("attr_string_reactive"))oAg(A2B)({text:f,config:H});else{var t=!(H==null||!H.ariaLabel)||!(v.commandRuns&&v.commandRuns.length!==0||v.paragraphStyleRuns&&v.paragraphStyleRuns.length!==0);f=t?H==null?void 0:H.ariaLabel:null;t=t?"text":null;Zqs("span",{className:ktE(v,H),dir$:(H==null?0:H.userInput)?"auto":void 0,"aria-label$":f,role$:t},function(){if(v.styleRuns||v.commandRuns||v.attachmentRuns||v.decorationRuns||v.paragraphStyleRuns){var M=
maE(v,H);Oer(M,H);M=szs(v.content,M);M=_.V(M.parts);for(var h=M.next();!h.done;h=M.next())beB(h.value)}else KuR(v.content)})}}};
beB=function(f){typeof f==="string"?KuR(f):WMR(f.data)?Zqs("span",f.data.imageWrapperConfig,function(){CBs(f.data.image,f.data.imageConfig)}):Zqs(f.data.tag,f.data.config,function(H){gAr(f.data)(H);
H=_.V(f.parts);for(var v=H.next();!v.done;v=H.next())beB(v.value)})};
TGe=function(f){return f.parts.map(kce)};
kce=function(f){if(typeof f==="string")return f;f=WMR(f.data)?_.O("span",{el:_.tE(I$5(f.data.imageWrapperConfig))},_.O(_.Hn,Object.assign({},{data:f.data.image},f.data.imageConfig))):_.O(f.data.tag,{el:_.tE(gAr(f.data),I$5(f.data.config))},f.parts.map(kce));return sS(f)};
wYR=function(f,H){return f===H?!0:f===void 0||H===void 0?!1:f.noStyleRuns===H.noStyleRuns&&f.noLinkColor===H.noLinkColor&&f.noEndpoints===H.noEndpoints&&f.headerRuns===H.headerRuns&&f.isOverlay===H.isOverlay&&f.linkInheritColor===H.linkInheritColor&&f.userInput===H.userInput&&f.isHeadline===H.isHeadline};
q23=function(f){return function(){var H,v,t,M,h,y,m,W,I,S,d,Z,l,L,r;return{ariaLabel:(H=f.ariaLabel)==null?void 0:H.call(f),className:(v=f.className)==null?void 0:v.call(f),ellipsisTruncate:(t=f.ellipsisTruncate)==null?void 0:t.call(f),isOverlay:(M=f.isOverlay)==null?void 0:M.call(f),linkInheritColor:(h=f.linkInheritColor)==null?void 0:h.call(f),noEndpoints:(y=f.noEndpoints)==null?void 0:y.call(f),noStyleRuns:(m=f.noStyleRuns)==null?void 0:m.call(f),noLinkColor:(W=f.noLinkColor)==null?void 0:W.call(f),
noPreWrap:(I=f.noPreWrap)==null?void 0:I.call(f),noWrap:(S=f.noWrap)==null?void 0:S.call(f),skipOnClick:(d=f.skipOnClick)==null?void 0:d.call(f),stopPropagation:(Z=f.stopPropagation)==null?void 0:Z.call(f),userInput:(l=f.userInput)==null?void 0:l.call(f),headerRuns:(L=f.headerRuns)==null?void 0:L.call(f),isHeadline:(r=f.isHeadline)==null?void 0:r.call(f)}}};
_.fAg=function(f){return f.value===""||f.value==="true"?!0:f.value==="false"?!1:isNaN(Number(f.value))?f.value:Number(f.value)};
hE=function(f,H){f=new Hi5(f,H);_.oO(f);throw f;};
vGE=function(f,H,v){var t=$nb(f);f._numRenders=0;try{var M=_.Swe(function(){return _.O(H,Object.assign({},v))})}catch(y){var h=function(m){m.args||(m.args=[]);
m.args.push("Error in web component wrapper");m.args.push(f.tagName.toLowerCase());return m};
_.nb(y instanceof Error?h(y):new Hi5("Wiz rendering error",f.tagName.toLowerCase()));throw y;}finally{$nb(t)}return M};
_.yn=function(f,H,v){function t(S){var d={};S=_.V(S);for(var Z=S.next();!Z.done;Z=S.next()){Z=Z.value;var l=void 0,L=void 0,r=void 0,n=_.ly((r=(L=(l=Z).getAttribute)==null?void 0:L.call(l,"slot"))!=null?r:"children");if(l=d[n])l.push(Z);else if(n in h||n==="children")d[n]=[Z]}S=_.V(Object.keys(d));n=S.next();for(Z={};!n.done;Z={content$jscomp$57:void 0},n=S.next())n=n.value,n!=="children"&&(Z.content$jscomp$57=d[n],d[n]=function(Q){return function(){return Q.content$jscomp$57}}(Z));
return d}
v=v===void 0?{}:v;f.componentType!==_.BM||hE("Components must be marked reactive to be used from web component wrapper.",H);_.Y6.has(H)&&hE("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",H);var M,h=(M=v.props)!=null?M:{};mx.add(H);var y=_.tmT();M=function(){var S=y.apply(this,arguments)||this;S.rawProps={};S.queuingRender=!1;S.dispose=function(){};
S.isWebComponentWrapper=!0;S.isReparenting=!1;S.hasRendered=!1;return S};
_.e(M,y);M.prototype.render=function(){this.hasRendered=!0;for(var S=_.V([].concat(_.pS(this.attributes))),d=S.next();!d.done;d=S.next())d=d.value,d.name!=="slot"&&d.name!=="hidden"&&this.removeAttribute(d.name);S=Object.assign({},this.componentProps,this.slotProps);d=_.V(vGE(this,f,S));S=d.next().value;d=d.next().value;!(S[0]instanceof Element)||S.length>1?hE("Wrapped Wiz components must return a single root element.",H):(S=S[0].tagName.toLowerCase(),S!==H&&hE("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(S+" !== '"+H),H),this.dispose=d)};
M.prototype.setUpProps=function(){for(var S=this.rawProps,d=this.attributes,Z=_.V(Object.keys(h)),l=Z.next();!l.done;l=Z.next()){l=l.value;var L=void 0;((L=this)==null?0:L[l])&&this[l]!==Mm3&&S[l]===void 0&&(S[l]=this[l],(L=Object.getOwnPropertyDescriptor(this.constructor.prototype,l))&&Object.defineProperty(this,l,L))}Z=_.V(d);for(l=Z.next();!l.done;l=Z.next()){L=l.value;l=_.ly(L.name);var r=l==="class"&&!d.getNamedItem("class-name");if(l in h||r)L=_.fAg(L),l!=="class"||S.className?S[l]=L:S.className=
L}d={};for(var n in h)h[n]!==_.Rm&&h[n]!==hNg&&(S[n]instanceof Function&&hE("Function props must be configured as STATIC, not SIGNAL.",H),l=_.V(_.gp(S[n],void 0,"Ri8MSe")),Z=l.next().value,l=l.next().value,d[n]=l,S[n]=Z);S=_.V([S,d]);this.componentProps=S.next().value;this.setters=S.next().value;this.slotProps=t(this.childNodes)};
M.prototype.connectedCallback=function(){_.Vn===H&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in h&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
M.prototype.disconnectedCallback=function(){if(!this._isInert){var S;a:{if(_.RNb)for(S=this;S;){if(_.Vmg.has(S)){S=!0;break a}S=S.parentElement}S=!1}if(S)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){S=_.V([].concat(_.pS(this.attributes)));for(var d=S.next();!d.done;d=S.next()){d=d.value;var Z=void 0;d.name==="slot"||d.name==="hidden"&&((Z=v.unsafeExternallySettableAttributes)==null?0:Z.has("hidden"))||this.removeAttribute(d.name)}}this.innerText="";MQ5(this)}}};
M.prototype._setPendingPropertyOrPath=function(){};
M.prototype.notifyPath=function(){};
_.H7.Object.defineProperties(M.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var m=_.V(Object.keys(h)),W=m.next(),I={};!W.done;I={prop$jscomp$105:void 0},W=m.next())I.prop$jscomp$105=W.value,W=void 0,((W=v.legacyPolymer)==null?0:W.forwardHostProps)&&vbN.has(I.prop$jscomp$105)||Object.defineProperty(M.prototype,I.prop$jscomp$105,{set:function(S){return function(d){var Z=this;this._isInert||(this.setters?Zt(function(){var l,L;return void((L=(l=Z.setters)[S.prop$jscomp$105])==null?void 0:L.call(l,d))}):(this.rawProps[S.prop$jscomp$105]=d,this.queuingRender&&S.prop$jscomp$105===
"data"&&d!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(I),
get:yR_.has(I.prop$jscomp$105)?void 0:function(){return Mm3}});
customElements.define(H,M)};
_.Yl5=function(f,H){return(f=_.YK(f,H))?_.QO(_.Co(f)):null};
_.m3=function(f){if(f=_.YK(f,Number.MAX_VALUE,void 0,"width"))return _.Co(f)};
_.YK=function(f,H,v,t){t=t===void 0?"width":t;if(!f||!f.length)return null;if(_.J("kevlar_tuner_should_always_use_device_pixel_ratio")){var M=window.devicePixelRatio;_.J("kevlar_tuner_should_clamp_device_pixel_ratio")?M=Math.min(M,_.VQ("kevlar_tuner_clamp_device_pixel_ratio")):_.J("kevlar_tuner_should_use_thumbnail_factor")&&(M=_.VQ("kevlar_tuner_thumbnail_factor"));mGR=M}else mGR||(mGR=window.devicePixelRatio);M=mGR;_.J("kevlar_tuner_should_always_use_device_pixel_ratio")?H*=M:M>1&&(H*=M);if(_.J("kevlar_tuner_min_thumbnail_quality"))return f[0].url||
null;M=f.length;if(_.J("kevlar_tuner_max_thumbnail_quality"))return f[M-1].url||null;if(v)for(var h=0;h<M;h++)if(f[h].url.indexOf(v)>=0)return f[h].url||null;for(v=0;v<M;v++)if(f[v][t]>=H)return f[v].url||null;for(H=M-1;H>0;H--)if(f[H][t])return f[H].url||null;return f[0].url||null};
OiH=function(){$K.size?setTimeout(function(){Wn($G_)},0):WTe=0};
$G_=function(){var f=(0,_.ta)(),H=null,v=!1;$K.forEach(function(M){M.loaded=!0;M.loadTime=f;M.pendingPaint=!1;var h=gGB.get(M);h&&h.resolve(f);H=M;v||!M.ftlEligible&&M.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(v=!0)});
var t;((t=H)==null?0:t.markDirty)&&H.markDirty();$K.clear();WTe=0;v&&IAe(f)};
SlT=function(f){$K.add(f);f.pendingPaint=!0;WTe||(WTe=_.OR(_.nN,OiH))};
dGg=function(f){f.loaded=!1;f.loadTime=Infinity;var H=gGB.get(f);H&&(H.reject(Error("mh")),gGB.delete(f));f.pendingPaint&&($K.delete(f),f.pendingPaint=!1)};
_.jRR=function(f){var H=f.indexOf(":");return H===-1?{originalName:f}:{originalName:f.substring(0,H),datasyncId:f.substring(H+1)}};
_.ZiH=function(){return _.Y(function(f){if(sRE!==void 0)return f.return(sRE);sRE=new Promise(function(H){var v;return _.Y(function(t){switch(t.nextAddress){case 1:return _.Zc(t,2),t.yield(_.g6.open("test-only"),4);case 4:return t.yield(_.g6.delete("test-only"),5);case 5:_.ch(t,3);break;case 2:if(v=_.xu(t),v instanceof Error&&v.name==="SecurityError")return H(!1),t.return();case 3:H("caches"in window),_.Bj(t)}})});
return f.return(sRE)})};
UG3=function(){return _.Y(function(f){if(f.nextAddress==1)return f.yield(_.ZiH(),2);if(!f.yieldResult)return f.return(void 0);JR_||(JR_=new lAg);return f.return(JR_)})};
eNg=function(f){var H,v,t,M;return _.Y(function(h){switch(h.nextAddress){case 1:return h.yield(UG3(),2);case 2:H=h.yieldResult;if(!H)throw Error("oh");return h.yield(H.open("yt-player-local-img"),3);case 3:return v=h.yieldResult,h.yield(v.match(f),4);case 4:t=h.yieldResult;if(!t)throw Error("ph");return h.yield(t.blob(),5);case 5:return M=h.yieldResult,h.return(M)}})};
LTb=function(f,H){for(var v in f)if(f.hasOwnProperty(v)&&H[v])return v;return null};
xGR=function(f){return"stamp"+f.replace("-","_")+"_"};
Bl_=function(f){var H=f.match(/\[\[([\w\.]+)\]\]/);if(H&&H.length>1)return H[1];_.oO(Error("rh`"+f));return null};
zNb=function(f){return f===void 0?_.P6("REUSE_COMPONENTS",!1):f||!1};
KTr=function(f,H,v){v&&(H.is?(FTg.has(H)&&(f=FTg.get(H),v=f.listener,delete H[f.property],v.type==="element"&&H.removeEventListener(v.eventName,v.handler),FTg.delete(H)),rRN(H)):H.__proto__==HTMLElement.prototype&&(H=new _.e$("Rendererstamper removed a non custom element","Stamper: "+f+" element: "+(H&&H.nodeName)),_.pb(H)))};
DGs=function(f,H,v,t){var M=H.node?H.node:H;_.mF(v).parentNode===M&&(H.removeChild(v),KTr(f,v,t));if(f=Im.get(v))Im.delete(v),_.nN.cancelJob(f);v.hidden=!1};
oG5=function(f,H,v,t){if(H&&H.children&&(v=H.children[v]))if(_.P6("DEFERRED_DETACH"))for(;v&&!Im.has(v);){var M=f,h=H,y=v,m=t;y.hidden=!0;M=_.Lb(_.nN,DGs.bind(null,M,h,y,m),0);Im.set(y,M);v=v.nextElementSibling}else for(;(y=H.lastElementChild)&&(H.removeChild(y),KTr(f,y,t),y!=v););};
_.S2=function(){for(var f=_.NA.apply(0,arguments),H=!0,v=_.V(f),t=v.next();!t.done;t=v.next())if(typeof t.value!=="string"){H=!1;break}return H?f.join(" ").trim()||void 0:function(){for(var M="",h=_.V(f),y=h.next();!y.done;y=h.next())if(y=y.value,typeof y==="function"&&(y=y()),y)if(typeof y==="string")M+=" "+y;else for(var m in y)if(y.hasOwnProperty(m)){var W=y[m];typeof W==="function"&&(W=W());W&&(M+=" "+m)}M=M.trim()||void 0;return _.p4(M)}};
p0b=function(f){var H;return(H=nGs[f])!=null?H:"EVENT_SPAN_TYPE_UNKNOWN"};
QRT=function(f){var H=f.nodeName;if(f.id)return H+="#"+f.id;if(f.classList)for(var v=_.V(f.classList),t=v.next();!t.done;t=v.next())H+="."+t.value;f.parentElement&&(H=QRT(f.parentElement)+" > "+H);return H};
utv=function(f){return function(H){var v=p0b(H.type);return v==="EVENT_SPAN_TYPE_UNKNOWN"?f(H):NST("event",{type:v,nodepath:H.target instanceof Element?QRT(H.target):void 0},function(){return f(H)})}};
_.d6=function(f){f&&CpT("event")&&(f=utv(f));return AjT(function(H){var v,t=(v=f)==null?void 0:v(H);return typeof t==="boolean"?t:!0})};
j2=function(f){return function(){return f()?f():void 0}};
CRN=function(f){var H=_.TN("animated-rolling-character"),v=YjR(),t=fQ(f.character)||fQ(f.previousCharacter);w7B(function(){if(f.marginMultiplier){var M;(M=v.value)==null||M.cancel();t?(M=f.previousCharacter?Number(f.previousCharacter)+10:f.rollUp?0:30,f.shouldAnimate||(M-=aA5(f,M))):(M=f.rollUp?0:2,f.shouldAnimate||(M-=f.rollUp?-1:1));H.value.style.marginTop="-"+M*f.marginMultiplier+"px";f.shouldAnimate?v.value=PRb(H.value,f,M,t):H.value.style.display=f.character?"":"none"}});
return _.O("animated-rolling-character",{el:H,class:"animatedRollingCharacterHost"},gXE(t,function(){for(var M=[],h=1;h<30;h++)M.push(_.O("div",null,h%10));return _.O(_.R8,null,_.O("div",null,"\u00a0"),M,_.O("div",null,"\u00a0"))},function(){return GdR(f.character)}))};
GdR=function(f){return _.O(_.R8,null,_.O("div",null,"\u00a0"),_.O(_.R8,null,gXE(!f||_.ms(f),function(){return _.O("div",null,"\u00a0")},function(){return _.O("div",null,f)})),_.O("div",null,"\u00a0"))};
PRb=function(f,H,v,t){v=new Animation(new KeyframeEffect(f,[{transform:"translateY(0px)"},{transform:"translateY("+(t?aA5(H,v):H.rollUp?-1:1)*H.marginMultiplier+"px)"}],EG3),document.timeline);H.character?(f.style.display="",v.onfinish=null):v.onfinish=function(){f.style.display="none"};
v.play();return v};
aA5=function(f,H){var v=Number(f.character)+10;if(f.previousCharacter)if(f.character){var t=Number(f.character),M=Number(f.previousCharacter);f=f.rollUp?M<t?v:v+10:M<t?v-10:v}else f=f.rollUp?30:0;else f=f.character==="0"?v:f.rollUp?v-10:v+10;return H-f};
Nle=function(f){return function(H){var v={},t;for(t in H){var M=void 0,h=void 0;((M=void 0)==null?0:(h=M.callbacks)==null?0:h[t])||(v[t]=H[t])}return _.O(I4s,null,function(){for(var y in v)H[y]=_.p4(v[y]);H.disableReactiveLogging=!0;return _.O(f,Object.assign({},H))})}};
ART=function(f,H,v,t,M,h,y){v=new Animation(new KeyframeEffect(f,[{transform:"translateY(0px)"},{transform:"translateY("+(h?cRb(H,v,t,M):t?-1:1)*y+"px)"}],X0g),document.timeline);H?(f.style.display="",v.onfinish=null):v.onfinish=function(){f.style.display="none"};
v.play();return v};
cRb=function(f,H,v,t){var M=Number(f)+10;H?f?(f=Number(f),H=Number(H),v=v?H<f?M:M+10:H<f?M-10:M):v=v?30:0:v=f==="0"?M:v?M-10:M+10;return t-v};
iiH=function(f){var H=YjR(),v=YjR();MGs(function(){H.value=f.numberText;v.value=f.numberValue},[f.numberText]);
var t=f.fontSizeMultiplier?f.heightPx*f.fontSizeMultiplier:f.heightPx,M=yXT(function(){if(f.numberText){var y=f.numberText;var m=f.forceRollUp||!v.value||!f.numberValue||v.value<f.numberValue;var W=!!f.shouldAnimate,I=H.value,S=[],d=0,Z=0,l=(I?I.replace(/\D/g,"").length:0)-(y?y.replace(/\D/g,"").length:0);I=I?I.split(/(\d)/).filter(Boolean):[];for(y=y.split(/(\d)/).filter(Boolean);l<0;){var L=y[Z];S.push({character:L,rollUp:m,marginMultiplier:t,shouldAnimate:W});Z++;fQ(L)&&l++}for(;d<l;)L=I[d],S.push({previousCharacter:L,
rollUp:m,marginMultiplier:t,shouldAnimate:W}),d++,fQ(L)||l++;for(;Z<y.length;)l=y[Z],L=I[d],fQ(l)===fQ(L)?(Z++,d++):fQ(l)?(d++,l=void 0):fQ(L)&&(Z++,L=void 0),S.push({character:l,previousCharacter:L,rollUp:m,marginMultiplier:t,shouldAnimate:W});m=S}else m=[];return m},[f.numberText]),h=f.numberText?["height: "+t+"px;",
"line-height: "+f.heightPx+"px;"].join(" "):"";return _.O("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:h,dir:"ltr","aria-hidden":"true"},M.map(function(y){return _.O(biE,Object.assign({},y))}))};
kdE=function(f){return new KeyframeEffect(f,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
TlN=function(f){return new KeyframeEffect(f,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.sR=function(f){var H=MY(function(v){v=v?Og(v[0]):void 0;return _.gp(f(v),void 0,"AwTxXe")},{isEqual:function(v,t){return Og(v[0])===Og(t[0])}});
return[function(){return H()[0]()},
function(v){return void H()[1](v)}]};
_.ZE=function(f){return function(){var H="",v;for(v in f){for(var t=f[v];typeof t==="function";)t=t();t!==void 0&&t!==null&&(H+="; "+v+": "+t)}return H.length>0?_.p4(H.slice(2)):_.p4()}};
w0b=function(f){switch(f){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"}};
tbR=function(f,H,v,t,M,h,y){var m=qle(f),W=m.disabled,I=m.iconPosition,S=m.style,d=m.focused,Z=function(){return!!r()&&I()==="icon-only"},l=function(){return!!r()&&I()==="icon-only-40"},L=function(){return!!r()&&I()==="icon-with-label"},r=function(){return!!H||!(t==null||!t())};
return{type:function(){return S()==="call-to-action-inverse"?"text":S()==="overlay-dark"&&f().type!=="filled"&&f().type!=="tonal"?"tonal":f().type},
shouldFocus:function(){return(d()||(h==null?void 0:h()))&&!W()},
hasIconLeading:function(){return!!r()&&I()==="leading"},
hasIconTrailing:function(){return!!r()&&I()==="trailing"},
hasIconLeadingTrailing:function(){return!!r()&&!!(v||M!=null&&M())&&I()==="leading-trailing"},
hasIconOnly:Z,hasIconOnly40:l,hasIconWithLabel:L,iconButton:function(){return Z()||l()||L()},
visiblyDisabled:function(){return(W()?"disabled":f().state)==="disabled"||W()},
overrideSmallSizeIcon:function(){return!f().ignoreIconSizeOverride&&fLT(f(),r())},
iconToRender:H?H:function(){return _.O(_.JE,{icon:t,size:function(){return HjN(f(),!0,f().ignoreIconSizeOverride)},
active:function(){return f().toggled},
iconFilter:function(){return vSg(f())},
animateIcon:y})},
secondaryIconToRender:v?v:function(){return _.O(_.JE,{icon:M,size:function(){return HjN(f(),!0,f().ignoreIconSizeOverride)},
active:function(){return f().toggled},
iconFilter:function(){return vSg(f())}})}}};
qle=function(f){return{size:function(){return f().size},
style:function(){return f().style},
focused:function(){return f().focused},
disabled:function(){return f().disabled},
onTap:function(H){var v,t;return(t=(v=f()).onTap)==null?void 0:t.call(v,H)},
alignByText:function(){return f().alignByText},
aTagConfig:function(){return f().aTagConfig},
customColors:function(){return f().customColors},
segmentedPosition:function(){return f().segmentedPosition},
toggled:function(){return f().toggled},
toggleable:function(){return f().toggleable},
accessibilityLabel:function(){return f().accessibilityLabel},
onToggle:function(H){var v,t;return(t=(v=f()).onToggle)==null?void 0:t.call(v,H)},
iconPosition:function(){return f().iconPosition},
oneOffCustomTextWrap:function(){return f().oneOffCustomTextWrap},
disableTextEllipsis:function(){return f().disableTextEllipsis},
disableBackdropFilter:function(){return f().disableBackdropFilter},
tooltipText:function(){return f().tooltipText},
ariaHidden:function(){return f().ariaHidden},
tabIndex:function(){return f().tabIndex},
buttonText:function(){return f().buttonText},
formattedButtonText:function(){return f().formattedButtonText},
animatedTextProps:function(){return f().animatedTextProps}}};
fLT=function(f,H){H=(f.iconPosition==="icon-only"||f.iconPosition==="icon-only-40"||f.iconPosition==="icon-with-label")&&H;return!f.segmentedPosition&&H&&f.size==="S"};
HjN=function(f,H,v){switch(f.size){case "XS":return 16;case "S":return!v&&fLT(f,H)?24:16;default:return 24}};
MbE=function(f){switch(f){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"}};
hbR=function(f){switch(f){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"}};
RbH=function(f){switch(f){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"}};
vSg=function(f){if(f.style==="overlay-dark"&&f.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
lE=function(f){return f&&f.endsWith("px")?Number(f.slice(0,-2)):0};
Ym3=function(f){var H=H===void 0?{}:H;f=_.V(_.sR(f));var v=f.next().value;return[function(t){var M=_.sg(function(){var m,W,I,S;return{text:(m=v())!=null?m:"",location:(W=H.location)!=null?W:"bottom",offset:(I=H.offset)!=null?I:16,delay:(S=H.delay)!=null?S:1}},void 0,"MgTrkc");
_.K4(function(){var m=M();Og(function(){_.nN.addJob(function(){UR.notify(t,m)},4)})},"WlsgZc");
var h=function(){Vbe(t,M())},y=function(){yb5()};
t.addEventListener("mouseenter",h);t.addEventListener("focus",h);t.addEventListener("mouseleave",y);t.addEventListener("blur",y);t.addEventListener("tap",y);_.Dt(function(){t.removeEventListener("mouseenter",h);t.removeEventListener("mouseleave",y);t.removeEventListener("focus",h);t.removeEventListener("blur",y);t.removeEventListener("tap",y);yb5()})},
f.next().value]};
$s3=function(f,H){if(!f4){var v;T8e(function(){return v=Opr(f,H)});
return v}f.parent=msR();return Opr(f,H)};
msR=function(){var f=_.vM(f4||void 0,mi_);return _.jP3(f)?void 0:f};
e2=function(f,H){_.Cu(f,Object.assign({},H,{forceClickLogging:!0}))};
OjN=function(f,H){var v=_.GK(f==null?void 0:f.onTap),t={};v&&(t.getClickedVisualElement=function(){var M;return WYe(f,v,H==null?void 0:(M=H.value)==null?void 0:M.visualElement)});
t=_.NE({elementsCommand:f.onTap,forceNewState:!0,additionalCommandArgs:t});return cK(t)?t:void 0};
gS5=function(f,H,v,t){e2(f,Object.assign({},{form:{element:H,event:v}},t))};
ILr=function(f,H,v,t,M){var h=void 0;return function(y){var m=_.GK(v?f==null?void 0:f.onDisabledTap:f==null?void 0:f.onTap);if(m){var W;h=(W=h)!=null?W:H==null?void 0:H.value;if(m)if(_.J("web_button_vm_click_client_ve_killswitch"))gS5(m,h,y);else{var I;W=WYe(f,m,(I=h)==null?void 0:I.visualElement);if(M){gS5(m,M,y,{clickedVisualElement:W,form:{element:M}});return}gS5(m,h,y,{clickedVisualElement:W})}}t&&t(y)}};
WYe=function(f,H,v){H=H==null?void 0:H.clickTrackingParams;var t,M;f=f==null?void 0:(t=f.loggingDirectives)==null?void 0:(M=t.clientVeSpec)==null?void 0:M.uiType;if(v&&f&&!H)return v};
SmT=function(f){switch(f){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"}};
dsR=function(f){switch(f){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"}};
jTs=function(f){switch(f){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"}};
sTb=function(f){switch(f){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"}};
Zje=function(f,H){return _.dL(f.entities,"engagementToolbarStateEntityPayload",H)};
lLe=function(f){(f=_.zK(f))&&_.JbH(f)};
_.JbH=function(f){var H=_.uy();H&&_.b0(H,f)};
Uss=function(f,H,v){_.mb(f,"yt-open-popup-action",[H,v||f])};
ebB=function(f,H){var v=_.o8(f,"endpoint"),t=_.o8(f,"action");return(v=t?t:v)&&H&&(v=H.navigationEndpointPopupMap[v])&&(f=_.ES(v,f),(v=_.o8(f,"renderer"))&&H.supportedPopups.hasOwnProperty(v))?{openPopupAction:{popupType:H.popupTypeMap[v],popup:f}}:null};
LYv=function(f,H,v,t){if(t){var M;v=v==null?void 0:(M=v.data)==null?void 0:M.contents;(M=v instanceof Array&&v.length?v[0]:v)&&(v=_.o8(M,"renderer"))&&t.supportedPopups.hasOwnProperty(v)&&(H.stopPropagation(),Uss(f,{openPopupAction:{popupType:t.popupTypeMap[v],popup:M}}))}};
zbB=function(f,H,v,t){t=t===void 0?!1:t;var M=xse(H);if(M){M.href&&bY(M.href);var h=H.button;h=h!==void 0?h===0&&!LV(H):!LV(H);M.data&&h&&Bar(f,M,H,v,t)}};
Bar=function(f,H,v,t,M){M=M===void 0?!1:M;var h=_.VQ("pbj_navigate_limit",-1)===0;FY3(H);_.t8().resolve(_.vh(ck));var y=H.data;if(Object.keys(y).length!==0)if(!_.J("unplugged_web_disable_actions_for_cec_endpoint")&&_.U(y,_.Ir))_.J("endpoint_behavior_command_executor_fix_killswitch")||(v.preventDefault(),v.stopPropagation()),_.Oj(f,[y],f);else if(t=ebB(y,t))y.loggingUrls&&y.loggingUrls.forEach(function(W){W.baseUrl&&_.c8(W.baseUrl)}),v.preventDefault(),v.stopPropagation(),Uss(f,t,H);
else{var m=rbr(0,H.data,v);if(f=H.getForm)f=f(),m.tempData=m.tempData||{},m.tempData=Object.assign({},m.tempData,f);f=_.f2(v);if(t=f.find(function(W){return!!W.visualElement}))m.createScreenConfig=m.createScreenConfig||{},m.createScreenConfig.clickedVisualElement=t.visualElement;
if(!h)if(v.preventDefault(),v.stopPropagation(),_.U(y,_.KYH)&&!M&&_.jW.instance)_.jW.instance.resolveCommand(y,m);else if(_.J("kevlar_command_handler_formatted_string")&&!M&&_.jW.instance&&DsR(y))M=f.find(function(W){return!!W.is})||v.target,v={form:Object.assign({},m,{event:v,
element:M,originatingNode:H})},_.jW.instance.resolveCommand(y,v);else{y=_.f2(v);v=[];for(M=0;M<y.length;M++)(h=y[M].is)&&v.push(h);FVE({parents:v.join(","),text:H.innerText},function(){_.YE(H,"yt-navigate",m)})}}};
oSe=function(f){if(f=xse(f))FY3(f),LaH(f.href)};
xse=function(f){f=_.f2(f);for(var H,v=0;v<f.length;v++)if(H=f[v],H.tagName==="A"&&H.classList.contains("yt-simple-endpoint")){if(!H.data)break;return H}return null};
LV=function(f){return f.shiftKey||f.altKey||f.metaKey||f.ctrlKey};
nSB=function(f,H){var v={itct:H.clickTrackingParams};_.J("kevlar_client_side_screens")&&(!_.U(H,_.zD)||_.J("kevlar_exclude_endpoint_killswitch"))&&(v.endpoint=JSON.stringify(H));_.J("enable_unknown_lact_fix_on_html5")&&_.t8().resolve(_.vh(_.xK))&&(v.lact=_.h7());lje(v);_.vV(f,v)};
FY3=function(f){f.href&&Object.keys(f.data).length!==0&&nSB(f.href,f.data)};
DsR=function(f){for(var H=_.V(pqg),v=H.next();!v.done;v=H.next())if(f[v.value])return!1;return!0};
_.QTe=function(f,H){return _.dL(f.entities,"markersEngagementPanelSyncEntity",H)};
uvT=function(f,H){return _.dL(f.entities,"fantasyWinProbabilityEntity",H)};
aLs=function(f,H){return _.dL(f.entities,"fantasyTeamEntity",H)};
POg=function(f,H){return _.dL(f.entities,"fantasyPlayerEntity",H)};
GvE=function(f,H){return _.dL(f.entities,"booleanEntity",H)};
COR=function(f,H){return _.dL(f.entities,"qrCodeEntity",H)};
ESR=function(f){return _.dL(f.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
Nab=function(){if(Bn)return Bn;if(window.lottie)return Bn=Promise.resolve(window.lottie);var f=_.pN(_.a8("LOTTIE_URL"));return f?Bn=new Promise(function(H,v){var t=document.createElement("script");t.addEventListener("load",function(){H(lottie)});
t.addEventListener("error",function(M){var h="Lottie library failed to load.";M?M.message&&(h+=" Original description: "+M.message,_.u$(M,h)):M=Error(h);_.pb(M);v(M)});
t.setAttribute("async","");_.tf(t,f);document.head.appendChild(t)}):Promise.reject(Error("sh"))};
cbR=function(){return Bn?Bn:Nab()};
Xqv=function(f){if(f)switch(f){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.J("kevlar_use_wil_icons"))return f=(f=ESR(_.vS().getState()))&&f.animationLightUrl&&f.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:f.animationLightUrl,pathDarkTheme:f.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,f?f:zI.get("LIKE");break;case "LIKE_DELHI_PLAYER":return zI.get("LIKE_DELHI_PLAYER")}};
Abs=function(f){var H=Xqv(f);if(H)return H;switch(f){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return zI.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return zI.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return zI.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return zI.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return zI.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return zI.get("NOTIFICATION_BELL")}};
bjB=function(f,H){if(!f.closest)return!1;H=!!Xqv(H);return _.a8("ID_TOKEN")&&H?!!f.closest("segmented-like-dislike-button-view-model")||!!f.closest("yt-player-quick-action-buttons"):!1};
kvT=function(f,H){if(!f||ij3)H=!1;else{var v;if(!(v=bjB(f,H)))if(f.closest)if(v=!_.a8("ID_TOKEN"),f=f.closest("ytd-subscription-notification-toggle-button-renderer-next"),v||!f)v=!1;else{var t;v=((t=f.data)==null?void 0:t.targetId)==="notification-bell"&&H!=="EXPAND_MORE"}else v=!1;H=v}return H};
TaH=function(f){var H,v;return _.Y(function(t){switch(t.nextAddress){case 1:return _.Zc(t,2),t.yield(fetch(f),4);case 4:return H=t.yieldResult,t.yield(H.json(),5);case 5:return t.return(t.yieldResult);case 2:v=_.xu(t),_.pb(v),_.Bj(t)}})};
wqH=function(f,H){var v,t,M;return _.Y(function(h){if(h.nextAddress==1)return(v=H?f.pathDarkTheme:f.path)?h.yield(Promise.all([TaH(v),Nab()]),2):h.return();t=h.yieldResult;M=t[0];FW.set(v,M);_.Bj(h)})};
f35=function(f,H,v,t){function M(y,m){if(H.value===m&&f!=null&&f.value){for(;f.value.firstChild;)f.value.removeChild(f.value.firstChild);f.value.classList.add("ytSpecIconShapeHost");y(f.value,t)}}
v=_.qmR(_.t8().resolve(_.d9),v);if(typeof v==="function")H.value=null,M(v,null);else{var h=new _.IO(v.then,v);H.value=h;h.then(function(y){M(y,h)})}};
vwT=function(f,H){var v=document.createElement("div"),t=_.F3(v,function(){return _.O(_.g,{cond:f,then:function(M){return _.O(HDe,{data:M,options:H})}})},"D");
return[v,t]};
_.r6=function(f,H){if(H){var v={};tnB.forEach(function(t){t=Mne(H,t,"--yt-lightsource-");Object.assign(v,t)});
hJg.forEach(function(t){t=Mne(H,t,"--yt-basic-");Object.assign(v,t)});
_.Sr(f,v)}};
Mne=function(f,H,v){var t={};t[v+_.Jg(H)]=f&&f[H]?_.cS(f[H]):"";return t};
_.DE=function(f,H,v){KV[f]||(KV[f]={});KV[f][H]=v};
_.om=function(f){KV[f]||(KV[f]={});return KV[f]};
RJ3=function(f){if(!f)return{};var H=f.foregroundTitleColor,v=f.backgroundColor;f=f.borderColor;var t="text";f?t="outline":v&&(t="filled");return{type:t,customColors:{color:H?_.cS(H):void 0,backgroundColor:v?_.cS(v):void 0,borderColor:f?_.cS(f):void 0}}};
$bR=function(f){var H=f.renderer;var v=f.element;var t=f.commandController;var M=f.onTapCallback;var h=f.skipCommandHandling;var y=f.overrides;var m=f.forceIcon;var W=f.forceModernIconButton;var I=f.forceDisabled;var S=f.isSubscribe===void 0?!1:f.isSubscribe;var d=f.isPressed===void 0?!1:f.isPressed;var Z=f.useButtonSize===void 0?!1:f.useButtonSize;f=Vnr(H);S&&(f.style="mono",f.type="filled");m=!H.icon||!m&&H.text?H.icon?H.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:W?"icon-only":"icon-only-40";m==="icon-only-40"&&(f.type="text");var l;W=Object;S=W.assign;Z=yFR(H,Z);d=!!H.isSelected||!_.J("web_propagate_is_pressed_killswitch")&&!!d;var L=H.isSelected!==void 0;I=I===void 0?H.isDisabled:I;var r=H.text?_.Qz(H.text):void 0;var n,Q,C,w=((n=H.accessibilityData)==null?void 0:(Q=n.accessibilityData)==null?void 0:Q.label)||((C=H.accessibility)==null?void 0:C.label);n=w?w:_.fG(H.text);v=Yue(H,v,t,M,h);t=mbT(H);t!=null&&t.length?(t=_.NE({innertubeCommand:u8b(t),
forceNewState:!0}),t=cK(t)?t:void 0):t=void 0;return S.call(W,{},f,Z,{iconPosition:m},y,{focused:!1,toggled:d,toggleable:L,disabled:I,formattedButtonText:r,accessibilityLabel:n,onTap:v,aTagConfig:t},RJ3((l=H.colorData)==null?void 0:l.basicColorPaletteData),{oneOffCustomTextWrap:H.oneOffCustomTextWrap})};
Yue=function(f,H,v,t,M){return function(h){var y=mbT(f);t(y,h);if(!M){y=_.V(y);for(var m=y.next();!m.done;m=y.next())e2(m.value,{form:{element:H,event:h},commandController:v})}}};
mbT=function(f){var H=[];f.command&&H.push(f.command);f.serviceEndpoint&&H.push(f.serviceEndpoint);f.navigationEndpoint&&H.push(f.navigationEndpoint);return H};
yFR=function(f,H){if(H)switch(f.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(f.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
Vnr=function(f){switch(f.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",
type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",
type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
WiR=function(f,H){return typeof f!=="object"||f===null?!1:Object.keys(H).every(function(v){return v in f})};
ODH=function(f){return Object.fromEntries(Object.keys(f).map(function(H){return[H,H]}))};
gwE=function(f,H,v){return JA5(v,function(t,M){return function(h){var y=_.NA.apply(1,arguments);return WiR(h,f)?M.apply(null,[h[H]].concat(_.pS(y))):M.apply(null,[h].concat(_.pS(y)))}})};
I3B=function(f){return function(H,v){return gwE(f,H,v)}};
_.nV=function(f){return f!=null&&f.watch?f.watch.isTheaterMode:!1};
_.pV=function(f){return f!=null&&f.watch?f.watch.isWatchFullscreen:!1};
_.Qn=function(f){f=_.SuH(f);return _.J("web_watch_enable_single_column_grid_view")?f:!1};
_.SuH=function(f){return f.watch.isWatchNarrowWidth};
_.dbs=function(f){return f.watch.openEngagementPanels};
_.uE=function(f){return _.sg(function(){OLg()();return StT(f)},{debugName:"d8B62c"},"wfRQAb")};
am=function(f,H){return _.dL(f.entities,"likeStatusEntity",H)};
j6H=function(f,H){return _.dL(f.entities,"likeCountEntity",H)};
_.Pn=function(f,H){return _.dL(f.entities,"stringEntity",H)};
s6v=function(f,H){if(!f)return!1;var v,t=(v=_.U(f,_.dj))==null?void 0:v.signal;if(t&&H.signalEndpointMap)return!!H.signalEndpointMap[t];var M;if((v=(M=_.U(f,_.GI))==null?void 0:M.request)&&H.continuationEndpointMap)return!!H.continuationEndpointMap[v];for(var h in f)if(H.commandEndpointMap[h])return!0;return!1};
ZDT=function(f,H){if(H.streamingEndpointMap)for(var v in f)if(H.streamingEndpointMap[v]&&(f=H.streamingEndpointMap[v]))return f()};
JFR=function(f,H){var v,t=(v=_.U(f,_.dj))==null?void 0:v.signal;if(t&&H.signalEndpointMap&&(v=H.signalEndpointMap[t]))return v();var M;if((v=(M=_.U(f,_.GI))==null?void 0:M.request)&&H.continuationEndpointMap&&(M=H.continuationEndpointMap[v]))return M();for(var h in f)if(H.commandEndpointMap[h]&&(f=H.commandEndpointMap[h]))return f()};
l3v=function(f){var H={"Content-Type":"application/json"};_.a8("EOM_VISITOR_DATA")?H["X-Goog-EOM-Visitor-Id"]=_.a8("EOM_VISITOR_DATA"):_.a8("VISITOR_DATA")&&(H["X-Goog-Visitor-Id"]=_.a8("VISITOR_DATA"));H["X-Youtube-Bootstrap-Logged-In"]=_.a8("LOGGED_IN",!1);_.a8("DEBUG_SETTINGS_METADATA")&&(H["X-Debug-Settings-Metadata"]=_.a8("DEBUG_SETTINGS_METADATA"));f!=="cors"&&((f=_.a8("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(H["X-Youtube-Client-Name"]=f),(f=_.a8("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(H["X-Youtube-Client-Version"]=
f),(f=_.a8("CHROME_CONNECTED_HEADER"))&&(H["X-Youtube-Chrome-Connected"]=f),(f=_.a8("DOMAIN_ADMIN_STATE"))&&(H["X-Youtube-Domain-Admin-State"]=f),_.P6("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(f=_.a8("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(H["X-YouTube-Lava-Device-Context"]=f));return H};
Ubs=function(f,H){H.watchNextResponse||H.reelItemWatchResponse?H.watchNextResponse?f.content=H.watchNextResponse:f.content=H.reelItemWatchResponse:H.playerResponse?f.player=H.playerResponse:H.reelWatchSequenceResponse&&(f.reelSequence=H.reelWatchSequenceResponse)};
_.CV=function(f){if(!f)return null;for(var H=[],v=0;v<f.textSegments.length;v++){var t=f.textSegments[v];t.text?H.push(t):t.emojiId&&H.push({emoji_id:t.emojiId})}return{text_segments:H}};
zJb=function(f,H,v,t,M,h,y){h=h===void 0?[]:h;var m=new _.ER;m.endpoint=v;if(!v)return _.nb(new _.e$("handle undefined endpoint",H.tagName)),m;var W=aO_(v);W.length&&(_.Oj(f,W,H,t),m.actions=W);v.loggingUrls&&v.loggingUrls.forEach(function(S){S.baseUrl&&XB(S.baseUrl,S.attributionSrcMode)});
W=!_.J("web_skip_impression_click_killswitch")&&t&&t.impression;if(v.clickTrackingParams&&!eJe(v)&&!LiE(H)&&!W&&(W=_.UV(),!_.NY(W,H))){var I=H.getScreenLayer&&H.getScreenLayer();I?W.clickCommand(v,null,I):W.clickCommand(v,null)}W=!1;for(I=0;I<h.length;I++)if((0,h[I])(H,v,t)){W=!0;break}!W&&xbR(v)&&(m.ajaxPromise=BJg(f,H,v,t,M,y));return m};
LiE=function(f){var H;return(f=(H=f.data)==null?void 0:H.navigationEndpoint)&&!!f.clickTrackingParams};
eJe=function(f){var H=_.U(f,_.dj);if(H&&(H=H.signal)&&FiR.indexOf(H)>=0)return!0;for(var v in f)if(rFg.indexOf(v)>=0)return!0;return!1};
xbR=function(f){var H;if(((H=_.U(f,_.dj))==null?void 0:H.signal)==="CLIENT_SIGNAL")return!1;for(var v in f)if(KiR.indexOf(v)>=0)return!1;f=Object.keys(f);return f.length===1&&f[0]==="loggingUrls"?!1:!0};
PQB=function(f,H,v,t,M,h,y){var m=_.cn.instance;if(m&&_.XW(m,t))var W=_.AE(m,t,M).then(function(S){return(S==null?0:S.data)?S:{data:S}});
else W=f.requestDataForServiceEndpoint(t,M),_.U(t,DbR)||_.U(t,owR)||_.U(t,_.nwB)||_.U(t,pWT)||_.pb(new _.e$("No RequestBuilder for endpoint",t));var I=_.bE();I.promise.thenCatch(function(){var S=_.o8(t,"action")||_.o8(t,"command")||_.o8(t,"endpoint");S&&(S=t[S],S.hasOwnProperty("onFailureAction")?_.Oj(H,[S.onFailureAction],v):S.hasOwnProperty("onFailureCommand")&&_.Oj(H,S.onFailureCommand,v));W.cancel("Resolver promise rejected")});
W.then(function(S){if(S){var d=S.error;if(d){if(h&&h.onServerError)h.onServerError(t,S);I.reject(new _.e$("Response error",t,d))}else if(S=S.data)if(d=S.error){if(h&&h.onServerError)h.onServerError(t,S);I.reject(new _.e$("Returned error",t,d))}else{Q6s(H,v,S,t);uKN(S);if(d=uss(S))for(var Z=_.V(d),l=Z.next();!l.done;l=Z.next()){l=l.value;var L=_.t8().resolve(_.vh(a35))||iE;if(!_.cn.instance||!L.some(function(n){return!!_.U(t,n)})||_.J("kevlar_response_processor_allowlist_killswitch")){var r=L=void 0;
((r=_.U((L=l)==null?void 0:L.commandMetadata,_.jG))==null?0:r.sendPost)?_.WV(H,[l]):_.Oj(H,[l],v)}}(Z=_.U(S==null?void 0:S.frameworkUpdates,kK))&&y&&y(Z);if(h&&h.onSuccess)h.onSuccess(t,S);I.resolve(new _.TI(S,d))}}else I.reject(new _.e$("Invalid service endpoint provided",t))},function(S){I.reject(S)});
return I.promise};
uKN=function(f){var H;(f=(H=_.U(f==null?void 0:f.onResponseReceivedCommand,_.G8e))==null?void 0:H.continuationItems)&&(f==null?void 0:f.length)===1&&_.U(f[0],CQ3)&&_.u0("so_r",void 0,"search_overview_answer")};
BJg=function(f,H,v,t,M,h){var y;return(y=H.getNetworkManager&&H.getNetworkManager()?H.getNetworkManager():_.t8().resolve(_.vh(_.a9)))?PQB(y,f,H,v,t,M,h):_.DI("No network manager.")};
Q6s=function(f,H,v,t){if(v=v.trackingParams||v.loggingDirectives&&v.loggingDirectives.trackingParams){var M;(_.U(t,Ewb)||_.U(t,NJN)||_.U(t,cFR))&&t.clickTrackingParams?M=_.zK(t.clickTrackingParams):_.J("web_graft_to_parent_command")&&t.clickTrackingParams&&(M=_.zK(t.clickTrackingParams));var h;t=(h=H.getScreenLayer)==null?void 0:h.call(H);H=_.UV().graftServerVe(v,M,t);_.$E(f,"yt-store-grafted-ve-action",[H])}};
_.XWR=function(f){var H=new Image;return new _.IO(function(v,t){H.addEventListener("load",function(){v()});
H.addEventListener("error",function(){t()});
H.src=f})};
AFR=function(f){return!!f};
bD3=function(f){return!!f};
iDs=function(f,H,v){var t=f.rowIndex;t!==void 0&&_.$E(f.hostElement,"yt-section-reactive-dismissal",[t,H,v])};
_.w6=function(f,H,v){f=_.V(f);for(var t=f.next();!t.done;t=f.next()){t=t.value;if(t===H)break;for(var M=_.V(v),h=M.next();!h.done;h=M.next())if(h=h.value,t.tagName===h||!_.J("web_event_button_role_check_killswitch")&&t.role==="button"&&h==="BUTTON")return!0}return!1};
_.qY=function(f,H,v){f=_.V(f);for(var t=f.next();!t.done;t=f.next()){t=t.value;if(t===H)break;for(var M=_.V(v),h=M.next();!h.done;h=M.next())if(t.id===h.value)return!0}return!1};
k8r=function(f){switch(f){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}};
TJb=function(f,H){if(!f&&!H)return"medium";f=Math.max(f||0,H||0);return f>=256?"large":f>=96?"medium":"small"};
wWR=function(f){switch(f){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.vx=function(){var f=_.t8().resolve(_.vh(_.fT));return f?(f=f.getCurrentPage())?_.Hx(f):null:null};
_.tj=function(){var f=_.vx();if(!f){var H=_.t8().resolve(_.vh(_.fT)),v=H?typeof H:"no page manager";H=H?H.getCurrentPage():null;v=new _.e$("Player is missing when requested.",v,H?H.tagName:"no page");_.oO(v)}return f};
_.Hx=function(f){return f&&f.getPlayer?f.getPlayer():null};
quR=function(f,H){f={args:{raw_player_response:f}};H&&(f.args=Object.assign({},f.args,H));return f};
f0T=function(f){if(f.args){if(f.args.raw_player_response)return f.args.raw_player_response;if(f.args.player_response)return JSON.parse(f.args.player_response)}};
_.HaH=function(f,H){var v={url:"/watch?v="+f.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};f.playlistId&&(v.url+="&list="+f.playlistId);f.playerParams&&(v.url+="&pp="+f.playerParams);f={watchEndpoint:f,commandMetadata:{webCommandMetadata:v}};H&&(f.clickTrackingParams=H);return f};
tSv=function(){return ver||!!_.ES("yt.player.Application")};
hcb=function(){return MST||!!document.querySelector("link#player-css")};
VSe=function(){function f(){ver=!0;RcN.resolve()}
var H,v;return _.Y(function(t){RcN||(RcN=new _.dZ,tSv()?f():(H=document.createElement("script"),H.addEventListener("load",f),v=_.K9(_.a8("PLAYER_JS_URL")),_.tf(H,v),document.head.appendChild(H)));return t.return(RcN.promise)})};
YXT=function(){function f(){MST=!0;yig.resolve()}
if(!yig)if(yig=new _.dZ,hcb())f();else{var H=document.createElement("link");H.id="player-css";H.addEventListener("load",f);var v=_.K9(_.a8("PLAYER_CSS_URL"));_.V1(H,v,"stylesheet");document.head.appendChild(H)}return yig.promise};
m1E=function(){return tSv()&&hcb()?Promise.resolve([]):Promise.all([VSe(),YXT()])};
$13=function(f,H,v){var t={args:{}};f&&(t.args.raw_player_response=f);H&&(t.args.raw_watch_next_response=H);v&&(t.args=Object.assign({},t.args,v));return t};
I0E=function(f,H,v){var t=!1;t=t===void 0?!0:t;f=typeof f==="string"?_.Ml(document,f):f;var M=WGN+"_"+_.h9(f),h=Oag[M];if(h&&t)return gee(H,v)?h.api.loadVideoByPlayerVars(H.args||null):h.loadNewVideoConfig(H),h.api;h=new hj(f,M,H,v,void 0);Oag[M]=h;h.addOnDisposeCallback(function(){delete Oag[h.getId()]});
return h.api};
gee=function(f,H){return H&&H.serializedExperimentFlags?H.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):f&&f.args&&f.args.fflags?f.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
SX5=function(){var f=new _.dZ;f.resolved=!1;var H=f.resolve;f.resolve=function(v){f.resolved=!0;H(v)};
return f};
jAs=function(f){var H={};d1v().install((H.document_disposed={callback:f},H))};
Rs=function(f,H){if(!f&&Math.random()<=_.VQ("kevlar_unified_player_logging_threshold")){f=Error("uh`"+(H?H:"Unspecified error"));if(_.J("kevlar_unified_player_throw_errors"))throw f;_.pb(f)}};
_.sA_=function(){var f=_.ES("ytDebugData.callbacks");f||(f={},_.qJ("ytDebugData.callbacks",f));return f};
JiR=function(f,H){var v=_.sA_();if(_.J("web_dd_iu")||ZaB.includes(f))v[f]=H};
l0e=function(){return _.Y(function(f){return f.return({isLeader:_.RPN(_.vS().getState()),c:_.a8("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.a8("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
U1r=function(){var f;_.Y(function(H){if(H.nextAddress==1)return JiR("APP_STATE",l0e),H.yield(_.t8().resolve(_.V4),2);f=H.yieldResult;JiR("PI",function(){return _.Y(function(v){return v.return(f.getVideoStats())})});
_.Bj(H)})};
ecR=function(f){var H=_.HV(_.Ag(_.Mr.location.href));f=_.HV(_.Ag(f));return _.J("kevlar_clear_non_displayable_url_params")?H==y4(f):y4(H)==y4(f)};
y4=function(f){var H=_.LG_(f);f=f.slice(0);var v=["frags"];_.J("kevlar_hide_pp_url_param")&&v.push("pp");_.J("kevlar_hide_time_continue_url_param")&&v.push("time_continue");v=_.V(v);for(var t=v.next();!t.done;t=v.next())t=t.value,f=_.tX(_.HV(f),t);return _.HV(f)+(H?"#"+H:"")};
Y$=function(f,H){H=Number(H)*1E3;var v=Math.round((0,_.ta)()),t=v.toString();f={innertubeResponse:f,serverDateTimestampMs:t,lastModifiedTimestampMs:t,expireTimestampMs:(v+H).toString()};if(H=_.a8("INNERTUBE_CONTEXT_CLIENT_NAME"))f.clientName=H;return f};
Bdg=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++x1E};
_.zcT=function(){var f=_.Qe(),H=_.uy();H&&f&&_.kE(H,[f],!0)};
rib=function(f){return f&&FGH.some(function(H){return f.includes(H)})};
QAE=function(f){var H=_.U(f,_.X7);if(!H)return!1;var v=H.url,t=H.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!v)return _.oO(Error("zh")),!1;if(H.target==="TARGET_NEW_WINDOW"){var M={};_.J("resolve_url_parent_tracking_params")&&(!_.wu(v)||qw(window.location.href,v))&&(M={endpoint:f,itct:f.clickTrackingParams});lje(M);f=null;try{if(t)return f=_.rz5(v,"_blank",M,void 0,t),KGg(_.t8().resolve(D1g),f,v),!0}catch(Z){_.oO(Z)}_.vV(v,M);H={target:"_blank",noopener:_.J("set_window_noopener_ks")&&
!H.allowOpener};f=window;t=po(v)?v:_.Co(typeof v.href!="undefined"?v.href:String(v));M=self.crossOriginIsolated!==void 0;var h="strict-origin-when-cross-origin";window.Request&&(h=(new Request("/")).referrerPolicy);var y=H.noreferrer;if(M&&y&&h==="unsafe-url")throw Error("qe");h=y&&!M;y=H.target||v.target;var m=[],W=[],I=!1;for(d in H){var S=H[d];switch(d){case "width":case "height":case "top":case "left":m.push(d+"="+S);break;case "target":break;case "noopener":case "noreferrer":S?W.push(d):(I=!0,
W.push(d+"=false"));break;case "attributionsrc":m.push(d+(S?"="+S:""));break;default:m.push(d+"="+(S?1:0))}}var d=y!==void 0&&!["_blank","_self","_top","_parent",""].includes(y);d=rB()&&d;oeg&&M&&m.length===0&&W.length>0&&!d&&!I?(W.length===2&&(W=["noreferrer"]),_.we(f,t,y,W[0]),f=nes()):(d=m.join(","),_.QR()&&f.navigator&&f.navigator.standalone&&y&&y!="_self"?(d=_.lS("A"),AD(d,t),d.target=y,h&&(d.rel="noreferrer"),((H=H.attributionsrc)||H==="")&&d.setAttribute("attributionsrc",H),H=document.createEvent("MouseEvent"),
H.initMouseEvent("click",!0,!0,f,1),d.dispatchEvent(H),f=nes()):h?(f=_.we(f,"",y,d),H=_.QO(t),f&&(f.opener=null,H===""&&(H="javascript:''"),H='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+mV(H)+'">',H=iD(H),(t=f.document)&&t.write&&(t.write(kU(H)),t.close()))):((f=_.we(f,t,y,d))&&H.noopener&&(f.opener=null),f&&H.noreferrer&&(f.opener=null)));KGg(_.t8().resolve(D1g),f,v);return!0}H=_.gH(v);H=rib(H)||v==="https://studio.youtube.com/";t=!(!_.wu(v)||qw(window.location.href,
v));d=v.indexOf("disable_polymer=1")>=0;if(t||d||H)bY(v),or(),_.iY(v,void 0,void 0,window.top,p$E);else return _.pb(new _.e$("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",f)),!1;return!0};
_.Pu3=function(f,H){H=H===void 0?0:H;if(!(_.U(f,uOv)||_.U(f,a05)||_.U(f,_.X7)&&_.U(f,_.X7).url))return!1;var v,t=(v=_.U(f,_.X7))==null?void 0:v.url;v=t?{externalLinkData:{url:t}}:null;return _.UV().clickCommand(f,v,H)};
Gze=function(f,H){return _.dL(f.entities,"subscriptionStateEntity",H)};
Cu5=function(f,H){return _.dL(f.entities,"subscriptionNotificationStateEntity",H)};
EeN=function(f,H){return _.dL(f.entities,"upcomingEventReminderStateEntity",H)};
Nds=function(f,H){return _.dL(f.entities,"engagementToolbarSurfaceEntityPayload",H)};
ciE=function(f,H){return _.dL(f.entities,"triStateButtonStateEntityPayload",H)};
X$v=function(f,H){return _.dL(f.entities,"commerceCartCheckoutButtonEntity",H)};
_.AiB=function(f,H){return _.dL(f.entities,"playlistLoopStateEntity",H)};
bas=function(f,H){return _.dL(f.entities,"commandEntity",H)};
kzN=function(f,H,v,t,M){M=M===void 0?{}:M;return function(h){var y,m;var W=((y=f.loggingDirectives)==null?0:(m=y.clientVeSpec)==null?0:m.uiType)?_.$$(f.loggingDirectives.clientVeSpec.uiType):void 0;M.clickedVisualElement||(M.clickedVisualElement=W);W=iaB(f,H);v(W,h);W=_.V(W);for(y=W.next();!y.done;y=W.next()){y=y.value;m=t;var I=h,S=M;S.form?S.form.event=I:S.form={element:m,event:I};e2(y,S)}}};
iaB=function(f,H){var v=[];H?(f.toggledCommand&&v.push(f.toggledCommand),f.toggledServiceEndpoint&&v.push(f.toggledServiceEndpoint)):(f.defaultCommand&&v.push(f.defaultCommand),f.defaultServiceEndpoint&&v.push(f.defaultServiceEndpoint),f.defaultNavigationEndpoint&&v.push(f.defaultNavigationEndpoint));return v};
TdR=function(f,H){var v=f.toggledStyle||f.style,t;switch((t=H?v:f.style)==null?void 0:t.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"}}};
_.Wx=function(){return _.Y(function(f){return f.nextAddress==1?f.yield(_.t8().resolve(_.V4),2):f.return(_.t8().resolve(w$b)())})};
_.O7=function(){return _.t8().resolve(w$b)()};
_.g3=function(){return Dp(function(){return{lottieEl:void 0}})};
qXs=function(f,H){return f.startsWith(H.uniqueId)};
fmH=function(f){var H,v;_.Y(function(t){if(t.nextAddress==1)return t.yield(_.Wx(),2);H=t.yieldResult;if((v=H)==null||!v.addEventListener)return Is(),t.return();H.addEventListener("onCueRangeEnter",f);_.Bj(t)})};
H7R=function(f){var H,v;_.Y(function(t){if(t.nextAddress==1)return t.yield(_.Wx(),2);H=t.yieldResult;if((v=H)==null||!v.removeEventListener)return Is(),t.return();H.removeEventListener("onCueRangeEnter",f);_.Bj(t)})};
vLs=function(f){var H,v,t,M,h;_.Y(function(y){if(y.nextAddress==1)return y.yield(_.Wx(),2);H=y.yieldResult;if((v=H)==null||!v.addCueRange)return Is(),y.return();t=_.V(f.timings);for(M=t.next();!M.done;M=t.next())h=M.value,H.addCueRange(f.uniqueId+"-"+h,h/1E3,(h+100)/1E3);_.Bj(y)})};
t1E=function(f){var H,v,t,M,h;_.Y(function(y){if(y.nextAddress==1)return y.yield(_.Wx(),2);H=y.yieldResult;if((v=H)==null||!v.removeCueRange)return Is(),y.return();t=_.V(f.timings);for(M=t.next();!M.done;M=t.next())h=M.value,H.removeCueRange(f.uniqueId+"-"+h);_.Bj(y)})};
M1b=function(){var f,H,v;return _.Y(function(t){if(t.nextAddress==1)return t.yield(_.Wx(),2);f=t.yieldResult;if((H=f)==null||!H.getPlayerState)return Is(),t.return();v=f.getPlayerState();return t.return(v===2)})};
Is=function(){_.pb(new _.e$("Smartimation player does not exist or is corrupted"))};
hx5=function(){try{var f;return(f=window.CSS)!=null&&f.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(H){return _.pb(new _.e$("Smartimation CSS.supports threw an error")),!1}};
Wlg=function(f,H,v,t,M){var h=f.playlistId?RxR:V1E;H=H();v=v();M=!!f.videoId&&M()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.xT(H))return ySe({data:f,actionType:h,disabled:M},v);if(f.videoId&&t())return YDR({data:f,actionType:h,disabled:M});switch(H){case "TRANSFER_STATE_UNKNOWN":return YDR({data:f,actionType:h,disabled:M});case "TRANSFER_STATE_FAILED":return f.videoId?mXb({data:f,actionType:h,disabled:M}):$X_({data:f,actionType:h,disabled:M});case "TRANSFER_STATE_COMPLETE":return $X_({data:f,
actionType:h,disabled:M});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return ySe({data:f,actionType:h,disabled:M},v);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return f.videoId?mXb({data:f,actionType:h,disabled:M}):YDR({data:f,actionType:h,disabled:M});default:return YDR({data:f,actionType:h,disabled:M})}};
O7_=function(f,H){var v=f.onTapCommand,t=_.GK(v);if(f.videoId&&_.U(t,_.Sf))return _.U(t,_.Sf).action=H,v;f.playlistId&&_.U(t,_.d3)&&(_.U(t,_.d3).action=H);return v};
YDR=function(f){var H=f.data;var v=f.actionType;f=f.disabled;return{text:gLR,iconType:"OFFLINE_DOWNLOAD",onTap:O7_(H,v.ACTION_ADD),disabled:f}};
ySe=function(f,H){var v=f.data;var t=f.actionType;f=f.disabled;var M="OFFLINE_DOWNLOAD";H>=0&&H<=.1?M="OFFLINE_DOWNLOADING_ZERO":H>.1&&H<=.3?M="OFFLINE_DOWNLOADING_TWENTY":H>.3&&H<=.5?M="OFFLINE_DOWNLOADING_FORTY":H>.5&&H<=.7?M="OFFLINE_DOWNLOADING_SIXTY":H>.7&&H<1?M="OFFLINE_DOWNLOADING_EIGHTY":H===1&&(M="OFFLINE_PIN");return{text:Imr,iconType:M,onTap:O7_(v,t.ACTION_REMOVE_WITH_PROMPT),disabled:f}};
$X_=function(f){var H=f.data;var v=f.actionType;f=f.disabled;return{text:SDs,iconType:"OFFLINE_PIN",onTap:O7_(H,v.ACTION_REMOVE_WITH_PROMPT),disabled:f}};
mXb=function(f){var H=f.data;var v=f.actionType;f=f.disabled;return{text:dXT,iconType:"OFFLINE_DOWNLOAD",onTap:O7_(H,v.ACTION_RETRY),disabled:f}};
_.s7=function(f,H){var v=OLg();return _.sg(function(){v();return StT(f,[_.p4(H)||""])},{debugName:"LUZslf"},"qYSKAc")};
jwR=function(f){var H=_.s7(_.CY,function(){return f().videoId}),v=_.s7(_.EF,function(){return f().playlistId});
return function(){return f().videoId?H:f().playlistId?v:_.V(_.gp("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
swr=function(f){var H=_.s7(NO,function(){return f().videoId}),v=_.s7(_.hPR,function(){return f().playlistId});
return function(){return f().videoId?H:f().playlistId?v:_.V(_.gp(0,void 0,"K4tgOc")).next().value}};
Z7E=function(f){var H=_.s7(_.gig,function(){return f().videoId});
return function(){return f().videoId?H:_.V(_.gp(!1,void 0,"Oaxwcf")).next().value}};
JSB=function(f){var H=_.s7(ypb,function(){return f().videoId});
return function(){return f().videoId?H:_.V(_.gp("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
lmE=function(){return{}};
_.BMR=function(f,H,v){return{submitForm:function(){var t;return _.Y(function(M){if(M.nextAddress==1){t=UXR(f());if(!t)return M.return();if(t.onSubmit)return t.onSubmit(),M.return();if(!t.submitConfig||!t.formData)return M.jumpTo(0);t.disableDuringSubmission&&exH(f(),!0);Llv(H);return M.yield(xX3(t.submitConfig,t.formData()),3)}Llv(v);t.disableDuringSubmission&&exH(f(),!1);return M.return()})},
isValid:function(){var t=UXR(f());if(t){var M;return!((M=t.isValid)==null||!M.call(t))}return!0},
isSubmitting:function(){var t,M;return!!((t=UXR(f()))==null?0:(M=t.isSubmitting)==null?0:M.call(t))}}};
_.rSe=function(){if(!zxs){var f=_.V(_.gp(new Map,void 0,"yE61ae"));zxs=f.next().value;FlH=f.next().value}return zxs};
_.KlN=function(f){FlH(new Map(f))};
UXR=function(f){if(f)return _.rSe()().get(f)};
xX3=function(f,H){var v;return _.Y(function(t){return H?(v=_.t8().resolve(_.vh(DXv)))&&f.submitId?t.yield(v.submitForm(f.submitId,H,oL3,f.params,f.clickTrackingParams),0):t.return():t.return()})};
exH=function(f,H){if(f){var v=_.rSe();v().set(f,Object.assign({},v().get(f),{isSubmitting:function(){return H}}));
_.KlN(v())}};
Llv=function(f){if(f){var H=_.t8().resolve(_.MJ);H&&(f=_.GK(f()))&&H.resolveCommand(f)}};
pPR=function(f,H){H=H===void 0?{shouldPersist:!0}:H;return{useUpdatableData:function(v,t){var M=[],h=_.V(_.sR(function(){var I=v();if(t!=null&&t.length&&M){var S=M.length>0;for(var d=!1,Z=0;Z<t.length;Z++){var l=t[Z]();S&&l!==M[Z]&&(d=!0);M[Z]=l}S=d}else S=!1;if(S)_.ZO.remove(W());else if(S=_.ZO.get(W()))return S;return I})),y=h.next().value,m=h.next().value,W=_.sg(function(){return f(v())},void 0,"mX326");
_.K4(function(){if(W()!=null){nLN.set(W(),[y,m]);var I=W();_.Dt(function(){nLN.delete(I)})}},"MgKPjb");
return[y,function(I){m(I);H.shouldPersist&&_.ZO.set(W(),I)}]},
getData:function(v){var t;return(t=nLN.get(f(v)))==null?void 0:t[0]()},
updateData:function(v,t){v=f(v);var M=nLN.get(v);if(!M)return!1;var h=_.V(M);M=h.next().value;h=h.next().value;t=t(M());h(t);H.shouldPersist&&_.ZO.set(v,t);return!0}}};
Qwr=function(f){var H=_.V(_.gp(!0,void 0,"bKtO6d")),v=H.next().value;H.next();return function(){var t=sS(f.children());return _.O(_.g,{cond:v,then:function(){return t},
else:f.fallback})}()};
_.Jj=function(f){var H=urR(f),v=H.data,t=H.mapping,M=H.wrapper;H=H.pendingFallback;var h=function(){return amB(_.p4(v))},y=function(){var m=h(),W=[];
m=_.V(m);for(var I=m.next();!I.done;I=m.next()){var S=void 0;I=I.value;var d=void 0;for(S in I)if(!(!I).hasOwnProperty(S)){d=S;break}(S=d)&&W.push(S)}return W};
return f.data?_.O(Qwr,{fallback:H},function(){return _.O(_.eK,{each:y},function(m,W){var I=M?function(d){return M(function(){return t[m](d,W)},S,W)}:function(d){return t[m](d,W)};
I.debugName||(I.debugName=String(m));if(!t[String(m)])return document.createComment("");I.componentType!==_.BM&&Pfv(String(m));var S=GY_(h,m,W);return _.O(I,{data:S})})}):_.O(_.R8,null)};
urR=function(f){var H=f.targetId||Cf_(f.children);if(!f.data||!H||_.J("mweb_new_replaceables_killswitch"))return Object.assign({},f,{mapping:f.children,wrapper:void 0});var v="stamper-"+ELe++,t=function(){var m;return(m=typeof f.targetId==="function"?f.targetId(v):f.targetId)!=null?m:v};
H=_.V(NME(function(){var m=amB(f.data());m.targetId=t;return m})).next().value;
var M=Object.assign({},(_.t8().resolve(_.vh(cSv))||{}).replaceableMapping,f.children);if(f.replacementWrapper){var h=M.notificationTextRenderer,y=M.notificationMultiActionRenderer;h&&(M.notificationTextRenderer=function(m,W){return f.replacementWrapper(h({data:m.data},W))});
y&&(M.notificationMultiActionRenderer=function(m,W){return f.replacementWrapper(y({data:m.data},W))})}return Object.assign({},f,{data:H,
mapping:M,wrapper:function(m,W,I){return $s3({targetId:t,stamperIndex:I},m)}})};
GY_=function(f,H,v){var t;return _.sg(function(){var M=f()[v()];if(M)t=M[H];else return _.pb(new _.e$("Stamper failed to find "+String(H)+" at index "+v()+" of data array of length "+(f().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),t;return M[H]},void 0,"wgRPHd")};
Cf_=function(f){f=_.V(Object.keys(f));for(var H=f.next();!H.done;H=f.next())if(H=H.value,XPN.includes(H)||ASH.includes(H)||b7r.includes(H))return!0;return!1};
amB=function(f){return f?Array.isArray(f)?f:[f]:[]};
Pfv=function(f){if(_.J("web_enable_renderer_logger")){var H;(H=_.t8().resolve(_.vh(i73)))!=null&&H.loggingEnabled&&!H.ids.has(f)&&H.ids.add(f)}};
kYR=function(){var f,H;return(H=(f=_.t8().resolve(_.vh(_.TK)))==null?void 0:f())!=null?H:!1};
wP_=function(f,H){f=f===void 0?TM3:f;switch(H.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},f,{isOpen:H.payload});default:return f}};
fJE=function(f,H){f=f===void 0?qDs:f;switch(H.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},f,{isAllowed:H.payload});default:return f}};
vhb=function(f,H){f=f===void 0?HJR:f;switch(H.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},f,{errorMessage:H.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},f,{title:H.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},f,{privacy:H.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},f,{isDisabled:H.payload});default:return f}};
MyH=function(f,H){f=f===void 0?tyv:f;switch(H.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},f,{isOpen:H.payload});default:return f}};
RnN=function(f,H){f=f===void 0?hnE:f;switch(H.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},f,{isFullscreen:H.payload});case "SET_NAVIGATION_BUTTON":var v=H.payload.targetId,t=Object.assign({},f.navigationButtons);t[v]=H.payload.button;return Object.assign({},f,{navigationButtons:t});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},f,{topPanelId:H.payload});case "SET_SECONDARY_HEADER":return v=H.payload.panelId,t=Object.assign({},f.secondaryHeader),t[v]=H.payload.secondaryHeader,
Object.assign({},f,{secondaryHeader:t});default:return f}};
mMN=function(){return se(Object.assign({},{voiceSearch:D8v,engagementPanel:RnN,bottomSheet:wP_,cinematicSetting:fJE,shorts:G$R,drawerLayout:MyH,createPlaylist:vhb,locationCollection:VyE,reportChannel:yL_,reportForm:Yyr},CMH))};
$Mb=function(f,H){_.nN.addLowPriorityJob(function(){var v,t,M;return _.Y(function(h){switch(h.nextAddress){case 1:return _.Zc(h,2),h.yield(Nab(),4);case 4:return h.yield(fetch(f),5);case 5:return v=h.yieldResult,h.yield(v.json(),6);case 6:t=h.yieldResult;FW.set(f,t);requestAnimationFrame(function(){H(t)});
_.ch(h,0);break;case 2:M=_.xu(h),_.pb(M),_.Bj(h)}})})};
WC_=function(f){var H={animationConfig:{},listeners:{}},v=function(){f(!0)};
H.listeners.data_failed=v;H.listeners.error=v;H.listeners.data_ready=function(){f(!1)};
return H};
IJE=function(f){var H=f.model;var v=f.subscribed;var t=f.isOverlay;var M=f.element;var h=f.commandController;var y=f.notificationState;if(v){var m,W;var I=(H==null?void 0:(m=H.buttonStyle)==null?void 0:m.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:H==null?void 0:(W=H.unsubscribeButtonContent)==null?void 0:W.buttonText}else{var S;I=H==null?void 0:(S=H.subscribeButtonContent)==null?void 0:S.buttonText}a:{var d;switch(H==null?void 0:(d=H.buttonStyle)==
null?void 0:d.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":m="S";break a;default:m="M"}}a:if(t)t="overlay";else switch(H.backgroundStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_FULLSCREEN_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY_RED":t="overlay";break a;default:t="mono"}a:if(v)var Z="tonal";else switch((Z=H.buttonStyle)==
null?void 0:Z.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":Z="tonal";break a;default:Z="filled"}return{style:t,type:Z,state:H.disableSubscribeButton?"disabled":"active",size:m,focused:f.focused,toggled:v,accessibilityLabel:OJv(H,v,y),buttonText:I,iconPosition:H.disableNotificationBell?"none":"leading-trailing",onTap:ghR(H,v,M,h),disableTextEllipsis:!!f.disableTextEllipsis}};
ghR=function(f,H,v,t){return function(M){if(H){var h;var y=f.disableNotificationBell?_.GK(f==null?void 0:(h=f.unsubscribeButtonContent)==null?void 0:h.onTapCommand):_.GK(f==null?void 0:f.onShowSubscriptionOptions)}else{var m;y=_.GK(f==null?void 0:(m=f.subscribeButtonContent)==null?void 0:m.onTapCommand)}y&&e2(y,{form:{element:v==null?void 0:v.value},commandController:t});M.stopPropagation()}};
OJv=function(f,H,v){if(H){if(f==null?0:f.disableNotificationBell){var t;return f==null?void 0:(t=f.unsubscribeButtonContent)==null?void 0:t.accessibilityText}switch(v){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var M;return f==null?void 0:(M=f.bellAccessibilityData)==null?void 0:M.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var h;return f==null?void 0:(h=f.bellAccessibilityData)==null?void 0:h.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var y;return f==null?void 0:(y=
f.bellAccessibilityData)==null?void 0:y.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var m;return f==null?void 0:(m=f.bellAccessibilityData)==null?void 0:m.disabledLabel;default:var W;return f==null?void 0:(W=f.unsubscribeButtonContent)==null?void 0:W.accessibilityText}}else{var I;return f==null?void 0:(I=f.subscribeButtonContent)==null?void 0:I.accessibilityText}};
SyB=function(f){if(f){switch(f){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":f="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":f="NOTIFICATIONS_OFF";break;default:f="NOTIFICATIONS_NONE"}return f}};
dMg=function(f,H,v){v.subscribed!==H&&((v=v.key)&&_.HK(_.lF("subscriptionStateEntity",v,{key:v,subscribed:H})),f.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:H})),H||_.mb(f,"yt-unsubscribe-action"))};
sxB=function(f){f=_.U(_.GK(f),_.U7);var H,v,t,M;return(M=_.U(f==null?void 0:(H=f.panelLoadingStrategy)==null?void 0:(v=H.inlineContent)==null?void 0:(t=v.sheetViewModel)==null?void 0:t.content,jxs))==null?void 0:M.listItems};
ZJr=function(f,H){if(f.onShowSubscriptionOptions&&H&&(f=sxB(f.onShowSubscriptionOptions),f!=null&&f.length)){var v=SyB(H);f.forEach(function(t){t=_.U(t,_.ef);var M,h,y,m,W=t==null?void 0:(M=t.leadingImage)==null?void 0:(h=M.sources)==null?void 0:(y=h[0])==null?void 0:(m=y.clientResource)==null?void 0:m.imageName;t&&W&&(t.isSelected=W===v)})}};
JL5=function(f,H,v,t){H&&v?f.style.width=v+"px":!H&&t&&(f.style.width=t+"px")};
lJv=function(f,H,v){var t;(t=f.lottieEl)==null||t.goToAndPlay(0);var M;(M=H.lottieEl)==null||M.goToAndPlay(0);_.LT(_.nN,function(){var h;(h=v.lottieEl)==null||h.goToAndPlay(0)},300)};
UM5=function(f){return!(f==null||!f.iconName||(f==null?0:f.title))};
enN=function(f,H,v,t){v&&_.nN.cancelJob(v);v=_.nN.addLowPriorityJob(function(){t(void 0)},5E3);
t(v);H&&f!==(H.likeStatus==="LIKE")&&H.key&&_.HK(_.lF("likeStatusEntity",H.key,{key:H.key,likeStatus:f?"LIKE":"INDIFFERENT",hadUserInteraction:f}))};
_.LC5=function(f,H){return _.dL(f.entities,"accountLinkStatusEntity",H)};
xME=function(f,H){return _.dL(f.entities,"hatsSurveyEntity",H)};
Bnv=function(f,H){return _.dL(f.entities,"hatsSurveyStateEntity",H)};
zng=function(f,H){return _.dL(f.entities,"quantityIncrementerEntity",H)};
FCr=function(f){switch(f){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}};
rL5=function(f){switch(f){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}};
KC_=function(f){switch(f){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--promoted-inverted";case 5:return"badge-shape-wiz--timely";case 6:return"badge-shape-wiz--premium";case 7:return"badge-shape-wiz--sale";case 8:return"badge-shape-wiz--membership";case 9:return"badge-shape-wiz--commerce";case 11:return"badge-shape-wiz--live";case 12:return"badge-shape-wiz--status-new";case 13:return"badge-shape-wiz--status-complete";
case 14:return"badge-shape-wiz--status-warning";case 15:return"badge-shape-wiz--status-error";case 16:return"badge-shape-wiz--status-default";case 17:return"badge-shape-wiz--thumbnail-default";case 18:return"badge-shape-wiz--thumbnail-live";case 19:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.ohb=function(f){var H=_.VQ("web_generic_client_event_wait_period ",0);H||(H=3E5);var v=DMB.get(f);!_.J("enable_web_client_experiment_event_timeout_killswitch")&&v&&(0,_.ta)()-v<H||(DMB.set(f,(0,_.ta)()),_.Kb("genericClientExperimentEvent",{eventType:f}))};
nhE=function(f){switch(f){case "small":return"collections-stack-wiz__collection-stack1--small";case "medium":return"collections-stack-wiz__collection-stack1--medium";case "large":return"collections-stack-wiz__collection-stack1--large";default:return""}};
pg3=function(f){if(!f)return"";var H,v=(H=_.t8().resolve(_.vh(_.TK)))==null?void 0:H(),t;if(!v&&((t=f.vibrantColorPalette)==null?0:t.iconInactiveColor))return XE(f.vibrantColorPalette.iconInactiveColor,"1");var M;return v&&((M=f.darkColorPalette)==null?0:M.iconInactiveColor)?XE(f.darkColorPalette.iconInactiveColor,"1"):f.color?XE(f.color,"1"):f.sampledThumbnailColor?(f=f.sampledThumbnailColor,"rgba("+f.red+","+f.green+","+f.blue+");"):""};
_.x$=function(f,H){if(!f.includes("DATE_PLACEHOLDER"))return f;var v=new Date(0);v.setUTCSeconds(H);return f.replace("DATE_PLACEHOLDER",QxT(v))};
uVB=function(f,H,v){return function(t){var M=f.command;M&&(e2(M,{form:{element:v}}),H([M],t))}};
PGH=function(f,H,v,t,M){return function(h){var y=aJ5(f,H);y&&e2(y,{form:{element:v},commandController:t});M&&h.stopPropagation()}};
aJ5=function(f,H){if(f.signInEndpoint&&!_.J("web_subscribe_sign_in_endpoint_killswitch"))return f.signInEndpoint;if(H){if(f.serviceEndpoints)return f.serviceEndpoints[1];if(f.onUnsubscribeEndpoints)return f.onUnsubscribeEndpoints[0]}else{if(f.serviceEndpoints)return f.serviceEndpoints[0];if(f.onSubscribeEndpoints)return f.onSubscribeEndpoints[0]}};
G4s=function(f,H){var v,t,M,h;H=H&&((v=f.unsubscribeAccessibility)==null?void 0:(t=v.accessibilityData)==null?void 0:t.label)||((M=f.subscribeAccessibility)==null?void 0:(h=M.accessibilityData)==null?void 0:h.label);return f.longSubscriberCountText?[H,_.fG(f.longSubscriberCountText)].filter(function(y){return y}).join(" "):H};
Bx=function(f,H){return H||(f==null?0:f.isChannelDelegate)?"disabled":"active"};
CGb=function(f,H){var v;switch((v=f.style)==null?void 0:v.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:Bx(f)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:Bx(f)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:Bx(f,!0)};case "OVERLAY":return H?{style:"overlay",type:"tonal",state:Bx(f)}:{style:"overlay",type:"filled",state:Bx(f)};default:return H?{style:"mono",type:"tonal",state:Bx(f)}:{style:"mono",type:"filled",state:Bx(f)}}};
_.zV=function(){for(var f=[],H=_.V(_.NA.apply(0,arguments)),v=H.next();!v.done;v=H.next())if(v=v.value)if(typeof v==="string")f.push(v);else{v=_.V(Object.entries(v));for(var t=v.next();!t.done;t=v.next()){var M=_.V(t.value);t=M.next().value;(M=M.next().value)&&f.push(t)}}return f.join(" ")};
EhT=function(f){switch(f){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
NnN=function(f){switch(f){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
cLr=function(f,H){var v=f.map(function(t){return t.toString()});
return _.d6(function(t){if(v.includes(t.key)){H&&t.preventDefault();var M;(M=t.currentTarget)==null||M.click()}})};
_.Xge=function(){return cLr(["Enter"])};
_.AL3=function(){return cLr(["Enter"," "],!0)};
_.Fs=function(f){if(f.composedPath)return f.composedPath();if(!f.__composedPath){for(var H=[],v=f.target;v;)H.push(v),v=v.parentNode;H.push(window);f.__composedPath=H}return f.__composedPath};
_.r3=function(f,H,v){f=_.V(f);for(var t=f.next();!t.done;t=f.next()){t=t.value;if(t===H)break;for(var M=_.V(v),h=M.next();!h.done;h=M.next())if(h=h.value,t.tagName===h||t.role==="button"&&h==="BUTTON")return!0}return!1};
iJ3=function(f,H){var v,t=(v=H.observer)!=null?v:_.t8().resolve(tM);if(f){v=bJR(f);var M=[];H.showOption&&M.push(t.observe(f,function(){H.visibilityCallback(!0,f)},H.showOption));
H.hideOption&&M.push(t.observe(f,function(){H.visibilityCallback(!1,f)},H.hideOption));
H.prescanOption&&H.prescanCallback&&M.push(t.observe(f,function(){H.prescanCallback()},H.prescanOption));
var h;v.visibilityMonitorKeys=((h=v.visibilityMonitorKeys)!=null?h:[]).concat(M)}};
bJR=function(f){var H;return(H=f.polymerController)!=null?H:f};
_.DO=function(f){return!!_.KT(f)};
_.nT=function(f,H,v,t,M){return function(h){var y=msR();_.K4(function(){if(h){k4v(h,f(),M);var m=Tnr(h,f(),H,v,t,y);_.Dt(m)}},"nr377e")}};
k4v=function(f,H,v){var t=wgT(H),M=qyR(H);H=t&&foN;var h=M&&HxB;(t||M)&&iJ3(f,{visibilityCallback:function(y){var m=_.t8().resolve(_.MJ);y&&t?m.resolveCommand(t,{form:{element:v?f:void 0},disableClickTracking:!0}):!y&&M&&m.resolveCommand(M,{form:{element:v?f:void 0},disableClickTracking:!0})},
showOption:H,hideOption:h})};
Tnr=function(f,H,v,t,M,h){var y=new Map;if(H=_.KT(H)){var m;f=(t==null?void 0:(m=t.onTap)==null?void 0:m.value)||f;v=vHb(H,f,v==null?void 0:v.onTap,M,h);f.addEventListener("click",v);y.set("click",v)}return function(){for(var W=_.V(y),I=W.next();!I.done;I=W.next()){var S=_.V(I.value);I=S.next().value;S=S.next().value;f.removeEventListener(I,S)}}};
_.KT=function(f){var H;return(f=(H=_.U(f,tT5))==null?void 0:H.onTap)&&_.GK(f)};
wgT=function(f){var H;return(f=(H=_.U(f,tT5))==null?void 0:H.onVisible)&&_.GK(f)};
qyR=function(f){var H;return(f=(H=_.U(f,tT5))==null?void 0:H.onHidden)&&_.GK(f)};
vHb=function(f,H,v,t,M){var h=function(m){_.t8().resolve(_.MJ).resolveCommand(f,m)},y=function(m){t&&_.r3(_.Fs(m),H,t)||h(m.target?{form:{element:m.target,
sourceData:f,mutationContext:M}}:void 0)};
v&&(y=function(m){v(m,h)});
return y};
MTH=function(f){switch(f){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}};
hob=function(f){var H=f.numAvatarsInCluster;switch(f.clusterSize){case "small":return H===2?22:18;case "40":return H===2?24:22;default:return H===2?24:20}};
Ros=function(f,H){return function(v){var t=Object.keys(H);_.K4(function(){if(f!=null&&f()){for(var M=_.V(t),h=M.next();!h.done;h=M.next())h=h.value,v.addEventListener(h,H[h]);_.Dt(function(){for(var y=_.V(t),m=y.next();!m.done;m=y.next())m=m.value,v.removeEventListener(m,H[m])})}},"bXZGfe")}};
VT3=function(f){switch(hob(f)){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""}};
yOR=function(f){switch(f){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""}};
YNR=function(f){switch(hob(f)){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""}};
mfs=function(f){switch(f){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""}};
$fN=function(f){switch(f){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}};
WjR=function(f){return f==="medium"||f==="48"||f==="large"||f==="extra-large"||f==="extra-extra-large"||f==="giant"};
Oxb=function(f){return!!((f==null?0:f.includes(3))||(f==null?0:f.includes(5)))};
Iob=function(f){return{size:gHg(f.data.avatarImageSize),onTap:f.onTap,decorations:f.decorations||[],badgeText:f.badgeText,accessibilityText:f.accessibilityText,avatarButtonCustomClassName:f.avatarButtonCustomClassName,clusterLayoutConfig:f.clusterLayoutConfig}};
gHg=function(f){switch(f){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"}};
SNH=function(f){switch(f){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}};
dfv=function(f){switch(f){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
joN=function(f){var H=f.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",v,t=f.avatars&&f.avatars.length>0?(v=_.U(f.avatars[0],_.pT))==null?void 0:v.avatarImageSize:"AVATAR_SIZE_UNKNOWN";v=SNH(t)||0;if(H){var M,h=(M=f.avatarClusterSize)!=null?M:"AVATAR_SIZE_M";H=SNH(h);var y,m,W=Math.min((m=(y=f.avatars)==null?void 0:y.length)!=null?m:0,4),I;return{avatars:((I=f.avatars)==null?void 0:I.slice(0,4))||[],avatarSizeInPx:v,avatarStackStyle:{width:H+"px",height:H+"px",position:"relative"},avatarStyle:function(d){var Z=
hob({clusterSize:gHg(h),numAvatarsInCluster:W,avatarIndex:d});var l=SNH(h);W===3&&d===2?(l=(l-Z)/2,l=(_.a8("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*l):l=void 0;return{position:"absolute",top:W===2&&d===1||W===3&&d===2||W===4&&d>=2?"0":void 0,bottom:W===2&&d===0||W>2&&d<2?"0":void 0,left:W===2&&d===1||W>2&&(d===1||d===3)?"0":void 0,right:W<=3&&d===0||W===4&&(d===0||d===2)?"0":void 0,transform:l?"translateX("+l+"px)":void 0,width:Z+"px",height:Z+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(d){return{clusterSize:gHg(f.avatarClusterSize),numAvatarsInCluster:W,avatarIndex:d}},
avatarButtonCustomClassName:void 0}}var S;return{avatars:((S=f.avatars)==null?void 0:S.slice())||[],avatarSizeInPx:v,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:dfv(t),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
sob=function(f,H,v){return function(){e2(f,{form:{element:H},commandController:v})}};
ZxR=function(f){switch(f){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
JO5=function(f){switch(f){case "small":return"yt-thumbnail-overlay-badge-view-model-wiz--small";case "medium":return"yt-thumbnail-overlay-badge-view-model-wiz--medium";case "large":return"yt-thumbnail-overlay-badge-view-model-wiz--large";default:return"yt-thumbnail-overlay-badge-view-model-wiz--medium"}};
loR=function(f){if("accessibilityText"in f)return f.accessibilityText||"";if("title"in f){var H,v,t;return((H=f.title)==null?void 0:(v=H.accessibility)==null?void 0:(t=v.accessibilityData)==null?void 0:t.label)||""}if("accessibility"in f){var M,h;return((M=f.accessibility)==null?void 0:(h=M.accessibilityData)==null?void 0:h.label)||""}return""};
UfR=function(f){return"inlinePlayerData"in f};
Q4=function(f){return new eo_(f)};
LjE=function(f){return function(H){f&&(f.thumbnailElRef=H.thumbnailElRef,f.thumbnail=H.thumbnail,f.thumbnailOverlays=H.thumbnailOverlays,f.thumbnailSize=H.thumbnailSize)}};
xfs=function(f){switch(f){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
zoE=function(f){var H=_.V(_.gp(!1,void 0,"RIOonf")),v=H.next().value,t=H.next().value;_.Kc(function(){var M=f==null?void 0:f();if(M){var h=_.t8().resolve(_.vh(B0R));if(h){var y={triggeringElement:M,onDwellTriggeredFn:function(){t(!0)},
onDwellEndFn:function(){t(!1)}};
h.registerElement(y);_.Dt(function(){_.uF(h,y)})}}});
return v};
FjR=function(f,H,v){v?v(H):_.XA(H,f.target?{form:{element:f.target}}:void 0)};
_.as=function(f,H,v){return function(t){_.K4(function(){var M=new Map,h,y=(h=f())==null?void 0:h.onTap;y&&(h=function(m){a:{var W=m.composedPath();W=_.V(W);for(var I=W.next();!I.done;I=W.next()){I=I.value;if(I===t)break;if(I.className.indexOf("HostIsClickableAdComponent")>=0||I.tagName==="A".toString()||I.tagName==="BUTTON".toString()){W=!0;break a}}W=!1}W||FjR(m,y,H)},(v==null?0:v())||_.J("enable_web_home_top_landscape_image_layout_level_click")?(t.addEventListener("tap",h),M.set("tap",h)):(t.addEventListener("click",
h),M.set("click",h)));
_.Dt(function(){for(var m=_.V(M),W=m.next();!W.done;W=m.next()){var I=_.V(W.value);W=I.next().value;I=I.next().value;t.removeEventListener(W,I)}})},"NMyqj")}};
rOe=function(f,H){var v,t=(v=f.interaction)==null?void 0:v.onTap;if(f=_.NE({elementsCommand:t,forceNewState:!0,skipOnClick:!0}))return f.onclick=function(M){QUR(M)&&(M.preventDefault(),t&&FjR(M,t,H))},cK(f)?f:void 0};
Kjr=function(f){switch(f){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
Dfs=function(f){switch(f){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"}};
oHR=function(f){switch(f){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"}};
_.nHH=function(f){return _.J("rich_grid_enable_dynamic_offset")&&f?Math.max(Math.round((f-_.VQ("rich_grid_dynamic_offset_anchor_width",1300))/100*_.VQ("rich_grid_dynamic_offset_offset_per_100",10)),_.VQ("rich_grid_dynamic_offset_lower_bound",-60)):0};
p9H=function(f,H){switch(H){case 4:return 16;case 1:return f<528?16:f<1024?32:48;case 2:return(f>=528?16:8)/2;case 3:return(f<528?16:f<1024?32:48)+(f>=528?16:8)/2;default:return 0}};
QoT=function(f){var H=f.originalContainerWidth;var v=f.sizing;var t=f.standardUnit;if(f.isCompactList&&H<528)return 1;switch(v){case "STANDARD":return t;case "COMPACT":return t+1;case "EXTRA_COMPACT":return _.J("web_responsive_extra_compact_2x")?t*2:_.J("web_responsive_current")?t===1?2:t%2===0?t/2*3:t+2:t<4?t*2:Math.ceil(t*3/2);case "MINI":return t>1?t*2:3;default:return t}};
aoE=function(f){var H=f.containerWidth;var v=f.peek;var t=f.gutter;var M=f.numItems;f=f.ignoreMaxWidthLimit;H=v?Math.max((H-v-t*M)/M,0):Math.max((H-t*(M-1))/M,0);return f?H:Math.min(H,uke)};
_.GV=function(f){var H=f.containerWidth;var v=f.hasPeek;var t=f.sizing;var M=f.marginSettings;var h=f.isCompactList;var y=f.enableFullBleedForSingleCol;var m=f.standardUnitMinWidth;t=t||"STANDARD";v=!!v;f=H>=528?16:8;var W=v?H>=528?48:24:0;M=p9H(H,M);var I=Math.max(H-M*2,0);m=_.J("kevlar_disable_min_width_override")?void 0:m;m=Math.min(Math.max(Math.floor((I-W+f)/((m!=null?m:PcB)+_.nHH(H)+f)),1),6);var S=(y=!!y&&m===1)||m===1&&t!=="STANDARD";v=v||S?I:Math.min(I,(uke+f)*m-f);t=QoT({originalContainerWidth:H,
sizing:t,standardUnit:m,isCompactList:h});return{itemWidth:aoE({containerWidth:v,peek:W,gutter:f,numItems:t,ignoreMaxWidthLimit:S}),gutter:f,maxContainerWidth:v,numItems:t,margin:y?0:M,contentMargin:p9H(H,1),typographyBump:aoE({containerWidth:v,peek:W,gutter:f,numItems:m,ignoreMaxWidthLimit:S})>400&&!(h&&H<528),standardUnit:m}};
GTs=function(f){switch(f){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.Cce=function(f){if(f){var H;if((H=f.responsiveContainerConfiguration)==null?0:H.responsiveSize)return GTs(f.responsiveContainerConfiguration.responsiveSize);if(f.layoutSizing)switch(f.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"}}};
EHe=function(f){if(f.fullbleed)return 1;switch(f.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
AOT=function(f,H,v,t,M,h,y,m){a:if(f===4&&t==="LOCKUP_CONTENT_TYPE_SOURCE")var W=1;else switch(f){case 3:W=1;break a;default:W=0}a:switch(f){case 4:h=!!(h&&h<100);break a;default:h=!1}a:switch(f){case 3:case 4:var I=t==="LOCKUP_CONTENT_TYPE_CHANNEL"||t==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:I=!1}a:switch(f){case 5:var S=!0;break a;case 4:S=!1;break a;default:S=!1}return{isOverlay:S,isCard:N0s(t,y),sizing:H!=null?H:"STANDARD",typographyBump:v!=null?v:!1,isTiny:h,isCentered:I,isCollection:cO5(t),
arrangement:W,addMarginForFullbleed:f===1&&t!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:f===1&&t==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:X9E(t,M,m),disableRounding:f===5||N0s(t,y)||f===1&&t==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:cO5(t)?2:0,useLegacyTypography:!(m==null||!m.useLegacyTypography),useRichGridLegacyTypography:!(m==null||!m.useRichGridLegacyTypography)&&!_.J("web_enable_typography_bump"),compactMetadata:W===0&&t==="LOCKUP_CONTENT_TYPE_VIDEO"}};
cO5=function(f){switch(f){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return!0;default:return!1}};
N0s=function(f,H){if(H&&f==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(f){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
X9E=function(f,H,v){if(H&&(v==null||!v.alwaysRespectPodcastShowAspectRatio||f!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(f){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}};
bxs=function(f){switch(f){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"}};
ixB=function(f){switch(f){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}};
kTb=function(f){switch(f){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}};
_.CT=function(f){if(f){var H;return((H=_.t8().resolve(_.vh(_.TK)))==null?0:H())?f.darkThemeImage:f.image}};
qNR=function(f,H,v,t,M,h){if(M&&h&&H==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:M,height:h};if(!v)return{};M=v.size;v=v.allowFullWidth;if(H==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&v)return{fullWidth:!0};if(M===void 0)return{};switch(f){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:M,height:M};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:M,height:1/T0E*M};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:M*
w9R,height:M};default:return(t==null?0:t.height)&&(t==null?0:t.width)?t.width/t.height>1?{maxWidth:M*w9R}:{maxWidth:M}:{maxWidth:M}}};
f83=function(f){var H;return f&&((H=_.CT(f.themedImage))!=null?H:f.image)};
HFR=function(f){var H;return f==null?void 0:(H=f.sources)==null?void 0:H[0]};
vQ3=function(f){switch(f){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
_.t8e=function(f){if(f)return"content-id-"+f};
M85=function(f){switch(f.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"}}};
h6H=function(f){var H=_.E7.currentPageSubTypeSelector(_.fu().getState())||"";return f?f+H:""};
R6H=function(f){switch(f){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
yK3=function(f){var H=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],v=_.V(_.gp(void 0,void 0,"JrqNsb")),t=v.next().value,M=v.next().value,h=_.V(_.gp(void 0,void 0,"rWytse"));v=h.next().value;var y=h.next().value;h=_.V(_.gp(void 0,void 0,"DHRqxe"));var m=h.next().value,W=h.next().value;return{touchFeedbackEvents:{pointerUpEvent:t,pointerDownEvent:v,pointerLeaveEvent:m},touchFeedbackOnPointerUp:_.d6(function(I){V8s(_.Fs(I),H)||(M(I),y(void 0),W(void 0))}),
touchFeedbackOnPointerDown:_.d6(function(I){f==null||f(I);V8s(_.Fs(I),H)||(y(I),M(void 0),W(void 0))}),
touchFeedbackOnPointerLeave:_.d6(function(I){V8s(_.Fs(I),H)||(W(I),y(void 0),M(void 0))})}};
V8s=function(f,H){H=H===void 0?[]:H;H=[].concat(_.pS(H),["BUTTON".toString()]);f=_.V(f);for(var v=f.next();!v.done;v=f.next()){v=v.value;for(var t=_.V(H),M=t.next();!M.done;M=t.next())if(v.tagName===M.value)return!0}return!1};
YMH=function(f){switch(f){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"}};
m5R=function(f){return f.scrollHeight-f.offsetHeight>1};
$5B=function(f,H){var v;return k6(f,((v=f.content)==null?void 0:v.length)||0,!H)};
gQ5=function(f,H,v,t,M,h){if(!H||Wkg){var y;return k6(f,((y=f.content)==null?void 0:y.length)||0,!0)}H=t.value;if(!v.value||!H||!f.content)return f;v=0;t=f.content.length;y=0;OF3||(OF3=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var m=OF3;for(M=M*h*m;v<=t;)h=Math.floor(v+(t-v)/2),m=k6(f,h)||f,H.firstChild&&(H.firstChild.textContent=m.content),H.scrollHeight>M?t=h-1:(y=h,v=h+1);return k6(f,y)};
I8R=function(f,H){var v,t;return(((v=f.content)==null?void 0:v.length)||0)>(((t=H.content)==null?void 0:t.length)||0)};
SMs=function(f,H,v,t,M,h){var y=_.TN("truncated-text-content"),m=_.TN("truncated-text-content"),W=_.TN("button"),I=_.TN("button"),S=_.TN("button"),d=_.t8().resolve(_.qE),Z=_.V(_.sR(function(){return $5B(f(),M())})),l=Z.next().value,L=Z.next().value;
Z=_.V(_.sR(function(){return I8R(f(),l())}));
var r=Z.next().value,n=Z.next().value,Q=null;_.K4(function(){function C(){if(y.value&&W.value&&S.value){var A=h()?f():gQ5(f(),M(),y,m,H(),v());L(A);requestAnimationFrame(function(){if(y.value&&W.value&&S.value){var X=m5R(y.value)||I8R(f(),A);n(X);if(!t()){var fg=m5R(y.value),gB=v(),O5=y.value,s5=W.value,U5=S.value,lH=d==="rtl";if(O5&&s5){var E5=s5.offsetLeft;lH&&(E5=O5.offsetWidth-s5.offsetWidth-s5.offsetLeft);if(X){X=s5.offsetWidth;s5=O5.offsetWidth;var uH=fg?s5-X-70:E5-70;gB="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
gB+"rem,\n      #000 "+gB+"rem,\n      #000 100%), linear-gradient(\n      to "+((lH?"left":"right")+",\n      #000 0px,\n      #000 "+uH+"px,\n      transparent "+(fg?s5-X:uH+70)+"px)");O5.style.setProperty("-webkit-mask-image",gB);O5.style.setProperty("mask-image",gB)}else O5.style.setProperty("-webkit-mask-image",""),O5.style.setProperty("mask-image","");fg?lH?(U5.style.setProperty("left","0"),U5.style.setProperty("right","unset")):(U5.style.setProperty("left",""),U5.style.setProperty("right",
"0")):lH?(U5.style.setProperty("left","unset"),U5.style.setProperty("right",E5+"px")):(U5.style.setProperty("left",E5+"px"),U5.style.setProperty("right","unset"))}}}})}}
var w,c;(w=Q)==null||(c=w.stop)==null||c.call(w);w=new _.Nl(C,17);C();Q=w},"sZ7lhf");
_.Kc(function(){L($5B(f(),M()));n(I8R(f(),l()));var C=function(){OF3=void 0;var c,A;(c=Q)==null||(A=c.fire)==null||A.call(c)};
if(window.ResizeObserver){var w=new ResizeObserver(C);w.observe(y.value);_.Dt(function(){var c,A;(c=Q)==null||(A=c.stop)==null||A.call(c);w.disconnect()})}else window.addEventListener("resize",C),_.Dt(function(){var c,A;
(c=Q)==null||(A=c.stop)==null||A.call(c);window.removeEventListener("resize",C)})});
return{isTruncated:r,displayText:l,contentRef:y,hiddenRef:m,placeholderTruncationTextRef:W,hiddenTruncationTextRef:I,truncationTextRef:S}};
d55=function(f){return{content:f!=null?f:""}};
j7R=function(f){return _.GK(f.onTap)||_.KT(f.rendererContext)};
s7B=function(f){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:f.overflowMenuA11yLabel,onTap:function(H){H.preventDefault();H.stopPropagation();if(f.overflowMenuOnTap){var v=_.NE({elementsCommand:f.overflowMenuOnTap,forceNewState:!0});if(v==null?0:v.onclick)v.onclick(H)}}}};
_.cx=function(f,H,v,t,M){t=t===void 0?{}:t;if(!M||Math.random()<5E-4){H=H||null;v=v||null;f=f instanceof Error?f:new _.e$(f);if(f.args)for(var h=_.V(f.args),y=h.next();!y.done;y=h.next())y=y.value,y instanceof Object&&(t=Object.assign({},y,t));t.category="H5 Ads Control Flow";H&&(t.slot=H?"slot:  "+H.slotType:"");v&&(t.layout=v?"layout:  "+v.layoutType:"",t.layoutId=v.layoutId);M&&(t.known_error_aggressively_sampled=!0);f.args=[t];_.pb(f)}};
_.ZFg=function(f,H){_.mb(f,"yt-open-popup-action",[_.MS(H),f])};
_.Xs=function(f,H){_.ZFg(f,_.qO(H))};
l8g=function(f){if(!f)return"";if(JKR[f])return JKR[f];Aj||(Aj=_.lS("A"));Aj.href!==f&&AD(Aj,f);var H=Aj.pathname;JKR[f]=H.startsWith("/")?H:"/"+H;return JKR[f]};
U5R=function(){var f=l8g(window.location.href);if(f==="/")return"home";if(f.startsWith("/results"))return"search";if(f.startsWith("/watch"))return"watch";if(f.startsWith("/shorts"))return"shorts";if(f.startsWith("/hashtag"))return"hashtag";if(f.startsWith("/create_channel"))return"create_channel";if(f.startsWith("/@")||f.startsWith("/user/")||f.startsWith("/channel/"))return"channel";if(f.startsWith("/experiments"))return"experiments";if(f.startsWith("/sponsor_channel"))return"sponsorship";if(f.startsWith("/select_site"))return"settings";
if(f.startsWith("/locate"))return"locate";if(f.startsWith("/redeem"))return"redeem";if(f.startsWith("/musicpremium")||f.startsWith("/premium")||f.startsWith("/red"))return"premium";if(f.startsWith("/paid_memberships"))return"paid_memberships";if(f.startsWith("/oops"))return"oops";if(f.startsWith("/clip"))return"clip";var H;return(bF==null?void 0:(H=bF.response)==null?void 0:H.page)==="404"?"404":f.startsWith("/feed/history")?"history":f.startsWith("/feed/library")?"library":f.startsWith("/feed/subscriptions")?
"subscriptions":f.startsWith("/feed/trending")?"trending":f.startsWith("/feed/news_destination")?"news":f.startsWith("/playlist")?"playlist":f.startsWith("/minor_moment")?"minor_moment":f.startsWith("/playable/")||f.match("^/playables/(?!saved).")?"mini_app":f.startsWith("/playables")?"playables":f.startsWith("/create/live/join")?"open_in_app":f.startsWith("/feed/explore")?"explore":"browse"};
_.Bfv=function(){var f=bF==null?void 0:bF.response,H=f==null?void 0:f.endpoint;if(!H)return(f==null?void 0:f.page)==="watch"?"watch":U5R();var v;f=(v=_.U(H==null?void 0:H.commandMetadata,_.jG))==null?void 0:v.webPageType;v=!1;if(f&&!e6r.includes(f))switch(f){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 t;return((t=_.U(H==null?void 0:H.commandMetadata,_.jG))==null?0:t.url)&&l8g(_.U(H.commandMetadata,_.jG).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var M;return(H=(M=_.U(H,_.ec))==null?void 0:M.browseId)?Lk3[H]||"browse":"browse";default:v=!0}if(_.U(H,_.iF)||_.U(H,x5B))return"sponsorship";M=l8g(window.location.href);if(M.startsWith("/experiments"))return"experiments";if(M.startsWith("/create_channel"))return"create_channel";
if(_.U(H,_.X7)&&M.startsWith("/shorts"))return"shorts";if(_.U(H,_.X7)&&M.startsWith("/watch"))return"watch";v&&(H=new _.e$("Unsupported mWeb page type",{pathname:M,webPageType:f}),_.oO(H));return"browse"};
k$=function(f,H,v,t){return f&&H?f!==v||H!==t?(_.cx(Error("Ih"),void 0,void 0,{"stored-slot":f,"stored-layout":H,"latest-slot":v,"latest-layout":t}),!1):!0:!1};
FkR=function(f,H,v){return f({targetId:H},function(t){return v.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},t,{contents:[v.continuationItems?_.U(v.continuationItems[0],z65):{}]}):v.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},t,{header:v.continuationItems?v.continuationItems[0]:void 0}):Object.assign({},t,{contents:v.continuationItems?v.continuationItems:[]})})};
rKB=function(f,H,v,t){if(H=H.trackingParams){var M,h=(M=v.getScreenLayer)==null?void 0:M.call(v);v=_.uy(h);M=_.Qe(h);if(v&&M){var y=_.zK(H);_.J("combine_ve_grafts")?f.graftServerVe(H,M,h):_.Xl(v,M,y);t==null||t(y)}}};
D5E=function(f){var H;return((H=KkN.get(f))==null?void 0:H.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
pme=function(f,H){var v={type:H.slotType,controlFlowManagerLayer:oQv.get(H.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};H.slotEntryTrigger&&(v.entryTriggerType=H.slotEntryTrigger.triggerType);H.slotPhysicalPosition!==1&&(v.slotPhysicalPosition=H.slotPhysicalPosition);if(f){v.debugData={slotId:H.slotId};if(f=H.slotEntryTrigger)v.debugData.slotEntryTriggerData=nQ5(f);f=H.slotFulfillmentTriggers;v.debugData.fulfillmentTriggerData=[];f=_.V(f);for(var t=f.next();!t.done;t=f.next())v.debugData.fulfillmentTriggerData.push(nQ5(t.value));
H=H.slotExpirationTriggers;v.debugData.expirationTriggerData=[];H=_.V(H);for(f=H.next();!f.done;f=H.next())v.debugData.expirationTriggerData.push(nQ5(f.value))}return v};
nQ5=function(f,H){var v={type:f.triggerType};H!=null&&(v.category=H);f.triggeringSlotId!=null&&(v.triggerSourceData||(v.triggerSourceData={}),v.triggerSourceData.associatedSlotId=f.triggeringSlotId);f.triggeringLayoutId!=null&&(v.triggerSourceData||(v.triggerSourceData={}),v.triggerSourceData.associatedLayoutId=f.triggeringLayoutId);return v};
Q7v=function(f,H,v,t){H={opportunityType:H};f&&(t||v)&&(t=_.uh(t||[],function(M){return pme(f,M)}),H.debugData=Object.assign({},v&&v.length>0?{associatedSlotId:v}:{},t.length>0?{slots:t}:{}));
return H};
uSg=function(f){return TV(f.opportunityAdapterMap).concat(TV(f.triggerAdapterMap)).concat(TV(f.fulfillmentAdapterFactoryMap)).concat(TV(f.slotAdapterFactoryMap)).concat(TV(f.layoutRenderingAdapterFactoryMap))};
TV=function(f){var H=[];f=_.V(f.values());for(var v=f.next();!v.done;v=f.next())v=v.value,v.isAdsControlFlowEventListener&&H.push(v);return H};
ql=function(f){var H=f.slotId,v=f.slotType,t=f.slotPhysicalPosition;return H===void 0?new w3("Cannot construct a slot due to the missing id.",{adSlotMetadata:f}):v===void 0?new w3("Cannot construct a slot due to the missing type.",{adSlotMetadata:f}):t===void 0?new w3("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:f}):{slotId:H,slotType:v,slotPhysicalPosition:t,managerLayer:"external",adSlotLoggingData:f.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new a8v}};
P6s=function(f){var H=f.layoutId,v=f.layoutType;return H===void 0?new fp("Cannot construct a layout due to the missing id.",{adLayoutMetadata:f}):v===void 0?new fp("Cannot construct a layout due to the missing type.",{adLayoutMetadata:f}):{layoutId:H,layoutType:v,managerLayer:"external",adLayoutLoggingData:f.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new a8v,interactionLoggingAdsClientData:{}}};
Gpb=function(f){if(f.querySelector("img")){var H=f.querySelector("img");H.addEventListener("error",function(){eNg(H.src).then(function(v){(v=_.E4(v).toString())?H.src=v:H.removeAttribute("src")}).catch(function(){H.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
vs=function(f,H){if(H&&(C6E(H.viewableCommand)||C6E(H.endOfSessionCommand))){var v=EQT(H==null?void 0:H.viewableCommand);H=EQT(H==null?void 0:H.endOfSessionCommand);if(!Hs){var t=_.VQ("custom_active_view_tos_timeout_ms");Hs=t>0&&t!==36E5?new NfN(cKT(),t):new NfN(cKT())}Xmg(Hs,f);AKB(Hs,f,v,H)}};
tY=function(f){Hs&&Xmg(Hs,f)};
cKT=function(){var f=_.a8("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(f==null?void 0:f.length)===2?f[1]:null};
C6E=function(f){f=_.GK(f);return!(f==null||!f.loggingUrls)&&f.loggingUrls.length>0};
EQT=function(f){if(!f)return[];var H=[],v,t;((t=(v=_.GK(f))==null?void 0:v.loggingUrls)!=null?t:[]).forEach(function(M){M.baseUrl&&H.push(M.baseUrl)});
return H};
bFR=function(f){if(_.J("stop_av_measurement_on_detach"))return function(){tY(f)}};
iFE=function(f){return function(){_.J("stop_av_measurement_on_detach")&&tY(f)}};
kpr=function(f){if(_.J("stop_av_measurement_on_detach"))return function(){tY(f)}};
Tf3=function(f){return f.shorts.isDesktopSmallWidth};
_.wmB=function(f){return f.shorts.isShortsActive};
_.qMT=function(f){return f.shorts.isWatchWhileMode};
_.Mi=function(f){return f.shorts.isFullscreen};
_.hY=function(f){return f.shorts.isShortsPipActive};
HHb=function(f){var H,v;if(f=(H=_.U(f.reelsAdCardButtoned,fdb))==null?void 0:(v=H.animatedRenderingConfig)==null?void 0:v.easeOutSeconds)return f+"s"};
tMe=function(f,H,v){return _.Y(function(t){return t.return(new Promise(function(M){var h=new Image;h.onload=function(){M(new vt3(f,H,v,h.naturalWidth,h.naturalHeight))};
h.src=v.toString()}))})};
MMB=function(f,H){return Math.round(f/1E-5)===Math.round(H/1E-5)};
hEs=function(f,H){return Math.round(f/1E-5)===Math.round(H/1E-5)};
REN=function(f,H){return f.year===H.year&&f.month===H.month&&f.day===H.day};
VMH=function(f,H){return f.year!==H.year?f.year<H.year:f.month!==H.month?f.month<H.month:f.day<H.day};
YrB=function(f){return f.day===yCe(f.year,f.month)?f.month===11?{year:f.year+1,month:0,day:1}:{year:f.year,month:f.month+1,day:1}:{year:f.year,month:f.month,day:f.day+1}};
mH_=function(){var f=new Date,H={year:f.getFullYear(),month:f.getMonth(),day:f.getDate()};return{start:H,end:{year:f.getFullYear()+2,month:f.getMonth(),day:f.getDate()},selectedDate:YrB(H)}};
$Hg=function(f){return(new TZ(2)).format(new Date(f.year,f.month,f.day))};
Ww_=function(f){return{year:f.getFullYear(),month:f.getMonth(),day:f.getDate()}};
OH5=function(f,H){f=(f+(Number(H.utcOffsetSec)+(new Date(f*1E3)).getTimezoneOffset()*60))*1E3;H=Ww_(new Date(f));return{date:H,secondsSinceMidnight:Math.floor((f-(new Date(H.year,H.month,H.day)).getTime())/1E3)}};
gtR=function(f,H){H=H.months.findIndex(function(v){return v.year===f.year&&v.month===f.month});
return H>=0?H:void 0};
Idv=function(f){if(!f)return!1;try{if(f.host&&f.host.tagName==="YT-FORMATTED-STRING"&&f.host.id==="contenteditable-textarea"||f.nodeType===Node.ELEMENT_NODE&&f.tagName==="YTD-COMMENTBOX")return!0}catch(H){return!1}return Idv(f.parentNode)};
Rc=function(f){return f?!(f.tagName!=="A"||!f.href||!f.classList.contains("yt-simple-endpoint")):!1};
Srs=function(f){return f?f.tagName==="IMG"&&f.classList.contains("emoji"):!1};
dHR=function(f,H,v){if(!f)return null;var t=Rc(f);if(t&&v)return H=f.pathname.substring(f.pathname.indexOf("/channel/")+9),document.createTextNode("@"+H);if(t&&!v)return document.createTextNode("");if(Srs(f))return v=f.alt,f=f.dataset.emojiId,!f&&H&&(H=_.Vp(H,v))&&H.isCustomEmoji&&(f=H.emojiId),f?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+f+">"):document.createTextNode(v);t=f.cloneNode(!1);for(var M=0;M<f.childNodes.length;++M){var h=dHR(f.childNodes[M],H,v);h&&t.appendChild(h)}return t};
yp=function(f){return f?Rc(f)?f:yp(f.lastChild):null};
jDv=function(f){return f?Rc(f)?f:jDv(f.firstChild):null};
sDN=function(f){if(!f)return null;for(var H=f.previousSibling;H;)if(H.nodeType===Node.ELEMENT_NODE&&H.nodeName==="BR")H=H.previousSibling;else if(H.nodeType===Node.TEXT_NODE&&/\s+/.test(H.textContent))H=H.previousSibling;else break;(H=yp(H))?f=H:f=(f=f.parentNode)?yp(f.previousElementSibling):null;return f};
ZHb=function(f){if(!f)return null;for(var H=f.nextSibling;H;)if(H.nodeType===Node.ELEMENT_NODE&&H.nodeName==="BR")H=H.nextSibling;else if(H.nodeType===Node.TEXT_NODE&&/\s+/.test(H.textContent))H=H.nextSibling;else break;return(H=jDv(H))?H:ZHb(f.parentNode)};
JCe=function(f){var H=_.Yd(),v=H.JSC$11327_getStartNode();if(!Idv(v.parentNode))return null;H=H.JSC$11327_getStartOffset();if(v.nodeType===Node.TEXT_NODE){var t=_.EZ(v,Rc);if(t){if(f&&H===0||!f&&H===v.length)return t}else{if(f&&H===v.length)return!v||v.nodeName==="BR"||v.nextElementSibling&&_.m2(v.nextElementSibling,"display")==="block"?null:jDv(v.nextElementSibling);if(!f&&H===0)return v?yp(v.previousElementSibling):null}}if(v.nodeType===Node.ELEMENT_NODE)if(f){if(0<=H&&H<v.childNodes.length)return jDv(v.childNodes[H])}else if(0<
H&&H<=v.childNodes.length)return yp(v.childNodes[H-1]);return null};
ldb=function(f,H,v){if(!f)return null;if(f.nodeType===Node.TEXT_NODE)if(v){var t=sDN(f);if(t&&!/^\s+\S/.test(f.wholeText.substr(0,H)))return t}else if((t=ZHb(f))&&!/\S\s+/.test(f.wholeText.substr(H,f.wholeText.length)))return t;return f.nodeType===Node.ELEMENT_NODE?v?sDN(f.childNodes[H]):ZHb(f.childNodes[H]):ldb(f.parentNode,H,v)};
UHT=function(f){if(f.hasChildNodes())switch(f.tagName){case "DIV":case "A":case "SPAN":var H="";for(f=f.firstChild;f;f=f.nextSibling)H+=UHT(f);return H;default:return""}else switch(f.nodeType){case 3:return f.textContent;default:return""}};
$d=function(f,H){return f.year===H.year&&f.month===H.month&&f.day===H.day};
Ws=function(f,H){return f.year!==H.year?f.year<H.year:f.month!==H.month?f.month<H.month:f.day<H.day};
eEr=function(f){return{year:f.getFullYear(),month:f.getMonth(),day:f.getDate()}};
LwR=function(f){var H=UBb;H=H===void 0?UBb:H;H(new Date(f.year,f.month,f.day))};
Ow=function(f){return eEr(new Date(Number(f.seconds)*1E3))};
xHT=function(f){return f.year!==void 0&&f.month!==void 0&&f.day!==void 0};
BNb=function(f){return f.start!==void 0&&f.end!==void 0};
zEb=function(f){return BNb(f)?f.start:f};
FwE=function(f){return BNb(f)?f.end:void 0};
Kw5=function(f,H){for(var v=[],t=new Date(f.start.year,f.start.month);t.getFullYear()<f.end.year||t.getFullYear()===f.end.year&&t.getMonth()<=f.end.month;){var M=v,h=M.push,y=t.getFullYear(),m=t.getMonth(),W=f,I=H,S=void 0,d=[],Z=Object.freeze({extraCssClass:"invisible"}),l=new Date(y,m),L=eEr(l);l=l.getDay();for(var r=eEr(new Date);L.month===m;){l!==rCs&&S||(S=Array.from({length:7}).fill(Z),d.push(S));var n={date:{year:y,month:m,day:L.day},extraCssClass:"",debugClass:""};n.extraCssClass=I(n.date,
L,r,W).trim();S[(l-rCs+7)%7]=n;L=L.day===yCe(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};l=(l+1)%7}h.call(M,{weeks:d,monthLabel:gy.SHORTMONTHS[m]+" "+y,year:y,month:m,monthLabelExtraCssClass:d[0][2]===Z?"shift-down-label":""});t.setMonth(t.getMonth()+1)}return v};
DHg=function(f,H){H=H.months.findIndex(function(v){return v.year===f.year&&v.month===f.month});
return H>=0?H:void 0};
ntv=function(f,H){a:{var v=v===void 0?[2,3]:v;v=_.V(v);for(var t=v.next();!t.done;t=v.next()){var M=new Date;if((new otg(t.value)).parse(H,M,{validate:!0})){M.setHours(0,0,0,0);H=M;break a}}H=null}if(!H)return{isValid:!1,value:void 0};H=eEr(H);v=f.end;return Ws(H,f.start)||Ws(v,H)?{isValid:!1,value:void 0}:{isValid:!0,value:H}};
P1H=function(f){var H=pze;H=H===void 0?QDs:H;var v=f.columnsToShow||[],t=uhe(f.columnDimensions,f.columnsToShow,f.leftFloatingColumns,H);return v.map(function(M,h){var y=f.columns[M];if(y===void 0)throw Error("Oh");var m=t?t[h]:"";var W=f.getCustomTooltip?f.getCustomTooltip(M,y.headerTooltipParagraphs):y.headerTooltipParagraphs;var I=ad_(f,M);return{type:M,index:h,style:m,classes:I,headerName:y.headerName||"",headerIcon:y.headerIcon,headerTooltipParagraphs:W||[],headerTooltipHelpContext:y.headerTooltipHelpContext,
sortOrders:y.sortOrders||[],selectionState:y.isSelectionCheckbox?f.selectionState:void 0}})};
ad_=function(f,H){var v=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],t=f.columns[H];if(t===void 0)return"";var M=v.includes("DEFAULTS")&&t.cssClass?[t.cssClass]:[];if(v.includes("SORTING")){t.sortOrders&&t.sortOrders.length&&M.push("sortable");if(f.sorting&&f.sorting.columnType===H)a:switch(f.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var h="column-sorted";break a;default:h=""}else h="";h&&M.push(h)}v.includes("FLOATING")&&(H=f.columnsToShow.indexOf(H),f.leftFloatingColumns&&H<f.leftFloatingColumns&&
M.push("floating-column"),f.leftFloatingColumns&&H===f.leftFloatingColumns-1&&M.push("last-floating-column"));v.includes("RIGHT_ALIGN")&&t.rightAlignHeader&&M.push("right-align");return M.filter(function(y){return y}).join(" ")};
uhe=function(f,H,v,t){v=v===void 0?0:v;t=t===void 0?QDs:t;if(f){var M=[],h=0;Gn5(f,H,t).forEach(function(y,m){var W="min-width:"+y.minWidth+"px;padding-left:"+y.paddingLeft+"px;padding-right:"+y.paddingRight+"px;flex:"+y.flexGrow+" 0 "+y.minWidth+"px;";y.maxWidth!==Infinity&&(W=[W,"max-width:"+y.maxWidth+"px;"].join(""));h>0&&m<v&&(W=[W,"left:"+h+"px;"].join(""));M.push(W);h+=y.minWidth+y.paddingLeft+y.paddingRight});
return M}};
Gn5=function(f,H,v){v=v===void 0?QDs:v;return H.map(function(t,M){t=f&&f[t]||{};var h=M===0?v.paddingLeftFirstColumn:v.padding;t.paddingLeft!==void 0&&(h=t.paddingLeft);M=M===H.length-1?v.paddingRightLastColumn:v.padding;t.paddingRight!==void 0&&(M=t.paddingRight);return{paddingLeft:h,paddingRight:M,minWidth:t.minWidth!==void 0?t.minWidth:v.minWidth,maxWidth:t.maxWidth!==void 0?t.maxWidth:v.maxWidth,flexGrow:t.flexGrow!==void 0?t.flexGrow:v.flexGrow}})};
C1R=function(f){var H=f.reduce(function(t,M){var h=M.columnId,y={};M.headerText&&(y.headerName=_.fG(M.headerText));M.rightAlignHeader&&(y.rightAlignHeader=M.rightAlignHeader);var m;if((m=M.headerIcon)==null?0:m.iconType)y.headerIcon=_.SW(M.headerIcon.iconType);t[h]=y;return t},{}),v=f.filter(function(t){return!t.hideColumn}).map(function(t){return t.columnId});
f=f.filter(function(t){return!!t.dimensions}).reduce(function(t,M){t[M.columnId]=M.dimensions;
return t},{});
return{columns:H,columnsToShow:v,columnDimensions:f}};
_.EtR=function(f){return f?f.simpleText?f.simpleText:f.runs?f.runs.map(function(H){return H.text}).join(""):"":""};
bHN=function(f){var H=f.data;var v=f.onTap;var t=f.isSelected;var M=f.onFocusIn;if(!H)return{};f=NN5(H);t===void 0&&(t=H==null?void 0:H.isSelected);var h;return{text:cCs(H,f),startIcon:(h=H.icon)==null?void 0:h.iconType,state:t?0:2,type:0,onTap:Xze(H,v),accessibilityLabel:ACE(H,f),onFocusIn:function(){return M==null?void 0:M()}}};
cCs=function(f,H){if(!H)return f.text?_.EtR(f.text):void 0};
Xze=function(f,H){return function(v){H==null||H(v,f)}};
NN5=function(f){f=f.style&&f.style.styleType;return!Wkg&&f==="STYLE_EXPLORE_LAUNCHER_CHIP"};
ACE=function(f,H){if(H){var v,t,M;return(M=(v=f.accessibilityData)==null?void 0:(t=v.accessibilityData)==null?void 0:t.label)!=null?M:cCs(f,!1)}};
Ic=function(f){return{signalAction:{signal:f}}};
TN3=function(){return _.a8("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?iHN:_.knB};
wzB=function(f,H){f=f===void 0?"SOFT_RELOAD_PAGE":f;H=H===void 0?49504:H;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.hd(_.ZC("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:H}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:f}}]}}}};
qr5=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.hd(_.ZC("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:TN3()}};
fWT=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.hd(_.ZC("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:TN3()}};
HCv=function(f,H){var v=_.hd(_.ZC("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),t=_.hd(_.ZC("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),M={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.hd(_.ZC("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};M.serviceEndpoint=f?f:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[Ic("SOFT_RELOAD_PAGE")]}};return{title:v,bodyText:t,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:M},
style:{value:H!=null?H:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
twT=function(f){f=f===void 0?{}:f;return{title:_.hd(f.localizedZeroStateTitleText===void 0?"":f.localizedZeroStateTitleText),bodyText:_.hd(f.localizedZeroStateMessage===void 0?"":f.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.hd(f.localizedZeroStateButtonText===void 0?"":f.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[vYR]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
hG5=function(f){f=f===void 0?{}:f;return{title:_.hd(f.localizedOptInBannerTitleText===void 0?"":f.localizedOptInBannerTitleText),titleLength:19,subtitle:_.hd(f.localizedOptInMessage===void 0?"":f.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.hd(_.ZC("DISMISS",void 0,"Dismiss")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED",boolValue:!0}},
loggingDirectives:{clientVeSpec:{uiType:127984}}}},secondaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.hd(_.ZC("TURN_ON",void 0,"Turn on")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[Mwe]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
yws=function(f,H){var v=H=H===void 0?{}:H;H=v.offlineTitleText===void 0?"":v.offlineTitleText;var t=v.offlineDescriptionText===void 0?"":v.offlineDescriptionText,M=v.formattedSupplementalText,h=v.actionButtonText===void 0?"":v.actionButtonText,y=v.titleText===void 0?"":v.titleText;v=v.descriptionText===void 0?"":v.descriptionText;var m={title:h,accessibilityText:h,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{urlEndpoint:{url:"https://www.youtube.com/premium"},commandMetadata:{webCommandMetadata:{url:"https://www.youtube.com/premium",webPageType:"WEB_PAGE_TYPE_PROMO"}}}}};f||(y=H,v=t,m={title:h,accessibilityText:h,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:_.hd(y),
titleLength:y.length,overrideTitleMaxFontSize:30,subtitle:_.hd(v),supplementalText:M,primaryButton:{buttonViewModel:m},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[RGE]},darkTileImage:{thumbnails:[VwT]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.$D_=function(f,H,v,t,M,h,y,m,W,I,S){M=M===void 0?!1:M;h=h===void 0?!1:h;y=y===void 0?0:y;m=m===void 0?-Infinity:m;W=W===void 0?!1:W;I=I===void 0?!1:I;S=S===void 0?!1:S;var d=[],Z=_.hd(_.ZC("SMART_DOWNLOADS",void 0,"Smart downloads")),l=_.hd(YYB(y,m,f.length));m=y=void 0;I?y={statementBannerRenderer:yws(S,t)}:M?f.length>0?m=mDe(f,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.J("kevlar_manual_downloads_above"),Z,l):W?m={alertBannerViewModel:{heading:{content:v.localizedOptInBannerTitleText===
void 0?"":v.localizedOptInBannerTitleText},body:{content:v.localizedPromptMessage===void 0?"":v.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.ZC("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.ZC("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:129730}},
onTap:{innertubeCommand:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",entityKey:_.QXs}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:h&&(m={backgroundPromoRenderer:{bodyText:_.hd(_.ZC("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/grey_loading_spinner.gif"}]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"}}}):
h&&(m={alertBannerViewModel:{heading:{content:v.localizedOptInBannerTitleText===void 0?"":v.localizedOptInBannerTitleText},body:{content:v.localizedOptInMessage===void 0?"":v.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.ZC("TURN_ON",void 0,"Turn on"),accessibilityText:_.ZC("TURN_ON",void 0,"Turn on"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:127983}},onTap:{innertubeCommand:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!0}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:127982}}}}}});v=_.hd(_.ZC("YOUR_DOWNLOADS",void 0,"Your downloads"));t=void 0;H.length>0?(t=void 0,_.J("kevlar_display_downloads_numbers")&&(t=_.hd(_.JX("VIDEO_COUNT",H.length))),t=mDe(H,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,v,t)):M||f.length||
I||(t={backgroundPromoRenderer:{bodyText:_.hd(_.ZC("VIDEOS_WILL_APPEAR_HERE",void 0,"Videos you download will appear here")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/downloads_empty_state.png"}]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:120848}}}});y?d.push({richSectionRenderer:{content:y}}):m&&!_.J("kevlar_manual_downloads_above")&&d.push({richSectionRenderer:{content:m,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
t&&d.push({richSectionRenderer:{content:t,loggingDirectives:{clientVeSpec:{uiType:51721}}}});m&&_.J("kevlar_manual_downloads_above")&&d.push({richSectionRenderer:{content:m,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(H.length>0||M&&f.length>0&&!I)&&d.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.hd(_.ZC("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}},
loggingDirectives:{clientVeSpec:{uiType:133683}}}}}});return{contents:d}};
_.OCT=function(f){return WXe(f,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.gYR=function(f){return WXe(f,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
WXe=function(f,H){var v=[];f=mDe(f,H,!0);v.push({richSectionRenderer:{content:f}});return{contents:v}};
mDe=function(f,H,v,t,M){v=v===void 0?!1:v;var h="RESPONSIVE_SIZE_STANDARD";_.J("kevlar_modern_downloads_compact")?h="RESPONSIVE_SIZE_COMPACT":_.J("kevlar_modern_downloads_extra_compact")&&(h="RESPONSIVE_SIZE_EXTRA_COMPACT");f={isExpanded:v,contents:SO(f),entitySelectorType:H,responsiveContainerConfiguration:{responsiveSize:h}};t&&(f.title=t);M&&(f.subtitle=M);v||(_.J("kevlar_smart_downloads_show_more_button")?(f.showMoreButton={buttonRenderer:{accessibility:{label:_.ZC("SHOW_MORE",void 0,"Show more")},
icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.hd(_.ZC("SHOW_MORE",void 0,"Show more"))}},f.showLessButton={buttonRenderer:{accessibility:{label:_.ZC("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.hd(_.ZC("SHOW_LESS",void 0,"Show less"))}}):(f.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.ZC("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,
"Previous"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:11760}}}},f.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.ZC("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:11760}}}},f.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.ZC("VIEW_ALL",void 0,"View all"),accessibilityText:_.ZC("VIEW_ALL",void 0,"View all"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:242898}},onTap:{innertubeCommand:_.td("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:f}};
SO=function(f){var H=[];f=_.V(f);for(var v=f.next();!v.done;v=f.next())if(v=v.value,sX5(v)){var t=H,M=t.push;var h=void 0;if(v==null?0:(h=v.videoEntity)==null?0:h.videoId){h=ca(_.vS().getState(),v.videoEntity.videoId);var y=_.vS().getState();var m=_.SB(v.videoEntity.videoId,"mainVideoEntity");y=!!_.KY(y.entities)[m];y={videoId:v.videoEntity.videoId,title:R5(v.videoEntity.title),shortBylineText:R5(v.channelEntity.title),thumbnail:v.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:y&&_.J("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:kAB(v.videoEntity.videoId,h,v.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.ZC("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};v.videoEntity.lengthSeconds&&(y.thumbnailOverlays=sMv(v.videoEntity.lengthSeconds,h));y.isWatched=h>0;_.J("kevlar_modern_downloads_page")&&(y.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:v.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.ZC("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},y.badges=void 0);v=y}else v={};M.call(t,{richItemRenderer:{content:{videoRenderer:v},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(jX3(v)){t=H;M=t.push;var W=m=h=void 0,I=void 0,S=void 0,d=void 0,Z=void 0,l=void 0,L=void 0,r=void 0,n=void 0,Q=void 0;y=v.mainPlaylistEntity.playlistId;var C=v==null?void 0:(Q=v.mainPlaylistEntity)==null?void 0:(n=Q.thumbnailStyleData)==null?void 0:(r=n[0])==null?void 0:(L=r.value)==null?void 0:(l=L.collageThumbnail)==
null?void 0:l.coverThumbnail;if(y&&C){l=TS5(y);!_.J("enable_offline_playlist_page")&&(v==null?0:(Z=v.mainPlaylistEntity)==null?0:Z.videos)&&(Z=v==null?void 0:(d=v.mainPlaylistEntity)==null?void 0:(S=d.videos)==null?void 0:S[0],S=_.OF(Z).entityId,S=JSON.parse(S).videoId,S!==void 0&&(d=ca(_.vS().getState(),S),l=_.MO(S,y,void 0,void 0,d)));S=[];if(v==null?0:(I=v.mainPlaylistEntity)==null?0:(W=I.videos)==null?0:W.length)S=[l5E(),Object.assign({},(m=JpE(v==null?void 0:v.mainPlaylistEntity.videos.length))!=
null?m:{})];v={playlistId:y,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:C}},navigationEndpoint:l,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:S,title:R5(v.mainPlaylistEntity.title),shortBylineText:R5(v==null?void 0:(h=v.channelEntity)==null?void 0:h.title),badges:[{metadataBadgeRenderer:{label:_.ZC("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.J("kevlar_modern_downloads_page")&&(v.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:IW_,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:y,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.ZC("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},v.badges=void 0)}else v=void 0;M.call(t,{richItemRenderer:{content:{playlistRenderer:v},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return H};
YYB=function(f,H,v){f=f?SY5(f):"";H!==void 0&&isFinite(H)?H===0?H=_.ZC("UPDATING",void 0,"Updating..."):(H=jMe(new Date(H),new Date),H=_.ZC("UPDATED_TIME",{relative_time:H},"Updated "+H)):H="";var t="";f&&H&&(t=" \u2022 ");if(v&&_.J("kevlar_display_downloads_numbers")){v=_.JX("VIDEO_COUNT",v);if(f||H)t=" \u2022 ";return v+t+f+t+H}return f+t+H};
dDb=function(f){return mIb(f.entities).length};
_.jCe=function(f,H){var v=GTs(f.responsiveSize),t;f=!((t=f.responsiveMap)==null||!t.some(function(M){return M.containerSize==="CONTAINER_SIZE_NARROW"&&M.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:H,sizing:v,enableFullBleedForSingleCol:!1,isCompactList:v==="COMPACT"&&f}};
sCe=function(f,H){return _.dL(f.entities,"votingEntity",H)};
dy=function(f){if(f){var H;return((H=_.t8().resolve(_.vh(_.TK)))==null?0:H())?f.darkTheme:f.lightTheme}};
ZC5=function(f,H){if(f.simpleText)return Object.assign({},f,{simpleText:bV(f.simpleText,H)});if(!f.runs)return f;for(var v=Object.assign({},f,{runs:[]}),t=0,M=_.V(f.runs),h=M.next();!h.done;h=M.next())if(h=h.value,h.text)if(t+h.text.length<=H)v.runs.push(h),t+=h.text.length;else return v.runs.push(Object.assign({},h,{text:bV(h.text,H-t)})),v;return f};
Jwr=function(f,H){return _.dL(f.entities,"chipBarStateEntity",H)};
lWg=function(f,H){return _.dL(f.entities,"chipEntity",H)};
eGH=function(f,H,v,t){return function(){var M=UDv.has(f.displayType)&&f.selected,h=M&&f.deselectCommand?f.deselectCommand:f.tapCommand;!h||M&&t||_.XA(h,{form:{element:H==null?void 0:H.value}});v==null||v()}};
LXB=function(f){switch(f){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""}};
xDR=function(f,H){return{triggeringElement:f,onDwellTriggeredFn:function(){var v={triggeringElement:f,loadVideoPreviewEventData:H},t=document.querySelector(".video-preview");t&&t.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:v}))},
onDwellEndFn:function(){var v=document.querySelector(".video-preview");v&&v.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
BxE=function(f,H){var v=_.t8().resolve(_.vh(B0R)),t=function(){var M=H();return v&&M?xDR(f.value,M):null};
_.K4(function(){var M=t();v&&M&&Promise.resolve().then(function(){v.registerElement(M)});
_.Dt(function(){v&&M&&Promise.resolve().then(function(){_.uF(v,M)})})},"csPUge")};
FXv=function(f){var H=f.dataset.resizeObserverId;if(H)return H;H=""+zGR++;return f.dataset.resizeObserverId=H};
rw3=function(f,H){var v=FXv(f);jO.has(v)||jO.set(v,new Set);jO.get(v).add(H);sw.has(v)&&H(Object.assign({},{target:f},sw.get(v)))};
KXR=function(f){f=_.V(f);for(var H=f.next();!H.done;H=f.next()){H=H.value;var v=FXv(H.target),t=Object.assign({},{target:H.target},sw.get(v));if(t!=null&&t.contentRect?t.contentRect.width!==H.contentRect.width||t.contentRect.height!==H.contentRect.height:1)for(sw.set(v,{borderBoxSize:H.borderBoxSize,contentBoxSize:H.contentBoxSize,contentRect:H.contentRect,devicePixelContentBoxSize:H.devicePixelContentBoxSize}),v=_.V(jO.get(v)||[]),t=v.next();!t.done;t=v.next())t=t.value,t(H)}};
oYT=function(){return Z4?Z4:Z4=new DDR(KXR)};
nY3=function(f,H){var v=FXv(f);jO.has(v)&&(jO.get(v).delete(H),jO.get(v).size===0&&(jO.delete(v),sw.delete(v),Z4.unobserve(f),delete f.dataset.resizeObserverId));jO.size===0&&Z4&&(Z4.disconnect(),Z4=void 0)};
QCr=function(f,H){var v=_.t8().resolve(tM);return pFN.map(function(t){return v.observe(f,H,t)})};
u5g=function(f){var H=_.t8().resolve(tM);f.forEach(function(v){H.unobserveByKey(v)})};
_.GR3=function(f,H){var v=Object.assign({},aWB,H);H=_.V(U$E());var t=H.next().value,M=H.next().value,h=function(y){var m=y.contentRect.height;if((y=y.contentRect.width)||m||v.canHaveZeroSize)t.width()===y&&t.height()===m||M(t,{height:m,width:y})};
_.Kc(function(){var y=f instanceof HTMLElement?f:f.value,m=P_N(h,v.throttleMs),W=[];v.useVisibilityObserver&&(W=QCr(y,function(I,S){requestAnimationFrame(function(){S==="visible"?(rw3(y,m),oYT().observe(y)):nY3(y,m)})}));
W.length||(rw3(y,m),oYT().observe(y));_.Dt(function(){W.length&&(u5g(W),W.length=0);nY3(y,m)})});
return t};
EY_=function(f,H,v,t,M){f=H?f.switchOffCommand:f.switchOnCommand;if(t&&M)C__(f,v,M);else{var h,y;(h=_.NE({elementsCommand:f}))==null||(y=h.onclick)==null||y.call(h,v)}};
C__=function(f,H,v){f=_.NE({elementsCommand:f,additionalCommandArgs:{commandController:{onSuccess:function(){v(!1)},
onServerError:function(){v(!1)}}}});
if(f==null?0:f.onclick)f.onclick(H),v(!0)};
cwR=function(f){if(f)return _.U(f,NxH)};
XFg=function(f,H){if(!((H==null?0:H.entitySelectorType)&&(H==null?0:H.entityKey)))return{};switch(H.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":return f=_.Pn(f,H.entityKey),f=f==null?void 0:f.value,H=!1,f==="CAPTIONS_UNAVAILABLE"&&(H=!0,f=""),Object.assign({},!!f&&{selectionText:{content:f}},!!f&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:H});case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":return _.J("web_shorts_audio_track_picker")?
(f=_.Pn(f,H.entityKey),f=f==null?void 0:f.value,H=!1,f==="ALTERNATE_AUDIO_TRACK_UNAVAILABLE"&&(H=!0,f=""),Object.assign({},!H&&!!f&&{selectionText:{content:f}},!H&&!!f&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}},{isDisabled:H})):{};default:return{}}};
Txg=function(f,H,v){if(H)return[AwE];switch(f){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[JY];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return v?[JY]:[bCr,JY];case "TRANSFER_STATE_PAUSED_BY_USER":return[iCB,JY];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[kRs,JY];default:return[AwE]}};
wFR=function(f,H,v,t){return Txg(f,H,t).map(function(M){var h=M.text,y=M.iconType,m=M.videoAction;M=M.playlistAction;h=h?{content:h}:void 0;y=y&&{sources:[{clientResource:{imageName:y}}]};var W=(0,_.QA.unsafeClone)(v);if(W){var I=_.U(W,_.Sf),S=_.U(W,_.d3);I&&m?I.action=m:S&&M&&(S.action=M)}return{title:h,leadingImage:y,rendererContext:W&&{commandContext:{onTap:{innertubeCommand:W}}}}})};
qYs=function(f){f=_.KT(f.rendererContext);var H;return(H=_.U(f,_.d3))==null?void 0:H.playlistId};
fXv=function(f){var H;return(H=f.listItems)==null?void 0:H.some(function(v){var t;return _.DO((t=_.U(v,_.ef))==null?void 0:t.rendererContext)})};
tt5=function(f){var H;return(H=f.listItems)==null?void 0:H.some(function(v){var t,M,h=(M=(t=_.U(v,Hwb))==null?void 0:t.defaultListItem)!=null?M:v;v=_.U(h,_.ef);return!!_.U(v==null?void 0:v.leadingAccessory,vBv)})};
Rte=function(f){var H=f.element;var v=f.veType;var t=f.storedVisualElement===void 0?null:f.storedVisualElement;var M=f.elementIndex===void 0?0:f.elementIndex;f=f.clientYouTubeData;var h=_.uy();h!==Mt_&&(htN.clear(),Mt_=h);if(H.visualElement&&htN.has(H.visualElement))return null;if(t&&htN.has(t))return H.visualElement=t,null;v=_.lV(_.UV(),{veType:v,elementIndex:M,clientYouTubeData:f});if(!v)return null;H.visualElement=v;htN.add(v);return v};
_.lw=function(f,H,v,t){v=v===void 0?null:v;t=t===void 0?f$B:t;var M=M===void 0?null:M;ou(function(){if(H){v instanceof Function&&(v=v());var h=Rte({element:H,veType:f,storedVisualElement:v,clientYouTubeData:void 0});h&&(toR(H,M),t(h))}})};
Uw=function(f,H){if(f){switch(H){case 0:f=f.primaryTitleColor;break;case 1:f=f.secondaryTitleColor;break;case 2:f=f.surgeColor;break;case 3:f=f.section2Color;break;case 4:f=f.section3Color;break;default:return}if(f)return _.NS(f)}};
eO=function(f,H){if(f){switch(H){case 0:f=f.primaryTitleColor;break;case 1:f=f.secondaryTitleColor;break;case 2:f=f.surgeColor;break;case 3:f=f.section2Color;break;case 4:f=f.section3Color;break;default:return}if(f)return _.NS(f)}};
Vtr=function(f){return f?_.cS(f):""};
yUb=function(f){return(f==null?void 0:f.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
YaE=function(f,H){return _.dL(f.entities,"videoOverviewAsyncDataEntity",H)};
mh5=function(f,H){var v;return"linear-gradient(to bottom, "+((v=H==null?void 0:H.map(function(t){var M=f?t.darkThemeColor:t.lightThemeColor;return M?_.cS(M)+" "+((t==null?void 0:t.startLocation)||0)*100+"%":"transparent"}))==null?void 0:v.join(", "))+")"};
$he=function(f,H,v,t,M){if(!((t==null?0:t.height)&&(t==null?0:t.width)))return{size:0};var h=t.width;t=t.height;if(M)return H==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||H==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&h>t?{size:312/w9R}:H==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(v!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||f!==1&&f!==2||H!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&H!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&H!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(H==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||H==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||t===h)switch(f){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(H==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||t>h)switch(f){case 1:case 3:return{size:240*T0E};default:return{size:360*T0E}}switch(f){case 1:case 2:return{size:1/w9R*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.W0_=function(f){if(!("matchMedia"in window))return _.Nw(Error("Ph")),function(){return!1};
var H=window.matchMedia(f);f=_.V(_.gp(H.matches,void 0,"jLJc8e"));var v=f.next().value,t=f.next().value,M=function(h){t(h.matches)};
H.addEventListener?(H.addEventListener("change",M),_.Dt(function(){H.removeEventListener("change",M)})):H.addListener&&(H.addListener(M),_.Dt(function(){H.removeListener(M)}));
return v};
OwB=function(f){return f==="IMAGE_BANNER_STYLE_INSET"||f==="IMAGE_BANNER_STYLE_UNKNOWN"};
gBB=function(){if(!("matchMedia"in window))return _.Nw(Error("Ph")),function(){return 0};
var f=Dp(function(){return window.matchMedia("(max-width: 527.9px)")}),H=Dp(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),v=Dp(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),t=Dp(function(){return window.matchMedia("(min-width: 1024px)")}),M=_.V(_.gp(f.matches,void 0,"og9kEc")),h=M.next().value,y=M.next().value;
M=_.V(_.gp(H.matches,void 0,"ybDWCb"));var m=M.next().value,W=M.next().value;M=_.V(_.gp(v.matches,void 0,"o0Gfh"));var I=M.next().value,S=M.next().value;M=_.V(_.gp(t.matches,void 0,"yqUUgd"));var d=M.next().value,Z=M.next().value,l=Dp(function(){return function(Q){y(Q.matches)}}),L=Dp(function(){return function(Q){W(Q.matches)}}),r=Dp(function(){return function(Q){S(Q.matches)}}),n=Dp(function(){return function(Q){Z(Q.matches)}});
_.Kc(function(){f.addEventListener?(f.addEventListener("change",l),H.addEventListener("change",L),v.addEventListener("change",r),t.addEventListener("change",n)):f.addListener&&(f.addListener(l),H.addListener(L),v.addListener(r),t.addListener(n));_.Dt(function(){f.removeEventListener?(f.removeEventListener("change",l),H.removeEventListener("change",L),v.removeEventListener("change",r),t.removeEventListener("change",n)):f.removeListener&&(f.removeListener(l),H.removeListener(L),v.removeListener(r),
t.removeListener(n))})});
return function(){return h()?1:m()?2:I()?3:d()?4:0}};
IX_=function(f){var H=0;f=_.V([f.title,f.metadata,f.actions,f.description,f.attribution]);for(var v=f.next();!v.done;v=f.next())v.value&&H++;return H};
SaT=function(f){return f===1||f===2?1:0};
jBN=function(f){f=(new dhR).parse(f);return(new dI).render(f).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(H){var v=H.split(":").map(Number),t=0,M=0;if(v.length===3)v=_.V(v),t=v.next().value,M=v.next().value,v=v.next().value;else if(v.length===2)v=_.V(v),M=v.next().value,v=v.next().value;else if(v.length===1)v=_.V(v).next().value;else throw Error("Qh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(t*3600+M*60+v)+'" role="button">'+H+"</span>"})};
sBH=function(f){f=_.V(f.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var H=f.next(),v={};!H.done;v={clickHandler$jscomp$5:void 0},H=f.next()){H=H.value;v.clickHandler$jscomp$5=function(M){M=Number(M.target.getAttribute("data-time"));if(isNaN(M))throw Error("Rh");var h;(h=_.O7())==null||h.seekTo(M,!0)};
var t=function(M){return function(h){h.key!=="Enter"&&h.key!=="Space"||(0,M.clickHandler$jscomp$5)(h)}}(v);
H.setAttribute("tabindex","0");H.removeEventListener("click",v.clickHandler$jscomp$5);H.removeEventListener("keydown",t);H.addEventListener("click",v.clickHandler$jscomp$5);H.addEventListener("keydown",t)}};
Zwb=function(){return _.O("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.O(Lp,{percentWidth:100}),_.O(Lp,{animationDelay:200}),_.O(Lp,{animationDelay:400}),_.O(Lp,{animationDelay:600}),_.O(Lp,{animationDelay:800,percentWidth:60}),_.O("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.O(Lp,{percentWidth:100}),_.O(Lp,{animationDelay:200}),_.O(Lp,{animationDelay:400}),_.O(Lp,{animationDelay:600,percentWidth:50}))};
Lp=function(f){return _.O("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(f.percentWidth===void 0?100:f.percentWidth)+"%"},_.O("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(f.animationDelay===void 0?0:f.animationDelay)+"ms"}))};
JUT=function(){var f=_.V(_.gp(function(){return""},void 0,"v2wS5e")),H=f.next().value;
return[function(){return H()()},
f.next().value]};
lXB=function(f,H){f=f?SY5(f):"";H!==void 0&&isFinite(H)?H===0?H=_.ZC("UPDATING",void 0,"Updating..."):(H=jMe(new Date(H),new Date),H=_.ZC("UPDATED_TIME",{relative_time:H},"Updated "+H)):H="";var v="";f&&H&&(v=" \u2022 ");return _.hd(f+v+H)};
L0N=function(f,H,v,t,M,h){H=H===void 0?0:H;var y=UhR[H],m=y.title,W=y.iconType,I=y.topButtonRenderer,S=y.sectionClientVE;y=y.videoClientVE;var d;if(H!==1||f.length){v=[];f=_.V(f);for(t=f.next();!t.done;t=f.next()){var Z=t.value;if(sX5(Z))v.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:Z.videoEntity.videoId,title:R5(Z.videoEntity.title),shortBylineText:R5(Z.channelEntity.title),thumbnail:Z.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:Z.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.ZC("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:y}}}}}});else if(jX3(Z)){t=v;var l=t.push;var L=void 0,r=void 0,n=void 0,Q=void 0,C=void 0,w=void 0,c=void 0,A=void 0,X=Z.mainPlaylistEntity.playlistId,fg=Z==null?void 0:(A=Z.mainPlaylistEntity)==null?void 0:(c=A.thumbnailStyleData)==null?void 0:(w=c[0])==null?void 0:(C=w.value)==null?void 0:(Q=C.collageThumbnail)==null?void 0:Q.coverThumbnail;Q=TS5(X);if(!_.J("enable_offline_playlist_page")&&
(Z==null?0:(n=Z.mainPlaylistEntity)==null?0:n.videos)){b:{n=Z==null?void 0:(r=Z.mainPlaylistEntity)==null?void 0:r.videos;r=_.vS().getState().entities;if(n!=null&&n.length&&r)for(n=_.V(n),C=n.next();!C.done;C=n.next())if(C=_.OF(C.value).entityId,(C=JSON.parse(C).videoId)&&yG3(r,C)==="TRANSFER_STATE_COMPLETE"){r=C;break b}r=""}r!==void 0&&(Q=ca(_.vS().getState(),r),Q=_.MO(r,X,void 0,void 0,Q))}r=q83(_.ZC("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),TS5(X));Z=X&&fg&&r?{playlistId:X,navigationEndpoint:Q,
viewPlaylistText:r,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:fg}},title:R5(Z.mainPlaylistEntity.title),shortBylineText:R5(Z==null?void 0:(L=Z.channelEntity)==null?void 0:L.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:etv,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:X,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.ZC("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:y}}}:
void 0;l.call(t,{gridPlaylistRenderer:Z})}}y={gridRenderer:{items:v}};H===1&&(d=lXB(M,h))}else if(t){var gB=_.hd((l=v==null?void 0:v.localizedPromptMessage)!=null?l:"");y={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.hd(_.ZC("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.QXs}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.hd(_.ZC("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};d=lXB(M,h)}else gB=_.hd(_.ZC("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
y={};return{contents:[{shelfRenderer:{title:m,titleAnnotation:d,icon:{iconType:W},subtitle:gB,content:y,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:I}]}}}}],loggingDirectives:{clientVeSpec:{uiType:S}}}};
xhb=function(f,H,v,t,M,h,y,m,W,I,S){v=v===void 0?{}:v;t=t===void 0?{}:t;M=M===void 0?!1:M;h=h===void 0?!1:h;y=y===void 0?!1:y;m=m===void 0?!1:m;W=W===void 0?!1:W;I=I===void 0?0:I;S=S===void 0?-Infinity:S;if(!(H.length||f.length||M||m))return h?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:twT(v)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.hd(_.ZC("DO_NOT_HAVE_DOWNLOADS",void 0,"You do not have any downloads")),icon:{iconType:"OFFLINE_NO_CONTENT"},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},
loggingDirectives:{clientVeSpec:{uiType:21411}}}}]}}];var d=[];f.length&&d.push(L0N(f,0));m?d.push({contents:[{statementBannerRenderer:yws(W,t)}]}):M?d.push(L0N(H,1,v,y,I,S)):h&&d.push({contents:[{statementBannerRenderer:hG5(v)}]});(M&&H.length||f.length)&&d.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.hd(_.ZC("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}}}}]});
return d.map(function(Z){return{itemSectionRenderer:Z}})};
xd=function(f,H){if(typeof f!=="object")return null;f=_.V(Object.entries(f));for(var v=f.next();!v.done;v=f.next()){var t=_.V(v.value);v=t.next().value;t=t.next().value;if(v===H)return v;if(t=xd(t,H))return v+"."+t}return null};
Bs=function(f){var H=f.content;return(f=f.styleRuns)&&H?{runs:f.map(function(v){var t={text:H.slice(v.startIndex,v.startIndex+v.length)};v.fontColor&&(t.textColor=v.fontColor);return t})}:{simpleText:H}};
F0T=function(f,H,v,t){var M=Bc_;t&&(f.quantity=t);if(!f.quantity||!f.maxQuantity)return{};t=f.minusButton;var h=f.plusButton,y,m,W,I;return{value:f.quantity,maxValue:f.maxQuantity,onChangeCallback:function(S){M(f,S)},
minusLabel:(y=_.U(t,ztH))==null?void 0:y.label,minimumReachedLabel:(m=_.U(t,ztH))==null?void 0:m.limitReachedLabel,plusLabel:(W=_.U(h,ztH))==null?void 0:W.label,maximumReachedLabel:(I=_.U(h,ztH))==null?void 0:I.limitReachedLabel,disabled:H,onRemoveCommand:v}};
Bc_=function(f,H){var v=f.quantityIncrementerEntityKey;if(v){var t={};t.quantity=H;_.HK(_.z7("quantityIncrementerEntity",v,t));f.onChangeCommand&&_.XA(f.onChangeCommand)}};
DhH=function(f,H){(f=rUH(f))&&((_.J("enable_mini_app_command_handler_mweb_fix")?0:H)?K0B.push({command:f,sourceData:{},commandContext:void 0}):_.t8().resolve(_.MJ).resolveCommand(f))};
rUH=function(f){return _.U(f,_.PK)};
oBB=function(){var f=window.performance.timeOrigin+window.performance.now(),H=(new _.FX).setSeconds(f/1E9);return _.vv(H,2,_.RF(f%1E9),0)};
pXB=function(f,H){var v;f=(v=_.U(_.U(f,_.PK),nB3))==null?void 0:v.methodName;var t,M;(v=window.youtubewebview||((t=window.webkit)==null?void 0:(M=t.messageHandlers)==null?void 0:M.youtubewebview))&&f&&(t=new ry,f=_.rr(t,1,f),f=_.QG(f.JSC$12370_serializeBinary()),H=_.QG(H),v.postMessage(f+","+H))};
Kp=function(f,H){var v=_.U(_.U(f,_.PK),nB3);v&&(H&&(v.serializedAdditionalMetadata=_.QG(H)),DhH(f,!0))};
QBB=function(f){switch(f){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"}};
ufT=function(){return!!_.a8("ID_TOKEN")};
Gkr=function(f){return f instanceof Error&&f.cause instanceof aX3&&f.cause.rpcErrorCode!==void 0?!PI3.includes(f.cause.rpcErrorCode):!0};
EB3=function(){return _.kk(CIR,{authuser:""+(_.a8("SESSION_INDEX")||0)})};
D4=function(f,H,v,t){v=v===void 0?"MINI_APP_SDK_API_UNSPECIFIED":v;t=t===void 0?"":t;var M=new _.e$;v={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:t,sdkApi:v};f instanceof Error&&(M.message=f.message,M.name=f.name,f.cause instanceof aX3&&f.cause.rpcErrorCode!==void 0&&(v.rpcErrorCode=f.cause.rpcErrorCode));var h;(h=H.onError)==null||h.call(H,{loggingError:M,metadata:v})};
cUb=function(f,H,v,t){switch(f){case "MINI_APP_SOURCE_GAMESNACKS":return new oc(H,v,t);default:return new NcT(H,v,t)}};
XXe=function(f){switch(f){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"}};
AUv=function(f){switch(f){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"}};
bw3=function(f){switch(f){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"}};
iws=function(){return Math.floor(Math.random()*4)+1};
kk5=function(f,H,v,t){f=_.V(Object.entries(f));for(var M=f.next(),h={};!M.done;h={message$jscomp$994:void 0},M=f.next()){var y=_.V(M.value);M=y.next().value;y=y.next().value;h.message$jscomp$994=y;H.push(setTimeout(function(m){return function(){t(!1);v(m.message$jscomp$994.text)}}(h),h.message$jscomp$994.delayMs));
Number(M)>0&&H.push(setTimeout(function(){t(!0)},h.message$jscomp$994.delayMs-400))}};
TcN=function(f,H){var v=v===void 0?f$B:v;_.J("mweb_fix_monitor_visibility_after_render")?f&&ou(function(){toR(f,H,v)}):ou(function(){toR(f,H,v)})};
HIs=function(f){wXT||(wXT=qaE(new _.Ad(1,void 0,void 0,fiH),0));var H=wXT.format(Math.floor(f));H=_.XG==="be"||_.XG==="bg"||_.XG==="es"||_.XG==="et"||_.XG==="hu"||_.XG==="ka"||_.XG==="lv"||_.XG==="pl"||_.XG==="pt-PT"||_.XG==="sq"?H.replace(new RegExp("^(\\d)"+fiH.GROUP_SEP.replace(".","\\.")+"(\\d+("+fiH.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):H;return f>=1E3&&f<=9999&&H[1]==="."&&(_.XG==="sl"||_.XG==="it")?H.replace(".",""):H};
vqg=function(f,H){Zqs("ytd-button-renderer",{data:f,className:H?H.className:"",overrides:H==null?void 0:H.buttonOverrides},eLe)};
h1H=function(f,H,v,t){if(f)return t=t||f.likeStatus,H?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:t==="LIKE",isDisabled:!f.likesAllowed,defaultIcon:{iconType:v},defaultText:t==="LIKE"?f.likeCountWithUnlikeText:f.likeCountText,toggledText:t==="LIKE"?f.likeCountText:f.likeCountWithLikeText,defaultNavigationEndpoint:tPE(f,"LIKE"),defaultServiceEndpoint:MP5(f,"LIKE"),toggledServiceEndpoint:MP5(f,"INDIFFERENT"),defaultTooltip:_.fG(f.likeCountTooltipText),toggledTooltip:_.fG(f.likeCountTooltipText),
targetId:f.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:t==="DISLIKE",isDisabled:!f.likesAllowed,defaultIcon:{iconType:v},defaultText:t==="DISLIKE"?f.dislikeCountWithUndislikeText:f.dislikeCountText,toggledText:t==="DISLIKE"?f.dislikeCountText:f.dislikeCountWithDislikeText,defaultNavigationEndpoint:tPE(f,"DISLIKE"),defaultServiceEndpoint:MP5(f,"DISLIKE"),toggledServiceEndpoint:MP5(f,"INDIFFERENT"),defaultTooltip:_.fG(f.dislikeCountTooltipText),
toggledTooltip:_.fG(f.dislikeCountTooltipText)}};
tPE=function(f,H){if(H==="LIKE")return f.likeCommand;if(H==="DISLIKE")return f.dislikeNavigationEndpoint};
MP5=function(f,H){var v;return(v=f.serviceEndpoints)==null?void 0:v.find(function(t){var M;return((M=_.U(t,_.np))==null?void 0:M.status)===H})};
_.y6R=function(f,H,v){return window.spf&&!_.J("web_disable_spfjs_client")?R1R(f,H,v):VPE(f,H)};
R1R=function(f,H,v){var t=null,M=(new _.IO(function(h,y){var m={};if(H){m.method=H.method;var W=H.postParams||{};XV_(f,H)&&(W[_.a8("XSRF_FIELD_NAME")]=_.a8("XSRF_TOKEN"));m.postData=_.S$(W);H.type&&(m.type=H.type);W=H.headers}m.headers=P0g(f,W);_.J("debug_forward_web_query_parameters")&&(f=_.Njg(f,window.location.search));m.experimental_headers=m.headers;m.onError=function(I){I.err&&I.xhr&&(I.err.params={url:I.xhr.responseURL,response:I.xhr.responseText.substr(0,64)});y(I.err)};
m.onPartDone=function(I){v&&v.call(null,I.part)};
m.onDone=function(I){var S=YC5(I.response,"xsrf_token");qw(window.location.href,f)&&S&&_.pc("XSRF_TOKEN",S);if(S=YC5(I.response,"service_worker_killswitch"))_.pc("SERVICE_WORKER_KILLSWITCH",S),nDR();h(I.response)};
t=spf.request(f,m)})).then(m0T);
M.thenCatch(function(h){var y=h instanceof _.pp,m=h&&h.hasOwnProperty("params")&&h.params.response?h.params.response:"";h instanceof Error&&(m?y?zIr(h):m===')]}\'\n{"reload":"now"}'?zIr(h):($0b(h,f,m),WtB(h,m)?_.pb(h):_.oO(h)):zIr(h));t&&t.abort()});
return M};
m0T=function(f){if(f.type==="multipart"){var H=f.timing;f=f.parts.reduce(function(v,t){Object.assign(v,t);return v},{});
f.timing=f.timing||{};Object.assign(f.timing,H);f.type="reduced"}return f};
VPE=function(f,H){H=H===void 0?{}:H;var v=null,t=new _.IO(function(M,h){H.onFinish=function(y){if(y.readyState===XMLHttpRequest.DONE)if(y.status===200){if(y.responseType!=="json"){var m=y.response;m.substring(0,5)===")]}'\n"&&(m=m.substring(5));try{var W=JSON.parse(m)}catch(I){W=I}}else W=y.response;W instanceof Error?h(W):(m=YC5(W,"xsrf_token"),qw(window.location.href,f)&&m&&_.pc("XSRF_TOKEN",m),y=y.responseURL,window.performance&&window.performance.getEntriesByName?(m=window.performance.getEntriesByName(y).pop())?
y={responseStart:(0,_.ta)()-(m.responseEnd-m.responseStart)}:(Math.random()<.01&&(m=Error("ci"),m.params=y,_.pb(m)),y={responseStart:-1}):y={responseStart:0},W.timing=W.timing||{},Object.assign(W.timing,y),M(W))}else h(Error("bi`"+y.status))};
(v=_.I2(f,H))||h(Error("bi`"+v.status))});
t.thenCatch(function(M){M instanceof Error&&($0b(M,f),WtB(M)&&(M.level="WARNING"))});
_.J("cancel_pending_navs")&&t.thenCatch(function(){v.abort()});
return t};
YC5=function(f,H){var v=f[H],t=f.parts;f.type==="multipart"&&t&&(v=(f=t.find(function(M){return H in M}))&&f[H]);
return v};
$0b=function(f,H,v){var t=f.message||"";H={original:t,url:H};if(v)if(t=t.match(/position:?\s*(\d+)/)){t=t&&Number(t[1])?Number(t[1]):0;var M=Math.max(t-25,0);H.position=t;H.response=v.substring(M,t+25)}else H.response=v.substring(0,50);_.u$(f,H);try{f.message="JSON parse error"}catch(h){}};
WtB=function(f,H){f=f.message||"";f=!!(f.indexOf("<")>=0||f.indexOf("end of ")>=0||f.indexOf("Unterminated string")>=0||f.indexOf("Unexpected EOF"));if(!f&&H)for(var v=H.length,t=!1,M=0;M<v;M++)if(t&&H[M]==="\\")M++;else if(H[M]==='"')t=!t;else if(H[M]==="<"&&!t){f=!0;break}return f};
OIR=function(){return document.documentElement.hasAttribute("dark")};
_.gqR=function(f,H){if(f!=="GFEEDBACK"&&f!=="GUIDED_HELP")_.Ge(Error("di`"+f));else{var v=_.t8().resolve(_.vh(_.fT));if(v&&(v=v.getCurrentPage())&&v.getServiceTrackingParams&&(v=v.getServiceTrackingParams()))for(var t=0,M;M=v[t++];)if(M.service===f){if(f=M.params)for(v=0;t=f[v++];)H[t.key]=t.value;break}}};
_.Iib=function(f){var H=_.vx();H&&(H=H.getPlayer())&&(H.pauseVideo(),f.playback_id=H.getVideoData().cpn,f.eid=H.getVideoData().eventId,Object.assign(f,H.getFeedbackProductData()))};
SCE=function(){var f={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.a8("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(f.enableAnonymousFeedback=!0);_.a8("SESSION_INDEX")&&(f.authuser=String(_.a8("SESSION_INDEX")));_.J("enable_pageid_for_feedback")&&_.a8("DELEGATED_SESSION_ID")&&(f.pageId=String(_.a8("DELEGATED_SESSION_ID")));return f};
_.Qp=function(f){_.J("enable_ypc_spinners")&&_.mb(f,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},f])};
_.uw=function(f){_.J("enable_ypc_spinners")&&_.mb(f,"yt-close-popup-action",["yt-loading-renderer"])};
d0b=function(f){return new Promise(function(H,v){_.Cu({verifyCommand:{recaptchaToken:f.recaptchaResponse}},{commandController:{onSuccess:function(t,M){M||v("ChallengeService did not return a response.");var h;H({challengeCompleted:(h=M.verified)!=null?h:!1})},
onServerError:function(t,M){v(M)}}})})};
jge=function(f,H,v,t){H({recaptchaResponse:t}).then(function(M){M.challengeCompleted?_.J8()?(v(3),_.t8().resolve(_.MJ).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:f}})):v(2):v(4)},function(){v(4)})};
ZIR=function(f,H,v){_.c7(_.gr(sg5,_.a8("HL")),function(){var t;(t=window.grecaptcha)==null||t.ready(function(){var M=window.grecaptcha;M?(v(M.render(f,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:jge.bind(null,f,d0b,H)})),H(1)):H(4)})})};
J6B=function(f,H){return function(){switch(H()){case 0:return f().captchaLoadingMessage;case 1:return f().challengeReason;case 3:return f().captchaSuccessfulMessage;case 2:return f().captchaCookieSetFailureMessage;case 4:return f().captchaFailedMessage;default:return f().challengeReason}}()};
_.ac=function(){if(!liR){var f=document.querySelector("#player.skeleton");f&&(_.U1(f),liR=!0)}};
_.e13=function(){return U0R=nIE()};
BOB=function(){return _.Y(function(f){return Lt5!==void 0?f.return():f.yield(x03(),0)})};
x03=function(){return _.Y(function(f){if(f.nextAddress==1)return f.yield(Qiv(),2);U0R=f.yieldResult;Lt5=_.nN.addLowPriorityJob(x03,5E3);_.Bj(f)})};
oq_=function(f){var H=H===void 0?z1g:H;var v,t,M=(v=f.responseContext)==null?void 0:(t=v.mainAppWebResponseContext)==null?void 0:t.trackingParam;if(!M){H.increment("MISSING");var h,y,m,W,I,S;_.pb(new _.e$("282054944_a",{zYk:!!((h=f.responseContext)==null?0:(y=h.mainAppWebResponseContext)==null?0:y.loggedOut),j0W:((m=f.responseContext)==null?void 0:m.mainAppWebResponseContext)===void 0,nSn:f.responseContext===void 0,cp:(W=f.playabilityStatus)==null?void 0:W.contextParams,ssD:(((I=f.streamingData)==
null?void 0:I.formats)||[]).length>0,itW:(((S=f.streamingData)==null?void 0:S.adaptiveFormats)||[]).length>0,os:!!f.offlineState,cotn:f.cotn}));return 2}v="";try{v=Fte(M)}catch(l){return H.increment("C_ERROR"),_.oO(l),2}try{var d=_.r65(v);var Z=KtH(d)}catch(l){return H.increment("P_ERROR"),_.oO(l),2}Z=_.VX(Z,D0B,1,_.yX());M=[];Z=_.V(Z);for(d=Z.next();!d.done;d=Z.next())t=d.value,d=t.getPath(),v=(0,_.QA.getValueByKeys)(f,d.split(".")),v=String(v===void 0||v===null?"":v),t=t.getValue()||"",h=/[+\-\/_]/g,
v.replace(h,"")!==t.replace(h,"")&&(H.increment("MISMATCH"),_.J("ab_mis_log_err")&&(v=new _.e$("282054944_p",{bCk:d,g:String(v),e:String(t)}),_.oO(v)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(d)||(d.match(/enforcementMessageViewModel/i)?M.push(3):M.push(2)));if(M.length>0)return Math.max.apply(Math,_.pS(M));H.increment("SUCCESS");return 1};
Qgr=function(f){var H=new Ps;if(f.interpreterJavascript){var v=_.JJ_(f.interpreterJavascript);v=HS3(v).toString();var t=new nqT;_.rr(t,6,v);_.eV(H,1,t,uC)}else f.interpreterUrl&&(v=_.pN(f.interpreterUrl),v=_.re(v).toString(),t=new _.pE3,_.rr(t,4,v),_.eV(H,2,t,uC));f.interpreterHash&&_.G7(H,3,f.interpreterHash,uC);f.program&&_.G7(H,4,f.program,uC);f.globalName&&_.G7(H,5,f.globalName,uC);f.clientExperimentsStateBlob&&_.G7(H,7,f.clientExperimentsStateBlob,uC);return H};
Cp=function(f){var H={};f=_.V(f.split("&"));for(var v=f.next();!v.done;v=f.next())v=v.value.split("="),v.length===2&&(H[v[0]]=v[1]);return H};
uRB=function(f){return Number(f.t)||7200};
epR=function(){if(_.J("bg_st_hr"))return"havuokmhhs-0";var f,H=((f=performance)==null?void 0:f.timeOrigin)||0;return"havuokmhhs-"+Math.floor(H)};
aiT=function(){return new Promise(function(f){var H=window;H.ntpevasrs!==void 0?f(new Ew(H.ntpevasrs)):(H.ntpqfbel===void 0&&(H.ntpqfbel=[]),H.ntpqfbel.push(function(v){f(new Ew(v))}))})};
PrN=function(f){var H=f.yV0.bind(f);_.qJ("yt.aba.att",H);f=f.nOA.bind(f);_.qJ("yt.aba.att2",f)};
Crb=function(f){switch(_.gH(f.input)){case _.tt(GwE):var H={};return H.encryptedVideoId=f.innerTubeRequest.externalVideoId,H}return{}};
c6R=function(f){switch(_.gH(f.input)){case _.tt(GwE):if(_.J("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.tt(Eqe):if(_.J("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.tt(Ni):if(_.J("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&f.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.tt(NOv):var H,v;if(_.J("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((v=_.U((H=f.config)==null?void 0:H.command,Ewb))==null?0:v.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.A6R=function(f){var H;if(f.playlistVideoRenderer&&((H=f.playlistVideoRenderer)==null?0:H.engagementBar))return XEb(f.playlistVideoRenderer.engagementBar);if(_.U(f,cs)){var v;if(f=(v=_.U(f,cs))==null?void 0:v.engagementBar)return XEb(f)}return""};
XEb=function(f){if(!f)return"";f=_.U(f,_.bIE);if(f==null||!f.actions)return"";f=_.V(f.actions);for(f=f.next();!f.done;f=f.next()){f=_.U(f.value,_.iIg);var H=void 0;if((H=f)==null||!H.itemId)break;return f.itemId}return""};
_.kw5=function(f){var H;if(f.playlistVideoRenderer&&((H=f.playlistVideoRenderer)==null?0:H.videoId))return f.playlistVideoRenderer.videoId;if(_.U(f,cs)){var v,t;if(f=(v=_.U(f,cs))==null?void 0:(t=v.playlistItemData)==null?void 0:t.videoId)return f}return""};
_.TO5=function(f){var H;if(f.playlistVideoRenderer&&((H=f.playlistVideoRenderer)==null?0:H.voteCount))return f.playlistVideoRenderer.voteCount;if(_.U(f,cs)){var v,t;if(f=(v=_.U(f,cs))==null?void 0:(t=v.playlistItemData)==null?void 0:t.voteCount)return f}return 0};
_.XX=function(f,H){return _.dL(f.entities,"flowStateEntity",H)};
qCB=function(f,H,v,t){var M=void 0;f=_.V(f[H.iconName]||[]);for(var h=f.next();!h.done;h=f.next()){h=h.value;var y=H.iconSize;var m=H.iconStyle;y=!y||y===h[2];var W=wET[h[0]];t&&t!==h[1]||!y||m&&m!==W?m=!1:M?(m=wET[h[0]],m=!!H.iconStyle||m==="youtube_outline",y=M.version<=h[1],m=(!!H.iconSize||h[2]===24)&&m&&y):m=!0;m&&(M={name:H.iconName,style:wET[h[0]],size:h[2],version:h[1],allowMirroring:!!h[3],url:v(H.iconName,h)})}return M};
f9N=function(f,H,v,t){return f+(""+wET[v[0]]+((t===void 0?0:t)?"_experimental":"")+"/"+H+"/v"+v[1]+"/")+(v[2]+"px.svg")};
Hse=function(f){return _.a8("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"?"bookmark":f};
vyT=function(f,H){return f9N("https://fonts.gstatic.com/s/i/",f,H)};
tCe=function(f,H){return f9N("https://fonts.gstatic.com/s/i/",f,H,!0)};
MCb=function(f,H){return f9N("https://www.gstatic.com/youtube/img/icons/web/",f,H)};
RXB=function(f){var H=f.enabled;var v=f.itemPlaybackModel;var t=f.thumbnailElRef;var M=f.containerElRef;var h=f.options;var y;_.K4(function(){var m=M==null?void 0:M.value;var W,I=(W=t())==null?void 0:W.value;W=v();var S=h();if(H&&W&&m&&I&&(S==null?0:S.thumbnail)){var d={data:W,hostElement:m},Z,l,L=_.J("web_explore_hub_on_hover")||_.J("web_client_explore_hub_on_hover")?[].concat(_.pS((Z=S.thumbnailOverlays)!=null?Z:[]),_.pS((l=W.overlays)!=null?l:[])):S.thumbnailOverlays||[],r,n;m={mediaRenderer:d,
lockupElement:m,thumbnailElement:I,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.GK((r=W.inlinePlayerData)==null?void 0:r.onVisible),navigationEndpoint:_.GK((n=W.inlinePlayerData)==null?void 0:n.onSelect),thumbnail:S.thumbnail,thumbnailOverlays:L,accessibilityText:S.accessibilityText||""},thumbnailSize:S.thumbnailSize,enableRounding:S.enableRounding}}}else m=void 0;if(r=m){var Q;(Q=y)==null||AY(Q);y=Q4(r);var C,w;((C=v())==null?0:(w=C.inlinePlayerData)==null?0:w.forceImpAutoplay)&&
hX5(y)}},"B33dEc");
_.Dt(function(){var m;(m=y)==null||AY(m)})};
VCv=function(f){f=atob(f);for(var H=[],v=0;v<f.length;v++)H.push(f.charCodeAt(v));return new Blob([new Uint8Array(H)],{type:"image/png"})};
YGv=function(f,H,v,t){t=t===void 0?"INSERTION_POSITION_UNSPECIFIED":t;return f({targetId:H},function(M){var h,y=(h=M.contents)!=null?h:[];h=v!=null?v:[];var m=yuN(y);switch(t){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},M,{contents:[].concat(_.pS(y.slice(0,m)),_.pS(h),_.pS(y.slice(m+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},M,{contents:[].concat(_.pS(h),_.pS(y))});case "INSERTION_POSITION_LAST":return Object.assign({},M,{contents:[].concat(_.pS(y),_.pS(h))});
default:return M}})};
$Fv=function(f,H,v,t,M){M=M===void 0?"RELATIVE_INSERTION_POSITION_AFTER":M;return f({targetId:H},function(h){var y,m=(y=h.contents)!=null?y:[];y=mFB(m,v);if(y<0)return h;y=M==="RELATIVE_INSERTION_POSITION_BEFORE"?y:y+1;return Object.assign({},h,{contents:[].concat(_.pS(m.slice(0,y)),_.pS(t),_.pS(m.slice(y)))})})};
yuN=function(f){var H=f.findIndex(function(v){return _.U(v,_.bw)});
return H>=0?H:f.length};
mFB=function(f,H){return f.findIndex(function(v){a:{v=_.V(Object.values(v));for(var t=v.next();!t.done;t=v.next())if((t=t.value)&&t.targetId){v=t.targetId;break a}v=""}return v===H})};
OsN=function(f,H,v){return f({targetId:H},function(t){var M,h=(M=t.contents)!=null?M:[];return Object.assign({},t,{contents:WRH(h,v)})})};
WRH=function(f,H){return f.filter(function(v){var t=H.includes;a:{v=_.V(Object.values(v));for(var M=v.next();!M.done;M=v.next())if((M=M.value)&&M.targetId){v=M.targetId;break a}v=""}return!t.call(H,v||"")})};
_.gy_=function(f,H){return{engagementPanelSectionListRenderer:{panelIdentifier:f,identifier:H,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
I9v=function(f,H){f=f.getAvailableAudioTracks();if(f.length)return f==null?void 0:f.find(function(v){var t;return(v==null?void 0:(t=v.getLanguageInfo())==null?void 0:t.getId())===H})};
_.dFR=function(f){var H,v=(H=f.getOption("captions","tracklist",{includeAsr:!0}))!=null?H:[];return v=SG_(v,f)};
j4R=function(f){return f.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
SG_=function(f,H){H=j4R(H);if(H==null||!H.length)return f;var v=H.filter(function(y){return y});
H=f.filter(function(y){return y.languageCode.startsWith("en")});
v=_.V(v);for(var t=v.next();!t.done;t=v.next())if(t=t.value,H.length){var M=H[0],h=Object.assign({},M);M.languageCode!==t.languageCode&&(h.displayName=M.languageName+" >> "+t.languageName,h.translationLanguage=t,f.push(h))}return f};
s4g=function(f,H,v){f=_.dFR(f);if(f.length)return v?f.find(function(t){if(typeof(t==null?void 0:t.translationLanguage)==="object"){var M;return((M=t.translationLanguage)==null?void 0:M.languageCode)===H}return!1}):f==null?void 0:f.find(function(t){return t.languageCode===H})};
ZsB=function(f){return f.getOption("captions","tracklist",{includeAsr:!0})};
JuH=function(f){var H=f.getAvailableAudioTracks();if(H!=null&&H.length){var v=f.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.pS(H.map(function(t){return{listItemViewModel:{title:{content:t.getLanguageInfo().getName()},isSelected:t.getLanguageInfo().getId()===(v==null?void 0:v.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:t.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
l9r=function(f){return f.getOption("captions","tracklist",{includeAsr:!0})};
UFe=function(f){var H=l9r(f);if(H==null?0:H.length)return H;f.loadModule("captions");return l9r(f)};
eXR=function(f){var H=f.getOption("captions","track");if(H)return H;f.loadModule("captions");return f.getOption("captions","track")};
xFH=function(f){var H=UFe(f);if(H!=null&&H.length){var v=eXR(f),t;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.ZC("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(v==null?0:v.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.pS(H.map(function(M){return{listItemViewModel:{title:{content:M.displayName},
isSelected:M.displayName===(v==null?void 0:v.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:M.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.ZC("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!v.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!v.translationLanguage&&{selectionText:{content:(v==null?void 0:(t=v.translationLanguage)==null?void 0:t.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[LRv(f)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
LRv=function(f){var H=j4R(f);if(H==null||!H.length)throw Error("Ci");var v=eXR(f);f=H.filter(function(t){return!t.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.pS(f.map(function(t){var M;return{listItemViewModel:{title:{content:t.languageName},isSelected:t.languageName===(v==null?void 0:(M=v.translationLanguage)==null?void 0:M.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:t.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
rur=function(f){return new Promise(function(H,v){if(f===void 0)_.oO(Error("Gi"),"ERROR"),v(Error("Gi"));else{v=new _.BEb;var t=_.zXe();v=v.init();var M=_.FRr(_.a8("YPC_MB_URL"),!0);Promise.all([v,M]).then(function(){var h=payments.business.integration.ClientTokenFactory.createClientToken(f,t);H(h)})}})};
oye=function(f,H,v,t,M,h,y){var m=_.bE();v=v.replace(/-/g,"+").replace(/_/g,"/");var W=_.Uj().get("hl"),I=_.iw(_.qS),S=H==null?void 0:H.element;S&&_.Qp(S);KR3(H,!0);_.DFH(I,v,m.resolve,function(){S&&_.uw(S)},function(d){S&&_.uw(S);
m.reject(d)},W,t?function(d){t&&_.AE(f,t,{backend_analytics:d})}:void 0,m.resolve,M,h,y);
return m.promise};
KR3=function(f,H){!(f=f==null?void 0:f.element)||f.tagName!=="YT-BUTTON-RENDERER"&&f.tagName!=="YTD-BUTTON-RENDERER"||(f.disabled=H)};
ny5=function(){var f=_.ZC("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.hd(f),actionButton:{buttonRenderer:fWT()}}},popupType:"TOAST"}};
pZ5=function(){var f=_.ZC("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.hd(f),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
Q4B=function(f){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:f}]}}};
kd=function(f,H,v,t){var M;return _.Y(function(h){if(h.nextAddress==1)return _.Zc(h,2),h.yield(f,4);if(h.nextAddress!=2)return(M=_.zZ(H.getState().entities).length>0)?h.return({title:_.hd(_.ZC("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.hd(_.ZC("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:qr5()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
h.return(HCv(v,t));_.xu(h);return h.return(HCv(v,t))})};
u0g=function(f,H){return H?H==="PPSV"||$IT(f,H):!1};
a9B=function(f){f.responseContext||(f.responseContext={});f.responseContext.maxAgeSeconds=0;return f};
wy=function(f){var H;return _.Y(function(v){return v.nextAddress==1?v.yield(P2g(f,"service:topbar:fallback"),2):(H=v.yieldResult)&&_.T7(H)?v.return(a9B(_.T7(H))):v.return()})};
GJr=function(f){var H;return _.Y(function(v){return v.nextAddress==1?v.yield(P2g(f,"service:downloads_settings:fallback"),2):(H=v.yieldResult)&&_.T7(H)?v.return(H):v.return()})};
P2g=function(f,H){var v;return _.Y(function(t){if(t.nextAddress==1)return f?t.yield(f.get(H),2):t.return();v=t.yieldResult;return!v||!_.T7(v)||!isNaN(Number(v.data.expireTimestampMs))&&v.isExpired()?t.return():t.return(v)})};
C2_=function(f){var H=_.t8().resolve(qi).getState().entities;return f.playlistId?u0g(H,f.playlistId):!1};
Eyv=function(f,H){var v;if(H==null?0:(v=H.requestTemplate)==null?0:v.panelId)f.panelId=H.requestTemplate.panelId;var t;if(H==null?0:(t=H.requestTemplate)==null?0:t.params)f.params=H.requestTemplate.params};
cuH=function(){if(NEB)return NEB();var f=!_.J("idb_response_store_auth_killswitch"),H={};NEB=H8("yt-it-response-store",{objectStores:(H.ResponseStore={addedAtVersion:1},H),shared:!f,upgrade:function(v,t){t(1)&&(v=CN(v,"ResponseStore",{keyPath:["key","clientName"]}),E0(v,"byExpiration","expireTimestampMs"),E0(v,"byInterface","clientName"))},
version:1});return NEB()};
XZH=function(f){return _.A8(cuH(),f)};
bsg=function(f,H){var v;return _.Y(function(t){return t.nextAddress==1?t.yield(_.fN(),2):(v=t.yieldResult)?t.return(new Aus(f,H,v)):t.return()})};
isR=function(f){var H=Object.keys(f)[0];if(H)return f.screenExit&&(H=H+";"+f.screenExit.screen),H};
kJr=function(f){var H=new Map;f=_.V(f);for(var v=f.next();!v.done;v=f.next())v=v.value,v!=null&&(H.has(v.taskType)||H.set(v.taskType,[]),H.get(v.taskType).push(v));return H};
TEv=function(f){return!isNaN(f)&&f>0};
wZ3=function(f){f=[].concat(_.pS(f)).sort(function(v,t){return v-t});
var H=Math.floor(f.length/2);return f.length%2?f[H]:(f[H-1]+f[H])/2};
HyE=function(f,H){f=f===void 0?OTb:f;H=H===void 0?{}:H;_.qJ("yt.logging.errors.log",_.oO);$lR();qGE(jsR(),H);window.onerror=f;fgR=WVB;window.addEventListener("unhandledrejection",function(v){if(v.reason instanceof Error){var t=v.reason;_.u$(t,{source:"unhandledrejection"});t.name==="AbortError"&&(t.level="WARNING")}WVB(v.reason);v.preventDefault()})};
_.vrs=function(f){var H,v,t,M,h,y,m,W,I,S,d,Z,l,L,r,n,Q,C,w,c,A,X,fg,gB,O5,s5,U5,lH,E5,uH,Rn,pr,gh,fr,sb,In,Kr,BA,TH,hN;return _.Y(function(Ho){if(Ho.nextAddress==1)return Ho.yield(_.UF(f,{mode:"readonly",enableRetries:!0},function(J9){return eB(J9,"playbackData").then(function(Ox){var lC=Ox.map(function($g){return $g.transfer}).filter(function($g){return!!$g}),vA=Ox.map(function($g){return $g.offlineVideoPolicy}).filter(function($g){return!!$g}),Rd=Ox.filter(function($g){return!!$g.key}).map(function($g){return _.SB(_.OF($g.key).entityId,
"downloadStatusEntity")});
lC=eB(J9,"transfer",lC);vA=eB(J9,"offlineVideoPolicy",vA);Rd=eB(J9,"downloadStatusEntity",Rd);var HA=lC.then(function($g){$g=$g.reduce(function(iC,jp){(jp==null?0:jp.offlineVideoStreams)&&iC.push.apply(iC,_.pS(jp.offlineVideoStreams));return iC},[]).filter(function(iC){return!!iC});
return eB(J9,"offlineVideoStreams",$g)});
return Ph.all([lC,vA,HA,Rd]).then(function($g){var iC=_.V($g);$g=iC.next().value;var jp=iC.next().value;var zH=iC.next().value;iC=iC.next().value;return[Ox,$g,jp,zH,iC]})})}),2);
if(Ho.nextAddress!=3)return H=Ho.yieldResult,Ho.yield(_.UF(f,{mode:"readonly",enableRetries:!0},function(J9){return eB(J9,"mainDownloadsListEntity").then(function(Ox){var lC,vA;return(vA=(lC=Ox[0])==null?void 0:lC.downloads)!=null?vA:[]})}),3);
v=Ho.yieldResult;t=_.V(H);M=t.next().value;h=t.next().value;y=t.next().value;m=t.next().value;W=t.next().value;I=M;S=h;d=y;Z=m;l=W;L={};r={};n={};Q={};C={};w=[];c=_.V(S);for(A=c.next();!A.done;A=c.next())(X=A.value)&&(L[X.key]=X);fg=_.V(d);for(gB=fg.next();!gB.done;gB=fg.next())(O5=gB.value)&&(r[O5.key]=O5);s5=_.V(l);for(U5=s5.next();!U5.done;U5=s5.next())(lH=U5.value)&&(n[lH.key]=lH);E5=_.V(Z);for(uH=E5.next();!uH.done;uH=E5.next())(Rn=uH.value)&&(Q[Rn.key]=Rn);pr=_.V(v);for(gh=pr.next();!gh.done;gh=
pr.next())fr=gh.value,sb=void 0,C[(sb=fr.videoItem)!=null?sb:""]=!0,fr.videoItem&&(Kr=In=void 0,BA=(Kr=(In=_.OF(fr.videoItem))==null?void 0:In.entityId)!=null?Kr:"",w.push({externalVideoId:BA}));TH=I.filter(function(J9){if(!J9||!J9.key||!J9.offlineVideoPolicy)return!1;J9=_.OF(J9.key).entityId;J9=_.SB(J9,"downloadStatusEntity");var Ox;return!(J9&&((Ox=n[J9])==null?void 0:Ox.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
hN=TH.map(function(J9){var Ox=L[J9.transfer],lC=[];if(Ox==null?0:Ox.offlineVideoStreams)for(var vA=_.V(Ox.offlineVideoStreams),Rd=vA.next();!Rd.done;Rd=vA.next())(Rd=Q[Rd.value])&&lC.push(Rd);vA=r[J9.offlineVideoPolicy];Rd=C;var HA=J9==null?void 0:J9.playerResponseTimestamp,$g=_.OF(vA.key).entityId;J9=_.SB($g,"mainVideoEntity");if(vA.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var iC="OFFLINE_VIDEO_STATE_DISABLED";vA.expirationTimestamp&&Number(vA.expirationTimestamp)<Date.now()/1E3&&(iC="OFFLINE_VIDEO_STATE_EXPIRED")}else if(vA.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")iC="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(Ox==null?void 0:Ox.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":iC="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":iC="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":iC="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":iC="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":iC="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":iC="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:iC="OFFLINE_VIDEO_STATE_UNKNOWN"}if(iC==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(Ox==null?void 0:Ox.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":iC="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":iC="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":iC=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}$g={id:$g,videoState:iC};if(Ox==null?0:Ox.cotn)$g.cotn=Ox.cotn;if(Ox==null?0:Ox.maximumDownloadQuality)$g.selectedVideoQuality=Ox==null?void 0:Ox.maximumDownloadQuality;if(Ox==null?0:Ox.lastProgressTimeMs)$g.lastProgressTimeMs=Ox.lastProgressTimeMs;HA&&($g.playerResponseSavedTimeMs=String(Number(HA)*1E3));Ox=String;HA=0;lC=_.V(lC);for(iC=lC.next();!iC.done;iC=lC.next())if(iC=iC.value,iC.streamsProgress){iC=_.V(iC.streamsProgress);for(var jp=iC.next();!jp.done;jp=
iC.next()){var zH=void 0;HA+=Number((zH=jp.value.numBytesDownloaded)!=null?zH:0)}}$g.downloadedBytes=Ox(HA);$g.selectedOfflineMode=Rd[J9]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";vA.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&($g.offlinePlaybackDisabledReason=vA.offlinePlaybackDisabledReason);return $g});
return Ho.return({offlineVideos:hN,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:w}}})})};
tis=function(){var f;return _.Y(function(H){return H.nextAddress==1?H.yield(_.Zq(),2):(f=H.yieldResult)?H.return(_.vrs(f)):H.return({state:"PES Unavailable"})})};
RrN=function(){var f,H,v,t;return _.Y(function(M){if(M.nextAddress==1)return M.yield(_.Zq(),2);if(M.nextAddress!=3)return(f=M.yieldResult)?M.yield(Mir(f),3):M.return({state:"PES Unavailable"});H=M.yieldResult;v={};t=H.reduce(function(h,y){h[y.key]=y;return h},v);
return M.return(hrv(t))})};
hrv=function(f){for(var H={},v=[],t=_.V(Object.keys(f)),M=t.next();!M.done;M=t.next()){var h=M.value;M=f[h];var y=void 0;if(((y=M)==null?void 0:y.entityType)==="mainVideoEntity"){delete f[h];var m=M.data;M={};if(m){var W=void 0;y=(W=m.videoId)!=null?W:"vid-"+h;h=f;M.video=m;delete M.video.formattedDescription;delete M.video.thumbnail;m.owner&&(W=h[m.owner],W==null?0:W.data)&&(delete h[W.key],M.video.owner=W.data,delete M.video.owner.avatar);if(m=m.downloadState)if(W=h[m],W==null?0:W.data)if(delete h[m],
m=W.data.playbackData)if(W=h[m],W!=null&&W.data){delete h[m];m=W.data;delete m.playerResponseJson;M.playbackData=m;if(m.transfer&&(W=h[m.transfer],W==null?0:W.data)){delete h[W.key];var I=W.data;M.transfer=I;W=[];I=_.V(I.offlineVideoStreams||[]);for(var S=I.next();!S.done;S=I.next())if(S=h[S.value])delete h[S.key],W.push(S.data);W&&(M.streams=W)}(m=m.offlineVideoPolicy)&&(m=h[m])&&m.data&&(delete h[m.key],M.offlineVideoPolicy=m.data)}H[y]=M}}else M&&M.entityType==="offlineOrchestrationActionWrapperEntity"&&
M.data&&(delete f[M.key],y=M.data,h=void 0,v.push({id:y.rootActionId,type:((h=y.actionProto)==null?void 0:h.actionType)||"",entity:M}))}H.wrapperEntities=v;Object.keys(f).length>0&&(H.unknownKeys=f);return H};
Vib=function(){var f,H,v,t,M,h,y,m,W;return _.Y(function(I){if(I.nextAddress==1)return f=!!(new _.P8("")).expiringStorage_,t=!!((H=_.Mr.crypto)==null?0:(v=H.subtle)==null?0:v.importKey),M=!!_.Mr.BroadcastChannel,h=!!_.Mr.navigator.locks,I.yield(cdH(),2);y=I.yieldResult;m=f&&t&&M&&h&&y;W={isSupported:m};if(m)return I.return(W);W.missingBrowserFeatures=[];y||W.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");f||W.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
t||W.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");M||W.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");h||W.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return I.return(W)})};
yyH=function(){var f;return!((f=fA?fA:null)==null||!f.window)};
_.mo3=function(f){if(_.Kg()&&_.$rT("Chromium")>=120){var H=_.YfN().mediaSession;try{H.setActionHandler("enterpictureinpicture",function(){f()})}catch(v){}}};
$og=function(f){for(var H=[],v=_.V(document.styleSheets),t=v.next(),M={};!t.done;M={node$jscomp$727:void 0},t=v.next())M.node$jscomp$727=t.value.ownerNode,M.node$jscomp$727&&(M.node$jscomp$727 instanceof HTMLStyleElement||M.node$jscomp$727 instanceof HTMLLinkElement)&&H.push(new Promise(function(h){return function(y){var m=h.node$jscomp$727.cloneNode(!0);m.onload=function(){y()};
m.onerror=function(){_.pb(Error("ij"));y()};
f.document.head.appendChild(m)}}(M)));
return Promise.all(H)};
Jyr=function(f){var H=[_.YO(WK5),_.YO(OyR),_.YO(gr3)];Ig_(window.document.documentElement,f.document.documentElement,[_.YO(SfR),_.YO(dob),_.YO(jZR),_.YO(sZH),_.YO(Zys)]);Ig_(window.document.body,f.document.body,H)};
Ig_=function(f,H,v){f=_.V(f.attributes);for(var t=f.next();!t.done;t=f.next())if(t=t.value)try{_.hf(v,H,t.name,t.value)}catch(M){}};
Uor=function(f,H){f=new _.H1(f.document.documentElement);f.start(lgb,H);return f};
er_=function(f){var H=f.document.documentElement;H.addEventListener("click",function(v){zbB(H,v)});
H.addEventListener("touchstart",function(v){oSe(v)});
H.addEventListener("mousedown",function(v){oSe(v)})};
xos=function(f,H,v,t){t=t===void 0?!1:t;H=new LKE(H||f,v||f);return{x:f.x+((t===void 0?0:t)?H.lengthX*-1:H.lengthX)*.2,y:f.y+((t===void 0?0:t)?H.lengthY*-1:H.lengthY)*.2}};
BDR=function(f){if(!f)return!1;var H=f.status==="OK"||f.status==="LIVE_STREAM_OFFLINE",v,t,M,h=(M=(v=f.errorScreen)==null?void 0:v.playerLegacyDesktopYpcTrailerRenderer)!=null?M:(t=f.errorScreen)==null?void 0:t.ypcTrailerRenderer;return!!H||!!h};
_.zre=function(f,H){if(!f)return!1;var v,t=(v=f.errorScreen)==null?void 0:v.playerLegacyDesktopYpcOfferRenderer,M;H=!!(H==null?0:(M=H.playerOverlayRenderer)==null?0:M.gatedActionsOverlayRenderer);return!!BDR(f)||!!t||!!H};
KKg=function(f){return FK3(f,0,"gclid",f.search(ry3))>=0||FK3(f,0,"gad_source",f.search(ry3))>=0};
Dov=function(f){var H=[],v=0;return{clear:function(){v=H.length=0},
push:function(t){H[v]=t;v=(v+1)%f},
iterate:function(){return function M(){var h,y,m,W;return _.v1(M,function(I){switch(I.nextAddress){case 1:_.Uq(I,2),h=H.length,y=0;case 4:if(!(y<h)){I.jumpTo(2);break}m=v+y;W=_.tQ;return I.yield(H[m%h],7);case 7:W(I.yieldResult);y++;I.jumpTo(4);break;case 2:_.lk(I),_.ea(I,0)}})}()}}};
orB=function(f){f.eventsToIgnore||(f.eventsToIgnore=[]);var H=f.eventsToIgnore.map(p0b),v=new Set(H),t=Dov(f.bufferSize);return{flush:function(){var M=Array.from(t.iterate());t.clear();M=M.map(function(h){return{name:h.name,timestamp:h.startTime,attributes:h.attributes}});
return JSON.stringify(M)},
onSpanStart:function(M){M.name==="event"&&v.has(M.attributes.type)||t.push(M)}}};
nr3=function(f){f=orB(f);var H=f.flush;Ha.processors.push({onSpanStart:f.onSpanStart});Ul3.subscribe("handleError",function(v){try{v.params.breadcrumbs=H()}catch(t){_.oO(t,"WARNING")}})};
pNg=function(){pQ("web_tracing_action");_.QZ("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
QZe=function(f,H,v){var t=f.endTime;if(t==null)throw Error("kj");var M=f.name,h={};t-=f.startTime;var y=f.startTime;h={webTracing:(h[M]=f.attributes,h)};v=_.Cc(hRR)(M,t,y,h,v,H);if(f.children)for(f=_.V(f.children),M=f.next();!M.done;M=f.next())QZe(M.value,H,v)};
uZb=function(f){var H=cHR.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(v){v.data&&typeof v.data==="object"&&(v=v.data,v.from==="extension"&&v.app==="yt.telemetry"&&(H("Received message from extension",v),f.onMessage(v)))});
return function(v,t){v={app:"yt.telemetry",from:"app",key:v,payload:t};H("Sending message to extension",v);window.postMessage(v,"*")}};
agv=function(){var f=f===void 0?3E3:f;var H=uZb({onMessage:function(){}}),v=[];
return{onSpanEnd:function(t){t.parentId==null&&v.push(t)===1&&setTimeout(function(){var M=[].concat(_.pS(v));v.length=0;H("spansReported",{spans:M})},f)}}};
C9H=function(){for(var f=sIT.value,H={},v=_.V(f.enabledSpansArray),t=v.next();!t.done;t=v.next())H[t.value]=!0;if(f.exportToCsi||f.exportBreadcrumbs)v=Lcg(),Ha.initialized=!0,Ha.sessionId=v||"",Ha.enabledSpans=H;f.exportBreadcrumbs&&nr3({eventsToIgnore:P9E,bufferSize:f.bufferSize});f.exportToCsi&&Ha.processors.push(Gr_);f.exportToDevTools&&(f=agv(),Ha.processors.push(f))};
ErN=function(f){return new Promise(function(H){window.setTimeout(H,f)})};
NDs=function(f){var H={bicf:function(h){f.ngk=h},
blc:function(){return f.getLatestChallengeResponse()},
bcr:function(h){f.xiA.push(h)}},v=window;
v.ntpevasrs=H;if(v.ntpqfbel!==void 0)for(var t=_.V(v.ntpqfbel),M=t.next();!M.done;M=t.next())M=M.value,M(H);v.ntpqfbel=void 0};
cyR=function(f){return _.Y(function(H){if(H.nextAddress==1)return _.Zc(H,2),H.yield(f.bxt(),4);if(H.nextAddress!=2)return _.ch(H,0);_.xu(H);_.Bj(H)})};
XNN=function(f){var H,v;(H=f.ytcsi)==null||(v=H.tick)==null||v.call(H,"pot_ist")};
AyR=function(f){if(f instanceof Error){var H=_.ES("yt.logging.errors.log");H&&H(f,"WARNING")}};
byR=function(f){try{var H=JSON.parse(f);if(H.bgChallenge)return H}catch(v){}};
krR=function(){var f=window,H={networkStatusManagerPromise:_.t8().resolve(new zFN(_.Aa)),initialChallengeSli:_.J("wpo_att_sli")?new _.cAE("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};f=f===void 0?window:f;var v=f.ytAtR,t;H==null||(t=H.initialChallengeSli)==null||_.MN(t);if(v){if(v=byR(v)){var M;H==null||(M=H.initialChallengeSli)==null||_.hQ(M,"SUCCESS");iyr(v,H)}f.ytAtR=void 0}else f.ytAtRC=function(h){if(h=byR(h)){var y;H==null||(y=H.initialChallengeSli)==null||
_.hQ(y,"SUCCESS");iyr(h,H);f.ytAtRC=void 0}}};
qfs=function(){if(TD_)return TD_;try{var f=_.lS("IFRAME");_.T1(f,_.gr(wNv));f.sandbox.add("allow-same-origin");f.style.display="none";document.body.appendChild(f);return TD_=f}catch(H){f=new _.e$("Failed to create sandbox iframe"),_.oO(f)}};
fS_=function(f){var H,v;return(v=f==null?void 0:(H=f.contentWindow)==null?void 0:H.fetch)!=null?v:window.fetch};
HUN=function(f){var H,v;return(v=f==null?void 0:(H=f.contentWindow)==null?void 0:H.JSON.parse)!=null?v:JSON.parse};
vnT=function(f){var H,v;return(v=f==null?void 0:(H=f.contentWindow)==null?void 0:H.Request)!=null?v:window.Request};
t_e=function(f){var H,v;return(v=f==null?void 0:(H=f.contentWindow)==null?void 0:H.TextDecoder)!=null?v:window.TextDecoder};
M_5=function(){return function(f,H){_.a8("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[f]=H}};
hD_=function(){return function(f,H){var v={};v[f]=H;f=_.Cc(_.tHe)(v);Object.keys(f).length>0&&_.nQ(f)}};
ylN=function(){if(QuR()==="hidden")var f="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else QuR()==="visible"&&(f="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",RDR=null);f&&V_v(f)};
V_v=function(f){if(f==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||f==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(YnT===f)return;YnT=f}var H=9E4+Math.random()*2E3;if(f!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.h7()>H)&&QuR()==="visible"){H=-1;RDR&&(H=Math.round((0,_.ta)()-RDR));var v=String;var t=_.ES("_fact",window);t=t==null||t==-1?-1:Math.max(Date.now()-t,0);_.Kb("foregroundHeartbeat",{firstActivityMs:v(t),clientDocumentNonce:xgR,index:String(mPv),lastEventDeltaMs:String(H),trigger:f});
_.qJ("_fact",-1,window);mPv++;RDR=(0,_.ta)()}};
_.$PB=function(){try{return!!self.sessionStorage}catch(f){return!1}};
WBR=function(){var f=navigator;return new Promise(function(H,v){var t;(t=f.webkitTemporaryStorage)!=null&&t.queryUsageAndQuota?f.webkitTemporaryStorage.queryUsageAndQuota(function(M,h){H({usage:M,quota:h})},function(M){v(M)}):v(Error("tj"))})};
OUe=function(f,H){var v={errorSeverity:H.errorSeverity.toString(),wizFeatureFlags:Object.entries(H.featureFlags).join("\n")};mlr(H,v);H=H.errorSeverity;H===3?_.oO(f,"ERROR",void 0,void 0,void 0,v):H===2&&_.oO(f,"WARNING",void 0,void 0,void 0,v);_.J("cow_if_errors_in_popup")&&H===3&&f.message.indexOf("<If>")!==-1&&window.alert(f.message)};
gnR=function(f,H){var v=fY.get(f)||{layerNode:H};v.layerNode=H;GAs(f,v);f.getScreenLayer=function(){return R0(v.layerNode)}};
ISv=function(f){var H;f=f.parentNode;for(var v;f&&((H=fY.get(f))==null||!H.isRenderer)&&!((v=f.polymerController)!=null?v:f).isRenderer_;)f=f.parentNode||f.host;if(H=f)return fY.get(H)};
SnR=function(f){if(f){fY.delete(f);var H=_.t8().resolve(tM);APv(f,H)}};
j_E=function(f,H,v){if(v===void 0?0:v){if(v=f.getAttribute("client-ve-type"),H.data&&!H.disableReactiveLogging||v)_.QL(function(){dPH(f,_.p4(H.data))}),_.Dt(function(){return void SnR(f)})}else typeof H.data!=="function"&&dPH(f,H.data)};
dPH=function(f,H){s_v++;ZUB(f,H)&&_.nN.addJob(function(){_.Vk(_.nN,function(){if(ZUB(f,H)&&f.ownerDocument.documentElement===document.documentElement&&f){var v;if(f.getAttribute("layer")){var t=v=Number(f.getAttribute("layer")),M=fY.get(f);M?M.layerNode.layer=t:gnR(f,new Jl3(t));(t=ISv(f))&&(M=fY.get(f))!=null&&(M.layerNode.parent=t.layerNode)}else if(v=fY.get(f))v=R0(v.layerNode);else{v=R0;t=new Jl3;if(M=ISv(f))t.parent=M.layerNode;gnR(f,t);v=v(t)}v!=null||(v=0);t=f.getAttribute("client-ve-type");
M=Number(t);var h=!1;t=!1;var y=fY.get(f),m;if((m=y)&&!(m=y[lSN]!==H)&&(m=M)){var W;m=((W=fY.get(f))==null?void 0:W.clientVeType)===void 0}m&&(y[lSN]=H,h=t=y.isRenderer=!0);fY.has(f)&&(fY.get(f).clientVeType=M);f.visualElement&&(t=!0);if(_.J("wiz_next_ld_fix_client_ve_spec")){var I;W=((I=_.U(H==null?void 0:H.rendererContext,_.eW))==null?void 0:I.loggingDirectives)||(H==null?void 0:H.loggingDirectives)}else W=H==null?void 0:H.loggingDirectives;W&&W.clientVeSpec&&(I=UPR(_.JV(),f),I=_.eDb(_.UV(),W,I||
void 0,v))&&(f.visualElement=I);!f.visualElement&&M&&h&&(f.veType=M,I=void 0,_.J("wiz_next_client_ve_parent_fix")&&(I=UPR(_.JV(),f)),I=_.lV(_.UV(),f,I,v),f.visualElement=I);t&&(I=_.t8().resolve(tM),T5R(f,{data:H,observer:I,layer:v,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
ZUB=function(f,H){return(H==null?0:H.trackingParams)||(H==null?0:H.loggingDirectives)||_.U(H==null?void 0:H.rendererContext,_.eW)||f.getAttribute("client-ve-type")?!0:!1};
LBE=function(f,H,v){f.componentType!==_.BM&&v instanceof HTMLElement&&H&&!_.J("cow_logging_in_component_wrapper")&&j_E(v,H,!0)};
rlv=function(){if(!xPv){xPv=!0;var f=Object.assign({},{flushRenderEffectsDuringRender:!0},{handleError:OUe,enableComponentStacksInErrorMessages:!1});Object.assign(hm,f);Lg5=B1v;zDR();rgE=gbE;BIR=IHN;_.J("ytwiz_enable_debug_component_props")&&(f=document.body.firstElementChild,window.ng||f.__ngContext__||(f.__ngContext__={},f.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=FBE))}};
zDR=function(){_.J("cow_logging_in_component_wrapper")?(eAR=function(f,H){H instanceof HTMLElement&&j_E(H,f,!0)},OPv=function(){}):(eAR=function(){},OPv=LBE)};
KBT=function(f,H,v){H=H===void 0?{}:H;var t,M=(t=_.U(f.commandMetadata,_.jG))==null?void 0:t.url;t=H.form||{};!v||t.element||t.skipDefaultElement||(H.form=H.form||{},H.form.element=v);if(M&&M!=="/service_ajax")return{type:0,command:f,form:H.form};if(_.J("kevlar_service_command_check")){if(_.XW(_.t8().resolve(_.PS),f))return Object.assign({},{type:1,command:f},H)}else{var h;if((h=_.U(f.commandMetadata,_.jG))==null?0:h.apiUrl)return Object.assign({},{type:1,command:f},H)}return{type:2,command:f,form:H.form}};
DP_=function(f){if(f.form){var H=f.form,v=Object.assign({},H);H=H.element;v=(delete v.element,v);if(H)return[_.WV(H,[f.command,v,f.commandController])]}return[]};
onB=function(f){if(f.form){var H=f.form,v=Object.assign({},H);H=H.element;v=(delete v.element,v);H&&_.Oj(H,[f.command],H,v)}};
puR=function(f,H,v){var t=new nn_(f,H),M=new yk(f,H,v);f={"/youtubei/v1/browse":new Yf(f,H,v),"/youtubei/v1/player":t,"/youtubei/v1/navigation/resolve_url":new mm,"/youtubei/v1/next":M,"/youtubei/v1/guide":new $f(v),"/youtubei/v1/search":new W1(f,H,v),"/youtubei/v1/reel/reel_item_watch":new OH(f,H,v),"/youtubei/v1/get_watch":new gs(t,M)};f["/youtubei/v1/account/account_menu"]=new I0;f["/youtubei/v1/notification/get_notification_menu"]=new S4;return f};
j4=function(){var f=_.t8().resolve(ds);return Promise.resolve(Q__(f,_.Mr.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
u6s=function(f){return f&&(f=_.sH(_.LG_(f)))?(new URLSearchParams(f)).get("service"):null};
lL=function(f,H){_.OR(_.Zb(),function(){_.u0("adl")});
_.t8().resolve(aST)(H);f=f.root;f.loadData&&f.loadData(H);(H==null?0:H.response)?_.hQ(bR5(),"SUCCESS"):_.pb(new _.e$("Lifecycle: No response in data",_.P6("IS_SHELL_LOAD"),H?H.page:"NO_PAGE",H?H.endpoint:"NO_ENDPOINT"));f.polymerController.$["page-manager"].lazyPrepareCriticalPages((H==null?void 0:H.page)||"",H.endpoint);var v,t;((t=_.U(H==null?void 0:(v=H.endpoint)==null?void 0:v.commandMetadata,_.jG))==null?0:t.webPageType)&&_.vS().dispatch(_.JQ(_.U(H.endpoint.commandMetadata,_.jG).webPageType))};
PW_=function(){var f,H;return _.Y(function(v){switch(v.nextAddress){case 1:f=window;if(!f.getDataPromise){v.jumpTo(2);break}_.Zc(v,3);return v.yield(f.getDataPromise(),5);case 5:return v.return(v.yieldResult);case 3:return _.xu(v),v.yield(j4(),6);case 6:return v.return(v.yieldResult);case 2:if(f.getInitialData)return H=f.getInitialData(),f.getInitialData=void 0,v.return(H);throw Error("vj`"+_.Mr.location.href);}})};
CWN=function(){_.pc("CSI_SERVICE_NAME","youtube");_.nQ({loadType:"cold"});_.J("kevlar_log_lcp")&&Gxg(function(f){_.u0("lcp",f.value)})};
Env=function(){var f=_.c_(document.location.href,"enable");f&&f.indexOf("scraper")>-1&&_.pc("ADD_SCRAPER_ATTRIBUTES",!0)};
bUE=function(f){var H=f.root;f=[N1b,clR,_.UH];_.J("web_feedback_endpoint_autolog_allowlist_killswitch")&&f.push(_.B1,XuR);AlR(function(v,t){return KBT(v,t,H)},function(v){if(!v.command)return[];
var t;((t=v.form)==null?0:t.element)?v.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},v.form,{endpoint:v.command})})):H.handleNavigate(v);return[]},f);
_.t8().addProvider({provide:_.MJ,useValue:_.jW.instance})};
kxe=function(){var f={},H={},v;for(v in iUg){var t=_.V(_.gp(iUg[v],void 0,"IAtZ7"));f[v]=t.next().value;H[v]=t.next().value}return[f,function(M){for(var h in M){var y=void 0;(y=H[h])==null||y(M[h])}}]};
_.zB=function(f,H,v){H=H===void 0?!1:H;var t=_.QA.getValueByKeys(f,"contents","twoColumnWatchNextResults","results","results","contents"),M=_.QA.getValueByKeys(f,"contents","twoColumnWatchNextResults","playlist","playlist")||null;H&&(M=null);var h=H=null;if(M)H=_.QA.getValueByKeys(M,"titleText"),h=_.QA.unsafeClone(_.QA.getValueByKeys(M,"longBylineText")),t="",h&&(t=_.fG(h)),h=_.qO(t);else if(t){t=_.V(t);for(var y=t.next();!y.done;y=t.next())y=y.value,y.videoPrimaryInfoRenderer&&(H=_.QA.getValueByKeys.apply(_.QA,
[y].concat(_.pS(T1R)))),y.videoSecondaryInfoRenderer&&(h=_.QA.getValueByKeys.apply(_.QA,[y].concat(_.pS(wuH))))}else _.Nw(Error("Aj"));var m;f.currentVideoEndpoint?m=f.currentVideoEndpoint:_.Nw(Error("Bj"));var W;v&&(W=_.QA.getValueByKeys(v,"playabilityStatus","miniplayer","miniplayerRenderer"));f={miniplayerTitle:H,miniplayerSubtitle:h,watchEndpoint:m,playlistData:M};W&&(f.miniplayerRenderer=W);return f};
qnN=function(f){if(f)return _.Qz(f)};
_.fGs=function(){return{isFullscreen:function(){throw Error("Cj");},
toggleFullscreen:function(){throw Error("Dj");},
exitFullscreen:function(){throw Error("Ej");},
isAutonavEnabled:function(){throw Error("Fj");},
setAutonavEnabled:function(){throw Error("Gj");},
isAutoplaySetExplicitly:function(){throw Error("Hj");}}};
HnB=function(f){return f.videoDuration?f.numTaps>1&&f.tapDirection!==0?_.FL(f.draggedTime/f.videoDuration,0,1):_.FL((f.playedTime||0)/f.videoDuration,0,1):0};
vj5=function(f){return f.videoDuration?f.isDragging||f.numTaps>1&&f.tapDirection!==0?_.FL(f.draggedTime/f.videoDuration,0,1):_.FL((f.playedTime||0)/f.videoDuration,0,1):0};
M9b=function(f){var H,v,t;return _.U(f==null?void 0:(H=f.markersMap)==null?void 0:(v=H.find(function(M){return M.key==="HEATSEEKER"}))==null?void 0:(t=v.value)==null?void 0:t.heatmap,t9e)};
he3=function(f){var H,v;return(v=(H=M9b(f))==null?void 0:H.heatMarkersDecorations)!=null?v:[]};
Ree=function(f){if(_.J("mweb_supported_chapters_killswitch"))return!0;var H;return!!(f==null?0:(H=f.markersMap)==null?0:H.find(function(v){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(v.key)}))};
_.V9N=function(f){var H=Object,v=H.assign,t;f={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(t=f==null?void 0:f.getPlayerState())!=null?t:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return v.call(H,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},f,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
y0e=function(f){return function(H){var v=f(),t,M=(t=v.playerApi)==null?void 0:t.getPlayerState();H&&H!==v.playerState&&(H===1||H===2)&&v.setState({playerState:M})}};
m4R=function(f){return function(H){var v=f(),t=v.playerApi;t&&(H==null?void 0:H.type)==="newdata"&&(Yd5&&(clearTimeout(Yd5),Yd5=void 0),_.J("web_shorts_use_progress_state_for_gapless")?(H=t==null?void 0:t.getProgressState(H==null?void 0:H.playertype),H=H.seekableEnd-H.seekableStart):H=t==null?void 0:t.getDuration(H==null?void 0:H.playertype),v.setState({playedTime:0,videoDuration:H}))}};
$4r=function(f){return function(H){var v=f(),t=v.playerApi;if(t){var M=t.getPresentingPlayerType();_.J("web_shorts_use_progress_state_for_gapless")?(t=t.getProgressState(M),t=t.seekableEnd-t.seekableStart):t=t.getDuration(M);v.setState({playedTime:H,videoDuration:t})}}};
Ong=function(f){_.lw(112394,f,function(){return WD3},function(H){WD3=H})};
SdB=function(f,H){if(!f)return[];var v,t,M;f=((v=f.markersMap)==null?void 0:(t=v.find(function(h){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(h.key)}))==null?void 0:(M=t.value)==null?void 0:M.chapters)||[];
!gj_(f)||(H==null?0:H.ignoreStub)||(f=[IG5()].concat(_.pS(f)));return f};
IG5=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
gj_=function(f){if(f.length===0)return!1;var H;return((H=_.U(f[0],rs))==null?void 0:H.timeRangeStartMillis)!==0};
KA=function(f){return f?f.timeRangeStartMillis||0:0};
jLR=function(f,H){if(f.isDragging&&H)return f=d4e(f,H),f===-1?IG5():SdB(H)[f]};
d4e=function(f,H){return f.isDragging&&H?SdB(H,{ignoreStub:!0}).findIndex(function(v,t,M){v=sLb(f);return Znr(v,M,t).scrubberHovering}):-1};
sLb=function(f){return Object.assign({},f,{videoDuration:f.videoDuration*1E3,playedTime:f.playedTime*1E3,draggedTime:f.draggedTime*1E3})};
Znr=function(f,H,v){var t=KA(_.U(H[v],rs));H=KA(_.U(H[v+1],rs))||f.videoDuration;v=f.isDragging;var M;if(M=f.isDragging)M=f.draggedTime,M=M!==null&&M>=t&&M<H;var h=f.playedTime;return h!==null&&h>=t&&h<H?{videoPosition:"active",isScrubbing:v,scrubberHovering:M}:f.playedTime<t?{videoPosition:"pending",isScrubbing:v,scrubberHovering:M}:{videoPosition:"seen",isScrubbing:v,scrubberHovering:M}};
J03=function(f,H){return f.videoPosition==="seen"||(H===void 0?0:H)>0};
lG5=function(f,H,v){H=f/H.storyboardInterval;var t=SdB(v);if(!t.length)return-H*72;v=0;t=_.V(t);for(var M=t.next();!M.done;M=t.next())if(KA(_.U(M.value,rs))/1E3<f)v++;else break;return-(H*72)-v*56};
U4H=function(f){return f?f.width/f.columns:0};
ee3=function(f){return f.isHovering?f.hoveredTime:f.draggedTime};
LDR=function(f,H){f=f.draggedTime*1E3;return f>=H.visibleTimeRangeStartMillis&&f<=H.visibleTimeRangeEndMillis};
_.x4R=function(f){if(f===void 0||Number.isNaN(f))return"--:--";var H=Math.abs(Math.floor(f)),v=Math.floor(H/86400),t=Math.floor(H%86400/3600),M=Math.floor(H%3600/60);H=Math.floor(H%60);var h="";v>0&&(h+=v+":",t<10&&(h+="0"));if(v>0||t>0)h+=t+":",M<10&&(h+="0");h+=M+":";H<10&&(h+="0");h+=H;return f>=0?h:"-"+h};
BRr=function(f,H){return function(){var v=ee3(f());var t=H();var M=f().playerApi;if(M&&M.getNumberOfStoryboardLevels()!==0){var h=M.getStoryboardFrameIndex(v,1);h!==-1?t=M.getStoryboardFrame(h,1):(v=M.getStoryboardFrameIndex(v,0),M=M.getStoryboardFrame(v,0),t&&M&&(M.height*=3,M.width*=3),t=M)}else t=null;if(!t)return null;H()&&(t.width=90*t.columns,t.height=160*t.rows);return t}};
_.Db=function(f){if(!f||f.getVideoData)return f};
zeH=function(){var f;return{playerApi:(f=_.O7())!=null?f:void 0}};
FDb=function(f){var H;_.Y(function(v){if(v.nextAddress==1)return v.yield(_.Wx(),2);if(H=v.yieldResult)H.unMute(!0),H.setVolume(f,!0);_.Bj(v)})};
r0v=function(f,H){f&&(f.value=""+H,f.style.setProperty("--gradient-percent",H+"%"))};
KD_=function(f){var H;return(H=f==null?void 0:f.value)!=null?H:0};
D4N=function(){var f;_.Y(function(H){if(H.nextAddress==1)return H.yield(_.Wx(),2);f=H.yieldResult;if(!f)return H.return();f.isMuted()?f.unMute(!0):f.mute(!0);_.Bj(H)})};
oj5=function(f){var H=_.t8().resolve(_.o0).getPlayerElement();H&&f&&(f===1?H.pause():H.play())};
nj_=function(f){_.$E(f,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
peE=function(f){_.$E(f,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
upv=function(f){return _.F3(f.document.body,function(){return _.O(QLN,null)},"Af")};
aG_=function(){var f=window.performance.getEntriesByType("navigation");return f?f.map(function(H){return H.type}).includes("reload"):!1};
A0R=function(){nA(nA(nA(nA(nA(nA(nA(_.t8().resolve(_.pA),_.P85),_.GaE),_.C8b),_.EjR),_.NR_),_.c0b),_.XeR)};
bnv=function(f,H){H=H===void 0?!1:H;var v,t,M,h;return _.Y(function(y){if(y.nextAddress==1)return H||!_.J("kevlar_shorts_seedless_retry_initial_load")||(v=window,t=!(!v.getDataPromise&&!v.getInitialData),t)?y.yield(PW_(),2):(setTimeout(bnv.bind(window,f,!0),1E3),y.return());if(y.nextAddress!=3)return M=y.yieldResult,y.yield(in5(M),3);h=y.yieldResult;lL(f,h);_.Bj(y)})};
in5=function(f){var H;if((H=f.response)==null||!H.replacementEndpoint)return _.gj(f);H=_.t8().resolve(ds);f=f.response;_.U(f.replacementEndpoint,_.zD)&&f.sequenceContinuation&&(_.U(f.replacementEndpoint,_.zD).sequenceParams=f.sequenceContinuation);return Qk(H,f.replacementEndpoint,{},_.Mr.location.href,"shorts",function(){},function(){return!1})};
TRg=function(f){var H=_.t8().resolve(kaN);f.playerResponse&&H.handleResponse(f.playerResponse);f.response&&H.handleResponse(f.response)};
weE=function(f){var H=_.vS(),v,t=_.U((v=f.response)==null?void 0:v.frameworkUpdates,kK),M;v=_.U((M=f.playerResponse)==null?void 0:M.frameworkUpdates,kK);var h;f=_.U((h=f.reelWatchSequenceResponse)==null?void 0:h.frameworkUpdates,kK);t&&_.lA(t,H);v&&_.lA(v,H);f&&_.lA(f,H)};
qd3=function(f){var H;_.J("enable_redirect_linking_for_desktop_web_client")&&((H=window.location.hash)==null?0:H.includes("redirect_state"))&&f.url&&(f.url=f.url.toString()+window.location.hash)};
v23=function(f){var H=_.t8(),v=H.resolve(ds);H=H.resolve(_.faN);f.endpoint&&(v=HtE(v,f.endpoint),v.content&&f.response&&_.uL(H,f.response,v.content),v.player&&f.playerResponse&&_.uL(H,f.playerResponse,v.player),v.reelSequence&&f.reelWatchSequenceResponse&&_.uL(H,f.reelWatchSequenceResponse,v.reelSequence))};
a0=function(f,H){_.J("web_service_params_response_processor")&&TRg(H);weE(H);var v;(H==null?0:H.url)&&((v=window.location.hash)==null?0:v.includes("redirect_state"))&&(qd3(H),(v=u6s(H.url))&&_.mb(f.root,"yt-initialize-third-party",[v,H]));v23(H);v=_.t8();var t=v.resolve(tRb);H.playerResponse&&v.resolve(MRg).handleResponse(H.playerResponse);if(H.playerResponse){v=void 0;if(_.J("ab_v_vid_sig")&&H.endpoint){var M,h=(M=_.U(H.endpoint,_.wI))!=null?M:_.U(H.endpoint,_.zD);h&&(v=h.videoId)}hCH(t,H.playerResponse,
v)}H.playerResponse&&YsT(H.playerResponse)&&_.J("web_enable_ab_rsp_cl")?BOB().then(function(){RCE(t,H.playerResponse);lL(f,H)}):lL(f,H)};
y4v=function(f){if(f=f.root.data){var H=_.t8().resolve(VRR);f.endpoint&&(f.response&&H.handleResponse(f.response,void 0,document.querySelector("ytd-app")),f.playerResponse&&H.handleResponse(f.playerResponse),f.reelWatchSequenceResponse&&H.handleResponse(f.reelWatchSequenceResponse))}};
Y9s=function(f){var H,v,t,M,h,y;return _.Y(function(m){switch(m.nextAddress){case 1:H=window;if(!H.getDataPromise){m.jumpTo(2);break}_.Zc(m,3);return m.yield(H.getDataPromise(),5);case 5:v=m.yieldResult;a0(f,v);_.ch(m,4);break;case 3:return _.xu(m),m.yield(j4(),6);case 6:t=m.yieldResult,lL(f,t);case 4:return m.return();case 2:if(!_.J("sw_nav_preload_pbj")){m.jumpTo(7);break}H.fetchInitialData=function(){var W;return _.Y(function(I){if(I.nextAddress==1)return I.yield(j4(),2);W=I.yieldResult;lL(f,W);
_.Bj(I)})};
if(H.getInitialData){H.loadInitialData=function(W){a0(f,W)};
M=H.getInitialData();H.getInitialData=void 0;a0(f,M);m.jumpTo(8);break}H.fetchInitialData=void 0;return m.yield(j4(),9);case 9:h=m.yieldResult,lL(f,h);case 8:return m.return();case 7:H.getInitialData?(y=H.getInitialData(),H.getInitialData=void 0,a0(f,y)):H.loadInitialData=function(W){a0(f,W)},_.Bj(m)}})};
mZb=function(f){var H=0;return function(){return H<f.length?{done:!1,value:f[H++]}:{done:!0}}};
$ZT=typeof Object.defineProperties=="function"?Object.defineProperty:function(f,H,v){if(f==Array.prototype||f==Object.prototype)return f;f[H]=v.value;return f};
Wfs=function(f){f=["object"==typeof globalThis&&globalThis,f,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var H=0;H<f.length;++H){var v=f[H];if(v&&v.Math==Math)return v}throw Error("a");};
_.H7=Wfs(this);P1=function(f,H){if(H)a:{var v=_.H7;f=f.split(".");for(var t=0;t<f.length-1;t++){var M=f[t];if(!(M in v))break a;v=v[M]}f=f[f.length-1];t=v[f];H=H(t);H!=t&&H!=null&&$ZT(v,f,{configurable:!0,writable:!0,value:H})}};
P1("Symbol",function(f){if(f)return f;var H=function(h,y){this.$jscomp$symbol$id_=h;$ZT(this,"description",{configurable:!0,writable:!0,value:y})};
H.prototype.toString=function(){return this.$jscomp$symbol$id_};
var v="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",t=0,M=function(h){if(this instanceof M)throw new TypeError("b");return new H(v+(h||"")+"_"+t++,h)};
return M});
P1("Symbol.iterator",function(f){if(f)return f;f=Symbol("c");for(var H="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),v=0;v<H.length;v++){var t=_.H7[H[v]];typeof t==="function"&&typeof t.prototype[f]!="function"&&$ZT(t.prototype,f,{configurable:!0,writable:!0,value:function(){return Otr(mZb(this))}})}return f});
P1("Symbol.asyncIterator",function(f){return f?f:Symbol("d")});
var Otr=function(f){f={next:f};f[Symbol.iterator]=function(){return this};
return f},g2R=typeof Object.create=="function"?Object.create:function(f){var H=function(){};
H.prototype=f;return new H},Iav=function(){function f(){function v(){}
new v;Reflect.construct(v,[],function(){});
return new v instanceof v}
if(typeof Reflect!="undefined"&&Reflect.construct){if(f())return Reflect.construct;var H=Reflect.construct;return function(v,t,M){v=H(v,t);M&&Reflect.setPrototypeOf(v,M.prototype);return v}}return function(v,t,M){M===void 0&&(M=v);
M=g2R(M.prototype||Object.prototype);return Function.prototype.apply.call(v,M,t)||M}}(),S9b;
if(typeof Object.setPrototypeOf=="function")S9b=Object.setPrototypeOf;else{var dZ_;a:{var jGR={a:!0},sGN={};try{sGN.__proto__=jGR;dZ_=sGN.a;break a}catch(f){}dZ_=!1}S9b=dZ_?function(f,H){f.__proto__=H;if(f.__proto__!==H)throw new TypeError("e`"+f);return f}:null}GB=S9b;
_.e=function(f,H){f.prototype=g2R(H.prototype);f.prototype.constructor=f;if(GB)GB(f,H);else for(var v in H)if(v!="prototype")if(Object.defineProperties){var t=Object.getOwnPropertyDescriptor(H,v);t&&Object.defineProperty(f,v,t)}else f[v]=H[v];f.superClass_=H.prototype};
_.V=function(f){var H=typeof Symbol!="undefined"&&Symbol.iterator&&f[Symbol.iterator];if(H)return H.call(f);if(typeof f.length=="number")return{next:mZb(f)};throw Error("f`"+String(f));};
wA=function(f){for(var H,v=[];!(H=f.next()).done;)v.push(H.value);return v};
_.pS=function(f){return f instanceof Array?f:wA(_.V(f))};
_.EH=function(f){return CA(f,f)};
CA=function(f,H){f.raw=H;Object.freeze&&(Object.freeze(f),Object.freeze(H));return f};
NN=function(f,H){return Object.prototype.hasOwnProperty.call(f,H)};
ZtR=typeof Object.assign=="function"?Object.assign:function(f,H){for(var v=1;v<arguments.length;v++){var t=arguments[v];if(t)for(var M in t)NN(t,M)&&(f[M]=t[M])}return f};
P1("Object.assign",function(f){return f||ZtR});
var c1=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},J4B=function(f){if(f.isRunning_)throw new TypeError("h");
f.isRunning_=!0};
c1.prototype.JSC$8713_next_=function(f){this.yieldResult=f};
var las=function(f,H){f.abruptCompletion_={exception:H,isException:!0};f.nextAddress=f.catchAddress_||f.finallyAddress_};
c1.prototype.return=function(f){this.abruptCompletion_={return:f};this.nextAddress=this.finallyAddress_};
c1.prototype.yield=function(f,H){this.nextAddress=H;return{value:f}};
c1.prototype.jumpTo=function(f){this.nextAddress=f};
_.Bj=function(f){f.nextAddress=0};
_.Zc=function(f,H,v){f.catchAddress_=H;v!=void 0&&(f.finallyAddress_=v)};
_.Uq=function(f,H){f.catchAddress_=0;f.finallyAddress_=H||0};
_.ch=function(f,H,v){f.nextAddress=H;f.catchAddress_=v||0};
_.xu=function(f,H){f.catchAddress_=H||0;H=f.abruptCompletion_.exception;f.abruptCompletion_=null;return H};
_.lk=function(f,H,v,t){t?f.finallyContexts_[t]=f.abruptCompletion_:f.finallyContexts_=[f.abruptCompletion_];f.catchAddress_=H||0;f.finallyAddress_=v||0};
_.ea=function(f,H,v){v=f.finallyContexts_.splice(v||0)[0];(v=f.abruptCompletion_=f.abruptCompletion_||v)?v.isException?f.nextAddress=f.catchAddress_||f.finallyAddress_:v.jumpTo!=void 0&&f.finallyAddress_<v.jumpTo?(f.nextAddress=v.jumpTo,f.abruptCompletion_=null):f.nextAddress=f.finallyAddress_:f.nextAddress=H};
UZ3=function(f){this.JSC$8718_context_=new c1;this.program_=f};
LfH=function(f,H){J4B(f.JSC$8718_context_);var v=f.JSC$8718_context_.yieldAllIterator_;if(v)return eCE(f,"return"in v?v["return"]:function(t){return{value:t,done:!0}},H,f.JSC$8718_context_.return);
f.JSC$8718_context_.return(H);return XL(f)};
eCE=function(f,H,v,t){try{var M=H.call(f.JSC$8718_context_.yieldAllIterator_,v);if(!(M instanceof Object))throw new TypeError("g`"+M);if(!M.done)return f.JSC$8718_context_.isRunning_=!1,M;var h=M.value}catch(y){return f.JSC$8718_context_.yieldAllIterator_=null,las(f.JSC$8718_context_,y),XL(f)}f.JSC$8718_context_.yieldAllIterator_=null;t.call(f.JSC$8718_context_,h);return XL(f)};
XL=function(f){for(;f.JSC$8718_context_.nextAddress;)try{var H=f.program_(f.JSC$8718_context_);if(H)return f.JSC$8718_context_.isRunning_=!1,{value:H.value,done:!1}}catch(v){f.JSC$8718_context_.yieldResult=void 0,las(f.JSC$8718_context_,v)}f.JSC$8718_context_.isRunning_=!1;if(f.JSC$8718_context_.abruptCompletion_){H=f.JSC$8718_context_.abruptCompletion_;f.JSC$8718_context_.abruptCompletion_=null;if(H.isException)throw H.exception;return{value:H.return,done:!0}}return{value:void 0,done:!0}};
xZR=function(f){this.next=function(H){J4B(f.JSC$8718_context_);f.JSC$8718_context_.yieldAllIterator_?H=eCE(f,f.JSC$8718_context_.yieldAllIterator_.next,H,f.JSC$8718_context_.JSC$8713_next_):(f.JSC$8718_context_.JSC$8713_next_(H),H=XL(f));return H};
this.throw=function(H){J4B(f.JSC$8718_context_);f.JSC$8718_context_.yieldAllIterator_?H=eCE(f,f.JSC$8718_context_.yieldAllIterator_["throw"],H,f.JSC$8718_context_.JSC$8713_next_):(las(f.JSC$8718_context_,H),H=XL(f));return H};
this.return=function(H){return LfH(f,H)};
this[Symbol.iterator]=function(){return this}};
_.v1=function(f,H){H=new xZR(new UZ3(H));GB&&f.prototype&&GB(H,f.prototype);return H};
BVE=function(f){function H(t){return f.next(t)}
function v(t){return f.throw(t)}
return new Promise(function(t,M){function h(y){y.done?t(y.value):Promise.resolve(y.value).then(H,v).then(h,M)}
h(f.next())})};
_.Y=function(f){return BVE(new xZR(new UZ3(f)))};
_.Jf=function(f){var H=f[Symbol.asyncIterator];return H!==void 0?H.call(f):new zC5(_.V(f))};
zC5=function(f){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return f};
this.next=function(H){return Promise.resolve(f.next(H))};
this["throw"]=function(H){return new Promise(function(v,t){var M=f["throw"];M!==void 0?v(M.call(f,H)):(v=f["return"],v!==void 0&&v.call(f),t(new TypeError("i")))})};
f["return"]!==void 0&&(this["return"]=function(H){return Promise.resolve(f["return"](H))})};
_.NA=function(){for(var f=Number(this),H=[],v=f;v<arguments.length;v++)H[v-f]=arguments[v];return H};
_.tQ=function(f){return f};
P1("globalThis",function(f){return f||_.H7});
P1("Reflect",function(f){return f?f:{}});
P1("Reflect.construct",function(){return Iav});
P1("Reflect.setPrototypeOf",function(f){return f?f:GB?function(H,v){try{return GB(H,v),!0}catch(t){return!1}}:null});
P1("Promise",function(f){function H(){this.batch_=null}
function v(y){return y instanceof M?y:new M(function(m){m(y)})}
if(f&&(typeof _.H7.PromiseRejectionEvent!=="undefined"||!_.H7.Promise||_.H7.Promise.toString().indexOf("[native code]")===-1))return f;H.prototype.asyncExecute=function(y){if(this.batch_==null){this.batch_=[];var m=this;this.asyncExecuteFunction(function(){m.executeBatch_()})}this.batch_.push(y)};
var t=_.H7.setTimeout;H.prototype.asyncExecuteFunction=function(y){t(y,0)};
H.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var y=this.batch_;this.batch_=[];for(var m=0;m<y.length;++m){var W=y[m];y[m]=null;try{W()}catch(I){this.asyncThrow_(I)}}}this.batch_=null};
H.prototype.asyncThrow_=function(y){this.asyncExecuteFunction(function(){throw y;})};
var M=function(y){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var m=this.createResolveAndReject_();try{y(m.resolve,m.reject)}catch(W){m.reject(W)}};
M.prototype.createResolveAndReject_=function(){function y(I){return function(S){W||(W=!0,I.call(m,S))}}
var m=this,W=!1;return{resolve:y(this.resolveTo_),reject:y(this.JSC$8746_reject_)}};
M.prototype.resolveTo_=function(y){if(y===this)this.JSC$8746_reject_(new TypeError("m"));else if(y instanceof M)this.settleSameAsPromise_(y);else{a:switch(typeof y){case "object":var m=y!=null;break a;case "function":m=!0;break a;default:m=!1}m?this.resolveToNonPromiseObj_(y):this.fulfill_(y)}};
M.prototype.resolveToNonPromiseObj_=function(y){var m=void 0;try{m=y.then}catch(W){this.JSC$8746_reject_(W);return}typeof m=="function"?this.settleSameAsThenable_(m,y):this.fulfill_(y)};
M.prototype.JSC$8746_reject_=function(y){this.settle_(2,y)};
M.prototype.fulfill_=function(y){this.settle_(1,y)};
M.prototype.settle_=function(y,m){if(this.state_!=0)throw Error("n`"+y+"`"+m+"`"+this.state_);this.state_=y;this.result_=m;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
M.prototype.scheduleUnhandledRejectionCheck_=function(){var y=this;t(function(){if(y.notifyUnhandledRejection_()){var m=_.H7.console;typeof m!=="undefined"&&m.error(y.result_)}},1)};
M.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var y=_.H7.CustomEvent,m=_.H7.Event,W=_.H7.dispatchEvent;if(typeof W==="undefined")return!0;typeof y==="function"?y=new y("unhandledrejection",{cancelable:!0}):typeof m==="function"?y=new m("unhandledrejection",{cancelable:!0}):(y=_.H7.document.createEvent("CustomEvent"),y.initCustomEvent("unhandledrejection",!1,!0,y));y.promise=this;y.reason=this.result_;return W(y)};
M.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var y=0;y<this.onSettledCallbacks_.length;++y)h.asyncExecute(this.onSettledCallbacks_[y]);this.onSettledCallbacks_=null}};
var h=new H;M.prototype.settleSameAsPromise_=function(y){var m=this.createResolveAndReject_();y.callWhenSettled_(m.resolve,m.reject)};
M.prototype.settleSameAsThenable_=function(y,m){var W=this.createResolveAndReject_();try{y.call(m,W.resolve,W.reject)}catch(I){W.reject(I)}};
M.prototype.then=function(y,m){function W(Z,l){return typeof Z=="function"?function(L){try{I(Z(L))}catch(r){S(r)}}:l}
var I,S,d=new M(function(Z,l){I=Z;S=l});
this.callWhenSettled_(W(y,I),W(m,S));return d};
M.prototype.catch=function(y){return this.then(void 0,y)};
M.prototype.callWhenSettled_=function(y,m){function W(){switch(I.state_){case 1:y(I.result_);break;case 2:m(I.result_);break;default:throw Error("o`"+I.state_);}}
var I=this;this.onSettledCallbacks_==null?h.asyncExecute(W):this.onSettledCallbacks_.push(W);this.isRejectionHandled_=!0};
M.resolve=v;M.reject=function(y){return new M(function(m,W){W(y)})};
M.race=function(y){return new M(function(m,W){for(var I=_.V(y),S=I.next();!S.done;S=I.next())v(S.value).callWhenSettled_(m,W)})};
M.all=function(y){var m=_.V(y),W=m.next();return W.done?v([]):new M(function(I,S){function d(L){return function(r){Z[L]=r;l--;l==0&&I(Z)}}
var Z=[],l=0;do Z.push(void 0),l++,v(W.value).callWhenSettled_(d(Z.length-1),S),W=m.next();while(!W.done)})};
return M});
var AQ=function(f,H,v){if(f==null)throw new TypeError("p`"+v);if(H instanceof RegExp)throw new TypeError("q`"+v);return f+""};
P1("String.prototype.startsWith",function(f){return f?f:function(H,v){var t=AQ(this,H,"startsWith"),M=t.length,h=H.length;v=Math.max(0,Math.min(v|0,t.length));for(var y=0;y<h&&v<M;)if(t[v++]!=H[y++])return!1;return y>=h}});
P1("Object.setPrototypeOf",function(f){return f||GB});
P1("Symbol.dispose",function(f){return f?f:Symbol("r")});
P1("SuppressedError",function(f){function H(v,t,M){if(!(this instanceof H))return new H(v,t,M);M=Error(M);"stack"in M&&(this.stack=M.stack);this.message=M.message;this.error=v;this.suppressed=t}
if(f)return f;_.e(H,Error);H.prototype.name="SuppressedError";return H});
var Ff3=function(f,H,v){f instanceof String&&(f=String(f));for(var t=f.length,M=0;M<t;M++){var h=f[M];if(H.call(v,h,M,f))return{i:M,v:h}}return{i:-1,v:void 0}};
P1("Array.prototype.find",function(f){return f?f:function(H,v){return Ff3(this,H,v).v}});
P1("WeakMap",function(f){function H(){}
function v(W){var I=typeof W;return I==="object"&&W!==null||I==="function"}
function t(W){if(!NN(W,h)){var I=new H;$ZT(W,h,{value:I})}}
function M(W){var I=Object[W];I&&(Object[W]=function(S){if(S instanceof H)return S;Object.isExtensible(S)&&t(S);return I(S)})}
if(function(){if(!f||!Object.seal)return!1;try{var W=Object.seal({}),I=Object.seal({}),S=new f([[W,2],[I,3]]);if(S.get(W)!=2||S.get(I)!=3)return!1;S.delete(W);S.set(I,4);return!S.has(W)&&S.get(I)==4}catch(d){return!1}}())return f;
var h="$jscomp_hidden_"+Math.random();M("freeze");M("preventExtensions");M("seal");var y=0,m=function(W){this.JSC$8753_id_=(y+=Math.random()+1).toString();if(W){W=_.V(W);for(var I;!(I=W.next()).done;)I=I.value,this.set(I[0],I[1])}};
m.prototype.set=function(W,I){if(!v(W))throw Error("s");t(W);if(!NN(W,h))throw Error("t`"+W);W[h][this.JSC$8753_id_]=I;return this};
m.prototype.get=function(W){return v(W)&&NN(W,h)?W[h][this.JSC$8753_id_]:void 0};
m.prototype.has=function(W){return v(W)&&NN(W,h)&&NN(W[h],this.JSC$8753_id_)};
m.prototype.delete=function(W){return v(W)&&NN(W,h)&&NN(W[h],this.JSC$8753_id_)?delete W[h][this.JSC$8753_id_]:!1};
return m});
P1("Map",function(f){if(function(){if(!f||typeof f!="function"||!f.prototype.entries||typeof Object.seal!="function")return!1;try{var m=Object.seal({x:4}),W=new f(_.V([[m,"s"]]));if(W.get(m)!="s"||W.size!=1||W.get({x:4})||W.set({x:4},"t")!=W||W.size!=2)return!1;var I=W.entries(),S=I.next();if(S.done||S.value[0]!=m||S.value[1]!="s")return!1;S=I.next();return S.done||S.value[0].x!=4||S.value[1]!="t"||!I.next().done?!1:!0}catch(d){return!1}}())return f;
var H=new WeakMap,v=function(m){this[0]={};this[1]=h();this.size=0;if(m){m=_.V(m);for(var W;!(W=m.next()).done;)W=W.value,this.set(W[0],W[1])}};
v.prototype.set=function(m,W){m=m===0?0:m;var I=t(this,m);I.list||(I.list=this[0][I.id]=[]);I.entry?I.entry.value=W:(I.entry={next:this[1],previous:this[1].previous,head:this[1],key:m,value:W},I.list.push(I.entry),this[1].previous.next=I.entry,this[1].previous=I.entry,this.size++);return this};
v.prototype.delete=function(m){m=t(this,m);return m.entry&&m.list?(m.list.splice(m.index,1),m.list.length||delete this[0][m.id],m.entry.previous.next=m.entry.next,m.entry.next.previous=m.entry.previous,m.entry.head=null,this.size--,!0):!1};
v.prototype.clear=function(){this[0]={};this[1]=this[1].previous=h();this.size=0};
v.prototype.has=function(m){return!!t(this,m).entry};
v.prototype.get=function(m){return(m=t(this,m).entry)&&m.value};
v.prototype.entries=function(){return M(this,function(m){return[m.key,m.value]})};
v.prototype.keys=function(){return M(this,function(m){return m.key})};
v.prototype.values=function(){return M(this,function(m){return m.value})};
v.prototype.forEach=function(m,W){for(var I=this.entries(),S;!(S=I.next()).done;)S=S.value,m.call(W,S[1],S[0],this)};
v.prototype[Symbol.iterator]=v.prototype.entries;var t=function(m,W){var I=W&&typeof W;I=="object"||I=="function"?H.has(W)?I=H.get(W):(I=""+ ++y,H.set(W,I)):I="p_"+W;var S=m[0][I];if(S&&NN(m[0],I))for(m=0;m<S.length;m++){var d=S[m];if(W!==W&&d.key!==d.key||W===d.key)return{id:I,list:S,index:m,entry:d}}return{id:I,list:S,index:-1,entry:void 0}},M=function(m,W){var I=m[1];
return Otr(function(){if(I){for(;I.head!=m[1];)I=I.previous;for(;I.next!=I.head;)return I=I.next,{done:!1,value:W(I)};I=null}return{done:!0,value:void 0}})},h=function(){var m={};
return m.previous=m.next=m.head=m},y=0;
return v});
P1("Set",function(f){if(function(){if(!f||typeof f!="function"||!f.prototype.entries||typeof Object.seal!="function")return!1;try{var v=Object.seal({x:4}),t=new f(_.V([v]));if(!t.has(v)||t.size!=1||t.add(v)!=t||t.size!=1||t.add({x:4})!=t||t.size!=2)return!1;var M=t.entries(),h=M.next();if(h.done||h.value[0]!=v||h.value[1]!=v)return!1;h=M.next();return h.done||h.value[0]==v||h.value[0].x!=4||h.value[1]!=h.value[0]?!1:M.next().done}catch(y){return!1}}())return f;
var H=function(v){this.JSC$8767_map_=new Map;if(v){v=_.V(v);for(var t;!(t=v.next()).done;)this.add(t.value)}this.size=this.JSC$8767_map_.size};
H.prototype.add=function(v){v=v===0?0:v;this.JSC$8767_map_.set(v,v);this.size=this.JSC$8767_map_.size;return this};
H.prototype.delete=function(v){v=this.JSC$8767_map_.delete(v);this.size=this.JSC$8767_map_.size;return v};
H.prototype.clear=function(){this.JSC$8767_map_.clear();this.size=0};
H.prototype.has=function(v){return this.JSC$8767_map_.has(v)};
H.prototype.entries=function(){return this.JSC$8767_map_.entries()};
H.prototype.values=function(){return this.JSC$8767_map_.values()};
H.prototype.keys=H.prototype.values;H.prototype[Symbol.iterator]=H.prototype.values;H.prototype.forEach=function(v,t){var M=this;this.JSC$8767_map_.forEach(function(h){return v.call(t,h,h,M)})};
return H});
P1("Math.log2",function(f){return f?f:function(H){return Math.log(H)/Math.LN2}});
P1("Object.values",function(f){return f?f:function(H){var v=[],t;for(t in H)NN(H,t)&&v.push(H[t]);return v}});
P1("Object.is",function(f){return f?f:function(H,v){return H===v?H!==0||1/H===1/v:H!==H&&v!==v}});
P1("Array.prototype.includes",function(f){return f?f:function(H,v){var t=this;t instanceof String&&(t=String(t));var M=t.length;v=v||0;for(v<0&&(v=Math.max(v+M,0));v<M;v++){var h=t[v];if(h===H||Object.is(h,H))return!0}return!1}});
P1("String.prototype.includes",function(f){return f?f:function(H,v){return AQ(this,H,"includes").indexOf(H,v||0)!==-1}});
P1("Array.from",function(f){return f?f:function(H,v,t){v=v!=null?v:function(m){return m};
var M=[],h=typeof Symbol!="undefined"&&Symbol.iterator&&H[Symbol.iterator];if(typeof h=="function"){H=h.call(H);for(var y=0;!(h=H.next()).done;)M.push(v.call(t,h.value,y++))}else for(h=H.length,y=0;y<h;y++)M.push(v.call(t,H[y],y));return M}});
P1("Object.entries",function(f){return f?f:function(H){var v=[],t;for(t in H)NN(H,t)&&v.push([t,H[t]]);return v}});
P1("Number.isFinite",function(f){return f?f:function(H){return typeof H!=="number"?!1:!isNaN(H)&&H!==Infinity&&H!==-Infinity}});
P1("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
P1("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
P1("Number.isInteger",function(f){return f?f:function(H){return Number.isFinite(H)?H===Math.floor(H):!1}});
P1("Number.isSafeInteger",function(f){return f?f:function(H){return Number.isInteger(H)&&Math.abs(H)<=Number.MAX_SAFE_INTEGER}});
P1("String.prototype.endsWith",function(f){return f?f:function(H,v){var t=AQ(this,H,"endsWith");v===void 0&&(v=t.length);v=Math.max(0,Math.min(v|0,t.length));for(var M=H.length;M>0&&v>0;)if(t[--v]!=H[--M])return!1;return M<=0}});
var r4v=function(f,H){f instanceof String&&(f+="");var v=0,t=!1,M={next:function(){if(!t&&v<f.length){var h=v++;return{value:H(h,f[h]),done:!1}}t=!0;return{done:!0,value:void 0}}};
M[Symbol.iterator]=function(){return M};
return M};
P1("Array.prototype.entries",function(f){return f?f:function(){return r4v(this,function(H,v){return[H,v]})}});
P1("Math.trunc",function(f){return f?f:function(H){H=Number(H);if(isNaN(H)||H===Infinity||H===-Infinity||H===0)return H;var v=Math.floor(Math.abs(H));return H<0?-v:v}});
P1("Number.isNaN",function(f){return f?f:function(H){return typeof H==="number"&&isNaN(H)}});
P1("Array.prototype.keys",function(f){return f?f:function(){return r4v(this,function(H){return H})}});
P1("Array.prototype.values",function(f){return f?f:function(){return r4v(this,function(H,v){return v})}});
P1("Array.prototype.fill",function(f){return f?f:function(H,v,t){var M=this.length||0;v<0&&(v=Math.max(0,M+v));if(t==null||t>M)t=M;t=Number(t);t<0&&(t=Math.max(0,M+t));for(v=Number(v||0);v<t;v++)this[v]=H;return this}});
var bL=function(f){return f?f:Array.prototype.fill};
P1("Int8Array.prototype.fill",bL);P1("Uint8Array.prototype.fill",bL);P1("Uint8ClampedArray.prototype.fill",bL);P1("Int16Array.prototype.fill",bL);P1("Uint16Array.prototype.fill",bL);P1("Int32Array.prototype.fill",bL);P1("Uint32Array.prototype.fill",bL);P1("Float32Array.prototype.fill",bL);P1("Float64Array.prototype.fill",bL);
P1("Object.fromEntries",function(f){return f?f:function(H){var v={};if(!(Symbol.iterator in H))throw new TypeError("u`"+H);H=H[Symbol.iterator].call(H);for(var t=H.next();!t.done;t=H.next()){t=t.value;if(Object(t)!==t)throw new TypeError("v");v[t[0]]=t[1]}return v}});
P1("String.prototype.replaceAll",function(f){return f?f:function(H,v){if(H instanceof RegExp&&!H.global)throw new TypeError("w");return H instanceof RegExp?this.replace(H,v):this.replace(new RegExp(String(H).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),v)}});
P1("Object.getOwnPropertySymbols",function(f){return f?f:function(){return[]}});
P1("String.prototype.repeat",function(f){return f?f:function(H){var v=AQ(this,null,"repeat");if(H<0||H>1342177279)throw new RangeError("x");H|=0;for(var t="";H;)if(H&1&&(t+=v),H>>>=1)v+=v;return t}});
P1("Array.prototype.findIndex",function(f){return f?f:function(H,v){return Ff3(this,H,v).i}});
P1("Array.prototype.flatMap",function(f){return f?f:function(H,v){var t=[];Array.prototype.forEach.call(this,function(M,h){M=H.call(v,M,h,this);Array.isArray(M)?t.push.apply(t,M):t.push(M)});
return t}});
P1("String.prototype.codePointAt",function(f){return f?f:function(H){var v=AQ(this,null,"codePointAt"),t=v.length;H=Number(H)||0;if(H>=0&&H<t){H|=0;var M=v.charCodeAt(H);if(M<55296||M>56319||H+1===t)return M;H=v.charCodeAt(H+1);return H<56320||H>57343?M:(M-55296)*1024+H+9216}}});
P1("String.fromCodePoint",function(f){return f?f:function(H){for(var v="",t=0;t<arguments.length;t++){var M=Number(arguments[t]);if(M<0||M>1114111||M!==Math.floor(M))throw new RangeError("y`"+M);M<=65535?v+=String.fromCharCode(M):(M-=65536,v+=String.fromCharCode(M>>>10&1023|55296),v+=String.fromCharCode(M&1023|56320))}return v}});
P1("String.prototype.trimLeft",function(f){function H(){return this.replace(/^[\s\xa0]+/,"")}
return f||H});
P1("String.prototype.trimStart",function(f){return f||String.prototype.trimLeft});
P1("String.prototype.padStart",function(f){return f?f:function(H,v){var t=AQ(this,null,"padStart");H-=t.length;v=v!==void 0?String(v):" ";return(H>0&&v?v.repeat(Math.ceil(H/v.length)).substring(0,H):"")+t}});
P1("Promise.prototype.finally",function(f){return f?f:function(H){return this.then(function(v){return Promise.resolve(H()).then(function(){return v})},function(v){return Promise.resolve(H()).then(function(){throw v;
})})}});
P1("Math.imul",function(f){return f?f:function(H,v){H=Number(H);v=Number(v);var t=H&65535,M=v&65535;return t*M+((H>>>16&65535)*M+t*(v>>>16&65535)<<16>>>0)|0}});
P1("Object.hasOwn",function(f){return f?f:function(H,v){return Object.prototype.hasOwnProperty.call(H,v)}});
P1("Math.sign",function(f){return f?f:function(H){H=Number(H);return H===0||isNaN(H)?H:H>0?1:-1}});
P1("Array.prototype.flat",function(f){return f?f:function(H){H=H===void 0?1:H;var v=[];Array.prototype.forEach.call(this,function(t){Array.isArray(t)&&H>0?(t=Array.prototype.flat.call(t,H-1),v.push.apply(v,t)):v.push(t)});
return v}});
P1("String.raw",function(f){return f?f:function(H,v){if(H==null)throw new TypeError("z");for(var t=H.raw,M=t.length,h="",y=0;y<M;++y)h+=t[y],y+1<M&&y+1<arguments.length&&(h+=String(arguments[y+1]));return h}});
P1("Reflect.ownKeys",function(f){return f?f:function(H){var v=[],t=Object.getOwnPropertyNames(H);H=Object.getOwnPropertySymbols(H);for(var M=0;M<t.length;M++)(t[M].substring(0,14)=="jscomp_symbol_"?H:v).push(t[M]);return v.concat(H)}});
P1("Object.getOwnPropertyDescriptors",function(f){return f?f:function(H){for(var v={},t=Reflect.ownKeys(H),M=0;M<t.length;M++)v[t[M]]=Object.getOwnPropertyDescriptor(H,t[M]);return v}});
P1("WeakSet",function(f){if(function(){if(!f||!Object.seal)return!1;try{var v=Object.seal({}),t=Object.seal({}),M=new f([v]);if(!M.has(v)||M.has(t))return!1;M.delete(v);M.add(t);return!M.has(v)&&M.has(t)}catch(h){return!1}}())return f;
var H=function(v){this.JSC$8780_map_=new WeakMap;if(v){v=_.V(v);for(var t;!(t=v.next()).done;)this.add(t.value)}};
H.prototype.add=function(v){this.JSC$8780_map_.set(v,!0);return this};
H.prototype.has=function(v){return this.JSC$8780_map_.has(v)};
H.prototype.delete=function(v){return this.JSC$8780_map_.delete(v)};
return H});
P1("Promise.allSettled",function(f){function H(t){return{status:"fulfilled",value:t}}
function v(t){return{status:"rejected",reason:t}}
return f?f:function(t){var M=this;t=Array.from(t,function(h){return M.resolve(h).then(H,v)});
return M.all(t)}});
P1("Number.parseInt",function(f){return f||parseInt});
_._DumpException=window._DumpException||function(f){throw f;};
window._DumpException=_._DumpException;var KfT=window.ytcsi;KfT&&typeof KfT.tick==="function"&&KfT.tick("rses_dpj");var DZ3,iL,kf,TB,o2R,n25,pyg,QGR,Dr,uc3;DZ3=DZ3||{};_.Mr=this||self;_.qJ=function(f,H,v){f=f.split(".");v=v||_.Mr;for(var t;f.length&&(t=f.shift());)f.length||H===void 0?v[t]&&v[t]!==Object.prototype[t]?v=v[t]:v=v[t]={}:v[t]=H};
iL=function(f,H){var v=_.ES("WIZ_global_data.oxN3nb");f=v&&v[f];return f!=null?f:H};
kf=_.Mr._F_toggles_default_kevlar_base||[];TB=function(){};
TB.get=function(){return null};
_.ByN=null;_.ES=function(f,H){f=f.split(".");H=H||_.Mr;for(var v=0;v<f.length;v++)if(H=H[f[v]],H==null)return null;return H};
_.ws=function(f){f.instance_=void 0;f.getInstance=function(){return f.instance_?f.instance_:f.instance_=new f}};
_.qT=function(f){var H=typeof f;return H!="object"?H:f?Array.isArray(f)?"array":H:"null"};
_.Tb=function(f){var H=_.qT(f);return H=="array"||H=="object"&&typeof f.length=="number"};
_.vo=function(f){var H=typeof f;return H=="object"&&f!=null||H=="function"};
_.h9=function(f){return Object.prototype.hasOwnProperty.call(f,o2R)&&f[o2R]||(f[o2R]=++n25)};
o2R="closure_uid_"+(Math.random()*1E9>>>0);n25=0;pyg=function(f,H,v){return f.call.apply(f.bind,arguments)};
QGR=function(f,H,v){if(!f)throw Error();if(arguments.length>2){var t=Array.prototype.slice.call(arguments,2);return function(){var M=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(M,t);return f.apply(H,M)}}return function(){return f.apply(H,arguments)}};
_.FH=function(f,H,v){_.FH=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?pyg:QGR;return _.FH.apply(null,arguments)};
_.l0=function(f,H){var v=Array.prototype.slice.call(arguments,1);return function(){var t=v.slice();t.push.apply(t,arguments);return f.apply(this,t)}};
_.qN=function(){return Date.now()};
Dr=function(f){return f};
_.f8=function(f,H){function v(){}
v.prototype=H.prototype;f.superClass_=H.prototype;f.prototype=new v;f.prototype.constructor=f;f.base=function(t,M,h){for(var y=Array(arguments.length-2),m=2;m<arguments.length;m++)y[m-2]=arguments[m];return H.prototype[M].apply(t,y)}};
uc3=function(f){return f};var aaH,PjE;_.E=function(f,H,v,t){var M=arguments.length,h=M<3?H:t===null?t=Object.getOwnPropertyDescriptor(H,v):t,y;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")h=Reflect.decorate(f,H,v,t);else for(var m=f.length-1;m>=0;m--)if(y=f[m])h=(M<3?y(h):M>3?y(H,v,h):y(H,v))||h;M>3&&h&&Object.defineProperty(H,v,h)};
_.N=function(f,H){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(f,H)};
aaH=function(f,H){if(H!==null&&H!==void 0){if(typeof H!=="object"&&typeof H!=="function")throw new TypeError("A");if(v===void 0){if(!Symbol.dispose)throw new TypeError("C");var v=H[Symbol.dispose]}if(typeof v!=="function")throw new TypeError("D");f.stack.push({value:H,dispose:v,async:!1})}return H};
PjE=function(f){function H(h){f.error=f.hasError?new SuppressedError(h,f.error,"An error was suppressed during disposal."):h;f.hasError=!0}
function v(){for(;t=f.stack.pop();)try{if(!t.async&&M===1)return M=0,f.stack.push(t),Promise.resolve().then(v);if(t.dispose){var h=t.dispose.call(t.value);if(t.async)return M|=2,Promise.resolve(h).then(v,function(y){H(y);return v()})}else M|=1}catch(y){H(y)}if(M===1)return f.hasError?Promise.reject(f.error):Promise.resolve();
if(f.hasError)throw f.error;}
var t,M=0;v()};_.f8(_.vR,Error);_.vR.prototype.name="CustomError";var GS5;var Cjv=void 0,E2E,NV_=typeof TextDecoder!=="undefined",tEH,vvN=typeof String.prototype.isWellFormed==="function",HgR=typeof TextEncoder!=="undefined";var c4E;_.B_=function(f){for(var H=[],v=0,t=0;t<f.length;t++){var M=f.charCodeAt(t);M<128?H[v++]=M:(M<2048?H[v++]=M>>6|192:((M&64512)==55296&&t+1<f.length&&(f.charCodeAt(t+1)&64512)==56320?(M=65536+((M&1023)<<10)+(f.charCodeAt(++t)&1023),H[v++]=M>>18|240,H[v++]=M>>12&63|128):H[v++]=M>>12|224,H[v++]=M>>6&63|128),H[v++]=M&63|128)}return H};
c4E=function(f){for(var H=[],v=0,t=0;v<f.length;){var M=f[v++];if(M<128)H[t++]=String.fromCharCode(M);else if(M>191&&M<224){var h=f[v++];H[t++]=String.fromCharCode((M&31)<<6|h&63)}else if(M>239&&M<365){h=f[v++];var y=f[v++],m=f[v++];M=((M&7)<<18|(h&63)<<12|(y&63)<<6|m&63)-65536;H[t++]=String.fromCharCode(55296+(M>>10));H[t++]=String.fromCharCode(56320+(M&1023))}else h=f[v++],y=f[v++],H[t++]=String.fromCharCode((M&15)<<12|(h&63)<<6|y&63)}return H.join("")};var I3=String.prototype.trim?function(f){return f.trim()}:function(f){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(f)[1]},XyE=/&/g,A4H=/</g,bts=/>/g,itH=/"/g,kSR=/'/g,TVe=/\x00/g,wye=/[\x00&<>"']/;var HI=!!(kf[0]>>15&1),q9_=!!(kf[0]&1024),fQe=!!(kf[0]>>16&1),HzN=!!(kf[0]&8),vsR=!!(kf[0]&2),tjE=!!(kf[0]&4),MjR=!!(kf[0]&16),hWb=!!(kf[0]&128);var RWB=iL(1,!0),Z_=HI?fQe:iL(610401301,!1),Vjg=HI?HzN:iL(772657768,!1),yIB=HI?vsR:iL(513659523,!1),YKR=HI?q9_||!tjE:iL(568333945,!0),oeg=HI?MjR:iL(1331761403,!1),$xe=HI?q9_||!hWb:iL(748402147,RWB);var JN,mqv=_.Mr.navigator;JN=mqv?mqv.userAgentData||null:null;var i7;_.Nr=function(f,H){return Array.prototype.indexOf.call(f,H,void 0)};
_.X3=function(f,H,v){Array.prototype.forEach.call(f,H,v)};
_.vI=function(f,H,v){return Array.prototype.filter.call(f,H,v)};
_.uh=function(f,H,v){return Array.prototype.map.call(f,H,v)};
i7=function(f,H,v){return Array.prototype.some.call(f,H,v)};
_.Wa5=function(f,H,v){return Array.prototype.every.call(f,H,v)};var tZ=function(f){tZ[" "](f);return f};
tZ[" "]=function(){};
var slv=function(f,H){try{return tZ(f[H]),!0}catch(v){}return!1},W$R=function(f,H,v,t){t=t?t(H):H;
return Object.prototype.hasOwnProperty.call(f,t)?f[t]:f[t]=v(H)};var $qE,TE,Woe,OzN,IQ_,SK3,$L3,dqg,jJR,sJe,Wkg,JIb,lQe,xqN,B7b,zW_;_.YfN=function(){return _.Mr.navigator||null};
$qE=Fe();_.My=RTe();TE=xv("Edge");Woe=TE||_.My;_.hZ=xv("Gecko")&&!(_.WR(_.jE(),"WebKit")&&!xv("Edge"))&&!(xv("Trident")||xv("MSIE"))&&!xv("Edge");_.Rp=_.WR(_.jE(),"WebKit")&&!xv("Edge");OzN=_.Rp&&xv("Mobile");_.gss=_.gv5();IQ_=_.I_5();SK3=(pg()?JN.platform==="Linux":xv("Linux"))||_.S5v();$L3=_.Wss();dqg=Ogv();jJR=xv("iPad");sJe=xv("iPod");_.Zzr=_.QR();Wkg=_.WR(_.jE(),"KaiOS");JIb=function(){var f=_.Mr.document;return f?f.documentMode:void 0};
a:{var UqN="",eW5=function(){var f=_.jE();if(_.hZ)return/rv:([^\);]+)(\)|;)/.exec(f);if(TE)return/Edge\/([\d\.]+)/.exec(f);if(_.My)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(f);if(_.Rp)return/WebKit\/(\S+)/.exec(f);if($qE)return/(?:Version)[ \/]?(\S+)/.exec(f)}();
eW5&&(UqN=eW5?eW5[1]:"");if(_.My){var Los=JIb();if(Los!=null&&Los>parseFloat(UqN)){lQe=String(Los);break a}}lQe=UqN}xqN=lQe;B7b={};_.VB=function(f){return W$R(B7b,f,function(){return _.SE(xqN,f)>=0})};
if(_.Mr.document&&_.My){var FoH=JIb();zW_=FoH?FoH:parseInt(xqN,10)||void 0}else zW_=void 0;_.rI_=zW_;var UON,ej5,KoE;_.yB=rB();UON=Ogv()||xv("iPod");ej5=xv("iPad");KoE=_.yNE();_.Y_=_.Kg();_.ud=_.o3()&&!_.QR();var Dq3,m9,uUr,Iu3,nsb,osN;Dq3={};m9=null;uUr=_.hZ||_.Rp||typeof _.Mr.btoa=="function";_.QG=function(f,H){H===void 0&&(H=0);osN();H=Dq3[H];for(var v=Array(Math.floor(f.length/3)),t=H[64]||"",M=0,h=0;M<f.length-2;M+=3){var y=f[M],m=f[M+1],W=f[M+2],I=H[y>>2];y=H[(y&3)<<4|m>>4];m=H[(m&15)<<2|W>>6];W=H[W&63];v[h++]=I+y+m+W}I=0;W=t;switch(f.length-M){case 2:I=f[M+1],W=H[(I&15)<<2]||t;case 1:f=f[M],v[h]=H[f>>2]+H[(f&3)<<4|I>>4]+W+t}return v.join("")};
Iu3=function(f){var H="";nsb(f,function(v){H+=String.fromCharCode(v)});
return H};
_.r65=function(f){var H=[];nsb(f,function(v){H.push(v)});
return H};
_.yM=function(f){var H=f.length,v=H*3/4;v%3?v=Math.floor(v):_.$v("=.",f[H-1])&&(v=_.$v("=.",f[H-2])?v-2:v-1);var t=new Uint8Array(v),M=0;nsb(f,function(h){t[M++]=h});
return M!==v?t.subarray(0,M):t};
nsb=function(f,H){function v(W){for(;t<f.length;){var I=f.charAt(t++),S=m9[I];if(S!=null)return S;if(!_.ms(I))throw Error("H`"+I);}return W}
osN();for(var t=0;;){var M=v(-1),h=v(0),y=v(64),m=v(64);if(m===64&&M===-1)break;H(M<<2|h>>4);y!=64&&(H(h<<4&240|y>>2),m!=64&&H(y<<6&192|m))}};
osN=function(){if(!m9){m9={};for(var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),H=["+/=","+/","-_=","-_.","-_"],v=0;v<5;v++){var t=f.concat(H[v].split(""));Dq3[v]=t;for(var M=0;M<t.length;M++){var h=t[M];m9[h]===void 0&&(m9[h]=M)}}}};var GbN=typeof Uint8Array!=="undefined",Fse=!_.My&&typeof btoa==="function",rNH=/[-_.]/g,BBg={"-":"+",_:"/",".":"="},on={};var Dh,QJ5;Dh=function(f,H){if(H!==on)throw Error("J");this.JSC$8810_value_=f;if(f!=null&&f.length===0)throw Error("I");};
_.nr=function(){return p3T||(p3T=new Dh(null,on))};
QJ5=function(f){return new Uint8Array(o55(f)||0)};
Dh.prototype.isEmpty=function(){return this.JSC$8810_value_==null};
Dh.prototype.sizeBytes=function(){var f=o55(this);return f?f.length:0};
var o55=function(f){if(on!==on)throw Error("J");var H=f.JSC$8810_value_;H==null||GbN&&H!=null&&H instanceof Uint8Array||(typeof H==="string"?H=Ksb(H):(_.qT(H),H=null));return H==null?H:f.JSC$8810_value_=H},p3T;var ovg=void 0;var Wo=typeof Symbol==="function"&&typeof Symbol()==="symbol",uub=m_("jas",void 0,!0),r9s=m_(void 0,"0di"),tD=m_(void 0,"1oa"),oF=m_(void 0,Symbol()),A9s=m_(void 0,"0ub"),irE=m_(void 0,"0ubs"),Oo3=m_(void 0,"0ubsb"),O0N=m_(void 0,"0actk"),zh=m_("m_m","messagePrototypeMarker",!0),hw5=m_(void 0,"vps"),Nh_=m_();var Q3_,pRg,k5,aQs;Q3_={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};pRg=Object.defineProperties;_.Ob=Wo?uub:"internalArrayState";aQs=[];Zh(aQs,7);k5=Object.freeze(aQs);var Fb={},Bo={},Pi_=function(f,H,v){this.iterable=f;this.mapper=H;this.thisArg=v};
Pi_.prototype.next=function(){var f=this.iterable.next();f.done||(f.value=this.mapper.call(this.thisArg,f.value));return f};
Pi_.prototype[Symbol.iterator]=function(){return this};
var G0R=Object.freeze({}),uC={};_.Cib=Po(function(f){return f!==null&&f!==void 0});var AN3=Po(function(f){return typeof f==="number"}),XRs=Po(function(f){return typeof f==="string"}),igg=Po(function(f){return typeof f==="boolean"}),EsR=Po(function(f){return f!=null&&typeof f==="object"&&typeof f.then==="function"}),PdR=Po(function(f){return typeof f==="function"}),Rh=Po(function(f){return!!f&&(typeof f==="object"||typeof f==="function")});var bgr=typeof _.Mr.BigInt==="function"&&typeof _.Mr.BigInt(0)==="bigint";var eZg=Po(function(f){return bgr?f>=N7s&&f<=cIR:f[0]==="-"?kbg(f,X3s):kbg(f,AIT)}),X3s=Number.MIN_SAFE_INTEGER.toString(),N7s=bgr?BigInt(Number.MIN_SAFE_INTEGER):void 0,AIT=Number.MAX_SAFE_INTEGER.toString(),cIR=bgr?BigInt(Number.MAX_SAFE_INTEGER):void 0;var bzg=typeof Uint8Array.prototype.slice==="function",Cr=0,NT=0,S43;var mW,IF,f0,Sp,Vvg;mW=typeof BigInt==="function"?BigInt.asIntN:void 0;_.Zr=typeof BigInt==="function"?BigInt.asUintN:void 0;IF=Number.isSafeInteger;f0=Number.isFinite;Sp=Math.trunc;Vvg=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Rwr={};var GHg={},izs=function(){try{var f=function(){return Iav(Map,[],this.constructor)};
_.e(f,Map);tZ(new f);return!1}catch(H){return!0}}(),$_=function(){this.JSC$8829_map_=new Map};
_.R=$_.prototype;_.R.get=function(f){return this.JSC$8829_map_.get(f)};
_.R.set=function(f,H){this.JSC$8829_map_.set(f,H);this.size=this.JSC$8829_map_.size;return this};
_.R.delete=function(f){f=this.JSC$8829_map_.delete(f);this.size=this.JSC$8829_map_.size;return f};
_.R.clear=function(){this.JSC$8829_map_.clear();this.size=this.JSC$8829_map_.size};
_.R.has=function(f){return this.JSC$8829_map_.has(f)};
_.R.entries=function(){return this.JSC$8829_map_.entries()};
_.R.keys=function(){return this.JSC$8829_map_.keys()};
_.R.values=function(){return this.JSC$8829_map_.values()};
_.R.forEach=function(f,H){return this.JSC$8829_map_.forEach(f,H)};
$_.prototype[Symbol.iterator]=function(){return this.entries()};
var ut=function(){if(izs)return Object.setPrototypeOf($_.prototype,Map.prototype),Object.defineProperties($_.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),$_;var f=function(){return Iav(Map,[],this.constructor)};
_.e(f,Map);return f}(),K0=function(f,H,v,t){v=v===void 0?por:v;
t=t===void 0?por:t;var M=ut.call(this)||this;M.arrayState=f[_.Ob]|0;M.valueCtor=H;M.keyToApi=v;M.valueToApi=M.valueCtor?uaE:t;for(var h=0;h<f.length;h++){var y=f[h],m=v(y[0],!1,!0),W=y[1];H?W===void 0&&(W=null):W=t(y[1],!1,!0,void 0,void 0,M.arrayState);ut.prototype.set.call(M,m,W)}return M};
_.e(K0,ut);var k0R=function(f){if(f.arrayState&2)throw Error("N");};
_.R=K0.prototype;_.R.clear=function(){k0R(this);ut.prototype.clear.call(this)};
_.R.delete=function(f){k0R(this);return ut.prototype.delete.call(this,this.keyToApi(f,!0,!1))};
_.R.entries=function(){if(this.valueCtor){var f=ut.prototype.keys.call(this);f=new Pi_(f,ahv,this)}else f=ut.prototype.entries.call(this);return f};
_.R.values=function(){if(this.valueCtor){var f=ut.prototype.keys.call(this);f=new Pi_(f,K0.prototype.get,this)}else f=ut.prototype.values.call(this);return f};
_.R.forEach=function(f,H){this.valueCtor?ut.prototype.forEach.call(this,function(v,t,M){f.call(H,M.get(t),t,M)}):ut.prototype.forEach.call(this,f,H)};
_.R.set=function(f,H){k0R(this);f=this.keyToApi(f,!0,!1);return f==null?this:H==null?(ut.prototype.delete.call(this,f),this):ut.prototype.set.call(this,f,this.valueToApi(H,!0,!0,this.valueCtor,!1,this.arrayState))};
_.R.has=function(f){return ut.prototype.has.call(this,this.keyToApi(f,!1,!1))};
_.R.get=function(f){f=this.keyToApi(f,!1,!1);var H=ut.prototype.get.call(this,f);if(H!==void 0){var v=this.valueCtor;return v?(v=this.valueToApi(H,!1,!0,v,this.callToMutableOnAccess,this.arrayState),v!==H&&ut.prototype.set.call(this,f,v),v):H}};
K0.prototype[Symbol.iterator]=function(){return this.entries()};
K0.prototype.toJSON=void 0;var PCv;var qb3=function(){},ThN=function(f,H){for(var v in f)!isNaN(v)&&H(f,+v,f[v])},fr3=function(f){var H=new qb3;
ThN(f,function(v,t,M){H[t]=A9(M)});
H.reviveUnknownFields=f.reviveUnknownFields;return H},c9T={reviveIntoImmutable:!0};var woB;var Vp3,yWT;var T7b,fo,SN,J7,w3r,sU,sP,qK5,fTg,UU,H$e,es,BI,zX;T7b=_.GH(0);_.WI={};_.OU=function(f,H,v,t,M){H=fo(f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,H,v,M);if(H!==null||t&&f.noLegacyNull!==Bo)return H};
fo=function(f,H,v,t){if(H===-1)return null;var M=H+(v?0:-1),h=f.length-1;if(!(h<1+(v?0:-1))){if(M>=h){var y=f[h];if(y!=null&&typeof y==="object"&&y.constructor===Object){v=y[H];var m=!0}else if(M===h)v=y;else return}else v=f[M];if(t&&v!=null){t=t(v);if(t==null)return t;if(!Object.is(t,v))return m?y[H]=t:f[M]=t,t}return v}};
_.YX=function(f,H,v,t){cA(f);var M=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;bt(M,M[_.Ob]|0,H,v,t);return f};
_.gP=function(f,H,v){f=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return zwT(f,f[_.Ob]|0,H,v)!==void 0};
_.Ip=function(f,H,v,t){var M=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return zwT(M,M[_.Ob]|0,H,J7(f,t,v))!==void 0};
_.yX=function(f){return f===G0R?2:4};
_.Ss=function(f,H){f=_.OU(f,H,void 0,void 0,lrv);return f==null?_.nr():f};
SN=function(f,H,v,t){cA(f);var M=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,h=M[_.Ob]|0;if(t==null){var y=LWv(M);if(xxR(y,M,h,v)===H)y.set(v,0);else return f}else h=BiB(M,h,v,H);bt(M,h,H,t);return f};
_.dP=function(f,H,v,t){var M=f[_.Ob]|0,h=an(M);M=BiB(f,M,v,H,h);bt(f,M,H,t,h)};
J7=function(f,H,v){return _.js(f,H)===v?v:-1};
_.js=function(f,H){f=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return xxR(LWv(f),f,void 0,H,void 0)};
w3r=function(f,H,v){var t=f[_.Ob]|0,M=an(t),h=fo(f,v,M);if(h!=null&&h[zh]===Fb){if(!rh(h))return Nx(h),h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var y=h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(h)&&(y=h);if(y){var m=y[_.Ob]|0;m&2&&(y=Ex(y,m))}y=mxR(y,H,!0);y!==h&&bt(f,t,v,y,M);return y};
_.V$=function(f,H,v,t){var M=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,h=M[_.Ob]|0;H=zwT(M,h,H,v,t);if(H==null)return H;h=M[_.Ob]|0;if(!rh(f,h)){var y=Qne(H);y!==H&&(Nx(f)&&(M=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,h=M[_.Ob]|0),H=y,h=bt(M,h,v,H,t),AW(M,h))}return H};
_.VX=function(f,H,v,t){var M=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return FWR(f,M,M[_.Ob]|0,H,v,t,!1,!0)};
_.eV=function(f,H,v,t){v=rWs(v);_.YX(f,H,v,t);v&&!rh(v)&&AW(f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return f};
_.Lo=function(f,H,v,t){t=rWs(t);SN(f,H,v,t);t&&!rh(t)&&AW(f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return f};
sU=function(f,H,v){cA(f);var t=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=t[_.Ob]|0;if(v==null)return bt(t,M,H),f;for(var h=v===k5?7:v[_.Ob]|0,y=h,m=qx(h),W=m||Object.isFrozen(v),I=!0,S=!0,d=0;d<v.length;d++){var Z=v[d];m||(Z=rh(Z),I&&(I=!Z),S&&(S=Z))}m||(h=I?13:5,h=S?h&-4097:h|4096);W&&h===y||(v=A9(v),y=0,h=Th(h,M));h!==y&&Zh(v,h);M=bt(t,M,H,v);2&h||!(4096&h||16&h)||AW(t,M);return f};
sP=function(f,H,v,t){Dxs(f,H,v,t);return f};
qK5=function(f,H,v){Dxs(f,H,ZV,void 0,v,1,!0);return f};
_.JZ=function(f,H,v){f=_.OU(f,H,void 0,v);H=typeof f;f=f==null?f:H==="bigint"?_.GH((0,_.Zr)(64,f)):_.tW(f)?H==="string"?_.UT5(f):_.J9b(f):void 0;return f};
_.lT=function(f,H){var v=v===void 0?!1:v;var t;return(t=_.RZe(_.OU(f,H)))!=null?t:v};
_.Yl=function(f,H,v){v=v===void 0?0:v;var t;return(t=_.VG(_.OU(f,H)))!=null?t:v};
fTg=function(f,H){var v=v===void 0?0:v;f=_.Ybv(_.OU(f,H));return f!=null?f:v};
UU=function(f,H,v){v=v===void 0?T7b:v;var t;return(t=_.Bhe(_.OU(f,H)))!=null?t:v};
H$e=function(f){var H=H===void 0?T7b:H;var v;return(v=_.JZ(f,23))!=null?v:H};
es=function(f,H){var v=v===void 0?0:v;var t;return(t=_.OU(f,H,void 0,void 0,_.Mvs))!=null?t:v};
_.L8=function(f,H,v,t){v=v===void 0?"":v;var M;return(M=_.ep(_.OU(f,H,t)))!=null?M:v};
_.x_=function(f,H){var v=v===void 0?0:v;var t;return(t=_.hW(_.OU(f,H)))!=null?t:v};
BI=function(f,H){var v=v===void 0?"0":v;f=xTB(_.OU(f,H),!0);return f!=null?f:v};
zX=function(f,H,v){return _.L8(f,J7(f,v,H))};
_.Fg=function(f,H,v,t){return _.V$(f,H,J7(f,t,v),void 0)};
_.Jx=function(f,H){return _.ep(_.OU(f,H,void 0,_.WI))};
_.O1=function(f,H,v){return _.YX(f,H,hZB(v))};
_.oW=function(f,H,v){return _.vv(f,H,hZB(v),!1)};
_.rP=function(f,H,v){return _.YX(f,H,_.RF(v))};
_.UP=function(f,H,v){return _.YX(f,H,WA(v))};
_.rr=function(f,H,v){return _.YX(f,H,Ux(v))};
_.G7=function(f,H,v,t){return _.vv(f,H,Ux(v),"",t)};
_.y$=function(f,H,v){return _.YX(f,H,v==null?v:_.Mx(v))};
_.K8=function(f,H,v){return _.vv(f,H,v==null?v:_.Mx(v),0)};var MA=function(f,H,v){this.buffer=f;if(v&&!H)throw Error();this.JSC$8841_isImmutable=H};var voR=function(f,H,v,t){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8844_start_=0;this.init(f,H,v,t)},DV,MZ_,hMr,VZN,vU_,tZT;
_.R=voR.prototype;_.R.init=function(f,H,v,t){var M=t===void 0?{}:t;t=M.aliasBytesFields===void 0?!1:M.aliasBytesFields;M=M.treatNewDataAsImmutable===void 0?!1:M.treatNewDataAsImmutable;this.aliasBytesFields=t;this.treatNewDataAsImmutable=M;f&&(f=n5R(f,this.treatNewDataAsImmutable),this.bytes_=f.buffer,this.bytesAreImmutable_=f.JSC$8841_isImmutable,this.JSC$8844_start_=H||0,this.end_=v!==void 0?this.JSC$8844_start_+v:this.bytes_.length,this.cursor_=this.JSC$8844_start_)};
_.R.free=function(){this.clear();tZT.length<100&&tZT.push(this)};
_.R.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8844_start_=0;this.aliasBytesFields=!1};
_.R.reset=function(){this.cursor_=this.JSC$8844_start_};
_.R.atEnd=function(){return this.cursor_==this.end_};
_.op=function(f,H){var v=0,t=0,M=0,h=f.bytes_,y=f.cursor_;do{var m=h[y++];v|=(m&127)<<M;M+=7}while(M<32&&m&128);if(M>32)for(t|=(m&127)>>4,M=3;M<32&&m&128;M+=7)m=h[y++],t|=(m&127)<<M;DV(f,y);if(!(m&128))return H(v>>>0,t>>>0);throw Error();};
DV=function(f,H){f.cursor_=H;if(H>f.end_)throw Error();};
_.n8=function(f){var H=f.bytes_,v=f.cursor_,t=H[v++],M=t&127;if(t&128&&(t=H[v++],M|=(t&127)<<7,t&128&&(t=H[v++],M|=(t&127)<<14,t&128&&(t=H[v++],M|=(t&127)<<21,t&128&&(t=H[v++],M|=t<<28,t&128&&H[v++]&128&&H[v++]&128&&H[v++]&128&&H[v++]&128&&H[v++]&128)))))throw Error();DV(f,v);return M};
_.p8=function(f){var H=f.bytes_,v=f.cursor_,t=H[v],M=H[v+1],h=H[v+2];H=H[v+3];DV(f,f.cursor_+4);return(t<<0|M<<8|h<<16|H<<24)>>>0};
MZ_=function(f){var H=_.p8(f);f=_.p8(f);return q5_(H,f)};
hMr=function(f){var H=_.p8(f),v=_.p8(f);f=(v>>31)*2+1;var t=v>>>20&2047;H=4294967296*(v&1048575)+H;return t==2047?H?NaN:f*Infinity:t==0?f*4.9E-324*H:f*Math.pow(2,t-1075)*(H+4503599627370496)};
_.RMb=function(f){for(var H=0,v=f.cursor_,t=v+10,M=f.bytes_;v<t;){var h=M[v++];H|=h;if((h&128)===0)return DV(f,v),!!(H&127)}throw Error();};
VZN=function(f,H){if(H<0)throw Error();var v=f.cursor_;H=v+H;if(H>f.end_)throw Error();f.cursor_=H;return v};
vU_=function(f,H){if(H==0)return _.nr();var v=VZN(f,H);f.aliasBytesFields&&f.bytesAreImmutable_?v=f.bytes_.subarray(v,v+H):(f=f.bytes_,H=v+H,v=v===H?new Uint8Array(0):bzg?f.slice(v,H):new Uint8Array(f.subarray(v,H)));return v.length==0?_.nr():new Dh(v,on)};
tZT=[];var YA_=function(f,H,v,t){if(tZT.length){var M=tZT.pop();M.init(f,H,v,t);f=M}else f=new voR(f,H,v,t);this.decoder_=f;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;yvs(this,t)},yvs=function(f,H){H=H===void 0?{}:H;
f.discardUnknownFields=H.discardUnknownFields===void 0?!1:H.discardUnknownFields},hqe=function(f,H,v,t){if(m9H.length){var M=m9H.pop();
yvs(M,t);M.decoder_.init(f,H,v,t);return M}return new YA_(f,H,v,t)},qxe,Hos,$9R,m9H;
YA_.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;m9H.length<100&&m9H.push(this)};
YA_.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
qxe=function(f){if(f.decoder_.atEnd())return!1;f.fieldCursor_=f.decoder_.cursor_;var H=_.n8(f.decoder_)>>>0,v=H>>>3;H&=7;if(!(H>=0&&H<=5))throw Error();if(v<1)throw Error();f.nextField_=v;f.nextWireType_=H;return!0};
Hos=function(f){switch(f.nextWireType_){case 0:f.nextWireType_!=0?Hos(f):_.RMb(f.decoder_);break;case 1:f=f.decoder_;DV(f,f.cursor_+8);break;case 2:if(f.nextWireType_!=2)Hos(f);else{var H=_.n8(f.decoder_)>>>0;f=f.decoder_;DV(f,f.cursor_+H)}break;case 5:f=f.decoder_;DV(f,f.cursor_+4);break;case 3:H=f.nextField_;do{if(!qxe(f))throw Error();if(f.nextWireType_==4){if(f.nextField_!=H)throw Error();break}Hos(f)}while(1);break;default:throw Error();}};
$9R=function(f,H,v){var t=f.decoder_.end_,M=_.n8(f.decoder_)>>>0;M=f.decoder_.cursor_+M;var h=M-t;h<=0&&(f.decoder_.end_=M,v(H,f,void 0,void 0,void 0),h=M-f.decoder_.cursor_);if(h)throw Error();f.decoder_.cursor_=M;f.decoder_.end_=t};
_.WqH=function(f){var H=_.n8(f.decoder_)>>>0;f=f.decoder_;var v=VZN(f,H);f=f.bytes_;if(NV_){var t=f,M;(M=E2E)||(M=E2E=new TextDecoder("utf-8",{fatal:!0}));H=v+H;t=v===0&&H===t.length?t:t.subarray(v,H);try{var h=M.decode(t)}catch(I){if(Cjv===void 0){try{M.decode(new Uint8Array([128]))}catch(S){}try{M.decode(new Uint8Array([97])),Cjv=!0}catch(S){Cjv=!1}}!Cjv&&(E2E=void 0);throw I;}}else{h=v;H=h+H;v=[];for(var y=null,m,W;h<H;)m=f[h++],m<128?v.push(m):m<224?h>=H?tN():(W=f[h++],m<194||(W&192)!==128?(h--,
tN()):v.push((m&31)<<6|W&63)):m<240?h>=H-1?tN():(W=f[h++],(W&192)!==128||m===224&&W<160||m===237&&W>=160||((M=f[h++])&192)!==128?(h--,tN()):v.push((m&15)<<12|(W&63)<<6|M&63)):m<=244?h>=H-2?tN():(W=f[h++],(W&192)!==128||(m<<28)+(W-144)>>30!==0||((M=f[h++])&192)!==128||((t=f[h++])&192)!==128?(h--,tN()):(m=(m&7)<<18|(W&63)<<12|(M&63)<<6|t&63,m-=65536,v.push((m>>10&1023)+55296,(m&1023)+56320))):tN(),v.length>=8192&&(y=f_H(y,v),v.length=0);h=f_H(y,v)}return h};
_.O$r=function(f){var H=_.n8(f.decoder_)>>>0;return vU_(f.decoder_,H)};
_.goe=function(f,H,v){var t=_.n8(f.decoder_)>>>0;for(t=f.decoder_.cursor_+t;f.decoder_.cursor_<t;)v.push(H(f.decoder_))};
m9H=[];var ITg=function(f,H){this.JSC$8851_lo=f>>>0;this.JSC$8851_hi=H>>>0},d9g=function(f){if(!f)return SA_||(SA_=new ITg(0,0));
if(!/^\d+$/.test(f))return null;tvN(f);return new ITg(Cr,NT)},SA_,Zoe=function(f,H){this.JSC$8853_lo=f>>>0;
this.JSC$8853_hi=H>>>0},j1N=function(f){if(!f)return jyb||(jyb=new Zoe(0,0));
if(!/^-?\d+$/.test(f))return null;tvN(f);return new Zoe(Cr,NT)},jyb;var QB=function(){this.JSC$8855_buffer_=[]},s1B,syB;
QB.prototype.length=function(){return this.JSC$8855_buffer_.length};
QB.prototype.end=function(){var f=this.JSC$8855_buffer_;this.JSC$8855_buffer_=[];return f};
s1B=function(f,H,v){for(;v>0||H>127;)f.JSC$8855_buffer_.push(H&127|128),H=(H>>>7|v<<25)>>>0,v>>>=7;f.JSC$8855_buffer_.push(H)};
syB=function(f,H){for(;H>127;)f.JSC$8855_buffer_.push(H&127|128),H>>>=7;f.JSC$8855_buffer_.push(H)};
_.JDE=function(f,H){if(H>=0)syB(f,H);else{for(var v=0;v<9;v++)f.JSC$8855_buffer_.push(H&127|128),H>>=7;f.JSC$8855_buffer_.push(1)}};
QB.prototype.writeUint8=function(f){this.JSC$8855_buffer_.push(f>>>0&255)};
_.I1=function(f,H){f.JSC$8855_buffer_.push(H>>>0&255);f.JSC$8855_buffer_.push(H>>>8&255);f.JSC$8855_buffer_.push(H>>>16&255);f.JSC$8855_buffer_.push(H>>>24&255)};
QB.prototype.writeInt8=function(f){this.JSC$8855_buffer_.push(f>>>0&255)};var Z$N,$U,UAe,xAN;Z$N=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new QB};
$U=function(f,H){H.length!==0&&(f.blocks_.push(H),f.totalLength_+=H.length)};
_.arH=function(f,H){_.ge(f,H,2);H=f.encoder_.end();$U(f,H);H.push(f.totalLength_);return H};
_.Pts=function(f,H){var v=H.pop();for(v=f.totalLength_+f.encoder_.length()-v;v>127;)H.push(v&127|128),v>>>=7,f.totalLength_++;H.push(v);f.totalLength_++};
_.ge=function(f,H,v){syB(f.encoder_,H*8+v)};
UAe=function(f,H,v){if(v!=null){switch(typeof v){case "string":d9g(v)}_.ge(f,H,1);switch(typeof v){case "number":f=f.encoder_;TBH(v);_.I1(f,Cr);_.I1(f,NT);break;case "bigint":v=BigInt.asUintN(64,v);v=new ITg(Number(v&BigInt(4294967295)),Number(v>>BigInt(32)));f=f.encoder_;H=v.JSC$8851_hi;_.I1(f,v.JSC$8851_lo);_.I1(f,H);break;default:v=d9g(v),f=f.encoder_,H=v.JSC$8851_hi,_.I1(f,v.JSC$8851_lo),_.I1(f,H)}}};
xAN=function(f,H,v){_.ge(f,H,2);syB(f.encoder_,v.length);$U(f,f.encoder_.end());$U(f,v)};var pAg,U9s,eMB,BWR,zMv;pAg=hD();_.JvR=hD();_.lTR=hD();U9s=hD();eMB=hD();_.Lq3=hD();_.uT=hD();_.x9R=hD();BWR=hD();zMv=hD();_.FqT=hD();_.rve=hD();_.mL=function(f,H,v){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f,H,v)};
_.mL.prototype.toJSON=function(){return aF(this)};
_.mL.prototype.serialize=function(f){return JSON.stringify(aF(this,f))};
var nU5=function(f,H){if(H==null||H=="")return new f;H=JSON.parse(H);if(!Array.isArray(H))throw Error("V");return new f(PHR(H))};
_.mL.prototype.getExtension=function(f){brT(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f.fieldIndex);Xob(this,f.fieldIndex);return f.ctor?f.isRepeated?f.getExtensionFn(this,f.ctor,f.fieldIndex,_.yX(),f.JSC$8866_hasMessageId):f.getExtensionFn(this,f.ctor,f.fieldIndex,f.JSC$8866_hasMessageId):f.isRepeated?f.getExtensionFn(this,f.fieldIndex,_.yX(),f.JSC$8866_hasMessageId):f.getExtensionFn(this,f.fieldIndex,f.defaultValue,f.JSC$8866_hasMessageId)};
_.mL.prototype.clone=function(){var f=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,H=f[_.Ob]|0;return jFT(this,f,H)?dxr(this,f,!0):new this.constructor(Ex(f,H,!1))};
_.mL.prototype[zh]=Fb;_.mL.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var R1=function(f,H,v){this.$$binaryReaderFn=f;this.$$binaryWriterFn=H;f=Dr(pAg);this.$$isMsg=!!f&&v===f||!1},cWR=QF5(function(f,H,v,t,M){if(f.nextWireType_!==2)return!1;
$9R(f,w3r(H,t,v),M);return!0},Ghr),XAT=QF5(function(f,H,v,t,M){if(f.nextWireType_!==2)return!1;
$9R(f,w3r(H,t,v),M);return!0},Ghr),VVe=Symbol(),i0b=Symbol(),wAr=Symbol(),mAs=Symbol(),tVT=Symbol(),CtR,E5E;var KLR,KqB,D95,ooH,noB,pf3,QyE,uqg,aTv,Pxs,GGH,Eor,NWe,Xfs,AvR;KLR=function(f,H){var v=new Z$N;$Ag(f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,v,VO(VVe,Rqv,yDg,H));$U(v,v.encoder_.end());f=new Uint8Array(v.totalLength_);H=v.blocks_;for(var t=H.length,M=0,h=0;h<t;h++){var y=H[h];f.set(y,M);M+=y.length}v.blocks_=[f];return f};
KqB=_.Wv(function(f,H,v){if(f.nextWireType_!==1)return!1;_.O4(H,v,hMr(f.decoder_));return!0},dAe,zMv);
D95=_.Wv(function(f,H,v,t){if(f.nextWireType_!==1)return!1;_.dP(H,v,t,hMr(f.decoder_));return!0},dAe,zMv);
ooH=_.Wv(function(f,H,v,t){if(f.nextWireType_!==5)return!1;var M=_.p8(f.decoder_);f=(M>>31)*2+1;var h=M>>>23&255;M&=8388607;_.dP(H,v,t,h==255?M?NaN:f*Infinity:h==0?f*1.401298464324817E-45*M:f*Math.pow(2,h-150)*(M+8388608));return!0},function(f,H,v){H=_.Mvs(H);
H!=null&&(_.ge(f,v,5),f=f.encoder_,v=S43||(S43=new DataView(new ArrayBuffer(8))),v.setFloat32(0,+H,!0),NT=0,Cr=v.getUint32(0,!0),_.I1(f,Cr))},BWR);
_.ap=_.Wv(function(f,H,v){if(f.nextWireType_!==0)return!1;_.O4(H,v,_.op(f.decoder_,fhR));return!0},_.SV,_.uT);
noB=_.Wv(function(f,H,v){if(f.nextWireType_!==0)return!1;f=_.op(f.decoder_,fhR);_.O4(H,v,f===0?void 0:f);return!0},_.SV,_.uT);
pf3=_.Wv(function(f,H,v,t){if(f.nextWireType_!==0)return!1;_.dP(H,v,t,_.op(f.decoder_,fhR));return!0},_.SV,_.uT);
_.PI=_.Wv(function(f,H,v){if(f.nextWireType_!==0)return!1;_.O4(H,v,_.n8(f.decoder_));return!0},lME,U9s);
QyE=_.Wv(function(f,H,v){if(f.nextWireType_!==0)return!1;f=_.n8(f.decoder_);_.O4(H,v,f===0?void 0:f);return!0},lME,U9s);
uqg=_.Wv(function(f,H,v,t){if(f.nextWireType_!==0)return!1;_.dP(H,v,t,_.n8(f.decoder_));return!0},lME,U9s);
aTv=_.Wv(function(f,H,v){if(f.nextWireType_!==1)return!1;_.O4(H,v,MZ_(f.decoder_));return!0},_.eq_,_.x9R);
Pxs=_.IMv(function(f,H,v){if(f.nextWireType_!==1&&f.nextWireType_!==2)return!1;H=_.ewg(H,H[_.Ob]|0,v);f.nextWireType_==2?_.goe(f,MZ_,H):H.push(MZ_(f.decoder_));return!0},function(f,H,v){H=_.gUB(F_E,H,!1);
if(H!=null)for(var t=0;t<H.length;t++)UAe(f,v,H[t])},_.x9R);
_.GX=_.Wv(function(f,H,v){if(f.nextWireType_!==0)return!1;_.O4(H,v,_.RMb(f.decoder_));return!0},_.LLv,_.JvR);
GGH=_.Wv(function(f,H,v,t){if(f.nextWireType_!==0)return!1;_.dP(H,v,t,_.RMb(f.decoder_));return!0},_.LLv,_.JvR);
_.C8=_.Wv(function(f,H,v){if(f.nextWireType_!==2)return!1;_.O4(H,v,_.WqH(f));return!0},_.Bes,_.lTR);
_.CxT=_.Wv(function(f,H,v,t){if(f.nextWireType_!==2)return!1;_.dP(H,v,t,_.WqH(f));return!0},_.Bes,_.lTR);
Eor=_.IMv(function(f,H,v){if(f.nextWireType_!==2)return!1;f=_.WqH(f);_.ewg(H,H[_.Ob]|0,v).push(f);return!0},function(f,H,v){H=_.gUB(_.ep,H,!0);
if(H!=null)for(var t=0;t<H.length;t++){var M=f,h=v,y=H[t];y!=null&&xAN(M,h,ME5(y))}},_.lTR);
NWe=void 0;NWe=NWe===void 0?pAg:NWe;_.EU=new R1(function(f,H,v,t,M){if(f.nextWireType_!==2)return!1;t=mxR(void 0,t,!0);_.ewg(H,H[_.Ob]|0,v).push(t);$9R(f,t,M);return!0},function(f,H,v,t,M){if(Array.isArray(H))for(var h=0;h<H.length;h++)zq5(f,H[h],v,t,M)},NWe);
_.Ny=QF5(function(f,H,v,t,M,h){if(f.nextWireType_!==2)return!1;var y=H[_.Ob]|0;BiB(H,y,h,v,an(y));H=w3r(H,t,v);$9R(f,H,M);return!0},zq5);
_.cve=_.Wv(function(f,H,v){if(f.nextWireType_!==2)return!1;_.O4(H,v,_.O$r(f));return!0},_.FLE,_.FqT);
Xfs=_.Wv(function(f,H,v,t){if(f.nextWireType_!==2)return!1;_.dP(H,v,t,_.O$r(f));return!0},_.FLE,_.FqT);
AvR=_.Wv(function(f,H,v,t){if(f.nextWireType_!==0)return!1;_.dP(H,v,t,_.n8(f.decoder_)>>>0);return!0},function(f,H,v){H=_.Ybv(H);
H!=null&&H!=null&&(_.ge(f,v,0),syB(f.encoder_,H))},eMB);
_.cI=_.Wv(function(f,H,v){if(f.nextWireType_!==0)return!1;_.O4(H,v,_.n8(f.decoder_));return!0},_.rDR,_.rve);var kGe=function(){var f=b$3,H=i$s;this.fieldIndex=175237375;this.ctor=H;this.isRepeated=0;this.getExtensionFn=_.V$;this.defaultValue=void 0;this.JSC$8866_hasMessageId=f.messageId!=null?uC:void 0};
kGe.prototype.register=function(){tZ(this)};var TWv=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(TWv,_.mL);var wfv=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(wfv,_.mL);var uMR=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(uMR,_.mL);var qAg=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(qAg,_.mL);var fZb=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(fZb,_.mL);var HER=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(HER,_.mL);var vNg=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(vNg,_.mL);vNg.prototype.getData=function(){return _.Ss(this,2)};var tLH=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(tLH,_.mL);var MLb=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(MLb,_.mL);MLb.prototype.getStyle=function(){return _.V$(this,TWv,1)};var U4=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(U4,_.mL);U4.prototype.getPayloadCase=function(){return _.js(this,xU)};
U4.prototype.getStyle=function(){return _.Fg(this,MLb,6,xU)};
var hyN=function(){var f=new U4,H=new fZb;return _.Lo(f,7,xU,H)},RyN=function(){var f=new U4,H=new HER;
return _.Lo(f,8,xU,H)},xU=[1,
2,3,4,5,6,7,8];var VLT=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(VLT,_.mL);var y5g=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(y5g,_.mL);var YQR=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(YQR,_.mL);var mKT=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(mKT,_.mL);var $Kv=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e($Kv,_.mL);var W8B=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(W8B,_.mL);var OEB=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(OEB,_.mL);var gNB=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(gNB,_.mL);gNB.prototype.getData=function(){return _.Ss(this,2)};var IZb=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(IZb,_.mL);var Q15=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(Q15,_.mL);Q15.prototype.getPayloadCase=function(){return _.js(this,Xg)};
var Xg=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var AZ=function(f,H){f=Error.call(this,f);this.message=f.message;"stack"in f&&(this.stack=f.stack);this.code=H===void 0?2:H};
_.e(AZ,Error);var SQT=Promise;var dKb=function(f){this.channelPromise=f};
dKb.prototype.send=function(f,H,v){this.channelPromise.then(function(t){t.send(f,H,v)})};var jbv=function(f,H){this.data=f;this.channel=H};
jbv.prototype.reply=function(f,H,v){this.channel.send(f,H,v)};var sbB=function(f){this.JSC$8932_port_=f};
sbB.prototype.send=function(f,H,v){v=v===void 0?[]:v;var t=new MessageChannel;ZE_(t.port1,H);this.JSC$8932_port_.postMessage(f,[t.port2].concat(v))};
var J5b=function(f,H){ZE_(f,H);return new sbB(f)},ZE_=function(f,H){H&&(f.onmessage=function(v){H(new jbv(v.data,J5b(v.ports[0])))})};var lZN=function(f){this.verifier_=f};
lZN.prototype.verify=function(f){return this.verifier_(f)};
var UKH=function(f){var H=Object.create(null);(typeof f==="string"?[f]:f).forEach(function(v){if(v==="null")throw Error("X");H[v]=!0});
return function(v){return H[v]===!0}};_.eyR=function(){if(!_.Mr.addEventListener||!Object.defineProperty)return!1;var f=!1,H=Object.defineProperty({},"passive",{get:function(){f=!0}});
try{var v=function(){};
_.Mr.addEventListener("test",v,H);_.Mr.removeEventListener("test",v,H)}catch(t){}return f}();var L8v;_.bT=function(f){var H=f.destination;var v=f.iframe;var t=f.origin;var M=f.channelName===void 0?"ZNWN1d":f.channelName;var h=f.onMessage===void 0?void 0:f.onMessage;f=f.onEstablished===void 0?void 0:f.onEstablished;return L8v({destination:H,getSource:function(){return v.contentWindow},
originVerifier:t instanceof lZN?t:typeof t==="function"?new lZN(t):new lZN(UKH(t)),channelName:M,onMessage:h,onEstablished:f})};
L8v=function(f){var H=f.destination;var v=f.getSource;var t=f.originVerifier;var M=f.token===void 0?void 0:f.token;var h=f.channelName;var y=f.onMessage===void 0?void 0:f.onMessage;var m=f.onEstablished===void 0?void 0:f.onEstablished;return new dKb(new SQT(function(W,I){var S=function(d){d.source&&d.source===v()&&t.verify(d.origin)&&(d.data.n||d.data)===h&&(H.removeEventListener("message",S,!1),M&&d.data.t!==M?I(Error("Y`"+h+"`"+M+"`"+d.data.t)):(W(J5b(d.ports[0],y)),m&&m(d)))};
H.addEventListener("message",S,!1)}))};var xK_=function(f){try{f()}catch(H){R3(H)}};var zy_=function(f){var H=this;var v=f.getMessageType;var t=f.onUnregisteredMessage===void 0?function(){}:f.onUnregisteredMessage;
var M=f.onBeforeRegisteredMessage===void 0?function(){}:f.onBeforeRegisteredMessage;
f=f.onAfterRegisteredMessage===void 0?function(){}:f.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=v;this.onUnregisteredMessage_=t;this.onBeforeRegisteredMessage_=M;this.onAfterRegisteredMessage_=f;this.onMessage=function(h){return Bbe(H,h)}};
zy_.prototype.register=function(f,H){this.registry_.set(f,H);return this};
var Bbe=function(f,H){var v=f.getMessageType_(H.data),t=f.registry_.get(v);t?(xK_(function(){return f.onBeforeRegisteredMessage_(H,v)}),xK_(function(){return t(H)}),xK_(function(){return f.onAfterRegisteredMessage_(H,v)})):xK_(function(){return f.onUnregisteredMessage_(H,v)})};var F8E=function(f){this.JSC$8949_channel_=f},K85,DKR;
F8E.prototype.send=function(f,H,v){this.JSC$8949_channel_.send(aF(f),H,v)};
_.r5H=function(f,H){return function(v){var t=new f(v.data);return H(new jbv(t,v.channel))}};
K85=function(f){return function(H){return f(new jbv(H.data,new F8E(H.channel)))}};
DKR=function(f,H){return K85(_.r5H(f,H))};var oNr=function(f,H,v,t){this.registry=f;this.delegate=H;this.receiveMessageConstructor=v;this.createInitMessage=t;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},pvr=function(f){var H=new zy_({getMessageType:f.getPayloadCase});
return new oNr(H,new F8E(_.bT({iframe:f.child,destination:window,origin:f.origin,channelName:f.channelName,onMessage:DKR(f.receiveMessageConstructor,H.onMessage)})),f.receiveMessageConstructor,f.createInitMessage)},nNv=function(f,H){f.createInitMessage=H};
oNr.prototype.send=function(f){if(!this.initialised)throw new AZ("Attempted to send a message before initialisation.");this.delegate.send(f)};
var p2R=function(f,H){return _.Y(function(v){if(!f.initialised)throw new AZ("Attempted to send a message before initialisation.");return v.return(new Promise(function(t){f.delegate.send(H,DKR(f.receiveMessageConstructor,t))}))})};
oNr.prototype.init=function(){var f=this;return _.Y(function(H){if(f.initialised)throw new AZ("Attempted to initialise twice. The SDK can only be initialised once.");if(f.createInitMessage!==void 0){var v=f.delegate,t=v.send,M=f.createInitMessage;var h=new wfv;var y=[].concat(_.pS(f.features));h=_.Hv(h,1,y,_.Mx);t.call(v,M.call(f,h))}f.initialised=!0;_.Bj(H)})};
var k_=function(f,H){if(f.initialised)throw new AZ('Attempted to set up API "'+H+'" after initialisation. All APIs must be set up before initialising the SDK.');f.features.add(H);return f.registry};
_.H7.Object.defineProperties(oNr.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var Qb5=function(f){this.channel=f;this.registered=!1};
Qb5.prototype.update=function(f){if(this.channel.isInitialised){if(!this.registered)throw new AZ("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var H=new U4;var v=new qAg;v=_.O1(v,1,f);H=_.Lo(H,2,xU,v);this.channel.send(H)}else this.register();this.JSC$8963_audioEnabled=f};
Qb5.prototype.register=function(){k_(this.channel,1);this.registered=!0};
Qb5.prototype.isAudioEnabled=function(){return this.JSC$8963_audioEnabled};var u1B=function(f){this.channel=f};
_.R=u1B.prototype;_.R.onFirstFrameReady=function(f){k_(this.channel,2).register(11,function(H){H=_.Fg(H.data,VLT,11,Xg);if(!H)throw new AZ("Unexpectedly nonexistent GameFirstFrameReadyEvent");f(_.L8(H,1))})};
_.R.onReady=function(f){k_(this.channel,2).register(4,function(H){H=_.Fg(H.data,YQR,4,Xg);if(!H)throw new AZ("Unexpectedly nonexistent GameReadyEvent");f(_.L8(H,1))})};
_.R.onLevelComplete=function(f){k_(this.channel,2).register(5,function(H){H=_.Fg(H.data,mKT,5,Xg);if(!H)throw new AZ("Unexpectedly nonexistent LevelCompleteEvent");f(_.L8(H,1),_.Yl(H,2))})};
_.R.onGameOver=function(f){k_(this.channel,2).register(6,function(H){H=_.Fg(H.data,y5g,6,Xg);if(!H)throw new AZ("Unexpectedly nonexistent GameOverEvent");f(_.L8(H,1))})};
_.R.pause=function(){var f=this;if(!this.channel.isInitialised)return k_(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new AZ("Using unregistered Game Feature: pause.");var H=hyN();return new Promise(function(v){return _.Y(function(t){if(t.nextAddress==1)return t.yield(p2R(f.channel,H),2);v();_.Bj(t)})})};
_.R.resume=function(){var f=this;if(!this.channel.isInitialised)return k_(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new AZ("Using unregistered Game Feature: resume.");var H=RyN();return new Promise(function(v){return _.Y(function(t){if(t.nextAddress==1)return t.yield(p2R(f.channel,H),2);v();_.Bj(t)})})};var aZH=function(f){this.channel=f};
aZH.prototype.onReady=function(f){k_(this.channel,5).register(8,function(H){if(!_.Fg(H.data,$Kv,8,Xg))throw new AZ("Unexpectedly nonexistent PageReadyEvent");f()})};var PX5=function(f){this.channel=f};
PX5.prototype.onChange=function(f){k_(this.channel,3).register(7,function(H){H=_.Fg(H.data,W8B,7,Xg);if(!H)throw new AZ("Unexpectedly nonexistent ScoreEvent");f(_.L8(H,1),_.Yl(H,2))})};var G2_={load:function(){throw new AZ("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new AZ("Storage used, but storage.onSave() listener not set!");}},CXe=function(f){this.channel=f;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},ENH=function(f){k_(f.channel,4).register(2,G2_.load).register(3,G2_.save);
f.initialSetupDone=!0};
CXe.prototype.onLoad=function(f){this.initialSetupDone||ENH(this);this.loadRegistered||(this.loadRegistered=!0,k_(this.channel,4).register(2,function(H){var v,t,M;return _.Y(function(h){if(h.nextAddress==1){v=_.Fg(H.data,OEB,2,Xg);if(!v)throw new AZ("Unexpectedly nonexistent StorageLoad");t=_.L8(v,1);return h.yield(f(t),2)}M=h.yieldResult;var y=H.reply,m=new U4;var W=new vNg;W=_.rr(W,1,t);W=_.YX(W,2,_.QM(M,!1));m=_.Lo(m,3,xU,W);y.call(H,m);_.Bj(h)})}))};
CXe.prototype.onSave=function(f){this.initialSetupDone||ENH(this);this.saveRegistered||(this.saveRegistered=!0,k_(this.channel,4).register(3,function(H){var v,t,M;return _.Y(function(h){if(h.nextAddress==1){v=_.Fg(H.data,gNB,3,Xg);if(!v)throw new AZ("Unexpectedly nonexistent StorageSave");t=_.L8(v,1);M=QJ5(v.getData());return h.yield(f(t,M),2)}var y=H.reply,m=new U4;var W=new tLH;W=_.rr(W,1,t);m=_.Lo(m,4,xU,W);y.call(H,m);_.Bj(h)})}))};var Nbb=function(f){this.channel=f};
Nbb.prototype.update=function(f){if(!this.channel.features.has(6))throw new AZ("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var H=new U4,v=new MLb;f=_.eV(v,1,f);H=_.Lo(H,6,xU,f);this.channel.send(H)};
Nbb.prototype.register=function(){k_(this.channel,6)};var c5R=function(f){this.channel=f;this.userActivityLoggingIntervalMs=0};
c5R.prototype.onUserActivity=function(f,H){this.userActivityLoggingIntervalMs=H;k_(this.channel,7).register(9,function(v){if(!_.Fg(v.data,IZb,9,Xg))throw new AZ("Unexpectedly nonexistent ClickEvent");f()})};var X2B=function(f){var H=this;this.channel=f;this.init=this.channel.init.bind(this.channel);this.page=new aZH(this.channel);this.game=new u1B(this.channel);this.audio=new Qb5(this.channel);this.score=new PX5(this.channel);this.storage=new CXe(this.channel);this.style=new Nbb(this.channel);this.userActivity=new c5R(this.channel);nNv(this.channel,function(v){var t=new uMR;v=_.eV(t,1,v);v=_.rP(v,3,H.userActivity.userActivityLoggingIntervalMs);t=H.audio.isAudioEnabled();t!==void 0&&_.O1(v,2,t);t=new U4;
return _.Lo(t,5,xU,v)})};var A5H=function(){this.timedFunctionContext=0};
A5H.prototype.timeExecution=function(f,H){var v=this;return function(){var t=_.NA.apply(0,arguments);v.timedFunctionContext=f;return H.apply(null,_.pS(t))}};var bE_=function(){var f={};this.priorityTasks=(f[3]=[],f[2]=[],f[1]=[],f);this.isFlushing=!1},ZR=function(f,H,v){var t=iE3(f,v);
f.priorityTasks[v].push(H);t&&f.priorityTasks[v].length===1&&f.flush()},iE3=function(f,H){return Object.keys(f.priorityTasks).map(function(v){return Number(v)}).filter(function(v){return!isNaN(v)&&v>H}).every(function(v){return f.priorityTasks[v].length===0})};
bE_.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(f){return f.length>0});)k25(this,3),k25(this,2),k25(this,1)}catch(f){throw Object.values(this.priorityTasks).forEach(function(H){return void H.splice(0,H.length)}),f;
}finally{this.isFlushing=!1}}};
var k25=function(f,H){for(;iE3(f,H)&&f.priorityTasks[H].length>0;)f.priorityTasks[H][0](),f.priorityTasks[H].shift()};
_.H7.Object.defineProperties(bE_.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(f){return f.length>0})}}});var cD5={};var Tbr=globalThis.trustedTypes,PDr=Tbr,CDB;var z1=function(f){this.privateDoNotAccessOrElseWrappedResourceUrl=f};
z1.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var w2v,qQR,f_C,Hgo,vv9,tEC,MEb,hT_;w2v=_.EH([""]);qQR=CA(["\x00"],["\\0"]);f_C=CA(["\n"],["\\n"]);Hgo=CA(["\x00"],["\\u0000"]);vv9=_.EH([""]);tEC=CA(["\x00"],["\\0"]);MEb=CA(["\n"],["\\n"]);hT_=CA(["\x00"],["\\u0000"]);_.RTa=Nev(function(f){return f(w2v)})||Nev(function(f){return f(qQR)})||Nev(function(f){return f(f_C)})||Nev(function(f){return f(Hgo)});
_.VEg=_.Ko(vv9)&&_.Ko(tEC)&&_.Ko(MEb)&&_.Ko(hT_);var G1;_.o1=function(f,H){this.privateDoNotAccessOrElseWrappedUrl=H};
_.o1.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.yNv=no("about:blank");G1=no("about:invalid#zClosurez");var XvT=function(f){this.isValid=f},Y5o=new XvT(function(f){return/^[^:]*([/?#]|$)/.test(f)}),mrM=uD("data"),$rZ=uD("http"),Ws_=uD("https"),Ogg=uD("ftp"),gvb=uD("mailto"),I_b=uD("intent"),S5g=uD("vnd.youtube"),AD3=[mrM,
$rZ,Ws_,gvb,Ogg,Y5o],ioT=Bv(function(){return typeof URL==="function"}),drZ=["data:",
"http:","https:","mailto:","ftp:"],Teb=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var bD=function(f){this.privateDoNotAccessOrElseWrappedHtml=f};
bD.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var Y0E=Bv(function(){return new bD(Tbr?Tbr.emptyHTML:"")});var j3h={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"},q4B=function(f,H){var v=Error.call(this,f+" cannot be used with intent "+j3h[H]);this.message=v.message;"stack"in v&&(this.stack=v.stack);this.type=f;this.intent=H;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.e(q4B,Error);_.fS=function(f){this.privateDoNotAccessOrElseWrappedScript=f};
_.fS.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var ta3=function(f){this.privateDoNotAccessOrElseWrappedAttributePrefix=f};
ta3.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var Ma5="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var y1=function(f){this.privateDoNotAccessOrElseWrappedStyleSheet=f};
y1.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var dlR=function(f){var H=_.ES("window.location.href");f==null&&(f='Unknown Error of type "null/undefined"');if(typeof f==="string")return{message:f,name:"Unknown error",lineNumber:"Not available",fileName:H,stack:"Not available"};var v=!1;try{var t=f.lineNumber||f.line||"Not available"}catch(y){t="Not available",v=!0}try{var M=f.fileName||f.filename||f.sourceURL||_.Mr.$googDebugFname||H}catch(y){M="Not available",v=!0}H=s3r(f);if(!(!v&&f.lineNumber&&f.fileName&&f.stack&&f.message&&f.name)){v=f.message;
if(v==null){if(f.constructor&&f.constructor instanceof Function){if(f.constructor.name)v=f.constructor.name;else if(v=f.constructor,TX[v])v=TX[v];else{v=String(v);if(!TX[v]){var h=/function\s+([^\(]+)/m.exec(v);TX[v]=h?h[1]:"[Anonymous]"}v=TX[v]}v='Unknown Error of type "'+v+'"'}else v="Unknown Error of unknown type";typeof f.toString==="function"&&Object.prototype.toString!==f.toString&&(v+=": "+f.toString())}return{message:v,name:f.name||"UnknownError",lineNumber:t,fileName:M,stack:H||"Not available"}}return{message:f.message,
name:f.name,lineNumber:f.lineNumber,fileName:f.fileName,stack:H}},s3r=function(f,H){H||(H={});
H[ZgZ(f)]=!0;var v=f.stack||"",t=f.cause;t&&!H[ZgZ(t)]&&(v+="\nCaused by: ",t.stack&&t.stack.indexOf(t.toString())==0||(v+=typeof t==="string"?t:t.message+"\n"),v+=s3r(t,H));f=f.errors;if(Array.isArray(f)){t=1;var M;for(M=0;M<f.length&&!(t>4);M++)H[ZgZ(f[M])]||(v+="\nInner error "+t++ +": ",f[M].stack&&f[M].stack.indexOf(f[M].toString())==0||(v+=typeof f[M]==="string"?f[M]:f[M].message+"\n"),v+=s3r(f[M],H));M<f.length&&(v+="\n... "+(f.length-M)+" more inner errors")}return v},ZgZ=function(f){var H=
"";
typeof f.toString==="function"&&(H=""+f);return H+f.stack},TX={};var JNC,Hh,mV,Urb,eTa,l_o,XH,Xj,xrr;JNC=function(f,H){for(var v=f.split("%s"),t="",M=Array.prototype.slice.call(arguments,1);M.length&&v.length>1;)t+=v.shift()+M.shift();return t+v.join("%s")};
_.c6=function(f){return encodeURIComponent(String(f))};
Hh=function(f){return decodeURIComponent(f.replace(/\+/g," "))};
mV=function(f){wye.test(f)&&(f.indexOf("&")!=-1&&(f=f.replace(XyE,"&amp;")),f.indexOf("<")!=-1&&(f=f.replace(A4H,"&lt;")),f.indexOf(">")!=-1&&(f=f.replace(bts,"&gt;")),f.indexOf('"')!=-1&&(f=f.replace(itH,"&quot;")),f.indexOf("'")!=-1&&(f=f.replace(kSR,"&#39;")),f.indexOf("\x00")!=-1&&(f=f.replace(TVe,"&#0;")));return f};
Urb=function(f){var H={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var v=_.Mr.document.createElement("div");return f.replace(l_o,function(t,M){var h=H[t];if(h)return h;M.charAt(0)=="#"&&(M=Number("0"+M.slice(1)),isNaN(M)||(h=String.fromCharCode(M)));h||(_.Me(v,iD(t+" ")),h=v.firstChild.nodeValue.slice(0,-1));return H[t]=h})};
eTa=function(f){return f.replace(/&([^;]+);/g,function(H,v){switch(v){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return v.charAt(0)!="#"||(v=Number("0"+v.slice(1)),isNaN(v))?H:String.fromCharCode(v)}})};
l_o=/&([^;\s<&]+);?/g;_.ih3=function(f){return String(f).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.Lsa=String.prototype.repeat?function(f,H){return f.repeat(H)}:function(f,H){return Array(H+1).join(f)};
_.wP=function(f,H){if(!Number.isFinite(f))return String(f);f=String(f);var v=f.indexOf(".");v===-1&&(v=f.length);var t=f[0]==="-"?"-":"";t&&(f=f.substring(1));return t+(0,_.Lsa)("0",Math.max(0,H-v))+f};
XH=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.qN()).toString(36)};
Xj=function(f){for(var H=0,v=0;v<f.length;++v)H=31*H+f.charCodeAt(v)>>>0;return H};
_.ly=function(f){return String(f).replace(/\-([a-z])/g,function(H,v){return v.toUpperCase()})};
_.Jg=function(f){return String(f).replace(/([A-Z])/g,"-$1").toLowerCase()};
xrr=function(f){return f.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(H,v,t){return v+t.toUpperCase()})};var BBr=function(){this.names=new Map};
BBr.prototype.getName=function(f){var H=this.names.get(f);if(H)return H;var v;H=(v=f.description)!=null?v:XH();this.names.set(f,H);return H};var zTM=function(f){var H=Error.call(this,f?f.length+" errors occurred during unsubscription:\n"+f.map(function(v,t){return t+1+") "+v.toString()}).join("\n  "):"");
this.message=H.message;"stack"in H&&(this.stack=H.stack);this.errors=f;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.e(zTM,Error);var mh=function(f){this.initialTeardown=f;this.closed=!1;this._teardowns=this._parentage=null};
_.R=mh.prototype;
_.R.unsubscribe=function(){if(!this.closed){this.closed=!0;var f=this._parentage;if(Array.isArray(f))for(var H=_.V(f),v=H.next();!v.done;v=H.next())v.value.remove(this);else f==null||f.remove(this);H=this.initialTeardown;if(Yu(H))try{H()}catch(h){var t=h instanceof zTM?h.errors:[h]}var M=this._teardowns;if(M)for(this._teardowns=null,H=_.V(M),v=H.next();!v.done;v=H.next()){v=v.value;try{Yu(v)?v():v.unsubscribe()}catch(h){v=void 0,t=(v=t)!=null?v:[],h instanceof zTM?t=[].concat(_.pS(t),_.pS(h.errors)):
t.push(h)}}if(t)throw new zTM(t);}};
_.R.add=function(f){if(f&&f!==this)if(this.closed)Yu(f)?f():f.unsubscribe();else{if(f instanceof mh){if(f.closed||f._hasParent(this))return;f._addParent(this)}var H;(this._teardowns=(H=this._teardowns)!=null?H:[]).push(f)}};
_.R._hasParent=function(f){var H=this._parentage;return H===f||Array.isArray(H)&&H.includes(f)};
_.R._addParent=function(f){var H=this._parentage;this._parentage=Array.isArray(H)?(H.push(f),H):H?[H,f]:f};
_.R._removeParent=function(f){var H=this._parentage;H===f?this._parentage=null:Array.isArray(H)&&yfg(H,f)};
_.R.remove=function(f){var H=this._teardowns;H&&yfg(H,f);f instanceof mh&&f._removeParent(this)};
var Fsa=new mh;Fsa.closed=!0;mh.JSC$9059_EMPTY=Fsa;var meE=function(){setTimeout.apply(null,_.pS(_.NA.apply(0,arguments)))};var qy=function(f){mh.call(this);this.JSC$9064_isStopped=!1;this.destination=f instanceof qy?f:new f6(!f||Yu(f)?{next:f!=null?f:void 0}:f);YqR(f)&&f.add(this)};
_.e(qy,mh);qy.JSC$9059_EMPTY=mh.JSC$9059_EMPTY;qy.create=function(f,H,v){return new H4(f,H,v)};
_.R=qy.prototype;_.R.next=function(f){this.JSC$9064_isStopped||this._next(f)};
_.R.error=function(f){this.JSC$9064_isStopped||(this.JSC$9064_isStopped=!0,this._error(f))};
_.R.complete=function(){this.JSC$9064_isStopped||(this.JSC$9064_isStopped=!0,this._complete())};
_.R.unsubscribe=function(){this.closed||(this.JSC$9064_isStopped=!0,mh.prototype.unsubscribe.call(this))};
_.R._next=function(f){this.destination.next(f)};
_.R._error=function(f){this.destination.error(f);this.unsubscribe()};
_.R._complete=function(){this.destination.complete();this.unsubscribe()};
var f6=function(f){this.partialObserver=f};
f6.prototype.next=function(f){var H=this.partialObserver;if(H.next)try{H.next(f)}catch(v){Wj(v)}};
f6.prototype.error=function(f){var H=this.partialObserver;if(H.error)try{H.error(f)}catch(v){Wj(v)}else Wj(f)};
f6.prototype.complete=function(){var f=this.partialObserver;if(f.complete)try{f.complete()}catch(H){Wj(H)}};
var H4=function(f,H,v){qy.call(this);var t;Yu(f)||!f?t={next:f!=null?f:void 0,error:H!=null?H:void 0,complete:v!=null?v:void 0}:t=f;this.destination=new f6(t)};
_.e(H4,qy);H4.JSC$9059_EMPTY=qy.JSC$9059_EMPTY;H4.create=qy.create;var dU=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Sa=function(f){f&&(this._subscribe=f)};
_.R=Sa.prototype;_.R.lift=function(f){var H=new Sa;H.source=this;H.operator=f;return H};
_.R.subscribe=function(f,H,v){f=f&&f instanceof qy||f&&Yu(f.next)&&Yu(f.error)&&Yu(f.complete)&&YqR(f)?f:new H4(f,H,v);H=this.operator;v=this.source;f.add(H?H.call(f,v):v?this._subscribe(f):this._trySubscribe(f));return f};
_.R._trySubscribe=function(f){try{return this._subscribe(f)}catch(H){f.error(H)}};
_.R.forEach=function(f,H){var v=this;H=WhR(H);return new H(function(t,M){var h=v.subscribe(function(y){try{f(y)}catch(m){M(m),h==null||h.unsubscribe()}},M,t)})};
_.R._subscribe=function(f){var H;return(H=this.source)==null?void 0:H.subscribe(f)};
Sa.prototype[dU]=function(){return this};
Sa.prototype.pipe=function(){var f=_.NA.apply(0,arguments);return f.length?$eE(f)(this):this};
Sa.create=function(f){return new Sa(f)};var rNC=function(){var f=Error.call(this,"object unsubscribed");this.message=f.message;"stack"in f&&(this.stack=f.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.e(rNC,Error);var dr=function(){this.observers=[];this.hasError=this.JSC$9080_isStopped=this.closed=!1;this.thrownError=null};
_.e(dr,Sa);_.R=dr.prototype;_.R.lift=function(f){var H=new v4(this,this);H.operator=f;return H};
_.R._throwIfClosed=function(){if(this.closed)throw new rNC;};
_.R.next=function(f){this._throwIfClosed();if(!this.JSC$9080_isStopped){var H=this.observers.slice();H=_.V(H);for(var v=H.next();!v.done;v=H.next())v.value.next(f)}};
_.R.error=function(f){this._throwIfClosed();if(!this.JSC$9080_isStopped){this.hasError=this.JSC$9080_isStopped=!0;this.thrownError=f;for(var H=this.observers;H.length;)H.shift().error(f)}};
_.R.complete=function(){this._throwIfClosed();if(!this.JSC$9080_isStopped){this.JSC$9080_isStopped=!0;for(var f=this.observers;f.length;)f.shift().complete()}};
_.R.unsubscribe=function(){this.JSC$9080_isStopped=this.closed=!0;this.observers=null};
_.R._trySubscribe=function(f){this._throwIfClosed();return Sa.prototype._trySubscribe.call(this,f)};
_.R._subscribe=function(f){this._throwIfClosed();this._checkFinalizedStatuses(f);return this._innerSubscribe(f)};
_.R._innerSubscribe=function(f){var H=this,v=this.JSC$9080_isStopped,t=this.observers;return this.hasError||v?mh.JSC$9059_EMPTY:(t.push(f),new mh(function(){return yfg(H.observers,f)}))};
_.R._checkFinalizedStatuses=function(f){var H=this.thrownError,v=this.JSC$9080_isStopped;this.hasError?f.error(H):v&&f.complete()};
dr.create=function(f,H){return new v4(f,H)};
var v4=function(f,H){dr.call(this);this.destination=f;this.source=H};
_.e(v4,dr);v4.create=dr.create;v4.prototype.next=function(f){var H,v;(H=this.destination)==null||(v=H.next)==null||v.call(H,f)};
v4.prototype.error=function(f){var H,v;(H=this.destination)==null||(v=H.error)==null||v.call(H,f)};
v4.prototype.complete=function(){var f,H;(f=this.destination)==null||(H=f.complete)==null||H.call(f)};
v4.prototype._subscribe=function(f){var H,v;return(v=(H=this.source)==null?void 0:H.subscribe(f))!=null?v:mh.JSC$9059_EMPTY};var bh=function(f){dr.call(this);this._value=f};
_.e(bh,dr);bh.create=dr.create;bh.prototype._subscribe=function(f){var H=dr.prototype._subscribe.call(this,f);!H.closed&&f.next(this._value);return H};
bh.prototype.getValue=function(){var f=this.thrownError,H=this._value;if(this.hasError)throw f;this._throwIfClosed();return H};
bh.prototype.next=function(f){dr.prototype.next.call(this,this._value=f)};
_.H7.Object.defineProperties(bh.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var CS=new Sa(function(f){return f.complete()});var SqT=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var Jfb=function(f){return f&&typeof f.length==="number"&&typeof f!=="function"};var KsH={now:function(){return(KsH.delegate||Date).now()},
delegate:void 0};var tT=function(f,H,v){f=f===void 0?Infinity:f;H=H===void 0?Infinity:H;v=v===void 0?KsH:v;dr.call(this);this.bufferSize=f;this.windowTime=H;this.timestampProvider=v;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=H===Infinity;this.bufferSize=Math.max(1,f);this.windowTime=Math.max(1,H)};
_.e(tT,dr);tT.create=dr.create;tT.prototype.next=function(f){var H=this.buffer,v=this.infiniteTimeWindow,t=this.timestampProvider,M=this.windowTime;this.JSC$9080_isStopped||(H.push(f),!v&&H.push(t.now()+M));Dro(this);dr.prototype.next.call(this,f)};
tT.prototype._subscribe=function(f){this._throwIfClosed();Dro(this);for(var H=this._innerSubscribe(f),v=this.infiniteTimeWindow,t=this.buffer.slice(),M=0;M<t.length&&!f.closed;M+=v?1:2)f.next(t[M]);this._checkFinalizedStatuses(f);return H};
var Dro=function(f){var H=f.bufferSize,v=f.timestampProvider,t=f.buffer;f=f.infiniteTimeWindow;var M=(f?1:2)*H;H<Infinity&&M<t.length&&t.splice(0,t.length-M);if(!f){H=v.now();v=0;for(f=1;f<t.length&&t[f]<=H;f+=2)v=f;v&&t.splice(0,v+1)}};var nvg=function(f,H){H=H===void 0?ovr:H;this.schedulerActionCtor=f;this.now=H};
nvg.prototype.schedule=function(f,H,v){H=H===void 0?0:H;return(new this.schedulerActionCtor(this,f)).schedule(v,H)};
var ovr=KsH.now;var Od_=function(){var f=Error.call(this,"no elements in sequence");this.message=f.message;"stack"in f&&(this.stack=f.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.e(Od_,Error);var Dc=function(f,H,v,t,M){qy.call(this,f);this.onUnsubscribe=M;H&&(this._next=function(h){try{H(h)}catch(y){this.destination.error(y)}});
v&&(this._error=function(h){try{v(h)}catch(y){this.destination.error(y)}this.unsubscribe()});
t&&(this._complete=function(){try{t()}catch(h){this.destination.error(h)}this.unsubscribe()})};
_.e(Dc,qy);Dc.JSC$9059_EMPTY=qy.JSC$9059_EMPTY;Dc.create=qy.create;Dc.prototype.unsubscribe=function(){var f;this.closed||(f=this.onUnsubscribe)!=null&&f.call(this);qy.prototype.unsubscribe.call(this)};var HQ=function(f,H){this.source=f;this.subjectFactory=H;this._subject=null;this._refCount=0;this._connection=null};
_.e(HQ,Sa);HQ.create=Sa.create;HQ.prototype._subscribe=function(f){return pRr(this).subscribe(f)};
var pRr=function(f){var H=f._subject;if(!H||H.JSC$9080_isStopped)f._subject=f.subjectFactory();return f._subject};
HQ.prototype._teardown=function(){this._refCount=0;var f=this._connection;this._subject=this._connection=null;f==null||f.unsubscribe()};
HQ.prototype.connect=function(){var f=this,H=this._connection;if(!H){H=this._connection=new mh;var v=pRr(this);H.add(this.source.subscribe(new Dc(v,void 0,function(t){f._teardown();v.error(t)},function(){f._teardown();
v.complete()},function(){return f._teardown()})));
H.closed&&(this._connection=null,H=mh.JSC$9059_EMPTY)}return H};var ouv=Array.isArray;var pjR=Array.isArray,Q3h=Object,Qds=Q3h.getPrototypeOf,uPB=Q3h.prototype,ac3=Q3h.keys;var uk=function(f,H,v){qy.call(this,f);this._next=H;this.shouldComplete=v};
_.e(uk,qy);uk.JSC$9059_EMPTY=qy.JSC$9059_EMPTY;uk.create=qy.create;uk.prototype._complete=function(){this.shouldComplete()?qy.prototype._complete.call(this):this.unsubscribe()};var bSs=["addListener","removeListener"],Afs=["addEventListener","removeEventListener"],koB=["on","off"];var th=function(){mh.call(this)};
_.e(th,mh);th.JSC$9059_EMPTY=mh.JSC$9059_EMPTY;th.prototype.schedule=function(){return this};var uen=function(f,H){return setInterval.apply(null,[f,H].concat(_.pS(_.NA.apply(2,arguments))))};var Mt=function(f,H){mh.call(this);this.scheduler=f;this.work=H;this.pending=!1};
_.e(Mt,th);Mt.JSC$9059_EMPTY=th.JSC$9059_EMPTY;Mt.prototype.schedule=function(f,H){H=H===void 0?0:H;if(this.closed)return this;this.state=f;f=this.id;var v=this.scheduler;f!=null&&(this.id=a_M(this,f,H));this.pending=!0;this.delay=H;this.id=this.id||this.requestAsyncId(v,this.id,H);return this};
Mt.prototype.requestAsyncId=function(f,H,v){v=v===void 0?0:v;return uen(f.flush.bind(f,this),v)};
var a_M=function(f,H,v){v=v===void 0?0:v;if(v!=null&&f.delay===v&&f.pending===!1)return H;clearInterval(H)};
Mt.prototype.execute=function(f,H){if(this.closed)return Error("ha");this.pending=!1;if(f=this._execute(f,H))return f;this.pending===!1&&this.id!=null&&(this.id=a_M(this,this.id,null))};
Mt.prototype._execute=function(f){var H=!1;try{this.work(f)}catch(t){H=!0;var v=!!t&&t||Error(t)}if(H)return this.unsubscribe(),v};
Mt.prototype.unsubscribe=function(){if(!this.closed){var f=this.id,H=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;yfg(H,this);f!=null&&(this.id=a_M(this,f,null));this.delay=null;th.prototype.unsubscribe.call(this)}};var PHM=function(f,H){H=H===void 0?ovr:H;nvg.call(this,f,H);this.actions=[];this.active=!1;this.scheduled=void 0};
_.e(PHM,nvg);PHM.prototype.flush=function(f){var H=this.actions;if(this.active)H.push(f);else{var v;this.active=!0;do if(v=f.execute(f.state,f.delay))break;while(f=H.shift());this.active=!1;if(v){for(;f=H.shift();)f.unsubscribe();throw v;}}};var ol=new Sa($u);var TUE=Array.isArray;var hh=function(f,H){Mt.call(this,f,H);this.scheduler=f;this.work=H};
_.e(hh,Mt);hh.JSC$9059_EMPTY=Mt.JSC$9059_EMPTY;hh.prototype.schedule=function(f,H){H=H===void 0?0:H;if(H>0)return Mt.prototype.schedule.call(this,f,H);this.delay=H;this.state=f;this.scheduler.flush(this);return this};
hh.prototype.execute=function(f,H){return H>0||this.closed?Mt.prototype.execute.call(this,f,H):this._execute(f,H)};
hh.prototype.requestAsyncId=function(f,H,v){v=v===void 0?0:v;return v!=null&&v>0||v==null&&this.delay>0?Mt.prototype.requestAsyncId.call(this,f,H,v):f.flush(this)};var Gb9=function(){PHM.apply(this,arguments)};
_.e(Gb9,PHM);var Khv=new Gb9(hh);var CHa=function(){this.performanceMonitor=new A5H;this.queue=new bE_;this.internalSymbol=Symbol();this.debugNames=new BBr};
CHa.prototype.getOnBackgrounded=function(){return ol};
_.H7.Object.defineProperties(CHa.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var RH=function(f,H){H=Error.call(this,H?f+": "+H:String(f));this.message=H.message;"stack"in H&&(this.stack=H.stack);this.code=f;this.__proto__=RH.prototype;this.name=String(f)};
_.e(RH,Error);var nd=function(f){RH.call(this,1E3,'sfr:"'+f+'"');this.measurementStrategyFailureReason=f;this.__proto__=nd.prototype};
_.e(nd,RH);var pd=function(){RH.call(this,1003);this.__proto__=pd.prototype};
_.e(pd,RH);var V3=function(){RH.call(this,1009);this.__proto__=V3.prototype};
_.e(V3,RH);var Evn=function(){RH.call(this,1011);this.__proto__=Evn.prototype};
_.e(Evn,RH);var NBa=function(){RH.call(this,1007);this.__proto__=pd.prototype};
_.e(NBa,RH);var Kd=function(f){RH.call(this,1004,String(f));this.inputObservableIndex=f;this.__proto__=Kd.prototype};
_.e(Kd,RH);var zdE=function(f){RH.call(this,1010,f);this.__proto__=FvH.prototype};
_.e(zdE,RH);var FvH=function(f){RH.call(this,1005,f);this.__proto__=FvH.prototype};
_.e(FvH,RH);var cNH=function(f){var H=_.NA.apply(1,arguments),v=this;this.orderedFactories=[];this.orderedFactories.push(f);H.forEach(function(t){v.orderedFactories.push(t)})};
cNH.prototype.isSupported=function(f){return this.orderedFactories.some(function(H){return H.isSupported(f)})};
cNH.prototype.makeBeacon=function(f,H){for(var v=0;v<this.orderedFactories.length;v++)if(this.orderedFactories[v].isSupported(H))return this.orderedFactories[v].makeBeacon(f,H);throw new V3;};var dkg=Symbol("ia"),XR_=Symbol("ja"),Af=function(f,H){this.value=f;this.timeline=H},XP=function(f,H){if(H.timeline!==f.timeline)throw new NBa;
return f.value-H.value};
_.R=Af.prototype;_.R.equals=function(f){return XP(this,f)===0};
_.R.maximum=function(f){if(f.timeline!==this.timeline)throw new NBa;return this.value>=f.value?this:f};
_.R.round=function(){return new Af(Math.round(this.value),this.timeline)};
_.R.add=function(f){return new Af(this.value+f,this.timeline)};
_.R.toString=function(){return String(this.value)};var y3=function(f,H){this.context=f;this.JSC$9186_pinger=H};
y3.prototype.isSupported=function(f){return this.JSC$9186_pinger.isSupported(f)};
y3.prototype.makeBeacon=function(f,H){if(!this.isSupported(H))throw new V3;return new Y0(this.context,this.JSC$9186_pinger,H!=null?H:void 0,f)};
var Y0=function(f,H,v,t){var M=this;this.JSC$9192_pinger=H;this.properties=v;this.url=t;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var h;this.method=(h=v==null?void 0:v.beaconMethod)!=null?h:"GET";this.backgroundedSubscription=f.getOnBackgrounded().subscribe(function(){M.sendNow()})};
Y0.prototype.deactivate=function(){this.internalIsPending=!1};
Y0.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9192_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var f,H;this.JSC$9192_pinger.pingWithHeadersAndBody((f=this.properties)!=null?f:{},this.customHeaders,(H=this.body)!=null?H:"",this.url)}else this.JSC$9192_pinger.ping(this.url);this.internalIsPending=!1}catch(v){}else this.internalIsPending=!1};
Y0.prototype.setHeader=function(f,H){this.customHeaders.set(f,H)};
_.H7.Object.defineProperties(Y0.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var bgT=function(){for(var f=_.V(_.NA.apply(0,arguments)),H=f.next();!H.done;H=f.next())if(H=H.value,H.available()){this.timeProvider=H;return}this.timeProvider=new ANn};
_.R=bgT.prototype;_.R.available=function(){return this.timeProvider.available()};
_.R.now=function(){return this.timeProvider.now()};
_.R.setTimeout=function(f,H){return this.timeProvider.setTimeout(f,H)};
_.R.clearTimeout=function(f){this.timeProvider.clearTimeout(f)};
_.R.interval=function(f,H){var v=this.intervalObservable(f).subscribe(H);return function(){return void v.unsubscribe()}};
_.R.intervalObservable=function(f){return this.timeProvider.intervalObservable(f)};
_.H7.Object.defineProperties(bgT.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var ANn=function(){this.timeline=Symbol()};
_.R=ANn.prototype;_.R.available=function(){return!1};
_.R.now=function(){return new Af(0,this.timeline)};
_.R.setTimeout=function(){return 0};
_.R.clearTimeout=function(){};
_.R.interval=function(){return function(){}};
_.R.intervalObservable=function(){return ol};var mP=function(f,H){this.intrinsicFunctionNamespace=f;this.performanceMonitor=H};
_.R=mP.prototype;_.R.setTimeout=function(f,H){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,f),H)};
_.R.clearTimeout=function(f){this.intrinsicFunctionNamespace.clearTimeout(f)};
_.R.interval=function(f,H){var v=this.intervalObservable(f).subscribe(H);return function(){return void v.unsubscribe()}};
_.R.intervalObservable=function(f){var H=this;return new Sa(function(v){var t=0,M=H.intrinsicFunctionNamespace.setInterval(function(){v.next(t++)},f);
return function(){H.intrinsicFunctionNamespace.clearInterval(M)}})};
_.R.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var igr=function(f,H){mP.call(this,f,H);this.timeline=XR_};
_.e(igr,mP);igr.prototype.now=function(){return new Af(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
igr.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&mP.prototype.available.call(this)};var kbr=function(f,H){mP.call(this,f,H);this.timeline=dkg};
_.e(kbr,mP);kbr.prototype.now=function(){return new Af(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
kbr.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&mP.prototype.available.call(this)};var wRZ=function(f){this.context=f;if(TBC===void 0)a:{var H,v,t=(H=f.global)==null?void 0:(v=H.document)==null?void 0:v.createElement("meta");if(t)try{t.httpEquiv="origin-trial";t.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";f.global.document.head.append(t);TBC=t;break a}catch(M){}TBC=void 0}},
TBC;
wRZ.prototype.isSupported=function(f){return VFs(this.context)!==void 0&&!(f==null||!f.endOfSession)&&!$0(this.context)&&!(f==null?0:f.attributionEnabled)&&!(f==null?0:f.customHeaders)&&!(f==null?0:f.customBody)};
wRZ.prototype.makeBeacon=function(f,H){if(!this.isSupported(H))throw new V3;return new W4(this.context,f,H)};
var W4=function(f,H,v){this.context=f;this.properties=v;this.JSC$9219_urlWithoutToken=H;var t;this.beaconMethod=(t=v==null?void 0:v.beaconMethod)!=null?t:"GET";f=VFs(this.context);if(f===void 0)throw Error();this.fetchLater=f;q5h(this,fho(this))},q5h=function(f,H){f.beaconResult&&f.beaconResult.activated||(f.beaconAbort=new AbortController,f.beaconResult=f.fetchLater(H,{method:f.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:f.beaconAbort.signal,activateAfter:96E4}))},fho=function(f){f=f.JSC$9219_urlWithoutToken;
return(f.slice(-1)[0]==="&"?f:f+"&")+"flapi=1"};
W4.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
W4.prototype.sendNow=function(){};
W4.prototype.setHeader=function(){};
_.H7.Object.defineProperties(W4.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9219_urlWithoutToken},
set:function(f){this.JSC$9219_urlWithoutToken=f;f=fho(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);q5h(this,f)}},
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 HrM=function(f){this.context=f};
HrM.prototype.isSupported=function(){return!$0(this.context)&&!!this.context.global.fetch};
HrM.prototype.ping=function(){var f=this;return Eq.apply(null,_.pS(_.NA.apply(0,arguments).map(function(H){return sq(f.context.global.fetch(H,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(nS(function(v){return v.status===200}))}))).pipe(gO3(function(H){return H}),SZ5())};
HrM.prototype.pingWithHeadersAndBody=function(f,H,v){for(var t=_.NA.apply(3,arguments),M=this,h=new Headers,y=_.V(H.entries()),m=y.next();!m.done;m=y.next()){var W=_.V(m.value);m=W.next().value;W=W.next().value;h.set(m,W)}var I,S=(I=f.keepAlive)!=null?I:!1;Eq.apply(null,_.pS(t.map(function(d){return sq(M.context.global.fetch(d,Object.assign({},{method:String(f.beaconMethod),cache:"no-cache"},S?{keepalive:!0}:{},{mode:"no-cors",headers:h,body:v}))).pipe(nS(function(Z){return Z.status===200}))}))).pipe(gO3(function(d){return d}),
SZ5())};var vgb,P_N;_.gQ=function(){};
_.Cg=function(f){return f};
vgb=function(f){var H=H||0;return function(){return f.apply(this,Array.prototype.slice.call(arguments,0,H))}};
_.IH=function(f){var H=!1,v;return function(){H||(v=f(),H=!0);return v}};
_.SI=function(f,H){var v=0;return function(t){_.Mr.clearTimeout(v);var M=arguments;v=_.Mr.setTimeout(function(){f.apply(void 0,M)},H)}};
P_N=function(f,H){var v=0,t=!1,M=[],h=function(){v=0;t&&(t=!1,y())},y=function(){v=_.Mr.setTimeout(h,H);
var m=M;M=[];f.apply(void 0,m)};
return function(m){M=arguments;v?t=!0:y()}};var Mv_=function(){return Z_&&JN?JN.mobile:!tv9()&&(xv("iPod")||xv("iPhone")||xv("Android")||xv("IEMobile"))},tv9=function(){return Z_&&JN?!JN.mobile&&(xv("iPad")||xv("Android")||xv("Silk")):xv("iPad")||xv("Android")&&!xv("Mobile")||xv("Silk")};var hZh;_.QA={};hZh="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.QA.add=function(f,H,v){if(f!==null&&H in f)throw Error("la`"+H);f[H]=v};
_.QA.clear=function(f){for(var H in f)delete f[H]};
_.QA.clone=function(f){var H={},v;for(v in f)H[v]=f[v];return H};
_.QA.contains=function(f,H){return lR3(f,H)};
_.QA.containsKey=function(f,H){return f!==null&&H in f};
_.QA.containsValue=lR3;_.QA.create=LS_;_.QA.createImmutableView=function(f){var H=f;Object.isFrozen&&!Object.isFrozen(f)&&(H=Object.create(f),Object.freeze(H));return H};
_.QA.createSet=xde;_.QA.equals=function(f,H){for(var v in f)if(!(v in H)||f[v]!==H[v])return!1;for(var t in H)if(!(t in f))return!1;return!0};
_.QA.every=function(f,H,v){for(var t in f)if(!H.call(v,f[t],t,f))return!1;return!0};
_.QA.extend=function(f,H){for(var v,t,M=1;M<arguments.length;M++){t=arguments[M];for(v in t)f[v]=t[v];for(var h=0;h<hZh.length;h++)v=hZh[h],Object.prototype.hasOwnProperty.call(t,v)&&(f[v]=t[v])}};
_.QA.filter=function(f,H,v){var t={},M;for(M in f)H.call(v,f[M],M,f)&&(t[M]=f[M]);return t};
_.QA.findKey=Ud3;_.QA.findValue=function(f,H,v){return(H=Ud3(f,H,v))&&f[H]};
_.QA.forEach=function(f,H,v){for(var t in f)H.call(v,f[t],t,f)};
_.QA.get=function(f,H,v){return f!==null&&H in f?f[H]:v};
_.QA.getAllPropertyNames=function(f,H,v){if(!f)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return JTH(f);for(var t={};f&&(f!==Object.prototype||H)&&(f!==Function.prototype||v);){for(var M=Object.getOwnPropertyNames(f),h=0;h<M.length;h++)t[M[h]]=!0;f=Object.getPrototypeOf(f)}return JTH(t)};
_.QA.getAnyKey=function(f){for(var H in f)return H};
_.QA.getAnyValue=function(f){for(var H in f)return f[H]};
_.QA.getCount=function(f){var H=0,v;for(v in f)H++;return H};
_.QA.getKeys=JTH;_.QA.getSuperClass=function(f){return(f=Object.getPrototypeOf(f.prototype))&&f.constructor};
_.QA.getValueByKeys=function(f,H){var v=_.Tb(H),t=v?H:arguments;for(v=v?0:1;v<t.length;v++){if(f==null)return;f=f[t[v]]}return f};
_.QA.getValues=function(f){var H=[],v=0,t;for(t in f)H[v++]=f[t];return H};
_.QA.isEmpty=function(f){for(var H in f)return!1;return!0};
_.QA.isImmutableView=function(f){return!!Object.isFrozen&&Object.isFrozen(f)};
_.QA.map=function(f,H,v){var t={},M;for(M in f)t[M]=H.call(v,f[M],M,f);return t};
_.QA.remove=function(f,H){var v;(v=H in f)&&delete f[H];return v};
_.QA.set=function(f,H,v){f[H]=v};
_.QA.setIfUndefined=function(f,H,v){return H in f?f[H]:f[H]=v};
_.QA.setWithReturnValueIfNotSet=function(f,H,v){if(H in f)return f[H];v=v();return f[H]=v};
_.QA.some=function(f,H,v){for(var t in f)if(H.call(v,f[t],t,f))return!0;return!1};
_.QA.transpose=function(f){var H={},v;for(v in f)H[f[v]]=v;return H};
_.QA.unsafeClone=eg_;var dQ=function(f,H,v,t,M){this.allowedElements=f;this.elementPolicies=H;this.allowedGlobalAttributes=v;this.globalAttributePolicies=t;this.globallyAllowedAttributePrefixes=M},RZa=function(f,H,v){v=f.elementPolicies.get(v);
return(v==null?0:v.has(H))?v.get(H):f.allowedGlobalAttributes.has(H)?{policyAction:1}:(v=f.globalAttributePolicies.get(H))?v:f.globallyAllowedAttributePrefixes&&[].concat(_.pS(f.globallyAllowedAttributePrefixes)).some(function(t){return H.indexOf(t)===0})?{policyAction:1}:{policyAction:0}};var Vvr="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(" "),
y9r=[["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}]])]],Ybg="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(" "),
mTn=[["dir",{policyAction:3,conditions:Bv(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:Bv(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:Bv(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:Bv(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],$TH=new dQ(new Set(Vvr),new Map(y9r),new Set(Ybg),new Map(mTn)),W_n=new dQ(new Set(Vvr.concat(["BUTTON",
"INPUT"])),new Map(y9r),new Set(Bv(function(){return Ybg.concat(["class","id","name"])})),new Map(Bv(function(){return mTn.concat([["style",
{policyAction:1}]])})));var OrC,ggh,Sbh;OrC=function(f,H,v,t,M){this.JSC$9280_sanitizerTable=f;this.styleElementSanitizer=H;this.styleAttributeSanitizer=v;this.JSC$9280_resourceUrlPolicy=t;this.JSC$9280_navigationUrlPolicy=M;this.changes=[]};
_.Ih_=function(f,H){var v=document.implementation.createHTMLDocument("");f=ggh(f,H,v);v=v.body;v.appendChild(f);v=(new XMLSerializer).serializeToString(v);v=v.slice(v.indexOf(">")+1,v.lastIndexOf("</"));return iD(v)};
ggh=function(f,H,v){H=FSv(H,v);H=document.createTreeWalker(H,5,function(m){if(m.nodeType===3)m=1;else if(KS_(m))if(m=rTR(m),m===null)m=2;else{var W=f.JSC$9280_sanitizerTable;m=m!=="FORM"&&(W.allowedElements.has(m)||W.elementPolicies.has(m))?1:2}else m=2;return m});
for(var t=H.nextNode(),M=v.createDocumentFragment(),h=M;t!==null;){var y=void 0;if(t.nodeType===3)f.styleElementSanitizer&&h.nodeName==="STYLE"?(t=f.styleElementSanitizer(t.data),y=f.createTextNode(t)):y=f.createTextNode(t.data);else if(KS_(t))y=Sbh(f,t,v);else throw Error("Z");h.appendChild(y);if(t=H.firstChild())h=y;else for(;!(t=H.nextSibling())&&(t=H.parentNode());)h=h.parentNode}return M};
OrC.prototype.createTextNode=function(f){return document.createTextNode(f)};
Sbh=function(f,H,v){var t,M=rTR(H);v=v.createElement(M);H=H.attributes;for(var h=_.V(H),y=h.next();!y.done;y=h.next()){var m=y.value;y=m.name;m=m.value;var W=RZa(f.JSC$9280_sanitizerTable,y,M);a:{if(t=W.conditions){t=_.V(t);for(var I=t.next();!I.done;I=t.next()){var S=_.V(I.value);I=S.next().value;S=S.next().value;var d=void 0;if((I=(d=H.getNamedItem(I))==null?void 0:d.value)&&!S.has(I)){t=!1;break a}}}t=!0}if(t)switch(W.policyAction){case 1:WQ(v,y,m);break;case 2:throw Error();case 3:WQ(v,y,m.toLowerCase());
break;case 4:f.styleAttributeSanitizer?(m=f.styleAttributeSanitizer(m),WQ(v,y,m)):WQ(v,y,m);break;case 5:f.JSC$9280_resourceUrlPolicy?(W={type:2,attributeName:y,elementName:M},m=zgv(m),(m=f.JSC$9280_resourceUrlPolicy(m,W))&&WQ(v,y,m.toString())):WQ(v,y,m);break;case 6:if(f.JSC$9280_resourceUrlPolicy){W={type:2,attributeName:y,elementName:M};t=[];m=_.V(m.split(","));for(I=m.next();!I.done;I=m.next())S=_.V(I.value.trim().split(/\s+/,2)),I=S.next().value,S=S.next().value,t.push({url:I,descriptor:S});
m={parts:[]};t=_.V(t);for(I=t.next();!I.done;I=t.next())I=I.value,S=zgv(I.url),(S=f.JSC$9280_resourceUrlPolicy(S,W))&&m.parts.push({url:S.toString(),descriptor:I.descriptor});WQ(v,y,Dds(m))}else WQ(v,y,m);break;case 7:W=m;if(f.JSC$9280_navigationUrlPolicy){W={type:2,attributeName:y,elementName:M};m=zgv(m);m=f.JSC$9280_navigationUrlPolicy(m,W);if(m===null)break;W=m.toString()}m=W;W=_.k1N(m);W=W!==void 0&&drZ.indexOf(W.toLowerCase())!==-1?m:"about:invalid#zClosurez";WQ(v,y,W)}}return v};
_.dTC=Bv(function(){return new OrC($TH)});
_.jnh=Bv(function(){return new OrC(W_n)});var snn=function(){this.calledBuild=!1;this.JSC$9292_sanitizerTable=$TH},Zr_=function(){snn.apply(this,arguments)};
_.e(Zr_,snn);Zr_.prototype.build=function(){if(this.calledBuild)throw Error("na");this.calledBuild=!0;return new OrC(this.JSC$9292_sanitizerTable,void 0,void 0,this.JSC$9292_resourceUrlPolicy,this.JSC$9292_navigationUrlPolicy)};var J9H=/[^#]*/;var UTb=function(f){var H=lhh;if(H)for(var v in H)Object.prototype.hasOwnProperty.call(H,v)&&f(H[v],v,H)},eZr=function(){var f=[];
UTb(function(H){f.push(H)});
return f},lhh={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"},L_T=_.IH(function(){return eZr()}),Bha=function(){var f=xTh("IFRAME"),
H={};
_.X3(L_T(),function(v){f.sandbox&&f.sandbox.supports&&f.sandbox.supports(v)&&(H[v]=!0)});
return H},xTh=function(f,H){H=H===void 0?document:H;
return H.createElement(String(f).toLowerCase())};var jI;_.FL=function(f,H,v){return Math.min(Math.max(f,H),v)};
jI=function(f,H,v){return f+v*(H-f)};_.al=function(f,H){this.x=f!==void 0?f:0;this.y=H!==void 0?H:0};
_.R=_.al.prototype;_.R.clone=function(){return new _.al(this.x,this.y)};
_.R.equals=function(f){return f instanceof _.al&&(this==f?!0:this&&f?this.x==f.x&&this.y==f.y:!1)};
_.R.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.R.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.R.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.R.translate=function(f,H){f instanceof _.al?(this.x+=f.x,this.y+=f.y):(this.x+=Number(f),typeof H==="number"&&(this.y+=H));return this};
_.R.scale=function(f,H){this.x*=f;this.y*=typeof H==="number"?H:f;return this};_.eF=function(f,H){this.width=f;this.height=H};
_.R=_.eF.prototype;_.R.clone=function(){return new _.eF(this.width,this.height)};
_.R.area=function(){return this.width*this.height};
_.R.aspectRatio=function(){return this.width/this.height};
_.R.isEmpty=function(){return!this.area()};
_.R.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.R.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.R.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.R.scale=function(f,H){this.width*=f;this.height*=typeof H==="number"?H:f;return this};var aO=function(f,H){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=f===ZTE&&H||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=zZM};
aO.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var F_v=function(f){return f instanceof aO&&f.constructor===aO&&f.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===zZM?f.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},zZM={},ZTE={};
new aO(ZTE,"");var BQ,ez,ZD,r9_,ogg,DTg,PQ,poT,uav,Qna,eI,ahg,XoH,c9Z,Nhh,A9_,brZ,irv,kHh,PV5,Th9,qbn,frn,woh,s$;BQ=function(f){return f?new s$(_.Gf(f)):GS5||(GS5=new s$)};
_.Ml=function(f,H){return typeof H==="string"?f.getElementById(H):H};
ez=function(f,H){return(H||document).getElementsByTagName(String(f))};
_.K_g=function(f){return r9_("yt-formatted-string","paper-input-input",f)};
ZD=function(f,H,v,t){f=t||f;return(H=H&&H!="*"?String(H).toUpperCase():"")||v?f.querySelectorAll(H+(v?"."+v:"")):f.getElementsByTagName("*")};
r9_=function(f,H,v){var t=document,M=f&&f!="*"?String(f).toUpperCase():"";return M||H?(v||t).querySelector(M+(H?"."+H:"")):ZD(t,f,H,v)[0]||null};
ogg=function(f,H){_.QA.forEach(H,function(v,t){t=="style"?f.style.cssText=v:t=="class"?f.className=v:t=="for"?f.htmlFor=v:DTg.hasOwnProperty(t)?f.setAttribute(DTg[t],v):_.VR(t,"aria-")||_.VR(t,"data-")?f.setAttribute(t,v):f[t]=v})};
DTg={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"};_.Ld=function(f){f=(f||window).document;f=f.compatMode=="CSS1Compat"?f.documentElement:f.body;return new _.eF(f.clientWidth,f.clientHeight)};
_.nga=function(f){var H=_.Jh(f);f=f.defaultView;return new _.al(f.pageXOffset||H.scrollLeft,f.pageYOffset||H.scrollTop)};
_.Jh=function(f){return f.scrollingElement?f.scrollingElement:_.Rp||f.compatMode!="CSS1Compat"?f.body||f.documentElement:f.documentElement};
PQ=function(f){return f?f.defaultView:window};
_.ls=function(f,H,v){return poT(document,arguments)};
poT=function(f,H){var v=H[1],t=Qna(f,String(H[0]));v&&(typeof v==="string"?t.className=v:Array.isArray(v)?t.className=v.join(" "):ogg(t,v));H.length>2&&uav(f,t,H,2);return t};
uav=function(f,H,v,t){function M(m){m&&H.appendChild(typeof m==="string"?f.createTextNode(m):m)}
for(;t<v.length;t++){var h=v[t];if(!_.Tb(h)||_.vo(h)&&h.nodeType>0)M(h);else{a:{if(h&&typeof h.length=="number"){if(_.vo(h)){var y=typeof h.item=="function"||typeof h.item=="string";break a}if(typeof h==="function"){y=typeof h.item=="function";break a}}y=!1}_.X3(y?_.kv(h):h,M)}}};
_.lS=function(f){return Qna(document,f)};
Qna=function(f,H){H=String(H);f.contentType==="application/xhtml+xml"&&(H=H.toLowerCase());return f.createElement(H)};
_.U$=function(){return document.createTextNode("\n")};
eI=function(f){if(f.nodeType!=1)return!1;switch(f.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};
ahg=function(f,H){uav(_.Gf(f),f,arguments,1)};
_.L6=function(f){for(var H;H=f.firstChild;)f.removeChild(H)};
_.x0=function(f,H){H.parentNode&&H.parentNode.insertBefore(f,H)};
_.B4=function(f,H){H.parentNode&&H.parentNode.insertBefore(f,H.nextSibling)};
_.U1=function(f){return f&&f.parentNode?f.parentNode.removeChild(f):null};
_.PCg=function(f,H){var v=H.parentNode;v&&v.replaceChild(f,H)};
_.GHr=function(f){var H,v=f.parentNode;if(v&&v.nodeType!=11)if(f.removeNode)f.removeNode(!1);else{for(;H=f.firstChild;)v.insertBefore(H,f);_.U1(f)}};
_.z_=function(f){return f.children!=void 0?f.children:Array.prototype.filter.call(f.childNodes,function(H){return H.nodeType==1})};
_.EgH=function(f){return f.nextElementSibling!==void 0?f.nextElementSibling:_.CCZ(f.nextSibling,!0)};
_.CCZ=function(f,H){for(;f&&f.nodeType!=1;)f=H?f.nextSibling:f.previousSibling;return f};
_.wk=function(f){return _.vo(f)&&f.nodeType==1};
_.Nj=function(f,H){if(!f||!H)return!1;if(f.contains&&H.nodeType==1)return f==H||f.contains(H);if(typeof f.compareDocumentPosition!="undefined")return f==H||!!(f.compareDocumentPosition(H)&16);for(;H&&f!=H;)H=H.parentNode;return H==f};
XoH=function(f,H){if(f==H)return 0;if(f.compareDocumentPosition)return f.compareDocumentPosition(H)&2?1:-1;if("sourceIndex"in f||f.parentNode&&"sourceIndex"in f.parentNode){var v=f.nodeType==1,t=H.nodeType==1;if(v&&t)return f.sourceIndex-H.sourceIndex;var M=f.parentNode,h=H.parentNode;return M==h?Nhh(f,H):!v&&_.Nj(M,H)?-1*c9Z(f,H):!t&&_.Nj(h,f)?c9Z(H,f):(v?f.sourceIndex:M.sourceIndex)-(t?H.sourceIndex:h.sourceIndex)}t=_.Gf(f);v=t.createRange();v.selectNode(f);v.collapse(!0);f=t.createRange();f.selectNode(H);
f.collapse(!0);return v.compareBoundaryPoints(_.Mr.Range.START_TO_END,f)};
c9Z=function(f,H){var v=f.parentNode;if(v==H)return-1;for(;H.parentNode!=v;)H=H.parentNode;return Nhh(H,f)};
Nhh=function(f,H){for(;H=H.previousSibling;)if(H==f)return-1;return 1};
A9_=function(f){var H,v=arguments.length;if(!v)return null;if(v==1)return arguments[0];var t=[],M=Infinity;for(H=0;H<v;H++){for(var h=[],y=arguments[H];y;)h.unshift(y),y=y.parentNode;t.push(h);M=Math.min(M,h.length)}h=null;for(H=0;H<M;H++){y=t[0][H];for(var m=1;m<v;m++)if(y!=t[m][H])return h;h=y}return h};
_.Gf=function(f){return f.nodeType==9?f:f.ownerDocument||f.document};
brZ=function(f){return f.contentDocument||f.contentWindow.document};
_.F_=function(f,H){if("textContent"in f)f.textContent=H;else if(f.nodeType==3)f.data=String(H);else if(f.firstChild&&f.firstChild.nodeType==3){for(;f.lastChild!=f.firstChild;)f.removeChild(f.lastChild);f.firstChild.data=String(H)}else _.L6(f),f.appendChild(_.Gf(f).createTextNode(String(H)))};
irv={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};kHh={IMG:" ",BR:"\n"};PV5=function(f){var H;f.tagName=="A"&&f.hasAttribute("href")||f.tagName=="INPUT"||f.tagName=="TEXTAREA"||f.tagName=="SELECT"||f.tagName=="BUTTON"?H=!f.disabled&&(!f.hasAttribute("tabindex")||Th9(f)):H=f.hasAttribute("tabindex")&&Th9(f);return H};
Th9=function(f){f=f.tabIndex;return typeof f==="number"&&f>=0&&f<32768};
qbn=function(f){var H=[];woh(f,H,!0);f=H.join("");f=f.replace(/ \xAD /g," ").replace(/\xAD/g,"");f=f.replace(/\u200B/g,"");f=f.replace(/ +/g," ");f!=" "&&(f=f.replace(/^\s*/,""));return f};
frn=function(f){var H=[];woh(f,H,!1);return H.join("")};
woh=function(f,H,v){if(!(f.nodeName in irv))if(f.nodeType==3)v?H.push(String(f.nodeValue).replace(/(\r\n|\r|\n)/g,"")):H.push(f.nodeValue);else if(f.nodeName in kHh)H.push(kHh[f.nodeName]);else for(f=f.firstChild;f;)woh(f,H,v),f=f.nextSibling};
_.H09=function(f,H,v){if(!H&&!v)return null;var t=H?String(H).toUpperCase():null;return _.EZ(f,function(M){return(!t||M.nodeName==t)&&(!v||typeof M.className==="string"&&_.cR(M.className.split(/\s+/),v))},!0)};
_.EZ=function(f,H,v){f&&!v&&(f=f.parentNode);for(v=0;f;){if(H(f))return f;f=f.parentNode;v++}return null};
s$=function(f){this.JSC$9317_document_=f||_.Mr.document||document};
_.R=s$.prototype;_.R.getElement=function(f){return _.Ml(this.JSC$9317_document_,f)};
_.R.$=s$.prototype.getElement;_.R.getElementsByTagName=function(f,H){return(H||this.JSC$9317_document_).getElementsByTagName(String(f))};
_.R.getElementsByTagNameAndClass=function(f,H,v){return ZD(this.JSC$9317_document_,f,H,v)};
_.R.$$=s$.prototype.getElementsByTagNameAndClass;_.R.setProperties=ogg;_.R.JSC$9319_createDom=function(f,H,v){return poT(this.JSC$9317_document_,arguments)};
_.R.createElement=function(f){return Qna(this.JSC$9317_document_,f)};
_.R.createTextNode=function(f){return this.JSC$9317_document_.createTextNode(String(f))};
_.R.getWindow=function(){return this.JSC$9317_document_.defaultView};
var xO=function(f){return _.nga(f.JSC$9317_document_)};
_.R=s$.prototype;_.R.appendChild=function(f,H){f.appendChild(H)};
_.R.append=ahg;_.R.canHaveChildren=eI;_.R.removeNode=_.U1;_.R.getChildren=_.z_;_.R.contains=_.Nj;_.R=SF.prototype;_.R.getWidth=function(){return this.right-this.left};
_.R.getHeight=function(){return this.bottom-this.top};
_.R.clone=function(){return new SF(this.top,this.right,this.bottom,this.left)};
_.R.contains=function(f){return this&&f?f instanceof SF?f.left>=this.left&&f.right<=this.right&&f.top>=this.top&&f.bottom<=this.bottom:f.x>=this.left&&f.x<=this.right&&f.y>=this.top&&f.y<=this.bottom:!1};
_.R.expand=function(f,H,v,t){_.vo(f)?(this.top-=f.top,this.right+=f.right,this.bottom+=f.bottom,this.left-=f.left):(this.top-=f,this.right+=Number(H),this.bottom+=Number(v),this.left-=Number(t));return this};
_.R.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};
_.R.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};
_.R.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};
_.R.translate=function(f,H){f instanceof _.al?(this.left+=f.x,this.right+=f.x,this.top+=f.y,this.bottom+=f.y):(this.left+=f,this.right+=f,typeof H==="number"&&(this.top+=H,this.bottom+=H));return this};
_.R.scale=function(f,H){H=typeof H==="number"?H:f;this.left*=f;this.right*=f;this.top*=H;this.bottom*=H;return this};var rQ=function(f,H,v,t){this.left=f;this.top=H;this.width=v;this.height=t};
_.R=rQ.prototype;_.R.clone=function(){return new rQ(this.left,this.top,this.width,this.height)};
_.R.boundingRect=function(f){var H=Math.max(this.left+this.width,f.left+f.width),v=Math.max(this.top+this.height,f.top+f.height);this.left=Math.min(this.left,f.left);this.top=Math.min(this.top,f.top);this.width=H-this.left;this.height=v-this.top};
_.R.contains=function(f){return f instanceof _.al?f.x>=this.left&&f.x<=this.left+this.width&&f.y>=this.top&&f.y<=this.top+this.height:this.left<=f.left&&this.left+this.width>=f.left+f.width&&this.top<=f.top&&this.top+this.height>=f.top+f.height};
_.R.distance=function(f){var H=f.x<this.left?this.left-f.x:Math.max(f.x-(this.left+this.width),0);f=f.y<this.top?this.top-f.y:Math.max(f.y-(this.top+this.height),0);return Math.sqrt(H*H+f*f)};
_.R.getSize=function(){return new _.eF(this.width,this.height)};
_.R.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};
_.R.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};
_.R.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};
_.R.translate=function(f,H){f instanceof _.al?(this.left+=f.x,this.top+=f.y):(this.left+=f,typeof H==="number"&&(this.top+=H));return this};
_.R.scale=function(f,H){H=typeof H==="number"?H:f;this.left*=f;this.width*=f;this.top*=H;this.height*=H;return this};var tpH,oH,hiB,DD,Vpn,RwT,yWZ,G_B,Yxh,$xa;_.K6=function(f,H,v){if(typeof H==="string")(H=_.v5T(f,H))&&(f.style[H]=v);else for(var t in H){v=f;var M=H[t],h=_.v5T(v,t);h&&(v.style[h]=M)}};
tpH={};_.v5T=function(f,H){var v=tpH[H];if(!v){var t=_.ly(H);v=t;f.style[t]===void 0&&(t=(_.Rp?"Webkit":_.hZ?"Moz":null)+xrr(t),f.style[t]!==void 0&&(v=t));tpH[H]=v}return v};
_.m2=function(f,H){var v=_.Gf(f);return v.defaultView&&v.defaultView.getComputedStyle&&(f=v.defaultView.getComputedStyle(f,null))?f[H]||f.getPropertyValue(H)||"":""};
_.E1=function(f,H){return _.m2(f,H)||(f.currentStyle?f.currentStyle[H]:null)||f.style&&f.style[H]};
_.Mpn=function(f){return _.E1(f,"position")};
oH=function(f,H,v){if(H instanceof _.al){var t=H.x;H=H.y}else t=H,H=v;f.style.left=DD(t,!1);f.style.top=DD(H,!1)};
hiB=function(f){try{return f.getBoundingClientRect()}catch(H){return{left:0,top:0,right:0,bottom:0}}};
_.Cd=function(f){var H=_.Gf(f),v=new _.al(0,0);if(f==(H?_.Gf(H):document).documentElement)return v;f=hiB(f);H=xO(BQ(H));v.x=f.left+H.x;v.y=f.top+H.y;return v};
_.hwb=function(f,H,v){if(H instanceof _.eF)v=H.height,H=H.width;else if(v==void 0)throw Error("oa");f.style.width=DD(H,!0);f.style.height=DD(v,!0)};
DD=function(f,H){typeof f=="number"&&(f=(H?Math.round(f):f)+"px");return f};
Vpn=function(f){return RwT(f)};
RwT=function(f){var H=yWZ;if(_.E1(f,"display")!="none")return H(f);var v=f.style,t=v.display,M=v.visibility,h=v.position;v.visibility="hidden";v.position="absolute";v.display="inline";f=H(f);v.display=t;v.position=h;v.visibility=M;return f};
yWZ=function(f){var H=f.offsetWidth,v=f.offsetHeight,t=_.Rp&&!H&&!v;return(H===void 0||t)&&f.getBoundingClientRect?(f=hiB(f),new _.eF(f.right-f.left,f.bottom-f.top)):new _.eF(H,v)};
G_B=function(f){var H=_.Cd(f);f=RwT(f);return new rQ(H.x,H.y,f.width,f.height)};
Yxh=function(f,H){f=f.style;"opacity"in f?f.opacity=H:"MozOpacity"in f?f.MozOpacity=H:"filter"in f&&(f.filter=H===""?"":"alpha(opacity="+Number(H)*100+")")};
_.kl=function(f,H){f.style.display=H?"":"none"};
_.mxM=function(f){return"rtl"==_.E1(f,"direction")};
$xa=function(f){var H=_.m2(f,"marginLeft"),v=_.m2(f,"marginRight"),t=_.m2(f,"marginTop");f=_.m2(f,"marginBottom");return new SF(parseFloat(t),parseFloat(v),parseFloat(f),parseFloat(H))};
_.WWh=function(f){var H=_.m2(f,"borderLeftWidth"),v=_.m2(f,"borderRightWidth"),t=_.m2(f,"borderTopWidth");f=_.m2(f,"borderBottomWidth");return new SF(parseFloat(t),parseFloat(v),parseFloat(f),parseFloat(H))};var n6=function(f){this.context=f};
n6.prototype.isSupported=function(f){return(f==null?0:f.attributionEnabled)||(f==null?void 0:f.beaconMethod)==="POST"||(f==null?0:f.customHeaders)||(f==null?0:f.customBody)||(f==null?0:f.keepAlive)?!1:!$0(this.context)};
n6.prototype.ping=function(){var f=this;return FP(_.NA.apply(0,arguments).map(function(H){try{var v=f.context.global,t=!1;t=t===void 0?!1:t;v.google_image_requests||(v.google_image_requests=[]);var M=xTh("IMG",v.document);t&&(M.attributionSrc="");M.src=H;v.google_image_requests.push(M);return!0}catch(h){return!1}}).every(function(H){return H}))};
n6.prototype.pingWithHeadersAndBody=function(f,H,v){this.ping.apply(this,_.pS(_.NA.apply(3,arguments)))};var O09=function(f){this.context=f};
O09.prototype.isSupported=function(f){return g5a&&!$0(this.context)&&nOT(this.context)!==void 0&&!(f==null?0:f.attributionEnabled)&&(f==null?void 0:f.beaconMethod)!=="POST"&&!(f==null?0:f.customHeaders)&&!(f==null?0:f.customBody)};
O09.prototype.makeBeacon=function(f,H){if(!this.isSupported(H))throw new V3;return new p6(this.context,f)};
var g5a=!1,p6=function(f,H){this.context=f;this.JSC$9338_urlWithoutToken=H;f=nOT(this.context);if(f===void 0)throw Error();this.wrappedBeacon=new f(IrH(this),{})},IrH=function(f){f=f.JSC$9338_urlWithoutToken;
return(f.slice(-1)[0]==="&"?f:f+"&")+"pbapi=1"};
p6.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
p6.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
p6.prototype.setHeader=function(){};
_.H7.Object.defineProperties(p6.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9338_urlWithoutToken},
set:function(f){this.JSC$9338_urlWithoutToken=f;this.wrappedBeacon.setURL(IrH(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(f){if(f!=="GET")throw new V3;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var SxT=function(f){this.context=f};
SxT.prototype.isSupported=function(f){if((f==null?0:f.attributionEnabled)||(f==null?void 0:f.beaconMethod)==="GET"||(f==null?0:f.customHeaders)||(f==null?0:f.customBody)||(f==null?0:f.keepAlive))return!1;var H;return!$0(this.context)&&((H=this.context.global.navigator)==null?void 0:H.sendBeacon)!==void 0};
SxT.prototype.ping=function(){var f=this;return FP(_.NA.apply(0,arguments).map(function(H){var v;return(v=f.context.global.navigator)==null?void 0:v.sendBeacon(H)}).every(function(H){return H}))};
SxT.prototype.pingWithHeadersAndBody=function(f,H,v){this.ping.apply(this,_.pS(_.NA.apply(3,arguments)))};var JT=function(f){this.value=f},f9=function(f,H){return FP(f.value).pipe(sZ(H))},v_=new JT(!1),dwg=new JT(!0);var Nd=function(f){this.value=f;this.releasedSubject=new dr};
Nd.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.H7.Object.defineProperties(Nd.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9351_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var bdR=["FRAME","IMG","IFRAME"],Ch_=/^[01](px)?$/,ATR=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},XQH=function(){var f=new ATR;
f.crossDomainLoadedDefault=!0;f.pendingImagesBlockLoad=!0;return f};var dxT=function(f,H){var v=H93(f);if(v)if(v.onCreativeLoad)v.onCreativeLoad(H);else{var t=H?[H]:[],M=function(h){for(var y=0;y<t.length;++y)try{t[y](1,h)}catch(m){}t={push:function(m){m(1,h)}}};
v.onCreativeLoad=function(h){t.push(h)};
v.setAttribute("data-creative-load-listener","");v.addEventListener("creativeLoad",function(h){M(h.detail)});
_.Mr.addEventListener("message",function(h){fPT(v,M,h)})}};var Q3=function(f,H){var v=this;this.global=f;this.parentContext=H;this.JSC$9362_onVisibilityChange=this.document?Eq(FP(!0),Pj(this.document,"visibilitychange")).pipe(bk(this.parentContext.performanceMonitor,748),nS(function(){return v.getVisibilityState()}),qe()):FP("visible");
this.document?Pj(this.document,"DOMContentLoaded").pipe(bk(this.parentContext.performanceMonitor,739),wU(1)):FP(PhR("DOMContentLoaded"))},SSe=function(f){return f.document!==null&&f.document.visibilityState!==void 0};
Q3.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
Q3.prototype.querySelector=function(f){return this.document?this.document.querySelector(f):null};
Q3.prototype.querySelectorAll=function(f){return this.document?_.kv(this.document.querySelectorAll(f)):[]};
Q3.prototype.elementFromPoint=function(f,H){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;f=this.document.elementFromPoint(f,H);return f===null?null:new Nd(f)};
var hps=function(f,H,v){v=v===void 0?!1:v;if(H.ref===void 0||!f.document)return FP(H).pipe(bk(f.parentContext.performanceMonitor,749));var t=new tT(1),M=function(){t.next(H)};
v||dxT(H.ref,M);idg(H.ref,M);return t.pipe(bk(f.parentContext.performanceMonitor,749),wU(1))};
_.H7.Object.defineProperties(Q3.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return slv(this.global,"document")?this.global.document||null:null}}});var vlB=_.EH(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),tzg=_.EH(["./reach_worklet.js"]),MzN=_.EH(["./reach_worklet.js"]),jFZ=_.EH(["./reach_worklet.html"]),sFZ=_.EH(["./reach_worklet.js"]),Z0b=_.EH(["./reach_worklet.js"]);_.gr(jFZ);_.gr(sFZ);_.gr(Z0b);var ih={left:0,top:0,width:0,height:0};var JWT,lrg,UxM,ewr,qw,xxM,Bih,zwZ,FK3,ry3,KWv,Dx_;JWT=function(f,H,v,t,M,h,y){var m="";f&&(m+=f+":");v&&(m+="//",H&&(m+=H+"@"),m+=v,t&&(m+=":"+t));M&&(m+=M);h&&(m+="?"+h);y&&(m+="#"+y);return m};
lrg=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.Te=function(f){return f.match(lrg)};
_.sH=function(f,H){return f?H?decodeURI(f):decodeURIComponent(f):f};
UxM=function(f){f=_.Te(f)[1]||null;!f&&_.Mr.self&&_.Mr.self.location&&(f=_.Mr.self.location.protocol.slice(0,-1));return f?f.toLowerCase():""};
_.wu=function(f){return _.sH(_.Te(f)[3]||null,!0)};
_.gH=function(f){return _.sH(_.Te(f)[5]||null,!0)};
_.LG_=function(f){var H=f.indexOf("#");return H<0?null:f.slice(H+1)};
ewr=function(f){f=_.Te(f);return JWT(f[1],f[2],f[3],f[4])};
_.LWg=function(f){f=_.Te(f);return JWT(f[1],null,f[3],f[4])};
_.Ag=function(f){f=_.Te(f);return JWT(null,null,null,null,f[5],f[6],f[7])};
_.HV=function(f){var H=f.indexOf("#");return H<0?f:f.slice(0,H)};
qw=function(f,H){f=_.Te(f);H=_.Te(H);return f[3]==H[3]&&f[1]==H[1]&&f[4]==H[4]};
xxM=function(f,H){if(f){f=f.split("&");for(var v=0;v<f.length;v++){var t=f[v].indexOf("="),M=null;if(t>=0){var h=f[v].substring(0,t);M=f[v].substring(t+1)}else h=f[v];H(h,M?Hh(M):"")}}};
Bih=function(f){var H=f.indexOf("#");H<0&&(H=f.length);var v=f.indexOf("?");if(v<0||v>H){v=H;var t=""}else t=f.substring(v+1,H);return[f.slice(0,v),t,f.slice(H)]};
zwZ=function(f,H){return H?f?f+"&"+H:H:f};
_.FWo=function(f,H){if(!H)return f;f=Bih(f);f[1]=zwZ(f[1],H);return f[0]+(f[1]?"?"+f[1]:"")+f[2]};
_.rW_=function(f,H,v){if(Array.isArray(H))for(var t=0;t<H.length;t++)_.rW_(f,String(H[t]),v);else H!=null&&v.push(f+(H===""?"":"="+_.c6(H)))};
_.S$=function(f){var H=[],v;for(v in f)_.rW_(v,f[v],H);return H.join("&")};
_.kk=function(f,H){H=_.S$(H);return _.FWo(f,H)};
_.us=function(f,H,v){v=v!=null?"="+_.c6(v):"";return _.FWo(f,H+v)};
FK3=function(f,H,v,t){for(var M=v.length;(H=f.indexOf(v,H))>=0&&H<t;){var h=f.charCodeAt(H-1);if(h==38||h==63)if(h=f.charCodeAt(H+M),!h||h==61||h==38||h==35)return H;H+=M+1}return-1};
ry3=/#|$/;_.c_=function(f,H){var v=f.search(ry3),t=FK3(f,0,H,v);if(t<0)return null;var M=f.indexOf("&",t);if(M<0||M>v)M=v;t+=H.length+1;return Hh(f.slice(t,M!==-1?M:0))};
KWv=/[?&]($|#)/;_.tX=function(f,H){for(var v=f.search(ry3),t=0,M,h=[];(M=FK3(f,t,H,v))>=0;)h.push(f.substring(t,M)),t=Math.min(f.indexOf("&",M)+1||v,v);h.push(f.slice(t));return h.join("").replace(KWv,"$1")};
_.Pk=function(f,H,v){return _.us(_.tX(f,H),H,v)};
Dx_=function(f){var H=Bih(window.location.href),v=H[1],t=[];v&&v.split("&").forEach(function(M){var h=M.indexOf("=");h=h>=0?M.slice(0,h):M;f.hasOwnProperty(h)||t.push(M)});
H[1]=zwZ(t.join("&"),_.S$(f));return H[0]+(H[1]?"?"+H[1]:"")+H[2]};var eds=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(eds,_.mL);eds.prototype.getVersion=function(){return _.L8(this,2)};var Uj5=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(Uj5,_.mL);var djB=function(f,H){return _.rr(f,2,H)},lP3=function(f,H){return _.rr(f,3,H)};
Uj5.prototype.getModel=function(){return _.L8(this,4)};
var sNR=function(f,H){return _.rr(f,4,H)},S1T=function(f,H){return _.rr(f,5,H)},Jxb=function(f,H){return _.rr(f,9,H)},IPv=function(f,H){return sU(f,10,H)},gle=function(f,H){return _.O1(f,11,H)},jNR=function(f,H){return _.rr(f,1,H)},Z9s=function(f,H){return _.O1(f,7,H)};var WvB="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var H_=function(f,H,v,t){f=f===void 0?window:f;H=H===void 0?null:H;v=v===void 0?new A5H:v;t=t===void 0?hd_():t;CHa.call(this);var M=this;this.global=f;this.debugChannel=H;this.performanceMonitor=v;this.onPageHide=XjH(function(){return Pj(M.global,"pagehide")}).pipe(bk(this.performanceMonitor,941));
this.onLoad=XjH(function(){return Pj(M.global,"load")}).pipe(bk(this.performanceMonitor,738),wU(1));
this.onResize=XjH(function(){return Pj(M.global,"resize")}).pipe(bk(this.performanceMonitor,741));
this.onMessage=XjH(function(){return Pj(M.global,"message")}).pipe(bk(this.performanceMonitor,740));
this.document=new Q3(this.global,this);this.timeProvider=new bgT(new kbr(this.intrinsicFunctionNamespace,this.performanceMonitor),new igr(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new cNH(new wRZ(this),new O09(this),new y3(this,new HrM(this)),new y3(this,new SxT(this)),new y3(this,new n6(this)))};
_.e(H_,CHa);var $0=function(f){var H=f.global;return!!f.global.HTMLFencedFrameElement&&!!H.fence&&typeof H.fence.reportEvent==="function"};
_.R=H_.prototype;_.R.reportFencedFrameEvent=function(f){$0(this)&&this.global.fence.reportEvent(f)};
_.R.getOnBackgrounded=function(){return this.onPageHide.pipe(bk(this.performanceMonitor,942),sZ(this.queue),nS(function(){}))};
_.R.postMessage=function(f,H,v){v=v===void 0?[]:v;this.global.postMessage(f,H,v)};
_.R.getWidth=function(){return ZdB(this.global)?this.global.width:0};
_.R.getHeight=function(){return ZdB(this.global)?this.global.height:0};
_.R.isMobile=function(){return tv9()||Mv_()};
var cQ=function(f,H){try{var v=Y1E(H,f.global,f.isMobile());return{left:v.left,top:v.top,width:v.getWidth(),height:v.getHeight()}}catch(t){return ih}};
H_.prototype.validate=function(){var f=this.beaconFactory.isSupported()||$0(this);return this.global&&this.timeProvider.available()&&f};
var Ql5=function(f){return(f=xjR(f.global))?sq(f):null};
_.H7.Object.defineProperties(H_.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(f){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!ZdB(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}}});_.o5b=!_.My&&!_.o3();var j8v=function(f){return f};var ZcB=function(f){return f.pipe(cj(function(H){var v=H.endOfSessionReason;var t;return((t=H.viewable)==null?void 0:t.extrapolateToNow().value)||v!=void 0}),wU(1),ku())};var ol5=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},nl_=function(f){var H=f.sequenceNumber.toString(10).padStart(2,"0");
H=""+f.startTime+H;f.sequenceNumber<99&&f.sequenceNumber++;return H};var Ip3=Id(yA(function(f){return f.endOfSessionReason===void 0}),nS(function(f){return Object.assign({},f,{timestamps:DR(f)})}),cj(function(f){var H=f.viewable;
f=f.timestamps;var v;return(v=H==null?void 0:H.extrapolateUsingTimestampMap(f).value)!=null?v:!1}),nS(function(f){var H=f.beaconFactory;
var v=f.timestampedExposureHistory;var t=f.timeOnScreen;var M=f.binaryContext;f=f.timestamps;if(H===void 0||v===void 0||t===void 0||M===void 0)return!1;if(t.extrapolateUsingTimestampMap(f).value.every(function(h){return h>=0}))return!0;
v=v.map(function(h){return h.timestamp+":"+h.value}).join(",");
t=p_B({bin:M,tos:t},f);H.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+t+("&eh="+v)).sendNow();return!0}),yA(function(f){return!f}),ku());var uHT=function(f){return{id:f.pingId,mcvt:f.maxConsecutiveViewTime,p:f.creativePosition,asp:f.adSpeedPosition,tm:f.totalMeasurementTime,tu:f.totalUnviewedTime,mtos:f.maxTimeOnScreen,tos:f.timeOnScreen,v:f.binaryVersion,bin:f.binaryContext,avms:f.measurementStrategy,bs:f.browserSize,mc:f.maximumExposure,"if":f.crossDomainIframeState,vu:f.delayedImpressionJsState,app:f.inApp,mse:f.mraidError,mtop:f.mraidSituation,itpl:f.injectedTemplateId,adk:f.adKey,exk:f.awbidKey,rs:f.requestSource,la:f.isLargeAd,
cr:f.isContentRecommendationAd,uach:f.userAgentClientHints,vs:f.viewState,r:f.reasonCode,pay:f.hasCpmavUrl,co:f.clientPingOrderCounter,rst:f.adRenderStartTime,rpt:f.adRenderPeriodTime,isd:f.initialScrollDepth,lsd:f.loadedScrollDepth,context:f.errorContext,msg:f.errorMessage,stack:f.errorStack,name:f.errorName,ec:f.hasElementChanged,sfr:f.strategyFailureReasons,met:f.creativeSearchResult,wmsd:f.webMeasurementStartDiagnostic,pv:f.pageVisible,epv:f.eosPageVisible,pbe:f.inStatefulBeaconExperiment,fle:f.inFetchLaterBeaconExperiment,
vae:f.inViewableAttributionExperiment,spb:f.supportsPendingBeacon,sfl:f.supportsFetchLater,ffslot:f.isFencedFrameSlotTurtlex,reach:f.sharedStorageReachMode,io2:f.v2VisibilityBitVector,rxdbg:f.rxDebugger,omida:f.omidAppId,omidp:f.omidPartner,omidpv:f.omidPartnerVersion,omidor:f.omidOcclusionReasons,omidv:f.omidVersion,omids:f.omidSessionType,omidam:f.omidAccessMode,omidct:f.omidCreativeType,omidia:f.omidInApp,omiddc:f.omidDeviceCategory,omidlat:f.omidLastActivity,omiddit:f.omidDeviceIdleTime,qid:f.errorEscapedQueryId}};var s8B=function(f){var H=[];return f.pipe(nS(function(v){var t=v.beaconFactory,M=v.fetchBeaconFactory,h=v.timeOnScreen,y=v.timeOnScreenUrlPrefixes,m=v.payloadMapper,W=v.timeOnScreenPingId,I=v.timeOnScreenReason,S=v.urlSerializer,d=v.viewable,Z=v.hasImpressionFired,l=v.inStatefulBeaconExperiment,L=v.supportsPendingBeacon,r=v.supportsFetchLater,n=v.turtlexReportEventData;if(!v.geometryMeasurable||!Z||v.maxTimeOnScreen===void 0||h===void 0||y===void 0||m===void 0||W===void 0||S===void 0||t===void 0)return!1;
if(v.isTurtlex){if(I===void 0)return!1;y=v.reportFencedFrameEvent;if(!y)return!1;y({eventType:"active-view-time-on-screen",eventData:n!=null?n:"",destination:["buyer"]});return!0}if(!(l||r||I))return!1;n=DR(v);var Q;d=(Q=d==null?void 0:d.extrapolateUsingTimestampMap(n).value)!=null?Q:!1;Q=S(Object.assign({},v,{pingId:W,viewState:d?4:3,reasonCode:I!=null?I:"u",payloadMapper:m,urlPrefixes:y}),n);if(l){for(;H.length>y.length;)v=void 0,(v=H.shift())==null||v.deactivate();Q.forEach(function(w,c){c>=H.length?
H.push(t.makeBeacon(w)):H[c].url=w});
return L&&M&&I!==void 0?(Q.forEach(function(w){M.makeBeacon(w).sendNow()}),!0):I!==void 0}if(L&&M&&I!==void 0)return Q.forEach(function(w){M.makeBeacon(w).sendNow()}),!0;
if(r&&M){for(;H.length>y.length;)L=void 0,(L=H.shift())==null||L.deactivate();var C=S(Object.assign({},v,{pingId:W,viewState:d?4:3,reasonCode:I!=null?I:"u",payloadMapper:m,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),n)[0];Q.forEach(function(w,c){c>=H.length?H.push(t.makeBeacon(C,{endOfSession:!0})):H[c].url=C});
return I!==void 0?(Q.forEach(function(w){M.makeBeacon(w).sendNow()}),!0):I!==void 0}return I!==void 0?(Q.forEach(function(w){t.makeBeacon(w).sendNow()}),!0):!1}),yA(function(v){return!v}),ku())};var Jr5=Id(cj(function(f){return f.immediateUrlPrefixes!==void 0&&f.payloadMapper!==void 0&&f.urlSerializer!==void 0&&f.inferredPingId!==void 0&&f.beaconFactory!==void 0}),cj(function(f){return X_s(f)!==null}),NAv(function(f){return f.activeViewUnmeasurableEvent},function(f){return f.emit}),nS(function(f){if(f.isTurtlex){var H=f.reportFencedFrameEvent;
if(H){var v;H({eventType:"active-view-unmeasurable",eventData:(v=f.turtlexReportEventData)!=null?v:"",destination:["buyer"]})}}else{v=void 0;var t=X_s(f);if(t==="x"){var M,h=(M=f.geometricMeasurementErrors)!=null?M:f.contextValidationErrors;h&&(H=h.stack,v=h.message)}f.urlSerializer(Object.assign({},f,{urlPrefixes:f.immediateUrlPrefixes,payloadMapper:f.payloadMapper,pingId:f.inferredPingId,viewState:2,reasonCode:t,errorMessage:v,errorStack:H}),DR(f)).forEach(function(y){f.beaconFactory.makeBeacon(y).sendNow()})}}),
wU(1),ku());var AxE=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var gkT=Id(cj(function(f){return f.payloadMapper!==void 0&&f.immediateUrlPrefixes!==void 0&&f.urlSerializer!==void 0&&f.inferredPingId!==void 0&&f.beaconFactory!==void 0}),nS(function(f){return Object.assign({},f,{timestamps:DR(f)})}),cj(function(f){var H=f.viewable;
var v=f.hasImpressionFired;f=f.timestamps;var t;return!!v&&((t=H==null?void 0:H.extrapolateUsingTimestampMap(f).value)!=null?t:!1)}),NAv(function(f){return f.activeViewViewableEvent},function(f){return f.emit}),nS(function(f){var H=f.beaconFactory,v=f.turtlexReportEventData;
if(f.isTurtlex){var t=f.reportFencedFrameEvent;if(!t)return!1;t({eventType:"active-view-viewable",eventData:v!=null?v:"",destination:["buyer"]});return!0}v=f.urlSerializer(Object.assign({},f,{urlPrefixes:f.immediateUrlPrefixes,payloadMapper:f.payloadMapper,pingId:f.inferredPingId,viewState:4,reasonCode:"v"}),f.timestamps);(t=f.cpmavUrls)&&t.length>0&&f.viewUrlSerializer&&f.viewUrlSerializer(t,f).forEach(function(M){H.makeBeacon(M).sendNow()});
(t=f.viewableRelayUrls)&&t.length>0&&f.viewUrlSerializer&&f.viewUrlSerializer(t,f).forEach(function(M){H.makeBeacon(M).sendNow()});
v.forEach(function(M){H.makeBeacon(M,{attributionEnabled:f.isViewableAttributionEnabled}).sendNow()});
return!0}),yA(function(f){return!f}),ku());var uTN=nS(function(f){return[f.value.topWindowViewportExternalGeometry.width,f.value.topWindowViewportExternalGeometry.height]});var AT=function(f,H){this.callback=f;this.options=H;this.intersectionObserverV2=this.intersectionObserverV1=null},shR=function(f,H){H?f.intersectionObserverV2||(H=Object.assign({},f.options,{delay:100,
trackVisibility:!0}),f.intersectionObserverV2=new IntersectionObserver(f.callback,H)):f.intersectionObserverV1||(f.intersectionObserverV1=new IntersectionObserver(f.callback,f.options))},n5M=function(f,H){f=H?f.intersectionObserverV2:f.intersectionObserverV1;
if(!f)throw new Evn;return f};
AT.prototype.observe=function(f,H){n5M(this,f).observe(H)};
AT.prototype.unobserve=function(f,H){n5M(this,f).unobserve(H)};
AT.prototype.disconnect=function(f){n5M(this,f).disconnect()};
AT.prototype.takeRecords=function(f){return n5M(this,f).takeRecords()};var V7s={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:ih,topWindowViewportExternalGeometry:ih,measurementRequests:new dr,elementGeometrySourceName:"ns",elementGeometry:ih,intersectionGeometry:ih,viewportLocalAppOffset:{x:0,y:0}};var xkg=kO(Id(nS(function(f){var H;return(H=f.exposureOverride)!=null?H:JmH(f)}),nS(function(f){return isFinite(f)?f:0}))),omT=kO(Id(nS(function(f){var H;
return(H=f.exposureOverride)!=null?H:JmH(f)}),nS(function(f){return isFinite(f)?f:-1})));var aH=function(f,H){this.a=f;this.b=H;if(f.clock.timeline!==H.clock.timeline)throw Error();};
aH.prototype.equivalentTo=function(f){return f instanceof aH?this.a.equivalentTo(f.a)&&this.b.equivalentTo(f.b):!1};
aH.prototype.extrapolateToTime=function(f){var H=this.a.extrapolateToTime(f).value,v=this.b.extrapolateToTime(f).value;return{timestamp:f,value:[H,v]}};
_.H7.Object.defineProperties(aH.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 f=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),H=this.a.lastMeasurement.timestamp.equals(f)?this.a.lastMeasurement.value:this.a.extrapolateToTime(f).value,v=this.b.lastMeasurement.timestamp.equals(f)?this.b.lastMeasurement.value:this.b.extrapolateToTime(f).value;return{timestamp:f,value:[H,v]}}}});var P4=function(f,H){this.input=f;this.mapFunction=H;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
P4.prototype.equivalentTo=function(f){return f instanceof P4?this.input.equivalentTo(f.input)&&this.mapFunction===f.mapFunction:!1};
P4.prototype.extrapolateToTime=function(f){f=this.input.extrapolateToTime(f);return{timestamp:f.timestamp,value:this.mapFunction(f.value)}};
_.H7.Object.defineProperties(P4.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var G_=function(){};
G_.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
G_.prototype.extrapolateUsingTimestampMap=function(f){var H=this.clock.timeline,v,t=(v=f.get(H))!=null?v:this.clock.now();f.set(H,t);return this.extrapolateToTime(t)};
G_.prototype.map=function(f){return new pAr(this,f)};
G_.prototype.joinWith=function(f){return new QFb(this,f)};
var QFb=function(){aH.apply(this,arguments);this.map=G_.prototype.map;this.joinWith=G_.prototype.joinWith;this.extrapolateToNow=G_.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=G_.prototype.extrapolateUsingTimestampMap};
_.e(QFb,aH);var pAr=function(){P4.apply(this,arguments);this.map=G_.prototype.map;this.joinWith=G_.prototype.joinWith;this.extrapolateToNow=G_.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=G_.prototype.extrapolateUsingTimestampMap};
_.e(pAr,P4);var wr=function(f,H){this.lastMeasurement=H;this.extrapolateToNow=G_.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=G_.prototype.extrapolateUsingTimestampMap;this.map=G_.prototype.map;this.joinWith=G_.prototype.joinWith;this.clock=f};
wr.prototype.equivalentTo=function(f){return f.active};
wr.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.H7.Object.defineProperties(wr.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var Qh5=nS(function(f){if(f.value.viewportGeometrySourceName==="omid"){if(f.value.elementGeometrySourceName==="nio")return"omio";if(f.value.elementGeometrySourceName==="geo")return"omgeo"}return f.value.elementGeometrySourceName==="geo"||f.value.elementGeometrySourceName==="nio"?f.value.viewportGeometrySourceName:f.value.elementGeometrySourceName});var UkB=Id(cj(function(f){return!isNaN(f)}),hT(function(f,H){return isNaN(f)?H:Math.min(f,H)},NaN),qe());var Bpg=kO(Id(nS(function(f){return f.intersectionGeometry.width*f.intersectionGeometry.height/(f.exposedViewportLocalGeometry.width*f.exposedViewportLocalGeometry.height)}),nS(function(f){return isFinite(f)?Math.min(1,f):0})));var pMH=Id(kO(nS(function(f){f=f.exposureOverride?f.elementGeometry.width*f.elementGeometry.height*f.exposureOverride/(f.topWindowViewportExternalGeometry.width*f.topWindowViewportExternalGeometry.height):f.intersectionGeometry.width*f.intersectionGeometry.height/(f.topWindowViewportExternalGeometry.width*f.topWindowViewportExternalGeometry.height);return isFinite(f)?f:0})));var GLg=function(f,H){var v=this;this.timeProvider=f;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=H.pipe(qe()).subscribe(function(t){EmH(v);v.measurementRequestObserver=t})},NpR=function(f,H){EmH(f);
f.lastMeasurementRequest=f.timeProvider.setTimeout(function(){var v;return void((v=f.measurementRequestObserver)==null?void 0:v.next())},H)},EmH=function(f){f.lastMeasurementRequest!==null&&f.timeProvider.clearTimeout(f.lastMeasurementRequest);
f.lastMeasurementRequest=null};
GLg.prototype.dispose=function(){EmH(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var ub9=function(){};var $wR=function(f,H){this.context=f;this.strategies=H};
_.e($wR,ub9);$wR.prototype.buildGeometrySource=function(f,H){var v=this.strategies.map(function(h){return h.buildGeometrySource(f,H)}),t=i4E(v.map(function(h){return h.geometrySource})),M=t.capturedErrors.pipe(arC());
return{geometrySource:t.chain.pipe(sZ(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:M,strategyErrors:t.capturedErrors}].concat(_.pS(v.map(function(h){return h.additionalOutputs}))))}};
var arC=function(){return hT(function(f,H){H instanceof nd?f.push(H.measurementStrategyFailureReason):f.push(-1);return f},[])};var Ocb=function(f,H){this.context=f;this.poller=H};
_.e(Ocb,ub9);Ocb.prototype.buildGeometrySource=function(f,H){var v=kL3(wMs(this.context,this.poller),ymr(this.context,H.requestSource));return{geometrySource:b4g(f.measurableCreative.pipe(v),H.inApp),additionalOutputs:{}}};var WZT=function(f,H,v){v=v===void 0?gmv(f,H):v;this.context=f;this.intersectionObserverStrategy=v};
_.e(WZT,ub9);WZT.prototype.buildGeometrySource=function(f,H){var v=this.intersectionObserverStrategy(H.useV2);return{geometrySource:b4g(f.measurableCreative.pipe(v,Itr(this.context)),H.inApp),additionalOutputs:{}}};var Pt_=function(f,H,v){var t=t===void 0?Symbol():t;this.element=f;this.immediateUrls=H;this.timeOnScreenUrls=v;this.symbol=t};var PgH=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),tKT=Object.freeze([1,.75,PgH.exposureThreshold,PgH.largeAdExposureThreshold,0]);var NfN=function(f,H){H=H===void 0?36E5:H;var v=v===void 0?!0:v;this.creatives=new dr;this.elementsToUnregister=new dr;this.elementMap=new Map;var t=new H_(window,null);t.beaconFactory=new y3(t,new n6(t));mwB(t,this.creatives,this.elementsToUnregister,f,H,v).subscribe()},AKB=function(f,H,v,t){if(!f.elementMap.has(H)){var M=new Nd(H);
f.elementMap.set(H,M);f.creatives.next(new Pt_(M,v,t))}},Xmg=function(f,H){f.elementsToUnregister.next(H);
var v=f.elementMap.get(H);v!==void 0&&(v.release(),f.elementMap.delete(H))};var IIb=function(f){var H=f.url;f=f.uaDataValues;this.JSC$9467_url_=H;this.uaDataValues_=f;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var v=/[?&]([^&=]+)=([^&]*)/g;f=v.exec(H);)this.urlParamValues_[f[1]]=f[2]},SV_=function(f){f=f.uaDataValues_;
if(!f)return"";var H=tx("uap",f.platform)+tx("uapv",f.platformVersion)+tx("uafv",f.uaFullVersion)+tx("uaa",f.architecture)+tx("uam",f.model)+tx("uab",f.bitness);f.fullVersionList&&(H+="&uafvl="+encodeURIComponent(f.fullVersionList.map(function(v){return encodeURIComponent(v.brand)+";"+encodeURIComponent(v.version)}).join("|")));
f.wow64!=null&&(H+="&uaw="+Number(f.wow64));return H.slice(1)};var GhT=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(GhT,_.mL);GhT.prototype.getId=function(){return _.L8(this,1)};var C6=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(C6,_.mL);C6.prototype.getSeconds=function(){return UU(this,1)};
C6.prototype.setSeconds=function(f){return _.vv(this,1,WA(f),"0")};_.FX=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(_.FX,_.mL);_.FX.prototype.getSeconds=function(){return UU(this,1)};
_.FX.prototype.setSeconds=function(f){return _.vv(this,1,WA(f),"0")};
_.CtM=function(f){var H=Number(BI(f,1));f=_.Yl(f,2);return new Date(H*1E3+f/1E6)};var E$=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(E$,_.mL);E$.prototype.getUrl=function(){return _.L8(this,1)};
E$.prototype.setUrl=function(f){return _.G7(this,1,f)};
E$.prototype.getHeight=function(){return _.Yl(this,2)};
E$.prototype.getWidth=function(){return _.Yl(this,3)};var Nt=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(Nt,_.mL);Nt.prototype.getAspectRatio=function(){return es(this,1)};
Nt.prototype.getDuration=function(){return _.V$(this,C6,2)};var E5v=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(E5v,_.mL);var Ni_=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(Ni_,_.mL);var cWM=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(cWM,_.mL);var XAZ=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(XAZ,_.mL);var AWa=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(AWa,_.mL);var b0C=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(b0C,_.mL);var i0H=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(i0H,_.mL);var kh_=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(kh_,_.mL);var Tig=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(Tig,_.mL);var c4=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(c4,_.mL);var X_=[2,4,5,6,7];var wAT=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(wAT,_.mL);var ZV=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(ZV,_.mL);_.R=ZV.prototype;_.R.getId=function(){return _.V$(this,GhT,1)};
_.R.getName=function(){return _.L8(this,2)};
_.R.setDescription=function(f){return _.G7(this,3,f)};
_.R.getUrl=function(){return _.L8(this,8)};
_.R.setUrl=function(f){return _.G7(this,8,f)};
var Ah=function(f){return _.VX(f,E$,10,_.yX())};
ZV.prototype.getOwner=function(f){var H=_.wi(this,40,_.ep,3,!0);CHe(H,f);return H[f]};
ZV.prototype.getVersion=function(){return UU(this,45)};
var bs=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(bs,_.mL);_.qxa=[0,noB,QyE];_.fMh=[0,noB,QyE];var Ho_=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(Ho_,_.mL);var is=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(is,_.mL);is.prototype.getStatus=function(){return _.x_(this,1)};
is.prototype.removeItem=function(f){return qK5(this,2,f)};var vUh=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(vUh,_.mL);vUh.prototype.getName=function(){return _.L8(this,8)};var k0=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(k0,_.mL);k0.prototype.getCommand=function(){return _.x_(this,1)};
k0.prototype.getSource=function(){return _.V$(this,vUh,2)};
k0.prototype.setVisible=function(f){return _.oW(this,5,f)};
k0.prototype.removeItem=function(f){return qK5(this,7,f)};var tVZ=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(tVZ,_.mL);tVZ.prototype.getCommand=function(){return _.x_(this,1)};
tVZ.prototype.removeItem=function(f){return qK5(this,4,f)};
var MVa=_.lD(tVZ);var T_=function(f,H,v){v=v===void 0?Error():v;var t=Error.call(this);this.message=t.message;"stack"in t&&(this.stack=t.stack);this.code=f;H+=":";v instanceof Error?(this.message=H+v.message,this.stack=v.stack||""):(this.message=H+String(v),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.e(T_,Error);_.zO=function(){this.JSC$9525_disposed_=this.JSC$9525_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.zO.prototype.JSC$9525_disposed_=!1;_.zO.prototype.isDisposed=function(){return this.JSC$9525_disposed_};
_.zO.prototype.dispose=function(){this.JSC$9525_disposed_||(this.JSC$9525_disposed_=!0,this.disposeInternal())};
_.zO.prototype[Symbol.dispose]=function(){this.dispose()};
_.jz=function(f,H){f.addOnDisposeCallback(_.l0(_.Mj,H))};
_.zO.prototype.addOnDisposeCallback=function(f,H){this.JSC$9525_disposed_?H!==void 0?f.call(H):f():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),H&&(f=f.bind(H)),this.onDisposeCallbacks_.push(f))};
_.zO.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var wQ=function(f){_.zO.call(this);this.wpc=f};
_.e(wQ,_.zO);wQ.prototype.bxt=function(){return this.wpc.f()};
wQ.prototype.cgk=function(f){return this.wpc.c(f)};
wQ.prototype.mr=function(f){return this.wpc.m(xwv(f))};
wQ.prototype.lvx=function(f){return this.wpc.mws(xwv(f))};
var RN=function(f){_.zO.call(this);var H=this;this.vm=f;this.cOD="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.nUe=void 0;this.vHj=this.vm.p;this.aIW=this.k5N.bind(this);this.addOnDisposeCallback(function(){return void hqa(H)})};
_.e(RN,_.zO);var Rqg=function(f){var H;return _.Y(function(v){if(v.nextAddress==1){if(!f.vm.wpc)throw new T_(30,"NWA");return f.zKj?v.return(f.zKj):v.yield(f.vm.wpc(),2)}H=v.yieldResult;f.zKj=new wQ(H);return v.return(f.zKj)})};
RN.prototype.snapshot=function(f){return this.vm.s(Object.assign({},f.yQ&&{c:f.yQ},f.jUt&&{s:f.jUt},f.kse!==void 0&&{p:f.kse}))};
RN.prototype.k5N=function(f){this.vm.e(f)};
RN.prototype.o7A=function(f,H){return this.vm.c(f,H,!1)};
var hqa=function(f){f.nUe!==void 0&&(f.cOD.forEach(function(H){var v;(v=f.nUe)==null||v.removeEventListener(H,f.aIW)}),f.nUe=void 0)};
RN.prototype.rPA=function(){return this.vm.l()};var qt=function(){_.zO.apply(this,arguments);this.hlF=1};
_.e(qt,_.zO);qt.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.hlF++;return this};
qt.prototype.dispose=function(){--this.hlF||_.zO.prototype.dispose.call(this)};var VVa=function(f){this.gLW=f;f.addNewEventMetric("/client_streamz/bg/frs",_.W_("mk"))};
VVa.prototype.record=function(f,H){this.gLW.record("/client_streamz/bg/frs",f,H)};
var yDr=function(f){this.r2t=f;f.addNewEventMetric("/client_streamz/bg/wrl",_.W_("mn"),$l("ac"),$l("sc"),_.W_("rk"),_.W_("mk"))};
yDr.prototype.record=function(f,H,v,t,M,h){this.r2t.record("/client_streamz/bg/wrl",f,H,v,t,M,h)};
var Y4n=function(f){this.wiI=f;f.addNewCounter("/client_streamz/bg/ec",_.W_("en"),_.W_("mk"))};
Y4n.prototype.increment=function(f,H){this.wiI.JSC$9778_incrementCounter("/client_streamz/bg/ec",f,H)};
var mA_=function(f){this.ia6=f;f.addNewEventMetric("/client_streamz/bg/el",_.W_("en"),_.W_("mk"))};
mA_.prototype.record=function(f,H,v){this.ia6.record("/client_streamz/bg/el",f,H,v)};
var $Ar=function(f){this.s5w=f;f.addNewCounter("/client_streamz/bg/cec",$l("ec"),_.W_("mk"))};
$Ar.prototype.increment=function(f,H){this.s5w.JSC$9778_incrementCounter("/client_streamz/bg/cec",f,H)};
var WLh=function(f){this.oLI=f;f.addNewCounter("/client_streamz/bg/po/csc",$l("cs"),_.W_("mk"))};
WLh.prototype.increment=function(f,H){this.oLI.JSC$9778_incrementCounter("/client_streamz/bg/po/csc",f,H)};
var Oon=function(f){this.y2Z=f;f.addNewCounter("/client_streamz/bg/po/ctav",_.W_("av"),_.W_("mk"))};
Oon.prototype.increment=function(f,H){this.y2Z.JSC$9778_incrementCounter("/client_streamz/bg/po/ctav",f,H)};
var gUh=function(f){this.ufA=f;f.addNewCounter("/client_streamz/bg/po/cwsc",_.W_("su"),_.W_("mk"))};
gUh.prototype.increment=function(f,H){this.ufA.JSC$9778_incrementCounter("/client_streamz/bg/po/cwsc",f,H)};var Hl3=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(Hl3,_.mL);var fyE=function(f,H){return _.Hv(f,3,H,y9g)};var IMg=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(IMg,_.mL);var S4n=[1,2,3];var dAa=[0,S4n,_.CxT,uqg,GGH];var j19=[0,_.EU,[0,KqB,_.ap]];var s1h=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(s1h,_.mL);var Zoa=[1,2,3];var JDv=[0,Zoa,pf3,D95,_.Ny,j19];var lMv=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(lMv,_.mL);var UAa=[0,_.EU,dAa,JDv];var eqh=[0,_.C8];var LLg=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(LLg,_.mL);var xA9=[0,_.C8,-1,_.GX];var Be_=[0,_.C8,-1,_.PI,_.GX];var zqb=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(zqb,_.mL);var FLv=[1,2,3];var rDo=[0,FLv,_.Ny,xA9,_.Ny,Be_,_.Ny,eqh];var KLo=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(KLo,_.mL);KLo.prototype.JSC$9598_serializeBinary=DA_([0,_.C8,rDo,Eor,_.EU,UAa,aTv,Pxs]);var DAh=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(DAh,_.mL);var pvT=function(f){var H=new KLo;H=_.rr(H,1,f.JSC$9714_metricName);var v=oUM(f);H=_.Hv(H,3,v,_.JW);v=[];for(var t=[],M=_.V(f.cellMap.keys()),h=M.next();!h.done;h=M.next())t.push(h.value.split(","));for(M=0;M<t.length;M++){h=t[M];for(var y=f.cellType,m=f.getCells(h)||[],W=[],I=0;I<m.length;I++){var S=m[I],d=S&&S.cellValue;S=new s1h;switch(y){case 3:d=Number(d);Number.isFinite(d)&&SN(S,1,Zoa,WA(d));break;case 2:SN(S,2,Zoa,_.wh(Number(d)))}W.push(S)}y=W;for(m=0;m<y.length;m++){W=y[m];I=new lMv;W=_.eV(I,
2,W);I=[];S=nUb(f);for(d=0;d<S.length;d++){var Z=S[d],l=h[d],L=new IMg;switch(Z){case 3:SN(L,1,S4n,Ux(String(l)));break;case 2:Z=Number(l);Number.isFinite(Z)&&SN(L,2,S4n,_.RF(Z));break;case 1:SN(L,3,S4n,hZB(l==="true"))}I.push(L)}sU(W,1,I);v.push(W)}}sU(H,4,v);return H};var Q1b=function(f){if(!f)return"";if(/^about:(?:blank|srcdoc)$/.test(f))return window.origin||"";f.indexOf("blob:")===0&&(f=f.substring(5));f=f.split("#")[0].split("?")[0];f=f.toLowerCase();f.indexOf("//")==0&&(f=window.location.protocol+f);/^[\w\-]*:\/\//.test(f)||(f=window.location.href);var H=f.substring(f.indexOf("://")+3),v=H.indexOf("/");v!=-1&&(H=H.substring(0,v));v=f.substring(0,f.indexOf("://"));if(!v)throw Error("qa`"+f);if(v!=="http"&&v!=="https"&&v!=="chrome-extension"&&v!=="moz-extension"&&
v!=="file"&&v!=="android-app"&&v!=="chrome-search"&&v!=="chrome-untrusted"&&v!=="chrome"&&v!=="app"&&v!=="devtools")throw Error("ra`"+v);f="";var t=H.indexOf(":");if(t!=-1){var M=H.substring(t+1);H=H.substring(0,t);if(v==="http"&&M!=="80"||v==="https"&&M!=="443")f=":"+M}return v+"://"+H+f};var aMv=function(f,H,v){var t=String(_.Mr.location.href);return t&&f&&H?[H,uMo(Q1b(t),f,v||null)].join(" "):null},uMo=function(f,H,v){var t=[],M=[];
if((Array.isArray(v)?2:1)==1)return M=[H,f],_.X3(t,function(m){M.push(m)}),PDT(M.join(" "));
var h=[],y=[];_.X3(v,function(m){y.push(m.key);h.push(m.value)});
v=Math.floor((new Date).getTime()/1E3);M=h.length==0?[v,H,f]:[h.join(":"),v,H,f];_.X3(t,function(m){M.push(m)});
f=PDT(M.join(" "));f=[v,f];y.length==0||f.push(y.join(""));return f.join("_")},PDT=function(f){var H=nkB();
H.update(f);return H.digestString().toLowerCase()};var fh=function(f){this.JSC$9609_document_=f||{cookie:""}},G1_;
_.R=fh.prototype;_.R.isEnabled=function(){if(!_.Mr.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};
_.R.set=function(f,H,v){var t=!1;if(typeof v==="object"){var M=v.sameSite;t=v.secure||!1;var h=v.domain||void 0;var y=v.path||void 0;var m=v.maxAge}if(/[;=\s]/.test(f))throw Error("sa`"+f);if(/[;\r\n]/.test(H))throw Error("ta`"+H);m===void 0&&(m=-1);v=h?";domain="+h:"";y=y?";path="+y:"";t=t?";secure":"";m=m<0?"":m==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+m*1E3)).toUTCString();this.JSC$9609_document_.cookie=f+"="+H+v+y+m+t+(M!=null?";samesite="+M:"")};
_.R.get=function(f,H){for(var v=f+"=",t=(this.JSC$9609_document_.cookie||"").split(";"),M=0,h;M<t.length;M++){h=I3(t[M]);if(h.lastIndexOf(v,0)==0)return h.slice(v.length);if(h==f)return""}return H};
_.R.remove=function(f,H,v){var t=this.containsKey(f);this.set(f,"",{maxAge:0,path:H,domain:v});return t};
_.R.getKeys=function(){return G1_(this).keys};
_.R.getValues=function(){return G1_(this).values};
_.R.isEmpty=function(){return!this.JSC$9609_document_.cookie};
_.R.getCount=function(){return this.JSC$9609_document_.cookie?(this.JSC$9609_document_.cookie||"").split(";").length:0};
_.R.containsKey=function(f){return this.get(f)!==void 0};
_.R.containsValue=function(f){for(var H=G1_(this).values,v=0;v<H.length;v++)if(H[v]==f)return!0;return!1};
_.R.clear=function(){for(var f=G1_(this).keys,H=f.length-1;H>=0;H--)this.remove(f[H])};
G1_=function(f){f=(f.JSC$9609_document_.cookie||"").split(";");for(var H=[],v=[],t,M,h=0;h<f.length;h++)M=I3(f[h]),t=M.indexOf("="),t==-1?(H.push(""),v.push(M)):(H.push(M.substring(0,t)),v.push(M.substring(t+1)));return{keys:H,values:v}};
_.sk=new fh(typeof document=="undefined"?null:document);var mLv,CDh;mLv=function(){var f=_.Mr.__SAPISID||_.Mr.__APISID||_.Mr.__3PSAPISID||_.Mr.__1PSAPISID||_.Mr.__OVERRIDE_SID;if(f)return!0;typeof document!=="undefined"&&(f=new fh(document),f=f.get("SAPISID")||f.get("APISID")||f.get("__Secure-3PAPISID")||f.get("__Secure-1PAPISID"));return!!f};
CDh=function(f,H,v,t){(f=_.Mr[f])||typeof document==="undefined"||(f=(new fh(document)).get(H));return f?aMv(f,v,t):null};
_.cJR=function(f){var H=Q1b(_.Mr==null?void 0:_.Mr.location.href),v=[];if(mLv()){H=H.indexOf("https:")==0||H.indexOf("chrome-extension:")==0||H.indexOf("chrome-untrusted://new-tab-page")==0||H.indexOf("moz-extension:")==0;var t=H?_.Mr.__SAPISID:_.Mr.__APISID;t||typeof document==="undefined"||(t=new fh(document),t=t.get(H?"SAPISID":"APISID")||t.get("__Secure-3PAPISID"));(t=t?aMv(t,H?"SAPISIDHASH":"APISIDHASH",f):null)&&v.push(t);H&&((H=CDh("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",f))&&v.push(H),
(f=CDh("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",f))&&v.push(f))}return v.length==0?null:v.join(" ")};var EU_=function(){this.minSize=1024};
EU_.prototype.compress=function(f){var H,v,t,M;return _.Y(function(h){switch(h.nextAddress){case 1:return H=new CompressionStream("gzip"),v=(new Response(H.readable)).arrayBuffer(),t=H.writable.getWriter(),h.yield(t.write((new TextEncoder).encode(f)),2);case 2:return h.yield(t.close(),3);case 3:return M=Uint8Array,h.yield(v,4);case 4:return h.return(new M(h.yieldResult))}})};
EU_.prototype.isSupported=function(f){return f<this.minSize?!1:typeof CompressionStream!=="undefined"};var Neg=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(Neg,_.mL);var HU=function(f,H){this.intervalMs=f;this.callback=H;this.enabled=!1;this.nowFn=function(){return _.qN()};
this.lastTimeMs=this.nowFn()};
HU.prototype.setInterval=function(f){this.intervalMs=f;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
HU.prototype.start=function(){var f=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){f.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
HU.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
HU.prototype.tick=function(){var f=this;if(this.enabled){var H=Math.max(this.nowFn()-this.lastTimeMs,0);H<this.intervalMs*.8?this.timer=setTimeout(function(){f.tick()},this.intervalMs-H):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var cDb=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(cDb,_.mL);var XvZ=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(XvZ,_.mL);var ADn=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(ADn,_.mL);ADn.prototype.getTransmissionType=function(){return _.x_(this,1)};var apH=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(apH,_.mL);apH.prototype.getVersion=function(){return _.L8(this,2)};var vU=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(vU,_.mL);var u3H=function(f){sU(PZe,1,f)};
vU.prototype.getModel=function(){return _.L8(this,6)};
var boa=_.lD(vU);var ioZ=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(ioZ,_.mL);var p6T=["platform","platformVersion","architecture","model","uaFullVersion"],PZe=new vU,Q8H=null;var te=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(te,_.mL);var k19=function(f){return _.y$(f,1,1)};var TeH=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f,4)};
_.e(TeH,_.mL);_.Mc=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f,36)};
_.e(_.Mc,_.mL);_.Mc.prototype.getExperimentIds=function(){return _.V$(this,Neg,16)};var wva=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f,19)};
_.e(wva,_.mL);wva.prototype.setLogSource=function(f){return _.y$(this,2,f)};
wva.prototype.setScheduler=function(f){return _.y$(this,10,f)};var fcr=function(f,H){this.isServiceWorkerScope=H=H===void 0?!1:H;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new wva;Number.isInteger(f)&&this.logRequest.setLogSource(f);H||(this.locale=document.documentElement.getAttribute("lang"));q4h(this,new te)};
fcr.prototype.setLogSource=function(f){this.logRequest.setLogSource(f);return this};
var q4h=function(f,H){_.eV(f.logRequest,1,H);_.x_(H,1)||k19(H);f.isServiceWorkerScope||(H=he(f),_.L8(H,5)||_.rr(H,5,f.locale));f.uach&&(H=he(f),_.V$(H,vU,9)||_.eV(H,9,f.uach))},HSn=function(f,H){f.transmissionType=H},vuZ=function(f){var H=H===void 0?p6T:H;
var v=f.isServiceWorkerScope?void 0:PQ();v?Gev(v,H).then(function(t){f.uach=boa(t!=null?t:"[]");t=he(f);_.eV(t,9,f.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},he=function(f){var H=_.V$(f.logRequest,te,1);
H||(H=new te,q4h(f,H));f=H;H=_.V$(f,ioZ,11);H||(H=new ioZ,_.eV(f,11,H));return H};
fcr.prototype.build=function(f,H,v,t,M,h){H=H===void 0?0:H;v=v===void 0?0:v;t=t===void 0?null:t;M=M===void 0?0:M;h=h===void 0?0:h;if(!this.isServiceWorkerScope){var y=he(this);var m=new ADn;m=_.y$(m,1,this.transmissionType);m=_.O1(m,2,this.isFinal);v=_.rP(m,3,v>0?v:void 0);v=_.rP(v,4,M>0?M:void 0);v=_.rP(v,5,h>0?h:void 0);M=v.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;h=M[_.Ob]|0;v=rh(v,h)?v:jFT(v,M,h)?dxr(v,M):new v.constructor(Ex(M,h,!0));_.eV(y,10,v)}y=this.logRequest.clone();v=Date.now().toString();
y=_.YX(y,4,WA(v));f=f.slice();f=sU(y,3,f);t&&(y=new cDb,t=_.rP(y,13,t),y=new XvZ,t=_.eV(y,2,t),y=new TeH,t=_.eV(y,1,t),t=_.y$(t,2,9),_.eV(f,18,t));H&&_.UP(f,14,H);return f};IN.prototype.currBackoffCount_=0;IN.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
IN.prototype.getValue=function(){return this.currValue_};
var tan=function(f){f.currBaseValue_=Math.min(f.maxValue_,f.currBaseValue_*f.backoffFactor_);f.currValue_=Math.min(f.maxValue_,f.currBaseValue_+(f.randomFactor_?Math.round(f.randomFactor_*(Math.random()-.5)*2*f.currBaseValue_):0));f.currBackoffCount_++};var b$3=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f,8)};
_.e(b$3,_.mL);var Mab=_.lD(b$3);var i$s=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(i$s,_.mL);var RS;RS=new kGe;var Vu=function(f){_.zO.call(this);var H=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9687_compressor=this.experimentIds=null;this.numRetriesSinceLastSuccessfulFlush=this.numLogsDroppedSinceLastFlush=0;this.metalogService=null;this.persistedLogExpiredCount=this.persistedLogRecoveredCount=0;this.sequencePosition=1;this.timeoutMillis=0;this.JSC$9687_sendBeaconApiEnabled=!1;this.logSource=f.logSource;this.getAuthHeaderValue=
f.getAuthHeaderValue||function(){};
this.logRequestBuilder=new fcr(f.logSource,f.isServiceWorkerScope);this.network=f.network||null;this.productID=f.productID||null;this.bufferSize=1E3;this.clearcutUrl=f.urlOverride||null;this.sessionIndex=f.sessionIndex||null;this.disableAutomaticFlush=f.disableAutomaticFlush||!1;this.withCredentials=!f.disableWithCredentials;this.isServiceWorkerScope=f.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!PQ()&&!!PQ().navigator&&PQ().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(hSh())).searchParams&&!!(new URL(hSh())).searchParams.set;var v=k19(new te);q4h(this.logRequestBuilder,v);this.flushBackoff=new IN(1E4,3E5,.1);f=RSn(this,f.backgroundJobDeferrer);this.JSC$9687_flushTimer=new HU(this.flushBackoff.getValue(),f);this.backupTimer=new HU(6E5,f);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){VaC(H);
var t;(t=H.metalogService)==null||t.flush()}}),document.addEventListener("pagehide",function(){VaC(H);
var t;(t=H.metalogService)==null||t.flush()}))};
_.e(Vu,_.zO);var RSn=function(f,H){return f.isBrowserSupported?H?function(){H().then(function(){f.flush()})}:function(){f.flush()}:function(){}};
Vu.prototype.disposeInternal=function(){VaC(this);this.JSC$9687_flushTimer.stop();this.backupTimer.stop();_.zO.prototype.disposeInternal.call(this)};
var yfr=function(f){f.clearcutUrl||(f.clearcutUrl=hSh());try{return(new URL(f.clearcutUrl)).toString()}catch(H){return(new URL(f.clearcutUrl,PQ().location.origin)).toString()}};
Vu.prototype.dispatch=function(f){if(f instanceof _.Mc)this.log(f);else try{var H=new _.Mc,v=f.serialize();var t=_.rr(H,8,v);this.log(t)}catch(M){yu(this,4,1)}};
var yu=function(f,H,v){f.metalogService&&f.metalogService.increment(H,v)};
Vu.prototype.log=function(f){yu(this,2,1);if(this.isBrowserSupported){f=f.clone();var H=this.sequencePosition++;f=_.UP(f,21,H);this.componentId&&_.rr(f,26,this.componentId);H=f;if(xTB(_.OU(H,1))==null){var v=Date.now();v=Number.isFinite(v)?v.toString():"0";_.YX(H,1,WA(v))}_.L_r(_.OU(H,15))!=null||_.UP(H,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(v=this.experimentIds.clone(),_.eV(H,16,v));yu(this,1,1);H=this.pendingEvents.length-this.bufferSize+1;H>0&&(this.pendingEvents.splice(0,H),
this.numLogsDroppedSinceLastFlush+=H,yu(this,3,H));this.pendingEvents.push(f);this.disableAutomaticFlush||this.JSC$9687_flushTimer.enabled||this.JSC$9687_flushTimer.start()}};
Vu.prototype.flush=function(f,H){var v=this;if(this.pendingEvents.length===0)f&&f();else if(this.JSC$9687_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,YqM(this);else{var t=Date.now();if(this.noFlushUntilMs>t&&this.startWaitingMs<t)H&&H("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?HSn(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var M=this.pendingEvents.length,
h=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),y=this.getAuthHeaderValue();if(y&&this.lastFailedAuth===y)H&&H("stale-auth-token");else{this.pendingEvents=[];this.JSC$9687_flushTimer.enabled&&this.JSC$9687_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;t=h.serialize();var m;this.JSC$9687_compressor&&this.JSC$9687_compressor.isSupported(t.length)&&
(m=this.JSC$9687_compressor.compress(t));var W=mev(this,t,y),I=function(Z){v.flushBackoff.reset();v.JSC$9687_flushTimer.setInterval(v.flushBackoff.getValue());if(Z){var l=null;try{var L=JSON.stringify(JSON.parse(Z.replace(")]}'\n","")));l=Mab(L)}catch(r){}l&&(Z=Number(UU(l,1,_.GH("-1"))),Z>0&&(v.startWaitingMs=Date.now(),v.noFlushUntilMs=v.startWaitingMs+Z),brT(l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,RS.fieldIndex),Xob(l,RS.fieldIndex),l=RS.ctor?RS.getExtensionFn(l,RS.ctor,RS.fieldIndex,
RS.JSC$8866_hasMessageId):RS.getExtensionFn(l,RS.fieldIndex,null,RS.JSC$8866_hasMessageId),l=l===null?void 0:l)&&(l=_.Yl(l,1,-1),l!==-1&&(v.flushBackoff=new IN(l<1?1:l,3E5,.1),v.JSC$9687_flushTimer.setInterval(v.flushBackoff.getValue())))}f&&f();v.numRetriesSinceLastSuccessfulFlush=0},S=function(Z,l){var L=_.VX(h,_.Mc,3,_.yX());
var r=Number(UU(h,14));tan(v.flushBackoff);v.JSC$9687_flushTimer.setInterval(v.flushBackoff.getValue());Z===401&&y&&(v.lastFailedAuth=y);r&&(v.numLogsDroppedSinceLastFlush+=r);l===void 0&&(l=v.isRetryable(Z));l&&(v.pendingEvents=L.concat(v.pendingEvents),v.disableAutomaticFlush||v.JSC$9687_flushTimer.enabled||v.JSC$9687_flushTimer.start());yu(v,7,1);H&&H("net-send-failed",Z);++v.numRetriesSinceLastSuccessfulFlush},d=function(){v.network&&v.network.send(W,I,S)};
m?m.then(function(Z){yu(v,5,M);W.requestHeaders["Content-Encoding"]="gzip";W.requestHeaders["Content-Type"]="application/binary";W.body=Z;W.bodyType=2;d()},function(){yu(v,6,M);
d()}):d()}}}};
var mev=function(f,H,v){v=v===void 0?null:v;var t=t===void 0?f.withCredentials:t;var M={},h=new URL(yfr(f));v&&(M.Authorization=v);f.sessionIndex&&(M["X-Goog-AuthUser"]=f.sessionIndex,h.searchParams.set("authuser",f.sessionIndex));f.pageId&&(Object.defineProperty(M,"X-Goog-PageId",{value:f.pageId}),h.searchParams.set("pageId",f.pageId));return{url:h.toString(),body:H,bodyType:1,requestHeaders:M,requestType:"POST",withCredentials:t,timeoutMillis:f.timeoutMillis}},VaC=function(f){f.logRequestBuilder.isFinal=
!0;
f.flush();f.logRequestBuilder.isFinal=!1},YqM=function(f){$ev(f,function(H,v){H=new URL(H);
H.searchParams.set("format","json");var t=!1;try{t=PQ().navigator.sendBeacon(H.toString(),v.serialize())}catch(M){}t||(f.isSendBeaconSupported=!1);return t})},$ev=function(f,H){if(f.pendingEvents.length!==0){var v=new URL(yfr(f));
v.searchParams.delete("format");var t=f.getAuthHeaderValue();t&&v.searchParams.set("auth",t);v.searchParams.set("authuser",f.sessionIndex||"0");for(t=0;t<10&&f.pendingEvents.length;++t){var M=f.pendingEvents.slice(0,32),h=f.logRequestBuilder.build(M,f.numLogsDroppedSinceLastFlush,f.numRetriesSinceLastSuccessfulFlush,f.productID,f.persistedLogRecoveredCount,f.persistedLogExpiredCount);if(!H(v.toString(),h)){++f.numRetriesSinceLastSuccessfulFlush;break}f.numLogsDroppedSinceLastFlush=0;f.numRetriesSinceLastSuccessfulFlush=
0;f.persistedLogRecoveredCount=0;f.persistedLogExpiredCount=0;f.pendingEvents=f.pendingEvents.slice(M.length)}f.JSC$9687_flushTimer.enabled&&f.JSC$9687_flushTimer.stop()}};
Vu.prototype.isRetryable=function(f){return 500<=f&&f<600||f===401||f===0};
var hSh=function(){return"https://play.google.com/log?format=json&hasfast=true"};var Who=function(){this.abortSupported=typeof AbortController!=="undefined"};
Who.prototype.send=function(f,H,v){var t=this,M,h,y,m,W,I,S,d,Z,l;return _.Y(function(L){switch(L.nextAddress){case 1:return h=(M=t.abortSupported?new AbortController:void 0)?setTimeout(function(){M.abort()},f.timeoutMillis):void 0,_.Zc(L,2,3),y=Object.assign({},{method:f.requestType,
headers:Object.assign({},f.requestHeaders)},f.body&&{body:f.body},f.withCredentials&&{credentials:"include"},{signal:f.timeoutMillis&&M?M.signal:null}),L.yield(fetch(f.url,y),5);case 5:m=L.yieldResult;if(m.status!==200){(W=v)==null||W(m.status);L.jumpTo(3);break}if((I=H)==null){L.jumpTo(7);break}return L.yield(m.text(),8);case 8:I(L.yieldResult);case 7:case 3:_.lk(L);clearTimeout(h);_.ea(L,0);break;case 2:S=_.xu(L);switch((d=S)==null?void 0:d.name){case "AbortError":(Z=v)==null||Z(408);break;default:(l=
v)==null||l(400)}L.jumpTo(3)}})};
Who.prototype.getTransmissionType=function(){return 4};_.dA=function(f,H){H=H===void 0?"0":H;_.zO.call(this);this.logSource=f;this.sessionIndex=H;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9705_clearExperimentIds=this.productID=null;this.JSC$9705_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.e(_.dA,_.zO);var Tu_=function(f,H){f.buildLabel=H;return f},keH=function(f,H){f.network=H;
return f},qS5=function(f,H){f.JSC$9705_clearExperimentIds=H},icB=function(f){f.JSC$9705_sendBeaconApiEnabled=!0;
return f};
_.dA.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.dA.prototype.build=function(){this.network||(this.network=new Who);var f=new Vu({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.cJR,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.jz(this,f);if(this.buildLabel){var H=this.buildLabel,v=
he(f.logRequestBuilder);_.rr(v,7,H)}f.JSC$9687_compressor=new EU_;this.componentId&&(f.componentId=this.componentId);this.productID&&(f.productID=this.productID);this.pageId&&(f.pageId=this.pageId);this.JSC$9705_clearExperimentIds&&((v=this.JSC$9705_clearExperimentIds)?(f.experimentIds||(f.experimentIds=new Neg),H=f.experimentIds,v=v.serialize(),_.rr(H,4,v)):f.experimentIds&&_.YX(f.experimentIds,4));this.JSC$9705_sendBeaconApiEnabled&&(f.JSC$9687_sendBeaconApiEnabled=f.isSendBeaconSupported);vuZ(f.logRequestBuilder);
this.bufferSize&&(f.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(f);return f};var vZT=function(f,H,v,t,M,h,y){f=f===void 0?-1:f;H=H===void 0?"":H;v=v===void 0?"":v;t=t===void 0?!1:t;M=M===void 0?"":M;_.zO.call(this);this.logSource=f;this.componentId=H;h?H=h:(f=new _.dA(f,"0"),f.componentId=H,_.jz(this,f),v!==""&&(f.destinationUrl=v),t&&(f.serviceWorkerScopeEnabled=!0),M&&Tu_(f,M),y&&keH(f,y),H=f.build());this.JSC$9709_transport=H};
_.e(vZT,_.zO);vZT.prototype.flush=function(f){f=f||[];if(f.length){for(var H=new DAh,v=[],t=0;t<f.length;t++){var M=f[t],h=pvT(M);v.push(h);M.clear()}sU(H,1,v);this.JSC$9709_transport.dispatch(H);this.JSC$9709_transport.flush()}};var OSb=function(f){this.cellValue=f};var YR=function(f,H,v){this.JSC$9714_metricName=f;this.cellType=H;this.fields=v||[];this.cellMap=new Map},nUb=function(f){return f.fields.map(function(H){return H.fieldType})},oUM=function(f){return f.fields.map(function(H){return H.fieldName})};
_.R=YR.prototype;_.R.addCell=function(f){var H=_.NA.apply(1,arguments),v=this.getCells(H);v?v.push(new OSb(f)):this.JSC$9714_setCell(f,H)};
_.R.JSC$9714_setCell=function(f){var H=this.JSC$9714_getKey(_.NA.apply(1,arguments));this.cellMap.set(H,[new OSb(f)])};
_.R.getCells=function(){var f=this.JSC$9714_getKey(_.NA.apply(0,arguments));return this.cellMap.has(f)?this.cellMap.get(f):void 0};
_.R.getCell=function(){var f=this.getCells(_.NA.apply(0,arguments));return f&&f.length?f[0]:void 0};
_.R.clear=function(){this.cellMap.clear()};
_.R.JSC$9714_getKey=function(){var f=_.NA.apply(0,arguments);return f?f.join(","):"key"};var gun=function(f,H){YR.call(this,f,3,H)};
_.e(gun,YR);gun.prototype.JSC$9717_incrementCounterBy=function(f){var H=_.NA.apply(1,arguments),v=0,t=this.getCell(H);t&&(v=t.cellValue);this.JSC$9714_setCell(v+f,H)};var Ic9=function(f,H){YR.call(this,f,2,H)};
_.e(Ic9,YR);Ic9.prototype.record=function(f){this.addCell(f,_.NA.apply(1,arguments))};_.mQ=function(f){this.id=f};
_.mQ.prototype.toString=function(){return this.id};_.$R=function(f,H){this.type=f instanceof _.mQ?String(f):f;this.currentTarget=this.target=H;this.defaultPrevented=this.propagationStopped_=!1};
_.$R.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.$R.prototype.preventDefault=function(){this.defaultPrevented=!0};_.WU=function(f,H){_.$R.call(this,f?f.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;f&&this.init(f,H)};
_.f8(_.WU,_.$R);
_.WU.prototype.init=function(f,H){var v=this.type=f.type,t=f.changedTouches&&f.changedTouches.length?f.changedTouches[0]:null;this.target=f.target||f.srcElement;this.currentTarget=H;H=f.relatedTarget;H||(v=="mouseover"?H=f.fromElement:v=="mouseout"&&(H=f.toElement));this.relatedTarget=H;t?(this.clientX=t.clientX!==void 0?t.clientX:t.pageX,this.clientY=t.clientY!==void 0?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0):(this.offsetX=_.Rp||f.offsetX!==void 0?f.offsetX:f.layerX,
this.offsetY=_.Rp||f.offsetY!==void 0?f.offsetY:f.layerY,this.clientX=f.clientX!==void 0?f.clientX:f.pageX,this.clientY=f.clientY!==void 0?f.clientY:f.pageY,this.screenX=f.screenX||0,this.screenY=f.screenY||0);this.button=f.button;this.keyCode=f.keyCode||0;this.key=f.key||"";this.charCode=f.charCode||(v=="keypress"?f.keyCode:0);this.ctrlKey=f.ctrlKey;this.altKey=f.altKey;this.shiftKey=f.shiftKey;this.metaKey=f.metaKey;this.pointerId=f.pointerId||0;this.pointerType=f.pointerType;this.state=f.state;
this.timeStamp=f.timeStamp;this.event_=f;f.defaultPrevented&&_.WU.superClass_.preventDefault.call(this)};
_.WU.prototype.stopPropagation=function(){_.WU.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.WU.prototype.preventDefault=function(){_.WU.superClass_.preventDefault.call(this);var f=this.event_;f.preventDefault?f.preventDefault():f.returnValue=!1};var SqZ="closure_listenable_"+(Math.random()*1E6|0),OB=function(f){return!(!f||!f[SqZ])};var deC=0;var jdC=function(f,H,v,t,M){this.listener=f;this.proxy=null;this.src=H;this.type=v;this.capture=!!t;this.handler=M;this.key=++deC;this.removed=this.callOnce=!1},sd9=function(f){f.removed=!0;
f.listener=null;f.proxy=null;f.src=null;f.handler=null};Sz.prototype.add=function(f,H,v,t,M){var h=f.toString();f=this.listeners[h];f||(f=this.listeners[h]=[],this.typeCount_++);var y=ZSH(f,H,t,M);y>-1?(H=f[y],v||(H.callOnce=!1)):(H=new jdC(H,this.src,h,!!t,M),H.callOnce=v,f.push(H));return H};
Sz.prototype.remove=function(f,H,v,t){f=f.toString();if(!(f in this.listeners))return!1;var M=this.listeners[f];H=ZSH(M,H,v,t);return H>-1?(sd9(M[H]),_.s3g(M,H),M.length==0&&(delete this.listeners[f],this.typeCount_--),!0):!1};
var JfH=function(f,H){var v=H.type;if(!(v in f.listeners))return!1;var t=_.iH(f.listeners[v],H);t&&(sd9(H),f.listeners[v].length==0&&(delete f.listeners[v],f.typeCount_--));return t};
Sz.prototype.removeAll=function(f){f=f&&f.toString();var H=0,v;for(v in this.listeners)if(!f||v==f){for(var t=this.listeners[v],M=0;M<t.length;M++)++H,sd9(t[M]);delete this.listeners[v];this.typeCount_--}return H};
Sz.prototype.getListener=function(f,H,v,t){f=this.listeners[f.toString()];var M=-1;f&&(M=ZSH(f,H,v,t));return M>-1?f[M]:null};
Sz.prototype.hasListener=function(f,H){var v=f!==void 0,t=v?f.toString():"",M=H!==void 0;return _.QA.some(this.listeners,function(h){for(var y=0;y<h.length;++y)if(!(v&&h[y].type!=t||M&&h[y].capture!=H))return!0;return!1})};
var ZSH=function(f,H,v,t){for(var M=0;M<f.length;++M){var h=f[M];if(!h.removed&&h.listener==H&&h.capture==!!v&&h.handler==t)return M}return-1};var lch,UeM,eSM,xeh,BUh,x6,BK,rfC,zSg,FhT,gm,Khg,Lhr;lch="closure_lm_"+(Math.random()*1E6|0);UeM={};eSM=0;_.r9=function(f,H,v,t,M){if(t&&t.once)return x6(f,H,v,t,M);if(Array.isArray(H)){for(var h=0;h<H.length;h++)_.r9(f,H[h],v,t,M);return null}v=Lhr(v);return OB(f)?f.listen(H,v,_.vo(t)?!!t.capture:!!t,M):xeh(f,H,v,!1,t,M)};
xeh=function(f,H,v,t,M,h){if(!H)throw Error("va");var y=_.vo(M)?!!M.capture:!!M,m=gm(f);m||(f[lch]=m=new Sz(f));v=m.add(H,v,t,y,h);if(v.proxy)return v;t=BUh();v.proxy=t;t.src=f;t.listener=v;if(f.addEventListener)_.eyR||(M=y),M===void 0&&(M=!1),f.addEventListener(H.toString(),t,M);else if(f.attachEvent)f.attachEvent(zSg(H.toString()),t);else if(f.addListener&&f.removeListener)f.addListener(t);else throw Error("wa");eSM++;return v};
BUh=function(){var f=FhT,H=function(v){return f.call(H.src,H.listener,v)};
return H};
x6=function(f,H,v,t,M){if(Array.isArray(H)){for(var h=0;h<H.length;h++)x6(f,H[h],v,t,M);return null}v=Lhr(v);return OB(f)?f.listenOnce(H,v,_.vo(t)?!!t.capture:!!t,M):xeh(f,H,v,!0,t,M)};
_.IS=function(f,H,v,t,M){if(Array.isArray(H))for(var h=0;h<H.length;h++)_.IS(f,H[h],v,t,M);else t=_.vo(t)?!!t.capture:!!t,v=Lhr(v),OB(f)?f.unlisten(H,v,t,M):f&&(f=gm(f))&&(H=f.getListener(H,v,t,M))&&BK(H)};
BK=function(f){if(typeof f==="number"||!f||f.removed)return!1;var H=f.src;if(OB(H))return JfH(H.eventTargetListeners_,f);var v=f.type,t=f.proxy;H.removeEventListener?H.removeEventListener(v,t,f.capture):H.detachEvent?H.detachEvent(zSg(v),t):H.addListener&&H.removeListener&&H.removeListener(t);eSM--;(v=gm(H))?(JfH(v,f),v.typeCount_==0&&(v.src=null,H[lch]=null)):sd9(f);return!0};
rfC=function(f,H,v,t,M){v=Lhr(v);t=!!t;return OB(f)?f.getListener(H,v,t,M):f?(f=gm(f))?f.getListener(H,v,t,M):null:null};
zSg=function(f){return f in UeM?UeM[f]:UeM[f]="on"+f};
FhT=function(f,H){if(f.removed)f=!0;else{H=new _.WU(H,this);var v=f.listener,t=f.handler||f.src;f.callOnce&&BK(f);f=v.call(t,H)}return f};
gm=function(f){f=f[lch];return f instanceof Sz?f:null};
Khg="__closure_events_fn_"+(Math.random()*1E9>>>0);Lhr=function(f){if(typeof f==="function")return f;f[Khg]||(f[Khg]=function(H){return f.handleEvent(H)});
return f[Khg]};_.Sg=function(){_.zO.call(this);this.eventTargetListeners_=new Sz(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.f8(_.Sg,_.zO);_.Sg.prototype[SqZ]=!0;_.R=_.Sg.prototype;_.R.setParentEventTarget=function(f){this.parentEventTarget_=f};
_.R.addEventListener=function(f,H,v,t){_.r9(this,f,H,v,t)};
_.R.removeEventListener=function(f,H,v,t){_.IS(this,f,H,v,t)};
_.R.dispatchEvent=function(f){var H,v=this.parentEventTarget_;if(v)for(H=[];v;v=v.parentEventTarget_)H.push(v);v=this.actualEventTarget_;var t=f.type||f;if(typeof f==="string")f=new _.$R(f,v);else if(f instanceof _.$R)f.target=f.target||v;else{var M=f;f=new _.$R(t,v);_.QA.extend(f,M)}M=!0;var h;if(H)for(h=H.length-1;!f.propagationStopped_&&h>=0;h--){var y=f.currentTarget=H[h];M=DeH(y,t,!0,f)&&M}f.propagationStopped_||(y=f.currentTarget=v,M=DeH(y,t,!0,f)&&M,f.propagationStopped_||(M=DeH(y,t,!1,f)&&
M));if(H)for(h=0;!f.propagationStopped_&&h<H.length;h++)y=f.currentTarget=H[h],M=DeH(y,t,!1,f)&&M;return M};
_.R.disposeInternal=function(){_.Sg.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.R.listen=function(f,H,v,t){return this.eventTargetListeners_.add(String(f),H,!1,v,t)};
_.R.listenOnce=function(f,H,v,t){return this.eventTargetListeners_.add(String(f),H,!0,v,t)};
_.R.unlisten=function(f,H,v,t){return this.eventTargetListeners_.remove(String(f),H,v,t)};
_.R.removeAllListeners=function(f){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(f):0};
var DeH=function(f,H,v,t){H=f.eventTargetListeners_.listeners[String(H)];if(!H)return!0;H=H.concat();for(var M=!0,h=0;h<H.length;++h){var y=H[h];if(y&&!y.removed&&y.capture==v){var m=y.listener,W=y.handler||y.src;y.callOnce&&JfH(f.eventTargetListeners_,y);M=m.call(W,t)!==!1&&M}}return M&&!t.defaultPrevented};
_.Sg.prototype.getListener=function(f,H,v,t){return this.eventTargetListeners_.getListener(String(f),H,v,t)};
_.Sg.prototype.hasListener=function(f,H){return this.eventTargetListeners_.hasListener(f!==void 0?String(f):void 0,H)};var dm=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(f){return f&&AsyncContext.Snapshot.wrap(f)}:function(f){return f};var oug=function(f,H){this.create_=f;this.reset_=H;this.occupants_=0;this.JSC$9749_head_=null};
oug.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var f=this.JSC$9749_head_;this.JSC$9749_head_=f.next;f.next=null}else f=this.create_();return f};
oug.prototype.put=function(f){this.reset_(f);this.occupants_<100&&(this.occupants_++,f.next=this.JSC$9749_head_,this.JSC$9749_head_=f)};var nuh=function(){this.workTail_=this.workHead_=null};
nuh.prototype.add=function(f,H){var v=Ekg.get();v.set(f,H);this.workTail_?this.workTail_.next=v:this.workHead_=v;this.workTail_=v};
nuh.prototype.remove=function(){var f=null;this.workHead_&&(f=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),f.next=null);return f};
var Ekg=new oug(function(){return new pjo},function(f){return f.reset()}),pjo=function(){this.next=this.scope=this.fn=null};
pjo.prototype.set=function(f,H){this.fn=f;this.scope=H;this.next=null};
pjo.prototype.reset=function(){this.next=this.scope=this.fn=null};var Qd_,Nu3,CZe,uPh;Nu3=!1;CZe=new nuh;_.jg=function(f,H){Qd_||uPh();Nu3||(Qd_(),Nu3=!0);CZe.add(f,H)};
uPh=function(){var f=Promise.resolve(void 0);Qd_=function(){f.then(cre)}};var acn=function(f){f.prototype.$goog_Thenable=!0},Pkn=function(f){if(!f)return!1;
try{return!!f.$goog_Thenable}catch(H){return!1}};var GoZ,CkC,Eur,cfn,XjC,Af_,TUv,fRg,MFC,vOg,fgR;_.IO=function(f,H){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(f!=_.gQ)try{var v=this;f.call(H,function(t){v.resolve_(2,t)},function(t){v.resolve_(3,t)})}catch(t){this.resolve_(3,t)}};
GoZ=function(){this.next=this.context=this.JSC$9760_onRejected=this.JSC$9760_onFulfilled=this.child=null;this.always=!1};
GoZ.prototype.reset=function(){this.context=this.JSC$9760_onRejected=this.JSC$9760_onFulfilled=this.child=null;this.always=!1};
CkC=new oug(function(){return new GoZ},function(f){f.reset()});
Eur=function(f,H,v){var t=CkC.get();t.JSC$9760_onFulfilled=f;t.JSC$9760_onRejected=H;t.context=v;return t};
_.gj=function(f){if(f instanceof _.IO)return f;var H=new _.IO(_.gQ);H.resolve_(2,f);return H};
_.DI=function(f){return new _.IO(function(H,v){v(f)})};
cfn=function(f,H,v){NUv(f,H,v,null)||_.jg(_.l0(H,f))};
_.sB=function(f){return new _.IO(function(H,v){var t=f.length,M=[];if(t)for(var h=function(I,S){t--;M[I]=S;t==0&&H(M)},y=function(I){v(I)},m,W=0;W<f.length;W++)m=f[W],cfn(m,_.l0(h,W),y);
else H(M)})};
XjC=function(f){return new _.IO(function(H){var v=f.length,t=[];if(v)for(var M=function(m,W,I){v--;t[m]=W?{fulfilled:!0,value:I}:{fulfilled:!1,reason:I};v==0&&H(t)},h,y=0;y<f.length;y++)h=f[y],cfn(h,_.l0(M,y,!0),_.l0(M,y,!1));
else H(t)})};
Af_=function(f){return new _.IO(function(H,v){var t=f.length,M=[];if(t)for(var h=function(I){H(I)},y=function(I,S){t--;
M[I]=S;t==0&&v(M)},m,W=0;W<f.length;W++)m=f[W],cfn(m,h,_.l0(y,W));
else H(void 0)})};
_.bE=function(){var f,H,v=new _.IO(function(t,M){f=t;H=M});
return new bS_(v,f,H)};
_.IO.prototype.then=function(f,H,v){return iS9(this,dm(typeof f==="function"?f:null),dm(typeof H==="function"?H:null),v)};
acn(_.IO);TUv=function(f,H,v,t){koh(f,Eur(H||_.gQ,v||null,t))};
_.Ze=function(f,H){H=dm(H);H=Eur(H,H);H.always=!0;koh(f,H);return f};
_.IO.prototype.finally=function(f){var H=this;f=dm(f);return new _.IO(function(v,t){TUv(H,function(M){f();v(M)},function(M){f();
t(M)})})};
_.IO.prototype.thenCatch=function(f,H){return iS9(this,null,dm(f),H)};
_.IO.prototype.catch=_.IO.prototype.thenCatch;_.IO.prototype.cancel=function(f){if(this.state_==0){var H=new _.pp(f);_.jg(function(){wjZ(this,H)},this)}};
var wjZ=function(f,H){if(f.state_==0)if(f.parent_){var v=f.parent_;if(v.callbackEntries_){for(var t=0,M=null,h=null,y=v.callbackEntries_;y&&(y.always||(t++,y.child==f&&(M=y),!(M&&t>1)));y=y.next)M||(h=y);M&&(v.state_==0&&t==1?wjZ(v,H):(h?(t=h,t.next==v.callbackEntriesTail_&&(v.callbackEntriesTail_=t),t.next=t.next.next):qqo(v),fRg(v,M,3,H)))}f.parent_=null}else f.resolve_(3,H)},koh=function(f,H){f.callbackEntries_||f.state_!=2&&f.state_!=3||HdC(f);
f.callbackEntriesTail_?f.callbackEntriesTail_.next=H:f.callbackEntries_=H;f.callbackEntriesTail_=H},iS9=function(f,H,v,t){var M=Eur(null,null,null);
M.child=new _.IO(function(h,y){M.JSC$9760_onFulfilled=H?function(m){try{var W=H.call(t,m);h(W)}catch(I){y(I)}}:h;
M.JSC$9760_onRejected=v?function(m){try{var W=v.call(t,m);W===void 0&&m instanceof _.pp?y(m):h(W)}catch(I){y(I)}}:y});
M.child.parent_=f;koh(f,M);return M.child};
_.IO.prototype.unblockAndFulfill_=function(f){this.state_=0;this.resolve_(2,f)};
_.IO.prototype.unblockAndReject_=function(f){this.state_=0;this.resolve_(3,f)};
_.IO.prototype.resolve_=function(f,H){this.state_==0&&(this===H&&(f=3,H=new TypeError("xa")),this.state_=1,NUv(H,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=H,this.state_=f,this.parent_=null,HdC(this),f!=3||H instanceof _.pp||vOg(this,H)))};
var NUv=function(f,H,v,t){if(f instanceof _.IO)return TUv(f,H,v,t),!0;if(Pkn(f))return f.then(H,v,t),!0;if(_.vo(f))try{var M=f.then;if(typeof M==="function")return tFC(f,M,H,v,t),!0}catch(h){return v.call(t,h),!0}return!1},tFC=function(f,H,v,t,M){var h=!1,y=function(W){h||(h=!0,v.call(M,W))},m=function(W){h||(h=!0,t.call(M,W))};
try{H.call(f,y,m)}catch(W){m(W)}},HdC=function(f){f.executing_||(f.executing_=!0,_.jg(f.executeCallbacks_,f))},qqo=function(f){var H=null;
f.callbackEntries_&&(H=f.callbackEntries_,f.callbackEntries_=H.next,H.next=null);f.callbackEntries_||(f.callbackEntriesTail_=null);return H};
_.IO.prototype.executeCallbacks_=function(){for(var f;f=qqo(this);)fRg(this,f,this.state_,this.result_);this.executing_=!1};
fRg=function(f,H,v,t){if(v==3&&H.JSC$9760_onRejected&&!H.always)for(;f&&f.hadUnhandledRejection_;f=f.parent_)f.hadUnhandledRejection_=!1;if(H.child)H.child.parent_=null,MFC(H,v,t);else try{H.always?H.JSC$9760_onFulfilled.call(H.context):MFC(H,v,t)}catch(M){fgR.call(null,M)}CkC.put(H)};
MFC=function(f,H,v){H==2?f.JSC$9760_onFulfilled.call(f.context,v):f.JSC$9760_onRejected&&f.JSC$9760_onRejected.call(f.context,v)};
vOg=function(f,H){f.hadUnhandledRejection_=!0;_.jg(function(){f.hadUnhandledRejection_&&fgR.call(null,H)})};
fgR=R3;_.pp=function(f){_.vR.call(this,f)};
_.f8(_.pp,_.vR);_.pp.prototype.name="cancel";var bS_=function(f,H,v){this.promise=f;this.resolve=H;this.reject=v};var Je;_.ye=function(f,H){_.Sg.call(this);this.JSC$9772_interval_=f||1;this.timerObject_=H||_.Mr;this.boundTick_=(0,_.FH)(this.tick_,this);this.last_=_.qN()};
_.f8(_.ye,_.Sg);_.R=_.ye.prototype;_.R.enabled=!1;_.R.JSC$9774_timer_=null;_.R.setInterval=function(f){this.JSC$9772_interval_=f;this.JSC$9774_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9774_timer_&&this.stop()};
_.R.tick_=function(){if(this.enabled){var f=_.qN()-this.last_;f>0&&f<this.JSC$9772_interval_*.8?this.JSC$9774_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9772_interval_-f):(this.JSC$9774_timer_&&(this.timerObject_.clearTimeout(this.JSC$9774_timer_),this.JSC$9774_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.R.start=function(){this.enabled=!0;this.JSC$9774_timer_||(this.JSC$9774_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9772_interval_),this.last_=_.qN())};
_.R.stop=function(){this.enabled=!1;this.JSC$9774_timer_&&(this.timerObject_.clearTimeout(this.JSC$9774_timer_),this.JSC$9774_timer_=null)};
_.R.disposeInternal=function(){_.ye.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
Je=function(f,H,v){if(typeof f==="function")v&&(f=(0,_.FH)(f,v));else if(f&&typeof f.handleEvent=="function")f=(0,_.FH)(f.handleEvent,f);else throw Error("ya");return Number(H)>2147483647?-1:_.Mr.setTimeout(f,H||0)};
_.hg_=function(f){var H=null;return(new _.IO(function(v,t){H=Je(function(){v(void 0)},f);
H==-1&&t(Error("za"))})).thenCatch(function(v){_.Mr.clearTimeout(H);
throw v;})};var s1=function(f){_.zO.call(this);this.streamzLogger=f;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9778_flushTimer=new _.ye(this.flushInterval);this.JSC$9778_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.jz(this,this.JSC$9778_flushTimer)};
_.e(s1,_.zO);s1.prototype.sendIsolatedPayload=function(f){this.shouldSendIsolatedPayload=f;this.invocationLimit=1};
var Rgv=function(f){f.JSC$9778_flushTimer.enabled||f.JSC$9778_flushTimer.start();f.invocationCount++;f.invocationCount>=f.invocationLimit&&f.snapshotAndFlush()};
s1.prototype.snapshotAndFlush=function(){var f=this.metricMap.values();f=[].concat(_.pS(f)).filter(function(H){return H.cellMap.size});
f.length&&this.streamzLogger.flush(f,this.shouldSendIsolatedPayload);VF_(f);this.invocationCount=0;this.JSC$9778_flushTimer.enabled&&this.JSC$9778_flushTimer.stop()};
s1.prototype.addNewCounter=function(f){var H=_.NA.apply(1,arguments);this.metricMap.has(f)||this.metricMap.set(f,new gun(f,H))};
s1.prototype.addNewEventMetric=function(f){var H=_.NA.apply(1,arguments);this.metricMap.has(f)||this.metricMap.set(f,new Ic9(f,H))};
var yTg=function(f,H){return f.disabledMetrics.has(H)?void 0:f.metricMap.get(H)};
s1.prototype.JSC$9778_incrementCounter=function(f){this.JSC$9778_incrementCounterBy(f,1,_.NA.apply(1,arguments))};
s1.prototype.JSC$9778_incrementCounterBy=function(f,H){var v=_.NA.apply(2,arguments),t=yTg(this,f);t&&t instanceof gun&&(t.JSC$9717_incrementCounterBy(H,v),Rgv(this))};
s1.prototype.record=function(f,H){var v=_.NA.apply(2,arguments),t=yTg(this,f);t&&t instanceof Ic9&&(t.record(H,v),Rgv(this))};
var VF_=function(f){for(var H=0;H<f.length;H++)f[H].clear()};_.lz=function(f,H,v){v=v===void 0?{}:v;H=Error.call(this,H);this.message=H.message;"stack"in H&&(this.stack=H.stack);this.code=f;this.metadata=v;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.e(_.lz,Error);_.lz.prototype.toString=function(){var f="RpcError("+(Arb(this.code)||String(this.code))+")";this.message&&(f+=": "+this.message);return f};_.YZh=_.Mr.JSON.parse;_.UB=_.Mr.JSON.stringify;_.DF=_.Mr.JSON.parse;_.mdb=function(f){switch(f){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 $dg=function(f){switch(f){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var WSn,Odh=function(){};
_.f8(Odh,_.bcs);Odh.prototype.createInstance=function(){return new XMLHttpRequest};
WSn=new Odh;_.eg=function(f){_.Sg.call(this);this.headers=new Map;this.JSC$9787_xmlHttpFactory_=f||null;this.JSC$9787_active_=!1;this.JSC$9787_xhr_=null;this.JSC$9787_lastUri_="";this.JSC$9787_lastErrorCode_=0;this.JSC$9787_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9787_timeoutId_=null;this.responseType_="";this.JSC$9787_withCredentials_=!1};
_.f8(_.eg,_.Sg);var gOn=/^https?$/i,IRh=["POST","PUT"],SZb=[],ORE=function(f,H,v,t,M,h,y){var m=new _.eg;SZb.push(m);H&&m.listen("complete",H);m.listenOnce("ready",m.cleanupSend_);h&&(m.timeoutInterval_=Math.max(0,h));y&&(m.JSC$9787_withCredentials_=y);m.send(f,v,t,M)};
_.eg.prototype.cleanupSend_=function(){this.dispose();_.iH(SZb,this)};
_.eg.prototype.send=function(f,H,v,t){if(this.JSC$9787_xhr_)throw Error("Aa`"+this.JSC$9787_lastUri_+"`"+f);H=H?H.toUpperCase():"GET";this.JSC$9787_lastUri_=f;this.JSC$9787_lastError_="";this.JSC$9787_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9787_active_=!0;this.JSC$9787_xhr_=this.createXhr();this.JSC$9787_xhr_.onreadystatechange=dm((0,_.FH)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9787_xhr_.open(H,String(f),!0),this.inOpen_=!1}catch(y){dd_(this,y);return}f=v||"";v=new Map(this.headers);
if(t)if(Object.getPrototypeOf(t)===Object.prototype)for(var M in t)v.set(M,t[M]);else if(typeof t.keys==="function"&&typeof t.get==="function"){M=_.V(t.keys());for(var h=M.next();!h.done;h=M.next())h=h.value,v.set(h,t.get(h))}else throw Error("Ba`"+String(t));t=Array.from(v.keys()).find(function(y){return"content-type"==y.toLowerCase()});
M=_.Mr.FormData&&f instanceof _.Mr.FormData;!_.cR(IRh,H)||t||M||v.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");H=_.V(v);for(t=H.next();!t.done;t=H.next())v=_.V(t.value),t=v.next().value,v=v.next().value,this.JSC$9787_xhr_.setRequestHeader(t,v);this.responseType_&&(this.JSC$9787_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9787_xhr_&&this.JSC$9787_xhr_.withCredentials!==this.JSC$9787_withCredentials_&&(this.JSC$9787_xhr_.withCredentials=this.JSC$9787_withCredentials_);
try{this.JSC$9787_timeoutId_&&(clearTimeout(this.JSC$9787_timeoutId_),this.JSC$9787_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9787_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9787_xhr_.send(f),this.inSend_=!1}catch(y){dd_(this,y)}};
_.eg.prototype.createXhr=function(){return this.JSC$9787_xmlHttpFactory_?this.JSC$9787_xmlHttpFactory_.createInstance():WSn.createInstance()};
_.eg.prototype.timeout_=function(){typeof DZ3!="undefined"&&this.JSC$9787_xhr_&&(this.JSC$9787_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9787_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var dd_=function(f,H){f.JSC$9787_active_=!1;f.JSC$9787_xhr_&&(f.inAbort_=!0,f.JSC$9787_xhr_.abort(),f.inAbort_=!1);f.JSC$9787_lastError_=H;f.JSC$9787_lastErrorCode_=5;jlr(f);slg(f)},jlr=function(f){f.errorDispatched_||(f.errorDispatched_=!0,f.dispatchEvent("complete"),f.dispatchEvent("error"))};
_.eg.prototype.abort=function(f){this.JSC$9787_xhr_&&this.JSC$9787_active_&&(this.JSC$9787_active_=!1,this.inAbort_=!0,this.JSC$9787_xhr_.abort(),this.inAbort_=!1,this.JSC$9787_lastErrorCode_=f||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),slg(this))};
_.eg.prototype.disposeInternal=function(){this.JSC$9787_xhr_&&(this.JSC$9787_active_&&(this.JSC$9787_active_=!1,this.inAbort_=!0,this.JSC$9787_xhr_.abort(),this.inAbort_=!1),slg(this,!0));_.eg.superClass_.disposeInternal.call(this)};
_.eg.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)Zdh(this);else this.onReadyStateChangeEntryPoint_()};
_.eg.prototype.onReadyStateChangeEntryPoint_=function(){Zdh(this)};
var Zdh=function(f){if(f.JSC$9787_active_&&typeof DZ3!="undefined")if(f.inSend_&&_.Lh(f)==4)setTimeout(f.onReadyStateChange_.bind(f),0);else if(f.dispatchEvent("readystatechange"),f.isComplete()){f.JSC$9787_active_=!1;try{if(f.isSuccess())f.dispatchEvent("complete"),f.dispatchEvent("success");else{f.JSC$9787_lastErrorCode_=6;try{var H=_.Lh(f)>2?f.JSC$9787_xhr_.statusText:""}catch(v){H=""}f.JSC$9787_lastError_=H+" ["+f.getStatus()+"]";jlr(f)}}finally{slg(f)}}},slg=function(f,H){if(f.JSC$9787_xhr_){f.JSC$9787_timeoutId_&&
(clearTimeout(f.JSC$9787_timeoutId_),f.JSC$9787_timeoutId_=null);
var v=f.JSC$9787_xhr_;f.JSC$9787_xhr_=null;H||f.dispatchEvent("ready");try{v.onreadystatechange=null}catch(t){}}};
_.eg.prototype.isActive=function(){return!!this.JSC$9787_xhr_};
_.eg.prototype.isComplete=function(){return _.Lh(this)==4};
_.eg.prototype.isSuccess=function(){var f=this.getStatus(),H;if(!(H=$dg(f))){if(f=f===0)f=UxM(String(this.JSC$9787_lastUri_)),f=!gOn.test(f);H=f}return H};
_.Lh=function(f){return f.JSC$9787_xhr_?f.JSC$9787_xhr_.readyState:0};
_.R=_.eg.prototype;_.R.getStatus=function(){try{return _.Lh(this)>2?this.JSC$9787_xhr_.status:-1}catch(f){return-1}};
_.R.getResponseText=function(){try{return this.JSC$9787_xhr_?this.JSC$9787_xhr_.responseText:""}catch(f){return""}};
_.R.getResponse=function(){try{if(!this.JSC$9787_xhr_)return null;if("response"in this.JSC$9787_xhr_)return this.JSC$9787_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9787_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9787_xhr_)return this.JSC$9787_xhr_.mozResponseArrayBuffer}return null}catch(f){return null}};
_.R.getAllResponseHeaders=function(){return this.JSC$9787_xhr_&&_.Lh(this)>=2?this.JSC$9787_xhr_.getAllResponseHeaders()||"":""};
_.R.getLastError=function(){return typeof this.JSC$9787_lastError_==="string"?this.JSC$9787_lastError_:String(this.JSC$9787_lastError_)};var w6g=function(){};
w6g.prototype.send=function(f,H,v){H=H===void 0?function(){}:H;
v=v===void 0?function(){}:v;
ORE(f.url,function(t){t=t.target;t.isSuccess()?H(t.getResponseText()):v(t.getStatus())},f.requestType,f.body,f.requestHeaders,f.timeoutMillis,f.withCredentials)};
w6g.prototype.getTransmissionType=function(){return 1};var JTC=function(f,H){this.kH6=f;this.event=H;this.startTime=ZP()},M$R;
JTC.prototype.done=function(){this.kH6.mw(this.event,ZP()-this.startTime)};
var xR=function(){qt.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.e(xR,qt);_.BU=function(f,H,v){var t=ZP();H=H();f.mw(v,ZP()-t);return H};
M$R=function(){xR.apply(this,arguments)};
_.e(M$R,xR);_.R=M$R.prototype;_.R.vtb=function(){};
_.R.tE=function(){};
_.R.mw=function(){};
_.R.logError=function(){};
_.R.lO=function(){};
_.R.fzb=function(){};
_.R.nqW=function(){};
_.R.xbt=function(){};
var lRn=function(f){xR.call(this);var H=this;this.xr=f;this.TEST_ONLY={m09:function(){return H.xr},
getExperimentIds:function(){return H.xr.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void H.xr.dispose()})};
_.e(lRn,xR);_.R=lRn.prototype;_.R.update=function(f){this.xr.dispose();this.xr=f};
_.R.tE=function(f){this.xr.tE(f)};
_.R.mw=function(f,H){this.xr.mw(f,H)};
_.R.logError=function(f){this.xr.logError(f)};
_.R.lO=function(){this.xr.lO()};
_.R.fzb=function(f){this.xr.fzb(f)};
_.R.nqW=function(f){this.xr.nqW(f)};
_.R.xbt=function(f){this.xr.xbt(f)};
_.R.vtb=function(f){this.xr.vtb(f)};
var Udn=function(f,H){_.zO.call(this);var v=this;this.callback=f;this.ie3=H;this.h7y=-H;this.addOnDisposeCallback(function(){return void clearTimeout(v.timer)})};
_.e(Udn,_.zO);var egh=function(f){if(f.timer===void 0){var H=Math.max(0,f.h7y+f.ie3-ZP());f.timer=setTimeout(function(){try{f.callback()}finally{f.h7y=ZP(),f.timer=void 0}},H)}},LSh=function(f,H){xR.call(this);
this.metrics=f;this.ia=H};
_.e(LSh,xR);_.R=LSh.prototype;_.R.vtb=function(f){this.metrics.q6W.record(f,this.ia)};
_.R.tE=function(f){this.metrics.eventCount.increment(f,this.ia)};
_.R.mw=function(f,H){this.metrics.wqt.record(H,f,this.ia)};
_.R.logError=function(f){this.metrics.errorCount.increment(f,this.ia)};
_.R.fzb=function(f){this.metrics.vin.increment(f,this.ia)};
_.R.nqW=function(f){this.metrics.dXA.increment(f,this.ia)};
_.R.xbt=function(f){this.metrics.fXH.increment(f,this.ia)};
var hvB=function(f,H){H=H===void 0?[]:H;var v={ia:f.ia||"_",np1:f.np1||[],vFc:f.vFc|0,destinationUrl:f.destinationUrl,oC1:f.oC1||function(){},
oHN:f.oHN||function(h,y){return t$b(h,y,v.oC1,v.destinationUrl)}},t=v.oHN("51",v.np1.concat(H));
LSh.call(this,{q6W:new VVa(t),errorCount:new $Ar(t),eventCount:new Y4n(t),wqt:new mA_(t),aV9:new yDr(t),vin:new WLh(t),dXA:new Oon(t),fXH:new gUh(t)},v.ia);var M=this;this.TEST_ONLY={getExperimentIds:function(){return M.options.np1.concat(M.wcI).sort(function(h,y){return h-y})}};
this.options=v;this.service=t;this.aCu=!f.oHN;this.flushDebouncer=new Udn(function(){return void M.service.snapshotAndFlush()},v.vFc);
this.addOnDisposeCallback(function(){M.flushDebouncer.dispose();M.aCu&&M.service.dispose()});
(this.wcI=H.slice()).sort(_.Ur5)};
_.e(hvB,LSh);hvB.prototype.lO=function(){egh(this.flushDebouncer)};var nqT=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(nqT,_.mL);_.pE3=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(_.pE3,_.mL);var Ps=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f,0,Ps.messageId)};
_.e(Ps,_.mL);var xda=_.oUR(Ps);Ps.messageId="bfkj";var rrR=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(rrR,_.mL);var Bra=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(Bra,_.mL);var zgg=_.lD(Bra);_.dZ=function(){var f=this;this.promise=new Promise(function(H,v){f.resolve=H;f.reject=v})};_.zU=function(f){_.zO.call(this);var H=this;this.i1q=Math.floor(Math.random()*200);this.lk1=new Bra;if("challenge"in f&&xda(f.challenge)){var v=_.L8(f.challenge,4,void 0,uC);var t=_.L8(f.challenge,5,void 0,uC);_.L8(f.challenge,7,void 0,uC)&&(this.lk1=zgg(_.L8(f.challenge,7,void 0,uC)))}else v=f.program,t=f.globalName;this.addOnDisposeCallback(function(){var L,r,n;return _.Y(function(Q){if(Q.nextAddress==1)return Q.yield(H.xhj,2);L=Q.yieldResult;r=L.zHk;(n=r)==null||n();_.Bj(Q)})});
this.kl=RvR(f.uA0||{},this.lk1);_.jz(this,this.kl);var M=new _.dZ;this.xhj=M.promise;this.kl.tE("t");var h=this.kl.share(),y=new JTC(h,"t"),m=function(L,r,n,Q){if(!H.kl.isDisposed()){var C="k";r?C="h":n&&(C="u");C!=="k"?Q!==0&&(H.kl.tE(C),H.kl.mw(C,L)):H.i1q<=0?(H.kl.tE(C),H.kl.mw(C,L),H.i1q=Math.floor(Math.random()*200)):H.i1q--}},W=function(L,r,n,Q){Promise.resolve().then(function(){y.done();
h.lO();h.dispose();M.resolve({utI:L,zHk:r,x9T:n,wvW:Q})})};
if(!_.Mr[t])throw this.kl.logError(25),Error("Ca");if(!_.Mr[t].a)throw this.kl.logError(26),Error("Da");try{var I=_.Mr[t].a;t=[];for(var S=[],d=KZ5(this.lk1),Z=0;Z<d.length;Z++)t.push(d[Z]),S.push(1);var l=DwE(this.lk1);for(d=0;d<l.length;d++)t.push(l[d]),S.push(2);this.oDJ=_.V(I(v,W,!0,f.y36,m,[t,S],_.L8(this.lk1,5))).next().value;this.vHj=M.promise.then(function(){})}catch(L){throw this.kl.logError(28),L;
}};
_.e(_.zU,_.zO);_.zU.prototype.snapshot=function(f){if(this.isDisposed())throw Error("Ea");this.kl.tE("n");var H=this.kl.share();return this.xhj.then(function(v){var t=v.utI;return new Promise(function(M){var h=new JTC(H,"n");t(function(y){h.done();H.vtb(y.length);H.lO();H.dispose();M(y)},[f.yQ,
f.jUt,f.eHW,f.kse])})})};
_.zU.prototype.k5N=function(f){this.xhj.then(function(H){var v;(v=H.x9T)==null||v(f)})};
_.zU.prototype.o7A=function(f,H){return this.xhj.then(function(v){var t;return(t=v.wvW)==null?void 0:t(f,H,!1)})};
_.zU.prototype.rPA=function(){return this.kl.share()};var FSg=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(FSg,_.mL);var b1b=_.oUR(FSg);var rTM=function(){this.promises={};this.afo=null},KSh=function(){rTM.instance||(rTM.instance=new rTM);
return rTM.instance},oOC=function(f,H){return Dd_(f,_.V$(H,nqT,1,uC),_.V$(H,_.pE3,2,uC),_.L8(H,3,void 0,uC))},Dd_=function(f,H,v,t){if(!H&&!v)return Promise.resolve();
if(!t)return $JN(H,v);var M;(M=f.promises)[t]||(M[t]=new Promise(function(h,y){$JN(H,v).then(function(){f.afo=t;h()},function(m){delete f.promises[t];
y(m)})}));
return f.promises[t]};var nOZ=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(nOZ,_.mL);var pQM=function(f,H){return _.G7(f,1,H)},Qlb=function(f,H){return _.G7(f,2,H)};var FJ=function(f){_.zO.call(this);var H=this;this.options=f;this.sj5=new _.dZ;this.vHj=this.sj5.promise;this.em5=new _.dZ;this.rVe=1;this.z0i=new _.dZ;this.sOW=[];this.j81=f.j81||function(){};
this.nzj=new lRn(RvR(f.uA0||{}));uUT(this,f.kp,f.oVI,f.ryD,f.b6a,Object.assign({},aR_,f.w45||{}));this.addOnDisposeCallback(function(){return void PhM(H)})};
_.e(FJ,_.zO);FJ.prototype.snapshot=function(f){var H=this;return _.Y(function(v){switch(v.nextAddress){case 1:if(H.isDisposed())throw Error("Ea");if(H.yV||H.tcq){v.jumpTo(2);break}return v.yield(H.em5.promise,2);case 2:if(!H.yV){v.jumpTo(4);break}return v.yield(H.yV.snapshot(f),5);case 5:return v.return(v.yieldResult);case 4:throw H.tcq;}})};
var Gfv=function(f){var H;return _.Y(function(v){if(f.isDisposed())throw Error("Ea");(H=f.bj)!=null&&(H.endTimeMs=0,H.resolver(1));return v.yield(f.z0i.promise,0)})},PhM=function(f){f.tcq=Error("Ga");
f.em5.resolve();okv(f.sj5.promise);f.sj5.reject(Error("Ga"));f.nzj.dispose();Promise.all(f.sOW).then(function(){var v;return _.Y(function(t){(v=f.yV)==null||v.dispose();f.yV=void 0;_.Bj(t)})});
f.sOW=[];var H;(H=f.bj)!=null&&(H.endTimeMs=0,H.resolver(1));okv(f.z0i.promise);f.z0i.reject(Error("Ga"))};
FJ.prototype.k5N=function(f){var H,v;(H=this.yV)==null||(v=H.k5N)==null||v.call(H,f)};
FJ.prototype.o7A=function(f,H){var v,t,M;return(M=(v=this.yV)==null?void 0:(t=v.o7A)==null?void 0:t.call(v,f,H))!=null?M:Promise.resolve()};
var Chh=function(f,H){var v=f.j81;f.j81=function(){v();H()}},EOa=function(f,H){f.isDisposed()||(f.yV=H,f.nzj.update(H.rPA()),f.em5.resolve(),f.sj5.resolve(void 0),f.j81())};
FJ.prototype.handleError=function(f){if(!this.isDisposed()){this.tcq=f;this.em5.resolve();var H,v;(v=(H=this.options).jdW)==null||v.call(H,f)}};
var Nra=function(f,H){H&&(Promise.all(f.sOW).then(function(){return void H.dispose()}),f.sOW=[])},rm=function(f,H){f.rVe=H;
var v,t;(t=(v=f.options).tK9)==null||t.call(v,H)},cTg=function(f){f.isDisposed()||(f.z0i.resolve(),f.z0i=new _.dZ)},uUT=function(f,H,v,t,M,h){t=t===void 0?KSh():t;
M=M===void 0?Promise.resolve(void 0):M;var y,m,W,I,S,d,Z,l,L,r,n,Q;_.Y(function(C){switch(C.nextAddress){case 1:return C.yield(0,3);case 3:m=null;if(!y){C.jumpTo(6);break}rm(f,7);_.Zc(C,7);return C.yield(L9(y.snapshot({}),h.qcw,function(){return Promise.resolve("E:CTO")}),9);
case 9:m=C.yieldResult;_.ch(C,6);break;case 7:_.xu(C),m="E:UCE";case 6:W=void 0,I=y?h.q57:h.tVA,S=new IN(I,h.awl,h.pq1,h.bM6),d=1;case 10:if(!(d<=h.maxAttempts)){C.jumpTo(12);break}if(d===1){C.jumpTo(13);break}rm(f,0);f.bj=new XQC(S.getValue(),h.rM7,h.moI);return C.yield(f.bj.promise,14);case 14:Z=C.yieldResult,f.bj=void 0,Z===1?(d=1,S.reset()):tan(S);case 13:_.Zc(C,15);l=void 0;if(v){l=v;C.jumpTo(17);break}rm(f,5);L=t.afo;return C.yield(L9(ATo(H,L,m),h.py1,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:l=C.yieldResult;case 17:return rm(f,3),C.yield(L9(oOC(t,l),h.ei1,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return rm(f,8),C.yield(M,20);case 20:return r=new _.zU({challenge:l,uA0:f.options.uA0,y36:f.options.y36}),C.yield(L9(r.vHj,h.uUk,function(){return Promise.reject(Error("Ja"))}),21);
case 21:W=r;C.jumpTo(12);break;case 15:n=_.xu(C),f.handleError(n),cTg(f);case 11:d++;C.jumpTo(10);break;case 12:if(f.isDisposed()){C.jumpTo(5);break}W&&(v=void 0,Nra(f,y),y=W,EOa(f,W),cTg(f));rm(f,2);f.bj=new XQC(h.nED,h.rM7,h.moI);return C.yield(f.bj.promise,22);case 22:f.bj=void 0;if(f.isDisposed()){C.jumpTo(5);break}C.jumpTo(3);break;case 5:(Q=y)==null||Q.dispose(),_.Bj(C)}})};
FJ.prototype.rPA=function(){return this.nzj.share()};
var aR_={nED:432E5,rM7:3E5,moI:10,qcw:1E4,py1:3E4,ei1:3E4,uUk:6E4,tVA:1E3,q57:6E4,awl:6E5,pq1:.25,bM6:2,maxAttempts:10},XQC=function(f,H,v){var t=this;this.endTimeMs=Date.now()+f;this.promise=new Promise(function(h){t.resolver=h});
var M=function(){var h=t.endTimeMs-Date.now();h<=v?t.resolver(0):setTimeout(M,Math.min(h,H))};
M()};var bdM,KpN=(bdM=Math.imul)!=null?bdM:function(f,H){return f*H|0},xl=[196,
200,224,18],Kh=function(f,H,v){v=v===void 0?[]:v;this.maxItems=f;this.gx=H===void 0?0:H;this.sO=v},idr=function(f){var H=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!H)return new Kh(f);var v=H.split(",");if(v.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Kh(f);H=v.slice(1);H.length===1&&H[0]===""&&(H=[]);v=Number(v[0]);return isNaN(v)||v<0||v>H.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Kh(f)):new Kh(f,v,H)};
Kh.prototype.serialize=function(){return String(this.gx)+","+this.sO.join()};
Kh.prototype.insert=function(f,H){var v=void 0;if(this.sO[this.gx]!==f){var t=this.sO.indexOf(f);t!==-1?(this.sO.splice(t,1),t<this.gx&&this.gx--,this.sO.splice(this.gx,0,f)):(v=this.sO[this.gx],this.sO[this.gx]=f)}this.gx=(this.gx+1)%this.maxItems;f=WpH("iU5q-!O9@$",this.serialize());v&&f&&H(v);return f};
var kfb=function(f,H){this.pzA=H;try{var v=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(t){v=!1}v&&(this.index=idr(f))},Trb=function(f,H,v,t,M){var h=f.index?_.BU(f.pzA,function(){return phg(f.index,oZe(H),v,t,M)},"W"):"u";
f.pzA.xbt(h)},wQh=function(f,H,v){var t=_.V(f.index?_.BU(f.pzA,function(){return Q2N(oZe(H),v)},"R"):["u"]),M=t.next().value;
t=t.next().value;f.pzA.nqW(M);return t};var qZr={toString:function(f){var H=[],v=0;f-=-2147483648;H[v++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(f%52);for(f=Math.floor(f/52);f>0;)H[v++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(f%62),f=Math.floor(f/62);return H.join("")}};var vlh=function(f){f=fPZ(f);for(var H=2654435769,v=2654435769,t=314159265,M=f.length,h=M,y=0,m=function(){H-=v;H-=t;H^=t>>>13;v-=t;v-=H;v^=H<<8;t-=H;t-=v;t^=v>>>13;H-=v;H-=t;H^=t>>>12;v-=t;v-=H;v^=H<<16;t-=H;t-=v;t^=v>>>5;H-=v;H-=t;H^=t>>>3;v-=t;v-=H;v^=H<<10;t-=H;t-=v;t^=v>>>15};h>=12;h-=12,y+=12)H+=H9n(f,y),v+=H9n(f,y+4),t+=H9n(f,y+8),m();
t+=M;switch(h){case 11:t+=f[y+10]<<24;case 10:t+=f[y+9]<<16;case 9:t+=f[y+8]<<8;case 8:v+=f[y+7]<<24;case 7:v+=f[y+6]<<16;case 6:v+=f[y+5]<<8;case 5:v+=f[y+4];case 4:H+=f[y+3]<<24;case 3:H+=f[y+2]<<16;case 2:H+=f[y+1]<<8;case 1:H+=f[y]}m();return qZr.toString(t)},fPZ=function(f){for(var H=[],v=0;v<f.length;v++)H.push(f.charCodeAt(v));
return H},H9n=function(f,H){return f[H]+(f[H+1]<<8)+(f[H+2]<<16)+(f[H+3]<<24)};var De=function(f){_.zO.call(this);this.fZ=f;this.eZo=new _.dZ};
_.e(De,_.zO);var tzr=function(f,H){var v=setTimeout(function(){f.eZo.resolve()},H);
f.addOnDisposeCallback(function(){return void clearTimeout(v)})};
De.prototype.lvx=function(f,H){var v=this.mr(f);H==null||H(v);return _.BU(this.fZ,function(){return _.QG(v,2)},this.g4t)};
var Mz9=function(f,H,v,t){return _.BU(f.fZ,function(){return v?f.lvx(H,t):f.mr(H,t)},f.de9)},hdh=function(f,H,v,t){De.call(this,f);
this.yJl=H;this.lVD=v;this.de9="m";this.g4t="x";this.uKF=0;tzr(this,t)};
_.e(hdh,De);hdh.prototype.mr=function(f,H){var v=this;this.fZ.tE(this.de9);++this.uKF>=this.lVD&&this.eZo.resolve();var t=f();f=_.BU(this.fZ,function(){return v.yJl(t)},"C");
if(f===void 0)throw new T_(17,"YNJ:Undefined");if(!(f instanceof Uint8Array))throw new T_(18,"ODM:Invalid");H==null||H(f);return f};
var RdH=function(f,H,v){De.call(this,f);this.q0Z=H;this.de9="f";this.g4t="z";tzr(this,v)};
_.e(RdH,De);RdH.prototype.mr=function(){return this.q0Z};
var Vz_=function(f,H,v){De.call(this,f);this.g0W=H;this.de9="w";this.g4t="z";tzr(this,v)};
_.e(Vz_,De);Vz_.prototype.mr=function(){var f=this;return _.BU(this.fZ,function(){return _.yM(f.g0W)},"d")};
Vz_.prototype.lvx=function(){return this.g0W};
var yxa=function(f,H){De.call(this,f);this.error=H;this.de9="e";this.g4t="y"};
_.e(yxa,De);var Y1v=function(f,H){var v=(H(f.error.message)+":"+H(f.error.stack)).substring(0,2048);H=v.length+1;v=umg(v);var t=new Uint8Array(4+v.length);t.set([42,H&127|128,H>>7,f.error.code]);t.set(v,4);return t};
yxa.prototype.mr=function(){if(this.rne)return this.rne;this.rne=Y1v(this,function(f){return"_"+vlh(f)});
return Y1v(this,function(f){return f})};
var mjr=function(f,H,v){De.call(this,f);this.m7I=H;this.clientState=v;this.de9="S";this.g4t="q"};
_.e(mjr,De);mjr.prototype.mr=function(){var f=Math.floor(Date.now()/1E3),H=[Math.random()*255,Math.random()*255],v=H.concat([this.m7I&255,this.clientState],[f>>24&255,f>>16&255,f>>8&255,f&255]);f=new Uint8Array(2+v.length);f[0]=34;f[1]=v.length;f.set(v,2);v=f.subarray(2);for(var t=H=H.length;t<v.length;++t)v[t]^=v[t%H];this.fZ.fzb(this.clientState);return f};var $jo={g8w:3E4,t8I:2E4},oS=function(f){_.zO.call(this);var H=this;this.wWt=new _.dZ;this.tte=0;this.z6=void 0;this.state=2;this.vm=f.vm;this.kp=f.kp;this.w45=Object.assign({},$jo,f.w45||{});this.e3=f.vm.rPA();var v;this.onError=(v=f.onError)!=null?v:function(){};
this.gbT=f.gbT||!1;if(Wvh(f)){var t=this.vm;this.j5e=function(){return Gfv(t).catch(function(y){y=H.reportError(new T_(H.fL?20:32,"TRG:Disposed",y));H.z6=y;var m;(m=H.fL)==null||m.dispose();H.fL=void 0;H.wWt.reject(y)})};
Chh(t,function(){return void O9M(H)});
t.rVe===2&&O9M(this)}else this.j5e=f.nO9,O9M(this);var M=this.e3.share();M.tE("o");var h=new JTC(M,"o");this.wWt.promise.then(function(){h.done();M.lO();M.dispose()},function(){return void M.dispose()});
this.addOnDisposeCallback(function(){H.fL?(H.fL.dispose(),H.fL=void 0):H.z6?H.e3.lO():(H.z6=H.reportError(new T_(32,"TNP:Disposed")),H.e3.lO(),H.wWt.reject(H.z6))});
_.jz(this,this.e3)};
_.e(oS,_.zO);oS.prototype.bxt=function(){return this.wWt.promise};
var gla=function(f,H){if(!(H instanceof T_))if(H instanceof _.lz){var v=Error(H.toString());v.stack=H.stack;H=new T_(11,"EBH:Error",v)}else H=new T_(12,"BSO:Unknown",H);return f.reportError(H)},O9M=function(f){var H,v,t,M,h,y,m,W,I,S,d,Z,l,L,r;
return _.Y(function(n){switch(n.nextAddress){case 1:H=void 0;f.tte++;v=new _.dZ;f.vm instanceof FJ&&f.vm.sOW.push(v.promise);if(!f.gbT){n.jumpTo(2);break}t=new _.dZ;setTimeout(function(){return void t.resolve()});
return n.yield(t.promise,2);case 2:return M=f.e3.share(),_.Zc(n,4,5),f.state=5,h={},y=[],n.yield(L9(f.vm.snapshot({yQ:h,eHW:y}),f.w45.t8I,function(){return Promise.reject(new T_(15,"MDA:Timeout"))}),7);
case 7:m=n.yieldResult;if(f.isDisposed())throw new T_(f.fL?20:32,"MDA:Disposed");W=y[0];f.state=6;return n.yield(L9(IPg(f.kp,m),f.w45.g8w,function(){return Promise.reject(new T_(10,"BWB:Timeout"))}),8);
case 8:I=n.yieldResult;if(f.isDisposed())throw new T_(f.fL?20:32,"BWB:Disposed");f.state=7;H=_.BU(M,function(){var C=S1Z(f,I,v,W);C.eZo.promise.then(function(){return void f.j5e()});
return C},"i");
case 5:_.lk(n);M.dispose();_.ea(n,6);break;case 4:S=_.xu(n);(d=H)==null||d.dispose();if(!f.z6){Z=gla(f,S);v.resolve();var Q;if(Q=f.vm instanceof FJ&&f.tte<2)a:if(S instanceof T_)Q=S.code!==32&&S.code!==20&&S.code!==10;else{if(S instanceof _.lz)switch(S.code){case 2:case 13:case 14:case 4:break;default:Q=!1;break a}Q=!0}if(Q)return l=(1+Math.random()*.25)*(f.fL?6E4:1E3),L=setTimeout(function(){return void f.j5e()},l),f.addOnDisposeCallback(function(){return void clearTimeout(L)}),n.return();
f.z6=Z}M.logError(f.fL?13:14);f.wWt.reject(f.z6);return n.return();case 6:f.state=8,f.tte=0,(r=f.fL)==null||r.dispose(),f.fL=H,f.wWt.resolve(),_.Bj(n)}})},S1Z=function(f,H,v,t){var M=fTg(H,2)*1E3;
if(M<=0)throw new T_(31,"TTM:Invalid");if(_.L8(H,4))return new Vz_(f.e3,_.L8(H,4),M);if(!fTg(H,3))return new RdH(f.e3,QJ5(_.Ss(H,1)),M);if(!t)throw new T_(4,"PMD:Undefined");t=t(QJ5(_.Ss(H,1)));if(!(t instanceof Function))throw new T_(16,"APF:Failed");f.aYt=Math.floor((Date.now()+M)/1E3);f=new hdh(f.e3,t,fTg(H,3),M);f.addOnDisposeCallback(function(){return void v.resolve()});
return f};
oS.prototype.mr=function(f){return djh(this,Object.assign({},f),!1)};
oS.prototype.lvx=function(f){return djh(this,Object.assign({},f),!0)};
oS.prototype.cgk=function(f){if(f>150)return!1;try{return this.cache=new kfb(f,this.e3),!0}catch(H){return this.reportError(new T_(22,"GBJ:init",H)),!1}};
oS.prototype.reportError=function(f){this.e3.logError(f.code);this.onError(f);return f};
var jNM=function(f,H){H=H instanceof T_?H:new T_(5,"TVD:error",H);return f.reportError(H)},djh=function(f,H,v){try{if(f.isDisposed())throw new T_(21,"BNT:disposed");
if(!f.fL&&f.z6)throw f.z6;var t,M;return(M=(t=sNo(f,H,v))!=null?t:Z9_(f,H,v))!=null?M:JxH(f,H,v)}catch(h){if(!H.rMv)throw jNM(f,h);return lPn(f,v,h)}},sNo=function(f,H,v){var t;
return(t=f.fL)==null?void 0:Mz9(t,function(){return Ujb(f,H)},v,function(M){var h;
if(f.fL instanceof hdh&&((h=H.qb)==null?0:h.vFA))try{var y;(y=f.cache)==null||Trb(y,Ujb(f,H),M,H.qb.oct,f.aYt-120)}catch(m){f.reportError(new T_(24,"ELX:write",m))}})},Z9_=function(f,H,v){var t;
if((t=H.qb)!=null&&t.tfe)try{var M,h=(M=f.cache)==null?void 0:wQh(M,Ujb(f,H),H.qb.oct);return h?v?_.BU(f.e3,function(){return _.QG(h,2)},"a"):h:void 0}catch(y){f.reportError(new T_(23,"RXO:read",y))}},JxH=function(f,H,v){var t={stack:[],
error:void 0,hasError:!1};try{if(!H.glk)throw new T_(29,"SDF:notready");return Mz9(aaH(t,new mjr(f.e3,0,f.state)),function(){return Ujb(f,H)},v)}catch(M){t.error=M,t.hasError=!0}finally{PjE(t)}},lPn=function(f,H,v){var t={stack:[],
error:void 0,hasError:!1};try{var M=jNM(f,v);return Mz9(aaH(t,new yxa(f.e3,M)),function(){return[]},H)}catch(h){t.error=h,t.hasError=!0}finally{PjE(t)}},Ujb=function(f,H){return H.sP1?H.sP1:H.yQ?_.BU(f.e3,function(){return H.sP1=umg(H.yQ)},"c"):[]},Wvh=function(f){return Po(function(H){if(!Rh(H))return!1;
for(var v=_.V(Object.entries(f)),t=v.next();!t.done;t=v.next()){var M=_.V(t.value);t=M.next().value;M=M.next().value;if(!(t in H)){if(M.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!M(H[t]))return!1}return!0})}({vm:function(f){return Po(function(H){return H instanceof f})}(FJ)},"");var ed_=function(){var f=_.WS();this.JSC$9905_streamzService=f;f.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",mv("cookie_enabled"),mv("cookie_3p_enabled"),_.W_("browser"))};
ed_.prototype.increment=function(f,H,v){this.JSC$9905_streamzService.JSC$9778_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",f,H,v)};
var BqB=function(){var f=_.WS();this.JSC$9929_streamzService=f;f.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",$l("tick"),mv("from_st_cookie"))};
BqB.prototype.increment=function(f,H){this.JSC$9929_streamzService.JSC$9778_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",f,H)};
var LvZ=function(){var f=_.WS();this.JSC$9935_streamzService=f;f.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.W_("status"))};
LvZ.prototype.increment=function(f){this.JSC$9935_streamzService.JSC$9778_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",f)};
var xjM=function(){var f=_.WS();this.JSC$9938_streamzService=f;f.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.W_("stage"),mv("is_using_ytd_player"),mv("has_expandable_tiles"))};
xjM.prototype.increment=function(f,H,v){this.JSC$9938_streamzService.JSC$9778_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",f,H,v)};
var BAv=function(){var f=_.WS();this.JSC$9941_streamzService=f;f.addNewCounter("/client_streamz/youtube/web/response_signature",_.W_("check_status"))};
BAv.prototype.increment=function(f){this.JSC$9941_streamzService.JSC$9778_incrementCounter("/client_streamz/youtube/web/response_signature",f)};
var zdv=function(){var f=_.WS();this.JSC$9944_streamzService=f;f.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.W_("sig"),$l("de"))};
zdv.prototype.increment=function(f,H){this.JSC$9944_streamzService.JSC$9778_incrementCounter("/client_streamz/youtube/web/e_sig_log",f,H)};
var FvC=function(){var f=_.WS();this.JSC$9947_streamzService=f;f.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.W_("sig"),$l("de"))};
FvC.prototype.increment=function(f,H){this.JSC$9947_streamzService.JSC$9778_incrementCounter("/client_streamz/youtube/web/e_sig_en",f,H)};
_.rxg=function(){var f=_.WS();this.JSC$9950_streamzService=f;f.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.W_("action"))};
_.rxg.prototype.increment=function(f){this.JSC$9950_streamzService.JSC$9778_incrementCounter("/client_streamz/youtube/web/enforcement_intent",f)};var nh=window;var KvC=(new Date).getTime();_.QA.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.QA.createSet("action","cite","data","formaction","href","manifest","poster","src");var Djg=function(f){this.servicePromise_=f;f.then((0,_.FH)(function(){},this),function(){},this)},olb=function(f,H,v){f.servicePromise_.then(function(t){var M=t[H];
if(!M)throw Error("Ka`"+H);return M.apply(t,v)})},QNn=function(f,H,v){for(var t=Array(arguments.length-2),M=2;M<arguments.length;M++)t[M-2]=arguments[M];
M=nlh(f,H).then(function(h){return h.apply(null,t)},function(h){h=Error("La`"+H+"`"+f,{cause:h});
delete p_h[H];return _.DI(h)});
return new Djg(M)},p_h={},nlh=function(f,H){var v=p_h[H];
if(v)return v;v=(v=_.ES(H))?_.gj(v):(new _.IO(function(t,M){var h=(new s$(document)).createElement("SCRIPT");h.async=!0;_.tf(h,_.FM(F_v(f)));h.onload=h.onreadystatechange=function(){h.readyState&&h.readyState!="loaded"&&h.readyState!="complete"||t()};
h.onerror=function(y){M(Error("Ma`"+H+"`"+f,{cause:y}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(h)})).then(function(){var t=_.ES(H);
if(!t)throw Error("Na`"+H+"`"+f);return t});
return p_h[H]=v};var uHZ={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},PSg=function(){var f=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=ayR(function(){return _.Y(function(H){if(H.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?H.return(Promise.resolve()):H.yield(aP9(f),2);f.rsaForList.length>
0&&document.addEventListener("click",f.requestAccessForHelpPanel);_.Bj(H)})});
this.requestAccessForHelpPanel=function(){if(!(f.rsaForPromises.length>0)){for(var H=_.V(f.rsaForList),v=H.next();!v.done;v=H.next()){v=v.value;try{f.rsaForPromises.push(document.requestStorageAccessFor(v))}catch(t){}}Promise.all(f.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){f.reset()})}}};
PSg.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var aP9=function(f){var H,v,t,M;return _.Y(function(h){switch(h.nextAddress){case 1:H=_.V(Object.values(uHZ)),v=H.next();case 2:if(v.done){h.jumpTo(0);break}t=v.value;_.Zc(h,5);return h.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:t}),7);case 7:M=h.yieldResult;M.state!=="granted"&&f.rsaForList.push(t);_.ch(h,3);break;case 5:_.xu(h);h.jumpTo(0);break;case 3:v=H.next(),h.jumpTo(2)}})};(new PSg).initialize();var GOH=function(f){this.JSC$9964_loader_=f};
GOH.prototype.startHelp=function(f){olb(this.JSC$9964_loader_,"startHelp",arguments)};
GOH.prototype.JSC$9966_loadChatSupport=function(f){olb(this.JSC$9964_loader_,"loadChatSupport",arguments)};
var El9=function(f,H){H=H||{};f=QNn(CSM,"help.service.Lazy.create",f,{apiKey:H.apiKey||H.apiKey,asxUiUri:H.asxUiUri||H.asxUiUri,environment:H.environment||H.environment,flow:H.flow||H.flow,frdProductData:H.frdProductData||H.frdProductData,frdProductDataSerializedJspb:H.frdProductDataSerializedJspb||H.frdProductDataSerializedJspb,helpCenterPath:H.helpCenterPath||H.helpCenterPath,locale:H.locale||H.locale||"en-US".replace(/-/g,"_"),nonce:H.nonce||H.nonce,productData:H.productData||H.productData,receiverUri:H.receiverUri||
H.receiverUri,renderApiUri:H.renderApiUri||H.renderApiUri,theme:H.theme||H.theme,window:H.window||H.window});return new GOH(f)},CSM=new aO(ZTE,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var NAg=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(NAg,_.mL);var cxZ=_.lD(NAg);_.X__=new function(f,H,v,t){this.configType=f;this.flagName=v;this.defaultValue=t;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 b9g=function(){this.retriever=_.t8().resolve(Axv)};GEv(Node);GEv(Element);var i9C=GEv(HTMLElement);GEv(SVGElement);var kOT,TAh,uz,w_Z;kOT=function(f){return typeof f.className=="string"?f.className:f.getAttribute&&f.getAttribute("class")||""};
TAh=function(f){return f.classList?f.classList:kOT(f).match(/\S+/g)||[]};
_.ph=function(f,H){typeof f.className=="string"?f.className=H:f.setAttribute&&f.setAttribute("class",H)};
_.Qu=function(f,H){return f.classList?f.classList.contains(H):_.cR(TAh(f),H)};
_.vn=function(f,H){if(f.classList)f.classList.add(H);else if(!_.Qu(f,H)){var v=kOT(f);_.ph(f,v+(v.length>0?" "+H:H))}};
uz=function(f,H){if(f.classList)Array.prototype.forEach.call(H,function(M){_.vn(f,M)});
else{var v={};Array.prototype.forEach.call(TAh(f),function(M){v[M]=!0});
Array.prototype.forEach.call(H,function(M){v[M]=!0});
H="";for(var t in v)H+=H.length>0?" "+t:t;_.ph(f,H)}};
_.fV=function(f,H){f.classList?f.classList.remove(H):_.Qu(f,H)&&_.ph(f,Array.prototype.filter.call(TAh(f),function(v){return v!=H}).join(" "))};
w_Z=function(f,H){f.classList?Array.prototype.forEach.call(H,function(v){_.fV(f,v)}):_.ph(f,Array.prototype.filter.call(TAh(f),function(v){return!_.cR(H,v)}).join(" "))};var q1v=function(f){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=f.document},vm9=function(f,H){fto(f);
var v=document.createElement("div"),t;(t=H.parentNode)==null||t.insertBefore(v,H);v.tabIndex=0;v.id="fc-focus-trap-pre-div";v=document.createElement("div");var M;(M=H.parentNode)==null||M.insertBefore(v,H.nextSibling);v.tabIndex=0;v.id="fc-focus-trap-post-div";var h=H4r(f,H),y=H4r(f,H,!0);h&&y&&(f.focusChangeHandler=function(){var m=f.document.activeElement;if(m)if(_.Nj(H,m))f.previouslyFocusedElement=m;else if(m===f.document.activeElement)switch(f.previouslyFocusedElement){case h:y.focus();f.previouslyFocusedElement=
y;break;default:h.focus(),f.previouslyFocusedElement=h}},f.document.addEventListener("focus",f.focusChangeHandler,!0),f.document.addEventListener("focusin",f.focusChangeHandler))},fto=function(f){f.focusChangeHandler&&(document.removeEventListener("focus",f.focusChangeHandler,!0),document.removeEventListener("focusin",f.focusChangeHandler),f.focusChangeHandler=null);
var H;(H=document.getElementById("fc-focus-trap-pre-div"))==null||H.remove();var v;(v=document.getElementById("fc-focus-trap-post-div"))==null||v.remove()},t7_=function(f,H,v,t,M){v=v===void 0?!0:v;
var h;M=(h=M===void 0?null:M)!=null?h:H4r(f,H,t===void 0?!1:t);M!==null&&(M.focus(),v&&vm9(f,H))};
q1v.prototype.disableButton=function(f,H){H=H===void 0?null:H;f.disabled=!0;H&&_.vn(f,H)};
var H4r=function(f,H,v){v=v===void 0?!1:v;if(PV5(H)&&!v)return H;var t=v?[].slice.call(H.children,0).reverse():H.children;t=_.V(t);for(var M=t.next();!M.done;M=t.next())if(M=M.value,i9C(M)&&(M=H4r(f,M,v)))return M;return PV5(H)&&v?H:null};var M7r=function(f){this.originalBodyOverflow="";this.JSC$9990_domHelper=BQ(f)};
M7r.prototype.enableScrolling=function(){this.JSC$9990_domHelper.JSC$9317_document_.body.style.overflow=this.originalBodyOverflow};_.f8(_.rA,_.zO);_.R=_.rA.prototype;_.R.JSC$9993_id_=0;_.R.disposeInternal=function(){_.rA.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$9991_listener_;delete this.handler_};
_.R.start=function(f){this.stop();this.JSC$9993_id_=Je(this.callback_,f!==void 0?f:this.JSC$9991_interval_)};
_.R.stop=function(){this.isActive()&&_.Mr.clearTimeout(this.JSC$9993_id_);this.JSC$9993_id_=0};
_.R.fire=function(){this.stop();this.JSC$9993_doAction_()};
_.R.isActive=function(){return this.JSC$9993_id_!=0};
_.R.JSC$9993_doAction_=function(){this.JSC$9993_id_=0;this.JSC$9991_listener_&&this.JSC$9991_listener_.call(this.handler_)};_.Y1=function(f){_.zO.call(this);this.handler_=f;this.JSC$9994_keys_={}};
_.f8(_.Y1,_.zO);var hih=[];_.Y1.prototype.listen=function(f,H,v,t){Array.isArray(H)||(H&&(hih[0]=H.toString()),H=hih);for(var M=0;M<H.length;M++){var h=_.r9(f,H[M],v||this.handleEvent,t||!1,this.handler_||this);if(!h)break;this.JSC$9994_keys_[h.key]=h}return this};
_.Y1.prototype.listenOnce=function(f,H,v,t){return Riv(this,f,H,v,t)};
var Riv=function(f,H,v,t,M,h){if(Array.isArray(v))for(var y=0;y<v.length;y++)Riv(f,H,v[y],t,M,h);else{H=x6(H,v,t||f.handleEvent,M,h||f.handler_||f);if(!H)return f;f.JSC$9994_keys_[H.key]=H}return f};
_.Y1.prototype.unlisten=function(f,H,v,t,M){if(Array.isArray(H))for(var h=0;h<H.length;h++)this.unlisten(f,H[h],v,t,M);else if(f=rfC(f,H,v||this.handleEvent,_.vo(t)?!!t.capture:!!t,M||this.handler_||this))BK(f),delete this.JSC$9994_keys_[f.key];return this};
_.Y1.prototype.removeAll=function(){_.QA.forEach(this.JSC$9994_keys_,function(f,H){this.JSC$9994_keys_.hasOwnProperty(H)&&BK(f)},this);
this.JSC$9994_keys_={}};
_.Y1.prototype.disposeInternal=function(){_.Y1.superClass_.disposeInternal.call(this);this.removeAll()};
_.Y1.prototype.handleEvent=function(){throw Error("Oa");};var aS=function(){_.zO.call(this);this.services_={}};
_.f8(aS,_.zO);aS.prototype.connect=function(f){f&&f()};
aS.prototype.isConnected=function(){return!0};
aS.prototype.registerService=function(f,H,v){this.services_[f]={callback:H,objectPayload:!!v}};
aS.prototype.getService=function(f,H){var v=this.services_[f];return v?v:this.defaultService_?{callback:_.l0(this.defaultService_,f),objectPayload:_.vo(H)}:null};
var V7_=function(f,H){if(H&&typeof f==="string")try{return JSON.parse(f)}catch(v){return null}else if(!H&&typeof f!=="string")return(0,_.UB)(f);return f};
aS.prototype.disposeInternal=function(){aS.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 PU=function(f,H){this.sequence_=[];this.onCancelFunction_=f;this.defaultScope_=H||null;this.hadError_=this.fired_=!1;this.result_=void 0;this.silentlyCanceled_=this.blocking_=this.blocked_=!1;this.unhandledErrorId_=0;this.parent_=null;this.branches_=0};
PU.prototype.cancel=function(f){if(this.fired_)this.result_ instanceof PU&&this.result_.cancel();else{if(this.parent_){var H=this.parent_;delete this.parent_;f?H.cancel(f):(H.branches_--,H.branches_<=0&&H.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new GU(this))}};
PU.prototype.continue_=function(f,H){this.blocked_=!1;ymT(this,f,H)};
var ymT=function(f,H,v){f.fired_=!0;f.result_=v;f.hadError_=!H;YgM(f)},$kH=function(f){if(f.fired_){if(!f.silentlyCanceled_)throw new mka(f);
f.silentlyCanceled_=!1}};
PU.prototype.callback=function(f){$kH(this);ymT(this,!0,f)};
PU.prototype.errback=function(f){$kH(this);ymT(this,!1,f)};
var W7v=function(f,H,v){Ch(f,H,null,v)};
PU.prototype.finally=function(f){var H=this;return O4n(new Promise(function(v,t){Ch(H,function(M){f();v(M)},function(M){f();
t(M)})}))};
var Ch=function(f,H,v,t){var M=f.fired_;M||(H===v?H=v=dm(H):(H=dm(H),v=dm(v)));f.sequence_.push([H,v,t]);M&&YgM(f)};
PU.prototype.then=function(f,H,v){var t,M,h=new _.IO(function(y,m){M=y;t=m});
Ch(this,M,function(y){y instanceof GU?h.cancel():t(y);return gmg},this);
return h.then(f,H,v)};
acn(PU);var ItT=function(f,H){H instanceof PU?W7v(f,(0,_.FH)(H.branch,H)):W7v(f,function(){return H})};
PU.prototype.branch=function(f){var H=new PU;Ch(this,H.callback,H.errback,H);f&&(H.parent_=this,this.branches_++);return H};
PU.prototype.isError=function(f){return f instanceof Error};
var Sgg=function(f){return i7(f.sequence_,function(H){return typeof H[1]==="function"})},gmg={},YgM=function(f){if(f.unhandledErrorId_&&f.fired_&&Sgg(f)){var H=f.unhandledErrorId_,v=dkr[H];
v&&(_.Mr.clearTimeout(v.JSC$10011_id_),delete dkr[H]);f.unhandledErrorId_=0}f.parent_&&(f.parent_.branches_--,delete f.parent_);H=f.result_;for(var t=v=!1;f.sequence_.length&&!f.blocked_;){var M=f.sequence_.shift(),h=M[0],y=M[1];M=M[2];if(h=f.hadError_?y:h)try{var m=h.call(M||f.defaultScope_,H);m===gmg&&(m=void 0);m!==void 0&&(f.hadError_=f.hadError_&&(m==H||f.isError(m)),f.result_=H=m);if(Pkn(H)||typeof _.Mr.Promise==="function"&&H instanceof _.Mr.Promise)t=!0,f.blocked_=!0}catch(W){H=W,f.hadError_=
!0,Sgg(f)||(v=!0)}}f.result_=H;t&&(m=(0,_.FH)(f.continue_,f,!0),t=(0,_.FH)(f.continue_,f,!1),H instanceof PU?(Ch(H,m,t),H.blocking_=!0):H.then(m,t));v&&(H=new jhZ(H),dkr[H.JSC$10011_id_]=H,f.unhandledErrorId_=H.JSC$10011_id_)},O4n=function(f){var H=new PU;
f.then(function(v){H.callback(v)},function(v){H.errback(v)});
return H},mka=function(){_.vR.call(this)};
_.f8(mka,_.vR);mka.prototype.message="Deferred has already fired";mka.prototype.name="AlreadyCalledError";var GU=function(){_.vR.call(this)};
_.f8(GU,_.vR);GU.prototype.message="Deferred was canceled";GU.prototype.name="CanceledError";var jhZ=function(f){this.JSC$10011_id_=_.Mr.setTimeout((0,_.FH)(this.throwError,this),0);this.JSC$10011_error_=f};
jhZ.prototype.throwError=function(){delete dkr[this.JSC$10011_id_];throw this.JSC$10011_error_;};
var dkr={};var sho={1:"NativeMessagingTransport"},Z4C=["pu","lru","pru","lpu","ppu"],ltH=function(){for(var f=10,H=JmC,v=H.length,t="";f-- >0;)t+=H.charAt(Math.floor(Math.random()*v));return t},JmC="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var EB=function(f){_.zO.call(this);this.JSC$10014_domHelper_=f||BQ()};
_.f8(EB,_.zO);EB.prototype.transportType=0;EB.prototype.getWindow=function(){return this.JSC$10014_domHelper_.getWindow()};
EB.prototype.getName=function(){return sho[String(this.transportType)]||""};var Nc=function(f,H,v,t,M){EB.call(this,v);this.JSC$10017_channel_=f;this.protocolVersion_=M||2;this.peerHostname_=H||"*";this.JSC$10017_eventHandler_=new _.Y1(this);this.maybeAttemptToConnectTimer_=new _.ye(100,this.getWindow());this.oneSidedHandshake_=!!t;this.setupAckReceived_=new PU;this.setupAckSent_=new PU;this.JSC$10017_connected_=new PU;this.endpointId_=ltH();this.peerEndpointId_=null;this.oneSidedHandshake_?Ukh(this.JSC$10017_channel_)==1?ItT(this.JSC$10017_connected_,this.setupAckReceived_):
ItT(this.JSC$10017_connected_,this.setupAckSent_):(ItT(this.JSC$10017_connected_,this.setupAckReceived_),this.protocolVersion_==2&&ItT(this.JSC$10017_connected_,this.setupAckSent_));W7v(this.JSC$10017_connected_,this.notifyConnected_,this);this.JSC$10017_connected_.callback(!0);this.JSC$10017_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.f8(Nc,EB);Nc.prototype.peerProtocolVersion_=null;Nc.prototype.initialized_=!1;Nc.prototype.transportType=1;var eir={};Nc.prototype.sendTimerId_=0;
var Bpr=function(f){var H=f.event_.data;if(typeof H!=="string")return!1;var v=H.indexOf("|"),t=H.indexOf(":");if(v==-1||t==-1)return!1;var M=H.substring(0,v);v=H.substring(v+1,t);H=H.substring(t+1);if(t=cU[M])return t.xpcDeliver(v,H,f.event_.origin),!0;t=L79(H)[0];for(var h in cU){var y=cU[h];if(Ukh(y)==1&&!y.isConnected()&&v=="tp"&&(t=="SETUP"||t=="SETUP_NTPV2")&&xkr(y,f.event_.origin))return delete cU[y.name],y.name=M,cU[M]=y,y.xpcDeliver(v,H),!0}return!1},zin=function(f){f.protocolVersion_!=2||
f.peerProtocolVersion_!=null&&f.peerProtocolVersion_!=2||f.send("tp","SETUP_NTPV2,"+f.endpointId_);
f.peerProtocolVersion_!=null&&f.peerProtocolVersion_!=1||f.send("tp","SETUP")},F7T=function(f,H){if(f.protocolVersion_!=2||f.peerProtocolVersion_!=null&&f.peerProtocolVersion_!=2||H!=2){if(f.peerProtocolVersion_!=null&&f.peerProtocolVersion_!=1||H!=1)return;
f.send("tp","SETUP_ACK")}else f.send("tp","SETUP_ACK_NTPV2");f.setupAckSent_.fired_||f.setupAckSent_.callback(!0)},rmZ=function(f,H){H>f.peerProtocolVersion_&&(f.peerProtocolVersion_=H);
f.peerProtocolVersion_==1&&(f.setupAckSent_.fired_||f.oneSidedHandshake_||f.setupAckSent_.callback(!0),f.peerEndpointId_=null)};
_.R=Nc.prototype;_.R.connect=function(){var f=this.getWindow(),H=_.h9(f),v=eir[H];typeof v!=="number"&&(v=0);v==0&&_.r9(f.postMessage?f:f.document,"message",Bpr,!1,Nc);eir[H]=v+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.R.maybeAttemptToConnect_=function(){var f=Ukh(this.JSC$10017_channel_)==0;this.oneSidedHandshake_&&f||this.JSC$10017_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),zin(this))};
_.R.send=function(f,H){var v=this.JSC$10017_channel_.peerWindowObject_;v&&(this.send=function(t,M){var h=this,y=this.JSC$10017_channel_.name;this.sendTimerId_=Je(function(){h.sendTimerId_=0;try{var m=v.postMessage?v:v.document;m.postMessage&&m.postMessage(y+"|"+t+":"+M,h.peerHostname_)}catch(W){}},0)},this.send(f,H))};
_.R.notifyConnected_=function(){var f=this.JSC$10017_channel_,H=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;f.isConnected()||f.connectionDelay_&&f.connectionDelay_.isActive()||(f.state_=2,_.Mj(f.connectionDelay_),H!==void 0?(f.connectionDelay_=new _.rA(f.connectCb_,H),f.connectionDelay_.start()):(f.connectionDelay_=null,f.connectCb_()))};
_.R.disposeInternal=function(){if(this.initialized_){var f=this.getWindow(),H=_.h9(f),v=eir[H];eir[H]=v-1;v==1&&_.IS(f.postMessage?f:f.document,"message",Bpr,!1,Nc)}this.sendTimerId_&&(_.Mr.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.Mj(this.JSC$10017_eventHandler_);delete this.JSC$10017_eventHandler_;_.Mj(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10017_connected_.cancel();delete this.JSC$10017_connected_;delete this.send;Nc.superClass_.disposeInternal.call(this)};
var L79=function(f){f=f.split(",");f[1]=f[1]||null;return f};var Dko;_.XJ=function(f){if(f.getValues&&typeof f.getValues=="function")return f.getValues();if(typeof Map!=="undefined"&&f instanceof Map||typeof Set!=="undefined"&&f instanceof Set)return Array.from(f.values());if(typeof f==="string")return f.split("");if(_.Tb(f)){for(var H=[],v=f.length,t=0;t<v;t++)H.push(f[t]);return H}return _.QA.getValues(f)};
_.K7T=function(f){if(f.getKeys&&typeof f.getKeys=="function")return f.getKeys();if(!f.getValues||typeof f.getValues!="function"){if(typeof Map!=="undefined"&&f instanceof Map)return Array.from(f.keys());if(!(typeof Set!=="undefined"&&f instanceof Set)){if(_.Tb(f)||typeof f==="string"){var H=[];f=f.length;for(var v=0;v<f;v++)H.push(v);return H}return _.QA.getKeys(f)}}};
Dko=function(f,H,v){if(f.forEach&&typeof f.forEach=="function")f.forEach(H,v);else if(_.Tb(f)||typeof f==="string")Array.prototype.forEach.call(f,H,v);else for(var t=_.K7T(f),M=_.XJ(f),h=M.length,y=0;y<h;y++)H.call(v,M[y],t&&t[y],f)};var Kng,qc,HC,PgC,omZ,pMC,nma,atr,Qhb;
_.qC=function(f,H){this.JSC$10022_domain_=this.userInfo_=this.scheme_="";this.JSC$10022_port_=null;this.fragment_=this.JSC$10022_path_="";this.JSC$10022_ignoreCase_=!1;var v;f instanceof _.qC?(this.JSC$10022_ignoreCase_=H!==void 0?H:f.JSC$10022_ignoreCase_,_.Ae(this,f.scheme_),this.userInfo_=f.userInfo_,_.bz(this,f.JSC$10022_domain_),_.iz(this,f.JSC$10022_port_),_.kR(this,f.getPath()),_.TU(this,f.JSC$10022_queryData_.clone()),_.wm(this,f.fragment_)):f&&(v=_.Te(String(f)))?(this.JSC$10022_ignoreCase_=
!!H,_.Ae(this,v[1]||"",!0),this.userInfo_=qc(v[2]||""),_.bz(this,v[3]||"",!0),_.iz(this,v[4]),_.kR(this,v[5]||"",!0),_.TU(this,v[6]||"",!0),_.wm(this,v[7]||"",!0)):(this.JSC$10022_ignoreCase_=!!H,this.JSC$10022_queryData_=new _.fZ(null,this.JSC$10022_ignoreCase_))};
_.qC.prototype.toString=function(){var f=[],H=this.scheme_;H&&f.push(HC(H,omZ,!0),":");var v=this.JSC$10022_domain_;if(v||H=="file")f.push("//"),(H=this.userInfo_)&&f.push(HC(H,omZ,!0),"@"),f.push(_.c6(v).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),v=this.JSC$10022_port_,v!=null&&f.push(":",String(v));if(v=this.getPath())this.JSC$10022_domain_&&v.charAt(0)!="/"&&f.push("/"),f.push(HC(v,v.charAt(0)=="/"?nma:pMC,!0));(v=this.JSC$10022_queryData_.toString())&&f.push("?",v);(v=this.fragment_)&&f.push("#",
HC(v,Qhb));return f.join("")};
_.qC.prototype.resolve=function(f){var H=this.clone(),v=!!f.scheme_;v?_.Ae(H,f.scheme_):v=!!f.userInfo_;v?H.userInfo_=f.userInfo_:v=!!f.JSC$10022_domain_;v?_.bz(H,f.JSC$10022_domain_):v=f.JSC$10022_port_!=null;var t=f.getPath();if(v)_.iz(H,f.JSC$10022_port_);else if(v=!!f.JSC$10022_path_){if(t.charAt(0)!="/")if(this.JSC$10022_domain_&&!this.JSC$10022_path_)t="/"+t;else{var M=H.getPath().lastIndexOf("/");M!=-1&&(t=H.getPath().slice(0,M+1)+t)}M=t;if(M==".."||M==".")t="";else if(_.$v(M,"./")||_.$v(M,
"/.")){t=_.VR(M,"/");M=M.split("/");for(var h=[],y=0;y<M.length;){var m=M[y++];m=="."?t&&y==M.length&&h.push(""):m==".."?((h.length>1||h.length==1&&h[0]!="")&&h.pop(),t&&y==M.length&&h.push("")):(h.push(m),t=!0)}t=h.join("/")}else t=M}v?_.kR(H,t):v=f.JSC$10022_queryData_.toString()!=="";v?_.TU(H,f.JSC$10022_queryData_.clone()):v=!!f.fragment_;v&&_.wm(H,f.fragment_);return H};
_.qC.prototype.clone=function(){return new _.qC(this)};
_.Ae=function(f,H,v){f.scheme_=v?qc(H,!0):H;f.scheme_&&(f.scheme_=f.scheme_.replace(/:$/,""));return f};
_.bz=function(f,H,v){f.JSC$10022_domain_=v?qc(H,!0):H;return f};
_.iz=function(f,H){if(H){H=Number(H);if(isNaN(H)||H<0)throw Error("Pa`"+H);f.JSC$10022_port_=H}else f.JSC$10022_port_=null;return f};
_.qC.prototype.getPath=function(){return this.JSC$10022_path_};
_.kR=function(f,H,v){f.JSC$10022_path_=v?qc(H,!0):H;return f};
_.TU=function(f,H,v){H instanceof _.fZ?(f.JSC$10022_queryData_=H,uT9(f.JSC$10022_queryData_,f.JSC$10022_ignoreCase_)):(v||(H=HC(H,atr)),f.JSC$10022_queryData_=new _.fZ(H,f.JSC$10022_ignoreCase_));return f};
_.iS=function(f,H,v){f.JSC$10022_queryData_.set(H,v);return f};
_.bS=function(f,H){return f.JSC$10022_queryData_.get(H)};
_.wm=function(f,H,v){f.fragment_=v?qc(H):H;return f};
_.vC=function(f){_.iS(f,"zx",XH());return f};
_.Ax=function(f,H){return f instanceof _.qC?f.clone():new _.qC(f,H)};
Kng=function(f,H){f instanceof _.qC||(f=_.Ax(f));H instanceof _.qC||(H=_.Ax(H));return f.resolve(H)};
qc=function(f,H){return f?H?decodeURI(f.replace(/%25/g,"%2525")):decodeURIComponent(f):""};
HC=function(f,H,v){return typeof f==="string"?(f=encodeURI(f).replace(H,PgC),v&&(f=f.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),f):null};
PgC=function(f){f=f.charCodeAt(0);return"%"+(f>>4&15).toString(16)+(f&15).toString(16)};
omZ=/[#\/\?@]/g;pMC=/[#\?:]/g;nma=/[#\?]/g;atr=/[#\?@]/g;Qhb=/#/g;_.fZ=function(f,H){this.count_=this.keyMap_=null;this.encodedQuery_=f||null;this.JSC$10023_ignoreCase_=!!H};
_.tk=function(f){f.keyMap_||(f.keyMap_=new Map,f.count_=0,f.encodedQuery_&&xxM(f.encodedQuery_,function(H,v){f.add(Hh(H),v)}))};
_.R=_.fZ.prototype;_.R.getCount=function(){_.tk(this);return this.count_};
_.R.add=function(f,H){_.tk(this);this.encodedQuery_=null;f=M7(this,f);var v=this.keyMap_.get(f);v||this.keyMap_.set(f,v=[]);v.push(H);this.count_+=1;return this};
_.R.remove=function(f){_.tk(this);f=M7(this,f);return this.keyMap_.has(f)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(f).length,this.keyMap_.delete(f)):!1};
_.R.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.R.isEmpty=function(){_.tk(this);return this.count_==0};
_.R.containsKey=function(f){_.tk(this);f=M7(this,f);return this.keyMap_.has(f)};
_.R.containsValue=function(f){var H=this.getValues();return _.cR(H,f)};
_.R.forEach=function(f,H){_.tk(this);this.keyMap_.forEach(function(v,t){v.forEach(function(M){f.call(H,M,t,this)},this)},this)};
_.R.getKeys=function(){_.tk(this);for(var f=Array.from(this.keyMap_.values()),H=Array.from(this.keyMap_.keys()),v=[],t=0;t<H.length;t++)for(var M=f[t],h=0;h<M.length;h++)v.push(H[t]);return v};
_.R.getValues=function(f){_.tk(this);var H=[];if(typeof f==="string")this.containsKey(f)&&(H=H.concat(this.keyMap_.get(M7(this,f))));else{f=Array.from(this.keyMap_.values());for(var v=0;v<f.length;v++)H=H.concat(f[v])}return H};
_.R.set=function(f,H){_.tk(this);this.encodedQuery_=null;f=M7(this,f);this.containsKey(f)&&(this.count_-=this.keyMap_.get(f).length);this.keyMap_.set(f,[H]);this.count_+=1;return this};
_.R.get=function(f,H){if(!f)return H;f=this.getValues(f);return f.length>0?String(f[0]):H};
_.GLr=function(f,H,v){f.remove(H);v.length>0&&(f.encodedQuery_=null,f.keyMap_.set(M7(f,H),_.kv(v)),f.count_+=v.length)};
_.fZ.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var f=[],H=Array.from(this.keyMap_.keys()),v=0;v<H.length;v++){var t=H[v],M=_.c6(t);t=this.getValues(t);for(var h=0;h<t.length;h++){var y=M;t[h]!==""&&(y+="="+_.c6(t[h]));f.push(y)}}return this.encodedQuery_=f.join("&")};
_.fZ.prototype.clone=function(){var f=new _.fZ;f.encodedQuery_=this.encodedQuery_;this.keyMap_&&(f.keyMap_=new Map(this.keyMap_),f.count_=this.count_);return f};
var M7=function(f,H){H=String(H);f.JSC$10023_ignoreCase_&&(H=H.toLowerCase());return H},uT9=function(f,H){H&&!f.JSC$10023_ignoreCase_&&(_.tk(f),f.encodedQuery_=null,f.keyMap_.forEach(function(v,t){var M=t.toLowerCase();
t!=M&&(this.remove(t),_.GLr(this,M,v))},f));
f.JSC$10023_ignoreCase_=H};
_.fZ.prototype.extend=function(f){for(var H=0;H<arguments.length;H++)Dko(arguments[H],function(v,t){this.add(t,v)},this)};var hk=function(f,H){aS.call(this);for(var v=0,t;t=Z4C[v];v++)if(t in f&&!/^https?:\/\//.test(f[t]))throw Error("Ra`"+f[t]+"`"+t);this.cfg_=f;this.name=this.cfg_.cn||ltH();this.JSC$10018_domHelper_=H||BQ();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.Y1(this);f.lpu=f.lpu||ewr(this.JSC$10018_domHelper_.getWindow().location.href)+"/robots.txt";f.ppu=f.ppu||ewr(f.pu||"")+"/robots.txt";cU[this.name]=this;rfC(window,"unload",Cgr)||x6(window,"unload",Cgr)};
_.f8(hk,aS);var EmC=RegExp("^%*tp$"),NpM=RegExp("^%+tp$");_.R=hk.prototype;_.R.connectionDelay_=null;_.R.peerWindowDeferred_=null;_.R.transport_=null;_.R.state_=1;_.R.isConnected=function(){return this.state_==2};
_.R.peerWindowObject_=null;_.R.iframeElement_=null;_.R.connect=function(f){this.connectCb_=f||_.gQ;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?W7v(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.R.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10018_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var f=this.iframeElement_.contentWindow;f||(f=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=f}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ta");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$10018_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new Nc(this,this.cfg_.ph,this.JSC$10018_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Sa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.R.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.Mj(this.transport_);this.connectCb_=this.transport_=null;_.Mj(this.connectionDelay_);this.connectionDelay_=null};
_.R.send=function(f,H){if(this.isConnected()){try{var v=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(M){v=!1}if(v){_.vo(H)&&(H=(0,_.UB)(H));v=this.transport_;var t=v.send;EmC.test(f)&&(f="%"+f);f=f.replace(/[%:|]/g,encodeURIComponent);t.call(v,f,H)}else this.close()}};
_.R.xpcDeliver=function(f,H,v){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.FH)(this.xpcDeliver,this,f,H,v));else if(xkr(this,v)&&!this.isDisposed()&&this.state_!=3)if(f&&f!="tp")this.isConnected()&&(f=f.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),f=NpM.test(f)?f.substring(1):f,f=this.getService(f,H))&&(H=V7_(H,f.objectPayload),H!=null&&f.callback(H));else switch(f=this.transport_,v=L79(H),H=v[1],v[0]){case "SETUP_ACK":rmZ(f,1);f.setupAckReceived_.fired_||f.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":f.protocolVersion_==2&&(rmZ(f,2),f.setupAckReceived_.fired_||f.setupAckReceived_.callback(!0));break;case "SETUP":rmZ(f,1);F7T(f,1);break;case "SETUP_NTPV2":f.protocolVersion_==2&&(v=f.peerProtocolVersion_,rmZ(f,2),F7T(f,2),v!=1&&f.peerEndpointId_==null||f.peerEndpointId_==H||zin(f),f.peerEndpointId_=H)}};
var Ukh=function(f){var H=f.cfg_.role;return typeof H==="number"?H:window.parent==f.peerWindowObject_?1:0},xkr=function(f,H){var v=f.cfg_.ph;
return _.ms(H==null?"":String(H))||_.ms(v==null?"":String(v))||H==f.cfg_.ph};
hk.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete cU[this.name];_.Mj(this.peerLoadHandler_);delete this.peerLoadHandler_;hk.superClass_.disposeInternal.call(this)};
var Cgr=function(){for(var f in cU)_.Mj(cU[f])},cU={};var XM9=function(f,H){this.JSC$10032_win=f;this.allowAdsHttpEndpoint=H;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10032_domHelper=BQ(f);this.scrollManager=new M7r(f);this.accessibilityManager=new q1v(f);cmH(this)},cmH=function(f){var H=function(){f.allowAdsPopup&&f.allowAdsPopup.style.setProperty("display","none","important");
f.wallElement.style.setProperty("display","","important");fto(f.accessibilityManager);t7_(f.accessibilityManager,f.wallElement.querySelector(".fc-dialog-container"),!1,!1,f.wallElement.querySelector(".fc-button-whitelist"));f.scrollManager.enableScrolling()};
f.allowAdsPopup=f.JSC$10032_domHelper.JSC$9319_createDom("DIV",{"class":"fc-whitelist-root"});f.allowAdsPopup.style.setProperty("display","none","important");f.JSC$10032_domHelper.appendChild(f.JSC$10032_domHelper.JSC$9317_document_.body,f.allowAdsPopup);var v=f.JSC$10032_domHelper.JSC$9319_createDom("DIV",{"class":"fc-dialog-overlay"});f.JSC$10032_domHelper.appendChild(f.allowAdsPopup,v);var t=f.JSC$10032_domHelper.JSC$9319_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:H});f.JSC$10032_domHelper.appendChild(f.allowAdsPopup,
t);v=f.JSC$10032_domHelper.JSC$9319_createDom("IFRAME");v.className="fc-whitelist-dialog";v.frameBorder="0";v.id="fc-whitelist-iframe";v.tabIndex="0";_.T1(v,f.allowAdsHttpEndpoint);f.JSC$10032_domHelper.appendChild(t,v);t={};t.pu=_.re(f.allowAdsHttpEndpoint).toString();t.tp=1;t.cn="fc-whitelist-channel";t.ifrid=v.id;t.osh=!0;f.allowAdsCrossPageChannel=new hk(t);f.allowAdsCrossPageChannel.registerService("close",H);f.allowAdsCrossPageChannel.registerService("refresh",function(){f.JSC$10032_win.location.reload()});
f.allowAdsCrossPageChannel.registerService("resize",function(M){if(M){var h=f.allowAdsPopup.querySelector(".fc-whitelist-dialog");M.width&&h.style.setProperty("width",M.width,"important");M.height&&h.style.setProperty("height",M.height,"important")}},!0);
f.allowAdsCrossPageChannel.connect()};
XM9.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10032_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var Rv=window,Vy=document,Amr=Rv.location,b4r=function(){},i4v=/\[native code\]/,yy=function(f,H,v){return f[H]=f[H]||v},kLn=function(f){f=f.sort();
for(var H=[],v=void 0,t=0;t<f.length;t++){var M=f[t];M!=v&&H.push(M);v=M}return H},YJ=function(){var f;
if((f=Object.create)&&i4v.test(f))f=f(null);else{f={};for(var H in f)f[H]=void 0}return f},m6=yy(Rv,"gapi",{});var $J={};$J=yy(Rv,"___jsl",YJ());yy($J,"I",0);yy($J,"hel",10);var TpH=function(){var f=Amr.href;if($J.dpo)var H=$J.h;else{H=$J.h;var v=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),t=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(f=f&&(v.exec(f)||t.exec(f)))try{H=decodeURIComponent(f[2])}catch(M){}}return H},wM_=function(f){var H=yy($J,"PQ",[]);
$J.PQ=[];var v=H.length;if(v===0)f();else for(var t=0,M=function(){++t===v&&f()},h=0;h<v;h++)H[h](M)},qgb=function(f){return yy(yy($J,"H",YJ()),f,YJ())};var WC=function(f){this.JSC$10034_obj_=f};
WC.prototype.value=function(){return this.JSC$10034_obj_};
WC.prototype.getWidth=function(){return this.JSC$10034_obj_.width};
WC.prototype.getHeight=function(){return this.JSC$10034_obj_.height};
WC.prototype.getStyle=function(){return this.JSC$10034_obj_.style};var fp9=function(f){this.JSC$10037_obj_=f||{}};
_.R=fp9.prototype;_.R.value=function(){return this.JSC$10037_obj_};
_.R.setUrl=function(f){this.JSC$10037_obj_.url=f;return this};
_.R.getUrl=function(){return this.JSC$10037_obj_.url};
_.R.getStyle=function(){return this.JSC$10037_obj_.style};
_.R.getId=function(){return this.JSC$10037_obj_.id};
_.R.getContext=function(){return this.JSC$10037_obj_.context};
var Hcr=function(f){f.JSC$10037_obj_.attributes=f.JSC$10037_obj_.attributes||{};return new WC(f.JSC$10037_obj_.attributes)};var vkb=function(){fp9.apply(this,arguments)};
_.e(vkb,fp9);var tKZ=yy($J,"perf",YJ());yy(tKZ,"g",YJ());var MKM=yy(tKZ,"i",YJ());yy(tKZ,"r",[]);YJ();YJ();var Rpv=function(f,H,v){H&&H.length>0&&(H=hp_(H),v&&v.length>0&&(H+="___"+hp_(v)),H.length>28&&(H=H.substr(0,28)+(H.length-28)),v=H,H=yy(MKM,"_p",YJ()),yy(H,v,YJ())[f]=(new Date).getTime(),H=tKZ.r,typeof H==="function"?H(f,"_p",v):H.push([f,"_p",v]))},hp_=function(f){return f.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var VKh=YJ(),yra=[],Ov=function(f){throw Error("Ua`"+f);};
yra.push(["jsl",function(f){for(var H in f)if(Object.prototype.hasOwnProperty.call(f,H)){var v=f[H];typeof v=="object"?$J[H]=yy($J,H,[]).concat(v):yy($J,H,v)}if(H=f.u)f=yy($J,"us",[]),f.push(H),(H=/^https:(.*)$/.exec(H))&&f.push("http:"+H[1])}]);
var YSH=/^(\/[a-zA-Z0-9_\-]+)+$/,mwh=[/\/amp\//,/\/amp$/,/^\/amp$/],$wM=/^[a-zA-Z0-9\-_\.,!]+$/,WZZ=/^gapi\.loaded_[0-9]+$/,OcH=/^[a-zA-Z0-9,._-]+$/,dwr=function(f,H,v,t,M){var h=f.split(";"),y=h.shift(),m=VKh[y],W=null;m?W=m(h,H,v,t):Ov("no hint processor for: "+y);W||Ov("failed to generate load url");H=W;v=H.match(gkZ);(t=H.match(Ipn))&&t.length===1&&SSa.test(H)&&v&&v.length===1||Ov("failed sanity: "+f);try{f="?";if(M&&M.length>0){l_R(M);var I=M.join(",");W=W+"?le="+I;f="&"}if($J.rol){var S=$J.ol;
S&&S.length&&(W=""+W+f+"ol="+S.length)}}catch(d){}return W},Zch=function(f,H,v,t){f=j8g(f);
WZZ.test(v)||Ov("invalid_callback");H=s8h(H);t=t&&t.length?s8h(t):null;var M=function(h){return encodeURIComponent(h).replace(/%2C/g,",")};
return[encodeURIComponent(f.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",M(f.version),"/m=",M(H),t?"/exm="+M(t):"","/rt=j/sv=1/d=1/ed=1",f.activeMods?"/am="+M(f.activeMods):"",f.resourceSig?"/rs="+M(f.resourceSig):"",f.zcms?"/t="+M(f.zcms):"","/cb=",M(v)].join("")},j8g=function(f){f.charAt(0)!=="/"&&Ov("relative path");
for(var H=f.substring(1).split("/"),v=[];H.length;){f=H.shift();if(!f.length||f.indexOf(".")==0)Ov("empty/relative directory");else if(f.indexOf("=")>0){H.unshift(f);break}v.push(f)}f={};for(var t=0,M=H.length;t<M;++t){var h=H[t].split("="),y=decodeURIComponent(h[0]),m=decodeURIComponent(h[1]);h.length==2&&y&&m&&(f[y]=f[y]||m)}H="/"+v.join("/");YSH.test(H)||Ov("invalid_prefix");v=0;for(t=mwh.length;v<t;++v)mwh[v].test(H)&&Ov("invalid_prefix");v=Jrb(f,"k",!0);t=Jrb(f,"am");M=Jrb(f,"rs");f=Jrb(f,"t");
return{pathPrefix:H,version:v,activeMods:t,resourceSig:M,zcms:f}},s8h=function(f){for(var H=[],v=0,t=f.length;v<t;++v){var M=f[v].replace(/\./g,"_").replace(/-/g,"_");
OcH.test(M)&&H.push(M)}return H.join(",")},Jrb=function(f,H,v){f=f[H];
!f&&v&&Ov("missing: "+H);if(f){if($wM.test(f))return f;Ov("invalid: "+H)}return null},SSa=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,Ipn=/\/cb=/g,gkZ=/\/\//g;
VKh.m=function(f,H,v,t){(f=f[0])||Ov("missing_hint");return"https://apis.google.com"+Zch(f,H,v,t)};
var lpg=decodeURI("%73cript"),UwH=/^[-+_0-9\/A-Za-z]+={0,2}$/,epo=function(f,H){for(var v=[],t=0;t<f.length;++t){var M=f[t],h;if(h=M){a:{for(h=0;h<H.length;h++)if(H[h]===M)break a;h=-1}h=h<0}h&&v.push(M)}return v},LZH=function(){var f=$J.nonce;
return f!==void 0?f&&f===String(f)&&f.match(UwH)?f:$J.nonce=null:Vy.querySelector?(f=Vy.querySelector("script[nonce]"))?(f=f.nonce||f.getAttribute("nonce")||"",f&&f===String(f)&&f.match(UwH)?$J.nonce=f:$J.nonce=null):null:null},zp9=function(f){if(Vy.readyState!="loading")xwg(f);
else{var H=LZH(),v="";H!==null&&(v=' nonce="'+H+'"');f="<"+lpg+' src="'+encodeURI(f)+'"'+v+"></"+lpg+">";Vy.write(BuM?BuM.createHTML(f):f)}},xwg=function(f){var H=Vy.createElement(lpg);
H.setAttribute("src",BuM?BuM.createScriptURL(f):f);f=LZH();f!==null&&H.setAttribute("nonce",f);H.async="true";(f=Vy.getElementsByTagName(lpg)[0])?f.parentNode.insertBefore(H,f):(Vy.head||Vy.body||Vy.documentElement).appendChild(H)},rro=function(f,H,v){FZh(function(){var t=H===TpH()?yy(m6,"_",YJ()):YJ();
t=yy(qgb(H),"_",t);f(t)},v)},euv=function(f,H){var v=H||{};
typeof H=="function"&&(v={},v.callback=H);var t=(H=v)&&H._c;if(t)for(var M=0;M<yra.length;M++){var h=yra[M][0],y=yra[M][1];y&&Object.prototype.hasOwnProperty.call(t,h)&&y(t[h],f,H)}H=[];f?H=f.split(":"):v.features&&(H=v.features);if(!(f=v.h)&&(f=TpH(),!f))throw Error("Va");KZb(H||[],v,f)},KZb=function(f,H,v){f=kLn(f)||[];
var t=H.callback,M=H.config,h=H.timeout,y=H.ontimeout,m=H.onerror,W=void 0;typeof m=="function"&&(W=m);var I=null,S=!1;if(h&&!y||!h&&y)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";m=yy(qgb(v),"r",[]).sort();var d=yy(qgb(v),"L",[]).sort(),Z=$J.le||[],l=[].concat(m),L=function(w,c){if(S)return 0;Rv.clearTimeout(I);d.push.apply(d,r);var A=((m6||{}).config||{}).update;A?A(M):M&&yy($J,"cu",[]).push(M);if(c){Rpv("me0",w,l);try{rro(c,v,W)}finally{Rpv("me1",w,l)}}return 1};
h>0&&(I=Rv.setTimeout(function(){S=!0;y()},h));
var r=epo(f,d);if(r.length){r=epo(f,m);var n=yy($J,"CP",[]),Q=n.length;n[Q]=function(w){if(!w)return 0;Rpv("ml1",r,l);var c=function(X){n[Q]=null;L(r,w)&&wM_(function(){t&&t();X()})},A=function(){var X=n[Q+1];
X&&X()};
Q>0&&n[Q-1]?n[Q]=function(){c(A)}:c(A)};
if(r.length){var C="loaded_"+$J.I++;m6[C]=function(w){n[Q](w);m6[C]=null};
f=dwr(v,r,"gapi."+C,m,Z);m.push.apply(m,r);Rpv("ml0",r,l);H.sync||Rv.___gapisync?zp9(f):xwg(f)}else n[Q](b4r)}else L(r)&&t&&t()},Dwv;
var okg=null,nkh=_.Mr.trustedTypes;if(nkh&&nkh.createPolicy){try{okg=nkh.createPolicy("goog#gapi",{createHTML:uc3,createScript:uc3,createScriptURL:uc3})}catch(f){_.Mr.console&&_.Mr.console.error(f.message)}Dwv=okg}else Dwv=okg;var BuM=Dwv,FZh=function(f,H){if($J.hee&&$J.hel>0)try{return f()}catch(v){H&&H(v),$J.hel--,euv("debug_error",function(){try{window.___jsl.hefn(v)}catch(t){throw v;}})}else try{return f()}catch(v){throw H&&H(v),v;
}},p6Z=m6.load;
p6Z&&yy($J,"ol",[]).push(p6Z);m6.load=function(f,H){return FZh(function(){return euv(f,H)})};var Xhs;var u3C=function(f,H){var v=v||[];this.serviceId_=f;this.moduleId_=H||null;this.dependencies_=[];Q8C(this,v)};
u3C.prototype.toString=function(){return this.serviceId_};
u3C.prototype.getModuleId=function(){return this.moduleId_};
var Q8C=function(f,H){var v=!1;v=v===void 0?!1:v;f.dependencies_=f.dependencies_.concat(H);if(v){if(!f.moduleId_)throw Error("Wa`"+f.serviceId_);H.map(function(t){return t.getModuleId()}).forEach(function(t){A8E(function(M){M.addExtraEdge(f.moduleId_,t)})})}};var fC5=new u3C("MpJwZc","MpJwZc");var vEe=new _.mQ("a"),HQ5=function(f,H,v){_.$R.call(this,f,H);this.node=H;this.kind=v};
_.e(HQ5,_.$R);var apC=function(){this.JSC$10050_keys_={};this.urlPrefix_="";this.JSC$10050_queryData_={}};
apC.prototype.toString=function(){var f=this.urlPrefix_+PZa(this),H=_.S$(this.JSC$10050_queryData_),v="";H!=""&&(v="?"+H);return f+v};
var Geg=function(f){f=gK(f,"md");return!!f&&f!=="0"},PZa=function(f){var H=[],v=(0,_.FH)(function(t){this.JSC$10050_keys_[t]!==void 0&&H.push(t+"="+this.JSC$10050_keys_[t])},f);
Geg(f)?(v("md"),v("k"),v("ck"),v("am"),v("rs"),v("gssmodulesetproto"),v("slk"),v("dti")):(v("sdch"),v("k"),v("ck"),v("am"),v("rt"),"d"in f.JSC$10050_keys_||Iv(f,"d","0"),v("d"),v("exm"),v("excm"),(f.JSC$10050_keys_.excm||f.JSC$10050_keys_.exm)&&H.push("ed=1"),v("im"),v("dg"),v("sm"),gK(f,"br")!="1"&&gK(f,"br")!="0"||v("br"),v("br-d"),gK(f,"rb")=="1"&&v("rb"),gK(f,"zs")!=="0"&&v("zs"),CZa(f)!==""&&v("wt"),v("gssmodulesetproto"),v("ujg"),v("sp"),v("rs"),v("cb"),v("ee"),v("slk"),v("dti"),v("m"));return H.join("/")},
gK=function(f,H){return f.JSC$10050_keys_[H]?f.JSC$10050_keys_[H]:null},Iv=function(f,H,v){v?f.JSC$10050_keys_[H]=v:delete f.JSC$10050_keys_[H]},Ekr=function(f,H){f.urlPrefix_=H},Nun=function(f,H){H&&H.length>0?(H.sort(),Iv(f,"exm",H.join(","))):Iv(f,"exm",null)},cra=function(f,H){H&&H.length>0?(H.sort(),Iv(f,"excm",H.join(","))):Iv(f,"excm",null)},X6Z=function(f){return(f=gK(f,"m"))?f.split(","):[]},CZa=function(f){switch(gK(f,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},ArH=function(f,H){var v=Object.keys(H).filter(function(t){return!!Object.keys(H[t]).length}).map(function(t){var M=Object.keys(H[t]);
M.length>1&&M.sort();return t+":"+M.join(",")});
v.sort();Iv(f,"ee",v.join(";"))},aUT=function(f){var H=gK(f,"ee");
if(!H)return{};f={};H=_.V(H.split(";"));for(var v=H.next();!v.done;v=H.next()){var t=_.V(v.value.split(":"));v=t.next().value;t=t.next().value;f[v]={};t=_.V(t.split(","));for(var M=t.next();!M.done;M=t.next())f[v][M.value]=!0}return f},bc_=function(f){delete f.JSC$10050_keys_.m;
delete f.JSC$10050_keys_.exm;delete f.JSC$10050_keys_.ed};
apC.prototype.clone=function(){var f=new apC;f.JSC$10050_keys_=Object.assign({},this.JSC$10050_keys_);f.urlPrefix_=this.urlPrefix_;f.JSC$10050_queryData_=Object.assign({},this.JSC$10050_queryData_);return f};
var P75=function(f,H){H=H===void 0?!0:H;var v=ich(f),t=new apC,M=_.Te(v)[5];_.QA.forEach(keC,function(y){var m=M.match("/"+y+"=([^/]+)");m&&Iv(t,y,m[1])});
var h="";h=f.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";Ekr(t,f.substr(0,f.indexOf(h)+h.length));if(!H)return t;(f=_.Te(v)[6]||null)&&xxM(f,function(y,m){t.JSC$10050_queryData_[y]=m});
return t},p85=function(f){f=_.gH(ich(f));
return f===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(f)?/\/k=/.test(f):!1},ich=function(f){return f.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?f.substr(65):f},keC={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"},Tuh=RegExp("^loaded_(g|h)?[_\\d]+$");_.dK=function(f){this.JSC$10062_id_=f;this.opts={}};
_.dK.prototype.JSC$10064_setLabel=function(f){this.label_=f||void 0;return this};
_.dK.prototype.addUploadMetadata=function(f,H){var v=this.opts.data||{};v[f]=H;this.opts.data=v;return this};
var w6r=function(f){var H=_.QA.filter(f.opts,function(v){return v!==null});
H=_.QA.isEmpty(H)?null:H;f=[f.JSC$10062_id_,f.label_,H];H=j3B(f);return f=f.slice(0,H+1)};
_.dK.prototype.toString=function(){var f=w6r(this);return"("+_.uh(f,function(H){return JSON.stringify(H)}).join(",")+")"};
_.dK.prototype.getId=function(){return this.JSC$10062_id_};
_.dK.prototype.getOptions=function(){return _.QA.clone(this.opts)};var jd=function(){_.dK.call(this,"image-search")};
_.e(jd,_.dK);jd.prototype.setSize=function(f){this.opts.imgsz=f;return this};
jd.prototype.JSC$10064_setLabel=function(f){_.dK.prototype.JSC$10064_setLabel.call(this,f);return this};
jd.prototype.addUploadMetadata=function(f,H){_.dK.prototype.addUploadMetadata.call(this,f,H);return this};var sv=function(){_.dK.call(this,"maps")};
_.e(sv,_.dK);sv.prototype.setZoom=function(f){this.opts.zoom=f;return this};
sv.prototype.JSC$10064_setLabel=function(f){_.dK.prototype.JSC$10064_setLabel.call(this,f);return this};
sv.prototype.addUploadMetadata=function(f,H){_.dK.prototype.addUploadMetadata.call(this,f,H);return this};_.ZY=function(){_.dK.call(this,"photos")};
_.e(_.ZY,_.dK);_.ZY.prototype.JSC$10064_setLabel=function(f){_.dK.prototype.JSC$10064_setLabel.call(this,f);return this};
_.ZY.prototype.addUploadMetadata=function(f,H){_.dK.prototype.addUploadMetadata.call(this,f,H);return this};var Jk=function(){_.dK.call(this,"url")};
_.e(Jk,_.dK);var qSb=function(){var f=new Jk;f.opts.type="video";f.opts.site="youtube.com";return f};
Jk.prototype.JSC$10064_setLabel=function(f){_.dK.prototype.JSC$10064_setLabel.call(this,f);return this};
Jk.prototype.addUploadMetadata=function(f,H){_.dK.prototype.addUploadMetadata.call(this,f,H);return this};var lN=function(){_.dK.call(this,"video-search")};
_.e(lN,_.dK);var fyv=function(){var f=new lN;f.opts.site="youtube.com";return f};
lN.prototype.JSC$10064_setLabel=function(f){_.dK.prototype.JSC$10064_setLabel.call(this,f);return this};
lN.prototype.addUploadMetadata=function(f,H){_.dK.prototype.addUploadMetadata.call(this,f,H);return this};var Hln=function(){_.dK.call(this,"web")};
_.e(Hln,_.dK);Hln.prototype.JSC$10064_setLabel=function(f){_.dK.prototype.JSC$10064_setLabel.call(this,f);return this};
Hln.prototype.addUploadMetadata=function(f,H){_.dK.prototype.addUploadMetadata.call(this,f,H);return this};var Uv=function(){this.items_=[];this.opts={}},vZZ=function(f){switch(f){case "image-search":return new jd;
case "maps":return new sv;case "photos":return new _.ZY;case "url":return new Jk;case "video-search":return new lN;case "web":return new Hln}return new _.dK(f)};
Uv.prototype.addView=function(f){this.items_.push(typeof f==="string"?vZZ(f):f);return this};
var t$H=function(f){return"("+_.uh(f.items_,function(H){return H.toString()}).join(",")+")"};
Uv.prototype.toString=function(){return t$H(this)};
Uv.prototype.getViews=function(f,H){H=H===void 0?[]:H;for(var v=this.items_,t=0;t<v.length;t++){var M=v[t];M instanceof Uv?M.getViews(f,H):M.getId()==f&&H.push(M)}return H};
Uv.prototype.getOptions=function(){return _.QA.clone(this.opts)};var GO=function(f){this.basePickerUrl_=f||"https://docs.google.com/picker";this.nav_=new Uv};
GO.prototype.nav_=null;GO.prototype.addView=function(f){this.nav_.addView(f);return this};
GO.prototype.getBaseUrl=function(){return this.basePickerUrl_};
GO.prototype.getViews=function(f){return this.nav_.getViews(f)};
_.M$o=function(f,H){f.callback_=H;return f};var hvh=new Map;hvh.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");hvh.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");hvh.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var Rvo=new Set;Rvo.add("application/vnd.google-apps.kix");Rvo.add("application/vnd.google-apps.ritz");Rvo.add("application/vnd.google-apps.punch");var j2o=function(f,H,v){var t=v&&_.L8(v,1);v=V$M(v);var M=f[0].getId();switch(_.x_(M,2)){case 13:return y8b(f,H,t,v);case 3:return Yk_(f,H,t,v);case 10:return mJH(f,H,t,v);case 27:return mJH(f,H,t,v);case 12:return $J9(f,H);case 2:return WpC(f,H,t,v);case 5:return OlZ(f,H,t,v);case 9:return gZh(f,H,t,v);case 6:return Iyb(f,H,t,v);case 25:return Skr(f,H,t,v);case 1:return _.gP(f[0],E5v,26)?dJv(f,H,t,v):mJH(f,H,t,v);default:return{}}},Iyb=function(f,H,v,t){f=f.map(function(M){return{id:M.getId().getId(),
serviceId:"youtube",name:M.getName(),description:_.L8(M,3),type:ed(M),lastEditedUtc:_.CtM(_.V$(M,_.FX,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:M.getUrl(),embedUrl:_.L8(M,13),thumbnails:LZ(Ah(M))}});
return{action:H,docs:f,viewToken:t,view:v||"youtube",v2Translated:!0}},WpC=function(f,H,v,t){var M=f.map(function(h){var y=h.getId().getId(),m=_.L8(h,7),W=h.getName(),I=ed(h),S=_.CtM(_.V$(h,_.FX,12)).getTime(),d=h.getUrl(),Z=Number(H$e(h)),l=_.L8(h,3),L=_.L8(h,11),r=LZ(Ah(h));
var n=_.V$(h,bs,21);n=_.lT(n,1);var Q=_.V$(h,bs,21);Q=_.L8(Q,10);var C=_.L8(h,13);var w=_.V$(h,bs,21);w=_.lT(w,9);var c=_.V$(h,bs,21);c=_.L8(c,11);y={id:y,serviceId:"docs",mimeType:m,name:W,type:I,lastEditedUtc:S,url:d,sizeBytes:Z,description:l,iconUrl:L,thumbnails:r,isShared:n,downloadUrl:Q,embedUrl:C,copyable:w,resourceKey:c};m=_.V$(h,bs,21);_.lT(m,12)&&(y.uploadState="success",y.isNew=!0);m=_.V$(h,bs,21);_.gP(m,Nt,3)&&(h=_.V$(h,bs,21),h=_.V$(h,Nt,3),_.gP(h,C6,2)&&(m=aN(h.getDuration().getSeconds()),
W=h.getDuration(),W=_.Yl(W,2),y.duration=m+W/1E9),y.aspectRatio=h.getAspectRatio());return y});
return{action:H,docs:M,viewToken:t,view:v||"all",extraUserInputs:s2b(f),v2Translated:!0}},OlZ=function(f,H,v,t){f=f.map(function(M){var h=_.V$(M,wAT,15);
h=_.V$(h,E$,1);sP(M,10,E$,h);return{id:M.getId().getId(),serviceId:"web",mimeType:_.L8(M,7),name:M.getName(),type:ed(M),url:M.getUrl(),description:_.L8(M,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:LZ(Ah(M))}});
return{action:H,docs:f,viewToken:t,view:v||"image-search",v2Translated:!0}},gZh=function(f,H,v,t){f=f.map(function(M){return{serviceId:"url",
name:Ah(M)[0].getUrl().split("/").pop(),type:ed(M),mimeType:_.L8(M,7),url:M.getUrl(),description:_.L8(M,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:LZ(Ah(M))}});
return{action:H,docs:f,viewToken:t,view:v||"url",v2Translated:!0}},dJv=function(f,H,v,t){f=f.map(function(M){return{id:M.getId().getId(),
serviceId:"picasa",name:M.getName(),type:ed(M),description:_.L8(M,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:LZ(Ah(M))}});
return{action:H,docs:f,viewToken:t,view:v||"webcam",v2Translated:!0}},mJH=function(f,H,v,t){return{action:H,
docs:f.map(Zl9),viewToken:t,view:J8M(v||"upload",f),extraUserInputs:s2b(f),v2Translated:!0}},J8M=function(f,H){return H.some(function(v){var t;
return((t=_.V$(v,c4,30))==null?void 0:_.x_(t,3))===9})?f+"/gmailphotos":f},Yk_=function(f,H,v,t){var M=f.map(function(h){var y={id:h.getId().getId(),
serviceId:"picasa",mimeType:_.L8(h,7),name:h.getName(),type:ed(h),lastEditedUtc:_.CtM(_.V$(h,_.FX,12)).getTime(),url:h.getUrl(),sizeBytes:Number(H$e(h)),description:_.L8(h,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:LZ(Ah(h)),mediaKey:h.getId().getId(),parentId:_.L8(h,4)},m,W=(m=_.V$(h,XAZ,18))==null?void 0:_.V$(m,cWM,3);W&&(y.latitude=es(W,1),y.longitude=es(W,2));var I;h=(I=_.V$(h,XAZ,18))==null?void 0:UU(I,6);I=h!=null?aN(h):void 0;I&&(y.version=
I);return y});
return{action:H,docs:M,viewToken:t,view:v||"photos",extraUserInputs:s2b(f),v2Translated:!0}},y8b=function(f,H,v,t){f=f.map(function(M){return{id:M.getId().getId(),
serviceId:"et",name:Ah(M)[0].getUrl().split("/").pop(),description:_.L8(M,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:LZ(Ah(M),"etjpg")}});
return{action:H,docs:f,viewToken:t,view:v||"et",v2Translated:!0}},Skr=function(f,H,v,t){f=f.map(function(M){var h=M.getId().getId(),y=t["2"];
return{id:h,serviceId:y.type!=="gmail_themes"&&y.parent==="6226252643674576769"?"picasa":"static_themes",name:M.getName(),mimeType:_.L8(M,7),type:ed(M),description:_.L8(M,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:M.getUrl(),embedUrl:M.getUrl(),thumbnails:LZ(Ah(M))}});
return{action:H,docs:f,viewToken:t,view:v||"photos",v2Translated:!0}},$J9=function(f,H){f=f.map(function(v){var t=_.V$(v,Ni_,27);
t=_.wi(t,1,_.ep,_.yX())[0];return{id:v.getId().getId(),serviceId:"contacts",mimeType:_.L8(v,7),name:v.getName(),description:_.L8(v,3),url:"mailto:"+t,thumbnail:[{url:_.L8(v,11)}],email:t}});
return{action:H,docs:f,view:"contacts",v2Translated:!0}},V$M=function(f){if(!f)return{};
var H=_.L8(f,3);H=H&&JSON.parse(H)||{};return{0:_.L8(f,1),1:_.L8(f,2),2:H}},LZ=function(f,H){H=H===void 0?"":H;
if(!f.length)return null;H=="etjpg"&&(f=f.filter(function(v){return v.getUrl().includes("w1200-h300")}));
return f.map(function(v){return{url:v.getUrl(),height:v.getHeight(),width:v.getWidth(),type:H}})},s2b=function(f){return{isAttachment:f.some(function(H){return _.lT(H,31)})}},Zl9=function(f){var H,v={id:(H=f.getId())==null?void 0:H.getId(),
serviceId:lyg(f),mimeType:_.L8(f,7),name:f.getName(),type:ed(f),sizeBytes:Number(H$e(f)),description:_.L8(f,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:LZ(Ah(f)),isNew:!0};if(H=_.V$(f,c4,30)){v.dataUrl=_.L8(H,1)||null;a:{var t=_.V$(f,c4,30);switch(_.x_(t,3)){case 9:t=_.Fg(t,kh_,2,X_);t={remoteRefs:t&&_.L8(t,1)};break a;case 10:case 15:t=_.Fg(t,i0H,4,X_);var M=Ah(f);t={photo_id:t&&_.L8(t,1),media_key:f.getId().getId(),media_type:_.x_(f,6)===1?1:2,image_url:M&&
M[0].getUrl(),width:M&&String(M[0].getWidth()),height:M&&String(M[0].getHeight())};break a}t=null}v.uploadMetadata=t;v.uploadId=_.L8(H,9)||null;v.uploadState=UJT(H)||null}(t=H&&_.Fg(H,i0H,4,X_))&&(v.id=_.L8(t,1));(t=H&&_.Fg(H,Tig,5,X_))&&(v.contentId=_.L8(t,1));(t=H&&_.Fg(H,AWa,7,X_))&&(v.contentId=_.L8(t,1));(t=H&&_.Fg(H,b0C,6,X_))&&(v.contentId=_.L8(t,1));(H==null?void 0:_.x_(H,3))===1&&(v.mediaKey=f.getId().getId());return v},lyg=function(f){var H;
switch(((H=_.V$(f,c4,30))==null?void 0:_.x_(H,3))||0){case 1:return"picasa";case 2:case 3:case 4:case 8:case 12:return"photo";case 10:case 15:return"dragonflyphotos";case 11:return"mapspro";case 13:return"books";case 14:return"cultural"}return null},ed=function(f){switch(_.x_(f,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 _.L8(f,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},UJT=function(f){switch(f==null?void 0:_.x_(f,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 BHa,evr,LpM,xJH;_.zvg=function(f,H){var v=H||{};H=v.document||document;var t=_.re(f).toString(),M=(new s$(H)).createElement("SCRIPT"),h={script_:M,timeout_:void 0},y=new PU(evr,h),m=null,W=v.timeout!=null?v.timeout:5E3;W>0&&(m=window.setTimeout(function(){LpM(M,!0);y.errback(new xJH(1,"Timeout reached for loading script "+t))},W),h.timeout_=m);
M.onload=M.onreadystatechange=function(){M.readyState&&M.readyState!="loaded"&&M.readyState!="complete"||(LpM(M,v.cleanupWhenDone||!1,m),y.callback(null))};
M.onerror=function(){LpM(M,!0,m);y.errback(new xJH(0,"Error while loading script "+t))};
h=v.attributes||{};_.QA.extend(h,{type:"text/javascript",charset:"UTF-8"});ogg(M,h);_.tf(M,f);BHa(H).appendChild(M);return y};
BHa=function(f){var H=ez("HEAD",f);return H&&H.length!==0?H[0]:f.documentElement};
evr=function(){if(this&&this.script_){var f=this.script_;f&&f.tagName=="SCRIPT"&&LpM(f,!0,this.timeout_)}};
LpM=function(f,H,v){v!=null&&_.Mr.clearTimeout(v);f.onload=function(){};
f.onerror=function(){};
f.onreadystatechange=function(){};
H&&window.setTimeout(function(){_.U1(f)},0)};
xJH=function(f,H){var v="Jsloader error (code #"+f+")";H&&(v+=": "+H);_.vR.call(this,v);this.code=f};
_.f8(xJH,_.vR);var Fpa=_.EH(["https://apis.google.com/js/api.js"]),r8r=_.gr(Fpa),nZa=function(f,H,v){v=v===void 0?{}:v;var t=!1,M=Kp9(f,H,v).then(function(y){t=!0;return y}),h=_.hg_(5E3).then(function(){return t?Kp9(f,H,v):DJb(H,v).then(function(y){return oZa(y,f)})});
return Af_([M,h])},Kp9=function(f,H,v){v=v===void 0?{}:v;
return phr(H,v).then(function(t){return oZa(t,f)})},oZa=function(f,H){var v=_.VR(H,"gapi.")?H.slice(5):H;
return f[v]?_.gj(f[v]):new _.IO(function(t,M){var h=Je(function(){M(Error("Ya"))},3E4);
f.load(H,{callback:function(){_.Mr.clearTimeout(h);t(f[v])},
onerror:function(y){_.Mr.clearTimeout(h);M(y)}})})},phr=function(f,H){H=H===void 0?{}:H;
return f.gapi&&f.gapi.load?_.gj(f.gapi):DJb(f,H)},DJb=function(f,H){H=H===void 0?{}:H;
return _.zvg(r8r,{document:f.document,attributes:H}).then(function(){return f.gapi})},Q29=function(){};
Q29.prototype.load=function(f,H,v){H=H===void 0?window:H;v=v===void 0?{}:v;var t=Date.now();return nZa(f,H,v).then(function(M){var h=Date.now();return{library:M,loadStartMs:t,loadEndMs:h}},function(M){throw M instanceof Error?M:Error(String(M));
})};var hms=function(){_.zO.call(this);this.gapiLoader_=new Q29;this.origin_=null;this.gapiPickerIframeResolver_=_.bE();this.gapiIframesResolver_=_.bE();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.e(hms,_.zO);var umr=function(f,H){var v=_.ES("gapi.iframes",H);return v?(f=Date.now(),_.gj({library:v,loadStartMs:f,loadEndMs:f})):f.gapiLoader_.load("gapi.iframes",H)},ayo=function(f,H,v,t,M,h){var y=!1;
y=y===void 0?!1:y;umr(f,PQ(H.ownerDocument)).then(function(m){var W=m.library;f.gapiIframesResolver_.resolve(W);m=f.gapiPickerIframeResolver_;var I=m.resolve,S=y;S=S===void 0?!1:S;var d={};d["host-message-handler"]=v;f.hostMessageHandlerInternal_=d;var Z=_.Ax(t);Z=_.Ax(Z);Z=_.iz(_.bz(_.Ae(new _.qC,Z.scheme_),Z.JSC$10022_domain_),Z.JSC$10022_port_).toString();f.origin_=Z;Z=(new vkb).setUrl(t);Z.JSC$10037_obj_.where=H;Z.JSC$10037_obj_.allowPost=S;Z.JSC$10037_obj_.messageHandlers=d;S=_.ES("makeWhiteListIframesFilter",
W)([f.origin_]);Z.JSC$10037_obj_.messageHandlersFilter=S;M!=null&&(Z.JSC$10037_obj_.id=M);h!=null&&(Z.JSC$10037_obj_.rpctoken=h);S=Hcr(Z);S.JSC$10034_obj_.style={display:"block","min-width":"100%",width:"1px"};S.JSC$10034_obj_.height="100%";Hcr(Z).value().allow="camera 'src' "+f.origin_;W=W.getContext().openChild(Z.value());I.call(m,W)},function(m){f.gapiIframesResolver_.reject(m);
f.gapiPickerIframeResolver_.reject(m)});
return f.gapiPickerIframeResolver_.promise},Pdo=function(f,H){return _.sB([f.gapiIframesResolver_.promise,
f.gapiPickerIframeResolver_.promise]).then(function(v){var t=_.V(v);v=t.next().value;return(t=t.next().value)?t.send("picker-message-handler",H,void 0,_.ES("makeWhiteListIframesFilter",v)([f.origin_])):_.DI(Error("Za"))})};
hms.prototype.disposeInternal=function(){GEg(this);_.zO.prototype.disposeInternal.call(this)};
var GEg=function(f){f.gapiPickerIframeResolver_.promise.then(function(H){H&&(H.unregister("host-message-handler"),delete f.hostMessageHandlerInternal_["host-message-handler"])})};var CdM=function(){this.JSC$10124_nextId=0};var NHn=function(f,H){switch(f.action){case "select-contacts":f=EZM(f.contacts);break;case "visibility":f=f.visible;var v=new k0;f=_.K8(v,1,7).setVisible(f);v={};v["iframe-command"]=f.serialize();f=v;break;default:f=null}return f?Pdo(H,f):_.gj()},EZM=function(f){if(!f||f.length==0)return null;
var H=new k0;_.K8(H,1,11);var v=new CdM;f.forEach(function(t){if(t.email){var M=new ZV;M=_.G7(M,2,t.name?t.name:t.email);var h=new Ni_;t=_.KWE(h,1,_.JW,t.email,_.ep);t=_.eV(M,27,t);M=new GhT;h=":"+(v.JSC$10124_nextId++).toString(36);M=_.G7(M,1,h);M=_.K8(M,2,12);t=_.eV(t,1,M)}else t=null;t&&sP(H,7,ZV,t)});
f={};f["iframe-command"]=H.serialize();return f};_.c8_=function(){if(IQ_){var f=/Windows NT ([0-9.]+)/;return(f=f.exec(_.jE()))?f[1]:"0"}return _.gss?(f=/1[0|1][_.][0-9_.]+/,(f=f.exec(_.jE()))?f[0].replace(/_/g,"."):"10"):$L3?(f=/Android\s+([^\);]+)(\)|;)/,(f=f.exec(_.jE()))?f[1]:""):dqg||jJR||sJe?(f=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(f=f.exec(_.jE()))?f[1].replace(/_/g,"."):""):""}();var xJ;xJ=function(f){return(f=f.exec(_.jE()))?f[1]:""};
_.Xh_=function(){if(_.yB)return xJ(/Firefox\/([0-9.]+)/);if(_.My||TE||$qE)return xqN;if(_.Y_){if(_.QR()||_.gv5()){var f=xJ(/CriOS\/([0-9.]+)/);if(f)return f}return xJ(/Chrome\/([0-9.]+)/)}if(_.ud&&!_.QR())return xJ(/Version\/([0-9.]+)/);if(UON||ej5){if(f=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.jE()))return f[1]+"."+f[2]}else if(KoE)return(f=xJ(/Android\s+([0-9.]+)/))?f:xJ(/Version\/([0-9.]+)/);return""}();var A8v=function(){};
_.ws(A8v);A8v.prototype.nextId_=0;_.BC=function(f){return":"+(f.nextId_++).toString(36)};var zM=function(f){_.Sg.call(this);this.JSC$10132_dom_=f||BQ();this.JSC$10132_id_=null;this.inDocument_=!1;this.JSC$10132_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.f8(zM,_.Sg);zM.prototype.idGenerator_=A8v.getInstance();zM.prototype.getId=function(){return this.JSC$10132_id_||(this.JSC$10132_id_=_.BC(this.idGenerator_))};
zM.prototype.getElement=function(){return this.JSC$10132_element_};
var F4=function(f){f.googUiComponentHandler_||(f.googUiComponentHandler_=new _.Y1(f));return f.googUiComponentHandler_},blo=function(f,H){if(f==H)throw Error("$a");
var v;if(v=H&&f.parent_&&f.JSC$10132_id_){v=f.parent_;var t=f.JSC$10132_id_;v=v.childIndex_&&t?_.QA.get(v.childIndex_,t)||null:null}if(v&&f.parent_!=H)throw Error("$a");f.parent_=H;zM.superClass_.setParentEventTarget.call(f,H)};
zM.prototype.setParentEventTarget=function(f){if(this.parent_&&this.parent_!=f)throw Error("ab");zM.superClass_.setParentEventTarget.call(this,f)};
zM.prototype.JSC$10134_createDom=function(){this.JSC$10132_element_=this.JSC$10132_dom_.createElement("DIV")};
zM.prototype.render=function(f){il9(this,f)};
var il9=function(f,H,v){if(f.inDocument_)throw Error("bb");f.JSC$10132_element_||f.JSC$10134_createDom();H?H.insertBefore(f.JSC$10132_element_,v||null):f.JSC$10132_dom_.JSC$9317_document_.body.appendChild(f.JSC$10132_element_);f.parent_&&!f.parent_.inDocument_||f.enterDocument()};
_.R=zM.prototype;_.R.decorate=function(f){if(this.inDocument_)throw Error("bb");if(f&&this.canDecorate(f)){this.wasDecorated_=!0;var H=_.Gf(f);this.JSC$10132_dom_&&this.JSC$10132_dom_.JSC$9317_document_==H||(this.JSC$10132_dom_=BQ(f));this.decorateInternal(f);this.enterDocument()}else throw Error("cb");};
_.R.canDecorate=function(){return!0};
_.R.decorateInternal=function(f){this.JSC$10132_element_=f};
_.R.enterDocument=function(){this.inDocument_=!0;kE9(this,function(f){!f.inDocument_&&f.getElement()&&f.enterDocument()})};
_.R.exitDocument=function(){kE9(this,function(f){f.inDocument_&&f.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.R.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);kE9(this,function(f){f.dispose()});
!this.wasDecorated_&&this.JSC$10132_element_&&_.U1(this.JSC$10132_element_);this.parent_=this.model_=this.JSC$10132_element_=this.childIndex_=this.children_=null;zM.superClass_.disposeInternal.call(this)};
_.R.getModel=function(){return this.model_};
_.R.addChild=function(f,H){var v=this.children_?this.children_.length:0;if(f.inDocument_&&(H||!this.inDocument_))throw Error("bb");if(v<0||v>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);f.parent_==this?(_.QA.set(this.childIndex_,f.getId(),f),_.iH(this.children_,f)):_.QA.add(this.childIndex_,f.getId(),f);blo(f,this);_.JNH(this.children_,v,0,f);f.inDocument_&&this.inDocument_&&f.parent_==this?(H=this.getContentElement(),
(H.childNodes[v]||null)!=f.getElement()&&(f.getElement().parentElement==H&&H.removeChild(f.getElement()),v=H.childNodes[v]||null,H.insertBefore(f.getElement(),v))):H?(this.JSC$10132_element_||this.JSC$10134_createDom(),v=this.children_?this.children_[v+1]||null:null,il9(f,this.getContentElement(),v?v.JSC$10132_element_:null)):this.inDocument_&&!f.inDocument_&&f.JSC$10132_element_&&f.JSC$10132_element_.parentNode&&f.JSC$10132_element_.parentNode.nodeType==1&&f.enterDocument()};
_.R.getContentElement=function(){return this.JSC$10132_element_};
var kE9=function(f,H){f.children_&&f.children_.forEach(H,void 0)};
zM.prototype.removeChild=function(f,H){if(f){var v=typeof f==="string"?f:f.getId();f=this.childIndex_&&v?_.QA.get(this.childIndex_,v)||null:null;v&&f&&(_.QA.remove(this.childIndex_,v),_.iH(this.children_,f),H&&(f.exitDocument(),f.JSC$10132_element_&&_.U1(f.JSC$10132_element_)),blo(f,null))}if(!f)throw Error("eb");return f};_.f8(kEN,ilN);_.f8(TH_,ilN);var THh;_.QA.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var whv=function(f,H){H?f.setAttribute("role",H):f.removeAttribute("role")},rK=function(f,H,v){Array.isArray(v)&&(v=v.join(" "));
var t="aria-"+H;v===""||v==void 0?(THh||(v={},THh=(v.atomic=!1,v.autocomplete="none",v.dropeffect="none",v.haspopup=!1,v.live="off",v.multiline=!1,v.multiselectable=!1,v.orientation="vertical",v.readonly=!1,v.relevant="additions text",v.required=!1,v.sort="none",v.busy=!1,v.disabled=!1,v.hidden=!1,v.invalid="false",v)),v=THh,H in v?f.setAttribute(t,v[H]):f.removeAttribute(t)):f.setAttribute(t,v)};var qkh;_.KZ=function(f,H,v){_.Sg.call(this);this.target=f;this.handle=H||f;this.limits=v||new rQ(NaN,NaN,NaN,NaN);this.JSC$10137_document_=_.Gf(f);this.JSC$10137_eventHandler_=new _.Y1(this);_.jz(this,this.JSC$10137_eventHandler_);this.deltaY=this.deltaX=this.startY=this.startX=this.screenY=this.screenX=this.clientY=this.clientX=0;this.enabled_=!0;this.dragging_=!1;this.hysteresisDistanceSquared_=0;_.r9(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=qkh};
_.f8(_.KZ,_.Sg);qkh=_.Mr.document&&_.Mr.document.documentElement&&!!_.Mr.document.documentElement.setCapture&&!!_.Mr.document.releaseCapture;_.fUH=function(f,H){f.hysteresisDistanceSquared_=Math.pow(H,2)};
_.R=_.KZ.prototype;_.R.setEnabled=function(f){this.enabled_=f};
_.R.disposeInternal=function(){_.KZ.superClass_.disposeInternal.call(this);_.IS(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10137_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10137_document_.releaseCapture();this.handle=this.target=null};
_.R.startDrag=function(f){var H=f.type=="mousedown";if(!this.enabled_||this.dragging_||H&&(f.event_.button!=0||_.gss&&f.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new DY("start",this,f.clientX,f.clientY,f)))this.dragging_=!0,H&&f.preventDefault();else return;else H&&f.preventDefault();H=this.JSC$10137_document_;var v=H.documentElement,t=!this.useSetCapture_;this.JSC$10137_eventHandler_.listen(H,["touchmove","mousemove"],this.handleMove_,
{capture:t,passive:!1});this.JSC$10137_eventHandler_.listen(H,["touchend","mouseup"],this.endDrag,t);this.useSetCapture_?(v.setCapture(!1),this.JSC$10137_eventHandler_.listen(v,"losecapture",this.endDrag)):this.JSC$10137_eventHandler_.listen(PQ(H),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10137_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,t);this.clientX=this.startX=f.clientX;this.clientY=this.startY=f.clientY;this.screenX=f.screenX;this.screenY=f.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=xO(BQ(this.JSC$10137_document_))}};
_.R.endDrag=function(f,H){this.JSC$10137_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10137_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new DY("end",this,f.clientX,f.clientY,f,HNo(this,this.deltaX),vXM(this,this.deltaY),H||f.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.R.handleMove_=function(f){if(this.enabled_){var H=f.clientX-this.clientX,v=f.clientY-this.clientY;this.clientX=f.clientX;this.clientY=f.clientY;this.screenX=f.screenX;this.screenY=f.screenY;if(!this.dragging_){var t=this.startX-this.clientX,M=this.startY-this.clientY;if(t*t+M*M>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new DY("start",this,f.clientX,f.clientY,f)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(f);return}}v=tkh(this,H,v);H=v.x;v=v.y;this.dragging_&&this.dispatchEvent(new DY("beforedrag",
this,f.clientX,f.clientY,f,H,v))&&(MkZ(this,f,H,v),f.preventDefault())}};
var tkh=function(f,H,v){var t=xO(BQ(f.JSC$10137_document_));H+=t.x-f.pageScroll.x;v+=t.y-f.pageScroll.y;f.pageScroll=t;f.deltaX+=H;f.deltaY+=v;return new _.al(HNo(f,f.deltaX),vXM(f,f.deltaY))};
_.KZ.prototype.onScroll_=function(f){var H=tkh(this,0,0);f.clientX=this.clientX;f.clientY=this.clientY;MkZ(this,f,H.x,H.y)};
var MkZ=function(f,H,v,t){f.target.style.left=v+"px";f.target.style.top=t+"px";f.dispatchEvent(new DY("drag",f,H.clientX,H.clientY,H,v,t))},HNo=function(f,H){var v=f.limits;
f=isNaN(v.left)?null:v.left;v=isNaN(v.width)?0:v.width;return Math.min(f!=null?f+v:Infinity,Math.max(f!=null?f:-Infinity,H))},vXM=function(f,H){var v=f.limits;
f=isNaN(v.top)?null:v.top;v=isNaN(v.height)?0:v.height;return Math.min(f!=null?f+v:Infinity,Math.max(f!=null?f:-Infinity,H))};
_.KZ.prototype.isDragging=function(){return this.dragging_};
var DY=function(f,H,v,t,M,h,y){_.$R.call(this,f);this.clientX=v;this.clientY=t;this.browserEvent=M;this.left=h!==void 0?h:H.deltaX;this.top=y!==void 0?y:H.deltaY};
_.f8(DY,_.$R);var ov=function(f){this.JSC$10144_map_=new Map;var H=arguments.length;if(H>1){if(H%2)throw Error("ka");for(var v=0;v<H;v+=2)this.set(arguments[v],arguments[v+1])}else f&&this.addAll(f)};
_.R=ov.prototype;_.R.getCount=function(){return this.JSC$10144_map_.size};
_.R.getValues=function(){return Array.from(this.JSC$10144_map_.values())};
_.R.getKeys=function(){return Array.from(this.JSC$10144_map_.keys())};
_.R.containsKey=function(f){return this.JSC$10144_map_.has(f)};
_.R.containsValue=function(f){return this.getValues().some(function(H){return H==f})};
_.R.equals=function(f,H){var v=this;H=H===void 0?function(t,M){return t===M}:H;
return this===f?!0:this.JSC$10144_map_.size!=f.getCount()?!1:this.getKeys().every(function(t){return H(v.JSC$10144_map_.get(t),f.get(t))})};
_.R.isEmpty=function(){return this.JSC$10144_map_.size==0};
_.R.clear=function(){this.JSC$10144_map_.clear()};
_.R.remove=function(f){return this.JSC$10144_map_.delete(f)};
_.R.get=function(f,H){return this.JSC$10144_map_.has(f)?this.JSC$10144_map_.get(f):H};
_.R.set=function(f,H){this.JSC$10144_map_.set(f,H);return this};
_.R.addAll=function(f){if(f instanceof ov){f=_.V(f.JSC$10144_map_);for(var H=f.next();!H.done;H=f.next()){var v=_.V(H.value);H=v.next().value;v=v.next().value;this.JSC$10144_map_.set(H,v)}}else if(f)for(f=_.V(Object.entries(f)),H=f.next();!H.done;H=f.next())v=_.V(H.value),H=v.next().value,v=v.next().value,this.JSC$10144_map_.set(H,v)};
_.R.forEach=function(f,H){var v=this;H=H===void 0?this:H;this.JSC$10144_map_.forEach(function(t,M){return f.call(H,t,M,v)})};
_.R.clone=function(){return new ov(this)};(function(){for(var f=["ms","moz","webkit","o"],H,v=0;H=f[v]&&!_.Mr.requestAnimationFrame;++v)_.Mr.requestAnimationFrame=_.Mr[H+"RequestAnimationFrame"],_.Mr.cancelAnimationFrame=_.Mr[H+"CancelAnimationFrame"]||_.Mr[H+"CancelRequestAnimationFrame"];if(!_.Mr.requestAnimationFrame){var t=0;_.Mr.requestAnimationFrame=function(M){var h=(new Date).getTime(),y=Math.max(0,16-(h-t));t=h+y;return _.Mr.setTimeout(function(){M(h+y)},y)};
_.Mr.cancelAnimationFrame||(_.Mr.cancelAnimationFrame=function(M){clearTimeout(M)})}})();
var hm_=[[],[]],RmM=0,Vkb=!1,yaM=0,mRh=function(f,H){var v=yaM++,t={measureTask:{id:v,fn:f.measure,context:H},mutateTask:{id:v,fn:f.mutate,context:H},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(t.args||(t.args=[]),t.args.length=0,t.args.push.apply(t.args,arguments),t.args.push(t.state)):t.args&&t.args.length!=0?(t.args[0]=t.state,t.args.length=1):t.args=[t.state];t.isScheduled||(t.isScheduled=!0,hm_[RmM].push(t));Vkb||(Vkb=!0,window.requestAnimationFrame(Y0v))}},Y0v=
function(){Vkb=!1;
var f=hm_[RmM],H=f.length;RmM=(RmM+1)%2;for(var v,t=0;t<H;++t){v=f[t];var M=v.measureTask;v.isScheduled=!1;M.fn&&M.fn.apply(M.context,v.args)}for(t=0;t<H;++t)v=f[t],M=v.mutateTask,v.isScheduled=!1,M.fn&&M.fn.apply(M.context,v.args),v.state={};f.length=0};var $R9=_.EH(["about:blank"]),W$M=_.EH(["javascript:undefined"]),ONv=_.gr($R9);_.re(ONv);var gXv=_.gr(W$M);_.re(gXv);var nZ=function(f){_.Sg.call(this);this.JSC$10150_element_=f;this.listenKeyIn_=_.r9(this.JSC$10150_element_,"focus",this,!0);this.listenKeyOut_=_.r9(this.JSC$10150_element_,"blur",this,!0)};
_.f8(nZ,_.Sg);nZ.prototype.handleEvent=function(f){var H=new _.WU(f.event_);H.type=f.type=="focusin"||f.type=="focus"?"focusin":"focusout";this.dispatchEvent(H)};
nZ.prototype.disposeInternal=function(){nZ.superClass_.disposeInternal.call(this);BK(this.listenKeyIn_);BK(this.listenKeyOut_);delete this.JSC$10150_element_};var IUb=function(f,H){this.JSC$10153_element_=f;this.JSC$10153_dom_=H};var pZ=function(f,H){zM.call(this,H);this.useIframeMask_=!!f;this.lastFocus_=null;this.resizeBackgroundTask_=mRh({mutate:this.resizeBackground_},this);mRh({mutate:this.updateModalAndBackground_},this)};
_.f8(pZ,zM);_.R=pZ.prototype;_.R.focusHandler_=null;_.R.visible_=!1;_.R.bgEl_=null;_.R.bgIframeEl_=null;_.R.tabCatcherElement_=null;_.R.backwardTabWrapInProgress_=!1;_.R.getCssClass=function(){return"goog-modalpopup"};
_.R.getBackgroundElement=function(){return this.bgEl_};
_.R.JSC$10134_createDom=function(){pZ.superClass_.JSC$10134_createDom.call(this);var f=this.getElement(),H=I3(this.getCssClass()).split(" ");uz(f,H);f.tabIndex=0;_.kl(f,!1);S0b(this);dRM(this)};
var S0b=function(f){if(f.useIframeMask_&&!f.bgIframeEl_){var H=f.JSC$10132_dom_.JSC$9319_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.T1(H,ONv);f.bgIframeEl_=H;f.bgIframeEl_.className=f.getCssClass()+"-bg";_.kl(f.bgIframeEl_,!1);Yxh(f.bgIframeEl_,0)}f.bgEl_||(f.bgEl_=f.JSC$10132_dom_.JSC$9319_createDom("DIV",f.getCssClass()+"-bg"),_.kl(f.bgEl_,!1))},dRM=function(f){f.tabCatcherElement_||(f.tabCatcherElement_=f.JSC$10132_dom_.createElement("SPAN"),_.kl(f.tabCatcherElement_,
!1),f.tabCatcherElement_.tabIndex=0,f.tabCatcherElement_.style.position="absolute")};
_.R=pZ.prototype;_.R.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.R.canDecorate=function(f){return!!f&&f.tagName=="DIV"};
_.R.decorateInternal=function(f){pZ.superClass_.decorateInternal.call(this,f);f=I3(this.getCssClass()).split(" ");uz(this.getElement(),f);S0b(this);dRM(this);this.getElement().tabIndex=0;_.kl(this.getElement(),!1)};
_.R.enterDocument=function(){this.bgIframeEl_&&_.x0(this.bgIframeEl_,this.getElement());_.x0(this.bgEl_,this.getElement());pZ.superClass_.enterDocument.call(this);_.B4(this.tabCatcherElement_,this.getElement());this.focusHandler_=new nZ(this.JSC$10132_dom_.JSC$9317_document_);F4(this).listen(this.focusHandler_,"focusin",this.onFocus);jPn(this,!1)};
_.R.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.Mj(this.focusHandler_);pZ.superClass_.exitDocument.call(this);_.U1(this.bgIframeEl_);_.U1(this.bgEl_);_.U1(this.tabCatcherElement_)};
_.R.setVisible=function(f){if(f!=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_&&jPn(this,f),f){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10132_dom_.JSC$9317_document_.activeElement}catch(M){}this.updateModalAndBackground_();F4(this).listen(this.JSC$10132_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10132_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);sPg(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)x6(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){F4(this).unlisten(this.JSC$10132_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10132_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)x6(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var H=this.JSC$10132_dom_,v=H.JSC$9317_document_.body,t=H.JSC$9317_document_.activeElement||v;if(!this.lastFocus_||this.lastFocus_==v){this.lastFocus_=null;break a}(t==v||H.contains(this.getElement(),t))&&this.lastFocus_.focus()}catch(M){}this.lastFocus_=
null}}};
var jPn=function(f,H){f.modalAriaVisibilityHelper_||(f.modalAriaVisibilityHelper_=new IUb(f.JSC$10132_element_,f.JSC$10132_dom_));f=f.modalAriaVisibilityHelper_;if(H){f.hiddenElements_||(f.hiddenElements_=[]);H=f.JSC$10153_dom_.getChildren(f.JSC$10153_dom_.JSC$9317_document_.body);for(var v=0;v<H.length;v++){var t=H[v],M;if(M=t!=f.JSC$10153_element_)M=t.getAttribute("aria-hidden"),M=!(M==null||M==void 0?0:String(M));M&&(rK(t,"hidden",!0),f.hiddenElements_.push(t))}}else if(f.hiddenElements_){for(H=
0;H<f.hiddenElements_.length;H++)f.hiddenElements_[H].removeAttribute("aria-hidden");f.hiddenElements_=null}};
pZ.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var sPg=function(f,H){f.bgIframeEl_&&_.kl(f.bgIframeEl_,H);f.bgEl_&&_.kl(f.bgEl_,H);_.kl(f.getElement(),H);_.kl(f.tabCatcherElement_,H)};
_.R=pZ.prototype;_.R.onShow=function(){this.dispatchEvent("show")};
_.R.onHide=function(){sPg(this,!1);this.dispatchEvent("hide")};
_.R.isVisible=function(){return this.visible_};
_.R.focus=function(){this.focusElement_()};
_.R.resizeBackground_=function(){this.bgIframeEl_&&_.kl(this.bgIframeEl_,!1);this.bgEl_&&_.kl(this.bgEl_,!1);var f=this.JSC$10132_dom_.JSC$9317_document_;var H=_.Ld(PQ(this.JSC$10132_dom_.JSC$9317_document_)||window);var v=Math.max(H.width,Math.max(f.body.scrollWidth,f.documentElement.scrollWidth));f=Math.max(H.height,Math.max(f.body.scrollHeight,f.documentElement.scrollHeight));this.bgIframeEl_&&(_.kl(this.bgIframeEl_,!0),_.hwb(this.bgIframeEl_,v,f));this.bgEl_&&(_.kl(this.bgEl_,!0),_.hwb(this.bgEl_,
v,f))};
_.R.reposition=function(){var f;if(_.Mpn(this.getElement())=="fixed")var H=f=0;else H=xO(this.JSC$10132_dom_),f=H.x,H=H.y;var v=Vpn(this.getElement());var t=_.Ld(PQ(this.JSC$10132_dom_.JSC$9317_document_)||window);f=Math.max(f+t.width/2-v.width/2,0);H=Math.max(H+t.height/2-v.height/2,0);oH(this.getElement(),f,H);oH(this.tabCatcherElement_,f,H)};
_.R.onFocus=function(f){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():f.target==this.tabCatcherElement_&&Je(this.focusElement_,0,this)};
_.R.focusElement_=function(){try{this.getElement().focus()}catch(f){}};
_.R.disposeInternal=function(){_.Mj(this.popupShowTransition_);this.popupShowTransition_=null;_.Mj(this.popupHideTransition_);this.popupHideTransition_=null;_.Mj(this.bgShowTransition_);this.bgShowTransition_=null;_.Mj(this.bgHideTransition_);this.bgHideTransition_=null;pZ.superClass_.disposeInternal.call(this)};var P_=function(f,H,v){pZ.call(this,H,v);this.JSC$10163_class_=f||"modal-dialog";this.buttons_=(new Qy).addButton(ZNv,!0).addButton(Ja9,!1,!0)};
_.f8(P_,pZ);_.R=P_.prototype;_.R.escapeToCancel_=!0;_.R.hasTitleCloseButton_=!0;_.R.modal_=!0;_.R.draggable_=!0;_.R.backgroundElementOpacity_=.5;_.R.title_="";_.R.JSC$10165_dragger_=null;_.R.JSC$10165_disposeOnHide_=!1;_.R.titleEl_=null;_.R.titleTextEl_=null;_.R.titleTextId_=null;_.R.titleCloseEl_=null;_.R.contentEl_=null;_.R.buttonEl_=null;_.R.getCssClass=function(){return this.JSC$10163_class_};
_.R.setTitle=function(f){this.title_=f;this.titleTextEl_&&_.F_(this.titleTextEl_,f)};
_.R.getTitle=function(){return this.title_};
_.R.getContent=function(){return""};
_.R.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var lUh=function(f){f.getElement()||f.render();return f.getElement()};
P_.prototype.getBackgroundElement=function(){this.getElement()||this.render();return P_.superClass_.getBackgroundElement.call(this)};
var URo=function(f,H){f.backgroundElementOpacity_=H;f.getElement()&&(H=f.getBackgroundElement())&&Yxh(H,f.backgroundElementOpacity_)};
P_.prototype.setDraggable=function(f){this.draggable_=f;em_(this,f&&this.inDocument_)};
P_.prototype.handleDrag=function(){};
var em_=function(f,H){var v=I3(f.JSC$10163_class_+"-title-draggable").split(" ");f.getElement()&&(H?uz(f.titleEl_,v):w_Z(f.titleEl_,v));H&&!f.JSC$10165_dragger_?(H=new _.KZ(f.getElement(),f.titleEl_),f.JSC$10165_dragger_=H,uz(f.titleEl_,v),_.r9(f.JSC$10165_dragger_,"start",f.setDraggerLimits_,!1,f),_.r9(f.JSC$10165_dragger_,"drag",f.handleDrag,!1,f)):!H&&f.JSC$10165_dragger_&&(f.JSC$10165_dragger_.dispose(),f.JSC$10165_dragger_=null)};
_.R=P_.prototype;
_.R.JSC$10134_createDom=function(){P_.superClass_.JSC$10134_createDom.call(this);var f=this.getElement(),H=this.JSC$10132_dom_;this.titleTextId_=this.getId();var v=this.getId()+".contentEl";this.titleEl_=H.JSC$9319_createDom("DIV",this.JSC$10163_class_+"-title",this.titleTextEl_=H.JSC$9319_createDom("SPAN",{className:this.JSC$10163_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=H.JSC$9319_createDom("SPAN",this.JSC$10163_class_+"-title-close"));ahg(f,this.titleEl_,this.contentEl_=
H.JSC$9319_createDom("DIV",{className:this.JSC$10163_class_+"-content",id:v}),this.buttonEl_=H.JSC$9319_createDom("DIV",this.JSC$10163_class_+"-buttons"));whv(this.titleTextEl_,"heading");whv(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;rK(this.titleCloseEl_,"label","Close");whv(f,"dialog");rK(f,"labelledby",this.titleTextId_||"");_.kl(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(f=this.buttons_,f.JSC$10166_element_=this.buttonEl_,f.render());_.kl(this.buttonEl_,!!this.buttons_);
URo(this,this.backgroundElementOpacity_)};
_.R.decorateInternal=function(f){P_.superClass_.decorateInternal.call(this,f);f=this.getElement();var H=this.JSC$10163_class_+"-content";this.contentEl_=ZD(document,null,H,f)[0];this.contentEl_||(this.contentEl_=this.JSC$10132_dom_.JSC$9319_createDom("DIV",H),f.appendChild(this.contentEl_));H=this.JSC$10163_class_+"-title";var v=this.JSC$10163_class_+"-title-text",t=this.JSC$10163_class_+"-title-close";(this.titleEl_=ZD(document,null,H,f)[0])?(this.titleTextEl_=ZD(document,null,v,this.titleEl_)[0],
this.titleCloseEl_=ZD(document,null,t,this.titleEl_)[0]):(this.titleEl_=this.JSC$10132_dom_.JSC$9319_createDom("DIV",H),f.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=qbn(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.ls("SPAN",{className:v,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;rK(f,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10132_dom_.JSC$9319_createDom("SPAN",t),this.titleEl_.appendChild(this.titleCloseEl_));_.kl(this.titleCloseEl_,this.hasTitleCloseButton_);H=this.JSC$10163_class_+"-buttons";(this.buttonEl_=ZD(document,null,H,f)[0])?(this.buttons_=new Qy(this.JSC$10132_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10132_dom_.JSC$9319_createDom("DIV",H),f.appendChild(this.buttonEl_),this.buttons_&&(f=this.buttons_,f.JSC$10166_element_=this.buttonEl_,f.render()),_.kl(this.buttonEl_,
!!this.buttons_));URo(this,this.backgroundElementOpacity_)};
_.R.enterDocument=function(){P_.superClass_.enterDocument.call(this);F4(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);F4(this).listen(this.buttonEl_,"click",this.onButtonClick_);em_(this,this.draggable_);F4(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var f=this.getElement();whv(f,"dialog");this.titleTextEl_.id!==""&&rK(f,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){f=this.JSC$10132_dom_;
var H=this.getBackgroundElement();f.removeNode(this.bgIframeEl_);f.removeNode(H)}this.isVisible()&&jPn(this,!1)}};
_.R.exitDocument=function(){this.isVisible()&&this.setVisible(!1);em_(this,!1);P_.superClass_.exitDocument.call(this)};
_.R.setVisible=function(f){f!=this.isVisible()&&(this.inDocument_||this.render(),P_.superClass_.setVisible.call(this,f))};
_.R.onShow=function(){P_.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.R.onHide=function(){P_.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10165_disposeOnHide_&&this.dispose()};
_.R.setDraggerLimits_=function(){var f=this.JSC$10132_dom_.JSC$9317_document_,H=_.Ld(PQ(f)||window),v=Math.max(f.body.scrollWidth,H.width);f=Math.max(f.body.scrollHeight,H.height);var t=Vpn(this.getElement());_.Mpn(this.getElement())=="fixed"?this.JSC$10165_dragger_.limits=new rQ(0,0,Math.max(0,H.width-t.width),Math.max(0,H.height-t.height)):this.JSC$10165_dragger_.limits=new rQ(0,0,v-t.width,f-t.height)};
_.R.onTitleCloseClick_=function(){L$g(this)};
var L$g=function(f){if(f.hasTitleCloseButton_){var H=f.buttons_,v=H&&H.cancelButton_;v?(H=H.get(v),f.dispatchEvent(new uN(v,H))&&f.setVisible(!1)):f.setVisible(!1)}},xR_=function(f){f.hasTitleCloseButton_=!1;
f.titleCloseEl_&&_.kl(f.titleCloseEl_,f.hasTitleCloseButton_)};
P_.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;P_.superClass_.disposeInternal.call(this)};
P_.prototype.onButtonClick_=function(f){a:{for(f=f.target;f!=null&&f!=this.buttonEl_;){if(f.tagName=="BUTTON")break a;f=f.parentNode}f=null}if(f&&!f.disabled){f=f.name;var H=this.buttons_.get(f);this.dispatchEvent(new uN(f,H))&&this.setVisible(!1)}};
P_.prototype.onKey_=function(f){var H=!1,v=!1,t=this.buttons_,M=f.target;if(f.type=="keydown")if(this.escapeToCancel_&&f.keyCode==27){var h=t&&t.cancelButton_;M=M.tagName=="SELECT"&&!M.disabled;h&&!M?(v=!0,H=t.get(h),H=this.dispatchEvent(new uN(h,H))):M||(H=!0)}else{if(f.keyCode==9&&f.shiftKey&&M==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(S){}Je(this.resetBackwardTabWrap_,0,this)}}else if(f.keyCode==13){if(M.tagName=="BUTTON"&&!M.disabled)h=M.name;
else if(M==this.titleCloseEl_)L$g(this);else if(t){var y=t.defaultButton_,m;if(m=y)a:{m=ez("BUTTON",t.JSC$10166_element_);for(var W,I=0;W=m[I];I++)if(W.name==y||W.id==y){m=W;break a}m=null}M=(M.tagName=="TEXTAREA"||M.tagName=="SELECT"||M.tagName=="A")&&!M.disabled;!m||m.disabled||M||(h=y)}h&&t&&(v=!0,H=this.dispatchEvent(new uN(h,String(t.get(h)))))}else M!=this.titleCloseEl_||f.keyCode!=32&&f.key!=" "||L$g(this);if(H||v)f.stopPropagation(),f.preventDefault();H&&this.setVisible(!1)};
var uN=function(f,H){this.type="dialogselect";this.key=f;this.caption=H};
_.f8(uN,_.$R);var Qy=function(f){ov.call(this);f||BQ();this.cancelButton_=this.JSC$10166_element_=this.defaultButton_=null};
_.f8(Qy,ov);_.R=Qy.prototype;_.R.clear=function(){ov.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.R.set=function(f,H,v,t){ov.prototype.set.call(this,f,H);v&&(this.defaultButton_=f);t&&(this.cancelButton_=f);return this};
_.R.addButton=function(f,H,v){return this.set(f.key,f.caption,H,v)};
_.R.render=function(){if(this.JSC$10166_element_){_.Me(this.JSC$10166_element_,Y0E);var f=BQ(this.JSC$10166_element_);this.forEach(function(H,v){H=f.JSC$9319_createDom("BUTTON",{name:v},H);v==this.defaultButton_&&(H.className="goog-buttonset-default");this.JSC$10166_element_.appendChild(H)},this)}};
_.R.decorate=function(f){if(f&&f.nodeType==1){this.JSC$10166_element_=f;f=ez("BUTTON",this.JSC$10166_element_);for(var H,v,t,M=0;H=f[M];M++)if(v=H.name||H.id,t=qbn(H)||H.value,v){var h=M==0;this.set(v,t,h,H.name=="cancel");h&&_.vn(H,"goog-buttonset-default")}}};
_.R.getElement=function(){return this.JSC$10166_element_};
var ZNv={key:"ok",caption:"OK"},Ja9={key:"cancel",caption:"Cancel"},Bkb={key:"yes",caption:"Yes"},zmh={key:"no",caption:"No"},F$C={key:"save",caption:"Save"},rav={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new Qy).addButton(ZNv,!0,!0),(new Qy).addButton(ZNv,!0).addButton(Ja9,!1,!0),(new Qy).addButton(Bkb,!0).addButton(zmh,!1,!0),(new Qy).addButton(Bkb).addButton(zmh,!0).addButton(Ja9,!1,!0),(new Qy).addButton(rav).addButton(F$C).addButton(Ja9,!0,!0));_.f8(whE,P_);_.f8(qkB,GO);var K$M=_.EH(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),DRo=_.EH(["//apis.google.com/js/rpc.js"]),yaR=_.gr(K$M),Vk5=_.gr(DRo),HNR=null;var C9=function(f,H){_.Sg.call(this);this.JSC$10175_element_=f;f=_.wk(this.JSC$10175_element_)?this.JSC$10175_element_:this.JSC$10175_element_?this.JSC$10175_element_.body:null;this.isRtl_=!!f&&_.mxM(f);this.listenKey_=_.r9(this.JSC$10175_element_,_.hZ?"DOMMouseScroll":"mousewheel",this,H)};
_.f8(C9,_.Sg);C9.prototype.handleEvent=function(f){var H=0,v=0,t=f.event_;t.type=="mousewheel"?(f=oXa(-t.wheelDelta),t.wheelDeltaX!==void 0?(H=oXa(-t.wheelDeltaX),v=oXa(-t.wheelDeltaY)):v=f):(f=t.detail,f>100?f=3:f<-100&&(f=-3),t.axis!==void 0&&t.axis===t.HORIZONTAL_AXIS?H=f:v=f);typeof this.maxDeltaX_==="number"&&(H=_.FL(H,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(v=_.FL(v,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(H=-H);H=new nXn(f,t,H,v);this.dispatchEvent(H)};
var oXa=function(f){return _.Rp&&(_.gss||SK3)&&f%40!=0?f:f/40};
C9.prototype.disposeInternal=function(){C9.superClass_.disposeInternal.call(this);BK(this.listenKey_);this.listenKey_=null};
var nXn=function(f,H,v,t){_.WU.call(this,H);this.type="mousewheel";this.detail=f;this.deltaX=v;this.deltaY=t};
_.f8(nXn,_.WU);_.iw=function(f){var H="instance_";if(f.instance_&&f.hasOwnProperty(H))return f.instance_;H=new f;return f.instance_=H};var RmR;var p8b=_.EH(["https://about:blank"]),QP_=_.EH(['javascript:""']),uB9=_.EH(["about:blank"]);_.f8(TO,whE);_.R=TO.prototype;_.R.JSC$10183_url_="";_.R.JSC$10183_iframe_=null;_.R.iframeLoaded_=!1;_.R.loadedFired_=!1;_.R.callback_=function(){};
_.R.enterDocument=function(){TO.superClass_.enterDocument.call(this);MkT(this.getBackgroundElement(),F4(this))};
_.R.render=function(f){var H=this;TO.superClass_.render.call(this,f);this.useGapi_?umr(this.iframeManager_,window).then(function(){return aUZ(H)}).then(null,function(){H.callback_({action:"error"})}):P7b(this)};
var aUZ=function(f){var H=f.JSC$10132_dom_.JSC$9319_createDom("div",["picker-dialog-content","picker-frame"]);_.kl(H,!1);f.getContentElement().appendChild(H);return ayo(f.iframeManager_,H,function(v){var t=MVa(v["iframe-command"]);switch(t.getCommand()){case 1:v=f.callback_;t=_.V$(t,is,2);var M="";switch(t.getStatus()){case 2:M="cancel";break;case 1:M="picked";break;case 3:M="error"}var h=_.VX(t,ZV,2,_.yX(G0R));t=h.length===0?{action:M}:j2o(h,M,_.V$(t,Ho_,7));v.call(f,t);f.setVisible(!1);break;case 4:xR_(f);
f.callback_({action:"loaded"});break;case 7:case 8:v=f.callback_;a:{M=t.getCommand();h=_.V$(t,is,2);switch(M){case 7:M="uploadScheduled";break;case 8:M="uploadStateChange";break;default:t={};break a}t=_.VX(h,ZV,2,_.yX(G0R));if(t.length===0)t={action:M};else{var y=_.V$(h,Ho_,7);h=y&&_.L8(y,1);y=V$M(y);t=mJH(t,M,h,y)}}v.call(f,t)}},f.JSC$10183_url_,f.targetId_,f.rpcToken_).then(function(v){f.JSC$10183_iframe_=v.getIframeEl();
Gjh(f);_.kl(f.JSC$10183_iframe_.parentElement,!0);_.vn(f.getElement(),"picker-dialog");C7Z(f);return v})},P7b=function(f){f.JSC$10183_iframe_=f.JSC$10132_dom_.JSC$9319_createDom("IFRAME",{id:f.targetId_,
name:f.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.T1(f.JSC$10183_iframe_,EXa(f));_.vn(f.getElement(),"picker-dialog");f.getContentElement().appendChild(f.JSC$10183_iframe_);F4(f).listen(f.JSC$10183_iframe_,"load",function(){return void Gjh(f)});
f.JSC$10183_iframe_.src=f.JSC$10183_url_;C7Z(f)},car=function(f){Nk_(f,(0,_.FH)(function(H){H.setAuthToken(this.targetId_,this.rpcToken_)},f))},C7Z=function(f){var H=_.bS(_.Ax(f.JSC$10183_url_),"title");
H&&f.setTitle(H)},EXa=function(f){return _.$rT("Internet Explorer")>=7&&_.VR(f.JSC$10183_url_,"https")?_.gr(p8b):_.My?_.gr(QP_):_.gr(uB9)},Gjh=function(f){car(f);
f.iframeLoaded_=!0;f.JSC$10183_iframe_.tabIndex=0;f.isVisible()&&f.focus()};
TO.prototype.handleKeydown_=function(f){f.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),f.stopPropagation(),f.preventDefault())};
var Nk_=function(f,H){var v=f.JSC$10181_gadgetsDomHelper_;vXR(function(){H(v.getWindow().gadgets.rpc)},v)};
TO.prototype.setUrl=function(f){f=_.iS(new _.qC(f),"rpcService",this.targetId_);_.iS(f,"rpctoken",this.rpcToken_);_.wm(f,"rpctoken="+this.rpcToken_);_.Ae(f,"https");this.JSC$10183_url_=f.toString();this.JSC$10183_iframe_&&(this.JSC$10183_iframe_.src=this.JSC$10183_url_)};
var X8g=function(f,H){f.callback_=H;Nk_(f,(0,_.FH)(function(v){v.register(this.targetId_,(0,_.FH)(this.handlePickerAction_,this))},f))};
TO.prototype.handlePickerAction_=function(f){var H=f.action;H=="loaded"&&(this.loadedFired_=!0,Aag(this,new TH_(this.isVisible())),bNv(this),xR_(this),F4(this).unlisten(this.JSC$10132_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10183_iframe_.tabIndex=0);H!="picked"&&H!="cancel"||this.setVisible(!1);this.callback_(f)};
var bNv=function(f){f.JSC$10183_appId_&&Aag(f,new kEN(f.JSC$10183_appId_,window.location.protocol+"//"+window.location.host))};
TO.prototype.setRelayUrl=function(f){Nk_(this,(0,_.FH)(function(H){H.setRelayUrl(this.targetId_,f)},this))};
var Aag=function(f,H){f.useGapi_&&NHn(H,f.iframeManager_).then(null,function(){f.callback_({action:"error"})});
Nk_(f,(0,_.FH)(function(v){v.call(this.targetId_,"picker",null,H)},f))};
TO.prototype.resizePicker_=function(){var f=PQ(this.JSC$10132_dom_.JSC$9317_document_)||window;if(_.bS(_.Ax(this.JSC$10183_url_),"ignoreLimits")=="true")f=new _.eF(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.bS(_.Ax(this.JSC$10183_url_),"shadeDialog")=="true"){var H=lUh(this);H=$xa(H);var v=_.Ld(f);f=v.width-80;v=v.height-40;H&&(f-=H.left?H.left:0,f-=H.right?H.right:0,v-=H.top?H.top:0,v-=H.bottom?H.bottom:0);f=new _.eF(f>0?f:0,v>0?v:0)}else(H=this.preferredDialogWidth_)?(H=Math.max(320,
Math.min(1051,H)),(v=this.preferredDialogHeight_)||(v=_.Ld(f).height*.85),v=Math.max(480,Math.min(650,v))):(H=_.Ld(f),v=H.width*.618,v=v<H.height?Math.round(Math.max(480,Math.min(650,v*.85))):Math.round(Math.max(480,Math.min(650,H.height*.85))),H=Math.round(v/.618)),f=_.Ld(f),H=Math.min(H,Math.max(f.width,320)),v=Math.min(v,Math.max(f.height,480)),f=new _.eF(H,v);_.hwb(this.getContentElement(),f);this.reposition()};
TO.prototype.reposition=function(){if(_.bS(_.Ax(this.JSC$10183_url_),"shadeDialog")=="true"){var f=Vpn(this.getElement()),H=_.Ld(this.JSC$10132_dom_.getWindow());f=Math.floor(H.width/2-f.width/2);H=lUh(this);if(H=$xa(H)){var v=H.left?H.left:0;v+=H.right?H.right:0;f=Math.floor(f-v/2)}f=f>0?f:0;H=xO(this.JSC$10132_dom_).y;oH(this.getElement(),f,H)}else TO.superClass_.reposition.call(this)};
TO.prototype.setVisible=function(f){if(f!=this.isVisible()&&this.autoSizeDialog_){var H=this.JSC$10132_dom_.getWindow();f?(this.resizePicker_(),F4(this).listen(H,"resize",this.resizePicker_),this.iframeLoaded_||F4(this).listen(H,"keydown",this.handleKeydown_)):(F4(this).unlisten(H,"resize",this.resizePicker_),this.iframeLoaded_||F4(this).unlisten(H,"keydown",this.handleKeydown_))}TO.superClass_.setVisible.call(this,f);Aag(this,new TH_(f))};
TO.prototype.focus=function(){TO.superClass_.focus.call(this);if(this.JSC$10183_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10183_iframe_.focus()}catch(f){}};var uY=function(f,H){H=H===void 0?TO:H;GO.call(this,f);this.pickerConstructor=H;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(f=window.location.origin)||(f=window.location.protocol+"//"+window.location.host);f&&this.urlParamMap_.set("origin",f);this.postProcessors_=[]};
_.e(uY,qkB);uY.prototype.JSC$10188_disposeOnHide_=!1;
uY.prototype.build=function(){this.JSC$10089_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10089_appId_);this.getRelayUrl()||this.setRelayUrl(_.kR(_.wm(_.TU(_.Ax(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var f=new this.pickerConstructor(iNC(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);f.JSC$10165_disposeOnHide_=this.JSC$10188_disposeOnHide_;
f.JSC$10183_appId_=this.JSC$10089_appId_;f.loadedFired_&&bNv(f);X8g(f,this.callback_);return f};
var kjZ=function(f){f.urlParamMap_.set("multiselectEnabled","true");return f};
_.R=uY.prototype;_.R.getHeight=function(){return this.dialogHeight_};
_.R.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.R.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.R.getTitle=function(){return this.urlParamMap_.get("title")};
_.R.getWidth=function(){return this.dialogWidth_};
var Tkb=function(f){f.JSC$10188_disposeOnHide_=void 0;return f};
uY.prototype.setRelayUrl=function(f){this.urlParamMap_.set("parent",f);return this};
var w8n=function(f,H){f.urlParamMap_.set("selectButtonLabel",H);return f};
uY.prototype.setSize=function(f,H){this.dialogWidth_=f;this.dialogHeight_=H;return this};
uY.prototype.setTitle=function(f){this.urlParamMap_.set("title",f);return this};
var iNC=function(f){f.postProcessors_.length&&f.urlParamMap_.set("pp",JSON.stringify(f.postProcessors_));f.urlParamMap_.set("nav",t$H(f.nav_));var H=new _.qC(f.getBaseUrl());f.urlParamMap_.forEach(function(v,t){_.iS(H,t,v)});
return H};var Hb_=function(f,H){f.name!==void 0?(this.name=f.name,this.code=q0H[f.name]):(this.code=f=f.code,this.name=fKT(f));_.vR.call(this,JNC("%s %s",this.name,H))};
_.f8(Hb_,_.vR);var fKT=function(f){var H=_.QA.findKey(q0H,function(v){return f==v});
if(H===void 0)throw Error("hb`"+f);return H},av={},q0H=(av.AbortError=3,av.EncodingError=5,av.InvalidModificationError=9,av.InvalidStateError=7,av.NotFoundError=1,av.NotReadableError=4,av.NoModificationAllowedError=6,av.PathExistsError=12,av.QuotaExceededError=10,av.SecurityError=2,av.SyntaxError=8,av.TypeMismatchError=11,av);var vFZ=function(f,H){_.$R.call(this,f.type,H);this.event_=f};
_.f8(vFZ,_.$R);var tNM=function(f,H,v){v===void 0&&(v=f.size);return f.slice?f.slice(H,v):null};var $RN=new WeakMap,mRB=function(f,H){f=[f];for(var v=H.length-1;v>=0;--v)f.push(typeof H[v],H[v]);return f.join("\v")};_.ONE(function(){if(!_.Mr.Blob)return!1;var f=new Uint8Array(100);try{var H=new Blob([f])}catch(v){return!1}return H.size!=100?!1:!0});
var MNT=_.ONE(function(){if(!_.Mr.Blob)return!1;var f=new Uint8Array(100);try{var H=new Blob([f])}catch(v){return!1}return tNM(H,0,1)===null?!1:!0});_.Mr.U3bHHf!=null||(_.Mr.U3bHHf=0);_.Mr.U3bHHf++;_.hl9=new WeakMap;_.Rl9=new WeakMap;var IU5={};var f4=void 0;var dRR=Symbol("pb");var raE=tm("WizInjectionContext_Dispatcher");var NTg=Symbol("qb");var jK,US;jK=function(){this.afterRenderCallbacks=null};
_.Ag3=Symbol("rb");US=function(f){this.props=f;this.__unmounted=!1};
US.prototype.didPatch=function(){};
US.prototype.didMount=function(){};
US.prototype.didUnmount=function(){};
US.prototype.didUpdate=function(){};_.L$v=tm("WizInjectionContext_RootElement");var Bk5=tm("WizInjectionContext_AppContext"),xRs=tm("WizInjectionContext_ModelRootElement"),zmB=tm("WizInjectionContext_RendererData"),F$H=tm("WizInjectionContext_InjectingConstructor"),ems=tm("WizInjectionContext_AsyncDeps"),K$R={};var uBN=!1;var C7T={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:yIB,enableLazyTsx:YKR,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:Vjg,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var hm=Object.assign({},{attributes:{},handleError:function(f){throw f;}},C7T);var VNo=Symbol("vb"),lg=Symbol("wb"),KU3=Symbol("xb"),FUR=Symbol("yb"),aKE=Po(function(f){return Rh(f)&&VNo in f});var iNH=Symbol("zb"),PC={},Aav=(PC[iNH]=!0,PC.debugName="[component]",PC.getComponentStack=function(){for(var f=[],H=this;H;)kjT(H)&&f.push(H.debugName),H=H.parent;return f},PC.registerSignal=function(){},PC.registerEffect=function(){},PC);var VL=null,Ym=!1,fKr=1,WM=Symbol("Ab"),j7={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 GM=Symbol("Bb"),CZ=Symbol("Cb"),$m=Symbol("Db"),y7N=Object.assign({},j7,{value:GM,dirty:!0,error:null,equal:Tk5,kind:"computed",producerMustRecompute:function(f){return f.value===GM||f.value===CZ},
producerRecomputeValue:function(f){if(f.value===CZ)throw Error("Z");var H=f.value;f.value=CZ;var v=hlN(f),t=!1;try{var M=f.computation();yL(null);t=H!==GM&&H!==$m&&M!==$m&&f.equal(H,M)}catch(h){M=$m,f.error=h}finally{VNR(f,v)}t?f.value=H:(f.value=M,f.version++)}});var WUR=function(){throw Error();};var gF_=null,m$s=Object.assign({},j7,{equal:Tk5,value:void 0,kind:"signal"});Object.assign({},j7,{value:GM,dirty:!0,error:null,equal:Tk5,kind:"linkedSignal",producerMustRecompute:function(f){return f.value===GM||f.value===CZ},
producerRecomputeValue:function(f){if(f.value===CZ)throw Error("Z");var H=f.value;f.value=CZ;var v=hlN(f);try{var t=f.source();var M=f.computation(t,H===GM||H===$m?void 0:{source:f.sourceValue,value:H});f.sourceValue=t}catch(h){M=$m,f.error=h}finally{VNR(f,v)}H!==GM&&M!==$m&&f.equal(H,M)?f.value=H:(f.value=M,f.version++)}});Object.assign({},j7,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(f){f.schedule!==null&&f.schedule(f.ref)},
hasRun:!1,cleanupFn:function(){}});var SPT=Symbol("Eb"),Ih=Symbol("Fb");var S7=Array.isArray;var LUB;var y79={},B8r=elR(Object.assign({},{consumerAllowSignalWrites:!0},y79)),Zp=elR(Object.assign({},{consumerAllowSignalWrites:!0},y79));var Ug=0,e7=!1,Ev=function(){this.queue=new Set};
Ev.prototype.remove=function(f){this.queue.delete(f)};
Ev.prototype.clear=function(){this.queue.clear()};
var YPZ=function(){Ev.apply(this,arguments)};
_.e(YPZ,Ev);YPZ.prototype.schedule=function(f){this.queue.add(f)};
YPZ.prototype.flush=function(){if(this.queue.size){e7=!0;try{for(var f=_.V(this.queue),H=f.next();!H.done;H=f.next()){var v=H.value;this.queue.delete(v);try{v.run()}catch(t){m$_(t)}}}finally{e7=!1}}};
var $$g=new YPZ,N7=function(){Ev.apply(this,arguments)};
_.e(N7,Ev);var WUo=function(){N7.apply(this,arguments)};
_.e(WUo,N7);WUo.prototype.schedule=function(f){f.hasRun?this.queue.add(f):f.run()};
WUo.prototype.flush=function(){if(this.queue.size)if(hm.flushRenderEffectsDuringRender){var f=this.queue;this.queue=new Set;P$3(f)}else P$3(this.queue)};
var zlB=new WUo,Obh=function(){N7.apply(this,arguments)};
_.e(Obh,N7);Obh.prototype.schedule=function(f){var H=this;return _.Y(function(v){if(v.nextAddress==1)return f.hasRun?v.jumpTo(2):v.yield(Promise.resolve(),3);if(v.nextAddress!=2)return f.run(),v.return();H.queue.add(f);_.Bj(v)})};
Obh.prototype.flush=function(){var f=this;return _.Y(function(H){if(H.nextAddress==1)return f.queue.size?H.yield(Promise.resolve(),2):H.return();P$3(f.queue);_.Bj(H)})};
var D$B=new Obh,gFh=function(){N7.apply(this,arguments)};
_.e(gFh,N7);gFh.prototype.schedule=function(f){this.queue.add(f)};
gFh.prototype.flush=function(){this.queue.size&&P$3(this.queue)};
var r7e=new gFh,QOH=[zlB,$$g,r7e,D$B],IKg=[zlB,r7e,D$B],nFs=[];gF_=function(){u7g();for(var f=_.V(nFs),H=f.next();!H.done;H=f.next())H=H.value,H()};
var m$_=R3;_.BM=Symbol("Kb");var xm=null,EFb,N8R=null,c7B;var cC={},SPZ=Object.assign({},j7,(cC[VNo]=!0,cC.effectType=lg,cC.isResettableContext=!0,cC.hasRun=!1,cC.effectFn=null,cC.consumerIsAlwaysLive=!0,cC.consumerAllowSignalWrites=!0,cC.consumerMarkedDirty=oFR,cC.kind="effect",cC.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(Ym)throw Error("Lb");this.dirty=!1;if(!this.hasRun||Hbs(this)){this.hasRun=!0;URR(this);var f=_.HM(this),H=hlN(this);Nks("effectRun",this.debugName);try{rp(this.effectFn,this.componentStack,this)}catch(v){throw hm.enableContextBasedComponentStacks&&
FT(v),v;}finally{cag("effectRun",this.debugName),VNR(this,H),_.HM(f)}}}},cC.componentStack=void 0,cC.debugName="[effect]",cC[Symbol.dispose]=function(){if(m7(this))for(var f=this.producers;f!==void 0;)f=RlN(f);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;f=_.V(IKg);for(var H=f.next();!H.done;H=f.next())H.value.remove(this);lUB(this)},cC));var bbR=Object.assign({},SPZ,{effectType:KU3});var ibE=Symbol("Mb");var kNR=Object.assign({},SPZ,{effectType:lg});var DVr=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 qPr={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},wkg=
{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}]}},GU_={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},v7E=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],H13={"*":{async:1,dir:0,loading:2,target:3}};var d$_=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,X4={},M6E=(X4[1]=null,X4[2]=function(f,H){return H instanceof bD?kU(H):G1.toString()},X4[3]=function(f,H){return po(H)?_.QO(H):d$_.test(String(H))?String(H):G1.toString()},X4[4]=function(f,H){return H instanceof z1?_.re(H):G1.toString()},X4[5]=function(f,H){return String(H)},X4[7]=null,X4[8]=null,X4[10]=null,X4);var f4v=Symbol("Pb");var SY5=function(f){var H=jO9,v=f,t="",M="",h=1;f<0&&(f=-f);if(f===Infinity)f=(Infinity*Math.sign(v)).toString();else{for(var y=0;y<sOZ.length;y++){var m=sOZ[y];h=H[m];if(f>=h||h<=1&&f>.1*h){t=m;break}}t?(t+="B",M=" "):h=1;f=Math.round(v/h*10)/10+M+t}return f},sOZ="Y Z E P T G M K  m u n".split(" "),jO9={"":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};_.Zba=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 W6={};RegExp.prototype.hasOwnProperty("sticky");var n7s=function(f){f=String(f);for(var H=function(t,M,h){for(var y=Math.min(M.length-h,t.length),m=0;m<y;m++){var W=M[h+m];if(t[m]!==("A"<=W&&W<="Z"?W.toLowerCase():W))return!1}return!0},v=0;(v=f.indexOf("<",v))!=-1;){if(H("\x3c/script",f,v)||H("\x3c!--",f,v))return"zSoyz";
v+=1}return f};var Nk={default:"__default"};var mVs=Object.prototype.hasOwnProperty;V6B.prototype=Object.create(null);var Hb=O1N();var fc=null;var Lu_=function(f){this.created=[];this.deleted=[];this.node=f};var xVN=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var f=this,H=f;f;)H=f,f=f.parentNode;return H};var Ixv=function(f,H){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=f;this.key=H;this.text=void 0};var bg=null,ig=null,XT=null,TL=null,Z1R=[],sVR=dVs,wp=[],qk=[],q7b=function(f){return BTg(function(H,v,t){XT=ig=H;ig=null;v(t);jV_(null);ig=XT;XT=XT.parentNode;return H},f)}(),wxR=function(f){return BTg(function(H,v,t){var M={nextSibling:H};
ig=M;v(t);XT&&jV_(H.nextSibling);return M===ig?null:ig},f)}();var H6=[],FuT=0;var v6=new V6B;var nu=new V6B;var J7T=O1N(),u2R=J7T[Nk.default],QVe=J7T.style,o7e=["focusin","focusout"],G5e="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var Lg5=function(){},OPv=function(){},rgE=function(){},BIR=function(){};var Mw=Symbol("Wb");var AMH,Xbe=cM_;var I8=Symbol("Xb");var Fgb=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(" ")),
zaN=new Set(["a","font","script","style","title"]);var gu={setUp:Ras,tearDown:Ras,log:Ras,logNodeRange:Ras,graft:function(f,H){H()}};var Jr={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var Se_=null,lZ=function(f,H){US.call(this,f);var v=this;this.functionComponent=H;this.hooks=[];this.hookCounter=0;this.disposeEffects=n4(function(t){v.effectContext=t;_.Dt(function(){jWs(v,v.el)})},hm.alwaysTrackContexts||!!f4)};
_.e(lZ,US);lZ.prototype.render=function(f){var H=Se_;Se_=this;this.hookCounter=0;var v=yL(Zp),t=_.HM(this.effectContext);try{return Nks("render",this.componentName),this.functionComponent(f)}finally{cag("render",this.componentName),_.HM(t),yL(v),Se_=H}};
_.H7.Object.defineProperties(lZ.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return GNe(this.functionComponent)}}});var KgH=Symbol("kc"),UCg=function(f,H,v){this.afterRenderCallbacks=null;this.kind=f;this.props=H;this.children=v};
_.e(UCg,jK);UCg.prototype.render=function(){var f=lFR(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var H=_.V(this.afterRenderCallbacks),v=H.next();!v.done;v=H.next())v=v.value,f=v(f);return f};
UCg.prototype.getChildren=function(){return this.children};var o1R=[];WUR=function(f){throw Error("ob`"+f.debugName);};
(function(){var f=fc;fc=function(H){f==null||f(H);n1R(H)}})();var lKh=new WeakMap,U$v=0;var elM=void 0,LUh={},x$o=new WeakMap,FBE={getComponent:function(f){if(f.hasAttribute("ng-version"))return LUh;if(!f.__wizComponent)return null;f=f.__wizComponent;x$o.set(f.propsAndState,f);return f.propsAndState},
getDirectiveMetadata:function(f){if(f===LUh)return{framework:"wiz",name:"<Root>",props:{}};f=x$o.get(f);if(!f)throw Error("lc");return{framework:"wiz",name:f.name,props:Object.fromEntries(Object.keys(f.props).map(function(H){return[H,H]}))}},
"\u0275setProfiler":function(f){var H;(H=elM)==null||H();elM=pke(function(){f(2)})},
getInjector:function(f){return f.__wizComponent},
"\u0275getSignalGraph":function(f){var H;f=(H=f.effects)!=null?H:[];var v=p7v(f),t=Array.from(v.keys());H=[];f=[];for(var M=new Map,h=0;h<t.length;h++)M.set(t[h],h);v=_.V(v.entries());for(t=v.next();!t.done;t=v.next()){h=_.V(t.value);t=h.next().value;var y=h.next().value;h=t;t=M.get(h);var m=lKh.get(h);m||(m=U$v.toString(),lKh.set(h,m),U$v++);var W=void 0,I=((W=h.debugName)!=null?W:"").replace(/@.+/,"");if(h.kind==="computed"){W=h.computation;var S=void 0;H.push({label:I,value:h.value,kind:h.kind,
epoch:h.version,debuggableFn:(S=W.userFn)!=null?S:W,id:m})}else if(h.kind==="signal")H.push({label:I,value:h.value,kind:h.kind,epoch:h.version,debuggableFn:h.debugFn,id:m});else if(h.kind==="effect"){S=void 0;W=(S=h.effectFn)!=null?S:void 0;var d=S=void 0;H.push({label:I,kind:h.kind,epoch:h.version,debuggableFn:(d=(S=W)==null?void 0:S.userFn)!=null?d:W,id:m})}else H.push({label:I,kind:h.kind,epoch:h.version,id:m});h=_.V(y);for(y=h.next();!y.done;y=h.next())f.push({consumer:t,producer:M.get(y.value)})}return{nodes:H,
edges:f}},
isSignal:function(f){return typeof f==="function"&&f[WM]!==void 0}};Object.assign({},SPZ,{effectType:lg,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var f=this.elementRef;var H;f.element!=null||(f.element=(H=f.document.getElementById(f.value))!=null?H:void 0);f=f.element;for(H=this.attributes;H;){var v=H.signal();v!==H.prevValue&&(H.prevValue=v,H.namespace===1?f[H.name]=v:DVr.has(H.name)?Eg(f,H.name,v?"":null):Eg(f,H.name,v));H=H.next}}});Object.assign({},SPZ,{effectType:lg,hasRun:!0});_.g.debugName="RlDudd";var QWT={nonNullableCondIsNull:function(){return Error("pc")}};var E1R=function(){this.map=new Map};
E1R.prototype.push=function(f,H){var v=this.map;v.has(f)&&(this.multi||(this.multi=new Map),this.multi.set(H,v.get(f)));v.set(f,H)};
E1R.prototype.pop=function(f){var H=this.map,v=H.get(f),t;v!==void 0&&((t=this.multi)==null?0:t.has(v))?(H.set(f,this.multi.get(v)),this.multi.delete(v)):H.delete(f);return v};_.eK.debugName="nsTGHd";_.Lc.debugName="tbhMcf";_.xk.debugName="zyMFzb";_.B6.debugName="vI1rtf";_.iPs={OUT_OF_ORDER_HOOK_CALL:function(f){return Error("qc`"+f)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("rc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("sc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("tc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(f,H){return Error("uc`"+((H===void 0?0:H)?"IDOM":"Reactive")+"`"+(ze(f)?f.description:f))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(f,H){return Error("vc`"+(ze(f)?f.description:f)+"`"+H)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(f){return Error("wc`"+(ze(f)?f.description:f))},
USE_ELEMENT_NOT_ASSIGNED:function(f){return Error("xc`"+(ze(f)?f.description:f))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(f){return Error("yc`"+(ze(f)?f.description:f))}};AMH=eaE;var tGg=Symbol("Cc");IF5({beforeRender:function(f){var H=_.HM(f.effectContext);try{var v;((v=f.__syncEffects)==null?0:v.length)&&RFT(f.__syncEffects)}finally{_.HM(H)}},
didPatch:function(f){var H=_.HM(f.effectContext);try{var v;((v=f.__syncEffects)==null?0:v.length)&&RFT(f.__syncEffects)}finally{_.HM(H)}},
didUnmount:function(f){var H;((H=f.hooks)==null?0:H.length)&&f.hooks.forEach(hFR)}});var B8T,zlh,FUM;B8T=_.Mr.window;_.nc=(B8T==null?void 0:(zlh=B8T.yt)==null?void 0:zlh.config_)||(B8T==null?void 0:(FUM=B8T.ytcfg)==null?void 0:FUM.data_)||{};_.qJ("yt.config_",_.nc);var r7a={},$6e=[];_.e$=function(f){var H=_.NA.apply(1,arguments);var v=Error.call(this,f);this.message=v.message;"stack"in v&&(this.stack=v.stack);this.args=[].concat(_.pS(H));Object.setPrototypeOf(this,this.constructor.prototype)};
_.e(_.e$,Error);var ULv=function(f,H,v){this.actionName=f;this.optionalAction=H===void 0?!1:H;this.args=v===void 0?null:v;this.returnValue=[]};_.Ak=function(f){this.name=f};_.N$=new _.Ak("signalAction");var lCE=/^[\w.]*$/,SjE={q:!0,search_query:!0},ICe=String(gE5);var bN;bN=Symbol("Dc");_.iN=function(f){this.name=f};
_.iN.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var U63=function(f){this.key=f},zFN=function(f){this.deferredKey=f},Lb5=function(){var f=this;
this.providers=new Map;this.JSC$10470_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(f.providers)}}};
Lb5.prototype.addProvider=function(f){this.providers.set(f.provide,f);var H=this.JSC$10470_deferred.get(f.provide);if(H)try{H.resolver(this.resolve(f.provide))}catch(v){H.rejector(v)}};
Lb5.prototype.resolve=function(f){return f instanceof zFN?KUn(this,f):f instanceof U63?D$h(this,f.key,[],!0):D$h(this,f,[])};
var KUn=function(f,H){H=H.deferredKey;if(f.JSC$10470_deferred.has(H))return f.JSC$10470_deferred.get(H).promise;var v={};v.promise=new Promise(function(t,M){v.resolver=t;v.rejector=M});
f.JSC$10470_deferred.set(H,v);return v.promise},D$h=function(f,H,v,t){t=t===void 0?!1:t;
if(v.indexOf(H)>-1)throw Error("Ec`"+H);if(f.cachedValues.has(H))return f.cachedValues.get(H);if(!f.providers.has(H)){if(t)return;throw Error("Fc`"+H);}t=f.providers.get(H);v.push(H);if(t.useValue!==void 0)var M=t.useValue;else if(t.useFactory)M=t[bN]?oFo(f,t[bN],v):[],M=t.useFactory.apply(t,_.pS(M));else if(t.useClass){M=t.useClass;var h=M[bN]?oFo(f,M[bN],v):[];M=new (Function.prototype.bind.apply(M,[null].concat(_.pS(h))))}else throw Error("Gc`"+H);v.pop();t.skipCache||f.cachedValues.set(H,M);return M},
oFo=function(f,H,v){return H?H.map(function(t){return t instanceof U63?D$h(f,t.key,v,!0):D$h(f,t,v)}):[]};var eFE;var ck=new _.iN("ENDPOINT_HANDLER_TOKEN");_.X7=new _.Ak("urlEndpoint");var nF_=function(){this.data=[];this.cachedPackedInt52=-1};
nF_.prototype.set=function(f,H){H=H===void 0?!0:H;0<=f&&f<52&&Number.isInteger(f)&&this.data[f]!==H&&(this.data[f]=H,this.cachedPackedInt52=-1)};
nF_.prototype.get=function(f){return!!this.data[f]};
var pka=function(f){f.cachedPackedInt52===-1&&(f.cachedPackedInt52=f.data.reduce(function(H,v,t){return H+(v?Math.pow(2,t):0)},0));
return f.cachedPackedInt52};var EER=function(f){var H=QOC;f=f===void 0?_.ES("yt.ads.biscotti.lastId_")||"":f;var v=Object,t=v.assign,M={};M.dt=KvC;M.flash="0";a:{try{var h=H.JSC$10476_win_.top.location.href}catch(fg){h=2;break a}h=h?h===H.doc_.location.href?0:1:2}M=(M.frm=h,M);try{M.u_tz=-(new Date).getTimezoneOffset();try{var y=nh.history.length}catch(fg){y=0}M.u_his=y;var m;M.u_h=(m=nh.screen)==null?void 0:m.height;var W;M.u_w=(W=nh.screen)==null?void 0:W.width;var I;M.u_ah=(I=nh.screen)==null?void 0:I.availHeight;var S;M.u_aw=
(S=nh.screen)==null?void 0:S.availWidth;var d;M.u_cd=(d=nh.screen)==null?void 0:d.colorDepth}catch(fg){}y=H.JSC$10476_win_;try{var Z=y.screenX;var l=y.screenY}catch(fg){}try{var L=y.outerWidth;var r=y.outerHeight}catch(fg){}try{var n=y.innerWidth;var Q=y.innerHeight}catch(fg){}try{var C=y.screenLeft;var w=y.screenTop}catch(fg){}try{n=y.innerWidth,Q=y.innerHeight}catch(fg){}try{var c=y.screen.availWidth;var A=y.screen.availTop}catch(fg){}Z=[C,w,Z,l,c,A,L,r,n,Q];l=yxe(!1,H.JSC$10476_win_.top);L={};
var X=X===void 0?_.Mr:X;r=new nF_;"SVGElement"in X&&"createElementNS"in X.document&&r.set(0);n=Bha();n["allow-top-navigation-by-user-activation"]&&r.set(1);n["allow-popups-to-escape-sandbox"]&&r.set(2);X.crypto&&X.crypto.subtle&&r.set(3);"TextDecoder"in X&&"TextEncoder"in X&&r.set(4);X=pka(r);H=(L.bc=X,L.bih=l.height,L.biw=l.width,L.brdim=Z.join(),L.vis=qg5(H.doc_),L.wgl=!!nh.WebGLRenderingContext,L);v=t.call(v,M,H);v.ca_type="image";f&&(v.bid=f);return v},QOC=new function(){var f=window.document;
this.JSC$10476_win_=window;this.doc_=f};
_.qJ("yt.ads_.signals_.getAdSignalsString",function(f){return d6B(EER(f))});_.qN();navigator.userAgent.indexOf(" (CrKey ");var oEN="XMLHttpRequest"in _.Mr?function(){return new XMLHttpRequest}:null;var u7r="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),aKv=[].concat(_.pS(u7r),["client_dev_set_cookie"]);var C0H={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"},Qre="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(_.pS(u7r)),wVR=!1,aCR=_.Njg,iQv=GiT;var ss3=[{messageFn:function(f){return"Cannot read property '"+f.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(f){return"Cannot call '"+f.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(f){return f.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var P$n={messageWeights:[],callbackWeights:[{callback:vTR,weight:500},{callback:tBB,weight:500}]};var GNa=function(){this.callbackWeights=[];this.messageWeights=[]},C$b,jsR=function(){if(!C$b){var f=C$b=new GNa;
f.messageWeights.length=0;f.callbackWeights.length=0;qGE(f,P$n)}return C$b},qGE=function(f,H){H.messageWeights&&f.messageWeights.push.apply(f.messageWeights,H.messageWeights);
H.callbackWeights&&f.callbackWeights.push.apply(f.callbackWeights,H.callbackWeights)};_.f8(_.dH,_.zO);_.dH.prototype.subscribe=function(f,H,v){var t=this.topics_[f];t||(t=this.topics_[f]=[]);var M=this.JSC$10500_key_;this.subscriptions_[M]=f;this.subscriptions_[M+1]=H;this.subscriptions_[M+2]=v;this.JSC$10500_key_=M+3;t.push(M);return M};
var EFH=function(f){var H=Ul3,v=!1,t=H.subscribe("handleError",function(M){v||(v=!0,this.unsubscribeByKey(t),f.apply(void 0,arguments))},H)};
_.dH.prototype.unsubscribe=function(f,H,v){if(f=this.topics_[f]){var t=this.subscriptions_;if(f=f.find(function(M){return t[M+1]==H&&t[M+2]==v}))return this.unsubscribeByKey(f)}return!1};
_.dH.prototype.unsubscribeByKey=function(f){var H=this.subscriptions_[f];if(H){var v=this.topics_[H];this.publishDepth_!=0?(this.pendingKeys_.push(f),this.subscriptions_[f+1]=function(){}):(v&&_.iH(v,f),delete this.subscriptions_[f],delete this.subscriptions_[f+1],delete this.subscriptions_[f+2])}return!!H};
_.dH.prototype.publish=function(f,H){var v=this.topics_[f];if(v){var t=Array(arguments.length-1),M=arguments.length,h;for(h=1;h<M;h++)t[h-1]=arguments[h];if(this.async_)for(h=0;h<v.length;h++)M=v[h],N8o(this.subscriptions_[M+1],this.subscriptions_[M+2],t);else{this.publishDepth_++;try{for(h=0,M=v.length;h<M&&!this.isDisposed();h++){var y=v[h];this.subscriptions_[y+1].apply(this.subscriptions_[y+2],t)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;v=this.pendingKeys_.pop();)this.unsubscribeByKey(v)}}return h!=
0}return!1};
var N8o=function(f,H,v){_.jg(function(){f.apply(H,v)})};
_.dH.prototype.clear=function(f){if(f){var H=this.topics_[f];H&&(H.forEach(this.unsubscribeByKey,this),delete this.topics_[f])}else this.subscriptions_.length=0,this.topics_={}};
_.dH.prototype.getCount=function(f){if(f){var H=this.topics_[f];return H?H.length:0}f=0;for(H in this.topics_)f+=this.getCount(H);return f};
_.dH.prototype.disposeInternal=function(){_.dH.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var Ul3=new _.dH;var m$=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(m$,_.mL);m$.prototype.getColdHashData=function(){return _.L8(this,3)};
m$.prototype.getHotHashData=function(){return _.L8(this,5)};
m$.prototype.setHotHashData=function(f){return _.rr(this,5,f)};var S6E=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(S6E,_.mL);var N65=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(N65,_.mL);_.R=N65.prototype;_.R.getDeviceId=function(){return _.L8(this,6)};
_.R.getExperimentIds=function(f){var H=_.wi(this,9,_.VG,3,!0);CHe(H,f);return H[f]};
_.R.getPlayerType=function(){return _.x_(this,36)};
_.R.setHomeGroupInfo=function(f){return _.eV(this,81,f)};
_.R.clearLocationPlayabilityToken=function(){return _.YX(this,89)};var jN=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(jN,_.mL);jN.prototype.setKey=function(f){return _.rr(this,1,f)};
jN.prototype.getValue=function(){return zX(this,2,Xn3)};
var Xn3=[2,3,4,5,6];var c7h=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(c7h,_.mL);c7h.prototype.setTrackingParams=function(f){return _.YX(this,1,_.QM(f,!1))};var cEB=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(cEB,_.mL);var s93=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(s93,_.mL);s93.prototype.getExperimentIds=function(f){var H=_.wi(this,5,_.Ybv,3,!0);CHe(H,f);return H[f]};var l$=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(l$,_.mL);l$.prototype.getToken=function(){return _.Jx(this,2)};
l$.prototype.setToken=function(f){return _.rr(this,2,f)};var ZK=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(ZK,_.mL);ZK.prototype.setSafetyMode=function(f){return _.y$(this,5,f)};var d8=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(d8,_.mL);d8.prototype.setClient=function(f){return _.eV(this,1,f)};var j93={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 dSg;_.pG=function(){var f=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.Mr.addEventListener("beforeinstallprompt",function(H){H.preventDefault();f.deferredInstallPrompt=H});
_.Mr.addEventListener("appinstalled",function(){f.appInstalledEventFired=!0},{once:!0})};
dSg=function(){if(!_.Mr.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.Mr.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.Mr.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.Mr.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.Mr.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(f){return"WEB_DISPLAY_MODE_UNKNOWN"}};var lng=function(){this.syncHeaders=!0},USe=function(f){var H={},v=[];
"USER_SESSION_ID"in _.nc&&v.push({key:"u",value:_.a8("USER_SESSION_ID")});if(v=_.cJR(v))H.Authorization=v,v=f=f==null?void 0:f.sessionIndex,v===void 0&&(v=Number(_.a8("SESSION_INDEX",0)),v=isNaN(v)?0:v),_.J("voice_search_auth_header_removal")||(H["X-Goog-AuthUser"]=v.toString()),"INNERTUBE_HOST_OVERRIDE"in _.nc||(H["X-Origin"]=window.location.origin),f===void 0&&"DELEGATED_SESSION_ID"in _.nc&&(H["X-Goog-PageId"]=_.a8("DELEGATED_SESSION_ID"));return H};var XkH={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var kJ=_.ES("ytglobal.prefsUserPrefsPrefs_")||{},A7C;_.qJ("ytglobal.prefsUserPrefsPrefs_",kJ);_.TM=function(){this.cookieName=_.a8("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.a8("ALT_PREF_COOKIE_DOMAIN","youtube.com");var f=_.sk.get(this.cookieName,void 0);f&&this.parse(f)};
_.Uj=function(){A7C||(A7C=new _.TM);return A7C};
_.TM.prototype.get=function(f,H){bbo(f);ibv(f);f=kJ[f]!==void 0?kJ[f].toString():null;return f!=null?f:H?H:""};
_.TM.prototype.set=function(f,H){bbo(f);ibv(f);if(H==null)throw Error("Jc");kJ[f]=H.toString()};
_.TM.prototype.getFlag=function(f){return!!((kNM("f"+(Math.floor(f/31)+1))||0)&1<<f%31)};
_.eG=function(f,H,v){f="f"+(Math.floor(H/31)+1);H=1<<H%31;var t=kNM(f)||0;t=v?t|H:t&~H;t===0?delete kJ[f]:(v=t.toString(16),kJ[f]=v.toString())};
_.TM.prototype.remove=function(f){bbo(f);ibv(f);delete kJ[f]};
_.TM.prototype.save=function(){var f=!0;_.J("web_secure_pref_cookie_killswitch")&&(f=!1);_.Zy(this.cookieName,this.dump(),63072E3,this.cookieDomain,f)};
_.TM.prototype.clear=function(){_.QA.clear(kJ)};
_.TM.prototype.dump=function(){var f=[],H;for(H in kJ)kJ.hasOwnProperty(H)&&f.push(H+"="+encodeURIComponent(String(kJ[H])));return f.join("&")};
var ibv=function(f){if(/^f([1-9][0-9]*)$/.test(f))throw Error("Kc`"+f);},bbo=function(f){if(!/^\w+$/.test(f))throw Error("Lc`"+f);
},kNM=function(f){f=kJ[f]!==void 0?kJ[f].toString():null;
return f!=null&&/^[A-Fa-f0-9]+$/.test(f)?parseInt(f,16):null};
_.TM.prototype.parse=function(f){f=decodeURIComponent(f).split("&");for(var H=0;H<f.length;H++){var v=f[H].split("="),t=v[0];(v=v[1])&&(kJ[t]=v.toString())}};var WOT={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"},ZGR={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},JtR={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},gT3={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var Wn;_.wK=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.Lb=function(f,H,v){return f.addJob(H,0,v)};
_.wK.prototype.addLowPriorityJob=function(f,H){return this.addJob(f,1,H)};
_.LT=function(f,H,v){return f.addJob(H,2,v)};
_.Vk=function(f,H,v){return f.addJob(H,3,v)};
_.OR=function(f,H,v){return f.addJob(H,4,v)};
Wn=function(f){var H=_.ES("yt.scheduler.instance.addImmediateJob");H?H(f):f()};
_.wK.prototype.debounce=function(f,H,v){var t=this,M=0,h=function(){M&&t.cancelJob(M);M=t.addJob(f,H,v);t.cancelDebouncedJobMap.set(h,M)};
return h};
_.wK.prototype.cancelThrottle=function(f){(f=this.cancelThrottledJobMap.get(f))&&f()};var q7=function(){_.wK.apply(this,arguments)};
_.e(q7,_.wK);_.Zb=function(){q7.instance||(q7.instance=new q7);return q7.instance};
q7.prototype.addJob=function(f,H,v){v!==void 0&&Number.isNaN(Number(v))&&(v=void 0);var t=_.ES("yt.scheduler.instance.addJob");return t?t(f,H,v):v===void 0?(f(),NaN):_.$Z(f,v||0)};
q7.prototype.cancelJob=function(f){if(f===void 0||!Number.isNaN(Number(f))){var H=_.ES("yt.scheduler.instance.cancelJob");H?H(f):_.Ok(f)}};
q7.prototype.start=function(){var f=_.ES("yt.scheduler.instance.start");f&&f()};
q7.prototype.pause=function(){var f=_.ES("yt.scheduler.instance.pause");f&&f()};
_.nN=_.Zb();_.Ll.prototype.set=function(f,H){H===void 0?this.mechanism.remove(f):this.mechanism.set(f,(0,_.UB)(H))};
_.Ll.prototype.get=function(f){try{var H=this.mechanism.get(f)}catch(v){return}if(H!==null)try{return JSON.parse(H)}catch(v){throw"Storage: Invalid value was encountered";}};
_.Ll.prototype.remove=function(f){this.mechanism.remove(f)};var fR=function(f){this.mechanism=f};
_.f8(fR,_.Ll);var T8a=function(f){this.data=f},wkr=function(f){return f===void 0||f instanceof T8a?f:new T8a(f)};
fR.prototype.set=function(f,H){fR.superClass_.set.call(this,f,wkr(H))};
fR.prototype.getWrapper=function(f){f=fR.superClass_.get.call(this,f);if(f===void 0||f instanceof Object)return f;throw"Storage: Invalid value was encountered";};
fR.prototype.get=function(f){if(f=this.getWrapper(f)){if(f=f.data,f===void 0)throw"Storage: Invalid value was encountered";}else f=void 0;return f};_.f8(xZ,fR);_.qPT=function(f){var H=f.creation;f=f.expiration;return!!f&&f<_.qN()||!!H&&H>_.qN()};
xZ.prototype.set=function(f,H,v){if(H=wkr(H)){if(v){if(v<_.qN()){xZ.prototype.remove.call(this,f);return}H.expiration=v}H.creation=_.qN()}xZ.superClass_.set.call(this,f,H)};
xZ.prototype.getWrapper=function(f,H){var v=xZ.superClass_.getWrapper.call(this,f);if(v)if(!H&&_.qPT(v))xZ.prototype.remove.call(this,f);else return v};var HD=function(){};
HD.prototype.next=function(){return vD};
var vD={done:!0,value:void 0},tA=function(f){return{value:f,done:!1}};
HD.prototype.__iterator__=function(){return this};
_.fxa=function(f){if(f instanceof HD)return f;if(typeof f.__iterator__=="function")return f.__iterator__(!1);if(_.Tb(f)){var H=0,v=new HD;v.next=function(){for(;;){if(H>=f.length)return vD;if(H in f)return tA(f[H++]);H++}};
return v}throw Error("Mc");};var H1n=function(f){if(f instanceof Mg||f instanceof hA||f instanceof RQ)return f;if(typeof f.next=="function")return new Mg(function(){return f});
if(typeof f[Symbol.iterator]=="function")return new Mg(function(){return f[Symbol.iterator]()});
if(typeof f.__iterator__=="function")return new Mg(function(){return f.__iterator__()});
throw Error("Nc");},Mg=function(f){this.func_=f};
Mg.prototype.__iterator__=function(){return new hA(this.func_())};
Mg.prototype[Symbol.iterator]=function(){return new RQ(this.func_())};
Mg.prototype.toEs6=function(){return new RQ(this.func_())};
var hA=function(f){this.JSC$10584_iter_=f};
_.e(hA,HD);hA.prototype.next=function(){return this.JSC$10584_iter_.next()};
hA.prototype[Symbol.iterator]=function(){return new RQ(this.JSC$10584_iter_)};
hA.prototype.toEs6=function(){return new RQ(this.JSC$10584_iter_)};
var RQ=function(f){Mg.call(this,function(){return f});
this.JSC$10587_iter_=f};
_.e(RQ,Mg);RQ.prototype.next=function(){return this.JSC$10587_iter_.next()};var v7v=function(){};var VC=function(){};
_.f8(VC,v7v);VC.prototype.getCount=function(){for(var f=0,H=_.V(this),v=H.next();!v.done;v=H.next())f++;return f};
VC.prototype[Symbol.iterator]=function(){return H1n(this.__iterator__(!0)).toEs6()};
VC.prototype.clear=function(){var f=Array.from(this);f=_.V(f);for(var H=f.next();!H.done;H=f.next())this.remove(H.value)};_.f8(Bh,VC);_.R=Bh.prototype;_.R.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var f=this.storage_;if(f)try{f.setItem("__sak","1");f.removeItem("__sak");var H=!0}catch(v){H=v instanceof DOMException&&(v.name==="QuotaExceededError"||v.code===22||v.code===1014||v.name==="NS_ERROR_DOM_QUOTA_REACHED")&&f&&f.length!==0}else H=!1;this.cachedIsStorageAvailable_=H}return this.cachedIsStorageAvailable_};
_.R.set=function(f,H){yC(this);try{this.storage_.setItem(f,H)}catch(v){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.R.get=function(f){yC(this);f=this.storage_.getItem(f);if(typeof f!=="string"&&f!==null)throw"Storage mechanism: Invalid value was encountered";return f};
_.R.remove=function(f){yC(this);this.storage_.removeItem(f)};
_.R.getCount=function(){yC(this);return this.storage_.length};
_.R.__iterator__=function(f){yC(this);var H=0,v=this.storage_,t=new HD;t.next=function(){if(H>=v.length)return vD;var M=v.key(H++);if(f)return tA(M);M=v.getItem(M);if(typeof M!=="string")throw"Storage mechanism: Invalid value was encountered";return tA(M)};
return t};
_.R.clear=function(){yC(this);this.storage_.clear()};
_.R.key=function(f){yC(this);return this.storage_.key(f)};
var yC=function(f){if(f.storage_==null)throw Error("Oc");f.isAvailable()||R3(Error("Oc"))};_.f8(SF_,Bh);_.f8(dOR,Bh);_.f8(zE,VC);zE.prototype.set=function(f,H){this.mechanism_.set(this.JSC$10602_prefix_+f,H)};
zE.prototype.get=function(f){return this.mechanism_.get(this.JSC$10602_prefix_+f)};
zE.prototype.remove=function(f){this.mechanism_.remove(this.JSC$10602_prefix_+f)};
zE.prototype.__iterator__=function(f){var H=this.mechanism_[Symbol.iterator](),v=this,t=new HD;t.next=function(){var M=H.next();if(M.done)return M;for(M=M.value;M.slice(0,v.JSC$10602_prefix_.length)!=v.JSC$10602_prefix_;){M=H.next();if(M.done)return M;M=M.value}return tA(f?M.slice(v.JSC$10602_prefix_.length):v.mechanism_.get(M))};
return t};_.P8=function(f){this.expiringStorage_=(f=_.j5r(f))?new xZ(f):null;this.JSC$10606_domain_=document.domain||window.location.hostname};
_.P8.prototype.set=function(f,H,v,t){v=v||31104E3;this.remove(f);if(this.expiringStorage_)try{this.expiringStorage_.set(f,H,Date.now()+v*1E3);return}catch(h){}var M="";if(t)try{M=escape((0,_.UB)(H))}catch(h){return}else M=escape(H);_.Zy(f,M,v,this.JSC$10606_domain_)};
_.P8.prototype.get=function(f,H){var v=void 0,t=!this.expiringStorage_;if(!t)try{v=this.expiringStorage_.get(f)}catch(M){t=!0}if(t&&(v=_.sk.get(f,void 0))&&(v=unescape(v),H))try{v=JSON.parse(v)}catch(M){this.remove(f),v=void 0}return v};
_.P8.prototype.remove=function(f){this.expiringStorage_&&this.expiringStorage_.remove(f);_.YFE(f,"/",this.JSC$10606_domain_)};
_.P8.prototype.getCreationTime=function(f){return this.expiringStorage_&&(f=(this.expiringStorage_.getWrapper(f)||{}).creation,typeof f==="number")?f:null};var ZY3=function(){var f;return function(){f||(f=new _.P8("ytidb"));return f}}();var lqg;_.rH=[];lqg=!1;var GZH=UON||ej5;var Y4={},t6n=(Y4.AUTH_INVALID="No user identifier specified.",Y4.EXPLICIT_ABORT="Transaction was explicitly aborted.",Y4.IDB_NOT_SUPPORTED="IndexedDB is not supported.",Y4.MISSING_INDEX="Index not created.",Y4.MISSING_OBJECT_STORES="Object stores not created.",Y4.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",Y4.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",Y4.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",Y4.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",Y4.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",Y4.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",Y4.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",Y4),mc={},M6v=(mc.AUTH_INVALID="ERROR",mc.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",mc.EXPLICIT_ABORT="IGNORED",
mc.IDB_NOT_SUPPORTED="ERROR",mc.MISSING_INDEX="WARNING",mc.MISSING_OBJECT_STORES="ERROR",mc.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",mc.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",mc.QUOTA_EXCEEDED="WARNING",mc.QUOTA_MAYBE_EXCEEDED="WARNING",mc.UNKNOWN_ABORT="WARNING",mc.INCOMPATIBLE_DB_VERSION="WARNING",mc),$4={},hLo=($4.AUTH_INVALID=!1,$4.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,$4.EXPLICIT_ABORT=!1,$4.IDB_NOT_SUPPORTED=!1,$4.MISSING_INDEX=!1,$4.MISSING_OBJECT_STORES=!1,$4.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,$4.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,$4.QUOTA_EXCEEDED=!1,$4.QUOTA_MAYBE_EXCEEDED=!0,$4.UNKNOWN_ABORT=!0,$4.INCOMPATIBLE_DB_VERSION=!1,$4),QQ=function(f,H,v,t,M){H=H===void 0?{}:H;v=v===void 0?t6n[f]:v;t=t===void 0?M6v[f]:t;M=M===void 0?hLo[f]:M;_.e$.call(this,v,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:f},H));this.type=f;this.message=v;this.level=t;this.retryable=M;Object.setPrototypeOf(this,QQ.prototype)};
_.e(QQ,_.e$);var RLr=function(f,H){QQ.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:H,foundObjectStores:f},t6n.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,RLr.prototype)};
_.e(RLr,QQ);var xON=function(f,H){var v=Error.call(this);this.message=v.message;"stack"in v&&(this.stack=v.stack);this.index=f;this.objectStore=H;Object.setPrototypeOf(this,xON.prototype)};
_.e(xON,Error);var BLR=["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 GE=function(f){this.executor=f},Ph=function(f){var H=this;
this.state={status:"PENDING"};this.JSC$10634_onFulfilled=[];this.JSC$10634_onRejected=[];f=f.executor;var v=function(M){if(H.state.status==="PENDING"){H.state={status:"FULFILLED",value:M};M=_.V(H.JSC$10634_onFulfilled);for(var h=M.next();!h.done;h=M.next())h=h.value,h()}},t=function(M){if(H.state.status==="PENDING"){H.state={status:"REJECTED",
reason:M};M=_.V(H.JSC$10634_onRejected);for(var h=M.next();!h.done;h=M.next())h=h.value,h()}};
try{f(v,t)}catch(M){t(M)}};
Ph.all=function(f){return new Ph(new GE(function(H,v){var t=[],M=f.length;M===0&&H(t);for(var h={i$jscomp$468:0};h.i$jscomp$468<f.length;h={i$jscomp$468:h.i$jscomp$468},++h.i$jscomp$468)Ph.resolve(f[h.i$jscomp$468]).then(function(y){return function(m){t[y.i$jscomp$468]=m;M--;M===0&&H(t)}}(h)).catch(function(y){v(y)})}))};
Ph.resolve=function(f){return new Ph(new GE(function(H,v){f instanceof Ph?f.then(H,v):H(f)}))};
Ph.reject=function(f){return new Ph(new GE(function(H,v){v(f)}))};
Ph.prototype.then=function(f,H){var v=this,t=f!=null?f:rdB,M=H!=null?H:FOg;return new Ph(new GE(function(h,y){v.state.status==="PENDING"?(v.JSC$10634_onFulfilled.push(function(){V6h(v,v,t,h,y)}),v.JSC$10634_onRejected.push(function(){yM_(v,v,M,h,y)})):v.state.status==="FULFILLED"?V6h(v,v,t,h,y):v.state.status==="REJECTED"&&yM_(v,v,M,h,y)}))};
Ph.prototype.catch=function(f){return this.then(void 0,f)};
var V6h=function(f,H,v,t,M){try{if(f.state.status!=="FULFILLED")throw Error("Rc");var h=v(f.state.value);h instanceof Ph?Yon(f,H,h,t,M):t(h)}catch(y){M(y)}},yM_=function(f,H,v,t,M){try{if(f.state.status!=="REJECTED")throw Error("Sc");
var h=v(f.state.reason);h instanceof Ph?Yon(f,H,h,t,M):t(h)}catch(y){M(y)}},Yon=function(f,H,v,t,M){H===v?M(new TypeError("Tc")):v.then(function(h){h instanceof Ph?Yon(f,H,h,t,M):t(h)},function(h){M(h)})};var WD;WD=window;_.ta=WD.ytcsi&&WD.ytcsi.now?WD.ytcsi.now:WD.performance&&WD.performance.timing&&WD.performance.now&&WD.performance.timing.navigationStart?function(){return WD.performance.timing.navigationStart+WD.performance.now()}:function(){return(new Date).getTime()};var Ek=function(f,H){this.JSC$10646_wrapped=f;this.options=H;this.transactionCount=0;this.startedMs=Math.round((0,_.ta)());this.hasUnknownAbortedTransaction=!1},OT=function(){return _.J("idb_immediate_commit")},Wuo,O19,Sx,So_;
Ek.prototype.add=function(f,H,v){return _.bd(this,[f],{mode:"readwrite",enableRetries:!0,commit:OT()},function(t){return t.objectStore(f).add(H,v)})};
Ek.prototype.clear=function(f){return _.bd(this,[f],{mode:"readwrite",enableRetries:!0},function(H){return H.objectStore(f).clear()})};
Ek.prototype.close=function(){this.JSC$10646_wrapped.close();var f;((f=this.options)==null?0:f.closed)&&this.options.closed()};
Ek.prototype.count=function(f,H){return _.bd(this,[f],{mode:"readonly",enableRetries:!0,commit:OT()},function(v){return v.objectStore(f).count(H)})};
var CN=function(f,H,v){f=f.JSC$10646_wrapped.createObjectStore(H,v);return new g_(f)};
Ek.prototype.delete=function(f,H){return _.bd(this,[f],{mode:"readwrite",enableRetries:!0,commit:OT()&&!(H instanceof IDBKeyRange)},function(v){return v.objectStore(f).delete(H)})};
var mV_=function(f,H){return _.bd(f,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(v){return v.objectStore("ResponseStore").index("byInterface").delete(H)})};
Ek.prototype.get=function(f,H){return _.bd(this,[f],{mode:"readonly",enableRetries:!0,commit:OT()},function(v){return v.objectStore(f).get(H)})};
Ek.prototype.getAll=function(f,H,v){return _.bd(this,[f],{mode:"readonly",enableRetries:!0},function(t){return t.objectStore(f).getAll(H,v)})};
Ek.prototype.put=function(f,H,v){return _.bd(this,[f],{mode:"readwrite",enableRetries:!0,commit:OT()},function(t){return t.objectStore(f).put(H,v)})};
Ek.prototype.objectStoreNames=function(){return Array.from(this.JSC$10646_wrapped.objectStoreNames)};
_.bd=function(f,H,v,t){var M,h,y,m,W,I,S,d,Z,l,L,r;return _.Y(function(n){switch(n.nextAddress){case 1:var Q={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof v==="string"?Q.mode=v:Object.assign(Q,v);M=Q;f.transactionCount++;h=M.enableRetries?3:1;y=0;case 2:if(m){n.jumpTo(4);break}y++;W=Math.round((0,_.ta)());_.Zc(n,5);I=f.JSC$10646_wrapped.transaction(H,M.mode);Q=n.yield;var C=!!M.commit;var w=new NJ(I);C=$VZ(w,t,C);return Q.call(n,C,7);case 7:return S=n.yieldResult,d=Math.round((0,_.ta)()),
Wuo(f,W,d,y,void 0,H.join(),M),n.return(S);case 5:Z=_.xu(n);l=Math.round((0,_.ta)());L=zj_(Z,f.JSC$10646_wrapped.name,H.join(),f.JSC$10646_wrapped.version);if((r=L instanceof QQ&&!L.retryable)||y>=h)Wuo(f,W,l,y,L,H.join(),M),m=L;n.jumpTo(2);break;case 4:return n.return(Promise.reject(m))}})};
Wuo=function(f,H,v,t,M,h,y){H=v-H;M?(M instanceof QQ&&(M.type==="QUOTA_EXCEEDED"||M.type==="QUOTA_MAYBE_EXCEEDED")&&Dy("QUOTA_EXCEEDED",{dbName:nl(f.JSC$10646_wrapped.name),objectStoreNames:h,transactionCount:f.transactionCount,transactionMode:y.mode}),M instanceof QQ&&M.type==="UNKNOWN_ABORT"&&(v-=f.startedMs,v<0&&v>=2147483648&&(v=0),Dy("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:h,transactionDuration:H,transactionCount:f.transactionCount,dbDuration:v}),f.hasUnknownAbortedTransaction=!0),
O19(f,!1,t,h,H,y.tag),_.Kl(M)):O19(f,!0,t,h,H,y.tag)};
O19=function(f,H,v,t,M,h){Dy("TRANSACTION_ENDED",{objectStoreNames:t,connectionHasUnknownAbortedTransaction:f.hasUnknownAbortedTransaction,duration:M,isSuccessful:H,tryCount:v,tag:h===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":h})};
Ek.prototype.getVersion=function(){return this.JSC$10646_wrapped.version};
Ek.prototype.getName=function(){return this.JSC$10646_wrapped.name};
var g_=function(f){this.JSC$10661_wrapped=f};
g_.prototype.add=function(f,H){return Cl(this.JSC$10661_wrapped.add(f,H))};
g_.prototype.autoIncrement=function(){return this.JSC$10661_wrapped.autoIncrement};
g_.prototype.clear=function(){return Cl(this.JSC$10661_wrapped.clear()).then(function(){})};
var E0=function(f,H,v){f.JSC$10661_wrapped.createIndex(H,v,{unique:!1})};
g_.prototype.count=function(f){return Cl(this.JSC$10661_wrapped.count(f))};
var g7C=function(f,H){return kZ(f,{query:H},function(v){return v.delete().then(function(){return v.continue()})}).then(function(){})};
g_.prototype.delete=function(f){return f instanceof IDBKeyRange?g7C(this,f):Cl(this.JSC$10661_wrapped.delete(f))};
g_.prototype.get=function(f){return Cl(this.JSC$10661_wrapped.get(f))};
g_.prototype.getAll=function(f,H){return"getAll"in IDBObjectStore.prototype?Cl(this.JSC$10661_wrapped.getAll(f,H)):Ixg(this,f,H)};
var Ixg=function(f,H,v){var t=[];return kZ(f,{query:H},function(M){if(!(v!==void 0&&t.length>=v))return t.push(M.getValue()),M.continue()}).then(function(){return t})};
g_.prototype.index=function(f){try{return new IQ(this.JSC$10661_wrapped.index(f))}catch(H){if(H instanceof Error&&H.name==="NotFoundError")throw new xON(f,this.JSC$10661_wrapped.name);throw H;}};
g_.prototype.getName=function(){return this.JSC$10661_wrapped.name};
g_.prototype.keyPath=function(){return this.JSC$10661_wrapped.keyPath};
g_.prototype.put=function(f,H){return Cl(this.JSC$10661_wrapped.put(f,H))};
var kZ=function(f,H,v){f=f.JSC$10661_wrapped.openCursor(H.query,H.direction);return So_(f).then(function(t){return oTR(t,v)})},NJ=function(f){var H=this;
this.JSC$10669_wrapped=f;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(v,t){H.JSC$10669_wrapped.addEventListener("complete",function(){v()});
H.JSC$10669_wrapped.addEventListener("error",function(M){M.currentTarget===M.target&&t(H.JSC$10669_wrapped.error)});
H.JSC$10669_wrapped.addEventListener("abort",function(){var M=H.JSC$10669_wrapped.error;if(M)t(M);else if(!H.aborted){M=QQ;for(var h=H.JSC$10669_wrapped.objectStoreNames,y=[],m=0;m<h.length;m++){var W=h.item(m);if(W===null)throw Error("Uc");y.push(W)}M=new M("UNKNOWN_ABORT",{objectStoreNames:y.join(),dbName:H.JSC$10669_wrapped.db.name,mode:H.JSC$10669_wrapped.mode});t(M)}})})},$VZ=function(f,H,v){var t=new Promise(function(M,h){try{var y=H(f);
v&&f.commit();y.then(function(m){M(m)}).catch(h)}catch(m){h(m),f.abort()}});
return Promise.all([t,f.done]).then(function(M){return _.V(M).next().value})};
NJ.prototype.abort=function(){this.JSC$10669_wrapped.abort();this.aborted=!0;throw new QQ("EXPLICIT_ABORT");};
NJ.prototype.commit=function(){if(!this.aborted){var f,H;(H=(f=this.JSC$10669_wrapped).commit)==null||H.call(f)}};
NJ.prototype.objectStore=function(f){f=this.JSC$10669_wrapped.objectStore(f);var H=this.objectStoreCache.get(f);H||(H=new g_(f),this.objectStoreCache.set(f,H));return H};
var IQ=function(f){this.JSC$10671_wrapped=f};
IQ.prototype.count=function(f){return Cl(this.JSC$10671_wrapped.count(f))};
IQ.prototype.delete=function(f){return _.ha(this,{query:f},function(H){return H.delete().then(function(){return H.continue()})})};
IQ.prototype.get=function(f){return Cl(this.JSC$10671_wrapped.get(f))};
IQ.prototype.getAll=function(f,H){return"getAll"in IDBIndex.prototype?Cl(this.JSC$10671_wrapped.getAll(f,H)):dV_(this,f,H)};
var dV_=function(f,H,v){var t=[];return _.ha(f,{query:H},function(M){if(!(v!==void 0&&t.length>=v))return t.push(M.getValue()),M.continue()}).then(function(){return t})};
IQ.prototype.keyPath=function(){return this.JSC$10671_wrapped.keyPath};
IQ.prototype.unique=function(){return this.JSC$10671_wrapped.unique};
_.ha=function(f,H,v){f=f.JSC$10671_wrapped.openCursor(H.query===void 0?null:H.query,H.direction===void 0?"next":H.direction);return So_(f).then(function(t){return oTR(t,v)})};
Sx=function(f,H){this.request=f;this.cursor=H};
So_=function(f){return Cl(f).then(function(H){return H?new Sx(f,H):null})};
Sx.prototype.continue=function(f){this.cursor.continue(f);return So_(this.request)};
Sx.prototype.delete=function(){return Cl(this.cursor.delete()).then(function(){})};
Sx.prototype.getValue=function(){return this.cursor.value};
Sx.prototype.update=function(f){return Cl(this.cursor.update(f))};var d_=function(f,H){this.name=f;this.options=H;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},jVh;
d_.prototype.openDb=function(f,H,v){v=v===void 0?{}:v;return paT(f,H,v)};
d_.prototype.delete=function(f){f=f===void 0?{}:f;return _.Xm(this.name,f)};
jVh=function(f,H){return new QQ("INCOMPATIBLE_DB_VERSION",{dbName:f.name,oldVersion:f.options.version,newVersion:H})};
_.A8=function(f,H){if(!H)throw a2("openWithToken",nl(f.name));return f.open()};
d_.prototype.open=function(){var f=this;if(!this.isCompatible)throw jVh(this);if(this.connectionPromise)return this.connectionPromise;var H,v=function(){f.connectionPromise===H&&(f.connectionPromise=void 0)},t={blocking:function(h){h.close()},
closed:v,terminated:v,upgrade:this.options.upgrade},M=function(){var h,y,m,W,I,S,d,Z,l,L;return _.Y(function(r){switch(r.nextAddress){case 1:return y=(h=Error().stack)!=null?h:"",_.Zc(r,2),r.yield(f.openDb(f.name,f.options.version,t),4);case 4:for(var n=m=r.yieldResult,Q=f.options,C=[],w=_.V(Object.keys(Q.objectStores)),c=w.next();!c.done;c=w.next()){c=c.value;var A=Q.objectStores[c],X=A.removedAtVersion===void 0?Number.MAX_VALUE:A.removedAtVersion;!(n.JSC$10646_wrapped.version>=A.addedAtVersion)||
n.JSC$10646_wrapped.version>=X||n.JSC$10646_wrapped.objectStoreNames.contains(c)||C.push(c)}W=C;if(W.length===0){r.jumpTo(5);break}I=Object.keys(f.options.objectStores);S=m.objectStoreNames();if(f.timesReopenedToFixMissingObjectStore<_.VQ("ytidb_reopen_db_retries",0))return f.timesReopenedToFixMissingObjectStore++,m.close(),_.Kl(new QQ("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:f.name,expectedObjectStores:I,foundObjectStores:S})),r.return(M());if(!(f.timesDeletedToFixMissingObjectStore<_.VQ("ytidb_remake_db_retries",
1))){r.jumpTo(6);break}f.timesDeletedToFixMissingObjectStore++;return r.yield(f.delete(),7);case 7:return _.Kl(new QQ("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:f.name,expectedObjectStores:I,foundObjectStores:S})),r.return(M());case 6:throw new RLr(S,I);case 5:return r.return(m);case 2:d=_.xu(r);if(d instanceof DOMException?d.name!=="VersionError":"DOMError"in self&&d instanceof DOMError?d.name!=="VersionError":!(d instanceof Object&&"message"in d)||d.message!=="An attempt was made to open a database using a lower version than the existing version."){r.jumpTo(8);
break}return r.yield(f.openDb(f.name,void 0,Object.assign({},t,{upgrade:void 0})),9);case 9:Z=r.yieldResult;l=Z.getVersion();if(f.options.version!==void 0&&l>f.options.version+1)throw Z.close(),f.isCompatible=!1,jVh(f,l);return r.return(Z);case 8:throw v(),d instanceof Error&&!_.J("ytidb_async_stack_killswitch")&&(d.stack=d.stack+"\n"+y.substring(y.indexOf("\n")+1)),zj_(d,f.name,"",(L=f.options.version)!=null?L:-1);}})};
return this.connectionPromise=H=M()};var Q5B=new d_("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(f,H){H(1)&&CN(f,"databases",{keyPath:"actualName"})}});var NLg,CAb=new function(){}(new function(){});new _.dZ;var sVo=function(f,H){d_.call(this,f,H);this.options=H;o2(f)};
_.e(sVo,d_);var fnR=function(f,H){var v;return function(){v||(v=new sVo(f,H));return v}};
sVo.prototype.openDb=function(f,H,v){v=v===void 0?{}:v;return(this.options.shared?iYR:bYB)(f,H,Object.assign({},v))};
sVo.prototype.delete=function(f){f=f===void 0?{}:f;return(this.options.shared?qFr:kZR)(this.name,f)};var Z1M={},HGg=H8("ytGcfConfig",{objectStores:(Z1M.coldConfigStore={addedAtVersion:1},Z1M.hotConfigStore={addedAtVersion:1},Z1M),shared:!1,upgrade:function(f,H){H(1)&&(E0(CN(f,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),E0(CN(f,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var JMg=function(){_.zO.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var f=_.ES("yt.gcf.config.hotUpdateCallbacks");f?(this.localHotConfigJobQueue=[].concat(_.pS(f)),this.sharedHotConfigJobQueue=f):(this.sharedHotConfigJobQueue=[],_.qJ("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.e(JMg,_.zO);JMg.prototype.disposeInternal=function(){for(var f=_.V(this.localHotConfigJobQueue),H=f.next();!H.done;H=f.next()){var v=this.sharedHotConfigJobQueue;H=v.indexOf(H.value);H>=0&&v.splice(H,1)}this.localHotConfigJobQueue.length=0;_.zO.prototype.disposeInternal.call(this)};var xF=function(){var f=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new JMg;this.TEST_ONLY={initializeConfigDb:function(){f.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return f.coldGlobalConfigGroup},
setHotConfigGroup:function(H){lxM(f,H)},
setHotHashData:function(H){f.setHotHashData(H)},
setColdConfigGroup:function(H){UVn(f,H)},
getColdHashData:function(){return f.coldHashData},
getHotHashData:function(){return f.hotHashData},
getHotConfigGroup:function(){return f.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return eLa()},
getExportedHotConfigGroup:function(){return jx()},
getExportedColdHashData:function(){return _.ES("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.ES("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){Luh(f)},
resetInstance:function(){f.setHotHashData(void 0);xV9(f);delete xF.instance},
setDebounceTimer:function(H){f.debounceTimer=H},
getDebounceTimer:function(){return f.debounceTimer}}},BTr=function(){if(!xF.instance){var f=new xF;
xF.instance=f}return xF.instance},rMh=function(f){var H;
_.Y(function(v){if(v.nextAddress==1)return _.J("start_client_gcf")||_.J("delete_gcf_config_db")?_.J("start_client_gcf")?v.yield(_.fN(),3):v.jumpTo(2):v.return();v.nextAddress!=2&&((H=v.yieldResult)&&_.Uk()&&!_.J("delete_gcf_config_db")?(f.isConfigDbInitialized=!0,Luh(f)):(zLo(f),FuZ(f)));return _.J("delete_gcf_config_db")?v.yield(Vc_(),0):v.jumpTo(0)})},Bk=function(){var f;
return(f=jx())!=null?f:_.a8("RAW_HOT_CONFIG_GROUP")},KuM=function(f){var H,v,t,M,h,y;
return _.Y(function(m){switch(m.nextAddress){case 1:if(f.hotGlobalConfigGroup)return m.return(jx());if(!f.isConfigDbInitialized)return H=a2("getHotConfig IDB not initialized"),_.Nw(H),m.return(Promise.reject(H));v=wH();t=_.a8("TIME_CREATED_MS");if(!v){M=a2("getHotConfig token error");_.Nw(M);m.jumpTo(2);break}return m.yield(R9g(v),3);case 3:if((h=m.yieldResult)&&h.timestamp>t)return lxM(f,h.config),f.setHotHashData(h.hashData),m.return(jx());case 2:FuZ(f);if(!(v&&f.hotGlobalConfigGroup&&f.hotHashData)){m.jumpTo(4);
break}return m.yield(tcN(f.hotGlobalConfigGroup,f.hotHashData,v,t),4);case 4:return f.hotGlobalConfigGroup?m.return(jx()):(y=new _.e$("Config not available in ytConfig"),_.Nw(y),m.return(Promise.reject(y)))}})},o7a=function(f){var H,v,t,M,h,y;
return _.Y(function(m){switch(m.nextAddress){case 1:if(f.coldGlobalConfigGroup)return m.return(eLa());if(!f.isConfigDbInitialized)return H=a2("getColdConfig IDB not initialized"),_.Nw(H),m.return(Promise.reject(H));v=wH();t=_.a8("TIME_CREATED_MS");if(!v){M=a2("getColdConfig");_.Nw(M);m.jumpTo(2);break}return m.yield(h9v(v),3);case 3:if((h=m.yieldResult)&&h.timestamp>t)return UVn(f,h.config),DVT(f,h.configData),xV9(f,h.hashData),m.return(eLa());case 2:zLo(f);if(!(v&&f.coldGlobalConfigGroup&&f.coldHashData&&
f.configData)){m.jumpTo(4);break}return m.yield(Mc3(f.coldGlobalConfigGroup,f.coldHashData,f.configData,v,t),4);case 4:return f.coldGlobalConfigGroup?m.return(eLa()):(y=new _.e$("Config not available in ytConfig"),_.Nw(y),m.return(Promise.reject(y)))}})},Luh=function(f){if(!f.hotGlobalConfigGroup||!f.coldGlobalConfigGroup){if(!wH()){var H=a2("scheduleGetConfigs");
_.Nw(H)}f.initJob||(f.initJob=_.nN.addLowPriorityJob(function(){return _.Y(function(v){switch(v.nextAddress){case 1:return _.Zc(v,2),v.yield(KuM(f),4);case 4:_.ch(v,3);break;case 2:_.xu(v);case 3:return _.Zc(v,5),v.yield(o7a(f),7);case 7:_.ch(v,6);break;case 5:_.xu(v);case 6:f.initJob&&(f.initJob=0),_.Bj(v)}})},100))}},tfr=function(f,H,v){var t,M,h;
return _.Y(function(y){switch(y.nextAddress){case 1:if(!_.J("start_client_gcf")){y.jumpTo(0);break}v&&lxM(f,v);f.setHotHashData(H);t=wH();if(!t){y.jumpTo(3);break}if(v){y.jumpTo(4);break}return y.yield(R9g(t),5);case 5:M=y.yieldResult,v=(h=M)==null?void 0:h.config;case 4:return y.yield(tcN(v,H,t),3);case 3:if(v)for(var m=v,W=_.V(f.configUpdateService.sharedHotConfigJobQueue),I=W.next();!I.done;I=W.next())I=I.value,I(m);_.Bj(y)}})},Mfr=function(f,H,v){var t,M,h,y;
return _.Y(function(m){if(m.nextAddress==1){if(!_.J("start_client_gcf"))return m.jumpTo(0);xV9(f,H);return(t=wH())?v?m.jumpTo(4):m.yield(h9v(t),5):m.jumpTo(0)}m.nextAddress!=4&&(M=m.yieldResult,v=(h=M)==null?void 0:h.config);if(!v)return m.jumpTo(0);y=v.configData;return m.yield(Mc3(v,H,y,t),0)})},LN3=function(){var f=BTr(),H=(0,_.ta)()-f.debounceTimer;
if(!(f.debounceTimer!==0&&H<_.VQ("send_config_hash_timer"))){H=_.ES("yt.gcf.config.coldConfigData");var v=_.ES("yt.gcf.config.hotHashData"),t=_.ES("yt.gcf.config.coldHashData");H&&v&&t&&(f.debounceTimer=(0,_.ta)());return{coldConfigData:H,hotHashData:v,coldHashData:t}}},zLo=function(f){UVn(f,_.a8("RAW_COLD_CONFIG_GROUP"));
xV9(f,_.a8("SERIALIZED_COLD_HASH_DATA"));var H;DVT(f,(H=f.coldGlobalConfigGroup)==null?void 0:H.configData)},FuZ=function(f){lxM(f,_.a8("RAW_HOT_CONFIG_GROUP"));
f.setHotHashData(_.a8("SERIALIZED_HOT_HASH_DATA"))},lxM=function(f,H){f.hotGlobalConfigGroup=H;
_.qJ("yt.gcf.config.hotConfigGroup",f.hotGlobalConfigGroup||null)},UVn=function(f,H){f.coldGlobalConfigGroup=H;
_.qJ("yt.gcf.config.coldConfigGroup",f.coldGlobalConfigGroup||null)};
xF.prototype.setHotHashData=function(f){this.hotHashData=f;_.qJ("yt.gcf.config.hotHashData",this.hotHashData||null)};
var xV9=function(f,H){f.coldHashData=H;_.qJ("yt.gcf.config.coldHashData",f.coldHashData||null)},DVT=function(f,H){f.configData=H;
_.qJ("yt.gcf.config.coldConfigData",f.configData||null)},jx=function(){return _.ES("yt.gcf.config.hotConfigGroup")},eLa=function(){return _.ES("yt.gcf.config.coldConfigGroup")};var IP={},n7_=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";IP.assign=function(f){for(var H=Array.prototype.slice.call(arguments,1);H.length;){var v=H.shift();if(v){if(typeof v!=="object")throw new TypeError("Xc`"+v);for(var t in v)Object.prototype.hasOwnProperty.call(v,t)&&(f[t]=v[t])}}return f};
IP.shrinkBuf=function(f,H){if(f.length===H)return f;if(f.subarray)return f.subarray(0,H);f.length=H;return f};
var pbZ={arraySet:function(f,H,v,t,M){if(H.subarray&&f.subarray)f.set(H.subarray(v,v+t),M);else for(var h=0;h<t;h++)f[M+h]=H[v+h]},
flattenChunks:function(f){var H,v;var t=v=0;for(H=f.length;t<H;t++)v+=f[t].length;var M=new Uint8Array(v);t=v=0;for(H=f.length;t<H;t++){var h=f[t];M.set(h,v);v+=h.length}return M}},QVa={arraySet:function(f,H,v,t,M){for(var h=0;h<t;h++)f[M+h]=H[v+h]},
flattenChunks:function(f){return[].concat.apply([],f)}};
IP.setTyped=function(){n7_?(IP.Buf8=Uint8Array,IP.Buf16=Uint16Array,IP.Buf32=Int32Array,IP.assign(IP,pbZ)):(IP.Buf8=Array,IP.Buf16=Array,IP.Buf32=Array,IP.assign(IP,QVa))};
IP.setTyped();var u2o=!0;try{new Uint8Array(1)}catch(f){u2o=!1}
var RsH=function(f){var H,v,t=f.length,M=0;for(H=0;H<t;H++){var h=f.charCodeAt(H);if((h&64512)===55296&&H+1<t){var y=f.charCodeAt(H+1);(y&64512)===56320&&(h=65536+(h-55296<<10)+(y-56320),H++)}M+=h<128?1:h<2048?2:h<65536?3:4}var m=new IP.Buf8(M);for(H=v=0;v<M;H++)h=f.charCodeAt(H),(h&64512)===55296&&H+1<t&&(y=f.charCodeAt(H+1),(y&64512)===56320&&(h=65536+(h-55296<<10)+(y-56320),H++)),h<128?m[v++]=h:(h<2048?m[v++]=192|h>>>6:(h<65536?m[v++]=224|h>>>12:(m[v++]=240|h>>>18,m[v++]=128|h>>>12&63),m[v++]=
128|h>>>6&63),m[v++]=128|h&63);return m};var AtT={};AtT=function(f,H,v,t){var M=f&65535|0;f=f>>>16&65535|0;for(var h;v!==0;){h=v>2E3?2E3:v;v-=h;do M=M+H[t++]|0,f=f+M|0;while(--h);M%=65521;f%=65521}return M|f<<16|0};for(var FB={},sT,axM=[],PKg=0;PKg<256;PKg++){sT=PKg;for(var G5a=0;G5a<8;G5a++)sT=sT&1?3988292384^sT>>>1:sT>>>1;axM[PKg]=sT}FB=function(f,H,v,t){v=t+v;for(f^=-1;t<v;t++)f=f>>>8^axM[(f^H[t])&255];return f^-1};var s0={};s0={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 pSs=[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],uE5=[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],hs5=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ctR=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ek=Array(576);$X(ek);var LN=Array(60);$X(LN);var dk=Array(512);$X(dk);var Sk=Array(256);$X(Sk);var Q9b=Array(29);$X(Q9b);var anr=Array(30);$X(anr);var vVv,tr3,Mrr,H2B=!1;var oP;
oP=[new DU(0,0,0,0,function(f,H){var v=65535;for(v>f.pending_buf_size-5&&(v=f.pending_buf_size-5);;){if(f.lookahead<=1){rk(f);if(f.lookahead===0&&H===0)return 1;if(f.lookahead===0)break}f.strstart+=f.lookahead;f.lookahead=0;var t=f.block_start+v;if(f.strstart===0||f.strstart>=t)if(f.lookahead=f.strstart-t,f.strstart=t,xX(f,!1),f.strm.avail_out===0)return 1;if(f.strstart-f.block_start>=f.w_size-262&&(xX(f,!1),f.strm.avail_out===0))return 1}f.insert=0;if(H===4)return xX(f,!0),f.strm.avail_out===0?3:
4;f.strstart>f.block_start&&xX(f,!1);return 1}),
new DU(4,4,8,4,bG3),new DU(4,5,16,8,bG3),new DU(4,6,32,32,bG3),new DU(4,4,16,16,KN),new DU(8,16,32,32,KN),new DU(8,16,128,128,KN),new DU(8,32,128,256,KN),new DU(32,128,258,1024,KN),new DU(32,258,258,4096,KN)];var fwR={};fwR=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 Vrs=Object.prototype.toString;
q6H.prototype.push=function(f,H){var v=this.strm,t=this.options.chunkSize;if(this.ended)return!1;var M=H===~~H?H:H===!0?4:0;typeof f==="string"?v.input=RsH(f):Vrs.call(f)==="[object ArrayBuffer]"?v.input=new Uint8Array(f):v.input=f;v.next_in=0;v.avail_in=v.input.length;do{v.avail_out===0&&(v.output=new IP.Buf8(t),v.next_out=0,v.avail_out=t);f=wSE(v,M);if(f!==1&&f!==0)return CKv(this,f),this.ended=!0,!1;if(v.avail_out===0||v.avail_in===0&&(M===4||M===2))if(this.options.to==="string"){var h=IP.shrinkBuf(v.output,
v.next_out);H=h;h=h.length;if(h<65537&&(H.subarray&&u2o||!H.subarray))H=String.fromCharCode.apply(null,IP.shrinkBuf(H,h));else{for(var y="",m=0;m<h;m++)y+=String.fromCharCode(H[m]);H=y}this.chunks.push(H)}else H=IP.shrinkBuf(v.output,v.next_out),this.chunks.push(H)}while((v.avail_in>0||v.avail_out===0)&&f!==1);if(M===4)return(v=this.strm)&&v.state?(t=v.state.status,t!==42&&t!==69&&t!==73&&t!==91&&t!==103&&t!==113&&t!==666?f=ZU(v,-2):(v.state=null,f=t===113?ZU(v,-3):0)):f=-2,CKv(this,f),this.ended=
!0,f===0;M===2&&(CKv(this,0),v.avail_out=0);return!0};
var CKv=function(f,H){H===0&&(f.result=f.options.to==="string"?f.chunks.join(""):IP.flattenChunks(f.chunks));f.chunks=[];f.err=H;f.msg=f.strm.msg};var E7n=typeof TextEncoder!=="undefined"?new TextEncoder:null,QKH=E7n?function(f){return E7n.encode(f)}:function(f){f=_.B_(f);
for(var H=new Uint8Array(f.length),v=0;v<H.length;v++)H[v]=f[v];return H};var d_T={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},sqE={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var ZB=function(f,H){this.version=f;this.args=H};
ZB.prototype.serialize=function(){return{version:this.version,args:this.args}};var WFs=function(f,H){this.topic=f;this.dataClass=H};
WFs.prototype.toString=function(){return this.topic};var NTr=_.ES("ytPubsub2Pubsub2Instance")||new _.dH;_.dH.prototype.subscribe=_.dH.prototype.subscribe;_.dH.prototype.unsubscribeByKey=_.dH.prototype.unsubscribeByKey;_.dH.prototype.publish=_.dH.prototype.publish;_.dH.prototype.clear=_.dH.prototype.clear;_.qJ("ytPubsub2Pubsub2Instance",NTr);var $ue=_.ES("ytPubsub2Pubsub2SubscribedKeys")||{};_.qJ("ytPubsub2Pubsub2SubscribedKeys",$ue);var gVe=_.ES("ytPubsub2Pubsub2TopicToKeys")||{};_.qJ("ytPubsub2Pubsub2TopicToKeys",gVe);
var O2g=_.ES("ytPubsub2Pubsub2IsAsync")||{};_.qJ("ytPubsub2Pubsub2IsAsync",O2g);_.qJ("ytPubsub2Pubsub2SkipSubKey",null);var esR=void 0,lwR=void 0;var Due=_.VQ("max_body_size_to_compress",5E5),oVv=_.VQ("min_body_size_to_compress",500),Q$=!0,PJT=0,u7=0,aws=_.VQ("compression_performance_threshold_lr",250),GWb=_.VQ("slow_compressions_before_abandon_count",4),BXg=!1,zs_=new Map,pBH=1,nVB=!0;_.f8(aP,NXe);aP.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 cMh=function(f,H,v){v||(v=0);var t=f.W_;if(typeof H==="string")for(var M=0;M<16;M++)t[M]=H.charCodeAt(v)<<24|H.charCodeAt(v+1)<<16|H.charCodeAt(v+2)<<8|H.charCodeAt(v+3),v+=4;else for(M=0;M<16;M++)t[M]=H[v]<<24|H[v+1]<<16|H[v+2]<<8|H[v+3],v+=4;for(H=16;H<80;H++)v=t[H-3]^t[H-8]^t[H-14]^t[H-16],t[H]=(v<<1|v>>>31)&4294967295;H=f.chain_[0];v=f.chain_[1];M=f.chain_[2];for(var h=f.chain_[3],y=f.chain_[4],m,W,I=0;I<80;I++)I<40?I<20?(m=h^v&(M^h),W=1518500249):(m=v^M^h,W=1859775393):I<60?(m=v&M|h&(v|M),
W=2400959708):(m=v^M^h,W=3395469782),m=(H<<5|H>>>27)+m+y+W+t[I]&4294967295,y=h,h=M,M=(v<<30|v>>>2)&4294967295,v=H,H=m;f.chain_[0]=f.chain_[0]+H&4294967295;f.chain_[1]=f.chain_[1]+v&4294967295;f.chain_[2]=f.chain_[2]+M&4294967295;f.chain_[3]=f.chain_[3]+h&4294967295;f.chain_[4]=f.chain_[4]+y&4294967295};
aP.prototype.update=function(f,H){if(f!=null){H===void 0&&(H=f.length);for(var v=H-this.blockSize,t=0,M=this.buf_,h=this.inbuf_;t<H;){if(h==0)for(;t<=v;)cMh(this,f,t),t+=this.blockSize;if(typeof f==="string")for(;t<H;){if(M[h]=f.charCodeAt(t),++h,++t,h==this.blockSize){cMh(this,M);h=0;break}}else for(;t<H;)if(M[h]=f[t],++h,++t,h==this.blockSize){cMh(this,M);h=0;break}}this.inbuf_=h;this.total_+=H}};
aP.prototype.digest=function(){var f=[],H=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var v=this.blockSize-1;v>=56;v--)this.buf_[v]=H&255,H/=256;cMh(this,this.buf_);for(v=H=0;v<5;v++)for(var t=24;t>=0;t-=8)f[H]=this.chain_[v]>>t&255,++H;return f};var AJN;var lb=function(f){var H=this;this.bypassDbTokenDependency=this.initialized=!1;this.potentialEsfErrorCounter=this.intervalJob=0;this.handleError=function(){};
this.handleWarning=function(){};
this.now=Date.now;this.disableYtIdbTransactions=!1;this.TEST_ONLY={setDbToken:function(S){H.databaseToken=S},
triggerThrottle:function(){H.throttledSend()},
cancelThrottle:function(){H.cancelThrottledSend()},
immediateSend:function(S){return _.Y(function(d){return d.yield(H.immediateSend(S),0)})},
requestWithinAgeLimit:function(S,d){return H.requestWithinAgeLimit(S,d)},
retryQueuedRequests:function(){H.retryQueuedRequests()}};
var v;this.throttleTimeout=(v=f.throttleTimeout)!=null?v:100;var t;this.retryMaxAttempts=(t=f.retryMaxAttempts)!=null?t:1;var M;this.requestAgeLimitMs=(M=f.requestAgeLimitMs)!=null?M:2592E6;var h;this.queuedRequestAgeLimitMs=(h=f.queuedRequestAgeLimitMs)!=null?h:12E4;var y;this.retryDelayMs=(y=f.retryDelayMs)!=null?y:5E3;var m;this.databaseToken=(m=f.databaseToken)!=null?m:void 0;this.enableCleaning=!!f.enableCleaning;var W;this.cleaningRate=(W=f.cleaningRate)!=null?W:.1;var I;this.potentialEsfErrorLimit=
(I=f.potentialEsfErrorLimit)!=null?I:10;f.handleError&&(this.handleError=f.handleError);f.handleWarning&&(this.handleWarning=f.handleWarning);f.disableYtIdbTransactions&&(this.disableYtIdbTransactions=f.disableYtIdbTransactions);f.bypassDbTokenDependency&&(this.bypassDbTokenDependency=f.bypassDbTokenDependency);this.getBooleanFlag=f.getBooleanFlag;this.jobManager=f.jobManager;this.logsStore=f.logsStore;this.networkManager=f.networkManager;this.sendFn=f.sendFn;this.onlineEvent=f.onlineEvent;this.offlineEvent=
f.offlineEvent;JA(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&Xba(this)},Xba=function(f){JA(f)&&!f.disableYtIdbTransactions&&(f.initialized=!0,f.enableCleaning&&Math.random()<=f.cleaningRate&&f.logsStore.cleanLogsStore(f.databaseToken),f.retryQueuedRequests(),f.networkManager.isNetworkAvailable()&&f.throttledSend(),f.networkManager.listen(f.onlineEvent,f.throttledSend.bind(f)),f.networkManager.listen(f.offlineEvent,f.cancelThrottledSend.bind(f)))};
_.R=lb.prototype;_.R.writeThenSend=function(f,H){var v=this;H=H===void 0?{}:H;if(JA(this)&&this.initialized){var t={url:f,options:H,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(t,this.databaseToken).then(function(M){t.id=M;v.networkManager.isNetworkAvailable()&&v.immediateSend(t)}).catch(function(M){v.immediateSend(t);
AMC(v,M)})}else this.sendFn(f,H)};
_.R.sendThenWrite=function(f,H,v){var t=this;H=H===void 0?{}:H;if(JA(this)&&this.initialized){var M={url:f,options:H,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(M.skipRetry=v);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!M.skipRetry){if(!M.skipRetry){var h=H.onError?H.onError:function(){};
H.onError=function(y,m){return _.Y(function(W){if(W.nextAddress==1)return W.yield(t.logsStore.set(M,t.databaseToken).catch(function(I){AMC(t,I)}),2);
h(y,m);_.Bj(W)})}}this.sendFn(f,H,M.skipRetry)}else this.logsStore.set(M,this.databaseToken).catch(function(y){t.sendFn(f,H,M.skipRetry);
AMC(t,y)})}else this.sendFn(f,H,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&v)};
_.R.sendAndWrite=function(f,H){var v=this;H=H===void 0?{}:H;if(JA(this)&&this.initialized){var t={url:f,options:H,timestamp:this.now(),status:"NEW",sendCount:0},M=!1,h=H.onSuccess?H.onSuccess:function(){};
t.options.onSuccess=function(y,m){t.id!==void 0?v.logsStore.deleteRequest(t.id,v.databaseToken):M=!0;v.networkManager.networkStatusHint&&v.getBooleanFlag&&v.getBooleanFlag("vss_network_hint")&&v.networkManager.networkStatusHint(!0);h(y,m)};
this.sendFn(t.url,t.options,void 0,!0);this.logsStore.set(t,this.databaseToken).then(function(y){t.id=y;M&&v.logsStore.deleteRequest(t.id,v.databaseToken)}).catch(function(y){AMC(v,y)})}else this.sendFn(f,H,void 0,!0)};
_.R.throttledSend=function(){var f=this;if(!JA(this))throw Error("$c");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var H;return _.Y(function(v){if(v.nextAddress==1)return v.yield(f.logsStore.getMostRecentByStatus("NEW",f.databaseToken),2);if(v.nextAddress!=3)return H=v.yieldResult,H?v.yield(f.immediateSend(H),3):(f.cancelThrottledSend(),v.return());f.intervalJob&&(f.intervalJob=0,f.throttledSend());_.Bj(v)})},this.throttleTimeout))};
_.R.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.R.immediateSend=function(f){var H=this,v;return _.Y(function(t){switch(t.nextAddress){case 1:if(!JA(H))throw Error("ad");if(f.id===void 0){t.jumpTo(2);break}return t.yield(H.logsStore.markAsQueued(f.id,H.databaseToken),3);case 3:(v=t.yieldResult)||H.handleWarning(Error("bd"));case 2:if(H.requestWithinAgeLimit(f,H.requestAgeLimitMs)){t.jumpTo(4);break}H.handleWarning(Error("cd"));if(f.id===void 0){t.jumpTo(5);break}return t.yield(H.logsStore.deleteRequest(f.id,H.databaseToken),5);case 5:return t.return();
case 4:f.skipRetry||(f=b1H(H,f));if(!f){t.jumpTo(0);break}if(!f.skipRetry||f.id===void 0){t.jumpTo(8);break}return t.yield(H.logsStore.deleteRequest(f.id,H.databaseToken),8);case 8:H.sendFn(f.url,f.options,!!f.skipRetry),_.Bj(t)}})};
var b1H=function(f,H){if(!JA(f))throw Error("dd");var v=H.options.onError?H.options.onError:function(){};
H.options.onError=function(M,h){var y,m,W,I;return _.Y(function(S){switch(S.nextAddress){case 1:y=wBH(h);(m=qEH(h))&&f.getBooleanFlag&&f.getBooleanFlag("web_enable_error_204")&&f.handleError(Error("ed"),H.url,h);if(!(f.getBooleanFlag&&f.getBooleanFlag("nwl_consider_error_code")&&y||f.getBooleanFlag&&!f.getBooleanFlag("nwl_consider_error_code")&&f.potentialEsfErrorCounter<=f.potentialEsfErrorLimit)){S.jumpTo(2);break}if(!f.networkManager.sendNetworkCheckRequest){S.jumpTo(3);break}return S.yield(f.networkManager.sendNetworkCheckRequest(),
3);case 3:if(f.networkManager.isNetworkAvailable()){S.jumpTo(2);break}v(M,h);if(!f.getBooleanFlag||!f.getBooleanFlag("nwl_consider_error_code")||((W=H)==null?void 0:W.id)===void 0){S.jumpTo(6);break}return S.yield(f.logsStore.resetRequest(H.id,f.databaseToken,!1),6);case 6:return S.return();case 2:if(f.getBooleanFlag&&f.getBooleanFlag("nwl_consider_error_code")&&!y&&f.potentialEsfErrorCounter>f.potentialEsfErrorLimit)return S.return();f.potentialEsfErrorCounter++;if(((I=H)==null?void 0:I.id)===void 0){S.jumpTo(8);
break}return H.sendCount<f.retryMaxAttempts?S.yield(f.logsStore.resetRequest(H.id,f.databaseToken,!0,m?!1:void 0),12):S.yield(f.logsStore.deleteRequest(H.id,f.databaseToken),8);case 12:f.jobManager.addLowPriorityJob(function(){f.networkManager.isNetworkAvailable()&&f.throttledSend()},f.retryDelayMs);
case 8:v(M,h),_.Bj(S)}})};
var t=H.options.onSuccess?H.options.onSuccess:function(){};
H.options.onSuccess=function(M,h){var y;return _.Y(function(m){if(m.nextAddress==1)return((y=H)==null?void 0:y.id)===void 0?m.jumpTo(2):m.yield(f.logsStore.deleteRequest(H.id,f.databaseToken),2);f.networkManager.networkStatusHint&&f.getBooleanFlag&&f.getBooleanFlag("vss_network_hint")&&f.networkManager.networkStatusHint(!0);t(M,h);_.Bj(m)})};
return H};
lb.prototype.requestWithinAgeLimit=function(f,H){f=f.timestamp;return this.now()-f>=H?!1:!0};
lb.prototype.retryQueuedRequests=function(){var f=this;if(!JA(this))throw Error("fd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(H){H&&!f.requestWithinAgeLimit(H,f.queuedRequestAgeLimitMs)?f.jobManager.addLowPriorityJob(function(){return _.Y(function(v){if(v.nextAddress==1)return H.id===void 0?v.jumpTo(2):v.yield(f.logsStore.resetRequest(H.id,f.databaseToken),2);f.retryQueuedRequests();_.Bj(v)})}):f.networkManager.isNetworkAvailable()&&f.throttledSend()})};
var AMC=function(f,H){f.writeError&&!f.networkManager.isNetworkAvailable()?f.writeError(H):f.handleError(H)},JA=function(f){return!!f.databaseToken||f.bypassDbTokenDependency};var fIg;var VfN={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,
startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,
keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527};var i19={},mE5=H8("ServiceWorkerLogsDatabase",{objectStores:(i19.SWHealthLog={addedAtVersion:1},i19),shared:!0,upgrade:function(f,H){H(1)&&E0(CN(f,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var jus={},dEv=0;var lIb;var UT=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},b7=function(){if(!UT.instance){var f=_.ES("yt.networkRequestMonitor.instance")||new UT;
_.qJ("yt.networkRequestMonitor.instance",f);UT.instance=f}return UT.instance};
UT.prototype.requestComplete=function(f,H){H&&(this.anyRequestHasSucceeded=!0);f=this.removeParams(f);this.requestMap.get(f)||this.requestMap.set(f,H)};
UT.prototype.isEndpointCFR=function(f){f=this.removeParams(f);return(f=this.requestMap.get(f))?!1:f===!1&&this.anyRequestHasSucceeded?!0:null};
UT.prototype.removeParams=function(f){return f.split("?")[0]};
UT.prototype.removeParams=UT.prototype.removeParams;UT.prototype.isEndpointCFR=UT.prototype.isEndpointCFR;UT.prototype.requestComplete=UT.prototype.requestComplete;UT.getInstance=b7;var ex=function(f){_.Sg.call(this);var H=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=f!=null?f:{addLowPriorityJob:function(M,h){return setTimeout(M,h)},
cancelJob:function(M){clearTimeout(M)}};
var v,t;this.isOnline=(t=(v=window.navigator)==null?void 0:v.onLine)!=null?t:!0;this.onNavigatorChange=function(){return _.Y(function(M){return M.yield(k5o(H),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||TTh(this)};
_.e(ex,_.Sg);ex.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete ex.instance};
ex.prototype.isNetworkAvailable=function(){return this.isOnline};
var TTh=function(f){f.pollingJob=f.jobManager.addLowPriorityJob(function(){var H;return _.Y(function(v){if(v.nextAddress==1)return f.isOnline?((H=window.navigator)==null?0:H.onLine)?v.jumpTo(3):v.yield(k5o(f),3):v.yield(k5o(f),3);TTh(f);_.Bj(v)})},3E4)},k5o=function(f,H){return f.networkRequestPromise?f.networkRequestPromise:f.networkRequestPromise=new Promise(function(v){var t,M,h,y;
return _.Y(function(m){switch(m.nextAddress){case 1:return t=window.AbortController?new window.AbortController:void 0,h=(M=t)==null?void 0:M.signal,y=!1,_.Zc(m,2,3),t&&(f.abortTimeoutKey=f.jobManager.addLowPriorityJob(function(){t.abort()},H||2E4)),m.yield(fetch("/generate_204",{method:"HEAD",
signal:h}),5);case 5:y=!0;case 3:_.lk(m);f.networkRequestPromise=void 0;f.abortTimeoutKey&&(f.jobManager.cancelJob(f.abortTimeoutKey),f.abortTimeoutKey=0);y!==f.isOnline&&(f.isOnline=y,f.isOnline?f.dispatchEvent("networkstatus-online"):f.dispatchEvent("networkstatus-offline"));v(y);_.ea(m,0);break;case 2:_.xu(m),y=!1,m.jumpTo(3)}})})};var LR=function(){_.Sg.call(this);var f=this;this.shouldFlushErrors=!1;ex.instance||(ex.instance=new ex(_.nN));this.sharedNetworkStatusManager=ex.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(f.shouldFlushErrors&&_.J("offline_error_handling")){var H=UE5().get("errors",!0);if(H){for(var v in H)if(H[v]){var t=new _.e$(v,"sent via offline_errors");t.name=H[v].name;t.stack=H[v].stack;t.level=H[v].level;_.Ge(t)}UE5().set("errors",{},2592E3,!0)}}})};
_.e(LR,_.Sg);var wb_=function(){if(!LR.instance){var f=_.ES("yt.networkStatusManager.instance")||new LR;_.qJ("yt.networkStatusManager.instance",f);LR.instance=f}return LR.instance};
_.R=LR.prototype;_.R.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.R.networkStatusHint=function(f){this.sharedNetworkStatusManager.isOnline=f};
_.R.getWindowStatus=function(){var f=window.navigator.onLine;return f===void 0?!0:f};
_.R.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.R.listen=function(f,H){return this.sharedNetworkStatusManager.listen(f,H)};
_.R.sendNetworkCheckRequest=function(f){f=k5o(this.sharedNetworkStatusManager,f);f.then(function(H){_.J("use_cfr_monitor")&&b7().requestComplete("generate_204",H)});
return f};
LR.prototype.sendNetworkCheckRequest=LR.prototype.sendNetworkCheckRequest;LR.prototype.listen=LR.prototype.listen;LR.prototype.enableErrorFlushing=LR.prototype.enableErrorFlushing;LR.prototype.getWindowStatus=LR.prototype.getWindowStatus;LR.prototype.networkStatusHint=LR.prototype.networkStatusHint;LR.prototype.isNetworkAvailable=LR.prototype.isNetworkAvailable;LR.getInstance=wb_;_.Aa=function(f){f=f===void 0?{}:f;_.Sg.call(this);var H=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=wb_();var v=_.ES("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);v&&(f.rateLimit?(this.rateLimit=f.rateLimit,v("networkstatus-online",function(){qog(H,"publicytnetworkstatus-online")}),v("networkstatus-offline",function(){qog(H,"publicytnetworkstatus-offline")})):(v("networkstatus-online",function(){H.dispatchEvent("publicytnetworkstatus-online")}),v("networkstatus-offline",
function(){H.dispatchEvent("publicytnetworkstatus-offline")})))};
_.e(_.Aa,_.Sg);_.Aa.prototype.isNetworkAvailable=function(){var f=_.ES("yt.networkStatusManager.instance.isNetworkAvailable");return f?f.bind(this.nsmInstance)():!0};
_.Aa.prototype.networkStatusHint=function(f){var H=_.ES("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);H&&H(f)};
_.Aa.prototype.sendNetworkCheckRequest=function(f){var H=this,v;return _.Y(function(t){v=_.ES("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(H.nsmInstance);return _.J("skip_network_check_if_cfr")&&b7().isEndpointCFR("generate_204")?t.return(new Promise(function(M){var h;H.networkStatusHint(((h=window.navigator)==null?void 0:h.onLine)||!0);M(H.isNetworkAvailable())})):v?t.return(v(f)):t.return(!0)})};
var qog=function(f,H){f.rateLimit?f.lastJobTime?(_.nN.cancelJob(f.schedulerJob),f.schedulerJob=_.nN.addLowPriorityJob(function(){f.lastPublicSignalSent!==H&&(f.dispatchEvent(H),f.lastPublicSignalSent=H,f.lastJobTime=(0,_.ta)())},f.rateLimit-((0,_.ta)()-f.lastJobTime))):(f.dispatchEvent(H),f.lastPublicSignalSent=H,f.lastJobTime=(0,_.ta)()):f.dispatchEvent(H)};var zUe,x4=function(){lb.call(this,{logsStore:{cleanLogsStore:yVg,deleteRequest:VWH,getMostRecentByStatus:MW5,markAsQueued:hUr,resetRequest:RUN,set:tW5},networkManager:_.Fx_(),handleError:function(f,H,v){var t,M=v==null?void 0:(t=v.error)==null?void 0:t.code;if(M===400||M===415){var h;f=new _.e$(f.message,H,v==null?void 0:(h=v.error)==null?void 0:h.code);_.Nw(f,void 0,void 0,void 0,!0)}else _.Ge(f)},
handleWarning:_.Nw,sendFn:xE5,now:_.ta,writeError:eUE,jobManager:_.Zb(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.VQ("potential_esf_error_limit",10),getBooleanFlag:_.J,disableYtIdbTransactions:!(_.Uk()&&_.rV5())});this.initializationPromise=new _.dZ;_.J("networkless_immediately_drop_all_requests")&&YVs();qFr("LogsDatabaseV2")};
_.e(x4,lb);_.HPH=function(){var f=_.ES("yt.networklessRequestController.instance");f||(f=new x4,_.qJ("yt.networklessRequestController.instance",f),_.J("networkless_logging")&&_.fN().then(function(H){f.databaseToken=H;Xba(f);f.initializationPromise.resolve();f.enableCleaning&&Math.random()<=f.cleaningRate&&f.databaseToken&&Wxe(f.databaseToken);_.J("networkless_immediately_drop_sw_health_store")&&fFT(f)}));
return f};
x4.prototype.writeThenSend=function(f,H){H||(H={});H=B9b(f,H);_.Uk()||(this.initialized=!1);lb.prototype.writeThenSend.call(this,f,H)};
x4.prototype.sendThenWrite=function(f,H,v){H||(H={});H=B9b(f,H);_.Uk()||(this.initialized=!1);lb.prototype.sendThenWrite.call(this,f,H,v)};
x4.prototype.sendAndWrite=function(f,H){H||(H={});H=B9b(f,H);_.Uk()||(this.initialized=!1);lb.prototype.sendAndWrite.call(this,f,H)};
x4.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var fFT=function(f){var H;_.Y(function(v){if(!f.databaseToken)throw H=a2("clearSWHealthLogsDb"),H;return v.return(OuB(f.databaseToken).catch(function(t){f.handleError(t)}))})};_.DEH=!1;_.KxE=_.Mr.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.DEH};_.qJ("ytNetworklessLoggingInitializationOptions",_.KxE);var r8=function(f){var H=this;this.config_=null;f?this.config_=f:yte()&&(this.config_=_.RP());_.Lb(_.nN,function(){TXT(H)},5E3)};
r8.prototype.isReady=function(){!this.config_&&yte()&&(this.config_=_.RP());return!!this.config_};
var kW_=function(f,H,v,t){!_.a8("VISITOR_DATA")&&H!=="visitor_id"&&Math.random()<.01&&_.Nw(new _.e$("Missing VISITOR_DATA when sending innertube request.",H,v,t));if(!f.isReady()){var M=new _.e$("innertube xhrclient not ready",H,v,t);_.Ge(M);throw M;}var h={headers:t.headers||{},method:"POST",postParams:v,postBody:t.postBody,postBodyFormat:t.postBodyFormat||"JSON",onTimeout:function(){t.onTimeout()},
onFetchTimeout:t.onTimeout,onSuccess:function(d,Z){if(t.onSuccess)t.onSuccess(Z)},
onFetchSuccess:function(d){if(t.onSuccess)t.onSuccess(d)},
onProgress:function(d){if(t.onProgress)t.onProgress(d)},
onError:function(d,Z){if(t.onError)t.onError(Z)},
onFetchError:function(d){if(t.onError)t.onError(d)},
timeout:t.timeout,withCredentials:!0,compress:t.compress};h.headers["Content-Type"]||(h.headers["Content-Type"]="application/json");var y="";(M=f.config_.innertubeHostOverride)&&(y=M);var m=f.config_.innertubeUseThirdPartyAuth||!1,W=_.e9g(m,y,t);Object.assign(h.headers,W);h.headers.Authorization&&!y&&m&&(h.headers["x-origin"]=window.location.origin);var I=_.iZ(y+("/youtubei/"+f.config_.innertubeApiVersion+"/"+H),{alt:"json"}),S=function(d){d=d===void 0?!1:d;var Z;if(t.retry&&y!="www.youtube-nocookie.com"&&
(d||_.J("skip_ls_gel_retry")||h.headers["Content-Type"]!=="application/json"||(Z=b2N(H,v,W,m)),Z)){var l=h.onSuccess,L=h.onFetchSuccess;h.onSuccess=function(Q,C){i2e(Z);l(Q,C)};
v.onFetchSuccess=function(Q,C){i2e(Z);L(Q,C)}}try{if(d&&t.retry&&!t.networklessOptions.bypassNetworkless)h.method="POST",t.networklessOptions.writeThenSend?_.HPH().writeThenSend(I,h):_.HPH().sendAndWrite(I,h);
else if(t.compress){var r=!t.networklessOptions.writeThenSend;if(h.postBody){var n=h.postBody;typeof n!=="string"&&(n=JSON.stringify(h.postBody));uIe(I,n,h,_.I2,r)}else uIe(I,JSON.stringify(h.postParams),h,cX3,r)}else _.J("web_all_payloads_via_jspb")?_.I2(I,h):cX3(I,h)}catch(Q){if(Q.name==="InvalidAccessError")Z&&(i2e(Z),Z=0),_.Nw(Error("gd"));else throw Q;}Z&&_.Lb(_.nN,function(){TXT(f)},5E3)};
_.o65()?cdH().then(function(d){S(d)}):S(!1)};var XtE=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(XtE,_.mL);var v1_=0,pKB=_.Rp?"webkit":_.hZ?"moz":_.My?"ms":$qE?"o":"";_.qJ("ytDomDomGetNextId",_.ES("ytDomDomGetNextId")||function(){return++v1_});var tqr={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},Hk=function(f){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(f=
f||window.event){this.event=f;for(var H in f)H in tqr||(this[H]=f[H]);this.scale=f.scale;this.rotation=f.rotation;var v=f.target||f.srcElement;v&&v.nodeType==3&&(v=v.parentNode);this.target=v;var t=f.relatedTarget;if(t)try{t=t.nodeName?t:null}catch(M){t=null}else this.type=="mouseover"?t=f.fromElement:this.type=="mouseout"&&(t=f.toElement);this.relatedTarget=t;this.clientX=f.clientX!=void 0?f.clientX:f.pageX;this.clientY=f.clientY!=void 0?f.clientY:f.pageY;this.keyCode=f.keyCode?f.keyCode:f.which;
this.charCode=f.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=f.altKey;this.ctrlKey=f.ctrlKey;this.shiftKey=f.shiftKey;this.metaKey=f.metaKey;this.pageX_=f.pageX;this.pageY_=f.pageY}}catch(M){}},MqZ=function(f){if(document.body&&document.documentElement){var H=document.body.scrollTop+document.documentElement.scrollTop;
f.pageX_=f.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);f.pageY_=f.clientY+H}};
Hk.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Hk.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Hk.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var qR=_.Mr.ytEventsEventsListeners||{};_.qJ("ytEventsEventsListeners",qR);var CVR=_.Mr.ytEventsEventsCounter||{count:0};_.qJ("ytEventsEventsCounter",CVR);var E6N=_.IH(function(){var f=!1;try{var H=Object.defineProperty({},"capture",{get:function(){f=!0}});
window.addEventListener("test",null,H)}catch(v){}return f});_.f8(t7,_.zO);t7.prototype.onMouseMove_=function(f){f.pageX_===void 0&&MqZ(f);var H=f.pageX_;f.pageY_===void 0&&MqZ(f);this.position_=new _.al(H,f.pageY_)};
t7.prototype.checkPosition_=function(){if(this.position_){var f=(0,_.ta)();if(this.previousTime_!=0){var H=this.previousPosition_,v=this.position_,t=H.x-v.x;H=H.y-v.y;t=Math.sqrt(t*t+H*H)/(f-this.previousTime_);this.cycles_[this.index_]=Math.abs((t-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(v=H=0;v<4;v++)H+=this.cycles_[v]||0;H>=3&&this.callback_();this.previousVelocity_=t}this.previousTime_=f;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
t7.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.N93(this.mouseListenerKey_)};var buR={};var v$e=new _.Ak("rawColdConfigGroup");var HTR=new _.Ak("rawHotConfigGroup");var hab=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(hab,_.mL);var cqH=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(cqH,_.mL);var eN=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f,500)};
_.e(eN,_.mL);eN.prototype.getPayloadCase=function(){return _.js(this,Ra_)};
eN.prototype.getContext=function(){return _.V$(this,cqH,33)};
var Ra_=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,527];var iVv=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(iVv,_.mL);var e03=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(e03,_.mL);e03.prototype.setVideoId=function(f){return SN(this,1,L3H,Ux(f))};
e03.prototype.getPlaylistId=function(){return _.Jx(this,J7(this,L3H,2))};
var L3H=[1,2];var EK3=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(EK3,_.mL);EK3.prototype.getContext=function(){return _.V$(this,d8,1)};
EK3.prototype.getTier=function(){return _.x_(this,7)};var VqZ,V_,y_;VqZ=_.Mr.ytPubsubPubsubInstance||new _.dH;V_=_.Mr.ytPubsubPubsubSubscribedKeys||{};y_=_.Mr.ytPubsubPubsubTopicToKeys||{};_.iub=_.Mr.ytPubsubPubsubIsSynchronous||{};_.dH.prototype.subscribe=_.dH.prototype.subscribe;_.dH.prototype.unsubscribeByKey=_.dH.prototype.unsubscribeByKey;_.dH.prototype.publish=_.dH.prototype.publish;_.dH.prototype.clear=_.dH.prototype.clear;_.qJ("ytPubsubPubsubInstance",VqZ);_.qJ("ytPubsubPubsubTopicToKeys",y_);_.qJ("ytPubsubPubsubIsSynchronous",_.iub);
_.qJ("ytPubsubPubsubSubscribedKeys",V_);var mU=window;var BD=_.J("web_enable_lifecycle_monitoring")&&fEs()!==0,ygb=_.J("web_enable_lifecycle_monitoring");var Ye9=function(f){var H=this;var v=v===void 0?0:v;var t=t===void 0?_.Zb():t;this.JSC$10868_defaultPriority=v;this.scheduler=t;this.completedResolver=new _.dZ;this.scheduledPayloads=f;for(f={i$jscomp$492:0};f.i$jscomp$492<this.scheduledPayloads.length;f={payload$jscomp$20:void 0,i$jscomp$492:f.i$jscomp$492},f.i$jscomp$492++)f.payload$jscomp$20=this.scheduledPayloads[f.i$jscomp$492],v=function(M){return function(){M.payload$jscomp$20.job();H.scheduledPayloads[M.i$jscomp$492].processed=!0;H.scheduledPayloads.every(function(h){return h.processed===
!0})&&H.completedResolver.resolve()}}(f),t=this.getPriority(f.payload$jscomp$20),t=this.scheduler.addJob(v,t),this.scheduledPayloads[f.i$jscomp$492]=Object.assign({},f.payload$jscomp$20,{job:v,
jobId:t})};
Ye9.prototype.flushJobs=function(){var f=this,H=Array.from(this.scheduledPayloads.keys()).sort(function(t,M){return f.getPriority(f.scheduledPayloads[M])-f.getPriority(f.scheduledPayloads[t])});
H=_.V(H);for(var v=H.next();!v.done;v=H.next())v=this.scheduledPayloads[v.value],v.jobId===void 0||v.processed||(this.scheduler.cancelJob(v.jobId),this.scheduler.addJob(v.job,10))};
Ye9.prototype.cancel=function(){for(var f=_.V(this.scheduledPayloads),H=f.next();!H.done;H=f.next())H=H.value,H.jobId===void 0||H.processed||this.scheduler.cancelJob(H.jobId),H.processed=!0;this.completedResolver.resolve()};
Ye9.prototype.getPriority=function(f){var H;return(H=f.priority)!=null?H:this.JSC$10868_defaultPriority};var zC=function(f){this.state=f;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};BD&&HVH(this.state)};
zC.prototype.install=function(f){this.plugins.push(f);return this};
zC.prototype.uninstall=function(){var f=this;_.NA.apply(0,arguments).forEach(function(H){H=f.plugins.indexOf(H);H>-1&&f.plugins.splice(H,1)})};
zC.prototype.transition=function(f,H){var v=this;BD&&vKb(this.state);var t=this.transitions.find(function(h){return Array.isArray(h.from)?h.from.find(function(y){return y===v.state&&h.to===f}):h.from===v.state&&h.to===f});
if(t){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);mCT(this,f,H);this.state=f;BD&&HVH(this.state);t=t.action.bind(this);var M=this.plugins.filter(function(h){return h[f]}).map(function(h){return h[f]});
t($C9(this,M),H)}else throw Error("hd`"+this.state+"`"+f);};
var $C9=function(f,H){var v=H.filter(function(M){return Wgg(f,M)===10}),t=H.filter(function(M){return Wgg(f,M)!==10});
return f.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var M=_.NA.apply(0,arguments);return _.Y(function(h){if(h.nextAddress==1)return h.yield(f.runImmediateJobsAsync.apply(f,[v].concat(_.pS(M))),2);f.setJobSetWithScheduledJobs.apply(f,[t].concat(_.pS(M)));_.Bj(h)})}:function(){var M=_.NA.apply(0,arguments);
f.runImmediateJobsSync.apply(f,[v].concat(_.pS(M)));f.setJobSetWithScheduledJobs.apply(f,[t].concat(_.pS(M)))}};
zC.prototype.runImmediateJobsSync=function(f){var H=_.NA.apply(1,arguments);_.Zb();for(var v=_.V(f),t=v.next(),M={};!t.done;M={lifecycle$jscomp$2:void 0},t=v.next())M.lifecycle$jscomp$2=t.value,Wn(function(h){return function(){OPg(h.lifecycle$jscomp$2.name);M2s(function(){return h.lifecycle$jscomp$2.callback.apply(h.lifecycle$jscomp$2,_.pS(H))});
FQ(h.lifecycle$jscomp$2.name)}}(M))};
zC.prototype.runImmediateJobsAsync=function(f){var H=_.NA.apply(1,arguments),v,t,M,h;return _.Y(function(y){y.nextAddress==1&&(_.Zb(),v=_.V(f),t=v.next(),M={});if(y.nextAddress!=3){if(t.done)return y.jumpTo(0);M.lifecycle$jscomp$3=t.value;M.asyncJobCompletion=void 0;h=function(m){return function(){OPg(m.lifecycle$jscomp$3.name);var W=M2s(function(){return m.lifecycle$jscomp$3.callback.apply(m.lifecycle$jscomp$3,_.pS(H))});
EsR(W)?m.asyncJobCompletion=_.J("web_lifecycle_error_handling_killswitch")?W.then(function(){FQ(m.lifecycle$jscomp$3.name)}):W.then(function(){FQ(m.lifecycle$jscomp$3.name)},function(I){t2e(I);
FQ(m.lifecycle$jscomp$3.name)}):FQ(m.lifecycle$jscomp$3.name)}}(M);
Wn(h);return M.asyncJobCompletion?y.yield(M.asyncJobCompletion,3):y.jumpTo(3)}M={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};t=v.next();return y.jumpTo(2)})};
zC.prototype.setJobSetWithScheduledJobs=function(f){var H=_.NA.apply(1,arguments),v=this,t=f.map(function(M){return{job:function(){OPg(M.name);M2s(function(){return M.callback.apply(M,_.pS(H))});
FQ(M.name)},
priority:Wgg(v,M)}});
t.length&&(this.jobSet=new Ye9(t))};
var Wgg=function(f,H){var v,t;return(t=(v=f.overridePriority)!=null?v:H.priority)!=null?t:0},OPg=function(f){BD&&f&&HVH(f)},FQ=function(f){BD&&f&&vKb(f)},mCT=function(f,H,v){ygb&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+f.constructor.name+"] '"+f.state+"' to '"+H+"'"),console.log("with message: ",v),console.groupEnd())};
_.H7.Object.defineProperties(zC.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var g1h=function(f){zC.call(this,f===void 0?"none":f);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(){}}]},IFb;
_.e(g1h,zC);g1h.prototype.runApplicationNavigationBegin=function(f,H){var v=this;this.navigationTimer=_.Lb(_.nN,function(){v.currentState==="application_navigating"&&v.transition("none")},5E3);
f(H==null?void 0:H.event)};
g1h.prototype.runApplicationNavigationEnd=function(f,H){this.navigationTimer&&(_.nN.cancelJob(this.navigationTimer),this.navigationTimer=null);f(H==null?void 0:H.event)};
_.fOv=function(){IFb||(IFb=new g1h);return IFb};var qRB=[];_.qJ("yt.logging.transport.getScrapedGelPayloads",function(){return qRB});var $F=function(){var f=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return f.totalEntries}}};
$F.prototype.storePayload=function(f,H){f=h0R(f);this.store[f]?this.store[f].push(H):(this.memoizedKeySequences={},this.store[f]=[H]);this.totalEntries++;_.J("more_accurate_gel_parser")&&(H=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(H));return f};
$F.prototype.smartExtractMatchingEntries=function(f){if(!f.keys.length)return[];for(var H=Seh(this,f.keys.splice(0,1)[0]),v=[],t=0;t<H.length;t++)this.store[H[t]]&&f.sizeLimit&&(this.store[H[t]].length<=f.sizeLimit?(v.push.apply(v,_.pS(this.store[H[t]])),delete this.store[H[t]]):v.push.apply(v,_.pS(this.store[H[t]].splice(0,f.sizeLimit))));this.totalEntries-=v.length;(f==null?0:f.sizeLimit)&&v.length<(f==null?void 0:f.sizeLimit)&&(f.sizeLimit-=v.length,v.push.apply(v,_.pS(this.smartExtractMatchingEntries(f))));
return v};
$F.prototype.extractMatchingEntries=function(f){f=Seh(this,f);for(var H=[],v=0;v<f.length;v++)this.store[f[v]]&&(H.push.apply(H,_.pS(this.store[f[v]])),delete this.store[f[v]]);this.totalEntries-=H.length;return H};
$F.prototype.getSequenceCount=function(f){f=Seh(this,f);for(var H=0,v=0;v<f.length;v++){var t=void 0;H+=((t=this.store[f[v]])==null?void 0:t.length)||0}return H};
var Seh=function(f,H){var v=h0R(H);if(f.memoizedKeySequences[v])return f.memoizedKeySequences[v];var t=Object.keys(f.store)||[];if(t.length<=1&&h0R(H)===t[0])return t;for(var M=[],h=0;h<t.length;h++){var y=t[h].split("/");if(dCn(H.auth,y[0])){var m=H.isJspb;dCn(m===void 0?"undefined":m?"true":"false",y[1])&&dCn(H.cttAuthInfo,y[2])&&(m=H.tier,m=m===void 0?"undefined":JSON.stringify(m),dCn(m,y[3])&&M.push(t[h]))}}return f.memoizedKeySequences[v]=M},dCn=function(f,H){return f===void 0||f==="undefined"?
!0:f===H};
$F.prototype.getSequenceCount=$F.prototype.getSequenceCount;$F.prototype.extractMatchingEntries=$F.prototype.extractMatchingEntries;$F.prototype.smartExtractMatchingEntries=$F.prototype.smartExtractMatchingEntries;$F.prototype.storePayload=$F.prototype.storePayload;var nKr,DYB,pnH,g8,jW_,RIT,hIH,K3E,rEs,smH,oKr,T6_,B6e;nKr=_.VQ("initial_gel_batch_timeout",2E3);DYB=_.VQ("gel_queue_timeout_max_ms",6E4);pnH=_.VQ("gel_min_batch_size",5);g8=void 0;jW_=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
RIT=new jW_;hIH=new jW_;K3E=new jW_;rEs=new jW_;oKr=!0;T6_=1;_.kIg=new Map;B6e=_.Mr.ytLoggingTransportTokensToCttTargetIds_||{};_.qJ("ytLoggingTransportTokensToCttTargetIds_",B6e);var xYb=_.Mr.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.qJ("ytLoggingTransportTokensToJspbCttTargetIds_",xYb);var OP={};var zN=_.Mr.ytLoggingGelSequenceIdObj_||{};_.qJ("ytLoggingGelSequenceIdObj_",zN);var Y7r=[];var Jjv=new Set,g$s=0,LVe=0,eIg=0,S7R=[],IO5=[],xlT=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var PFe=function(){};
PFe.prototype.getUrl=function(f,H){H=H===void 0?!1:H;return f.hasOwnProperty("shareEndpoint")?null:_.rjR(f,null,H)};
var rbr=function(f,H,v){f={endpoint:H,actions:[]};v=(v.path?v.path[0]:v.target).icon||"";H=v.indexOf(":");H>0&&(v=v.substr(H+1));v&&f.actions.push(v);return f};var Qss=/Command$/,pxr=/Endpoint$/,DlE=new Map;var sWH,ZPM;sWH=1;_.A7=function(){this.actionRoutingMap=new Map};
_.A7.prototype.triggerAction=function(f){var H=new ULv(f,!1,_.NA.apply(1,arguments));this.handleAction(H);return H.returnValue};
_.A7.prototype.triggerOptionalAction=function(f){var H=new ULv(f,!0,_.NA.apply(1,arguments));this.handleAction(H);return H.returnValue};
_.r_=function(f,H,v){H.forEach(function(t){var M=n$T(t);M&&f.triggerOptionalAction(M,t,v,void 0)})};
_.A7.prototype.handleAction=function(f){var H=this.actionRoutingMap.get(f.actionName);H&&ZPM(f,H);f.optionalAction||f.returnValue.length!==0||(f=new _.e$("Unhandled action",f.actionName),_.Nw(f))};
ZPM=function(f,H){H.forEach(function(v){var t=null;v?t=v.apply(null,f.args):(v=Error("id"),v.params=f.actionName,_.Ge(v));f.returnValue.push(t)})};
_.b$=function(f,H,v){v||(v=sWH++);for(var t=_.V(Object.keys(H)),M=t.next();!M.done;M=t.next()){M=M.value;var h=f.actionRoutingMap.get(M);h||(h=new Map,f.actionRoutingMap.set(M,h));f.registerActionHandler(v,M,H[M],h)}return v};
_.A7.prototype.registerActionHandler=function(f,H,v,t){t.set(f,_.Cc(v))};
_.i$=function(f,H,v){H=_.V(Object.keys(H));for(var t=H.next();!t.done;t=H.next())(t=f.actionRoutingMap.get(t.value))&&t.delete(v)};
_.ws(_.A7);var E$T=function(f,H){var v=_.A7.getInstance();_.Kc(function(){var t={},M=_.b$(v,(t[f]=H,t));_.Dt(function(){var h={};_.i$(v,(h[f]="",h),M)})})};var c2E=Symbol("kd");AMH=eaE;var h7v=new Set(["For","If","Match","Watch"]),Jgb={},lFM=(Jgb[Nk.default]=function(){return axR},Jgb.style=function(){return axR},Jgb),UCr;
for(UCr in lFM)hm.attributes[UCr]=lFM[UCr](hm.attributes[UCr]);var tM=new _.iN("VISIBILITY_OBSERVER");var gdg={retrieve:function(f){return this.id.\u0275prov.token===f.\u0275prov.token?this.contextValue:this?_.vM(this,this.id):dRR}};var B1v=function(f,H,v){if(f!==q$)return!1;f=q7b(document.createElement("div"),function(){var t=VP(!1);try{v[0]()}finally{VP(t)}});
f=Array.from(f.childNodes);f.length===1&&(f=f[0]);return f};var eav=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(f){}var Lgb=typeof WeakRef==="function";var xCC=function(f){this.value=f};
xCC.prototype.deref=function(){return this.value};
var BIM=Lgb?WeakRef:xCC,za9=function(f){this.newKeyHandler=f;this.map=new WeakMap};
za9.prototype.add=function(f,H){this.map.has(f)||(this.newKeyHandler(f),this.map.set(f,[]));this.map.get(f).push(new BIM(H))};
za9.prototype.get=function(f){var H=this;return function t(){var M,h,y,m,W,I,S,d,Z,l,L;return _.v1(t,function(r){switch(r.nextAddress){case 1:_.Uq(r,2);M=H.map.get(f);if(!M)return r.return();h=0;y=_.V(M);m=y.next();case 4:if(m.done){r.jumpTo(6);break}W=m.value;I=W.deref();if(!I){r.jumpTo(5);break}h++;S=_.tQ;return r.yield(I,8);case 8:S(r.yieldResult);case 5:m=y.next();r.jumpTo(4);break;case 6:if(2*h<M.length){d=0;Z=_.V(M);for(l=Z.next();!l.done;l=Z.next())L=l.value,L.deref()&&(M[d++]=L);M.length=
d}case 2:_.lk(r),_.ea(r,0)}})}()};var FgH=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},JYb=new za9(function(f){f.addEventListener("abort",Ui5,{once:!0})}),Zpg=new WeakMap,rgv=function(f){f=f===void 0?KR:f;
this.signal=new f};
rgv.prototype.abort=function(f){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=f,f=new Event("abort"),this.signal.dispatchEvent(f))};
var KR=function(){this.target=FgH();this.aborted=!1;this.onabort=null};
KR.prototype.throwIfAborted=function(){scR.call(this)};
KR.prototype.addEventListener=function(f,H,v){this.target.addEventListener(f,H,v)};
KR.prototype.removeEventListener=function(f,H,v){this.target.removeEventListener(f,H,v)};
KR.prototype.dispatchEvent=function(f){if(this.onabort&&f.type==="abort")this.onabort(f);return this.target.dispatchEvent(f)};
KR.abort=jcN;KR.timeout=e7b;KR.any=l4R;var diE=eav?AbortController:rgv,DB=eav?AbortSignal:KR;typeof DB.abort!=="function"&&(DB.abort=jcN);typeof DB.prototype.throwIfAborted!=="function"&&(DB.prototype.throwIfAborted=scR);typeof DB.any!=="function"&&(DB.any=l4R);typeof DB.timeout!=="function"&&(DB.timeout=e7b);var KgC=function(f){f=f.clone();bc_(f);Iv(f,"dg",null);Iv(f,"d","0");Nun(f,null);cra(f,null);return f},DCa=!0,o1M=function(f,H,v){var t=v===void 0?{}:v;
v=t.cssRowKey===void 0?void 0:t.cssRowKey;var M=t.combinedSignature===void 0?void 0:t.combinedSignature;var h=t.extraEdges===void 0?void 0:t.extraEdges;t=t.callback===void 0?void 0:t.callback;Iv(f,"m",H.join(","));h&&ArH(f,h);v&&(Iv(f,"ck",v),M?Iv(f,"rs",M):DCa&&(DCa=!1));if(t){if(t!=null&&!Tuh.test(t))throw Error("Xa`"+t);Iv(f,"cb",t)}f=f.toString();_.VR(f,"/")&&(f=ewr(document.location.href)+f);return _.FM(f)};var p7g=function(f){return n1o(f).then(function(H){return JSON.parse(H.responseText)})},n1o=function(f){var H={},v=H.xmlHttpFactory?H.xmlHttpFactory.createInstance():WSn.createInstance();
return(new _.IO(function(t,M){var h;try{v.open("GET",f,!0)}catch(W){M(new oQ("Error opening XHR: "+W.message,f,v))}v.onreadystatechange=function(){if(v.readyState==4){_.Mr.clearTimeout(h);var W;!(W=$dg(v.status))&&(W=v.status===0)&&(W=UxM(f),W=!(W=="http"||W=="https"||W==""));W?t(v):M(new QWZ(v.status,f,v))}};
v.onerror=function(){M(new oQ("Network error",f,v))};
if(H.headers)for(var y in H.headers){var m=H.headers[y];m!=null&&v.setRequestHeader(y,m)}H.withCredentials&&(v.withCredentials=H.withCredentials);H.responseType&&(v.responseType=H.responseType);H.mimeType&&v.overrideMimeType(H.mimeType);H.timeoutMs>0&&(h=_.Mr.setTimeout(function(){v.onreadystatechange=function(){};
v.abort();M(new ujC(f,v))},H.timeoutMs));
try{v.send(null)}catch(W){v.onreadystatechange=function(){},_.Mr.clearTimeout(h),M(new oQ("Error sending XHR: "+W.message,f,v))}})).thenCatch(function(t){t instanceof _.pp&&v.abort();
throw t;})},oQ=function(f,H,v){_.vR.call(this,f+", url="+H);
this.url=H;this.xhr=v};
_.f8(oQ,_.vR);oQ.prototype.name="XhrError";var QWZ=function(f,H,v){oQ.call(this,"Request Failed, status="+f,H,v);this.status=f};
_.f8(QWZ,oQ);QWZ.prototype.name="XhrHttpError";var ujC=function(f,H){oQ.call(this,"Request timed out",f,H)};
_.f8(ujC,oQ);ujC.prototype.name="XhrTimeoutError";TB=TB||{};var nR=function(){_.zO.call(this)};
_.f8(nR,_.zO);nR.prototype.initialize=function(){};var aFH=function(f,H){this.fn_=f;this.handler_=H};
aFH.prototype.execute=function(f){this.fn_&&(this.fn_.call(this.handler_||null,f),this.fn_=this.handler_=null)};
aFH.prototype.abort=function(){this.handler_=this.fn_=null};var pR=function(f,H){_.zO.call(this);this.deps_=f;this.JSC$11022_id_=H;this.onloadCallbacks_=[];this.JSC$11022_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.f8(pR,_.zO);pR.prototype.moduleConstructor_=nR;pR.prototype.module_=null;pR.prototype.getId=function(){return this.JSC$11022_id_};
pR.prototype.registerCallback=function(f,H){return Pyn(this.onloadCallbacks_,f,H)};
var GPZ=function(f,H){Pyn(f.JSC$11022_onErrorCallbacks_,H)},Pyn=function(f,H,v){H=new aFH(H,v);
f.push(H);return H};
pR.prototype.isLoaded=function(){return!!this.module_};
pR.prototype.onLoad=function(f){var H=new this.moduleConstructor_;H.initialize(f());this.module_=H;H=(H=Cyo(this.earlyOnloadCallbacks_,f()))||Cyo(this.onloadCallbacks_,f());H||(this.JSC$11022_onErrorCallbacks_.length=0);return H};
pR.prototype.onError=function(f){(f=Cyo(this.JSC$11022_onErrorCallbacks_,f))&&R3(Error("nd`"+f));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var Cyo=function(f,H){for(var v=[],t=0;t<f.length;t++)try{f[t].execute(H)}catch(M){R3(M),v.push(M)}f.length=0;return v.length?v:null};
pR.prototype.disposeInternal=function(){pR.superClass_.disposeInternal.call(this);_.Mj(this.module_)};var E1M,iP_,Agn,bP_,cga,X7_,fCb,w7h,qeT;
_.RV=function(f,H,v,t,M){t=t===void 0?!1:t;M=M===void 0?!1:M;var h=h===void 0?!0:h;this.scsReferenceUrl_=P75(_.re(f).toString(),h);this.cssRowKey_=H;this.combinedSignature_=v;this.useNegativeLoading_=t;this.requestedModuleMap_={};this.JSC$11025_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(f=gK(this.scsReferenceUrl_,"excm"))?f.split(","):[];this.shouldScanForCss_=M;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;Gj_();_.QC(this,X6Z(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
E1M=function(f,H){if(H.href||H.getAttribute("data-href"))if(H=H.href||H.getAttribute("data-href"),p85(H)&&!P75(H).urlPrefix_.endsWith("_/js/")){H=X6Z(P75(H));H=_.V(H);for(var v=H.next();!v.done;v=H.next())v=v.value,f.loadedCssModuleList_.includes(v)||f.loadedCssModuleList_.push(v)}};
_.RV.prototype.JSC$11027_loadModules=function(f,H,v){var t=v===void 0?{}:v;v=t.extraEdges;var M=t.onError;var h=t.onSuccess;t=t.forceReload;this.JSC$11025_moduleInfoMap_=H;if(!f)throw Error("od");if(this.shouldScanForCss_){H=_.V(document.getElementsByTagName("style"));for(var y=H.next();!y.done;y=H.next())E1M(this,y.value);H=_.V(document.getElementsByTagName("link"));for(y=H.next();!y.done;y=H.next())E1M(this,y.value)}NIM(this,cga(this,f),v,M,h,t)};
var NIM=function(f,H,v,t,M,h){t=t===void 0?function(){}:t;
M=M===void 0?function(){}:M;
h=h===void 0?!1:h;X7_(f,H,function(y,m,W){W=W===void 0?m:W;f.enableFallbackFetch&&h?f.loadWithFetch(y,m,t,M,W):f.load(y,m,t,M,W,v)},v)||t(-1)};
_.RV.prototype.loadWithFetch=function(){_.Y(function(){throw Error("pd");})};
_.RV.prototype.maybeSetAdditionalFields=function(){};
iP_=function(f,H,v){if(f.useNegativeLoading_){var t=f.scsReferenceUrl_;f={cssRowKey:f.cssRowKey_,combinedSignature:f.combinedSignature_,extraEdges:v,requestedModuleIds:Agn(f),requestedCssModuleIds:bP_(f)};var M=f===void 0?{}:f;f=M.requestedModuleIds===void 0?[]:M.requestedModuleIds;v=M.requestedCssModuleIds===void 0?[]:M.requestedCssModuleIds;var h=M.cssRowKey===void 0?void 0:M.cssRowKey;var y=M.combinedSignature===void 0?void 0:M.combinedSignature;var m=M.extraEdges===void 0?void 0:M.extraEdges;
M=M.callback===void 0?void 0:M.callback;t=KgC(t);Iv(t,"d","1");Nun(t,f);cra(t,v);H=o1M(t,H,{cssRowKey:h,combinedSignature:y,extraEdges:m,callback:M})}else t=f.scsReferenceUrl_,f={cssRowKey:f.cssRowKey_,combinedSignature:f.combinedSignature_,requestedModuleIds:Agn(f),requestedCssModuleIds:bP_(f)},m=f===void 0?{}:f,f=m.requestedCssModuleIds===void 0?[]:m.requestedCssModuleIds,v=m.cssRowKey===void 0?void 0:m.cssRowKey,h=m.combinedSignature===void 0?void 0:m.combinedSignature,y=m.extraEdges===void 0?
void 0:m.extraEdges,m=m.callback===void 0?void 0:m.callback,t=KgC(t),cra(t,f),H=o1M(t,H,{cssRowKey:v,combinedSignature:h,extraEdges:y,callback:m});return H};
_.QC=function(f,H){for(var v=!1,t=[],M=0;M<H.length;++M){var h=H[M];f.requestedModuleMap_[h]||(f.requestedModuleMap_[h]=!0,f.requestedModuleList_.push(h),v=!0,t.push(h))}v&&(f.requestedModuleListSorted_=!1)};
_.ub=function(f,H){for(var v=[],t=0;t<H.length;++t){var M=H[t];f.requestedModuleMap_[M]&&(delete f.requestedModuleMap_[M],_.iH(f.requestedModuleList_,M),v.push(M))}};
_.RV.prototype.load=function(f,H,v,t,M){M=M===void 0?H:M;_.re(f);var h=this.useCors_,y=this.corsMode_,m=this.fetchPriority,W=_.lS("SCRIPT");_.tf(W,f);h&&(W.crossOrigin=y);W.async=!1;m&&W.setAttribute("fetchpriority",m);_.QC(this,H);_.kPh(this,f,W,H,v,t,M)};
_.kPh=function(f,H,v,t,M,h,y){y=y===void 0?t:y;f.lastScript_=v;f.insertPos.insertBefore(v,f.insertPos.firstChild);_.TIa(v,t,function(){v.parentElement.removeChild(v);f.lastScript_==v&&(f.lastScript_=null);var m=new Set;t.map(function(I){return m.add(I)});
for(var W in f.JSC$11025_moduleInfoMap_)f.JSC$11025_moduleInfoMap_[W].isLoaded()&&m.add(W);Array.from(m);h()},function(m){v.parentElement.removeChild(v);
f.lastScript_==v&&(f.lastScript_=null);_.ub(f,m);f.pendingModuleGraphUpdate_?f.pendingModuleGraphUpdate_.then(function(){M(-1,H)}):M(-1,H)},y)};
_.TIa=function(f,H,v,t,M){M=M===void 0?H:M;var h=H.length,y=function(){h=0;f.onload=null;f.onerror=null;m=function(){}},m=function(){y();
var I=M.filter(function(S){return!n9().getModuleInfo(S).isLoaded()});
I.length!==0?t(I,"Response was successful but was missing module(s) "+I+"."):v()},W=function(){h--;
h==0&&m()};
H.forEach(function(I){I=n9().getModuleInfo(I);I.isLoaded()?W():(Pyn(I.earlyOnloadCallbacks_,W),GPZ(I,W))});
f.onload=function(){return m()};
f.onerror=function(){y();t(H)}};
Agn=function(f){f.requestedModuleListSorted_||(f.requestedModuleListSorted_=!0,f.requestedModuleList_.sort());return f.requestedModuleList_};
bP_=function(f){f=f.loadedCssModuleList_;f.sort();return f};
cga=function(f,H){return H.filter(function(v){return!f.requestedModuleMap_[v]})};
X7_=function(f,H,v,t){if(f.pendingModuleGraphUpdate_)return f.pendingModuleGraphUpdate_.then(function(){X7_(f,H,v,t)}),!0;
if(!f.useNegativeLoading_){var M=[],h=Object.assign({},f.requestedModuleMap_);w7h(f,H,function(S){M.push(S.getId())},t,function(S){return!S.isLoaded()},h);
H=M}for(h=0;h<H.length;){for(var y=H.length-h,m=h==0?H:H.slice(h,H.length),W=iP_(f,m,t),I=_.re(W).toString();I.length>f.urlMaxLength;)if(y>1)y-=Math.ceil((I.length-f.urlMaxLength)/6),y=Math.max(y,1),m=H.slice(h,h+y),W=iP_(f,m,t),I=_.re(W).toString();else return f.useNegativeLoading_?(f.useNegativeLoading_=!1,f.pendingModuleGraphUpdate_=qeT(f).then(function(S){fCb(f,S,t)}),X7_(f,H.slice(h),v,t)):!1;
h+=y;f.useNegativeLoading_?v(W,m):v(W,m,h===H.length?H:[])}return!0};
fCb=function(f,H,v){n9().setAllModuleInfoString((H||{}).moduleGraph);w7h(f,Agn(f),function(t){_.QC(f,[t.getId()])},v);
f.pendingModuleGraphUpdate_=null};
w7h=function(f,H,v,t,M,h){h=h===void 0?{}:h;var y=n9();H=_.V(H);for(var m=H.next();!m.done;m=H.next()){m=m.value;var W=y.getModuleInfo(m);if(!(h[m]||M&&!M(W))){h[m]=!0;var I=W.deps_||[];if(t){var S=[];t[m]&&(S=Object.keys(t[m]));I=I.concat(S)}w7h(f,I,v,t,M,h);v(W)}}};
qeT=function(f){f=f.scsReferenceUrl_.clone();bc_(f);Iv(f,"dg",null);Iv(f,"md","1");return p7g(f.toString())};var L2T=new Uint8Array(123);var HQb=[];var vEa=function(){this.JSC$10044_loader_=null};
_.R=vEa.prototype;_.R.setBatchModeEnabled=function(){};
_.R.setAllModuleInfoString=function(){};
_.R.addExtraEdge=function(){throw Error("qd");};
_.R.removeExtraEdge=function(){throw Error("rd");};
_.R.getModuleContext=function(){return null};
_.R.isActive=function(){return!1};
_.R.isUserActive=function(){return!1};
_.R.registerCallback=function(){};var aQ=function(f,H,v,t,M){var h=Error.call(this);this.message=h.message;"stack"in h&&(this.stack=h.stack);this.name="ModuleLoadFailure";this.type=f;this.status=H;this.requestedModuleIds=v;this.url=t;this.cause=M;this.message=this.toString()};
_.e(aQ,Error);aQ.prototype.toString=function(){return tGr(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var tGr=function(f){switch(f.type){case aQ.Type.UNAUTHORIZED:return"Unauthorized";case aQ.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case aQ.Type.TIMEOUT:return"Timed out";case aQ.Type.OLD_CODE_GONE:return"Out of date module id";case aQ.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+f.type}};
TB.ModuleLoadFailure=aQ;TB.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var PD=function(){this.moduleIds_=this.JSC$10044_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11040_extraEdges_={};this.JSC$11040_callbackMap_={};this.JSC$11040_currentlyLoadingModule_=this.baseModuleInfo_=new pR([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new PU;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.f8(PD,vEa);var MG_=function(f,H){_.vR.call(this,"Error loading "+f+": "+H)};
_.f8(MG_,_.vR);PD.prototype.setBatchModeEnabled=function(f){this.batchModeEnabled_=f};
PD.prototype.setAllModuleInfoString=function(f,H){if(!(this instanceof PD))this.setAllModuleInfoString(f,H);else if(typeof f==="string"){if(f.startsWith("d$")){f=f.substring(2);for(var v=[],t=0,M=f.indexOf("/"),h=0,y=!1,m=0;;){var W=y?f.substring(h):f.substring(h,M);if(W.length===0)t++,h="sy"+t.toString(36),W=[];else{var I=W.indexOf(":");if(I<0)h=W,W=[];else if(I===W.length-1)h=W.substring(0,I),W=Array(v[m-1]);else{h=W.substring(0,I);W=W.substring(I+1).split(",");I=m;for(var S=0;S<W.length;S++)I-=
W[S].length===0?1:Number(W[S]),W[S]=v[I]}I=0;if(h.length===0)I=1;else if(h.charAt(0)==="+"||h.charAt(0)==="-")I=Number(h);I!==0&&(t+=I,h="sy"+t.toString(36))}v.push(h);hFM(this,h,W);if(y)break;h=M+1;M=f.indexOf("/",h);M===-1&&(y=!0);m++}this.moduleIds_=v}else if(f.startsWith("p$"))RFZ(this,f);else{f=f.split("/");v=[];for(t=0;t<f.length;t++){m=f[t].split(":");M=m[0];y=[];if(m[1])for(y=m[1].split(","),m=0;m<y.length;m++)y[m]=v[parseInt(y[m],36)];v.push(M);hFM(this,M,y)}this.moduleIds_=v}H&&H.length?
(_.qr(this.loadingModuleIds_,H),this.lastInitialModuleId_=_.PR(H)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11040_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11040_currentlyLoadingModule_=null,(H=this.baseModuleInfo_.onLoad((0,_.FH)(this.getModuleContext,this)))&&H.length&&VGa(this,new TB.ModuleLoadFailure(TB.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,H[0])),GC(this))}};
var RFZ=function(f,H){var v=H.substring(2);for(H=0;H<64;H++)L2T["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(H)]=H;var t={buf:v,pos:0};hM(t);var M=hM(t),h=hM(t)+1;H=Array(M);var y=Array(M),m=Array(M);h=Array(h);var W=0,I=0,S=t.pos,d=t.buf.indexOf("|",t.pos);t.pos=d+1;for(d=0;d<M;d++){var Z=hM(t),l=Z&2,L=Z&1;Z>>>=2;L?(W+=Z>>>1^-(Z&1),Z="sy"+W.toString(36)):(L=S,S+=Z,Z=v.substring(L,S));H[d]=Z;l&&(h[I++]=Z)}h[I]="";t.pos++;I=M&-2;v=M&1;for(W=0;W<I;W+=2)S=xiT(t),m[W]=
S&7,m[W+1]=S>>>3&7;v&&(v=xiT(t),m[I]=v&7);t.pos++;for(I=0;I<M;I++)m[I]===7&&(m[I]=hM(t));t.pos++;for(v=I=0;v<M;v++){W=m[v];S=W===0?HQb:Array(W);y[v]=S;d=I;for(l=0;l<W;l++)d-=hM(t),S[l]=h[d];h[I]===H[v]&&I++}for(t=0;t<H.length;t++)hFM(f,H[t],y[t]);f.moduleIds_=H};
_.R=PD.prototype;_.R.getModuleInfo=function(f){return this.moduleInfoMap[f]};
_.R.addExtraEdge=function(f,H){var v=this.getModuleInfo(f);v&&v.isLoaded()?this.load(H):(this.JSC$11040_extraEdges_[f]||(this.JSC$11040_extraEdges_[f]={}),this.JSC$11040_extraEdges_[f][H]=!0)};
_.R.removeExtraEdge=function(f,H){if(this.JSC$11040_extraEdges_[f]){delete this.JSC$11040_extraEdges_[f][H];for(var v in this.JSC$11040_extraEdges_[f])return;delete this.JSC$11040_extraEdges_[f]}};
_.R.isActive=function(){return this.loadingModuleIds_.length>0};
_.R.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var GC=function(f){var H=f.lastActive_,v=f.isActive();v!=H&&(f.executeCallbacks_(v?"active":"idle"),f.lastActive_=v);H=f.isUserActive();H!=f.userLastActive_&&(f.executeCallbacks_(H?"userActive":"userIdle"),f.userLastActive_=H)},hFM=function(f,H,v){f.moduleInfoMap[H]?(f=f.moduleInfoMap[H].deps_,f!=v&&f.splice.apply(f,[0,
f.length].concat(_.pS(v)))):f.moduleInfoMap[H]=new pR(v,H)},Yjo=function(f,H,v){var t=[];
l_R(H,t);H=[];for(var M={},h=0;h<t.length;h++){var y=t[h],m=f.getModuleInfo(y);if(!m)throw Error("sd`"+y);var W=new PU;M[y]=W;m.isLoaded()?W.callback(null):(yXZ(f,y,m,!!v,W),f.isModuleLoading(y)||H.push(y))}H.length>0&&(f.loadingModuleIds_.length===0?f.loadModules_(H):(f.requestedModuleIdsQueue_.push(H),GC(f)));return M},yXZ=function(f,H,v,t,M){v.registerCallback(M.callback,M);
GPZ(v,function(h){M.errback(new MG_(H,h))});
f.isModuleLoading(H)?t&&(m6b(f,H),GC(f)):t&&m6b(f,H)};
PD.prototype.loadModules_=function(f,H,v){var t=this;H||(this.consecutiveFailures_=0);var M=$6a(this,f);this.loadingModuleIds_=M;this.requestedLoadingModuleIds_=this.batchModeEnabled_?f:_.kv(M);GC(this);if(M.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,M);if(Object.keys(this.JSC$11040_extraEdges_).length>0&&!this.JSC$10044_loader_.supportsExtraEdges)throw Error("td");f=(0,_.FH)(this.JSC$10044_loader_.JSC$11027_loadModules,this.JSC$10044_loader_,_.kv(M),this.moduleInfoMap,
{extraEdges:this.JSC$11040_extraEdges_,forceReload:!!v,onError:function(h,y){var m=t.requestedLoadingModuleIds_;h=h!=null?h:void 0;t.consecutiveFailures_++;var W=_.kv(M);t.requestedLoadingModuleIds_=m;M.forEach(_.l0(_.iH,t.requestedModuleIds_),t);h==401?(VGa(t,new TB.ModuleLoadFailure(TB.ModuleLoadFailure.Type.UNAUTHORIZED,h)),t.requestedModuleIdsQueue_.length=0):h==410?(WbZ(t,new TB.ModuleLoadFailure(TB.ModuleLoadFailure.Type.OLD_CODE_GONE,h)),OQn(t)):t.consecutiveFailures_>=3?(WbZ(t,new TB.ModuleLoadFailure(TB.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
h,W,y)),OQn(t)):t.loadModules_(t.requestedLoadingModuleIds_,!0,h==8001||!1)},
onTimeout:(0,_.FH)(this.handleLoadTimeout_,this)});(H=Math.pow(this.consecutiveFailures_,2)*5E3)?_.Mr.setTimeout(f,H):f()}};
var $6a=function(f,H){H=H.filter(function(M){return f.moduleInfoMap[M].isLoaded()?(_.Mr.setTimeout(function(){return Error("ud`"+M)},0),!1):!0});
for(var v=[],t=0;t<H.length;t++)v=v.concat(gEb(f,H[t]));l_R(v);return!f.batchModeEnabled_&&v.length>1?(H=v.shift(),f.requestedModuleIdsQueue_=v.map(function(M){return[M]}).concat(f.requestedModuleIdsQueue_),[H]):v},gEb=function(f,H){var v=_.QA.createSet(f.requestedModuleIds_),t=[];
v[H]||t.push(H);H=[H];for(var M=0;M<H.length;M++)for(var h=f.getModuleInfo(H[M]).deps_,y=h.length-1;y>=0;y--){var m=h[y];f.getModuleInfo(m).isLoaded()||v[m]||(t.push(m),H.push(m))}t.reverse();l_R(t);return t};
PD.prototype.JSC$11035_setLoaded=function(){if(this.JSC$11040_currentlyLoadingModule_){var f=this.JSC$11040_currentlyLoadingModule_.getId(),H=[];if(this.JSC$11040_extraEdges_[f]){for(var v=_.V(Object.keys(this.JSC$11040_extraEdges_[f])),t=v.next();!t.done;t=v.next()){t=t.value;var M=this.getModuleInfo(t);M&&!M.isLoaded()&&(this.removeExtraEdge(f,t),H.push(t))}this.loadMultiple(H)}this.isDisposed()||((H=this.moduleInfoMap[f].onLoad((0,_.FH)(this.getModuleContext,this)))&&H.length&&VGa(this,new TB.ModuleLoadFailure(TB.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,H[0])),_.iH(this.userInitiatedLoadingModuleIds_,f),_.iH(this.loadingModuleIds_,f),this.loadingModuleIds_.length===0&&OQn(this),this.lastInitialModuleId_&&f==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),GC(this),this.JSC$11040_currentlyLoadingModule_=null)}};
PD.prototype.isModuleLoading=function(f){if(_.cR(this.loadingModuleIds_,f))return!0;for(var H=0;H<this.requestedModuleIdsQueue_.length;H++)if(_.cR(this.requestedModuleIdsQueue_[H],f))return!0;return!1};
PD.prototype.load=function(f,H){return Yjo(this,[f],H)[f]};
PD.prototype.loadMultiple=function(f){return Yjo(this,f)};
var m6b=function(f,H){_.cR(f.userInitiatedLoadingModuleIds_,H)||f.userInitiatedLoadingModuleIds_.push(H)};
PD.prototype.beforeLoadModuleCode=function(f){var H=this;this.JSC$11040_currentlyLoadingModule_&&this.JSC$11040_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11035_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[f]&&ICa(this,this.moduleInfoMap[f].deps_||[],function(v){v.module_=new nR;_.iH(H.loadingModuleIds_,v.getId())},function(v){return!v.isLoaded()});
this.JSC$11040_currentlyLoadingModule_=this.getModuleInfo(f)};
PD.prototype.handleLoadTimeout_=function(){WbZ(this,new TB.ModuleLoadFailure(TB.ModuleLoadFailure.Type.TIMEOUT));OQn(this)};
var WbZ=function(f,H){f.requestedLoadingModuleIds_.length>1?f.requestedModuleIdsQueue_=f.requestedLoadingModuleIds_.map(function(v){return[v]}).concat(f.requestedModuleIdsQueue_):VGa(f,H)},VGa=function(f,H){var v=f.requestedLoadingModuleIds_;
f.loadingModuleIds_.length=0;for(var t=[],M=0;M<f.requestedModuleIdsQueue_.length;M++){var h=f.requestedModuleIdsQueue_[M].filter(function(W){var I=gEb(this,W);return i7(v,function(S){return _.cR(I,S)})},f);
_.qr(t,h)}for(M=0;M<v.length;M++)_.AN(t,v[M]);for(M=0;M<t.length;M++){for(h=0;h<f.requestedModuleIdsQueue_.length;h++)_.iH(f.requestedModuleIdsQueue_[h],t[M]);_.iH(f.userInitiatedLoadingModuleIds_,t[M])}if(M=f.JSC$11040_callbackMap_.error)for(h=0;h<M.length;h++)for(var y=M[h],m=0;m<t.length;m++)y("error",t[m],H);for(t=0;t<v.length;t++)if(f.moduleInfoMap[v[t]])f.moduleInfoMap[v[t]].onError(H);f.requestedLoadingModuleIds_.length=0;GC(f)},OQn=function(f){for(;f.requestedModuleIdsQueue_.length;){var H=
f.requestedModuleIdsQueue_.shift().filter(function(v){return!this.getModuleInfo(v).isLoaded()},f);
if(H.length>0){f.loadModules_(H);return}}GC(f)};
PD.prototype.registerCallback=function(f,H){Array.isArray(f)||(f=[f]);for(var v=0;v<f.length;v++){var t=f[v],M=H,h=this.JSC$11040_callbackMap_;h[t]||(h[t]=[]);h[t].push(M)}};
PD.prototype.executeCallbacks_=function(f){for(var H=this.JSC$11040_callbackMap_[f],v=0;H&&v<H.length;v++)H[v](f)};
var ICa=function(f,H,v,t,M){t=t===void 0?function(){return!0}:t;
M=M===void 0?{}:M;H=_.V(H);for(var h=H.next();!h.done;h=H.next()){h=h.value;var y=f.getModuleInfo(h);!M[h]&&t(y)&&(M[h]=!0,ICa(f,y.deps_||[],v,t,M),v(y))}};
PD.prototype.dispose=function(){_.hx(_.QA.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11040_callbackMap_={};this.isDisposed_=!0};
PD.prototype.isDisposed=function(){return this.isDisposed_};
_.oN=function(){return new PD};var Sjv=[5E3,2E4],d6h=function(){this.JSC$10044_loader_=null;this.JSC$11048_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11048_queue_=[];this.JSC$11048_extraEdges_=Object.create(null);this.JSC$11048_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.e(d6h,vEa);_.R=d6h.prototype;_.R.setAllModuleInfoString=function(){this.JSC$11048_currentlyLoadingModule_&&this.JSC$11048_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11035_setLoaded()};
_.R.getModuleInfo=function(f){var H=this.JSC$11048_moduleInfoMap_[f];H||(H=new pR([],f),this.JSC$11048_moduleInfoMap_[f]=H);return H};
_.R.addExtraEdge=function(f,H){this.getModuleInfo(f).isLoaded()?this.load(H):(this.JSC$11048_extraEdges_[f]||(this.JSC$11048_extraEdges_[f]={}),this.JSC$11048_extraEdges_[f][H]=!0)};
_.R.removeExtraEdge=function(f,H){if(this.JSC$11048_extraEdges_[f]){delete this.JSC$11048_extraEdges_[f][H];for(var v in this.JSC$11048_extraEdges_[f])return;delete this.JSC$11048_extraEdges_[f]}};
_.R.isModuleLoading=function(f){return!!this.loadingModules_[f]};
_.R.load=function(f){jrg(this,[f]);return srg(this,f)};
_.R.loadMultiple=function(f){var H=this,v=Object.create(null),t=[];f.forEach(function(M){v[M]||(v[M]=srg(H,M),t.push(M))});
jrg(this,t);return v};
_.R.beforeLoadModuleCode=function(f){var H;((H=this.JSC$11048_currentlyLoadingModule_)==null?void 0:H.getId())==="synthetic_module_overhead"&&this.JSC$11035_setLoaded();var v,t;ZQr(this,(t=(v=this.JSC$11048_moduleInfoMap_[f])==null?void 0:v.deps_)!=null?t:[],function(M){M.module_=new nR},function(M){return!M.isLoaded()});
this.JSC$11048_currentlyLoadingModule_=this.getModuleInfo(f)};
_.R.JSC$11035_setLoaded=function(){if(this.JSC$11048_currentlyLoadingModule_){var f=this.JSC$11048_currentlyLoadingModule_.getId(),H=[];if(this.JSC$11048_extraEdges_[f]){for(var v=_.V(Object.keys(this.JSC$11048_extraEdges_[f])),t=v.next();!t.done;t=v.next())t=t.value,this.getModuleInfo(t).isLoaded()||(this.removeExtraEdge(f,t),H.push(t));this.loadMultiple(H)}this.JSC$11048_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11048_currentlyLoadingModule_=null;(!this.isModuleLoading(f)&&/^sy[0-9a-z]{0,4}$/.test(f)||f==="synthetic_module_overhead")&&delete this.JSC$11048_moduleInfoMap_[f];this.unsetModulesAsLoading(f)}};
_.R.setModulesAsLoading=function(){var f=this;_.NA.apply(0,arguments).forEach(function(H){f.loadingModules_[H]=!0})};
_.R.unsetModulesAsLoading=function(){var f=this;_.NA.apply(0,arguments).forEach(function(H){delete f.loadingModules_[H]})};
var srg=function(f,H){return new _.IO(function(v,t){var M=f.getModuleInfo(H);M.isLoaded()?v(null):(M.registerCallback(function(){v(null)}),GPZ(M,function(h){var y="Error loading "+H+": "+h;
h instanceof TB.ModuleLoadFailure&&h.url&&(y=y+", requested url: "+h.url.toString());t(Error(y))}))})},jrg=function(f,H){H=H.filter(function(v){return!f.isModuleLoading(v)&&!f.getModuleInfo(v).isLoaded()});
H.length>0&&(f.setModulesAsLoading.apply(f,_.pS(H)),f.JSC$11048_queue_.push(H),JX_(f))},JX_=function(f){for(var H={};f.activeLoads_<Infinity&&f.JSC$11048_queue_.length>0;H={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})H.ids$jscomp$36=f.JSC$11048_queue_.shift().filter(function(v){return!f.getModuleInfo(v).isLoaded()}),H.ids$jscomp$36.length>0&&(f.activeLoads_++,H.finishLoad=function(v){return function(){f.activeLoads_--;
JX_(f);v.finishLoad=function(){}}}(H),_.sB(H.ids$jscomp$36.map(function(v){return srg(f,v)})).then(function(v){return function(){(0,v.finishLoad)()}}(H)),H.attempt$jscomp$6=0,H.load$jscomp$1=function(v){return function(){if(Object.keys(f.JSC$11048_extraEdges_).length>0&&!f.JSC$10044_loader_.supportsExtraEdges)throw Error("td");
f.JSC$10044_loader_.JSC$11027_loadModules(v.ids$jscomp$36,f.JSC$11048_moduleInfoMap_,{extraEdges:f.JSC$11048_extraEdges_,onError:function(t,M){var h=Sjv[v.attempt$jscomp$6++];h!==void 0?setTimeout(function(){(0,v.load$jscomp$1)()},h):(f.unsetModulesAsLoading.apply(f,_.pS(v.ids$jscomp$36)),(0,v.finishLoad)(),v.ids$jscomp$36.forEach(function(y){y=f.getModuleInfo(y);
if(!y.isLoaded())y.onError(new TB.ModuleLoadFailure(TB.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,t,v.ids$jscomp$36,M))}))}})}}(H),(0,H.load$jscomp$1)())},ZQr=function(f,H,v,t,M){t=t===void 0?function(){return!0}:t;
M=M===void 0?{}:M;H=_.V(H);for(var h=H.next();!h.done;h=H.next()){h=h.value;var y=f.getModuleInfo(h);!M[h]&&t(y)&&(M[h]=!0,ZQr(f,y.deps_||[],v,t,M),v(y))}};var lCv=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var rYB=Symbol("wd");window.JSCompiler_renameProperty=function(f){return f};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var U6n,eFv,Lbb;U6n=!lCv||HTMLElement.es5Shimmed||_.Mr.Reflect===void 0||_.Mr.customElements===void 0||_.Mr.customElements.polyfillWrapFlushCallback||!1;_.tmT=function(){var f=HTMLElement;if(U6n)return f;if(eFv!==void 0)return eFv;var H=_.Mr.Reflect,v=function(){return H.construct(f,[],this.constructor)};
v.prototype=f.prototype;v.prototype.constructor=v;v.es5Shimmed=!0;Object.setPrototypeOf(v,f);return eFv=v};
Lbb=!1;U6n||Lbb||(Lbb=!0,_.Mr.HTMLElement=_.tmT());/*

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 psB=/(url\()([^)]*)(\))/g,odR=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,ndT,VI;var C1=!window.ShadyDOM||!window.ShadyDOM.inUse,x6b=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),Bjv=!window.customElements.polyfillWrapFlushCallback,zF9;if(zF9=C1&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var FbH=new CSSStyleSheet;FbH.replaceSync("");var rXn=document.createElement("div");rXn.attachShadow({mode:"open"});rXn.shadowRoot.adoptedStyleSheets=[FbH];zF9=rXn.shadowRoot.adoptedStyleSheets[0]===FbH}catch(f){zF9=!1}
var Kbb=zF9,D6C=window.Polymer&&window.Polymer.rootPath||uXb(document.baseURI||window.location.href),JM=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,X1r=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,X2=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,oE9=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,G5=window.Polymer&&window.Polymer.legacyOptimizations||!1,cb=window.Polymer&&window.Polymer.legacyWarnings||!1,nEb=window.Polymer&&window.Polymer.syncInitialRender||
!1,e6=window.Polymer&&window.Polymer.legacyUndefined||!1,pVZ=window.Polymer&&window.Polymer.orderedComputed||!1,CR=window.Polymer&&window.Polymer.removeNestedTemplates||!1,ET=window.Polymer&&window.Polymer.fastDomIf||!1,Ng=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,Qra=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,uln=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var cD={},aCM={},x7=function(){return HTMLElement.apply(this,arguments)||this};
_.e(x7,HTMLElement);x7.import=function(f,H){return f?(f=cD[f]||aCM[f.toLowerCase()])&&H?f.querySelector(H):f:null};
x7.prototype.attributeChangedCallback=function(f,H,v){H!==v&&this.register()};
x7.prototype.register=function(f){if(f=f||this.id){if(X2&&(cD[f]||aCM[f.toLowerCase()])!==void 0)throw cD[f]=aCM[f.toLowerCase()]=null,Error("xd`"+f);this.id=f;cD[f]=aCM[f.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.H7.Object.defineProperties(x7.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var f=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;f=_.yI(this.getAttribute("assetpath")||"",f.baseURI);this.__assetpath=uXb(f)}return this.__assetpath}}});
_.H7.Object.defineProperties(x7,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
x7["import"]=x7.import;x7.prototype.modules=cD;customElements.define("dom-module",x7);var P0r=0,PwH=0,Y7=[],GiZ=0,a4R=!1,C0C=document.createTextNode(""),EEo,aV;(new window.MutationObserver(G7E)).observe(C0C,{characterData:!0});_.XQ={after:function(f){return{run:function(H){return window.setTimeout(H,f)},
cancel:function(H){window.clearTimeout(H)}}},
run:function(f,H){return window.setTimeout(f,H)},
cancel:function(f){window.clearTimeout(f)}};
_.Ku={run:function(f){return window.requestAnimationFrame(f)},
cancel:function(f){window.cancelAnimationFrame(f)}};
EEo={run:function(f){return window.requestIdleCallback?window.requestIdleCallback(f):window.setTimeout(f,16)},
cancel:function(f){window.cancelIdleCallback?window.cancelIdleCallback(f):window.clearTimeout(f)}};
aV={run:function(f){a4R||(a4R=!0,C0C.textContent=GiZ++);Y7.push(f);return P0r++},
cancel:function(f){var H=f-PwH;if(H>=0){if(!Y7[H])throw Error("yd`"+f);Y7[H]=null}}};var Njr=0,AA=function(f){var H=f.__mixinApplications;H||(H=new WeakMap,f.__mixinApplications=H);var v=Njr++;return function(t){var M=t.__mixinSet;if(M&&M[v])return t;var h=H,y=h.get(t);y||(y=f(t),h.set(t,y),t=Object.create(y.__mixinSet||M||null),t[v]=!0,y.__mixinSet=t);return y}};_.Zx=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(f){return ShadyDOM.patch(f)}:function(f){return f};var cXn=AA(function(f){var H=function(){var v=f.call(this)||this;v.__dataEnabled=!1;v.__dataReady=!1;v.__dataInvalid=!1;v.__data={};v.__dataPending=null;v.__dataOld=null;v.__dataInstanceProps=null;v.__dataCounter=0;v.__serializing=!1;v._initializeProperties();return v};
_.e(H,f);H.createProperties=function(v){var t=this.prototype,M;for(M in v)M in t||t._createPropertyAccessor(M)};
H.attributeNameForProperty=function(v){return v.toLowerCase()};
H.typeForProperty=function(){};
H.prototype._createPropertyAccessor=function(v,t){this._addPropertyToAttributeMap(v);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[v]||(this.__dataHasAccessor[v]=!0,this._definePropertyAccessor(v,t))};
H.prototype._addPropertyToAttributeMap=function(v){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var t=this.__dataAttributes[v];t||(t=this.constructor.attributeNameForProperty(v),this.__dataAttributes[t]=v);return t};
H.prototype._definePropertyAccessor=function(v,t){Object.defineProperty(this,v,{get:function(){return this.__data[v]},
set:t?function(){}:function(M){this._setPendingProperty(v,M,!0)&&this._invalidateProperties()}})};
H.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
H.prototype._initializeProperties=function(){for(var v in this.__dataHasAccessor)this.hasOwnProperty(v)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[v]=this[v],delete this[v])};
H.prototype._initializeInstanceProperties=function(v){Object.assign(this,v)};
H.prototype._setProperty=function(v,t){this._setPendingProperty(v,t)&&this._invalidateProperties()};
H.prototype._getProperty=function(v){return this.__data[v]};
H.prototype._setPendingProperty=function(v,t){var M=this.__data[v],h=this._shouldPropertyChange(v,t,M);h&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||v in this.__dataOld||(this.__dataOld[v]=M),this.__data[v]=t,this.__dataPending[v]=t);return h};
H.prototype._isPropertyPending=function(v){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(v))};
H.prototype._invalidateProperties=function(){var v=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,aV.run(function(){v.__dataInvalid&&(v.__dataInvalid=!1,v._flushProperties())}))};
H.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
H.prototype._flushProperties=function(){this.__dataCounter++;var v=this.__data,t=this.__dataPending,M=this.__dataOld;this._shouldPropertiesChange(v,t,M)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(v,t,M));this.__dataCounter--};
H.prototype._shouldPropertiesChange=function(v,t){return!!t};
H.prototype._propertiesChanged=function(){};
H.prototype._shouldPropertyChange=function(v,t,M){return M!==t&&(M===M||t===t)};
H.prototype.attributeChangedCallback=function(v,t,M,h){t!==M&&this._attributeToProperty(v,M);f.prototype.attributeChangedCallback&&f.prototype.attributeChangedCallback.call(this,v,t,M,h)};
H.prototype._attributeToProperty=function(v,t,M){if(!this.__serializing){var h=this.__dataAttributes;v=h&&h[v]||v;this[v]=this._deserializeValue(t,M||this.constructor.typeForProperty(v))}};
H.prototype._propertyToAttribute=function(v,t,M){this.__serializing=!0;M=arguments.length<3?this[v]:M;this._valueToNodeAttribute(this,M,t||this.constructor.attributeNameForProperty(v));this.__serializing=!1};
H.prototype._valueToNodeAttribute=function(v,t,M){t=this._serializeValue(t);if(M==="class"||M==="name"||M==="slot")v=(0,_.Zx)(v);t===void 0?v.removeAttribute(M):v.setAttribute(M,t===""&&window.trustedTypes?window.trustedTypes.emptyScript:t)};
H.prototype._serializeValue=function(v){switch(typeof v){case "boolean":return v?"":void 0;default:return v!=null?v.toString():void 0}};
H.prototype._deserializeValue=function(v,t){switch(t){case Boolean:return v!==null;case Number:return Number(v);default:return v}};
return H});var XVh=0,CwE=[];var AXC=AA(function(f){function H(h){h=Object.getPrototypeOf(h);return h.prototype instanceof M?h:null}
function v(h){if(!h.hasOwnProperty("__ownProperties")){var y=null;if(h.hasOwnProperty("properties")){var m=h.properties;if(m){y={};for(var W in m){var I=m[W];y[W]=typeof I==="function"?{type:I}:I}}}h.__ownProperties=y}return h.__ownProperties}
var t=cXn(f),M=function(){return t.apply(this,arguments)||this};
_.e(M,t);M.finalize=function(){if(!this.hasOwnProperty("__finalized")){var h=H(this);h&&h.finalize();this.__finalized=!0;this._finalizeClass()}};
M._finalizeClass=function(){var h=v(this);h&&this.createProperties(h)};
M.typeForProperty=function(h){return(h=this._properties[h])&&h.type};
M.prototype._initializeProperties=function(){XVh++;this.constructor.finalize();t.prototype._initializeProperties.call(this)};
M.prototype.connectedCallback=function(){t.prototype.connectedCallback&&t.prototype.connectedCallback.call(this);this._enableProperties()};
M.prototype.disconnectedCallback=function(){t.prototype.disconnectedCallback&&t.prototype.disconnectedCallback.call(this)};
_.H7.Object.defineProperties(M,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var h=this;if(!this.hasOwnProperty("__observedAttributes")){EdN(this.prototype);var y=this._properties;this.__observedAttributes=y?Object.keys(y).map(function(m){return h.prototype._addPropertyToAttributeMap(m)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var h=H(this);this.__properties=Object.assign({},h&&h._properties,v(this))}return this.__properties}}});
return M});var Ny_={},cYr=/-[a-z]/g,Xsr=/([A-Z])/g;for(var bQT={},iQg=HTMLElement.prototype;iQg;){for(var kib=Object.getOwnPropertyNames(iQg),Tjn=0;Tjn<kib.length;Tjn++)bQT[kib[Tjn]]=!0;iQg=Object.getPrototypeOf(iQg)}var wVo=window.trustedTypes?function(f){return trustedTypes.isHTML(f)||trustedTypes.isScript(f)||trustedTypes.isScriptURL(f)}:function(){return!1},qja=AA(function(f){var H=cXn(f);
f=function(){return H.apply(this,arguments)||this};
_.e(f,H);f.createPropertiesForAttributes=function(){for(var v=this.observedAttributes,t=0;t<v.length;t++)this.prototype._createPropertyAccessor(mu(v[t]))};
f.attributeNameForProperty=function(v){return $7(v)};
f.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);H.prototype._initializeProperties.call(this)};
f.prototype._initializeProtoProperties=function(v){for(var t in v)this._setProperty(t,v[t])};
f.prototype._ensureAttribute=function(v,t){this.hasAttribute(v)||this._valueToNodeAttribute(this,t,v)};
f.prototype._serializeValue=function(v){switch(typeof v){case "object":if(v instanceof Date)return v.toString();if(v){if(wVo(v))return v;try{return JSON.stringify(v)}catch(t){return""}}default:return H.prototype._serializeValue.call(this,v)}};
f.prototype._deserializeValue=function(v,t){switch(t){case Object:try{var M=JSON.parse(v)}catch(h){M=v}break;case Array:try{M=JSON.parse(v)}catch(h){M=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+v)}break;case Date:M=isNaN(v)?String(v):Number(v);M=new Date(M);break;default:M=H.prototype._deserializeValue.call(this,v,t)}return M};
f.prototype._definePropertyAccessor=function(v,t){if(!bQT[v]){var M=this[v];M!==void 0&&(this.__data?this._setPendingProperty(v,M):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[v]=M))}H.prototype._definePropertyAccessor.call(this,v,t)};
f.prototype._hasAccessor=function(v){return this.__dataHasAccessor&&this.__dataHasAccessor[v]};
f.prototype._isPropertyPending=function(v){return!!(this.__dataPending&&v in this.__dataPending)};
return f});var fqb={"dom-if":!0,"dom-repeat":!0},HYC=!1,vTo=!1,tBh=function(){var f=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(H){return H}});
return function(H,v,t){v=v.getAttribute(t);f&&t.startsWith("on-")?H.setAttribute(t,f.createScript(v,t)):H.setAttribute(t,v)}}(),MBb=AA(function(f){var H=function(){return f.apply(this,arguments)||this};
_.e(H,f);H._parseTemplate=function(v,t){if(!v._templateInfo){var M=v._templateInfo={};M.nodeInfoList=[];M.nestedTemplate=!!t;M.stripWhiteSpace=t&&t.stripWhiteSpace||v.hasAttribute&&v.hasAttribute("strip-whitespace");this._parseTemplateContent(v,M,{parent:null})}return v._templateInfo};
H._parseTemplateContent=function(v,t,M){return this._parseTemplateNode(v.content,t,M)};
H._parseTemplateNode=function(v,t,M){var h=!1;v.localName!="template"||v.hasAttribute("preserve-content")?v.localName==="slot"&&(t.hasInsertionPoint=!0):h=this._parseTemplateNestedTemplate(v,t,M)||h;if(!HYC){HYC=!0;var y=document.createElement("textarea");y.placeholder="a";vTo=y.placeholder===y.textContent}vTo&&v.localName==="textarea"&&v.placeholder&&v.placeholder===v.textContent&&(v.textContent=null);v.firstChild&&this._parseTemplateChildNodes(v,t,M);v.hasAttributes&&v.hasAttributes()&&(h=this._parseTemplateNodeAttributes(v,
t,M)||h);return h||M.noted};
H._parseTemplateChildNodes=function(v,t,M){if(v.localName!=="script"&&v.localName!=="style")for(var h=v.firstChild,y=0,m;h;h=m){if(h.localName=="template"){var W=h.getAttribute("is");if(W&&fqb[W])for(m=h,m.removeAttribute("is"),h=m.ownerDocument.createElement(W),m.parentNode.replaceChild(h,m),h.appendChild(m);m.attributes.length;)W=m.attributes[0].name,tBh(h,m,W),m.removeAttribute(W)}m=h.nextSibling;if(h.nodeType===Node.TEXT_NODE){for(W=m;W&&W.nodeType===Node.TEXT_NODE;)h.textContent+=W.textContent,
m=W.nextSibling,v.removeChild(W),W=m;if(t.stripWhiteSpace&&!h.textContent.trim()){v.removeChild(h);continue}}W={parentIndex:y,parentInfo:M};this._parseTemplateNode(h,t,W)&&(W.infoIndex=t.nodeInfoList.push(W)-1);h.parentNode&&y++}};
H._parseTemplateNestedTemplate=function(v,t,M){t=this._parseTemplate(v,t);(t.content=v.content.ownerDocument.createDocumentFragment()).appendChild(v.content);M.templateInfo=t;return!0};
H._parseTemplateNodeAttributes=function(v,t,M){for(var h=!1,y=Array.from(v.attributes),m=y.length-1,W;W=y[m];m--)h=this._parseTemplateNodeAttribute(v,t,M,W.name,W.value)||h;return h};
H._parseTemplateNodeAttribute=function(v,t,M,h,y){return h.slice(0,3)==="on-"?(v.removeAttribute(h),M.events=M.events||[],M.events.push({name:h.slice(3),value:y}),!0):h==="id"?(M.id=y,!0):!1};
H._contentForTemplate=function(v){var t=v._templateInfo;return t&&t.content||v.content};
H.prototype._stampTemplate=function(v,t){v&&!v.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(v);t=t||this.constructor._parseTemplate(v);var M=t.nodeInfoList;v=document.importNode(t.content||v.content,!0);v.__noInsertionPoint=!t.hasInsertionPoint;var h=v.nodeList=Array(M.length);v.$={};for(var y=0,m=M.length,W=void 0;y<m&&(W=M[y]);y++){var I=h[y]=AYH(v,W);W.id&&(v.$[W.id]=I);var S=I,d=W,Z=t;d.templateInfo&&(S._templateInfo=d.templateInfo,S._parentTemplateInfo=
Z);if(W.events&&W.events.length)for(S=0,d=W.events,Z=void 0;S<d.length&&(Z=d[S]);S++)this._addMethodEventListenerToNode(I,Z.name,Z.value,this)}return v};
H.prototype._addMethodEventListenerToNode=function(v,t,M,h){M=bpT(h||v,M);this._addEventListenerToNode(v,t,M);return M};
H.prototype._addEventListenerToNode=function(v,t,M){v.addEventListener(t,M)};
H.prototype._removeEventListenerFromNode=function(v,t,M){v.removeEventListener(t,M)};
return H});var j6=0,Uo=[],hjr={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Rjv=/[A-Z]/,VBM=function(f,H,v,t,M){var h=M?Oo(f):f;if(H=H[h])for(h=0;h<H.length;h++){var y=H[h];if(y.info.lastRun!==j6&&(!M||fb5(f,y.trigger))){y.info.lastRun=j6;y=y.info;for(var m=v,W=t,I=0,S=m.length-1,d=-1;I<=S;){var Z=I+S>>1,l=W.get(m[Z].methodInfo)-W.get(y.methodInfo);if(l<0)I=Z+1;else if(l>0)S=Z-1;else{d=Z;break}}d<
0&&(d=S+1);m.splice(d,0,y)}}},Ibg=[],ydH=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"),ib=AA(function(f){var H=MBb(qja(f));
f=function(){var v=H.call(this)||this;v.__isPropertyEffectsClient=!0;return v};
_.e(f,H);f.prototype._initializeProperties=function(){H.prototype._initializeProperties.call(this);this._registerHost();this.__dataClientsReady=!1;this.__dataLinkedPaths=this.__dataToNotify=this.__dataPendingClients=null;this.__dataHasPaths=!1;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=!1};
f.prototype._registerHost=function(){if(bb.length){var v=bb[bb.length-1];v._enqueueClient(this);this.__dataHost=v}};
f.prototype._initializeProtoProperties=function(v){this.__data=Object.create(v);this.__dataPending=Object.create(v);this.__dataOld={}};
f.prototype._initializeInstanceProperties=function(v){var t=this.__readOnly,M;for(M in v)t&&t[M]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[M]=this.__dataPending[M]=v[M])};
f.prototype._addPropertyEffect=function(v,t,M){this._createPropertyAccessor(v,t=="__readOnly");var h=qwg(this,t,!0)[v];h||(h=this[t][v]=[]);h.push(M)};
f.prototype._removePropertyEffect=function(v,t,M){v=qwg(this,t,!0)[v];M=v.indexOf(M);M>=0&&v.splice(M,1)};
f.prototype._hasPropertyEffect=function(v,t){t=this[t];return!(!t||!t[v])};
f.prototype._hasReadOnlyEffect=function(v){return this._hasPropertyEffect(v,"__readOnly")};
f.prototype._hasNotifyEffect=function(v){return this._hasPropertyEffect(v,"__notifyEffects")};
f.prototype._hasReflectEffect=function(v){return this._hasPropertyEffect(v,"__reflectEffects")};
f.prototype._hasComputedEffect=function(v){return this._hasPropertyEffect(v,"__computeEffects")};
f.prototype._setPendingPropertyOrPath=function(v,t,M,h){if(h||Oo(Array.isArray(v)?v[0]:v)!==v){if(!h&&(h=dT(this,v),v=wsN(this,v,t),!v||!H.prototype._shouldPropertyChange.call(this,v,t,h)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(v,t,M)){if(M=this.__dataLinkedPaths)for(var y in M)h=M[y],gT(y,v)?(h=IV(y,h,v),this._setPendingPropertyOrPath(h,t,!0,!0)):gT(h,v)&&(h=IV(h,y,v),this._setPendingPropertyOrPath(h,t,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[v])return this._setPendingProperty(v,
t,M);this[v]=t}return!1};
f.prototype._setUnmanagedPropertyToNode=function(v,t,M){if(M!==v[t]||typeof M=="object")t==="className"&&(v=(0,_.Zx)(v)),v[t]=M};
f.prototype._setPendingProperty=function(v,t,M){var h=this.__dataHasPaths&&Wb(v);if(this._shouldPropertyChange(v,t,(h?this.__dataTemp:this.__data)[v])){this.__dataPending||(this.__dataPending={},this.__dataOld={});v in this.__dataOld||(this.__dataOld[v]=this.__data[v]);h?this.__dataTemp[v]=t:this.__data[v]=t;this.__dataPending[v]=t;if(h||this.__notifyEffects&&this.__notifyEffects[v])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[v]=M;return!0}return!1};
f.prototype._setProperty=function(v,t){this._setPendingProperty(v,t,!0)&&this._invalidateProperties()};
f.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
f.prototype._enqueueClient=function(v){this.__dataPendingClients=this.__dataPendingClients||[];v!==this&&this.__dataPendingClients.push(v)};
f.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
f.prototype.__enableOrFlushClients=function(){var v=this.__dataPendingClients;if(v){this.__dataPendingClients=null;for(var t=0;t<v.length;t++){var M=v[t];M.__dataEnabled?M.__dataPending&&M._flushProperties():M._enableProperties()}}};
f.prototype._readyClients=function(){this.__enableOrFlushClients()};
f.prototype.setProperties=function(v,t){for(var M in v)!t&&this.__readOnly&&this.__readOnly[M]||this._setPendingPropertyOrPath(M,v[M],!0);this._invalidateProperties()};
f.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
f.prototype._propertiesChanged=function(v,t,M){v=this.__dataHasPaths;this.__dataHasPaths=!1;var h;if(h=this.__computeEffects)if(pVZ){j6++;var y=RHN(this),m=[],W;for(W in t)VBM(W,h,m,y,v);for(;W=m.shift();)yQ_(this,"",t,M,W)&&VBM(W.methodInfo,h,m,y,v);Object.assign(M,this.__dataOld);Object.assign(t,this.__dataPending);this.__dataPending=null}else for(y=t;so(this,h,y,M,v);)Object.assign(M,this.__dataOld),Object.assign(t,this.__dataPending),y=this.__dataPending,this.__dataPending=null;h=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(t,M,v);this._flushClients();so(this,this.__reflectEffects,t,M,v);so(this,this.__observeEffects,t,M,v);if(h){y=this.__notifyEffects;m=j6++;for(var I in h)if(h[I]){if(W=y){var S=y;W=m;var d=I,Z=t,l=M,L=v,r=!1,n=L?Oo(d):d;if(S=S[n]){n=0;for(var Q=S.length,C=void 0;n<Q&&(C=S[n]);n++)C.info&&C.info.lastRun===W||L&&!fb5(d,C.trigger)||(C.info&&(C.info.lastRun=W),C.fn(this,d,Z,l,C.info,L,void 0),r=!0)}W=r}if(W)var w=!0;else{if(W=v)W=I,d=t,Z=Oo(W),Z!==
W?(Z=$7(Z)+"-changed",vfg(this,Z,d[W],W),W=!0):W=!1;W&&(w=!0)}}var c;w&&(c=this.__dataHost)&&c._invalidateProperties&&c._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
f.prototype._propagatePropertyChanges=function(v,t,M){this.__propagateEffects&&so(this,this.__propagateEffects,v,t,M);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,v,t,M)};
f.prototype._runEffectsForTemplate=function(v,t,M,h){var y=this,m=function(W,I){so(y,v.propertyEffects,W,M,I,v.nodeList);for(var S=v.firstChild;S;S=S.nextSibling)y._runEffectsForTemplate(S,W,M,I)};
v.runEffects?v.runEffects(m,t,h):m(t,h)};
f.prototype.linkPaths=function(v,t){v=S6(v);t=S6(t);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[v]=t};
f.prototype.unlinkPaths=function(v){v=S6(v);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[v]};
f.prototype.notifySplices=function(v,t){var M={path:""};v=dT(this,v,M);s0B(this,v,M.path,t)};
f.prototype.get=function(v,t){return dT(t||this,v)};
f.prototype.set=function(v,t,M){M?wsN(M,v,t):this.__readOnly&&this.__readOnly[v]||this._setPendingPropertyOrPath(v,t,!0)&&this._invalidateProperties()};
f.prototype.push=function(v){var t=_.NA.apply(1,arguments),M={path:""},h=dT(this,v,M),y=h.length,m=h.push.apply(h,_.pS(t));t.length&&L1(this,h,M.path,y,t.length,[]);return m};
f.prototype.pop=function(v){var t={path:""};v=dT(this,v,t);var M=!!v.length,h=v.pop();M&&L1(this,v,t.path,v.length,0,[h]);return h};
f.prototype.splice=function(v,t,M){var h=_.NA.apply(3,arguments),y={path:""},m=dT(this,v,y);t<0?t=m.length-Math.floor(-t):t&&(t=Math.floor(t));var W=arguments.length===2?m.splice(t):m.splice.apply(m,[t,M].concat(_.pS(h)));(h.length||W.length)&&L1(this,m,y.path,t,h.length,W);return W};
f.prototype.shift=function(v){var t={path:""};v=dT(this,v,t);var M=!!v.length,h=v.shift();M&&L1(this,v,t.path,0,0,[h]);return h};
f.prototype.unshift=function(v){var t=_.NA.apply(1,arguments),M={path:""},h=dT(this,v,M),y=h.unshift.apply(h,_.pS(t));t.length&&L1(this,h,M.path,0,t.length,[]);return y};
f.prototype.notifyPath=function(v,t){if(arguments.length==1){var M={path:""};t=dT(this,v,M);M=M.path}else M=Array.isArray(v)?S6(v):v;this._setPendingPropertyOrPath(M,t,!0,!0)&&this._invalidateProperties()};
f.prototype._createReadOnlyProperty=function(v,t){this._addPropertyEffect(v,"__readOnly");t&&(this["_set"+(v[0].toUpperCase()+v.substring(1))]=function(M){this._setProperty(v,M)})};
f.prototype._createPropertyObserver=function(v,t,M){var h={property:v,method:t,dynamicFn:!!M};this._addPropertyEffect(v,"__observeEffects",{fn:HAg,info:h,trigger:{name:v}});M&&this._addPropertyEffect(t,"__observeEffects",{fn:HAg,info:h,trigger:{name:t}})};
f.prototype._createMethodObserver=function(v,t){var M=dNe(v);if(!M)throw Error("zd`"+v);OAR(this,M,"__observeEffects",V4r,null,t)};
f.prototype._createNotifyingProperty=function(v){this._addPropertyEffect(v,"__notifyEffects",{fn:t4T,info:{eventName:$7(v)+"-changed",property:v}})};
f.prototype._createReflectedProperty=function(v){var t=this.constructor.attributeNameForProperty(v);t[0]==="-"?console.warn("Property "+v+" cannot be reflected to attribute "+t+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(v,"__reflectEffects",{fn:M4s,info:{attrName:t}})};
f.prototype._createComputedProperty=function(v,t,M){var h=dNe(t);if(!h)throw Error("Ad`"+t);t=OAR(this,h,"__computeEffects",yQ_,v,M);qwg(this,"__computeInfo")[v]=t};
f.prototype._marshalArgs=function(v,t,M){for(var h=this.__data,y=[],m=0,W=v.length;m<W;m++){var I=v[m],S=I.name,d=I.structured,Z=I.wildcard,l=I.value;I.literal||(Z?(I=gT(S,t),d=j0H(h,M,I?t:S),l={path:I?t:S,value:d,base:I?dT(h,S):d}):l=d?j0H(h,M,S):h[S]);if(e6&&!this._overrideLegacyUndefined&&l===void 0&&v.length>1)return Uo;y[m]=l}return y};
f.addPropertyEffect=function(v,t,M){this.prototype._addPropertyEffect(v,t,M)};
f.createPropertyObserver=function(v,t,M){this.prototype._createPropertyObserver(v,t,M)};
f.createMethodObserver=function(v,t){this.prototype._createMethodObserver(v,t)};
f.createNotifyingProperty=function(v){this.prototype._createNotifyingProperty(v)};
f.createReadOnlyProperty=function(v,t){this.prototype._createReadOnlyProperty(v,t)};
f.createReflectedProperty=function(v){this.prototype._createReflectedProperty(v)};
f.createComputedProperty=function(v,t,M){this.prototype._createComputedProperty(v,t,M)};
f.bindTemplate=function(v){return this.prototype._bindTemplate(v)};
f.prototype._bindTemplate=function(v,t){var M=this.constructor._parseTemplate(v),h=this.__preBoundTemplateInfo==M;if(!h)for(var y in M.propertyEffects)this._createPropertyAccessor(y);t?(M=Object.create(M),M.wasPreBound=h,this.__templateInfo?(v=v._parentTemplateInfo||this.__templateInfo,t=v.lastChild,M.parent=v,v.lastChild=M,(M.previousSibling=t)?t.nextSibling=M:v.firstChild=M):this.__templateInfo=M):this.__preBoundTemplateInfo=M;return M};
f._addTemplatePropertyEffect=function(v,t,M){(v.hostProps=v.hostProps||{})[t]=!0;v=v.propertyEffects=v.propertyEffects||{};(v[t]=v[t]||[]).push(M)};
f.prototype._stampTemplate=function(v,t){t=t||this._bindTemplate(v,!0);bb.push(this);v=H.prototype._stampTemplate.call(this,v,t);bb.pop();t.nodeList=v.nodeList;if(!t.wasPreBound)for(var M=t.childNodes=[],h=v.firstChild;h;h=h.nextSibling)M.push(h);v.templateInfo=t;M=t.nodeList;h=t.nodeInfoList;if(h.length)for(var y=0;y<h.length;y++){var m=M[y],W=h[y].bindings;if(W)for(var I=0;I<W.length;I++){var S=W[I],d=m,Z=S;if(Z.isCompound){for(var l=d.__dataCompoundStorage||(d.__dataCompoundStorage={}),L=Z.parts,
r=Array(L.length),n=0;n<L.length;n++)r[n]=L[n].literal;L=Z.target;l[L]=r;Z.literal&&Z.kind=="property"&&(L==="className"&&(d=(0,_.Zx)(d)),d[L]=Z.literal)}Wms(m,this,S)}m.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(t,this.__data,null,!1),this._flushClients());return v};
f.prototype._removeBoundDom=function(v){v=v.templateInfo;var t=v.previousSibling,M=v.nextSibling,h=v.parent;t?t.nextSibling=M:h&&(h.firstChild=M);M?M.previousSibling=t:h&&(h.lastChild=t);v.nextSibling=v.previousSibling=null;v=v.childNodes;for(t=0;t<v.length;t++)M=v[t],(0,_.Zx)((0,_.Zx)(M).parentNode).removeChild(M)};
f._parseTemplateNode=function(v,t,M){var h=H._parseTemplateNode.call(this,v,t,M);if(v.nodeType===Node.TEXT_NODE){var y=this._parseBindings(v.textContent,t);y&&(v.textContent=gfR(y)||" ",$NR(this,t,M,"text","textContent",y),h=!0)}return h};
f._parseTemplateNodeAttribute=function(v,t,M,h,y){var m=this._parseBindings(y,t);if(m){y=h;var W="property";Rjv.test(h)?W="attribute":h[h.length-1]=="$"&&(h=h.slice(0,-1),W="attribute");var I=gfR(m);I&&W=="attribute"&&(h=="class"&&v.hasAttribute("class")&&(I+=" "+v.getAttribute(h)),v.setAttribute(h,I));W=="attribute"&&y=="disable-upgrade$"&&v.setAttribute(h,"");v.localName==="input"&&y==="value"&&v.setAttribute(y,"");v.removeAttribute(y);W==="property"&&(h=mu(h));$NR(this,t,M,W,h,m,I);return!0}return H._parseTemplateNodeAttribute.call(this,
v,t,M,h,y)};
f._parseTemplateNestedTemplate=function(v,t,M){var h=H._parseTemplateNestedTemplate.call(this,v,t,M),y=v.parentNode,m=M.templateInfo,W=y.localName==="dom-if",I=y.localName==="dom-repeat";CR&&(W||I)&&(y.removeChild(v),M=M.parentInfo,M.templateInfo=m,M.noted=!0,h=!1);v=m.hostProps;if(ET&&W)v&&(t.hostProps=Object.assign(t.hostProps||{},v),CR||(M.parentInfo.noted=!0));else for(var S in v)$NR(this,t,M,"property","_host_"+S,[{mode:"{",source:S,dependencies:[S],hostProp:!0}]);return h};
f._parseBindings=function(v,t){for(var M=[],h=0,y;(y=ydH.exec(v))!==null;){y.index>h&&M.push({literal:v.slice(h,y.index)});h=y[1][0];var m=!!y[2];y=y[3].trim();var W=!1,I="",S=-1;h=="{"&&(S=y.indexOf("::"))>0&&(I=y.substring(S+2),y=y.substring(0,S),W=!0);S=dNe(y);var d=[];if(S){var Z=S,l=Z.args;Z=Z.methodName;for(var L=0;L<l.length;L++){var r=l[L];r.literal||d.push(r)}if((l=t.dynamicFns)&&l[Z]||S.static)d.push(Z),S.dynamicFn=!0}else d.push(y);M.push({source:y,mode:h,negate:m,customEvent:W,signature:S,
dependencies:d,event:I});h=ydH.lastIndex}h&&h<v.length&&(v=v.substring(h))&&M.push({literal:v});return M.length?M:null};
f._evaluateBinding=function(v,t,M,h,y,m){v=t.signature?V4r(v,M,h,y,t.signature):M!=t.source?dT(v,t.source):m&&Wb(M)?dT(v,M):v.__data[M];t.negate&&(v=!v);return v};
_.H7.Object.defineProperties(f.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return hjr}}});
return f}),bb=[];var YFv=window.ShadyCSS&&window.ShadyCSS.cssBuild,k4=AA(function(f){function H(t,M,h,y){if(!YFv){for(var m=M.content.querySelectorAll("style"),W=UNe(M),I=eHe(h),S=M.content.firstElementChild,d=0;d<I.length;d++){var Z=I[d];Z.textContent=t._processStyleText(Z.textContent,y);M.content.insertBefore(Z,S)}for(S=I=0;S<W.length;S++)d=W[S],Z=m[I],Z!==d?(d=d.cloneNode(!0),Z.parentNode.insertBefore(d,Z)):I++,d.textContent=t._processStyleText(d.textContent,y)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(M,
h);if(uln&&YFv&&Kbb&&(M=M.content.querySelectorAll("style"))){var l="";Array.from(M).forEach(function(L){l+=L.textContent;L.parentNode.removeChild(L)});
t._styleSheet=new CSSStyleSheet;t._styleSheet.replaceSync(l)}}
var v=AXC(ib(f));f=function(){return v.call(this)||this};
_.e(f,v);f._finalizeClass=function(){v._finalizeClass.call(this);var t;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(t=this.__ownObservers)&&this.createObservers(t,this._properties);this._prepareTemplate()};
f._prepareTemplate=function(){var t=this.template;t&&(typeof t==="string"?(console.error("template getter must return HTMLTemplateElement"),t=null):G5||(t=t.cloneNode(!0)));this.prototype._template=t};
f.createProperties=function(t){for(var M in t){var h=this.prototype,y=M,m=t[M],W=t;m.computed&&(m.readOnly=!0);m.computed&&(h._hasReadOnlyEffect(y)?console.warn("Cannot redefine computed property '"+y+"'."):h._createComputedProperty(y,m.computed,W));m.readOnly&&!h._hasReadOnlyEffect(y)?h._createReadOnlyProperty(y,!m.computed):m.readOnly===!1&&h._hasReadOnlyEffect(y)&&console.warn("Cannot make readOnly property '"+y+"' non-readOnly.");m.reflectToAttribute&&!h._hasReflectEffect(y)?h._createReflectedProperty(y):
m.reflectToAttribute===!1&&h._hasReflectEffect(y)&&console.warn("Cannot make reflected property '"+y+"' non-reflected.");m.notify&&!h._hasNotifyEffect(y)?h._createNotifyingProperty(y):m.notify===!1&&h._hasNotifyEffect(y)&&console.warn("Cannot make notify property '"+y+"' non-notify.");m.observer&&h._createPropertyObserver(y,m.observer,W[m.observer]);h._addPropertyToAttributeMap(y)}};
f.createObservers=function(t,M){for(var h=this.prototype,y=0;y<t.length;y++)h._createMethodObserver(t[y],M)};
f.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);v.prototype._initializeProperties.call(this);this.rootPath=D6C;this.importPath=this.constructor.importPath;var t=this.constructor;if(!t.hasOwnProperty("__propertyDefaults")){t.__propertyDefaults=null;var M=t._properties,h;for(h in M){var y=M[h];"value"in y&&(t.__propertyDefaults=t.__propertyDefaults||{},t.__propertyDefaults[h]=y)}}if(t=t.__propertyDefaults)for(var m in t)M=t[m],
this._canApplyPropertyDefault(m)&&(M=typeof M.value=="function"?M.value.call(this):M.value,this._hasAccessor(m)?this._setPendingProperty(m,M,!0):this[m]=M)};
f.prototype._canApplyPropertyDefault=function(t){return!this.hasOwnProperty(t)};
f._processStyleText=function(t,M){return Qcb(t,M)};
f._finalizeTemplate=function(t){var M=this.prototype._template;if(M&&!M.__polymerFinalized){M.__polymerFinalized=!0;var h=this.importPath;h=h?_.yI(h):"";H(this,M,t,h);this.prototype._bindTemplate(M)}};
f.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);v.prototype.connectedCallback.call(this)};
f.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);v.prototype.ready.call(this)};
f.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));v.prototype._readyClients.call(this)};
f.prototype._attachDom=function(t){var M=(0,_.Zx)(this);if(M.attachShadow)return t?(M.shadowRoot||(M.attachShadow({mode:"open",shadyUpgradeFragment:t}),M.shadowRoot.appendChild(t),this.constructor._styleSheet&&(M.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),nEb&&window.ShadyDOM&&window.ShadyDOM.flushInitial(M.shadowRoot),M.shadowRoot):null;throw Error("Cd");};
f.prototype.updateStyles=function(t){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,t)};
f.prototype.resolveUrl=function(t,M){!M&&this.importPath&&(M=_.yI(this.importPath));return _.yI(t,M)};
f._parseTemplateContent=function(t,M,h){M.dynamicFns=M.dynamicFns||this._properties;return v._parseTemplateContent.call(this,t,M,h)};
f._addTemplatePropertyEffect=function(t,M,h){!cb||M in this._properties||h.info.part.signature&&h.info.part.signature.static||h.info.part.hostProp||t.nestedTemplate||console.warn("Property '"+M+"' used in template but not declared in 'properties'; attribute will not be observed.");return v._addTemplatePropertyEffect.call(this,t,M,h)};
_.H7.Object.defineProperties(f,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var t=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof t==="function"&&(t=t());if(t===void 0){if(t=this.hasOwnProperty("is")){t=this.is;var M=null;if(t&&(!X2||oE9)&&(M=x7.import(t,"template"),X2&&!M))throw Error("Bd`"+t);t=M}t=t||Object.getPrototypeOf(this.prototype).constructor.template}this._template=t}return this._template},
set:function(t){this._template=t}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var t=this.importMeta;t?this._importPath=uXb(t.url):this._importPath=(t=x7.import(this.is))&&t.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return f});var mOr=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(f){return f}}),Km_=function(f,H){$Oo(f,H);
this.value=H.reduce(function(v,t,M){return v+DN_(t)+f[M+1]},f[0]).toString()},$Oo;
Km_.prototype.toString=function(){return this.value};
_.WOZ=function(f){var H=_.NA.apply(1,arguments);$Oo(f,H);var v=document.createElement("template");H=H.reduce(function(t,M,h){if(M instanceof HTMLTemplateElement)M=M.innerHTML;else if(M instanceof Km_)M=DN_(M);else throw Error("Ed`"+M);return t+M+f[h+1]},f[0]);
mOr&&(H=mOr.createHTML(H));v.innerHTML=H;return v};
$Oo=function(f,H){if(!Array.isArray(f)||!Array.isArray(f.raw)||H.length!==f.length-1)throw new TypeError("Fd");};var TC=k4(HTMLElement);var OYM=AA(function(f){var H=k4(f);f=function(){var v=H.call(this)||this;v.__lastItems=null;v.__lastMulti=null;v.__selectedMap=null;return v};
_.e(f,H);f.prototype.__updateSelection=function(v,t){var M=t.path;M=="items"?(t=t.base||[],M=this.__lastItems,v!==this.__lastMulti&&this.clearSelection(),M&&(M=rQE(t,M),this.__applySplices(M)),this.__lastItems=t,this.__lastMulti=v):t.path=="items.splices"?this.__applySplices(t.value.indexSplices):(v=M.slice(6),t=parseInt(v,10),v.indexOf(".")<0&&v==t&&this.__deselectChangedIdx(t))};
f.prototype.__applySplices=function(v){for(var t=this,M=this.__selectedMap,h={},y=0;y<v.length;h={s$jscomp$109:void 0},y++){h.s$jscomp$109=v[y];M.forEach(function(S){return function(d,Z){d<S.s$jscomp$109.index||(d>=S.s$jscomp$109.index+S.s$jscomp$109.removed.length?M.set(Z,d+S.s$jscomp$109.addedCount-S.s$jscomp$109.removed.length):M.set(Z,-1))}}(h));
for(var m=0;m<h.s$jscomp$109.addedCount;m++){var W=h.s$jscomp$109.index+m;M.has(this.items[W])&&M.set(this.items[W],W)}}this.__updateLinks();var I=0;M.forEach(function(S,d){S<0?(t.multi?t.splice("selected",I,1):t.selected=t.selectedItem=null,M.delete(d)):I++})};
f.prototype.__updateLinks=function(){var v=this;this.__dataLinkedPaths={};if(this.multi){var t=0;this.__selectedMap.forEach(function(M){M>=0&&v.linkPaths("items."+M,"selected."+t++)})}else this.__selectedMap.forEach(function(M){v.linkPaths("selected","items."+M);
v.linkPaths("selectedItem","items."+M)})};
f.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
f.prototype.isSelected=function(v){return this.__selectedMap.has(v)};
f.prototype.isIndexSelected=function(v){return this.isSelected(this.items[v])};
f.prototype.__deselectChangedIdx=function(v){var t=this,M=this.__selectedIndexForItemIndex(v);if(M>=0){var h=0;this.__selectedMap.forEach(function(y,m){M==h++&&t.deselect(m)})}};
f.prototype.__selectedIndexForItemIndex=function(v){if(v=this.__dataLinkedPaths["items."+v])return parseInt(v.slice(9),10)};
f.prototype.deselect=function(v){var t=this.__selectedMap.get(v);if(t>=0){this.__selectedMap.delete(v);var M;this.multi&&(M=this.__selectedIndexForItemIndex(t));this.__updateLinks();this.multi?this.splice("selected",M,1):this.selected=this.selectedItem=null}};
f.prototype.deselectIndex=function(v){this.deselect(this.items[v])};
f.prototype.select=function(v){this.selectIndex(this.items.indexOf(v))};
f.prototype.selectIndex=function(v){var t=this.items[v];this.isSelected(t)?this.toggle&&this.deselectIndex(v):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(t,v),this.__updateLinks(),this.multi?this.push("selected",t):this.selected=this.selectedItem=t)};
_.H7.Object.defineProperties(f,{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 f}),gTn=OYM(TC),w_=function(){return gTn.apply(this,arguments)||this};
_.e(w_,gTn);_.H7.Object.defineProperties(w_,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(w_.is,w_);var IqM=window.Polymer;window.Polymer=function(f){return window.Polymer._polymerFn(f)};
IqM&&Object.assign(Polymer,IqM);Polymer._polymerFn=function(){throw Error("Gd");};/*

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:Qcb,resolveUrl:_.yI,pathFromUrl:uXb};Polymer.DomModule=x7;Polymer.Async={timeOut:_.XQ,animationFrame:_.Ku,idlePeriod:EEo,microTask:aV};Polymer.dedupingMixin=AA;Polymer.wrap=_.Zx;Polymer.PropertiesChanged=cXn;Polymer.telemetry={instanceCount:XVh,incrementInstanceCount:function(){XVh++},
registrations:CwE,register:EdN,dumpRegistrations:function(){CwE.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=AXC;Polymer.CaseMap={dashToCamelCase:mu,camelToDashCase:$7};Polymer.PropertyAccessors=qja;Polymer.TemplateStamp=MBb;Polymer.Path={isPath:Wb,root:Oo,isAncestor:ipB,isDescendant:gT,translate:IV,matches:k7B,normalize:S6,split:Ty5,get:dT,set:wsN,isDeep:Wb};Polymer.Settings={useShadow:C1,useNativeCSSProperties:x6b,useNativeCustomElements:Bjv,get rootPath(){return D6C},setRootPath:function(f){D6C=f},
get sanitizeDOMValue(){return JM},setSanitizeDOMValue:function(f){JM=f},
get passiveTouchGestures(){return X1r},setPassiveTouchGestures:function(f){X1r=f},
get strictTemplatePolicy(){return X2},setStrictTemplatePolicy:function(f){X2=f},
get allowTemplateFromDomModule(){return oE9},setAllowTemplateFromDomModule:function(f){oE9=f},
get legacyOptimizations(){return G5},setLegacyOptimizations:function(f){G5=f},
get syncInitialRender(){return nEb},setSyncInitialRender:function(f){nEb=f},
get legacyUndefined(){return e6},setLegacyUndefined:function(f){e6=f},
get legacyWarnings(){return cb},setLegacyWarnings:function(f){cb=f},
get orderedComputed(){return pVZ},setOrderedComputed:function(f){pVZ=f},
get fastDomIf(){return ET},setFastDomIf:function(f){ET=f},
get removeNestedTemplates(){return CR},setRemoveNestedTemplates:function(f){CR=f},
get suppressTemplateNotifications(){return Ng},setSuppressTemplateNotifications:Ng};Polymer.rootPath!==void 0&&(D6C=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(JM=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(X1r=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(X2=Polymer.strictTemplatePolicy);oE9=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(G5=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(nEb=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(e6=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(cb=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(pVZ=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(ET=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(CR=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(Ng=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return JM},
set:function(f){JM=f}});Polymer.PropertyEffects=ib;Polymer.StyleGather={stylesFromModules:lbs,stylesFromModule:JQ_,stylesFromTemplate:UNe,stylesFromModuleImports:eHe,cssFromModules:xNg,cssFromModule:LmT,cssFromTemplate:Bsg,cssFromModuleImports:function(f){return(f=x7.import(f))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(f):""}};Polymer.ElementMixin=k4;Polymer.updateStyles=function(f){window.ShadyCSS&&window.ShadyCSS.styleDocument(f)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:rQE};Polymer.html=_.WOZ;Polymer.htmlLiteral=function(f){return new Km_(f,_.NA.apply(1,arguments))};Polymer.Element=TC;Polymer.ArraySelectorMixin=OYM;Polymer.ArraySelector=w_;var SFh=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,dOM=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,WP3=/@media\s(.*)/;var Q0s=null,p1r=window.HTMLImports&&window.HTMLImports.whenReady||null,uLv;var j5T=null,qg=null,fK=function(){this.customStyles=[];this.enqueued=!1;abs(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},s5v=function(f){!f.enqueued&&qg&&(f.enqueued=!0,abs(qg))};
fK.prototype.addCustomStyle=function(f){f.__seenByShadyCSS||(f.__seenByShadyCSS=!0,this.customStyles.push(f),s5v(this))};
fK.prototype.getStyleForCustomStyle=function(f){if(f.__shadyCSSCachedStyle)return f.__shadyCSSCachedStyle;var H;f.getStyle?H=f.getStyle():H=f;return H};
fK.prototype.processStyles=function(){for(var f=this.customStyles,H=0;H<f.length;H++){var v=f[H];if(!v.__shadyCSSCachedStyle){var t=this.getStyleForCustomStyle(v);t&&(t=t.__appliedElement||t,j5T&&j5T(t),v.__shadyCSSCachedStyle=t)}}return f};
fK.prototype.addCustomStyle=fK.prototype.addCustomStyle;fK.prototype.getStyleForCustomStyle=fK.prototype.getStyleForCustomStyle;fK.prototype.processStyles=fK.prototype.processStyles;Object.defineProperties(fK.prototype,{transformCallback:{get:function(){return j5T},
set:function(f){j5T=f}},
validateCallback:{get:function(){return qg},
set:function(f){var H=!1;qg||(H=!0);qg=f;H&&s5v(this)}}});var GBb=!(window.ShadyDOM&&window.ShadyDOM.inUse),PLB,fP;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(fP=window.ShadyCSS.cssBuild);var ZYn=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?PLB=window.ShadyCSS.nativeCss:window.ShadyCSS?(CLr(window.ShadyCSS),window.ShadyCSS=void 0):CLr(window.WebComponents&&window.WebComponents.flags);var Y$3=PLB;var JdH=new fK;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(f,H){JdH.processStyles();ofs(f,H)},
styleElement:function(){JdH.processStyles()},
styleDocument:function(f){JdH.processStyles();ofs(document.body,f)},
getComputedStyleValue:function(f,H){return nfH(f,H)},
flushCustomStyles:function(){},
nativeCss:Y$3,nativeShadow:GBb,cssBuild:fP,disableRuntime:ZYn});window.ShadyCSS.CustomStyleInterface=JdH;var lqr=window.ShadyCSS.CustomStyleInterface,Ht=function(){var f=HTMLElement.call(this)||this;f._style=null;lqr.addCustomStyle(f);return f};
_.e(Ht,HTMLElement);Ht.prototype.getStyle=function(){if(this._style)return this._style;var f=this.querySelector("style");if(!f)return null;this._style=f;var H=f.getAttribute("include");H&&(f.removeAttribute("include"),f.textContent=xNg(H)+f.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
Ht.prototype.getStyle=Ht.prototype.getStyle;window.customElements.define("custom-style",Ht);Polymer.CustomStyle=Ht;var vt=function(){this._timer=this._callback=this._asyncModule=null},tq,ejb;
vt.prototype.setConfig=function(f,H){var v=this;this._asyncModule=f;this._callback=H;this._timer=this._asyncModule.run(function(){v._timer=null;tq.delete(v);v._callback()})};
vt.prototype.cancel=function(){this.isActive()&&(UO9(this),tq.delete(this))};
var UO9=function(f){f.isActive()&&(f._asyncModule.cancel(f._timer),f._timer=null)};
vt.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
vt.prototype.isActive=function(){return this._timer!=null};
_.ML=function(f,H,v){f instanceof vt?UO9(f):f=new vt;f.setConfig(H,v);return f};
tq=new Set;_.hq=function(f){tq.add(f)};
ejb=function(){var f=!!tq.size;tq.forEach(function(H){try{H.flush()}catch(v){setTimeout(function(){throw v;})}});
return f};var Nsb=typeof document.head.style.touchAction==="string",Ef5=["mousedown","mousemove","mouseup","click"],qH_=[0,1,4,2],LOv;try{LOv=(new MouseEvent("test",{buttons:1})).buttons===1}catch(f){LOv=!1}var w1s=LOv,cQe=!1;(function(){try{var f=Object.defineProperty({},"passive",{get:function(){cQe=!0}});
window.addEventListener("test",null,f);window.removeEventListener("test",null,f)}catch(H){}})();
var bA3=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),iA5=[],xO9={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},$ys={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},kBe=function(f){var H=f.sourceCapabilities;if(!H||H.firesTouchEvents)if(f.__polymerGesturesHandled={skip:!0},f.type==="click"){H=!1;for(var v=tsT(f),t=0;t<v.length;t++){if(v[t].nodeType===Node.ELEMENT_NODE)if(v[t].localName==="label")iA5.push(v[t]);
else if(xO9[v[t].localName]){var M=v[t];var h=Array.prototype.slice.call(M.labels||[]);if(!h.length){h=[];try{var y=M.getRootNode();if(M.id){var m=y.querySelectorAll("label[for = '"+M.id+"']");for(M=0;M<m.length;M++)h.push(m[M])}}catch(W){}}for(M=0;M<h.length;M++)H=H||iA5.indexOf(h[M])>-1}if(v[t]===BLo)return}H||(f.preventDefault(),f.stopPropagation())}},BLo=null,RE=null,hV3=0,RVs=0,Ms3=-1,Vs3=!1;
document.addEventListener("touchend",function(f){RE||Tsg(!0);BLo=tsT(f)[0];RE=_.ML(RE,_.XQ.after(2500),function(){Tsg();RE=BLo=null})},cQe?{passive:!0}:!1);
var tsT=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(f){return f.composedPath&&f.composedPath()||[]},n1={},Dx=[];
yZe({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){F2(this.info)},
mousedown:function(f){if(z5(f)){var H=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f),v=this;H8B(this.info,function(t){z5(t)||(Pb("up",H,t),F2(v.info))},function(t){z5(t)&&Pb("up",H,t);
F2(v.info)});
Pb("down",H,f)}},
touchstart:function(f){Pb("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f),f.changedTouches[0],f)},
touchend:function(f){Pb("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f),f.changedTouches[0],f)}});
yZe({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(f){this.moves.length>2&&this.moves.shift();this.moves.push(f)},
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;F2(this.info)},
mousedown:function(f){if(z5(f)){var H=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f),v=this,t=function(M){var h=M.clientX,y=M.clientY;YUR(v.info,h,y)&&(v.info.state=v.info.started?M.type==="mouseup"?"end":"track":"start",v.info.state==="start"&&oV("tap"),v.info.addMove({x:h,y:y}),z5(M)||(v.info.state="end",F2(v.info)),H&&myT(v.info,H,M),v.info.started=!0)};
H8B(this.info,t,function(M){v.info.started&&t(M);F2(v.info)});
this.info.x=f.clientX;this.info.y=f.clientY}},
touchstart:function(f){f=f.changedTouches[0];this.info.x=f.clientX;this.info.y=f.clientY},
touchmove:function(f){var H=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f);f=f.changedTouches[0];var v=f.clientX,t=f.clientY;YUR(this.info,v,t)&&(this.info.state==="start"&&oV("tap"),this.info.addMove({x:v,y:t}),myT(this.info,H,f),this.info.state="track",this.info.started=!0)},
touchend:function(f){var H=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f);f=f.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:f.clientX,y:f.clientY}),myT(this.info,H,f))}});
yZe({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(f){z5(f)&&(this.info.x=f.clientX,this.info.y=f.clientY)},
click:function(f){z5(f)&&W9R(this.info,f)},
touchstart:function(f){f=f.changedTouches[0];this.info.x=f.clientX;this.info.y=f.clientY},
touchend:function(f){W9R(this.info,f.changedTouches[0],f)}});var zjh=AA(function(f){var H=function(){return f.apply(this,arguments)||this};
_.e(H,f);H.prototype._addEventListenerToNode=function(v,t,M){p1(v,t,M)||f.prototype._addEventListenerToNode.call(this,v,t,M)};
H.prototype._removeEventListenerFromNode=function(v,t,M){QI(v,t,M)||f.prototype._removeEventListenerFromNode.call(this,v,t,M)};
return H});var VY=AA(function(f){var H=function(){return f.apply(this,arguments)||this};
_.e(H,f);H.prototype._shouldPropertyChange=function(v,t,M){return O8T(this,v,t,M,!0)};
return H}),FOr=AA(function(f){var H=function(){return f.apply(this,arguments)||this};
_.e(H,f);H.prototype._shouldPropertyChange=function(v,t,M){return O8T(this,v,t,M,this.mutableData)};
_.H7.Object.defineProperties(H,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return H});
VY._mutablePropertyChange=O8T;var g_e=!1;var rdh=zjh(FOr(ib(HTMLElement))),yY=function(){var f=rdh.call(this)||this;if(X2)throw Error("Hd");f.root=null;f.$=null;f.__children=null;return f};
_.e(yY,rdh);_.R=yY.prototype;_.R.attributeChangedCallback=function(){this.mutableData=!0};
_.R.connectedCallback=function(){IV5()||(this.style.display="none");this.render()};
_.R.disconnectedCallback=function(){this.__removeChildren()};
_.R.__insertChildren=function(){(0,_.Zx)((0,_.Zx)(this).parentNode).insertBefore(this.root,this)};
_.R.__removeChildren=function(){if(this.__children)for(var f=0;f<this.__children.length;f++)this.root.appendChild(this.__children[f])};
_.R.render=function(){var f=this;if(!this.__children){var H=H||this.querySelector("template");if(!H){var v=new MutationObserver(function(){if(H=f.querySelector("template"))v.disconnect(),f.render();else throw Error("Id");});
v.observe(this,{childList:!0});return}this.root=this._stampTemplate(H);this.$=this.root.$;this.__children=[];for(var t=this.root.firstChild;t;t=t.nextSibling)this.__children[this.__children.length]=t;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.H7.Object.defineProperties(yY,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",yY);Polymer.Debouncer=vt;Polymer.Gestures={gestures:n1,recognizers:Dx,deepTargetFind:v__,addListener:p1,removeListener:QI,register:yZe,setTouchAction:_.uK,prevent:oV,resetMouseCanceller:function(){RE&&RE.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:p1,remove:QI};Polymer.GestureEventListeners=zjh;Polymer.MutableData=VY;Polymer.OptionalMutableData=FOr;Polymer.DomBind=yY;_.Ya=function(){do{var f=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var H=ejb()}while(f||H)};var SU3=null;dyr.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:dyr,writable:!0}});var L9H=ib(dyr),eVE=VY(L9H),KOo=ib(function(){}),Eo=function(f){var H=KOo.call(this)||this;
H._configureProperties(f);H.root=H._stampTemplate(H.__dataHost);var v=[];H.children=v;for(var t=H.root.firstChild;t;t=t.nextSibling)v.push(t),t.__templatizeInstance=H;H.__templatizeOwner&&H.__templatizeOwner.__hideTemplateChildren__&&H._showHideChildren(!0);v=H.__templatizeOptions;(f&&v.instanceProps||!v.instanceProps)&&H._enableProperties();return H};
_.e(Eo,KOo);_.R=Eo.prototype;_.R._configureProperties=function(f){if(this.__templatizeOptions.forwardHostProp)for(var H in this.__hostProps)this._setPendingProperty(H,this.__dataHost["_host_"+H]);for(var v in f)this._setPendingProperty(v,f[v])};
_.R.forwardHostProp=function(f,H){this._setPendingPropertyOrPath(f,H,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.R._addEventListenerToNode=function(f,H,v){var t=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(f,H,function(h){h.model=t;v(h)});
else{var M=this.__dataHost.__dataHost;M&&M._addEventListenerToNode(f,H,v)}};
_.R._showHideChildren=function(f){spE(f,this.children)};
_.R._setUnmanagedPropertyToNode=function(f,H,v){f.__hideTemplateChildren__&&f.nodeType==Node.TEXT_NODE&&H=="textContent"?f.__polymerTextContent__=v:KOo.prototype._setUnmanagedPropertyToNode.call(this,f,H,v)};
_.R.dispatchEvent=function(){return!0};
_.H7.Object.defineProperties(Eo.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var f=this.__parentModel;if(!f){var H;f=this;do f=f.__dataHost.__dataHost;while((H=f.__templatizeOptions)&&!H.parentModel);this.__parentModel=f}return f}}});
var JZB=VY(Eo);var mA=function(){var f=TC.call(this)||this;f.__renderDebouncer=null;f._lastIf=!1;f.__hideTemplateChildren__=!1;return f};
_.e(mA,TC);_.R=mA.prototype;_.R.__debounceRender=function(){var f=this;this.__renderDebouncer=_.ML(this.__renderDebouncer,aV,function(){return f.__render()});
_.hq(this.__renderDebouncer)};
_.R.disconnectedCallback=function(){TC.prototype.disconnectedCallback.call(this);var f=(0,_.Zx)(this).parentNode;f&&(f.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.Zx)(f).host)||this.__teardownInstance()};
_.R.connectedCallback=function(){TC.prototype.connectedCallback.call(this);IV5()||(this.style.display="none");this.if&&this.__debounceRender()};
_.R.__ensureTemplate=function(){var f=this;if(!this.__template){var H=this._templateInfo?this:(0,_.Zx)(this).querySelector("template");if(!H){var v=new MutationObserver(function(){if((0,_.Zx)(f).querySelector("template"))v.disconnect(),f.__render();else throw Error("Ld");});
v.observe(this,{childList:!0});return!1}this.__template=H}return!0};
_.R.__ensureInstance=function(){var f=(0,_.Zx)(this).parentNode;if(this.__hasInstance()){var H=this.__getInstanceNodes();if(H&&H.length&&(0,_.Zx)(this).previousSibling!==H[H.length-1])for(var v=0,t=void 0;v<H.length&&(t=H[v]);v++)(0,_.Zx)(f).insertBefore(t,this)}else{if(!f||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(f)}return!0};
_.R.render=function(){_.Ya()};
_.R.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();Ng&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.R.__hasInstance=function(){};
_.R.__getInstanceNodes=function(){};
_.R.__createAndInsertInstance=function(){};
_.R.__teardownInstance=function(){};
_.R._showHideChildren=function(){};
_.H7.Object.defineProperties(mA,{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:mA.prototype.__debounceRender},restamp:{type:Boolean,observer:mA.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var DOT=function(){var f=mA.call(this)||this;f.__instance=null;f.__syncInfo=null;return f};
_.e(DOT,mA);_.R=DOT.prototype;_.R.__hasInstance=function(){return!!this.__instance};
_.R.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.R.__createAndInsertInstance=function(f){var H=this,v=this.__dataHost||this;if(X2&&!this.__dataHost)throw Error("Jd");var t=v._bindTemplate(this.__template,!0);t.runEffects=function(M,h,y){var m=H.__syncInfo;if(H.if)m&&(H.__syncInfo=null,H._showHideChildren(),h=Object.assign(m.changedProps,h)),M(h,y);else if(H.__instance)if(m||(m=H.__syncInfo={runEffects:M,changedProps:{}}),y)for(var W in h)M=Oo(W),m.changedProps[M]=H.__dataHost[M];else Object.assign(m.changedProps,h)};
this.__instance=v._stampTemplate(this.__template,t);(0,_.Zx)(f).insertBefore(this.__instance,this)};
_.R.__syncHostProperties=function(){var f=this.__syncInfo;f&&(this.__syncInfo=null,f.runEffects(f.changedProps,!1))};
_.R.__teardownInstance=function(){var f=this.__dataHost||this;this.__instance&&(f._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.R._showHideChildren=function(){var f=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==f&&(this.__instance.__hidden=f,spE(f,this.__instance.templateInfo.childNodes));f||this.__syncHostProperties()};
var oTM=function(){var f=mA.call(this)||this;f.__ctor=null;f.__instance=null;f.__invalidProps=null;return f};
_.e(oTM,mA);_.R=oTM.prototype;_.R.__hasInstance=function(){return!!this.__instance};
_.R.__getInstanceNodes=function(){return this.__instance.children};
_.R.__createAndInsertInstance=function(f){this.__ctor||(this.__ctor=NV(this.__template,this,{mutableData:!0,forwardHostProp:function(H,v){this.__instance&&(this.if?this.__instance.forwardHostProp(H,v):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[Oo(H)]=!0))}}));
this.__instance=new this.__ctor;(0,_.Zx)(f).insertBefore(this.__instance.root,this)};
_.R.__teardownInstance=function(){if(this.__instance){var f=this.__instance.children;if(f&&f.length){var H=(0,_.Zx)(f[0]).parentNode;if(H){H=(0,_.Zx)(H);for(var v=0,t=void 0;v<f.length&&(t=f[v]);v++)H.removeChild(t)}}this.__instance=this.__invalidProps=null}};
_.R.__syncHostProperties=function(){var f=this.__invalidProps;if(f){this.__invalidProps=null;for(var H in f)this.__instance._setPendingProperty(H,this.__dataHost[H]);this.__instance._flushProperties()}};
_.R._showHideChildren=function(){var f=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==f&&(this.__instance.__hidden=f,this.__instance._showHideChildren(f));f||this.__syncHostProperties()};
_.uJ=ET?DOT:oTM;customElements.define(_.uJ.is,_.uJ);Polymer.enqueueDebouncer=_.hq;Polymer.flush=_.Ya;Polymer.Templatize={templatize:NV,modelForElement:K9B};Polymer.TemplateInstanceBase=Eo;Polymer.DomIf=_.uJ;var nTb=FOr(TC),Qs=function(){var f=nTb.call(this)||this;f.__instances=[];f.__renderDebouncer=null;f.__itemsIdxToInstIdx={};f.__chunkCount=null;f.__renderStartTime=null;f.__itemsArrayChanged=!1;f.__shouldMeasureChunk=!1;f.__shouldContinueChunking=!1;f.__chunkingId=0;f.__sortFn=null;f.__filterFn=null;f.__observePaths=null;f.__ctor=null;f.__isDetached=!0;f.template=null;return f};
_.e(Qs,nTb);_.R=Qs.prototype;_.R.disconnectedCallback=function(){nTb.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var f=0;f<this.__instances.length;f++)this.__detachInstance(f);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.R.connectedCallback=function(){nTb.prototype.connectedCallback.call(this);IV5()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var f=(0,_.Zx)((0,_.Zx)(this).parentNode),H=0;H<this.__instances.length;H++)this.__attachInstance(H,f);this.__chunkingId&&this.__render()}};
_.R.__ensureTemplatized=function(){var f=this;if(!this.__ctor){var H=this.template=this._templateInfo?this:this.querySelector("template");if(!H){var v=new MutationObserver(function(){if(f.querySelector("template"))v.disconnect(),f.__render();else throw Error("Md");});
v.observe(this,{childList:!0});return!1}var t={};t[this.as]=!0;t[this.indexAs]=!0;t[this.itemsIndexAs]=!0;this.__ctor=NV(H,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:t,forwardHostProp:function(M,h){for(var y=this.__instances,m=0,W=void 0;m<y.length&&(W=y[m]);m++)W.forwardHostProp(M,h)},
notifyInstanceProp:function(M,h,y){k7B(this.as,h)&&(M=M[this.itemsIndexAs],h==this.as&&(this.items[M]=y),h=IV(this.as,"items."+M,h),this.notifyPath(h,y))}})}return!0};
_.R.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.R.__functionFromPropertyValue=function(f){if(typeof f==="string"){var H=this.__getMethodHost();return function(){return H[f].apply(H,arguments)}}return f};
_.R.__sortChanged=function(f){this.__sortFn=this.__functionFromPropertyValue(f);this.items&&this.__debounceRender(this.__render)};
_.R.__filterChanged=function(f){this.__filterFn=this.__functionFromPropertyValue(f);this.items&&this.__debounceRender(this.__render)};
_.R.__computeFrameTime=function(f){return Math.ceil(1E3/f)};
_.R.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.R.__handleObservedPaths=function(f){if(this.__sortFn||this.__filterFn)if(!f)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var H=this.__observePaths,v=0;v<H.length;v++)f.indexOf(H[v])===0&&this.__debounceRender(this.__render,this.delay)};
_.R.__itemsChanged=function(f){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(f.path,f.value)||(f.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.R.__debounceRender=function(f,H){H=H===void 0?0:H;this.__renderDebouncer=_.ML(this.__renderDebouncer,H>0?_.XQ.after(H):aV,f.bind(this));_.hq(this.__renderDebouncer)};
_.R.render=function(){this.__debounceRender(this.__render);_.Ya()};
_.R.__render=function(){var f=this;if(this.__ensureTemplatized()){var H=this.items||[],v=this.__sortAndFilterItems(H),t=this.__calculateLimit(v.length);this.__updateInstances(H,t,v);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){f.__chunkingId=null;f.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);Ng&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.R.__sortAndFilterItems=function(f){for(var H=this,v=Array(f.length),t=0;t<f.length;t++)v[t]=t;this.__filterFn&&(v=v.filter(function(M,h,y){return H.__filterFn(f[M],h,y)}));
this.__sortFn&&v.sort(function(M,h){return H.__sortFn(f[M],f[h])});
return v};
_.R.__calculateLimit=function(f){var H=f,v=this.__instances.length;if(this.initialCount){var t;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(H=Math.min(f,this.initialCount),this.__chunkCount=(t=Math.max(H-v,0))||1):(t=Math.min(Math.max(f-v,0),this.__chunkCount),H=Math.min(v+t,f));this.__shouldMeasureChunk=t===this.__chunkCount;this.__shouldContinueChunking=H<f;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return H};
_.R.__continueChunking=function(){if(this.__shouldMeasureChunk){var f=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/f*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.R.__updateInstances=function(f,H,v){var t=this.__itemsIdxToInstIdx={},M;for(M=0;M<H;M++){var h=this.__instances[M],y=v[M],m=f[y];t[y]=M;h?(h._setPendingProperty(this.as,m),h._setPendingProperty(this.indexAs,M),h._setPendingProperty(this.itemsIndexAs,y),h._flushProperties()):this.__insertInstance(m,M,y)}for(f=this.__instances.length-1;f>=M;f--)this.__detachAndRemoveInstance(f)};
_.R.__detachInstance=function(f){f=this.__instances[f];for(var H=(0,_.Zx)(f.root),v=0;v<f.children.length;v++)H.appendChild(f.children[v]);return f};
_.R.__attachInstance=function(f,H){H.insertBefore(this.__instances[f].root,this)};
_.R.__detachAndRemoveInstance=function(f){this.__detachInstance(f);this.__instances.splice(f,1)};
_.R.__stampInstance=function(f,H,v){var t={};t[this.as]=f;t[this.indexAs]=H;t[this.itemsIndexAs]=v;return new this.__ctor(t)};
_.R.__insertInstance=function(f,H,v){f=this.__stampInstance(f,H,v);v=(v=this.__instances[H+1])?v.children[0]:this;(0,_.Zx)((0,_.Zx)(this).parentNode).insertBefore(f.root,v);return this.__instances[H]=f};
_.R._showHideChildren=function(f){for(var H=0;H<this.__instances.length;H++)this.__instances[H]._showHideChildren(f)};
_.R.__handleItemPath=function(f,H){var v=f.slice(6),t=v.indexOf(".");f=t<0?v:v.substring(0,t);if(f==parseInt(f,10)){v=t<0?"":v.substring(t+1);this.__handleObservedPaths(v);if(f=this.__instances[this.__itemsIdxToInstIdx[f]])f._setPendingPropertyOrPath(this.as+(v?"."+v:""),H,!1,!0),f._flushProperties();return!0}};
_.R.itemForElement=function(f){return(f=this.modelForElement(f))&&f[this.as]};
_.R.indexForElement=function(f){return(f=this.modelForElement(f))&&f[this.indexAs]};
_.R.modelForElement=function(f){return K9B(this.template,f)};
_.H7.Object.defineProperties(Qs,{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:Qs.prototype.__sortChanged},filter:{type:Function,observer:Qs.prototype.__filterChanged},observe:{type:String,observer:Qs.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!Ng,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.*)"]}}});
Qs.prototype._setRenderedItemCount=function(){};
customElements.define(Qs.is,Qs);Polymer.DomRepeat=Qs;var paZ=function(f,H){var v=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=f;this.callback=H;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){v._schedule()};
this.connect();this._schedule()},Q5h=function(f){var H=(0,_.Zx)(f);
if(AM(f))return H.assignedNodes({flatten:!0});f=[];for(var v=0;v<H.childNodes.length;v++){var t=H.childNodes[v];AM(t)?f.push.apply(f,_.pS((0,_.Zx)(t).assignedNodes({flatten:!0}))):f.push(t)}return f};
_.R=paZ.prototype;_.R.connect=function(){var f=this;AM(this._target)?this._listenSlots([this._target]):(0,_.Zx)(this._target).children&&(this._listenSlots((0,_.Zx)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(H){f._processMutations(H)}):(this._nativeChildrenObserver=new MutationObserver(function(H){f._processMutations(H)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.R.disconnect=function(){AM(this._target)?this._unlistenSlots([this._target]):(0,_.Zx)(this._target).children&&(this._unlistenSlots((0,_.Zx)(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};
_.R._schedule=function(){var f=this;this._scheduled||(this._scheduled=!0,aV.run(function(){return f.flush()}))};
_.R._processMutations=function(f){this._processSlotMutations(f);this.flush()};
_.R._processSlotMutations=function(f){if(f)for(var H=0;H<f.length;H++){var v=f[H];v.addedNodes&&this._listenSlots(v.addedNodes);v.removedNodes&&this._unlistenSlots(v.removedNodes)}};
_.R.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 f={target:this._target,addedNodes:[],removedNodes:[]},H=Q5h(this._target),v=rQE(H,this._effectiveNodes),t=0,M=void 0;t<v.length&&(M=v[t]);t++)for(var h=0,y=void 0;h<M.removed.length&&(y=M.removed[h]);h++)f.removedNodes.push(y);
t=0;for(M=void 0;t<v.length&&(M=v[t]);t++)for(h=M.index;h<M.index+M.addedCount;h++)f.addedNodes.push(H[h]);this._effectiveNodes=H;H=!1;if(f.addedNodes.length||f.removedNodes.length)H=!0,this.callback.call(this._target,f);return H};
_.R._listenSlots=function(f){for(var H=0;H<f.length;H++){var v=f[H];AM(v)&&v.addEventListener("slotchange",this._boundSchedule)}};
_.R._unlistenSlots=function(f){for(var H=0;H<f.length;H++){var v=f[H];AM(v)&&v.removeEventListener("slotchange",this._boundSchedule)}};var $a=Element.prototype,uGH=$a.matches||$a.matchesSelector||$a.mozMatchesSelector||$a.msMatchesSelector||$a.oMatchesSelector||$a.webkitMatchesSelector,aqg=function(f,H){return uGH.call(f,H)},bK=function(f){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(f);
this.node=f},ETM;
_.R=bK.prototype;_.R.observeNodes=function(f){return new paZ(this.node,f)};
_.R.unobserveNodes=function(f){f.disconnect()};
_.R.notifyObserver=function(){};
_.R.deepContains=function(f){if((0,_.Zx)(this.node).contains(f))return!0;var H=f;for(f=f.ownerDocument;H&&H!==f&&H!==this.node;)H=(0,_.Zx)(H).parentNode||(0,_.Zx)(H).host;return H===this.node};
_.R.getOwnerRoot=function(){return(0,_.Zx)(this.node).getRootNode()};
_.R.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.Zx)(this.node).assignedNodes({flatten:!0}):[]};
_.R.getDestinationInsertionPoints=function(){for(var f=[],H=(0,_.Zx)(this.node).assignedSlot;H;)f.push(H),H=(0,_.Zx)(H).assignedSlot;return f};
_.R.importNode=function(f,H){return(0,_.Zx)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(f,H)};
_.R.getEffectiveChildNodes=function(){return Q5h(this.node)};
_.R.queryDistributedElements=function(f){for(var H=this.getEffectiveChildNodes(),v=[],t=0,M=H.length,h=void 0;t<M&&(h=H[t]);t++)h.nodeType===Node.ELEMENT_NODE&&aqg(h,f)&&v.push(h);return v};
_.H7.Object.defineProperties(bK.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var f=this.node;return f._activeElement!==void 0?f._activeElement:f.activeElement}}});
var Wt=function(f){this.event=f};
_.H7.Object.defineProperties(Wt.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 PAZ=bK;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var GZC=window.ShadyDOM.Wrapper,CAH=function(){return GZC.apply(this,arguments)||this};
_.e(CAH,GZC);Object.getOwnPropertyNames(bK.prototype).forEach(function(f){f!="activeElement"&&f!="constructor"&&(CAH.prototype[f]=bK.prototype[f])});
o_e(CAH.prototype,["classList"]);PAZ=CAH;Object.defineProperties(Wt.prototype,{localTarget:{get:function(){var f=this.event.currentTarget;f=f&&_.Fj(f).getOwnerRoot();for(var H=this.path,v=0;v<H.length;v++){var t=H[v];if(_.Fj(t).getOwnerRoot()===f)return t}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else DyN(),o_e(bK.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),n_R();ETM=PAZ;_.Fj=function(f){f=f||document;if(f instanceof PAZ)return f;if(f instanceof Wt)return f;var H=f.__domApi;H||(f instanceof Event?H=new Wt(f):H=new PAZ(f),f.__domApi=H);return H};var NLr=/:host\(:dir\((ltr|rtl)\)\)/g,cdC=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,Xa_=/:dir\((?:ltr|rtl)\)/,Adv=!(!window.ShadyDOM||!window.ShadyDOM.inUse),k7=[],O3=null,iK="",bYh=AA(function(f){Adv||O3||(iK=document.documentElement.getAttribute("dir"),O3=new MutationObserver(pIv),O3.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var H=qja(f);f=function(){var v=H.call(this)||this;v.__autoDirOptOut=!1;return v};
_.e(f,H);f._processStyleText=function(v,t){v=H._processStyleText.call(this,v,t);!Adv&&Xa_.test(v)&&(v=this._replaceDirInCssText(v),this.__activateDir=!0);return v};
f._replaceDirInCssText=function(v){v=v.replace(NLr,':host([dir="$1"])');return v=v.replace(cdC,':host([dir="$2"]) $1')};
f.prototype.ready=function(){H.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
f.prototype.connectedCallback=function(){H.prototype.connectedCallback&&H.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(O3&&O3.takeRecords().length&&pIv(),k7.push(this),this.__autoDirOptOut||this.setAttribute("dir",iK))};
f.prototype.disconnectedCallback=function(){H.prototype.disconnectedCallback&&H.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var v=k7.indexOf(this);v>-1&&k7.splice(v,1)}};
f.__activateDir=!1;return f});var iYo=function(f){for(;f;){var H=Object.getOwnPropertyDescriptor(f,"observedAttributes");if(H)return H.get;f=Object.getPrototypeOf(f.prototype).constructor}return function(){return[]}};
AA(function(f){var H=k4(f),v=iYo(H);f=function(){return H.call(this)||this};
_.e(f,H);f.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:H.prototype._initializeProperties.call(this)};
f.prototype._enableProperties=function(){this.__isUpgradeDisabled||H.prototype._enableProperties.call(this)};
f.prototype._canApplyPropertyDefault=function(t){return H.prototype._canApplyPropertyDefault.call(this,t)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(t))};
f.prototype.attributeChangedCallback=function(t,M,h,y){t=="disable-upgrade"?this.__isUpgradeDisabled&&h==null&&(H.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.Zx)(this).isConnected&&H.prototype.connectedCallback.call(this)):H.prototype.attributeChangedCallback.call(this,t,M,h,y)};
f.prototype.connectedCallback=function(){this.__isUpgradeDisabled||H.prototype.connectedCallback.call(this)};
f.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||H.prototype.disconnectedCallback.call(this)};
_.H7.Object.defineProperties(f,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return v.call(this).concat("disable-upgrade")}}});
return f});var T5=!1,ugT=[],wT=[];var CT5=window.ShadyDOM,E_E=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",cZs):document.readyState==="interactive"||document.readyState==="complete"?cZs():window.addEventListener("DOMContentLoaded",cZs);var b8b=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=""},XIR=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,AZR=/@import[^;]*;/gim,fD5=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,H6g=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,v0_=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,tIg=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,wI_=/^@[^\s]*keyframes/,
TPE=/\s+/g;var MIH={};var VIR=Promise.resolve();var kZM=new Set;var TLb=/;\s*/m,wa_=/^\s*(initial)|(inherit)\s*$/,qFT=/\s*!important/,fnM=function(){this._map={}};
fnM.prototype.set=function(f,H){f=f.trim();this._map[f]={properties:H,dependants:{}}};
fnM.prototype.get=function(f){f=f.trim();return this._map[f]||null};
var HGr=null,gg=function(){this._measureElement=this._currentElement=null;this._map=new fnM};
_.R=gg.prototype;_.R.detectMixin=function(f){f=dOM.test(f)||SFh.test(f);dOM.lastIndex=0;SFh.lastIndex=0;return f};
_.R.transformTemplate=function(f,H){if(f._gatheredStyle===void 0){var v=[];for(var t=f.content.querySelectorAll("style"),M=0;M<t.length;M++){var h=t[M];if(h.hasAttribute("shady-unscoped")){if(!GBb){var y=h.textContent;if(!kZM.has(y)){kZM.add(y);var m=document.createElement("style");m.setAttribute("shady-unscoped","");m.textContent=y;document.head.appendChild(m)}h.parentNode.removeChild(h)}}else v.push(h.textContent),h.parentNode.removeChild(h)}(v=v.join("").trim())?(t=document.createElement("style"),
t.textContent=v,f.content.insertBefore(t,f.content.firstChild),v=t):v=null;f._gatheredStyle=v}return(f=f._gatheredStyle)?this.JSC$11251_transformStyle(f,H):null};
_.R.JSC$11251_transformStyle=function(f,H){H=H===void 0?"":H;var v=$tT(f);this.transformRules(v,H);f.textContent=mtH(v);return v};
_.R.transformCustomStyle=function(f){var H=this,v=$tT(f);O6H(v,function(t){t.selector===":root"&&(t.selector="html");H.transformRule(t)});
f.textContent=mtH(v);return v};
_.R.transformRules=function(f,H){var v=this;this._currentElement=H;O6H(f,function(t){v.transformRule(t)});
this._currentElement=null};
_.R.transformRule=function(f){f.cssText=vzC(this,f.parsedCssText,f);f.selector===":root"&&(f.selector=":host > *")};
var vzC=function(f,H,v){H=H.replace(SFh,function(t,M,h,y){return f._produceCssProperties(t,M,h,y,v)});
return f._consumeCssProperties(H,v)};
_.R=gg.prototype;_.R._getInitialValueForProperty=function(f){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(f)};
_.R._fallbacksFromPreviousRules=function(f){for(var H=this,v=f;v.parent;)v=v.parent;var t={},M=!1;O6H(v,function(h){(M=M||h===f)||h.selector===f.selector&&Object.assign(t,H._cssTextToMap(h.parsedCssText))});
return t};
_.R._consumeCssProperties=function(f,H){for(var v;v=dOM.exec(f);){var t=v[0],M=v[1];v=v.index;var h=v+t.indexOf("@apply"),y=v+t.length;t=f.slice(0,h);f=f.slice(y);h=H?this._fallbacksFromPreviousRules(H):{};Object.assign(h,this._cssTextToMap(t));M=this._atApplyToCssProperties(M,h);f=t+M+f;dOM.lastIndex=v+M.length}return f};
_.R._atApplyToCssProperties=function(f,H){f=f.replace(TLb,"");var v=[],t=this._map.get(f);t||(this._map.set(f,{}),t=this._map.get(f));if(t){this._currentElement&&(t.dependants[this._currentElement]=!0);var M,h=t.properties;for(M in h){var y=H&&H[M];t=[M,": var(",f,"_-_",M];y&&t.push(",",y.replace(qFT,""));t.push(")");qFT.test(h[M])&&t.push(" !important");v.push(t.join(""))}}return v.join("; ")};
_.R._replaceInitialOrInherit=function(f,H){var v=wa_.exec(H);v&&(H=v[1]?this._getInitialValueForProperty(f):"apply-shim-inherit");return H};
_.R._cssTextToMap=function(f,H){H=H===void 0?!1:H;f=f.split(";");for(var v,t,M={},h=0;h<f.length;h++)if(v=f[h])t=v.split(":"),t.length>1&&(v=t[0].trim(),t=t.slice(1).join(":"),H&&(t=this._replaceInitialOrInherit(v,t)),M[v]=t);return M};
_.R._invalidateMixinEntry=function(f){if(HGr)for(var H in f.dependants)H!==this._currentElement&&HGr(H)};
_.R._produceCssProperties=function(f,H,v,t,M){var h=this;v&&g0e(v,function(L,r){r&&h._map.get(r)&&(t="@apply "+r+";")});
if(!t)return f;var y=this._consumeCssProperties(""+t,M);M=f.slice(0,f.indexOf("--"));var m=y=this._cssTextToMap(y,!0),W=this._map.get(H),I=W&&W.properties;I?m=Object.assign(Object.create(I),y):this._map.set(H,m);var S=[],d,Z=!1;for(d in m){var l=y[d];l===void 0&&(l="initial");!I||d in I||(Z=!0);S.push(H+"_-_"+d+": "+l)}Z&&this._invalidateMixinEntry(W);W&&(W.properties=m);v&&(M=f+";"+M);return M+S.join("; ")+";"};
gg.prototype.detectMixin=gg.prototype.detectMixin;gg.prototype.transformStyle=gg.prototype.JSC$11251_transformStyle;gg.prototype.transformCustomStyle=gg.prototype.transformCustomStyle;gg.prototype.transformRules=gg.prototype.transformRules;gg.prototype.transformRule=gg.prototype.transformRule;gg.prototype.transformTemplate=gg.prototype.transformTemplate;gg.prototype._separator="_-_";Object.defineProperty(gg.prototype,"invalidCallback",{get:function(){return HGr},
set:function(f){HGr=f}});var IE=new gg,tc9=function(){this.customStyleInterface=null;IE.invalidCallback=hKB},Sh=function(f){!f.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(f.customStyleInterface=window.ShadyCSS.CustomStyleInterface,f.customStyleInterface.transformCallback=function(H){IE.transformCustomStyle(H)},f.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){f.customStyleInterface.enqueued&&f.flushCustomStyles()})})};
_.R=tc9.prototype;_.R.prepareTemplate=function(f,H){Sh(this);IDe(f)===""&&(MIH[H]=f,H=IE.transformTemplate(f,H),f._styleAst=H)};
_.R.flushCustomStyles=function(){Sh(this);if(this.customStyleInterface){var f=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var H=0;H<f.length;H++){var v=this.customStyleInterface.getStyleForCustomStyle(f[H]);v&&IE.transformCustomStyle(v)}this.customStyleInterface.enqueued=!1}}};
_.R.styleSubtree=function(f,H){Sh(this);H&&ofs(f,H);if(f.shadowRoot)for(this.styleElement(f),f=f.shadowRoot.children||f.shadowRoot.childNodes,H=0;H<f.length;H++)this.styleSubtree(f[H]);else for(f=f.children||f.childNodes,H=0;H<f.length;H++)this.styleSubtree(f[H])};
_.R.styleElement=function(f){Sh(this);var H=f.localName,v;H?H.indexOf("-")>-1?v=H:v=f.getAttribute&&f.getAttribute("is")||"":v=f.is;H=MIH[v];if(!(H&&IDe(H)!==""||!H||RK5(H))){if(RK5(H)||H._applyShimValidatingVersion!==H._applyShimNextVersion)this.prepareTemplate(H,v),yhN(H);if(f=f.shadowRoot)if(f=f.querySelector("style"))f.__cssRules=H._styleAst,f.textContent=mtH(H._styleAst)}};
_.R.styleDocument=function(f){Sh(this);this.styleSubtree(document.body,f)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var dg=new tc9,Mcn=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(f,H){dg.flushCustomStyles();dg.prepareTemplate(f,H)},
prepareTemplateStyles:function(f,H,v){window.ShadyCSS.prepareTemplate(f,H,v)},
prepareTemplateDom:function(){},
styleSubtree:function(f,H){dg.flushCustomStyles();dg.styleSubtree(f,H)},
styleElement:function(f){dg.flushCustomStyles();dg.styleElement(f)},
styleDocument:function(f){dg.flushCustomStyles();dg.styleDocument(f)},
getComputedStyleValue:function(f,H){return nfH(f,H)},
flushCustomStyles:function(){dg.flushCustomStyles()},
nativeCss:Y$3,nativeShadow:GBb,cssBuild:fP,disableRuntime:ZYn};Mcn&&(window.ShadyCSS.CustomStyleInterface=Mcn)}window.ShadyCSS.ApplyShim=IE;var h9g;h9g=window.ShadyCSS;_.jh=AA(function(f){f=zjh(k4(f));var H=YFv?f:bYh(f),v=iYo(H),t={x:"pan-x",y:"pan-y",none:"none",all:"auto"};f=function(){return H.call(this)||this};
_.e(f,H);f.prototype.created=function(){};
f.prototype.__attributeReaction=function(M,h,y){(this.__dataAttributes&&this.__dataAttributes[M]||M==="disable-upgrade")&&this.attributeChangedCallback(M,h,y,null)};
f.prototype.setAttribute=function(M,h){if(Qra&&!this._legacyForceObservedAttributes){var y=this.getAttribute(M);H.prototype.setAttribute.call(this,M,h);this.__attributeReaction(M,y,String(h))}else H.prototype.setAttribute.call(this,M,h)};
f.prototype.removeAttribute=function(M){if(Qra&&!this._legacyForceObservedAttributes){var h=this.getAttribute(M);H.prototype.removeAttribute.call(this,M);this.__attributeReaction(M,h,null)}else H.prototype.removeAttribute.call(this,M)};
f.prototype._enableProperties=function(){this.__isUpgradeDisabled||H.prototype._enableProperties.call(this)};
f.prototype._canApplyPropertyDefault=function(M){return H.prototype._canApplyPropertyDefault.call(this,M)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(M))};
f.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(H.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
f.prototype.attached=function(){};
f.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(H.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
f.prototype.detached=function(){};
f.prototype.attributeChangedCallback=function(M,h,y,m){h!==y&&(M=="disable-upgrade"?this.__isUpgradeDisabled&&y==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.Zx)(this).isConnected&&this.connectedCallback()):(H.prototype.attributeChangedCallback.call(this,M,h,y,m),this.attributeChanged(M,h,y)))};
f.prototype.attributeChanged=function(){};
f.prototype._initializeProperties=function(){if(G5&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var M=Object.getPrototypeOf(this);M.hasOwnProperty("__hasRegisterFinished")||(this._registered(),M.__hasRegisterFinished=!0);H.prototype._initializeProperties.call(this);this.root=this;this.created();Qra&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
f.prototype._takeAttributes=function(){for(var M=this.attributes,h=0,y=M.length;h<y;h++){var m=M[h];this.__attributeReaction(m.name,null,m.value)}};
f.prototype._registered=function(){};
f.prototype.ready=function(){this._ensureAttributes();H.prototype.ready.call(this)};
f.prototype._ensureAttributes=function(){};
f.prototype._applyListeners=function(){};
f.prototype.serialize=function(M){return this._serializeValue(M)};
f.prototype.deserialize=function(M,h){return this._deserializeValue(M,h)};
f.prototype.reflectPropertyToAttribute=function(M,h,y){this._propertyToAttribute(M,h,y)};
f.prototype.serializeValueToAttribute=function(M,h,y){this._valueToNodeAttribute(y||this,M,h)};
f.prototype.extend=function(M,h){if(!M||!h)return M||h;for(var y=Object.getOwnPropertyNames(h),m=0,W=void 0;m<y.length&&(W=y[m]);m++){var I=Object.getOwnPropertyDescriptor(h,W);I&&Object.defineProperty(M,W,I)}return M};
f.prototype.mixin=function(M,h){for(var y in h)M[y]=h[y];return M};
f.prototype.chainObject=function(M,h){M&&h&&M!==h&&(M.__proto__=h);return M};
f.prototype.instanceTemplate=function(M){M=this.constructor._contentForTemplate(M);return document.importNode(M,!0)};
f.prototype.fire=function(M,h,y){y=y||{};h=h===null||h===void 0?{}:h;M=new Event(M,{bubbles:y.bubbles===void 0?!0:y.bubbles,cancelable:!!y.cancelable,composed:y.composed===void 0?!0:y.composed});M.detail=h;(0,_.Zx)(y.node||this).dispatchEvent(M);return M};
f.prototype.listen=function(M,h,y){M=M||this;var m=this.__boundListeners||(this.__boundListeners=new WeakMap),W=m.get(M);W||(W={},m.set(M,W));m=h+y;W[m]||(W[m]=this._addMethodEventListenerToNode(M,h,y,this))};
f.prototype.unlisten=function(M,h,y){M=M||this;var m=this.__boundListeners&&this.__boundListeners.get(M);y=h+y;var W=m&&m[y];W&&(this._removeEventListenerFromNode(M,h,W),m[y]=null)};
f.prototype.setScrollDirection=function(M,h){_.uK(h||this,t[M]||"auto")};
f.prototype.$$=function(M){return this.root.querySelector(M)};
f.prototype.distributeContent=function(){var M=_.Fj(this);window.ShadyDOM&&M.shadowRoot&&ShadyDOM.flush()};
f.prototype.getEffectiveChildNodes=function(){return _.Fj(this).getEffectiveChildNodes()};
f.prototype.queryDistributedElements=function(M){return _.Fj(this).queryDistributedElements(M)};
f.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(M){return M.nodeType===Node.ELEMENT_NODE})};
f.prototype.getEffectiveTextContent=function(){for(var M=this.getEffectiveChildNodes(),h=[],y=0,m;m=M[y];y++)m.nodeType!==Node.COMMENT_NODE&&h.push(m.textContent);return h.join("")};
f.prototype.queryEffectiveChildren=function(M){return(M=this.queryDistributedElements(M))&&M[0]};
f.prototype.queryAllEffectiveChildren=function(M){return this.queryDistributedElements(M)};
f.prototype.getContentChildNodes=function(M){return(M=this.root.querySelector(M||"slot"))?_.Fj(M).getDistributedNodes():[]};
f.prototype.getContentChildren=function(M){return this.getContentChildNodes(M).filter(function(h){return h.nodeType===Node.ELEMENT_NODE})};
f.prototype.isLightDescendant=function(M){return this!==M&&(0,_.Zx)(this).contains(M)&&(0,_.Zx)(this).getRootNode()===(0,_.Zx)(M).getRootNode()};
f.prototype.isLocalDescendant=function(M){return this.root===(0,_.Zx)(M).getRootNode()};
f.prototype.scopeSubtree=function(M,h){return NPv(M,h===void 0?!1:h)};
f.prototype.getComputedStyleValue=function(M){return h9g.getComputedStyleValue(this,M)};
f.prototype.debounce=function(M,h,y){this._debouncers=this._debouncers||{};return this._debouncers[M]=_.ML(this._debouncers[M],y>0?_.XQ.after(y):aV,h.bind(this))};
f.prototype.isDebouncerActive=function(M){this._debouncers=this._debouncers||{};M=this._debouncers[M];return!(!M||!M.isActive())};
f.prototype.flushDebouncer=function(M){this._debouncers=this._debouncers||{};(M=this._debouncers[M])&&M.flush()};
f.prototype.cancelDebouncer=function(M){this._debouncers=this._debouncers||{};(M=this._debouncers[M])&&M.cancel()};
f.prototype.async=function(M,h){return h>0?_.XQ.run(M.bind(this),h):~aV.run(M.bind(this))};
f.prototype.cancelAsync=function(M){M<0?aV.cancel(~M):_.XQ.cancel(M)};
f.prototype.create=function(M,h){M=document.createElement(M);if(h)if(M.setProperties)M.setProperties(h);else for(var y in h)M[y]=h[y];return M};
f.prototype.elementMatches=function(M,h){return aqg(h||this,M)};
f.prototype.toggleAttribute=function(M,h){var y=this;arguments.length===3&&(y=arguments[2]);arguments.length==1&&(h=!y.hasAttribute(M));if(h)return(0,_.Zx)(y).setAttribute(M,""),!0;(0,_.Zx)(y).removeAttribute(M);return!1};
f.prototype.toggleClass=function(M,h,y){y=y||this;arguments.length==1&&(h=!y.classList.contains(M));h?y.classList.add(M):y.classList.remove(M)};
f.prototype.transform=function(M,h){h=h||this;h.style.webkitTransform=M;h.style.transform=M};
f.prototype.translate3d=function(M,h,y,m){this.transform("translate3d("+M+","+h+","+y+")",m||this)};
f.prototype.arrayDelete=function(M,h){if(Array.isArray(M)){if(h=M.indexOf(h),h>=0)return M.splice(h,1)}else if(h=dT(this,M).indexOf(h),h>=0)return this.splice(M,h,1);return null};
f.prototype._logger=function(M,h){Array.isArray(h)&&h.length===1&&Array.isArray(h[0])&&(h=h[0]);switch(M){case "log":case "warn":case "error":console[M].apply(console,_.pS(h))}};
f.prototype._log=function(){this._logger("log",_.NA.apply(0,arguments))};
f.prototype._warn=function(){this._logger("warn",_.NA.apply(0,arguments))};
f.prototype._error=function(){this._logger("error",_.NA.apply(0,arguments))};
f.prototype._logf=function(M){return["[%s::%s]",this.is,M].concat(_.pS(_.NA.apply(1,arguments)))};
_.H7.Object.defineProperties(f.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var M=(0,_.Zx)(this).getRootNode();return M instanceof DocumentFragment?M.host:M}}});
_.H7.Object.defineProperties(f,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Qra&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],EdN(this.prototype)),this.__observedAttributes):v.call(this).concat("disable-upgrade")}}});
f.prototype.is="";return f});Polymer.FlattenedNodesObserver=paZ;Polymer.DomApi=ETM;Polymer.EventApi=Wt;Polymer.dom=_.Fj;Polymer.dom.matchesSelector=aqg;Polymer.dom.flush=_.Ya;Polymer.dom.addDebouncer=_.hq;Polymer.DirMixin=bYh;Polymer.RenderStatus={beforeNextRender:_.GXE,afterNextRender:_.qV,flush:function(){for(;ugT.length||wT.length;)QpE(ugT),QpE(wT);T5=!1}};Polymer.LegacyElementMixin=_.jh;var R9r;R9r=VY._mutablePropertyChange;var Vch={properties:{mutableData:Boolean},_shouldPropertyChange:function(f,H,v){return R9r(this,f,H,v,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(f,H,v){return R9r(this,f,H,v,!0)}};
Polymer.OptionalMutableDataBehavior=Vch;var S$e={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},JhB={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},Z6R=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},JhB),yta=(0,_.jh)(HTMLElement),YJb=function(f,H){f||console.warn("Polymer.Class requires `info` argument");H=H?H(yta):yta;H=lDH(f,H,f.behaviors);H.is=H.prototype.is=
f.is;return H};Polymer.Class=YJb;Polymer.mixinBehaviors=function(f,H){return lDH({},(0,_.jh)(H),f)};
Polymer.GenerateClassFromInfo=lDH;_.p2=function(f){var H=typeof f==="function"?f:_.p2.Class(f);f._legacyForceObservedAttributes&&(H.prototype._legacyForceObservedAttributes=f._legacyForceObservedAttributes);customElements.define(H.is,H);return H};
_.p2.Class=YJb;Polymer._polymerFn=_.p2;var Y6g=window.onLegacyPolymerFunctionDefinedCallback;Y6g&&Y6g();var $UT={templatize:function(f,H){this._templatizerTemplate=f;this.ctor=NV(f,this,{mutableData:!!H,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(f){return new this.ctor(f)},
modelForElement:function(f){return K9B(this._templatizerTemplate,f)}};Polymer.Templatizer=$UT;_.s3=(0,_.jh)(HTMLElement).prototype;Polymer.Base=_.s3;var eKT=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.v7=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.e(_.v7,PolymerFakeBaseClass);var tg=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.e(tg,PolymerFakeBaseClass);var LPR=Symbol("Nd"),n0H=[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 mST=mST||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},$Sn;(function(f){function H(c,A,X){var fg=w.get(c);if(!fg){if(!X)return;fg=new Q;w.set(c,fg)}c=fg.get(A);if(!c){if(!X)return;c=new Q;fg.set(A,c)}return c}
function v(c,A,X){if(t(c,A,X))return!0;A=Z(A);return A!==null?v(c,A,X):!1}
function t(c,A,X){A=H(A,X,!1);return A===void 0?!1:!!A.has(c)}
function M(c,A,X){if(t(c,A,X))return h(c,A,X);A=Z(A);if(A!==null)return M(c,A,X)}
function h(c,A,X){A=H(A,X,!1);if(A!==void 0)return A.get(c)}
function y(c,A){var X=m(c,A);c=Z(c);if(c===null)return X;var fg=y(c,A);if(fg.length<=0)return X;if(X.length<=0)return fg;A=new C;c=[];X=_.V(X);for(var gB=X.next();!gB.done;gB=X.next())gB=gB.value,A.has(gB)||(A.add(gB),c.push(gB));X=_.V(fg);for(fg=X.next();!fg.done;fg=X.next())fg=fg.value,A.has(fg)||(A.add(fg),c.push(fg));return c}
function m(c,A){c=H(c,A,!1);var X=[];c&&c.forEach(function(fg,gB){return X.push(gB)});
return X}
function W(c){return c===void 0}
function I(c){return typeof c==="object"?c!==null:typeof c==="function"}
function S(c){return typeof c==="function"}
function d(c){return typeof c==="symbol"?c:String(c)}
function Z(c){var A=Object.getPrototypeOf(c);if(typeof c!=="function"||c===n||A!==n)return A;var X=Object.getPrototypeOf(c.prototype);if(X==null||X===Object.prototype)return A;X=X.constructor;return typeof X!=="function"||X===c?A:X}
function l(){function c(){this._keys=[];this._values=[];this._cache=A}
var A={};c.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 fg=this._find(X);if(fg>=0)return this._cache=X,this._values[fg]},
set:function(X,fg){this.delete(X);this._keys.push(X);this._values.push(fg);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=A,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=A},
forEach:function(X){for(var fg=this.size,gB=0;gB<fg;++gB){var O5=this._keys[gB],s5=this._values[gB];this._cache=O5;X.call(this,s5,O5,this)}},
_find:function(X){for(var fg=this._keys,gB=fg.length,O5=0;O5<gB;++O5)if(fg[O5]===X)return O5;return-1}};
return c}
function L(){function c(){this._map=new Q}
c.prototype={get size(){return this._map.length},has:function(A){return this._map.has(A)},
add:function(A){this._map.set(A,A);return this},
delete:function(A){return this._map.delete(A)},
clear:function(){this._map.clear()},
forEach:function(A,X){this._map.forEach(A,X)}};
return c}
function r(){function c(){this._key=X()}
function A(lH,E5){for(var uH=0;uH<E5;++uH)lH[uH]=Math.random()*255|0}
function X(){do{if(gB)var lH=gB.randomBytes(16);else typeof Uint8Array==="function"?(lH=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(lH):A(lH,16)):(lH=Array(16),A(lH,16));lH[6]=lH[6]&79|64;lH[8]=lH[8]&191|128;for(var E5="",uH=0;uH<16;++uH){var Rn=lH[uH];if(uH===4||uH===6||uH===8)E5+="-";Rn<16&&(E5+="0");E5+=Rn.toString(16).toLowerCase()}lH="@@WeakMap@@"+E5}while(O5.call(s5,lH));s5[lH]=!0;return lH}
function fg(lH,E5){if(!O5.call(lH,U5)){if(!E5)return;Object.defineProperty(lH,U5,{value:Object.create(null)})}return lH[U5]}
var gB=typeof global!=="undefined"&&typeof mST==="object"&&typeof require==="function"&&require("crypto"),O5=Object.prototype.hasOwnProperty,s5={},U5=X();c.prototype={has:function(lH){return(lH=fg(lH,!1))?this._key in lH:!1},
get:function(lH){if(lH=fg(lH,!1))return lH[this._key]},
set:function(lH,E5){fg(lH,!0)[this._key]=E5;return this},
delete:function(lH){return(lH=fg(lH,!1))&&this._key in lH?delete lH[this._key]:!1},
clear:function(){this._key=X()}};
return c}
var n=Object.getPrototypeOf(Function),Q=typeof Map==="function"?Map:l(),C=typeof Set==="function"?Set:L(),w=new (typeof WeakMap==="function"?WeakMap:r());f.decorate=function(c,A,X,fg){if(W(fg)){if(W(X)){if(!Array.isArray(c))throw new TypeError;if(!S(A))throw new TypeError;for(X=c.length-1;X>=0;--X)if(fg=(0,c[X])(A),!W(fg)){if(!S(fg))throw new TypeError;A=fg}return A}if(!Array.isArray(c))throw new TypeError;if(!I(A))throw new TypeError;X=d(X);for(fg=c.length-1;fg>=0;--fg)(0,c[fg])(A,X)}else{if(Array.isArray(c))if(I(A)){if(W(X))throw new TypeError;
if(!I(fg))throw new TypeError;}else throw new TypeError;else throw new TypeError;X=d(X);for(var gB=c.length-1;gB>=0;--gB){var O5=(0,c[gB])(A,X,fg);if(!W(O5)){if(!I(O5))throw new TypeError;fg=O5}}return fg}};
f.metadata=function(c,A){return function(X,fg){if(W(fg)){if(!S(X))throw new TypeError;H(X,void 0,!0).set(c,A)}else{if(!I(X))throw new TypeError;fg=d(fg);H(X,fg,!0).set(c,A)}}};
f.defineMetadata=function(c,A){var X;if(I(A))W(X)||(X=d(X));else throw new TypeError;H(A,X,!0).set("parameters",c)};
f.hasMetadata=function(c,A,X){if(I(A))W(X)||(X=d(X));else throw new TypeError;return v(c,A,X)};
f.hasOwnMetadata=function(c,A,X){if(I(A))W(X)||(X=d(X));else throw new TypeError;return t(c,A,X)};
f.getMetadata=function(c,A,X){if(I(A))W(X)||(X=d(X));else throw new TypeError;return M(c,A,X)};
f.getOwnMetadata=function(c,A,X){if(I(A))W(X)||(X=d(X));else throw new TypeError;return h(c,A,X)};
f.getMetadataKeys=function(c,A){if(I(c))W(A)||(A=d(A));else throw new TypeError;return y(c,A)};
f.getOwnMetadataKeys=function(c,A){if(I(c))W(A)||(A=d(A));else throw new TypeError;return m(c,A)};
f.deleteMetadata=function(c,A,X){if(I(A))W(X)||(X=d(X));else throw new TypeError;var fg=H(A,X,!1);if(!W(fg)){if(!fg.delete(c))return!1;if(fg.size>0)return!0;c=w.get(A);c.delete(X);if(c.size>0)return!0;w.delete(A);return!0}};
(function(c){if(typeof c.Reflect!=="undefined"){if(c.Reflect!==f)for(var A in f)c.Reflect[A]=f[A]}else c.Reflect=f})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})($Sn||($Sn={}));var bXg=self;var WNv=[0,_.PI,_.C8,_.PI];var OGC=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(OGC,_.mL);var gzZ=_.s4(OGC,[0,_.cve,_.EU,WNv,_.C8,_.cI]);_.f8(_.MC,_.zO);_.R=_.MC.prototype;_.R.start=function(){this.stop();this.usingListeners_=!1;var f=Inn(this),H=S6v(this);f&&!H&&this.JSC$11294_win_.mozRequestAnimationFrame?(this.JSC$11294_id_=_.r9(this.JSC$11294_win_,"MozBeforePaint",this.callback_),this.JSC$11294_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11294_id_=f&&H?f.call(this.JSC$11294_win_,this.callback_):this.JSC$11294_win_.setTimeout(vgb(this.callback_),20)};
_.R.stop=function(){if(this.isActive()){var f=Inn(this),H=S6v(this);f&&!H&&this.JSC$11294_win_.mozRequestAnimationFrame?BK(this.JSC$11294_id_):f&&H?H.call(this.JSC$11294_win_,this.JSC$11294_id_):this.JSC$11294_win_.clearTimeout(this.JSC$11294_id_)}this.JSC$11294_id_=null};
_.R.fire=function(){this.stop();this.JSC$11296_doAction_()};
_.R.isActive=function(){return this.JSC$11294_id_!=null};
_.R.JSC$11296_doAction_=function(){this.usingListeners_&&this.JSC$11294_id_&&BK(this.JSC$11294_id_);this.JSC$11294_id_=null;this.JSC$11294_listener_.call(this.handler_,_.qN())};
_.R.disposeInternal=function(){this.stop();_.MC.superClass_.disposeInternal.call(this)};
var Inn=function(f){f=f.JSC$11294_win_;return f.requestAnimationFrame||f.webkitRequestAnimationFrame||f.mozRequestAnimationFrame||f.oRequestAnimationFrame||f.msRequestAnimationFrame||null},S6v=function(f){f=f.JSC$11294_win_;
return f.cancelAnimationFrame||f.cancelRequestAnimationFrame||f.webkitCancelRequestAnimationFrame||f.mozCancelRequestAnimationFrame||f.oCancelRequestAnimationFrame||f.msCancelRequestAnimationFrame||null};_.Nl=function(f,H,v){_.zO.call(this);this.JSC$11297_listener_=v!=null?f.bind(v):f;this.JSC$11297_interval_=H;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11297_timer_=null};
_.e(_.Nl,_.zO);_.R=_.Nl.prototype;_.R.fire=function(f){this.args_=arguments;this.JSC$11297_timer_||this.pauseCount_?this.shouldFire_=!0:dSr(this)};
_.R.stop=function(){this.JSC$11297_timer_&&(_.Mr.clearTimeout(this.JSC$11297_timer_),this.JSC$11297_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.R.pause=function(){this.pauseCount_++};
_.R.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11297_timer_||(this.shouldFire_=!1,dSr(this))};
_.R.disposeInternal=function(){_.zO.prototype.disposeInternal.call(this);this.stop()};
var dSr=function(f){f.JSC$11297_timer_=Je(function(){f.JSC$11297_timer_=null;f.shouldFire_&&!f.pauseCount_&&(f.shouldFire_=!1,dSr(f))},f.JSC$11297_interval_);
var H=f.args_;f.args_=null;f.JSC$11297_listener_.apply(null,H)};var j9n=function(f,H){this.childIterator_=f[_.Mr.Symbol.iterator]();this.mapFn_=H};
j9n.prototype[Symbol.iterator]=function(){return this};
j9n.prototype.next=function(){var f=this.childIterator_.next();return{value:f.done?void 0:this.mapFn_.call(void 0,f.value),done:f.done}};
var s9n=function(f,H){return new j9n(f,H)};var ZGo={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 B5s=function(f){var H=JtM(f);if(!H)throw Error("Rd`"+f);return H},JtM=function(f){var H={};
f=String(f);var v=f.charAt(0)=="#"?f:"#"+f;if(lnr.test(v))return H.hex=JBg(v),H.type="hex",H;v=K1E(f);return v.length?(H.hex=$v_(v[0],v[1],v[2]),H.type="rgb",H):ZGo&&(f=ZGo[f.toLowerCase()])?(H.hex=f,H.type="named",H):null},USa=/#(.)(.)(.)/,JBg=function(f){if(!lnr.test(f))throw Error("Td`"+f);
f.length==4&&(f=f.replace(USa,"#$1$1$2$2$3$3"));return f.toLowerCase()},z$s=function(f){f=JBg(f);
f=parseInt(f.slice(1),16);return[f>>16,f>>8&255,f&255]},$v_=function(f,H,v){f=Number(f);
H=Number(H);v=Number(v);if(f!=(f&255)||H!=(H&255)||v!=(v&255))throw Error("Ud`"+f+"`"+H+"`"+v);H=f<<16|H<<8|v;return f<16?"#"+(16777216|H).toString(16).slice(1):"#"+H.toString(16)},lnr=/^#(?:[0-9a-f]{3}){1,2}$/i,e9r=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,K1E=function(f){var H=f.match(e9r);
if(H){f=Number(H[1]);var v=Number(H[2]);H=Number(H[3]);if(f>=0&&f<=255&&v>=0&&v<=255&&H>=0&&H<=255)return[f,v,H]}return[]};var LNn={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},gy=LNn;gy=LNn;var yCe,xSv,BZa;yCe=function(f,H){switch(H){case 1:return f%4!=0||f%100==0&&f%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
xSv=function(f,H,v,t,M){f=new Date(f,H,v);M=M||0;return f.valueOf()+(((t!==void 0?t:3)-M+7)%7-((f.getDay()+6)%7-M+7)%7)*864E5};
_.ZN=function(f,H,v){typeof f==="number"?(this.date=BZa(f,H||0,v||1),z9a(this,v||1)):_.vo(f)?(this.date=BZa(f.getFullYear(),f.getMonth(),f.getDate()),z9a(this,f.getDate())):(this.date=new Date(_.qN()),f=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),z9a(this,f))};
BZa=function(f,H,v){H=new Date(f,H,v);f>=0&&f<100&&H.setFullYear(H.getFullYear()-1900);return H};
_.R=_.ZN.prototype;_.R.firstDayOfWeek_=gy.FIRSTDAYOFWEEK;_.R.firstWeekCutOffDay_=gy.FIRSTWEEKCUTOFFDAY;_.R.clone=function(){var f=new _.ZN(this.date);f.firstDayOfWeek_=this.firstDayOfWeek_;f.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return f};
_.R.getFullYear=function(){return this.date.getFullYear()};
_.R.getYear=function(){return this.getFullYear()};
_.R.getMonth=function(){return this.date.getMonth()};
_.R.getDate=function(){return this.date.getDate()};
_.R.getTime=function(){return this.date.getTime()};
_.R.getDay=function(){return this.date.getDay()};
_.R.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.R.getUTCMonth=function(){return this.date.getUTCMonth()};
_.R.getUTCDate=function(){return this.date.getUTCDate()};
_.R.getUTCDay=function(){return this.date.getDay()};
_.R.getUTCHours=function(){return this.date.getUTCHours()};
_.R.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.R.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.R.set=function(f){this.date=new Date(f.getFullYear(),f.getMonth(),f.getDate())};
_.R.setFullYear=function(f){this.date.setFullYear(f)};
_.R.setYear=function(f){this.setFullYear(f)};
_.R.setMonth=function(f){this.date.setMonth(f)};
_.R.setDate=function(f){this.date.setDate(f)};
_.R.setTime=function(f){this.date.setTime(f)};
_.R.setUTCFullYear=function(f){this.date.setUTCFullYear(f)};
_.R.setUTCMonth=function(f){this.date.setUTCMonth(f)};
_.R.setUTCDate=function(f){this.date.setUTCDate(f)};
_.R.add=function(f){if(f.years||f.months){var H=this.getMonth()+f.months+f.years*12,v=this.getYear()+Math.floor(H/12);H%=12;H<0&&(H+=12);var t=Math.min(yCe(v,H),this.getDate());this.setDate(1);this.setFullYear(v);this.setMonth(H);this.setDate(t)}f.days&&(v=this.getYear(),H=v>=0&&v<=99?-1900:0,f=new Date((new Date(v,this.getMonth(),this.getDate(),12)).getTime()+f.days*864E5),this.setDate(1),this.setFullYear(f.getFullYear()+H),this.setMonth(f.getMonth()),this.setDate(f.getDate()),z9a(this,f.getDate()))};
_.R.JSC$11310_toIsoString=function(f){var H=this.getFullYear(),v=H<0?"-":H>=1E4?"+":"";return[v+_.wP(Math.abs(H),v?6:4),_.wP(this.getMonth()+1,2),_.wP(this.getDate(),2)].join(f?"-":"")};
_.R.equals=function(f){return!(!f||this.getYear()!=f.getYear()||this.getMonth()!=f.getMonth()||this.getDate()!=f.getDate())};
_.R.toString=function(){return this.JSC$11310_toIsoString()};
var z9a=function(f,H){f.getDate()!=H&&f.date.setUTCHours(f.date.getUTCHours()+(f.getDate()<H?1:-1))};
_.ZN.prototype.valueOf=function(){return this.date.valueOf()};var le=function(f,H,v,t,M){this.reversed=!!H;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!v;f&&Jq(this,f,t);this.depth=M!=void 0?M:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.f8(le,HD);var Jq=function(f,H,v,t){if(f.node=H)f.tagType=typeof v==="number"?v:f.node.nodeType!=1?0:f.reversed?-1:1;typeof t==="number"&&(f.depth=t)};
_.R=le.prototype;_.R.JSC$11325_copyFrom=function(f){this.node=f.node;this.tagType=f.tagType;this.depth=f.depth;this.reversed=f.reversed;this.constrained=f.constrained};
_.R.clone=function(){return new le(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.R.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return vD;var f=this.node;var H=this.reversed?-1:1;if(this.tagType==H){var v=this.reversed?f.lastChild:f.firstChild;v?Jq(this,v):Jq(this,f,H*-1)}else(v=this.reversed?f.previousSibling:f.nextSibling)?Jq(this,v):Jq(this,f.parentNode,H*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(f=this.node)?tA(f):vD};
_.R.equals=function(f){return f.node==this.node&&(!this.node||f.tagType==this.tagType)};
_.R.splice=function(f){var H=this.node,v=this.reversed?1:-1;this.tagType==v&&(this.tagType=v*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;le.prototype.next.call(this);this.reversed=!this.reversed;v=_.Tb(arguments[0])?arguments[0]:arguments;for(var t=v.length-1;t>=0;t--)_.B4(v[t],H);_.U1(H)};var FNC=function(){},U3=function(f){for(var H=[],v=f.getTextRangeCount(),t=0;t<v;t++)H.push(f.getTextRange(t));
return H};
FNC.prototype.isReversed=function(){return!1};
FNC.prototype.getWindow=function(){return PQ(_.Gf(this.JSC$11327_getStartNode()))};
var rtv=function(f,H){le.call(this,f,H,!0)};
_.f8(rtv,le);var eh=function(f,H,v,t,M){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!M;if(f){this.startNode_=f;this.startOffset_=H;this.endNode_=v;this.endOffset_=t;if(f.nodeType==1&&f.tagName!="BR")if(f=f.childNodes,H=f[H])this.startNode_=H,this.startOffset_=0;else{f.length&&(this.startNode_=_.PR(f));var h=!0}v.nodeType==1&&((this.endNode_=v.childNodes[t])?this.endOffset_=0:this.endNode_=v)}le.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);h&&this.next()};
_.f8(eh,rtv);_.R=eh.prototype;_.R.JSC$11333_getStartNode=function(){return this.startNode_};
_.R.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)};
_.R.next=function(){return this.isLast()?vD:eh.superClass_.next.call(this)};
_.R.JSC$11325_copyFrom=function(f){this.startNode_=f.startNode_;this.endNode_=f.endNode_;this.startOffset_=f.startOffset_;this.endOffset_=f.endOffset_;this.isReversed_=f.isReversed_;eh.superClass_.JSC$11325_copyFrom.call(this,f)};
_.R.clone=function(){var f=new eh(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);f.JSC$11325_copyFrom(this);return f};var KNr=function(){};
KNr.prototype.__iterator__=function(){return new eh(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var LK=function(f){this.range_=f};
_.f8(LK,KNr);var DST=function(f){var H=_.Gf(f).createRange();if(f.nodeType==3)H.setStart(f,0),H.setEnd(f,f.length);else if(eI(f)||f.nodeType==3){for(var v,t=f;(v=t.firstChild)&&(eI(v)||v.nodeType==3);)t=v;H.setStart(t,0);for(t=f;(v=t.lastChild)&&(eI(v)||v.nodeType==3);)t=v;H.setEnd(t,t.nodeType==1?t.childNodes.length:t.length)}else v=f.parentNode,f=Array.prototype.indexOf.call(v.childNodes,f),H.setStart(v,f),H.setEnd(v,f+1);return H},ozZ=function(f,H,v,t){var M=_.Gf(f).createRange();
M.setStart(f,H);M.setEnd(v,t);return M};
_.R=LK.prototype;_.R.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.R.getContainer=function(){return this.range_.commonAncestorContainer};
_.R.compareBrowserRangeEndpoints=function(f,H,v){return this.range_.compareBoundaryPoints(v==1?H==1?_.Mr.Range.START_TO_START:_.Mr.Range.START_TO_END:H==1?_.Mr.Range.END_TO_START:_.Mr.Range.END_TO_END,f)};
_.R.isCollapsed=function(){return this.range_.collapsed};
_.R.select=function(f){this.selectInternal(PQ(_.Gf(this.range_.startContainer)).getSelection(),f)};
_.R.selectInternal=function(f){f.removeAllRanges();f.addRange(this.range_)};
_.R.insertNode=function(f,H){var v=this.range_.cloneRange();v.collapse(H);v.insertNode(f);v.detach();return f};
_.R.collapse=function(f){this.range_.collapse(f)};_.f8(hg,LK);hg.prototype.selectInternal=function(f,H){!H||this.isCollapsed()?hg.superClass_.selectInternal.call(this,f,H):(f.collapse(this.range_.endContainer,this.range_.endOffset),f.extend(this.range_.startContainer,this.range_.startOffset))};_.f8(Ve,LK);Ve.prototype.compareBrowserRangeEndpoints=function(f,H,v){return Ve.superClass_.compareBrowserRangeEndpoints.call(this,f,H,v)};
Ve.prototype.selectInternal=function(f,H){H?f.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):f.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var nzH=function(f){return _.Rp?new Ve(f):_.hZ?new hg(f):new LK(f)};var xa=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},pS_;
_.f8(xa,FNC);pS_=function(f,H){var v=new xa;v.browserRangeWrapper_=f;v.isReversed_=!!H;return v};
_.Q9H=function(f){f=_.Rp?new Ve(DST(f)):_.hZ?new hg(DST(f)):new LK(DST(f));return pS_(f)};
_.Bt=function(f,H,v,t){var M=new xa;M.isReversed_=uEb(f,H,v,t);if(_.wk(f)&&!eI(f)){var h=f.parentNode;H=Array.prototype.indexOf.call(h.childNodes,f);f=h}_.wk(v)&&!eI(v)&&(h=v.parentNode,t=Array.prototype.indexOf.call(h.childNodes,v),v=h);M.isReversed_?(M.startNode_=v,M.startOffset_=t,M.endNode_=f,M.endOffset_=H):(M.startNode_=f,M.startOffset_=H,M.endNode_=v,M.endOffset_=t);return M};
_.R=xa.prototype;_.R.clone=function(){var f=new xa;f.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();f.startNode_=this.startNode_;f.startOffset_=this.startOffset_;f.endNode_=this.endNode_;f.endOffset_=this.endOffset_;f.isReversed_=this.isReversed_;return f};
_.R.JSC$11327_getType=function(){return"text"};
_.R.getBrowserRangeObject=function(){return zs(this).range_};
_.R.getTextRangeCount=function(){return 1};
_.R.getTextRange=function(){return this};
var zs=function(f){var H;if(!(H=f.browserRangeWrapper_)){H=f.JSC$11327_getStartNode();var v=f.JSC$11327_getStartOffset(),t=f.JSC$11327_getEndNode(),M=f.JSC$11327_getEndOffset();H=_.Rp?new Ve(ozZ(H,v,t,M)):_.hZ?new hg(ozZ(H,v,t,M)):new LK(ozZ(H,v,t,M));H=f.browserRangeWrapper_=H}return H};
_.R=xa.prototype;_.R.getContainer=function(){return zs(this).getContainer()};
_.R.JSC$11327_getStartNode=function(){return this.startNode_||(this.startNode_=zs(this).range_.startContainer)};
_.R.JSC$11327_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=zs(this).range_.startOffset};
_.R.JSC$11327_getEndNode=function(){return this.endNode_||(this.endNode_=zs(this).range_.endContainer)};
_.R.JSC$11327_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=zs(this).range_.endOffset};
_.R.isReversed=function(){return this.isReversed_};
_.R.JSC$11327_containsRange=function(f,H){if(f.JSC$11327_getType()=="text"){var v=zs(this);f=zs(f);H=H&&!f.isCollapsed();f=f.range_;v=H?v.compareBrowserRangeEndpoints(f,0,1)>=0&&v.compareBrowserRangeEndpoints(f,1,0)<=0:v.compareBrowserRangeEndpoints(f,0,0)>=0&&v.compareBrowserRangeEndpoints(f,1,1)<=0}else v=!1;return v};
_.R.isCollapsed=function(){return zs(this).isCollapsed()};
_.R.JSC$11327_getText=function(){return zs(this).range_.toString()};
_.R.__iterator__=function(){return new eh(this.JSC$11327_getStartNode(),this.JSC$11327_getStartOffset(),this.JSC$11327_getEndNode(),this.JSC$11327_getEndOffset())};
_.R.select=function(){zs(this).select(this.isReversed_)};
_.R.JSC$11327_removeContents=function(){var f=zs(this).range_;f.extractContents();if(f.startContainer.hasChildNodes()&&(f=f.startContainer.childNodes[f.startOffset])){var H=f.previousSibling;frn(f)==""&&_.U1(f);H&&frn(H)==""&&_.U1(H)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.R.insertNode=function(f,H){f=zs(this).insertNode(f,H);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return f};
_.R.collapse=function(f){f=this.isReversed()?!f:f;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(f);f?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var anT=function(){};
_.f8(anT,FNC);anT.prototype.JSC$11327_containsRange=function(f,H){var v=U3(this);f=U3(f);return(H?i7:_.Wa5)(f,function(t){return i7(v,function(M){return M.JSC$11327_containsRange(t,H)})})};
anT.prototype.insertNode=function(f,H){H?_.x0(f,this.JSC$11327_getStartNode()):_.B4(f,this.JSC$11327_getEndNode());return f};var PYv,GDH=BQ().JSC$9317_document_.documentElement;PYv=GDH.requestFullscreen?"fullscreenchange":GDH.webkitRequestFullscreen?"webkitfullscreenchange":GDH.mozRequestFullScreen?"mozfullscreenchange":GDH.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var CY9=function(){var f=BQ().JSC$9317_document_;return!!(f.webkitIsFullScreen||f.mozFullScreen||f.msFullscreenElement||f.fullscreenElement)};var FD=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.f8(FD,anT);_.R=FD.prototype;_.R.clone=function(){var f=new FD;f.browserRanges_=_.kv(this.browserRanges_);return f};
_.R.JSC$11327_getType=function(){return"mutli"};
_.R.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.R.getTextRangeCount=function(){return this.browserRanges_.length};
_.R.getTextRange=function(f){this.ranges_[f]||(this.ranges_[f]=pS_(nzH(this.browserRanges_[f])));return this.ranges_[f]};
_.R.getContainer=function(){if(!this.container_){for(var f=[],H=this.getTextRangeCount(),v=0;v<H;v++)f.push(this.getTextRange(v).getContainer());this.container_=A9_.apply(null,f)}return this.container_};
var rg=function(f){f.sortedRanges_||(f.sortedRanges_=U3(f),f.sortedRanges_.sort(function(H,v){var t=H.JSC$11327_getStartNode();H=H.JSC$11327_getStartOffset();var M=v.JSC$11327_getStartNode();v=v.JSC$11327_getStartOffset();return t==M&&H==v?0:uEb(t,H,M,v)?1:-1}));
return f.sortedRanges_};
_.R=FD.prototype;_.R.JSC$11327_getStartNode=function(){return rg(this)[0].JSC$11327_getStartNode()};
_.R.JSC$11327_getStartOffset=function(){return rg(this)[0].JSC$11327_getStartOffset()};
_.R.JSC$11327_getEndNode=function(){return _.PR(rg(this)).JSC$11327_getEndNode()};
_.R.JSC$11327_getEndOffset=function(){return _.PR(rg(this)).JSC$11327_getEndOffset()};
_.R.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.R.JSC$11327_getText=function(){return U3(this).map(function(f){return f.JSC$11327_getText()}).join("")};
_.R.__iterator__=function(){return new KK(this)};
_.R.select=function(){var f=this.getWindow().getSelection();f.removeAllRanges();for(var H=this.getTextRangeCount(),v=0;v<H;v++)f.addRange(this.getTextRange(v).getBrowserRangeObject())};
_.R.JSC$11327_removeContents=function(){U3(this).forEach(function(f){f.JSC$11327_removeContents()})};
_.R.collapse=function(f){if(!this.isCollapsed()){var H=f?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;H.collapse(f);this.ranges_=[H];this.sortedRanges_=[H];this.browserRanges_=[H.getBrowserRangeObject()]}};
var KK=function(f){this.iterators_=null;this.currentIdx_=0;f&&(this.iterators_=rg(f).map(function(H){return _.fxa(H)}));
le.call(this,f?this.JSC$11333_getStartNode():null,!1,!0)};
_.f8(KK,rtv);_.R=KK.prototype;_.R.JSC$11333_getStartNode=function(){return this.iterators_[0].JSC$11333_getStartNode()};
_.R.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.R.next=function(){for(;this.currentIdx_<this.iterators_.length;){var f=this.iterators_[this.currentIdx_],H=f.next();if(H.done)this.currentIdx_++;else return Jq(this,f.node,f.tagType,f.depth),H}return vD};
_.R.JSC$11325_copyFrom=function(f){this.iterators_=_.kv(f.iterators_);KK.superClass_.JSC$11325_copyFrom.call(this,f)};
_.R.clone=function(){var f=new KK(null);f.JSC$11325_copyFrom(this);return f};var Ez9,uEb;_.Yd=function(){var f=window.getSelection();return f&&Ez9(f)};
Ez9=function(f){var H=!1;if(f.createRange)try{var v=f.createRange()}catch(M){return null}else if(f.rangeCount){if(f.rangeCount>1){v=new FD;H=f.rangeCount;for(var t=0;t<H;t++)v.browserRanges_.push(f.getRangeAt(t));return v}v=f.getRangeAt(0);H=uEb(f.anchorNode,f.anchorOffset,f.focusNode,f.focusOffset)}else return null;return pS_(nzH(v),H)};
_.DN=function(f,H){return _.Bt(f,H,f,H)};
_.oE=function(f,H,v,t){return _.Bt(f,H,v,t)};
uEb=function(f,H,v,t){if(f==v)return t<H;var M;if(f.nodeType==1&&H)if(M=f.childNodes[H])f=M,H=0;else if(_.Nj(f,v))return!0;if(v.nodeType==1&&t)if(M=v.childNodes[t])v=M,t=0;else if(_.Nj(v,f))return!1;return(XoH(f,v)||H-t)>0};var nK=function(){_.Sg.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.FH)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.FH)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.FH)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.FH)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.FH)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.FH)(this.dispatchProgressEvent_,this)};
_.f8(nK,_.Sg);nK.prototype.abort=function(){try{this.reader_.abort()}catch(f){throw new Hb_(f,"aborting read");}};
nK.prototype.getError=function(){return this.reader_.error&&new Hb_(this.reader_.error,"reading file")};
nK.prototype.dispatchProgressEvent_=function(f){this.dispatchEvent(new vFZ(f,this))};
nK.prototype.disposeInternal=function(){nK.superClass_.disposeInternal.call(this);delete this.reader_};
var cto=function(f){var H=new nK,v=NZ9(H);H.reader_.readAsArrayBuffer(f);return v},XSa=function(f){var H=new nK,v=NZ9(H);
H.reader_.readAsDataURL(f);return v},NZ9=function(f){var H=new PU;
f.listen("loadend",_.l0(function(v,t){var M=t.reader_.result,h=t.getError();M==null||h?v.errback(h):v.callback(M);t.dispose()},H,f));
return H};var pK=function(){_.Sg.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11367_eventHandler_=new _.Y1(this);this.JSC$11367_isInitialized_=!1};
_.f8(pK,_.Sg);var AtZ=new _.mQ("d"),bGn=new _.mQ("beforedragstart"),iGM=new _.mQ("dragstart"),kDT=new _.mQ("beforedragmove"),TZM=new _.mQ("dragmove"),wSv=new _.mQ("beforedragend"),q6C=new _.mQ("dragend"),fwM=new _.mQ("e");pK.prototype.isDragging=function(){return!!this.JSC$11367_dragger_};
var H2h=function(f,H){H.dlgGrowthDirection_=0;H.dlgDragHoverClass_=void 0;H.dlgDragPermission=0;f.dragLists_.push(H)},vVg=function(f,H){f.getHandleForDragItem_=H};
pK.prototype.init=function(){if(!this.JSC$11367_isInitialized_){for(var f=this.dragLists_.length,H=0;H<f;H++)for(var v=_.z_(this.dragLists_[H]),t=v.length,M=0;M<t;++M){var h=v[M],y=this.getHandleForDragItem_(h),m=_.h9(y);this.dragItemForHandle_[m]=h;this.dragItemHoverClasses_&&(this.JSC$11367_eventHandler_.listen(h,"mouseover",this.handleDragItemMouseover_),this.JSC$11367_eventHandler_.listen(h,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11367_eventHandler_.listen(y,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11367_eventHandler_.listen(y,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(h);this.JSC$11367_eventHandler_.listen(y,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11367_isInitialized_=!0}};
pK.prototype.disposeInternal=function(){this.JSC$11367_eventHandler_.dispose();for(var f=this.dragLists_.length,H=0;H<f;H++){var v=this.dragLists_[H];v.dlgGrowthDirection_=void 0;v.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;trn(this);pK.superClass_.disposeInternal.call(this)};
var MrT=function(f,H){for(var v=f.dragLists_.length,t=0;t<v;t++){var M=f.dragLists_[t];M.dlgBounds_=G_B(M)}v=f.dragItems_.length;for(t=0;t<v;t++)M=f.dragItems_[t],M!=H&&(M.dlgBounds_=G_B(M))};
_.R=pK.prototype;
_.R.handlePotentialDragStart_=function(f){var H=_.h9(f.currentTarget);H=this.dragItemForHandle_[H];if(H.parentElement.dlgDragPermission!=2){this.currDragItem_=H;a:{H=this.currDragItem_;for(var v=H.cloneNode(!0),t=ez("TEXTAREA",H),M=ez("TEXTAREA",v),h=0;h<t.length;h++)M[h].value=t[h].value;switch(H.tagName){case "TR":H=_.ls("TABLE",null,_.ls("TBODY",null,v));break a;case "TD":case "TH":H=_.ls("TABLE",null,_.ls("TBODY",null,_.ls("TR",null,v)));break a;case "TEXTAREA":v.value=H.value;default:H=v;break a}H=
void 0}this.draggerEl_=H;this.draggerElClasses_&&uz(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.Gf(this.currDragItem_).body.appendChild(this.draggerEl_);v=_.Cd(this.currDragItem_);H=this.draggerEl_;t=_.Cd(H);if(v instanceof _.al){var y=v.y;v=v.x}oH(H,H.offsetLeft+(v-t.x),H.offsetTop+(Number(y)-t.y));this.JSC$11367_dragger_=new _.KZ(this.draggerEl_);_.fUH(this.JSC$11367_dragger_,this.hysteresisDistance_);
_.r9(this.JSC$11367_dragger_,"start",this.handleDragStart_,!1,this);_.r9(this.JSC$11367_dragger_,"end",this.handleDragEnd_,!1,this);_.r9(this.JSC$11367_dragger_,"earlycancel",this.JSC$11369_cleanup_,!1,this);this.dispatchEvent(new QY(AtZ,this,f,this.currDragItem_,this.draggerEl_,this.JSC$11367_dragger_));this.JSC$11367_dragger_.startDrag(f)}};
_.R.handleDragStart_=function(f){if(this.dispatchEvent(new QY(bGn,this,f.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.EgH(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?uz(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var H=RwT(this.draggerEl_);this.draggerEl_.halfWidth=H.width/2;this.draggerEl_.halfHeight=H.height/2;H=this.draggerEl_.getBoundingClientRect();
var v=f.clientY,t=HNo(this.JSC$11367_dragger_,f.clientX);if(t>H.right){var M=this.currDragItem_.getBoundingClientRect();this.JSC$11367_dragger_.deltaX=t-(t-M.left)/M.width*H.width}v=vXM(this.JSC$11367_dragger_,v);v>H.bottom&&(this.JSC$11367_dragger_.deltaY+=v-H.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";MrT(this,this.currDragItem_);this.currDragItem_.style.display="";_.r9(this.JSC$11367_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new QY(iGM,
this,f.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11367_dragger_))}else f.preventDefault(),this.JSC$11369_cleanup_()};
_.R.handleDragMove_=function(f){var H=_.Cd(this.draggerEl_);H=new _.al(H.x+this.draggerEl_.halfWidth,H.y+this.draggerEl_.halfHeight);a:{var v=null;if(this.currDragItem_.style.display!="none"){v=this.currDragItem_.parentNode;var t=G_B(v);if(hsb(H,t))break a}t=this.dragLists_.length;for(var M=0;M<t;M++){var h=this.dragLists_[M];if(h!=v&&hsb(H,h.dlgBounds_)){v=h;break a}}v=null}if(v){if(v==null)throw Error("Vd");t=0;M=!1;h=void 0;switch(v.dlgGrowthDirection_){case 0:t=H.y;var y=RsC;var m=Vr_;break;case 4:M=
!0;case 2:t=H.x;y=yJ_;m=Vr_;break;case 5:M=!0;case 3:t=H.x,y=YEM,m=mun}for(var W=null,I,S=_.z_(v),d=S.length,Z=0;Z<d;Z++){var l=S[Z];if(l!=this.currDragItem_){var L=y(l.dlgBounds_);if(M){var r=$ua(l,H);h===void 0&&(h=r);m(t,L)&&(I==void 0||r<h||r==h&&(m(L,I)||L==I))&&(W=l,I=L);r<h&&(h=r)}else m(t,L)&&(I==void 0||m(L,I))&&(W=l,I=L)}}y=W!==null&&$ua(W,H)>h?null:W}else y=null;if(!this.dispatchEvent(new QY(kDT,this,f,this.currDragItem_,this.draggerEl_,this.JSC$11367_dragger_,H,v,y)))return!1;if(v&&v.dlgDragPermission!=
1)this.currDragItem_.parentNode==v&&_.EgH(this.currDragItem_)==y||v.insertBefore(this.currDragItem_,y),this.currDragItem_.style.display="",v.dlgDragHoverClass_&&_.vn(v,v.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",m=this.dragLists_.length,I=0;I<m;I++)t=this.dragLists_[I],t.dlgDragHoverClass_&&_.fV(t,t.dlgDragHoverClass_);v!=this.currHoverList_&&(this.currHoverList_=v,MrT(this,this.currDragItem_));this.dispatchEvent(new QY(TZM,this,f,this.currDragItem_,this.draggerEl_,this.JSC$11367_dragger_,
H,v,y));return!1};
_.R.JSC$11369_cleanup_=function(){trn(this);this.JSC$11367_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var f=this.dragLists_.length,H=0;H<f;H++)this.dragLists_[H].dlgBounds_=null;f=this.dragItems_.length;for(H=0;H<f;H++)this.dragItems_[H].dlgBounds_=null};
_.R.handleDragEnd_=function(f){if(!this.dispatchEvent(new QY(wSv,this,f,this.currDragItem_,this.draggerEl_,this.JSC$11367_dragger_)))return!1;trn(this);this.dispatchEvent(new QY(q6C,this,f,this.currDragItem_,this.draggerEl_,this.JSC$11367_dragger_));this.JSC$11369_cleanup_();return!0};
var trn=function(f){_.Mj(f.JSC$11367_dragger_);var H=f.draggerEl_&&f.draggerEl_.parentElement;f.draggerEl_&&_.U1(f.draggerEl_);f.currDragItem_&&f.currDragItem_.style.display=="none"&&(f.origList_.insertBefore(f.currDragItem_,f.origNextItem_),f.currDragItem_.style.display="");f.currDragItemClasses_&&f.currDragItem_?w_Z(f.currDragItem_,f.currDragItemClasses_||[]):f.currDragItem_&&(f.currDragItem_.style.visibility="");for(var v=f.dragLists_.length,t=0;t<v;t++){var M=f.dragLists_[t];M.dlgDragHoverClass_&&
_.fV(M,M.dlgDragHoverClass_)}H&&f.dispatchEvent(new QY(fwM,f,null,f.currDragItem_,f.draggerEl_,f.JSC$11367_dragger_))};
_.R=pK.prototype;_.R.getHandleForDragItem_=function(f){return f};
_.R.handleDragItemMouseover_=function(f){uz(f.currentTarget,this.dragItemHoverClasses_||[])};
_.R.handleDragItemMouseout_=function(f){w_Z(f.currentTarget,this.dragItemHoverClasses_||[])};
_.R.handleDragItemHandleMouseover_=function(f){uz(f.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.R.handleDragItemHandleMouseout_=function(f){w_Z(f.currentTarget,this.dragItemHandleHoverClasses_||[])};
var hsb=function(f,H){return f.x>H.left&&f.x<H.left+H.width&&f.y>H.top&&f.y<H.top+H.height},$ua=function(f,H){f=f.dlgBounds_;
return Math.abs(H.y-(f.top+(f.height-1)/2))},RsC=function(f){return f.top+f.height-1},yJ_=function(f){return f.left+f.width-1},YEM=function(f){return f.left||0},Vr_=function(f,H){return f<H},mun=function(f,H){return f>H},QY=function(f,H,v,t,M,h){_.$R.call(this,f);
this.event=v;this.currDragItem=t;this.draggerEl=M;this.JSC$11371_dragger=h};
_.f8(QY,_.$R);_.f8(mg,_.zO);var WF_=new _.al(0,0);mg.prototype.JSC$11375_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
mg.prototype.JSC$11375_onMouseMove=function(f){var H=this.containerIsActuallyContent_?WF_:xO(BQ(this.containerNode_)),v=this.horizontalScrolling_?this.calculateScrollDelta(f.clientX+H.x,this.scrollBounds_.left,this.scrollBounds_.width):0,t=this.calculateScrollDelta(f.clientY+H.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=v;this.scrollDelta_.y=t;!(v=!v&&!t)&&(v=this.constrainScroll_)&&(v=f.clientX+H.x,f=f.clientY+H.y,H=this.containerBounds_,v=!(H.left<=v&&H.left+H.width>=
v&&H.top<=f&&H.top+H.height>=f));v?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
mg.prototype.calculateScrollDelta=function(f,H,v){var t=0;f<H?t=-8:f>H+v&&(t=8);return t};
mg.prototype.disposeInternal=function(){mg.superClass_.disposeInternal.call(this);this.JSC$11373_eventHandler_.dispose();this.scrollTimer_.dispose()};var O2r={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"}}},ue=O2r;ue=O2r;var aE={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 gVa=function(){},kT=function(f){if(typeof f=="number"){var H=new gVa;
H.standardOffset_=f;var v=f;if(v==0)v="Etc/GMT";else{var t=["Etc/GMT",v<0?"-":"+"];v=Math.abs(v);t.push(Math.floor(v/60)%100);v%=60;v!=0&&t.push(":",_.wP(v,2));v=t.join("")}H.timeZoneId_=v;v=f;v==0?v="UTC":(t=["UTC",v<0?"+":"-"],v=Math.abs(v),t.push(Math.floor(v/60)%100),v%=60,v!=0&&t.push(":",v),v=t.join(""));f=IwC(f);H.tzNames_=[v,v];H.tzNamesExt_={STD_LONG_NAME_GMT:f,STD_GENERIC_LOCATION:f};H.transitions_=[];return H}H=new gVa;H.timeZoneId_=f.id;H.standardOffset_=-f.std_offset;H.tzNames_=f.names;
H.tzNamesExt_=f.names_ext;H.transitions_=f.transitions;return H},IwC=function(f){var H=["GMT"];
H.push(f<=0?"+":"-");f=Math.abs(f);H.push(_.wP(Math.floor(f/60)%100,2),":",_.wP(f%60,2));return H.join("")},SEb=function(f,H){H=Date.UTC(H.getUTCFullYear(),H.getUTCMonth(),H.getUTCDate(),H.getUTCHours(),H.getUTCMinutes())/36E5;
for(var v=0;v<f.transitions_.length&&H>=f.transitions_[v];)v+=2;return v==0?0:f.transitions_[v-1]},duC=function(f,H){f=f.standardOffset_-SEb(f,H);
return f===-1440?0:f};var TZ=function(f,H){this.patternParts_=[];this.JSC$11386_dateTimeSymbols_=H||gy;typeof f=="number"?jKh(this,f):sK9(this,f)},Z2b=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],Pt=function(f){return f.getHours?f.getHours():0},sK9=function(f,H){for(oiH&&(H=H.replace(/\u200f/g,""));H;){for(var v=H,t=0;t<Z2b.length;++t){var M=H.match(Z2b[t]);
if(M){var h=M[0];H=H.substring(h.length);t==0&&(h=="''"?h="'":(h=h.substring(1,M[1]=="'"?h.length-1:h.length),h=h.replace(/''/g,"'")));f.patternParts_.push({text:h,type:t});break}}if(v===H)throw Error("Wd`"+H);}};
TZ.prototype.format=function(f,H){if(!f)throw Error("Xd");var v=H?(f.getTimezoneOffset()-duC(H,f))*6E4:0,t=v?new Date(f.getTime()+v):f,M=t;H&&t.getTimezoneOffset()!=f.getTimezoneOffset()&&(t=new Date(t.getTime()+(t.getTimezoneOffset()-f.getTimezoneOffset())*6E4),M=new Date(f.getTime()+(v+(v>0?-864E5:864E5))));v=[];for(var h=0;h<this.patternParts_.length;++h){var y=this.patternParts_[h].text;1==this.patternParts_[h].type?v.push(JJh(this,y,f,t,M,H)):v.push(y)}return v.join("")};
var jKh=function(f,H){if(H<4)var v=f.JSC$11386_dateTimeSymbols_.DATEFORMATS[H];else if(H<8)v=f.JSC$11386_dateTimeSymbols_.TIMEFORMATS[H-4];else if(H<12)v=f.JSC$11386_dateTimeSymbols_.DATETIMEFORMATS[H-8],v=v.replace("{1}",f.JSC$11386_dateTimeSymbols_.DATEFORMATS[H-8]),v=v.replace("{0}",f.JSC$11386_dateTimeSymbols_.TIMEFORMATS[H-8]);else if(H===12)v=f.JSC$11386_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(H===13)v=f.JSC$11386_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{jKh(f,10);return}sK9(f,v)},Gs=function(f,H){H=String(H);
f=f.JSC$11386_dateTimeSymbols_||gy;if(f.ZERODIGIT!==void 0&&!DBr){for(var v=[],t=0;t<H.length;t++){var M=H.charCodeAt(t);v.push(48<=M&&M<=57?String.fromCharCode(f.ZERODIGIT+M-48):H.charAt(t))}H=v.join("")}return H},DBr=!1,oiH=!1,Uua=function(f,H,v,t){v=v.getFullYear();
v<=0&&t&&(v=1-v);return Gs(f,lwo(v,H))},lwo=function(f,H){H==2&&(f%=100);
f<0&&H++;return _.wP(f,H)},CK=function(f){if(!(f.getHours&&f.getSeconds&&f.getMinutes))throw Error("Yd");
},esM=function(f,H){CK(H);
H=Pt(H);return f.JSC$11386_dateTimeSymbols_.AMPMS[H>=12&&H<24?1:0]},JJh=function(f,H,v,t,M,h){var y=H.length;
switch(H.charAt(0)){case "G":return v=t.getFullYear()>0?1:0,y>=4?f.JSC$11386_dateTimeSymbols_.ERANAMES[v]:f.JSC$11386_dateTimeSymbols_.ERAS[v];case "y":return Uua(f,y,t,!0);case "Y":return v=(new Date(xSv(t.getFullYear(),t.getMonth(),t.getDate(),f.JSC$11386_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,f.JSC$11386_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),y==2&&(v%=100),Gs(f,lwo(v,y));case "u":return Uua(f,y,t,!1);case "M":a:switch(v=t.getMonth(),y){case 5:y=f.JSC$11386_dateTimeSymbols_.NARROWMONTHS[v];
break a;case 4:y=f.JSC$11386_dateTimeSymbols_.MONTHS[v];break a;case 3:y=f.JSC$11386_dateTimeSymbols_.SHORTMONTHS[v];break a;default:y=Gs(f,_.wP(v+1,y))}return y;case "k":return CK(M),Gs(f,_.wP(Pt(M)||24,y));case "S":return Gs(f,(M.getMilliseconds()/1E3).toFixed(Math.min(3,y)).slice(2)+(y>3?_.wP(0,y-3):""));case "E":return v=t.getDay(),y>=4?f.JSC$11386_dateTimeSymbols_.WEEKDAYS[v]:f.JSC$11386_dateTimeSymbols_.SHORTWEEKDAYS[v];case "a":return esM(f,M);case "b":return esM(f,M);case "B":return esM(f,
M);case "h":return CK(M),Gs(f,_.wP(Pt(M)%12||12,y));case "K":return CK(M),Gs(f,_.wP(Pt(M)%12,y));case "H":return CK(M),Gs(f,_.wP(Pt(M),y));case "c":a:switch(v=t.getDay(),y){case 5:y=f.JSC$11386_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[v];break a;case 4:y=f.JSC$11386_dateTimeSymbols_.STANDALONEWEEKDAYS[v];break a;case 3:y=f.JSC$11386_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[v];break a;default:y=Gs(f,_.wP(v,1))}return y;case "L":a:switch(v=t.getMonth(),y){case 5:y=f.JSC$11386_dateTimeSymbols_.STANDALONENARROWMONTHS[v];
break a;case 4:y=f.JSC$11386_dateTimeSymbols_.STANDALONEMONTHS[v];break a;case 3:y=f.JSC$11386_dateTimeSymbols_.STANDALONESHORTMONTHS[v];break a;default:y=Gs(f,_.wP(v+1,y))}return y;case "Q":return v=Math.floor(t.getMonth()/3),y<4?f.JSC$11386_dateTimeSymbols_.SHORTQUARTERS[v]:f.JSC$11386_dateTimeSymbols_.QUARTERS[v];case "d":return Gs(f,_.wP(t.getDate(),y));case "m":return CK(M),Gs(f,_.wP(M.getMinutes?M.getMinutes():0,y));case "s":return CK(M),Gs(f,_.wP(M.getSeconds(),y));case "v":return(h||kT(v.getTimezoneOffset())).timeZoneId_;
case "V":return f=h||kT(v.getTimezoneOffset()),y<=2?f.timeZoneId_:SEb(f,v)>0?f.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?f.tzNamesExt_.DST_GENERIC_LOCATION:f.tzNamesExt_.DST_GENERIC_LOCATION:f.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?f.tzNamesExt_.STD_GENERIC_LOCATION:f.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return v=xSv(M.getFullYear(),M.getMonth(),M.getDate(),f.JSC$11386_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,f.JSC$11386_dateTimeSymbols_.FIRSTDAYOFWEEK),Gs(f,_.wP(Math.floor(Math.round((v-(new Date((new Date(v)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,y));case "z":return f=h||kT(v.getTimezoneOffset()),y<4?f.tzNames_[SEb(f,v)>0?2:0]:f.tzNames_[SEb(f,v)>0?3:1];case "Z":return H=h||kT(v.getTimezoneOffset()),y<4?(y=-duC(H,v),f=[y<0?"-":"+"],y=Math.abs(y),f.push(_.wP(Math.floor(y/60)%100,2),_.wP(y%60,2)),y=f.join("")):y=Gs(f,IwC(duC(H,v))),y;default:return""}};var LFT=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,xuT=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,otg=function(f){this.patternParts_=[];this.JSC$11395_dateTimeSymbols_=gy;if(typeof f=="number"){f>11&&(f=10);if(f<4)var H=this.JSC$11395_dateTimeSymbols_.DATEFORMATS[f];else f<8?H=this.JSC$11395_dateTimeSymbols_.TIMEFORMATS[f-4]:(H=this.JSC$11395_dateTimeSymbols_.DATETIMEFORMATS[f-8],H=H.replace("{1}",this.JSC$11395_dateTimeSymbols_.DATEFORMATS[f-8]),H=H.replace("{0}",this.JSC$11395_dateTimeSymbols_.TIMEFORMATS[f-
8]));BXr(this,H)}else BXr(this,f)},BXr=function(f,H){for(var v=!1,t="",M=0;M<H.length;M++){var h=H.charAt(M);
if(LFT.test(h))for(t.length>0&&(f.patternParts_.push({text:t,count:0,abutStart:!1,numeric:!1}),t=""),f.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});M<H.length-1&&H.charAt(M+1)==" ";)M++;else if(v)h=="'"?M+1<H.length&&H.charAt(M+1)=="'"?(t+="'",M++):v=!1:t+=h;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(h)>=0){t.length>0&&(f.patternParts_.push({text:t,count:0,abutStart:!1,numeric:!1}),t="");for(var y=H.charAt(M),m=M+1;m<H.length&&H.charAt(m)==y;)m++;y=m-M;y<=0?m=!1:(m="MydhHmsSDkK".indexOf(h),
m=m>0||m==0&&y<3);f.patternParts_.push({text:h,count:y,abutStart:!1,numeric:m});M+=y-1}else h=="'"?M+1<H.length&&H.charAt(M+1)=="'"?(t+="'",M++):v=!0:t+=h}t.length>0&&f.patternParts_.push({text:t,count:0,abutStart:!1,numeric:!1});H=!1;for(v=0;v<f.patternParts_.length;v++)f.patternParts_[v].numeric?!H&&v+1<f.patternParts_.length&&f.patternParts_[v+1].numeric&&(H=!0,f.patternParts_[v].abutStart=!0):H=!1};
otg.prototype.parse=function(f,H,v){var t=!1,M=!1;v&&(t=v.predictive||!1,M=v.validate||!1);if(t)for(v=0;v<this.patternParts_.length;v++){var h=this.patternParts_[v];if(h.count>0&&("abBhHkKm".indexOf(h.text.charAt(0))<0||h.count>2||h.abutStart))throw Error("Zd`"+h.text.charAt(0));}h=new zsh;v=[0];h.dayPeriodIndex=-1;for(var y=0;y<this.patternParts_.length&&!(t&&v[0]>=f.length);y++){if(this.patternParts_[y].count==0){a:{var m=f;var W=v,I=this.patternParts_[y],S=t;if(I.text.match(LFT)!=null){if(I=W[0],
FFT(m,W),W[0]>I){m=!0;break a}}else{if(m.indexOf(I.text,W[0])==W[0]){W[0]+=I.text.length;m=!0;break a}if(S&&I.text.indexOf(m.substring(W[0]))==0){W[0]+=m.length-W[0];m=!0;break a}}m=!1}if(m)continue;return 0}if(this.patternParts_[y].abutStart){a:{W=f;I=v;S=y;var d=I[0],Z=0;for(m=S;m<this.patternParts_.length;m++){var l=this.patternParts_[m],L=l.count;if(L===0)break;if(m==S&&(L-=Z,Z++,L==0)){m=0;break a}var r=m>S&&l.numeric,n=I[0];if(!rJH(this,W,I,l,L,h,!1)||r&&I[0]-n<L)m=S-1,I[0]=d}m-=S}if(m<=0)return 0;
y+=m-1}else if(!rJH(this,f,v,this.patternParts_[y],0,h,t))return 0}a:{f=M;if(H==null)throw Error("$d");h.era!=void 0&&h.year!=void 0&&h.era==0&&h.year>0&&(h.year=-(h.year-1));h.year!=void 0&&H.setFullYear(h.year);t=H.getDate();H.setDate(1);h.month!=void 0&&H.setMonth(h.month);h.day!=void 0?H.setDate(h.day):(M=yCe(H.getFullYear(),H.getMonth()),H.setDate(t>M?M:t));typeof H.setHours==="function"&&(h.hours==void 0&&(h.hours=H.getHours()),h.hours<12&&(h.ampm!=void 0&&h.ampm>0?h.hours+=12:h.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(h.dayPeriodName)||["night1","night2"].includes(h.dayPeriodName)&&h.hours>=6)&&(h.hours+=12)),H.setHours(h.hours));typeof H.setMinutes==="function"&&h.minutes!=void 0&&H.setMinutes(h.minutes);typeof H.setSeconds==="function"&&h.seconds!=void 0&&H.setSeconds(h.seconds);typeof H.setMilliseconds==="function"&&h.milliseconds!=void 0&&H.setMilliseconds(h.milliseconds);if(f&&(h.year&&h.year!=H.getFullYear()||h.month&&h.month!=
H.getMonth()||h.day&&h.day!=H.getDate()||h.hours&&h.hours>=24||h.minutes&&h.minutes>=60||h.seconds&&h.seconds>=60||h.milliseconds&&h.milliseconds>=1E3))H=!1;else{h.tzOffset!=void 0&&H.setTime(H.getTime()+(h.tzOffset-H.getTimezoneOffset())*60*1E3);h.ambiguousYear&&(f=new Date,f.setFullYear(f.getFullYear()-80),H.getTime()<f.getTime()&&H.setFullYear(f.getFullYear()+100));if(h.dayOfWeek!=void 0)if(h.day==void 0)h=(7+h.dayOfWeek-H.getDay())%7,h>3&&(h-=7),f=H.getMonth(),H.setDate(H.getDate()+h),H.getMonth()!=
f&&H.setDate(H.getDate()+(h>0?-7:7));else if(h.dayOfWeek!=H.getDay()){H=!1;break a}H=!0}}return H?v[0]:0};
var rJH=function(f,H,v,t,M,h,y){FFT(H,v);if(t.numeric&&M>0&&v[0]+M>H.length)return!1;switch(t.text.charAt(0)){case "G":return E3(H,v,[f.JSC$11395_dateTimeSymbols_.ERAS],function(m){return h.era=m}),!0;
case "M":case "L":return KFh(f,H,v,M,t,h);case "E":return E3(H,v,[f.JSC$11395_dateTimeSymbols_.WEEKDAYS,f.JSC$11395_dateTimeSymbols_.SHORTWEEKDAYS],function(m){return h.dayOfWeek=m});
case "B":case "b":return M=[],f=[[].concat(f.JSC$11395_dateTimeSymbols_.AMPMS)],M.push("isAm"),M.push("isPm"),H=E3(H,v,f,function(m){return h.dayPeriodIndex=m},y),h.dayPeriodName=M[h.dayPeriodIndex],y?H:!0;
case "a":return H=E3(H,v,[f.JSC$11395_dateTimeSymbols_.AMPMS],function(m){return h.ampm=m},y),y?H:!0;
case "y":return Dua(f,H,v,t,M,h);case "Q":return E3(H,v,[f.JSC$11395_dateTimeSymbols_.QUARTERS,f.JSC$11395_dateTimeSymbols_.SHORTQUARTERS],function(m){h.month=m*3;h.day=1});
case "d":return NL(f,H,v,t,M,function(m){h.day=m}),!0;
case "S":return oVg(f,H,v,M,h);case "h":case "K":case "H":case "k":return H=NL(f,H,v,t,M,function(m){h.hours=t.text.charAt(0)==="h"&&m===12?0:m},y),y?H:!0;
case "m":return H=NL(f,H,v,t,M,function(m){h.minutes=m},y),y?H:!0;
case "s":return NL(f,H,v,t,M,function(m){h.seconds=m}),!0;
case "z":case "Z":case "v":return nVh(f,H,v,h);default:return!1}},Dua=function(f,H,v,t,M,h){var y=v[0];
M=ct(f,H,v,M);M===null&&(M=ct(f,H,v,0,!0));if(M===null)return!1;M>=0&&v[0]-y==2&&t.count==2?(f=M,H=(new Date).getFullYear()-80,v=H%100,h.ambiguousYear=f==v,f+=Math.floor(H/100)*100+(f<v?100:0),h.year=f):h.year=M;return!0},KFh=function(f,H,v,t,M,h){return M.numeric&&NL(f,H,v,M,t,function(y){h.month=y-1})?!0:E3(H,v,[f.JSC$11395_dateTimeSymbols_.MONTHS,
f.JSC$11395_dateTimeSymbols_.STANDALONEMONTHS,f.JSC$11395_dateTimeSymbols_.SHORTMONTHS,f.JSC$11395_dateTimeSymbols_.STANDALONESHORTMONTHS],function(y){h.month=y})},oVg=function(f,H,v,t,M){var h=v[0];
f=ct(f,H,v,t);if(f===null)return!1;v=v[0]-h;M.milliseconds=v<3?f*Math.pow(10,3-v):Math.round(f/Math.pow(10,v-3));return!0},nVh=function(f,H,v,t){H.indexOf("GMT",v[0])==v[0]&&(v[0]+=3);
if(v[0]>=H.length)return t.tzOffset=0,!0;var M=v[0],h=ct(f,H,v,0,!0);if(h===null)return!1;if(v[0]<H.length&&H.charAt(v[0])==":"){var y=h*60;v[0]++;h=ct(f,H,v,0);if(h===null)return!1;y+=h}else y=h,y=y<24&&v[0]-M<=3?y*60:y%100+y/100*60;t.tzOffset=-y;return!0},NL=function(f,H,v,t,M,h,y){y=y||!1;
var m=v[0];f=ct(f,H,v,M);if(f===null)return!1;if(y&&v[0]-m<t.count){if(v[0]<H.length)return!1;f*=Math.pow(10,t.count-(v[0]-m))}h(f);return!0},E3=function(f,H,v,t,M){M=M||!1;
for(var h,y=0;y<v.length;y++){h=H;for(var m=v[y],W=M,I=0,S=null,d=f.substring(h[0]).toLowerCase(),Z=0;Z<m.length;Z++){var l=m[Z].toLowerCase();if(W&&l.indexOf(d)==0){I=d.length;S=Z;break}m[Z].length>I&&d.indexOf(l)==0&&(I=m[Z].length,S=Z)}S!==null&&(h[0]+=I);h=S;if(h!==null)return t(h),!0}return!1},FFT=function(f,H){(f=f.substring(H[0]).match(xuT))&&(H[0]+=f[0].length)},ct=function(f,H,v,t,M){H=t>0?H.substring(0,v[0]+t):H;
M=M||!1;if(f.JSC$11395_dateTimeSymbols_.ZERODIGIT){t=[];for(var h=v[0];h<H.length;h++){var y=H.charCodeAt(h)-f.JSC$11395_dateTimeSymbols_.ZERODIGIT;t.push(0<=y&&y<=9?String.fromCharCode(y+48):H.charAt(h))}H=t.join("")}else H=H.substring(v[0]);f=H.match(new RegExp("^"+(M?"[+-]?":"")+"\\d+"));if(!f)return null;v[0]+=f[0].length;return parseInt(f[0],10)},zsh=function(){};
zsh.prototype.ambiguousYear=!1;_.pBC={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 QKC={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"},uIa=QKC,aw_=QKC;aw_=uIa=QKC;var GWH,XD,be,qaE,Aq,PJZ;
_.Ad=function(f,H,v,t){var M;if(M=H){a:if(H&&H.length===3){for(M=0;M<3;M++){var h=H[M];if(h<"A"||h>"Z"&&h<"a"||h>"z"){M=!1;break a}}M=!0}else M=!1;M=!M}if(M)throw new TypeError("ae");this.intlCurrencyCode_=H?H.toUpperCase():null;this.currencyStyle_=v||0;this.overrideNumberFormatSymbols_=t||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_=XD(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof f==="number")switch(f){case 1:Aq(this,XD(this).DECIMAL_PATTERN);break;case 2:Aq(this,XD(this).SCIENTIFIC_PATTERN);break;case 3:Aq(this,XD(this).PERCENT_PATTERN);break;case 4:f=XD(this).CURRENCY_PATTERN;H=["0"];if(v=
aE[be(this)]){v=v[0]&7;if(v>0)for(H.push("."),t=0;t<v;t++)H.push("0");f=f.replace(/0.00/g,H.join(""))}Aq(this,f);break;case 5:PJZ(this,1);break;case 6:PJZ(this,2);break;default:throw Error("de");}else Aq(this,f)};
GWH=!1;XD=function(f){return f.overrideNumberFormatSymbols_||(GWH?aw_:uIa)};
be=function(f){return f.intlCurrencyCode_||XD(f).DEF_CURRENCY_CODE};
qaE=function(f,H){if(H>308)throw Error("ce`"+H);f.maximumFractionDigits_=H;return f};
Aq=function(f,H){var v=[0];f.positivePrefix_=CJ9(f,H,v);for(var t=v[0],M=-1,h=0,y=0,m=0,W=-1,I=H.length,S=!0;v[0]<I&&S;v[0]++)switch(H.charAt(v[0])){case "#":y>0?m++:h++;W>=0&&M<0&&W++;break;case "0":if(m>0)throw Error("je`"+H);y++;W>=0&&M<0&&W++;break;case ",":W>0&&f.groupingArray_.push(W);W=0;break;case ".":if(M>=0)throw Error("ke`"+H);M=h+y+m;break;case "E":if(f.useExponentialNotation_)throw Error("le`"+H);f.useExponentialNotation_=!0;f.minExponentDigits_=0;v[0]+1<I&&H.charAt(v[0]+1)=="+"&&(v[0]++,
f.useSignForPositiveExponent_=!0);for(;v[0]+1<I&&H.charAt(v[0]+1)=="0";)v[0]++,f.minExponentDigits_++;if(h+y<1||f.minExponentDigits_<1)throw Error("me`"+H);S=!1;break;default:v[0]--,S=!1}y==0&&h>0&&M>=0&&(y=M,y==0&&y++,m=h-y,h=y-1,y=1);if(M<0&&m>0||M>=0&&(M<h||M>h+y)||W==0)throw Error("ne`"+H);m=h+y+m;f.maximumFractionDigits_=M>=0?m-M:0;M>=0&&(f.minimumFractionDigits_=h+y-M,f.minimumFractionDigits_<0&&(f.minimumFractionDigits_=0));f.minimumIntegerDigits_=(M>=0?M:m)-h;f.useExponentialNotation_&&(f.maximumIntegerDigits_=
h+f.minimumIntegerDigits_,f.maximumFractionDigits_==0&&f.minimumIntegerDigits_==0&&(f.minimumIntegerDigits_=1));f.groupingArray_.push(Math.max(0,W));f.decimalSeparatorAlwaysShown_=M==0||M==m;t=v[0]-t;f.positiveSuffix_=CJ9(f,H,v);v[0]<H.length&&H.charAt(v[0])==";"?(v[0]++,f.multiplier_!=1&&(f.negativePercentSignExpected_=!0),f.negativePrefix_=CJ9(f,H,v),v[0]+=t,f.negativeSuffix_=CJ9(f,H,v)):(f.negativePrefix_+=f.positivePrefix_,f.negativeSuffix_+=f.positiveSuffix_)};
PJZ=function(f,H){f.compactStyle_=H;Aq(f,XD(f).DECIMAL_PATTERN);f.minimumFractionDigits_=0;qaE(f,2);if(f.minimumFractionDigits_>0)throw Error("be");f.significantDigits_=2};
_.Ad.prototype.parse=function(f,H){H=H||[0];if(this.compactStyle_!==0)throw Error("ee");f=f.replace(/ |\u202f/g,"\u00a0");var v=f.indexOf(this.positivePrefix_,H[0])==H[0],t=f.indexOf(this.negativePrefix_,H[0])==H[0];v&&t&&(this.positivePrefix_.length>this.negativePrefix_.length?t=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(v=!1));v?H[0]+=this.positivePrefix_.length:t&&(H[0]+=this.negativePrefix_.length);if(f.indexOf(XD(this).INFINITY,H[0])==H[0]){H[0]+=XD(this).INFINITY.length;var M=
Infinity}else{M=f;var h=!1,y=!1,m=!1,W=-1,I=1,S=XD(this).DECIMAL_SEP,d=XD(this).GROUP_SEP,Z=XD(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("fe");d=d.replace(/\u202f/g,"\u00a0");for(var l="";H[0]<M.length;H[0]++){var L=M.charAt(H[0]),r=EVH(this,L);if(r>=0&&r<=9)l+=r,m=!0;else if(L==S.charAt(0)){if(h||y)break;l+=".";h=!0}else if(L==d.charAt(0)&&("\u00a0"!=d.charAt(0)||H[0]+1<M.length&&EVH(this,M.charAt(H[0]+1))>=0)){if(h||y)break}else if(L==Z.charAt(0)){if(y)break;l+="E";y=!0;W=H[0]}else if(L==
"+"||L=="-"){if(m&&W!=H[0]-1)break;l+=L}else if(this.multiplier_==1&&L==XD(this).PERCENT.charAt(0)){if(I!=1)break;I=100;if(m){H[0]++;break}}else if(this.multiplier_==1&&L==XD(this).PERMILL.charAt(0)){if(I!=1)break;I=1E3;if(m){H[0]++;break}}else break}this.multiplier_!=1&&(I=this.multiplier_);M=parseFloat(l)/I}if(v){if(f.indexOf(this.positiveSuffix_,H[0])!=H[0])return NaN;H[0]+=this.positiveSuffix_.length}else if(t){if(f.indexOf(this.negativeSuffix_,H[0])!=H[0])return NaN;H[0]+=this.negativeSuffix_.length}return t?
-M:M};
_.Ad.prototype.format=function(f){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ge");if(isNaN(f))return XD(this).NAN;var H=[];var v=f;if(this.compactStyle_==0)v=ie;else{v=Math.abs(v);var t=NXa(this,v<=1?0:cJo(v)).divisorBase;v=NXa(this,t+cJo(XBb(this,ka(v,-t)).intValue))}f=ka(f,-v.divisorBase);(t=f<0||f==0&&1/f<0)?v.negative_prefix?H.push(v.negative_prefix):(H.push(v.prefix),H.push(this.negativePrefix_)):(H.push(v.prefix),H.push(this.positivePrefix_));if(isFinite(f))if(f*=
t?-1:1,f*=this.multiplier_,this.useExponentialNotation_){var M=f;if(M==0)AJ9(this,M,this.minimumIntegerDigits_,H),b29(this,0,H);else{var h=Math.floor(Math.log(M)/Math.log(10)+2E-15);M=ka(M,-h);var y=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(y=h%this.maximumIntegerDigits_,y<0&&(y=this.maximumIntegerDigits_+y),M=ka(M,y),h-=y,y=1):this.minimumIntegerDigits_<1?(h++,M=ka(M,-1)):(h-=this.minimumIntegerDigits_-1,M=ka(M,this.minimumIntegerDigits_-
1));AJ9(this,M,y,H);b29(this,h,H)}}else AJ9(this,f,this.minimumIntegerDigits_,H);else H.push(XD(this).INFINITY);t?v.negative_suffix?H.push(v.negative_suffix):(isFinite(f)&&H.push(v.suffix),H.push(this.negativeSuffix_)):(isFinite(f)&&H.push(v.suffix),H.push(this.positiveSuffix_));return H.join("")};
var XBb=function(f,H){var v=ka(H,f.maximumFractionDigits_);f.significantDigits_>0&&(v=i2a(v,f.significantDigits_,f.maximumFractionDigits_));v=Math.round(v);if(isFinite(v)){var t=Math.floor(ka(v,-f.maximumFractionDigits_));v=Math.floor(v-ka(t,f.maximumFractionDigits_));if(v<0||v>=ka(1,f.maximumFractionDigits_))t=Math.round(H),v=0}else t=H,v=0;return{intValue:t,fracValue:v}},AJ9=function(f,H,v,t){if(f.minimumFractionDigits_>f.maximumFractionDigits_)throw Error("ge");
t||(t=[]);H=XBb(f,H);var M=H.intValue,h=H.fracValue,y=f.minimumFractionDigits_>0||h>0||!1;H=f.minimumFractionDigits_;y&&(H=f.minimumFractionDigits_);for(var m="",W=M;W>1E20;)m="0"+m,W=Math.round(ka(W,-1));m=W+m;var I=XD(f).DECIMAL_SEP;W=XD(f).ZERO_DIGIT.codePointAt(0);var S=m.length,d=0;if(M>0||v>0){for(M=S;M<v;M++)t.push(String.fromCodePoint(W));if(f.groupingArray_.length>=2)for(v=1;v<f.groupingArray_.length;v++)d+=f.groupingArray_[v];v=S-d;if(v>0){M=f.groupingArray_;d=S=0;for(var Z,l=XD(f).GROUP_SEP,
L=m.length,r=0;r<L;r++)if(t.push(String.fromCodePoint(W+Number(m.charAt(r)))),L-r>1)if(Z=M[d],r<v){var n=v-r;(Z===1||Z>0&&n%Z===1)&&t.push(l)}else d<M.length&&(r===v?d+=1:Z===r-v-S+1&&(t.push(l),S+=Z,d+=1))}else{v=m;m=f.groupingArray_;M=XD(f).GROUP_SEP;Z=v.length;l=[];for(S=m.length-1;S>=0&&Z>0;S--){d=m[S];for(L=0;L<d&&Z-L-1>=0;L++)l.push(String.fromCodePoint(W+Number(v.charAt(Z-L-1))));Z-=d;Z>0&&l.push(M)}t.push.apply(t,l.reverse())}}else y||t.push(String.fromCodePoint(W));(f.decimalSeparatorAlwaysShown_||
y)&&t.push(I);h=String(h);y=h.split("e+");y.length==2&&(h=String(i2a(parseFloat(y[0]),f.significantDigits_,1)),h=h.replace(".",""),h+=(0,_.Lsa)("0",parseInt(y[1],10)-h.length+1));f.maximumFractionDigits_+1>h.length&&(h="1"+(0,_.Lsa)("0",f.maximumFractionDigits_-h.length)+h);for(f=h.length;h.charAt(f-1)=="0"&&f>H+1;)f--;for(H=1;H<f;H++)t.push(String.fromCodePoint(W+Number(h.charAt(H))))},b29=function(f,H,v){v.push(XD(f).EXP_SYMBOL);
H<0?(H=-H,v.push(XD(f).MINUS_SIGN)):f.useSignForPositiveExponent_&&v.push(XD(f).PLUS_SIGN);H=""+H;for(var t=XD(f).ZERO_DIGIT,M=H.length;M<f.minExponentDigits_;M++)v.push(t);f=t.codePointAt(0)-kWh;for(t=0;t<H.length;t++)v.push(String.fromCodePoint(f+H.codePointAt(t)))},EVH=function(f,H){H=H.codePointAt(0);
if(48<=H&&H<58)return H-48;f=XD(f).ZERO_DIGIT.codePointAt(0);return f<=H&&H<f+10?H-f:-1},kWh="0".codePointAt(0),CJ9=function(f,H,v){for(var t="",M=!1,h=H.length;v[0]<h;v[0]++){var y=H.charAt(v[0]);
if(y=="'")v[0]+1<h&&H.charAt(v[0]+1)=="'"?(v[0]++,t+="'"):M=!M;else if(M)t+=y;else switch(y){case "#":case "0":case ",":case ".":case ";":return t;case "\u00a4":if(v[0]+1<h&&H.charAt(v[0]+1)=="\u00a4")v[0]++,t+=be(f);else switch(f.currencyStyle_){case 0:y=be(f);t+=y in aE?aE[y][1]:y;break;case 2:y=be(f);var m=aE[y];t+=m?y==m[1]?y:y+" "+m[1]:y;break;case 1:y=be(f),t+=y in aE?aE[y][2]:y}break;case "%":if(!f.negativePercentSignExpected_&&f.multiplier_!=1)throw Error("he");if(f.negativePercentSignExpected_&&
f.multiplier_!=100)throw Error("ie");f.multiplier_=100;f.negativePercentSignExpected_=!1;t+=XD(f).PERCENT;break;case "\u2030":if(!f.negativePercentSignExpected_&&f.multiplier_!=1)throw Error("he");if(f.negativePercentSignExpected_&&f.multiplier_!=1E3)throw Error("ie");f.multiplier_=1E3;f.negativePercentSignExpected_=!1;t+=XD(f).PERMILL;break;default:t+=y}}return t},ie={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},NXa=function(f,H){f=f.compactStyle_==1?ue.COMPACT_DECIMAL_SHORT_PATTERN:ue.COMPACT_DECIMAL_LONG_PATTERN;f==null&&(f=ue.COMPACT_DECIMAL_SHORT_PATTERN);if(H<3)return ie;H=Math.min(14,H);var v=f[ka(1,H)];for(--H;!v&&H>=3;)v=f[ka(1,H)],H--;if(!v)return ie;v=v.other;var t=f="",M=v.indexOf(";");M>=0&&(v=v.substring(0,M),M=v.substring(M+1))&&(t=/([^0]*)(0+)(.*)/.exec(M),f=t[1],t=t[3]);return v&&v!="0"?(v=/([^0]*)(0+)(.*)/.exec(v))?{divisorBase:H+
1-(v[2].length-1),negative_prefix:f,negative_suffix:t,prefix:v[1],suffix:v[3]}:ie:ie},cJo=function(f){if(!isFinite(f))return f>0?f:0;
for(var H=0;(f/=10)>=1;)H++;return H},ka=function(f,H){if(!f||!isFinite(f)||H==0)return f;
f=String(f).split("e");return parseFloat(f[0]+"e"+(parseInt(f[1]||0,10)+H))},TXZ=function(f,H){return f&&isFinite(f)?ka(Math.round(ka(f,H)),-H):f},i2a=function(f,H,v){if(!f)return f;
H=H-cJo(f)-1;return H<-v?TXZ(f,-v):TXZ(f,H)};var wBC=function(f){return f%10==1&&f%100!=11?"one":f%10==2&&f%100!=12?"two":f%10==3&&f%100!=13?"few":"other"},qEC=wBC;
qEC=wBC;var fIr;fIr=function(f,H){var v=f|0;if(void 0===H){H=Math;var t=H.min,M=f+"",h=M.indexOf(".");H=t.call(H,h===-1?0:M.length-h-1,3)}t=Math.pow(10,H);f={v:H,f:(f*t|0)%t};return v==1&&f.v==0?"one":"other"};
_.wL=fIr;_.wL=fIr;var HuH,v6_,tWb,hUT,RU9;_.MWb=function(f){this.JSC$11438_pattern_=f;this.parsedPattern_=this.literals_=this.initialLiterals_=null;f=uIa;var H=ue;if(HuH!==f||v6_!==H)HuH=f,v6_=H,tWb=new _.Ad(1);this.numberFormatter_=tWb};
HuH=null;v6_=null;tWb=null;hUT=RegExp("'([{}#].*?)'","g");RU9=RegExp("''","g");
_.MWb.prototype.format=function(f){if(this.JSC$11438_pattern_){this.initialLiterals_=[];var H=VWC(this,this.JSC$11438_pattern_);this.parsedPattern_=yVr(this,H);this.JSC$11438_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.kv(this.initialLiterals_),H=[],YV_(this,this.parsedPattern_,f,!1,H),f=H.join("");this.literals_.length>0;)f=f.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else f="";return f};
var YV_=function(f,H,v,t,M){for(var h=0;h<H.length;h++)switch(H[h].type){case 4:M.push(H[h].value);break;case 3:var y=H[h].value;var m=f,W=M,I=v[y];I===void 0?W.push("Undefined parameter - "+y):(m.literals_.push(I),W.push(m.buildPlaceholder_(m.literals_)));break;case 2:y=H[h].value;m=f;W=v;I=t;var S=M,d=y.argumentIndex;W[d]===void 0?S.push("Undefined parameter - "+d):(d=y[W[d]],d===void 0&&(d=y.other),YV_(m,d,W,I,S));break;case 0:y=H[h].value;mEb(f,y,v,_.wL,t,M);break;case 1:y=H[h].value,mEb(f,y,
v,qEC,t,M)}},mEb=function(f,H,v,t,M,h){var y=H.argumentIndex,m=H.argumentOffset,W=+v[y];
isNaN(W)?h.push("Undefined or invalid parameter - "+y):(m=W-m,y=H[v[y]],y===void 0&&(t=t(Math.abs(m)),y=H[t],y===void 0&&(y=H.other)),H=[],YV_(f,y,v,M,H),v=H.join(""),M?h.push(v):(f=f.numberFormatter_.format(m),h.push(v.replace(/#/g,f))))},VWC=function(f,H){var v=f.initialLiterals_,t=f.buildPlaceholder_.bind(f);
H=H.replace(RU9,function(){v.push("'");return t(v)});
return H=H.replace(hUT,function(M,h){v.push(h);return t(v)})},$Er=function(f){var H=0,v=[],t=[],M=/[{}]/g;
M.lastIndex=0;for(var h;h=M.exec(f);){var y=h.index;h[0]=="}"?(v.pop(),v.length==0&&(h={type:1},h.value=f.substring(H,y),t.push(h),H=y+1)):(v.length==0&&(H=f.substring(H,y),H!=""&&t.push({type:0,value:H}),H=y+1),v.push("{"))}f=f.substring(H);f!=""&&t.push({type:0,value:f});return t},Wxa=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,Ouh=/^\s*(\w+)\s*,\s*selectordinal\s*,/,g6v=/^\s*(\w+)\s*,\s*select\s*,/,yVr=function(f,H){var v=[];
H=$Er(H);for(var t=0;t<H.length;t++){var M={};if(0==H[t].type)M.type=4,M.value=H[t].value;else if(1==H[t].type){var h=H[t].value;switch(Wxa.test(h)?0:Ouh.test(h)?1:g6v.test(h)?2:/^\s*\w+\s*/.test(h)?3:5){case 2:M.type=2;M.value=IIH(f,H[t].value);break;case 0:M.type=0;M.value=SVh(f,H[t].value);break;case 1:M.type=1;M.value=dEg(f,H[t].value);break;case 3:M.type=3,M.value=H[t].value}}v.push(M)}return v},IIH=function(f,H){var v="";
H=H.replace(g6v,function(m,W){v=W;return""});
var t={};t.argumentIndex=v;H=$Er(H);for(var M=0;M<H.length;){var h=H[M].value;M++;var y=void 0;1==H[M].type&&(y=yVr(f,H[M].value));t[h.replace(/\s/g,"")]=y;M++}return t},SVh=function(f,H){var v="",t=0;
H=H.replace(Wxa,function(W,I,S){v=I;S&&(t=parseInt(S,10));return""});
var M={};M.argumentIndex=v;M.argumentOffset=t;H=$Er(H);for(var h=0;h<H.length;){var y=H[h].value;h++;var m=void 0;1==H[h].type&&(m=yVr(f,H[h].value));M[y.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=m;h++}return M},dEg=function(f,H){var v="";
H=H.replace(Ouh,function(m,W){v=W;return""});
var t={};t.argumentIndex=v;t.argumentOffset=0;H=$Er(H);for(var M=0;M<H.length;){var h=H[M].value;M++;var y=void 0;1==H[M].type&&(y=yVr(f,H[M].value));t[h.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=y;M++}return t};
_.MWb.prototype.buildPlaceholder_=function(f){return"\ufddf_"+(f.length-1).toString(10)+"_"};var ju_;
ju_={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 QjR=function(){this.rdtfSymbols_=Zur||ju_;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
QjR.prototype.format=function(f,H){a:{H=JVb(this,H);switch(this.style_){case 2:if(H.NARROW!=void 0){H=H.NARROW;break a}case 1:if(H.SHORT!=void 0){H=H.SHORT;break a}default:H=H.LONG;break a}H=void 0}if(!this.alwaysNumeric_&&H&&H.R&&H.R[""+f])f=H.R[""+f];else if(H){var v=Math.abs(f);f=(new _.MWb("{N,plural,"+(f>0||f==0&&1/f==Infinity?H.F:H.P)+"}")).format({N:v})}else f="";return f};
var JVb=function(f,H){switch(H){default:case 0:return f.rdtfSymbols_.YEAR;case 1:return f.rdtfSymbols_.QUARTER;case 2:return f.rdtfSymbols_.MONTH;case 3:return f.rdtfSymbols_.WEEK;case 4:return f.rdtfSymbols_.DAY;case 5:return f.rdtfSymbols_.HOUR;case 6:return f.rdtfSymbols_.MINUTE;case 7:return f.rdtfSymbols_.SECOND}};var lIH=function(f,H,v,t,M,h,y,m){this.x0=f;this.y0=H;this.x1=v;this.y1=t;this.x2=M;this.y2=h;this.x3=y;this.y3=m};
lIH.prototype.clone=function(){return new lIH(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
lIH.prototype.equals=function(f){return this.x0==f.x0&&this.y0==f.y0&&this.x1==f.x1&&this.y1==f.y1&&this.x2==f.x2&&this.y2==f.y2&&this.x3==f.x3&&this.y3==f.y3};
var UEb=function(f,H){if(H==0)return f.x0;if(H==1)return f.x3;var v=jI(f.x0,f.x1,H),t=jI(f.x1,f.x2,H);f=jI(f.x2,f.x3,H);v=jI(v,t,H);t=jI(t,f,H);return jI(v,t,H)},eUv=function(f,H){var v=(H-f.x0)/(f.x3-f.x0);
if(v<=0)return 0;if(v>=1)return 1;for(var t=0,M=1,h=0,y=0;y<8;y++){h=UEb(f,v);var m=(UEb(f,v+1E-6)-h)/1E-6;if(Math.abs(h-H)<1E-6)return v;if(Math.abs(m)<1E-6)break;else h<H?t=v:M=v,v-=(h-H)/m}for(y=0;Math.abs(h-H)>1E-6&&y<8;y++)h<H?(t=v,v=(v+M)/2):(M=v,v=(v+t)/2),h=UEb(f,v);return v};var Ts=function(){_.Sg.call(this);this.JSC$11459_name_="closure_frame"+LxT++;this.iframesForDisposal_=[];xEb[this.JSC$11459_name_]=this},wg;
_.f8(Ts,_.Sg);var xEb={},LxT=0,B9H=function(f,H){var v=BQ(f);Dko(H,function(t,M){Array.isArray(t)||(t=[t]);_.X3(t,function(h){h=v.JSC$9319_createDom("INPUT",{type:"hidden",name:M,value:h});f.appendChild(h)})})};
_.R=Ts.prototype;_.R.JSC$11461_form_=null;_.R.JSC$11461_iframe_=null;_.R.iframeName_=null;_.R.nextIframeId_=0;_.R.JSC$11461_active_=!1;_.R.complete_=!1;_.R.success_=!1;_.R.lastContent_=null;_.R.JSC$11461_lastErrorCode_=0;_.R.iframeDisposalTimer_=null;
_.R.send=function(f,H,v,t){if(this.JSC$11461_active_)throw Error("oe");f=new _.qC(f);H=H?H.toUpperCase():"GET";v&&_.vC(f);wg||(wg=_.ls("FORM"),wg.acceptCharset="utf-8",v=wg.style,v.position="absolute",v.visibility="hidden",v.top=v.left="-10px",v.width=v.height="10px",v.overflow="hidden",document.body.appendChild(wg));this.JSC$11461_form_=wg;H=="GET"&&B9H(this.JSC$11461_form_,f.JSC$10022_queryData_);t&&B9H(this.JSC$11461_form_,t);v=f.toString();v=CdR(v);t=this.JSC$11461_form_;v=_.cv(no(v));v!==void 0&&
(t.action=v);this.JSC$11461_form_.method=H;zUa(this);Fxh(this)};
_.R.abort=function(f){if(this.JSC$11461_active_){var H=qL(this);if(H)if(OB(H))H.removeAllListeners(void 0);else if(H=gm(H)){var v=0,t;for(t in H.listeners)for(var M=H.listeners[t].concat(),h=0;h<M.length;++h)BK(M[h])&&++v}this.success_=this.JSC$11461_active_=this.complete_=!1;this.JSC$11461_lastErrorCode_=f||7;this.dispatchEvent("abort");rVb(this)}};
_.R.disposeInternal=function(){this.JSC$11461_active_&&this.abort();Ts.superClass_.disposeInternal.call(this);this.JSC$11461_iframe_&&Kxv(this);Fxh(this);this.JSC$11461_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11461_form_=null;this.JSC$11461_lastErrorCode_=0;delete xEb[this.JSC$11459_name_]};
_.R.isComplete=function(){return this.complete_};
_.R.isSuccess=function(){return this.success_};
_.R.isActive=function(){return this.JSC$11461_active_};
_.R.getResponseText=function(){return this.lastContent_};
_.R.getLastError=function(){return _.mdb(this.JSC$11461_lastErrorCode_)};
var zUa=function(f){f.JSC$11461_active_=!0;f.complete_=!1;f.JSC$11461_lastErrorCode_=0;f.iframeName_=f.JSC$11459_name_+"_"+(f.nextIframeId_++).toString(36);f.JSC$11461_iframe_=BQ(f.JSC$11461_form_).JSC$9319_createDom("IFRAME",{name:f.iframeName_,id:f.iframeName_});var H=f.JSC$11461_iframe_.style;H.visibility="hidden";H.width=H.height="10px";H.display="none";_.Rp?H.marginTop=H.marginLeft="-10px":(H.position="absolute",H.top=H.left="-10px");BQ(f.JSC$11461_form_).JSC$9317_document_.body.appendChild(f.JSC$11461_iframe_);
H=f.iframeName_+"_inner";var v=brZ(f.JSC$11461_iframe_);if(document.baseURI){var t=mV(H);t='<head><base href="'+mV(document.baseURI)+'"></head><body><iframe id="'+t+'" name="'+t+'"></iframe>';t=iD(t)}else t=mV(H),t=iD('<body><iframe id="'+t+'" name="'+t+'"></iframe>');v.write(kU(t));_.r9(v.getElementById(H),"load",f.onIframeLoaded_,!1,f);t=ez("TEXTAREA",f.JSC$11461_form_);for(var M=0,h=t.length;M<h;M++){var y=t[M].value;frn(t[M])!=y&&(_.F_(t[M],y),t[M].value=y)}t=v.importNode(f.JSC$11461_form_,!0);
t.target=H;t.action=f.JSC$11461_form_.action;v.body.appendChild(t);M=ez("SELECT",f.JSC$11461_form_);h=ez("SELECT",t);y=0;for(var m=M.length;y<m;y++)for(var W=ez("OPTION",M[y]),I=ez("OPTION",h[y]),S=0,d=W.length;S<d;S++)I[S].selected=W[S].selected;M=ez("INPUT",f.JSC$11461_form_);h=ez("INPUT",t);y=0;for(m=M.length;y<m;y++)if(M[y].type=="file"&&M[y].value!=h[y].value){f.JSC$11461_form_.target=H;t=f.JSC$11461_form_;break}try{f.errorHandled_=!1,t.submit(),v.close(),_.hZ&&setTimeout(f.testForFirefoxSilentError_.bind(f),
250)}catch(Z){_.IS(v.getElementById(H),"load",f.onIframeLoaded_,!1,f),v.close(),f3(f,2)}};
Ts.prototype.onIframeLoaded_=function(){_.IS(qL(this),"load",this.onIframeLoaded_,!1,this);try{var f=this.JSC$11461_iframe_?brZ(qL(this)):null;this.complete_=!0;this.JSC$11461_active_=!1;try{var H=f.body;this.lastContent_=H.textContent||H.innerText}catch(M){var v=1}var t;v||typeof this.errorChecker_!="function"||(t=this.errorChecker_(f))&&(v=4);v?f3(this,v):(this.success_=!0,this.JSC$11461_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),rVb(this))}catch(M){f3(this,1)}};
var f3=function(f,H){f.errorHandled_||(f.success_=!1,f.JSC$11461_active_=!1,f.complete_=!0,f.JSC$11461_lastErrorCode_=H,f.dispatchEvent("complete"),f.dispatchEvent("error"),rVb(f),f.errorHandled_=!0)},rVb=function(f){Kxv(f);
Fxh(f);f.JSC$11461_form_=null;f.dispatchEvent("ready")},Kxv=function(f){var H=f.JSC$11461_iframe_;
H&&(H.onreadystatechange=null,H.onload=null,H.onerror=null,f.iframesForDisposal_.push(H));f.iframeDisposalTimer_&&(clearTimeout(f.iframeDisposalTimer_),f.iframeDisposalTimer_=null);_.hZ?f.iframeDisposalTimer_=setTimeout(f.disposeIframes_.bind(f),2E3):f.disposeIframes_();f.JSC$11461_iframe_=null;f.iframeName_=null};
Ts.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var f=this.iframesForDisposal_.pop();_.U1(f)}};
var Fxh=function(f){f.JSC$11461_form_&&f.JSC$11461_form_==wg&&_.L6(f.JSC$11461_form_)},qL=function(f){return f.JSC$11461_iframe_?brZ(f.JSC$11461_iframe_).getElementById(f.iframeName_+"_inner"):null};
Ts.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11461_active_){var f=this.JSC$11461_iframe_?brZ(qL(this)):null;f&&!slv(f,"documentUri")?(_.IS(qL(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?f3(this,3):f3(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.Hw=function(f){return f=="\r"||f=="\n"||f==" "||f=="\t"};var DEC;_.vw=function(f){this.errorMessage_=null;this.result_=[];this.JSC$11463_buffer_="";this.stack_=[];this.JSC$11463_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!f||!f.deliverMessageAsRawString)};
DEC={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};_.vw.prototype.isInputValid=function(){return this.streamState_!=3};
_.vw.prototype.done=function(){return this.streamState_===2};
var tH=function(f,H,v){f.streamState_=3;f.errorMessage_="The stream is broken @"+f.JSC$11463_pos_+"/"+v+". With input:\n"+H;throw Error(f.errorMessage_);};
_.vw.prototype.acceptsBinaryInput=function(){return!1};
_.vw.prototype.parse=function(f){function H(){for(;Z<f.length;)if(_.Hw(f[Z]))Z++,h.JSC$11463_pos_++;else break;return Z<I}
function v(){for(var L;;){L=f[Z++];if(!L)break;h.JSC$11463_pos_++;switch(h.state_){case W.INIT:L==="{"?h.state_=W.OBJECT_OPEN:L==="["?h.state_=W.ARRAY_OPEN:_.Hw(L)||tH(h,f,Z);continue;case W.KEY_START:case W.OBJECT_OPEN:if(_.Hw(L))continue;if(h.state_===W.KEY_START)y.push(W.KEY_END);else if(L==="}"){M("{}");h.state_=t();continue}else y.push(W.OBJECT_END);L==='"'?h.state_=W.STRING:tH(h,f,Z);continue;case W.KEY_END:case W.OBJECT_END:if(_.Hw(L))continue;L===":"?(h.state_===W.OBJECT_END&&(y.push(W.OBJECT_END),
h.depth_++),h.state_=W.VALUE):L==="}"?(h.depth_--,M(),h.state_=t()):L===","?(h.state_===W.OBJECT_END&&y.push(W.OBJECT_END),h.state_=W.KEY_START):tH(h,f,Z);continue;case W.ARRAY_OPEN:case W.VALUE:if(_.Hw(L))continue;if(h.state_===W.ARRAY_OPEN)if(h.depth_++,h.state_=W.VALUE,L==="]"){h.depth_--;if(h.depth_===0){h.state_=W.ARRAY_END;return}M("[]");h.state_=t();continue}else y.push(W.ARRAY_END);L==='"'?h.state_=W.STRING:L==="{"?h.state_=W.OBJECT_OPEN:L==="["?h.state_=W.ARRAY_OPEN:L==="t"?h.state_=W.TRUE1:
L==="f"?h.state_=W.FALSE1:L==="n"?h.state_=W.NULL1:L!=="-"&&("0123456789".indexOf(L)!==-1?h.state_=W.NUM_DIGIT:tH(h,f,Z));continue;case W.ARRAY_END:if(L===",")y.push(W.ARRAY_END),h.state_=W.VALUE,h.depth_===1&&(d=Z);else if(L==="]"){h.depth_--;if(h.depth_===0)return;M();h.state_=t()}else if(_.Hw(L))continue;else tH(h,f,Z);continue;case W.STRING:var r=Z;a:for(;;){for(;h.unicodeCount_>0;)if(L=f[Z++],h.unicodeCount_===4?h.unicodeCount_=0:h.unicodeCount_++,!L)break a;if(L==='"'&&!h.slashed_){h.state_=
t();break}if(L==="\\"&&!h.slashed_&&(h.slashed_=!0,L=f[Z++],!L))break;if(h.slashed_)if(h.slashed_=!1,L==="u"&&(h.unicodeCount_=1),L=f[Z++])continue;else break;m.lastIndex=Z;L=m.exec(f);if(!L){Z=f.length+1;break}Z=L.index+1;L=f[L.index];if(!L)break}h.JSC$11463_pos_+=Z-r;continue;case W.TRUE1:if(!L)continue;L==="r"?h.state_=W.TRUE2:tH(h,f,Z);continue;case W.TRUE2:if(!L)continue;L==="u"?h.state_=W.TRUE3:tH(h,f,Z);continue;case W.TRUE3:if(!L)continue;L==="e"?h.state_=t():tH(h,f,Z);continue;case W.FALSE1:if(!L)continue;
L==="a"?h.state_=W.FALSE2:tH(h,f,Z);continue;case W.FALSE2:if(!L)continue;L==="l"?h.state_=W.FALSE3:tH(h,f,Z);continue;case W.FALSE3:if(!L)continue;L==="s"?h.state_=W.FALSE4:tH(h,f,Z);continue;case W.FALSE4:if(!L)continue;L==="e"?h.state_=t():tH(h,f,Z);continue;case W.NULL1:if(!L)continue;L==="u"?h.state_=W.NULL2:tH(h,f,Z);continue;case W.NULL2:if(!L)continue;L==="l"?h.state_=W.NULL3:tH(h,f,Z);continue;case W.NULL3:if(!L)continue;L==="l"?h.state_=t():tH(h,f,Z);continue;case W.NUM_DECIMAL_POINT:L===
"."?h.state_=W.NUM_DIGIT:tH(h,f,Z);continue;case W.NUM_DIGIT:if("0123456789.eE+-".indexOf(L)!==-1)continue;else Z--,h.JSC$11463_pos_--,h.state_=t();continue;default:tH(h,f,Z)}}}
function t(){var L=y.pop();return L!=null?L:W.VALUE}
function M(L){h.depth_>1||(L||(L=d===-1?h.JSC$11463_buffer_+f.substring(S,Z):f.substring(d,Z)),h.deliverMessageAsRawString_?h.result_.push(L):h.result_.push(JSON.parse(L)),d=Z)}
for(var h=this,y=h.stack_,m=h.stringInputPattern_,W=DEC,I=f.length,S=0,d=-1,Z=0;Z<I;)switch(h.streamState_){case 3:return tH(h,f,Z),null;case 2:return H()&&tH(h,f,Z),null;case 0:if(H()){var l=f[Z++];h.JSC$11463_pos_++;if(l==="["){h.streamState_=1;S=Z;h.state_=W.ARRAY_OPEN;continue}else tH(h,f,Z)}return null;case 1:return v(),h.depth_===0&&h.state_==W.ARRAY_END?(h.streamState_=2,h.JSC$11463_buffer_=f.substring(Z)):h.JSC$11463_buffer_=d===-1?h.JSC$11463_buffer_+f.substring(S):f.substring(d),h.result_.length>
0?(l=h.result_,h.result_=[],l):null}return null};_.f8(_.$1,xZ);W7.prototype.getValue=function(){return this.JSC$11471_value_};
W7.prototype.clone=function(){return new W7(this.JSC$11471_key_,this.JSC$11471_value_)};var M_=function(f){this.nodes_=[];if(f)a:{if(f instanceof M_){var H=f.getKeys();f=f.getValues();if(this.getCount()<=0){for(var v=this.nodes_,t=0;t<H.length;t++)v.push(new W7(H[t],f[t]));break a}}else H=_.QA.getKeys(f),f=_.QA.getValues(f);for(v=0;v<H.length;v++)this.insert(H[v],f[v])}};
_.R=M_.prototype;_.R.insert=function(f,H){var v=this.nodes_;v.push(new W7(f,H));f=v.length-1;H=this.nodes_;for(v=H[f];f>0;){var t=f-1>>1;if(H[t].JSC$11471_key_>v.JSC$11471_key_)H[f]=H[t],f=t;else break}H[f]=v};
_.R.remove=function(){var f=this.nodes_,H=f.length,v=f[0];if(!(H<=0)){if(H==1)f.length=0;else{f[0]=f.pop();f=0;H=this.nodes_;for(var t=H.length,M=H[f];f<t>>1;){var h=f*2+1,y=f*2+2;h=y<t&&H[y].JSC$11471_key_<H[h].JSC$11471_key_?y:h;if(H[h].JSC$11471_key_>M.JSC$11471_key_)break;H[f]=H[h];f=h}H[f]=M}return v.getValue()}};
_.R.peek=function(){var f=this.nodes_;if(f.length!=0)return f[0].getValue()};
_.R.getValues=function(){for(var f=this.nodes_,H=[],v=f.length,t=0;t<v;t++)H.push(f[t].getValue());return H};
_.R.getKeys=function(){for(var f=this.nodes_,H=[],v=f.length,t=0;t<v;t++)H.push(f[t].JSC$11471_key_);return H};
_.R.containsValue=function(f){return this.nodes_.some(function(H){return H.getValue()==f})};
_.R.containsKey=function(f){return this.nodes_.some(function(H){return H.JSC$11471_key_==f})};
_.R.clone=function(){return new M_(this)};
_.R.getCount=function(){return this.nodes_.length};
_.R.isEmpty=function(){return this.nodes_.length===0};
_.R.clear=function(){this.nodes_.length=0};_.hH=function(f,H){this.JSC$11477_map_={};this.JSC$11477_keys_=[];this.version_=this.size=0;var v=arguments.length;if(v>1){if(v%2)throw Error("ka");for(var t=0;t<v;t+=2)this.set(arguments[t],arguments[t+1])}else f&&this.addAll(f)};
_.R=_.hH.prototype;_.R.getCount=function(){return this.size};
_.R.getValues=function(){Rq(this);for(var f=[],H=0;H<this.JSC$11477_keys_.length;H++)f.push(this.JSC$11477_map_[this.JSC$11477_keys_[H]]);return f};
_.R.getKeys=function(){Rq(this);return this.JSC$11477_keys_.concat()};
_.R.containsKey=function(f){return this.has(f)};
_.R.has=function(f){return VH(this.JSC$11477_map_,f)};
_.R.containsValue=function(f){for(var H=0;H<this.JSC$11477_keys_.length;H++){var v=this.JSC$11477_keys_[H];if(VH(this.JSC$11477_map_,v)&&this.JSC$11477_map_[v]==f)return!0}return!1};
_.R.equals=function(f,H){if(this===f)return!0;if(this.size!=f.getCount())return!1;H=H||o6b;Rq(this);for(var v,t=0;v=this.JSC$11477_keys_[t];t++)if(!H(this.get(v),f.get(v)))return!1;return!0};
var o6b=function(f,H){return f===H};
_.hH.prototype.isEmpty=function(){return this.size==0};
_.hH.prototype.clear=function(){this.JSC$11477_map_={};this.version_=this.size=this.JSC$11477_keys_.length=0};
_.hH.prototype.remove=function(f){return this.delete(f)};
_.hH.prototype.delete=function(f){return VH(this.JSC$11477_map_,f)?(delete this.JSC$11477_map_[f],--this.size,this.version_++,this.JSC$11477_keys_.length>2*this.size&&Rq(this),!0):!1};
var Rq=function(f){if(f.size!=f.JSC$11477_keys_.length){for(var H=0,v=0;H<f.JSC$11477_keys_.length;){var t=f.JSC$11477_keys_[H];VH(f.JSC$11477_map_,t)&&(f.JSC$11477_keys_[v++]=t);H++}f.JSC$11477_keys_.length=v}if(f.size!=f.JSC$11477_keys_.length){H={};for(t=v=0;v<f.JSC$11477_keys_.length;){var M=f.JSC$11477_keys_[v];VH(H,M)||(f.JSC$11477_keys_[t++]=M,H[M]=1);v++}f.JSC$11477_keys_.length=t}};
_.R=_.hH.prototype;_.R.get=function(f,H){return VH(this.JSC$11477_map_,f)?this.JSC$11477_map_[f]:H};
_.R.set=function(f,H){VH(this.JSC$11477_map_,f)||(this.size+=1,this.JSC$11477_keys_.push(f),this.version_++);this.JSC$11477_map_[f]=H};
_.R.addAll=function(f){if(f instanceof _.hH)for(var H=f.getKeys(),v=0;v<H.length;v++)this.set(H[v],f.get(H[v]));else for(H in f)this.set(H,f[H])};
_.R.forEach=function(f,H){for(var v=this.getKeys(),t=0;t<v.length;t++){var M=v[t],h=this.get(M);f.call(H,h,M,this)}};
_.R.clone=function(){return new _.hH(this)};
_.R.transpose=function(){for(var f=new _.hH,H=0;H<this.JSC$11477_keys_.length;H++){var v=this.JSC$11477_keys_[H];f.set(this.JSC$11477_map_[v],v)}return f};
_.R.keys=function(){return H1n(this.__iterator__(!0)).toEs6()};
_.R.values=function(){return H1n(this.__iterator__(!1)).toEs6()};
_.R.entries=function(){var f=this;return s9n(this.keys(),function(H){return[H,f.get(H)]})};
_.R.__iterator__=function(f){Rq(this);var H=0,v=this.version_,t=this,M=new HD;M.next=function(){if(v!=t.version_)throw Error("pe");if(H>=t.JSC$11477_keys_.length)return vD;var h=t.JSC$11477_keys_[H++];return tA(f?h:t.JSC$11477_map_[h])};
return M};
var VH=function(f,H){return Object.prototype.hasOwnProperty.call(f,H)};var pKh=function(){this.JSC$11480_map_=new _.hH;this.JSC$11480_head_=new n6a("");this.JSC$11480_head_.next=this.JSC$11480_head_.prev=this.JSC$11480_head_},QuM=function(f,H){if(H=f.JSC$11480_map_.get(H))H.remove(),f.insert_(H);
return H};
_.R=pKh.prototype;_.R.get=function(f,H){return(f=QuM(this,f))?f.value:H};
_.R.set=function(f,H){var v=QuM(this,f);v?v.value=H:(v=new n6a(f,H),this.JSC$11480_map_.set(f,v),this.insert_(v))};
_.R.peek=function(){return this.JSC$11480_head_.next.value};
_.R.shift=function(){return uAr(this,this.JSC$11480_head_.next)};
_.R.pop=function(){return uAr(this,this.JSC$11480_head_.prev)};
_.R.remove=function(f){return(f=this.JSC$11480_map_.get(f))?(this.removeNode(f),!0):!1};
_.R.removeNode=function(f){f.remove();this.JSC$11480_map_.remove(f.key)};
_.R.getCount=function(){return this.JSC$11480_map_.getCount()};
_.R.isEmpty=function(){return this.JSC$11480_map_.isEmpty()};
_.R.getKeys=function(){return this.map(function(f,H){return H})};
_.R.getValues=function(){return this.map(function(f){return f})};
_.R.contains=function(f){return this.some(function(H){return H==f})};
_.R.containsKey=function(f){return this.JSC$11480_map_.containsKey(f)};
_.R.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11480_head_.prev)};
_.R.forEach=function(f,H){for(var v=this.JSC$11480_head_.next;v!=this.JSC$11480_head_;v=v.next)f.call(H,v.value,v.key,this)};
_.R.map=function(f,H){for(var v=[],t=this.JSC$11480_head_.next;t!=this.JSC$11480_head_;t=t.next)v.push(f.call(H,t.value,t.key,this));return v};
_.R.some=function(f,H){for(var v=this.JSC$11480_head_.next;v!=this.JSC$11480_head_;v=v.next)if(f.call(H,v.value,v.key,this))return!0;return!1};
_.R.every=function(f,H){for(var v=this.JSC$11480_head_.next;v!=this.JSC$11480_head_;v=v.next)if(!f.call(H,v.value,v.key,this))return!1;return!0};
_.R.insert_=function(f){f.next=this.JSC$11480_head_.next;f.prev=this.JSC$11480_head_;this.JSC$11480_head_.next=f;for(f.next.prev=f;this.getCount()>100;)this.removeNode(this.JSC$11480_head_.prev)};
var uAr=function(f,H){f.JSC$11480_head_!=H&&f.removeNode(H);return H.value},n6a=function(f,H){this.key=f;
this.value=H};
n6a.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var aIo=function(){M_.apply(this,arguments)};
_.e(aIo,M_);aIo.prototype.enqueue=function(f,H){this.insert(f,H)};var PVb=function(){var f=Error();f.name="SecurityError";throw f;},nes=function(){return{get opener(){return null},
get closed(){return!0},get location(){PVb()},get document(){PVb()},postMessage:function(){},
close:function(){},
focus:function(){}}};var Cs3={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 chN={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 GKr={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(chN).join("|");var CVo=function(){function f(m){m.substr(-1)!==";"&&(m+=";");return y(m)}
for(var H=Object.keys(GKr).sort(NQN),v=Object.keys(chN).sort(NQN),t=0,M=0;t<v.length;t++)H[M]===v[t]?(v[t]+=";?",M++):v[t]+=";";var h=new RegExp("&(?:"+v.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),y=X4R();return function(m){return String(m).replace(h,f)}}();/*

 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 E69={};var N9n=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"),cVh=/[\\&]/,XKg=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),AVH=RegExp('[&<>"]',"g"),buM=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),iuH=function(f){return f.charCodeAt(0)===92?f.charAt(1):CVo(f)},kKC=function(f){return cVh.test(f)?f.replace(XKg,iuH):f},T9b=function(f){try{var H,v="";
if(typeof M!=="string"){var t=M;var M=";/?:@&=+$,-_.!~*'()#"}typeof t==="undefined"&&(t=!0);var h,y=E69[M];if(y)var m=y;else{y=E69[M]=[];for(h=0;h<128;h++){var W=String.fromCharCode(h);/^[0-9a-z]$/i.test(W)?y.push(W):y.push("%"+("0"+h.toString(16).toUpperCase()).slice(-2))}for(h=0;h<M.length;h++)y[M.charCodeAt(h)]=M[h];m=y}var I=0;for(H=f.length;I<H;I++){var S=f.charCodeAt(I);if(t&&S===37&&I+2<H&&/^[0-9a-f]{2}$/i.test(f.slice(I+1,I+3)))v+=f.slice(I,I+3),I+=2;else if(S<128)v+=m[S];else if(S>=55296&&
S<=57343){if(S>=55296&&S<=56319&&I+1<H){var d=f.charCodeAt(I+1);if(d>=56320&&d<=57343){v+=encodeURIComponent(f[I]+f[I+1]);I++;continue}}v+="%EF%BF%BD"}else v+=encodeURIComponent(f[I])}return v}catch(Z){return f}},wKM=function(f){switch(f){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return f}},yH=function(f,H){return AVH.test(f)?H?f.replace(buM,wKM):f.replace(AVH,wKM):f};/*

 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 Y3;if(String.fromCodePoint)Y3=function(f){try{return String.fromCodePoint(f)}catch(H){if(H instanceof RangeError)return String.fromCharCode(65533);throw H;}};
else{var qVo=String.fromCharCode,fE_=Math.floor;Y3=function(){var f=[],H=-1,v=arguments.length;if(!v)return"";for(var t="";++H<v;){var M=Number(arguments[H]);if(!isFinite(M)||M<0||M>1114111||fE_(M)!==M)return String.fromCharCode(65533);if(M<=65535)f.push(M);else{M-=65536;var h=(M>>10)+55296;M=M%1024+56320;f.push(h,M)}if(H+1===v||f.length>16384)t+=qVo.apply(null,f),f.length=0}return t}};var HVC=function(f){this.root=this.current=f;this.entering=!0};
HVC.prototype.next=function(){var f=this.current,H=this.entering;if(f===null)return null;a:switch(f._type){case "document":case "block_quote":case "list":case "item":case "paragraph":case "heading":case "emph":case "strong":case "link":case "image":case "custom_inline":case "custom_block":case "table":case "row":case "th":case "td":var v=!0;break a;default:v=!1}H&&v?f._firstChild?(this.current=f._firstChild,this.entering=!0):this.entering=!1:f===this.root?this.current=null:f._next===null?(this.current=
f._parent,this.entering=!1):(this.current=f._next,this.entering=!0);return{entering:H,node:f}};
var Sq=function(f,H){this._type=f;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=H;this._lastLineBlank=!1;this._open=!0;this._literal=this._string_content=null;this._listData={};this._title=this._destination=this._info=null;this._isFenced=!1;this._fenceChar=null;this._fenceLength=0;this._onExit=this._onEnter=this._level=this._fenceOffset=null};
Sq.prototype.appendChild=function(f){f.unlink();f._parent=this;this._lastChild?(this._lastChild._next=f,f._prev=this._lastChild):this._firstChild=f;this._lastChild=f};
Sq.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 vKH=function(f,H){H.unlink();H._next=f._next;H._next&&(H._next._prev=H);H._prev=f;f._next=H;H._parent=f._parent;H._next||(H._parent._lastChild=H)};
Sq.prototype.insertBefore=function(f){f.unlink();f._prev=this._prev;f._prev&&(f._prev._next=f);f._next=this;this._prev=f;f._parent=this._parent;f._prev||(f._parent._firstChild=f)};
_.H7.Object.defineProperties(Sq.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(f){this._literal=f}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(f){this._destination=f}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(f){this._title=f}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(f){this._info=f}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(f){this._level=f}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(f){this._listData.type=f}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(f){this._listData.tight=f}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(f){this._listData.start=f}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(f){this._onEnter=f}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(f){this._onExit=f}}});var AhR=/[ \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,
b6R={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 t2a=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]/),
M2_=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),h0o=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),R0T=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),V2C=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),yEg=/`+/,YRb=/^`+/,mYb=/\.\.\./g,$YM=/--+/g,W3o=/^<([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])?)*)>/,
OVC=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,gKr=/^ *(?:\n *)?/,IEZ=/^[ \t\n\x0b\x0c\x0d]/,SRr=/[ \t\n\x0b\x0c\x0d]+/g,dYZ=/^\s/,jma=/ *$/,smC=/^ */,ZV9=/^ *(?:\n|$)/,JEH=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),lEH=/^[^\n`\[\]\\!<&*_'"]+/m,m4=function(f){var H=new Sq("text");H._literal=f;return H},$3=function(f){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=f||{}};
$3.prototype.match=function(f){f=f.exec(this.subject.slice(this.pos));if(f===null)return null;this.pos+=f.index+f[0].length;return f[0]};
$3.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var Ww=function(f){f.match(gKr);return!0},UYa=function(f,H,v){var t=0;
var M=f.pos;if(H===39||H===34)t++,f.pos++;else for(;f.peek()===H;)t++,f.pos++;if(t===0)t=null;else{var h=M===0?"\n":f.subject.charAt(M-1);var y=f.peek();y=y===-1?"\n":Y3(y);var m=dYZ.test(y);y=t2a.test(y);var W=dYZ.test(h);var I=t2a.test(h);h=!m&&!(y&&!W&&!I);m=!W&&!(I&&!m&&!y);H===95?(W=h&&(!m||I),y=m&&(!h||y)):(W=H===39||H===34?h&&!m:h,y=m);f.pos=M;t={numdelims:t,can_open:W,can_close:y}}if(!t)return!1;M=t.numdelims;y=f.pos;f.pos+=M;y=H===39?"\u2019":H===34?"\u201c":f.subject.slice(y,f.pos);y=m4(y);
v.appendChild(y);f.delimiters={cc:H,numdelims:M,origdelims:M,node:y,previous:f.delimiters,next:null,can_open:t.can_open,can_close:t.can_close};f.delimiters.previous!==null&&(f.delimiters.previous.next=f.delimiters);return!0},e0n=function(f,H){H.previous!==null&&(H.previous.next=H.next);
H.next===null?f.delimiters=H.previous:H.next.previous=H.previous},L3C=function(f,H){var v,t,M=[],h=!1;
M[95]=H;M[42]=H;M[39]=H;M[34]=H;for(v=f.delimiters;v!==null&&v.previous!==H;)v=v.previous;for(;v!==null;){var y=v.cc;if(v.can_close){var m=v.previous;for(t=!1;m!==null&&m!==H&&m!==M[y];){h=(v.can_open||m.can_close)&&(m.origdelims+v.origdelims)%3===0;if(m.cc===v.cc&&m.can_open&&!h){t=!0;break}m=m.previous}var W=v;if(y===42||y===95)if(t){var I=v.numdelims>=2&&m.numdelims>=2?2:1;var S=m.node;var d=v.node;m.numdelims-=I;v.numdelims-=I;S._literal=S._literal.slice(0,S._literal.length-I);d._literal=d._literal.slice(0,
d._literal.length-I);var Z=new Sq(I===1?"emph":"strong");for(I=S._next;I&&I!==d;){var l=I._next;I.unlink();Z.appendChild(I);I=l}vKH(S,Z);I=m;l=v;I.next!==l&&(I.next=l,l.previous=I);m.numdelims===0&&(S.unlink(),e0n(f,m));v.numdelims===0&&(d.unlink(),m=v.next,e0n(f,v),v=m)}else v=v.next;else y===39?(v.node._literal="\u2019",t&&(m.node._literal="\u2018"),v=v.next):y===34&&(v.node._literal="\u201d",t&&(m.node.literal="\u201c"),v=v.next);t||h||(M[y]=W.previous,W.can_open||e0n(f,W))}else v=v.next}for(;f.delimiters!==
null&&f.delimiters!==H;)e0n(f,f.delimiters)},xYH=function(f){f=f.match(M2_);
return f===null?null:kKC(f.substr(1,f.length-2))},B6a=function(f){var H=f.match(h0o);
if(H===null){H=f.pos;for(var v=0,t;(t=f.peek())!==-1;)if(t===92)f.pos+=1,f.peek()!==-1&&(f.pos+=1);else if(t===40)f.pos+=1,v+=1;else if(t===41)if(v<1)break;else f.pos+=1,--v;else if(IEZ.exec(Y3(t))!==null)break;else f.pos+=1;H=f.subject.substr(H,f.pos-H);return T9b(kKC(H))}return T9b(kKC(H.substr(1,H.length-2)))},z0T=function(f){f=f.match(JEH);
return f===null||f.length>1001?0:f.length},F3H=function(f,H,v,t){f.brackets!==null&&(f.brackets.bracketAfter=!0);
f.brackets={node:H,previous:f.brackets,previousDelimiter:f.delimiters,index:v,image:t,active:!0}},rE_=function(f,H){var v;
return(v=f.match(lEH))?(f.options.smart?H.appendChild(m4(v.replace(mYb,"\u2026").replace($YM,function(t){var M=0,h=0;t.length%3===0?h=t.length/3:t.length%2===0?M=t.length/2:t.length%3===2?(M=1,h=(t.length-2)/3):(M=2,h=(t.length-4)/3);t="";var y;for(y=0;y<h;y++)t+="\u2014";for(y=0;y<M;y++)t+="\u2013";return t}))):H.appendChild(m4(v)),!0):!1},K3v=function(f,H,v){f.subject=H;
f.pos=0;H=f.pos;var t=z0T(f);if(t===0)return 0;var M=f.subject.substr(0,t);if(f.peek()===58)f.pos++;else return f.pos=H,0;Ww(f);t=B6a(f);if(t===null||t.length===0)return f.pos=H,0;var h=f.pos;Ww(f);var y=xYH(f);y===null&&(y="",f.pos=h);var m=!0;f.match(ZV9)===null&&(y===""?m=!1:(y="",f.pos=h,m=f.match(ZV9)!==null));if(!m)return f.pos=H,0;M=i6e(M);if(M==="")return f.pos=H,0;v[M]||(v[M]={destination:t,title:y});return f.pos-H},DYh=function(f,H){var v,t=f.peek();
if(t===-1)return!1;switch(t){case 10:f.pos+=1;if((v=H._lastChild)&&v.type==="text"&&v._literal[v._literal.length-1]===" "){var M=v._literal[v._literal.length-2]===" ";v._literal=v._literal.replace(jma,"");H.appendChild(new Sq(M?"linebreak":"softbreak"))}else H.appendChild(new Sq("softbreak"));f.match(smC);v=!0;break;case 92:v=f.subject;f.pos+=1;f.peek()===10?(f.pos+=1,v=new Sq("linebreak"),H.appendChild(v)):R0T.test(v.charAt(f.pos))?(H.appendChild(m4(v.charAt(f.pos))),f.pos+=1):H.appendChild(m4("\\"));
v=!0;break;case 96:a:if(v=f.match(YRb),v===null)v=!1;else{M=f.pos;for(var h;(h=f.match(yEg))!==null;)if(h===v){h=new Sq("code");h._literal=f.subject.slice(M,f.pos-v.length).trim().replace(SRr," ");H.appendChild(h);v=!0;break a}f.pos=M;H.appendChild(m4(v));v=!0}break;case 42:case 95:v=UYa(f,t,H);break;case 39:case 34:v=f.options.smart&&UYa(f,t,H);break;case 91:v=f.pos;f.pos+=1;M=m4("[");H.appendChild(M);F3H(f,M,v,!1);v=!0;break;case 33:v=f.pos;f.pos+=1;f.peek()===91?(f.pos+=1,M=m4("!["),H.appendChild(M),
F3H(f,M,v+1,!0)):H.appendChild(m4("!"));v=!0;break;case 93:var y,m=!1,W;f.pos+=1;var I=f.pos;M=f.brackets;if(M===null)H.appendChild(m4("]"));else if(M.active){v=M.image;var S=f.pos;f.peek()===40&&(f.pos++,Ww(f)&&(h=B6a(f))!==null&&Ww(f)&&(IEZ.test(f.subject.charAt(f.pos-1))&&(y=xYH(f)),1)&&Ww(f)&&f.peek()===41?(f.pos+=1,m=!0):f.pos=S);if(!m){var d=f.pos,Z=z0T(f);Z>2?W=f.subject.slice(d,d+Z):M.bracketAfter||(W=f.subject.slice(M.index,I));Z===0&&(f.pos=S);W&&(W=f.refmap[i6e(W)])&&(h=W.destination,y=
W.title,m=!0)}if(m){I=new Sq(v?"image":"link");I._destination=h;I._title=y||"";for(h=M.node._next;h;)y=h._next,h.unlink(),I.appendChild(h),h=y;H.appendChild(I);L3C(f,M.previousDelimiter);f.brackets=f.brackets.previous;M.node.unlink();if(!v)for(M=f.brackets;M!==null;)M.image||(M.active=!1),M=M.previous}else f.brackets=f.brackets.previous,f.pos=I,H.appendChild(m4("]"))}else H.appendChild(m4("]")),f.brackets=f.brackets.previous;v=!0;break;case 60:(v=f.match(W3o))?(v=v.slice(1,v.length-1),M=new Sq("link"),
M._destination=T9b("mailto:"+v),M._title="",M.appendChild(m4(v)),H.appendChild(M),v=!0):(v=f.match(OVC))?(v=v.slice(1,v.length-1),M=new Sq("link"),M._destination=T9b(v),M._title="",M.appendChild(m4(v)),H.appendChild(M),v=!0):v=!1;v||(v=f.match(N9n),v===null?v=!1:(M=new Sq("html_inline"),M._literal=v,H.appendChild(M),v=!0));break;case 38:(v=f.match(V2C))?(H.appendChild(m4(CVo(v))),v=!0):v=!1;break;default:v=rE_(f,H)}v||(f.pos+=1,H.appendChild(m4(Y3(t))));return!0};
$3.prototype.parseInlines=function(f){this.subject=f._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;DYh(this,f););f._string_content=null;L3C(this,null)};
$3.prototype.parse=$3.prototype.parseInlines;var oKT=[/./,/^<(?: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")],nKT=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],pnC=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,QmZ=/^[#`~*+_=<>0-9-\|]|\|/,uWh=/[^ \t\f\v\r\n]/,aEb=/^[*+-]/,PEr=/^(\d{1,9})([.)])/,GIn=/^#{1,6}(?:[ \t]+|$)/,CEZ=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,EKn=/^(?:`{3,}|~{3,})(?= *$)/,N6b=/^(?:=+|-+)[ \t]*$/,cEh=/\r\n|\n|\r/,TQT=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,w4B=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,Xnn={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(f){return f!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(f,H){for(f=H._firstChild;f;){if(k_N(f)&&f._next){H._listData.tight=!1;break}for(var v=f._firstChild;v;){if(k_N(v)&&(f._next||v._next)){H._listData.tight=!1;break}v=v._next}f=f._next}},
canContain:function(f){return f==="item"},
acceptsLines:!1},block_quote:{continue:function(f){var H=f.currentLine;if(f.indented||gI(H,f.nextNonspace)!==62)return 1;O8(f);gS(f,1,!1);Oe(gI(H,f.offset))&&gS(f,1,!0);return 0},
finalize:function(){},
canContain:function(f){return f!=="item"},
acceptsLines:!1},item:{continue:function(f,H){if(f.blank){if(H._firstChild==null)return 1;O8(f)}else if(f.indent>=H._listData.markerOffset+H._listData.padding)gS(f,H._listData.markerOffset+H._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(f){return f!=="item"&&!q$v(f)},
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(f,H){var v=f.currentLine,t=f.indent;if(H._isFenced){if((t=t<=3&&v.charAt(f.nextNonspace)===H._fenceChar&&v.slice(f.nextNonspace).match(EKn))&&t[0].length>=H._fenceLength)return f.finalize(H,f.lineNumber),2;for(H=H._fenceOffset;H>0&&Oe(gI(v,f.offset));)gS(f,1,!0),H--}else if(t>=4)gS(f,4,!0);else if(f.blank)O8(f);else return 1;return 0},
finalize:function(f,H){if(H._isFenced){var v=H._string_content,t=v.indexOf("\n");f=v.slice(0,t);v=v.slice(t+1);H.info=kKC(f.trim());H._literal=v}else H._literal=H._string_content.replace(/(\n *)+$/,"\n");H._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(f,H){return!f.blank||H._htmlBlockType!==6&&H._htmlBlockType!==7?0:1},
finalize:function(f,H){H._literal=H._string_content.replace(/(\n *)+$/,"");H._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(f){return f.blank?1:0},
finalize:function(f,H){for(var v,t=!1;gI(H._string_content,0)===91&&(v=K3v(f.inlineParser,H._string_content,f.refmap));)H._string_content=H._string_content.slice(v),t=!0;t&&!uWh.test(H._string_content)&&H.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(f){return IW(f.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(f){return f=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(f,H){if(!H._rowIsDelimiter){f=H._isHeader?"th":"td";for(var v=H._parent._tableColumns,t=H._string_content,M=0,h="",y,m=H._sourcepos[0][0];M<t.length;){switch(t[M]){case "|":y&&(y._string_content=h.trim(),h="",y=null,v--,v<=0&&(M=t.length));break;default:if(!y){y=new Sq(f,[[m,M],[m,M]]);var W=H._parent._columnAlignment,I=H._parent._tableColumns-v;W&&I<=W.length&&I>=0&&(y._alignment=W[I]);H.appendChild(y)}h+=t[M];y._sourcepos[1][1]=M}M++}y&&(y._string_content=h.trim());H._string_content=
""}},
canContain:function(f){return f!=="row"},
acceptsLines:!1}},AET=[function(f){if(f.indented||gI(f.currentLine,f.nextNonspace)!==62)return 0;O8(f);gS(f,1,!1);Oe(gI(f.currentLine,f.offset))&&gS(f,1,!0);Iq(f);f.addChild("block_quote",f.nextNonspace);return 1},
function(f){var H;if(!f.indented&&(H=f.currentLine.slice(f.nextNonspace).match(GIn))){O8(f);gS(f,H[0].length,!1);Iq(f);var v=f.addChild("heading",f.nextNonspace);v.level=H[0].trim().length;v._string_content=f.currentLine.slice(f.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");gS(f,f.currentLine.length-f.offset);return 2}return 0},
function(f){var H;if(!f.indented&&(H=f.currentLine.slice(f.nextNonspace).match(CEZ))){var v=H[0].length;Iq(f);var t=f.addChild("code_block",f.nextNonspace);t._isFenced=!0;t._fenceLength=v;t._fenceChar=H[0][0];t._fenceOffset=f.indent;O8(f);gS(f,v,!1);return 2}return 0},
function(f,H){if(!f.indented&&gI(f.currentLine,f.nextNonspace)===60){var v=f.currentLine.slice(f.nextNonspace),t;for(t=1;t<=7;t++)if(oKT[t].test(v)&&(t<7||H.type!=="paragraph"))return Iq(f),f.addChild("html_block",f.offset)._htmlBlockType=t,2}return 0},
function(f,H){var v;if(!f.indented&&H.type==="paragraph"&&(v=f.currentLine.slice(f.nextNonspace).match(N6b))){Iq(f);var t=new Sq("heading",H.sourcepos);t.level=v[0][0]==="="?1:2;t._string_content=H._string_content;vKH(H,t);H.unlink();f.tip=t;gS(f,f.currentLine.length-f.offset,!1);return 2}return 0},
function(f){return!f.indented&&pnC.test(f.currentLine.slice(f.nextNonspace))?(Iq(f),f.addChild("thematic_break",f.nextNonspace),gS(f,f.currentLine.length-f.offset,!1),2):0},
function(f,H){var v,t;if(!(t=f.indented&&H.type!=="list")){a:{var M=H,h=f.currentLine.slice(f.nextNonspace);t={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:f.indent};if(v=h.match(aEb))t.type="bullet",t.bulletChar=v[0][0];else{if(!(v=h.match(PEr))||M.type==="paragraph"&&v[1]!=="1"){v=null;break a}t.type="ordered";t.start=parseInt(v[1],10);t.delimiter=v[2]}var y=gI(f.currentLine,f.nextNonspace+v[0].length);if(y!==-1&&y!==9&&y!==32||M.type==="paragraph"&&!f.currentLine.slice(f.nextNonspace+
v[0].length).match(uWh))v=null;else{O8(f);gS(f,v[0].length,!0);M=f.column;h=f.offset;do gS(f,1,!0),y=gI(f.currentLine,f.offset);while(f.column-M<5&&Oe(y));y=gI(f.currentLine,f.offset)===-1;var m=f.column-M;m>=5||m<1||y?(t.padding=v[0].length+1,f.column=M,f.offset=h,Oe(gI(f.currentLine,f.offset))&&gS(f,1,!0)):t.padding=v[0].length+m;v=t}}t=!v}if(t)return 0;Iq(f);(t=f.tip.type!=="list")||(H=H._listData,t=!(H.type===v.type&&H.delimiter===v.delimiter&&H.bulletChar===v.bulletChar));t&&(H=f.addChild("list",
f.nextNonspace),H._listData=v);H=f.addChild("item",f.nextNonspace);H._listData=v;return 1},
function(f){var H;return((H=f.options.shouldParseIndentAsCodeBlock)!=null?H:1)&&f.indented&&f.tip.type!=="paragraph"&&!f.blank?(gS(f,4,!0),Iq(f),f.addChild("code_block",f.offset),2):0},
function(f,H){var v=IW(f.currentLine),t=IW(f.lookahead);if(v!==0&&t<0&&Math.abs(v)==Math.abs(t)&&!q$v(H.type)){Iq(f);H=f.addChild("table",f.nextNonspace);H._tableRows=1;H._tableColumns=Math.abs(v);v=f.lookahead;if(w4B.test(v)){t=[];for(var M=0,h=!1,y=0,m=void 0;M<v.length;){var W=y>=3;switch(v[M]){case "-":y++;break;case "|":h&&(t.push(m),m=void 0,y=0);h=!0;break;case ":":m||W||(m="left"),!m&&W&&(m="right"),m==="left"&&W&&(m="center")}M++}v=t}else v=void 0;H._columnAlignment=v;H=f.addChild("row",
f.nextNonspace);H._isHeader=!0;gS(f,f.currentLine.length-f.offset,!1);H._string_content=f.currentLine;return 1}return 0},
function(f,H){if(H.type=="table"&&IW(f.currentLine)!==0){Iq(f);var v=H;H=f.addChild("row",f.nextNonspace);IW(f.currentLine)<0?H._rowIsDelimiter=!0:v._tableRows+=1;gS(f,f.currentLine.length-f.offset,!1);H._string_content=f.currentLine;return 2}return 0}],dhR=function(){var f={shouldParseIndentAsCodeBlock:!1};
f=f===void 0?{}:f;this.lastMatchedContainer=this.doc=feb();this.refmap={};this.lastLineLength=0;this.inlineParser=new $3(f);this.options=f;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=Xnn;this.blockStarts=AET},bVT=function(f){f.partiallyConsumedTab&&(f.offset+=1,f.tip._string_content+=" ".repeat(4-f.column%
4));
f.tip._string_content+=f.currentLine.slice(f.offset)+"\n"};
dhR.prototype.addChild=function(f,H){for(;!this.blocks[this.tip.type].canContain(f);)this.finalize(this.tip,this.lineNumber-1);f=new Sq(f,[[this.lineNumber,H+1],[0,0]]);f._string_content="";this.tip.appendChild(f);return this.tip=f};
var Iq=function(f){if(!f.allClosed){for(;f.oldtip!==f.lastMatchedContainer;){var H=f.oldtip._parent;f.finalize(f.oldtip,f.lineNumber-1);f.oldtip=H}f.allClosed=!0}},gS=function(f,H,v){for(var t=f.currentLine,M,h;H>0&&(h=t[f.offset]);)h==="\t"?(M=4-f.column%4,v?(f.partiallyConsumedTab=M>H,M=M>H?H:M,f.column+=M,f.offset+=f.partiallyConsumedTab?0:1,H-=M):(f.partiallyConsumedTab=!1,f.column+=M,f.offset+=1,--H)):(f.partiallyConsumedTab=!1,f.offset+=1,f.column+=1,--H)},O8=function(f){f.offset=f.nextNonspace;
f.column=f.nextNonspaceColumn;f.partiallyConsumedTab=!1},iVg=function(f){for(var H=f.currentLine,v=f.offset,t=f.column,M;(M=H.charAt(v))!=="";)if(M===" ")v++,t++;
else if(M==="\t")v++,t+=4-t%4;else break;f.blank=M==="\n"||M==="\r"||M==="";f.nextNonspace=v;f.nextNonspaceColumn=t;f.indent=f.nextNonspaceColumn-f.column;f.indented=f.indent>=4};
dhR.prototype.finalize=function(f,H){var v=f._parent;f._open=!1;f.sourcepos[1]=[H,this.lastLineLength];this.blocks[f.type].finalize(this,f);this.tip=v};
dhR.prototype.parse=function(f){this.tip=this.doc=feb();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!f)return this.doc;this.options.time&&console.time("preparing input");var H=f.split(cEh),v=H.length;f.charCodeAt(f.length-1)===10&&--v;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(f=0;f<v;f++)a:{var t=void 0,M=H[f],h=H[f+1],y=!0,m=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;M.indexOf("\x00")!==-1&&(M=M.replace(/\0/g,"\ufffd"));this.currentLine=M;for(this.lookahead=h;(t=m._lastChild)&&t._open;){m=t;iVg(this);switch(this.blocks[m.type].continue(this,m)){case 0:break;case 1:y=!1;break;case 2:this.lastLineLength=M.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!y){m=m._parent;break}}this.allClosed=m===this.oldtip;this.lastMatchedContainer=
m;t=m.type!=="paragraph"&&Xnn[m.type].acceptsLines;h=this.blockStarts;for(y=h.length;!t;){iVg(this);if(!this.indented&&!QmZ.test(M.slice(this.nextNonspace))){O8(this);break}for(var W=0;W<y;){var I=h[W](this,m);if(I===1){m=this.tip;break}else if(I===2){m=this.tip;t=!0;break}else W++}if(W===y){O8(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){Iq(this);this.blank&&m.lastChild&&(m.lastChild._lastLineBlank=!0);t=m.type;h=this.blank&&!(t==="block_quote"||t==="code_block"&&m._isFenced||
t==="item"&&!m._firstChild&&m.sourcepos[0][0]===this.lineNumber);for(y=m;y;)y._lastLineBlank=h,y=y._parent;this.blocks[t].acceptsLines?(bVT(this),t==="html_block"&&m._htmlBlockType>=1&&m._htmlBlockType<=5&&nKT[m._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(m,this.lineNumber)):this.offset<M.length&&!this.blank&&(this.addChild("paragraph",this.offset),O8(this),bVT(this))}else bVT(this);this.lastLineLength=M.length}for(;this.tip;)this.finalize(this.tip,v);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");M=new HVC(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;v=M.next();)H=v.node,f=H.type,v.entering||f!=="paragraph"&&f!=="heading"&&f!=="th"&&f!="td"||this.inlineParser.parse(H);this.options.time&&console.timeEnd("inline parsing");return this.doc};Hh5.prototype.render=function(f){f=new HVC(f);var H;this.buffer="";for(this.lastOut="\n";H=f.next();){var v=H.node.type;if(this[v])this[v](H.node,H.entering)}return this.buffer};
Hh5.prototype.out=function(f){SH(this,f)};
var SH=function(f,H){f.buffer+=H;f.lastOut=H};
Hh5.prototype.cr=function(){this.lastOut!=="\n"&&SH(this,"\n")};var kIr=/^javascript:|vbscript:|file:|data:/i,T6h=/^data:image\/(?:png|gif|jpeg|webp)/i,wng=function(f){return kIr.test(f)&&!T6h.test(f)};
dI.prototype=Object.create(Hh5.prototype);_.R=dI.prototype;_.R.text=function(f){this.out(f.literal)};
_.R.html_inline=function(f){this.options.safe?SH(this,"\x3c!-- raw HTML omitted --\x3e"):SH(this,f.literal)};
_.R.html_block=function(f){this.cr();this.options.safe?SH(this,"\x3c!-- raw HTML omitted --\x3e"):SH(this,f.literal);this.cr()};
_.R.softbreak=function(){SH(this,this.options.softbreak)};
_.R.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.R.link=function(f,H){var v=this.attrs(f);H?(this.options.safe&&wng(f.destination)||v.push(["href",yH(f.destination,!0)]),f.title&&v.push(["title",yH(f.title,!0)]),this.tag("a",v)):this.tag("/a")};
_.R.image=function(f,H){H?(this.disableTags===0&&(this.options.safe&&wng(f.destination)?SH(this,'<img src="" alt="'):SH(this,'<img src="'+yH(f.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(f.title&&SH(this,'" title="'+yH(f.title,!0)),SH(this,'" />')))};
_.R.emph=function(f,H){this.tag(H?"em":"/em")};
_.R.strong=function(f,H){this.tag(H?"strong":"/strong")};
_.R.paragraph=function(f,H){var v=f.parent.parent;f=this.attrs(f);v!==null&&v.type==="list"&&v.listTight||(H?(this.cr(),this.tag("p",f)):(this.tag("/p"),this.cr()))};
_.R.heading=function(f,H){var v="h"+f.level;f=this.attrs(f);H?(this.cr(),this.tag(v,f)):(this.tag("/"+v),this.cr())};
_.R.code=function(f){this.tag("code");this.out(f.literal);this.tag("/code")};
_.R.code_block=function(f){var H=f.info?f.info.split(/\s+/):[],v=this.attrs(f);H.length>0&&H[0].length>0&&v.push(["class","language-"+yH(H[0],!0)]);this.cr();this.tag("pre");this.tag("code",v);this.out(f.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.R.thematic_break=function(f){f=this.attrs(f);this.cr();this.tag("hr",f,!0);this.cr()};
_.R.block_quote=function(f,H){f=this.attrs(f);H?(this.cr(),this.tag("blockquote",f)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.R.list=function(f,H){var v=f.listType==="bullet"?"ul":"ol",t=this.attrs(f);H?(f=f.listStart,f!==null&&f!==1&&t.push(["start",f.toString()]),this.cr(),this.tag(v,t)):(this.cr(),this.tag("/"+v));this.cr()};
_.R.item=function(f,H){f=this.attrs(f);H?this.tag("li",f):(this.tag("/li"),this.cr())};
_.R.custom_inline=function(f,H){H&&f.onEnter?SH(this,f.onEnter):!H&&f.onExit&&SH(this,f.onExit)};
_.R.custom_block=function(f,H){this.cr();H&&f.onEnter?SH(this,f.onEnter):!H&&f.onExit&&SH(this,f.onExit);this.cr()};
_.R.table=function(f,H){f=this.attrs(f);H?(this.cr(),this.tag("table",f)):(this.tag("/table"),this.cr())};
_.R.row=function(f,H){f._rowIsDelimiter||(f=this.attrs(f),H?this.tag("tr",f):this.tag("/tr"))};
_.R.td=function(f,H){var v=this.attrs(f);f._alignment&&v.push(["align",f._alignment]);H?this.tag("td",v):this.tag("/td")};
_.R.th=function(f,H){var v=this.attrs(f);f._alignment&&v.push(["align",f._alignment]);H?this.tag("th",v):this.tag("/th")};
_.R.out=function(f){SH(this,yH(f,!1))};
_.R.tag=function(f,H,v){if(!(this.disableTags>0)){this.buffer+="<"+f;if(H&&H.length>0){f=0;for(var t;(t=H[f])!==void 0;)this.buffer+=" "+t[0]+'="'+t[1]+'"',f++}v&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.R.attrs=function(f){var H=[];this.options.sourcepos&&(f=f.sourcepos)&&H.push(["data-sourcepos",String(f[0][0])+":"+String(f[0][1])+"-"+String(f[1][0])+":"+String(f[1][1])]);return H};
dI.prototype.text=dI.prototype.text;dI.prototype.html_inline=dI.prototype.html_inline;dI.prototype.html_block=dI.prototype.html_block;dI.prototype.softbreak=dI.prototype.softbreak;dI.prototype.linebreak=dI.prototype.linebreak;dI.prototype.link=dI.prototype.link;dI.prototype.image=dI.prototype.image;dI.prototype.emph=dI.prototype.emph;dI.prototype.strong=dI.prototype.strong;dI.prototype.paragraph=dI.prototype.paragraph;dI.prototype.heading=dI.prototype.heading;dI.prototype.code=dI.prototype.code;
dI.prototype.code_block=dI.prototype.code_block;dI.prototype.thematic_break=dI.prototype.thematic_break;dI.prototype.block_quote=dI.prototype.block_quote;dI.prototype.list=dI.prototype.list;dI.prototype.item=dI.prototype.item;dI.prototype.custom_inline=dI.prototype.custom_inline;dI.prototype.custom_block=dI.prototype.custom_block;dI.prototype.table=dI.prototype.table;dI.prototype.row=dI.prototype.row;dI.prototype.td=dI.prototype.td;dI.prototype.th=dI.prototype.th;dI.prototype.out=dI.prototype.out;
dI.prototype.tag=dI.prototype.tag;dI.prototype.attrs=dI.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 qRh,fOg,rPe;(function(){function f(p,D){return p<D?-1:p>D?1:p>=D?0:NaN}
function H(p){return function(D,P){return f(p(D),P)}}
function v(){for(var p=0,D=arguments.length,P={},HR;p<D;++p){if(!(HR=arguments[p]+"")||HR in P)throw Error("re`"+HR);P[HR]=[]}return new t(P)}
function t(p){this._=p}
function M(p,D){return p.trim().split(/^|\s+/).map(function(P){var HR="",yR=P.indexOf(".");yR>=0&&(HR=P.slice(yR+1),P=P.slice(0,yR));if(P&&!D.hasOwnProperty(P))throw Error("se`"+P);return{type:P,name:HR}})}
function h(p,D,P){for(var HR=0,yR=p.length;HR<yR;++HR)if(p[HR].name===D){p[HR]=hRG;p=p.slice(0,HR).concat(p.slice(HR+1));break}P!=null&&p.push({name:D,value:P});return p}
function y(p){var D=p,P=D.indexOf(":");P>=0&&(D=p.slice(0,P))!=="xmlns"&&(p=p.slice(P+1));return e4.hasOwnProperty(D)?{space:e4[D],local:p}:p}
function m(p){return function(){var D=this.ownerDocument,P=this.namespaceURI;return P==="http://www.w3.org/1999/xhtml"&&D.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?D.createElement(p):D.createElementNS(P,p)}}
function W(p){return function(){return this.ownerDocument.createElementNS(p.space,p.local)}}
function I(p){p=y(p);return(p.local?W:m)(p)}
function S(){}
function d(p){return p==null?S:function(){return this.querySelector(p)}}
function Z(p){return Array(p.length)}
function l(p,D){this.ownerDocument=p.ownerDocument;this.namespaceURI=p.namespaceURI;this._next=null;this._parent=p;this.__data__=D}
function L(p){return function(){return p}}
function r(p,D,P,HR,yR,dB){for(var eE=0,D_,t9=D.length,wB=dB.length;eE<wB;++eE)(D_=D[eE])?(D_.__data__=dB[eE],HR[eE]=D_):P[eE]=new l(p,dB[eE]);for(;eE<t9;++eE)if(D_=D[eE])yR[eE]=D_}
function n(p,D,P,HR,yR,dB,eE){var D_,t9,wB={},MT=D.length,Sv=dB.length,kg=Array(MT),x5;for(D_=0;D_<MT;++D_)if(t9=D[D_])kg[D_]=x5="$"+eE.call(t9,t9.__data__,D_,D),x5 in wB?yR[D_]=t9:wB[x5]=t9;for(D_=0;D_<Sv;++D_)x5="$"+eE.call(p,dB[D_],D_,dB),(t9=wB[x5])?(HR[D_]=t9,t9.__data__=dB[D_],wB[x5]=null):P[D_]=new l(p,dB[D_]);for(D_=0;D_<MT;++D_)(t9=D[D_])&&wB[kg[D_]]===t9&&(yR[D_]=t9)}
function Q(p,D){return p<D?-1:p>D?1:p>=D?0:NaN}
function C(p){return function(){this.removeAttribute(p)}}
function w(p){return function(){this.removeAttributeNS(p.space,p.local)}}
function c(p,D){return function(){this.setAttribute(p,D)}}
function A(p,D){return function(){this.setAttributeNS(p.space,p.local,D)}}
function X(p,D){return function(){var P=D.apply(this,arguments);P==null?this.removeAttribute(p):this.setAttribute(p,P)}}
function fg(p,D){return function(){var P=D.apply(this,arguments);P==null?this.removeAttributeNS(p.space,p.local):this.setAttributeNS(p.space,p.local,P)}}
function gB(p){return function(){this.style.removeProperty(p)}}
function O5(p,D,P){return function(){this.style.setProperty(p,D,P)}}
function s5(p,D,P){return function(){var HR=D.apply(this,arguments);HR==null?this.style.removeProperty(p):this.style.setProperty(p,HR,P)}}
function U5(p,D){return p.style.getPropertyValue(D)||(p.ownerDocument&&p.ownerDocument.defaultView||p.document&&p||p.defaultView).getComputedStyle(p,null).getPropertyValue(D)}
function lH(p){return function(){delete this[p]}}
function E5(p,D){return function(){this[p]=D}}
function uH(p,D){return function(){var P=D.apply(this,arguments);P==null?delete this[p]:this[p]=P}}
function Rn(){this.textContent=""}
function pr(p){return function(){this.textContent=p}}
function gh(p){return function(){var D=p.apply(this,arguments);this.textContent=D==null?"":D}}
function fr(){this.innerHTML=""}
function sb(p){return function(){this.innerHTML=p}}
function In(p){return function(){var D=p.apply(this,arguments);this.innerHTML=D==null?"":D}}
function Kr(){return null}
function BA(){var p=this.parentNode;p&&p.removeChild(this)}
function TH(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function hN(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function Ho(p,D,P){p=J9(p,D,P);return function(HR){var yR=HR.relatedTarget;yR&&(yR===this||yR.compareDocumentPosition(this)&8)||p.call(this,HR)}}
function J9(p,D,P){return function(){p.call(this,this.__data__,D,P)}}
function Ox(p){return p.trim().split(/^|\s+/).map(function(D){var P="",HR=D.indexOf(".");HR>=0&&(P=D.slice(HR+1),D=D.slice(0,HR));return{type:D,name:P}})}
function lC(p){return function(){var D=this.__on;if(D){for(var P=0,HR=-1,yR=D.length,dB;P<yR;++P)(dB=D[P],p.type&&dB.type!==p.type||dB.name!==p.name)?D[++HR]=dB:this.removeEventListener(dB.type,dB.listener,dB.capture);++HR?D.length=HR:delete this.__on}}}
function vA(p,D,P){var HR=gPC.hasOwnProperty(p.type)?Ho:J9;return function(yR,dB,eE){yR=this.__on;var D_;dB=HR(D,dB,eE);if(yR){eE=0;for(var t9=yR.length;eE<t9;++eE)if((D_=yR[eE]).type===p.type&&D_.name===p.name){this.removeEventListener(D_.type,D_.listener,D_.capture);this.addEventListener(D_.type,D_.listener=dB,D_.capture=P);D_.value=D;return}}this.addEventListener(p.type,dB,P);D_={type:p.type,name:p.name,value:D,listener:dB,capture:P};yR?yR.push(D_):this.__on=[D_]}}
function Rd(p,D,P){var HR=p.ownerDocument&&p.ownerDocument.defaultView||p.document&&p||p.defaultView,yR=HR.CustomEvent;typeof yR==="function"?yR=new yR(D,P):(yR=HR.document.createEvent("Event"),P?(yR.initEvent(D,P.bubbles,P.cancelable),yR.detail=P.detail):yR.initEvent(D,!1,!1));p.dispatchEvent(yR)}
function HA(p,D){return function(){return Rd(this,p,D)}}
function $g(p,D){return function(){return Rd(this,p,D.apply(this,arguments))}}
function iC(p,D){this._groups=p;this._parents=D}
function jp(){return new iC([[document.documentElement]],RRi)}
function zH(){this._="@"+(++VHt).toString(36)}
function Fa(p,D,P){p.prototype=D.prototype=P;P.constructor=p}
function lt(p,D){p=Object.create(p.prototype);for(var P in D)p[P]=D[P];return p}
function Oq(){}
function di(p){var D;p=(p+"").trim().toLowerCase();return(D=yHi.exec(p))?(D=parseInt(D[1],16),new Xb(D>>8&15|D>>4&240,D>>4&15|D&240,(D&15)<<4|D&15,1)):(D=Y85.exec(p))?zf(parseInt(D[1],16)):(D=m_W.exec(p))?new Xb(D[1],D[2],D[3],1):(D=$_w.exec(p))?new Xb(D[1]*255/100,D[2]*255/100,D[3]*255/100,1):(D=W4p.exec(p))?lK(D[1],D[2],D[3],D[4]):(D=O3w.exec(p))?lK(D[1]*255/100,D[2]*255/100,D[3]*255/100,D[4]):(D=g3p.exec(p))?MR(D[1],D[2]/100,D[3]/100,1):(D=I6A.exec(p))?MR(D[1],D[2]/100,D[3]/100,D[4]):I7g.hasOwnProperty(p)?
zf(I7g[p]):p==="transparent"?new Xb(NaN,NaN,NaN,0):null}
function zf(p){return new Xb(p>>16&255,p>>8&255,p&255,1)}
function lK(p,D,P,HR){HR<=0&&(p=D=P=NaN);return new Xb(p,D,P,HR)}
function Eb(p){p instanceof Oq||(p=di(p));if(!p)return new Xb;p=p.rgb();return new Xb(p.r,p.g,p.b,p.opacity)}
function PA(p,D,P,HR){return arguments.length===1?Eb(p):new Xb(p,D,P,HR==null?1:HR)}
function Xb(p,D,P,HR){this.r=+p;this.g=+D;this.b=+P;this.opacity=+HR}
function YU(p){p=Math.max(0,Math.min(255,Math.round(p)||0));return(p<16?"0":"")+p.toString(16)}
function MR(p,D,P,HR){HR<=0?p=D=P=NaN:P<=0||P>=1?p=D=NaN:D<=0&&(p=NaN);return new Jm(p,D,P,HR)}
function mS(p){if(p instanceof Jm)return new Jm(p.h,p.s,p.l,p.opacity);p instanceof Oq||(p=di(p));if(!p)return new Jm;if(p instanceof Jm)return p;p=p.rgb();var D=p.r/255,P=p.g/255,HR=p.b/255,yR=Math.min(D,P,HR),dB=Math.max(D,P,HR),eE=NaN,D_=dB-yR,t9=(dB+yR)/2;D_?(eE=D===dB?(P-HR)/D_+(P<HR)*6:P===dB?(HR-D)/D_+2:(D-P)/D_+4,D_/=t9<.5?dB+yR:2-dB-yR,eE*=60):D_=t9>0&&t9<1?0:eE;return new Jm(eE,D_,t9,p.opacity)}
function U0(p,D,P,HR){return arguments.length===1?mS(p):new Jm(p,D,P,HR==null?1:HR)}
function Jm(p,D,P,HR){this.h=+p;this.s=+D;this.l=+P;this.opacity=+HR}
function Go(p,D,P){return(p<60?D+(P-D)*p/60:p<180?P:p<240?D+(P-D)*(240-p)/60:D)*255}
function RW(p){if(p instanceof zb)return new zb(p.l,p.a,p.b,p.opacity);if(p instanceof ev){if(isNaN(p.h))return new zb(p.l,0,0,p.opacity);var D=p.h*SIo;return new zb(p.l,Math.cos(D)*p.c,Math.sin(D)*p.c,p.opacity)}p instanceof Xb||(p=Eb(p));var P=gi(p.r),HR=gi(p.g),yR=gi(p.b);D=a3(.2225045*P+.7168786*HR+.0606169*yR);if(P===HR&&HR===yR)var dB=P=D;else dB=a3((.4360747*P+.3850649*HR+.1430804*yR)/.96422),P=a3((.0139322*P+.0971045*HR+.7141733*yR)/.82521);return new zb(116*D-16,500*(dB-D),200*(D-P),p.opacity)}
function zb(p,D,P,HR){this.l=+p;this.a=+D;this.b=+P;this.opacity=+HR}
function a3(p){return p>S8x?Math.pow(p,1/3):p/dIC+jXn}
function Xe(p){return p>Tv?p*p*p:dIC*(p-jXn)}
function dh(p){return 255*(p<=.0031308?12.92*p:1.055*Math.pow(p,1/2.4)-.055)}
function gi(p){return(p/=255)<=.04045?p/12.92:Math.pow((p+.055)/1.055,2.4)}
function DM(p){if(p instanceof ev)return new ev(p.h,p.c,p.l,p.opacity);p instanceof zb||(p=RW(p));if(p.a===0&&p.b===0)return new ev(NaN,0,p.l,p.opacity);var D=Math.atan2(p.b,p.a)*sXb;return new ev(D<0?D+360:D,Math.sqrt(p.a*p.a+p.b*p.b),p.l,p.opacity)}
function L0(p,D,P,HR){return arguments.length===1?DM(p):new ev(p,D,P,HR==null?1:HR)}
function ev(p,D,P,HR){this.h=+p;this.c=+D;this.l=+P;this.opacity=+HR}
function Ub(p,D,P,HR){if(arguments.length===1){var yR=p;if(yR instanceof n0)yR=new n0(yR.h,yR.s,yR.l,yR.opacity);else{yR instanceof Xb||(yR=Eb(yR));var dB=yR.g/255,eE=yR.b/255,D_=(ZOh*eE+yR.r/255*-1.7884503806-3.5172982438*dB)/(ZOh+-1.7884503806-3.5172982438);eE-=D_;var t9=(1.97294*(dB-D_)- -.29227*eE)/-.90649;eE=(dB=Math.sqrt(t9*t9+eE*eE)/(1.97294*D_*(1-D_)))?Math.atan2(t9,eE)*sXb-120:NaN;yR=new n0(eE<0?eE+360:eE,dB,D_,yR.opacity)}}else yR=new n0(p,D,P,HR==null?1:HR);return yR}
function n0(p,D,P,HR){this.h=+p;this.s=+D;this.l=+P;this.opacity=+HR}
function de(p,D,P,HR,yR){var dB=p*p,eE=dB*p;return((1-3*p+3*dB-eE)*D+(4-6*dB+3*eE)*P+(1+3*p+3*dB-3*eE)*HR+eE*yR)/6}
function jv(p){return function(){return p}}
function UZ(p,D){return function(P){return p+P*D}}
function hr(p,D,P){return p=Math.pow(p,P),D=Math.pow(D,P)-p,P=1/P,function(HR){return Math.pow(p+HR*D,P)}}
function a1(p,D){var P=D-p;return P?UZ(p,P>180||P<-180?P-360*Math.round(P/360):P):jv(isNaN(p)?D:p)}
function oh(p){return(p=+p)===1?Q_:function(D,P){return P-D?hr(D,P,p):jv(isNaN(D)?P:D)}}
function Q_(p,D){var P=D-p;return P?UZ(p,P):jv(isNaN(p)?D:p)}
function iT(p){return function(D){var P=D.length,HR=Array(P),yR=Array(P),dB=Array(P),eE;for(eE=0;eE<P;++eE){var D_=PA(D[eE]);HR[eE]=D_.r||0;yR[eE]=D_.g||0;dB[eE]=D_.b||0}HR=p(HR);yR=p(yR);dB=p(dB);D_.opacity=1;return function(t9){D_.r=HR(t9);D_.g=yR(t9);D_.b=dB(t9);return D_+""}}}
function FU(p,D){return p=+p,D-=p,function(P){return p+D*P}}
function IK(p){return function(){return p}}
function kA(p){return function(D){return p(D)+""}}
function bH(p,D){var P=a5B.lastIndex=Pqe.lastIndex=0,HR,yR,dB,eE=-1,D_=[],t9=[];p+="";for(D+="";(HR=a5B.exec(p))&&(yR=Pqe.exec(D));)(dB=yR.index)>P&&(dB=D.slice(P,dB),D_[eE]?D_[eE]+=dB:D_[++eE]=dB),(HR=HR[0])===(yR=yR[0])?D_[eE]?D_[eE]+=yR:D_[++eE]=yR:(D_[++eE]=null,t9.push({i:eE,x:FU(HR,yR)})),P=Pqe.lastIndex;P<D.length&&(dB=D.slice(P),D_[eE]?D_[eE]+=dB:D_[++eE]=dB);return D_.length<2?t9[0]?kA(t9[0].x):IK(D):(D=t9.length,function(wB){for(var MT=0,Sv;MT<D;++MT)D_[(Sv=t9[MT]).i]=Sv.x(wB);return D_.join("")})}
function sx(p,D,P,HR,yR,dB){var eE,D_,t9;if(eE=Math.sqrt(p*p+D*D))p/=eE,D/=eE;if(t9=p*P+D*HR)P-=p*t9,HR-=D*t9;if(D_=Math.sqrt(P*P+HR*HR))P/=D_,HR/=D_,t9/=D_;p*HR<D*P&&(p=-p,D=-D,t9=-t9,eE=-eE);return{translateX:yR,translateY:dB,rotate:Math.atan2(D,p)*JGC,skewX:Math.atan(t9)*JGC,scaleX:eE,scaleY:D_}}
function p0(p,D,P,HR){function yR(wB){return wB.length?wB.pop()+" ":""}
function dB(wB,MT,Sv,kg,x5,ZM){wB!==Sv||MT!==kg?(x5=x5.push("translate(",null,D,null,P),ZM.push({i:x5-4,x:FU(wB,Sv)},{i:x5-2,x:FU(MT,kg)})):(Sv||kg)&&x5.push("translate("+Sv+D+kg+P)}
function eE(wB,MT,Sv,kg){wB!==MT?(wB-MT>180?MT+=360:MT-wB>180&&(wB+=360),kg.push({i:Sv.push(yR(Sv)+"rotate(",null,HR)-2,x:FU(wB,MT)})):MT&&Sv.push(yR(Sv)+"rotate("+MT+HR)}
function D_(wB,MT,Sv,kg){wB!==MT?kg.push({i:Sv.push(yR(Sv)+"skewX(",null,HR)-2,x:FU(wB,MT)}):MT&&Sv.push(yR(Sv)+"skewX("+MT+HR)}
function t9(wB,MT,Sv,kg,x5,ZM){wB!==Sv||MT!==kg?(x5=x5.push(yR(x5)+"scale(",null,",",null,")"),ZM.push({i:x5-4,x:FU(wB,Sv)},{i:x5-2,x:FU(MT,kg)})):Sv===1&&kg===1||x5.push(yR(x5)+"scale("+Sv+","+kg+")")}
return function(wB,MT){var Sv=[],kg=[];wB=p(wB);MT=p(MT);dB(wB.translateX,wB.translateY,MT.translateX,MT.translateY,Sv,kg);eE(wB.rotate,MT.rotate,Sv,kg);D_(wB.skewX,MT.skewX,Sv,kg);t9(wB.scaleX,wB.scaleY,MT.scaleX,MT.scaleY,Sv,kg);wB=MT=null;return function(x5){for(var ZM=-1,Ne=kg.length,LS;++ZM<Ne;)Sv[(LS=kg[ZM]).i]=LS.x(x5);return Sv.join("")}}}
function yG(p){return function(D,P){var HR=p((D=U0(D)).h,(P=U0(P)).h),yR=Q_(D.s,P.s),dB=Q_(D.l,P.l),eE=Q_(D.opacity,P.opacity);return function(D_){D.h=HR(D_);D.s=yR(D_);D.l=dB(D_);D.opacity=eE(D_);return D+""}}}
function $O(p){return function(D,P){var HR=p((D=L0(D)).h,(P=L0(P)).h),yR=Q_(D.c,P.c),dB=Q_(D.l,P.l),eE=Q_(D.opacity,P.opacity);return function(D_){D.h=HR(D_);D.c=yR(D_);D.l=dB(D_);D.opacity=eE(D_);return D+""}}}
function XU(p){return function HR(P){function yR(dB,eE){var D_=p((dB=Ub(dB)).h,(eE=Ub(eE)).h),t9=Q_(dB.s,eE.s),wB=Q_(dB.l,eE.l),MT=Q_(dB.opacity,eE.opacity);return function(Sv){dB.h=D_(Sv);dB.s=t9(Sv);dB.l=wB(Math.pow(Sv,P));dB.opacity=MT(Sv);return dB+""}}
P=+P;yR.gamma=HR;return yR}(1)}
function p9(){return F$||(l7h(EV),F$=Yr.now()+OlT)}
function EV(){F$=0}
function jf(){this._call=this._time=this._next=null}
function Mh(p,D,P){var HR=new jf;HR.restart(p,D,P);return HR}
function hU(){F$=(gZB=Yr.now())+OlT;wa=mK=0;try{p9();++wa;for(var p=Iy5,D;p;)(D=F$-p._time)>=0&&p._call.call(null,D),p=p._next;--wa}finally{wa=0;p=Iy5;for(var P=Infinity;p;)if(p._call){P>p._time&&(P=p._time);var HR=p;p=p._next}else D=p._next,p._next=null,p=HR?HR._next=D:Iy5=D;$r=HR;RB(P);F$=0}}
function rhT(){var p=Yr.now(),D=p-gZB;D>1E3&&(OlT-=D,gZB=p)}
function RB(p){wa||(mK&&(mK=clearTimeout(mK)),p-F$>24?(p<Infinity&&(mK=setTimeout(hU,p-Yr.now()-OlT)),WN&&(WN=clearInterval(WN))):(WN||(gZB=Yr.now(),WN=setInterval(rhT,1E3)),wa=1,l7h(hU)))}
function UIo(p,D,P){var HR=new jf;D=D==null?0:+D;HR.restart(function(yR){HR.stop();p(yR+D)},D,P);
return HR}
function GF3(p,D,P,HR,yR,dB){var eE=p.__transition;if(!eE)p.__transition={};else if(P in eE)return;d_w(p,P,{name:D,index:HR,group:yR,on:jqA,tween:sqp,time:dB.time,delay:dB.delay,duration:dB.duration,ease:dB.ease,timer:null,state:0})}
function Cqe(p,D){p=Sd(p,D);if(p.state>0)throw Error("te");return p}
function r2(p,D){p=Sd(p,D);if(p.state>2)throw Error("ue");return p}
function Sd(p,D){p=p.__transition;if(!p||!(p=p[D]))throw Error("ve");return p}
function d_w(p,D,P){function HR(t9){var wB,MT;if(P.state!==1)return dB();for(kg in eE){var Sv=eE[kg];if(Sv.name===P.name){if(Sv.state===3)return UIo(HR);Sv.state===4?(Sv.state=6,Sv.timer.stop(),Sv.on.call("interrupt",p,p.__data__,Sv.index,Sv.group),delete eE[kg]):+kg<D&&(Sv.state=6,Sv.timer.stop(),delete eE[kg])}}UIo(function(){P.state===3&&(P.state=4,P.timer.restart(yR,P.delay,P.time),yR(t9))});
P.state=2;P.on.call("start",p,p.__data__,P.index,P.group);if(P.state===2){P.state=3;D_=Array(MT=P.tween.length);var kg=0;for(wB=-1;kg<MT;++kg)if(Sv=P.tween[kg].value.call(p,p.__data__,P.index,P.group))D_[++wB]=Sv;D_.length=wB+1}}
function yR(t9){t9=t9<P.duration?P.ease.call(null,t9/P.duration):(P.timer.restart(dB),P.state=5,1);for(var wB=-1,MT=D_.length;++wB<MT;)D_[wB].call(null,t9);P.state===5&&(P.on.call("end",p,p.__data__,P.index,P.group),dB())}
function dB(){P.state=6;P.timer.stop();delete eE[D];for(var t9 in eE)return;delete p.__transition}
var eE=p.__transition,D_;eE[D]=P;P.timer=Mh(function(t9){P.state=1;P.timer.restart(HR,P.delay,P.time);P.delay<=t9&&HR(t9-P.delay)},0,P.time)}
function Z3W(p,D){var P,HR;return function(){var yR=r2(this,p),dB=yR.tween;if(dB!==P){HR=P=dB;dB=0;for(var eE=HR.length;dB<eE;++dB)if(HR[dB].name===D){HR=HR.slice();HR.splice(dB,1);break}}yR.tween=HR}}
function JHi(p,D,P){var HR,yR;if(typeof P!=="function")throw Error();return function(){var dB=r2(this,p),eE=dB.tween;if(eE!==HR){yR=(HR=eE).slice();eE={name:D,value:P};for(var D_=0,t9=yR.length;D_<t9;++D_)if(yR[D_].name===D){yR[D_]=eE;break}D_===t9&&yR.push(eE)}dB.tween=yR}}
function EiR(p,D,P){var HR=p._id;p.each(function(){var yR=r2(this,HR);(yR.value||(yR.value={}))[D]=P.apply(this,arguments)});
return function(yR){return Sd(yR,HR).value[D]}}
function e4b(p,D){var P;return(typeof D==="number"?FU:D instanceof di?LEh:(P=di(D))?(D=P,LEh):bH)(p,D)}
function l6F(p){return function(){this.removeAttribute(p)}}
function U_t(p){return function(){this.removeAttributeNS(p.space,p.local)}}
function eRA(p,D,P){var HR,yR;return function(){var dB=this.getAttribute(p);return dB===P?null:dB===HR?yR:yR=D(HR=dB,P)}}
function L4A(p,D,P){var HR,yR;return function(){var dB=this.getAttributeNS(p.space,p.local);return dB===P?null:dB===HR?yR:yR=D(HR=dB,P)}}
function x_F(p,D,P){var HR,yR,dB;return function(){var eE=P(this);if(eE==null)return void this.removeAttribute(p);var D_=this.getAttribute(p);return D_===eE?null:D_===HR&&eE===yR?dB:dB=D(HR=D_,yR=eE)}}
function BSr(p,D,P){var HR,yR,dB;return function(){var eE=P(this);if(eE==null)return void this.removeAttributeNS(p.space,p.local);var D_=this.getAttributeNS(p.space,p.local);return D_===eE?null:D_===HR&&eE===yR?dB:dB=D(HR=D_,yR=eE)}}
function zR5(p,D){function P(){var HR=this,yR=D.apply(HR,arguments);return yR&&function(dB){HR.setAttributeNS(p.space,p.local,yR(dB))}}
P._value=D;return P}
function F4h(p,D){function P(){var HR=this,yR=D.apply(HR,arguments);return yR&&function(dB){HR.setAttribute(p,yR(dB))}}
P._value=D;return P}
function rHW(p,D){return function(){Cqe(this,p).delay=+D.apply(this,arguments)}}
function K4W(p,D){return D=+D,function(){Cqe(this,p).delay=D}}
function D_x(p,D){return function(){r2(this,p).duration=+D.apply(this,arguments)}}
function o3h(p,D){return D=+D,function(){r2(this,p).duration=D}}
function n35(p,D){if(typeof D!=="function")throw Error();return function(){r2(this,p).ease=D}}
function pwF(p){return(p+"").trim().split(/^|\s+/).every(function(D){var P=D.indexOf(".");P>=0&&(D=D.slice(0,P));return!D||D==="start"})}
function Qqw(p,D,P){var HR,yR,dB=pwF(D)?Cqe:r2;return function(){var eE=dB(this,p),D_=eE.on;if(D_!==HR)(yR=(HR=D_).copy()).on(D,P);eE.on=yR}}
function uyx(p){return function(){var D=this.parentNode,P;for(P in this.__transition)if(+P!==p)return;D&&D.removeChild(this)}}
function a6x(p,D){var P,HR,yR;return function(){var dB=U5(this,p),eE=(this.style.removeProperty(p),U5(this,p));return dB===eE?null:dB===P&&eE===HR?yR:yR=D(P=dB,HR=eE)}}
function Ppr(p){return function(){this.style.removeProperty(p)}}
function GAW(p,D,P){var HR,yR;return function(){var dB=U5(this,p);return dB===P?null:dB===HR?yR:yR=D(HR=dB,P)}}
function Cpw(p,D,P){var HR,yR,dB;return function(){var eE=U5(this,p),D_=P(this);D_==null&&(D_=(this.style.removeProperty(p),U5(this,p)));return eE===D_?null:eE===HR&&D_===yR?dB:dB=D(HR=eE,yR=D_)}}
function E30(p,D,P){function HR(){var yR=this,dB=D.apply(yR,arguments);return dB&&function(eE){yR.style.setProperty(p,dB(eE),P)}}
HR._value=D;return HR}
function NSw(p){return function(){this.textContent=p}}
function cHG(p){return function(){var D=p(this);this.textContent=D==null?"":D}}
function QU(p,D,P,HR){this._groups=p;this._parents=D;this._name=P;this._id=HR}
function N4e(p){return{type:p}}
function cpg(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function Skg(){}
function xIo(p,D){var P=new Skg;if(p instanceof Skg)p.each(function(eE,D_){P.set(D_,eE)});
else if(Array.isArray(p)){var HR=-1,yR=p.length,dB;if(D==null)for(;++HR<yR;)P.set(HR,p[HR]);else for(;++HR<yR;)P.set(D(dB=p[HR],HR,p),dB)}else if(p)for(HR in p)P.set(HR,p[HR]);return P}
function dJE(){}
function Bor(p){return function(D){for(var P={},HR=0;HR<p.length;HR++)P[p[HR]]=D[HR]||"";return P}}
function Xwp(p,D){var P=Bor(p);return function(HR,yR){return D(P(HR),yR,p)}}
function AHW(p){var D=Object.create(null),P=[];p.forEach(function(HR){for(var yR in HR)yR in D||P.push(D[yR]=yR)});
return P}
function z4b(p){function D(eE,D_){function t9(){if(ZM)return XH5;if(Ne)return Ne=!1,FEo;var Cb,ug=Sv,mO;if(eE.charCodeAt(ug)===34){for(;Sv++<MT&&eE.charCodeAt(Sv)!==34||eE.charCodeAt(++Sv)===34;);(Cb=Sv)>=MT?ZM=!0:(mO=eE.charCodeAt(Sv++))===10?Ne=!0:mO===13&&(Ne=!0,eE.charCodeAt(Sv)===10&&++Sv);return eE.slice(ug+1,Cb-1).replace(/""/g,'"')}for(;Sv<MT;){if((mO=eE.charCodeAt(Cb=Sv++))===10)Ne=!0;else if(mO===13)Ne=!0,eE.charCodeAt(Sv)===10&&++Sv;else if(mO!==dB)continue;return eE.slice(ug,Cb)}return ZM=
!0,eE.slice(ug,MT)}
var wB=[],MT=eE.length,Sv=0,kg=0,x5,ZM=MT<=0,Ne=!1;eE.charCodeAt(MT-1)===10&&--MT;for(eE.charCodeAt(MT-1)===13&&--MT;(x5=t9())!==XH5;){for(var LS=[];x5!==FEo&&x5!==XH5;)LS.push(x5),x5=t9();D_&&(LS=D_(LS,kg++))==null||wB.push(LS)}return wB}
function P(eE){return eE.map(HR).join(p)}
function HR(eE){return eE==null?"":yR.test(eE)?'"'+eE.replace(/"/g,'""')+'"':eE}
var yR=new RegExp('["'+p+"\n\r]"),dB=p.charCodeAt(0);return{parse:function(eE,D_){var t9,wB;eE=D(eE,function(MT,Sv){if(t9)return t9(MT,Sv-1);wB=MT;t9=D_?Xwp(MT,D_):Bor(MT)});
eE.columns=wB||[];return eE},
parseRows:D,format:function(eE,D_){D_==null&&(D_=AHW(eE));return[D_.map(HR).join(p)].concat(eE.map(function(t9){return D_.map(function(wB){return HR(t9[wB])}).join(p)})).join("\n")},
formatRows:function(eE){return eE.map(P).join("\n")}}}
function b3w(p){if(!p.ok)throw Error("we`"+p.status+"`"+p.statusText);return p.text()}
function rGg(p){return function(D,P,HR){arguments.length===2&&typeof P==="function"&&(HR=P,P=void 0);return fetch(D,P).then(b3w).then(function(yR){return p(yR,HR)})}}
function KEa(p,D,P,HR){if(isNaN(D)||isNaN(P))return p;var yR,dB=p._root;HR={data:HR};var eE=p._x0,D_=p._y0,t9=p._x1,wB=p._y1,MT,Sv,kg,x5,ZM;if(!dB)return p._root=HR,p;for(;dB.length;)if((kg=D>=(MT=(eE+t9)/2))?eE=MT:t9=MT,(x5=P>=(Sv=(D_+wB)/2))?D_=Sv:wB=Sv,yR=dB,!(dB=dB[ZM=x5<<1|kg]))return yR[ZM]=HR,p;var Ne=+p._x.call(null,dB.data);var LS=+p._y.call(null,dB.data);if(D===Ne&&P===LS)return HR.next=dB,yR?yR[ZM]=HR:p._root=HR,p;do yR=yR?yR[ZM]=Array(4):p._root=Array(4),(kg=D>=(MT=(eE+t9)/2))?eE=MT:t9=
MT,(x5=P>=(Sv=(D_+wB)/2))?D_=Sv:wB=Sv;while((ZM=x5<<1|kg)===(kg=(LS>=Sv)<<1|Ne>=MT));return yR[kg]=dB,yR[ZM]=HR,p}
function rX(p,D,P,HR,yR){this.node=p;this.x0=D;this.y0=P;this.x1=HR;this.y1=yR}
function i3A(p){return p[0]}
function kAi(p){return p[1]}
function ApR(p,D,P,HR,yR,dB){this._x=p;this._y=D;this._x0=P;this._y0=HR;this._x1=yR;this._y1=dB;this._root=void 0}
function DIh(p){for(var D={data:p.data},P=D;p=p.next;)P=P.next={data:p.data};return D}
function j2R(p,D){if((D=(p=D?p.toExponential(D-1):p.toExponential()).indexOf("e"))<0)return null;var P=p.slice(0,D);return[P.length>1?P[0]+P.slice(2):P,+p.slice(D+1)]}
function TSx(p){return p=j2R(Math.abs(p)),p?p[1]:NaN}
function wwW(p,D){return function(P,HR){for(var yR=P.length,dB=[],eE=0,D_=p[0],t9=0;yR>0&&D_>0;){t9+D_+1>HR&&(D_=Math.max(1,HR-t9));dB.push(P.substring(yR-=D_,yR+D_));if((t9+=D_+1)>HR)break;D_=p[eE=(eE+1)%p.length]}return dB.reverse().join(D)}}
function q8F(p){return function(D){return D.replace(/[0-9]/g,function(P){return p[+P]})}}
function bMB(p){return new iMH(p)}
function iMH(p){if(!(D=fkx.exec(p)))throw Error("xe`"+p);var D;this.fill=D[1]||" ";this.align=D[2]||">";this.sign=D[3]||"-";this.symbol=D[4]||"";this.zero=!!D[5];this.width=D[6]&&+D[6];this.comma=!!D[7];this.precision=D[8]&&+D[8].slice(1);this.trim=!!D[9];this.type=D[10]||""}
function oPM(p,D){D=j2R(p,D);if(!D)return p+"";p=D[0];D=D[1];return D<0?"0."+Array(-D).join("0")+p:p.length>D+1?p.slice(0,D+1)+"."+p.slice(D+1):p+Array(D-p.length+2).join("0")}
function nPv(p){return p}
function Hvr(p){function D(D_){function t9(XM){var fb=mO,Gh=Px,jV,yO;if(ug==="c")Gh=ah(XM)+Gh,XM="";else{XM=+XM;var ri=XM<0;XM=ah(Math.abs(XM),LS);if(Cb){var QP=XM.length,rT=1,EP=-1;a:for(;rT<QP;++rT)switch(XM[rT]){case ".":EP=jV=rT;break;case "0":EP===0&&(EP=rT);jV=rT;break;default:if(!+XM[rT])break a;EP>0&&(EP=0)}XM=EP>0?XM.slice(0,EP)+XM.slice(jV+1):XM}ri&&+XM===0&&(ri=!1);fb=(ri?Sv==="("?Sv:"-":Sv==="-"||Sv==="("?"":Sv)+fb;Gh=(ug==="s"?pLM[8+QX_/3]:"")+Gh+(ri&&Sv==="("?")":"");if(gA)for(ri=-1,
jV=XM.length;++ri<jV;)if(yO=XM.charCodeAt(ri),48>yO||yO>57){Gh=(yO===46?yR+XM.slice(ri+1):XM.slice(ri))+Gh;XM=XM.slice(0,ri);break}}Ne&&!x5&&(XM=P(XM,Infinity));yO=fb.length+XM.length+Gh.length;ri=yO<ZM?Array(ZM-yO+1).join(wB):"";Ne&&x5&&(XM=P(ri+XM,ri.length?ZM-Gh.length:Infinity),ri="");switch(MT){case "<":XM=fb+XM+Gh+ri;break;case "=":XM=fb+ri+XM+Gh;break;case "^":XM=ri.slice(0,yO=ri.length>>1)+fb+XM+Gh+ri.slice(yO);break;default:XM=ri+fb+XM+Gh}return dB(XM)}
D_=bMB(D_);var wB=D_.fill,MT=D_.align,Sv=D_.sign,kg=D_.symbol,x5=D_.zero,ZM=D_.width,Ne=D_.comma,LS=D_.precision,Cb=D_.trim,ug=D_.type;ug==="n"?(Ne=!0,ug="g"):uzC[ug]||(LS==null&&(LS=12),Cb=!0,ug="g");if(x5||wB==="0"&&MT==="=")x5=!0,wB="0",MT="=";var mO=kg==="$"?HR[0]:kg==="#"&&/[boxX]/.test(ug)?"0"+ug.toLowerCase():"",Px=kg==="$"?HR[1]:/[%p]/.test(ug)?eE:"",ah=uzC[ug],gA=/[defgprs%]/.test(ug);LS=LS==null?6:/[gprs]/.test(ug)?Math.max(1,Math.min(21,LS)):Math.max(0,Math.min(20,LS));t9.toString=function(){return D_+
""};
return t9}
var P=p.grouping&&p.thousands?wwW(p.grouping,p.thousands):nPv,HR=p.currency,yR=p.decimal,dB=p.numerals?q8F(p.numerals):nPv,eE=p.percent||"%";return{format:D,formatPrefix:function(D_,t9){var wB=D((D_=bMB(D_),D_.type="f",D_));D_=Math.max(-8,Math.min(8,Math.floor(TSx(t9)/3)))*3;var MT=Math.pow(10,-D_),Sv=pLM[8+D_/3];return function(kg){return wB(MT*kg)+Sv}}}}
function O$(){this.reset()}
function a7r(p,D,P){var HR=p.s=D+P,yR=HR-D;p.t=D-(HR-yR)+(P-yR)}
function s25(p){return p>1?LA:p<-1?-LA:Math.asin(p)}
function vWr(){}
function P3h(p){var D=p[0];p=p[1];var P=xf(p);return[P*xf(D),P*Sc(D),Sc(p)]}
function Guo(p,D){return[p[1]*D[2]-p[2]*D[1],p[2]*D[0]-p[0]*D[2],p[0]*D[1]-p[1]*D[0]]}
function C3h(p){var D=ZlN(p[0]*p[0]+p[1]*p[1]+p[2]*p[2]);p[0]/=D;p[1]/=D;p[2]/=D}
function tAF(){var p=[],D;return{point:function(P,HR){D.push([P,HR])},
lineStart:function(){p.push(D=[])},
lineEnd:vWr,rejoin:function(){p.length>1&&p.push(p.pop().concat(p.shift()))},
result:function(){var P=p;p=[];D=null;return P}}}
function J8R(p,D,P,HR){this.x=p;this.z=D;this.o=P;this.e=HR;this.v=!1;this.n=this.p=null}
function MAw(p,D,P,HR,yR){var dB=[],eE=[];p.forEach(function(Sv){if(!((kg=Sv.length-1)<=0)){var kg,x5=Sv[0],ZM=Sv[kg],Ne=x5;if(uM(Ne[0]-ZM[0])<1E-6&&uM(Ne[1]-ZM[1])<1E-6){yR.lineStart();for(D_=0;D_<kg;++D_)yR.point((x5=Sv[D_])[0],x5[1]);yR.lineEnd()}else dB.push(kg=new J8R(x5,Sv,null,!0)),eE.push(kg.o=new J8R(x5,null,kg,!1)),dB.push(kg=new J8R(ZM,Sv,null,!1)),eE.push(kg.o=new J8R(ZM,null,kg,!0))}});
if(dB.length){eE.sort(D);EPn(dB);EPn(eE);var D_=0;for(p=eE.length;D_<p;++D_)eE[D_].e=P=!P;P=dB[0];for(var t9;;){for(var wB=P,MT=!0;wB.v;)if((wB=wB.n)===P)return;D=wB.z;yR.lineStart();do{wB.v=wB.o.v=!0;if(wB.e){if(MT)for(D_=0,p=D.length;D_<p;++D_)yR.point((t9=D[D_])[0],t9[1]);else HR(wB.x,wB.n.x,1,yR);wB=wB.n}else{if(MT)for(D=wB.p.z,D_=D.length-1;D_>=0;--D_)yR.point((t9=D[D_])[0],t9[1]);else HR(wB.x,wB.p.x,-1,yR);wB=wB.p}wB=wB.o;D=wB.z;MT=!MT}while(!wB.v);yR.lineEnd()}}}
function EPn(p){if(D=p.length){for(var D,P=0,HR=p[0],yR;++P<D;)HR.n=yR=p[P],yR.p=HR,HR=yR;HR.n=yR=p[0];yR.p=HR}}
function hYA(p){return p.length>1}
function RYx(p,D){return((p=p.x)[0]<0?p[1]-LA-1E-6:LA-p[1])-((D=D.x)[0]<0?D[1]-LA-1E-6:LA-D[1])}
function kF5(){}
function Non(p){return function(D,P){var HR=xf(D),yR=xf(P);HR=p(HR*yR);return[HR*yR*Sc(D),HR*Sc(P)]}}
function Of(p){return function(D,P){var HR=ZlN(D*D+P*P),yR=p(HR),dB=Sc(yR);yR=xf(yR);return[cGZ(D*dB,HR*yR),s25(HR&&P*dB/HR)]}}
function VAW(p){var D=0,P=p.children,HR=P&&P.length;if(HR)for(;--HR>=0;)D+=P[HR].value;else D=1;p.value=D}
function XL_(p,D){var P=new gD(p);p=+p.value&&(P.value=p.value);var HR,yR=[P],dB,eE,D_,t9;for(D==null&&(D=yc5);HR=yR.pop();)if(p&&(HR.value=+HR.data.value),(eE=D(HR.data))&&(t9=eE.length))for(HR.children=Array(t9),D_=t9-1;D_>=0;--D_)yR.push(dB=HR.children[D_]=new gD(eE[D_])),dB.parent=HR,dB.depth=HR.depth+1;return P.eachBefore(Ypx)}
function yc5(p){return p.children}
function mQW(p){p.data=p.data.data}
function Ypx(p){var D=0;do p.height=D;while((p=p.parent)&&p.height<++D)}
function gD(p){this.data=p;this.depth=this.height=0;this.parent=null}
function hX(p,D,P,HR){function yR(dB){return p(dB=new Date(+dB)),dB}
yR.floor=yR;yR.ceil=function(dB){return p(dB=new Date(dB-1)),D(dB,1),p(dB),dB};
yR.round=function(dB){var eE=yR(dB),D_=yR.ceil(dB);return dB-eE<D_-dB?eE:D_};
yR.offset=function(dB,eE){return D(dB=new Date(+dB),eE==null?1:Math.floor(eE)),dB};
yR.range=function(dB,eE,D_){var t9=[],wB;dB=yR.ceil(dB);D_=D_==null?1:Math.floor(D_);if(!(dB<eE&&D_>0))return t9;do t9.push(wB=new Date(+dB)),D(dB,D_),p(dB);while(wB<dB&&dB<eE);return t9};
yR.filter=function(dB){return hX(function(eE){if(eE>=eE)for(;p(eE),!dB(eE);)eE.setTime(eE-1)},function(eE,D_){if(eE>=eE)if(D_<0)for(;++D_<=0;)for(;D(eE,-1),!dB(eE););
else for(;--D_>=0;)for(;D(eE,1),!dB(eE););})};
P&&(yR.count=function(dB,eE){T4v.setTime(+dB);wH3.setTime(+eE);p(T4v);p(wH3);return Math.floor(P(T4v,wH3))},yR.every=function(dB){dB=Math.floor(dB);
return isFinite(dB)&&dB>0?dB>1?yR.filter(HR?function(eE){return HR(eE)%dB===0}:function(eE){return yR.count(0,eE)%dB===0}):yR:null});
return yR}
function Kk(p){return hX(function(D){D.setDate(D.getDate()-(D.getDay()+7-p)%7);D.setHours(0,0,0,0)},function(D,P){D.setDate(D.getDate()+P*7)},function(D,P){return(P-D-(P.getTimezoneOffset()-D.getTimezoneOffset())*6E4)/6048E5})}
function D2(p){return hX(function(D){D.setUTCDate(D.getUTCDate()-(D.getUTCDay()+7-p)%7);D.setUTCHours(0,0,0,0)},function(D,P){D.setUTCDate(D.getUTCDate()+P*7)},function(D,P){return(P-D)/6048E5})}
function $Qt(p){if(0<=p.y&&p.y<100){var D=new Date(-1,p.m,p.d,p.H,p.M,p.S,p.L);D.setFullYear(p.y);return D}return new Date(p.y,p.m,p.d,p.H,p.M,p.S,p.L)}
function lyv(p){if(0<=p.y&&p.y<100){var D=new Date(Date.UTC(-1,p.m,p.d,p.H,p.M,p.S,p.L));D.setUTCFullYear(p.y);return D}return new Date(Date.UTC(p.y,p.m,p.d,p.H,p.M,p.S,p.L))}
function IZ(p){return{y:p,m:0,d:1,H:0,M:0,S:0,L:0}}
function W5r(p){function D(Gh,jV){return function(yO){var ri=[],QP=-1,rT=0,EP=Gh.length,h8,Xy;for(yO instanceof Date||(yO=new Date(+yO));++QP<EP;)if(Gh.charCodeAt(QP)===37){ri.push(Gh.slice(rT,QP));(rT=AGa[h8=Gh.charAt(++QP)])!=null?h8=Gh.charAt(++QP):rT=h8==="e"?" ":"0";if(Xy=jV[h8])h8=Xy(yO,rT);ri.push(h8);rT=QP+1}ri.push(Gh.slice(rT,QP));return ri.join("")}}
function P(Gh,jV){return function(yO){var ri=IZ(1900);if(HR(ri,Gh,yO,0)!=yO.length)return null;if("Q"in ri)return new Date(ri.Q);"p"in ri&&(ri.H=ri.H%12+ri.p*12);if("V"in ri){if(ri.V<1||ri.V>53)return null;"w"in ri||(ri.w=1);if("Z"in ri){yO=lyv(IZ(ri.y));var QP=yO.getUTCDay();yO=QP>4||QP===0?qze.ceil(yO):qze(yO);yO=bOn.offset(yO,(ri.V-1)*7);ri.y=yO.getUTCFullYear();ri.m=yO.getUTCMonth();ri.d=yO.getUTCDate()+(ri.w+6)%7}else yO=jV(IZ(ri.y)),QP=yO.getDay(),yO=QP>4||QP===0?fs5.ceil(yO):fs5(yO),yO=iOh.offset(yO,
(ri.V-1)*7),ri.y=yO.getFullYear(),ri.m=yO.getMonth(),ri.d=yO.getDate()+(ri.w+6)%7}else if("W"in ri||"U"in ri)"w"in ri||(ri.w="u"in ri?ri.u%7:"W"in ri?1:0),QP="Z"in ri?lyv(IZ(ri.y)).getUTCDay():jV(IZ(ri.y)).getDay(),ri.m=0,ri.d="W"in ri?(ri.w+6)%7+ri.W*7-(QP+5)%7:ri.w+ri.U*7-(QP+6)%7;return"Z"in ri?(ri.H+=ri.Z/100|0,ri.M+=ri.Z%100,lyv(ri)):jV(ri)}}
function HR(Gh,jV,yO,ri){for(var QP=0,rT=jV.length,EP=yO.length,h8;QP<rT;){if(ri>=EP)return-1;h8=jV.charCodeAt(QP++);if(h8===37){if(h8=jV.charAt(QP++),h8=fb[h8 in AGa?jV.charAt(QP++):h8],!h8||(ri=h8(Gh,yO,ri))<0)return-1}else if(h8!=yO.charCodeAt(ri++))return-1}return ri}
var yR=p.dateTime,dB=p.date,eE=p.time,D_=p.periods,t9=p.days,wB=p.shortDays,MT=p.months,Sv=p.shortMonths,kg=Si(D_),x5=dD(D_),ZM=Si(t9),Ne=dD(t9),LS=Si(wB),Cb=dD(wB),ug=Si(MT),mO=dD(MT),Px=Si(Sv),ah=dD(Sv),gA={a:function(Gh){return wB[Gh.getDay()]},
A:function(Gh){return t9[Gh.getDay()]},
b:function(Gh){return Sv[Gh.getMonth()]},
B:function(Gh){return MT[Gh.getMonth()]},
c:null,d:kuC,e:kuC,f:OvG,H:gW0,I:Ik5,j:SpG,L:To9,m:dQA,M:jfx,p:function(Gh){return D_[+(Gh.getHours()>=12)]},
Q:wLv,s:qIb,S:sf5,u:Zvb,U:Jch,V:lk5,w:UQx,W:eYx,x:null,X:null,y:L5W,Y:xQx,Z:BCr,"%":f5C},XM={a:function(Gh){return wB[Gh.getUTCDay()]},
A:function(Gh){return t9[Gh.getUTCDay()]},
b:function(Gh){return Sv[Gh.getUTCMonth()]},
B:function(Gh){return MT[Gh.getUTCMonth()]},
c:null,d:HMr,e:HMr,f:zYW,H:F5W,I:rc5,j:K5p,L:vih,m:DQw,M:oW5,p:function(Gh){return D_[+(Gh.getUTCHours()>=12)]},
Q:wLv,s:qIb,S:nW5,u:pdx,U:Qfr,V:udA,w:aki,W:PPr,x:null,X:null,y:G3F,Y:CPx,Z:EWA,"%":f5C},fb={a:function(Gh,jV,yO){return(jV=LS.exec(jV.slice(yO)))?(Gh.w=Cb[jV[0].toLowerCase()],yO+jV[0].length):-1},
A:function(Gh,jV,yO){return(jV=ZM.exec(jV.slice(yO)))?(Gh.w=Ne[jV[0].toLowerCase()],yO+jV[0].length):-1},
b:function(Gh,jV,yO){return(jV=Px.exec(jV.slice(yO)))?(Gh.m=ah[jV[0].toLowerCase()],yO+jV[0].length):-1},
B:function(Gh,jV,yO){return(jV=ug.exec(jV.slice(yO)))?(Gh.m=mO[jV[0].toLowerCase()],yO+jV[0].length):-1},
c:function(Gh,jV,yO){return HR(Gh,yR,jV,yO)},
d:tDZ,e:tDZ,f:NC0,H:MDM,I:MDM,j:ccA,L:Xd5,m:AcA,M:bvG,p:function(Gh,jV,yO){return(jV=kg.exec(jV.slice(yO)))?(Gh.p=x5[jV[0].toLowerCase()],yO+jV[0].length):-1},
Q:ivr,s:k3i,S:TCi,u:wdr,U:qpF,V:f7t,w:HOi,W:vPG,x:function(Gh,jV,yO){return HR(Gh,dB,jV,yO)},
X:function(Gh,jV,yO){return HR(Gh,eE,jV,yO)},
y:t0W,Y:M0r,Z:h4G,"%":R4x};gA.x=D(dB,gA);gA.X=D(eE,gA);gA.c=D(yR,gA);XM.x=D(dB,XM);XM.X=D(eE,XM);XM.c=D(yR,XM);return{format:function(Gh){var jV=D(Gh,gA);jV.toString=function(){return Gh};
return jV},
parse:function(Gh){var jV=P(Gh,$Qt);jV.toString=function(){return Gh};
return jV},
utcFormat:function(Gh){var jV=D(Gh,XM);jV.toString=function(){return Gh};
return jV},
utcParse:function(Gh){var jV=P(Gh,lyv);jV.toString=function(){return Gh};
return jV}}}
function mZ(p,D,P){var HR=p<0?"-":"";p=(HR?-p:p)+"";var yR=p.length;return HR+(yR<P?Array(P-yR+1).join(D)+p:p)}
function V0p(p){return p.replace(yGF,"\\$&")}
function Si(p){return new RegExp("^(?:"+p.map(V0p).join("|")+")","i")}
function dD(p){for(var D={},P=-1,HR=p.length;++P<HR;)D[p[P].toLowerCase()]=P;return D}
function HOi(p,D,P){return(D=$T.exec(D.slice(P,P+1)))?(p.w=+D[0],P+D[0].length):-1}
function wdr(p,D,P){return(D=$T.exec(D.slice(P,P+1)))?(p.u=+D[0],P+D[0].length):-1}
function qpF(p,D,P){return(D=$T.exec(D.slice(P,P+2)))?(p.U=+D[0],P+D[0].length):-1}
function f7t(p,D,P){return(D=$T.exec(D.slice(P,P+2)))?(p.V=+D[0],P+D[0].length):-1}
function vPG(p,D,P){return(D=$T.exec(D.slice(P,P+2)))?(p.W=+D[0],P+D[0].length):-1}
function M0r(p,D,P){return(D=$T.exec(D.slice(P,P+4)))?(p.y=+D[0],P+D[0].length):-1}
function t0W(p,D,P){return(D=$T.exec(D.slice(P,P+2)))?(p.y=+D[0]+(+D[0]>68?1900:2E3),P+D[0].length):-1}
function h4G(p,D,P){return(D=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(D.slice(P,P+6)))?(p.Z=D[1]?0:-(D[2]+(D[3]||"00")),P+D[0].length):-1}
function AcA(p,D,P){return(D=$T.exec(D.slice(P,P+2)))?(p.m=D[0]-1,P+D[0].length):-1}
function tDZ(p,D,P){return(D=$T.exec(D.slice(P,P+2)))?(p.d=+D[0],P+D[0].length):-1}
function ccA(p,D,P){return(D=$T.exec(D.slice(P,P+3)))?(p.m=0,p.d=+D[0],P+D[0].length):-1}
function MDM(p,D,P){return(D=$T.exec(D.slice(P,P+2)))?(p.H=+D[0],P+D[0].length):-1}
function bvG(p,D,P){return(D=$T.exec(D.slice(P,P+2)))?(p.M=+D[0],P+D[0].length):-1}
function TCi(p,D,P){return(D=$T.exec(D.slice(P,P+2)))?(p.S=+D[0],P+D[0].length):-1}
function Xd5(p,D,P){return(D=$T.exec(D.slice(P,P+3)))?(p.L=+D[0],P+D[0].length):-1}
function NC0(p,D,P){return(D=$T.exec(D.slice(P,P+6)))?(p.L=Math.floor(D[0]/1E3),P+D[0].length):-1}
function R4x(p,D,P){return(p=YIr.exec(D.slice(P,P+1)))?P+p[0].length:-1}
function ivr(p,D,P){return(D=$T.exec(D.slice(P)))?(p.Q=+D[0],P+D[0].length):-1}
function k3i(p,D,P){return(D=$T.exec(D.slice(P)))?(p.Q=+D[0]*1E3,P+D[0].length):-1}
function kuC(p,D){return mZ(p.getDate(),D,2)}
function gW0(p,D){return mZ(p.getHours(),D,2)}
function Ik5(p,D){return mZ(p.getHours()%12||12,D,2)}
function SpG(p,D){return mZ(1+iOh.count(qs(p),p),D,3)}
function To9(p,D){return mZ(p.getMilliseconds(),D,3)}
function OvG(p,D){return To9(p,D)+"000"}
function dQA(p,D){return mZ(p.getMonth()+1,D,2)}
function jfx(p,D){return mZ(p.getMinutes(),D,2)}
function sf5(p,D){return mZ(p.getSeconds(),D,2)}
function Zvb(p){p=p.getDay();return p===0?7:p}
function Jch(p,D){return mZ(mIh.count(qs(p),p),D,2)}
function lk5(p,D){var P=p.getDay();p=P>=4||P===0?HWg(p):HWg.ceil(p);return mZ(HWg.count(qs(p),p)+(qs(p).getDay()===4),D,2)}
function UQx(p){return p.getDay()}
function eYx(p,D){return mZ(fs5.count(qs(p),p),D,2)}
function L5W(p,D){return mZ(p.getFullYear()%100,D,2)}
function xQx(p,D){return mZ(p.getFullYear()%1E4,D,4)}
function BCr(p){p=p.getTimezoneOffset();return(p>0?"-":(p*=-1,"+"))+mZ(p/60|0,"0",2)+mZ(p%60,"0",2)}
function HMr(p,D){return mZ(p.getUTCDate(),D,2)}
function F5W(p,D){return mZ(p.getUTCHours(),D,2)}
function rc5(p,D){return mZ(p.getUTCHours()%12||12,D,2)}
function K5p(p,D){return mZ(1+bOn.count(fD(p),p),D,3)}
function vih(p,D){return mZ(p.getUTCMilliseconds(),D,3)}
function zYW(p,D){return vih(p,D)+"000"}
function DQw(p,D){return mZ(p.getUTCMonth()+1,D,2)}
function oW5(p,D){return mZ(p.getUTCMinutes(),D,2)}
function nW5(p,D){return mZ(p.getUTCSeconds(),D,2)}
function pdx(p){p=p.getUTCDay();return p===0?7:p}
function Qfr(p,D){return mZ($Iw.count(fD(p),p),D,2)}
function udA(p,D){var P=p.getUTCDay();p=P>=4||P===0?vpR(p):vpR.ceil(p);return mZ(vpR.count(fD(p),p)+(fD(p).getUTCDay()===4),D,2)}
function aki(p){return p.getUTCDay()}
function PPr(p,D){return mZ(qze.count(fD(p),p),D,2)}
function G3F(p,D){return mZ(p.getUTCFullYear()%100,D,2)}
function CPx(p,D){return mZ(p.getUTCFullYear()%1E4,D,4)}
function EWA(){return"+0000"}
function f5C(){return"%"}
function wLv(p){return+p}
function qIb(p){return Math.floor(+p/1E3)}
function OZ(p){for(var D=p.length/6|0,P=Array(D),HR=0;HR<D;)P[HR]="#"+p.slice(HR*6,++HR*6);return P}
function uZ(p){return WEx(p[p.length-1])}
function UJr(p){var D=p.length;return function(P){return p[Math.max(0,Math.min(D-1,Math.floor(P*D)))]}}
function hPM(p){this._context=p}
function RP9(p){this._curve=p}
function VDZ(p,D,P){var HR=p._x1-p._x0;D-=p._x1;var yR=(p._y1-p._y0)/(HR||D<0&&-0);p=(P-p._y1)/(D||HR<0&&-0);return((yR<0?-1:1)+(p<0?-1:1))*Math.min(Math.abs(yR),Math.abs(p),.5*Math.abs((yR*D+p*HR)/(HR+D)))||0}
function ypH(p,D){var P=p._x1-p._x0;return P?(3*(p._y1-p._y0)/P-D)/2:D}
function t33(p,D,P){var HR=p._x0,yR=p._x1,dB=p._y1,eE=(yR-HR)/3;p._context.bezierCurveTo(HR+eE,p._y0+eE*D,yR-eE,dB-eE*P,yR,dB)}
function M3H(p){this._context=p}
function YzT(p){this._context=p}
function ji(p,D,P){this.k=p;this.x=D;this.y=P}
(function(p){p.length===1&&(p=H(p));return{left:function(D,P,HR,yR){HR==null&&(HR=0);yR==null&&(yR=D.length);for(;HR<yR;){var dB=HR+yR>>>1;p(D[dB],P)<0?HR=dB+1:yR=dB}return HR},
right:function(D,P,HR,yR){HR==null&&(HR=0);yR==null&&(yR=D.length);for(;HR<yR;){var dB=HR+yR>>>1;p(D[dB],P)>0?yR=dB:HR=dB+1}return HR}}})(f);
var hRG={value:function(){}};
t.prototype=v.prototype={constructor:t,on:function(p,D){var P=this._,HR=M(p+"",P),yR,dB=-1,eE=HR.length;if(arguments.length<2)for(;++dB<eE;){var D_;if(D_=yR=(p=HR[dB]).type){a:{D_=P[yR];for(var t9=0,wB=D_.length;t9<wB;++t9)if((yR=D_[t9]).name===p.name){yR=yR.value;break a}yR=void 0}D_=yR}if(D_)return yR}else{if(D!=null&&typeof D!=="function")throw Error("ye`"+D);for(;++dB<eE;)if(yR=(p=HR[dB]).type)P[yR]=h(P[yR],p.name,D);else if(D==null)for(yR in P)P[yR]=h(P[yR],p.name,null);return this}},
copy:function(){var p={},D=this._,P;for(P in D)p[P]=D[P].slice();return new t(p)},
call:function(p,D){if((yR=arguments.length-2)>0)for(var P=Array(yR),HR=0,yR,dB;HR<yR;++HR)P[HR]=arguments[HR+2];if(!this._.hasOwnProperty(p))throw Error("se`"+p);dB=this._[p];HR=0;for(yR=dB.length;HR<yR;++HR)dB[HR].value.apply(D,P)},
apply:function(p,D,P){if(!this._.hasOwnProperty(p))throw Error("se`"+p);p=this._[p];for(var HR=0,yR=p.length;HR<yR;++HR)p[HR].value.apply(D,P)}};
var e4={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/"},mBH=function(p){return function(){return this.matches(p)}};
if(typeof document!=="undefined"){var sf=document.documentElement;if(!sf.matches){var OO0=sf.webkitMatchesSelector||sf.msMatchesSelector||sf.mozMatchesSelector||sf.oMatchesSelector;mBH=function(p){return function(){return OO0.call(this,p)}}}}var $B9=mBH;
l.prototype={constructor:l,appendChild:function(p){return this._parent.insertBefore(p,this._next)},
insertBefore:function(p,D){return this._parent.insertBefore(p,D)},
querySelector:function(p){return this._parent.querySelector(p)},
querySelectorAll:function(p){return this._parent.querySelectorAll(p)}};
var gPC={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(gPC={mouseenter:"mouseover",mouseleave:"mouseout"}));var RRi=[null];iC.prototype=jp.prototype={constructor:iC,select:function(p){typeof p!=="function"&&(p=d(p));for(var D=this._groups,P=D.length,HR=Array(P),yR=0;yR<P;++yR)for(var dB=D[yR],eE=dB.length,D_=HR[yR]=Array(eE),t9,wB,MT=0;MT<eE;++MT)(t9=dB[MT])&&(wB=p.call(t9,t9.__data__,MT,dB))&&("__data__"in t9&&(wB.__data__=t9.__data__),D_[MT]=wB);return new iC(HR,
this._parents)},
filter:function(p){typeof p!=="function"&&(p=$B9(p));for(var D=this._groups,P=D.length,HR=Array(P),yR=0;yR<P;++yR)for(var dB=D[yR],eE=dB.length,D_=HR[yR]=[],t9,wB=0;wB<eE;++wB)(t9=dB[wB])&&p.call(t9,t9.__data__,wB,dB)&&D_.push(t9);return new iC(HR,this._parents)},
data:function(p,D){if(!p)return x5=Array(this.size()),wB=-1,this.each(function(ug){x5[++wB]=ug}),x5;
var P=D?n:r,HR=this._parents,yR=this._groups;typeof p!=="function"&&(p=L(p));for(var dB=yR.length,eE=Array(dB),D_=Array(dB),t9=Array(dB),wB=0;wB<dB;++wB){var MT=HR[wB],Sv=yR[wB],kg=Sv.length,x5=p.call(MT,MT&&MT.__data__,wB,HR),ZM=x5.length,Ne=D_[wB]=Array(ZM),LS=eE[wB]=Array(ZM);kg=t9[wB]=Array(kg);P(MT,Sv,Ne,LS,kg,x5,D);Sv=MT=0;for(var Cb;MT<ZM;++MT)if(kg=Ne[MT]){for(MT>=Sv&&(Sv=MT+1);!(Cb=LS[Sv])&&++Sv<ZM;);kg._next=Cb||null}}eE=new iC(eE,HR);eE._enter=D_;eE._exit=t9;return eE},
enter:function(){return new iC(this._enter||this._groups.map(Z),this._parents)},
exit:function(){return new iC(this._exit||this._groups.map(Z),this._parents)},
merge:function(p){var D=this._groups;p=p._groups;for(var P=D.length,HR=Math.min(P,p.length),yR=Array(P),dB=0;dB<HR;++dB)for(var eE=D[dB],D_=p[dB],t9=eE.length,wB=yR[dB]=Array(t9),MT,Sv=0;Sv<t9;++Sv)if(MT=eE[Sv]||D_[Sv])wB[Sv]=MT;for(;dB<P;++dB)yR[dB]=D[dB];return new iC(yR,this._parents)},
order:function(){for(var p=this._groups,D=-1,P=p.length;++D<P;)for(var HR=p[D],yR=HR.length-1,dB=HR[yR],eE;--yR>=0;)if(eE=HR[yR])dB&&dB!==eE.nextSibling&&dB.parentNode.insertBefore(eE,dB),dB=eE;return this},
sort:function(p){function D(Sv,kg){return Sv&&kg?p(Sv.__data__,kg.__data__):!Sv-!kg}
p||(p=Q);for(var P=this._groups,HR=P.length,yR=Array(HR),dB=0;dB<HR;++dB){for(var eE=P[dB],D_=eE.length,t9=yR[dB]=Array(D_),wB,MT=0;MT<D_;++MT)if(wB=eE[MT])t9[MT]=wB;t9.sort(D)}return(new iC(yR,this._parents)).order()},
call:function(){var p=arguments[0];arguments[0]=this;p.apply(null,arguments);return this},
nodes:function(){var p=Array(this.size()),D=-1;this.each(function(){p[++D]=this});
return p},
node:function(){for(var p=this._groups,D=0,P=p.length;D<P;++D)for(var HR=p[D],yR=0,dB=HR.length;yR<dB;++yR){var eE=HR[yR];if(eE)return eE}return null},
size:function(){var p=0;this.each(function(){++p});
return p},
empty:function(){return!this.node()},
each:function(p){for(var D=this._groups,P=0,HR=D.length;P<HR;++P)for(var yR=D[P],dB=0,eE=yR.length,D_;dB<eE;++dB)(D_=yR[dB])&&p.call(D_,D_.__data__,dB,yR);return this},
attr:function(p,D){var P=y(p);if(arguments.length<2){var HR=this.node();return P.local?HR.getAttributeNS(P.space,P.local):HR.getAttribute(P)}return this.each((D==null?P.local?w:C:typeof D==="function"?P.local?fg:X:P.local?A:c)(P,D))},
style:function(p,D,P){return arguments.length>1?this.each((D==null?gB:typeof D==="function"?s5:O5)(p,D,P==null?"":P)):U5(this.node(),p)},
property:function(p,D){return arguments.length>1?this.each((D==null?lH:typeof D==="function"?uH:E5)(p,D)):this.node()[p]},
text:function(p){return arguments.length?this.each(p==null?Rn:(typeof p==="function"?gh:pr)(p)):this.node().textContent},
html:function(p){return arguments.length?this.each(p==null?fr:(typeof p==="function"?In:sb)(p)):this.node().innerHTML},
append:function(p){var D=typeof p==="function"?p:I(p);return this.select(function(){return this.appendChild(D.apply(this,arguments))})},
insert:function(p,D){var P=typeof p==="function"?p:I(p),HR=D==null?Kr:typeof D==="function"?D:d(D);return this.select(function(){return this.insertBefore(P.apply(this,arguments),HR.apply(this,arguments)||null)})},
remove:function(){return this.each(BA)},
clone:function(p){return this.select(p?hN:TH)},
datum:function(p){return arguments.length?this.property("__data__",p):this.node().__data__},
on:function(p,D,P){var HR=Ox(p+""),yR=HR.length,dB;if(arguments.length<2){var eE=this.node().__on;if(eE)for(var D_=0,t9=eE.length,wB;D_<t9;++D_){var MT=0;for(wB=eE[D_];MT<yR;++MT)if((dB=HR[MT]).type===wB.type&&dB.name===wB.name)return wB.value}}else{eE=D?vA:lC;P==null&&(P=!1);for(MT=0;MT<yR;++MT)this.each(eE(HR[MT],D,P));return this}},
dispatch:function(p,D){return this.each((typeof D==="function"?$g:HA)(p,D))}};
var VHt=0;zH.prototype=function(){return new zH}.prototype={constructor:zH,
get:function(p){for(var D=this._;!(D in p);)if(!(p=p.parentNode))return;return p[D]},
set:function(p,D){return p[this._]=D},
remove:function(p){return this._ in p&&delete p[this._]},
toString:function(){return this._}};
var HW=1/.7,yHi=/^#([0-9a-f]{3})$/,Y85=/^#([0-9a-f]{6})$/,m_W=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),$_w=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),W4p=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),O3w=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*\\)$"),
g3p=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),I6A=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*\\)$"),I7g={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};
Fa(Oq,di,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
Fa(Xb,PA,lt(Oq,{brighter:function(p){p=p==null?HW:Math.pow(HW,p);return new Xb(this.r*p,this.g*p,this.b*p,this.opacity)},
darker:function(p){p=p==null?.7:Math.pow(.7,p);return new Xb(this.r*p,this.g*p,this.b*p,this.opacity)},
rgb:function(){return this},
displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},
hex:function(){return"#"+YU(this.r)+YU(this.g)+YU(this.b)},
toString:function(){var p=this.opacity;p=isNaN(p)?1:Math.max(0,Math.min(1,p));return(p===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(p===1?")":", "+p+")")}}));
Fa(Jm,U0,lt(Oq,{brighter:function(p){p=p==null?HW:Math.pow(HW,p);return new Jm(this.h,this.s,this.l*p,this.opacity)},
darker:function(p){p=p==null?.7:Math.pow(.7,p);return new Jm(this.h,this.s,this.l*p,this.opacity)},
rgb:function(){var p=this.h%360+(this.h<0)*360,D=this.l,P=D+(D<.5?D:1-D)*(isNaN(p)||isNaN(this.s)?0:this.s);D=2*D-P;return new Xb(Go(p>=240?p-240:p+120,D,P),Go(p,D,P),Go(p<120?p+240:p-120,D,P),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 SIo=Math.PI/180,sXb=180/Math.PI,jXn=4/29,Tv=6/29,dIC=3*Tv*Tv,S8x=Tv*Tv*Tv;Fa(zb,function(p,D,P,HR){return arguments.length===1?RW(p):new zb(p,D,P,HR==null?1:HR)},lt(Oq,{brighter:function(p){return new zb(this.l+18*(p==null?1:p),this.a,this.b,this.opacity)},
darker:function(p){return new zb(this.l-18*(p==null?1:p),this.a,this.b,this.opacity)},
rgb:function(){var p=(this.l+16)/116,D=isNaN(this.a)?p:p+this.a/500,P=isNaN(this.b)?p:p-this.b/200;D=.96422*Xe(D);p=1*Xe(p);P=.82521*Xe(P);return new Xb(dh(3.1338561*D-1.6168667*p-.4906146*P),dh(-.9787684*D+1.9161415*p+.033454*P),dh(.0719453*D-.2289914*p+1.4052427*P),this.opacity)}}));
Fa(ev,L0,lt(Oq,{brighter:function(p){return new ev(this.h,this.c,this.l+18*(p==null?1:p),this.opacity)},
darker:function(p){return new ev(this.h,this.c,this.l-18*(p==null?1:p),this.opacity)},
rgb:function(){return RW(this).rgb()}}));
var ZOh=1.78277*-.29227-.1347134789;Fa(n0,Ub,lt(Oq,{brighter:function(p){p=p==null?HW:Math.pow(HW,p);return new n0(this.h,this.s,this.l*p,this.opacity)},
darker:function(p){p=p==null?.7:Math.pow(.7,p);return new n0(this.h,this.s,this.l*p,this.opacity)},
rgb:function(){var p=isNaN(this.h)?0:(this.h+120)*SIo,D=+this.l,P=isNaN(this.s)?0:this.s*D*(1-D),HR=Math.cos(p);p=Math.sin(p);return new Xb(255*(D+P*(-.14861*HR+1.78277*p)),255*(D+P*(-.29227*HR+-.90649*p)),255*(D+1.97294*HR*P),this.opacity)}}));
var LEh=function P(D){function HR(dB,eE){var D_=yR((dB=PA(dB)).r,(eE=PA(eE)).r),t9=yR(dB.g,eE.g),wB=yR(dB.b,eE.b),MT=Q_(dB.opacity,eE.opacity);return function(Sv){dB.r=D_(Sv);dB.g=t9(Sv);dB.b=wB(Sv);dB.opacity=MT(Sv);return dB+""}}
var yR=oh(D);HR.gamma=P;return HR}(1),WEx=iT(function(D){var P=D.length-1;
return function(HR){var yR=HR<=0?HR=0:HR>=1?(HR=1,P-1):Math.floor(HR*P),dB=D[yR],eE=D[yR+1];return de((HR-yR/P)*P,yR>0?D[yR-1]:2*dB-eE,dB,eE,yR<P-1?D[yR+2]:2*eE-dB)}});
iT(function(D){var P=D.length;return function(HR){var yR=Math.floor(((HR%=1)<0?++HR:HR)*P);return de((HR-yR/P)*P,D[(yR+P-1)%P],D[yR%P],D[(yR+1)%P],D[(yR+2)%P])}});
var a5B=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Pqe=new RegExp(a5B.source,"g"),JGC=180/Math.PI,h5R={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Zg,R5R,WH_,evg,gPt=p0(function(D){if(D==="none")return h5R;Zg||(Zg=document.createElement("DIV"),R5R=document.documentElement,WH_=document.defaultView);Zg.style.transform=D;D=WH_.getComputedStyle(R5R.appendChild(Zg),null).getPropertyValue("transform");R5R.removeChild(Zg);D=D.slice(7,-1).split(",");return sx(+D[0],+D[1],+D[2],+D[3],
+D[4],+D[5])},"px, ","px)","deg)"),I75=p0(function(D){if(D==null)return h5R;
evg||(evg=document.createElementNS("http://www.w3.org/2000/svg","g"));evg.setAttribute("transform",D);if(!(D=evg.transform.baseVal.consolidate()))return h5R;D=D.matrix;return sx(D.a,D.b,D.c,D.d,D.e,D.f)},", ",")",")");
yG(a1);yG(Q_);$O(a1);$O(Q_);XU(a1);var V3R=XU(Q_),wa=0,mK=0,WN=0,Iy5,$r,gZB=0,F$=0,OlT=0,Yr=typeof performance==="object"&&performance.now?performance:Date,l7h=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(D){setTimeout(D,17)};
jf.prototype=Mh.prototype={constructor:jf,restart:function(D,P,HR){if(typeof D!=="function")throw new TypeError("ze");HR=(HR==null?p9():+HR)+(P==null?0:+P);this._next||$r===this||($r?$r._next=this:Iy5=this,$r=this);this._call=D;this._time=HR;RB()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,RB())}};
var jqA=v("start","end","interrupt"),sqp=[],SIA=jp.prototype.constructor,OMM=0,vW=jp.prototype;QU.prototype=function(D){return jp().transition(D)}.prototype={constructor:QU,
select:function(D){var P=this._name,HR=this._id;typeof D!=="function"&&(D=d(D));for(var yR=this._groups,dB=yR.length,eE=Array(dB),D_=0;D_<dB;++D_)for(var t9=yR[D_],wB=t9.length,MT=eE[D_]=Array(wB),Sv,kg,x5=0;x5<wB;++x5)(Sv=t9[x5])&&(kg=D.call(Sv,Sv.__data__,x5,t9))&&("__data__"in Sv&&(kg.__data__=Sv.__data__),MT[x5]=kg,GF3(MT[x5],P,HR,x5,MT,Sd(Sv,HR)));return new QU(eE,this._parents,P,HR)},
filter:function(D){typeof D!=="function"&&(D=$B9(D));for(var P=this._groups,HR=P.length,yR=Array(HR),dB=0;dB<HR;++dB)for(var eE=P[dB],D_=eE.length,t9=yR[dB]=[],wB,MT=0;MT<D_;++MT)(wB=eE[MT])&&D.call(wB,wB.__data__,MT,eE)&&t9.push(wB);return new QU(yR,this._parents,this._name,this._id)},
merge:function(D){if(D._id!==this._id)throw Error();var P=this._groups;D=D._groups;for(var HR=P.length,yR=Math.min(HR,D.length),dB=Array(HR),eE=0;eE<yR;++eE)for(var D_=P[eE],t9=D[eE],wB=D_.length,MT=dB[eE]=Array(wB),Sv,kg=0;kg<wB;++kg)if(Sv=D_[kg]||t9[kg])MT[kg]=Sv;for(;eE<HR;++eE)dB[eE]=P[eE];return new QU(dB,this._parents,this._name,this._id)},
selection:function(){return new SIA(this._groups,this._parents)},
transition:function(){for(var D=this._name,P=this._id,HR=++OMM,yR=this._groups,dB=yR.length,eE=0;eE<dB;++eE)for(var D_=yR[eE],t9=D_.length,wB,MT=0;MT<t9;++MT)if(wB=D_[MT]){var Sv=Sd(wB,P);GF3(wB,D,HR,MT,D_,{time:Sv.time+Sv.delay+Sv.duration,delay:0,duration:Sv.duration,ease:Sv.ease})}return new QU(yR,this._parents,D,HR)},
call:vW.call,nodes:vW.nodes,node:vW.node,size:vW.size,empty:vW.empty,each:vW.each,on:function(D,P){var HR=this._id;return arguments.length<2?Sd(this.node(),HR).on.on(D):this.each(Qqw(HR,D,P))},
attr:function(D,P){var HR=y(D),yR=HR==="transform"?I75:e4b;return this.attrTween(D,typeof P==="function"?(HR.local?BSr:x_F)(HR,yR,EiR(this,"attr."+D,P)):P==null?(HR.local?U_t:l6F)(HR):(HR.local?L4A:eRA)(HR,yR,P+""))},
attrTween:function(D,P){var HR="attr."+D;if(arguments.length<2)return(HR=this.tween(HR))&&HR._value;if(P==null)return this.tween(HR,null);if(typeof P!=="function")throw Error();var yR=y(D);return this.tween(HR,(yR.local?zR5:F4h)(yR,P))},
style:function(D,P,HR){var yR=D==="transform"?gPt:e4b;return P==null?this.styleTween(D,a6x(D,yR)).on("end.style."+D,Ppr(D)):this.styleTween(D,typeof P==="function"?Cpw(D,yR,EiR(this,"style."+D,P)):GAW(D,yR,P+""),HR)},
styleTween:function(D,P,HR){var yR="style."+D;if(arguments.length<2)return(yR=this.tween(yR))&&yR._value;if(P==null)return this.tween(yR,null);if(typeof P!=="function")throw Error();return this.tween(yR,E30(D,P,HR==null?"":HR))},
text:function(D){return this.tween("text",typeof D==="function"?cHG(EiR(this,"text",D)):NSw(D==null?"":D+""))},
remove:function(){return this.on("end.remove",uyx(this._id))},
tween:function(D,P){var HR=this._id;if(arguments.length<2){HR=Sd(this.node(),HR).tween;for(var yR=0,dB=HR.length,eE;yR<dB;++yR)if((eE=HR[yR]).name===D)return eE.value;return null}return this.each((P==null?Z3W:JHi)(HR,D,P))},
delay:function(D){var P=this._id;return arguments.length?this.each((typeof D==="function"?rHW:K4W)(P,D)):Sd(this.node(),P).delay},
duration:function(D){var P=this._id;return arguments.length?this.each((typeof D==="function"?D_x:o3h)(P,D)):Sd(this.node(),P).duration},
ease:function(D){var P=this._id;return arguments.length?this.each(n35(P,D)):Sd(this.node(),P).ease}};
var y$R={time:null,delay:0,duration:250,ease:function(D){return((D*=2)<=1?D*D*D:(D-=2)*D*D+2)/2}};
jp.prototype.transition=function(D){var P;if(D instanceof QU){var HR=D._id;D=D._name}else HR=++OMM,(P=y$R).time=p9(),D=D==null?null:D+"";for(var yR=this._groups,dB=yR.length,eE=0;eE<dB;++eE)for(var D_=yR[eE],t9=D_.length,wB,MT=0;MT<t9;++MT)if(wB=D_[MT]){var Sv=wB,kg=D,x5=HR,ZM=MT,Ne=D_,LS;if(!(LS=P))a:{LS=void 0;for(var Cb=HR;!(LS=wB.__transition)||!(LS=LS[Cb]);)if(!(wB=wB.parentNode)){LS=(y$R.time=p9(),y$R);break a}}GF3(Sv,kg,x5,ZM,Ne,LS)}return new QU(yR,this._parents,D,HR)};
["e","w"].map(N4e);["n","s"].map(N4e);"n e s w nw ne se sw".split(" ").map(N4e);cpg.prototype=function(){return new cpg}.prototype={constructor:cpg,
moveTo:function(D,P){this._+="M"+(this._x0=this._x1=+D)+","+(this._y0=this._y1=+P)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(D,P){this._+="L"+(this._x1=+D)+","+(this._y1=+P)},
bezierCurveTo:function(D,P,HR,yR,dB,eE){this._+="C"+ +D+","+ +P+","+ +HR+","+ +yR+","+(this._x1=+dB)+","+(this._y1=+eE)},
rect:function(D,P,HR,yR){this._+="M"+(this._x0=this._x1=+D)+","+(this._y0=this._y1=+P)+"h"+ +HR+"v"+ +yR+"h"+-HR+"Z"},
toString:function(){return this._}};
Skg.prototype=xIo.prototype={constructor:Skg,has:function(D){return" "+D in this},
get:function(D){return this[" "+D]},
set:function(D,P){this[" "+D]=P;return this},
remove:function(D){D=" "+D;return D in this&&delete this[D]},
clear:function(){for(var D in this)D[0]===" "&&delete this[D]},
keys:function(){var D=[],P;for(P in this)P[0]===" "&&D.push(P.slice(1));return D},
values:function(){var D=[],P;for(P in this)P[0]===" "&&D.push(this[P]);return D},
entries:function(){var D=[],P;for(P in this)P[0]===" "&&D.push({key:P.slice(1),value:this[P]});return D},
size:function(){var D=0,P;for(P in this)P[0]===" "&&++D;return D},
empty:function(){for(var D in this)if(D[0]===" ")return!1;return!0},
each:function(D){for(var P in this)P[0]===" "&&D(this[P],P.slice(1),this)}};
var o$=xIo.prototype;dJE.prototype=function(D,P){var HR=new dJE;if(D instanceof dJE)D.each(function(eE){HR.add(eE)});
else if(D){var yR=-1,dB=D.length;if(P==null)for(;++yR<dB;)HR.add(D[yR]);else for(;++yR<dB;)HR.add(P(D[yR],yR,D))}return HR}.prototype={constructor:dJE,
has:o$.has,add:function(D){this[" "+D]=D;return this},
remove:o$.remove,clear:o$.clear,values:o$.keys,size:o$.size,empty:o$.empty,each:o$.each};var FEo={},XH5={},dIt=z4b(",").parse,jXF=z4b("\t").parse;rGg(dIt);rGg(jXF);var K2=function(D,P,HR){P=new ApR(P==null?i3A:P,HR==null?kAi:HR,NaN,NaN,NaN,NaN);return D==null?P:P.addAll(D)}.prototype=ApR.prototype;
K2.copy=function(){var D=new ApR(this._x,this._y,this._x0,this._y0,this._x1,this._y1),P=this._root,HR,yR;if(!P)return D;if(!P.length)return D._root=DIh(P),D;for(HR=[{source:P,target:D._root=Array(4)}];P=HR.pop();)for(var dB=0;dB<4;++dB)if(yR=P.source[dB])yR.length?HR.push({source:yR,target:P.target[dB]=Array(4)}):P.target[dB]=DIh(yR);return D};
K2.add=function(D){var P=+this._x.call(null,D),HR=+this._y.call(null,D);return KEa(this.cover(P,HR),P,HR,D)};
K2.addAll=function(D){var P,HR,yR=D.length,dB,eE,D_=Array(yR),t9=Array(yR),wB=Infinity,MT=Infinity,Sv=-Infinity,kg=-Infinity;for(HR=0;HR<yR;++HR)isNaN(dB=+this._x.call(null,P=D[HR]))||isNaN(eE=+this._y.call(null,P))||(D_[HR]=dB,t9[HR]=eE,dB<wB&&(wB=dB),dB>Sv&&(Sv=dB),eE<MT&&(MT=eE),eE>kg&&(kg=eE));Sv<wB&&(wB=this._x0,Sv=this._x1);kg<MT&&(MT=this._y0,kg=this._y1);this.cover(wB,MT).cover(Sv,kg);for(HR=0;HR<yR;++HR)KEa(this,D_[HR],t9[HR],D[HR]);return this};
K2.cover=function(D,P){if(isNaN(D=+D)||isNaN(P=+P))return this;var HR=this._x0,yR=this._y0,dB=this._x1,eE=this._y1;if(isNaN(HR))dB=(HR=Math.floor(D))+1,eE=(yR=Math.floor(P))+1;else if(HR>D||D>dB||yR>P||P>eE){var D_=dB-HR,t9=this._root,wB;switch(wB=(P<(yR+eE)/2)<<1|D<(HR+dB)/2){case 0:do{var MT=Array(4);MT[wB]=t9;t9=MT}while(D_*=2,dB=HR+D_,eE=yR+D_,D>dB||P>eE);break;case 1:do MT=Array(4),MT[wB]=t9,t9=MT;while(D_*=2,HR=dB-D_,eE=yR+D_,HR>D||P>eE);break;case 2:do MT=Array(4),MT[wB]=t9,t9=MT;while(D_*=
2,dB=HR+D_,yR=eE-D_,D>dB||yR>P);break;case 3:do MT=Array(4),MT[wB]=t9,t9=MT;while(D_*=2,HR=dB-D_,yR=eE-D_,HR>D||yR>P)}this._root&&this._root.length&&(this._root=t9)}else return this;this._x0=HR;this._y0=yR;this._x1=dB;this._y1=eE;return this};
K2.data=function(){var D=[];this.visit(function(P){if(!P.length){do D.push(P.data);while(P=P.next)}});
return D};
K2.extent=function(D){return arguments.length?this.cover(+D[0][0],+D[0][1]).cover(+D[1][0],+D[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
K2.find=function(D,P,HR){var yR=this._x0,dB=this._y0,eE,D_,t9,wB,MT=this._x1,Sv=this._y1,kg=[],x5=this._root,ZM;x5&&kg.push(new rX(x5,yR,dB,MT,Sv));HR==null?HR=Infinity:(yR=D-HR,dB=P-HR,MT=D+HR,Sv=P+HR,HR*=HR);for(;ZM=kg.pop();)if(!(!(x5=ZM.node)||(eE=ZM.x0)>MT||(D_=ZM.y0)>Sv||(t9=ZM.x1)<yR||(wB=ZM.y1)<dB))if(x5.length){ZM=(eE+t9)/2;var Ne=(D_+wB)/2;kg.push(new rX(x5[3],ZM,Ne,t9,wB),new rX(x5[2],eE,Ne,ZM,wB),new rX(x5[1],ZM,D_,t9,Ne),new rX(x5[0],eE,D_,ZM,Ne));if(x5=(P>=Ne)<<1|D>=ZM)ZM=kg[kg.length-
1],kg[kg.length-1]=kg[kg.length-1-x5],kg[kg.length-1-x5]=ZM}else if(ZM=D-+this._x.call(null,x5.data),Ne=P-+this._y.call(null,x5.data),ZM=ZM*ZM+Ne*Ne,ZM<HR){var LS=Math.sqrt(HR=ZM);yR=D-LS;dB=P-LS;MT=D+LS;Sv=P+LS;LS=x5.data}return LS};
K2.remove=function(D){if(isNaN(wB=+this._x.call(null,D))||isNaN(MT=+this._y.call(null,D)))return this;var P,HR=this._root,yR,dB=this._x0,eE=this._y0,D_=this._x1,t9=this._y1,wB,MT,Sv,kg,x5,ZM,Ne;if(!HR)return this;if(HR.length)for(;;){(x5=wB>=(Sv=(dB+D_)/2))?dB=Sv:D_=Sv;(ZM=MT>=(kg=(eE+t9)/2))?eE=kg:t9=kg;if(!(P=HR,HR=HR[Ne=ZM<<1|x5]))return this;if(!HR.length)break;if(P[Ne+1&3]||P[Ne+2&3]||P[Ne+3&3]){var LS=P;var Cb=Ne}}for(;HR.data!==D;)if(!(yR=HR,HR=HR.next))return this;(D=HR.next)&&delete HR.next;
if(yR)return D?yR.next=D:delete yR.next,this;if(!P)return this._root=D,this;D?P[Ne]=D:delete P[Ne];(HR=P[0]||P[1]||P[2]||P[3])&&HR===(P[3]||P[2]||P[1]||P[0])&&!HR.length&&(LS?LS[Cb]=HR:this._root=HR);return this};
K2.removeAll=function(D){for(var P=0,HR=D.length;P<HR;++P)this.remove(D[P]);return this};
K2.root=function(){return this._root};
K2.size=function(){var D=0;this.visit(function(P){if(!P.length){do++D;while(P=P.next)}});
return D};
K2.visit=function(D){var P=[],HR,yR=this._root,dB,eE,D_,t9,wB;for(yR&&P.push(new rX(yR,this._x0,this._y0,this._x1,this._y1));HR=P.pop();)if(!D(yR=HR.node,eE=HR.x0,D_=HR.y0,t9=HR.x1,wB=HR.y1)&&yR.length){HR=(eE+t9)/2;var MT=(D_+wB)/2;(dB=yR[3])&&P.push(new rX(dB,HR,MT,t9,wB));(dB=yR[2])&&P.push(new rX(dB,eE,MT,HR,wB));(dB=yR[1])&&P.push(new rX(dB,HR,D_,t9,MT));(dB=yR[0])&&P.push(new rX(dB,eE,D_,HR,MT))}};
K2.visitAfter=function(D){var P=[],HR=[],yR;for(this._root&&P.push(new rX(this._root,this._x0,this._y0,this._x1,this._y1));yR=P.pop();){var dB=yR.node;if(dB.length){var eE,D_=yR.x0,t9=yR.y0,wB=yR.x1,MT=yR.y1,Sv=(D_+wB)/2,kg=(t9+MT)/2;(eE=dB[0])&&P.push(new rX(eE,D_,t9,Sv,kg));(eE=dB[1])&&P.push(new rX(eE,Sv,t9,wB,kg));(eE=dB[2])&&P.push(new rX(eE,D_,kg,Sv,MT));(eE=dB[3])&&P.push(new rX(eE,Sv,kg,wB,MT))}HR.push(yR)}for(;yR=HR.pop();)D(yR.node,yR.x0,yR.y0,yR.x1,yR.y1);return this};
K2.x=function(D){return arguments.length?(this._x=D,this):this._x};
K2.y=function(D){return arguments.length?(this._y=D,this):this._y};
var fkx=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;bMB.prototype=iMH.prototype;iMH.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 QX_,uzC={"%":function(D,P){return(D*100).toFixed(P)},
b:function(D){return Math.round(D).toString(2)},
c:function(D){return D+""},
d:function(D){return Math.round(D).toString(10)},
e:function(D,P){return D.toExponential(P)},
f:function(D,P){return D.toFixed(P)},
g:function(D,P){return D.toPrecision(P)},
o:function(D){return Math.round(D).toString(8)},
p:function(D,P){return oPM(D*100,P)},
r:oPM,s:function(D,P){var HR=j2R(D,P);if(!HR)return D+"";var yR=HR[0];HR=HR[1];HR=HR-(QX_=Math.max(-8,Math.min(8,Math.floor(HR/3)))*3)+1;var dB=yR.length;return HR===dB?yR:HR>dB?yR+Array(HR-dB+1).join("0"):HR>0?yR.slice(0,HR)+"."+yR.slice(HR):"0."+Array(1-HR).join("0")+j2R(D,Math.max(0,P+HR-1))[0]},
X:function(D){return Math.round(D).toString(16).toUpperCase()},
x:function(D){return Math.round(D).toString(16)}},pLM="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),sXx;
(function(D){return sXx=Hvr(D)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});O$.prototype={constructor:O$,reset:function(){this.s=this.t=0},
add:function(D){a7r(LpR,D,this.t);a7r(this,LpR.s,this.s);this.s?this.t+=LpR.t:this.s=LpR.t},
valueOf:function(){return this.s}};
var LpR=new O$,K1=Math.PI,LA=K1/2,gir=K1/4,ZOr=K1*2,YLR=K1/180,uM=Math.abs,m8g=Math.atan,cGZ=Math.atan2,xf=Math.cos,Sc=Math.sin,ZlN=Math.sqrt;new O$;new O$;new O$;var $8H=new O$;(function(D,P,HR,yR){return function(dB){function eE(ah,gA){D(ah,gA)&&dB.point(ah,gA)}
function D_(ah,gA){x5.point(ah,gA)}
function t9(){Px.point=D_;x5.lineStart()}
function wB(){Px.point=eE;x5.lineEnd()}
function MT(ah,gA){mO.push([ah,gA]);Ne.point(ah,gA)}
function Sv(){Ne.lineStart();mO=[]}
function kg(){MT(mO[0][0],mO[0][1]);Ne.lineEnd();var ah=Ne.clean(),gA=ZM.result(),XM=gA.length,fb;mO.pop();Cb.push(mO);mO=null;if(XM)if(ah&1){if(XM=gA[0],(gA=XM.length-1)>0){LS||(dB.polygonStart(),LS=!0);dB.lineStart();for(ah=0;ah<gA;++ah)dB.point((fb=XM[ah])[0],fb[1]);dB.lineEnd()}}else XM>1&&ah&2&&gA.push(gA.pop().concat(gA.shift())),ug.push(gA.filter(hYA))}
var x5=P(dB),ZM=tAF(),Ne=P(ZM),LS=!1,Cb,ug,mO,Px={point:eE,lineStart:t9,lineEnd:wB,polygonStart:function(){Px.point=MT;Px.lineStart=Sv;Px.lineEnd=kg;ug=[];Cb=[]},
polygonEnd:function(){Px.point=eE;Px.lineStart=t9;Px.lineEnd=wB;var ah=ug,gA=ah.length;var XM=-1;for(var fb=0,Gh,jV;++XM<gA;)fb+=ah[XM].length;for(Gh=Array(fb);--gA>=0;)for(jV=ah[gA],XM=jV.length;--XM>=0;)Gh[--fb]=jV[XM];ug=Gh;ah=Cb;gA=yR[0];fb=yR[1];var yO=Sc(fb);XM=[Sc(gA),-xf(gA),0];jV=Gh=0;$8H.reset();yO===1?fb=LA+1E-6:yO===-1&&(fb=-LA-1E-6);yO=0;for(var ri=ah.length;yO<ri;++yO)if(rT=(QP=ah[yO]).length){var QP,rT,EP=QP[rT-1],h8=EP[0],Xy=EP[1]/2+gir,xJb=Sc(Xy),I5g=xf(Xy);for(Xy=0;Xy<rT;++Xy,h8=
WJs,xJb=SzZ,I5g=Jy,EP=BHe){var BHe=QP[Xy],WJs=BHe[0];Jy=BHe[1]/2+gir;var SzZ=Sc(Jy),Jy=xf(Jy),tF=WJs-h8,OWg=tF>=0?1:-1,gp5=OWg*tF,zvv=gp5>K1;xJb*=SzZ;$8H.add(cGZ(xJb*OWg*Sc(gp5),I5g*Jy+xJb*xf(gp5)));Gh+=zvv?tF+OWg*ZOr:tF;zvv^h8>=gA^WJs>=gA&&(EP=Guo(P3h(EP),P3h(BHe)),C3h(EP),h8=Guo(XM,EP),C3h(h8),h8=(zvv^tF>=0?-1:1)*s25(h8[2]),fb>h8||fb===h8&&(EP[0]||EP[1]))&&(jV+=zvv^tF>=0?1:-1)}}ah=(Gh<-1E-6||Gh<1E-6&&$8H<-1E-6)^jV&1;ug.length?(LS||(dB.polygonStart(),LS=!0),MAw(ug,RYx,ah,HR,dB)):ah&&(LS||(dB.polygonStart(),
LS=!0),dB.lineStart(),HR(null,null,1,dB),dB.lineEnd());LS&&(dB.polygonEnd(),LS=!1);ug=Cb=null},
sphere:function(){dB.polygonStart();dB.lineStart();HR(null,null,1,dB);dB.lineEnd();dB.polygonEnd()}};
return Px}})(function(){return!0},function(D){var P=NaN,HR=NaN,yR=NaN,dB;
return{lineStart:function(){D.lineStart();dB=1},
point:function(eE,D_){var t9=eE>0?K1:-K1,wB=uM(eE-P);if(uM(wB-K1)<1E-6)D.point(P,HR=(HR+D_)/2>0?LA:-LA),D.point(yR,HR),D.lineEnd(),D.lineStart(),D.point(t9,HR),D.point(eE,HR),dB=0;else if(yR!==t9&&wB>=K1){uM(P-yR)<1E-6&&(P-=yR*1E-6);uM(eE-t9)<1E-6&&(eE-=t9*1E-6);wB=P;var MT=HR,Sv=eE,kg,x5,ZM=Sc(wB-Sv);HR=uM(ZM)>1E-6?m8g((Sc(MT)*(x5=xf(D_))*Sc(Sv)-Sc(D_)*(kg=xf(MT))*Sc(wB))/(kg*x5*ZM)):(MT+D_)/2;D.point(yR,HR);D.lineEnd();D.lineStart();D.point(t9,HR);dB=0}D.point(P=eE,HR=D_);yR=t9},
lineEnd:function(){D.lineEnd();P=HR=NaN},
clean:function(){return 2-dB}}},function(D,P,HR,yR){D==null?(HR*=LA,yR.point(-K1,HR),yR.point(0,HR),yR.point(K1,HR),yR.point(K1,0),yR.point(K1,-HR),yR.point(0,-HR),yR.point(-K1,-HR),yR.point(-K1,0),yR.point(-K1,HR)):uM(D[0]-P[0])>1E-6?(D=D[0]<P[0]?K1:-K1,HR=HR*D/2,yR.point(-D,HR),yR.point(0,HR),yR.point(D,HR)):yR.point(P[0],P[1])},[-K1,
-LA]);new O$;new O$;new O$;new O$;kF5.prototype={constructor:kF5,point:function(D,P){this.stream.point(D,P)},
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()}};
xf(30*YLR);(function(D){return function(P){var HR=new kF5,yR;for(yR in D)HR[yR]=D[yR];HR.stream=P;return HR}})({point:function(D,P){this.stream.point(D*YLR,P*YLR)}});
Non(function(D){return ZlN(2/(1+D))}).invert=Of(function(D){return 2*s25(D/2)});
Non(function(D){return(D=D>1?0:D<-1?K1:Math.acos(D))&&D/Sc(D)}).invert=Of(function(D){return D});
ZlN(3);Of(m8g);Of(s25);Of(function(D){return 2*m8g(D)});
gD.prototype=XL_.prototype={constructor:gD,count:function(){return this.eachAfter(VAW)},
each:function(D){var P,HR=[this],yR;do{var dB=HR.reverse();for(HR=[];P=dB.pop();)if(D(P),P=P.children){var eE=0;for(yR=P.length;eE<yR;++eE)HR.push(P[eE])}}while(HR.length);return this},
eachAfter:function(D){for(var P,HR=[this],yR=[],dB,eE;P=HR.pop();)if(yR.push(P),P=P.children)for(dB=0,eE=P.length;dB<eE;++dB)HR.push(P[dB]);for(;P=yR.pop();)D(P);return this},
eachBefore:function(D){for(var P,HR=[this],yR;P=HR.pop();)if(D(P),P=P.children)for(yR=P.length-1;yR>=0;--yR)HR.push(P[yR]);return this},
sum:function(D){return this.eachAfter(function(P){for(var HR=+D(P.data)||0,yR=P.children,dB=yR&&yR.length;--dB>=0;)HR+=yR[dB].value;P.value=HR})},
sort:function(D){return this.eachBefore(function(P){P.children&&P.children.sort(D)})},
path:function(D){var P=this;var HR=P;var yR=D;if(HR!==yR){var dB=HR.ancestors(),eE=yR.ancestors(),D_=null;HR=dB.pop();for(yR=eE.pop();HR===yR;)D_=HR,HR=dB.pop(),yR=eE.pop();HR=D_}for(yR=[P];P!==HR;)P=P.parent,yR.push(P);for(P=yR.length;D!==HR;)yR.splice(P,0,D),D=D.parent;return yR},
ancestors:function(){for(var D=this,P=[D];D=D.parent;)P.push(D);return P},
links:function(){var D=this,P=[];D.each(function(HR){HR!==D&&P.push({source:HR.parent,target:HR})});
return P},
copy:function(){return XL_(this).eachBefore(mQW)}};
(function(D,P){this._=D;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=P}).prototype=Object.create(gD.prototype);
var T4v=new Date,wH3=new Date,dBa=hX(function(){},function(D,P){D.setTime(+D+P)},function(D,P){return P-D});
dBa.every=function(D){D=Math.floor(D);return isFinite(D)&&D>0?D>1?hX(function(P){P.setTime(Math.floor(P/D)*D)},function(P,HR){P.setTime(+P+HR*D)},function(P,HR){return(HR-P)/D}):dBa:null};
hX(function(D){D.setTime(Math.floor(D/1E3)*1E3)},function(D,P){D.setTime(+D+P*1E3)},function(D,P){return(P-D)/1E3},function(D){return D.getUTCSeconds()});
hX(function(D){D.setTime(Math.floor(D/6E4)*6E4)},function(D,P){D.setTime(+D+P*6E4)},function(D,P){return(P-D)/6E4},function(D){return D.getMinutes()});
hX(function(D){var P=D.getTimezoneOffset()*6E4%36E5;P<0&&(P+=36E5);D.setTime(Math.floor((+D-P)/36E5)*36E5+P)},function(D,P){D.setTime(+D+P*36E5)},function(D,P){return(P-D)/36E5},function(D){return D.getHours()});
var iOh=hX(function(D){D.setHours(0,0,0,0)},function(D,P){D.setDate(D.getDate()+P)},function(D,P){return(P-D-(P.getTimezoneOffset()-D.getTimezoneOffset())*6E4)/864E5},function(D){return D.getDate()-1}),mIh=Kk(0),fs5=Kk(1);
Kk(2);Kk(3);var HWg=Kk(4);Kk(5);Kk(6);hX(function(D){D.setDate(1);D.setHours(0,0,0,0)},function(D,P){D.setMonth(D.getMonth()+P)},function(D,P){return P.getMonth()-D.getMonth()+(P.getFullYear()-D.getFullYear())*12},function(D){return D.getMonth()});
var qs=hX(function(D){D.setMonth(0,1);D.setHours(0,0,0,0)},function(D,P){D.setFullYear(D.getFullYear()+P)},function(D,P){return P.getFullYear()-D.getFullYear()},function(D){return D.getFullYear()});
qs.every=function(D){return isFinite(D=Math.floor(D))&&D>0?hX(function(P){P.setFullYear(Math.floor(P.getFullYear()/D)*D);P.setMonth(0,1);P.setHours(0,0,0,0)},function(P,HR){P.setFullYear(P.getFullYear()+HR*D)}):null};
hX(function(D){D.setUTCSeconds(0,0)},function(D,P){D.setTime(+D+P*6E4)},function(D,P){return(P-D)/6E4},function(D){return D.getUTCMinutes()});
hX(function(D){D.setUTCMinutes(0,0,0)},function(D,P){D.setTime(+D+P*36E5)},function(D,P){return(P-D)/36E5},function(D){return D.getUTCHours()});
var bOn=hX(function(D){D.setUTCHours(0,0,0,0)},function(D,P){D.setUTCDate(D.getUTCDate()+P)},function(D,P){return(P-D)/864E5},function(D){return D.getUTCDate()-1}),$Iw=D2(0),qze=D2(1);
D2(2);D2(3);var vpR=D2(4);D2(5);D2(6);hX(function(D){D.setUTCDate(1);D.setUTCHours(0,0,0,0)},function(D,P){D.setUTCMonth(D.getUTCMonth()+P)},function(D,P){return P.getUTCMonth()-D.getUTCMonth()+(P.getUTCFullYear()-D.getUTCFullYear())*12},function(D){return D.getUTCMonth()});
var fD=hX(function(D){D.setUTCMonth(0,1);D.setUTCHours(0,0,0,0)},function(D,P){D.setUTCFullYear(D.getUTCFullYear()+P)},function(D,P){return P.getUTCFullYear()-D.getUTCFullYear()},function(D){return D.getUTCFullYear()});
fD.every=function(D){return isFinite(D=Math.floor(D))&&D>0?hX(function(P){P.setUTCFullYear(Math.floor(P.getUTCFullYear()/D)*D);P.setUTCMonth(0,1);P.setUTCHours(0,0,0,0)},function(P,HR){P.setUTCFullYear(P.getUTCFullYear()+HR*D)}):null};
var AGa={"-":"",_:" ",0:"0"},$T=/^\s*\d+/,YIr=/^%/,yGF=/[\\^$*+?|[\]().{}]/g,Fpe;(function(D){Fpe=W5r(D);qRh=Fpe.utcFormat;fOg=Fpe.utcParse;return Fpe})({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||qRh("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||fOg("%Y-%m-%dT%H:%M:%S.%LZ");OZ("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
OZ("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");OZ("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");OZ("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");OZ("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");OZ("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");OZ("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
OZ("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");OZ("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");OZ("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");OZ("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");OZ("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var JGt=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(OZ);uZ(JGt);var l7i=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(OZ);uZ(l7i);var UIA=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(OZ);uZ(UIA);var e4x=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(OZ);
uZ(e4x);var LEi=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(OZ);uZ(LEi);var xIA=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(OZ);uZ(xIA);var Bo0=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(OZ);uZ(Bo0);var z4x=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(OZ);uZ(z4x);var FEA=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(OZ);uZ(FEA);var rG5=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(OZ);uZ(rG5);var KEb=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(OZ);uZ(KEb);var DIr=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(OZ);uZ(DIr);var oPG=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(OZ);uZ(oPG);var nPp=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(OZ);uZ(nPp);var pLG=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(OZ);uZ(pLG);var QXW=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(OZ);uZ(QXW);var uzt=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(OZ);uZ(uzt);var a70=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(OZ);uZ(a70);var P3r=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(OZ);uZ(P3r);var GuA=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(OZ);uZ(GuA);var C3i=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(OZ);uZ(C3i);var EPF=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(OZ);uZ(EPF);var NoF=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(OZ);uZ(NoF);var cGw=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(OZ);uZ(cGw);var XLW=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(OZ);uZ(XLW);var AGb=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(OZ);uZ(AGb);var bOF=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(OZ);uZ(bOF);V3R(Ub(300,.5,0),Ub(-240,.5,1));V3R(Ub(-100,.75,.35),Ub(80,1.5,.8));V3R(Ub(260,.75,.35),Ub(80,1.5,.8));Ub();PA();UJr(OZ("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
UJr(OZ("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
UJr(OZ("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
UJr(OZ("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
hPM.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(D,P){D=+D;P=+P;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(D,P):this._context.moveTo(D,P);break;case 1:this._point=2;default:this._context.lineTo(D,P)}}};
(function(D){function P(HR){return new RP9(D(HR))}
P._curve=D;return P})(function(D){return new hPM(D)});
RP9.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(D,P){this._curve.point(P*Math.sin(D),P*-Math.cos(D))}};
M3H.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:t33(this,this._t0,ypH(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(D,P){var HR=NaN;D=+D;P=+P;if(D!==this._x1||P!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(D,P):this._context.moveTo(D,P);break;case 1:this._point=2;break;case 2:this._point=3;t33(this,ypH(this,HR=VDZ(this,D,P)),HR);break;default:t33(this,this._t0,HR=VDZ(this,D,P))}this._x0=this._x1;this._x1=D;this._y0=this._y1;this._y1=P;this._t0=HR}}};
(function(D){this._context=new YzT(D)}.prototype=Object.create(M3H.prototype)).point=function(D,P){M3H.prototype.point.call(this,P,D)};
YzT.prototype={moveTo:function(D,P){this._context.moveTo(P,D)},
closePath:function(){this._context.closePath()},
lineTo:function(D,P){this._context.lineTo(P,D)},
bezierCurveTo:function(D,P,HR,yR,dB,eE){this._context.bezierCurveTo(P,D,yR,HR,eE,dB)}};
ji.prototype={constructor:ji,scale:function(D){return D===1?this:new ji(this.k*D,this.x,this.y)},
translate:function(D,P){return D===0&P===0?this:new ji(this.k,this.x+this.k*D,this.y+this.k*P)},
apply:function(D){return[D[0]*this.k+this.x,D[1]*this.k+this.y]},
invert:function(D){return[(D[0]-this.x)/this.k,(D[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new ji(1,0,0);rPe=di;e4.svg=e4.svg;e4.xhtml=e4.xhtml;e4.xlink=e4.xlink;e4.xml=e4.xml;e4.xmlns=e4.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 HTo="hammer_"+(Math.random()*1E6|0),v$a=function(){var f=document||document;if(!f[HTo]){var H=function(){(function(v,t,M,h){function y(zb,a3,Xe){return setTimeout(Z(zb,Xe),a3)}
function m(zb,a3,Xe){return Array.isArray(zb)?(W(zb,Xe[a3],Xe),!0):!1}
function W(zb,a3,Xe){var dh;if(zb)if(zb.forEach)zb.forEach(a3,Xe);else if(zb.length!==h){var gi=0;for(dh=zb.length;gi<dh;gi++)a3.call(Xe,zb[gi],gi,zb)}else for(gi in zb)zb.hasOwnProperty(gi)&&a3.call(Xe,zb[gi],gi,zb)}
function I(zb,a3,Xe){for(var dh=Object.keys(a3),gi=0,DM=dh.length;gi<DM;gi++)if(!Xe||Xe&&zb[dh[gi]]===h)zb[dh[gi]]=a3[dh[gi]];return zb}
function S(zb,a3){return I(zb,a3,!0)}
function d(zb,a3,Xe){a3=a3.prototype;var dh=zb.prototype=Object.create(a3);dh.constructor=zb;dh._super=a3;Xe&&I(dh,Xe)}
function Z(zb,a3){return function(){return zb.apply(a3,arguments)}}
function l(zb,a3){return typeof zb=="function"?zb.apply(a3?a3[0]||h:h,a3):zb}
function L(zb,a3,Xe){W(n(a3),function(dh){zb.addEventListener(dh,Xe,!1)})}
function r(zb,a3,Xe){W(n(a3),function(dh){zb.removeEventListener(dh,Xe,!1)})}
function n(zb){return zb.trim().split(/\s+/g)}
function Q(zb,a3,Xe){if(zb.indexOf&&!Xe)return zb.indexOf(a3);for(var dh=0,gi=zb.length;dh<gi;dh++)if(Xe&&zb[dh][Xe]==a3||!Xe&&zb[dh]===a3)return dh;return-1}
function C(zb,a3,Xe){for(var dh=[],gi=[],DM=0,L0=zb.length;DM<L0;DM++){var ev=a3?zb[DM][a3]:zb[DM];Q(gi,ev)<0&&dh.push(zb[DM]);gi[DM]=ev}Xe&&(dh=a3?dh.sort(function(Ub,n0){return Ub[a3]>n0[a3]}):dh.sort());
return dh}
function w(zb,a3){for(var Xe,dh=a3[0].toUpperCase()+a3.slice(1),gi=0,DM=$g.length;gi<DM;gi++)if(Xe=(Xe=$g[gi])?Xe+dh:a3,Xe in zb)return Xe;return h}
function c(zb,a3){var Xe=this;this.manager=zb;this.callback=a3;this.element=zb.element;this.target=zb.options.inputTarget;this.domHandler=function(dh){l(zb.options.enable,[zb])&&Xe.handler(dh)};
this.evEl&&L(this.element,this.evEl,this.domHandler);this.evTarget&&L(this.target,this.evTarget,this.domHandler);this.evWin&&L(v,this.evWin,this.domHandler)}
function A(zb){var a3;zf?a3=E5:lK?a3=uH:di?a3=Rn:a3=lH;return new a3(zb,X)}
function X(zb,a3,Xe){var dh=Xe.pointers.length,gi=Xe.changedPointers.length,DM=a3&1&&dh-gi===0;Xe.isFirst=!!DM;Xe.isFinal=!!(a3&12&&dh-gi===0);DM&&(zb.session={});Xe.eventType=a3;a3=zb.session;dh=Xe.pointers;gi=dh.length;a3.firstInput||(a3.firstInput=fg(Xe));gi>1&&!a3.firstMultiple?a3.firstMultiple=fg(Xe):gi===1&&(a3.firstMultiple=!1);DM=a3.firstInput;var L0=(gi=a3.firstMultiple)?gi.center:DM.center,ev=Xe.center=gB(dh);Xe.timeStamp=Fa();Xe.deltaTime=Xe.timeStamp-DM.timeStamp;Xe.angle=U5(L0,ev);Xe.distance=
s5(L0,ev);DM=Xe.center;L0=a3.offsetDelta||{};ev=a3.prevDelta||{};var Ub=a3.prevInput||{};if(Xe.eventType===1||Ub.eventType===4)ev=a3.prevDelta={x:Ub.deltaX||0,y:Ub.deltaY||0},L0=a3.offsetDelta={x:DM.x,y:DM.y};Xe.deltaX=ev.x+(DM.x-L0.x);Xe.deltaY=ev.y+(DM.y-L0.y);Xe.offsetDirection=O5(Xe.deltaX,Xe.deltaY);gi?(DM=gi.pointers,DM=s5(dh[0],dh[1],PA)/s5(DM[0],DM[1],PA)):DM=1;Xe.scale=DM;gi?(gi=gi.pointers,dh=U5(dh[1],dh[0],PA)-U5(gi[1],gi[0],PA)):dh=0;Xe.rotation=dh;L0=a3.lastInterval||Xe;dh=Xe.timeStamp-
L0.timeStamp;Xe.eventType!=8&&(dh>25||L0.velocity===h)?(DM=L0.deltaX-Xe.deltaX,L0=L0.deltaY-Xe.deltaY,ev=DM/dh||0,Ub=L0/dh||0,dh=ev,gi=Ub,ev=zH(ev)>zH(Ub)?ev:Ub,DM=O5(DM,L0),a3.lastInterval=Xe):(ev=L0.velocity,dh=L0.velocityX,gi=L0.velocityY,DM=L0.direction);Xe.velocity=ev;Xe.velocityX=dh;Xe.velocityY=gi;Xe.direction=DM;a3=zb.element;a:{for(dh=Xe.srcEvent.target;dh;){if(dh==a3){dh=!0;break a}dh=dh.parentNode}dh=!1}dh&&(a3=Xe.srcEvent.target);Xe.target=a3;zb.emit("hammer.input",Xe);zb.recognize(Xe);
zb.session.prevInput=Xe}
function fg(zb){for(var a3=[],Xe=0;Xe<zb.pointers.length;Xe++)a3[Xe]={clientX:jp(zb.pointers[Xe].clientX),clientY:jp(zb.pointers[Xe].clientY)};return{timeStamp:Fa(),pointers:a3,center:gB(a3),deltaX:zb.deltaX,deltaY:zb.deltaY}}
function gB(zb){var a3=zb.length;if(a3===1)return{x:jp(zb[0].clientX),y:jp(zb[0].clientY)};for(var Xe=0,dh=0,gi=0;gi<a3;gi++)Xe+=zb[gi].clientX,dh+=zb[gi].clientY;return{x:jp(Xe/a3),y:jp(dh/a3)}}
function O5(zb,a3){return zb===a3?1:zH(zb)>=zH(a3)?zb>0?2:4:a3>0?8:16}
function s5(zb,a3,Xe){Xe||(Xe=Eb);var dh=a3[Xe[0]]-zb[Xe[0]];zb=a3[Xe[1]]-zb[Xe[1]];return Math.sqrt(dh*dh+zb*zb)}
function U5(zb,a3,Xe){Xe||(Xe=Eb);return Math.atan2(a3[Xe[1]]-zb[Xe[1]],a3[Xe[0]]-zb[Xe[0]])*180/Math.PI}
function lH(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;c.apply(this,arguments)}
function E5(){this.evEl=mS;this.evWin=U0;c.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function uH(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};c.apply(this,arguments)}
function Rn(){c.apply(this,arguments);var zb=Z(this.handler,this);this.touch=new uH(this.manager,zb);this.mouse=new lH(this.manager,zb)}
function pr(zb,a3){this.manager=zb;this.set(a3)}
function gh(zb){if(zb.indexOf("none")>-1)return"none";var a3=zb.indexOf("pan-x")>-1,Xe=zb.indexOf("pan-y")>-1;return a3&&Xe?"pan-x pan-y":a3||Xe?a3?"pan-x":"pan-y":zb.indexOf("manipulation")>-1?"manipulation":"auto"}
function fr(zb){this.id=lt++;this.manager=null;this.options=S(zb||{},this.defaults);zb=this.options.enable;this.options.enable=zb===h?!0:zb;this.state=1;this.simultaneous={};this.requireFail=[]}
function sb(zb){return zb==16?"down":zb==8?"up":zb==2?"left":zb==4?"right":""}
function In(zb,a3){return(a3=a3.manager)?a3.get(zb):zb}
function Kr(){fr.apply(this,arguments)}
function BA(){Kr.apply(this,arguments);this.pY=this.pX=null}
function TH(){Kr.apply(this,arguments)}
function hN(){fr.apply(this,arguments);this._input=this._timer=null}
function Ho(){Kr.apply(this,arguments)}
function J9(){Kr.apply(this,arguments)}
function Ox(){fr.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function lC(zb,a3){a3=a3||{};var Xe=a3.recognizers;a3.recognizers=Xe===h?lC.defaults.preset:Xe;return new vA(zb,a3)}
function vA(zb,a3){a3=a3||{};this.options=S(a3,lC.defaults);this.options.inputTarget=this.options.inputTarget||zb;this.handlers={};this.session={};this.recognizers=[];this.element=zb;this.input=A(this);this.touchAction=new pr(this,this.options.touchAction);Rd(this,!0);W(a3.recognizers,function(Xe){var dh=this.add(new Xe[0](Xe[1]));Xe[2]&&dh.recognizeWith(Xe[2]);Xe[3]&&dh.requireFailure(Xe[2])},this)}
function Rd(zb,a3){var Xe=zb.element;W(zb.options.cssProps,function(dh,gi){Xe.style[w(Xe.style,gi)]=a3?dh:""})}
function HA(zb,a3){var Xe=t.createEvent("Event");Xe.initEvent(zb,!0,!0);Xe.gesture=a3;a3.target.dispatchEvent(Xe)}
var $g=" webkit moz MS ms o".split(" "),iC=t.createElement("div"),jp=Math.round,zH=Math.abs,Fa=Date.now,lt=1,Oq=/mobile|tablet|ip(ad|hone|od)|android/i,di="ontouchstart"in v,zf=w(v,"PointerEvent")!==h,lK=di&&Oq.test(navigator.userAgent),Eb=["x","y"],PA=["clientX","clientY"];c.prototype={handler:function(){},
destroy:function(){this.evEl&&r(this.element,this.evEl,this.domHandler);this.evTarget&&r(this.target,this.evTarget,this.domHandler);this.evWin&&r(v,this.evWin,this.domHandler)}};
var Xb={mousedown:1,mousemove:2,mouseup:4};d(lH,c,{handler:function(zb){var a3=Xb[zb.type];a3&1&&zb.button===0&&(this.pressed=!0);a3&2&&zb.which!==1&&(a3=4);this.pressed&&this.allow&&(a3&4&&(this.pressed=!1),this.callback(this.manager,a3,{pointers:[zb],changedPointers:[zb],pointerType:"mouse",srcEvent:zb}))}});
var YU={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},MR={2:"touch",3:"pen",4:"mouse",5:"kinect"},mS="pointerdown",U0="pointermove pointerup pointercancel";v.MSPointerEvent&&(mS="MSPointerDown",U0="MSPointerMove MSPointerUp MSPointerCancel");d(E5,c,{handler:function(zb){var a3=this.store,Xe=!1,dh=zb.type.toLowerCase().replace("ms","");dh=YU[dh];var gi=MR[zb.pointerType]||zb.pointerType;dh&1&&(zb.button===0||gi=="touch")?a3.push(zb):dh&12&&(Xe=!0);var DM=Q(a3,zb.pointerId,"pointerId");
DM<0||(a3[DM]=zb,this.callback(this.manager,dh,{pointers:a3,changedPointers:[zb],pointerType:gi,srcEvent:zb}),Xe&&a3.splice(DM,1))}});
var Jm={touchstart:1,touchmove:2,touchend:4,touchcancel:8};d(uH,c,{handler:function(zb){var a3=Jm[zb.type];var Xe=Array.prototype.slice.call(zb.touches,0);var dh=this.targetIds;if(a3&3&&Xe.length===1)dh[Xe[0].identifier]=!0,dh=[Xe,Xe];else{var gi,DM=Array.prototype.slice.call(zb.targetTouches,0),L0=Array.prototype.slice.call(zb.changedTouches,0),ev=[];if(a3===1)for(Xe=0,gi=DM.length;Xe<gi;Xe++)dh[DM[Xe].identifier]=!0;Xe=0;for(gi=L0.length;Xe<gi;Xe++)dh[L0[Xe].identifier]&&ev.push(L0[Xe]),a3&12&&
delete dh[L0[Xe].identifier];dh=ev.length?[C(DM.concat(ev),"identifier",!0),ev]:void 0}dh&&this.callback(this.manager,a3,{pointers:dh[0],changedPointers:dh[1],pointerType:"touch",srcEvent:zb})}});
d(Rn,c,{handler:function(zb,a3,Xe){var dh=Xe.pointerType=="mouse";if(Xe.pointerType=="touch")this.mouse.allow=!1;else if(dh&&!this.mouse.allow)return;a3&12&&(this.mouse.allow=!0);this.callback(zb,a3,Xe)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var Go=w(iC.style,"touchAction"),RW=Go!==h;pr.prototype={set:function(zb){zb=="compute"&&(zb=this.compute());RW&&(this.manager.element.style[Go]=zb);this.actions=zb.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var zb=[];W(this.manager.recognizers,function(a3){l(a3.options.enable,[a3])&&(zb=zb.concat(a3.getTouchAction()))});
return gh(zb.join(" "))},
preventDefaults:function(zb){if(!RW){var a3=zb.srcEvent;zb=zb.offsetDirection;if(this.manager.session.prevented)a3.preventDefault();else{var Xe=this.actions,dh=Xe.indexOf("none")>-1,gi=Xe.indexOf("pan-y")>-1;Xe=Xe.indexOf("pan-x")>-1;if(dh||gi&&Xe||gi&&zb&6||Xe&&zb&24)return this.preventSrc(a3)}}},
preventSrc:function(zb){this.manager.session.prevented=!0;zb.preventDefault()}};
fr.prototype={defaults:{},set:function(zb){I(this.options,zb);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(zb){if(m(zb,"recognizeWith",this))return this;var a3=this.simultaneous;zb=In(zb,this);a3[zb.id]||(a3[zb.id]=zb,zb.recognizeWith(this));return this},
dropRecognizeWith:function(zb){if(m(zb,"dropRecognizeWith",this))return this;zb=In(zb,this);delete this.simultaneous[zb.id];return this},
requireFailure:function(zb){if(m(zb,"requireFailure",this))return this;var a3=this.requireFail;zb=In(zb,this);Q(a3,zb)===-1&&(a3.push(zb),zb.requireFailure(this));return this},
dropRequireFailure:function(zb){if(m(zb,"dropRequireFailure",this))return this;zb=In(zb,this);zb=Q(this.requireFail,zb);zb>-1&&this.requireFail.splice(zb,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(zb){return!!this.simultaneous[zb.id]},
emit:function(zb){function a3(gi){Xe.manager.emit(Xe.options.event+(gi?dh&16?"cancel":dh&8?"end":dh&4?"move":dh&2?"start":"":""),zb)}
var Xe=this,dh=this.state;dh<8&&a3(!0);a3();dh>=8&&a3(!0)},
tryEmit:function(zb){if(this.canEmit())return this.emit(zb);this.state=32},
canEmit:function(){for(var zb=0;zb<this.requireFail.length;zb++)if(!(this.requireFail[zb].state&33))return!1;return!0},
recognize:function(zb){zb=I({},zb);l(this.options.enable,[this,zb])?(this.state&56&&(this.state=1),this.state=this.process(zb),this.state&30&&this.tryEmit(zb)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
d(Kr,fr,{defaults:{pointers:1},attrTest:function(zb){var a3=this.options.pointers;return a3===0||zb.pointers.length===a3},
process:function(zb){var a3=this.state,Xe=zb.eventType,dh=a3&6;zb=this.attrTest(zb);return dh&&(Xe&8||!zb)?a3|16:dh||zb?Xe&4?a3|8:a3&2?a3|4:2:32}});
d(BA,Kr,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var zb=this.options.direction;if(zb===30)return["none"];var a3=[];zb&6&&a3.push("pan-y");zb&24&&a3.push("pan-x");return a3},
directionTest:function(zb){var a3=this.options,Xe=!0,dh=zb.distance,gi=zb.direction,DM=zb.deltaX,L0=zb.deltaY;gi&a3.direction||(a3.direction&6?(gi=DM===0?1:DM<0?2:4,Xe=DM!=this.pX,dh=Math.abs(zb.deltaX)):(gi=L0===0?1:L0<0?8:16,Xe=L0!=this.pY,dh=Math.abs(zb.deltaY)));zb.direction=gi;return Xe&&dh>a3.threshold&&gi&a3.direction},
attrTest:function(zb){return Kr.prototype.attrTest.call(this,zb)&&(this.state&2||!(this.state&2)&&this.directionTest(zb))},
emit:function(zb){this.pX=zb.deltaX;this.pY=zb.deltaY;var a3=sb(zb.direction);a3&&this.manager.emit(this.options.event+a3,zb);this._super.emit.call(this,zb)}});
d(TH,Kr,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(zb){return this._super.attrTest.call(this,zb)&&(Math.abs(zb.scale-1)>this.options.threshold||this.state&2)},
emit:function(zb){this._super.emit.call(this,zb);zb.scale!==1&&this.manager.emit(this.options.event+(zb.scale<1?"in":"out"),zb)}});
d(hN,fr,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(zb){var a3=this.options,Xe=zb.pointers.length===a3.pointers,dh=zb.distance<a3.threshold,gi=zb.deltaTime>a3.time;this._input=zb;if(!dh||!Xe||zb.eventType&12&&!gi)this.reset();else if(zb.eventType&1)this.reset(),this._timer=y(function(){this.state=8;this.tryEmit()},a3.time,this);
else if(zb.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(zb){this.state===8&&(zb&&zb.eventType&4?this.manager.emit(this.options.event+"up",zb):(this._input.timeStamp=Fa(),this.manager.emit(this.options.event,this._input)))}});
d(Ho,Kr,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(zb){return this._super.attrTest.call(this,zb)&&(Math.abs(zb.rotation)>this.options.threshold||this.state&2)}});
d(J9,Kr,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return BA.prototype.getTouchAction.call(this)},
attrTest:function(zb){var a3=this.options.direction;if(a3&30)var Xe=zb.velocity;else a3&6?Xe=zb.velocityX:a3&24&&(Xe=zb.velocityY);return this._super.attrTest.call(this,zb)&&a3&zb.direction&&zH(Xe)>this.options.velocity&&zb.eventType&4},
emit:function(zb){var a3=sb(zb.direction);a3&&this.manager.emit(this.options.event+a3,zb);this.manager.emit(this.options.event,zb)}});
d(Ox,fr,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(zb){var a3=this.options,Xe=zb.pointers.length===a3.pointers,dh=zb.distance<a3.threshold,gi=zb.deltaTime<a3.time;this.reset();if(zb.eventType&1&&this.count===0)return this.failTimeout();if(dh&&gi&&Xe){if(zb.eventType!=4)return this.failTimeout();Xe=this.pTime?zb.timeStamp-this.pTime<a3.interval:!0;dh=!this.pCenter||s5(this.pCenter,zb.center)<a3.posThreshold;this.pTime=zb.timeStamp;this.pCenter=zb.center;dh&&Xe?this.count+=1:this.count=1;this._input=zb;if(this.count%a3.taps===0)return this.hasRequireFailures()?
(this._timer=y(function(){this.state=8;this.tryEmit()},a3.interval,this),2):8}return 32},
failTimeout:function(){this._timer=y(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))}});
lC.VERSION="2.0.2";lC.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[Ho,{enable:!1}],[TH,{enable:!1},["rotate"]],[J9,{direction:6}],[BA,{direction:6},["swipe"]],[Ox],[Ox,{event:"doubletap",taps:2},["tap"]],[hN]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};vA.prototype={set:function(zb){I(this.options,zb);return this},
stop:function(zb){this.session.stopped=zb?2:1},
recognize:function(zb){var a3=this.session;if(!a3.stopped){this.touchAction.preventDefaults(zb);var Xe=this.recognizers,dh=a3.curRecognizer;if(!dh||dh&&dh.state&8)dh=a3.curRecognizer=null;for(var gi=0,DM=Xe.length;gi<DM;gi++){var L0=Xe[gi];a3.stopped===2||dh&&L0!=dh&&!L0.canRecognizeWith(dh)?L0.reset():L0.recognize(zb);!dh&&L0.state&14&&(dh=a3.curRecognizer=L0)}}},
get:function(zb){if(zb instanceof fr)return zb;for(var a3=this.recognizers,Xe=0;Xe<a3.length;Xe++)if(a3[Xe].options.event==zb)return a3[Xe];return null},
add:function(zb){if(m(zb,"add",this))return this;var a3=this.get(zb.options.event);a3&&this.remove(a3);this.recognizers.push(zb);zb.manager=this;this.touchAction.update();return zb},
remove:function(zb){if(m(zb,"remove",this))return this;var a3=this.recognizers;zb=this.get(zb);a3.splice(Q(a3,zb),1);this.touchAction.update();return this},
on:function(zb,a3){var Xe=this.handlers;W(n(zb),function(dh){Xe[dh]=Xe[dh]||[];Xe[dh].push(a3)});
return this},
off:function(zb,a3){var Xe=this.handlers;W(n(zb),function(dh){a3?Xe[dh].splice(Q(Xe[dh],a3),1):delete Xe[dh]});
return this},
emit:function(zb,a3){this.options.domEvents&&HA(zb,a3);var Xe=this.handlers[zb]&&this.handlers[zb].slice();if(Xe&&Xe.length){a3.type=zb;a3.preventDefault=function(){a3.srcEvent.preventDefault()};
zb=0;for(var dh=Xe.length;zb<dh;zb++)Xe[zb](a3)}},
destroy:function(){this.element&&Rd(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
I(lC,{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:vA,Input:c,TouchAction:pr,Recognizer:fr,AttrRecognizer:Kr,Tap:Ox,Pan:BA,Swipe:J9,Pinch:TH,Rotate:Ho,Press:hN,on:L,off:r,each:W,merge:S,extend:I,inherit:d,bindFn:Z,prefixed:w});
v[M]=lC})(window,document,"Hammer");
return window.Hammer}.call({});
H.DOCUMENT=f;f[HTo]=H}return f[HTo]};/*

 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 tfT=function(f,H){if(f.length!==H.length)return!1;for(var v=0;v<f.length;++v)if(f[v]!==H[v])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var MfT=_.V(["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"]),hIC=MfT.next();!hIC.done;hIC=MfT.next()){var RIZ=hIC.value,Vf9=document.createElement("link");Vf9.rel="stylesheet";Vf9.href=RIZ;document.head.appendChild(Vf9)};var Vgr,YBr,$cH,MgT,yeN,h8T,vR5,tge;Vgr={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};YBr={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:"*"};$cH={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};MgT=/[a-z0-9*]/;yeN=/U\+/;h8T=/^arrow/;vR5=/^space(bar)?/;tge=/^escape$/;_.dS={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(f,H){this._imperativeKeyBindings[f]=H;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(f,H){H=OhB(H);for(var v=0;v<H.length;++v)if(mcB(H[v],f))return!0;return!1},
_collectKeyBindings:function(){var f=this.behaviors.map(function(H){return H.keyBindings});
f.indexOf(this.keyBindings)===-1&&f.push(this.keyBindings);return f},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(v){for(var t in v)this._addKeyBinding(t,v[t])},this);
for(var f in this._imperativeKeyBindings)this._addKeyBinding(f,this._imperativeKeyBindings[f]);for(var H in this._keyBindings)this._keyBindings[H].sort(function(v,t){v=v[0].hasModifiers;return v===t[0].hasModifiers?0:v?-1:1})},
_addKeyBinding:function(f,H){OhB(f).forEach(function(v){this._keyBindings[v.event]=this._keyBindings[v.event]||[];this._keyBindings[v.event].push([v,H])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(f){var H=this._onKeyBindingEvent.bind(this,this._keyBindings[f]);this._boundKeyHandlers.push([this.keyEventTarget,f,H]);this.keyEventTarget.addEventListener(f,H)},this)},
_unlistenKeyEventListeners:function(){for(var f,H,v;this._boundKeyHandlers.length;)f=this._boundKeyHandlers.pop(),H=f[0],v=f[1],f=f[2],H.removeEventListener(v,f)},
_onKeyBindingEvent:function(f,H){this.stopKeyboardEventPropagation&&H.stopPropagation();if(!H.defaultPrevented)for(var v=0;v<f.length;v++){var t=f[v][0],M=f[v][1];if(mcB(t,H)&&(this._triggerKeyHandler(t,M,H),H.defaultPrevented))break}},
_triggerKeyHandler:function(f,H,v){var t=Object.create(f);t.keyboardEvent=v;f=new CustomEvent(f.event,{detail:t,cancelable:!0});this[H].call(this,f);f.defaultPrevented&&v.preventDefault()}};/*

Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
_.p2({is:"iron-a11y-keys",_template:null,behaviors:[_.dS],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(f){this.keyEventTarget=f},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(f){this.fire("keys-pressed",f.detail,{})}});_.jH={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(f){this._setFocused(f.type==="focus")},
_disabledChanged:function(f){this.setAttribute("aria-disabled",f?"true":"false");this.style.pointerEvents=f?"none":"";f?(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 s8={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(f){this._detectKeyboardFocus(f);f||this._setPressed(!1)},
_detectKeyboardFocus:function(f){this._setReceivedFocusFromKeyboard(!this.pointerDown&&f)},
_userActivate:function(f){this.active!==f&&(this.active=f,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(f){f=f.detail.keyboardEvent;var H=_.Fj(f).localTarget;this.isLightDescendant(H)||(f.preventDefault(),f.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(f){f=_.Fj(f.detail.keyboardEvent).localTarget;this.isLightDescendant(f)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(f,H){H&&H!=f&&this.hasAttribute(H)&&this.removeAttribute(H)},
_activeChanged:function(f){this.toggles?this.setAttribute(this.ariaActiveAttribute,f?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},yjM=[_.dS,
s8];_.Z6={IronButtonState:yjM,IronButtonStateImpl:s8};_.JH={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.lp=function(f){_.lp[" "](f);this.type=f&&f.type||"default";this.key=f&&f.key;f&&"value"in f&&(this.value=f.value)};
_.lp.prototype.byKey=function(f){this.key=f;return this.value};
_.H7.Object.defineProperties(_.lp.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var f=this.type,H=this.key;if(f&&H)return U8[f]&&U8[f][H]},
set:function(f){var H=this.type,v=this.key;H&&v&&(H=U8[H]=U8[H]||{},f==null?delete H[v]:H[v]=f)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var f=U8[this.type];return f?Object.keys(f).map(function(H){return U8[this.type][H]},this):[]}}});
_.lp[" "]=function(){};
var U8={};_.p2({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(f,H,v){f=new _.lp({type:f,key:H});v!==void 0&&v!==f.value?f.value=v:this.value!==f.value&&(this.value=f.value);return f},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(f){f&&(this.value=this)},
byKey:function(f){return(new _.lp({type:this.type,key:f})).value}});var Y7T;Y7T=null;_.eH={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){Y7T=new _.lp({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return Y7T&&Y7T.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(f){this.invalid=f===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(f);return!this.invalid},
_getValidity:function(f){return this.hasValidator()?this._validator.validate(f):!0}};var mlT={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"}},$lM=[_.JH,
_.eH,mlT];_.p2({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 _.lp({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(f){return this.name+":"+f},this)},
applyIcon:function(f,H){this.removeIcon(f);if(H=this._cloneIcon(H,this.rtlMirroring&&this._targetIsRTL(f))){var v=_.Fj(f.root||f);v.insertBefore(H,v.childNodes[0]);return f._svgIcon=H}return null},
removeIcon:function(f){f._svgIcon&&(_.Fj(f.root||f).removeChild(f._svgIcon),f._svgIcon=null)},
_targetIsRTL:function(f){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(f&&f.nodeType!==Node.ELEMENT_NODE&&(f=f.host),this.__targetIsRTL=f&&window.getComputedStyle(f).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 f=Object.create(null);_.Fj(this).querySelectorAll("[id]").forEach(function(H){f[H.id]=H});
return f},
_cloneIcon:function(f,H){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[f],this.size,H)},
_prepareSvgClone:function(f,H,v){if(f){f=f.cloneNode(!0);var t=document.createElementNS("http://www.w3.org/2000/svg","svg");H=f.getAttribute("viewBox")||"0 0 "+H+" "+H;var M="pointer-events: none; display: block; width: 100%; height: 100%;";v&&f.hasAttribute("mirror-in-rtl")&&(M+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");t.setAttribute("viewBox",H);t.setAttribute("preserveAspectRatio","xMidYMid meet");t.setAttribute("focusable","false");t.style&&(t.style.cssText=
M);t.appendChild(f).removeAttribute("id");return t}return null}});var WVh=function(f){this.multi=!1;this.selection=[];this.selectCallback=f};
_.R=WVh.prototype;_.R.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.R.clear=function(f){this.selection.slice().forEach(function(H){(!f||f.indexOf(H)<0)&&this.setItemSelected(H,!1)},this)};
_.R.isSelected=function(f){return this.selection.indexOf(f)>=0};
_.R.setItemSelected=function(f,H){if(f!=null&&H!==this.isSelected(f)){if(H)this.selection.push(f);else{var v=this.selection.indexOf(f);v>=0&&this.selection.splice(v,1)}this.selectCallback&&this.selectCallback(f,H)}};
_.R.select=function(f){this.multi?this.toggle(f):this.get()!==f&&(this.setItemSelected(this.get(),!1),this.setItemSelected(f,!0))};
_.R.toggle=function(f){this.setItemSelected(f,!this.isSelected(f))};_.TW={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 WVh(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.Fj(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(f){return this.items?this.items.indexOf(f):-1},
select:function(f){this.selected=f},
selectPrevious:function(){var f=this.items.length,H=f-1;this.selected!==void 0&&(H=(Number(this._valueToIndex(this.selected))-1+f)%f);this.selected=this._indexToValue(H)},
selectNext:function(){var f=0;this.selected!==void 0&&(f=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(f)},
selectIndex:function(f){this.select(this._indexToValue(f))},
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(f){this.listen(this,f,"_activateHandler")},
_removeListener:function(f){this.unlisten(this,f,"_activateHandler")},
_activateEventChanged:function(f,H){this._removeListener(H);this._addListener(f)},
_updateItems:function(){var f=_.Fj(this).queryDistributedElements(this.selectable||"*");f=Array.prototype.filter.call(f,this._bindFilterItem);this._setItems(f)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var f=this._valueToItem(this.selected);f?this._selection.select(f):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(f){return!this._excludedLocalNames[f.localName]},
_valueToItem:function(f){return f==null?null:this.items[this._valueToIndex(f)]},
_valueToIndex:function(f){if(this.attrForSelected)for(var H=0,v;v=this.items[H];H++){if(this._valueForItem(v)==f)return H}else return Number(f)},
_indexToValue:function(f){if(this.attrForSelected){if(f=this.items[f])return this._valueForItem(f)}else return f},
_valueForItem:function(f){if(!f)return null;if(!this.attrForSelected)return f=this.indexOf(f),f===-1?null:f;var H=f[mu(this.attrForSelected)];return H!=void 0?H:f.getAttribute(this.attrForSelected)},
_applySelection:function(f,H){this.selectedClass&&this.toggleClass(this.selectedClass,H,f);this.selectedAttribute&&this.toggleAttribute.call(f,this.selectedAttribute,H);this._selectionChange();this.fire("iron-"+(H?"select":"deselect"),{item:f})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(f){return _.Fj(f).observeNodes(function(H){this._updateItems();this._updateSelected();this.fire("iron-items-changed",H,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(f){f=f.target;for(var H=this.items;f&&f!=this;){var v=H.indexOf(f);if(v>=0){H=this._indexToValue(v);this._itemActivate(H,f);break}f=f.parentNode}},
_itemActivate:function(f,H){this.fire("iron-activate",{selected:f,item:H},{cancelable:!0}).defaultPrevented||this.select(f)}};var OTH={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(f){this.multi?this._toggleSelected(f):this.selected=f},
multiChanged:function(f){this._selection.multi=f;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(f){return this._indexToValue(this.indexOf(f))},this).filter(function(f){return f!=null},this)):_.TW._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(f){f=f||[];f=(this._valuesToItems(f)||[]).filter(function(v){return v!==null&&v!==void 0});
this._selection.clear(f);for(var H=0;H<f.length;H++)this._selection.setItemSelected(f[H],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var f=this._selection.get();this.multi?(this._setSelectedItems(f),this._setSelectedItem(f.length?f[0]:null)):f!==null&&f!==void 0?(this._setSelectedItems([f]),this._setSelectedItem(f)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(f){var H=this.selectedValues.indexOf(f);H<0?this.push("selectedValues",f):this.splice("selectedValues",H,1)},
_valuesToItems:function(f){return f==null?null:f.map(function(H){return this._valueToItem(H)},this)}},g$_=[_.TW,
OTH];var IOb;
_.L3={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(f){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var H=this._valueToItem(f);H&&H.hasAttribute("disabled")||(this._setFocusedItem(H),OTH.select.apply(this,arguments))},
_resetTabindices:function(){var f=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(H){H.setAttribute("tabindex",H===f?"0":"-1");H.setAttribute("aria-selected",this._selection.isSelected(H))},this)},
_updateMultiselectable:function(f){f?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(f){if(this._MODIFIER_KEYS.indexOf(f.key)===-1){this.cancelDebouncer("_clearSearchText");var H=this._searchText||"";H+=(f.key&&f.key.length==1?f.key:String.fromCharCode(f.keyCode)).toLocaleLowerCase();f=H.length;for(var v=0,t;t=this.items[v];v++)if(!t.hasAttribute("disabled")){var M=this.attrForItemTitle||"textContent";M=(t[M]||t.getAttribute(M)||"").trim();if(!(M.length<f)&&M.slice(0,f).toLocaleLowerCase()==H){this._setFocusedItem(t);break}}this._searchText=H;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var f=this.items.length,H=Number(this.indexOf(this.focusedItem)),v=1;v<f+1;v++){var t=this.items[(H-v+f)%f];if(!t.hasAttribute("disabled")){var M=_.Fj(t).getOwnerRoot()||document;this._setFocusedItem(t);if(_.Fj(M).activeElement==t)break}}},
_focusNext:function(){for(var f=this.items.length,H=Number(this.indexOf(this.focusedItem)),v=1;v<f+1;v++){var t=this.items[(H+v)%f];if(!t.hasAttribute("disabled")){var M=_.Fj(t).getOwnerRoot()||document;this._setFocusedItem(t);if(_.Fj(M).activeElement==t)break}}},
_applySelection:function(f,H){H?f.setAttribute("aria-selected","true"):f.setAttribute("aria-selected","false");_.TW._applySelection.apply(this,arguments)},
_focusedItemChanged:function(f,H){H&&H.setAttribute("tabindex","-1");!f||f.hasAttribute("disabled")||this.disabled||(f.setAttribute("tabindex","0"),f.focus())},
_onIronItemsChanged:function(f){f.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var f=this.getAttribute("tabindex");_.L3._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",f);_.L3._shiftTabPressed=!1},1)},
_onFocus:function(f){!_.L3._shiftTabPressed&&(f=_.Fj(f).rootTarget,f===this||typeof f.tabIndex==="undefined"||this.isLightDescendant(f))&&(this._defaultFocusAsync=this.async(function(){var H=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);H?this._setFocusedItem(H):this.items[0]&&this._focusNext()}))},
_onUpKey:function(f){this._focusPrevious();f.detail.keyboardEvent.preventDefault()},
_onDownKey:function(f){this._focusNext();f.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var f=this.focusedItem;f&&f.blur()},
_onKeydown:function(f){this.keyboardEventMatchesKeys(f,"up down esc")||this._focusWithKeyboardEvent(f);f.stopPropagation()},
_activateHandler:function(f){_.TW._activateHandler.call(this,f);f.stopPropagation()},
_disabledChanged:function(f){f?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};IOb=[g$_,_.dS,_.L3];_.S7M={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(f){this.focusedItem&&(this.focusedItem.click(),f.detail.keyboardEvent.preventDefault())},
_onDownKey:function(f){this.focusedItem&&(this.focusedItem.click(),f.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(f){return f.ctrlKey||f.shiftKey||f.altKey||f.metaKey},
_onLeftKey:function(f){this._isSpecialKey(f.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),f.detail.keyboardEvent.preventDefault())},
_onRightKey:function(f){this._isSpecialKey(f.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),f.detail.keyboardEvent.preventDefault())},
_onKeydown:function(f){this.keyboardEventMatchesKeys(f,"up down left right esc")||this._focusWithKeyboardEvent(f)}};
_.dlo=[IOb,_.S7M];var jso;jso=new Set;_.x3={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):(jso.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(f){this.resizerShouldNotify(f)&&this._notifyDescendant(f)},this),this._fireResize())},
assignParentResizable:function(f){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=f)&&f._interestedResizables.indexOf(this)===-1&&(f._interestedResizables.push(this),f._subscribeIronResize(this))},
stopResizeNotificationsFor:function(f){var H=this._interestedResizables.indexOf(f);H>-1&&(this._interestedResizables.splice(H,1),this._unsubscribeIronResize(f))},
_subscribeIronResize:function(f){f.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(f){f.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(f){this._notifyingDescendant?f.stopPropagation():C1||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(f){var H=_.Fj(f).rootTarget;H!==this&&(H.assignParentResizable(this),this._notifyDescendant(H),f.stopPropagation())},
_parentResizableChanged:function(f){f&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(f){this.isAttached&&(this._notifyingDescendant=!0,f.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var f=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function v(){document.removeEventListener("readystatechange",v);f()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(H){H!==this&&H._findParent()},this):(jso.forEach(function(H){H!==this&&H._findParent()},this),window.addEventListener("resize",this._boundNotifyResize),
this.notifyResize())},
_findParent:function(){this.assignParentResizable(null);this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0});this._parentResizable?jso.delete(this):jso.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
*/
_.ssn={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(f,H){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);H&&(f==="document"?this.scrollTarget=this._doc:typeof f==="string"?this.scrollTarget=(H=this.domHost)&&H.$?H.$[f]:_.Fj(this.ownerDocument).querySelector("#"+f):this._isValidScrollTarget()&&(this._oldScrollTarget=f,this._toggleScrollListener(this._shouldHaveListener,f)))},
_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(f){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,f):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
f)},set _scrollLeft(f){this.scrollTarget===this._doc?window.scrollTo(f,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=f)},scroll:function(f,H){if(typeof f==="object"){var v=f.left;H=f.top}else v=f;v=v||0;H=H||0;this.scrollTarget===this._doc?window.scrollTo(v,H):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=v,this.scrollTarget.scrollTop=H)},
get _scrollTargetWidth(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerWidth:this.scrollTarget.offsetWidth:0},get _scrollTargetHeight(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerHeight:this.scrollTarget.offsetHeight:0},_isValidScrollTarget:function(){return this.scrollTarget instanceof HTMLElement},
_toggleScrollListener:function(f,H){H=H===this._doc?window:H;f?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),H.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(H.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(f){this._shouldHaveListener=f;this._toggleScrollListener(f,this.scrollTarget)}};_.p2({is:"iron-selector",_template:null,behaviors:[g$_]});var Bw={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(f){if(f.timing)for(var H in f.timing)this.animationTiming[H]=f.timing[H];return this.animationTiming},
setPrefixedProperty:function(f,H,v){for(var t={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[H],M,h=0;M=t[h];h++)f.style[M]=v;f.style[H]=v},
complete:function(){}};_.p2({is:"fade-in-animation",_template:null,behaviors:[Bw],configure:function(f){return this._effect=new KeyframeEffect(f.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(f))}});_.p2({is:"fade-out-animation",_template:null,behaviors:[Bw],configure:function(f){return this._effect=new KeyframeEffect(f.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(f))}});var ZTv=[{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(f,H){for(var v in H)f[v]=H[v]},
_cloneConfig:function(f){var H={isClone:!0};this._copyProperties(H,f);return H},
_getAnimationConfigRecursive:function(f,H,v){if(this.animationConfig)if(this.animationConfig.value&&typeof this.animationConfig.value==="function")this._warn(this._logf("playAnimation","Please put 'animationConfig' inside of your components 'properties' object instead of outside of it."));else{var t=f?this.animationConfig[f]:this.animationConfig;Array.isArray(t)||(t=[t]);if(t)for(var M,h=0;M=t[h];h++)if(M.animatable)M.animatable._getAnimationConfigRecursive(M.type||f,H,v);else if(M.id){var y=H[M.id];
y?(y.isClone||(H[M.id]=this._cloneConfig(y),y=H[M.id]),this._copyProperties(y,M)):H[M.id]=M}else v.push(M)}},
getAnimationConfig:function(f){var H={},v=[];this._getAnimationConfigRecursive(f,H,v);for(var t in H)v.push(H[t]);return v}},
{_configureAnimations:function(f){var H=[],v=[];if(f.length>0)for(var t,M=0;t=f[M];M++){var h=document.createElement(t.name);if(h.isNeonAnimation){var y=null;h.configure||(h.configure=function(){return null});
y=h.configure(t);v.push({result:y,config:t})}else console.warn(this.is+":",t.name,"not found!")}for(f=0;f<v.length;f++){y=v[f].result;t=v[f].config;try{typeof y.cancel!="function"&&(y=document.timeline.play(y))}catch(m){y=null,console.warn("Couldnt play","(",t.name,").",m)}y&&H.push({neonAnimation:h,config:t,animation:y})}return H},
_shouldComplete:function(f){for(var H=!0,v=0;v<f.length;v++)if(f[v].animation.playState!="finished"){H=!1;break}return H},
_complete:function(f){for(var H=0;H<f.length;H++)f[H].neonAnimation.complete(f[H].config);for(H=0;H<f.length;H++)f[H].animation.cancel()},
playAnimation:function(f,H){var v=this.getAnimationConfig(f);if(v){this._active=this._active||{};this._active[f]&&(this._complete(this._active[f]),delete this._active[f]);var t=this._configureAnimations(v);if(t.length==0)this.fire("neon-animation-finish",H,{bubbles:!1});else for(this._active[f]=t,v=0;v<t.length;v++)t[v].animation.onfinish=function(){this._shouldComplete(t)&&(this._complete(t),delete this._active[f],this.fire("neon-animation-finish",H,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var f in this._active){var H=this._active[f],v;for(v in H)H[v].animation&&H[v].animation.cancel&&H[v].animation.cancel()}this._active={}}}];var jq=function(f,H){f=Error.call(this,f);this.message=f.message;"stack"in f&&(this.stack=f.stack);this.arg=H;this.name=this.constructor.name;this.constructor=jq;this.__proto__=jq.prototype};
_.e(jq,Error);var Jjg=AA(function(f){var H=function(){return f.apply(this,arguments)||this};
_.e(H,f);H.prototype._marshalArgs=function(v,t,M){t=f.prototype._marshalArgs.call(this,v,t,M);if(this._legacyUndefinedCheck&&t.length>1)for(M=0;M<t.length;M++)if(t[M]===void 0||v[M].wildcard&&t[M].base===void 0)throw v=v[M].name,new jq("Argument '"+v+"' is undefined.",v);return t};
H.prototype._addPropertyEffect=function(v,t,M){return f.prototype._addPropertyEffect.call(this,v,t,gRb(M,M&&M.info&&M.info.methodName))};
H._addTemplatePropertyEffect=function(v,t,M){return f._addTemplatePropertyEffect.call(this,v,t,gRb(M))};
return H}),lOZ=_.p2.Class;
_.p2.Class=function(f,H){return lOZ(f,function(v){return H?H(Jjg(v)):Jjg(v)})};
var Uln=AA(function(f){var H=Jjg(f);f=function(){return H.apply(this,arguments)||this};
_.e(f,H);_.H7.Object.defineProperties(f.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return f}),eIr=NV.mixin;
NV.mixin=eIr?function(f){return Uln(eIr(f))}:Uln;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.zA=_.Z6.IronButtonState;var mU5=G5;/*

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

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

Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
SPDX-License-Identifier: BSD-3-Clause
*/
var QH,odo,ndZ;QH=Element.prototype;odo=QH.matches||QH.matchesSelector||QH.mozMatchesSelector||QH.msMatchesSelector||QH.oMatchesSelector||QH.webkitMatchesSelector;ndZ=function(){};
_.QcH=function(f){var H=psh,v=[];return H._collectTabbableNodes(f,v)?H._sortByTabIndex(v):v};
_.R=ndZ.prototype;_.R._normalizedTabIndex=function(f){return(odo.call(f,"input, select, textarea, button, object")?odo.call(f,":not([disabled])"):odo.call(f,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(f=f.getAttribute("tabindex")||0,Number(f)):-1};
_.R._collectTabbableNodes=function(f,H){if(f.nodeType!==Node.ELEMENT_NODE||!this._isVisible(f))return!1;var v=this._normalizedTabIndex(f),t=v>0;v>=0&&H.push(f);if(f.localName==="content"||f.localName==="slot")v=_.Fj(f).getDistributedNodes();else{var M;v=((M=_.Fj(f).shadowRoot)!=null?M:_.Fj(f.root||f)).children}for(f=0;f<v.length;f++)t=this._collectTabbableNodes(v[f],H)||t;return t};
_.R._isVisible=function(f){var H=f.style;return H.visibility!=="hidden"&&H.display!=="none"?(H=window.getComputedStyle(f),H.visibility!=="hidden"&&H.display!=="none"):!1};
_.R._sortByTabIndex=function(f){var H=f.length;if(H<2)return f;var v=Math.ceil(H/2);H=this._sortByTabIndex(f.slice(0,v));f=this._sortByTabIndex(f.slice(v));return this._mergeSortByTabIndex(H,f)};
_.R._mergeSortByTabIndex=function(f,H){for(var v=[];f.length>0&&H.length>0;)this._hasLowerTabOrder(f[0],H[0])?v.push(H.shift()):v.push(f.shift());return v.concat(f,H)};
_.R._hasLowerTabOrder=function(f,H){f=Math.max(f.tabIndex,0);H=Math.max(H.tabIndex,0);return f===0||H===0?H>f:f>H};
var psh=new ndZ;var uXH;var a4M;_.p2({_template:function(){if(a4M!==void 0)return a4M;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;uXH===void 0&&(uXH=document.createElement("template"));var t=uXH;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return a4M=f},
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&&_.Fj(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.Fj(this.parentNode).removeChild(this)},
_onTransitionend:function(f){f&&f.target===this&&this.complete()},
_openedChanged:function(f){f?this.prepare():(f=window.getComputedStyle(this),f.transitionDuration!=="0s"&&f.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 up=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;p1(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)};
up.prototype._bringOverlayAtIndexToFront=function(f){var H=this._overlays[f];if(H){var v=this._overlays.length-1,t=this._overlays[v];t&&this._shouldBeBehindOverlay(H,t)&&v--;if(!(f>=v)){t=Math.max(this._getZ(_.PwC(this)),this._minimumZ);for(this._getZ(H)<=t&&this._applyOverlayZ(H,t);f<v;)this._overlays[f]=this._overlays[f+1],f++;this._overlays[v]=H}}};
up.prototype.addOverlay=function(f){var H=this._overlays.indexOf(f);if(H>=0)this._bringOverlayAtIndexToFront(H);else{H=this._overlays.length;var v=this._overlays[H-1],t=Math.max(this._getZ(v),this._minimumZ),M=this._getZ(f);v&&this._shouldBeBehindOverlay(f,v)&&(this._applyOverlayZ(v,t),H--,t=Math.max(this._getZ(this._overlays[H-1]),this._minimumZ));M<=t&&this._applyOverlayZ(f,t);this._overlays.splice(H,0,f)}this.trackBackdrop()};
up.prototype.removeOverlay=function(f){f=this._overlays.indexOf(f);f!==-1&&(this._overlays.splice(f,1),this.trackBackdrop())};
_.PwC=function(f){return f._overlays[f._overlays.length-1]};
_.R=up.prototype;_.R.trackBackdrop=function(){var f=this._overlayWithBackdrop();if(f||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(f)-1,this.backdropElement.opened=!!f,this.backdropElement.prepare()};
_.R._overlayWithBackdrop=function(){for(var f=this._overlays.length-1;f>=0;f--)if(this._overlays[f].withBackdrop)return this._overlays[f]};
_.R._getZ=function(f){var H=this._minimumZ;if(f){var v,t,M=Number(((v=f.hostElement)!=null?v:f).style.zIndex||window.getComputedStyle((t=f.hostElement)!=null?t:f).zIndex);M===M&&(H=M)}return H};
_.R._setZ=function(f,H){var v;((v=f.hostElement)!=null?v:f).style.zIndex=H};
_.R._applyOverlayZ=function(f,H){this._setZ(f,H+2)};
_.R._overlayInPath=function(f){f=f||[];for(var H=0;H<f.length;H++){var v=void 0;if(((v=f[H].polymerController)!=null?v:f[H])._manager===this)return f[H]}};
_.R._onCaptureClick=function(f){var H=this._overlays.length-1;if(H!==-1)for(var v=_.Fj(f).path,t,M;(t=this._overlays[H])&&this._overlayInPath(v)!==((M=t.hostElement)!=null?M:t);)if(t._onCaptureClick(f),t.allowClickThrough)H--;else break};
_.R._onCaptureFocus=function(f){var H=_.PwC(this);H&&H._onCaptureFocus(f)};
_.R._onCaptureKeyDown=function(f){var H=_.PwC(this);H&&(_.dS.keyboardEventMatchesKeys(f,"esc")?H._onCaptureEsc(f):_.dS.keyboardEventMatchesKeys(f,"tab")&&H._onCaptureTab(f))};
_.R._shouldBeBehindOverlay=function(f,H){return!f.alwaysOnTop&&H.alwaysOnTop&&!H.contains(f)};
_.H7.Object.defineProperties(up.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 f=document.activeElement;f&&f instanceof Element!==!1||(f=document.body);for(;f.root&&_.Fj(f.root).activeElement;)f=_.Fj(f.root).activeElement;return f}}});
_.aq=new up;var aYH=0,PNE=0,GMg=null,CNH=[],rI=["wheel","mousewheel","DOMMouseScroll"],EJT;_.J("web_no_lock_on_touchstart_killswitch")&&(rI.push("touchstart"),rI.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;_.Pw={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:_.aq},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var f;return this._focusedChild||_.Fj((f=this.hostElement)!=null?f:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var f;return _.QcH((f=this.hostElement)!=null?f: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 f;this._observer=_.Fj((f=this.hostElement)!=null?f:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var f;_.Fj((f=this.hostElement)!=null?f:this).unobserveNodes(this._observer)}this._observer=null;for(var H in this.__rafs)this.__rafs[H]!==null&&cancelAnimationFrame(this.__rafs[H]);this.__rafs={};this._manager.removeOverlay(this);this.__isAnimating&&(this.opened?this._finishRenderOpened():(this._applyFocus(),this._finishRenderClosed()))},
toggle:function(){this._setCanceled(!1);this.opened=!this.opened},
open:function(){this._setCanceled(!1);this.opened=!0},
close:function(){this._setCanceled(!1);this.opened=!1},
cancel:function(f){this.fire("iron-overlay-canceled",f,{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 f;((f=this.hostElement)!=null?f:this).style.outline="none";var H;((H=this.hostElement)!=null?H:this).style.display="none"}},
_openedChanged:function(f){if(f){var H;((H=this.hostElement)!=null?H:this).removeAttribute("aria-hidden")}else{var v;((v=this.hostElement)!=null?v:this).setAttribute("aria-hidden","true")}this.isAttached&&(this.__isAnimating=!0,this.__deraf("__openedChanged",this.__openedChanged))},
_canceledChanged:function(){this.closingReason=this.closingReason||{};this.closingReason.canceled=this.canceled},
_withBackdropChanged:function(){var f;if(this.withBackdrop&&!((f=this.hostElement)!=null?f:this).hasAttribute("tabindex")){var H;((H=this.hostElement)!=null?H:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var v;((v=this.hostElement)!=null?v:this).removeAttribute("tabindex");this.__shouldRemoveTabIndex=!1}this.opened&&this.isAttached&&this._manager.trackBackdrop()},
_prepareRenderOpened:function(){this.__restoreFocusNode=this._manager.deepActiveElement;this._preparePositioning();this.refit();this._finishPositioning();this.noAutoFocus&&document.activeElement===this._focusNode&&(this._focusNode.blur(),this.__restoreFocusNode.focus())},
_renderOpened:function(){this._finishRenderOpened()},
_renderClosed:function(){this._finishRenderClosed()},
_finishRenderOpened:function(){this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-opened")},
_finishRenderClosed:function(){var f;((f=this.hostElement)!=null?f:this).style.display="none";var H;((H=this.hostElement)!=null?H:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var f,H;((f=this.hostElement)!=null?f:this).style.transition=((H=this.hostElement)!=null?H:this).style.webkitTransition="none";var v,t;((v=this.hostElement)!=null?v:this).style.transform=((t=this.hostElement)!=null?t:this).style.webkitTransform="none";var M;((M=this.hostElement)!=null?M:this).style.display=""},
_finishPositioning:function(){var f;((f=this.hostElement)!=null?f:this).style.display="none";this.scrollTop=this.scrollTop;var H,v;((H=this.hostElement)!=null?H:this).style.transition=((v=this.hostElement)!=null?v:this).style.webkitTransition="";var t,M;((t=this.hostElement)!=null?t:this).style.transform=((M=this.hostElement)!=null?M:this).style.webkitTransform="";var h;((h=this.hostElement)!=null?h:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var f=this._manager.deepActiveElement,H;if(!(H=f===document.body))a:{for(;f;f=f.assignedSlot||f.parentNode||f.host)if(f===this){H=!0;break a}H=!1}H&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(f){this.noCancelOnOutsideClick||this.cancel(f)},
_onCaptureFocus:function(f){if(this.withBackdrop){var H=_.Fj(f).path;H.indexOf(this)===-1?(f.stopPropagation(),this._applyFocus()):this._focusedChild=H[0]}},
_onCaptureEsc:function(f){this.noCancelOnEscKey||this.cancel(f)},
_onCaptureTab:function(f){if(this.withBackdrop){this.__ensureFirstLastFocusables();var H=f.shiftKey,v=H?this.__firstFocusableNode:this.__lastFocusableNode;H=H?this.__lastFocusableNode:this.__firstFocusableNode;if(v===H)v=!0;else{var t=this._manager.deepActiveElement;v=t===v||t===this}v&&(f.preventDefault(),this._focusedChild=H,this._applyFocus())}},
_onIronResize:function(){this.opened&&!this.__isAnimating&&this.__deraf("refit",this.refit)},
_onNodesChange:function(){this.opened&&!this.__isAnimating&&(this.invalidateTabbables(),this.notifyResize())},
__ensureFirstLastFocusables:function(){var f=this._focusableNodes;this.__firstFocusableNode=f[0];this.__lastFocusableNode=f[f.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(f,H){var v=this.__rafs;v[f]!==null&&cancelAnimationFrame(v[f]);v[f]=requestAnimationFrame(function(){v[f]=null;H.call(this)}.bind(this))},
__updateScrollObservers:function(f,H,v){f&&H&&this.__isValidScrollAction(v)?(v==="lock"&&(this.__saveScrollPosition(),_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this)>=0||(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length===0&&_._lockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(),
_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.push(this),EJT=_._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()):(f=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),f!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(f,1),EJT=_._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(C1)for(var f=this;f;)f.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&f.host&&this.__rootNodes.push(f),f=f.host||f.assignedSlot||f.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(H){H.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(f){f.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(f){return f==="lock"||f==="refit"||f==="cancel"},
__onCaptureScroll:function(f){if(!(this.__isAnimating||_.Fj(f).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(f)}},
__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)}};
_.GA=[DiC,_.x3,_.Pw];_.p2({_template:function(){if(rYh!==void 0)return rYh;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;F2o===void 0&&(F2o=document.createElement("template"));var t=F2o;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return rYh=f},
is:"tp-yt-iron-dropdown",behaviors:[_.jH,_.dS,_.GA,ZTv],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 f=_.Fj(this.$.content).getDistributedNodes(),H=0,v=f.length;H<v;H++)if(f[H].nodeType===Node.ELEMENT_NODE)return f[H]},ready:function(){this.scrollAction||(this.scrollAction=this.allowOutsideScroll?"refit":"lock");this._readied=!0},
attached:function(){this.sizingTarget&&this.sizingTarget!==this||(this.sizingTarget=this.containedElement||this)},
detached:function(){this.cancelAnimation()},
_openedChanged:function(){this.opened&&this.disabled?this.cancel():(this.cancelAnimation(),this._updateAnimationConfig(),_.Pw._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.Pw._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.Pw._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var f=this.containedElement,H=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),v=0;v<H.length;v++)H[v].node=f;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(f){this._readied&&(f?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var f=this.focusTarget||this.containedElement;f&&this.opened&&!this.noAutoFocus?f.focus():_.Pw._applyFocus.apply(this,arguments)}});var G7v;var Cwv;/*

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 Ed9=new _.lp({type:"iconset"});
_.p2({_template:function(){if(Cwv!==void 0)return Cwv;var f=document.createElement("template");_.x(f,"\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");f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;G7v===void 0&&(G7v=document.createElement("template"));
var t=G7v;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return Cwv=f},
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(f){f=(f||"").split(":");this._iconName=f.pop();this._iconsetName=f.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&&_.Fj(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=Ed9.byKey(this._iconsetName)){var f=this._iconset.applyIcon(this,this._iconName,this.theme);f&&f.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,_.Fj(this.root).appendChild(this._img)}});var Nyh;var cYT;_.p2({_template:function(){if(cYT!==void 0)return cYT;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);
var H=f.content,v=H.insertBefore;Nyh===void 0&&(Nyh=document.createElement("template"));var t=Nyh;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return cYT=f},
is:"tp-yt-iron-input",behaviors:[_.eH],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(){_.p3.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.Fj(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.Fj(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 f=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":f=/[0-9.,e-]/}return f},_bindValueChanged:function(f,H){H&&(f===void 0?H.value=null:f!==H.value&&(this.inputElement.value=f),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:f}))},
_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(f){var H=f.keyCode==19||f.keyCode==20||f.keyCode==45||f.keyCode==46||f.keyCode==144||f.keyCode==145||f.keyCode>32&&f.keyCode<41||f.keyCode>111&&f.keyCode<124;return!(f.keyCode==8||f.keyCode==9||f.keyCode==13||f.keyCode==27)&&!(f.charCode==0&&H)},
_onKeypress:function(f){if(this.allowedPattern||this.inputElement.type==="number"){var H=this._patternRegExp;if(H&&!(f.metaKey||f.ctrlKey||f.altKey)){this._patternAlreadyChecked=!0;var v=String.fromCharCode(f.charCode);this._isPrintable(f)&&!H.test(v)&&(f.preventDefault(),this._announceInvalidCharacter("Invalid character "+v+" not entered."))}}},
_checkPatternValidity:function(){var f=this._patternRegExp;if(!f)return!0;for(var H=0;H<this.inputElement.value.length;H++)if(!f.test(this.inputElement.value[H]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var f=this.inputElement.checkValidity();f&&(this.required&&this.bindValue===""?f=!1:this.hasValidator()&&(f=_.eH.validate.call(this,this.bindValue)));this.invalid=!f;this.fire("iron-input-validate");return f},
_announceInvalidCharacter:function(f){this.fire("iron-announce",{text:f})},
_computeValue:function(f){return f}});var XsT;var AYC;var bpZ=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),iph=bpZ&&bpZ[1]>=8;
_.p2({_template:function(){if(AYC!==void 0)return AYC;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;XsT===void 0&&(XsT=document.createElement("template"));var t=XsT;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return AYC=f},
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:[$UT,_.x3,_.ssn,Vch],_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 _.Fj(_.Fj(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var f=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,f-this._physicalCount)},set _virtualStart(f){f=this._clamp(f,0,this._maxVirtualStart);this.grid&&(f-=f%this._itemsPerRow);this._virtualStartVal=f},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(f){f%=this._physicalCount;f<0&&(f=this._physicalCount+f);this.grid&&(f-=f%this._itemsPerRow);this._physicalStartVal=f},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(f){this._physicalCountVal=f},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 f=this._firstVisibleIndexVal;if(f==null){var H=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
f=this._iterateItems(function(v,t){H+=this._getPhysicalSizeIncrement(v);if(H>this._scrollPosition)return this.grid?t-t%this._itemsPerRow:t;if(this.grid&&this._virtualCount-1===t)return t-t%this._itemsPerRow})||0}return f},
get lastVisibleIndex(){var f=this._lastVisibleIndexVal;if(f==null){if(this.grid)f=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var H=this._physicalTop+this._scrollOffset;this._iterateItems(function(v,t){H<this._scrollBottom&&(f=t);H+=this._getPhysicalSizeIncrement(v)})}this._lastVisibleIndexVal=f}return f},
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,_.Ku);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(f){this.style.webkitOverflowScrolling=f===this?"touch":"";this.style.overflowY=f===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.Ku)},
updateViewportBoundaries:function(){var f=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(f["padding-top"],10);this._isRTL=f.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var f=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),H=f-this._scrollPosition,v=H>=0;this._scrollPosition=f;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(H)>this._physicalSize&&this._physicalSize>0?(H-=this._scrollOffset,v=Math.round(H/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=v,this._physicalStart+=v,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(f=this._getReusables(v),v?(this._physicalTop=f.physicalTop,this._virtualStart+=f.indexes.length,this._physicalStart+=f.indexes.length):(this._virtualStart=this._virtualStart-f.indexes.length,this._physicalStart=this._physicalStart-f.indexes.length),this._update(f.indexes,v?null:f.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),aV))},
_getReusables:function(f){var H=[],v=this._hiddenContentSize*this._ratio,t=this._virtualStart,M=this._virtualEnd,h=this._physicalCount,y=this._physicalTop+this._scrollOffset;var m=this._physicalBottom+this._scrollOffset;var W=this._scrollPosition,I=this._scrollBottom;if(f){var S=this._physicalStart;m=W-y}else S=this._physicalEnd,m-=I;for(;;){var d=this._getPhysicalSizeIncrement(S);m-=d;if(H.length>=h||m<=v)break;if(f){if(M+H.length+1>=this._virtualCount)break;if(y+d>=W-this._scrollOffset)break;H.push(S);
y+=d;S=(S+1)%h}else{if(t-H.length<=0)break;if(y+this._physicalSize-d<=I)break;H.push(S);y-=d;S=S===0?h-1:S-1}}return{indexes:H,physicalTop:y-this._scrollOffset}},
_update:function(f,H){if(!(f&&f.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(f);this._updateMetrics(f);if(H)for(;H.length;)f=H.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(f);this._positionItems();this._updateScrollerSize()}},
_createPool:function(f){this._ensureTemplatized();var H,v=Array(f);for(H=0;H<f;H++){var t=this.stamp(null);v[H]=t.root.querySelector("*");this._itemsParent.appendChild(t.root)}return v},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(f){f=this._clamp(this._physicalCount+f,3,this._virtualCount-this._virtualStart);f=this._convertIndexToCompleteRow(f);if(this.grid){var H=f%this._itemsPerRow;H&&f-H<=this._physicalCount&&(f+=this._itemsPerRow);f-=H}f-=this._physicalCount;H=Math.round(this._physicalCount*.5);if(!(f<0)){if(f>0){H=window.performance.now();[].push.apply(this._physicalItems,this._createPool(f));for(var v=0;v<f;v++)this._physicalSizes.push(0);this._physicalCount+=f;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=f);this._update();this._templateCost=(window.performance.now()-H)/f;H=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||H===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,H)),EEo):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,H),aV))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var f=this._getReusables(!0);this._physicalTop=f.physicalTop;this._virtualStart+=f.indexes.length;this._physicalStart+=f.indexes.length;this._update(f.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 f={__key__:!0};f[this.as]=!0;f[this.indexAs]=!0;f[this.selectedAs]=!0;f.tabIndex=!0;this._instanceProps=f;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(f,H){typeof H!=="undefined"&&(this.notifyResize(),_.Ya(),f&&this._updateGridMetrics())},
_itemsChanged:function(f){if(f.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,
_.Ku);else if(f.path==="items.splices"){this._adjustVirtualIndex(f.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(f.value.indexSplices.some(function(v){return v.addedCount>0||v.removed.length>0})){var H=this._getActiveElement();
this.contains(H)&&H.blur()}f=f.value.indexSplices.some(function(v){return v.index+v.addedCount>=this._virtualStart&&v.index<=this._virtualEnd},this);
this._isClientFull()&&!f||this._debounce("_render",this._render,_.Ku)}else f.path!=="items.length"&&this._forwardItemPath(f.path,f.value)},
_forwardItemPath:function(f,H){f=f.slice(6);var v=f.indexOf(".");v===-1&&(v=f.length);var t,M=this.modelForElement(this._offscreenFocusedItem),h=parseInt(f.substring(0,v),10);if(t=this._isIndexRendered(h)){var y=this._getPhysicalIndex(h);var m=this.modelForElement(this._physicalItems[y])}else M&&(m=M);m&&m[this.indexAs]===h&&(f=f.substring(v+1),f=this.as+(f?"."+f:""),m._setPendingPropertyOrPath(f,H,!1,!0),m._flushProperties&&m._flushProperties(),t&&(this._updateMetrics([y]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(f){f.forEach(function(H){H.removed.forEach(this._removeItem,this);H.index<this._virtualStart&&(H=Math.max(H.addedCount-H.removed.length,H.index-this._virtualStart),this._virtualStart+=H,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=H))},this)},
_removeItem:function(f){this.$.selector.deselect(f);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===f&&this._removeFocusedItem()},
_iterateItems:function(f,H){var v,t;if(arguments.length===2&&H)for(t=0;t<H.length;t++){var M=H[t];var h=this._computeVidx(M);if((v=f.call(this,M,h))!=null)return v}else{M=this._physicalStart;for(h=this._virtualStart;M<this._physicalCount;M++,h++)if((v=f.call(this,M,h))!=null)return v;for(M=0;M<this._physicalStart;M++,h++)if((v=f.call(this,M,h))!=null)return v}},
_computeVidx:function(f){return f>=this._physicalStart?this._virtualStart+(f-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+f},
_assignModels:function(f){this._iterateItems(function(H,v){var t=this._physicalItems[H],M=this.items&&this.items[v];if(M!=null){var h=this.modelForElement(t);h.__key__=null;this._forwardProperty(h,this.as,M);this._forwardProperty(h,this.selectedAs,this.$.selector.isSelected(M));this._forwardProperty(h,this.indexAs,v);this._forwardProperty(h,"tabIndex",this._focusedVirtualIndex===v?0:-1);this._physicalIndexForKey[h.__key__]=H;h._flushProperties&&h._flushProperties(!0);t.removeAttribute("hidden")}else t.setAttribute("hidden",
"")},f)},
_updateMetrics:function(f){_.Ya();var H=0,v=0,t=this._physicalAverageCount,M=this._physicalAverage;this._iterateItems(function(h){v+=this._physicalSizes[h];this._physicalSizes[h]=this._physicalItems[h].offsetHeight;H+=this._physicalSizes[h];this._physicalAverageCount+=this._physicalSizes[h]?1:0},f);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(v=this._itemsPerRow===1?v:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+H-v,this._itemsPerRow=1);this._physicalAverageCount!==t&&(this._physicalAverage=Math.round((M*t+H)/this._physicalAverageCount))},
_updateGridMetrics:function(){this._itemWidth=this._physicalCount>0?this._physicalItems[0].getBoundingClientRect().width:200;this._rowHeight=this._physicalCount>0?this._physicalItems[0].offsetHeight:200;this._itemsPerRow=this._itemWidth?Math.floor(this._viewportWidth/this._itemWidth):this._itemsPerRow},
_positionItems:function(){this._adjustScrollPosition();var f=this._physicalTop;if(this.grid){var H=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(v,t){var M=Math.floor(t%this._itemsPerRow*this._itemWidth+H);this._isRTL&&(M*=-1);this.translate3d(M+"px",f+"px",0,this._physicalItems[v]);this._shouldRenderNextRow(t)&&(f+=this._rowHeight)})}else this._iterateItems(function(v){this.translate3d(0,f+"px",0,this._physicalItems[v]);
f+=this._physicalSizes[v]})},
_getPhysicalSizeIncrement:function(f){return this.grid?this._computeVidx(f)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[f]},
_shouldRenderNextRow:function(f){return f%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var f=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(f!==0){this._physicalTop=this._physicalTop-f;var H=this._scrollPosition;!iph&&H>0&&this._resetScrollPosition(H-f)}},
_resetScrollPosition:function(f){this.scrollTarget&&f>=0&&(this._scrollPosition=this._scrollTop=f)},
_updateScrollerSize:function(f){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((f=(f=(f=f||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(f){return this.scrollToIndex(this.items.indexOf(f))},
scrollToIndex:function(f){if(!(typeof f!=="number"||f<0||f>this.items.length-1)&&(_.Ya(),this._physicalCount!==0)){f=this._clamp(f,0,this._virtualCount-1);if(!this._isIndexRendered(f)||f>=this._maxVirtualStart)this._virtualStart=this.grid?f-this._itemsPerRow*2:f-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var H=this._physicalStart,v=this._virtualStart,t=0,M=this._hiddenContentSize;v<f&&
t<=M;)t+=this._getPhysicalSizeIncrement(H),H=(H+1)%this._physicalCount,v++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+t);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)},_.Ku)},
selectItem:function(f){return this.selectIndex(this.items.indexOf(f))},
selectIndex:function(f){if(!(f<0||f>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(f)){var H=this.modelForElement(this._physicalItems[this._getPhysicalIndex(f)]);H&&(H[this.selectedAs]=!0);this.updateSizeForIndex(f)}this.$.selector.selectIndex(f)}},
deselectItem:function(f){return this.deselectIndex(this.items.indexOf(f))},
deselectIndex:function(f){f<0||f>=this._virtualCount||(this._isIndexRendered(f)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(f)])[this.selectedAs]=!1,this.updateSizeForIndex(f)),this.$.selector.deselectIndex(f))},
toggleSelectionForItem:function(f){return this.toggleSelectionForIndex(this.items.indexOf(f))},
toggleSelectionForIndex:function(f){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(f):this.$.selector.isSelected(this.items[f]))?this.deselectIndex(f):this.selectIndex(f)},
clearSelection:function(){this._iterateItems(function(f){this.modelForElement(this._physicalItems[f])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(f){(f?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(f){var H=this.modelForElement(f.target);if(H){var v=_.Fj(f).path[0];f=this._getActiveElement();var t=this._physicalItems[this._getPhysicalIndex(H[this.indexAs])];if(v.localName!=="input"&&v.localName!=="button"&&v.localName!=="select"){v=H.tabIndex;H.tabIndex=-100;var M=f?f.tabIndex:-1;H.tabIndex=v;f&&t!==f&&t.contains(f)&&M!==-100||this.toggleSelectionForItem(H[this.as])}}},
_multiSelectionChanged:function(f){this.clearSelection();this.$.selector.multi=f},
updateSizeForItem:function(f){return this.updateSizeForIndex(this.items.indexOf(f))},
updateSizeForIndex:function(f){if(!this._isIndexRendered(f))return null;this._updateMetrics([this._getPhysicalIndex(f)]);this._positionItems();return null},
_manageFocus:function(){var f=this._focusedVirtualIndex;f>=0&&f<this._virtualCount?this._isIndexRendered(f)?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(f){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(f/this._itemsPerRow)*this._itemsPerRow:f},
_isIndexRendered:function(f){return f>=this._virtualStart&&f<=this._virtualEnd},
_isIndexVisible:function(f){return f>=this.firstVisibleIndex&&f<=this.lastVisibleIndex},
_getPhysicalIndex:function(f){return(this._physicalStart+(f-this._virtualStart))%this._physicalCount},
focusItem:function(f){this._focusPhysicalItem(f)},
_focusPhysicalItem:function(f){if(!(f<0||f>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(f)||this.scrollToIndex(f);var H=this._physicalItems[this._getPhysicalIndex(f)],v=this.modelForElement(H),t;v.tabIndex=-100;H.tabIndex===-100&&(t=H);t||(t=_.Fj(H).querySelector('[tabindex="-100"]'));v.tabIndex=0;this._focusedVirtualIndex=f;t&&t.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 f=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var H=this.stamp(null);this._focusBackfillItem=H.root.querySelector("*");this._itemsParent.appendChild(H.root)}this._offscreenFocusedItem=this._physicalItems[f];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[f]=this._focusBackfillItem;this._focusedPhysicalIndex=f;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var f=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),H=this._physicalItems[f];if(H){var v=this.modelForElement(H),t=this.modelForElement(this._offscreenFocusedItem);v[this.as]===t[this.as]?(this._focusBackfillItem=H,v.tabIndex=-1,this._physicalItems[f]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(f){f=this.modelForElement(f.target);var H=this.modelForElement(this._focusedItem),v=this._offscreenFocusedItem!==null,t=this._focusedVirtualIndex;f&&(H===f?this._isIndexVisible(t)||this.scrollToIndex(t):(this._restoreFocusedItem(),H&&(H.tabIndex=-1),f.tabIndex=0,this._focusedVirtualIndex=t=f[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(t),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],v&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(f){switch(f.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&f.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&&f.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(f)}},
_clamp:function(f,H,v){return Math.min(v,Math.max(H,f))},
_debounce:function(f,H,v){this._debouncers=this._debouncers||{};this._debouncers[f]=_.ML(this._debouncers[f],v,H.bind(this));_.hq(this._debouncers[f])},
_forwardProperty:function(f,H,v){f._setPendingProperty(H,v)},
_forwardHostPropV2:function(f,H){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(v){v&&this.modelForElement(v).forwardHostProp(f,H)},this)},
_notifyInstancePropV2:function(f,H,v){k7B(this.as,H)&&(f=f[this.indexAs],H==this.as&&(this.items[f]=v),this.notifyPath(IV(this.as,"items."+f,H),v))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(f,H,v){H.indexOf(this.as+".")===0&&this.notifyPath("items."+f.__key__+"."+H.slice(this.as.length+1),v)},
_forwardParentPath:function(f,H){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(v){v&&this.modelForElement(v).notifyPath(f,H)},this)},
_forwardParentProp:function(f,H){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(v){v&&(this.modelForElement(v)[f]=H)},this)},
_getActiveElement:function(){var f=this._itemsParent.node.domHost;return _.Fj(f?f.root:document).activeElement},
_scrollTargetChanged:function(f,H){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(H)if(f==="document")this.scrollTarget=this._doc;else if(typeof f==="string"){var v,t;this.scrollTarget=(H=(t=(v=this.domHost)==null?void 0:v.polymerController)!=null?t:this.domHost)&&H.$?H.$[f]:_.Fj(this.ownerDocument).querySelector("#"+f)}else this._isValidScrollTarget()&&(this._oldScrollTarget=f,this._toggleScrollListener(this._shouldHaveListener,f))}});var k7h;var Tyb;var ws9=function(f,H,v,t){f-=v;H-=t;return Math.sqrt(f*f+H*H)},qwr=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
NKH.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var ckR=function(f){f.maxRadius=0;f.mouseDownStart=0;f.mouseUpStart=0;f.xStart=0;f.yStart=0;f.xEnd=0;f.yEnd=0;f.containerMetrics=new NKH(f.element)};
XCs.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var f=qwr()-this.mouseDownStart;this.mouseUpStart&&(f-=this.mouseUpElapsed);return f},get mouseUpElapsed(){return this.mouseUpStart?qwr()-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 f=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(f*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-f/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 f=this.radius/(this.containerMetrics.size/2);var H=this.xNow-this.containerMetrics.width/2;var v=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+H+"px, "+v+"px)";this.waveContainer.style.transform="translate3d("+H+"px, "+v+"px, 0)";this.wave.style.webkitTransform="scale("+f+","+f+")";this.wave.style.transform="scale3d("+f+","+f+",1)"},
downAction:function(f){var H=this.containerMetrics.width/2,v=this.containerMetrics.height/2;ckR(this);this.mouseDownStart=qwr();this.center?(this.xStart=H,this.yStart=v):(this.xStart=f?f.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=f?f.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=H,this.yEnd=v);f=this.containerMetrics;H=this.xStart;v=this.yStart;this.maxRadius=Math.max(ws9(H,v,0,0),ws9(H,v,
f.width,0),ws9(H,v,0,f.height),ws9(H,v,f.width,f.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=qwr())},
remove:function(){_.Fj(_.Fj(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.p2({_template:function(){if(Tyb!==void 0)return Tyb;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;k7h===void 0&&(k7h=document.createElement("template"));var t=k7h;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return Tyb=f},
is:"tp-yt-paper-ripple",behaviors:[_.dS],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(){_.Fj(this).parentNode.nodeType==11?this.keyEventTarget=_.Fj(this).getOwnerRoot().host:this.keyEventTarget=_.Fj(this).parentNode;var f=this.keyEventTarget;this.listen(f,"up","uiUpAction");this.listen(f,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(f){f.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var f=0;f<this.ripples.length;++f)if(!this.ripples[f].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(f){this.noink||this.downAction(f)},
downAction:function(f){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(f),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(f){this.noink||this.upAction(f)},
upAction:function(f){this.holdDown||(this.ripples.forEach(function(H){H.upAction(f)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var f=0;f<this.ripples.length;++f){var H=this.ripples[f];H.isOpacityFullyDecayed&&!H.isRestingAtMaxRadius&&this.removeRipple(H)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var f=new XCs(this);_.Fj(this.$.waves).appendChild(f.waveContainer);this.$.background.style.backgroundColor=f.color;this.ripples.push(f);this._setAnimating(!0);return f},
removeRipple:function(f){var H=this.ripples.indexOf(f);H<0||(this.ripples.splice(H,1),f.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var f;for(f=0;f<this.ripples.length;++f){var H=this.ripples[f];H.draw();this.$.background.style.opacity=H.outerOpacity;H.isOpacityFullyDecayed&&!H.isRestingAtMaxRadius&&this.removeRipple(H)}if(this.shouldKeepAnimating)window.requestAnimationFrame(this._boundAnimate);else this.onAnimationComplete()}},
animateRipple:function(){return this.animate()},
_onEnterKeydown:function(){this.uiDownAction();this.async(this.uiUpAction,1)},
_onSpaceKeydown:function(){this.uiDownAction()},
_onSpaceKeyup:function(){this.uiUpAction()},
_holdDownChanged:function(f,H){H!==void 0&&(f?this.downAction():this.upAction())}});var C3={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(f){s8._downHandler.call(this,f);this.pressed&&this.ensureRipple(f)},
ensureRipple:function(f){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var H=this._rippleContainer||this.root;H&&_.Fj(H).appendChild(this._ripple);if(f){H=_.Fj(this._rippleContainer||this);var v=_.Fj(f).rootTarget;H.deepContains(v)&&this._ripple.uiDownAction(f)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(f){this.hasRipple()&&(this._ripple.noink=f)}};var fbb={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 f=1;this.disabled?f=0:this.active||this.pressed?f=4:this.receivedFocusFromKeyboard&&(f=3);this._setElevation(f)},
_computeKeyboardClass:function(f){this.toggleClass("keyboard-focus",f)},
_spaceKeyDownHandler:function(f){s8._spaceKeyDownHandler.call(this,f);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(f){s8._spaceKeyUpHandler.call(this,f);this.hasRipple()&&this._ripple.uiUpAction()}},HAr=[yjM,
_.jH,C3,fbb];_.vfr={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(f){f&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=f)},
_createRipple:function(){var f=C3._createRipple();f.id="ink";f.setAttribute("center","");f.classList.add("circle");return f}};
_.t4Z=[yjM,_.jH,C3,_.vfr];_.M4_=[_.t4Z,$lM,{_checkedChanged:function(){mlT._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){C3._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var hH_;var RH9;var V4T=function(){};
_.R=V4T.prototype;_.R.registered=function(){};
_.R.addOwnKeyBinding=function(){};
_.R.removeOwnKeyBindings=function(){};
_.R.keyboardEventMatchesKeys=function(){};
_.R._collectKeyBindings=function(){};
_.R._prepKeyBindings=function(){};
_.R._addKeyBinding=function(){};
_.R._resetKeyEventListeners=function(){};
_.R._listenKeyEventListeners=function(){};
_.R._unlistenKeyEventListeners=function(){};
_.R._onKeyBindingEvent=function(){};
_.R._triggerKeyHandler=function(){};
_.R._tapHandler=function(){};
_.R._focusChanged=function(){};
_.R._detectKeyboardFocus=function(){};
_.R._userActivate=function(){};
_.R._upHandler=function(){};
_.R._asyncClick=function(){};
_.R._pressedChanged=function(){};
_.R._ariaActiveAttributeChanged=function(){};
_.R._activeChanged=function(){};
_.R._controlStateChanged=function(){};
_.R._changedButtonState=function(){};
_.R._focusBlurHandler=function(){};
_.R._disabledChanged=function(){};
_.R._changedControlState=function(){};
_.R._buttonStateChanged=function(){};
_.R._downHandler=function(){};
_.R.ensureRipple=function(){};
_.R.getRipple=function(){};
_.R.hasRipple=function(){};
_.R._createRipple=function(){};
_.R._noinkChanged=function(){};
_.R._computeKeyboardClass=function(){};
_.R._spaceKeyDownHandler=function(){};
_.R._spaceKeyUpHandler=function(){};
_.R._setPressed=function(){};
_.R._setPointerDown=function(){};
_.R._setReceivedFocusFromKeyboard=function(){};
_.R._setFocused=function(){};
_.R._setElevation=function(){};
V4T=_.p2({_template:function(){if(RH9!==void 0)return RH9;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);
var H=f.content,v=H.insertBefore;hH_===void 0&&(hH_=document.createElement("template"));var t=hH_;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return RH9=f},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[HAr],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?fbb._calculateElevation.apply(this):this._setElevation(0)}});var yQh;var YHT;var mNh={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(f){_.J("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(f)},
_onDialogClickWrapped:function(f){_.J("dialog_behavior_no_tap_killswitch")||this._onDialogClick(f)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(f,H){H&&(f?(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(f){if(f){var H;((H=this.hostElement)!=null?H:this).setAttribute("aria-modal","true")}else{var v;((v=this.hostElement)!=null?v:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(f){this.closingReason=this.closingReason||{};this.closingReason.confirmed=f},
_onDialogClick:function(f){for(var H=_.Fj(f).path,v=0,t,M=H.indexOf((t=this.hostElement)!=null?t:this);v<M;v++)if(t=H[v],t.hasAttribute&&(t.hasAttribute("dialog-dismiss")||t.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(t.hasAttribute("dialog-confirm"));this.close();f.stopPropagation();break}}},$NM=[_.GA,
mNh];var Wm_=document.createElement("template");_.x(Wm_,'<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(Wm_.content);var OAM=document.createElement("template");_.x(OAM,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(OAM.content);_.p2({_template:function(){if(YHT!==void 0)return YHT;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);
var H=f.content,v=H.insertBefore;yQh===void 0&&(yQh=document.createElement("template"));var t=yQh;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return YHT=f},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[$NM,ZTv],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 gfo;var Ibr;_.p2({_template:function(){if(Ibr!==void 0)return Ibr;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;gfo===void 0&&(gfo=document.createElement("template"));var t=gfo;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return Ibr=f},
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 f,H,v;if(((f=window.ShadyDOM)==null?void 0:f.noPatch)!==!0&&((H=window.ShadyDOM)==null?void 0:H.noPatch)!=="on-demand"||((v=this.__shady_parentNode)==null?void 0:v.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(mNh)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var SHT=_.EH(['<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>']),dNa=_.WOZ(SHT);dNa.setAttribute("style","display: none;");document.head.appendChild(dNa.content);var j0C;var s0h;var ZAa;var JQh;_.p2({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[Bw],configure:function(f){var H=f.node,v=H.getBoundingClientRect().height;return this._effect=new KeyframeEffect(H,[{height:v/2+"px"},{height:v+"px"}],this.timingFromConfig(f))}});
_.p2({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[Bw],configure:function(f){var H=f.node,v=H.getBoundingClientRect().width;return this._effect=new KeyframeEffect(H,[{width:v/2+"px"},{width:v+"px"}],this.timingFromConfig(f))}});
_.p2({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[Bw],configure:function(f){var H=f.node,v=H.getBoundingClientRect().width;return this._effect=new KeyframeEffect(H,[{width:v+"px"},{width:v-v/20+"px"}],this.timingFromConfig(f))}});
_.p2({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[Bw],configure:function(f){var H=f.node,v=H.getBoundingClientRect().height;this.setPrefixedProperty(H,"transformOrigin","0 0");return this._effect=new KeyframeEffect(H,[{height:v+"px",transform:"translateY(0)"},{height:v/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(f))}});var E8={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},lb_=function(){};
_.R=lb_.prototype;_.R.registered=function(){};
_.R.addOwnKeyBinding=function(){};
_.R.removeOwnKeyBindings=function(){};
_.R.keyboardEventMatchesKeys=function(){};
_.R._collectKeyBindings=function(){};
_.R._prepKeyBindings=function(){};
_.R._addKeyBinding=function(){};
_.R._resetKeyEventListeners=function(){};
_.R._listenKeyEventListeners=function(){};
_.R._unlistenKeyEventListeners=function(){};
_.R._onKeyBindingEvent=function(){};
_.R._triggerKeyHandler=function(){};
_.R._focusBlurHandler=function(){};
_.R._changedControlState=function(){};
_.R._setFocused=function(){};
lb_=_.p2({_template:function(){if(JQh!==void 0)return JQh;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;ZAa===void 0&&(ZAa=document.createElement("template"));var t=ZAa;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return JQh=f},
is:"tp-yt-paper-menu-button",behaviors:[_.dS,_.jH],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:E8.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:E8.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:E8.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 f=_.Fj(this.$.content).getDistributedNodes(),H=0,v=f.length;H<v;H++)if(f[H].nodeType===Node.ELEMENT_NODE)return f[H]},toggle:function(){this.opened?
this.close():this.open()},
open:function(){this.disabled||this.$.dropdown.open()},
close:function(){this.$.dropdown.close()},
_onIronSelect:function(){this.ignoreSelect||this.close()},
_onIronActivate:function(){this.closeOnActivate&&this.close()},
_openedChanged:function(f,H){f?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):H!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(f){_.jH._disabledChanged.apply(this,arguments);f&&this.opened&&this.close()},
__onIronOverlayCanceled:function(f){var H=this.$.trigger;_.Fj(f.detail).path.indexOf(H)>-1&&f.preventDefault()}});
Object.keys(E8).forEach(function(f){lb_[f]=E8[f]});var UNa=_.Z6.IronButtonState,eHa=(0,_.jh)(HTMLElement);
_.p2({_template:function(){if(s0h!==void 0)return s0h;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;j0C===void 0&&(j0C=document.createElement("template"));var t=j0C;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return s0h=f},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[UNa,_.jH,C3,_.JH,_.eH],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(f){var H=(0,_.Zx)(this);H.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:f});H.shadowRoot.appendChild(f);return eHa.prototype._attachDom.call(this,f)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var f=this.contentElement;f&&f.selectedItem&&this._setSelectedItem(f.selectedItem)},
get contentElement(){for(var f=_.Fj(this.$.content).getDistributedNodes(),H=0,v=f.length;H<v;H++)if(f[H].nodeType===Node.ELEMENT_NODE)return f[H]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(f){this._setSelectedItem(f.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(f){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f)===this&&this.open()},
_selectedItemChanged:function(f){var H="";f?H=f.label||f.getAttribute("label")||f.textContent.trim():H="";this.value=H;this._setSelectedItemLabel(H)},
_computeMenuVerticalOffset:function(f,H){return H?H:f?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var f=this.opened?"true":"false",H=this.contentElement;H&&H.setAttribute("aria-expanded",f)},
_computeLabelClass:function(f,H,v){var t="label";if(f)v&&(t+=" label-is-hidden");else if(v||H)t+=" label-is-floating";return t},
_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 LmZ;var xNr;_.p2({is:"tp-yt-paper-icon-button",_template:function(){if(xNr!==void 0)return xNr;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;LmZ===void 0&&(LmZ=document.createElement("template"));var t=LmZ;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return xNr=f},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.t4Z],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(f,H){var v=this.getAttribute("aria-label");v&&H!=v||this.setAttribute("aria-label",f)}});var Bsr;var zH9;_.N_=[yjM,_.jH,{hostAttributes:{role:"option",tabindex:"0"}}];_.p2({_template:function(){if(zH9!==void 0)return zH9;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;Bsr===void 0&&(Bsr=document.createElement("template"));var t=Bsr;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return zH9=f},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.N_]});var Fm_;var rQv;var Kmh={attached:function(){this.fire("addon-attached")},
update:function(){}};var DNh=1,of_=1,nfC=1,p1T=[_.jH,_.dS,{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();!TC&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(f,H){f?f=f+" "+H:f=H;return f},
_onAddonAttached:function(f){f=_.Fj(f).rootTarget;if(f.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,f.id);else{var H="paper-input-add-on-"+of_++;f.id=H;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,H)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(f){_.jH._focusBlurHandler.call(this,f);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var f=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",f);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(f){try{var H=this.inputElement.selectionStart;this.value=f;this.inputElement.selectionStart=H;this.inputElement.selectionEnd=H}catch(v){this.value=f}},
_computeAlwaysFloatLabel:function(f,H){return H||f},
_updateAriaLabelledBy:function(){var f=_.Fj(this.root).querySelector("label");if(f){if(f.id)var H=f.id;else H="paper-input-label-"+DNh++,f.id=H;this._ariaLabelledBy=H}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+nfC++)},
_onChange:function(f){this.shadowRoot&&this.fire(f.type,{sourceEvent:f},{node:this,bubbles:f.bubbles,cancelable:f.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var f=document.activeElement;f instanceof HTMLElement&&f!==document.body&&f!==document.documentElement||this._focusableElement.focus()}}}];var Q0_;var uLg;_.p2({_template:function(){if(uLg!==void 0)return uLg;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;Q0_===void 0&&(Q0_=document.createElement("template"));var t=Q0_;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return uLg=f},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[Kmh],properties:{_charCounterStr:{type:String,value:"0"}},update:function(f){if(f.inputElement){f.value=f.value||"";var H=f.value.toString().length.toString();f.inputElement.hasAttribute("maxlength")&&(H+="/"+f.inputElement.getAttribute("maxlength"));this._charCounterStr=H}}});var ab_;var PLh;_.p2({_template:function(){if(PLh!==void 0)return PLh;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;ab_===void 0&&(ab_=document.createElement("template"));var t=ab_;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return PLh=f},
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 mu(this.attrForValue)},get _inputElement(){return _.Fj(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(f){this._addons||(this._addons=[]);f=f.target;this._addons.indexOf(f)===-1&&(this._addons.push(f),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(f){this._handleValueAndAutoValidate(f.target)},
_onValueChanged:function(f){var H=f.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,H.value===void 0||H.value===""))return;this._handleValueAndAutoValidate(f.target)},
_handleValue:function(f){var H=this._inputElementValue;H||H===0||f.type==="number"&&!f.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:f,value:H,invalid:this.invalid})},
_handleValueAndAutoValidate:function(f){this.autoValidate&&f&&(this.invalid=!(f.validate?f.validate(this._inputElementValue):f.checkValidity()));this._handleValue(f)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(f){if(this._addons)for(var H,v=0;H=this._addons[v];v++)H.update(f)},
_computeInputContentClass:function(f,H,v,t,M){var h="input-content";f?(M&&(h+=" label-is-hidden"),t&&!this.noUnfloatedLabelError&&(h+=" is-invalid")):(f=this.querySelector("label"),H||M?(h+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",t?h+=" is-invalid":v&&(h+=" label-is-highlighted")):(f&&(this.$.labelAndInputContainer.style.position="relative"),t&&!this.noUnfloatedLabelError&&(h+=" is-invalid")));v&&(h+=" focused");return h},
_computeUnderlineClass:function(f,H){var v="underline";H?v+=" is-invalid":f&&(v+=" is-highlighted");return v},
_computeAddOnContentClass:function(f,H){var v="add-on-content";H?v+=" is-invalid":f&&(v+=" is-highlighted");return v}});var GBH;var CLT;_.p2({_template:function(){if(CLT!==void 0)return CLT;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;GBH===void 0&&(GBH=document.createElement("template"));var t=GBH;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return CLT=f},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[Kmh],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(f){this._setInvalid(f.invalid)}});_.p2({is:"tp-yt-paper-input",_template:function(){if(rQv!==void 0)return rQv;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;Fm_===void 0&&(Fm_=document.createElement("template"));var t=Fm_;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return rQv=f},
behaviors:[p1T,_.JH],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 Efb;var NsH;_.p2({_template:function(){if(NsH!==void 0)return NsH;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=
f.content,v=H.insertBefore;Efb===void 0&&(Efb=document.createElement("template"));var t=Efb;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return NsH=f},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.N_]});var cQa;var X1T;_.p2({_template:function(){if(X1T!==void 0)return X1T;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);
var H=f.content,v=H.insertBefore;cQa===void 0&&(cQa=document.createElement("template"));var t=cQa;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return X1T=f},
is:"tp-yt-paper-item-body"});var AQ9;var bAn;var iAb=function(){};
_.R=iAb.prototype;_.R.indexOf=function(){};
_.R.selectPrevious=function(){};
_.R.selectNext=function(){};
_.R.selectIndex=function(){};
_.R.forceSynchronousItemUpdate=function(){};
_.R._checkFallback=function(){};
_.R._addListener=function(){};
_.R._removeListener=function(){};
_.R._activateEventChanged=function(){};
_.R._updateItems=function(){};
_.R._selectSelected=function(){};
_.R._filterItem=function(){};
_.R._valueToItem=function(){};
_.R._valueToIndex=function(){};
_.R._indexToValue=function(){};
_.R._valueForItem=function(){};
_.R._observeItems=function(){};
_.R._itemActivate=function(){};
_.R.multiChanged=function(){};
_.R._updateAttrForSelected=function(){};
_.R._updateSelected=function(){};
_.R._selectMulti=function(){};
_.R._selectionChange=function(){};
_.R._toggleSelected=function(){};
_.R._valuesToItems=function(){};
_.R.registered=function(){};
_.R.addOwnKeyBinding=function(){};
_.R.removeOwnKeyBindings=function(){};
_.R.keyboardEventMatchesKeys=function(){};
_.R._collectKeyBindings=function(){};
_.R._prepKeyBindings=function(){};
_.R._addKeyBinding=function(){};
_.R._resetKeyEventListeners=function(){};
_.R._listenKeyEventListeners=function(){};
_.R._unlistenKeyEventListeners=function(){};
_.R._onKeyBindingEvent=function(){};
_.R._triggerKeyHandler=function(){};
_.R.select=function(){};
_.R._resetTabindices=function(){};
_.R._updateMultiselectable=function(){};
_.R._focusWithKeyboardEvent=function(){};
_.R._clearSearchText=function(){};
_.R._focusPrevious=function(){};
_.R._focusNext=function(){};
_.R._applySelection=function(){};
_.R._focusedItemChanged=function(){};
_.R._onIronItemsChanged=function(){};
_.R._onShiftTabDown=function(){};
_.R._onFocus=function(){};
_.R._onUpKey=function(){};
_.R._onDownKey=function(){};
_.R._onEscKey=function(){};
_.R._onKeydown=function(){};
_.R._activateHandler=function(){};
_.R._disabledChanged=function(){};
_.R._setSelectedItem=function(){};
_.R._setItems=function(){};
_.R._setSelectedItems=function(){};
_.R._setFocusedItem=function(){};
iAb=_.p2({_template:function(){if(bAn!==void 0)return bAn;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);
var H=f.content,v=H.insertBefore;AQ9===void 0&&(AQ9=document.createElement("template"));var t=AQ9;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return bAn=f},
is:"tp-yt-paper-listbox",behaviors:[IOb],hostAttributes:{role:"listbox"}});var kBa;var Tsr;var w1_={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(f,H){return[f||H?"active":"",H?"cooldown":""].join(" ")},
__activeChanged:function(f,H){this.__setAriaHidden(!f);this.__coolingDown=!f&&H},
__altChanged:function(f){this.setAttribute("aria-label",f||"loading")},
__setAriaHidden:function(f){f?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.p2({_template:function(){if(Tsr!==void 0)return Tsr;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;kBa===void 0&&(kBa=document.createElement("template"));var t=kBa;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return Tsr=f},
is:"tp-yt-paper-spinner",behaviors:[w1_]});var qHh;var fVZ;_.p2({_template:function(){if(fVZ!==void 0)return fVZ;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;qHh===void 0&&(qHh=document.createElement("template"));var t=qHh;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return fVZ=f},
is:"tp-yt-paper-spinner-lite",behaviors:[w1_]});var H8h;var v_h;_.p2({_template:function(){if(v_h!==void 0)return v_h;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;H8h===void 0&&(H8h=document.createElement("template"));var t=H8h;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return v_h=f},
is:"tp-yt-paper-tab",behaviors:[_.jH,_.Z6.IronButtonState,C3],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 f=_.Fj(this).parentNode;return!!f&&!!f.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(f){if(this.link){var H=this.queryEffectiveChildren("a");H&&f.target!==H&&H.click()}}});var tsZ;var Msn;var hVn=_.EH(['<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>']),RV_=_.WOZ(hVn);document.head.appendChild(RV_.content);_.p2({_template:function(){if(Msn!==void 0)return Msn;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;tsZ===void 0&&(tsZ=document.createElement("template"));var t=tsZ;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return Msn=f},
is:"tp-yt-paper-tabs",behaviors:[_.x3,_.dlo],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(f){_.Fj(this).querySelectorAll("tp-yt-paper-tab").forEach(f?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(f){f.setAttribute("noink","")},
_removeNoinkAttribute:function(f){f.removeAttribute("noink")},
_computeScrollButtonClass:function(f,H,v,t){return!H||v?"hidden":f?t?"hidden":"not-visible":""},
_computeTabsContentClass:function(f,H){var v="tabs-content";f&&(v+=" scrollable");if(!f||H)v+=" fit-container";return v},
_computeSelectionBarClass:function(f,H){var v="selection-bar";f?v+=" hidden":H&&(v+=" align-bottom");return v},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(f){return""+f},
_onIronSelect:function(f){this._tabChanged(f.detail.item,this._previousTab);this._previousTab=f.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();_.L3._activateHandler.apply(this,arguments)},
_scheduleActivation:function(f,H){this._pendingActivationItem=f;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,H)},
_delayedActivationHandler:function(){var f=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;f.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(f){f.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(f,H){this.scrollable&&this._affectScroll(H&&-H.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(f){this.$.tabsContainer.scrollLeft+=f;f=this.$.tabsContainer.scrollLeft;this._leftHidden=f===0||this.hideScrollButtons;this._rightHidden=f===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(f,H){if(f){var v=this.$.tabsContent.getBoundingClientRect(),t=v.width,M=f.getBoundingClientRect();v=M.left-v.left;this._pos={width:this._calcPercent(M.width,t),left:this._calcPercent(v,t)};if(this.noSlide||H==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var h=H.getBoundingClientRect();H=this.items.indexOf(H);f=this.items.indexOf(f);this.$.selectionBar.classList.add("expand");
f=H<f;this._isRTL&&(f=!f);f?this._positionBar(this._calcPercent(M.left+M.width-h.left,t)-5,this._left):this._positionBar(this._calcPercent(h.left+h.width-M.left,t)-5,this._calcPercent(v,t)+5);this.scrollable&&this._scrollToSelectedIfNeeded(M.width,v)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(f,H){H-=this.$.tabsContainer.scrollLeft;H<0?this.$.tabsContainer.scrollLeft+=H:(H+=f-this.$.tabsContainer.offsetWidth,H>0&&(this.$.tabsContainer.scrollLeft+=H))},
_calcPercent:function(f,H){return 100*f/H},
_positionBar:function(f,H){f=f||0;H=H||0;this._width=f;this._left=H;this.transform("translateX("+H+"%) scaleX("+f/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var f=this.$.selectionBar.classList;f.contains("expand")?(f.remove("expand"),f.add("contract"),this._positionBar(this._pos.width,this._pos.left)):f.contains("contract")&&f.remove("contract")}});var Vsn;var yZa;_.p2({_template:function(){if(yZa!==void 0)return yZa;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;Vsn===void 0&&(Vsn=document.createElement("template"));var t=Vsn;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return yZa=f},
is:"tp-yt-paper-textarea",behaviors:[p1T,_.JH],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(f){this.$.input.textarea.selectionStart=f},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(f){this.$.input.textarea.selectionEnd=f},_ariaLabelledByChanged:function(f){this._focusableElement.setAttribute("aria-labelledby",f)},
_ariaDescribedByChanged:function(f){this._focusableElement.setAttribute("aria-describedby",f)},
get _focusableElement(){return this.inputElement.textarea}});var YUM;var myZ;/*

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 $y_=function(){};
_.R=$y_.prototype;_.R.addOwnKeyBinding=function(){};
_.R.removeOwnKeyBindings=function(){};
_.R.keyboardEventMatchesKeys=function(){};
_.R._collectKeyBindings=function(){};
_.R._prepKeyBindings=function(){};
_.R._addKeyBinding=function(){};
_.R._resetKeyEventListeners=function(){};
_.R._listenKeyEventListeners=function(){};
_.R._unlistenKeyEventListeners=function(){};
_.R._onKeyBindingEvent=function(){};
_.R._triggerKeyHandler=function(){};
_.R._tapHandler=function(){};
_.R._focusChanged=function(){};
_.R._detectKeyboardFocus=function(){};
_.R._userActivate=function(){};
_.R._upHandler=function(){};
_.R._spaceKeyDownHandler=function(){};
_.R._spaceKeyUpHandler=function(){};
_.R._asyncClick=function(){};
_.R._pressedChanged=function(){};
_.R._ariaActiveAttributeChanged=function(){};
_.R._activeChanged=function(){};
_.R._controlStateChanged=function(){};
_.R._changedButtonState=function(){};
_.R._focusBlurHandler=function(){};
_.R._disabledChanged=function(){};
_.R._changedControlState=function(){};
_.R._downHandler=function(){};
_.R.ensureRipple=function(){};
_.R.getRipple=function(){};
_.R.hasRipple=function(){};
_.R._noinkChanged=function(){};
_.R._focusedChanged=function(){};
_.R.registered=function(){};
_.R._invalidChanged=function(){};
_.R.hasValidator=function(){};
_.R.validate=function(){};
_.R._getValidity=function(){};
_.R._requiredChanged=function(){};
_.R._valueChanged=function(){};
_.R._checkedChanged=function(){};
_.R._buttonStateChanged=function(){};
_.R._setPressed=function(){};
_.R._setPointerDown=function(){};
_.R._setReceivedFocusFromKeyboard=function(){};
_.R._setFocused=function(){};
$y_=_.p2({is:"tp-yt-paper-toggle-button",_template:function(){if(myZ!==void 0)return myZ;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;YUM===void 0&&(YUM=document.createElement("template"));var t=YUM;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return myZ=f},
behaviors:[_.M4_],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");_.qV(this,function(){_.uK(this,"pan-y")})},
_ontrack:function(f){f=f.detail;f.state==="start"?this._trackStart(f):f.state==="track"?this._trackMove(f):f.state==="end"&&this._trackEnd(f)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(f){f=f.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+f:f)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+f:f));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 f=C3._createRipple();f.id="ink";f.setAttribute("recenters","");f.classList.add("circle","toggle-ink");return f}});var W9o;var O8Z;_.p2({_template:function(){if(O8Z!==void 0)return O8Z;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;W9o===void 0&&(W9o=document.createElement("template"));var t=W9o;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return O8Z=f},
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 f=_.Fj(this).parentNode,H=_.Fj(this).getOwnerRoot(),v;this.for?v=_.Fj(H).querySelector("#"+this.for):v=f.nodeType==Node.DOCUMENT_FRAGMENT_NODE?H.host:f;return v},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(f){f==="entry"?this.show():f==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.Fj(this).textContent.trim()===""){for(var f=!0,H=_.Fj(this).getEffectiveChildNodes(),v=0;v<H.length;v++)if(H[v].textContent.trim()!==""){f=!1;break}if(f)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 f=this.offset;this.marginTop!=14&&this.offset==14&&(f=this.marginTop);var H=this.offsetParent.getBoundingClientRect(),v=this._target.getBoundingClientRect(),t=this.getBoundingClientRect(),M=(v.width-t.width)/2,h=(v.height-t.height)/2,y=v.left-H.left,m=v.top-H.top;switch(this.position){case "top":var W=y+M;var I=m-t.height-f;break;case "bottom":W=y+M;I=m+v.height+f;break;case "left":W=y-t.width-f;I=m+h;break;case "right":W=y+v.width+
f,I=m+h}this.fitToVisibleBounds?(H.left+W+t.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,W)+"px",this.style.right="auto"),H.top+I+t.height>window.innerHeight?(this.style.bottom=H.height+"px",this.style.top="auto"):(this.style.top=Math.max(-H.top,I)+"px",this.style.bottom="auto")):(this.style.left=W+"px",this.style.top=I+"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(f){f!==500&&this.updateStyles({"--paper-tooltip-delay-in":f+"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(f){if(f==="entry"&&this.animationEntry!=="")return this.animationEntry;if(f==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[f]&&typeof this.animationConfig[f][0].name==="string"){if(this.animationConfig[f][0].timing&&this.animationConfig[f][0].timing.delay&&this.animationConfig[f][0].timing.delay!==0){var H=this.animationConfig[f][0].timing.delay;f==="entry"?this.updateStyles({"--paper-tooltip-delay-in":H+"ms"}):f==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":H+
"ms"})}return this.animationConfig[f][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 g_a=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(g_a,_.mL);var IVb=_.s4(g_a,[0,_.cI]);var cw=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(cw,_.mL);var SUn=[3,4],dyT=[5,6];var jp9=[0,SUn,dyT,_.qxa,-1,_.Ny,_.fMh,-1,Xfs,AvR];var spv=_.s4(cw,jp9),Z8h=_.JD(jp9);var JZh=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(JZh,_.mL);var lVb=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(lVb,_.mL);var UyH=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(UyH,_.mL);var eVv=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(eVv,_.mL);var L9C=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(L9C,_.mL);var AH=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(AH,_.mL);AH.prototype.getSource=function(){return _.x_(this,1)};
AH.prototype.getMessage=function(){return _.L8(this,4)};
AH.prototype.getData=function(){return _.V$(this,L9C,8)};var xyn=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(xyn,_.mL);var bp=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(bp,_.mL);var ip=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(ip,_.mL);var k3=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(k3,_.mL);k3.prototype.getUrl=function(){return _.L8(this,1)};
k3.prototype.setUrl=function(f){return _.rr(this,1,f)};
k3.prototype.hasUrl=function(){return _.ep(_.OU(this,1))!=null};var BP_=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(BP_,_.mL);var zVT=[3];var F9v=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(F9v,_.mL);var TA=function(f){var H=new F9v;return _.y$(H,2,f)};
F9v.prototype.getLanguage=function(){return zX(this,4,wS)};
var rZa=function(f){var H=TA(1);return _.Lo(H,6,wS,f)},wS=[3,
4,5,6];var K9h=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(K9h,_.mL);var q_=function(f){var H=new K9h;return _.y$(H,1,f)},fv=function(f,H){return _.Lo(f,2,Dy9,H)},Dy9=[2,
3,4,5];var o_a=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(o_a,_.mL);var Hd=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(Hd,_.mL);var n_M=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(n_M,_.mL);var pIg=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(pIg,_.mL);var Qpv=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(Qpv,_.mL);var ugZ=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(ugZ,_.mL);var aVZ=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(aVZ,_.mL);var vd=function(f){return _.V$(f,ip,5)};var PTC=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(PTC,_.mL);PTC.prototype.getValue=function(){return UU(this,1)};var GXv=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(GXv,_.mL);var tc=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(tc,_.mL);tc.prototype.getMetadata=function(){return _.Fg(this,Qpv,7,MQ)};
tc.prototype.hasMetadata=function(){return _.Ip(this,Qpv,7,MQ)};
var CTb=_.oUR(tc),MQ=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var hc=function(f){this.JSC$12002_name_=f;this.files_=[];this.directories_=[];this.directoryMap_={}};
hc.prototype.getName=function(){return this.JSC$12002_name_};var VD=function(f,H){this.callback_=H;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new hc("");E_v(this,f,this.rootDirectory_);Rf(this)},E_v=function(f,H,v){for(var t=0;t<H.length;t++){var M=H[t];
M.isFile?(f.fileOps_++,M.file((0,_.FH)(f.handleFileSuccess_,f,v),(0,_.FH)(f.handleFileError_,f))):f.unscannedDirectories_.push(new NPg(M,v))}},Rf=function(f){if(f.unscannedDirectories_.length>0&&f.directoryOps_<5&&!f.hasError_){f.directoryOps_++;
var H=f.unscannedDirectories_.shift(),v=H.entry,t=new hc(v.name);H=H.parent;H.directoryMap_[t.getName()]=t;H.directories_.push(t);v=v.createReader();v.readEntries((0,_.FH)(f.handleDirectorySuccess_,f,v,t),(0,_.FH)(f.handleDirectoryError_,f))}f.directoryOps_!=0||f.fileOps_!=0||f.unscannedDirectories_.length!=0&&!f.hasError_||f.callback_(f.rootDirectory_.files_,f.rootDirectory_.directories_,f.hasError_)};
VD.prototype.handleDirectorySuccess_=function(f,H,v){E_v(this,v,H);v.length==0?(this.directoryOps_--,Rf(this)):f.readEntries((0,_.FH)(this.handleDirectorySuccess_,this,f,H),(0,_.FH)(this.handleDirectoryError_,this))};
VD.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;Rf(this)};
VD.prototype.handleFileSuccess_=function(f,H){f.files_.push(H);this.fileOps_--;Rf(this)};
VD.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;Rf(this)};
var NPg=function(f,H){this.entry=f;this.parent=H};var yD=function(f){_.Sg.call(this);_.r9(f,"drop",this.onObjectsDropped_,!1,this);_.r9(f,"dragenter",this.onFilesDragged_,!1,this);_.r9(f,"dragover",this.onFilesDragged_,!1,this);_.r9(f,"dragleave",this.onDragLeave_,!1,this);_.r9(f,"dragend",this.onDragLeave_,!1,this)};
_.f8(yD,_.Sg);var cZ_=function(f,H){_.$R.call(this,"f");this.files=f;this.directories=H};
_.f8(cZ_,_.$R);var XIo=function(){_.$R.call(this,"h")};
_.f8(XIo,_.$R);var AZo=function(){_.$R.call(this,"i")};
_.f8(AZo,_.$R);var b8H=function(){_.$R.call(this,"g")};
_.f8(b8H,_.$R);yD.prototype.onObjectsDropped_=function(f){var H=this;f.preventDefault();var v=f.event_.dataTransfer;if((f=v&&v.items)&&f.length>0&&f[0].webkitGetAsEntry){v=[];for(var t=[],M=0;M<f.length;M++){var h=f[M].webkitGetAsEntry();h?v.push(h):t.push(f[M])}new VD(v,function(y,m,W){W?H.dispatchEvent(new b8H("Error occurred while reading from the file system.")):H.dispatchEvent(new cZ_(y,m,t))})}else(f=v&&v.files)&&this.dispatchEvent(new cZ_(Array.from(f),[]))};
yD.prototype.onFilesDragged_=function(f){f.type==="dragenter"&&this.dispatchEvent(new XIo);f.preventDefault()};
yD.prototype.onDragLeave_=function(){this.dispatchEvent(new AZo)};var i8v=function(f,H){this.JSC$12025_name_=f;this.inputElement_=H};
i8v.prototype.getName=function(){return this.JSC$12025_name_};
i8v.prototype.getInputElement=function(){return this.inputElement_};var YW=function(f,H,v){H=H===void 0?"single_file":H;v=v===void 0?[]:v;_.Sg.call(this);this.overlayTarget_=f;this.parentOverlay_=f!=null?f.parentNode:_.lS("scotty-overlay-parent");this.selectorType_=H;this.acceptTypes_=v;this.overlay_=kXo(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.e(YW,_.Sg);
var kXo=function(f,H,v,t){var M=document.createElement("input");M.setAttribute("type","file");M.setAttribute("name","Filedata");_.r9(M,"change",f.onFilesSelected_,!1,f);v==="multiple_file"&&(M.multiple="true");v==="single_directory"&&(M.webkitdirectory="true");t.length>0&&M.setAttribute("accept",t.join(","));M.style.position="absolute";M.style.overflow="hidden";M.style.height="0px";M.style.width="0px";M.style.opacity="0";M.setAttribute("aria-hidden","true");M.setAttribute("tabIndex",-1);if(f.overlayTarget_!=
null)return M.style.height=H.offsetHeight+"px",M.style.width=H.offsetWidth+"px",f.parentOverlay_&&(f.parentOverlay_.style.position="relative"),_.B4(M,H),oH(M,new _.al(H.offsetLeft,H.offsetTop)),M;f.parentOverlay_.appendChild(M);return M};
YW.prototype.click=function(){this.overlay_.click()};
YW.prototype.onFilesSelected_=function(f){a:{try{var H=(new XMLHttpRequest).upload!==void 0;break a}catch(I){}H=!1}if(H){var v;f=Array.from((v=f.target.files)!=null?v:[]);v=[];if(this.selectorType_==="single_directory"&&(_.Rp||TE||_.hZ)){v=new hc("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(H=0;H<f.length;H++)for(var t=f[H],M=t.webkitRelativePath.split("/"),h=v,y=0;y<M.length;y++){var m=M[y];if(y==M.length-1){m!="."&&h.files_.push(t);break}var W=h.directoryMap_[m];W==void 0&&(m=
W=new hc(m),h.directoryMap_[m.getName()]=m,h.directories_.push(m));h=W}v=v.directories_}this.dispatchEvent(new TPv(f,v,null))}else f=f.target.value,f.match(/^c:\\fakepath\\/i)&&(f=f.substring(12)),this.dispatchEvent(new TPv([],[],new i8v(f,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=kXo(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var TPv=function(f,H){_.$R.call(this,"j");this.files=f;this.directories=H};
_.e(TPv,_.$R);var wIh=function(f){this.uploadUrl_=f};var qUC=function(){_.Sg.call(this)};
_.f8(qUC,_.Sg);var m5=function(f){_.$R.call(this,f)};
_.f8(m5,_.$R);var $W=function(f){_.$R.call(this,f)};
_.f8($W,_.$R);var fDb=function(f,H,v,t,M){_.Sg.call(this);v=document.createElement("form");v.setAttribute("method",H);v.setAttribute("enctype","multipart/form-data");v.setAttribute("encoding","multipart/form-data");H=document.createElement("input");H.setAttribute("type","hidden");H.setAttribute("name","metadata");H.setAttribute("value",M);v.appendChild(H);v.appendChild(t);this.JSC$12042_form_=v;f=new _.qC(f);_.iS(f,"upload_protocol","multipart");this.JSC$12042_url_=f.toString();this.JSC$12042_request_=new Ts;this.state_=
"Ready";this.JSC$12042_errorDescription_=null;this.JSC$12042_eventHandler_=new _.Y1(this);_.jz(this,this.JSC$12042_eventHandler_);this.JSC$12042_eventHandler_.listen(this.JSC$12042_request_,"success",this.onTransferSuccess_);this.JSC$12042_eventHandler_.listen(this.JSC$12042_request_,"error",this.onTransferError_)};
_.e(fDb,qUC);_.R=fDb.prototype;_.R.run=function(){this.state_="Transferring";var f=this.JSC$12042_request_,H=this.JSC$12042_form_;if(f.JSC$11461_active_)throw Error("oe");var v=new _.qC(this.JSC$12042_url_||H.action);f.JSC$11461_form_=H;H=f.JSC$11461_form_;v=_.cv(v.toString());v!==void 0&&(H.action=v);zUa(f)};
_.R.getResponseCode=function(){return null};
_.R.getResponseText=function(){return this.JSC$12042_request_&&this.JSC$12042_request_.getResponseText()||null};
_.R.JSC$29412_getErrorDescription=function(){return this.JSC$12042_errorDescription_};
_.R.cancel=function(){this.JSC$12042_request_&&this.JSC$12042_request_.abort();this.state_="Cancelled";this.dispatchEvent(new m5("o"))};
_.R.pause=function(){};
_.R.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new m5("l"))};
_.R.onTransferError_=function(){this.JSC$12042_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new m5("n"))};var Wd=function(){_.eg.call(this)};
_.e(Wd,_.eg);Wd.prototype.createXhr=function(){var f=_.eg.prototype.createXhr.call(this);f.upload&&(f.upload.onprogress=(0,_.FH)(this.onProgress_,this));return f};
Wd.prototype.onProgress_=function(f){this.dispatchEvent(f)};var H6r=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},tIr=function(f,H){var v=f.attempt_+1;
if(f.maxAttempts_>0&&v>f.maxAttempts_)return!1;v==0?H():f.delayCallId_=Je(function(){f.delayCallId_=null;H()},v0h(f),f);
f.attempt_=v;return!0};
H6r.prototype.reset=function(){this.delayCallId_&&_.Mr.clearTimeout(this.delayCallId_);this.attempt_=-1};
var v0h=function(f){var H=250*Math.pow(2,f.attempt_);f.maxDelayMs_>=0&&(H=Math.min(H,f.maxDelayMs_));return H};var bZ5=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var Op=function(){_.Sg.call(this);this.JSC$12052_request_=this.state_=null;this.JSC$12052_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12052_bytesTransferred_=0;this.retryIterator_=new H6r;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12052_errorDescription_=null;this.JSC$12052_eventHandler_=new _.Y1(this);_.jz(this,this.JSC$12052_eventHandler_);this.JSC$12052_url_=this.blob_=null;this.JSC$12052_method_=void 0;this.chunkSize_=this.JSC$12052_metadata_=
this.JSC$12052_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12052_responseText_=this.JSC$12052_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.f8(Op,qUC);_.R=Op.prototype;_.R.run=function(){gC(this)};
_.R.getResponseCode=function(){return this.JSC$12052_responseCode_};
_.R.getResponseText=function(){return this.JSC$12052_responseText_};
_.R.JSC$29412_getErrorDescription=function(){return this.JSC$12052_errorDescription_};
_.R.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12052_eventHandler_.removeAll();this.JSC$12052_request_&&this.JSC$12052_request_.abort();this.retryIterator_.reset();var f=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(f==="Upload"||f==="Query")f=new Wd,f.JSC$9787_withCredentials_=this.JSC$12052_withCredentials_,f.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12052_bytesTransferred_=
0;this.dispatchEvent(new m5("o"))}};
_.R.pause=function(){this.pauseRequested_=!0};
var gC=function(f){var H=f.state_;f.pauseRequested_?(f.pauseRequested_=!1,f.stateAfterUnpausing_=H,f.state_="Paused"):tIr(f.retryIterator_,function(){switch(f.state_){case "Start":f.JSC$12052_request_=new Wd;var v=_.QA.clone(f.JSC$12052_headers_);f.blob_.size!=null&&(v["Content-Length"]=f.blob_.size);v=iZH(v);v["X-Goog-Upload-Protocol"]="resumable";v["X-Goog-Upload-Command"]="start";f.JSC$12052_eventHandler_.removeAll();f.JSC$12052_eventHandler_.listen(f.JSC$12052_request_,"complete",f.onStartComplete_);
f.JSC$12052_request_.JSC$9787_withCredentials_=f.JSC$12052_withCredentials_;f.JSC$12052_request_.send(f.JSC$12052_url_,f.JSC$12052_method_,f.JSC$12052_metadata_,v);f.lastCommandResponseCode_=null;f.dispatchEvent(new $W("q"));break;case "Upload":v=f.transferHandle_.uploadUrl_;var t=f.blob_.size;if(MNT()){var M=f.chunkSize_;var h=f.offset_+M>=t;t=tNM(f.blob_,f.offset_,h?t:f.offset_+M)}else f.offset_=0,t=f.blob_,h=!0;f.JSC$12052_request_=new Wd;f.JSC$12052_request_.JSC$9787_withCredentials_=f.JSC$12052_withCredentials_;
f.JSC$12052_eventHandler_.removeAll();f.JSC$12052_eventHandler_.listen(f.JSC$12052_request_,"progress",f.onUploadProgress_);M=(0,_.FH)(f.JSC$12054_onUploadComplete_,f,f.offset_+t.size,h);f.JSC$12052_eventHandler_.listen(f.JSC$12052_request_,"complete",M);f.lastCommandResponseCode_=null;f.dispatchEvent(new $W("q"));h=Object.assign({},f.JSC$12052_headers_||{},{"X-Goog-Upload-Command":"upload"+(h?", finalize":""),"X-Goog-Upload-Offset":f.offset_});f.JSC$12052_request_.send(v,"POST",t,h);break;case "Query":f.JSC$12052_request_=
new Wd;f.JSC$12052_eventHandler_.removeAll();f.JSC$12052_eventHandler_.listen(f.JSC$12052_request_,"complete",f.onQueryComplete_);v=Object.assign({},f.JSC$12052_headers_||{},{"X-Goog-Upload-Command":"query"});f.JSC$12052_request_.send(f.transferHandle_.uploadUrl_,"POST","",v);f.lastCommandResponseCode_=null;f.dispatchEvent(new $W("q"));break;default:throw Error("df");}})||If(f,"Transfer encountered too many consecutive failures.")},If=function(f,H){f.state_="Error";
f.JSC$12052_errorDescription_=H;f.dispatchEvent(new m5("n"))};
Op.prototype.onStartComplete_=function(f){var H=f.target;this.lastCommandResponseCode_=H.getStatus();this.dispatchEvent(new $W("r"));if(MIC(H))hKh(this,H);else if(RKb(H)){f=qj(f.target.getAllResponseHeaders());for(var v in f)_.VR(v.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new m5("m"));v=KP(f,"X-Goog-Upload-URL");f=(f=KP(f,"X-Goog-Upload-Chunk-Granularity"))?parseInt(f,10):1;v===void 0||isNaN(f)||f<=0?If(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
f)*f,this.transferHandle_=new wIh(v),this.dispatchEvent(new m5("p")),this.state_="Upload",this.retryIterator_.reset(),gC(this))}else gC(this)};
Op.prototype.onUploadProgress_=function(f){this.JSC$12052_bytesTransferred_=this.offset_+f.loaded;this.dispatchEvent(new m5("k"))};
Op.prototype.JSC$12054_onUploadComplete_=function(f,H,v){var t=this,M,h;return _.Y(function(y){switch(y.nextAddress){case 1:M=v.target;t.lastCommandResponseCode_=M.getStatus();t.dispatchEvent(new $W("r"));if(VIM(M)||M.getStatus()==404)return t.JSC$12052_bytesTransferred_=f,hKh(t,M),y.return();if(RKb(M)){y.jumpTo(2);break}if(!(h=t.detectCorruptedBlobEnabled_)){y.jumpTo(3);break}return y.yield(yh9(t),4);case 4:h=y.yieldResult;case 3:if(h)return If(t,"Blob has been modified or corrupted."),y.return();
t.requireUploadRequestModification_=M.getStatus()==400;t.state_="Query";gC(t);return y.return();case 2:if(H)return If(t,"Got a non-final success response after issuing a finalize command."),y.return();t.JSC$12052_bytesTransferred_=f;t.offset_=f;t.retryIterator_.reset();gC(t);return y.return()}})};
Op.prototype.onQueryComplete_=function(f){var H=f.target;this.lastCommandResponseCode_=H.getStatus();this.dispatchEvent(new $W("r"));MIC(H)?(H.getStatus()===200&&(this.JSC$12052_bytesTransferred_=this.blob_.size),hKh(this,H)):RKb(H)?(f=qj(f.target.getAllResponseHeaders()),f=parseInt(KP(f,"X-Goog-Upload-Size-Received"),10),isNaN(f)?If(this,"Server did not respond with current offset."):f<this.offset_?If(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
f+"."):this.requireUploadRequestModification_&&this.offset_===f?If(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<f&&this.retryIterator_.reset(),this.offset_=this.JSC$12052_bytesTransferred_=f,this.state_="Upload",gC(this))):gC(this)};
var hKh=function(f,H){f.JSC$12052_responseCode_=H.getStatus();var v=qj(H.getAllResponseHeaders());kMT(v);f.JSC$12052_responseText_=H.getResponseText();f.state_="Response received";f.dispatchEvent(new m5("l"))},RKb=function(f){var H=f.getStatus();
f=qj(f.getAllResponseHeaders());f=KP(f,"X-Goog-Upload-Status");return H===200&&f==="active"},VIM=function(f){f=qj(f.getAllResponseHeaders());
return KP(f,"X-Goog-Upload-Status")==="final"},MIC=function(f){if(VIM(f))return!0;
f=f.getStatus();return f>=400&&f<500},yh9=function(f){var H;
return _.Y(function(v){if(v.nextAddress==1){if(!f.blob_||f.originalBlobSize_<=0)return v.return(!1);if(f.blob_.size!==f.originalBlobSize_)return v.return(!0);_.Zc(v,2);if(H=tNM(f.blob_,0,1)){var t=v.yield,M=new nK,h=NZ9(M);M.reader_.readAsBinaryString(H);v=t.call(v,h,4)}else v=v.return(!0);return v}if(v.nextAddress!=2)return v.return(f.blob_.size!==f.originalBlobSize_);_.xu(v);return v.return(!0)})};var Y$n=function(f,H,v,t,M,h){_.Sg.call(this);this.payload_=t;this.JSC$12055_url_=f;this.JSC$12055_method_=H;this.JSC$12055_headers_=v;this.JSC$12055_metadata_=M;this.encoding_=h||"binary";f=new _.ZN;this.boundary_="uploader-"+XH()+"-"+f.JSC$11310_toIsoString();this.JSC$12055_responseText_=this.JSC$12055_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12055_errorDescription_=null;this.JSC$12055_eventHandler_=new _.Y1(this);_.jz(this,this.JSC$12055_eventHandler_)};
_.e(Y$n,qUC);_.R=Y$n.prototype;
_.R.run=function(){var f=_.QA.clone(this.JSC$12055_headers_);this.payload_.length!=null&&(f["Content-Length"]=this.payload_.length);f=iZH(f);f["X-Goog-Upload-Protocol"]="multipart";f["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new Wd;this.JSC$12055_eventHandler_.removeAll();this.JSC$12055_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12055_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12055_url_,this.JSC$12055_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12055_metadata_+"\r\n--")+this.boundary_+'\r\nContent-Disposition: form-data; name="Filedata"\r\nContent-Transfer-Encoding: '+(this.encoding_+"\r\n\r\n")+this.payload_+"\r\n--"+this.boundary_+"--\r\n",f)};
_.R.getResponseCode=function(){return this.JSC$12055_responseCode_};
_.R.getResponseText=function(){return this.JSC$12055_responseText_};
_.R.JSC$29412_getErrorDescription=function(){return this.JSC$12055_errorDescription_};
_.R.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12055_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new m5("o")))};
_.R.pause=function(){};
_.R.onTransferProgress_=function(){this.dispatchEvent(new m5("k"))};
_.R.onTransferComplete_=function(f){var H=f.target.getStatus();H===void 0||H===-1?(this.JSC$12055_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new m5("n"))):(this.JSC$12055_responseCode_=H,f=f.target,H=qj(f.getAllResponseHeaders()),kMT(H),this.JSC$12055_responseText_=f.getResponseText(),this.state_="Complete",this.dispatchEvent(new m5("l")))};_.mtC=function(f,H,v,t){t=t===void 0?!1:t;if(v instanceof i8v)return new fDb(f,"POST",H,v.getInputElement(),"");if(typeof v==="string"||v instanceof String)return new Y$n(f,"POST",H,v,"");var M=new Op(void 0);M.JSC$12052_url_=f;M.JSC$12052_method_="POST";M.JSC$12052_headers_=H;M.blob_=v;M.originalBlobSize_=v.size;M.JSC$12052_metadata_="";t&&(M.JSC$12052_withCredentials_=t);M.state_="Start";return M};var SA=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(SA,_.mL);_.R=SA.prototype;_.R.getEnableSsEngine=function(){return _.lT(this,2)};
_.R.getEnableAwr=function(){return _.lT(this,3)};
_.R.getAlohaAutoGaRollout=function(){return _.lT(this,5)};
_.R.getEnableConfigurator=function(){return _.lT(this,6)};
_.R.getEnableMweb=function(){return _.lT(this,7)};
var WPn=function(){var f=$tZ();return _.oW(f,7,!0)};
SA.prototype.getEnableCtlConsentCheckbox=function(){return _.lT(this,8)};
SA.prototype.getEnableIframe=function(){return _.lT(this,9)};
var $tZ=function(){var f=new SA;f=_.oW(f,5,!0);f=_.oW(f,2,!0);f=_.oW(f,4,!1);f=_.oW(f,8,!0);return _.oW(f,9,!0)};
SA.prototype.getEnableScreenshotNudge=function(){return _.lT(this,10)};
var O6C=function(){var f=WPn();return _.oW(f,10,!0)};
SA.prototype.getEnableWebStartupConfigEndpoint=function(){return _.lT(this,11)};
SA.prototype.getEnableJunkNudge=function(){return _.lT(this,12)};
var IBr=function(){var f=O6C();return _.oW(f,12,!0)};
_.R=SA.prototype;_.R.getEnableConfiguratorLocale=function(){return _.lT(this,13)};
_.R.getEnableTinyNoPointer=function(){return _.lT(this,14)};
_.R.getEnableSupportSessionLogging=function(){return _.lT(this,15)};
_.R.getEnableFileUploadForScreenshot=function(){return _.lT(this,16)};
_.R.getEnableDirectDeflectionForSingleCategory=function(){return _.lT(this,17)};
_.R.getEnableImageSanitization=function(){return _.lT(this,18)};
_.R.getEnableAlohaBinarySplit=function(){return _.lT(this,19)};
_.R.getEnableDbFeedbackIntents=function(){return _.lT(this,20)};
_.R.getEnableMarkMandatoryFieldsWithRequired=function(){return _.lT(this,21)};
_.R.getEnableFeedbackCategoryCustomUi=function(){return _.lT(this,22)};
_.R.getEnableRealtimeCtl=function(){return _.lT(this,23)};var g4R=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(g4R,_.mL);var TK5=[/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 qv3="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 fBE=_.EH(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),HRB=_.EH(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var txR,Rz5,Mxs,Vxb;var g0a,IDa;
g0a=function(f,H,v){f.timeOfStartCall=(new Date).getTime();var t=v||_.Mr,M=t.document,h=f.nonce||_.qA(t.document);h&&!f.nonce&&(f.nonce=h);if(f.flow=="help"){var y=_.ES("document.location.href",t);!f.helpCenterContext&&y&&(f.helpCenterContext=y.substring(0,1200));y=!0;if(H&&JSON&&JSON.stringify){var m=JSON.stringify(H);(y=m.length<=1200)&&(f.psdJson=m)}y||(H={invalidPsd:!0})}H=[f,H,v];t.GOOGLE_FEEDBACK_START_ARGUMENTS=H;v=f.feedbackServerUri||"//www.google.com/tools/feedback";if(y=t.GOOGLE_FEEDBACK_START)y.apply(t,H);
else{t=v+"/load.js?";for(var W in f)H=f[W],H==null||_.vo(H)||(t+=encodeURIComponent(W)+"="+encodeURIComponent(H)+"&");f=BQ(M).createElement("SCRIPT");h&&f.setAttribute("nonce",h);_.tf(f,_.FM(t));M.body.appendChild(f)}};
IDa=function(f,H,v,t){var M,h;_.Y(function(y){M=v||_.Mr;var m=f.serverEnvironment==="DEV",W=v||_.Mr;W=f.nonce||_.qA(W.document);m={integrationKeys:{productId:f.productId,feedbackBucket:f.bucket,triggerId:f.triggerId},callbacks:{onClose:f.callback,onLoad:f.onLoadCallback},formContent:{locale:f.locale,disableScreenshot:f.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:f.abuseLink,additionalDataConsent:f.additionalDataConsent},initializationData:{isLocalServer:m,nonce:W,useNightlyRelease:m,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:f.feedbackServerUri,colorScheme:f.colorScheme},extraData:{productVersion:f.productVersion,authUser:f.authuser,configuratorId:f.configuratorId,customZIndex:f.customZIndex,tinyNoPointer:f.tinyNoPointer,
allowNonLoggedInFeedback:f.allowNonLoggedInFeedback,enableAnonymousFeedback:f.enableAnonymousFeedback}};H&&(W=new Map(Object.entries(H)),m.extraData.productSpecificData=W);h=m;return y.yield($g3(h,t,M),0)})};
_.S$a=function(f,H,v){try{if(f.flow==="help"){var t=f.helpCenterPath.replace(/^\//,"");_.we(v||window,"https://support.google.com/"+t)}else f.flow==="submit"?g0a(f,H,v):STB(f.productId,f.feedbackServerUri).then(function(M){M=_.V$(M,SA,1);var h=!OzN||(M==null?void 0:M.getEnableMweb()),y=!f.tinyNoPointer||(M==null?void 0:M.getEnableTinyNoPointer());!M||M.getAlohaAutoGaRollout()&&h&&y?IDa(f,H,v,M):g0a(f,H,v)},function(M){M&&M.name!=="DuplicateFormError"&&g0a(f,H,v)})}catch(M){IDa(f,H,v,null)}};
_.qJ("userfeedback.api.startFeedback",_.S$a);var dg5=/https?:\/\/\S+\.\S+/,jQb=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],sQT=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var Fte=function(f){var H=f.split(""),v=[-263237435,15,H,function(t,M,h){var y=M.length;h.forEach(function(m,W,I){this.push(I[W]=M[(M.indexOf(m)-M.indexOf(this[W])+W+y--)%M.length])},t.split(""))},
function(t,M){t=(t%M.length+M.length)%M.length;M.splice(-t).reverse().forEach(function(h){M.unshift(h)})},
"response",function(){for(var t=64,M=[];++t-M.length-32;){switch(t){case 58:t-=14;case 91:case 92:case 93:continue;case 123:t=47;case 94:case 95:case 96:continue;case 46:t=95}M.push(String.fromCharCode(t))}return M},
null,12,1540023973,65941107,null,H,function(t,M){for(t=(t%M.length+M.length)%M.length;t--;)M.unshift(M.pop())},
695603893,function(t){for(var M=t.length;M;)t.push(t.splice(--M,1)[0])},
"'[;'[(",function(t,M){t.push(M)},
null,function(t,M,h,y,m){return M(h,y,m)},
"continuation",H,function(t,M){if(t.length!=0){M=(M%t.length+t.length)%t.length;var h=t[0];t[0]=t[M];t[M]=h}},
function(){for(var t=64,M=[];++t-M.length-32;){switch(t){case 91:t=44;continue;case 123:t=65;break;case 65:t-=18;continue;case 58:t=96;continue;case 46:t=95}M.push(String.fromCharCode(t))}return M},
'"),/]];'];v[7]=v;v[11]=v;v[18]=v;try{(((0,v[15])(v[21]),v[22])(v[11],v[9]),v[22])(v[new Date("1970-01-01T04:30:12.000+04:30")/1E3],v[1]),((0,v[22])(v[11],v[23]),v[4])(v[10],v[18]),(0,v[20])(v[21],v[14])<<(0,v[17])(v[18],v[1]),(0,v[4])(v[8],v[21]),(0,v[19])((0,v[19])((0,v[17])(v[7],v[9]),v[3],v[20],(0,v[6])(),v[2]),v[3],v[5],(0,v[15])(),v[2])}catch(t){return"aTlOUOubTO4AP____8P_"+f}return H.join("")};_.dth=new _.Ak("runAttestationCommand");var jH9=new _.Ak("verifyCommand");_.dC=new _.Ak("accessibilityContext");var sHa=new _.Ak("accessibilityData");var Z6M=new _.Ak("profileCardCommand");var a05=new _.Ak("signInEndpoint");var uOv=new _.Ak("signOutEndpoint");var lDC;_.Jhh=new _.Ak("accountItemSectionRenderer");lDC=new _.Ak("accountItemRenderer");_.UtZ=new _.Ak("saveCommandToSessionStorageAction");var eKZ=new _.Ak("crossAccountChannelTransferEndpoint");var owR=new _.Ak("getAccountMenuEndpoint");_.nwB=new _.Ak("getAccountSwitcherEndpoint");var DbR=new _.Ak("getAccountsListEndpoint");var LPo=new _.Ak("getAccountsListInnertubeEndpoint");_.jA=new _.Ak("addToToastAction");var xtZ=new _.Ak("hideEnclosingAction");_.sp=new _.Ak("replaceEnclosingAction");var BQb=new _.Ak("buttonRefreshAction");var zKH=new _.Ak("adsControlFlowOpportunityReceivedCommand");var FPo=new _.Ak("openAdAllowlistInstructionCommand");var rhZ=new _.Ak("videoMastheadAdPrimaryVideoRenderer");var KPb=new _.Ak("displayAdRenderer");var Rf3=new _.Ak("instreamVideoAdRenderer");_.Dtn=new _.Ak("inFeedAdLayoutRenderer");var o09=new _.Ak("sequenceItemInPlayerAdLayoutRenderer");_.n0C=new _.Ak("adSlotRenderer");var p49=new _.Ak("adAvatarViewModel");var QHa=new _.Ak("adBadgeViewModel");var u_r=new _.Ak("adButtonViewModel");var aDv=new _.Ak("adImageViewModel");var fdb=new _.Ak("reelsAdCardButtonedViewModel");var PsZ=new _.Ak("reelsPlayerOverlayLayoutViewModel");var G_h=new _.Ak("showSchedulingPanelCommand");var Csn=new _.Ak("backstageCommentsRenderer");var E0a=new _.Ak("backstageImageRenderer");var NQ9=new _.Ak("backstagePostRenderer");var ch9=new _.Ak("backstageZeroStateRenderer");var X4o=new _.Ak("postRenderer");var AhM=new _.Ak("sharedPostRenderer");var b6o=new _.Ak("createBackstagePostEndpoint");var i6a=new _.Ak("getPostVideoPreviewEndpoint");var k_9=new _.Ak("updateBackstagePostEndpoint");var TQZ=new _.Ak("filterChipTransformCommand");var w4h=new _.Ak("insertRichSectionCommand");var clR=new _.Ak("talkToRecsDeselectCommand");var q$g=new _.Ak("talkToRecsNextCommand");var N1b=new _.Ak("talkToRecsSelectCommand");var feH=new _.Ak("talkToRecsUpdateTextCommand");_.ec=new _.Ak("browseEndpoint");_.Hhb=new _.Ak("confirmDialogEndpoint");var vRb=new _.Ak("expandOnHoverCardRenderer");var tga=new _.Ak("lumiereShelfDetailsRenderer");var MgZ=new _.Ak("revealBusinessEmailCommand");var h8Z=new _.Ak("validateChannelHandleCommand");var R8n=new _.Ak("channelCreationFormEndpoint");var VgT=new _.Ak("aboutChannelViewModel");var ye9=new _.Ak("channelThumbnailWithLinkRenderer");var YBT=new _.Ak("channelCreationServiceEndpoint");var mch=new _.Ak("updateChannelPageSettingsEndpoint");var Zk=function(f){this.delegate=f},Jc=function(){Zk.apply(this,arguments)};
_.e(Jc,Zk);_.H7.Object.defineProperties(Jc.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(f){this.delegate.entityMetadata=f}}});var $cC=function(){Jc.apply(this,arguments)};
_.e($cC,Jc);$cC.prototype.getAssociations=function(){return[]};
$cC.prototype.getTypeName=function(){return"channelHandle"};var EA3=new _.Ak("webThumbnailDetailsExtensionData");var tT5=new _.Ak("commandContext");var WQh=new _.Ak("addVideoLinkAction");var Ohh=new _.Ak("banAuthorAction");var gRH=new _.Ak("createCommentAction");var Ieb=new _.Ak("createCommentReplyAction");var SBg=new _.Ak("createPollAction");var dcr=new _.Ak("hideIdentityChipAction");var jSo=new _.Ak("openUpdateCommentDialogAction");var sSb=new _.Ak("pinCommentAction");var Zhr=new _.Ak("removeCommentAction");var Jeh=new _.Ak("unpinCommentAction");var lP=new _.Ak("updateBackstagePollAction");var le_=new _.Ak("updateCommentVoteAction");var Uc9=new _.Ak("commentThreadRenderer");var e8b=function(){Jc.apply(this,arguments)};
_.e(e8b,Jc);e8b.prototype.getAssociations=function(){return[]};
e8b.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var LQg=function(){Jc.apply(this,arguments)};
_.e(LQg,Jc);LQg.prototype.getAssociations=function(){return[]};
LQg.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.xcH=new _.Ak("commentDialogRenderer");var BmM=new _.Ak("reloadCommentsCommand");var z8g=new _.Ak("updateCommentsSettingsEndpoint");var FQH=new _.Ak("commentViewModel");var re_=new _.Ak("triStateButtonViewModel");var KQg=new _.Ak("voiceReplyContainerViewModel");_.Ir=new _.Ak("commandExecutorCommand");var uV=new _.Ak("emoji");var Dch=new _.Ak("updateCreatorChannelInnertubeCommand");_.oRr=new _.Ak("appendContinuationItemsAction");_.nRr=new _.Ak("changeEngagementPanelVisibilityAction");_.GI=new _.Ak("continuationCommand");var pUM=new _.Ak("hideReportedCommentAction");var QSC=new _.Ak("listMutationCommand");_.Up=new _.Ak("openPopupAction");var uJh=new _.Ak("persistSubscriptionsDisplayPreferencesCommand");var XU_;_.aea=new _.Ak("playlistRemoveVideosAction");_.Pz_=new _.Ak("updatePlaylistAction");_.GUh=new _.Ak("addToPlaylistCommand");_.Czo=new _.Ak("endPlaylistCommand");_.ER_=new _.Ak("recoverPlaylistCommand");_.Nmr=new _.Ak("refreshPlaylistCommand");_.ceH=new _.Ak("refreshFormCommand");XU_=new _.Ak("openOnePickAddVideoModalCommand");_.G8e=new _.Ak("reloadContinuationItemsCommand");_.Aer=new _.Ak("scrollToEngagementPanelCommand");var bhh=new _.Ak("selectCountryCommand");var ihn=new _.Ak("showReloadUiCommand");var kU9=new _.Ak("undoFeedbackAction");var Tmh=new _.Ak("updateButtonAction");var wUZ=new _.Ak("updateSubscribeButtonAction");var qB9=new _.Ak("updateToggleAction");var fYa=new _.Ak("webNativeShareCommand");_.jG=new _.Ak("webCommandMetadata");_.eA=new _.Ak("webHandleServiceEndpointExtension");var alH=new _.Ak("webNavigationEndpointData");var HZa=new _.Ak("backgroundAudioPlaybackCommand");var vJn=new _.Ak("copyLinkCommand");var tdM=new _.Ak("playlistVotingRefreshPopupCommand");var MdM=new _.Ak("selectChipCommand");var hQC=new _.Ak("setCookieCommand");var RQv=new _.Ak("setLocalStorageCommand");var Vdr=new _.Ak("setPrefStorageEntryCommand");var $7T;_.ykh=new _.Ak("settingsUpdateCheckboxCommand");_.Yvr=new _.Ak("settingsUpdateTextCommand");_.m7n=new _.Ak("settingsUpdateOptionsCommand");$7T=new _.Ak("settingsUpdateSwitchCommand");_.W6r=new _.Ak("settingsUpdateConnectedAppRendererCommand");var OZM=new _.Ak("updateTextInputFormFieldRendererCommand");var gJh=new _.Ak("updateToggleButtonStateCommand");var IY9=new _.Ak("updateUrlParamCommand");var Svo=new _.Ak("webSubmitFormCommand");var d7C=new _.Ak("channelSwitcherPageRenderer"),jvZ=new _.Ak("updateChannelSwitcherPageAction");_.bw=new _.Ak("continuationItemRenderer");_.Lv=new _.Ak("richItemRenderer");var svg=new _.Ak("richSectionRenderer");_.ZZh=new _.Ak("richShelfRenderer");_.Jkn=new _.Ak("metadataBadgeRenderer");_.lYa=new _.Ak("multiPageMenuNotificationSectionRenderer");_.U7_=new _.Ak("playlistLoopButtonStateRenderer");var eQM=new _.Ak("claimLegacyYoutubeChannelEndpoint");var L6Z=new _.Ak("getNotificationMenuEndpoint");var x7r=new _.Ak("getSearchInVideoCommand");_.BKn=new _.Ak("getTranscriptEndpoint");_.dj=new _.Ak("signalServiceEndpoint");var zQ_=new _.Ak("verifyAgeEndpoint");var D0B=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(D0B,_.mL);D0B.prototype.getPath=function(){return _.L8(this,1)};
D0B.prototype.getValue=function(){return _.L8(this,2)};var F6a=[0,_.C8,-1];var rkM=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(rkM,_.mL);var KtH=_.s4(rkM,[0,_.EU,F6a]);var K6a=new _.Ak("dismissalEndpoint");var D7T=new _.Ak("elementsCommand");_.PK=new _.Ak("innertubeCommand");var oJv=new _.Ak("multipleInlinePlaybackCommand");var llB=new _.Ak("loggingDirectives");var nJ9=new _.Ak("acknowledgeChannelTouStrikeCommand");var pCH=function(){Jc.apply(this,arguments)};
_.e(pCH,Jc);pCH.prototype.getAssociations=function(){return[]};
pCH.prototype.getTypeName=function(){return"booleanEntity"};var Qv9=function(){Jc.apply(this,arguments)};
_.e(Qv9,Jc);Qv9.prototype.getAssociations=function(){return[]};
Qv9.prototype.getTypeName=function(){return"stringEntity"};var kK=new _.Ak("entityBatchUpdate");_.u4H=new _.Ak("entityUpdateCommand");var aYC=function(){Jc.apply(this,arguments)};
_.e(aYC,Jc);aYC.prototype.getAssociations=function(){var f=[];this.delegate.alternateChannel&&f.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&f.push.apply(f,_.pS(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&f.push(this.delegate.oneofChannelEntity);return[].concat(_.pS(new Set(f)))};
aYC.prototype.getTypeName=function(){return"fakeChannel"};var PNv=function(){Jc.apply(this,arguments)};
_.e(PNv,Jc);PNv.prototype.getAssociations=function(){var f=[];this.delegate.entryCollection&&f.push(this.delegate.entryCollection);return[].concat(_.pS(new Set(f)))};
PNv.prototype.getTypeName=function(){return"fakePlaylist"};
var GMr=function(){Jc.apply(this,arguments)};
_.e(GMr,Jc);GMr.prototype.getAssociations=function(){var f=[];this.delegate.parentPlaylist&&f.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var H=_.V(this.delegate.entries),v=H.next();!v.done;v=H.next())f.push.apply(f,_.pS((new CNC(v.value)).getAssociations()));return[].concat(_.pS(new Set(f)))};
GMr.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var CNC=function(){Zk.apply(this,arguments)};
_.e(CNC,Zk);CNC.prototype.getAssociations=function(){var f=[];this.delegate.video&&f.push(this.delegate.video);return[].concat(_.pS(new Set(f)))};var EJZ=function(){Jc.apply(this,arguments)};
_.e(EJZ,Jc);EJZ.prototype.getAssociations=function(){var f=[];this.delegate.descriptionEntity&&f.push(this.delegate.descriptionEntity);this.delegate.creators&&f.push.apply(f,_.pS(this.delegate.creators));this.delegate.theBiggestFan&&f.push(this.delegate.theBiggestFan);return[].concat(_.pS(new Set(f)))};
EJZ.prototype.getTypeName=function(){return"fakeVideo"};
var NKC=function(){Jc.apply(this,arguments)};
_.e(NKC,Jc);NKC.prototype.getAssociations=function(){return[]};
NKC.prototype.getTypeName=function(){return"fakeVideoDescription"};var ckM=new _.Ak("fantasyRosterViewModel");var XC_=new _.Ak("addFollowUpSurveyCommand");var AkZ=new _.Ak("getSurveyCommand");var bZb=new _.Ak("ratingSurveyOptionRenderer");_.B1=new _.Ak("feedbackEndpoint");var iZC=new _.Ak("reportHistoryTableCellRenderer"),kMZ=new _.Ak("reportHistoryTableTextCellRenderer"),TKb=new _.Ak("reportHistoryTableReasonCellRenderer");_.wC9=new _.Ak("flagEndpoint");var qvn=new _.Ak("getFlowCommand");var fBv=new _.Ak("submitFormWithValidationFlowCommand");var HRh=function(){Jc.apply(this,arguments)};
_.e(HRh,Jc);HRh.prototype.getAssociations=function(){return[]};
HRh.prototype.getTypeName=function(){return"flowStateEntity"};var v4C=new _.Ak("flowFormState");var txM=new _.Ak("gameCardRenderer");var Mx_=new _.Ak("accountLinkingStateChangedCommand");var hzM=function(){Jc.apply(this,arguments)};
_.e(hzM,Jc);hzM.prototype.getAssociations=function(){return[]};
hzM.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var Rzb=new _.Ak("changeMiniAppPlayStateCommand");var VxH=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(VxH,_.mL);var xW=[1,2,3];var yAh=[0,xW,GGH,_.CxT,ooH];var YTv=_.s4(VxH,yAh),mga=_.JD(yAh);var $gn=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e($gn,_.mL);var Wch=[0,_.ap,_.C8];var ORv=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(ORv,_.mL);var g4M=[0,_.C8,_.ap,-1];var Bd=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(Bd,_.mL);var IBT=_.JD([0,1,Wch,_.cI,g4M]);var STh=new _.Ak("miniAppScoreChallengeViewModel");var dgb=new _.Ak("miniGameCardViewModel");var jQH=new _.Ak("teaserCardViewModel");var sQZ=function(){Jc.apply(this,arguments)};
_.e(sQZ,Jc);sQZ.prototype.getAssociations=function(){return[]};
sQZ.prototype.getTypeName=function(){return"logoEntity"};_.ZRC=new _.Ak("feedbackItemRenderer");var JAb=function(){Jc.apply(this,arguments)};
_.e(JAb,Jc);JAb.prototype.getAssociations=function(){return[]};
JAb.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.lBh=new _.Ak("playerInterstitialRenderer");var Ugg=new _.Ak("getKidsBlocklistPickerCommand");_.ezb=new _.Ak("updateKidsBlacklistEndpoint");_.np=new _.Ak("likeEndpoint");var Lcr,xgo,B_n;Lcr=new _.Ak("addChatItemAction");xgo=new _.Ak("removeChatItemAction");B_n=new _.Ak("markChatItemAsDeletedAction");_.zz9=new _.Ak("setLiveChatCollapsedStateAction");var FcH=function(){Jc.apply(this,arguments)};
_.e(FcH,Jc);FcH.prototype.getAssociations=function(){return[]};
FcH.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var rAH=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(rAH,_.mL);var Kca=_.s4(rAH,[0,1,_.ap]);var Dgn=new _.Ak("liveChatEndpoint");var o4_=new _.Ak("liveChatItemContextMenuEndpoint");var n4r=new _.Ak("liveChatReplayEndpoint");_.pDM=new _.Ak("emojiPickerRenderer");var QQ9=new _.Ak("liveChatAuthorBadgeViewModel");var uQa=new _.Ak("deleteLiveChatMessageCommand");var aB_=new _.Ak("liveChatActionEndpoint");var Pbv=new _.Ak("createLiveChatPollEndpoint");var GCg=new _.Ak("manageLiveChatUserEndpoint");var Cbr=new _.Ak("moderateLiveChatEndpoint");_.E4H=new _.Ak("sendLiveChatMessageEndpoint");var N_a=new _.Ak("sendLiveChatVoteEndpoint");var cAv=new _.Ak("clearLocationCommand");var XDT=new _.Ak("resolveLocationCommand");var AA_=new _.Ak("interactionLoggingCommandMetadata");var bRb=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(bRb,_.mL);var iRo=function(f,H){return _.O1(f,1,H)};var kCC=[0,_.GX];var T_n=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(T_n,_.mL);var wDT=function(f,H){return sP(f,1,bRb,H)};T_n.prototype.JSC$12149_serializeBinary=DA_([0,_.EU,kCC]);var Cbg={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 qT_={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"},
fNg={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 NBe={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"};_.YOH=new _.Ak("logFlowLoggingEventCommand");_.eW=new _.Ak("loggingContext");var HK9=new _.Ak("audioTrackSelectActionCommand");var vag=new _.Ak("captionLanguageSelectActionCommand");var thZ=new _.Ak("showAudioTrackPickerActionCommand");var Mhn=new _.Ak("showCaptionLanguageSelectActionCommand");var hub=new _.Ak("dismissDialogEndpoint");var Rur=new _.Ak("dismissPlayerOverlayCommand");var Vhv=new _.Ak("hideItemSectionVideosByIdCommand");var yqh=new _.Ak("showMiniplayerCommand");var Y3n=function(){Jc.apply(this,arguments)};
_.e(Y3n,Jc);Y3n.prototype.getAssociations=function(){return[]};
Y3n.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var mLg=function(){Jc.apply(this,arguments)};
_.e(mLg,Jc);mLg.prototype.getAssociations=function(){return[]};
mLg.prototype.getTypeName=function(){return"downloadStatusEntity"};var $Ln=function(){Jc.apply(this,arguments)};
_.e($Ln,Jc);$Ln.prototype.getAssociations=function(){return[]};
$Ln.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var WAH=function(){Jc.apply(this,arguments)};
_.e(WAH,Jc);WAH.prototype.getAssociations=function(){var f=[];this.delegate.downloadsList&&f.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&f.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&f.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&f.push(this.delegate.refresh);return[].concat(_.pS(new Set(f)))};
WAH.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var OKr=function(){Jc.apply(this,arguments)};
_.e(OKr,Jc);OKr.prototype.getAssociations=function(){var f=[];this.delegate.refresh&&f.push(this.delegate.refresh);if(this.delegate.downloads)for(var H=_.V(this.delegate.downloads),v=H.next();!v.done;v=H.next())f.push.apply(f,_.pS((new gag(v.value)).getAssociations()));return[].concat(_.pS(new Set(f)))};
OKr.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var gag=function(){Zk.apply(this,arguments)};
_.e(gag,Zk);gag.prototype.getAssociations=function(){var f=[];this.delegate.video&&f.push(this.delegate.video);this.delegate.playlist&&f.push(this.delegate.playlist);this.delegate.videoItem&&f.push(this.delegate.videoItem);this.delegate.playlistItem&&f.push(this.delegate.playlistItem);return[].concat(_.pS(new Set(f)))};var IN_=function(){Jc.apply(this,arguments)};
_.e(IN_,Jc);IN_.prototype.getAssociations=function(){var f=[];this.delegate.localImageEntities&&f.push.apply(f,_.pS(this.delegate.localImageEntities));return[].concat(_.pS(new Set(f)))};
IN_.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var S3h=function(){Jc.apply(this,arguments)};
_.e(S3h,Jc);S3h.prototype.getAssociations=function(){var f=[];this.delegate.playbackData&&f.push(this.delegate.playbackData);this.delegate.localImageEntities&&f.push.apply(f,_.pS(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&f.push(this.delegate.videoDownloadContextEntity);return[].concat(_.pS(new Set(f)))};
S3h.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var dL9=function(){Jc.apply(this,arguments)};
_.e(dL9,Jc);dL9.prototype.getAssociations=function(){return[]};
dL9.prototype.getTypeName=function(){return"offlineabilityEntity"};var jEr=function(){Jc.apply(this,arguments)};
_.e(jEr,Jc);jEr.prototype.getAssociations=function(){var f=[];this.delegate.fakeChildren&&f.push.apply(f,_.pS(this.delegate.fakeChildren));return[].concat(_.pS(new Set(f)))};
jEr.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var sEo=function(){Jc.apply(this,arguments)};
_.e(sEo,Jc);sEo.prototype.getAssociations=function(){var f=[];this.delegate.video&&f.push(this.delegate.video);this.delegate.playbackData&&f.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&f.push(this.delegate.offlineVideoPolicy);return[].concat(_.pS(new Set(f)))};
sEo.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var ZKo=function(){Jc.apply(this,arguments)};
_.e(ZKo,Jc);ZKo.prototype.getAssociations=function(){return[]};
ZKo.prototype.getTypeName=function(){return"continuationTokenEntity"};var Jqo=function(){Jc.apply(this,arguments)};
_.e(Jqo,Jc);Jqo.prototype.getAssociations=function(){var f=[];this.delegate.channelOwner&&f.push(this.delegate.channelOwner);this.delegate.videos&&f.push.apply(f,_.pS(this.delegate.videos));this.delegate.collaboratorChannels&&f.push.apply(f,_.pS(this.delegate.collaboratorChannels));this.delegate.downloadState&&f.push(this.delegate.downloadState);this.delegate.refresh&&f.push(this.delegate.refresh);return[].concat(_.pS(new Set(f)))};
Jqo.prototype.getTypeName=function(){return"mainPlaylistEntity"};var lNC=function(){Jc.apply(this,arguments)};
_.e(lNC,Jc);lNC.prototype.getAssociations=function(){var f=[];this.delegate.video&&f.push(this.delegate.video);this.delegate.channelContributor&&f.push(this.delegate.channelContributor);return[].concat(_.pS(new Set(f)))};
lNC.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var ULg=function(){Zk.apply(this,arguments)};
_.e(ULg,Zk);ULg.prototype.getAssociations=function(){var f=[];this.delegate.recommendedVideoMetadata&&f.push.apply(f,_.pS((new eug(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.pS(new Set(f)))};
var eug=function(){Zk.apply(this,arguments)};
_.e(eug,Zk);eug.prototype.getAssociations=function(){var f=[];this.delegate.localImageEntities&&f.push.apply(f,_.pS(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&f.push(this.delegate.videoDownloadContextEntity);return[].concat(_.pS(new Set(f)))};var LAo=function(){Zk.apply(this,arguments)};
_.e(LAo,Zk);LAo.prototype.getAssociations=function(){var f=[];this.delegate.playbackPosition&&f.push(this.delegate.playbackPosition);return[].concat(_.pS(new Set(f)))};var xLr=function(){Jc.apply(this,arguments)};
_.e(xLr,Jc);xLr.prototype.getAssociations=function(){var f=[];this.delegate.owner&&f.push(this.delegate.owner);this.delegate.downloadState&&f.push(this.delegate.downloadState);this.delegate.userState&&f.push.apply(f,_.pS((new LAo(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&f.push.apply(f,_.pS((new ULg(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.pS(new Set(f)))};
xLr.prototype.getTypeName=function(){return"mainVideoEntity"};var Bgh=function(){Jc.apply(this,arguments)};
_.e(Bgh,Jc);Bgh.prototype.getAssociations=function(){var f=[];this.delegate.userChannelDetails&&f.push(this.delegate.userChannelDetails);return[].concat(_.pS(new Set(f)))};
Bgh.prototype.getTypeName=function(){return"ytMainChannelEntity"};var zuC=function(){Jc.apply(this,arguments)};
_.e(zuC,Jc);zuC.prototype.getAssociations=function(){var f=[];this.delegate.channelOwner&&f.push(this.delegate.channelOwner);this.delegate.playbackPosition&&f.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&f.push.apply(f,_.pS(this.delegate.localImageEntities));this.delegate.downloadStatus&&f.push(this.delegate.downloadStatus);return[].concat(_.pS(new Set(f)))};
zuC.prototype.getTypeName=function(){return"ytMainVideoEntity"};var nPE=new _.Ak("downloadsPageSmartDownloadsOptInBannerParams");var a7g=new _.Ak("downloadsPageUpsellBannerParams");var FAb=function(){Jc.apply(this,arguments)};
_.e(FAb,Jc);FAb.prototype.getAssociations=function(){return[]};
FAb.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var rqo=function(){Jc.apply(this,arguments)};
_.e(rqo,Jc);rqo.prototype.getAssociations=function(){return[]};
rqo.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var KAT=function(){Jc.apply(this,arguments)};
_.e(KAT,Jc);KAT.prototype.getAssociations=function(){return[]};
KAT.prototype.getTypeName=function(){return"macroMarkerEntity"};var DLH=function(){Jc.apply(this,arguments)};
_.e(DLH,Jc);DLH.prototype.getAssociations=function(){return[]};
DLH.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var oar=function(){Jc.apply(this,arguments)};
_.e(oar,Jc);oar.prototype.getAssociations=function(){return[]};
oar.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var naM=function(){Jc.apply(this,arguments)};
_.e(naM,Jc);naM.prototype.getAssociations=function(){return[]};
naM.prototype.getTypeName=function(){return"playerStateEntity"};var ptg=function(){Jc.apply(this,arguments)};
_.e(ptg,Jc);ptg.prototype.getAssociations=function(){return[]};
ptg.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var QEb=function(){Jc.apply(this,arguments)};
_.e(QEb,Jc);QEb.prototype.getAssociations=function(){return[]};
QEb.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var uDC=function(){Jc.apply(this,arguments)};
_.e(uDC,Jc);uDC.prototype.getAssociations=function(){return[]};
uDC.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.z3=new _.Ak("dislikeButtonViewModel");_.Fd=new _.Ak("likeButtonViewModel");var aNo=new _.Ak("videoSummaryContentViewModel");var PeZ=new _.Ak("videoSummaryParagraphViewModel");var Gsv=new _.Ak("changeTimelyActionVisibilityCommand");var Cev=new _.Ak("hideEngagementPanelEndpoint");var Ear=new _.Ak("refreshPanelEndpoint");var Ngb=new _.Ak("scrollToSectionEndpoint");var cqC=new _.Ak("seekToVideoTimestampCommand");_.UH=new _.Ak("showEngagementPanelEndpoint");var Xtv=new _.Ak("showTransientPlayerScrimOverlayCommand");var Aqh=new _.Ak("toggleEngagementPanelCommand");_.bKo=new _.Ak("createBroadcastCommand");var iKv=new _.Ak("metadataUpdateCommand");var ksT=function(){Jc.apply(this,arguments)};
_.e(ksT,Jc);ksT.prototype.getAssociations=function(){return[]};
ksT.prototype.getTypeName=function(){return"featuredProductsEntity"};var Tg9=function(){Jc.apply(this,arguments)};
_.e(Tg9,Jc);Tg9.prototype.getAssociations=function(){return[]};
Tg9.prototype.getTypeName=function(){return"pinnedProductEntity"};var wtH=function(){Jc.apply(this,arguments)};
_.e(wtH,Jc);wtH.prototype.getAssociations=function(){return[]};
wtH.prototype.getTypeName=function(){return"trendingOfferEntity"};_.q3o=new _.Ak("merchandiseShelfRenderer");var f6a=new _.Ak("gridMovieRenderer");_.H3n=new _.Ak("movieRenderer");var v39=function(){Jc.apply(this,arguments)};
_.e(v39,Jc);v39.prototype.getAssociations=function(){var f=[];this.delegate.trackDownloadMetadatas&&f.push.apply(f,_.pS(this.delegate.trackDownloadMetadatas));return[].concat(_.pS(new Set(f)))};
v39.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var tHa=function(){Jc.apply(this,arguments)};
_.e(tHa,Jc);
tHa.prototype.getAssociations=function(){var f=[];this.delegate.downloadedTracks&&f.push.apply(f,_.pS(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&f.push.apply(f,_.pS(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&f.push.apply(f,_.pS(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&f.push.apply(f,_.pS(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&f.push.apply(f,_.pS(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
f.push.apply(f,_.pS(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&f.push.apply(f,_.pS(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&f.push.apply(f,_.pS(this.delegate.metadataOnlyTracks));return[].concat(_.pS(new Set(f)))};
tHa.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var MHo=function(){Jc.apply(this,arguments)};
_.e(MHo,Jc);MHo.prototype.getAssociations=function(){var f=[];this.delegate.trackDownloadMetadatas&&f.push.apply(f,_.pS(this.delegate.trackDownloadMetadatas));return[].concat(_.pS(new Set(f)))};
MHo.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var hRM=function(){Jc.apply(this,arguments)};
_.e(hRM,Jc);hRM.prototype.getAssociations=function(){var f=[];this.delegate.playbackData&&f.push(this.delegate.playbackData);this.delegate.localImageEntities&&f.push.apply(f,_.pS(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&f.push(this.delegate.videoDownloadContextEntity);return[].concat(_.pS(new Set(f)))};
hRM.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var RRh=function(){Jc.apply(this,arguments)};
_.e(RRh,Jc);
RRh.prototype.getAssociations=function(){var f=[];this.delegate.musicLibraryStatusEntity&&f.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&f.push.apply(f,_.pS(this.delegate.primaryArtists));this.delegate.details&&f.push(this.delegate.details);this.delegate.userDetails&&f.push(this.delegate.userDetails);this.delegate.tracks&&f.push.apply(f,_.pS(this.delegate.tracks));this.delegate.share&&f.push(this.delegate.share);this.delegate.downloadMetadata&&f.push(this.delegate.downloadMetadata);this.delegate.refresh&&
f.push(this.delegate.refresh);return[].concat(_.pS(new Set(f)))};
RRh.prototype.getTypeName=function(){return"musicAlbumRelease"};
var VHC=function(){Jc.apply(this,arguments)};
_.e(VHC,Jc);VHC.prototype.getAssociations=function(){var f=[];this.delegate.albumRelease&&f.push(this.delegate.albumRelease);this.delegate.tracks&&f.push.apply(f,_.pS(this.delegate.tracks));return[].concat(_.pS(new Set(f)))};
VHC.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var yHh=function(){Jc.apply(this,arguments)};
_.e(yHh,Jc);yHh.prototype.getAssociations=function(){var f=[];this.delegate.albumRelease&&f.push(this.delegate.albumRelease);return[].concat(_.pS(new Set(f)))};
yHh.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var Y8g=function(){Jc.apply(this,arguments)};
_.e(Y8g,Jc);Y8g.prototype.getAssociations=function(){var f=[];this.delegate.details&&f.push(this.delegate.details);this.delegate.userDetails&&f.push(this.delegate.userDetails);return[].concat(_.pS(new Set(f)))};
Y8g.prototype.getTypeName=function(){return"musicArtist"};
var m_9=function(){Jc.apply(this,arguments)};
_.e(m_9,Jc);m_9.prototype.getAssociations=function(){var f=[];this.delegate.parentArtist&&f.push(this.delegate.parentArtist);return[].concat(_.pS(new Set(f)))};
m_9.prototype.getTypeName=function(){return"musicArtistDetail"};
var $_Z=function(){Jc.apply(this,arguments)};
_.e($_Z,Jc);$_Z.prototype.getAssociations=function(){var f=[];this.delegate.parentArtist&&f.push(this.delegate.parentArtist);return[].concat(_.pS(new Set(f)))};
$_Z.prototype.getTypeName=function(){return"musicArtistUserDetail"};var W4v=function(){Jc.apply(this,arguments)};
_.e(W4v,Jc);W4v.prototype.getAssociations=function(){return[]};
W4v.prototype.getTypeName=function(){return"musicLibraryEdit"};var O3Z=function(){Jc.apply(this,arguments)};
_.e(O3Z,Jc);O3Z.prototype.getAssociations=function(){return[]};
O3Z.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var g3v=function(){Jc.apply(this,arguments)};
_.e(g3v,Jc);
g3v.prototype.getAssociations=function(){var f=[];this.delegate.tracks&&f.push.apply(f,_.pS(this.delegate.tracks));this.delegate.refresh&&f.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&f.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&f.push(this.delegate.details);this.delegate.downloadMetadata&&f.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&f.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&f.push(this.delegate.userDetails);this.delegate.entryCollection&&
f.push(this.delegate.entryCollection);this.delegate.share&&f.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&f.push.apply(f,_.pS((new I6o(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.pS(new Set(f)))};
g3v.prototype.getTypeName=function(){return"musicPlaylist"};
var I6o=function(){Zk.apply(this,arguments)};
_.e(I6o,Zk);I6o.prototype.getAssociations=function(){var f=[];this.delegate.creatorEntity&&f.push(this.delegate.creatorEntity);return[].concat(_.pS(new Set(f)))};var S8T=function(){Jc.apply(this,arguments)};
_.e(S8T,Jc);S8T.prototype.getAssociations=function(){return[]};
S8T.prototype.getTypeName=function(){return"musicShare"};var d_Z=function(){Jc.apply(this,arguments)};
_.e(d_Z,Jc);
d_Z.prototype.getAssociations=function(){var f=[];this.delegate.musicLibraryStatusEntity&&f.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&f.push.apply(f,_.pS(this.delegate.artists));this.delegate.audioModeVersion&&f.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&f.push(this.delegate.videoModeVersion);this.delegate.userDetails&&f.push(this.delegate.userDetails);this.delegate.details&&f.push(this.delegate.details);this.delegate.albumRelease&&f.push(this.delegate.albumRelease);this.delegate.share&&
f.push(this.delegate.share);this.delegate.libraryEdit&&f.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&f.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&f.push(this.delegate.playbackPosition);this.delegate.lyrics&&f.push(this.delegate.lyrics);return[].concat(_.pS(new Set(f)))};
d_Z.prototype.getTypeName=function(){return"musicTrack"};
var jqo=function(){Jc.apply(this,arguments)};
_.e(jqo,Jc);jqo.prototype.getAssociations=function(){var f=[];this.delegate.parentTrack&&f.push(this.delegate.parentTrack);return[].concat(_.pS(new Set(f)))};
jqo.prototype.getTypeName=function(){return"musicTrackDetail"};
var sqv=function(){Jc.apply(this,arguments)};
_.e(sqv,Jc);sqv.prototype.getAssociations=function(){var f=[];this.delegate.parentTrack&&f.push(this.delegate.parentTrack);return[].concat(_.pS(new Set(f)))};
sqv.prototype.getTypeName=function(){return"musicTrackUserDetail"};var cs=new _.Ak("musicResponsiveListItemRenderer");var cFR=new _.Ak("addToPlaylistEndpoint");var Z39=new _.Ak("captionPickerEndpoint");var JHh=new _.Ak("suggestStats");var l6n=new _.Ak("backstageImageUploadEndpoint");var U_C=new _.Ak("createBackstagePostDialogEndpoint");_.eRo=new _.Ak("createCommentReplyDialogEndpoint");_.L4o=new _.Ak("updateCommentDialogEndpoint");_.x_n=new _.Ak("updateCommentReplyDialogEndpoint");var BSh=new _.Ak("menuEndpoint");var plr=new _.Ak("modalEndpoint");var zRg=new _.Ak("playlistEditorEndpoint");var F4H=new _.Ak("copyTextEndpoint");var rH9,K49;rH9=new _.Ak("shareEndpoint");K49=new _.Ak("shareEntityEndpoint");_.D_b=new _.Ak("shareEntityServiceEndpoint");_.KYH=new _.Ak("userFeedbackEndpoint");_.wI=new _.Ak("watchEndpoint");var d2e=new _.Ak("watchPlaylistEndpoint");var o3H=new _.Ak("addUpcomingEventReminderEndpoint");_.rC=new _.Ak("getCommentsFromInboxCommand");var n3g=new _.Ak("notificationOptOutEndpoint");var pwn=new _.Ak("recordNotificationInteractionsEndpoint");var QqZ=new _.Ak("removeUpcomingEventReminderEndpoint");var Ewb=new _.Ak("getDownloadActionCommand");_.uyT=new _.Ak("offlineOrchestrationActionCommand");var a6b=function(){Jc.apply(this,arguments)};
_.e(a6b,Jc);a6b.prototype.getAssociations=function(){return[]};
a6b.prototype.getTypeName=function(){return"captionTrack"};var Pph=function(){Jc.apply(this,arguments)};
_.e(Pph,Jc);Pph.prototype.getAssociations=function(){return[]};
Pph.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var GA_=function(){Jc.apply(this,arguments)};
_.e(GA_,Jc);GA_.prototype.getAssociations=function(){return[]};
GA_.prototype.getTypeName=function(){return"offlineVideoPolicy"};var CpZ=function(){Jc.apply(this,arguments)};
_.e(CpZ,Jc);CpZ.prototype.getAssociations=function(){return[]};
CpZ.prototype.getTypeName=function(){return"offlineVideoStreams"};var E3r=function(){Jc.apply(this,arguments)};
_.e(E3r,Jc);E3r.prototype.getAssociations=function(){var f=[];this.delegate.transfer&&f.push(this.delegate.transfer);this.delegate.adsPlaybackData&&f.push.apply(f,_.pS(this.delegate.adsPlaybackData));this.delegate.drmLicense&&f.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&f.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&f.push(this.delegate.videoDownloadContextEntity);return[].concat(_.pS(new Set(f)))};
E3r.prototype.getTypeName=function(){return"playbackData"};var NSZ=function(){Jc.apply(this,arguments)};
_.e(NSZ,Jc);NSZ.prototype.getAssociations=function(){return[]};
NSZ.prototype.getTypeName=function(){return"refresh"};var cHM=function(){Jc.apply(this,arguments)};
_.e(cHM,Jc);cHM.prototype.getAssociations=function(){var f=[];this.delegate.offlineVideoStreams&&f.push.apply(f,_.pS(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&f.push.apply(f,_.pS(this.delegate.captionTrack));return[].concat(_.pS(new Set(f)))};
cHM.prototype.getTypeName=function(){return"transfer"};var Xwv=function(){Jc.apply(this,arguments)};
_.e(Xwv,Jc);Xwv.prototype.getAssociations=function(){return[]};
Xwv.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var AH_=new _.Ak("showMoreDrawerCommand");var b3Z=new _.Ak("updateEngagementPanelContentCommand");var i3o=new _.Ak("getPdgBuyFlowCommand");var kAh=new _.Ak("liveChatPurchaseMessageEndpoint");var TSb=new _.Ak("openSuperStickerBuyFlowCommand");var ww_=new _.Ak("updatePdgFeatureEnablementCommand");var q8n=function(){Jc.apply(this,arguments)};
_.e(q8n,Jc);q8n.prototype.getAssociations=function(){return[]};
q8n.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var fkb=function(){Jc.apply(this,arguments)};
_.e(fkb,Jc);fkb.prototype.getAssociations=function(){return[]};
fkb.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.Hvh=new _.Ak("pdgCommentChipRenderer");_.vWh=new _.Ak("permissionRoleBottomBarRenderer");_.tAn=new _.Ak("updatePermissionRoleCommand");var MAZ=new _.Ak("prefetchWatchCommand");var hYo=new _.Ak("updatePlayerErrorMessageCommand");var pWT=new _.Ak("toggleCaptionsVisibilityCommand");_.RYb=new _.Ak("quickActionsViewModel");var VA_=new _.Ak("playerResponse");var ycg=new _.Ak("playlistRenderer");_.Ypb=new _.Ak("playlistVideoListRenderer");_.Kv=new _.Ak("playlistEditEndpoint");var mQ_=new _.Ak("createImagePollCommand");var $QC=new _.Ak("createQuizCommand");var W5h=new _.Ak("quizRenderer");var OvM=new _.Ak("uploadedVideoRenderer");var gWr=new _.Ak("decorateMessageEndpoint");var Ikg=new _.Ak("lpOfferCardOptionViewModel");var SpM=new _.Ak("sfvAudioItemPlaybackCommand");var dQo=function(){Jc.apply(this,arguments)};
_.e(dQo,Jc);dQo.prototype.getAssociations=function(){return[]};
dQo.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.Dk=new _.Ak("reelNonVideoContentEndpoint");_.zD=new _.Ak("reelWatchEndpoint");_.of=new _.Ak("reelItemRenderer");_.jfb=new _.Ak("reelMetapanelViewModel");_.sfg=new _.Ak("reelNonVideoContentRenderer");_.Zva=new _.Ak("reelPlayerOverlayRenderer");var JcH=new _.Ak("shortsLockupViewModel");var lkg=new _.Ak("sponsorButtonViewModel");var UQT=new _.Ak("reelItemWatchResponse");var eYT=new _.Ak("textBadgeRenderer");_.nv=new _.Ak("buttonRenderer");_.pv=new _.Ak("toggleButtonRenderer");var NxH=new _.Ak("switchButtonViewModel");_.L5_=new _.Ak("confirmDialogRenderer");var xQb;xQb=new _.Ak("menuRenderer");_.BCh=new _.Ak("menuFlexibleItemRenderer");var zY9=new _.Ak("pollRenderer");_.F59=new _.Ak("backgroundPromoRenderer");var K5v;_.rcg=new _.Ak("chipCloudRenderer");K5v=new _.Ak("chipCloudChipRenderer");var DQZ=new _.Ak("dropdownRenderer");var oWg=new _.Ak("gridVideoRenderer");_.nWg=new _.Ak("itemSectionRenderer");_.pdb=new _.Ak("messageRenderer");var Qfh=new _.Ak("sortFilterHeaderRenderer");_.QD=new _.Ak("videoRenderer");var udo=new _.Ak("resolveUrlCommandMetadata");var akh=function(){Jc.apply(this,arguments)};
_.e(akh,Jc);akh.prototype.getAssociations=function(){return[]};
akh.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.PPh=new _.Ak("getAnswerCommand");_.LG=new _.Ak("searchEndpoint");var G3n=new _.Ak("genAiRichTextViewModel");var CQ3=new _.Ak("overviewAnswerViewModel");var CPb=new _.Ak("videoOverviewViewModel");var EWo=new _.Ak("addToPlaylistServiceEndpoint");var NCr=new _.Ak("clearSearchHistoryEndpoint");var cco=new _.Ak("clearWatchHistoryEndpoint");var Xdg=new _.Ak("webSerializedServiceEndpointExtension");_.Aco=new _.Ak("createCommentEndpoint");var bvM=new _.Ak("createCommentReplyEndpoint");var ivh=new _.Ak("performCommentActionEndpoint");var k3h=new _.Ak("updateCommentEndpoint");var TCh=new _.Ak("updateCommentReplyEndpoint");_.uP=new _.Ak("createPlaylistServiceEndpoint");var wdh=new _.Ak("deletePlaylistEndpoint");var qpn=new _.Ak("deleteVideoEndpoint");var NJN=new _.Ak("getReportFormEndpoint");var f7C=new _.Ak("modifyChannelNotificationPreferenceEndpoint");var RxR;_.d3=new _.Ak("offlinePlaylistEndpoint");RxR={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 V1E;_.Sf=new _.Ak("offlineVideoEndpoint");V1E={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 HOh=new _.Ak("pingingEndpoint");_.vPM=new _.Ak("selectActiveIdentityEndpoint");var t0_=new _.Ak("setSettingEndpoint");var XuR=new _.Ak("undoFeedbackEndpoint");var M0h=new _.Ak("unsubscribeEndpoint");_.h4M=new _.Ak("updatedMetadataEndpoint");var R4T=function(){Jc.apply(this,arguments)};
_.e(R4T,Jc);R4T.prototype.getAssociations=function(){return[]};
R4T.prototype.getTypeName=function(){return"settingEntity"};_.V0v=new _.Ak("updateLocalAppSettingCommand");var yGn=new _.Ak("saveImageToDeviceEndpoint");var YIh=new _.Ak("shareImageCommand");var mIH=new _.Ak("sharingProviderDataCommand");var $IZ=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e($IZ,_.mL);var WET=[0,_.C8,-1];$IZ.prototype.JSC$12350_serializeBinary=DA_(WET);var OOr=_.JD(WET);var jjC=new _.Ak("userMentionSuggestionRenderer");var sj_=new _.Ak("liveChatTunnelCommand");var ZMM=new _.Ak("showSponsorshipsGiftOfferDialogCommand");var Jpv=new _.Ak("sponsorshipsScrollableShelfViewModel");var l5v=new _.Ak("updateUpcomingEventReminderButtonStateCommand");var UBH=new _.Ak("upcomingEventReminderButtonStateRenderer");var ePT=new _.Ak("subscribeEndpoint");var LHh=new _.Ak("registerTasksCommand");var xBa=new _.Ak("hideSnackbarCommand");var B4v=new _.Ak("showDialogCommand");_.U7=new _.Ak("showSheetCommand");var zPv=new _.Ak("showSnackbarCommand");var FHb=function(){Jc.apply(this,arguments)};
_.e(FHb,Jc);FHb.prototype.getAssociations=function(){return[]};
FHb.prototype.getTypeName=function(){return"chipEntity"};var rpr=function(){Jc.apply(this,arguments)};
_.e(rpr,Jc);rpr.prototype.getAssociations=function(){return[]};
rpr.prototype.getTypeName=function(){return"dismissState"};_.pT=new _.Ak("avatarViewModel");var KH_=new _.Ak("badgeViewModel");_.af=new _.Ak("buttonViewModel");_.Pd=new _.Ak("chipViewModel");var vBv=new _.Ak("collectionThumbnailViewModel");var DBT=new _.Ak("contentPreviewImageViewModel");var oiC=new _.Ak("decoratedAvatarViewModel");_.bIE=new _.Ak("engagementBarViewModel");_.nir=new _.Ak("imageBannerViewModel");var pHh=new _.Ak("lockupContentMetadataRowExtension");_.Qjo=new _.Ak("lockupMetadataViewModel");_.u9v=new _.Ak("lockupViewModel");var a5h=new _.Ak("avatarStackViewModel");_.Pqa=new _.Ak("contentMetadataViewModel");var GFn=function(){Jc.apply(this,arguments)};
_.e(GFn,Jc);GFn.prototype.getAssociations=function(){return[]};
GFn.prototype.getTypeName=function(){return"pageHeaderEntity"};_.Cqa=new _.Ak("pageHeaderViewModel");var Eio=new _.Ak("snackbarViewModel");var N4a=new _.Ak("thumbnailHoverOverlayToggleActionsViewModel");_.G3=new _.Ak("toggleButtonViewModel");var cpr=function(){Jc.apply(this,arguments)};
_.e(cpr,Jc);cpr.prototype.getAssociations=function(){return[]};
cpr.prototype.getTypeName=function(){return"votingEntity"};_.iIg=new _.Ak("votingViewModel");var XHb=new _.Ak("sectionHeaderViewModel");var ApM=new _.Ak("notifyDropdownOptionSelectedCommand");var jxs=new _.Ak("listViewModel");_.ef=new _.Ak("listItemViewModel");var Hwb=new _.Ak("toggleableListItemViewModel");var bMh=new _.Ak("dialogHeaderViewModel");var z65=new _.Ak("suspenseViewModel");var iMC=function(){Jc.apply(this,arguments)};
_.e(iMC,Jc);iMC.prototype.getAssociations=function(){return[]};
iMC.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var kFb=function(){Jc.apply(this,arguments)};
_.e(kFb,Jc);kFb.prototype.getAssociations=function(){return[]};
kFb.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var T4g=function(){Jc.apply(this,arguments)};
_.e(T4g,Jc);T4g.prototype.getAssociations=function(){return[]};
T4g.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.wHn=new _.Ak("transcriptSubmitCaptionCorrectionCommand");var qza=function(){Jc.apply(this,arguments)};
_.e(qza,Jc);qza.prototype.getAssociations=function(){return[]};
qza.prototype.getTypeName=function(){return"buttonEntity"};var UpR=new _.Ak("unpluggedStringRunImage");var fsb=new _.Ak("tabViewModel");var HWr=new _.Ak("tabbedViewModel");var vpM=function(){Jc.apply(this,arguments)};
_.e(vpM,Jc);vpM.prototype.getAssociations=function(){return[]};
vpM.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.t3n=new _.Ak("updateDescriptionAction");var M3C=new _.Ak("updateToggleButtonTextAction");_.h5M=new _.Ak("autoplaySwitchButtonRenderer");var rs;_.R5M=new _.Ak("multiMarkersPlayerBarRenderer");rs=new _.Ak("chapterRenderer");var V3M=new _.Ak("heatMarkerRenderer");var t9e=new _.Ak("heatmapRenderer");var y$M=new _.Ak("smartSkipPlayerScrimOverlayRenderer");var YLM=new _.Ak("timedMarkerDecorationRenderer");var nB3=new _.Ak("postWebToNativeMessageCommand");var ry=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(ry,_.mL);ry.prototype.getMethodName=function(){return _.L8(this,1)};var m8r=[0,_.C8,-2];ry.prototype.JSC$12370_serializeBinary=DA_(m8r);var $8C=_.s4(ry,m8r);var WJ_=new _.Ak("whitelistEditEndpoint");var OWr=new _.Ak("clearUrlParamCommand");var gpb=new _.Ak("commerceActionCommand");_.Ish=new _.Ak("getPaymentInstrumentsParamsCommand");var SLM=new _.Ak("getPaymentsClientTokenCommand");var d89=new _.Ak("googlePaymentBillingCommand");var jMa=new _.Ak("googlePaymentPurchaseManagerCommand");_.sMg=new _.Ak("logGtmCommand");var ZW_=new _.Ak("updateCardItemOnClickCommand");_.J$v=new _.Ak("ypcPauseSubscriptionCommand");_.lsr=new _.Ak("ypcResumeSubscriptionCommand");var U8o=function(){Jc.apply(this,arguments)};
_.e(U8o,Jc);U8o.prototype.getAssociations=function(){return[]};
U8o.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var e5n=function(){Jc.apply(this,arguments)};
_.e(e5n,Jc);e5n.prototype.getAssociations=function(){return[]};
e5n.prototype.getTypeName=function(){return"commerceCartListEntity"};var LJZ=function(){Jc.apply(this,arguments)};
_.e(LJZ,Jc);LJZ.prototype.getAssociations=function(){return[]};
LJZ.prototype.getTypeName=function(){return"iconBadgeEntity"};var x8M=function(){Jc.apply(this,arguments)};
_.e(x8M,Jc);x8M.prototype.getAssociations=function(){return[]};
x8M.prototype.getTypeName=function(){return"pdpStateEntity"};var BtT=function(){Jc.apply(this,arguments)};
_.e(BtT,Jc);BtT.prototype.getAssociations=function(){return[]};
BtT.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var x5B=new _.Ak("ypcOffersEndpoint");var z5g=new _.Ak("cardItemRenderer"),FJb=new _.Ak("cardItemTextRenderer");var r$C=new _.Ak("commerceCartItemQuantityPickerRenderer");var KJC=new _.Ak("linkCardRenderer");var ztH=new _.Ak("quantityIncrementerButtonViewModel");var D8g=new _.Ak("quantityIncrementerViewModel");var opv=new _.Ak("themedImageViewModel");_.npg=new _.Ak("ypcCancelRecurrenceEndpoint");var pp_=new _.Ak("ypcCompleteTransactionEndpoint");_.QMv=new _.Ak("ypcGetCartEndpoint");_.iF=new _.Ak("ypcGetOffersEndpoint");_.Cv=new _.Ak("ypcHandleTransactionEndpoint");var uoo=new _.Ak("ypcLogWalletAnalyticDataEndpoint");_.aso=new _.Ak("ypcRedeemCodeEndpoint");var PMM=new _.Ak("ypcUpdateFopEndpoint");fv(q_(1),TA(4));J5b((new MessageChannel).port2);var G$M=function(){this.register=new Map},N_e=function(f,H,v){f=f+"_"+H;
Ep.register.has(f)?v=Ep.register.get(f):(v=v(),Ep.register.set(f,v));return v},CMC=function(f){f=_.V(f.register.values());
for(var H=f.next();!H.done;H=f.next())_.hQ(H.value,"ABORTED")};
G$M.prototype.clear=function(){CMC(this);this.register.clear()};
var Ep=new G$M;var Ugv=Date.now().toString();var xgR=Lcg();var n4g={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 EpZ,pP;EpZ=1;pP=function(f){this.veData=f};
_.zK=function(f){return new pP({trackingParams:f})};
_.$$=function(f,H,v,t,M,h){var y=EpZ++;return new pP({veType:f,veCounter:y,elementIndex:v,dataElement:H,youtubeData:t,jspbYoutubeData:M,loggingDirectives:h})};
_.R=pP.prototype;
_.R.getAsJson=function(){var f={};this.veData.trackingParams!==void 0?f.trackingParams=this.veData.trackingParams:(f.veType=this.veData.veType,this.veData.veCounter!==void 0&&(f.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(f.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(f.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(f.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(f.isCounterfactual=!0);
return f};
_.R.getAsJspb=function(){var f=new c7h;this.veData.trackingParams!==void 0?f.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.rP(f,2,this.veData.veType),this.veData.veCounter!==void 0&&_.rP(f,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.rP(f,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.O1(f,5,!0));if(this.veData.dataElement!==void 0){var H=this.veData.dataElement.getAsJspb();_.eV(f,7,H)}this.veData.youtubeData!==void 0&&_.eV(f,8,this.veData.jspbYoutubeData);
return f};
_.R.toString=function(){return JSON.stringify(this.getAsJson())};
_.R.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.R.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.qJ("yt_logging_screen.getRootVeType",Kce);_.qJ("yt_logging_screen.getCurrentCsn",_.uy);_.qJ("yt_logging_screen.getCttAuthInfo",aW);_.qJ("yt_logging_screen.setCurrentScreen",_.P7);var NtZ=function(){this.events=new Map},c$r=function(f){var H=[];
f=_.V(f.events.values());for(var v=f.next();!v.done;v=f.next())H.push(v.value);return H};
NtZ.prototype.clear=function(){this.events.clear()};var A$T=function(){this.logTransport=new Xpa;this.loggedEventRegister=new NtZ;this.unloggedEventRegister=new NtZ;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12407_flushTimer=new _.ye(this.flushInterval);this.JSC$12407_flushTimer.listen("tick",this.flush,!1,this)};
A$T.prototype.flush=function(){if(this.eventsCount){var f={loggedEvents:c$r(this.loggedEventRegister),unloggedEvents:c$r(this.unloggedEventRegister)};if(_.J("export_player_version_to_ytconfig")){var H;(H=_.a8("PLAYER_CLIENT_VERSION"))?(H=H.split("-")[0].replace(/\./g,""),H=isNaN(Number(H))?"0":H):H="";var v=_.a8("PLAYER_CLIENT_VERSION");if(v){v=v.split("-");var t="";v.length>1&&(t=v[v.length-1]);v=lBB(t.startsWith("canary_experiment")?"canary":t.startsWith("canary_control")?"control":"none")}else v=
"CLIENT_CANARY_STATE_UNKNOWN";f.dimensions={playerClientVersion:H,playerCanaryState:v}}this.logTransport.flush(f);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12407_flushTimer.enabled&&this.JSC$12407_flushTimer.stop()}};
var bWo=function(f){NQ==null&&(NQ=new A$T);var H=NQ;var v=H.loggedEventRegister;f.dimensions=f.dimensions||{};f.dimensions.csn=_.uy()||"";var t=uQe(f.dimensions).join(";");if(f.records!=null)if(v.events.has(t)){var M;(M=v.events.get(t).records)==null||M.push.apply(M,_.pS(f.records))}else v.events.set(t,f);H.JSC$12407_flushTimer.enabled||H.JSC$12407_flushTimer.start();H.eventsCount++;H.eventsCount>=100&&H.flush()};var Xpa=function(){};
Xpa.prototype.flush=function(f,H){_.J("enable_client_sli_logging")&&_.Kb("sliEventBatch",f,{sendIsolatedPayload:!!H})};var NQ;var k$H;k$H=function(f){var H=iW_;f=f===void 0?{}:f;H=H.name;var v=E4b("SUCCESS");bWo({dimensions:f,records:[{name:H,state:"SLI_STATE_END",status:v}]})};
_.cAE=function(f,H,v,t){this.name=f;this.sliId=H;this.timeoutMs=v;this.statusOnTimeout=t;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.cAE.prototype.getId=function(){return this.sliId};
_.MN=function(f,H){H=H===void 0?{}:H;f.ongoing||(f.ongoing=!0,f.dimensions=H,f.logSliId=xlZ(),bWo({dimensions:f.dimensions,records:[{name:f.name,state:"SLI_STATE_START",sliId:f.logSliId}]}),f.timeoutMs>0&&(f.timeoutHandle=setTimeout(function(){_.hQ(f,f.statusOnTimeout)},f.timeoutMs)))};
_.hQ=function(f,H){f.ongoing&&(f.timeoutMs>0&&clearTimeout(f.timeoutHandle),f.ongoing=!1,H={dimensions:f.dimensions,records:[{name:f.name,status:E4b(H),state:"SLI_STATE_END",sliId:f.logSliId}]},Ep.register.delete(f.name+"_"+f.sliId),bWo(H))};var iW_=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var Tt9=function(){Jc.apply(this,arguments)};
_.e(Tt9,Jc);Tt9.prototype.getAssociations=function(){return[]};
Tt9.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var RkR=new _.Ak("highlightTextDecoratorColorMapExtension");var MoT=new _.Ak("styleRunColorMapExtension");var wDr=_.EH(["data-"]),HKN={};var thT={};var cd=function(f){this.wrappedPromise_=f===void 0?null:f;this.state_=0;this.JSC$12439_value_=null};
cd.prototype.then=function(f,H,v){return this.wrappedPromise_?this.wrappedPromise_.then(f,H,v):this.state_===1&&f?(f=f.call(v,this.JSC$12439_value_))&&typeof f.then==="function"?f:_.Xd(f):this.state_===2&&H?(f=H.call(v,this.JSC$12439_value_))&&typeof f.then==="function"?f:_.wph(f):this};
cd.prototype.getValue=function(){return this.JSC$12439_value_};
cd.prototype.isRejected=function(){return this.state_==2};
acn(cd);_.wph=function(f){var H=new cd;f=f===void 0?null:f;H.state_=2;H.JSC$12439_value_=f===void 0?null:f;return H};
_.Xd=function(f){var H=new cd;f=f===void 0?null:f;H.state_=1;H.JSC$12439_value_=f===void 0?null:f;return H};var jEg="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var qLb=["load","abort","error"],Ac=function(f,H,v){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12459_maxAspectRatio_=f;this.disableAnimation_=H===void 0?!1:H;this.disableExifRotation_=v===void 0?!1:v;this.JSC$12459_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12459_reject_=this.resolve_=null};
Ac.prototype.transform=function(f){var H=this;this.mime_=f.type;Ch(XSa(f),this.dataUrlRead_,this.readError_,this);Ch(cto(f.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(v,t){H.resolve_=v;H.JSC$12459_reject_=t})};
Ac.prototype.dataUrlRead_=function(f){this.dataUrl_=f;this.angle_!=null&&fug(this)};
Ac.prototype.exifRead_=function(f){if(this.disableExifRotation_)this.angle_=0;else{a:if(f=new DataView(f),f.byteLength<2||f.getUint16(0)!==65496)f=-2;else{for(var H=2,v=f.byteLength;H<v;){var t=f.getUint16(H),M=f.getUint16(H+2);if(t===65505){H+=4;t=f.getUint32(H);M=f.getUint16(H+4);if(t!==1165519206||M!==0)break;H+=6;t=f.getUint16(H)===18761;H+=f.getUint32(H+4,t);M=f.getUint16(H,t);H+=2;for(var h=0;h<M;h++){if(f.getUint16(H,t)===274){H+=8;f=f.getUint16(H,t);break a}H+=12}}else if(t>>8!==255)break;
else H+=M+2}f=-1}switch(f){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&&fug(this)};
Ac.prototype.readError_=function(){this.JSC$12459_reject_()};
var fug=function(f){x6(f.JSC$12459_image_,qLb,f.completeTransform_,!1,f);f.JSC$12459_image_.src=_.Co(f.dataUrl_).toString();f.JSC$12459_image_.src!=G1.toString()&&f.JSC$12459_image_.src.substr(0,11)==="data:image/"||f.JSC$12459_reject_()};
Ac.prototype.completeTransform_=function(){if(this.JSC$12459_image_.src!=G1.toString()){var f=_.Co(this.dataUrl_),H=this.JSC$12459_image_.naturalHeight?this.JSC$12459_image_.naturalWidth/this.JSC$12459_image_.naturalHeight:null;this.invalidAspectRatio=H>this.JSC$12459_maxAspectRatio_||H<1/this.JSC$12459_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var v=this.JSC$12459_image_.naturalWidth,t=this.JSC$12459_image_.naturalHeight,M=H=0,h=this.JSC$12459_image_.naturalHeight?this.JSC$12459_image_.naturalWidth/
this.JSC$12459_image_.naturalHeight:null;h>this.JSC$12459_maxAspectRatio_?(v=this.JSC$12459_maxAspectRatio_*t,H=(v-this.JSC$12459_image_.naturalWidth)/2,this.cropped=!0):h<1/this.JSC$12459_maxAspectRatio_?(t=this.JSC$12459_maxAspectRatio_*v,M=(t-this.JSC$12459_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)h=v,v=t,t=h,h=H,H=M,M=h;switch(this.angle_){case 90:M-=v;break;case 180:H-=v;M-=t;break;case 270:H-=
t}this.cropped||this.angle_%360!==0?(f=document.createElement("canvas"),f.width=v||1,f.height=t||1,this.JSC$12459_image_.naturalWidth&&this.JSC$12459_image_.naturalHeight&&(v=f.getContext("2d"),v.rotate(Math.PI/180*this.angle_),v.drawImage(this.JSC$12459_image_,H,M,this.JSC$12459_image_.naturalWidth,this.JSC$12459_image_.naturalHeight)),this.transformedData=_.Co(f.toDataURL(this.mime_))):this.transformedData=f}else this.transformedData=f;this.resolve_(this)}};var bP=function(f,H){_.$R.call(this,f);this.value=H};
_.e(bP,_.$R);
var iP=function(f,H,v,t,M,h,y){y=y===void 0?!1:y;_.Sg.call(this);var m=this;this.JSC$12464_url_=f;this.channelId_=H;this.maxFileSizeMb_=v;this.JSC$12464_maxAspectRatio_=t;this.dropZoneEl_=M;this.rejectInvalidAspectRatio_=y;this.selectButtonEl_=h;this.JSC$12464_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new yD(this.dropZoneEl_);this.selectOverlay_=new YW(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12464_image_=this.transfer_=null;this.handler_=new _.Y1(this);_.jz(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(h,"click",function(){m.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.e(iP,_.Sg);iP.prototype.disposeInternal=function(){for(var f=this.selectButtonEl_.nextSibling;f&&f.parentNode&&f.tagName=="INPUT";)f.parentNode.removeChild(f),f=this.selectButtonEl_.nextSibling;this.cancel();_.Sg.prototype.disposeInternal.call(this)};
iP.prototype.uploadPromise=function(){if(this.JSC$12464_image_==null)return null;this.uploadPromise_||Hm_(this);return this.uploadPromise_};
iP.prototype.cancel=function(){vIH(this);this.JSC$12464_image_=null};
var vIH=function(f){f.transfer_&&f.transfer_.cancel();f.transfer_=null;f.uploadPromise_=null;f.resolve_=null;f.JSC$12464_reject_=null},Hm_=function(f){vIH(f);
f.transfer_=_.mtC(f.JSC$12464_url_,{"X-YouTube-ChannelId":f.channelId_},f.JSC$12464_image_);f.handler_.listenOnce(f.transfer_,"l",f.JSC$12466_onUploadComplete_);f.handler_.listenOnce(f.transfer_,"n",f.onUploadError_);f.transfer_.run();f.uploadPromise_=new Promise(function(H,v){f.resolve_=H;f.JSC$12464_reject_=v})};
_.R=iP.prototype;_.R.onChange_=function(f){f.files.length&&(this.JSC$12464_image_=f.files[0],this.JSC$12464_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12464_image_=null,this.dispatchEvent(new bP("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(Hm_(this),(new Ac(this.JSC$12464_maxAspectRatio_)).transform(this.JSC$12464_image_).then((0,_.FH)(this.onPreview_,this),(0,_.FH)(this.onPreviewError_,this))))};
_.R.onPreview_=function(f){if(f.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12464_image_=null),this.dispatchEvent(new bP("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;f.cropped&&this.dispatchEvent(new bP("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new bP("yt.comments.ImageUploadOverlay.CHANGE_EVENT",f.transformedData))};
_.R.onPreviewError_=function(){this.JSC$12464_image_=null;this.dispatchEvent(new bP("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.R.onHover_=function(f){f.stopPropagation();f.preventDefault();if(f.type==="dragover")f=!0;else if(f.type==="dragleave")f=!1;else return;this.dispatchEvent(new bP("yt.comments.ImageUploadOverlay.HOVER_EVENT",f))};
_.R.JSC$12466_onUploadComplete_=function(){var f=(0,_.YZh)(this.transfer_.getResponseText());this.resolve_(f.encryptedBlobId)};
_.R.onUploadError_=function(){this.JSC$12464_reject_();vIH(this)};var t5T=function(f){f=f||{};var H={},v={};this.url=f.url||"";this.args=f.args||_.QA.clone(H);this.assets=f.assets||{};this.attrs=f.attrs||_.QA.clone(v);this.fallback=f.fallback||null;this.fallbackMessage=f.fallbackMessage||null;this.html5=!!f.html5;this.disable=f.disable||{};this.loaded=!!f.loaded;this.messages=f.messages||{}};
t5T.prototype.clone=function(){var f=new t5T,H;for(H in this)if(this.hasOwnProperty(H)){var v=this[H];_.qT(v)=="object"?f[H]=_.QA.clone(v):f[H]=v}return f};var M5T,hB_,RBH,Ni,y_h,YhT,mWM,$Wh,WyM,Omg,gIg,Iun,Shv,dWZ,jiv,sih,Zma,J_g,luh,UWa,eBr,Ly9,xWT,B$C,zBr,Fya,r_M,Kyh,DWH,NOv,oIC,nIv,pGh,Qig,uiM,auv,Pmv,Glr,CmT,EIb,Eqe,N$b,c_o,XGv,A_h,bma,imh,klH,T$H,wGh,qh_,ffv,HXg,v8o,tUa,MUT,kW,hfn,Rfn,VU_,y3h,YsZ,m2T,$29,Wnb,OXg,g8v,Ifv,Sso,d2a,jtT,stC,ZXa,J39,lfg,U2T,GwE,ef9,LnT,x2b,BYT,zf9,Fno,r3o,Knr,D2o,o8C,n8g,p5b,QtH,uFg,afr,P5C,GQH,C5h,E8H,NYg,c3a,X5a,A3M,bXr,iX_;M5T=["account/accounts_list"];hB_=["acknowledge_channel_tou_strike"];RBH=["notification/add_upcoming_event_reminder"];
_.V5a=["att/get"];Ni=["browse","music/browse","unplugged/browse"];y_h=["channel/claim_legacy_youtube_channel"];YhT=["history/clear_search_history"];mWM=["history/clear_watch_history"];$Wh=["comment/perform_comment_action"];WyM=["comment/get_comment_replies"];Omg=["ypc/commerce_action"];gIg=["backstage/create_post"];Iun=["live/create_broadcast"];Shv=["channel/create_channel"];dWZ=["comment/create_comment_reply"];jiv=["comment/create_comment"];sih=["live_chat/create_poll"];Zma=["playlist/create"];
J_g=["decorate_message"];luh=["live_chat/delete_message"];UWa=["playlist/delete"];eBr=["video/delete"];Ly9=["like/dislike"];xWT=["dismissal/dismiss"];B$C=["flag/flag"];zBr=["flow"];Fya=["account/account_menu"];r_M=["playlist/get_add_to_playlist"];Kyh=["get_answer"];DWH=["channel/get_channel_creation_form"];NOv=["offline/get_download_action"];oIC=["kids/get_kids_blocklist_picker"];nIv=["live_chat/get_item_context_menu"];pGh=["live_chat/get_live_chat_message_buy_flow"];Qig=["live_chat/get_live_chat_replay"];
uiM=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];auv=["live_chat/get_live_chat_super_sticker_buy_flow"];Pmv=["notification/get_notification_menu"];Glr=["playlist/get_settings_editor"];CmT=["backstage/get_post_video_preview"];EIb=["account/get_profile_card"];Eqe=["share/get_share_panel"];N$b=["share/get_sharing_provider_data"];c_o=["get_survey"];XGv=["notification/get_unseen_count"];A_h=["get_user_mention_suggestions"];bma=["get_watch"];imh=["guide"];
klH=["feedback"];T$H=["kids/update_blacklist"];wGh=["like/like"];qh_=["live_chat/live_chat_action"];ffv=["live_chat/manage_user"];HXg=["video_manager/metadata_update"];v8o=["live_chat/moderate"];tUa=["notification/modify_channel_preference"];MUT=["notification/opt_out"];kW=["get_panel","get_posts_by_host_panel"];hfn=["player"];Rfn=["browse/edit_playlist"];VU_=["notification/record_interactions"];y3h=["reel/reel_item_watch"];YsZ=["reel/reel_watch_sequence"];m2T=["like/removelike"];$29=["notification/remove_upcoming_event_reminder"];
Wnb=["flag/get_form"];OXg=["miniapp/report_value"];g8v=["navigation/resolve_url"];Ifv=["channel/reveal_business_email"];Sso=["in_video/search"];d2a=["search","sfv/search","unplugged/search"];jtT=["live_chat/send_message"];stC=["live_chat/send_live_chat_vote"];ZXa=["account/set_setting"];J39=["submit_caption_correction"];lfg=["submit_form"];U2T=["subscription/subscribe"];GwE=["get_transcript"];ef9=["resolve_location","unplugged/resolve_location"];LnT=["subscription/unsubscribe"];x2b=["backstage/update_post"];
BYT=["channel_edit/update_channel_page_settings"];zf9=["comment/update_comment_reply"];Fno=["comment/update_comment"];r3o=["comment/update_comments_settings"];Knr=["creator/update_creator_channel"];D2o=["pdg/update_enablement"];o8C=["updated_metadata"];n8g=["channel_edit/validate_channel_handle"];p5b=["verify_age"];QtH=["next","unplugged/watch_next"];uFg=["whitelist/edit"];afr=["ypc/cancel_recurrence"];P5C=["ypc/complete_transaction"];GQH=["ypc/get_cart"];C5h=["ypc/get_fix_instrument_params"];
E8H=["ypc/get_offers"];NYg=["ypc/get_payment_instruments_params"];c3a=["ypc/handle_transaction"];X5a=["ypc/log_payment_server_analytics"];A3M=["ypc/pause_subscription"];bXr=["ypc/redeem_code"];iX_=["ypc/resume_subscription"];var kQb=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,
21759,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,
89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,
72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,
211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,
136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,271884,222932,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,
195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,
149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,233634,265810,194770,195350,
195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,
68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,
271622,271813,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,
47896,122629,186204,222824,271673,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,273646,273647,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,
96368,67374,48992,146176,176105,233035,49956,267645,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,
93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,273232,82039];var sj=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.qJ("yt.msgs_",sj);var T3=new _.iN("ACTION_ROUTER_TOKEN");_.wC=function(){this.autonavState_=_.J("kevlar_is_pupi_enabled")?2:rqR()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.wC.prototype.getState=function(){return this.autonavState_};
_.wC.prototype.pause=function(f){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=f):this.autonavState_==1&&(this.disabledAutonavPauseReason_=f)};
_.wC.prototype.setState=function(f,H,v){H&&(this.autoplayChangedByUser=!0);H=this.autonavState_===3||f===3;this.autonavState_!=f&&(this.autonavState_=f,f!=3&&_.KAr(f==2),f=_.J("kevlar_is_pupi_enabled")?v||H:!0,_.A7.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,f,v))};
_.wC.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.ws(_.wC);var qQ=function(){this.hasRun=!1};var fO={},Eag=(fO.auto_search="LATENCY_ACTION_AUTO_SEARCH",fO.ad_to_ad="LATENCY_ACTION_AD_TO_AD",fO.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",fO.app_startup="LATENCY_ACTION_APP_STARTUP",fO.browse="LATENCY_ACTION_BROWSE",fO.cast_splash="LATENCY_ACTION_CAST_SPLASH",fO.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",fO.channels="LATENCY_ACTION_CHANNELS",fO.chips="LATENCY_ACTION_CHIPS",fO.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",fO.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
fO.editor="LATENCY_ACTION_EDITOR",fO.embed="LATENCY_ACTION_EMBED",fO.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",fO.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",fO.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",fO.explore="LATENCY_ACTION_EXPLORE",fO.favorites="LATENCY_ACTION_FAVORITES",fO.home="LATENCY_ACTION_HOME",fO.inboarding="LATENCY_ACTION_INBOARDING",fO.landing="LATENCY_ACTION_LANDING",fO.learning="LATENCY_ACTION_LEARNING",
fO.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",fO.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",fO.library="LATENCY_ACTION_LIBRARY",fO.live="LATENCY_ACTION_LIVE",fO.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",fO.management="LATENCY_ACTION_MANAGEMENT",fO.mini_app="LATENCY_ACTION_MINI_APP_PLAY",fO.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",fO.onboarding="LATENCY_ACTION_ONBOARDING",fO.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
fO.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",fO.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",fO.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",fO.prebuffer="LATENCY_ACTION_PREBUFFER",fO.prefetch="LATENCY_ACTION_PREFETCH",fO.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",fO.profile_switcher="LATENCY_ACTION_LOGIN",fO.projects="LATENCY_ACTION_PROJECTS",fO.reel_watch="LATENCY_ACTION_REEL_WATCH",fO.results="LATENCY_ACTION_RESULTS",fO.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
fO.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",fO.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",fO.review="LATENCY_ACTION_REVIEW",fO.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",fO.search_ui="LATENCY_ACTION_SEARCH_UI",fO.search_suggest="LATENCY_ACTION_SUGGEST",fO.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",fO.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",fO.seek="LATENCY_ACTION_PLAYER_SEEK",fO.settings="LATENCY_ACTION_SETTINGS",fO.store="LATENCY_ACTION_STORE",
fO.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",fO.tenx="LATENCY_ACTION_TENX",fO.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",fO.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",fO.watch="LATENCY_ACTION_WATCH",fO.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",fO["watch,watch7"]="LATENCY_ACTION_WATCH",fO["watch,watch7_html5"]="LATENCY_ACTION_WATCH",fO["watch,watch7ad"]="LATENCY_ACTION_WATCH",fO["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",fO.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
fO.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",fO.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",fO.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",fO.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",fO.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",fO.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",fO.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",fO),MHR=0;var m_N=function(f,H){ZB.call(this,1,arguments);this.timer=H};
_.e(m_N,ZB);var Y8v=new WFs("aft-recorded",m_N);var Aq_=_.Mr.ytLoggingGelSequenceIdObj_||{};_.qJ("ytLoggingGelSequenceIdObj_",Aq_);var HL=_.Mr.ytLoggingLatencyUsageStats_||{};_.qJ("ytLoggingLatencyUsageStats_",HL);var vL=function(){this.cleanupJob=0},ksr=function(){vL.instance||(vL.instance=new vL);
return vL.instance};
_.R=vL.prototype;_.R.baseline=function(f,H,v){tG(this,"baseline_"+f)||_.Kb("latencyActionBaselined",{clientActionNonce:f},{timestamp:H,cttAuthInfo:v})};
_.R.tick=function(f,H,v,t){tG(this,"tick_"+f+"_"+H)||_.Kb("latencyActionTicked",{tickName:f,clientActionNonce:H},{timestamp:v,cttAuthInfo:t})};
_.R.info=function(f,H,v){var t=Object.keys(f).join("");tG(this,"info_"+t+"_"+H)||(f=Object.assign({},f),f.clientActionNonce=H,_.Kb("latencyActionInfo",f,{cttAuthInfo:v}))};
_.R.jspbInfo=function(f,H,v){for(var t="",M=0;M<aF(f).length;M++)aF(f)[M]!==void 0&&(t=M===0?t.concat(""+M):t.concat("_"+M));tG(this,"info_"+t+"_"+H)||(_.rr(f,2,H),H={cttAuthInfo:v},v=_.J("jspb_sparse_encoded_pivot")?new eN([{}]):new eN,_.Lo(v,7,Ra_,f),bKR("latencyActionInfo",v,H))};
_.R.span=function(f,H,v){var t=Object.keys(f).join("");tG(this,"span_"+t+"_"+H)||(f.clientActionNonce=H,_.Kb("latencyActionSpan",f,{cttAuthInfo:v}))};
var tG=function(f,H){HL[H]=HL[H]||{count:0};var v=HL[H];v.count++;v.time=(0,_.ta)();f.cleanupJob||(f.cleanupJob=_.Lb(_.nN,function(){var t=(0,_.ta)(),M;for(M in HL)HL[M]&&t-HL[M].time>6E4&&delete HL[M];f&&(f.cleanupJob=0)},5E3));
return v.count>5?(v.count===6&&Math.random()*1E5<1&&(v=new _.e$("CSI data exceeded logging limit with key",H.split("_")),H.indexOf("plev")>=0||_.pb(v)),!0):!1};var TY9,w5_;TY9=window;w5_=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.zi=TY9.performance||TY9.mozPerformance||TY9.msPerformance||TY9.webkitPerformance||new w5_;var yHB=!1,wtb=!1,$_T=(0,_.FH)(_.zi.clearResourceTimings||_.zi.webkitClearResourceTimings||_.zi.mozClearResourceTimings||_.zi.msClearResourceTimings||_.zi.oClearResourceTimings||_.gQ,_.zi);var qsv=window;qsv.ytcsi&&(qsv.ytcsi.infoGel=_.nQ,qsv.ytcsi.tick=_.u0);var l63=function(f){ZB.call(this,1,arguments);this.csn=f};
_.e(l63,ZB);var duH=new WFs("screen-created",l63),a65=[],JHB=uyr,Pp_=0,Ej=new Map,U_H=new Map,eRR=new Map;var lSN=Symbol("vf"),fY=new WeakMap;var MI=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},Lu=function(){MI.instance||(MI.instance=new MI);
return MI.instance};
_.R=MI.prototype;_.R.setClient=function(f){this.client=f};
_.R.JSC$12545_newScreen=function(){this.clear();this.csn=_.uy()};
_.R.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.R.reportShown=function(f,H,v){var t=this.JSC$12545_getTrackingParams(f),M=f.visualElement?f.visualElement:t;H=this.shownElements.has(M);var h=this.visibleState.get(M);this.shownElements.add(M);this.visibleState.set(M,!0);f.impressionLog&&!H&&f.impressionLog();if(t||f.visualElement)if(v=fja(this,f,v))if(M=H5C(this,f),hG(this,f)||M){t=f.visualElement?f.visualElement:_.zK(t);var y=f.interactionLoggingClientData;M||H?hG(this,f)&4?h||D_5(this.client,v,t,y):hG(this,f)&1&&!H&&F4b(this.client,v,t,y):F4b(this.client,
v,t,y)}};
_.R.reportHidden=function(f,H,v){var t=this.JSC$12545_getTrackingParams(f),M=f.visualElement?f.visualElement:t;H=this.hiddenElements.has(M);var h=this.visibleState.get(M);this.hiddenElements.add(M);this.visibleState.set(M,!1);if(h===!1)return!0;if(!t&&!f.visualElement)return!1;v=fja(this,f,v);if(!v||!hG(this,f)&&H5C(this,f))return!1;t=f.visualElement?f.visualElement:_.zK(t);hG(this,f)&8?o3b(this.client,v,t):hG(this,f)&2&&!H&&(f=this.client,H=CQ({cttAuthInfo:aW(v)||void 0},v),t={csn:v,ve:t.getAsJson(),
eventType:2},v==="UNDEFINED_CSN"?cV("visualElementHidden",H,t):f?F7("visualElementHidden",t,f,H):_.Kb("visualElementHidden",t,H));return!0};
_.R.JSC$12545_getTrackingParams=function(f){var H=this.getData(f),v,t;if(_.J("il_use_view_model_logging_context")&&(H==null?0:(v=H.context)==null?0:(t=v.loggingContext)==null?0:t.loggingDirectives))return H.context.loggingContext.loggingDirectives.trackingParams||"";var M,h;if(H==null?0:(M=H.rendererContext)==null?0:(h=M.loggingContext)==null?0:h.loggingDirectives)return H.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(H==null?0:H.loggingDirectives)return H.loggingDirectives.trackingParams||
"";var y;return((y=f.veContainer)==null?0:y.trackingParams)?f.veContainer.trackingParams:(H==null?void 0:H.trackingParams)||""};
_.R.JSC$12545_elementShouldLogGesture=function(f,H){f=this.getData(f);return!!((Math.floor(Number(f&&f.loggingDirectives&&f.loggingDirectives.gestures&&f.loggingDirectives.gestures.types||""))||0)&H)};
_.R.JSC$12545_getNearestParentVe=function(f){var H=this.JSC$12545_getTrackingParams(f);return f.visualElement?f.visualElement:H?_.zK(H):f.parentElement?this.JSC$12545_getNearestParentVe(f.parentElement):null};
var fja=function(f,H,v){var t=_.uy(v);return f.csn===null||t===f.csn||v?t:(f=new _.e$("VisibilityLogger called before newScreen",{caller:H.tagName,previous_csn:f.csn,current_csn:t}),_.pb(f),null)};
MI.prototype.getData=function(f){var H,v=f.data||((H=f.props)==null?void 0:H.data);if(!v||f.isWebComponentWrapper){var t;v=(t=fY.get(f))==null?void 0:t[lSN]}return v};
var H5C=function(f,H){var v;return!((v=f.getData(H))==null||!v.loggingDirectives)},hG=function(f,H){f=f.getData(H);
return Math.floor(Number(f&&f.loggingDirectives&&f.loggingDirectives.visibility&&f.loggingDirectives.visibility.types||""))||1};var RX;RX=function(){};
_.JV=function(){RX.instance||(RX.instance=new RX);return RX.instance};
RX.prototype.setClient=function(f){_.Cc(Lu().setClient).bind(Lu())(f)};
_.vDh=function(){_.JV();_.Cc(Lu().JSC$12545_newScreen).bind(Lu())()};
RX.prototype.clear=function(){_.Cc(Lu().clear).bind(Lu())()};
RX.prototype.reportShown=function(f,H,v){_.Cc(Lu().reportShown).bind(Lu())(f,H,v)};
RX.prototype.reportHidden=function(f,H,v){return _.Cc(Lu().reportHidden).bind(Lu())(f,H,v)};
var h_H=function(f,H){return _.Cc(Lu().JSC$12545_getTrackingParams).bind(Lu())(H)},UPR=function(f,H){return _.Cc(Lu().JSC$12545_getNearestParentVe).bind(Lu())(H)};var V8,tY9;V8=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};
_.UV=function(){V8.instance||(V8.instance=new V8);return V8.instance};
V8.prototype.setClient=function(f){this.client=f};
tY9=function(f,H,v){v=v===void 0?{}:v;_.Cc(function(){var t,M,h,y=((t=_.U(H==null?void 0:H.commandMetadata,_.jG))==null?void 0:t.rootVe)||((M=_.U(H==null?void 0:H.commandMetadata,AA_))==null?void 0:(h=M.screenVisualElement)==null?void 0:h.uiType);if(y){t=_.U(H==null?void 0:H.commandMetadata,udo);if(t==null?0:t.parentTrackingParams){var m=_.zK(t.parentTrackingParams);if(t.parentCsn)var W=t.parentCsn}else v.clickedVisualElement?m=v.clickedVisualElement:H.clickTrackingParams&&(m=_.zK(H.clickTrackingParams));
a:{t=_.U(H,_.wI);M=_.U(H,d2e);if(t){if(M=DLb(t,"VIDEO")){t={token:M,videoId:t.videoId};break a}}else if(M&&(t=DLb(M,"PLAYLIST"))){t={token:t,playlistId:M.playlistId};break a}t=void 0}v=Object.assign({},{cttAuthInfo:t,parentCsn:W},v);if(_.J("expectation_logging")){var I;v.loggingExpectations=((I=_.U(H==null?void 0:H.commandMetadata,AA_))==null?void 0:I.loggingExpectations)||void 0}_.y8(f,y,m,v)}else _.pb(new _.e$("Error: Trying to create a new screen without a rootVeType",H))})()};
_.y8=function(f,H,v,t){t=t===void 0?{}:t;_.Cc(function(){kQb.includes(H)||(_.pb(new _.e$("createClientScreen() called with a non-page VE",H)),H=83769);t.isHistoryNavigation||(f.forwardHistoryStack=[],f.backHistoryStack.push({rootVe:H,key:t.key||""}));f.graftQueue=[];f.stateChangedQueue=[];t.dataPromises?MYZ(f,H,v,t):hOr(f,H,v,t)})()};
_.ROh=function(f,H,v){v=v===void 0?0:v;_.Cc(function(){H.then(function(t){f.pendingScreenCreation.has(v)&&f.pendingScreenFn&&f.pendingScreenFn();var M=_.uy(v),h=_.Qe(v);if(M&&h){var y={automatedLogEventSource:3},m;(t==null?0:(m=t.response)==null?0:m.trackingParams)&&N6(f.client,M,h,_.zK(t.response.trackingParams),!1,y);var W;(t==null?0:(W=t.playerResponse)==null?0:W.trackingParams)&&N6(f.client,M,h,_.zK(t.playerResponse.trackingParams),!1,y)}})})()};
V8.prototype.graftServerVe=function(f,H,v){var t=this;return _.Cc(function(){var M=_.zK(f);_.YP(t,M,H,v);return M})()};
_.eDb=function(f,H,v,t){return _.J("enable_client_ve_spec")&&H.clientVeSpec?(H=_.$$(H.clientVeSpec.uiType,void 0,H.clientVeSpec.elementIndex,H.clientVeSpec.clientYoutubeData,void 0,H),_.YP(f,H,v,t)?H:null):H.trackingParams?f.graftServerVe(H.trackingParams,v,t):null};
_.lV=function(f,H,v,t){return _.Cc(function(){if(!H.veType)return _.nb(new _.e$("Error: Trying to graft a client VE without a veType.")),null;if(H.visibilityTypes){var M=H.visibilityTypes.reduce(function(h,y){return h|y});
M={visibility:{types:String(M)}}}M=_.$$(H.veType,H.visualElement,H.elementIndex,H.clientYouTubeData,void 0,M);return _.YP(f,M,v,t)?M:null})()};
_.YP=function(f,H,v,t){t=t===void 0?0:t;return _.Cc(function(){if(f.pendingScreenCreation.has(t))return f.graftQueue.push([H,v]),!0;var M=_.uy(t),h=v||_.Qe(t);if(M&&h){if(_.J("combine_ve_grafts")){var y=f.cachedVisualElements.get(h.toString());y?y.push(H):(f.cachedRootVisualElements.set(h.toString(),h),f.cachedVisualElements.set(h.toString(),[H]));f.attachTimeout||(f.attachTimeout=_.Lb(_.nN,function(){VYC(f,M)},1200))}else N6(f.client,M,h,H);
return!0}return!1})()};
_.mE=function(f,H,v){v=v===void 0?0:v;var t=f.recurringGrafts.get(v)||new Map;if(_.J("smarter_ve_dedupping"))for(var M=Array.from(t.keys()),h=0;h<M.length;h++){var y=void 0,m=void 0;var W=H;var I=M[h];I.isClientVe()&&W.isClientVe()?(y=W.getAsJson(),m=I.getAsJson(),W=y.veType!==m.veType||y.elementIndex!==m.elementIndex||y.dataElement!==m.dataElement||W.getLoggingDirectives()!==I.getLoggingDirectives()?!1:!0):W=I.veData.trackingParams!==void 0&&W.veData.trackingParams!==void 0?((m=W.veData)==null?void 0:
m.trackingParams)===((y=I.veData)==null?void 0:y.trackingParams):!1;if(W)return}else if(t.has(H))return;t.set(H,void 0);f.recurringGrafts.set(v,t);_.uy(v)==="UNDEFINED_CSN"||f.pendingScreenCreation.has(v)||_.YP(f,H,void 0,v)};
_.$P=function(f,H,v,t){t=_.uy(t===void 0?0:t);if(!t)return!1;pw3(f.client,t,H,v);return!0};
_.WL=function(f,H,v,t){if(!H)return!1;t=_.uy(t===void 0?0:t);if(!t)return!1;pw3(f.client,t,_.zK(H),v);return!0};
_.NY=function(f,H){var v=H.getScreenLayer&&H.getScreenLayer();if(H.visualElement)return _.$P(f,H.visualElement,void 0,v);H=h_H(_.JV(),H);return _.WL(f,H,void 0,v)};
V8.prototype.clickCommand=function(f,H,v){return _.WL(this,f.clickTrackingParams,H,v===void 0?0:v)};
V8.prototype.stateChanged=function(f,H,v){this.visualElementStateChanged(_.zK(f),H,v===void 0?0:v)};
V8.prototype.visualElementStateChanged=function(f,H,v){v=v===void 0?0:v;v===0&&this.pendingScreenCreation.has(v)?this.stateChangedQueue.push([f,H]):this.logStateChanged(f,H,v)};
V8.prototype.logStateChanged=function(f,H,v){v=v===void 0?0:v;var t=_.uy(v);f=f||_.Qe(v);return t&&f?(QqT(this.client,t,f,H),!0):!1};
var MYZ=function(f,H,v,t){t=t===void 0?{}:t;f.pendingScreenCreation.add(t.layer||0);f.pendingScreenFn=function(){hOr(f,H,v,t);var y=_.Qe(t.layer);if(y){for(var m=_.V(f.graftQueue),W=m.next();!W.done;W=m.next())W=W.value,_.YP(f,W[0],W[1]||y,t.layer);y=_.V(f.stateChangedQueue);for(m=y.next();!m.done;m=y.next())m=m.value,f.logStateChanged(m[0],m[1])}};
v||_.uy(t.layer)||f.pendingScreenFn();if(t.dataPromises)for(var M=_.V(t.dataPromises),h=M.next();!h.done;h=M.next())_.ROh(f,h.value,t.layer);else _.oO(Error("wf"))},hOr=function(f,H,v,t){t=t===void 0?{}:t;
var M=void 0;t.layer||(t.layer=0);M=t.parentLayer!==void 0?t.parentLayer:t.layer;var h=_.uy(M);M=_.Qe(M);var y=v||M,m;y&&(t.parentCsn!==void 0?m={clientScreenNonce:t.parentCsn,visualElement:y}:h&&h!=="UNDEFINED_CSN"&&(m={clientScreenNonce:h,visualElement:y}));var W,I=_.a8("EVENT_ID");h==="UNDEFINED_CSN"&&I&&(W={servletData:{serializedServletEventId:I}});_.J("combine_ve_grafts")&&h&&VYC(f,h);_.J("no_client_ve_attach_unless_shown")&&y&&h&&zRv(y,h);try{var S=_.L4R(f.client,H,m,t.csnToClone,t.cttAuthInfo,
W,t.implicitGestureType,void 0,t.loggingExpectations)}catch(l){_.u$(l,{rootVeType:H,rootVe:M,parentVisualElement:v,currentCsn:h,parentEl:m,csnToClone:t.csnToClone});_.oO(l);return}_.P7(S,H,t.layer,t.cttAuthInfo);h&&h!=="UNDEFINED_CSN"&&M&&!pDR(h)&&o3b(f.client,h,M,!0);f.backHistoryStack[f.backHistoryStack.length-1]&&!f.backHistoryStack[f.backHistoryStack.length-1].csn&&(f.backHistoryStack[f.backHistoryStack.length-1].csn=S||"");_.nQ({clientScreenNonce:S});_.vDh();var d=_.Qe(t.layer);h&&h!=="UNDEFINED_CSN"&&
d&&(_.J("web_mark_root_visible")||_.J("music_web_mark_root_visible"))&&_.b0(S,d);f.pendingScreenCreation.delete(t.layer||0);f.pendingScreenFn=void 0;var Z;(Z=f.recurringGrafts.get(t.layer))==null||Z.forEach(function(l,L){l?_.YP(f,L,l,t.layer):d&&_.YP(f,L,d,t.layer)});
yzH(f)},yzH=function(f){for(var H=0;H<f.afterNewScreenOneOffJobs.length;H++){var v=f.afterNewScreenOneOffJobs[H];
try{v()}catch(t){_.oO(t)}}for(H=f.afterNewScreenOneOffJobs.length=0;H<f.afterNewScreenRecurringJobs.length;H++){v=f.afterNewScreenRecurringJobs[H];try{v()}catch(t){_.oO(t)}}},VYC=function(f,H){if(H===void 0)for(var v=o4s(),t=0;t<v.length;t++)v[t]!==void 0&&VYC(f,v[t]);
else f.cachedVisualElements.forEach(function(M,h){(h=f.cachedRootVisualElements.get(h))&&x_3(f.client,H,h,M)}),f.cachedVisualElements.clear(),f.cachedRootVisualElements.clear(),f.attachTimeout=void 0};var OI=function(f){f=f===void 0?{layer:0}:f;this.hasRun=!1;this.createScreenConfig=f;f={};this.pq0=(f.response=!1,f.playerResponse=!1,f)};
_.e(OI,qQ);OI.prototype.validate=function(f){return!(!f.data||!f.data.response&&!f.data.playerResponse)};
OI.prototype.handle=function(f){var H=_.UV(),v=this.createScreenConfig.layer;f.data.response&&f.data.response.trackingParams&&!this.pq0.response&&(H.graftServerVe(f.data.response.trackingParams,void 0,v),this.pq0.response=!0);f.data.playerResponse&&f.data.playerResponse.trackingParams&&!this.pq0.playerResponse&&(H.graftServerVe(f.data.playerResponse.trackingParams,void 0,v),this.pq0.playerResponse=!0)};var go=function(){this.lT=_.bE();this.hI=[];this.eYi=0};
go.prototype.processChunk=function(f){if(f){for(var H=_.V(this.hI),v=H.next();!v.done;v=H.next())v=v.value,v.validate(f)&&(v.handle(f),v.hasRun=!0);_.u0("np"+this.eYi);this.eYi++}};var Ha={initialized:!1,nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[]};var YiM=function(){var f={traceAllComponents:_.J("web_tracing_all_components"),exportToCsi:_.J("web_tracing_export_to_csi"),exportBreadcrumbs:_.J("web_enable_tracing"),bufferSize:_.VQ("web_max_tracing_events"),enabledSpansArray:_.YZ("web_tracing_enabled_spans"),exportToDevTools:_.J("web_tracing_export_to_devtools")};this.observers=[];this.value=f};
_.R=YiM.prototype;_.R.subscribe=function(f){var H=this;if(f.idx!=null)throw Error("yf");f.idx=this.observers.length;this.observers.push(f);return function(){var v=H.observers[H.observers.length-1];H.observers[f.idx]=v;v.idx=f.idx;H.observers.pop()}};
_.R.update=function(f){this.value=f(this.value);this.notify()};
_.R.mutate=function(f){f(this.value);this.notify()};
_.R.set=function(f){this.value=f;this.notify()};
_.R.notify=function(){for(var f=_.V(this.observers),H=f.next();!H.done;H=f.next()){H=H.value;try{H(this.value)}catch(v){}}};var AlR,mvM,O5r;_.jW=function(f,H,v,t,M,h,y){y=y===void 0?[]:y;this.buildCommandPayload=f;this.navigate=H;this.handleServiceRequest=v;this.sendAction=t;this.JSC$12591_screenManager=M;this.commandResolverMap=h;this.autoLogResolverAllowlist=y;this.pendingCommands=new Set;this.isTracingEnabled=!1;mvM(this)};
AlR=function(f,H,v){var t=DP_,M=onB,h=_.UV(),y=$vh;v=v===void 0?[]:v;_.jW.instance=new _.jW(f,H,t,M,h,y,v)};
mvM=function(f){if(!f.isTracingEnabled&&CpT("command")){var H=f.resolveCommand;f.resolveCommand=function(v,t){a:{for(M in v)if(Object.prototype.hasOwnProperty.call(v,M)){var M={commandType:M};break a}M={}}return NST("command",M,H.bind(this,v,t))};
f.isTracingEnabled=!0}};
O5r=function(f,H,v){if(!f.commandResolverMap)return!1;var t=i3R(H,f.commandResolverMap);return t?((f.autoLogResolverAllowlist.some(function(M){return!!_.U(H,M)})||(v==null?0:v.forceClickLogging))&&Wab(f,H,v),t instanceof Promise?t.then(function(M){M.resolve(H,v)}):t.resolve(H,v),!0):!1};
_.jW.prototype.resolveCommand=function(f,H){var v=this,t=gDC(f);if(O5r(this,f,H))return!0;if(t)return Ij9(this,f,H);if(!this.buildCommandPayload)return XwE(f,"Unhandled command by buildCommandPayload"),!1;var M=this.buildCommandPayload(f,H);if(H==null?0:H.commandController)M.commandController=H.commandController;if(M.type===0){if(!this.navigate)return AHs(f,"navigate"),!1;if(!Sia(M.command))return XwE(f,"Page requests need to specify a url"),!1;_.J("logging_avoid_blocking_during_navigation")&&_.fOv().transition("application_navigating");
f=this.navigate(M)||[];XjC(f).then(function(){v.pendingCommands.delete(M.command)});
return!0}if(M.type===1){if(!this.handleServiceRequest)return AHs(f,"handleServiceRequest"),!1;(H==null?0:H.forceClickLogging)&&Wab(this,M.command,H);f=this.handleServiceRequest(M);XjC(f).then(function(){v.pendingCommands.delete(M.command)});
return!0}if(M.type===2){if(!this.sendAction)return AHs(f,"sendAction"),!1;Wab(this,M.command,H);this.sendAction(M);return!0}return!1};
var Wab=function(f,H,v){if((v==null||!v.disableClickTracking)&&f.JSC$12591_screenManager)if(H.clickTrackingParams&&_.J("log_click_with_layer_from_element_in_command_handler")){var t;v=v==null?void 0:(t=v.form)==null?void 0:t.element;f.JSC$12591_screenManager.clickCommand(H,null,v&&v.getScreenLayer&&v.getScreenLayer())}else H.clickTrackingParams?f.JSC$12591_screenManager.clickCommand(H):!_.J("disable_clicked_visual_element_in_command_handler")&&(v==null?0:v.clickedVisualElement)&&_.$P(f.JSC$12591_screenManager,
v.clickedVisualElement)},gDC=function(f){var H=!!_.U(f,_.Ir),v;
f=((v=_.U(f,_.dj))==null?void 0:v.signal)==="CLIENT_SIGNAL";return H||f},Ij9=function(f,H,v){var t=_.U(H,_.Ir);
if(t)var M=(t==null?void 0:t.commands)||[];else{var h;if(((h=_.U(H,_.dj))==null?void 0:h.signal)==="CLIENT_SIGNAL"){var y;M=((y=_.U(H,_.dj))==null?void 0:y.actions)||[]}}if(M){H=_.V(M);for(M=H.next();!M.done;M=H.next()){M=M.value;try{f.resolveCommand(M,v)}catch(m){m instanceof Error&&_.oO(m)}}return!0}XwE(H,"Could not handle the meta command");return!1},Sia=function(f){var H;
return!((H=_.U(f==null?void 0:f.commandMetadata,_.jG))==null||!H.url)};var IX=function(){qQ.apply(this,arguments)};
_.e(IX,qQ);IX.prototype.validate=function(f){var H,v;return!this.hasRun&&!!((H=f.data.response)==null?0:(v=H.onResponseReceivedEndpoints)==null?0:v.length)};
IX.prototype.handle=function(f){var H=_.jW.instance;f=_.V(f.data.response.onResponseReceivedEndpoints);for(var v=f.next();!v.done;v=f.next())H.resolveCommand(v.value)};var dvT,jYh,sYv;
dvT=function(){this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.gj();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.S0=function(){jYh||(jYh=new dvT);return jYh};
sYv=function(){var f=_.S0();f.miniplayerButtonActivation=!1;f.userActivation=!1;f.playlistWatchPageActivation=!1;f.productDetailsPageActivation=!1;f.miniAppPageActivation=!1;f.playablesDestPageActivation=!1;f.lockupActivation=!1;f.showMiniplayerCommandActivation=!1;f.playlistSuggestionsShelfActivation=!1;f.mediaSessionPipActivation=!1;f.watchPipActivation=!1;f.watchWhileActivation=!1;f.shortsPipActivation=!1};
_.Z5n=function(){var f=_.S0(),H=f.mediaSessionPipActivation,v=f.watchPipActivation,t=f.watchWhileActivation,M=f.playlistWatchPageActivation,h=f.lockupActivation,y=f.showMiniplayerCommandActivation,m=f.navigatingAwayFromWatchDeletedVideo,W=f.shortsPipActivation,I=f.playlistSuggestionsShelfActivation,S=f.productDetailsPageActivation,d=f.miniAppPageActivation,Z=f.playablesDestPageActivation;return!f.miniplayerButtonActivation&&!M&&!I&&!S&&!d&&!Z&&!h&&!y&&!H&&!v&&!t&&!W||m};var iHN;_.j0=_.td("FEwhat_to_watch","/",3854);_.knB=_.td("FEdownloads","/feed/downloads",42352);iHN=_.td("FEmusic_offline","browse/FEmusic_offline",42352);var HS=function(f,H){H=H===void 0?[]:H;var v=v===void 0?[]:v;H=Ie5.apply(null,[SBv.apply(null,_.pS(H))].concat(_.pS(v)));this.store=Zhg(f,void 0,H)};
HS.prototype.getState=function(){return this.store.getState()};
HS.prototype.dispatch=function(f){return this.store.dispatch(f)};
HS.prototype.subscribe=function(f){return this.store.subscribe(f)};
HS.prototype.replaceReducer=function(f){return this.store.replaceReducer(f)};
HS.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.sI=function(f,H,v){var t=H(f.getState());return f.subscribe(function(){var M=H(f.getState());if(M!==t){var h=t;t=M;v(M,h)}})};var PP_;_.lF=function(f,H,v){return _.yq({type:"REPLACE_ENTITY",payload:{entityPayload:v,entityType:f,key:H}})};
PP_=function(f){return _.yq({type:"REPLACE_ENTITIES",payload:f})};
_.z7=function(f,H,v,t){return _.yq({type:"UPDATE_ENTITY",payload:{entityPayload:v,entityType:f,key:H,mergeOption:t}})};var ycv=function(f){var H=this;f=f===void 0?[]:f;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;f.forEach(function(v){H.append(v)})};
_.R=ycv.prototype;_.R.getLength=function(){return this.totalLength};
_.R.append=function(f){var H=this.arrays.length===0?!1:(H=this.arrays[this.arrays.length-1])&&H.buffer===f.buffer&&H.byteOffset+H.length===f.byteOffset;H?(H=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(H.buffer,H.byteOffset,H.length+f.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(f);this.totalLength+=f.length};
_.R.split=function(f){for(var H=new ycv,v=new ycv,t=_.V(this.arrays),M=t.next();!M.done;M=t.next())M=M.value,f>=M.length?(H.append(M),f-=M.length):f?(H.append(new Uint8Array(M.buffer,M.byteOffset,f)),v.append(new Uint8Array(M.buffer,M.byteOffset+f,M.length-f)),f=0):v.append(M);return{headView:H,tailView:v}};
_.R.extract=function(f,H){return this.split(f).tailView.split(H).headView};
_.R.isFocused=function(f){return f>=this.arrayPos&&f<this.arrayPos+this.arrays[this.arrayIdx].length};
_.R.focus=function(f){if(!this.isFocused(f))for(f<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=f&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var Jzn=function(f,H){f.focus(H);return f.arrays[f.arrayIdx][H-f.arrayPos]};(function(){var f=function(t){return new Uint8Array(t)},H=function(t){for(var M=new Uint8Array(t.length),h=0;h<t.length;h++)M[h]=t[h];
return M},v=new Uint8Array([1]);
return v.length===1&&v[0]===1?f:H})();
var vW_=Array(1024),Hv_=window.TextDecoder?new TextDecoder:void 0,MAT=window.TextEncoder?new TextEncoder:void 0;var VAs=function(f){this.arrayView=f;this.pos=0;this.pendingTagAndType=-1},Wa=function(f){var H=Jzn(f.arrayView,f.pos);
++f.pos;if(H<128)return H;for(var v=H&127,t=1;H>=128;)H=Jzn(f.arrayView,f.pos),++f.pos,t*=128,v+=(H&127)*t;return v},Yp5=function(f,H){var v=f.pendingTagAndType;
for(f.pendingTagAndType=-1;f.pos+1<=f.arrayView.totalLength;){v<0&&(v=Wa(f));var t=v>>3,M=v&7;if(t===H)return!0;if(t>H){f.pendingTagAndType=v;break}v=-1;switch(M){case 0:Wa(f);break;case 1:f.pos+=8;break;case 2:t=Wa(f);f.pos+=t;break;case 5:f.pos+=4}}return!1};var $QH=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=RY5(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},I5=function(f,H){H=f.pos+H;
if(!(f.buf.length>=H)){for(var v=f.buf.length*2;v<H;)v*=2;f.buf=RY5(v,f.wasm,f.buf.subarray(0,f.pos));f.view=new DataView(f.buf.buffer,f.buf.byteOffset,f.buf.byteLength)}},gL=function(f,H){if(H>268435455){I5(f,4);
for(var v=H&1073741823,t=0;t<4;t++)f.view.setUint8(f.pos,v&127|128),v>>=7,f.pos+=1;H=Math.floor(H/268435456)}for(I5(f,4);H>127;)f.view.setUint8(f.pos,H&127|128),H>>=7,f.pos+=1;f.view.setUint8(f.pos,H);f.pos+=1};for(var W5_={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},mQs={},lja=_.V(Object.entries(W5_)),Uvg=lja.next();!Uvg.done;Uvg=lja.next()){var eOh=_.V(Uvg.value),LaC=eOh.next().value,xvv=eOh.next().value,Bqh=LaC,zOb=xvv;zOb&&(mQs[zOb]=Bqh)};var gWg=function(f,H){f=f===void 0?{}:f;switch(H.type){case "ENTITY_LOADED":return H.payload.reduce(function(t,M){var h,y=(h=M.options)==null?void 0:h.persistenceOption;if(y&&y!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&y!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return t;if(!M.entityKey)return _.oO(Error("Af")),t;if(M.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!M.payload)return M=new _.e$("REPLACE entity mutation is missing a payload",{entityKey:M.entityKey}),_.oO(M),t;var m=(0,_.QA.getAnyKey)(M.payload);
return SpR(t,m,M.entityKey,M.payload[m])}if(M.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{M=M.entityKey;try{var W=_.OF(M).entityType;m=SpR(t,W,M);break a}catch(d){if(d instanceof Error){M=new _.e$("Failed to deserialize entity key",{entityKey:M,originalMessage:d.message});_.oO(M);m=t;break a}throw d;}m=void 0}return m}if(M.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!M.payload)return M=new _.e$("UPDATE entity mutation is missing a payload",{entityKey:M.entityKey}),_.oO(M),t;m=(0,_.QA.getAnyKey)(M.payload);
var I,S;return dQR(t,m,M.entityKey,M.payload[m],(I=M.fieldMask)==null?void 0:(S=I.mergeOptions)==null?void 0:S.repeatedFieldsMergeOption)}return t},f);
case "REPLACE_ENTITY":var v=H.payload;return SpR(f,v.entityType,v.key,v.entityPayload);case "REPLACE_ENTITIES":return Object.keys(H.payload).reduce(function(t,M){var h=H.payload[M];return Object.keys(h).reduce(function(y,m){return SpR(y,M,m,h[m])},t)},f);
case "UPDATE_ENTITY":return v=H.payload,dQR(f,v.entityType,v.key,v.entityPayload,v.mergeOption);default:return f}};var jf5;var FaZ=!1,Z7,JG,l3,UI,e0,rzb=function(f){_.zO.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!FaZ){var H,v=new Uint8Array(256),t=new Uint8Array(256);var M=1;for(H=0;H<256;H++)v[M]=H,t[H]=M,M^=M<<1^(M>>7&&283);Z7=new Uint8Array(256);JG=jB(256);l3=jB(256);UI=jB(256);e0=jB(256);for(var h=0;h<256;h++){M=h?t[255^v[h]]:0;M^=M<<1^M<<2^M<<3^M<<4;M=M&255^M>>>8^99;Z7[h]=M;H=M<<1^(M>>7&&283);var y=H^M;JG[h]=H<<24|M<<16|M<<8|y;l3[h]=y<<24|JG[h]>>>8;UI[h]=M<<24|l3[h]>>>
8;e0[h]=M<<24|UI[h]>>>8}FaZ=!0}M=jB(44);for(v=0;v<4;v++)M[v]=f[4*v]<<24|f[4*v+1]<<16|f[4*v+2]<<8|f[4*v+3];for(t=1;v<44;v++)f=M[v-1],v%4||(f=(Z7[f>>16&255]^t)<<24|Z7[f>>8&255]<<16|Z7[f&255]<<8|Z7[f>>>24],t=t<<1^(t>>7&&283)),M[v]=M[v-4]^f;this.key=M};
_.e(rzb,_.zO);
rzb.prototype.encrypt=function(f){var H=f.length;f=new Uint8Array(f.buffer.slice(f.byteOffset,f.byteOffset+H));for(var v=this.cipherBlock,t=0;t<H&&this.blockOffset<16;)f[t++]^=v[this.blockOffset++];for(var M=H-(H-t)%16;t<M;)Kag(this),f[t++]^=v[0],f[t++]^=v[1],f[t++]^=v[2],f[t++]^=v[3],f[t++]^=v[4],f[t++]^=v[5],f[t++]^=v[6],f[t++]^=v[7],f[t++]^=v[8],f[t++]^=v[9],f[t++]^=v[10],f[t++]^=v[11],f[t++]^=v[12],f[t++]^=v[13],f[t++]^=v[14],f[t++]^=v[15];if(t<H)for(Kag(this),this.blockOffset=0;t<H;)f[t++]^=
v[this.blockOffset++];return f};
var Kag=function(f){for(var H=f.key,v=f.counter[0]^H[0],t=f.counter[1]^H[1],M=f.counter[2]^H[2],h=f.counter[3]^H[3],y=3;y>=0&&!(f.counter[y]=-~f.counter[y]);y--);for(var m,W,I=4;I<40;)y=JG[v>>>24]^l3[t>>16&255]^UI[M>>8&255]^e0[h&255]^H[I++],m=JG[t>>>24]^l3[M>>16&255]^UI[h>>8&255]^e0[v&255]^H[I++],W=JG[M>>>24]^l3[h>>16&255]^UI[v>>8&255]^e0[t&255]^H[I++],h=JG[h>>>24]^l3[v>>16&255]^UI[t>>8&255]^e0[M&255]^H[I++],v=y,t=m,M=W;f=f.cipherBlock;y=H[40];f[0]=Z7[v>>>24]^y>>>24;f[1]=Z7[t>>16&255]^y>>16&255;f[2]=
Z7[M>>8&255]^y>>8&255;f[3]=Z7[h&255]^y&255;y=H[41];f[4]=Z7[t>>>24]^y>>>24;f[5]=Z7[M>>16&255]^y>>16&255;f[6]=Z7[h>>8&255]^y>>8&255;f[7]=Z7[v&255]^y&255;y=H[42];f[8]=Z7[M>>>24]^y>>>24;f[9]=Z7[h>>16&255]^y>>16&255;f[10]=Z7[v>>8&255]^y>>8&255;f[11]=Z7[t&255]^y&255;y=H[43];f[12]=Z7[h>>>24]^y>>>24;f[13]=Z7[v>>16&255]^y>>16&255;f[14]=Z7[t>>8&255]^y>>8&255;f[15]=Z7[M&255]^y&255};var Dv9=!1;(function(){var f=function(t){return new Uint8Array(t)},H=function(t){for(var M=new Uint8Array(t.length),h=0;h<t.length;h++)M[h]=t[h];
return M},v=new Uint8Array([1]);
return v.length===1&&v[0]===1?f:H})();
var LO;var pio=function(f){a:{if(!Dv9&&!TE){if(LO){var H=LO;break a}LO=(H=window.crypto)==null?void 0:H.subtle;var v,t,M;if(((v=LO)==null?0:v.importKey)&&((t=LO)==null?0:t.sign)&&((M=LO)==null?0:M.encrypt)){H=LO;break a}LO=void 0}H=void 0}H&&(this.nativeEncryptor=new oDH(f,H));this.encryptorPolyfill=new nDM(f)};
pio.prototype.encrypt=function(f,H){var v=this,t;return _.Y(function(M){switch(M.nextAddress){case 1:if(!v.nativeEncryptor){M.jumpTo(2);break}_.Zc(M,3);return M.yield(v.nativeEncryptor.encrypt(f,H),5);case 5:return M.return(M.yieldResult);case 3:t=_.xu(M),_.pb(t),Dv9=!0,v.nativeEncryptor=void 0;case 2:return M.return(v.encryptorPolyfill.encrypt(f,H))}})};
pio.prototype.decrypt=function(f,H){return this.encrypt(f,H)};
var oDH=function(f,H){this.JSC$12664_aesKey=f;this.subtleCrypto=H};
oDH.prototype.encrypt=function(f,H){var v=this,t;return _.Y(function(M){if(M.nextAddress==1)return _.Zc(M,2),M.yield(QYZ(v,f,H),4);if(M.nextAddress!=2)return M.return(M.yieldResult);t=_.xu(M);_.pb(t);Dv9=!0;throw t;})};
var QYZ=function(f,H,v){var t,M;return _.Y(function(h){switch(h.nextAddress){case 1:if(f.cryptoKey){h.jumpTo(2);break}return h.yield(f.subtleCrypto.importKey("raw",f.JSC$12664_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:f.cryptoKey=h.yieldResult;case 2:return t={name:"AES-CTR",counter:v,length:128},h.yield(f.subtleCrypto.encrypt(t,f.cryptoKey,H),4);case 4:return M=h.yieldResult,h.return(new Uint8Array(M))}})},nDM=function(f){this.JSC$12667_aesKey=f};
nDM.prototype.encrypt=function(f,H){this.encryptor||(this.encryptor=new rzb(this.JSC$12667_aesKey));for(var v=this.encryptor,t=0;t<4;t++)v.counter[t]=H[t*4]<<24|H[t*4+1]<<16|H[t*4+2]<<8|H[t*4+3];v.blockOffset=16;return this.encryptor.encrypt(f)};
nDM.prototype.decrypt=function(f,H){return this.encrypt(f,H)};var unv={},Jcb=H8("yt-idb-pref-storage",{objectStores:(unv.prefs={addedAtVersion:1},unv),shared:!1,upgrade:function(f,H){H(1)&&E0(CN(f,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.xP=function(f){this.token=f};
_.xP.getInstance=function(){return _.Y(function(f){return f.return(new Promise(function(H){_.fN().then(function(v){v?(_.xP.instance||(_.xP.instance=new _.xP(v)),H(_.xP.instance)):H(void 0)})}))})};
_.xP.prototype.get=function(f){var H=this,v,t,M;return _.Y(function(h){if(h.nextAddress==1)return h.yield(lkv(H.token),2);if(h.nextAddress!=3)return v=h.yieldResult,h.yield(v.get("prefs",f),3);t=h.yieldResult;if(!t)return h.return();M=(0,_.ta)();return t.expirationTimestampMs<=M?h.return():h.return(t.value)})};
_.xP.prototype.set=function(f,H,v){v=v===void 0?31536E3:v;var t=this,M,h,y;return _.Y(function(m){if(m.nextAddress==1)return M=(0,_.ta)(),h={key:f,value:H,expirationTimestampMs:M+v*1E3},m.yield(lkv(t.token),2);y=m.yieldResult;return m.yield(y.put("prefs",h),0)})};
_.xP.prototype.remove=function(f){var H=this,v;return _.Y(function(t){if(t.nextAddress==1)return t.yield(lkv(H.token),2);v=t.yieldResult;return t.yield(v.delete("prefs",f),0)})};var BL={},ajZ=(BL.INVALID_ENCODER_VERSION="Invalid encoder version",BL.KEY_CREATION_FAILED="Failed to create encoder key",BL.UNKNOWN_DECODE_ERROR="Failed to decode PES data",BL.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",BL.WRONG_DATA_TYPE="Encoder cannot process the data type",BL),sF=function(f,H){H=H===void 0?{}:H;_.e$.call(this,ajZ[f],Object.assign({},{name:"PESEncoderError",type:f},H));this.type=f;this.level="WARNING";Object.setPrototypeOf(this,sF.prototype)};
_.e(sF,_.e$);var zu=function(){};
zu.prototype.encode=function(f,H){try{return this.encodeImpl(f,H)}catch(v){xQ5(v,eYr)}};
zu.prototype.decode=function(f,H){try{return this.decodeImpl(f,H)}catch(v){xQ5(v,L5s)}};
var PvZ=function(f,H,v){var t;return _.Y(function(M){if(M.nextAddress==1)return _.Zc(M,2),M.yield(f.decodeAsyncImpl(H,v),4);if(M.nextAddress!=2)return M.return(M.yieldResult);t=_.xu(M);xQ5(t,L5s);_.Bj(M)})};
zu.prototype.decodeAsyncImpl=function(f,H){return Promise.resolve(this.decodeImpl(f,H))};var Fz=function(f,H){this.aesEncryptor=f;this.aesEncryptorAsync=H};
_.e(Fz,zu);Fz.prototype.encodeImpl=function(f,H){H=BC_(H);f=(new TextEncoder).encode(JSON.stringify(f));return this.aesEncryptor.encrypt(f,H)};
Fz.prototype.decodeImpl=function(f,H){if(!(f instanceof Uint8Array))throw UQr(1);var v=new TextDecoder;H=BC_(H);f=this.aesEncryptor.decrypt(f,H);return JSON.parse(v.decode(f))};
Fz.prototype.decodeAsyncImpl=function(f,H){var v=this,t,M,h;return _.Y(function(y){if(y.nextAddress==1){if(!(f instanceof Uint8Array))throw UQr(1);t=new TextDecoder;M=BC_(H);return y.yield(v.aesEncryptorAsync.decrypt(f,M),2)}h=y.yieldResult;return y.return(JSON.parse(t.decode(h)))})};var zYN={accountLinkStatusEntity:hzM,booleanEntity:pCH,buttonEntity:qza,captionTrack:a6b,channelHandle:$cC,chipEntity:FHb,commerceAcquisitionClientPayloadEntity:U8o,commerceCartListEntity:e5n,contextNoteFeedEntityPayload:e8b,contextNoteUserRatingEntityPayload:LQg,continuationTokenEntity:ZKo,downloadQualityPickerEntity:Y3n,downloadsPageRefreshTokenEntity:$Ln,downloadsPageViewConfigurationEntity:FAb,downloadStatusEntity:mLg,dismissState:rpr,sfvAudioItemCurrentlyPlayingEntity:dQo,emojiFountainDataEntity:kFb,
emojiCustomizationSetEntity:iMC,fakeChannel:aYC,fakePlaylist:PNv,fakePlaylistEntryCollection:GMr,fakeVideo:EJZ,fakeVideoDescription:NKC,featuredProductsEntity:ksT,flowStateEntity:HRh,iconBadgeEntity:LJZ,interstitialInteractionStateEntity:JAb,likeButtonAnimationEntity:rqo,liveChatPollStateEntity:FcH,liveViewerLeaderboardChatEntryPointStateEntity:q8n,liveViewerLeaderboardPointsEntity:fkb,liveReactionsDataEntity:T4g,logoEntity:sQZ,macroMarkerEntity:KAT,mainDownloadsLibraryEntity:WAH,mainDownloadsListEntity:OKr,
mainPlaylistDownloadStateEntity:IN_,mainPlaylistEntity:Jqo,mainPlaylistVideoEntity:lNC,mainVideoDownloadStateEntity:S3h,mainVideoEntity:xLr,markersEngagementPanelSyncEntity:DLH,markersVisibilityOverrideEntity:oar,musicAlbumReleaseDetail:VHC,musicAlbumReleaseDownloadMetadataEntity:v39,musicAlbumRelease:RRh,musicAlbumReleaseUserDetail:yHh,musicArtistDetail:m_9,musicArtist:Y8g,musicArtistUserDetail:$_Z,musicDownloadsLibraryEntity:tHa,musicLibraryEdit:W4v,musicLibraryStatusEntity:O3Z,musicPlaylist:g3v,
musicPlaylistDownloadMetadataEntity:MHo,musicShare:S8T,musicTrackDetail:jqo,musicTrackDownloadMetadataEntity:hRM,musicTrack:d_Z,musicTrackUserDetail:sqv,offlineOrchestrationActionWrapperEntity:Pph,offlineVideoPolicy:GA_,offlineVideoStreams:CpZ,offlineabilityEntity:dL9,orchestrationWebSamplingEntity:jEr,pageHeaderEntity:GFn,pdpStateEntity:x8M,pinnedProductEntity:Tg9,playbackData:E3r,playerStateEntity:naM,quantityIncrementerEntity:BtT,refresh:NSZ,saveToPlaylistListEntity:akh,selectedChipIndexEntityPayload:ptg,
settingEntity:R4T,stringEntity:Qv9,suggestedFeedbackChipStateEntity:QEb,transfer:cHM,trendingOfferEntity:wtH,videoDownloadContextEntity:Xwv,videoOverviewAsyncDataEntity:Tt9,videoPlaybackPositionEntity:vpM,votingEntity:cpr,ytMainChannelEntity:Bgh,youchatPendingResponseEntity:uDC,ytMainDownloadedVideoEntity:sEo,ytMainVideoEntity:zuC};var G6g,EDM,eB,Qf_,udR,Xi9,b5r,Az_,czC;G6g=function(f,H){this.JSC$12686_wrapped=f;this.JSC$12686_encoderRegistry=H;this.changedKeys={}};
EDM=function(f,H){return CvC(f.JSC$12686_encoderRegistry,H.version).decode(H.data,H.key)};
_.Nqn=function(f,H,v){return f.JSC$12686_wrapped.objectStore("EntityStore").get(H).then(function(t){if(t){if(v&&t.entityType!==v)throw Error("Bf");return EDM(f,t)}})};
eB=function(f,H,v){return v?(v=v.map(function(t){return _.Nqn(f,t,H)}),Ph.all(v)):f.JSC$12686_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(H)).then(function(t){return t.map(function(M){return EDM(f,M)})})};
_.pd5=function(f,H,v){var t=OvR(H),M=CvC(f.JSC$12686_encoderRegistry,1),h=Object.assign({},H);return f.JSC$12686_wrapped.objectStore("EntityStore").get(t).then(function(y){if(y){if(y.entityType!==v)throw Error("Bf");h.entityMetadata||(y=EDM(f,y),h.entityMetadata=y.entityMetadata)}}).then(function(){var y={key:t,
entityType:v,data:M.encode(h,t),version:1};return Ph.all([f.JSC$12686_wrapped.objectStore("EntityStore").put(y),czC(f,h,v)])}).then(function(){Xi9(f,t,v);
return t})};
Qf_=function(f,H){var v=_.OF(H).entityType;return Ph.all([f.JSC$12686_wrapped.objectStore("EntityStore").delete(H),Az_(f,H)]).then(function(){Xi9(f,H,v)})};
udR=function(f,H,v,t){var M=CvC(f.JSC$12686_encoderRegistry,1);return _.Nqn(f,H,t).then(function(h){if(h){h=fk5(h,v);var y={key:H,entityType:t,data:M.encode(h,H),version:1};return Ph.all([f.JSC$12686_wrapped.objectStore("EntityStore").put(y),czC(f,h,t)])}}).then(function(){Xi9(f,H,t);
return H})};
Xi9=function(f,H,v){var t=f.changedKeys[v];t||(t=new Set,f.changedKeys[v]=t);t.add(H)};
b5r=function(f,H,v){var t=OvR(H);v=F5N(v);if(!v)return Ph.resolve([]);v=new v(H);f=f.JSC$12686_wrapped.objectStore("EntityAssociationStore");H=[];v=_.V(v.getAssociations());for(var M=v.next();!M.done;M=v.next())H.push(f.put({parentEntityKey:t,childEntityKey:M.value}));return Ph.all(H).then(function(h){return h.map(function(y){return y[1]})})};
Az_=function(f,H){return f.JSC$12686_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(H))};
czC=function(f,H,v){var t=OvR(H);return Az_(f,t).then(function(){return b5r(f,H,v)})};var i5a=function(){};
_.e(i5a,zu);i5a.prototype.encodeImpl=function(f){return f};
i5a.prototype.decodeImpl=function(f){if(f instanceof Uint8Array)throw UQr(0);return f};var DQT=function(){this.cacheMap={};this.cacheMap[0]=new i5a;if(!_.J("aes_pes_encoder_killswitch")){var f=this.cacheMap;try{var H=_.ld();var v=BC_(H);var t=new Fz(new nDM(v),new pio(v))}catch(M){throw f=M instanceof Error?new sF("KEY_CREATION_FAILED",{originalMessage:M.message}):new sF("KEY_CREATION_FAILED"),_.oO(f),f;}f[1]=t}},CvC=function(f,H){H=H===void 0?0:H;
f=f.cacheMap[H];if(!f)throw H=new sF("INVALID_ENCODER_VERSION",{encoderVersion:H}),_.oO(H),H;return f};var Jd=function(f,H){_.zO.call(this);this.token=f;this.JSC$12700_encoderRegistry=H;this.observers=[];f=new _.Mr.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.ld());f.onmessage=this.handleMessage.bind(this);this.channel=f};
_.e(Jd,_.zO);_.UF=function(f,H,v){var t,M,h,y;return _.Y(function(m){if(m.nextAddress==1)return m.yield(Zve(f.token),2);if(m.nextAddress!=3)return t=m.yieldResult,m.yield(_.bd(t,["EntityStore","EntityAssociationStore"],H,function(W){M=new G6g(W,f.JSC$12700_encoderRegistry);return v(M)}),3);
h=m.yieldResult;M&&(y=M.changedKeys,Object.keys(y).length>0&&(f.channel.postMessage(y),k6b(f,y)));return m.return(h)})};
Jd.prototype.observe=function(f){var H=this;this.observers.push(f);return function(){var v=H.observers.indexOf(f);v>=0&&H.observers.splice(v,1)}};
var Mir=function(f){var H;return _.Y(function(v){if(v.nextAddress==1)return v.yield(_.UF(f,{mode:"readonly",enableRetries:!0},function(t){return t.JSC$12686_wrapped.objectStore("EntityStore").getAll()}),2);
H=v.yieldResult;return v.return(Promise.all(H.filter(function(t){return!!t}).map(function(t){var M,h;
return _.Y(function(y){if(y.nextAddress==1){M=t.key;h=t.entityType;var m=y.yield;var W=PvZ(CvC(f.JSC$12700_encoderRegistry,t.version),t.data,t.key);return m.call(y,W,2)}return y.return({key:M,entityType:h,data:y.yieldResult})})})))})};
Jd.prototype.handleMessage=function(f){k6b(this,f.data)};
var k6b=function(f,H){f=_.V(f.observers);for(var v=f.next();!v.done;v=f.next())v=v.value,v(H)};
Jd.prototype.disposeInternal=function(){this.channel.close()};
var rcv;var ro,wig,t0s;ro={};_.Tqo=(ro.mainVideoEntity="mainVideoEntityActionMetadata",ro.mainPlaylistEntity="mainPlaylistEntityActionMetadata",ro.musicTrack="musicTrackEntityActionMetadata",ro.musicPlaylist="musicPlaylistEntityActionMetadata",ro);wig=new _.iN("DOWNLOADS_ENTITY_TYPE_MAP");_.Dq=_.SB("","downloadsPageViewConfigurationEntity");t0s=_.SB("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.QXs=_.SB("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.SB("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.SB("SMART_DOWNLOADS_ENABLED","settingEntity");_.SB("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var EWR=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var k3B=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var e45={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var KO,ePr,Zur,fiH;KO=window;_.XG=KO.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.pHB=KO.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.wL;ePr=KO.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||gy;Zur=KO.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||ju_;_.qiC=KO.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.pBC;fiH=KO.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||aw_;kT({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 IsB=LHB(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(f){return f}}}),QxT=LHB(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(f){return f}}}),FH5=new Map;var d8N=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],nig;var f1_=function(f){return _.yq({type:"SET_EPHEMERAL_ACTION",payload:f})};var H_v={ephemeralAction:null};var vM_={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var CMH={sharedUi:function(f,H){f=f===void 0?vM_:f;switch(H.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},f,{animatedThumbnailEnabled:H.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},f,{inlinePreviewEnabled:H.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},f,{currentPageType:H.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},f,{currentPageSubType:H.payload});default:return f}},
a11y:se({ephemeralAction:function(f,H){f=f===void 0?H_v.ephemeralAction:f;switch(H.type){case "SET_EPHEMERAL_ACTION":return H.payload;default:return f}}}),
entities:Ikv};var U8R={playlistId:"",inviteLinkURL:""};var tlh={continuationCommand:{}};var opE=se({continuationCommand:function(f,H){f=f===void 0?tlh.continuationCommand:f;switch(H.type){case "SET_CONTINUATION_COMMAND":return H.payload.continuationCommand;default:return f}}});var LJT={currentFormId:"",commandsMap:{}};var npv=se({isLeaderTab:function(f,H){f=f===void 0?!0:f;switch(H.type){case "SET_IS_LEADER_TAB":var v,t;return(t=H==null?void 0:(v=H.payload)==null?void 0:v.isLeaderTab)!=null?t:f;default:return f}}});var h2_;_.Mla=function(f){return _.yq({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:f}})};
h2_=function(f){return _.yq({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:f}})};var G$R=se({isDesktopSmallWidth:function(f,H){switch(H.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return H.payload.isDesktopSmallWidth;default:return f===void 0?!1:f}},
isShortsActive:function(f,H){switch(H.type){case "SET_IS_SHORTS_ACTIVE":return H.payload.isShortsActive;default:return f===void 0?!1:f}},
isWatchWhileMode:function(f,H){switch(H.type){case "SET_IS_WATCH_WHILE_MODE":return H.payload.isWatchWhileMode;default:return f===void 0?!1:f}},
playerState:function(f,H){switch(H.type){case "SET_PLAYER_STATE":return H.payload.playerState;default:return f===void 0?-1:f}},
isFullscreen:function(f,H){switch(H.type){case "SET_IS_FULLSCREEN":return H.payload.isFullscreen;default:return f===void 0?!1:f}},
isSmallScreenSqueezeback:function(f,H){switch(H.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return H.payload.isSmallScreenSqueezeback;default:return f===void 0?!1:f}},
isShortsPipActive:function(f,H){switch(H.type){case "SET_IS_SHORTS_PIP_ACTIVE":return H.payload.isShortsPipActive;default:return f===void 0?!1:f}},
isPlaybackStarted:function(f,H){switch(H.type){case "SET_IS_PLAYBACK_STARTED":return H.payload.isPlaybackStarted;default:return f===void 0?!1:f}}});var Btr={currentMode:"canvas-hidden"};var NtT=function(){return function(f){return function(H){var v=f(H);_.mb(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[H],!0);return v}}};var R2b,w$b;R2b=new _.dZ;_.V4=new _.iN("WATCH_PLAYER_PROMISE_TOKEN");_.Vlv=new _.dZ;_.yor=new _.iN("SHORTS_PLAYER_PROMISE_TOKEN");w$b=new _.iN("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var c$g=function(){return function(f){return function(H){H.type==="ENTITY_LOADED"&&_.t8().resolve(_.V4).then(function(v){var t;(t=v.dispatchReduxAction)==null||t.call(v,H)});
return f(H)}}};var Y_h={};var pps=se({additionalContext:function(f,H){switch(H.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var v;return(v=H.payload)!=null?v:"";default:return f===void 0?"":f}},
impersonatedChannelUrl:function(f,H){switch(H.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var v;return(v=H.payload)!=null?v:"";default:return f===void 0?"":f}},
selectedVideoIds:function(f,H){f=f===void 0?Y_h:f;switch(H.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var v={};return Object.assign({},f,(v[H.payload]=!0,v));case "VIDEO_UNSELECTED":return H=H.payload,f=Object.assign({},f),delete f[H],f;default:return f}}});var QME=se({parentClickTrackingParams:function(f,H){switch(H.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return H.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return f===void 0?"":f}}});var m3b=function(f){return _.yq({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:f})};var $3C={};var uoR=se({stepStates:function(f,H){f=f===void 0?$3C:f;switch(H.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var v=f,t=H.payload,M,h,y;f={};H={selectionStates:Object.assign({},(y=(M=v[t.stepId])==null?void 0:M.selectionStates)!=null?y:{},(f[t.token]={isSelected:t.isSelected},f)),userQuery:(h=v[t.stepId])==null?void 0:h.userQuery};M={};return Object.assign({},v,(M[t.stepId]=H,M));case "TALK_TO_RECS_UPDATE_USER_QUERY":return M=f,h=H.payload,y={selectionStates:Object.assign({},
(t=(v=M[h.stepId])==null?void 0:v.selectionStates)!=null?t:{}),userQuery:{userQuery:h.userQuery,token:h.userQueryToken}},v={},Object.assign({},M,(v[h.stepId]=y,v));default:return f}}});var Wd9,O_h,I19;Wd9=function(f){return _.yq({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:f})};
O_h=function(f){return _.yq({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:f})};
_.JQ=function(f){return _.yq({type:"SET_CURRENT_PAGE_TYPE",payload:f})};
_.gMC=function(f){return _.yq({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:f})};
I19=function(f){return _.yq({type:"SET_CHIP_BAR_IS_STICKY",payload:f})};var FJ5={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"};_.S_o=function(f){return _.yq({type:"SET_PLAYER_STATE",payload:{playerState:f}})};var d3M=[],jeC={width:0,height:0};var asR=se({isTheaterMode:function(f,H){f=f===void 0?_.J("kevlar_disable_theater_mode_persistence")?!1:_.P6("START_IN_THEATER_MODE"):f;switch(H.type){case "SET_IS_THEATER_MODE":return H.payload.isTheaterMode;default:return f}},
isWatchActive:function(f,H){switch(H.type){case "SET_IS_WATCH_ACTIVE":return H.payload.isWatchActive;default:return f===void 0?!1:f}},
isLearningJourneyActive:function(f,H){switch(H.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return H.payload.isLearningJourneyActive;default:return f===void 0?!1:f}},
isWatchFullscreen:function(f,H){switch(H.type){case "SET_IS_WATCH_FULLSCREEN":return H.payload.isWatchFullscreen;default:return f===void 0?!1:f}},
isWatchNarrowWidth:function(f,H){switch(H.type){case "SET_IS_WATCH_NARROW_WIDTH":return H.payload.isWatchNarrowWidth;default:return f===void 0?!1:f}},
isWatchRetroMode:function(f,H){switch(H.type){case "SET_IS_WATCH_RETRO_MODE":return H.payload.isWatchRetroMode;default:return f===void 0?!1:f}},
isLiveChatCollapsed:function(f,H){switch(H.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return H.payload.isLiveChatCollapsed;default:return f===void 0?!1:f}},
openEngagementPanels:function(f,H){f=f===void 0?d3M:f;var v=[].concat(_.pS(f));switch(H.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return v.push(H.payload.panelToAdd),v;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return v.splice(v.indexOf(H.payload.panelToRemove),1),v;default:return f}},
playerState:function(f,H){switch(H.type){case "SET_PLAYER_STATE":return H.payload.playerState;default:return f===void 0?-1:f}},
watchScrollTop:function(f,H){switch(H.type){case "SET_WATCH_SCROLL_TOP":return H.payload.watchScrollTop;default:return f===void 0?0:f}},
watchWindowSize:function(f,H){f=f===void 0?jeC:f;switch(H.type){case "SET_WATCH_WINDOW_SIZE":return H.payload.watchWindowSize;default:return f}}});var seh={feedbackTokens:[]};var PMR=se({surveyFeedbackData:function(f,H){f=f===void 0?seh:f;switch(H.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return H.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},f,H.payload);default:return f}}});var KJH={};var A$r=void 0;_.J("web_enable_redux_store_on_demand")||(A$r=Xpe());var Z_n=function(f,H,v){var t=this;this.listId=f;this.JSC$12837_updateCallback=H;this.isOfflineVideoCallback=v;_.vS().subscribe(function(){t.handleUpdate()})};
Z_n.prototype.getPlaylistData=function(){var f=_.vS().getState().entities;if(this.listId&&this.listId!=="PPSV"){var H=OOg(f,this.listId,!0),v=_.SB(this.listId,"mainPlaylistEntity"),t,M;f=f==null?void 0:(t=f.mainPlaylistEntity)==null?void 0:(M=t[v])==null?void 0:M.title;return bWR(H,f,this.listId)}H=_.TCB(EP3(f));f=_.TCB(_.o5(f));f=H.concat(f);return bWR(f)};
Z_n.prototype.getPlaylistId=function(){return this.listId};
Z_n.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$12837_updateCallback(this.listId,this.getPlaylistData(),{})};var D7=function(f,H,v,t){t=t===void 0?[]:t;this.JSC$12840_playlistNetworkManager=f;this.listId=H;this.JSC$12840_updateCallback=v;this.videoIds=t;this.pendingUpdates=[];this.currentIndex=0};
D7.prototype.JSC$12840_setCurrentIndex=function(f){this.currentIndex=f};
D7.prototype.setListId=function(f){this.listId=f};
var Joh=function(f,H){f.currentCreateRequest&&f.currentCreateRequest.cancel(H);f.currentUpdateRequest&&f.currentUpdateRequest.cancel(H);f.currentRefreshRequest&&f.currentRefreshRequest.cancel(H)};
D7.prototype.delete=function(){Joh(this,"PROXY DELETED")};
D7.prototype.addVideos=function(f,H,v){var t=this;v!==void 0?this.videoIds.splice.apply(this.videoIds,[v,0].concat(_.pS(f))):this.videoIds.push.apply(this.videoIds,_.pS(f));this.listId||this.currentCreateRequest?(f.forEach(function(M,h){M={addedVideoId:M,action:"ACTION_ADD_VIDEO"};v&&(M.addedVideoPosition=v+h);t.pendingUpdates.push(M)}),oX(this)):l1g(this,H.onCreateListCommand)};
var U3r=function(f,H,v,t,M){xrg(f.videoIds,H,v);H>f.currentIndex&&v<=f.currentIndex?f.JSC$12840_setCurrentIndex(f.currentIndex+1):H===f.currentIndex?f.JSC$12840_setCurrentIndex(v):H<f.currentIndex&&v>=f.currentIndex&&f.JSC$12840_setCurrentIndex(f.currentIndex-1);f.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:t,movedSetVideoIdPredecessor:M});oX(f)},l1g=function(f,H){Joh(f,"OBSOLETE");
f.currentCreateRequest=e2C(f.JSC$12840_playlistNetworkManager,H,f.videoIds);_.Ze(f.currentCreateRequest,function(){f.currentCreateRequest=void 0}).then(function(v){f.setListId(v.playlistId);
f.pendingUpdates.length>0?oX(f):LdC(f)})},oX=function(f){if(f.pendingUpdates.length!==0&&(f.currentRefreshRequest&&f.currentRefreshRequest.cancel("OBSOLETE"),!f.currentUpdateRequest&&!f.currentCreateRequest)){var H=f.pendingUpdates.splice(0,f.pendingUpdates.length);
f.currentUpdateRequest=f.JSC$12840_playlistNetworkManager.updatePlaylist(f.listId,H);_.Ze(f.currentUpdateRequest,function(){f.currentUpdateRequest=void 0}).then(function(){f.pendingUpdates.length>0?oX(f):LdC(f)}).thenCatch(function(){f.pendingUpdates.unshift.apply(f.pendingUpdates,_.pS(H))})}},LdC=function(f){f.currentRefreshRequest=_.x3H(f.JSC$12840_playlistNetworkManager,f.listId,f.currentIndex,f.videoIds[f.currentIndex]);
_.Ze(f.currentRefreshRequest,function(){f.currentRefreshRequest=void 0}).then(function(H){f.JSC$12840_updateCallback(H.playlistId,H.playlistPanelRenderer,H.autoplayRenderer)})};
D7.prototype.size=function(){return this.videoIds.length};var Bz9=function(f,H,v,t){t=t===void 0?[]:t;D7.call(this,f,H,v,t);this.JSC$12840_playlistNetworkManager=f;this.listId=H;this.JSC$12840_updateCallback=v;this.videoIds=t};
_.e(Bz9,D7);_.nO=function(f,H,v,t,M,h,y){M=M===void 0?[]:M;y=y===void 0?fh:y;D7.call(this,f,H,v,M);this.JSC$12840_playlistNetworkManager=f;this.listId=H;this.JSC$12840_updateCallback=v;this.onAuthChange=t;this.videoIds=M;this.storage=h;this.cookieReader=y;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.OR(_.nN,this.checkLoggedInStatusChange.bind(this),1E3)};
_.e(_.nO,D7);_.R=_.nO.prototype;_.R.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.OR(_.nN,this.checkLoggedInStatusChange.bind(this),1E3)};
_.R.JSC$12840_setCurrentIndex=function(f){D7.prototype.JSC$12840_setCurrentIndex.call(this,f);this.store()};
_.R.delete=function(){_.nN.cancelJob(this.queueSapisIdJob);D7.prototype.delete.call(this)};
_.R.setListId=function(f){D7.prototype.setListId.call(this,f);this.store()};
_.R.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var z2Z=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],Fdo=["playerResponse","videoDetails"],roh=["response","currentVideoEndpoint","watchEndpoint","videoId"],Kdg=["response","currentVideoEndpoint","watchEndpoint","playlistId"],D3h=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],oMa=["response","contents","twoColumnWatchNextResults","playlist","playlist"],nMb=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
pOT=["response","contents","twoColumnWatchNextResults"];var pO={},qL5=(pO.WEB_UNPLUGGED="^unplugged/",pO.WEB_UNPLUGGED_ONBOARDING="^unplugged/",pO.WEB_UNPLUGGED_OPS="^unplugged/",pO.WEB_UNPLUGGED_PUBLIC="^unplugged/",pO.WEB_CREATOR="^creator/",pO.WEB_KIDS="^kids/",pO.WEB_EXPERIMENTS="^experiments/",pO.WEB_MUSIC="^music/",pO.WEB_REMIX="^music/",pO.WEB_MUSIC_EMBEDDED_PLAYER="^music/",pO.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",pO);var p55,e2C;p55=function(f,H){this.networkManager=f;this.innertubeTransportService=H};
e2C=function(f,H,v){if(!_.U(H,_.uP))return _.DI(Error("Ff"));_.U(H,_.uP).videoIds=v;v={create_playlist_title:_.ZC("QUEUE",void 0,"Queue")};return TtN(_.AE(f.innertubeTransportService,H,v),iWs)};
_.x3H=function(f,H,v,t){H={videoId:t,playlistId:H,playlistIndex:v};v=_.tt(QtH);return TtN(_.Q8(f.innertubeTransportService,H,v),wp_)};
p55.prototype.updatePlaylist=function(f,H){return TtN(_.AE(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:f,actions:H}}),k$b)};var QeT=function(f){this.storage=f},uC_;
QeT.prototype.store=function(f,H){H=H===void 0?0:H;if(this.storage&&f.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",f),this.storage.set("TLPQindex",String(H)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(v){}};
QeT.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
QeT.prototype.getPlaylistId=function(){if(!this.storage)return null;var f=null;try{f=this.storage.get("TLPQplaylist")}catch(H){}return f};var t5r=["navigationEndpoint","watchEndpoint","videoId"],vIb=["nextButtonVideo","watchEndpoint","videoId"];_.a9=new _.iN("NETWORK_TOKEN");_.fT=new _.iN("PAGE_TOKEN");_.u3=new _.iN("PLAYLIST_TOKEN");var a1v;a1v=new _.iN("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.PS=new _.iN("INNERTUBE_TRANSPORT_TOKEN");var Pnh,aX,CnT,EMZ,coo,XOH;Pnh=new Set(["ci","cr","carml"]);aX=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$12887_parkedJobs=new Map;this.parkedProcessors=new Map};
_.PL=function(){aX.instance||(aX.instance=new aX);return aX.instance};
aX.prototype.onAny=function(f){return _.GgZ(this,f,2)};
aX.prototype.parkOrScheduleJob=function(f,H,v,t,M){_.Gu(this,v)?_.Zb().addJob(f,H,t):(M&&(f=CnT(f),EMZ(this,f,H,v,M)),M=this.JSC$12887_parkedJobs.get(v),M||(this.JSC$12887_parkedJobs.set(v,[]),M=this.JSC$12887_parkedJobs.get(v)),M.push({job:f,priority:H,delay:t}))};
aX.prototype.addListener=function(f,H,v){v&&(H=CnT(H),EMZ(this,H,0,f,v));v=this.parkedProcessors.get(f);v||(this.parkedProcessors.set(f,[]),v=this.parkedProcessors.get(f));v.push(H)};
aX.prototype.processSignal=function(f){if(!_.Gu(this,f)){this.inProgressSignals.add(f);var H=this.JSC$12887_parkedJobs.get(f);if(H){H=_.V(H);for(var v=H.next();!v.done;v=H.next())v=v.value,_.Zb().addJob(v.job,v.priority,v.delay);this.JSC$12887_parkedJobs.delete(f)}if(H=this.parkedProcessors.get(f)){H=_.V(H);for(v=H.next();!v.done;v=H.next())v=v.value,v();this.parkedProcessors.delete(f)}this.signals.push(f);this.inProgressSignals.delete(f)}};
_.Gu=function(f,H){return Pnh.has(H)||_.P6("IS_HOMEPAGE_COLD")||_.P6("IS_RESULTS_PAGE_COLD")||_.P6("IS_WATCH_PAGE_COLD")?f.signals.indexOf(H)>=0:!0};
CnT=function(f){var H=!1;return function(){H||(H=!0,f())}};
EMZ=function(f,H,v,t,M){if(Nzh.has(t))_.Zb().addJob(H,v,M);else{var h=f.compoundSignals.get(t);h&&_.Zb().addJob(function(){_.Gu(f,t)||(h.isTimeoutConditionSatisfied?_.Zb().addJob(H,v):h.timeoutConditionObservers.push(function(){_.Zb().addJob(H,v)}))},v,M)}};
_.GgZ=function(f,H,v){if(H.length>1){var t=[],M=Object.create(null);H=_.V(H);for(var h=H.next();!h.done;h=H.next())h=h.value,M[h]||(t.push(h),M[h]=!0);H=t}if(H.length===1)return H[0];h=H;t="";M=v===2?"|":"&";h.sort();h=_.V(h);for(var y=h.next();!y.done;y=h.next())t+=y.value+M;if(!f.compoundSignals.get(t)){M=0;h=[];y=_.V(H);for(var m=y.next();!m.done;m=y.next())m=m.value,M++,_.Gu(f,m)||h.push(m);(v=v===2)&&M>h.length||!v&&!h.length?f.signals.push(t):coo(f,t,v,H,h)}return t};
coo=function(f,H,v,t,M){var h=M.length,y=function(){v||--h===0?f.processSignal(H):XOH(f,H)};
M=_.V(M);for(var m=M.next();!m.done;m=M.next())f.addListener(m.value,y);f.compoundSignals.set(H,{signals:t,isOnAny:v,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});XOH(f,H)};
XOH=function(f,H){if(!_.Gu(f,H)){var v=f.compoundSignals.get(H);if(v&&!v.isTimeoutConditionSatisfied){for(var t=!1,M=0,h=0,y=_.V(v.signals),m=y.next();!m.done;m=y.next()){var W=m.value;m=!_.Gu(f,W);Nzh.has(W)?t=!0:(W=f.compoundSignals.get(W))?m&&!W.isTimeoutConditionSatisfied&&(h++,v.isInitialized||W.timeoutConditionObservers.push(function(){XOH(f,H)})):m&&M++}v.isInitialized=!0;
v.isOnAny?t&&(v.isTimeoutConditionSatisfied=!0):M===0&&h===0&&(v.isTimeoutConditionSatisfied=!0);if(v.isTimeoutConditionSatisfied)for(v=_.V(v.timeoutConditionObservers),t=v.next();!t.done;t=v.next())t=t.value,t()}}};
aX.prototype.processSignal=aX.prototype.processSignal;aX.prototype.parkOrScheduleJob=aX.prototype.parkOrScheduleJob;aX.prototype.onAny=aX.prototype.onAny;_.qJ("ytsignals.getInstance",_.PL);aX.prototype.onAny=aX.prototype.onAny;aX.prototype.parkOrScheduleJob=aX.prototype.parkOrScheduleJob;aX.prototype.processSignal=aX.prototype.processSignal;var Nzh=new Set(["eop","eocs","dl","pcl"]);_.o0=new _.iN("MINIPLAYER_SERVICE");var CO,Aor,b_n;CO=function(f,H,v){var t=_.A7.getInstance();if(!uC_){var M=new dOR;var h=void 0,y=_.a8("ID_TOKEN");y&&M.isAvailable()&&(h=new zE(M,"yt-queue"+y));uC_=new QeT(h)}M=uC_;h=_.PL();this.JSC$12894_actionRouter=t;this.pageManager=f;this.playlistManager=H;this.JSC$12894_playlistNetworkManager=v;this.storage=M;this.signals=h;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.EI=function(){if(!Aor){var f=_.t8(),H=f.resolve(_.vh(_.fT)),v=f.resolve(_.vh(_.a9)),t=f.resolve(_.vh(_.u3));f=f.resolve(_.PS);Aor=new CO(H,t,new p55(v,f))}return Aor};
b_n=function(f,H,v){if(v){var t;if(((t=f.responsePlaylistData)==null?void 0:t.playlistId)!==v)return}f.responsePlaylistData&&(v=Yhr(H,f.responsePlaylistData),f.responsePlaylistData=(0,_.QA.unsafeClone)(f.responsePlaylistData),$W_(f.responsePlaylistData,v));v=f.temporaryItems.findIndex(function(M){return M.videoId===H});
v>-1&&f.temporaryItems.splice(v,1);_.NI(f,_.cL(f,f.response?f.response.autoplayRenderer:void 0))};
_.i_H=function(f,H){if(f.responsePlaylistData){var v=mWR(H,f.responsePlaylistData);$W_(f.responsePlaylistData,v);if(f.queueProxy){var t=f.queueProxy;v<0||(t.videoIds.splice(v,1),v<t.currentIndex&&t.JSC$12840_setCurrentIndex(t.currentIndex-1),t.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:H}),oX(t))}}_.NI(f,_.cL(f,f.response?f.response.autoplayRenderer:void 0))};
CO.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.NI(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
CO.prototype.setPlaylistData=function(f,H,v){this.temporaryItems=[];this.listId=f;this.responsePlaylistData=H;_.NI(this,_.cL(this,v))};
var kgH=function(f){return(f==null?0:f.playlistId)?f.playlistId:"PPSV"},Tzh=function(f){return f&&f.playlistId?f.playlistId==="PPSV"?!0:$IT(_.vS().getState().entities,f.playlistId):!1};
CO.prototype.isPlayingOfflineVideo=function(){return this.response?Tzh(this.response):!1};
CO.prototype.closeMiniplayer=function(f){var H=this.queueProxy&&this.queueProxy.size()<=1,v=_.t8().resolve(_.o0);if(!this.queueProxy||H)this.queueProxy&&this.clearQueue(),v.close(!0);else{v.pipController.getWindow()&&window.focus();H=this.responsePlaylistData;var t=this.temporaryItems.length+(H&&H.contents?H.contents.length:0);H=_.ZC("QUEUE_CLEARED_UNPLURALIZED")||_.JX("QUEUE_CLEARED",t);H=_.ht(H);v=_.ZC("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");t=_.ZC("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.JX("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",t);var M=_.ZC("MINIPLAYER_CLOSE",void 0,"Close"),h=_.ZC("CANCEL",void 0,"Cancel");_.r_(this.JSC$12894_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.qO(v),dialogMessages:[_.qO(t)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.qO(M),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
H]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.qO(h)}}}}}}],f)}};
_.cL=function(f,H){var v={},t=f.response;v.autoplayRenderer=H;if(!f.responsePlaylistData&&!f.temporaryItems.length)return!t||!t.hasRelatedVideoData&&_.J("kevlar_prefetch_data_augments_network_data")||(v.playerData={rvs:t.relatedVideoArgs,endScreenRenderer:t.endScreenRenderer}),v;v.playerData={};if(f.index===void 0)return _.oO(Error("Hf")),v;v.panel=f.responsePlaylistData?(0,_.QA.unsafeClone)(f.responsePlaylistData):{titleText:_.qO(_.ZC("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
H=v.panel;if(H.contents)for(var M=_.V(f.temporaryItems),h=M.next();!h.done;h=M.next())H.contents.push({playlistPanelVideoRenderer:h.value});f.queueProxy&&t&&t.playingVideo&&t.playingVideoId&&!y_B(t.playingVideoId,v.panel)&&(H=t.playingVideo,M=v.panel,h=f.index,M.contents&&M.contents.splice(h===void 0?0:h,0,{playlistPanelVideoRenderer:H}));t&&t.playingVideoId&&(H=f.index,M=v.panel,H=!M.contents||H>=M.contents.length?void 0:M.contents[H].playlistPanelVideoRenderer,H&&H.videoId===t.playingVideoId||(H=
Yhr(t.playingVideoId,v.panel),f.index=H!==-1?H:f.index?f.index-1:0));H=V5e(f.index+1,v.panel);M=void 0;f.index>0&&(M=V5e(f.index-1,v.panel));if(M||H)v.autoplayRenderer=M5r(H,M,v.autoplayRenderer);!H&&(t==null?0:t.relatedVideoArgs)&&(v.playerData.rvs=t.relatedVideoArgs);t=t?t.playlistIndexOffset:0;f.queueProxy?gIv(v.panel,f.index,t,RBb,!0,!0,!0):gIv(v.panel,f.index,t);v.playerData.playlistPanelRenderer=v.panel;return v};
CO.prototype.openToast=function(f){_.t8().resolve(_.o0).openToast(f,_.ZC("ADDED_TO_QUEUE",void 0,"Added to queue"))};
CO.prototype.isMiniplayerActive=function(){return _.t8().resolve(_.o0).isMiniplayerActive()};
_.NI=function(f,H){f.playlistManager.setAutoplayRenderer(H.autoplayRenderer||null);f.playlistManager.setPlaylistData(H.panel||null);H.playerData&&f.playlistManager.setPlayerPlaybackControlData(H.playerData)};var ShE="#";var wOo={},q_g={},f2M={},Hkn={},vC_={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:(wOo.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",wOo),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:(q_g.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",q_g),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:(f2M.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",f2M),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:(Hkn.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",Hkn),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 wG_=[{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:vC_},{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:vC_}}];var Cmr;_.I9=[[["d3Nka2luZCNyeHJ2d3lqbW4=","dXZhbHVlI2kzb2N6ZzdvczNq"],"d0FEX1BMQUNFTUVOVF9LSU5EX1NUQVJUI2YxMnZmbmY0bWRp"]];
Cmr=[[["bWFyeSNmc25rd3NyZ3V5cDdwcmk=",null,null],[null,["LWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVyI2hmdm8zN2YyMWc1eXl0ZC10d28tY29sdW1u","IzRhMGQ0bHd2NGxlb3N0eWxlLXNjb3Bl"],null],["I2hib29va2t2amI5a21hc3RoZWFkLWFk",["bDB5dGQtcmljaC1ncmlkLXJlbmRlcmVyIzZ4MzZ3MXZ1bDU="],null],[null,["Zmd5dGQtcmljaC1ncmlkLXJlbmRlcmVyI3MxOW1ja3JkY2c=","I2R6ZWdpOXFsbDZ1OHN0eWxlLXNjb3Bl"],null],[null,["dGQtYmFubmVyLXByb21vLXJlbmRlcmVyI2xxbnYzeGhudzFwYXk=","I28xOXRmODZpZjJ2MnN0eWxlLXNjb3Bl"],null],[null,["OHB1aHl0ZC1hZC1zbG90LXJlbmRlcmVyI3ByZWRkc2pw"],
null]],[["cyNzczB6MzYybDZ3cnlwbGF5ZXItYWQ=",null,null]]];_.gZ=["azJvc2J6b3F4Z2xvYmFsQ2FsbGJhY2tzI2Y3NA==","bmZmb25BYm5vcm1hbGl0eURldGVjdGVkI3ZyamI1cjc0eA==","a2lwIzgzdnhxdjV2aDF3am9uQWRT","aW92djFyYXdfcGxheWVyX3Jlc3BvbnNlIzlmdXl3ZXY=","bG90cyNya2VvY2VhdTNkeHZhZFM="];_.Xz="azJvc2J6b3F4Z2xvYmFsQ2FsbGJhY2tzI2Y3NA== bmZmb25BYm5vcm1hbGl0eURldGVjdGVkI3ZyamI1cjc0eA== a2lwIzgzdnhxdjV2aDF3am9uQWRT aW92djFyYXdfcGxheWVyX3Jlc3BvbnNlIzlmdXl3ZXY= X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzI2d6dGNpdnRpNDF2eHdlYl9wbGF5bGlzdA== X2VmIzNsc2h4cDNzcG91d2FiX3Nh bG90cyNya2VvY2VhdTNkeHZhZFM=".split(" ");var AG;AG=function(f,H,v){this.bny=f;this.isAsync=H;this.bdt=v};
_.m2r=[new AG("b.f_",!1,0),new AG("j.s_",!1,2),new AG("r.s_",!1,4),new AG("e.h_",!1,6),new AG("i.s_",!0,8),new AG("s.t_",!1,10),new AG("p.h_",!1,12),new AG("s.i_",!1,14),new AG("f.i_",!1,16),new AG("a.b_",!1,18),new AG("a.o_",!1),new AG("g.o_",!1,22),new AG("p.i_",!1,24),new AG("p.m_",!1),new AG("n.k_",!0,20),new AG("i.f_",!1),new AG("a.s_",!0),new AG("m.c_",!1),new AG("n.h_",!1,26),new AG("o.p_",!1),new AG("m.p_",!0,28),new AG("o.a_",!1),new AG("d.p_",!1),new AG("e.i_",!1)].reduce(function(f,H){f[H.bny]=
H;return f},{});var tuh=function(){};
tuh.prototype.flush=function(f,H){f=f===void 0?[]:f;H=H===void 0?!1:H;if(_.J("enable_client_streamz_web")){f=_.V(f);for(var v=f.next();!v.done;v=f.next())v=pvT(v.value),this.rootSpec&&_.eV(v,2,this.rootSpec),v={serializedIncrementBatch:_.QG(v.JSC$9598_serializeBinary())},_.Kb("streamzIncremented",v,{sendIsolatedPayload:H})}};
var Zme=function(){};
_.e(Zme,tuh);var Mun=function(f){var H=new zqb;var v=new LLg;v=_.rr(v,1,"botguard");f=_.rr(v,2,f);this.rootSpec=_.Lo(H,1,FLv,f)};
_.e(Mun,tuh);var $z,hhH=new Map;var XGE,lu_,KyB,LyN,zBg,PmE,bme,uiR;XGE=2;lu_=2;KyB=2;LyN=2;zBg=2;PmE=2;bme=2;uiR=new FvC;var VuH,y1a,YJH;VuH=function(){this.ongoingFlowNonces=new Map};
_.Zn=function(){y1a||(y1a=new VuH);return y1a};
_.jc=function(f,H,v){return{eventType:{flowEventNamespace:f,flowEventType:H},metadata:v,statusCode:void 0,csn:void 0,can:void 0}};
_.Wn5=function(f,H){var v=_.Zn(),t=YJH(v,H,!0);_.s6(v,f,H,t)};
_.s6=function(f,H,v,t){f={flowNonce:t||YJH(f,v),flowType:v,flowEventType:H.eventType};H.metadata&&(f.flowMetadata=H.metadata);H.statusCode!==void 0&&(f.flowEventStatus=H.statusCode);H.csn&&(f.csn=H.csn);H.can&&(f.can=H.can);_.Kb("flowEvent",f,void 0)};
YJH=function(f,H,v){v=v===void 0?!1:v;var t=f.ongoingFlowNonces.get(H);if(!t||v)t=nP(16),f.ongoingFlowNonces.set(H,t);return t};_.mUb=new zdv;var SsR={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch"};var b3=function(f,H,v,t,M,h,y){v=v===void 0?!1:v;t=t===void 0?!1:t;h=h===void 0?_.EI():h;this.hasRun=!1;this.lQA=f;this.ngI=H;this.gK1=v;this.fromHistory=t;this.previousVideoId=M;this.rB6=h;this.tempData=y;this.e0I=new _.rxg};
_.e(b3,qQ);b3.prototype.validate=function(f){return!(!f.data.playerResponse||f.data.page!=="watch"&&f.data.page!=="learning_journey_watch"&&f.data.page!=="shorts"||this.hasRun)};
b3.prototype.handle=function(f){var H=this,v=_.U(f.endpoint,_.wI),t=_.U(f.endpoint,_.zD);if(_.J("kevlar_continue_playback_without_player_response")&&(v==null?0:v.videoId)&&this.previousVideoId&&(v==null?void 0:v.videoId)===this.previousVideoId&&(v==null?0:v.continuePlayback)&&!this.fromHistory)this.lQA.resolve();else{var M={};v?M.watch_endpoint=v:t&&(M.watch_endpoint=t,t.endTimeSeconds&&(M.end=t.endTimeSeconds));f.data.page==="watch"?(f.data.filler||this.gK1||(_.ar("cfg"),_.A7.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(M,$UZ(this,f.endpoint)),_.J("enable_masthead_quartile_ping_fix")&&Object.assign(M,Weh(this)),Object.assign(M,void 0),f.data.forceExternalPlaylist&&(M.external_list=!0)):f.data.page==="shorts"?_.A7.getInstance().triggerAction("yt-start-loading-shorts"):f.data.page==="learning_journey_watch"&&_.A7.getInstance().triggerAction("yt-start-loading-learning-journey");if(v=this.ngI()){try{v.loadVideoWithPlayerResponse(f.data.playerResponse,M),v.getPlayerPromise().then(this.lQA.resolve)}catch(h){_.oO(h),
this.lQA.resolve()}this.hasRun=!0;v.getPlayerPromise().then(function(h){h.addEventListener("onAbnormalityDetected",function(){var y=f.data.playerResponse,m=h.getVideoData().cpn;bme=0;_.RhZ=m;if(m=YsT(y))H.e0I.increment("IN_PLAYER"),_.Jt(5),_.J("ab_st_vid_ks")?h.pauseVideo(!0):h.stopVideo(),y.playabilityStatus=Object.assign({},y.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:m}}),y.videoDetails=void 0,_.A7.getInstance().triggerOptionalAction("yt-updated-playability-status",
y.playabilityStatus)})})}else _.pb(Error("Kf"))}};
var $UZ=function(f,H){var v=_.U(H,_.wI);if(H&&v&&v.playlistId&&v.videoId&&(f=f.rB6,f.queueProxy?(f=f.queueProxy,v=f.listId===v.playlistId?f.attributionData.get(v.videoId):void 0):v=void 0,v))return{queue_info:v}},Weh=function(f){var H;
if((H=f.tempData)==null?0:H.adpings)return{adpings:f.tempData.adpings}};var i3=function(f,H,v){this.hasRun=!1;this.wP7=f;this.r4H=H;this.iYW=v};
_.e(i3,qQ);i3.prototype.validate=function(f){return!!_.QA.getValueByKeys.apply(null,[f.data].concat(_.pS(pOT)))};
i3.prototype.handle=function(f){var H=this;this.wP7.promise.then(function(){var v=f.data;var t=_.QA.getValueByKeys.apply(null,[v].concat(_.pS(z2Z))),M=_.QA.getValueByKeys.apply(null,[v].concat(_.pS(oMa))),h=_.QA.getValueByKeys.apply(null,[v].concat(_.pS(roh)));var y=(y=_.QA.getValueByKeys.apply(null,[v].concat(_.pS(Fdo))))?{videoId:y.videoId,thumbnail:y.thumbnail,title:y.title?_.qO(y.title):void 0,shortBylineText:y.author?_.qO(y.author):void 0}:void 0;var m=void 0;_.J("web_get_playlist_id_from_current_endpoint_ks")||
(m=_.QA.getValueByKeys.apply(null,[v].concat(_.pS(Kdg))));var W=_.QA.getValueByKeys.apply(null,[v].concat(_.pS(nMb))),I=_.QA.getValueByKeys.apply(null,[v].concat(_.pS(D3h))),S=!!W||!!I&&!!I.results&&I.results.length>0,d=0;M&&M.currentIndex&&M.localCurrentIndex&&(d=M.currentIndex-M.localCurrentIndex);M&&M.playlistId&&(m=M.playlistId);v={rawResponse:v,autoplayRenderer:t,hasRelatedVideoData:S,playingVideo:y,playingVideoId:h,playlistPanelRenderer:M,playlistId:m,playlistIndex:M&&M.currentIndex,relatedVideoArgs:W,
endScreenRenderer:I,playlistIndexOffset:d};a:{t=H.iYW;M=H.r4H;t.response=v;if(Tzh(v))t.downloadPlaylistProxy&&t.downloadPlaylistProxy.getPlaylistId()===kgH(v)||(t.downloadPlaylistProxy=new Z_n(kgH(v),t.setPlaylistData.bind(t),t.isPlayingOfflineVideo.bind(t))),t.responsePlaylistData=t.downloadPlaylistProxy.getPlaylistData(),t.listId=kgH(v),t.index=0;else if(v.playlistPanelRenderer&&v.playlistId&&v.autoplayRenderer)v.playlistId.startsWith("TLPQ")?t.queueProxy?t.listId===v.playlistId?(t.index=v.playlistIndex,
t.responsePlaylistData=v.playlistPanelRenderer,t.queueProxy.JSC$12840_setCurrentIndex(t.index)):v.playingVideoId&&t.index!==void 0&&M.clientParams.autoSaveToQueue&&(t.index+=1,t.queueProxy.JSC$12840_setCurrentIndex(t.index),t.queueProxy.addVideos([v.playingVideoId],{},t.index)):(t.queueProxy=new _.nO(t.JSC$12894_playlistNetworkManager,v.playlistId,t.setPlaylistData.bind(t),t.clearQueue.bind(t),_.WyR(v.playlistPanelRenderer),t.storage),t.responsePlaylistData=v.playlistPanelRenderer,t.listId=v.playlistId,
t.index=v.playlistIndex):(t.index=v.playlistIndex,t.listId!==v.playlistId&&t.clearQueue(),t.responsePlaylistData=v.playlistPanelRenderer,t.listId=v.playlistId,t.playlistProxy=new Bz9(t.JSC$12894_playlistNetworkManager,v.playlistId,t.setPlaylistData.bind(t),_.WyR(v.playlistPanelRenderer)));else if(!t.queueProxy)t.responsePlaylistData=void 0;else if(v.playingVideoId&&M.clientParams.autoSaveToQueue){if(t.index===void 0){_.oO(Error("Gf"));t.clearQueue();break a}t.queueProxy.videoIds.includes(v.playingVideoId)||
(t.index+=1,t.queueProxy.JSC$12840_setCurrentIndex(t.index),t.queueProxy.addVideos([v.playingVideoId],{},t.index))}_.NI(t,_.cL(t,t.response.autoplayRenderer))}})};var Okv=function(f,H){H=H===void 0?_.EI():H;go.call(this);this.hI.push(new i3(this.lT,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},H));this.hI.push(new b3(this.lT,f,!1,!1));_.J("web_response_commands_chunk_processor")&&this.hI.push(new IX)};
_.e(Okv,go);Okv.prototype.processChunk=function(f){f&&f.data.player===void 0&&this.lT.resolve();go.prototype.processChunk.call(this,f)};var kP=function(f,H){f=f===void 0?{layer:0}:f;this.hasRun=!1;this.createScreenConfig=f;this.yFW=H};
_.e(kP,qQ);kP.prototype.validate=function(f){return!(this.hasRun||!f.endpoint)};
kP.prototype.handle=function(f){var H=_.UV(),v,t,M=(t=_.U((v=f.endpoint)==null?void 0:v.commandMetadata,_.jG))==null?void 0:t.rootVe;this.yFW&&M?_.y8(H,M,this.yFW,this.createScreenConfig):tY9(H,f.endpoint,this.createScreenConfig);this.hasRun=!0};var Tu=function(f,H){this.hasRun=!1;this.srI=f;this.previousVideoId=H};
_.e(Tu,qQ);Tu.prototype.validate=function(f){return _.J("kevlar_continue_playback_without_player_response")&&(f=_.U(f.endpoint,_.wI),(f==null?0:f.videoId)&&this.previousVideoId&&(f==null?void 0:f.videoId)===this.previousVideoId&&(f==null?0:f.continuePlayback))?!1:this.srI.eYi===0};
Tu.prototype.handle=function(f){_.A7.getInstance().triggerAction("yt-stop-old-player",f.data,!0)};var gC9=function(f){f=f===void 0?{layer:0}:f;go.call(this);this.hI.push(new Tu(this));this.hI.push(new kP(f));this.hI.push(new OI(f))};
_.e(gC9,go);var wo=function(){qQ.apply(this,arguments)};
_.e(wo,qQ);wo.prototype.validate=function(f){return!!f.data.preconnect};
wo.prototype.handle=function(f){_.u0("bc");f=_.V(f.data.preconnect);for(var H=f.next();!H.done;H=f.next())H=H.value,(new Image).src=H};var I2o=function(f,H,v,t,M,h,y){v=v===void 0?{layer:0}:v;h=h===void 0?_.EI():h;go.call(this);if(t)if(M){M=h;this.hI.push(new i3(this.lT,H,M));this.hI.push(new wo);var m,W;this.hI.push(new b3(this.lT,f,!1,!((m=H.clientParams)==null||!m.fromHistory),(W=H.clientParams)==null?void 0:W.previousVideoId,M,H.tempData));var I;this.hI.push(new Tu(this,(I=H.clientParams)==null?void 0:I.previousVideoId));var S;(S=H.clientParams)!=null&&S.fromHistory||(v.layer||(v=Object.assign({},v,{layer:0})),this.hI.push(new kP(v,
y)),this.hI.push(new OI(v)))}else this.hI.push(new i3(this.lT,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},h)),this.hI.push(new b3(this.lT,f,!1,!1));else this.hI.push(new Tu(this)),this.hI.push(new kP(v)),this.hI.push(new OI(v));_.J("web_response_commands_chunk_processor")&&t&&this.hI.push(new IX)};
_.e(I2o,go);I2o.prototype.processChunk=function(f){f&&f.data.player===void 0&&this.lT.resolve();go.prototype.processChunk.call(this,f)};var SJo=function(){this.hasRun=this.hasRun=!1};
_.e(SJo,qQ);SJo.prototype.validate=function(f){return!this.hasRun&&!(!f.data.csn||!f.data.rootVe)};
SJo.prototype.handle=function(f){this.hasRun=!0;_.P7(f.data.csn,f.data.rootVe,3)};var dUh=function(f,H,v){v=v===void 0?{layer:0}:v;go.call(this);this.hI.push(new b3(this.lT,f));this.hI.push(new kP(v));this.hI.push(new OI(v))};
_.e(dUh,go);var j$C=function(f,H,v,t,M){v=v===void 0?{layer:0}:v;t=t===void 0?_.EI():t;go.call(this);var h=!!H&&!!H.clientParams&&!!H.clientParams.miniplayer;h&&this.hI.push(new SJo);this.hI.push(new i3(this.lT,H,t));this.hI.push(new wo);var y,m;this.hI.push(new b3(this.lT,f,h,!((y=H.clientParams)==null||!y.fromHistory),(m=H.clientParams)==null?void 0:m.previousVideoId,t,H.tempData));var W;this.hI.push(new Tu(this,(W=H.clientParams)==null?void 0:W.previousVideoId));var I;(I=H.clientParams)!=null&&I.fromHistory||
(v.layer||(v=Object.assign({},v,{layer:h?3:0})),this.hI.push(new kP(v,M)),this.hI.push(new OI(v)));_.J("web_response_commands_chunk_processor")&&this.hI.push(new IX)};
_.e(j$C,go);var qI,J1o;qI={};
_.s$g=(qI["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},qI["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},qI["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},qI["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},qI["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},qI["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},qI["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},qI);_.fM=new _.P8("yt-edu");_.ZkH=function(){this.JSC$12998_eduDisplayedThisLoad_={}};
J1o=function(f){var H=_.ZkH.getInstance();var v=_.VQ("kevlar_tooltip_impression_cap");H=v&&parseInt(_.fM.get(f+"-impression")||0,10)>=v||_.fM.get(f+"-dismissed")?!1:(v=_.s$g[f])&&!H.JSC$12998_eduDisplayedThisLoad_[v.setKey||f]&&(v.titleText&&_.ZC(v.titleText)||v.bodyText&&_.ZC(v.bodyText))?!0:!1;if(!H)return null;H=_.s$g[f];if(!H)return null;v=H.bodyText?_.ZC(H.bodyText):void 0;var t=H.titleText?_.ZC(H.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:H.position,popup:{bubbleHintRenderer:{text:t?
_.qO(t):void 0,detailsText:v?_.qO(v):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.qO(_.ZC("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:f}}]}}}}}}}},{eduImpressionAction:{key:f}}]};
_.ws(_.ZkH);var OXv=!1;for(var l2M="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),UUH=[],HH=6;HH>=1;HH--)UUH.push({columnCount:HH,query:HH==1?0:HH*2*107-4+32,className:"grid-"+HH+"-columns",width:HH*2*107+"px"});_.Lev=function(f){this.actionRouter_=f=f===void 0?_.A7.getInstance():f;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.ehT(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.ehT=function(f){var H=f.miniGuideVisible_?72:0,v=f.documentWidth_-(f.guidePersistentAndVisible_?240:H);return UUH.find(function(t){return v>t.query})};
_.ws(_.Lev);var xUM=function(){var f=this;this.JSC$13010_keyboardInUse=!1;document.addEventListener("keydown",function(){f.onKeydown()});
document.addEventListener("mousedown",function(){f.JSC$13010_keyboardInUse=!1})},B2M;
xUM.prototype.isKeyBoardInUse=function(){return this.JSC$13010_keyboardInUse};
xUM.prototype.onKeydown=function(){this.JSC$13010_keyboardInUse=!0};var zh9,MB;_.vH=new _.P8("yt-mentions");_.tp=function(){};
zh9=function(f,H){return MB(H,"drag-to-reorder-edu-displayed")};
MB=function(f,H,v,t,M,h){v=v===void 0?"OPEN_POPUP_POSITION_TOP":v;if(H){if(_.vH.get(H))return;_.vH.set(H,!0,t)}if(M&&h!==void 0){H=Number(_.vH.get(M)||0);if(H>=h)return;_.vH.set(M,H+1)}return[{openPopupAction:{popupType:"HINT",position:v,popup:{bubbleHintRenderer:{detailsText:f,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.ws(_.tp);var FeC,r1h,Ken;FeC=function(f,H,v,t){this.JSC$13020_taskManager_=f;this.onFulfilled_=typeof H==="function"?H:null;this.onRejected_=typeof v==="function"?v:null;this.JSC$13020_context_=t};
r1h=function(f,H){f.onFulfilled_&&_.LT(f.JSC$13020_taskManager_,function(){f.onFulfilled_.call(f.JSC$13020_context_,H)})};
Ken=function(f,H){f.onRejected_&&_.LT(f.JSC$13020_taskManager_,function(){f.onRejected_.call(f.JSC$13020_context_,H)})};
_.hp=function(f){this.JSC$13023_taskManager_=f;this.callbacks_=[]};
_.hp.prototype.then=function(f,H,v){this.callbacks_.push(new FeC(this.JSC$13023_taskManager_,f,H,v));return this};
_.hp.prototype.onSuccess=function(f){this.callbacks_.forEach(function(H){r1h(H,f)})};
_.hp.prototype.onFailure=function(f){this.callbacks_.forEach(function(H){Ken(H,f)})};
_.hp.prototype.cancel=function(){this.callbacks_.length=0};
acn(_.hp);_.jtr=null;_.xK=new _.iN("ACTIVITY_TOKEN");var Rj=function(f,H){this.serviceId=new u3C(f,H)};
Rj.prototype.toString=function(){return this.serviceId.toString()};var DU9=function(){this.internalMap={}};
_.R=DU9.prototype;_.R.contains=function(f){return Object.prototype.hasOwnProperty.call(this.internalMap,f)};
_.R.get=function(f){if(this.contains(f))return this.internalMap[f]};
_.R.set=function(f,H){this.internalMap[f]=H};
_.R.getKeys=function(){return Object.keys(this.internalMap)};
_.R.remove=function(f){delete this.internalMap[f]};var Va=function(){this.mappings=new DU9;this.errorCallbacks=new Set};
Va.prototype.getModuleId=function(f){return f.serviceId.getModuleId()};
Va.prototype.get=function(f){var H=this.mappings.get(f.toString());return oCg(this,H,f)};
Va.prototype.getMultipleAsync=function(){var f=_.NA.apply(0,arguments),H=this,v=f.map(function(W){return H.getModuleId(W)}),t=f.map(function(W){return H.mappings.get(W.toString())}).filter(function(W){return W});
if(t.length===f.length)return _.gj(t.map(function(W,I){return oCg(H,W,f[I])}));
var M=n9().loadMultiple(v);t=_.sB(v.map(function(W){return M[W]}));
var h=document.hidden,y=-1,m=_.VQ("get_async_timeout_ms",-1);m>-1&&(y=setTimeout(function(){_.pb(new _.e$("Module timeout.",v,h,document.hidden))},m));
return _.Ze(t.then(function(){return f.map(function(W){return oCg(H,H.mappings.get(W.toString()),W)})}).thenCatch(function(W){for(var I=_.V(H.errorCallbacks),S=I.next();!S.done;S=I.next())S=S.value,S(W);
throw W;}),function(){clearTimeout(y)})};
Va.prototype.registerService=function(f,H){this.mappings.set(f.toString(),{type:"mapping",value:H});return f};
var oCg=function(f,H,v){switch(H.type){case "mapping":return H.value;case "factory":return H=H.value(),f.mappings.set(v.toString(),{type:"mapping",value:H}),H;default:return _.bC(H)}};
Va.prototype.onLoadError=function(f){var H=this;this.errorCallbacks.add(f);return function(){H.errorCallbacks.delete(f)}};
_.ya=new Va;var U2r=/^[a-zA-Z0-9_\-]{11}$/;var efN=_.IH(function(){var f,H;return(H=(f=window).matchMedia)==null?void 0:H.call(f,"(prefers-reduced-motion: reduce)").matches});var nCb=_.IH(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 f=_.ES("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");f||(f=_.lS("VIDEO"),_.qJ("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
f));return!!(f&&f.canPlayType&&f.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var r3R=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var Yi;Yi=function(){this.tokenJars={};if(this.cookiesEnabled=_.J8()){var f=_.sk.get("CONSISTENCY",void 0);f&&pch(this,{encryptedTokenJarContents:f})}};
_.D2R=function(){Yi.instance||(Yi.instance=new Yi);return Yi.instance};
Yi.prototype.handleResponse=function(f,H){if(!H)throw Error("Qf");var v,t;H=((v=H.innerTubeRequest.context)==null?void 0:(t=v.request)==null?void 0:t.consistencyTokenJars)||[];var M;(f=(M=f.responseContext)==null?void 0:M.consistencyTokenJar)&&this.replace(H,f)};
Yi.prototype.replace=function(f,H){f=_.V(f);for(var v=f.next();!v.done;v=f.next())delete this.tokenJars[v.value.encryptedTokenJarContents];pch(this,H)};
var pch=function(f,H){if(H.encryptedTokenJarContents&&(f.tokenJars[H.encryptedTokenJarContents]=H,typeof H.expirationSeconds==="string")){var v=Number(H.expirationSeconds);setTimeout(function(){delete f.tokenJars[H.encryptedTokenJarContents]},v*1E3);
f.cookiesEnabled&&_.Zy("CONSISTENCY",H.encryptedTokenJarContents,v,void 0,!0)}};var Q$g,mH;Q$g=window.location.hostname.split(".").slice(-2).join(".");_.QS=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var f=_.a8("LOCATION_PLAYABILITY_TOKEN");_.a8("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=u$h(this))&&(f=this.localStorage.get("yt-location-playability-token"));f&&(this.locationPlayabilityToken=f,this.mostRecentPosition=void 0)};
_.QS.getInstance=function(){mH=_.ES("yt.clientLocationService.instance");mH||(mH=new _.QS,_.qJ("yt.clientLocationService.instance",mH));return mH};
_.QS.prototype.setLocationOnInnerTubeContext=function(f){f.client||(f.client={});if(this.mostRecentPosition)f.client.locationInfo||(f.client.locationInfo={}),f.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),f.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),f.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),f.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)f.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.QS.prototype.handleResponse=function(f){var H;f=(H=f.responseContext)==null?void 0:H.locationPlayabilityToken;f!==void 0&&(this.locationPlayabilityToken=f,this.mostRecentPosition=void 0,_.a8("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=u$h(this))&&this.localStorage.set("yt-location-playability-token",f,15552E3):_.Zy("YT_CL",JSON.stringify({loctok:f}),15552E3,Q$g,!0))};
var u$h=function(f){return f.localStorage===void 0?new _.P8("yt-client-location"):f.localStorage};
_.QS.prototype.clearLocationPlayabilityToken=function(f){f==="TVHTML5"?(this.localStorage=u$h(this))&&this.localStorage.remove("yt-location-playability-token"):_.YFE("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.QS.prototype.getCurrentPositionFromGeolocation=function(){var f=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Rf"));var H=!1,v=1E4;_.a8("INNERTUBE_CLIENT_NAME")==="MWEB"&&(H=!0,v=15E3);return new Promise(function(t,M){navigator.geolocation.getCurrentPosition(function(h){f.mostRecentPosition=h;t(h)},function(h){M(h)},{enableHighAccuracy:H,
maximumAge:0,timeout:v})})};
_.QS.prototype.createUnpluggedLocationInfo=function(f){var H={};f=f.coords;if(f==null?0:f.latitude)H.latitudeE7=Math.floor(f.latitude*1E7);if(f==null?0:f.longitude)H.longitudeE7=Math.floor(f.longitude*1E7);if(f==null?0:f.accuracy)H.locationRadiusMeters=Math.round(f.accuracy);return H};
_.QS.prototype.createLocationInfo=function(f){var H={};f=f.coords;if(f==null?0:f.latitude)H.latitudeE7=Math.floor(f.latitude*1E7);if(f==null?0:f.longitude)H.longitudeE7=Math.floor(f.longitude*1E7);return H};var a2g=function(){};
_.R=a2g.prototype;
_.R.JSC$13090_getRequest=function(f,H,v){H=H===void 0?{}:H;v=v===void 0?XkH:v;var t=H;if(this.isNavigationCommand()){var M,h=(M=_.U(f==null?void 0:f.commandMetadata,_.jG))==null?void 0:M.url;t=_.o8H(f.clickTrackingParams,!0,!1,h,this.JSC$13090_getClientScreen(t))}else t=_.o8H(f.clickTrackingParams,!1,this.includeCsn);t={context:t};if(M=this.getExtension(f))return this.JSC$13090_buildRequest(t,M,H),M=this.getApiUrl(f),h=Object.assign({},{command:f},this.getRequestConfig(f,H)),t={input:M,requestShell:k1(M),
innerTubeRequest:t,config:h},t.config.authStrategy?t.config.authStrategy.identity=v:t.config.authStrategy={identity:v},(f=this.JSC$13090_getRequestKey(f,H))&&!t.config.requestKey&&(t.config.requestKey=f),t;f=new _.e$("Error: Failed to create Request from Command.",f);_.oO(f)};
_.R.getApiUrl=function(f){var H=_.tt(this.getApiPaths(f)),v;(f=(v=_.U(f.commandMetadata,_.jG))==null?void 0:v.apiUrl)&&(H=f);return yq_(VhE(H))};
_.R.isNavigationCommand=function(){return!1};
_.R.JSC$13090_getClientScreen=function(){};
_.R.JSC$13090_getRequestKey=function(){};
_.R.getRequestConfig=function(){};
_.H7.Object.defineProperties(a2g.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var $i=function(){};
_.e($i,a2g);$i.prototype.JSC$13097_getStoreKey=function(){};
$i.prototype.JSC$13090_getRequestKey=function(f,H){H=H===void 0?{}:H;return this.JSC$13097_getStoreKey(f,H)};var GqZ;_.WH=function(f,H,v){var t=v&&v>0?v:0;v=t?Date.now()+t*1E3:0;if((t=t?(0,_.PaC)():GqZ())&&window.JSON){typeof H!=="string"&&(H=JSON.stringify(H,void 0));try{t.set(f,H,v)}catch(M){t.remove(f)}}};
_.Oz=function(f){var H=GqZ(),v=(0,_.PaC)();if(!H&&!v||!window.JSON)return null;try{var t=H.get(f)}catch(M){}if(typeof t!=="string")try{t=v.get(f)}catch(M){}if(typeof t!=="string")return null;try{t=JSON.parse(t,void 0)}catch(M){}return t};
_.g4=function(f){try{var H=GqZ(),v=(0,_.PaC)();H&&H.remove(f);v&&v.remove(f)}catch(t){}};
_.PaC=_.IH(function(){try{var f=new SF_;var H=f.isAvailable()?f:null}catch(v){return null}return H?new _.$1(H):null});
GqZ=_.IH(function(){var f=new dOR;return f.isAvailable()?new _.$1(f):null});var qi=new _.iN("ENTITY_STATE_TOKEN"),Ij=new _.iN("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var Cav=XMLHttpRequest.prototype.fetch,ECC=Cav&&Cav.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!TE?!0:!1;var SD=function(f){this.JSC$13102_storeWithEntities=f};
_.e(SD,$i);_.R=SD.prototype;_.R.getApiPaths=function(){return hfn};
_.R.getExtension=function(f){return _.U(f,_.wI)||_.U(f,_.zD)||_.U(f,MAZ)};
_.R.isNavigationCommand=function(){return!0};
_.R.JSC$13097_getStoreKey=function(f){if((_.J("kevlar_cache_on_ttl_player")||_.J("mweb_enable_shorts_innertube_player_prefetch")||_.J("mweb_use_new_history_manager")||_.J("web_shorts_prefetch_service_enabled"))&&(f=this.getExtension(f))&&f.videoId){var H={videoId:f.videoId};f.playlistId&&(H.playlistId=f.playlistId);f.playerParams&&(H.params=f.playerParams);return _.TP("player",H)}};
_.R.JSC$13090_getClientScreen=function(f){var H;return((H=f.contentPlaybackContext)==null?void 0:H.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.R.JSC$13090_buildRequest=function(f,H,v){if(_.J("enable_interstitial_entity_check")){var t=this.JSC$13102_storeWithEntities;if(H.videoId)for(var M=_.V(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),h=M.next();!h.done;h=M.next()){h=h.value;var y;var m=void 0,W=void 0,I=H.videoId,S=h;(y=t)?(I=_.SB(I+S,"interstitialInteractionStateEntity"),y=(m=(W=_.dL(y.getState().entities,"interstitialInteractionStateEntity",I))==null?void 0:W.primaryButtonClicked)!=null?m:!1):y=!1;if(y)switch(h){case "CONTENT_CHECK_REQUIRED":H.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":H.racyCheckOk=!0}}}H.videoId&&(f.videoId=H.videoId);H.playlistId&&(f.playlistId=H.playlistId);H.index!==void 0&&(f.playlistIndex=H.index+1);H.playerParams&&(f.params=H.playerParams);"startTimeSeconds"in H&&H.startTimeSeconds&&(_.J("enable_player_request_builder_start_time_floor")?f.startTimeSecs=Math.floor(H.startTimeSeconds):f.startTimeSecs=H.startTimeSeconds);v.contentPlaybackContext&&(f.playbackContext={contentPlaybackContext:v.contentPlaybackContext});v.prefetchPlaybackContext&&
(f.playbackContext=Object.assign({},f.playbackContext,{prefetchPlaybackContext:v.prefetchPlaybackContext}),f.context.request||(f.context.request={}),f.context.request.isPrefetch=!0);f.playbackContext||(f.playbackContext={});t=nCb();f.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!t,supportXhr:ECC};v.overrideMutedAtStart&&(f.overrideMutedAtStart=v.overrideMutedAtStart);f.racyCheckOk=!!H.racyCheckOk;f.contentCheckOk=!!H.contentCheckOk;!_.J("captions_prefs_killswitch")&&(v=(v=_.Oz("yt-player-caption-language-preferences"))?
v:[],v==null?0:v.length)&&(f.captionParams={viewerSelectedCaptionLangs:v})};
_.R.getRequestConfig=function(f){f=this.JSC$13097_getStoreKey(f);var H;f&&(H={storeStrategy:{storeKey:f}});_.J("web_log_player_watch_next_ticks")&&(H=H||{},H.requestTick="ps_s",H.responseTick="ps_r");return H};
SD[bN]=[qi];var d4=function(){};
_.e(d4,$i);_.R=d4.prototype;_.R.getApiPaths=function(){return QtH};
_.R.getExtension=function(f){return _.U(f,_.wI)};
_.R.isNavigationCommand=function(){return!0};
_.R.JSC$13097_getStoreKey=function(f){if((f=this.getExtension(f))&&f.videoId){var H={videoId:f.videoId};f.playlistId&&(H.playlistId=f.playlistId);f.index&&(H.index=f.index);f.params&&(H.params=f.params);return _.TP("next",H)}};
_.R.JSC$13090_getClientScreen=function(f){var H;return((H=f.contentPlaybackContext)==null?void 0:H.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.R.JSC$13090_buildRequest=function(f,H,v){H.videoId&&(f.videoId=H.videoId);H.playlistId&&(f.playlistId=H.playlistId);H.params&&(f.params=H.params);H.index!==void 0&&(f.playlistIndex=H.index);f.racyCheckOk=!(!v.racyCheckOk&&!H.racyCheckOk);f.contentCheckOk=!!H.contentCheckOk;v.contentPlaybackContext&&(f.autonavState=v.contentPlaybackContext.autonavState,f.playbackContext={vis:v.contentPlaybackContext.vis,lactMilliseconds:v.contentPlaybackContext.lactMilliseconds});v.prefetchPlaybackContext&&(f.context.request||
(f.context.request={}),f.context.request.isPrefetch=!0);_.J("captions_hats_killswitch")||(H=_.Uj().getFlag(65),H=H!=null?!H:!1,v=!!_.Oz("yt-player-sticky-caption"),f.captionsRequested=H&&v)};
_.R.getRequestConfig=function(f){f=this.JSC$13097_getStoreKey(f);var H;f&&(H={storeStrategy:{storeKey:f}});_.J("web_log_player_watch_next_ticks")&&(H=H||{},H.requestTick="wn_s",H.responseTick="wn_r");return H};
var jD=function(){};
_.e(jD,$i);jD.prototype.getApiPaths=function(){return QtH};
jD.prototype.getExtension=function(f){return _.U(f,_.GI)};
jD.prototype.JSC$13090_buildRequest=function(f,H){H.token&&(f.continuation=H.token)};var sz=function(f,H){this.playerRequestBuilder=f;this.watchNextRequestBuilder=H};
_.e(sz,$i);sz.prototype.getApiPaths=function(){return bma};
sz.prototype.getExtension=function(f){return _.U(f,_.wI)};
sz.prototype.isNavigationCommand=function(){return!0};
sz.prototype.JSC$13090_buildRequest=function(f,H,v){f.playerRequest={};this.playerRequestBuilder.JSC$13090_buildRequest(f.playerRequest,H,v);_.J("web_streaming_watch")&&(f.watchNextRequest={},this.watchNextRequestBuilder.JSC$13090_buildRequest(f.watchNextRequest,H,v))};
sz[bN]=[SD,d4];var N2_;_.Z5=new _.iN("SHORTS_CONTROLLER_TOKEN");N2_=new _.iN("SHORTS_STATE_STORE_TOKEN");var Jp=function(f,H){var v=_.NA.apply(2,arguments);f=f===void 0?0:f;_.e$.call(this,H,v);this.errorType=f;Object.setPrototypeOf(this,this.constructor.prototype)};
_.e(Jp,_.e$);var c1n,XcZ,bk9,Q__,Qk,HtE,wcn,T2h,MQb,HfC,fzn;c1n=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(f){return f+"="}).join("|"));
XcZ=RegExp(".*\\?.*playnext=1.*");_.lq=function(f,H,v,t){this.watchEndpointMap=f;this.reelWatchEndpointMap=H;this.innerTubeTransportService=v;this.fetchPbj=t};
bk9=function(f,H,v){var t=_.t8().resolve(_.vh(A1h));_.lq.instance=new _.lq(f,H,v,t)};
_.iko=function(f,H){var v=_.VQ("web_pbj_log_warning_rate",0);v=v>0&&Math.random()<v;var t;if((t=_.U(H.commandMetadata,_.jG))==null||!t.rootVe)return v&&_.pb(Error("Tf")),!1;var M;t=(M=_.U(H.commandMetadata,_.jG))==null?void 0:M.url;if(!t)return v&&_.pb(Error("Uf")),!1;if(XcZ.test(t))return!0;if(c1n.test(t))return v&&_.pb(Error("Vf`"+t)),!1;if(_.U(H,_.wI)){if(!(f.watchEndpointMap.watchNext&&f.watchEndpointMap.player||_.J("kevlar_fetch_initial_data_op_watch_client")))return v&&_.pb(Error("Mf")),!1;
f=_.VQ("web_pbj_log_warning_rate",0);f=f>0&&Math.random()<f;_.U(H,_.wI)?J3N(H)?H=!0:(f&&_.pb(Error("Nf")),H=!1):(f&&_.pb(Error("Mf")),H=!1);return H}if(_.U(H,_.zD))return lfv(H);if(_.U(H,_.Dk))return!0;f=_.XW(f.innerTubeTransportService,H);!f&&v&&_.oO(Error("Wf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(H)});return f};
Q__=function(f,H,v,t,M,h){H={url:H};if(v==null?0:v.itct)H.parentTrackingParams=v.itct;var y=_.tt(g8v);return _.Q8(f.innerTubeTransportService,H,y).then(function(m){(m=m.endpoint)||(m=_.j0);(v==null?0:v.itct)&&m&&!m.trackingParams&&(m.trackingParams=v.itct);var W=xz(m);return Qk(f,m,v,t,W,M,h)})};
Qk=function(f,H,v,t,M,h,y,m){m=m===void 0?{}:m;if(f.fetchPbj&&!_.iko(f,H)&&!_.J("force_one_platform")){m=f.fetchPbj(H);var W=_.gj(m.then(function(c){if(!c)throw Error("Xf");y(W)||h(H,c);return c}));
return W}var I,S,d={rootVe:(I=_.U(H.commandMetadata,_.jG))==null?void 0:I.rootVe,url:(S=_.U(H.commandMetadata,_.jG))==null?void 0:S.url,endpoint:H,page:M};if(_.U(H,_.wI)){var Z,l={contentPlaybackContext:_.KG(v,(Z=_.U(H.commandMetadata,_.jG))==null?void 0:Z.url,t)},L=_.bE();_.J("web_streaming_watch")&&window.TextDecoderStream?(m=kqZ(f.innerTubeTransportService,H,l,function(c){!d.response&&c.content&&(d.response=c.content);!d.playerResponse&&c.player&&(d.playerResponse=c.player);h(H,d)}),I=Y33(H),I.length&&
(d.preconnect=I,h(H,d)),T2h(m,L,d).catch(function(c){c instanceof Jp&&c.errorType===2&&_.J("web_streaming_watch_fallback")&&wcn(f,H,l,d,h,y,L)})):wcn(f,H,l,d,h,y,L);
return L.promise}if(_.U(H,_.zD)){var r;if(((r=_.U(H,_.zD))==null?void 0:r.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var n=_.bE();_.qJg(_.t8().resolve(_.Z5),H).then(function(c){fzn(f,v,t,M,h,n,c)});
return n.promise}m=_.gj();var Q;I={contentPlaybackContext:_.KG(v,(Q=_.U(H.commandMetadata,_.jG))==null?void 0:Q.url,t)};(Q=f.reelWatchEndpointMap.player)&&(Q=Q().JSC$13090_getRequest(H,I))&&(m=_.Q8(f.innerTubeTransportService,Q.innerTubeRequest,Q.input,H.clickTrackingParams,Q.config));Q=_.gj();(S=f.reelWatchEndpointMap.reelItemWatch)&&(S=S().JSC$13090_getRequest(H))&&(Q=_.Q8(f.innerTubeTransportService,S.innerTubeRequest,S.input,H.clickTrackingParams,S.config));S=_.gj();_.J("web_enable_delay_shorts_sequence_call_new")||
(Z=f.reelWatchEndpointMap.reelWatchSequence)&&_.U(H,_.zD).sequenceParams&&(I=Z().JSC$13090_getRequest(H,I))&&(S=_.Q8(f.innerTubeTransportService,I.innerTubeRequest,I.input,H.clickTrackingParams,I.config));I=_.gj(d);Z=_.bE();HfC(H,I,m,Q,S,h,y,Z);return Z.promise}var C;if(_.U(H,d2e)&&((C=_.U(H.commandMetadata,_.jG))==null?0:C.url))return m=Kng(_.Ax(PQ().location.href),_.Ax(_.U(H.commandMetadata,_.jG).url)).toString(),Q__(f,m,v,t,h,function(){return!1});
if(_.U(H,_.Dk))return h(H,d),_.gj(d);if(_.XW(f.innerTubeTransportService,H)){m=Object.assign({},{tempData:v,disableCache:v.disableCache},m);var w=_.AE(f.innerTubeTransportService,H,m).then(function(c){d.response=c;y(w)||h(H,d);return d});
return w}return _.gj(d)};
_.tQ9=function(f,H,v,t){if(_.U(H,_.wI)||_.U(H,_.zD)&&(_.J("mweb_enable_shorts_innertube_player_prefetch")||_.J("kevlar_enable_shorts_prefetch_in_sequence"))||_.U(H,MAZ)&&_.J("web_enable_prefetching_videos_on_home")){var M,h={contentPlaybackContext:_.KG(v,(M=_.U(H.commandMetadata,_.jG))==null?void 0:M.url,t),prefetchPlaybackContext:x25(v)},y,m,W;if(((y=_.U(H,_.wI))==null?void 0:(m=y.watchEndpointSupportedPrefetchConfig)==null?void 0:(W=m.prefetchHintConfig)==null?void 0:W.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(v=
f.watchEndpointMap.watchNext)if(h=v().JSC$13090_getRequest(H,h))return Promise.resolve(_.Q8(f.innerTubeTransportService,h.innerTubeRequest,h.input,void 0,h.config).then(function(d){return d}))}else if(v=f.watchEndpointMap.player)if(h=v().JSC$13090_getRequest(H,h))return Promise.resolve(_.Q8(f.innerTubeTransportService,h.innerTubeRequest,h.input,void 0,h.config).then(function(d){return d}))}else if(_.XW(f.innerTubeTransportService,H)){var I={tempData:v},S=vxC(f.innerTubeTransportService,H);
return S?new Promise(function(d,Z){var l,L;return _.Y(function(r){if(r.nextAddress==1)return r.yield(S,2);if(r.nextAddress!=4)return l=r.yieldResult,l.JSC$13097_getStoreKey(H,I)?r.yield(_.AE(f.innerTubeTransportService,H,I),4):(Z(new _.e$("Prefetching request builder with no store key.",H)),r.jumpTo(0));L=r.yieldResult;d(L);_.Bj(r)})}):Promise.reject(new _.e$("Prefetching unregistered request builder.",H))}return Promise.reject(new _.e$("No request builder available to prefetch endpoint.",H))};
HtE=function(f,H){var v,t,M;if(_.U(H,_.wI)){var h=f.watchEndpointMap.watchNext;h&&(v=h());(f=f.watchEndpointMap.player)&&(t=f())}else if(_.U(H,_.zD))(h=f.reelWatchEndpointMap.reelItemWatch)&&(v=h()),(h=f.reelWatchEndpointMap.player)&&(t=h()),(f=f.reelWatchEndpointMap.reelWatchSequence)&&(M=f());else{a:{f=JFR(H,f.innerTubeTransportService.endpointMap);if(f!==void 0)if(typeof f.then==="function")_.oO(new _.e$("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",H));else break a;
f=void 0}f&&(v=f)}var y,m,W;return{content:(y=v)==null?void 0:y.JSC$13097_getStoreKey(H),player:(m=t)==null?void 0:m.JSC$13097_getStoreKey(H),reelSequence:(W=M)==null?void 0:W.JSC$13097_getStoreKey(H)}};
wcn=function(f,H,v,t,M,h,y){var m=_.gj(),W=f.watchEndpointMap.player;_.J("web_streaming_player")&&(W=rZ(sz));W&&(W=W().JSC$13090_getRequest(H,v))&&(m=_.Q8(f.innerTubeTransportService,W.innerTubeRequest,W.input,H.clickTrackingParams,W.config));W=_.gj();var I=f.watchEndpointMap.watchNext;I&&(v=I().JSC$13090_getRequest(H,v))&&(W=_.Q8(f.innerTubeTransportService,v.innerTubeRequest,v.input,H.clickTrackingParams,v.config));f=_.gj(t);MQb(H,f,m,W,M,h,y)};
T2h=function(f,H,v){return _.Y(function(t){if(t.nextAddress==1)return t.yield(f,2);H.resolve(v);_.Bj(t)})};
MQb=function(f,H,v,t,M,h,y){var m,W,I,S,d;_.Y(function(Z){switch(Z.nextAddress){case 1:return Z.yield(H,2);case 2:m=Z.yieldResult;if(h(y.promise))return y.resolve(m),Z.return();M(f,m);W=Y33(f);if(!W.length){Z.jumpTo(3);break}return Z.yield(H,4);case 4:m.preconnect=W,M(f,m);case 3:return _.Zc(Z,5),Z.yield(v,7);case 7:I=Z.yieldResult;_.ch(Z,6);break;case 5:return S=_.xu(Z),y.reject(S),Z.return();case 6:if(I===void 0)return m.reload=!0,M(f,m),y.resolve(m),Z.return();if(h(y.promise))return y.resolve(m),
Z.return();m.playerResponse=I;M(f,m);_.Zc(Z,8);return Z.yield(t,10);case 10:d=Z.yieldResult;_.ch(Z,9);break;case 8:_.xu(Z);case 9:if(d===void 0)return m.response={responseContext:{}},y.resolve(m),Z.return();if(h(y.promise))return y.resolve(m),Z.return();m.response=d;M(f,m);y.resolve(m);_.Bj(Z)}})};
HfC=function(f,H,v,t,M,h,y,m){var W,I,S,d,Z,l;_.Y(function(L){switch(L.nextAddress){case 1:return L.yield(H,2);case 2:W=L.yieldResult;if(y(m.promise))return m.resolve(W),L.return();h(f,W);I=Y33(f);if(!I.length){L.jumpTo(3);break}return L.yield(H,4);case 4:W.preconnect=I,h(f,W);case 3:return _.Zc(L,5),L.yield(v,7);case 7:S=L.yieldResult;_.ch(L,6);break;case 5:return d=_.xu(L),m.reject(d),L.return();case 6:if(S===void 0)return W.reload=!0,h(f,W),m.resolve(W),L.return();if(y(m.promise))return m.resolve(W),
L.return();W.playerResponse=S;h(f,W);_.Zc(L,8);return L.yield(t,10);case 10:Z=L.yieldResult;_.ch(L,9);break;case 8:_.xu(L);case 9:if(Z===void 0)return W.response={responseContext:{}},m.resolve(W),L.return();if(y(m.promise))return m.resolve(W),L.return();W.response=Z;h(f,W);_.Zc(L,11);return L.yield(M,13);case 13:l=L.yieldResult;_.ch(L,12);break;case 11:_.xu(L);case 12:if(y(m.promise))return m.resolve(W),L.return();l&&(W.reelWatchSequenceResponse=l);h(f,W);m.resolve(W);_.Bj(L)}})};
fzn=function(f,H,v,t,M,h,y){var m,W,I,S,d,Z;_.Y(function(l){if((m=y)==null||!m.replacementEndpoint)return h.reject(),l.return();W=y.replacementEndpoint;(I=_.U(W,_.zD))?(y.sequenceContinuation&&(I.sequenceParams=y.sequenceContinuation),S=_.t8().resolve(_.Z5),d=I.sequenceParams,h3M(S,W)&&delete I.sequenceParams,Z=Qk(f,W,H,v,t,M,function(){return!1}),Z.then(function(L){return _.Y(function(r){if(r.nextAddress==1)return R3H(S,{reelWatchEndpoint:{sequenceParams:d}},L),r.yield(0,2);
h.resolve(L);_.Bj(r)})})):h.reject();
_.Bj(l)})};_.VQo=function(f){if(f.validatedFragments_.length==0)return null;if(!f.mergedPrefetchedData_){for(var H=[],v=_.V(f.validatedFragments_),t=v.next();!t.done;t=v.next()){t=_.V(f.fragmentConfiguration_[t.value].graftedKeys);for(var M=t.next();!M.done;M=t.next())(M=f.prefetchedData_[M.value].trackingParams)&&H.push(M)}f.mergedPrefetchedData_={};Object.assign(f.mergedPrefetchedData_,f.prefetchedData_,{clientSideGrafts:H})}return f.mergedPrefetchedData_};var ynh;_.Uz=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
ynh=function(f,H,v){if(_.stH(H))return f.prefetchCache_.get(_.ZXe(H,v))};_.eD=new _.iN("NAVIGATION_TOKEN");var YWn=function(f){var H=this;var v=v===void 0?Qtb():v;var t=t===void 0?_.t8().resolve(_.eD):t;this.onePickCommand=f;this.JSC$13200_playlistNetworkManager=v;this.navigationManager=t;this.videoPickerBuilder=_.n8v("yt-addtoplaylist");_.M$o(Tkb(w8n(kjZ(this.videoPickerBuilder.setTitle(f.modalTitle).setSize(1E3).addView(fyv()).addView(qSb())).addView("youtube"),f.selectButtonLabel)),function(M){H.handleAction(M)})};
YWn.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
YWn.prototype.handleAction=function(f){var H=this;if(f&&this.onePickCommand.listId&&f.action==="picked"&&f.docs){var v=[];f.docs.forEach(function(t){v.push({addedVideoId:t.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13200_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,v).then(function(){_.J("playlist_add_video_hard_reload_killswitch")?H.navigationManager.reload():mmv(H.navigationManager)})}};var $mh=function(){if(this.constructor===$mh)throw new TypeError("Yf");};
_.R=$mh.prototype;_.R.dispose=function(){};
_.R.disconnect=function(){};
_.R.reconnect=function(){};
_.R.observe=function(f,H,v){return{element:f,option:v}};
_.R.unobserveByKey=function(){};var uFv=function(f,H){H=H===void 0?0:H;$mh.call(this);this.viewroot=f;this.defaultPrescanHeight=H;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),f?{root:f,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.e(uFv,$mh);_.R=uFv.prototype;_.R.dispose=function(){this.disconnect();this.handlers.clear()};
_.R.disconnect=function(f){this.isConnected=!1;this.pauseObservingUntilReconnect=f===void 0?!1:f;this.observer.disconnect();f=_.V(this.prescanObservers.values());for(var H=f.next();!H.done;H=f.next())H.value.disconnect()};
_.R.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var f=_.V(this.handlers),H=f.next();!H.done;H=f.next()){var v=_.V(H.value);H=v.next().value;var t=v.next().value;v=!1;t=_.V(t.keys());for(var M=t.next();!M.done;M=t.next())if((M=M.value)&&M.state==="prescan"){v=!0;break}v&&Wra(this,H).observe(H);this.observer.observe(H)}}};
_.R.handleObserveEvent=function(f){f=_.V(f);for(var H=f.next();!H.done;H=f.next()){H=H.value;var v=this.handlers.get(H.target);if(v){var t=H.isIntersecting;v=_.V(v);for(var M=v.next();!M.done;M=v.next()){var h=_.V(M.value);M=h.next().value;h=h.next().value;M&&(M.state==="visible"&&t||M.state==="hidden"&&!t)&&(h(H.target,M.state),M.calledOnce&&this.unobserveByKey({element:H.target,option:M}))}}}};
_.R.handlePrescanEvent=function(f){f=_.V(f);for(var H=f.next();!H.done;H=f.next()){H=H.value;var v=this.handlers.get(H.target);if(v&&H.isIntersecting){v=_.V(v);for(var t=v.next();!t.done;t=v.next()){var M=_.V(t.value);t=M.next().value;M=M.next().value;t&&t.state==="prescan"&&(M(H.target,t.state),t.calledOnce&&this.unobserveByKey({element:H.target,option:t}))}}}};
_.R.observe=function(f,H,v){var t=(t=this.handlers.get(f))&&t.has(v)?{element:f,option:v}:void 0;if(t)return t;t={element:f,option:v};this.handlers.has(f)||this.handlers.set(f,new Map);var M=this.handlers.get(f);M&&!M.has(v)&&M.set(v,H);this.pauseObservingUntilReconnect||(v.state==="prescan"&&Wra(this,f).observe(f),this.observer.observe(f));return t};
_.R.unobserveByKey=function(f){var H=this.handlers.get(f.element);if(H&&H.has(f.option)){H.delete(f.option);if(f&&f.option.state==="prescan")for(var v=_.V(this.prescanObservers.values()),t=v.next();!t.done;t=v.next())t.value.unobserve(f.element);H.size===0&&(this.handlers.delete(f.element),this.observer.unobserve(f.element))}};
var Wra=function(f,H){var v=f.defaultPrescanHeight;H.hasAttribute("prescan-height")&&(H=Number(H.getAttribute("prescan-height")),isNaN(H)||(v=H));if(f.prescanObservers.has(v))return f.prescanObservers.get(v);H="-0.1px -0.1px "+v+"px -0.1px";H=new IntersectionObserver(f.handlePrescanEvent.bind(f),f.viewroot?{root:f.viewroot,rootMargin:H}:{rootMargin:H});f.prescanObservers.set(v,H);return H};var Ofr=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],gxr=function(){var f,H=this;this.JSC$13217_actionRouter=f=f===void 0?_.A7.getInstance():f;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return H.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return H.visibilityObservedElementHandlerKeys}}},IzH,dma,Zfb;
gxr.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.J("kevlar_use_vimio_behavior")&&_.a8("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=afg())};
gxr.prototype.dispose=function(){this.visibilityMonitor&&_.IS(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
gxr.prototype.handleVisibilityRefreshed=function(){for(var f=_.V(this.targetMap.entries()),H=f.next();!H.done;H=f.next()){var v=_.V(H.value);H=v.next().value;v=v.next().value;_.SWa(this,H,v)}};
_.skb=function(f,H,v){dma(f,v);var t=_.jka(f,H);t.element=v;f.targetedElements.set(v,H);_.SWa(f,H,t)};
dma=function(f,H){var v=f.targetedElements.get(H);if(v){var t=f.targetMap.get(v);t&&(delete t.element,f.targetMap.set(v,t));f.targetedElements.delete(H);f.visibilityObserver&&f.visibilityObservedElementHandlerKeys&&(v=f.visibilityObservedElementHandlerKeys.get(H))&&(f.visibilityObserver.unobserveByKey(v),f.visibilityObservedElementHandlerKeys.delete(H))}};
_.SWa=function(f,H,v){var t=v.action,M=v.element;M&&t&&(Ofr.includes(H)||_.a8("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||f.visibilityMonitor&&f.visibilityMonitor.isNodeVisible(M)?Zfb(f,H,v):f.visibilityObserver&&(f.visibilityObservedElementHandlerKeys||(f.visibilityObservedElementHandlerKeys=new WeakMap),t=f.visibilityObserver.observe(M,function(){Zfb(f,H,v);f.visibilityObservedElementHandlerKeys.delete(M)},{calledOnce:!0,
state:"visible"}),f.visibilityObservedElementHandlerKeys.set(M,t)))};
Zfb=function(f,H,v){var t=v.action;(v=v.element)&&t&&(_.r_(f.JSC$13217_actionRouter,[t],v),f.targetMap.delete(H),f.targetedElements.delete(v),f.triggeredTargets.add(H))};
_.jka=function(f,H){var v=f.targetMap.get(H);v||(v={},f.targetMap.set(H,v));return v};
_.LM=function(){IzH||(IzH=new gxr);return IzH};var Jn_=document.createElement("div");Jn_.style.touchAction="pan-down";var P5H=Jn_.style.touchAction==="pan-down";var lzH,UmC;lzH=function(){this.hammerFn=v$a();this.JSC$13225_screenManager=_.UV();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.$$(83615);_.mE(this.JSC$13225_screenManager,this.ve);GQb()};
_.xi=function(){UmC||(UmC=new lzH);return UmC};
lzH.prototype.registerTouchEvents=function(f,H,v){var t=_.NA.apply(3,arguments),M=this.hammerFn(f,{cssProps:{},recognizers:[[Hammer.Rotate,{enable:!1}],[Hammer.Pinch,{enable:!1},["rotate"]],[Hammer.Swipe,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL}],[Hammer.Pan,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL},["swipe"]],[Hammer.Tap,{enable:!1}],[Hammer.Tap,{enable:!1,event:"doubletap",taps:2},["tap"]],[Hammer.Press,{enable:!1}]]});v&&M.set({touchAction:v});this.nodeManagerMapping.set(f,M);var h=
C5B(H);t=_.V(t);for(var y=t.next();!y.done;y=t.next()){y=y.value;if(y.includes("swipe")||y.includes("pinch")||y.includes("pan"))y.includes("swipe")?M.get("swipe").set({enable:!0,direction:h,velocity:.2}):y.includes("pinch")?M.get("pinch").set({enable:!0}):y.includes("pan")&&(M.get("pan").set({enable:!0,direction:h}),M.get("swipe").set({enable:!0,direction:h,velocity:.2}),M.get("swipe").recognizeWith("pan"));e3h(this,f,M,y)}};
var e3h=function(f,H,v,t){v.on(t,function(M){if(t.includes("pinch"))f.lastPinchTime=Date.now();else if(t.includes("swipe")&&Date.now()-f.lastPinchTime<400)return;M.pointerType!=="mouse"&&(M=t==="doubletap"?{coordinates:M.center}:t.includes("pan")?M:t.includes("swipe")?{target:M.target}:{},H.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:M})))})};
lzH.prototype.unregisterTouchEvents=function(f){var H=_.NA.apply(1,arguments),v=this.nodeManagerMapping.get(f);if(v){H=_.V(H);for(var t=H.next();!t.done;t=H.next())v.off(t.value);this.nodeManagerMapping.delete(f);f.style.touchAction="unset"}};var Lrh=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var E8b=null;var xmg=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},VYH=function(){xmg.instance||(xmg.instance=new xmg);
return xmg.instance},yzb=function(f){var H=f.networkEvents;
f.networkEvents=[];return _.J("enable_network_monitoring")?H:[]};var BFr;BFr={};_.z3r=H8("yt-serviceworker-metadata",{objectStores:(BFr.auth={addedAtVersion:1},BFr["resource-manifest-assets"]={addedAtVersion:2},BFr),shared:!0,upgrade:function(f,H){H(1)&&CN(f,"resource-manifest-assets");H(2)&&CN(f,"auth")},
version:2});var iXs=self.location.origin+"/";kQ5([/\.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\//]);kQ5([/purge_shell=1/]);var FrZ=void 0;FrZ=FrZ===void 0?[]:FrZ;for(var rnb=[],KrH=_.V(aKv),Dmn=KrH.next();!Dmn.done;Dmn=KrH.next())rnb.push({key:Dmn.value});for(var oxa=_.V(FrZ),nxT=oxa.next();!nxT.done;nxT=oxa.next())rnb.push(nxT.value);var pJH,GD=_.Mr==null?void 0:(pJH=_.Mr.performance)==null?void 0:pJH.memory,qsE=!1,YiR={},vD_={},CG={},E6=navigator;var BH=function(f){this.JSC$13269_expiringStorage=new xZ(f)};
BH.prototype.set=function(f,H,v){v=v!==void 0?Date.now()+v:void 0;this.JSC$13269_expiringStorage.set(f,H,v)};
BH.prototype.get=function(f){return this.JSC$13269_expiringStorage.get(f)};
BH.prototype.remove=function(f){this.JSC$13269_expiringStorage.remove(f)};var dvr=_.EH(["https://www.youtube.com/",""]),jY_=_.EH(["https://studio.youtube.com/",""]),Uvv="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",Z53=null,zO5;var QkH=_.EH(["https://www.youtube.com/iframe_api"]),zF=function(){this.playerResolver_=_.bE();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.gQ;this.playbackDurationSeconds_=0},uwZ=function(f){var H=function(){return window.YT&&typeof window.YT.ready==="function"};
if(H())return _.gj(window.YT);var v=_.bE(),t=_.lS("SCRIPT");t.onload=t.onreadystatechange=function(){t.readyState&&t.readyState!="loaded"&&t.readyState!="complete"||(t.onload=_.gQ,t.onreadystatechange=_.gQ,t.onerror=_.gQ,H()?v.resolve(window.YT):v.reject(new _.e$("Failed to load the iframe player library","script.onload",t.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
t.onerror=function(M){t.onload=_.gQ;t.onreadystatechange=_.gQ;t.onerror=_.gQ;v.reject(new _.e$("Failed to load the iframe player library","script.onerror",M&&M.target&&M.target.src))};
_.tf(t,_.gr(QkH));f.insertBefore(t,f.firstChild);return v.promise},azn=function(f,H,v){var t,M;
_.Y(function(h){switch(h.nextAddress){case 1:return f.playbackEndedCallback_=v,_.Zc(h,2),h.yield(uwZ(H.parentElement||null),4);case 4:t=h.yieldResult;_.ch(h,3);break;case 2:return M=_.xu(h),M instanceof _.e$&&M.args&&M.args[0]=="script.onerror"?_.pb(M):_.oO(M),h.return();case 3:t.ready(function(){return new t.Player(H,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:f.onPlayerReady_.bind(f),onStateChange:f.onPlayerStateChange_.bind(f),
onCueRangeExit:f.onCueRangeExit_.bind(f)}})}),_.Bj(h)}})};
_.R=zF.prototype;_.R.getPlayerPromise=function(){return this.playerPromise_};
_.R.onPlayerReady_=function(f){this.playerResolver_.resolve(f.target)};
_.R.onPlayerStateChange_=function(f){if(f.data==YT.PlayerState.PLAYING){f=f.target;var H=f.getCurrentTime();f.addCueRange("playback",H,H+this.playbackDurationSeconds_)}};
_.R.onCueRangeExit_=function(f){f.data=="playback"&&(f.target.stopVideo(),this.playbackEndedCallback_())};
_.R.stopVideo=function(){this.playerPromise_.then(function(f){f.stopVideo()})};
var PlH=function(f){f.playerVars_&&f.playerPromise_.then(function(H){typeof H.cueVideoByPlayerVars!="function"?_.pb(new _.e$("vmh: player API not ready","cueVideoByPlayerVars",typeof H.cueVideoByPlayerVars)):H.cueVideoByPlayerVars(f.playerVars_)})};
zF.prototype.playVideo=function(){var f=this;this.playerVars_&&this.playerPromise_.then(function(H){typeof H.loadVideoByPlayerVars!="function"?(H=new _.e$("vmh: player API not ready","loadVideoByPlayerVars",typeof H.loadVideoByPlayerVars),_.oO(H)):H.loadVideoByPlayerVars(f.playerVars_)})};
var G9b=function(f,H,v,t,M){H&&(v===void 0&&(v=0),t===void 0&&(t=0),f.playbackDurationSeconds_=t/1E3,f.playerVars_={adformat:"17_8",videoId:H,suggestedQuality:"hd720",startSeconds:v/1E3,player_params:M})};
zF.prototype.mute=function(){this.playerPromise_.then(function(f){f.mute()})};
zF.prototype.unMute=function(){this.playerPromise_.then(function(f){f.unMute()})};var Clh=function(f,H){var v=NC();f||(f="unknown");H||(H="unknown");f="MAIN_APP_WEB_PAGE_TYPE_"+f.toUpperCase();f in qT_||(f="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");H="MAIN_APP_WEB_REQUEST_TYPE_"+H.toUpperCase();H in fNg||(H="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.MN(v,{mainAppWeb:{pageType:f,requestType:H,isShellLoad:_.P6("IS_SHELL_LOAD",!1)}})},Ex9={start:function(){_.MN(AAs(),{mainAppWeb:_.kz()})},
success:function(){_.hQ(AAs(),"SUCCESS")},
failure:function(){_.hQ(AAs(),"FAILURE")},
cancelled:function(){_.hQ(AAs(),"CANCELLED")}};var NFv,cng,QYT;NFv=_.EH(["/sw.js"]);cng=_.EH(["/sw.js?0"]);_.XJ9=_.gr(NFv);QYT=_.gr(cng);var AnM=function(){var f=Error.apply(this,arguments);this.message=f.message;"stack"in f&&(this.stack=f.stack)};
_.e(AnM,Error);_.qS.prototype.load=function(f){this.megabloxUrl_=_.a8("YPC_MB_URL");_.c7(this.megabloxUrl_,(0,_.FH)(function(){f&&f()},this))};
_.DFH=function(f,H,v,t,M,h,y,m,W,I,S){_.ajT(W);f.load((0,_.FH)(function(){try{var d=h?h:_.a8("HL"),Z=_.a8("SESSION_INDEX");_.LAR("client",function(){El9("59",{helpCenterPath:"/youtube",locale:d,window:window}).JSC$9966_loadChatSupport({authuser:String(Z)})})}catch(l){throw TD(10,S,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),M&&M(l),_.oO(l),l;
}bfC(this,H,v,t,M,h,y,m,W,I,S)},f))};
_.qS.prototype.openFixFlowDialog=function(f,H,v,t){this.load((0,_.FH)(function(){try{ifn(this,_.ES("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(f).withIntegratorCallback(H).load(v,t)}catch(M){throw _.oO(M),M;}},this))};
var ifn=function(f,H,v,t){var M=H.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.J("enable_window_constrained_buy_flow_dialog")&&(M=M.usingPopupStyle(_.ES("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));t&&(M=M.usingCloseCallback(t));H.bootstrap.fromPaymentsUrl(f.megabloxUrl_);f=H.bootstrap.asMashupMode(M);v=v?v:_.a8("HL");f.usingGaiaIndex(_.a8("SESSION_INDEX")).usingLocale(v).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.J("enable_google_payments_buyflow_material2_style_web")?
f.usingStyle(":m2;pc=#444;ac=#065fd4"):f.usingStyle(":md;pc=#444;ac=#065fd4");return f},bfC=function(f,H,v,t,M,h,y,m,W,I,S){try{var d=_.ES("payments.business.integration");
if(!d)throw new AnM("payments.business.integration is undefined");var Z=d.standaloneContextAuthId.forUserId(),l=ifn(f,d,h,function(){G6v(!1);m&&m()});
y&&l.usingServerAnalyticsEventHandler(y);var L=l.inStandaloneContext(Z).buyFlow(function(r){if(r&&(!r.integratorData||r.integratorData===""||r.error))if(r.error!=null)if(String(r.error)==="-1")_.PvT(W);else{var n=String(r.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";TD(10,S,n,r.debugCode);_.wZ(n,W,r.debugCode);n=new _.e$("PAYMENT_ERROR_MESSAGE::"+r.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+r.internalErrorDetails);
_.oO(n)}else TD(10,S,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.wZ("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",W,"EMPTY_INTEGRATOR_DATA"),_.oO(Error("cg"));v&&(G6v(!1),v(r))}).withEncryptedParameters(H);
I&&L.withClientParameters(c4E(_.r65(I)));L.load(function(){TD(24,S);_.PV("ttc",void 0,"commerce_transaction");pQ("commerce_transaction");t&&(t(),G6v(!0))},function(r){if(r==null?0:r.debugCode)var n=r==null?void 0:r.debugCode;
else if(!r||(r==null?0:r.debugCode))n="EMPTY_LOAD_FAILURE_ERROR",_.oO(Error(n));else{n="EMPTY_LOAD_FAILURE_DEBUG_CODE";var Q=new _.e$("LOAD_FAILURE:"+r.message," DEBUG_CODE:"+n);_.oO(Q)}TD(10,S,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",n);_.wZ("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",W,n);_.oO(r);M&&M(r)})}catch(r){throw r instanceof AnM&&(TD(10,S,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),M&&M(r)),_.oO(r),r;
}};var k99;k99=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.FRr=function(f,H){H=H===void 0?!1:H;f=k99.test(f)?_.FM(f):null;!H&&window.payments||!f?(f=_.bE(),H=f.promise,f.resolve()):H=_.zvg(f,{attributes:{"data-payments-main":"",id:"payment-lib"}});return H};var TFh;TFh=_.EH(["//www.googletagmanager.com/gtm.js?id=",""]);_.F9=function(f,H){_.Ml(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:H}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.a8("GL")}),H=_.lS("SCRIPT"),H.async=!0,_.tf(H,_.gr(TFh,f)),H.id="gtm",f=document.getElementsByTagName("script"),f.length==0?document.head.appendChild(H):(f=f[0],f.parentNode.insertBefore(H,f)))};
_.r4=function(f){if(f=JSON.parse(f))window.dataLayer=window.dataLayer||[],window.dataLayer.push(f)};var wJC,qWv;wJC=_.EH(["https://clients2.google.com/gr/gr_sync.js"]);_.BEb=function(){};
_.BEb.prototype.init=function(){if(qWv()){var f=_.bE();f.resolve();return f.promise}return _.zvg(_.gr(wJC)).then(function(){if(!qWv())throw Error("dg");},function(){throw Error("eg");
})};
_.zXe=function(){if(!qWv())return"";var f=window.google.gr;f.init({async:{schedule:"sync"},merchantId:"youtube"});f.start();f=f.finish();return f==null?"":f};
qWv=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.K=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.e(_.K,PolymerFakeBaseClassWithoutHtml);_.er=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.e(_.er,PolymerFakeBaseClassWithoutHtml);var CvH=window.ShadyDOM;var l1v,Z_3,e2H,LdH,BzN,z2T,KM,YV;l1v=_.J("enable_shadydom_free_scoped_query_methods");Z_3=_.J("enable_shadydom_free_scoped_node_methods");e2H=_.J("enable_shadydom_free_scoped_readonly_properties_batch_one");LdH=_.J("enable_shadydom_free_parent_node");BzN=_.J("enable_shadydom_free_children");z2T=_.J("enable_shadydom_free_last_child");KM=window.ShadyDOM;_.gX=KM&&KM.noPatch&&KM.wrap?KM.wrap:KM?function(f){return KM.patch(f)}:function(f){return f};
YV=function(f){if(f instanceof ShadowRoot)this.host=(0,_.gX)(f.host),this.root=f;else if(f.$$){this.host=(0,_.gX)(f);var H;this.root=(H=f.root)!=null?H:this.host}else if(f.polymerController){this.host=(0,_.gX)(f);var v;this.root=(v=this.host.shadowRoot)!=null?v:this.host}else this.root=this.host=(0,_.gX)(f)};
Jo_();U3g();FdR();roB();x3b();var fv9={querySelector:function(f,H){H=Nq3(H,tJ(f));f=_.Mu(f);return hJ(f).prototype.querySelector.call(f,H)},
querySelectorAll:function(f,H){H=Nq3(H,tJ(f));f=_.Mu(f);return hJ(f).prototype.querySelectorAll.call(f,H)}},HLb={appendChild:function(f,H){var v=tJ(f),t=_.vB(H);
return _.jeH(_.Mu(f),v?_.Vs(H,v,t):H)},
cloneNode:function(f,H){var v=_.vB(f);f=_.Mu(f);H=hJ(f).prototype.cloneNode.call(f,H);return v?ys(H,v):H},
contains:function(f,H){var v=tJ(f),t=_.vB(H);return v!==t?!1:se_(f,H)},
insertBefore:function(f,H,v){var t=tJ(f),M=_.vB(H);f=_.Mu(f);H=t?_.Vs(H,t,M):H;return hJ(f).prototype.insertBefore.call(f,H,v)},
removeChild:function(f,H){var v=tJ(f);f=_.Mu(f);H=v?ys(H,v):H;return hJ(f).prototype.removeChild.call(f,H)},
replaceChild:function(f,H,v){var t=tJ(f),M=_.vB(H);H=t?_.Vs(H,t,M):M?ys(H,M):H;v=t?ys(v,t):v;f=_.Mu(f);return hJ(f).prototype.replaceChild.call(f,H,v)},
getRootNode:function(f,H){H=H===void 0?{composed:!0}:H;var v;if(((v=H)!=null?v:{}).composed)f=H_E(f);else{H=f;for(f=XiN(f);f;)H=f,f=b5g(f);f=H}return f}},D3_=e2H?{firstChild:WdN,
nextSibling:Y_B,previousSibling:$3H,firstElementChild:O_B,lastElementChild:I1N,nextElementSibling:yog,previousElementSibling:m35,childNodes:S_R}:{};LdH&&(D3_.parentNode=VlE);BzN&&(D3_.children=d3R);z2T&&(D3_.lastChild=gMH);l1v&&Kdv(fv9);Z_3&&Kdv(HLb);oMe();var nM5=function(f){this.node=f instanceof ShadowRoot?f.host:f};
pOr();Qer();var Pn_=new WeakMap;var Cnr=Symbol("wd");var Aog=new Set(["tap","track","down","up"]),b_3=_.J("pbcm_fi_query_decorators");var D5=function(){return _.er.apply(this,arguments)||this};
_.e(D5,_.er);_.R=D5.prototype;_.R.getState=function(){return this.store.getState()};
_.R.dispatch=function(f){this.store.dispatch(f)};
_.R.beforeRegister=function(){if(this&&typeof this==="object"){var f;var H=!!this.useSignals||!((f=this.polymerController)==null||!f.useSignals)}else H=!1;if(!H&&this.properties)for(H=_.V(Object.keys(this.properties)),f=H.next();!f.done;f=H.next()){var v=f.value;f=this.properties[v];if(f.selector){if(f.computed)throw Error("kg");v=["reduxPropertiesRecomputeTrigger",'"'+v+'"'].concat(_.pS(f.selectorArgs||[])).join(",");f.computed="recomputeReduxSelector("+v+")"}}};
_.R.attached=function(){var f=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){f.reduxPropertiesRecomputeTrigger++}));
_.J("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.R.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.R.recomputeReduxSelector=function(f,H){var v=_.NA.apply(2,arguments),t=this.properties[H].selector;if(!t)throw Error("ig`"+H);return t.apply(null,[this.store.getState()].concat(_.pS(v)))};
_.R.select=function(f){var H=_.NA.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return f.apply(null,[this.store.getState()].concat(_.pS(H)))};
_.H7.Object.defineProperties(D5.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("jg");}}});
D5.prototype.recomputeReduxSelector=D5.prototype.recomputeReduxSelector;_.E([_.F(),_.N("design:type",Number)],D5.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.E([_.L2()],D5);var oj=[],wOR={},PB=function(){return tg.apply(this,arguments)||this};
_.e(PB,tg);PB.prototype._addPropertyEffect=function(f,H,v){if(H==="__observeEffects"&&v){var t,M=(t=v.info.method)!=null?t:v.info.methodName;if(M){var h=this[M];this[M]=function(){oj.push(M);try{h==null||h.apply(this,arguments)}finally{oj.pop()}}}}_.s3._addPropertyEffect.apply(this,[f,
H,v])};
PB.prototype._setPendingProperty=function(f,H,v){if(oj.length){var t=oj[oj.length-1],M;(M=wOR[this.is])!=null&&M.has(t)||(q_v(this.is,t),_.Kb("polymerPropertyChangedInObserver",{componentName:this.is,observerName:t}))}return _.s3._setPendingProperty.apply(this,[f,H,v])};
_.E([BQ5()],PB);var f2R=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),vCs,zW={};_.J("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=zW);var oK=function(){return _.er.apply(this,arguments)||this};
_.e(oK,_.er);oK.prototype._setUnmanagedPropertyToNode=function(f,H,v){f.loggingStatus&&(f.loggingStatus.isDeclarativeExternal=!0);if(v!==f[H]||typeof v==="object")f[H]=v;f.is&&f.polymerController&&f.polymerController!==f&&FI(f.is,H,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");f.loggingStatus&&(f.loggingStatus.isDeclarativeExternal=!1)};
_.E([_.L2()],oK);Hk3()&&(Eo.prototype._setUnmanagedPropertyToNode=(new oK)._setUnmanagedPropertyToNode);_.SJR={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(f){},set polymerController(f){}}]};var aK=function(){var f=tg.apply(this,arguments)||this;f.json=function(){};
return f};
_.e(aK,tg);aK.prototype.equals=function(f,H){return f===H};
aK.prototype.isEmpty=function(f){var H;(H=!f)||(H=_.Tb(f)&&f.length===0);return H};
_.E([BQ5()],aK);var vc_=function(f){f=eQR(f);oq.call(this,f)};
_.e(vc_,oq);vc_.prototype.addProvider=function(f){f=f.key?f:eQR([f])[0];var H=this.keyIdToIndex.get(f.key.id);if(H){if(Vub(f,this.providers[H]))throw Error("lg`"+f.key.displayName);}else oq.prototype.addProvider.call(this,f)};
var tXv=new vc_([]);var MX_=!1;var OkE={};MX_||(We_(),MX_=!0);
OkE.InjectBehavior={initializeInjection:function(){var f=this.provide;try{if((f=f!=null?f:[])&&f.length>0)for(var H=eQR(f),v=_.V(H),t=v.next();!t.done;t=v.next())tXv.addProvider(t.value);var M=new Set;y1e(this.behaviors||[],M);H={};for(var h=_.V(M),y=h.next();!y.done;y=h.next()){var m=y.value;m.inject&&Object.assign(H,m.inject)}this.inject&&Object.assign(H,this.inject);for(var W=_.V(Object.keys(H)),I=W.next();!I.done;I=W.next()){var S=I.value,d=H[S];try{this[S]=tXv.resolve(d)}catch(Z){throw Z;}}}catch(Z){throw Error(Z.message);
}}};var I2R;var dUB=/\bclass\b/.test(function(){}.toString()),Zkb=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var hAT=function(f){this.wasDefined=!0;Array.isArray(f)||f instanceof Array?(this.JSC$13398_getImpl=f[0],this.JSC$13398_setImpl=f[1]):this.JSC$13398_getImpl=f};
_.R=hAT.prototype;_.R.getWithPath=function(f){return UUb(this.JSC$13398_getImpl(),f)};
_.R.setWithPath=function(f,H){var v=this;if(f.length)throw Error("mg");if(!this.JSC$13398_setImpl)throw Error("ng");Zt(function(){v.JSC$13398_setImpl(H)})};
_.R.notifyPath=function(){throw Error("og");};
_.R.notifySplices=function(){throw Error("pg");};
_.R.getChangeRecordSignal=function(f,H){var v=this;if(f.length)throw Error("qg");return function(){var t=v.getWithPath(f);return{path:H!=null?H:"",base:t,value:t}}};
_.R.getSplicesSignal=function(){throw Error("rg");};
_.R.getPathMutationSignal=function(){throw Error("sg");};
_.R.pop=function(){throw Error("tg");};
_.R.push=function(){throw Error("ug");};
_.R.splice=function(){throw Error("vg");};
_.R.unshift=function(){throw Error("wg");};var nM=function(f){var H=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(f)||f instanceof Array?(this.JSC$13403_getImpl=f[0],this.JSC$13403_setImpl=f[1]):this.JSC$13403_getImpl=f;this.wasDefined=!1;Og(function(){H.wasDefined=H.JSC$13403_getImpl()!==void 0})};
nM.prototype.getWithPath=function(f){return UUb(this.JSC$13403_getImpl(),f)};
nM.prototype.setWithPath=function(f,H){var v=this;if(f[f.length-1]!=="*"&&f[f.length-1]!=="splices"){var t=Og(function(){return v.getWithPath([])});
if(f.length===0){if(!this.JSC$13403_setImpl)throw Error("xg");if(t===H)return;this.wasDefined||(this.wasDefined=H!==void 0);Zt(function(){v.JSC$13403_setImpl(H)})}else{for(var M=0;M<f.length-1;M++){if(!t)return;
t=t[f[M]]}M=f[f.length-1];t&&(t[M]=H);this.wasDefined||(this.wasDefined=f.length>1||H!==void 0)}RA_(this,f,{pathComponents:f,value:H})}};
nM.prototype.notifyPath=function(f,H){f.length===0?H&&this.setWithPath(f,H.value):RA_(this,f,{pathComponents:f,value:H==null?void 0:H.value,fallbackWhenUndefined:H==null?void 0:H.value})};
var RA_=function(f,H,v,t){if(f.setMutationSignal){var M=++f.mutationIndex,h=[f.observedPath],y=f.observedPath,m;H.length===0&&(m=y);for(var W=0;W<H.length;W++){var I=y.subPaths[H[W]];if(!I)break;h.push(I);y=I;W===H.length-1&&(m=I)}for(H=!1;h.length;)y=h.shift(),y.data={index:M,mutation:v,spliceMutationIndex:t},H||(H=y===m),H&&h.push.apply(h,_.pS(Object.values(y.subPaths)));Zt(function(){f.setMutationSignal(M)})}};
nM.prototype.notifySplices=function(f,H){var v=this,t=Og(function(){return v.getWithPath(f)}),M=[].concat(_.pS(f),["splices"]);
RA_(this,M,{pathComponents:M,value:{indexSplices:H}});if(t==null?0:t.length)H=this.mutationIndex,M=[].concat(_.pS(f),["length"]),RA_(this,M,{pathComponents:M,value:t.length},H)};
var VXg=function(f,H,v,t,M,h){f.notifySplices(v,[{index:t,addedCount:M,removed:h,object:H,type:"splice"}])},ysC=function(f,H){f=f.observedPath;
for(var v=0;v<H.length;v++){var t=H[v],M=f.subPaths[t];M||(M={pathComponents:H.slice(0,v+1),subPaths:{}},f.subPaths[t]=M);f=M}},mzH=function(f,H,v){ysC(f,H);
if(!f.getMutationSignal){var t=_.V(_.gp(f.mutationIndex,void 0,"sNBMCd"));f.getMutationSignal=t.next().value;f.setMutationSignal=t.next().value}var M=f.getMutationSignal;return _.sg(function(){M();return v(Yth(f,H))},void 0,"zvsXEd")};
nM.prototype.getChangeRecordSignal=function(f,H){var v=this,t=this.mutationIndex,M;return mzH(this,f,function(h){if(h&&h.index>t){var y=h.mutation;t=h.index;M=void 0}h=Og(function(){return v.getWithPath(f)});
if(y){var m=y.pathComponents[y.pathComponents.length-1],W=[].concat(_.pS(y.pathComponents));if(m==="splices"||m==="length")return{base:h,path:(H?[H].concat(_.pS(W)):W).join("."),value:y.value};var I=f.length>W.length?f:W,S;return{base:h!=null?h:y.fallbackWhenUndefined,path:(H?[H].concat(_.pS(I)):I).join("."),value:(S=Og(function(){return v.getWithPath(I)}))!=null?S:y.fallbackWhenUndefined}}M||(M={base:h,
path:(H?[H].concat(_.pS(f)):f).join("."),value:h});return M})};
nM.prototype.getSplicesSignal=function(f){var H=this.mutationIndex,v;return mzH(this,f,function(t){if(t&&t.index>H&&t.spliceMutationIndex!==H){var M=t.mutation;H=t.index;v=void 0}return M&&M.pathComponents[M.pathComponents.length-1]==="splices"?v=t=M.value:v})};
nM.prototype.getPathMutationSignal=function(f){var H=this;ysC(this,f);if(!this.getMutationSignal){var v=_.V(_.gp(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=v.next().value;this.setMutationSignal=v.next().value}var t=this.getMutationSignal,M=this.mutationIndex,h;return _.sg(function(){t();var y=Yth(H,f);if(y&&y.index>M&&y.mutation&&ehr(y.mutation.pathComponents,f)){var m=y.mutation;M=y.index}if(!h||M!==h.index){var W,I;y=(I=Og(function(){return H.getWithPath(f)}))!=null?I:(W=m)==null?
void 0:W.fallbackWhenUndefined;
h={index:M,value:y}}return h},void 0,"RXYC9b")};
var Yth=function(f,H){f=f.observedPath;H=_.V(H);for(var v=H.next();!v.done;v=H.next())f=f.subPaths[v.value];return f.data};
nM.prototype.pop=function(f){var H=this,v=Og(function(){return H.getWithPath(f)});
if(!(v instanceof Array))throw Error("yg");var t=v.length>0,M=v.pop();t&&VXg(this,v,f,v.length,0,[M]);return M};
nM.prototype.push=function(f){var H=_.NA.apply(1,arguments),v=this,t=Og(function(){return v.getWithPath(f)});
if(!(t instanceof Array))throw Error("zg");var M=t.length,h=t.push.apply(t,_.pS(H));H.length&&VXg(this,t,f,M,H.length,[]);return h};
nM.prototype.splice=function(f,H,v){var t=_.NA.apply(3,arguments),M=this,h=Og(function(){return M.getWithPath(f)});
if(!(h instanceof Array))throw Error("Ag");H<0?H=h.length-Math.floor(-H):H&&(H=Math.floor(H));var y=h.splice.apply(h,[H,v].concat(_.pS(t)));(t.length||y.length)&&VXg(this,h,f,H,t.length,y);return y};
nM.prototype.unshift=function(f){var H=_.NA.apply(1,arguments),v=this,t=Og(function(){return v.getWithPath(f)});
if(!(t instanceof Array))throw Error("Bg");var M=t.unshift.apply(t,_.pS(H));H.length&&VXg(this,t,f,0,H.length,[]);return M};var pM=function(f,H,v){this.model=f;this.unknownSignalResolver=H;this.options=v;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];H=_.V(oCv());f=H.next().value;H=H.next().value;this.owner=f;this.disposeImpl=H};
pM.prototype.dispose=function(){if(!this.isDisposed){for(var f=_.V(this.childSignalProxies),H=f.next();!H.done;H=f.next())H.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var $zg=function(f,H){f=_.HM(f.owner);try{H()}finally{_.HM(f)}};
pM.prototype.effect=function(f){$zg(this,function(){_.QL(f)})};
var WIZ=function(f,H){f.options!=null||(f.options={});var v;(v=f.options).immutableProps!=null||(v.immutableProps=new Set);f.options.immutableProps.add(H)},h3R=function(f,H){H=""+H;
OLr(f,H);var v,t;if((v=f.options)==null?0:(t=v.immutableProps)==null?0:t.has(H))return!0;var M;if((M=f.model.__signalCache)==null?0:M.has(H))v=f.model.__signalCache.get(H),Array.isArray(v)&&WIZ(f,H);var h,y,m;return(m=(h=f.options)==null?void 0:(y=h.immutableProps)==null?void 0:y.has(H))!=null?m:!1},gcr=function(f,H){var v;
f.unknownSignalResolver&&(v=f.unknownSignalResolver(H));var t,M;((t=f.options)==null?0:(M=t.immutableProps)==null?0:M.has(H))?v!=null||(v=new hAT(_.gp(f.model[H],void 0,"By5iP"))):v!=null||(v=new nM(_.gp(f.model[H],void 0,"CXghNc")));var h=f.model.hostElement;Object.defineProperty(f.model,H,{get:function(){Mu3(h,H);return v.getWithPath([])},
set:function(y){Dw(h,H);f.setWithPath([H],y)},
configurable:!0});return v},OLr=function(f,H){var v,t,M;
((v=f.model.__signalCache)==null||!v.has(H))&&((t=f.options)==null?0:(M=t.externalSignalProps)==null?0:M.has(H))&&f.model[H]},Nu=function(f,H){H=""+H;
var v=f.signalCache[H];if(v!==void 0)return v;v=!1;OLr(f,H);var t;if((t=f.model.__signalCache)==null?0:t.has(H))if(v=f.model.__signalCache.get(H),Array.isArray(v))v=!0,WIZ(f,H);else return f.signalCache[H]=f.model.__signalCache.get(H).signal,f.signalCache[H];var M,h;t=(h=(M=f.options)==null?void 0:M.reactivityMode)!=null?h:0;var y,m;if(!((y=f.options)==null?0:(m=y.reactiveProps)==null?0:m.has(H))&&!v&&t===1)throw Error("Cg`"+H);M=v?Iva(f,H):gcr(f,H);return f.signalCache[H]=M},Iva=function(f,H){var v=
Object.getOwnPropertyDescriptor(f.model.constructor.prototype,H),t=function(){return f.model[H]};
return new hAT(v&&v.get&&!v.set?t:[t,function(M){f.model[H]=M}])};
pM.prototype.getWithPath=function(f){var H=_.V(f);f=H.next().value;H=wA(H);Mu3(this.model.hostElement,""+f);return Nu(this,f).getWithPath(H)};
pM.prototype.setWithPath=function(f,H){if(f.length){Dw(this.model.hostElement,f.join("."));var v=_.V(f);f=v.next().value;v=wA(v);Nu(this,f).setWithPath(v,H)}};
pM.prototype.getPathMutationSignal=function(f){var H=_.V(f);f=H.next().value;H=wA(H);return Nu(this,f).getPathMutationSignal(H)};
pM.prototype.notifyPath=function(f,H){var v=_.V(f);f=v.next().value;v=wA(v);Nu(this,f).notifyPath(v,H)};
var StZ=function(f,H){if(H.type==="literal")return function(){return{rootWasDefined:!0,value:H.value}};
var v=C2(H.path),t=_.V(v),M=t.next().value;t=wA(t);var h,y;if(H.type==="path"&&(v.length===1||((h=f.options)==null?0:(y=h.immutableProps)==null?0:y.has(M))))return function(){var d=f.getWithPath(v.slice(0,1));d=UUb(d,v.slice(1));return{rootWasDefined:Nu(f,v[0]).wasDefined,value:d}};
var m=Nu(f,M);if(H.type==="path"){var W=m.getPathMutationSignal(t);return function(){var d,Z=(d=W())==null?void 0:d.value;return{rootWasDefined:m.wasDefined,value:Z}}}if(H.type==="splices"){var I=m.getSplicesSignal(t);
return function(){var d=I();return{rootWasDefined:m.wasDefined,value:d}}}var S=m.getChangeRecordSignal(t,""+M);
return function(){var d=S();return{rootWasDefined:m.wasDefined,value:d}}},r1B=function(f,H,v){var t=v.map(function(m){return StZ(f,m)}),M=v.length===0,h=[],y=v.length!==1||v[0].type!=="path"?!1:!0;
f.effect(function(){for(var m=t.length,W=[],I=!!h.length,S=0;S<m;S++){var d=t[S](),Z=d.rootWasDefined;d=d.value;M||(M=Z);W[S]=d;y&&(W[S+m]=I?h[S]:W[S],h[S]=d)}M&&PM(f.owner,function(){return void H.apply(null,_.pS(W))})})},LeE=function(f,H,v,t,M){var h=Nu(f,H);
M!==void 0&&h.setWithPath([],M);r1B(f,function(){var y=_.NA.apply(0,arguments);Dw(f.model.hostElement,H,!0);h.setWithPath([],v.apply(null,_.pS(y)))},t)};
pM.prototype.arrayPush=function(f){var H=_.NA.apply(1,arguments),v=_.V(f),t=v.next().value;v=wA(v);t=Nu(this,t);return t.push.apply(t,[v].concat(_.pS(H)))};
pM.prototype.arraySplice=function(f,H,v){var t=_.NA.apply(3,arguments),M=_.V(f),h=M.next().value;M=wA(M);h=Nu(this,h);return h.splice.apply(h,[M,H,v].concat(_.pS(t)))};
pM.prototype.arrayUnshift=function(f){var H=_.NA.apply(1,arguments),v=_.V(f),t=v.next().value;v=wA(v);t=Nu(this,t);return t.unshift.apply(t,[v].concat(_.pS(H)))};
pM.prototype.notifySplices=function(f,H){var v=_.V(f);f=v.next().value;v=wA(v);Nu(this,f).notifySplices(v,H)};var dz9=!0,jIM=!1,RAs=!1,sIZ=!1,ZLh=0;sIZ=!1;ZLh=0;dz9=!0;jIM=RAs=!1;var PaH=/([^\s]+?)\(([\s\S]*)\)/,Q$v=/\.([^.]+)$/,CaE=/\\,/g,nC5=/&comma;/g,pcB=/\\(.)/g,GqT=[],u$B={"*":"wildcard",splices:"splices"};var wc3=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"),bkN=/[A-Z]/,JsM=["class","hidden","id","on-dom-change"],fz3=new Set([].concat(_.pS(JsM),
["if","notify-dom-change","restamp"])),HfH=new Set([].concat(_.pS(JsM),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),vxH=new Set(["restamp"]);var vbN=new Set(["className","id"]);var VQR=Symbol(),gxg=window;var lzb=window;var FrT=0,Lr_=0,cB=[],z3g=0,e3B=!1,BFg=document.createTextNode("");(new window.MutationObserver(xmv)).observe(BFg,{characterData:!0});var AJ=new Map,XI=0,lvb=function(f){this.mappedHandleId=f},Krb=function(f,H,v,t){this.mappedHandleId=f;
var M=this;this.mappedHandleId=f;this.callback=H;this.waitTime=v;this.schedulerPriority=t;this.handleId=_.nN.addJob(function(){M.callback();AJ.delete(M.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.e(Krb,lvb);Krb.prototype.cancel=function(){_.nN.cancelJob(this.handleId);AJ.delete(this.mappedHandleId)};
var Dm3=function(f,H){this.mappedHandleId=f;var v=this;this.mappedHandleId=f;this.callback=H;this.handleId=rn5(function(){v.callback();AJ.delete(v.mappedHandleId)})};
_.e(Dm3,lvb);Dm3.prototype.cancel=function(){var f=this.handleId-Lr_;f<0||cB.length<=f||(cB[f]=null);AJ.delete(this.mappedHandleId)};var Qkb=function(){};
Qkb.prototype.cancel=function(){this.jobHandle!==void 0&&(oxe(this.jobHandle),this.jobHandle=void 0)};
Qkb.prototype.run=function(f,H,v){var t=this;this.cancel();this.callback=f;this.jobHandle=_.bJ(function(){f();t.callback=void 0},H,v)};
Qkb.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var nxr=new WeakMap;var UzC=AA(function(f){for(var H=f,v=0;v<3;v++)H=Object.getPrototypeOf(H);delete H.prototype.connectedCallback;var t=function(){return f.apply(this,arguments)||this};
_.e(t,f);t.prototype._attachDom=function(M){if(!M)return null;var h=(0,_.gX)(this.hostElement);h.attachShadow({mode:"open",shadyUpgradeFragment:M});h.shadowRoot.appendChild(M);return h.shadowRoot};
t.prototype._takeAttributes=function(){for(var M=this.hostElement.attributes,h=0;h<M.length;h++){var y=M[h],m=void 0,W=void 0;(W=(m=this).__attributeReaction)==null||W.call(m,y.name,null,y.value)}};
t.prototype._readyClients=function(){f.prototype._readyClients.call(this);this.root=this};
t.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);f.prototype.connectedCallback.call(this)};
_.H7.Object.defineProperties(t,{template:{configurable:!0,enumerable:!0,get:function(){return t.prototype._template}}});
return t}),eAo=AA(function(f){var H=function(){return f.apply(this,arguments)||this};
_.e(H,f);H.prototype.created=function(){if(this.__notifyEffects)for(var v=_.V(Object.values(this.__notifyEffects)),t=v.next();!t.done;t=v.next()){t=_.V(t.value);for(var M=t.next();!M.done;M=t.next())M.value.fn=G95}if(this.__reflectEffects)for(v=_.V(Object.values(this.__reflectEffects)),t=v.next();!t.done;t=v.next())for(t=_.V(t.value),M=t.next();!M.done;M=t.next())M.value.fn=Cl_};
H.prototype._addEventListenerToNode=function(v,t,M){v=kV(v);p1(v,t,M)||f.prototype._addEventListenerToNode.call(this,v,t,M)};
H.prototype._removeEventListenerFromNode=function(v,t,M){v=kV(v);QI(v,t,M)||f.prototype._removeEventListenerFromNode.call(this,v,t,M)};
H.prototype._propertiesChanged=function(v,t,M){if(this.__dataToNotify&&this.__notifyEffects)for(var h=_.V(Object.keys(this.__dataToNotify)),y=h.next();!y.done;y=h.next()){y=y.value;var m=Plb(y);this.__notifyEffects[m]||delete this.__dataToNotify[y]}else this.__dataToNotify=null;f.prototype._propertiesChanged.call(this,v,t,M)};
H.prototype.fire=function(v,t,M){t=t===void 0?{}:t;var h;return _.YE(kV((h=M==null?void 0:M.node)!=null?h:this),v,t,M)};
H.prototype._ensureAttribute=function(v,t){var M=kV(this);M.hasAttribute(v)||EE(M,t,v)};
H.prototype.isLightDescendant=function(v){var t=kV(this);return kV(t)!==v&&_.mF(t).contains(v)&&_.mF(t).getRootNode()===_.mF(v).getRootNode()};
return H});
_.jH.ready=function(){var f;((f=this.hostElement)!=null?f:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var H;((H=this.hostElement)!=null?H:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.x3._subscribeIronResize=function(f){var H;((H=f.hostElement)!=null?H:f).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.x3._unsubscribeIronResize=function(f){var H;((H=f.hostElement)!=null?H:f).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var cnv=[Array,Boolean,Date,Number,Object,String],wX=function(f,H,v,t){this.polySiInfo=f;this.polySiParams=H;this.polySiContext=v;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;t||this instanceof HTMLElement&&(t=this);if(!t)throw Error("Jg");this.allowedProps=H.allowedProps;this.hostElement=t;this.is=f.is;this.upgradeDisabled=!!H.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");f=new Set(H.reactiveSchemas.filter(function(M){return M.type!==
"observe"}).map(function(M){return M.propertyKey}));
this.signalProxy=new pM(this,void 0,{reactiveProps:f,reactivityMode:H.reactivityMode});this.__dataHasAccessor={};H=_.V(H.reactiveSchemas);for(f=H.next();!f.done;f=H.next())f=f.value,f.type==="signal"&&(this.__dataHasAccessor[f.propertyKey]=!0);this.upgradeDisabled||LIn(this)};
wX.prototype.getExtraMethodsToForward=function(){return[]};
var LIn=function(f){f.polySiContext.didRegister||(f.registered(),f.polySiContext.didRegister=!0);f.polySiContext.finalizedTemplate||(f.polySiContext.finalizedTemplate={},f.polySiParams.templateGetter&&(f.polySiContext.finalizedTemplate.processedTemplate=UmH(f.polySiParams.templateGetter,f.polySiParams.is)));xzh(f);var H=f.hostElement;H.loggingStatus!=null||(H.loggingStatus={});H.loggingStatus.isInitializing=!0;Og(function(){return void f.created()});
H.loggingStatus.isInitializing=!1;f.isPolySiElementConnected&&Bvr(f)},Bvr=function(f){f.didCallReady||(Og(function(){return void f.ready()}),f.didCallReady=!0);
f.isAttached=!0;f.attached()};
_.R=wX.prototype;_.R.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||Bvr(this)};
_.R.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.R.attributeChangedCallback=function(f,H,v){if(this.upgradeDisabled)f==="disable-upgrade"&&v===null&&(this.upgradeDisabled=!1,LIn(this));else if(H!==v){var t=_.ly(f),M=this.polySiContext.typesForSignals[t];if(M&&(!this.reflecting||_.J("polysi_attribute_changed_serializing_killswitch"))){switch(M){case Object:try{var h=JSON.parse(v)}catch(m){h=v}break;case Array:try{h=JSON.parse(v)}catch(m){h=null}break;case Date:h=isNaN(v)?String(v):Number(v);h=new Date(h);break;case Boolean:h=v!==null;break;case Number:h=
Number(v);break;default:h=v}this[t]=h}t=_.V(this.polySiParams.behaviors);for(M=t.next();!M.done;M=t.next())h=void 0,(h=M.value.attributeChanged)==null||h.call(this,f,H,v);var y;(y=this.attributeChanged)==null||y.call(this,f,H,v)}};
_.R.attributeChangedCallbackWrapper=function(f,H,v){this.attributeChangedCallback(f,H,v)};
_.R.setPropertiesFromInitialAttributeValues=function(){for(var f=0;f<this.hostElement.attributes.length;f++){var H=this.hostElement.attributes[f];(H.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(H.name))&&this.attributeChangedCallback(H.name,null,H.value)}};
_.R.created=function(){this.provide=this.polySiParams.provide;var f;(f=this.initializeInjection)==null||f.call(this);f=_.V(this.polySiParams.reactiveSchemas);for(var H=f.next();!H.done;H=f.next())H=H.value,H.type==="signal"&&(this.mutablePropNames.add(H.propertyKey),Nu(this.signalProxy,H.propertyKey));NFE(this,this.polySiInfo,this.polySiParams.behaviors);f=_.V(this.polySiParams.reactiveSchemas);for(H=f.next();!H.done;H=f.next())H=H.value,H.type==="signal"&&H.value!==void 0&&(this.signalProxy.model[H.propertyKey]=
typeof H.value==="function"?H.value.call(this):H.value);if(this.polySiParams.signalProperties)for(f=_.V(this.polySiParams.signalProperties),H=f.next();!H.done;H=f.next()){H=H.value;var v=void 0;((v=this.__signalCache)==null?0:v.has(H))||(this.signalProxy.model[H]=void 0)}sIZ||zAg(this);ExN(this);f=_.V(this.polySiParams.behaviors);for(H=f.next();!H.done;H=f.next())v=void 0,(v=H.value.created)==null||v.call(this);var t;(t=this.polySiInfo.created)==null||t.call(this)};
_.R.registered=function(){var f=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var H=Object.getPrototypeOf(this);H.addReactiveSchema=function(m){f.polySiParams.reactiveSchemas.push(m)};
for(var v=_.V(this.polySiParams.behaviors),t=v.next();!t.done;t=v.next()){var M=void 0;(M=t.value.beforeRegister)==null||M.call(H)}var h;(h=this.polySiInfo.beforeRegister)==null||h.call(H);H.addReactiveSchema=AnR;v=_.V(this.polySiParams.behaviors);for(t=v.next();!t.done;t=v.next())M=void 0,(M=t.value.registered)==null||M.call(H);var y;(y=this.polySiInfo.registered)==null||y.call(H)};
_.R.ready=function(){var f;(f=this.beforeReady)==null||f.call(this);sIZ&&zAg(this);var H;if(f=(H=this.polySiContext.finalizedTemplate)==null?void 0:H.processedTemplate){f=Jns(f.template,f.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:f.hasInsertionPoint,thisCtx:this});H=f.nodesById;f=f.root;var v=this.hostElement;var t=t===void 0?!1:t;v=(0,_.gX)(v);if(!v.attachShadow)throw Error("Cd");if(!v.shadowRoot||t)v.attachShadow({mode:"open",shadyUpgradeFragment:f}),v.shadowRoot.appendChild(f);
this.root=v.shadowRoot;this.$=H}FIh(this);t=_.V(this.polySiParams.behaviors);for(H=t.next();!H.done;H=t.next())f=void 0,(f=H.value.ready)==null||f.call(this);var M;(M=this.polySiInfo.ready)==null||M.call(this)};
_.R.attached=function(){for(var f=_.V(this.polySiParams.behaviors),H=f.next();!H.done;H=f.next()){var v=void 0;(v=H.value.attached)==null||v.call(this)}var t;(t=this.polySiInfo.attached)==null||t.call(this)};
_.R.detached=function(){for(var f=_.V(this.polySiParams.behaviors),H=f.next();!H.done;H=f.next()){var v=void 0;(v=H.value.detached)==null||v.call(this)}var t;(t=this.polySiInfo.detached)==null||t.call(this)};
var xzh=function(f){for(var H=_.V(f.polySiParams.behaviors),v=H.next();!v.done;v=H.next())if(v=v.value,v.listeners)for(var t in v.listeners)Zf5(f,f.hostElement,t,v.listeners[t]);if(f.polySiInfo.listeners)for(var M in f.polySiInfo.listeners)Zf5(f,f.hostElement,M,f.polySiInfo.listeners[M])},Zf5=function(f,H,v,t,M){f=l2R(f,t,M);
p1(H,v,f)||H.addEventListener(v,f);return f},zAg=function(f){for(var H=_.V(f.polySiParams.reactiveSchemas),v=H.next();!v.done;v=H.next())v=v.value,v.type==="compute"||v.type==="computeWithMethod"?xUR(f.signalProxy,v,f):v.type==="redux"?FeH(f.signalProxy,v,f.store):v.type==="signal"&&v.readOnly&&zhN(f.signalProxy,v)},FIh=function(f){for(var H=_.V(f.polySiParams.reactiveSchemas),v=H.next(),t={};!v.done;t={schema$jscomp$12:void 0},v=H.next())t.schema$jscomp$12=v.value,t.schema$jscomp$12.type==="notify"?
Ke3(f.signalProxy,t.schema$jscomp$12,f.hostElement):t.schema$jscomp$12.type==="observe"?DUN(f.signalProxy,t.schema$jscomp$12,f):t.schema$jscomp$12.type==="reflect"&&f.signalProxy.effect(function(h){return function(){var y=f.signalProxy.getWithPath([h.schema$jscomp$12.propertyKey]);
f.reflecting=!0;N2s(f.hostElement,h.schema$jscomp$12.propertyKey,y,!0);f.reflecting=!1}}(t));
if(f.reflectedAttributes)for(H=_.V(Object.entries(f.reflectedAttributes)),t=H.next(),v={};!t.done;v={key$jscomp$931:void 0,value$jscomp$9192:void 0},t=H.next()){var M=_.V(t.value);t=M.next().value;M=M.next().value;v.key$jscomp$931=t;v.value$jscomp$9192=M;f.signalProxy.effect(function(h){return function(){f.reflecting=!0;N2s(f.hostElement,h.key$jscomp$931,(0,h.value$jscomp$9192)(),!0);f.reflecting=!1}}(v))}};
_.R=wX.prototype;_.R._setPendingProperty=function(f,H){this.set(f,H);return!1};
_.R._enableProperties=function(){};
_.R._setPendingPropertyOrPath=function(f,H){this.notifyPath(f,H);return!1};
_.R._addPropertyEffect=function(){};
_.R._stampTemplate=function(){throw Error("Kg");};
_.R.fire=function(f,H,v){H=H===void 0?{}:H;v=v===void 0?{}:v;var t,M,h={bubbles:(t=v.bubbles)!=null?t:!0,cancelable:!!v.cancelable,composed:(M=v.composed)!=null?M:!0},y;return _.YE(bfH((y=v.node)!=null?y:this.hostElement),f,H,h)};
_.R.get=function(f,H){var v=C2(f);return H?UUb(H,v):f==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(v)};
_.R.linkPaths=function(){};
_.R.listen=function(f,H,v){f=bfH(f);this.boundListeners!=null||(this.boundListeners=new WeakMap);var t=this.boundListeners.get(f);t||(t={},this.boundListeners.set(f,t));var M=H+v;t[M]||(t[M]=Zf5(this,f,H,v))};
_.R.notifyPath=function(f,H){this.signalProxy.notifyPath(C2(f),arguments.length===2?{value:H}:void 0)};
_.R.canNotifyPath=function(f){return this.mutablePropNames.has(f)&&!h3R(this.signalProxy,f)};
_.R.notifySplices=function(f,H){this.signalProxy.notifySplices(C2(f),H)};
_.R.pop=function(f){var H=this.signalProxy;f=C2(f);var v=_.V(f);f=v.next().value;v=wA(v);return Nu(H,f).pop(v)};
_.R.push=function(f){var H=_.NA.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[C2(f)].concat(_.pS(H)))};
_.R.set=function(f,H,v){if(v)throw Error("Lg");f==="hidden"?this.hostElement.hidden=!!H:this.signalProxy.setWithPath(C2(f),H)};
_.R.setProperties=function(f){f=_.V(Object.entries(f));for(var H=f.next();!H.done;H=f.next()){var v=_.V(H.value);H=v.next().value;v=v.next().value;this[H]=v}};
_.R.splice=function(f,H,v){var t=_.NA.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[C2(f),H,v].concat(_.pS(t)))};
_.R.unlinkPaths=function(){};
_.R.unlisten=function(f,H,v){f=bfH(f);if(this.boundListeners){var t=this.boundListeners.get(f);if(t){v=H+v;var M=t[v];M&&(QI(f,H,M)||f.removeEventListener(H,M),delete t[v])}}};
_.R.unshift=function(f){var H=_.NA.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[C2(f)].concat(_.pS(H)))};
_.H7.Object.defineProperties(wX.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 hAr=[Array,Boolean,Date,Number,Object,String];var ysH=!1;var Qa=function(){var f=HTMLElement.apply(this,arguments)||this;f.restamp=!1;f.notifyDomChange=!1;f.JSC$13511_didCallConnected=!1;f.JSC$13511_renderDebouncer=null;f.disableTemplateUpdateSignalImpl=qu()?void 0:_.gp(!1,void 0,"Ofhkwb");var H;f.getDisableTemplateUpdate=(H=f.disableTemplateUpdateSignalImpl)==null?void 0:H[0];var v;f.setDisableTemplateUpdate=(v=f.disableTemplateUpdateSignalImpl)==null?void 0:v[1];return f};
_.e(Qa,HTMLElement);var rsb=function(f){f.conditionSignalImpl!=null||(f.conditionSignalImpl=new nM(_.gp(!1,void 0,"gE52Fb")));return f.conditionSignalImpl};
_.R=Qa.prototype;_.R.showHideChildren=function(f){KIh(this,f,this.if)};
_.R.attributeChangedCallback=function(f,H,v){if(this.JSC$13511_didCallConnected)throw Error("Pg`"+f);f==="notify-dom-change"?this.notifyDomChange=v!==null:f==="restamp"&&(this.restamp=v!==null)};
_.R.debounceRender=function(){this.JSC$13511_renderDebouncer=_.ML(this.JSC$13511_renderDebouncer,aV,this.JSC$13511_renderImpl.bind(this));_.hq(this.JSC$13511_renderDebouncer)};
_.R.disconnectedCallback=function(){var f=(0,_.gX)(this).parentNode;(!f||f.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in f&&!f.host)&&Dzh(this)};
_.R.connectedCallback=function(){var f=this;this.JSC$13511_didCallConnected=!0;dz9?YtB():this.style.display="none";this.parentSignalProxy.effect(function(){rsb(f).getWithPath([]);f.debounceRender()})};
_.R.render=function(){_.Ya()};
_.R.JSC$13511_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var f=this.if,H=!1;if(f){this.hasInstance()||(ocv(this),H=!0);a:{var v=(0,_.gX)(this).parentNode;if(this.hasInstance()){var t=this.instance.children;if((t==null?0:t.length)&&(0,_.gX)(this).previousSibling!==t[t.length-1])for(var M=0;M<t.length;M++)(0,_.gX)(v).insertBefore(t[M],this)}else{if(!v){v=!1;break a}ncM(this,v)}v=!0}if(!v)return}else this.restamp&&Dzh(this);KIh(this,!1,f);f&&!H&&ocv(this);jIM&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.R.hasInstance=function(){return!!this.instance};
var ncM=function(f,H){var v=f.parentSignalProxy;if(qu()){var t=_.V(_.gp(!0,void 0,"yf4Yhf"));var M=t.next().value;t=t.next().value;v=f.parentSignalProxy}else{var h;var y=new pM((h=pTa(f))!=null?h:{},function(W){var I=Nu(f.parentSignalProxy,W).getChangeRecordSignal([]);W=_.gp(void 0,void 0,"oT9mkc");var S=new nM(W);y.effect(function(){if(f.getDisableTemplateUpdate&&!f.getDisableTemplateUpdate()){var d=I();S.notifyPath(C2(d.path),{value:d.value})}});
return S});
f.parentSignalProxy.childSignalProxies.push(y);var m=v=y}v=Jns(f.templateInfo,f.templateInfo.nodeInfoList,v,{eventListenerHost:f.eventListenerHost,hasInsertionPoint:f.templateInfo.hasInsertionPoint,thisCtx:f.eventListenerHost,enabledSignal:qu()?M:void 0,getModel:function(){return pTa(f)}}).root;
f.instance={root:v,children:[],hidden:!1,signalProxy:m,getTemplateUpdatesEnabled:M,setTemplateUpdatesEnabled:t};m=_.V(v.childNodes);for(M=m.next();!M.done;M=m.next())f.instance.children.push(M.value);(0,_.gX)(H).insertBefore(f.instance.root,f)},pTa=function(f){if((f=f.parentSignalProxy.model)&&!f.hostElement){var H={},v;
for(v in f)f.hasOwnProperty(v)&&(H[v]=f[v]);return H}},Dzh=function(f){if(f.instance){var H=f.instance.children;
if(H.length){var v=(0,_.gX)(H[0]).parentNode;if(v){v=(0,_.gX)(v);for(var t=0;t<H.length;t++)v.removeChild(H[t])}}qu()?f.instance.setTemplateUpdatesEnabled(!1):f.instance.signalProxy.dispose();f.instance=void 0}},KIh=function(f,H,v){H=H||!v;
f.instance&&f.instance.hidden!==H&&(f.instance.hidden=H,VXv(H,f.instance.children))},ocv=function(f){if(qu()){var H=f.instance;
H&&PM(f.parentSignalProxy.owner,function(){return!H.getTemplateUpdatesEnabled()})&&H.setTemplateUpdatesEnabled(!0)}else f.setDisableTemplateUpdate(!1)};
_.H7.Object.defineProperties(Qa.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var f=this;return PM(this.parentSignalProxy.owner,function(){return rsb(f).getWithPath([])})},
set:function(f){f||(qu()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));rsb(this).setWithPath([],!!f)}}});
_.H7.Object.defineProperties(Qa,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",Qa);var QI_=[],uq=function(){var f=HTMLElement.apply(this,arguments)||this;f.as="item";f.indexAs="index";f.itemsIndexAs="itemsIndex";f.targetFramerate=20;f.notifyDomChange=!1;f.isDetached=!1;f.JSC$13518_renderDebouncer=null;f.instances=[];f.chunkingId=null;f.chunkCount=null;f.shouldMeasureChunk=!1;f.shouldContinueChunking=!1;f.renderStartTime=null;f.JSC$13518_didCallConnected=!1;return f};
_.e(uq,HTMLElement);var uYC=function(f){f.itemSignalImpl!=null||(f.itemSignalImpl=new nM(_.gp(QI_,void 0,"YBrqgf")));return f.itemSignalImpl},avo=function(f,H){Array.isArray(H)||(H=QI_);
uYC(f).setWithPath([],H)};
_.R=uq.prototype;_.R.showHideChildren=function(f){for(var H=_.V(this.instances),v=H.next();!v.done;v=H.next())VXv(f,v.value.children)};
_.R.notifyPath=function(f,H){f=C2(f);f[0]==="items"&&(f.length===1?avo(this,H):uYC(this).setWithPath(f.slice(1),H))};
_.R.canNotifyPath=function(f){return f==="items"};
_.R.attributeChangedCallback=function(f,H,v){if(this.JSC$13518_didCallConnected)throw Error("Qg`"+f);f==="as"?this.as=v:f==="index-as"?this.indexAs=v:f==="items-index-as"?this.itemsIndexAs=v:f==="initial-count"?this.initialCount=Number(v):f==="notify-dom-change"?this.notifyDomChange=v!==null:f==="target-framerate"&&(this.targetFramerate=Number(v))};
_.R.disconnectedCallback=function(){this.isDetached=!0;for(var f=0;f<this.instances.length;f++)PU9(this,f);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.R.connectedCallback=function(){var f=this,H=uYC(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var M=H(),h=C2(M.path);if(h[0]===void 0||h[0]==="splices"||h[0]==="length")f.debounceRender();else{var y=h[0];if(y=f.instances[typeof y==="string"?Math.floor(Number(y)):y])h=[f.as].concat(_.pS(h.slice(1))),y.signalProxy.notifyPath(h,M)}});
this.JSC$13518_didCallConnected=!0;dz9?YtB():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var v=(0,_.gX)((0,_.gX)(this).parentNode),t=0;t<this.instances.length;t++)v.insertBefore(this.instances[t].root,this);this.chunkingId&&this.render()}};
_.R.debounceRender=function(){this.JSC$13518_renderDebouncer=_.ML(this.JSC$13518_renderDebouncer,aV,this.JSC$13518_renderImpl.bind(this));_.hq(this.JSC$13518_renderDebouncer)};
_.R.render=function(){this.debounceRender();_.Ya()};
_.R.JSC$13518_renderImpl=function(){var f=this;if(!this.parentSignalProxy.isDisposed){var H=this.items,v=Gyr(this,H.length);CUg(this,H,v);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){f.chunkingId=null;if(f.shouldMeasureChunk){var t=performance.now()-f.renderStartTime;f.chunkCount=Math.round(Math.ceil(1E3/f.targetFramerate)/t*f.chunkCount)||1}f.shouldContinueChunking&&f.debounceRender()}));
jIM&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var Gyr=function(f,H){var v=H,t=f.instances.length;if(f.initialCount){if(f.chunkCount){var M=Math.min(Math.max(H-t,0),f.chunkCount);v=Math.min(t+M,H)}else v=Math.min(H,f.initialCount),M=Math.max(v-t,0),f.chunkCount=M||1;f.shouldMeasureChunk=M===f.chunkCount;f.shouldContinueChunking=v<H;f.renderStartTime=performance.now()}return v},CUg=function(f,H,v){for(var t=0;t<v;t++){var M=f.instances[t],h=H[t];
M?(M.signalProxy.setWithPath([f.as],h),M.signalProxy.setWithPath([f.indexAs],t)):EcZ(f,h,t)}for(H=f.instances.length-1;H>=t;H--)v=f,M=H,PU9(v,M),_.V(v.instances.splice(M,1)).next().value.signalProxy.dispose()},PU9=function(f,H){f=f.instances[H];
H=(0,_.gX)(f.root);for(var v=0;v<f.children.length;v++)H.appendChild(f.children[v])},EcZ=function(f,H,v){var t={};
H=Object.assign({},Nvh(f),(t[f.as]=H,t[f.indexAs]=v,t[f.itemsIndexAs]=v,t));var M=new pM(H,function(y){if(y!==f.as&&y!==f.indexAs){if(y===f.itemsIndexAs)return Nu(M,f.indexAs);var m=Nu(f.parentSignalProxy,y).getChangeRecordSignal([]);y=_.gp(void 0,void 0,"T21Pqc");var W=new nM(y);M.effect(function(){var I=m();W.notifyPath(C2(I.path),{value:I.value})});
return W}});
f.parentSignalProxy.childSignalProxies.push(M);t=Jns(f.templateInfo,f.templateInfo.nodeInfoList,M,{eventListenerHost:f.eventListenerHost,getModel:function(){var y={};return Object.assign({},Nvh(f),(y[f.as]=M.model[f.as],y[f.indexAs]=M.model[f.indexAs],y[f.itemsIndexAs]=M.model[f.indexAs],y))},
hasInsertionPoint:f.templateInfo.hasInsertionPoint,thisCtx:f.eventListenerHost,methodInvocationRequirement:ZLh,enabledSignal:f.stampingEnabled}).root;H={root:t,children:[],signalProxy:M};t=_.V(t.childNodes);for(var h=t.next();!h.done;h=t.next())H.children.push(h.value);t=(t=f.instances[v+1])?t.children[0]:f;(0,_.gX)((0,_.gX)(f).parentNode).insertBefore(H.root,t);f.instances[v]=H},Nvh=function(f){if((f=f.parentSignalProxy.model)&&!f.hostElement){var H={},v;
for(v in f)f.hasOwnProperty(v)&&(H[v]=f[v]);return H}};
uq.prototype.itemForElement=function(f){var H=this,v=this.instances.find(function(t){return t.children.includes(f)});
if(v)return PM(this.parentSignalProxy.owner,function(){return v.signalProxy.getWithPath([H.as])})};
uq.prototype.indexForElement=function(f){var H=this.instances.findIndex(function(v){return v.children.includes(f)});
return H>=0?H:void 0};
_.H7.Object.defineProperties(uq.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var f=this;return PM(this.parentSignalProxy.owner,function(){return uYC(f).getWithPath([])})},
set:function(f){avo(this,f)}},
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}}});
_.H7.Object.defineProperties(uq,{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",uq);var csh,XTg;_.aj=new _.iN("STATE_STORE_TOKEN");csh=new _.iN("SELECT_TOKEN");XTg=new _.iN("DISPATCH_TOKEN");var Ive={getSelectFn:function(){var f;return(f=_.t8().resolve(_.vh(csh)))!=null?f:mzb},
getDispatchFn:function(){var f;return(f=_.t8().resolve(_.vh(XTg)))!=null?f:_.fu().dispatch.bind(_.fu())},
getAppStore:function(){return _.t8().resolve(_.aj)}},$zv,gcg=!1;var sIT=new YiM;var eAR=function(){};var JsR=void 0;var Asv=function(){};
Asv.prototype.hasAttribute=function(f){if(f==="dir")return!1;if(f==="disable-upgrade"){var H,v;return(v=(H=this.hostElement)==null?void 0:H.hasAttribute("disable-upgrade"))!=null?v:!1}throw Error("Rg`"+f);};
Asv.prototype.attributeChangedCallbackWrapper=function(f,H,v){if(f==="disable-upgrade"&&this.__isUpgradeDisabled&&v===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var t;((t=this.hostElement)!=null?t:this).isConnected&&this.connectedCallback()}else H===v||this.__isReflecting||this.attributeChangedCallback(f,H,v)};
Asv.prototype.getExtraMethodsToForward=function(){for(var f=this,H=[],v=_.V(bL_),t=v.next(),M={};!t.done;M={tagName$jscomp$54:void 0,name$jscomp$588:void 0},t=v.next())M.name$jscomp$588=t.value,t=void 0,M.name$jscomp$588==="_setPendingProperty"?(M.tagName$jscomp$54=this.hostElement.tagName.toLowerCase(),t=function(h){return function(y,m,W){FI(h.tagName$jscomp$54,y,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return f._setPendingProperty(y,m,W)}}(M)):t=function(h){return function(){return f[h.name$jscomp$588].apply(f,
_.pS(_.NA.apply(0,arguments)))}}(M),H.push([M.name$jscomp$588,
t]);return H};
for(var Bvg=eAo(UzC((0,_.jh)(Asv))),KI_=["disabled","disable-upgrade"],iLC=(0,_.jh)(function(){}),kyv=new Set(Object.getOwnPropertyNames(iLC.prototype)),QIs=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.pS(kyv))),ocE=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),bL_=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),TvC=new Set([].concat(_.pS(ocE),_.pS(bL_),_.pS(kyv))),wTC=_.V(TvC),qtH=wTC.next();!qtH.done;qtH=wTC.next())f2R.add(qtH.value);var pTe={created:function(){ExN(this);this.initializeInjection()}};var XTv=!1,Vz=window.ShadyDOM,fHb=["appendChild","insertBefore","removeChild","replaceChild"],qtb=[Node];Vz&&qtb.push(Vz.Wrapper);var R$3,Ve5,mne={};_.Y6=new Set;_.Vn="";_.W1N="";var yz,mx=new Set;var ZBR=new Set("context didCallReady is info params signalProxy".split(" ")),lHe="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),Une="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var fHH=se({entities:Ikv}),HBb=new HS(fHH);var vb9=function(){return _.er.apply(this,arguments)||this};
_.e(vb9,_.er);_.H7.Object.defineProperties(vb9.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return HBb}}});
_.E([_.L2()],vb9);_.PH=[D5.prototype,vb9.prototype];_.GF={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var f=this,H={};setTimeout(function(){var v;return _.YE((v=f.hostElement)!=null?v:f,"yt-live-chat-add-tooltip-target",H)},0);
this.handler_=H.handler},
detached:function(){if(this.handler_){var f;this.handler_.removeElementFromSupportingTooltips((f=this.hostElement)!=null?f:this)}this.handler_=null}}};_.d9=new _.iN("ICON_MANAGER_TOKEN");var teo=[48,20,18,16,15,13,12],Xr3=new Map,P4T=new Set,QaH=new Set,aHE=new Set,prE=new Set,ux3=new Set,C45=new Promise(function(f){var H=!1,v=!1,t=!1,M=[],h=function(y){if("detail"in y)if(y=y.detail,y.name==="yt-icons")GmR(y),H=!0;else if(y.name==="yt-sys-icons")GmR(y),v=!0;else{var m;((m=y.name)==null?0:m.includes("yt-sys-icons"))&&y.size!==24&&(GmR(y,!0),M.push(y.size),M.length===teo.length&&(t=!0))}H&&v&&t&&(window.removeEventListener("iron-iconset-added",h),f())};
window.addEventListener("iron-iconset-added",h)}),N53=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"]]);_.CM={};_.CM.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.fG,computeHref_:function(f,H){H=H===void 0?!1:H;if(!f||f.commandExecutorCommand)return null;var v=GVr(f,H);return H||v!==null?v?_.J("enable_polymer_resin")?_.Co(v).toString():v:null:(_.pb(new _.e$("computeHref was null",this.is,f)),null)},
computeOptionalHref_:function(f){return this.computeHref_(f,!0)},
computeNofollow_:function(f){return f?KVR(f)?"nofollow":null:null},
computeIcon_:function(f){return f&&f.iconType?_.SW(f.iconType):""},
resolveCommand:function(f,H,v){H=H===void 0?{}:H;return _.sV(f,this.hostElement,H,v===void 0?!1:v)}};var h$_,Ez;_.Mev={};h$_=null;
Ez={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_=afg(this.viewroot));_.bJ(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var f=this;this.unobserve_();if(_.J("kevlar_vimio_use_shared_monitor"))T5R(this.hostElement,{data:this.data||null,observer:this.visibilityObserver,visibilityCallback:this.visibilityCallback.bind(this),prescanCallback:this.onPrescanVisible.bind(this),layer:this.getScreenLayer&&this.getScreenLayer(),showOption:this.visibilityOptionVisible_,hideOption:this.visibilityOptionHidden_,prescanOption:this.visibilityOptionPrescan_,skipLogging:this.shouldSkipLogging.bind(this)});
else{var H=[];this.visibilityOptionVisible_&&H.push(this.visibilityObserver.observe(this.hostElement,function(){return f.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&H.push(this.visibilityObserver.observe(this.hostElement,function(){return f.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&H.push(this.visibilityObserver.observe(this.hostElement,function(){return f.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=H}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){APv(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 f=_.EZ(this.parentNode,function(v){var t,M=(t=v.polymerController)!=null?t:v;return!!M.getVisibilityObserverForChild&&M.getVisibilityObserverForChild()},!0);
if(f){var H;this.localVisibilityObserver_=((H=f.polymerController)!=null?H:f).getVisibilityObserverForChild()}else h$_||(h$_=afg()),this.localVisibilityObserver_=h$_;return this.localVisibilityObserver_},visibilityCallback:function(f){f?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.J("kevlar_use_vimio_behavior")||(Ez={});Ez&&!_.J("kevlar_use_vimio_behavior")&&(delete Ez.attached,delete Ez.detached);_.Mev.YtVisibilityObserverBehavior=[Ez];var R$n={};R$n.YtVisualElementBehavior=[_.Mev.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.J("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.J("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var f=this.getScreenLayer&&this.getScreenLayer(),H=this.getVisibilityLogger();H&&H.reportShown(this,void 0,f)}},
onHidden:function(){if(_.J("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.J("kevlar_vimio_use_shared_monitor")){var f=this.getScreenLayer&&this.getScreenLayer(),H=this.getVisibilityLogger();H&&H.reportHidden(this,void 0,f)}},
getVisibilityLogger:function(){return _.J("kevlar_use_vimio_behavior")?_.JV():null},
shouldSkipLogging:function(){if(_.a8("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var f=this.getParentRenderer&&this.getParentRenderer();if(!f)return!1;var H,v=(H=f.polymerController)!=null?H:f;if(!v.data)return!1;f=this.data.trackingParams;f=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:f;var t;H=(t=v.data)==null?void 0:t.trackingParams;var M,h;H=((M=v.data)==null?0:M.loggingDirectives)?(h=v.data)==null?void 0:h.loggingDirectives.trackingParams:H;return f&&H&&f===
H}}];var flR=new Map,FA;var Jl3=function(f){this.layer=f},R0=function(f){return f.layer!==void 0?f.layer:f.parent?R0(f.parent):f.layer=0};var R_T;_.k={};R_T=0;_.k.YtRendererBehavior=[_.CM.YtComponentBehavior,R$n.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_:_.J("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var f,H;(H=(f=this.monitorScrollElement)!=null?f:this.hostElement)==null||H.removeEventListener("scroll",_.jr(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();wrs(this.hostElement);dma(_.LM(),this.hostElement);fY.delete(this.hostElement)},
registerRenderer:function(f){var H;((H=f.polymerController)!=null?H:f).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(f),this.markDirty())},
unregisterRenderer_:function(f){this.useVimio_||(this.childCache_.delete(f),this.markDirty())},
attached:function(){var f=this,H=this.getParentRenderer();if(H){var v,t,M;(t=(v=(M=H.polymerController)!=null?M:H).registerRenderer)==null||t.call(v,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var h,y;(y=(h=this.monitorScrollElement)!=null?h:this.hostElement)==null||y.addEventListener("scroll",_.jr(this,this.onScroll))}_.nN.addJob(function(){Hqe(f.hostElement)},8);
v=new Jl3(this.screenLayer||void 0);(H=fY.get(H))&&H.layerNode&&(v.parent=H.layerNode);H={};GAs(this.hostElement,(H.isRenderer=!0,H.layerNode=v,H[lSN]=this.data,H))},
getParentRenderer:function(){for(var f=this.hostElement.parentNode,H,v;f&&((H=fY.get(f))==null||!H.isRenderer)&&!((v=f.polymerController)!=null?v:f).isRenderer_;)f=f.parentNode||f.host;return f},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.J("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.P6("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.J("debug_web_ve_data")&&this.data.trackingParams){var f="";try{f=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(v){_.oO(v)}if(f){var H=hjg(f,1);H!==void 0&&(this.hostElement.dataset.veIndex=String(H));f=hjg(f,2);
f!==void 0&&(this.hostElement.dataset.ve=String(f))}}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,_.J("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.zK(this.data.loggingDirectives.trackingParams)),this.visualElement=_.lV(_.UV(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var f=this.data.targetId;_.skb(_.LM(),f,this.hostElement)}else dma(_.LM(),this.hostElement)},
onScroll:function(){var f=Date.now();f-this.lastHandledScroll_<50||(this.lastHandledScroll_=f,this.markDirty())},
markDirty:function(){_.J("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():VJr(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var f=this.getParentRenderer();if(f&&(f=fY.get(f))&&f.layerNode)return R0(f.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.pS(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var f=0;f<this.data.impressionEndpoints.length;f++)this.sendImpression(this.data.impressionEndpoints[f]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(f){f.clickTrackingParams&&delete f.clickTrackingParams;var H,v;(f==null?0:(H=f.commandMetadata)==null?0:(v=H.webCommandMetadata)==null?0:v.sendPost)?_.WV(this.hostElement,[f,{impression:!0}]):_.Oj(this.hostElement,[f],this.hostElement)},
logExplicitClick:function(f){var H=_.uy(this.getScreenLayer());if(H){var v,t=(v=f.polymerController)!=null?v:f;f=t.visualElement;t=t.trackingParams||t.clickTrackingParams;!f&&t&&(f=_.zK(t));f&&_.Ti(H,f)}}}];var Veb={},NB=function(){return _.er.apply(this,arguments)||this};
_.e(NB,_.er);NB.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
NB.prototype.onPdgItemBehaviorClick=NB.prototype.onPdgItemBehaviorClick;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],NB.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],NB.prototype,"data",void 0);_.E([_.sE("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],NB.prototype,"onPdgItemBehaviorClick",null);_.E([_.L2()],NB);Veb.YtPdgLiveChatItemBehavior=[NB.prototype,_.k.YtRendererBehavior];var yPM;var Ych;_.cH={};_.cH.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var X9=function(){var f=tg.apply(this,arguments)||this;f.switchTemplateAtRegistration=!1;return f};
_.e(X9,tg);X9.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||$pH(this),_.uwT(this,"doRender"),this.doRender())};
X9.prototype.debounceRender=function(){this.templatingFn&&_.iJ(this,"doRender",this.doRender)};
X9.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.oO(Error("ah"))};
X9.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.E([BQ5()],X9);var mna=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Ap={},IlR=(Ap[1]={filterString:null,isUnwrappable:null,unwrap:null},Ap[2]={filterString:function(f,H,v){return mV(v)},
isUnwrappable:function(f){return f instanceof bD},
unwrap:function(f){return kU(f)}},Ap[3]={filterString:function(f,H,v){return mna.test(v)?v:G1.toString()},
isUnwrappable:function(f){return po(f)},
unwrap:function(f){return _.QO(f)}},Ap[4]={filterString:function(){return G1.toString()},
isUnwrappable:function(f){return f instanceof z1},
unwrap:function(f){return _.re(f).toString()}},Ap[5]={filterString:function(f,H,v){return v},
isUnwrappable:function(f){return typeof f==="string"},
unwrap:function(f){return f.toString()}},Ap[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(f){return f instanceof _.fS},
unwrap:function(f){return HS3(f)}},Ap[8]={filterString:function(f,H,v){v=String(v).toLowerCase();
return t63(f,H,v)?v:"zClosurez"},
isUnwrappable:null,unwrap:null},Ap[10]={filterString:null,isUnwrappable:null,unwrap:null},Ap);Hb[Nk["default"]]=dpR;var jUE=[];(function(){var f=fc;fc=function(H){f==null||f(H);ou(function(){for(var v=0;v<H.length;v++)sUs(H[v])})}})();var $nH=function(){var f=_.er.apply(this,arguments)||this;f.hasUnmounted=!1;return f};
_.e($nH,_.er);_.R=$nH.prototype;_.R.beforeRegister=function(){var f=this.doIdomRender;this.templatingFn?_.oO(Error("$g")):(this.templatingFn=f,this.switchTemplateAtRegistration=!0,g9N(this))};
_.R.attached=function(){};
_.R.detached=function(){sUs(this.hostElement)};
_.R.renderIdom=function(){throw Error("ch");};
_.R.doIdomRender=function(){var f=this;q7b(this.hostElement,function(){f.renderIdom()})};
_.E([_.L2()],$nH);var W19=[X9.prototype,$nH.prototype];var OBZ,gbv=function(){return OBZ!==void 0?OBZ:OBZ=document.createElement("template")};
document.head.appendChild(gbv().content);var IH9;var Scr,dn_=function(){return Scr!==void 0?Scr:Scr=document.createElement("template")};
document.head.appendChild(dn_().content);var jah;var sa9=document.head,ZBM=sa9.appendChild,JPZ;if(jah===void 0){var lHa=document.createElement("template");_.x(lHa,"\x3c!--css-build:shady--\x3e");lHa.content.insertBefore(dn_().content.cloneNode(!0),lHa.content.firstChild);jah=lHa}JPZ=jah;ZBM.call(sa9,JPZ.content);var Una,e$C=function(){return Una!==void 0?Una:Una=document.createElement("template")};
document.head.appendChild(e$C().content);var L1H;var xnM=document.head,B5_=xnM.appendChild,z$_;if(L1H===void 0){var F1b=document.createElement("template");_.x(F1b,"\x3c!--css-build:shady--\x3e");F1b.content.insertBefore(e$C().content.cloneNode(!0),F1b.content.firstChild);L1H=F1b}z$_=L1H;B5_.call(xnM,z$_.content);var rPa=document.head,K1v=rPa.appendChild,DnZ;if(IH9===void 0){var obC=document.createElement("template");_.x(obC,"\x3c!--css-build:shady--\x3e");obC.content.insertBefore(gbv().content.cloneNode(!0),obC.content.firstChild);IH9=obC}DnZ=IH9;K1v.call(rPa,DnZ.content);var nbC,prv=function(){return nbC!==void 0?nbC:nbC=document.createElement("template")};
document.head.appendChild(prv().content);var QaC;_.TK=new _.iN("DARK_THEME_TOKEN");var y2b=new _.Ak("accessibilityProperties");var Vos=new _.Ak("layoutProperties");var Y2s=new _.Ak("imageType");var uxn={};if("ytAttributedStringLinkHoverColor"in uxn)throw Error("fh`ytAttributedStringLinkHoverColor");(function(f,H){uxn[f]="value"in H&&"unit"in H?Lzr(f,H):function(v){try{return H(v)}catch(t){throw Error("dh`"+f+"`"+t.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var aHv=function(f){var H=this;this.holdTime=f===void 0?500:f;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(v){var t=new CustomEvent("LONG_PRESS"),M;(M=v.changedTouches[0].target)==null||M.dispatchEvent(t)};
this.ontouchstart=function(v){H.longPressTimeout=_.Vk(_.nN,function(){H.onlongpress(v);H.longPressOccurred=!0},H.holdTime)};
this.ontouchmove=function(){_.nN.cancelJob(H.longPressTimeout);H.longPressTimeout=NaN;H.longPressOccurred=!1;H.moveOccurred=!0};
this.ontouchend=function(v){if(H.longPressTimeout&&!H.longPressOccurred&&!H.moveOccurred){var t;(t=v.changedTouches[0].target)==null||t.dispatchEvent(new Event("click"))}_.nN.cancelJob(H.longPressTimeout);H.longPressTimeout=NaN;H.longPressOccurred=!1;H.moveOccurred=!1}};var NwR=function(f,H){aHv.call(this,H);var v=this;this.callback=f;this.onlongpress=function(t){var M;(M=v.callback)==null||M.call(v,t)}};
_.e(NwR,aHv);var cBr=function(f,H){var v=Object.assign({},H);f=_.V(new Map([["ontouchstart",f.ontouchstart],["ontouchend",f.ontouchend],["ontouchmove",f.ontouchmove]]));for(var t=f.next(),M={};!t.done;M={eventName$jscomp$101:void 0,eventHandler$jscomp$1:void 0},t=f.next()){var h=_.V(t.value);t=h.next().value;h=h.next().value;M.eventName$jscomp$101=t;M.eventHandler$jscomp$1=h;H[M.eventName$jscomp$101]=function(y){return function(m){var W;(W=v[y.eventName$jscomp$101])==null||W.call(v,m);(0,y.eventHandler$jscomp$1)(m)}}(M)}};_.MJ=new _.iN("COMMAND_HANDLER_TOKEN");var Bw3=new _.Ak("parallelCommand");var rBB=new _.Ak("performOnceCommand");var FzB=new _.Ak("serialCommand");var Kz3=void 0;var P4Z=function(){this.data=[];this.consumer=null};
P4Z.prototype.push=function(f){this.consumer?this.consumer(f):this.data.push(f)};var bF={};_.gp(bF,void 0,"sgPmTd");_.gp(null,void 0,"jypsq");_.gp(null,void 0,"mWiOof");var K0B=new P4Z;var Poe=[mrM,$rZ,Ws_,gvb,Ogg,Y5o,I_b,S5g];var hkv=new _.Ak("bracketTextDecorator");var iV=new _.Ak("highlightTextDecorator");_.qE=new _.iN("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var f$B=function(){},GmM;
(GmM=window.requestIdleCallback)==null||GmM.bind(window);var vAR={calledOnce:!1,state:"visible"},HeE={calledOnce:!1,state:"hidden"};var C4b=new _.iN("ICON_WIZ_COMPONENT_TOKEN");_.JE=_.a(function(f){var H=f.icon;var v=f.active;var t=f.className;var M=f.style;var h=f.dataSelected;var y=f.dataDisabled;var m=f.role;var W=f.animateIcon;var I=f.themeOverride;var S=f.ariaHidden;var d=f.ariaExpanded;var Z=f.ariaLabel;var l=f.tabindex;var L=f.id;var r=f.size;var n=f.iconFilter;var Q=f.onKeydown;return _.O(_.g,{cond:H,then:function(){var C=_.t8().resolve(C4b);return _.O(C,{icon:H,dataSelected:h,dataDisabled:y,animateIcon:W,themeOverride:I,ariaExpanded:d,tabindex:l,id:L,active:v,size:r,
role:m,className:t,ariaHidden:S,ariaLabel:Z,style:function(){return M!=null&&M()||r==null||!r()?M==null?void 0:M():"width: "+(r==null?void 0:r())+"px;height: "+((r==null?void 0:r())+"px;")},
iconFilter:n,onKeydown:Q})}})},"b");
_.JE.idomCompat={callbacks:{onKeydown:!0}};var LM5=window.devicePixelRatio||1;var FM5=new Map([["yt_outline_bag_black_24","bag"]]);var bq=function(f){var H=this;this.margin=.1;this.whenInViewportWithMargin=f;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){H.requestScan()});
window.addEventListener("touchend",function(){H.requestScan()});
window.addEventListener("updateui",function(){H.requestScan()});
var v=new _.Nl((0,_.FH)(this.requestScan,this),100);window.addEventListener("scroll",function(){v.fire()},!0);
window.addEventListener("resize",(0,_.FH)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){H.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.FH)(this.requestScan,this))};
bq.prototype.observe=function(f){this.observationTargets.includes(f)||this.observationTargets.push(f)};
bq.prototype.unobserve=function(f){this.observationTargets=this.observationTargets.filter(function(H){return H!==f})};
bq.prototype.requestScan=function(){var f=this;this.scanRequested||(ou(function(){Ebg(f)}),this.scanRequested=!0)};
var Ebg=function(f){var H=(1+f.margin)*(document.documentElement.clientHeight||window.innerHeight);f.observationTargets=f.observationTargets.filter(function(v){var t=v.getBoundingClientRect();(t=H>t.top&&!!t.height)&&f.whenInViewportWithMargin(v);return!t&&v.parentNode});
f.scanRequested=!1};
bq.prototype.disconnect=function(){this.observationTargets=[]};var N5n,Xrn;N5n=_.V(_.gp(nAH(),void 0,"O3X2wd"));_.cPH=N5n.next().value;Xrn=N5n.next().value;window.addEventListener("resize",function(){Xrn(nAH())});var APg={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},bBC=void 0,iB_=window.innerWidth,kmM=window.innerHeight;window.addEventListener("resize",function(){bBC=void 0});var T5M;if("IntersectionObserver"in window)T5M=uNb();else{if(bBC===void 0){var wr_;wr_="matchMedia"in window?window.matchMedia(APg.landscape+","+APg.portrait).matches:void 0;bBC=wr_!==void 0?wr_:iB_>=930&&kmM>=550||iB_>=550&&kmM>=930}T5M=bBC?{observe:function(f){ou(function(){var H;(H=f.onViewportEntered)==null||H.call(f)})},
unobserve:function(){}}:new bq(function(f){ou(function(){var H;
(H=f.onViewportEntered)==null||H.call(f)})})}var pYR=T5M;var qcv=_.a(function(f){var H=!1,v=_.TN("img",function(t){_.Dt(function(){H=!0;t.onload=null})});
_.K4(function(){var t,M=(t=f.data)==null?void 0:t.call(f),h,y=(h=f.getSrc)==null?void 0:h.call(f).cb,m;t=(m=f.config)==null?void 0:m.call(f);if(m=v.value)if(h=function(I,S){if(!H)return y?y(I,S):I},Gc3(m,t),_.J("web_image_dont_reload_same_src")&&PBs(m,M,h))_.J("web_image_dont_reload_same_src_simulate_load")&&m.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var W;a$r(m,M||null,h,t,(W=f.lazy)==null?void 0:W.call(f))}},"v0I2p");
return _.O("img",{el:v})},"c");
qcv.idomCompat=!0;_.Hn=_.a(function(f){var H=function(){var v,t=f.data(),M,h,y,m,W,I,S,d,Z,l,L,r,n,Q,C,w,c,A,X,fg,gB,O5,s5,U5,lH,E5,uH,Rn,pr;var gh={contentMode:(M=f.contentMode)==null?void 0:M.call(f),loadedClass:(h=f.loadedClass)==null?void 0:h.call(f),isPreloaded:(y=f.isPreloaded)==null?void 0:y.call(f),notifyOnLoaded:(m=f.notifyOnLoaded)==null?void 0:m.call(f),notifyOnUnloaded:(W=f.notifyOnUnloaded)==null?void 0:W.call(f),preferredThumbnail:(I=f.preferredThumbnail)==null?void 0:I.call(f),preserveHeight:(S=f.preserveHeight)==
null?void 0:S.call(f),preserveWidth:(d=f.preserveWidth)==null?void 0:d.call(f),objectPosition:(Z=f.objectPosition)==null?void 0:Z.call(f),targetWidth:(l=f.targetWidth)==null?void 0:l.call(f),targetHeight:(L=f.targetHeight)==null?void 0:L.call(f),shouldShowPlaceholder:(r=f.shouldShowPlaceholder)==null?void 0:r.call(f),useWidth:(n=f.useWidth)==null?void 0:n.call(f),isToggled:(Q=f.isToggled)==null?void 0:Q.call(f),alt:(C=f.alt)==null?void 0:C.call(f),className:(w=f.className)==null?void 0:w.call(f),
onerror:f.onerror,onload:f.onload,style$:((c=f.style$)==null?void 0:c.call(f))||((A=f.style)==null?void 0:A.call(f)),color:(X=f.color)==null?void 0:X.call(f),width:(fg=f.width)==null?void 0:fg.call(f),height:(gB=f.height)==null?void 0:gB.call(f),"aria-hidden$":(Rn=(O5=f["aria-hidden$"])==null?void 0:O5.call(f))!=null?Rn:(s5=f.ariaHidden)==null?void 0:s5.call(f),draggable:(U5=f.draggable)==null?void 0:U5.call(f),"data-disabled$":(pr=(lH=f["data-disabled$"])==null?void 0:lH.call(f))!=null?pr:(E5=f.dataDisabled)==
null?void 0:E5.call(f),size:(uH=f.size)==null?void 0:uH.call(f)};return NG5(t,gh,(v=f.hideOn404)==null?void 0:v.call(f))};
return _.O(_.B6,null,_.O(_.Lc,{when:function(){var v;return((v=H())==null?void 0:v.type)==="image"}},function(){return _.O(qcv,{data:function(){return H().image},
getSrc:{cb:function(v,t){var M=H().image.sources,h=H().config.isPreloaded,y=H().config.useWidth,m=H().config.targetWidth,W=H().config.targetHeight,I=H().config.preferredThumbnail;return _.xaN(t,M,h,y,m,W,I)||""}},
config:function(){var v=H().config,t;for(t in v)v[t]===void 0&&delete v[t];return v},
lazy:f.renderLazy})}),_.O(_.Lc,{when:function(){var v;
return((v=H())==null?void 0:v.type)==="icon"}},function(){return _.O(_.JE,{icon:function(){return H().iconName},
role:function(){return H().config.role},
className:function(){return H().config.className},
style:function(){return H().config.style$+";width: "+(H().config.width+"px;height: ")+(H().config.height+"px;color: ")+(H().config.color+";")},
ariaLabel:function(){return H().config["aria-label$"]},
ariaHidden:function(){return H().config["aria-hidden$"]},
dataDisabled:function(){return H().config["data-disabled$"]},
active:function(){return H().config.isToggled},
size:function(){return H().config.size}})}))},"d");
_.Hn.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var flM=function(f){return function(H){return _.O(I4s,null,function(){var v=H.data(),t=_.p4(H.config);return _.O(q$,null,function(){return void f(v,t)})})}}(ier),A2B=_.a(function(f){var H=function(t){var M,h=_.tE(function(Z){M=n4(function(){for(var l=_.V(S()),L=l.next();!L.done;L=l.next()){L=kce(L.value);
L=typeof L==="string"?document.createTextNode(L):L;if(!(L instanceof Node)){l=new _.e$("Part is not a node",L,typeof L);_.oO(l);break}Z.appendChild(L)}})}),y=MY(function(){return $aB(t())},{isEqual:XYe}),m=_.vK(f.config),W=function(){var Z,l=y();
return!((Z=m())==null||!Z.ariaLabel)||!(l.commandRuns&&l.commandRuns.length!==0||l.paragraphStyleRuns&&l.paragraphStyleRuns.length!==0)},I=MY(m,{isEqual:wYR}),S=function(){var Z=maE(y(),I());
Oer(Z,I());return y().content?szs(y().content,Z).parts:[]},d=!0;
_.K4(function(){y();I();if(d)d=!1;else{var Z=S();Promise.resolve().then(function(){var l=h.value;if(l){l.innerText="";var L;(L=M)==null||L();M=_.F3(l,function(){return _.O(TGe,{parts:Z})},"e")}})}},"YJG4lf");
return _.O("span",{el:h,class:function(){return y()&&ktE(y(),m())},
dir:function(){var Z;return((Z=m())==null?0:Z.userInput)?"auto":void 0},
"aria-label":function(){var Z;return W()?(Z=m())==null?void 0:Z.ariaLabel:void 0},
role:function(){return W()?"text":void 0}})},v;
return((v=f.config)==null?0:v.renderedFromFormattedString)?H(f.text):_.O(_.g,{cond:f.text,then:H})},"f");
A2B.idomCompat=!0;_.iq=_.a(function(f){var H=_.vK(f.text),v=q23(f);f.renderedFromFormattedString!==void 0&&(v.renderedFromFormattedString=!0);return _.J("attr_string_reactive")?_.O(A2B,{text:H,config:v}):_.O(_.g,{cond:function(){var t;return H()&&((t=$aB(H()))==null?void 0:t.content)},
then:function(){return _.O(flM,{data:f.text,config:v})},
debugInstance:"Apcuac"})},"g");
_.iq.idomCompat=!0;var Hi5=function(f,H,v){H=H===void 0?"unknown":H;v=v===void 0?{}:v;_.e$.call(this,f+" ("+H+")",Object.assign({},{name:"YtWcwError",tagName:H},v));Object.setPrototypeOf(this,this.constructor.prototype)};
_.e(Hi5,_.e$);_.Vmg=new WeakMap;_.RNb=!1;var hNg,yR_,Mm3;_.ki=Symbol("hh");_.Rm=Symbol("ih");hNg=Symbol("jh");yR_=new Set(Object.getOwnPropertyNames(Element.prototype));Mm3=Symbol("kh");var Hqa=_.a(function(f){return _.O("yt-attributed-string",{"aria-label":f.ariaLabel,hidden:f.hidden,id:f.id,class:f.className,"force-default-style":f.forceDefaultStyle},_.O(_.iq,{text:f.data,ariaLabel:f.ariaLabel,ellipsisTruncate:f.ellipsisTruncate,isOverlay:f.isOverlay,linkInheritColor:f.linkInheritColor,noPreWrap:f.noPreWrap,noWrap:f.noWrap,userInput:f.userInput,noEndpoints:f.noEndpoints,headerRuns:f.headerRuns,isHeadline:f.isHeadline}))},"h");
_.J("web_wiz_attributed_string")&&_.yn(Hqa,"yt-attributed-string",{props:{ariaHidden:_.ki,ariaLabel:_.ki,className:_.ki,ellipsisTruncate:_.ki,isOverlay:_.ki,linkInheritColor:_.ki,noEndpoints:_.ki,noStyleRuns:_.ki,noLinkColor:_.ki,noPreWrap:_.ki,noWrap:_.ki,skipOnClick:_.ki,userInput:_.ki,headerRuns:_.ki,isHeadline:_.ki,id:_.ki,data:_.ki,hidden:_.ki,forceDefaultStyle:_.ki,text:_.Rm,stopPropagation:_.Rm,disableUpgrade:_.Rm,disable:_.Rm,slot:_.Rm}});var TF=function(){return _.K.apply(this,arguments)||this};
_.e(TF,_.K);TF.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},ier(this.data,this.config))};
_.E([_.B(W19),_.N("design:type",Object)],TF.prototype,"ytIdomTemplatingBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],TF.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],TF.prototype,"ariaLabel",void 0);_.E([_.F(),_.N("design:type",Boolean)],TF.prototype,"disable",void 0);_.E([_.F(),_.N("design:type",Boolean)],TF.prototype,"ellipsisTruncate",void 0);_.E([_.F(),_.N("design:type",Boolean)],TF.prototype,"isOverlay",void 0);
_.E([_.F(),_.N("design:type",Boolean)],TF.prototype,"linkInheritColor",void 0);_.E([_.F(),_.N("design:type",Boolean)],TF.prototype,"noPreWrap",void 0);_.E([_.F(),_.N("design:type",Boolean)],TF.prototype,"noWrap",void 0);_.E([_.F(),_.N("design:type",Boolean)],TF.prototype,"userInput",void 0);_.E([_.F(),_.N("design:type",Boolean)],TF.prototype,"noEndpoints",void 0);_.E([_.F(),_.N("design:type",Array)],TF.prototype,"headerRuns",void 0);
_.E([_.GW({is:"yt-attributed-string",disableElementRegistration:!0})],TF);
_.J("web_wiz_attributed_string")||_.G(TF,"yt-attributed-string",function(){if(QaC===void 0){var f=document.createElement("template");_.x(f,"\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");f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);
f.content.insertBefore(prv().content.cloneNode(!0),f.content.firstChild);QaC=f}f=QaC;return f},{mode:2});var v9g,tJ_,IAe;v9g=function(){this.firstThumbnailLoaded=!1};
_.MJT=function(){tJ_||(tJ_=new v9g);return tJ_};
IAe=function(f){var H=_.MJT();H.firstThumbnailLoaded||(H.firstThumbnailLoaded=!0,_.u0("ftl",f))};
v9g.prototype.reset=function(){this.firstThumbnailLoaded=!1};var mGR=0,gGB=new WeakMap,WTe=0,$K=new Set;var h_C,R_Z=function(){return h_C!==void 0?h_C:h_C=document.createElement("template")};
document.head.appendChild(R_Z().content);var VJT;var sRE,JR_,w4;_.g6=_.Mr.caches;w4=function(){};
w4.prototype.open=function(f){return _.g6.open(yBM(f))};
w4.prototype.has=function(f){return _.g6.has(yBM(f))};
w4.prototype.delete=function(f){return _.g6.delete(yBM(f))};
w4.prototype.match=function(f,H){var v=this,t,M,h,y,m,W;return _.Y(function(I){switch(I.nextAddress){case 1:return I.yield(v.keys(),2);case 2:t=I.yieldResult,M=_.V(t),h=M.next();case 3:if(h.done){I.jumpTo(5);break}y=h.value;return I.yield(v.open(y),6);case 6:return m=I.yieldResult,I.yield(m.match(f,H),7);case 7:if(W=I.yieldResult)return I.return(W);h=M.next();I.jumpTo(3);break;case 5:return I.return()}})};
var lAg=function(){};
_.e(lAg,w4);var yBM=function(f){if(f.includes(":"))throw Error("nh`"+f);return f+":"+_.ld("CacheStorage get")};
lAg.prototype.keys=function(){var f,H,v,t,M,h,y,m,W;return _.Y(function(I){if(I.nextAddress==1)return f=[],H=_.ld("CacheStorage keys"),I.yield(_.g6.keys(),2);v=I.yieldResult;t=_.V(v);for(M=t.next();!M.done;M=t.next())h=M.value,y=_.jRR(h),m=y.originalName,W=y.datasyncId,W===H&&f.push(m);return I.return(f)})};var qB=function(){var f=_.K.apply(this,arguments)||this;f.objectURL=null;f.loadTime=Infinity;return f};
_.e(qB,_.K);_.R=qB.prototype;_.R.renderIdom=function(){dGg(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("qh");this.setConfig();this.config&&CBs(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.R.objectFitToContentMode=function(f){switch(f){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.R.logThumbnailFailureVe=function(){var f=_.$$(197497);_.YP(_.UV(),f);var H=_.uy();H&&f&&H&&_.i0(H,[f])};
_.R.loadImageFromCacheIfExists=function(f){var H=this,v=f.target;(v==null?0:v.src)&&eNg(v.src).then(function(t){H.objectURL=_.E4(t).toString();H.setSrc(v,H.objectURL)}).catch(function(){})};
_.R.onError=function(f){var H=this;if(_.J("web_use_cache_for_image_fallback")){var v=f.target;v&&eNg(v.src).then(function(t){H.objectURL=_.E4(t).toString();H.setSrc(v,H.objectURL)}).catch(function(){_.J("kevlar_woffle_log_thumbnail_failure_ve")&&H.logThumbnailFailureVe();
_.J("kevlar_woffle_fallback_image")&&H.setSrc(v,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.R.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.R.setConfig=function(){var f=this;this.config={alt:this.alt||"",contentMode:this.objectFitToContentMode(this.objectFit),notifyOnLoaded:this.notifyOnLoaded,notifyOnUnloaded:this.notifyOnUnloaded,preferredThumbnail:this.preferredThumbnail,preserveHeight:this.preserveHeight,preserveWidth:this.preserveWidth,objectPosition:this.objectPosition,onload:function(H){f.loadImageFromCacheIfExists(H);f.revokeObjectURL();SlT(f.hostElement)},
onerror:function(H){f.onError(H)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.J("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.R.setSrc=function(f,H){H&&(f.src=H)};
_.E([_.B(W19),_.N("design:type",Object)],qB.prototype,"ytIdomTemplatingBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],qB.prototype,"data",void 0);_.E([_.F(),_.N("design:type",String)],qB.prototype,"alt",void 0);_.E([_.F(),_.N("design:type",Boolean)],qB.prototype,"ftlEligible",void 0);_.E([_.F(),_.N("design:type",Number)],qB.prototype,"height",void 0);_.E([_.F(),_.N("design:type",Boolean)],qB.prototype,"notifyOnLoaded",void 0);
_.E([_.F(),_.N("design:type",Boolean)],qB.prototype,"notifyOnUnloaded",void 0);_.E([_.F(),_.N("design:type",String)],qB.prototype,"objectFit",void 0);_.E([_.F(),_.N("design:type",String)],qB.prototype,"objectPosition",void 0);_.E([_.F(),_.N("design:type",String)],qB.prototype,"preferredThumbnail",void 0);_.E([_.F(),_.N("design:type",Boolean)],qB.prototype,"preserveHeight",void 0);_.E([_.F(),_.N("design:type",Boolean)],qB.prototype,"preserveWidth",void 0);
_.E([_.F({value:!0}),_.N("design:type",Boolean)],qB.prototype,"useWidth",void 0);_.E([_.F({value:function(){return!_.P6("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.N("design:type",Boolean)],qB.prototype,"shouldRenderLazy",void 0);_.E([_.F(),_.N("design:type",Number)],qB.prototype,"width",void 0);_.E([_.GW({is:"yt-image",disableElementRegistration:!0})],qB);
_.G(qB,"yt-image",function(){if(VJT===void 0){var f=document.createElement("template");_.x(f,"\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");f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);f.content.insertBefore(R_Z().content.cloneNode(!0),f.content.firstChild);
VJT=f}f=VJT;return f},{mode:2});var fW=function(){return _.K.apply(this,arguments)||this};
_.e(fW,_.K);fW.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var f=_.GK(this.data.onVisibleCommand);f&&this.ytComponentBehavior.resolveCommand(f)}};
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],fW.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],fW.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.cH.YtVisibilityBehavior),_.N("design:type",Object)],fW.prototype,"ytVisibilityBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],fW.prototype,"data",void 0);_.E([_.GW({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],fW);
_.G(fW,"yt-bumper-user-edu-content-view-model",function(){if(Ych===void 0){var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;yPM===void 0&&(yPM=document.createElement("template"));var t=yPM;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Ych=f}f=Ych;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var YOC;var mpM,$pC=function(){if(mpM!==void 0)return mpM;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;YOC===void 0&&(YOC=document.createElement("template"));var t=YOC;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return mpM=f};var WzH;_.Hp={};WzH=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"]);_.Hp.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var f=this.getContext_();return f?f.getTaskManager():_.nN},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var f=_.YE(this.hostElement,"yt-get-context-provider",{});f.detail&&f.detail.contextProvider?this.cachedProviderNode_=f.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return WzH.has(this.hostElement.localName)},
getNetworkManager:function(){var f=this.getContext_();if(f)return f.getNetworkManager()}};var rRN,OqC,IlM,g99;_.vp=function(f){var H=OqC.get(f);if(H&&(H=H.pop()))return g99++,H;IlM++;try{var v=document.createElement(f)}catch(t){throw new _.e$("ElementPool failed to create element",f,t.message);}return v};
rRN=function(f){var H=f.is;if(H){var v=OqC.get(H);v||(v=[],OqC.set(H,v));var t=_.a8("ELEMENT_POOL_CONFIG")||{};v.length>=(t[H]!==void 0?t[H]:_.a8("ELEMENT_POOL_DEFAULT_CAP",0))||v.push(f)}else _.pb(new _.e$("Element pool should only handle custom elements:",f.nodeName))};
OqC=new Map;IlM=0;g99=0;var Im=new WeakMap,FTg=new WeakMap;var dpM;_.t$=function(f,H,v){v=v===void 0?_.Zb():v;this.JSC$13784_defaultPriority=f;this.signal=H;this.scheduler=v;this.nextJobDescriptor=0;this.JSC$13784_parkedJobs=[];this.scheduledJobs=new Map};
_.M8=function(f,H){if(H){var v=_.PL();f.signal&&!_.Gu(v,f.signal)?(v.addListener(f.signal,function(){f.processSignal()}),f.JSC$13784_parkedJobs.push({job:H,
priority:void 0})):SOg(f,H)}};
dpM=function(f,H){if(H!==f.JSC$13784_defaultPriority){f.JSC$13784_defaultPriority=H;for(var v=_.V(f.scheduledJobs.values()),t=v.next();!t.done;t=v.next())t=t.value,f.scheduler.cancelJob(t.jobId),t.jobId=f.scheduler.addJob(t.jobWrapper,H)}};
_.t$.prototype.flushJobs=function(){dpM(this,10);this.processSignal()};
_.t$.prototype.cancel=function(){for(var f=_.V(this.scheduledJobs),H=f.next();!H.done;H=f.next()){var v=_.V(H.value);H=v.next().value;v=v.next().value;this.scheduler.cancelJob(v.jobId);this.scheduledJobs.delete(H)}this.JSC$13784_parkedJobs=[]};
_.t$.prototype.processSignal=function(){for(var f=_.V(this.JSC$13784_parkedJobs),H=f.next();!H.done;H=f.next())H=H.value,SOg(this,H.job,H.priority);this.JSC$13784_parkedJobs=[]};
var SOg=function(f,H,v){v=v||f.JSC$13784_defaultPriority;if(v===10)Wn(H);else{var t=f.nextJobDescriptor++,M=function(){H();f.scheduledJobs.delete(t)},h=f.scheduler.addJob(M,v);
f.scheduledJobs.set(t,{jobWrapper:M,jobId:h,priority:v})}};IF5({beforeVisit:function(f){if(_.Y6.has(f.type)){var H;(H=f.props).idomKey!=null||(H.idomKey=f.type)}else f.type.TAG_NAME&&(_.Vn=f.type.TAG_NAME)},
afterRender:function(f,H){var v;_.Vn=(v=H==null?void 0:H.type)!=null?v:""},
didPatch:function(){_.Vn=""}});var jUv;_.h$={};jUv={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.h$.YtRendererstamperBehavior=[_.Hp.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 f in this.stampDom){var H=this.stampDom[f];H&&H.id&&this.addReactiveSchema({type:"observe",method:{methodName:xGR(H.id),args:[{type:"wildcard",path:f}]}})}else{(f=(this.constructor.generatedFrom||this).observers)||(f=[]);for(H in this.stampDom){var v=this.stampDom[H];v&&v.id&&f.push(xGR(v.id)+"("+H+".*)")}this.constructor.generatedFrom.observers=f}},
addStampDomObserverFns_:function(){for(var f in this.stampDom){var H=this.stampDom[f];H.id?(this[xGR(H.id)]=this.rendererStamperObserver_.bind(this,f,H.id),this.hasDataPath_[f]=!1):(H=new _.e$("Bad rendererstamper config",this.is+":"+f),_.oO(H))}},
rendererStamperObserver_:function(f,H,v){if(v.path==f){if(v.value===void 0&&!this.hasDataPath_[f])return;this.hasDataPath_[f]=v.value!==void 0}this.rendererStamperApplyChangeRecord_(f,H,v)},
rendererStamperApplyChangeRecord_:function(f,H,v){var t=this.renderJobsMap_[H],M=null;f==v.path?(v=v.value,_.Tb(v)||(v=v===void 0||v===null?[]:[v]),f=this.stampDom[f],f.mapping&&(M=this.stampDomArray_.bind(this,v,H,f.mapping,f.reuseComponents,f.events,f.stamperStableList)),t&&t.cancel(),v=f.usePageScheduler?this.getTaskManager():void 0,t||f.initialRenderPriority==void 0)?f.renderPriority==void 0||t||(t=new _.t$(f.renderPriority,f.waitForSignal,v),this.renderJobsMap_[H]=t):(t=new _.t$(f.initialRenderPriority,
f.waitForSignal,v),this.renderJobsMap_[H]=t,M=function(h,y){h();dpM(y,10)}.bind(this,M,t)):M=f+".splices"==v.path?this.stampDomArraySplices_.bind(this,f,H,v.value):this.forwardRendererStamperChanges_.bind(this,f,H,v);
t?_.M8(t,M):M()},
forwardRendererStamperChanges_:function(f,H,v){var t=v.path.slice(f.length+1),M=this.getStampContainer_(H),h=t.indexOf("."),y=t.substring(0,h),m=!1,W=0,I=parseInt(y,0);if(y[0]=="#"){m=parseInt(y.substring(1),0);I=this.get(f);var S=this.get([f,y]);I[m]==S?W=m:W=I.indexOf(S);m=!0}else isNaN(I)||(W=I,m=!0);m&&(t=t.substring(y.length+1),h=t.indexOf("."));y=_.Fj(M).children[W];var d;if(M=(d=y==null?void 0:y.polymerController)!=null?d:y)t="data"+t.slice(h),typeof M.notifyPath!=="function"?_.pb(new _.e$("notifyPath missing",
this.is+": "+f+", "+H)):v.value?M.notifyPath(t,v.value):M.notifyPath(t)},
stampDomArraySplices_:function(f,H,v){if(v&&v.indexSplices){var t=this.getStampContainer_(H);if(t){for(var M=_.Fj(t),h=zNb(this.stampDom[f].reuseComponents),y=v.indexSplices.length,m=0;m<y;m++){for(var W=v.indexSplices[m],I=M.children[W.index],S=W.removed.length;S>0;S--)I&&I.parentElement&&(_.Fj(I.parentElement).removeChild(I),h&&rRN(I),I=M.children[W.index]);S=this.stampDom[f].mapping;for(var d=W.index+W.addedCount,Z=document.createDocumentFragment(),l=h,L=W.index;L<d;L++){var r=W.object[L],n=LTb(S,
r);if(n){var Q=S[n];r=r[n];n=this.getComponentName_(Q,r);var C=I?Im.has(I):!1;l&&I&&I.is==n&&C?(n=I,this.telemetry_.reuse++,I=I.nextElementSibling):l&&I&&C?(n=this.createComponent_(Q,r,h),C=_.Fj(I).nextElementSibling,M.insertBefore(n,C),DGs(this.is,M,I,h),I=C):(l=!1,n=this.createComponent_(Q,r,h),Z.appendChild(n));this.deferRenderStamperBinding_(n,Q,r)}else Q=new _.e$("Unimplemented type",f,H,t.tagName,Object.keys(r)[0]),_.oO(Q)}M.insertBefore(Z,I)}this.flushRenderStamperComponentBindings_();this.stampDom[f].events&&
_.YE(this.hostElement,"yt-rendererstamper-finished",{container:t})}else f=new _.e$("Container object not found",H,this.hostElement?this.hostElement.is:""),_.oO(f)}},
stampDomArray_:function(f,H,v,t,M,h){var y=this.getStampContainer_(H);if(y)if(H=_.Fj(y),t=zNb(t),f){var m=0,W=0,I;if(h=h===void 0?_.P6("STAMPER_STABLE_LIST",!1):h||!1)for(I=H.firstElementChild;I&&!Im.has(I)&&f.length>W;){h=f[W];var S=LTb(v,h);if(S){if(this.getComponentName_(v[S],h[S])!=I.is){var d=this.createComponent_(v[S],h[S],t),Z=_.Fj(I).nextElementSibling;Z?H.insertBefore(d,Z):H.appendChild(d);DGs(this.is,H,I,t);I=d}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(I,v[S],h[S]);m++;
W++;I=_.Fj(I).nextElementSibling}else W++}oG5(this.is,H,m,t);m=I;if(f.length>W){h=document.createDocumentFragment();for(S=f.length;W<S;W++)if(d=f[W],Z=LTb(v,d))I=this.createComponent_(v[Z],d[Z],t),this.deferRenderStamperBinding_(I,v[Z],d[Z]),h.appendChild(I);m&&_.Fj(m).parentNode&&I&&!Im.has(I)?H.insertBefore(h,m):H.appendChild(h)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();M&&_.YE(this.hostElement,"yt-rendererstamper-finished",{container:y})}else oG5(this.is,H,0,
t);else f=new _.e$("Container object not found",H,this.hostElement?this.hostElement.is:""),_.oO(f)},
getStampContainer_:function(f){return this.$&&this.$[f]||_.mF(this.hostElement).querySelector("#"+f)},
getComponentName_:function(f,H){return typeof f==="string"?f:f.matcher?f.matcher.call(this,H):f.component},
createComponent_:function(f,H,v){f=this.getComponentName_(f,H);try{var t=mx.has(f)||_.Y6.has(f);if(v&&!t){var M=_.vp(f);try{_.Sr(M)}catch(h){v="Failed to clear styles for "+f+".",h.message&&(v+=" Original error: "+h.message),_.pb(new _.e$(v))}}else M=document.createElement(f)}catch(h){return M="YtRendererStamperBehavior failed to create "+f+".",h.message&&(M+=" Original description: "+h.message),h.message="YtRendererStamperBehavior failed to create element",_.u$(h,M),jUv.hasOwnProperty(f)?_.pb(h):
_.oO(h),document.createElement("SPAN")}this.telemetry_.create++;return M},
deferRenderStamperBinding_:function(f,H,v){this.deferredBindingTasks_.push({component:f,typeOrConfig:H,data:v})},
flushRenderStamperComponentBindings_:function(){for(var f=0,H=this.deferredBindingTasks_.length;f<H;f++){var v=this.deferredBindingTasks_[f];if(!v)break;var t=void 0,M=void 0,h=void 0,y=void 0,m=v.component,W=v.typeOrConfig;v=v.data;var I=(y=m.polymerController)!=null?y:m;y=m.loggingStatus;try{y&&(y.isRendererStamper=!0);if(typeof W!=="string"){for(h in W.attributes)W.attributes[h]===!0?m.setAttribute(h,""):W.attributes[h]===!1?m.removeAttribute(h):m.setAttribute(h,W.attributes[h]);for(M in W.params)I[M]=
W.params[M],m!==I&&FI(m.localName,M,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(t in W.properties){var S=W.properties[t];if(S){var d=Bl_(S);I[t]=this.get(d);m!==I&&FI(m.localName,t,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(t==="on-tap"||t==="on-click"){var Z=this.get(d);m.addEventListener("click",Z);FTg.set(m,{property:t,listener:{type:"element",eventName:"click",handler:Z}})}}else{var l=new _.e$("Undefined property binding",t);_.oO(l)}}}if(W.classListBinding){var L=Bl_(W.classListBinding),
r=L?this[L]:null;if(r)for(t=0;t<r.length;t++)_.WB(m,r[t],!0)}I.data=v}finally{y&&(y.isRendererStamper=!1)}if(t=Im.get(m))m.hidden=!1,Im.delete(m),_.nN.cancelJob(t)}this.deferredBindingTasks_.length=0}}];_.yn(_.a(function(f){function H(){v().seconds&&h(sjs({seconds:Number(v().seconds)-Date.now()/1E3}))}
var v=f.targetTimestamp;f=f.className;var t=_.V(_.gp("",void 0,"U1Q8Ae")),M=t.next().value,h=t.next().value;_.ru(function(){H();var y=setInterval(function(){H()},1E3);
_.Dt(function(){clearInterval(y)})});
return _.O("yt-countdown",{class:_.S2("ytCountDownHost",f)},_.O("div",null,M))},"i"),"yt-countdown",{props:{targetTimestamp:_.ki,
className:_.Rm}});_.RM=new _.iN("KEY_MANAGER_TOKEN");var nGs={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"};_.VU=_.a(function(f){var H=_.TN("a",f.ref),v=f.aTagConfig?f.aTagConfig:_.sg(function(){var t,M,h,y,m;var W=(m=_.GK((h=f.command)==null?void 0:h.call(f)))!=null?m:(y=f.command)==null?void 0:y.call(f);return _.NE({innertubeCommand:W,skipOnClick:(t=f.skipOnClick)==null?void 0:t.call(f),defaultTarget:(M=f.target)==null?void 0:M.call(f)})||{}},void 0,"gnrRge");
_.K4(function(){H.value._data=v()._data;H.value.params=v().params},"t2c7fe");
return _.O("a",{el:H,href:function(){return v().href$},
rel:function(){return v().rel$},
class:function(){var t,M;return(M=v().className)!=null?M:(t=f.className)==null?void 0:t.call(f)},
style:function(){var t;if((t=f.style)==null?0:t.call(f))return f.style();var M;return((M=f.disabled)==null?0:M.call(f))?"pointer-events:none":""},
"aria-haspopup":function(){return!!v()["aria-haspopup$"]},
"force-new-state":j2(function(){return v()["force-new-state$"]}),
title:j2(function(){var t,M;return(M=v().title$)!=null?M:(t=f.title)==null?void 0:t.call(f)}),
role:j2(function(){var t;return((t=f.role)==null?void 0:t.call(f))||v().role$}),
target:j2(function(){return v().target$}),
dir:j2(function(){var t;return((t=f.dir)==null?void 0:t.call(f))||v().dir}),
tabindex:function(){var t;return v().tabindex$?Number(v().tabindex$):(t=f.tabIndex)==null?void 0:t.call(f)},
"aria-hidden":function(){var t,M;return(M=v()["aria-hidden$"])!=null?M:(t=f.ariaHidden)==null?void 0:t.call(f)},
"aria-label":function(){var t,M;return(M=v()["aria-label$"])!=null?M:(t=f.ariaLabel)==null?void 0:t.call(f)},
"aria-current":f.ariaCurrent,"aria-disabled":f.disabled,"aria-labelledby":f.ariaLabelledby,"aria-describedby":f.ariaDescribedby,"aria-selected":f.ariaSelected,"tab-identifier":f.tabIdentifier,"on:pointerdown":_.d6(function(t){var M,h;return void((h=(M=v()).onpointerdown)==null?void 0:h.call(M,t))}),
"on:click":_.d6(function(t){var M,h;(h=(M=v()).onclick)==null||h.call(M,t);var y;(y=f.onClick)==null||y.call(f,t)}),
"on:focusin":_.d6(function(t){var M;(M=f.onFocusin)==null||M.call(f,t)}),
"on:focusout":_.d6(function(t){var M;(M=f.onFocusout)==null||M.call(f,t)})},f.children)},"j");var EG3={duration:1E3,easing:"ease",fill:"forwards"};CRN.componentType=_.BM;var X0g={duration:1E3,easing:"ease",fill:"forwards"},JBr=_.a(function(f){var H=_.TN("animated-rolling-character"),v=void 0,t=function(){var M,h;return fQ((M=f.character)==null?void 0:M.call(f))||fQ((h=f.previousCharacter)==null?void 0:h.call(f))};
_.K4(function(){if(f.marginMultiplier()){var M;(M=v)==null||M.cancel();if(t()){var h;M=((h=f.previousCharacter)==null?0:h.call(f))?Number(f.previousCharacter())+10:f.rollUp()?0:30;var y;if((y=f.shouldAnimate)==null||!y.call(f)){var m,W;M-=cRb((m=f.character)==null?void 0:m.call(f),(W=f.previousCharacter)==null?void 0:W.call(f),f.rollUp(),M)}}else{M=f.rollUp()?0:2;var I;(I=f.shouldAnimate)!=null&&I.call(f)||(h=M,y=f.rollUp()?-1:1,M=h-y)}H.value.style.marginTop="-"+M*f.marginMultiplier()+"px";var S;
if((S=f.shouldAnimate)==null?0:S.call(f)){var d,Z;v=ART(H.value,(d=f.character)==null?void 0:d.call(f),(Z=f.previousCharacter)==null?void 0:Z.call(f),f.rollUp(),M,t(),f.marginMultiplier())}else{var l;H.value.style.display=((l=f.character)==null?0:l.call(f))?"":"none"}}},"EgLkAe");
return _.O("animated-rolling-character",{el:H,class:"animatedRollingCharacterHost"},_.O(_.g,{cond:t,then:function(){return _.O(sU_,null)},
else:function(){return _.O(Zq_,{character:f.character})}}))},"k");
JBr.idomCompat=!0;var biE=_.J("web_enable_sink_animated_rolling_character_and_number")?JBr:CRN,llh=_.J("web_enable_sink_animated_rolling_character_and_number")?JBr:Nle(CRN),sU_=_.a(function(){for(var f=[],H=1;H<30;H++)f.push(_.O("div",null,H%10));return _.O(_.R8,null,_.O("div",null,"\u00a0"),f,_.O("div",null,"\u00a0"))},"l"),Zq_=_.a(function(f){var H=f.character;
return _.O(_.R8,null,_.O("div",null,"\u00a0"),_.O(_.g,{cond:function(){return!(H==null?0:H())||_.ms(H==null?void 0:H())},
then:function(){return _.O("div",null,"\u00a0")},
else:function(){return _.O("div",null,H)}}),_.O("div",null,"\u00a0"))},"m");iiH.componentType=_.BM;var Upo=_.a(function(f){var H=void 0,v=void 0,t=function(){var h;return((h=f.fontSizeMultiplier)==null?0:h.call(f))?f.heightPx()*f.fontSizeMultiplier():f.heightPx()},M=_.sg(function(){if(!f.numberText())return[];
var h,y,m=((h=f.forceRollUp)==null?void 0:h.call(f))||!v||!((y=f.numberValue)==null?0:y.call(f))||v<f.numberValue(),W,I=f.numberText();h=t();y=!((W=f.shouldAnimate)==null||!W.call(f));W=[];var S=0,d=0,Z=(H?H.replace(/\D/g,"").length:0)-(I?I.replace(/\D/g,"").length:0),l=H?H.split(/(\d)/).filter(Boolean):[];for(I=I.split(/(\d)/).filter(Boolean);Z<0;){var L=I[d];W.push({character:L,rollUp:m,marginMultiplier:h,shouldAnimate:y});d++;fQ(L)&&Z++}for(;S<Z;)L=l[S],W.push({previousCharacter:L,rollUp:m,marginMultiplier:h,
shouldAnimate:y}),S++,fQ(L)||Z++;for(;d<I.length;)Z=I[d],L=l[S],fQ(Z)===fQ(L)?(d++,S++):fQ(Z)?(S++,Z=void 0):fQ(L)&&(d++,L=void 0),W.push({character:Z,previousCharacter:L,rollUp:m,marginMultiplier:h,shouldAnimate:y});H=f.numberText();var r;v=(r=f.numberValue)==null?void 0:r.call(f);return W},void 0,"kWiBv");
return _.O("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return f.numberText()?["height: "+t()+"px;","line-height: "+f.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.O(_.eK,{each:M,keyBy:"INDEX"},function(h){return _.O(llh,{character:function(){return h().character},
previousCharacter:function(){return h().previousCharacter},
marginMultiplier:function(){return h().marginMultiplier},
rollUp:function(){return h().rollUp},
shouldAnimate:function(){return h().shouldAnimate}})}))},"n");
Upo.idomCompat=!0;_.e_b=_.J("web_enable_sink_animated_rolling_character_and_number")?Upo:iiH;_.LzT=_.J("web_enable_sink_animated_rolling_character_and_number")?Upo:Nle(iiH);var xpb=function(f,H){this.fillAnimation=new Animation(kdE(f),document.timeline);this.strokeAnimation=new Animation(TlN(H),document.timeline)};
xpb.prototype.play=function(){var f,H;(H=(f=this.fillAnimation).play)==null||H.call(f);var v,t;(t=(v=this.strokeAnimation).play)==null||t.call(v)};
xpb.prototype.cancel=function(){var f,H;(H=(f=this.fillAnimation).cancel)==null||H.call(f);var v,t;(t=(v=this.strokeAnimation).cancel)==null||t.call(v)};_.yU=_.a(function(f){var H=f.model;var v=f.pointerDownEvent;var t=f.pointerUpEvent;var M=f.pointerLeaveEvent;f=_.TN("div");var h=_.ZE({"border-radius":function(){return H().borderRadius}}),y=_.TN("div"),m=_.TN("div"),W=_.V(_.sR(function(){return(t==null?0:t())||(M==null?0:M())?!1:!(v==null||!v())||!1})),I=W.next().value,S=W.next().value,d=void 0,Z=function(){!d&&m.value&&y.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(d=new xpb(m.value,y.value));
var C;(C=d)==null||C.play()},l=function(){var C;
(C=d)==null||C.cancel()},L=function(){var C;
(C=d)==null||C.cancel()};
_.K4(function(){(t==null?0:t())&&Z()},"YjVIpd");
_.K4(function(){(v==null?0:v())&&l()},"UrXvqb");
_.K4(function(){(M==null?0:M())&&L()},"QK6L8b");
W=_.d6(function(){Z();S(!1)});
var r=_.d6(function(){l();S(!0)}),n=_.d6(function(){L();
S(!1)});
_.Dt(function(){if(d){var C;(C=d)==null||C.cancel();d=void 0}});
var Q={};I=_.S2("yt-spec-touch-feedback-shape",function(){return w0b(H().color)},(Q["yt-spec-touch-feedback-shape--focused"]=function(){return!!H().focused&&!H().disabled},Q["yt-spec-touch-feedback-shape--circular"]=function(){return!!H().circular},Q["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!H().isExtended},Q["yt-spec-touch-feedback-shape--down"]=I,Q["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!H().triggerEvents},Q));
return _.O("yt-touch-feedback-shape",{style:_.ZE({"border-radius":"inherit"})},_.O("div",{el:f,class:I,style:_.ZE({"margin-top":function(){return H().customTopExtend?"-"+H().customTopExtend+"px":void 0}}),
"on:mousedown":r,"on:mouseup":W,"on:pointerleave":n,"on:touchstart":r,"on:touchend":W,"aria-hidden":!0},_.O("div",{class:"yt-spec-touch-feedback-shape__stroke",style:h,el:y}),_.O("div",{class:"yt-spec-touch-feedback-shape__fill",style:h,el:m})))},"o");
_.yU.idomCompat=!0;var Bwn={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 Yp=_.jE();Yp=Yp.toLowerCase();if(_.$v(Yp,"android")){var z_r=Yp.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);z_r&&parseFloat(z_r[1])<100||Yp.match("("+Object.keys(Bwn).join("|")+")")};var Fzh=_.a(function(f){return _.O(_.g,{cond:f.aTagConfig,then:function(H){return _.O(_.VU,{aTagConfig:H,disabled:f.disabled,className:f.className,style:f.style,title:f.title,ariaLabel:f.ariaLabel,ariaCurrent:function(){var v,t;return((v=f.toggleable)==null?void 0:v.call(f))&&((t=f.toggled)==null?void 0:t.call(f))},
ref:f.ref},f.children)},
else:function(){return _.O("button",{el:_.tE(f.ref),"on:click":_.d6(function(H){var v;return(v=f.onClick)==null?void 0:v.call(f,H)}),
class:f.className,title:f.title,style:f.style,disabled:f.disabled,"aria-pressed":function(){var H,v;return((H=f.toggleable)==null?0:H.call(f))?!((v=f.toggled)==null||!v.call(f)):void 0},
"aria-label":f.ariaLabel,"aria-disabled":f.visiblyDisabled,"aria-hidden":f.ariaHidden,tabindex:f.tabIndex},f.children)}})},"p"),Kzn=_.a(function(f){var H=f.data;
var v=f.hasIconLeading;var t=f.hasIconLeadingTrailing;var M=f.hasIconTrailing;var h=f.iconButton;var y=f.iconClassName;var m=f.secondaryIconClassName;var W=f.icon;var I=f.secondaryIcon;var S=f.textContentClassName;return _.O(mJ,{className:"",style:"display: inherit; justify-content: center"},_.O(_.g,{debugInstance:"V4z1Uc",cond:function(){return W&&(v()||t()||(h==null?void 0:h()))},
then:function(){return _.O(mJ,null,_.O("div",{class:y,"aria-hidden":"true"},W==null?void 0:W()))}}),_.O(_.g,{debugInstance:"ok3btb",
cond:function(){return(H().buttonText||H().animatedTextProps||H().formattedButtonText)&&!(h==null?0:h())},
then:function(){return _.O(mJ,null,_.O(rBh,{className:S,iconPosition:function(){return H().iconPosition},
text:function(){return H().buttonText},
oneOffCustomTextWrap:function(){return H().oneOffCustomTextWrap},
formattedButtonText:function(){return H().formattedButtonText},
animatedTextProps:function(){return H().animatedTextProps}}))}}),_.O(_.g,{debugInstance:"DO5Rz",
cond:M,then:function(){return _.O(mJ,null,_.O("div",{class:y},W==null?void 0:W()))}}),_.O(_.g,{debugInstance:"bnojSc",
cond:t,then:function(){return _.O(mJ,null,_.O("div",{class:m},I==null?void 0:I()))}}),_.O(_.g,{debugInstance:"HN3kad",
cond:function(){return!H().disabled&&!0},
then:function(){return _.O(_.yU,{model:function(){var d=H();return{color:d.style==="overlay-dark"?4:d.style==="overlay"?d.type==="filled"?4:3:d.type==="filled"||d.style==="call-to-action-inverse"||d.style==="mono-inverse"?2:1}}})}}))},"q"),rBh=_.a(function(f){var H=function(){var v,t;
return((v=f.iconPosition)==null?void 0:v.call(f))==="icon-with-label"||((t=f.oneOffCustomTextWrap)==null?void 0:t.call(f))};
return _.O("div",{class:f.className,"aria-hidden":function(){var v,t,M;return((v=f.ariaHidden)==null?void 0:v.call(f))&&(!((t=f.animatedTextProps)==null||!t.call(f))||!((M=f.formattedButtonText)==null||!M.call(f)))}},_.O(_.B6,null,_.O(_.Lc,{when:function(){var v;
return(v=f.animatedTextProps)==null?void 0:v.call(f)}},function(){return _.O(_.LzT,{numberText:function(){return f.animatedTextProps().numberText},
numberValue:function(){return f.animatedTextProps().numberValue},
heightPx:function(){return f.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return f.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return f.animatedTextProps().shouldAnimate},
forceRollUp:function(){return f.animatedTextProps().forceRollUp}})}),_.O(_.Lc,{when:function(){var v;
return(v=f.formattedButtonText)==null?void 0:v.call(f)}},function(){return _.O(_.iq,{text:function(){return Object.assign({},f.formattedButtonText(),{lineBreakMode:H()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":f.formattedButtonText().lineBreakMode,
alignment:H()?"TEXT_ALIGNMENT_CENTER":f.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!H()}})}),_.O(_.Lc,{when:function(){var v,t;
return((v=f.iconPosition)==null?void 0:v.call(f))==="icon-with-label"&&((t=f.text)==null?void 0:t.call(f))}},function(){return _.O(_.iq,{text:function(){return{content:f.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.O(_.xk,null,function(){return f.text})))},"r"),DpH=_.a(function(f){return _.O(_.g,{debugInstance:"kM7Sgc",
cond:f.hasLabel,then:function(){var H;return _.O("label",{class:f.className},f.children,(H=f.textContent)==null?void 0:H.call(f))},
else:function(){return f.children}})},"s"),mJ=_.a(function(f){return f.children},"t");var o9M=_.a(function(f){var H=_.tE(),v=_.V(_.gp(void 0,void 0,"Z7xOte")),t=v.next().value,M=v.next().value;v=_.V(_.gp(void 0,void 0,"ppqp2e"));var h=v.next().value,y=v.next().value;v=_.V(_.gp(0,void 0,"bD1Mhe"));var m=v.next().value,W=v.next().value;v=_.d6(function(){switch(m()){case 1:W(2);break;case 3:var S,d;(d=(S=H.value).hidePopover)==null||d.call(S);W(0);M(void 0);y(void 0)}});
_.K4(function(){if(f.show()){var S;M((S=f.children)==null?void 0:S.call(f));var d;y((d=f.location)==null?void 0:d.call(f));switch(m()){case 0:var Z,l;(l=(Z=H.value).showPopover)==null||l.call(Z);W(1);break;case 3:W(1);var L,r;(r=(L=H.value).hidePopover)==null||r.call(L);var n,Q;(Q=(n=H.value).showPopover)==null||Q.call(n)}}else switch(m()){case 2:W(3);break;case 1:var C,w;(w=(C=H.value).hidePopover)==null||w.call(C);M(void 0);y(void 0);W(0)}},"vFJRcd");
_.Kc(function(){});
var I={};return _.O("yt-popover",{popover:"manual",el:H,style:_.ZE({left:function(){var S;return(S=h())==null?void 0:S.left},
top:function(){var S;return(S=h())==null?void 0:S.top},
bottom:function(){var S;return(S=h())==null?void 0:S.bottom},
right:function(){var S;return(S=h())==null?void 0:S.right}}),
class:_.S2("ytPopoverComponentHost",f.classNames,(I.ytPopoverComponentHostClosing=function(){return m()===3},I.ytPopoverComponentHostSeeThrough=function(){var S;
return((S=f.seeThrough)==null?void 0:S.call(f))===!0},I)),
"on:animationend":v},t)},"u");var n9b={left:"0px",right:"auto",top:"0px",bottom:"auto"},plT=function(){var f=this;this.registerTooltipElement=function(v){var t;f.tooltipElement=(t=v.querySelector("yt-popover"))!=null?t:void 0};
var H=_.V(_.gp(void 0,void 0,"z4iHWd"));this.state=H.next().value;this.setState=H.next().value;H=_.V(_.gp(void 0,void 0,"uKDcaf"));this.schedulerJobID=H.next().value;this.setSchedulerJobID=H.next().value},Vbe=function(f,H){var v=UR,t=_.nN.addJob(function(){var M=QUo(v,f,H);
v.setState({text:H.text,location:M,anchor:f,offset:H.offset})},4,H.delay);
v.setSchedulerJobID(t)},yb5=function(){var f=UR,H=f.schedulerJobID();
H&&(_.nN.cancelJob(H),f.setSchedulerJobID(void 0));f.setState(void 0)};
plT.prototype.notify=function(f,H){var v;((v=this.state())==null?void 0:v.anchor)===f&&(v=QUo(this,f,H),this.setState({text:H.text,location:v,anchor:f,offset:H.offset}))};
var QUo=function(f,H,v){var t=H.getBoundingClientRect();H=window.innerWidth;var M=window.innerHeight,h=v.location,y=v.offset;v=v.text;if(f=f.tooltipElement){var m=getComputedStyle(f);f=m.font;var W=lE(m.lineHeight),I=lE(m.paddingLeft),S=lE(m.paddingRight),d=lE(m.paddingTop);m=lE(m.paddingBottom);var Z=document.createElement("canvas").getContext("2d");Z.font=f;v={width:Z.measureText(v).width+I+S,height:W+d+m}}else v=void 0;f=v;if(!f)return n9b;v=f.width;f=f.height;I=y+f;d=y+v;W=t.top>=I;I=M-t.bottom>=
I;S=t.left>=d;d=H-t.right>=d;m=h;switch(h){case "top":!W&&I&&(m="bottom");break;case "bottom":!I&&W&&(m="top");break;case "left":!S&&d&&(m="right");break;case "right":!d&&S&&(m="left")}switch(m){case "top":h=t.left+t.width/2-v/2;t=t.top-f-y;break;case "bottom":h=t.left+t.width/2-v/2;t=t.bottom+y;break;case "left":h=t.left-v-y;t=t.top+t.height/2-f/2;break;case "right":h=t.right+y;t=t.top+t.height/2-f/2;break;default:h=t.left+t.width/2-v/2,t=t.bottom+y}y=Object.assign({},n9b);h+v>H?(y.right="0px",y.left=
"auto"):(y.left=Math.round(Math.max(0,h)+window.scrollX)+"px",y.right="auto");t+f>M?(y.bottom="0px",y.top="auto"):(y.top=Math.round(Math.max(0,t)+window.scrollY)+"px",y.bottom="auto");return y};var UR;UR=new plT;_.u8H=_.a(function(){var f=_.sg(function(){var v;return(v=UR.state())==null?void 0:v.text},void 0,"KoaMVc"),H=_.sg(function(){var v;
return(v=UR.state())==null?void 0:v.location},void 0,"R6s5tc");
return _.O("yt-tooltip",{class:"ytTooltipContainerHost",el:_.tE(UR.registerTooltipElement),"aria-hidden":"true"},_.O(o9M,{classNames:"ytTooltipContainerContent",location:H,show:function(){return!!f()},
seeThrough:!0},f))},"v");var mi_=tm("stamper-context");_.$p=_.a(function(f){var H=f.data;var v=f.icon;var t=f.iconName;var M=f.animateIcon;var h=f.secondaryIcon;var y=f.secondaryIconName;var m=f.focusedOverride;var W=f.clientOnlyWizTooltipsEnabled;msR();var I=qle(H),S=I.size,d=I.style;f=I.disabled;var Z=I.onTap,l=I.alignByText,L=I.aTagConfig,r=I.customColors,n=I.segmentedPosition,Q=I.toggled,C=I.toggleable,w=I.accessibilityLabel,c=I.onToggle,A=I.iconPosition,X=I.oneOffCustomTextWrap,fg=I.disableTextEllipsis,gB=I.disableBackdropFilter,O5=I.tooltipText,
s5=I.ariaHidden,U5=I.tabIndex,lH=I.buttonText,E5=I.formattedButtonText,uH=I.animatedTextProps,Rn=tbR(H,v,h,t,y,m,M),pr=Rn.type;v=Rn.shouldFocus;t=Rn.hasIconLeading;M=Rn.hasIconTrailing;var gh=Rn.hasIconLeadingTrailing,fr=Rn.hasIconOnly;h=Rn.hasIconOnly40;var sb=Rn.hasIconWithLabel;y=Rn.iconButton;var In=Rn.visiblyDisabled;m=Rn.overrideSmallSizeIcon;I=Rn.iconToRender;Rn=Rn.secondaryIconToRender;var Kr=_.V(Ym3(O5)).next().value,BA={},TH={};return _.O(DpH,{className:_.S2("yt-spec-button-shape-with-label",
(BA["yt-spec-button-shape-with-label--is-overlay"]=function(){return d()==="overlay"||d()==="overlay-dark"},BA)),
hasLabel:sb,textContent:function(){return _.O(rBh,{text:lH,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:X,iconPosition:A,formattedButtonText:E5,animatedTextProps:uH})}},_.O(Fzh,{aTagConfig:L,
className:_.S2("yt-spec-button-shape-next",function(){return MbE(pr())},function(){return In()?void 0:hbR(d())},function(){return RbH(S())},(TH["yt-spec-button-shape-next--disabled"]=In,TH["yt-spec-button-shape-next--focused"]=v,TH["yt-spec-button-shape-next--icon-trailing"]=M,TH["yt-spec-button-shape-next--icon-leading"]=t,TH["yt-spec-button-shape-next--icon-leading-trailing"]=gh,TH["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return gh()&&!(lH()||E5())},TH["yt-spec-button-shape-next--icon-button"]=
function(){return fr()||sb()},TH["yt-spec-button-shape-next--icon-only-default"]=h,TH["yt-spec-button-shape-next--align-by-text"]=l,TH["yt-spec-button-shape-next--segmented-start"]=function(){return n()==="start"},TH["yt-spec-button-shape-next--segmented-end"]=function(){return n()==="end"},TH["yt-spec-button-shape-next--override-small-size-icon"]=m,TH["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=X,TH["yt-spec-button-shape-next--disable-text-ellipsis"]=fg,TH["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!gB()&&!_.J("web_disable_backdrop_filter")},TH)),
style:function(){var hN=r();if(hN){var Ho=hN.color;var J9=hN.backgroundColor;hN=hN.borderColor;var Ox="";Ho&&(Ox+="color: "+Ho+";");J9&&(Ox+="background-color: "+J9+";");hN&&(Ox+="border-color: "+hN+";");Ho={style:Ox}}else Ho={};return Ho.style},
onClick:function(hN){Z==null||Z(hN);C()&&(c==null||c(hN))},
disabled:f,ariaLabel:w,toggleable:C,toggled:Q,title:function(){return(W==null?0:W())||!O5()?"":O5()},
visiblyDisabled:In,ariaHidden:s5,tabIndex:U5,ref:function(hN){(W==null?0:W())&&Kr(hN)}},_.O(Kzn,{data:H,
hasIconLeading:t,hasIconLeadingTrailing:gh,hasIconTrailing:M,iconButton:y,icon:I,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:Rn})))},"w");
_.$p.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.Wp=_.a(function(f){var H=f.data;var v=f.className;var t=f.style;var M=f.useOutlinedIcon;var h=f.buttonOverrides;var y=f.animatedTextProps;var m=f.onClick;var W=f.target;var I=_.TN("button-view-model",function(C){C.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var w=H().targetId;w&&_.skb(_.LM(),w,C);return function(){dma(_.LM(),C)}}),S=function(){return H().iconName},d,Z=(d=_.t8().resolve(_.vh(_.TK)))==null?void 0:d(),l=function(){var C=H();
var w=h==null?void 0:h(),c=y==null?void 0:y(),A=W==null?void 0:W();if(C){var X=dsR(C.type);var fg=!!C.title||!!C.titleFormatted;var gB=!(!C.iconName&&!C.iconImage);fg=gB&&!fg?"icon-only":gB?C.iconTrailing||C.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;fg==="icon-only-40"&&(X="text");var O5,s5=(O5=w==null?void 0:w.disabled)!=null?O5:C.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||C.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";c=c&&c.numberText&&!isNaN(Number(c.numberValue))?
c:void 0;O5=Object;gB=O5.assign;var U5=C.title,lH=C.titleFormatted,E5=C.accessibilityText,uH=SmT(C.style),Rn=jTs(C.state),pr=sTb(C.buttonSize);A=ILr(C,I,s5,m,A);s5=s5&&!C.onDisabledTap;var gh=OjN(C,I),fr=C.customFontColor,sb=C.customBackgroundColor;var In=C.customBorderColor;var Kr=C.customDarkThemeFontColor,BA=C.customDarkThemeBackgroundColor,TH=C.customDarkThemeBorderColor;fr=Z&&Kr?Kr:fr;sb=Z&&BA?BA:sb;In=Z&&TH?TH:In;In={color:fr?_.cS(fr):void 0,backgroundColor:sb?_.cS(sb):void 0,borderColor:In?
_.cS(In):void 0};C=gB.call(O5,{},{buttonText:U5,formattedButtonText:lH,animatedTextProps:c,accessibilityLabel:E5,style:uH,type:X,state:Rn,size:pr,iconPosition:fg,onTap:A,disabled:s5,aTagConfig:gh,customColors:In,tooltipText:C.tooltip},w)}else C={style:"mono",type:"text",state:"active",size:"M"};C.focused=n();return C},L=function(){return HjN(l(),!!H().iconName)};
f=_.V(_.gp(!1,void 0,"WVXhrd"));d=f.next().value;var r=f.next().value,n=d;f=_.d6(function(){var C=_.t8().resolve(_.vh(_.RM));C&&r(C.isKeyBoardInUse());return!1});
d=_.d6(function(){r(!1);return!1});
_.K4(function(){var C,w=_.U(H==null?void 0:(C=H())==null?void 0:C.onVisible,_.PK);w&&_.Cu(w,{disableClickTracking:!0})},"w0lGYc");
var Q=_.J("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");return _.O("button-view-model",{el:I,class:_.S2("ytSpecButtonViewModelHost",v),"on:focusin":f,"on:focusout":d},_.O(_.g,{cond:function(){var C;return(H==null?0:(C=H())==null?0:C.iconImage)?{sources:[H().iconImage]}:void 0},
then:function(C){return _.O(_.$p,{data:l,icon:function(){return _.O(_.Hn,{data:C,alt:"",targetWidth:L,targetHeight:L,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:Q})},
else:function(){return _.O(_.$p,{data:l,icon:function(){return _.O(_.JE,{icon:S,active:function(){return(M==null?0:M())?!1:l().toggled},
animateIcon:function(){var C;return!!(t==null?0:(C=t())==null?0:C.animateIcon)},
size:L})},
clientOnlyWizTooltipsEnabled:Q})}}))},"x");
_.Wp.idomCompat={callbacks:{onClick:!0}};_.yn(_.a(function(f){return _.O("yt-button-view-model",{id:f.id,class:_.S2(f.scopingClassName,f.classes),icon:function(){var H;return(H=f.icon)==null?void 0:H.call(f)},
"dialog-dismiss":function(){var H;return((H=f.dialogDismiss)==null?0:H.call(f))?"":void 0}},_.O(_.Wp,{data:function(){var H;
return(H=f.data)==null?void 0:H.call(f)},
className:function(){var H;return(H=f.className)==null?void 0:H.call(f)},
style:function(){var H;return(H=f.style)==null?void 0:H.call(f)},
useOutlinedIcon:function(){var H;return(H=f.useOutlinedIcon)==null?void 0:H.call(f)},
buttonOverrides:function(){var H;return(H=f.buttonOverrides)==null?void 0:H.call(f)},
animatedTextProps:function(){var H;return(H=f.animatedTextProps)==null?void 0:H.call(f)},
onClick:function(H){var v;return(v=f.onClick)==null?void 0:v.call(f,H)}}))},"y"),"yt-button-view-model",{props:{data:_.ki,
className:_.ki,style:_.ki,useOutlinedIcon:_.ki,buttonOverrides:_.ki,animatedTextProps:_.ki,onClick:_.Rm,scopingClassName:_.ki,id:_.ki,icon:_.ki,dialogDismiss:_.ki,classes:_.ki,target:_.Rm}});_.yn(_.a(function(f){var H=f.data;var v=f.id;var t=f.className;var M=f.iconName;var h=f.animateIcon;var y=f.secondaryIconName;f=_.V(_.gp(!1,void 0,"TtJl8"));var m=f.next().value,W=f.next().value,I=function(){var d=_.t8().resolve(_.vh(_.RM));d&&W(d.isKeyBoardInUse())},S=function(){W(!1)};
f=_.TN("yt-button-shape",function(d){if(_.t8().resolve(_.vh(_.RM)))return d.addEventListener("focusin",I),d.addEventListener("focusout",S),function(){d.removeEventListener("focusin",I);d.removeEventListener("focusout",S)}});
return _.O("yt-button-shape",{el:f,id:v,class:t},_.O(_.g,{cond:H,then:function(){return _.O(_.$p,{data:H,iconName:M,secondaryIconName:y,focusedOverride:m,animateIcon:h})}}))},"z"),"yt-button-shape",{props:{data:_.ki,
id:_.ki,className:_.ki,iconName:_.ki,animateIcon:_.ki,secondaryIconName:_.ki,clientOnlyWizTooltipsEnabled:_.ki,disableUpgrade:_.ki},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var OL=function(){var f=_.K.apply(this,arguments)||this;f.isGoalActive=!0;return f};
_.e(OL,_.K);OL.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
OL.prototype.progressBarChanged=function(){var f=_.mF(this.hostElement).querySelector("#progress-bar-progress"),H,v,t,M=(t=Number((H=this.creatorGoalState)==null?void 0:H.currentGoalCount)/Number((v=this.creatorGoalState)==null?void 0:v.totalGoalCount)*100)!=null?t:0,h;f.style.width=((h=Math.min(M,100))!=null?h:0)+"%"};
OL.prototype.goalStateChanged=function(){var f;this.isGoalActive=((f=this.creatorGoalState)==null?void 0:f.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var H;f={"--yt-progress-bar-color":yBR((H=this.creatorGoalState)==null?void 0:H.progressBarColor)};_.Sr(this.hostElement,f)};
OL.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.H7.Object.defineProperties(OL.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var f;return this.isGoalActive&&!((f=this.creatorGoalState)==null||!f.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.creatorGoalState)==null?0:f.endTimestampMs){var H;f=Number((H=this.creatorGoalState)==null?void 0:H.endTimestampMs)/1E3;return{seconds:String(f)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.creatorGoalState)==null?0:f.themedTargetImage){var H;f=_.U((H=this.creatorGoalState)==null?void 0:H.themedTargetImage,opv);return this.isAppDarkTheme()?f==null?void 0:f.imageDark:f==null?void 0:f.imageLight}}}});
_.H7.Object.defineProperties(OL,{template:{configurable:!0,enumerable:!0,get:function(){return $pC()}}});
OL.prototype.goalStateChanged=OL.prototype.goalStateChanged;OL.prototype.progressBarChanged=OL.prototype.progressBarChanged;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],OL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.PH),_.N("design:type",Object)],OL.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],OL.prototype,"ytRendererBehavior",void 0);
_.E([_.F({selectorArgs:["data.creatorGoalEntityKey"],selector:function(f,H){return _.dL(f.entities,"creatorGoalEntity",H)}}),
_.N("design:type",Object)],OL.prototype,"creatorGoalState",void 0);_.E([_.F(),_.N("design:type",Object)],OL.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],OL.prototype,"isGoalActive",void 0);_.E([_.z("creatorGoalState","isGoalActive"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],OL.prototype,"shouldShowCountdown",null);_.E([_.z("creatorGoalState"),_.N("design:type",Object),_.N("design:paramtypes",[])],OL.prototype,"endTimestamp",null);
_.E([_.z("creatorGoalState"),_.N("design:type",Object),_.N("design:paramtypes",[])],OL.prototype,"targetIconThemedImage",null);_.E([_.Zw("creatorGoalState.currentGoalCount"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],OL.prototype,"progressBarChanged",null);_.E([_.Zw("creatorGoalState.creatorGoalState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],OL.prototype,"goalStateChanged",null);
_.E([_.GW({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],OL);_.G(OL,"yt-creator-goal-progress-flow-view-model",function(){return $pC()},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var alC;var Poa;var gt=function(){return _.K.apply(this,arguments)||this};
_.e(gt,_.K);gt.prototype.attached=function(){var f,H,v;if(this==null?0:(f=this.data)==null?0:(H=f.pdgPurchasedBumperLoggingDirectives)==null?0:(v=H.loggingDirectives)==null?0:v.trackingParams){var t,M,h;lLe(this==null?void 0:(t=this.data)==null?void 0:(M=t.pdgPurchasedBumperLoggingDirectives)==null?void 0:(h=M.loggingDirectives)==null?void 0:h.trackingParams)}};
gt.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],gt.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],gt.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],gt.prototype,"data",void 0);_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],gt);
_.G(gt,"yt-live-chat-item-bumper-view-model",function(){if(Poa===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;alC===void 0&&(alC=document.createElement("template"));var t=alC;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Poa=f}f=Poa;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var GtT;var Co9;_.TI=function(f,H){this.data=f;this.actions=H;this.data=f;this.actions=H};
_.ER=function(){};_.IM={};_.IM.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(f,H){Uss(this.hostElement,f,H)},
getNavigationEndpointPopupAction:function(f){return ebB(f,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(f,H){LYv(this.hostElement,f,H,this.openPopupConfig)}};var pqg=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.S3={};
_.S3.YtEndpointBehavior=[_.IM.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.a8("openPopupConfig");(this.useClickHandler=_.P6("useClickHandler",!1))?this.hostElement.addEventListener("click",dX(this,this.onEndpointClick_)):(p1(this.hostElement,"tap",dX(this,this.onEndpointTap_)),p1(this.hostElement,"touchend",dX(this,this.onEndpointTouchEnd_)));p1(this.hostElement,"touchstart",dX(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
dX(this,this.onEndpointTapStart_))},
onEndpointClick_:function(f){zbB(this.hostElement,f,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(f){var H=this.hostElement,v=this.openPopupConfig,t=this.disableCommandHandlerOverride;t=t===void 0?!1:t;var M=xse(f);if(M){M.href&&bY(M.href);var h=f.detail;var y=h.sourceEvent;h=h.preventer;y=y.button!==void 0?y.button===0&&!LV(y):h?!LV(h):!0;M.data&&y&&Bar(H,M,f,v,t)}},
onEndpointTouchEnd_:function(f){LV(f)||xse(f)&&f.preventDefault()},
onEndpointTapStart_:function(f){oSe(f)}}];_.dt={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(f){for(var H=_.A7.getInstance(),v=_.V(Object.keys(f)),t=v.next();!t.done;t=v.next()){var M=t.value;t=f[M];if(this&&this[t]){var h=H.actionRoutingMap.get(M);h||(h=new Map,H.actionRoutingMap.set(M,h));H.registerActionHandler(this,M,this[t].bind(this),h)}else M=Error("jd"),M.params=t,_.Ge(M)}},
unregisterActionMap:function(f){_.i$(_.A7.getInstance(),f,this)}}]};var zI=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_"+(_.J("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.J("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.J("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:_.J("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:_.J("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:_.J("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var Bn;var FW=new Map;var ij3=window.matchMedia("(forced-colors: active)").matches;var E9H;var NwM;var cBT=new _.iN("LOTTIE_LOADER_TOKEN");_.j3=_.a(function(f){var H=f.data;var v=f.className;var t=f.animationName;var M=f.animationRef;var h=f.elRefForInterop;var y=_.w8("lottie-component"),m;_.Dt(function(){var I;return void((I=m)==null?void 0:I.destroy())});
var W;_.K4(function(){var I=_.p4(t);if(I!==W){W=I;var S=Object.assign({},{animationName:I,animationRef:_.p4(M)},_.p4(H));try{_.t8().resolve(cBT)().then(function(l){var L;(L=m)==null||L.destroy();var r,n;L=(n=h==null?void 0:(r=h())==null?void 0:r.value)!=null?n:y.value;r=S.animationRef;n=S.listeners;l=l.loadAnimation(Object.assign({},{container:L},S.animationConfig));r&&(r.lottieEl=l);if(n)for(L=_.V(Object.entries(n)),r=L.next();!r.done;r=L.next())n=_.V(r.value),r=n.next().value,(n=n.next().value)&&
l.addEventListener(r,n);m=l})}catch(l){I=l;
var d="LottieComponent error.";I.message&&(d+=" Original description: "+I.message);_.u$(I,d);_.pb(I);var Z;((Z=S.listeners)==null?0:Z.error)&&S.listeners.error(I)}}},"lbhvPc");
return _.O(ujH,{cond:function(){return!(h==null?0:h())},
then:function(){return _.O("lottie-component",{class:_.S2("ytLottieComponentHost",v),el:y})}})},"A");_.yn(_.a(function(f){return _.O("ytd-lottie-player",{id:f.id,hidden:f.hidden,class:f.className,"aria-label":f.ariaLabel,style:"display: block;"},_.O(_.j3,{data:f.data,animationName:function(){var H;return((H=f.data().animationConfig)==null?void 0:H.name)||""},
animationRef:function(){return f.data().animationRef}}))},"B"),"ytd-lottie-player",{props:{data:_.ki,
id:_.ki,hidden:_.ki,className:_.ki,ariaLabel:_.ki}});var sL=function(){var f=_.K.apply(this,arguments)||this;f.animationRef={};f.delhiIconsEnabled=_.J("enable_web_delhi_icons");return f};
_.e(sL,_.K);_.R=sL.prototype;
_.R.handlePropertyChange=function(){var f=this.animatedIcon,H=this.active,v=this.isDarkTheme;if(f){var t=this.previousActive!==H;this.previousActive=H;this.animationRef.lottieEl?t&&this.toggleAnimation(H,f.totalFrames):H?this.initializeAnimationAsToggled(f.lottiePlayerProps,f.totalFrames):this.initializeAnimationAsUntoggled(f.lottiePlayerProps);f.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=f.type;this.lottiePlayerProps=this.computeLottiePlayerProps(f,v)}};
_.R.computeLottiePlayerProps=function(f,H){var v=this.deepCloneLottiePlayerProps(f);H?(H=f.nameDarkTheme,f=f.pathDarkTheme):(H=f.name,f=f.path);v.animationConfig.name=H;(H=FW.get(f))?v.animationConfig.animationData=H:v.animationConfig.path=f;return v};
_.R.initializeAnimationAsToggled=function(f,H){f.animationConfig.initialSegment=[H-1,H]};
_.R.initializeAnimationAsUntoggled=function(f){f.animationConfig.initialSegment=void 0};
_.R.toggleAnimation=function(f,H){if(f){var v;(v=this.animationRef.lottieEl)==null||v.playSegments([0,H],!0)}else{var t;(t=this.animationRef.lottieEl)==null||t.playSegments([0,1],!0)}};
_.R.deepCloneLottiePlayerProps=function(f){var H=Object.assign({},f.lottiePlayerProps.animationConfig);f=Object.assign({},f.lottiePlayerProps);f.animationConfig=H;return f};
sL.prototype.handlePropertyChange=sL.prototype.handlePropertyChange;_.E([_.F(),_.N("design:type",Object)],sL.prototype,"animatedIcon",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],sL.prototype,"active",void 0);_.E([_.F(),_.N("design:type",Boolean)],sL.prototype,"isDarkTheme",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],sL.prototype,"animatedIconType",void 0);_.E([_.F(),_.N("design:type",Boolean)],sL.prototype,"previousActive",void 0);
_.E([_.F(),_.N("design:type",Object)],sL.prototype,"lottiePlayerProps",void 0);_.E([_.F(),_.N("design:type",Object)],sL.prototype,"animationRef",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],sL.prototype,"delhiIconsEnabled",void 0);_.E([_.Zw("animatedIcon","active","isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sL.prototype,"handlePropertyChange",null);_.E([_.GW({is:"yt-animated-icon",disableElementRegistration:!0})],sL);
_.G(sL,"yt-animated-icon",function(){if(NwM===void 0){var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;E9H===void 0&&(E9H=document.createElement("template"));var t=E9H;v.call(H,t.content.cloneNode(!0),f.content.firstChild);NwM=f}f=NwM;return f},{mode:2});var Xlb;var ABH;var HDe=_.a(function(f){var H=_.w8("span"),v=Dp(function(){return{value:null}});
_.Dt(function(){var M;(M=v.value)==null||M.cancel()});
var t=_.sg(f.data,{equals:function(M,h){return M.iconName===h.iconName&&M.iconStyle===h.iconStyle&&M.iconSize===h.iconSize&&M.iconSetName===h.iconSetName&&M.iconSelected===h.iconSelected}},"AoOoyf");
_.K4(function(){var M,h=(M=f.options)==null?void 0:M.call(f);f35(H,v,t(),h)},"Tie9e");
return _.O("span",{class:"yt-icon-shape",el:H})},"C");
HDe.idomCompat=!0;var wET=["youtube_fill","youtube_outline"];var bqv=new _.lp({type:"iconset",value:void 0}),Zs=function(){var f=_.K.apply(this,arguments)||this;f.isDarkTheme=document.documentElement.hasAttribute("dark");f.iconName="";f.iconsetName="yt-icons";f.iconset=null;f.missingIconSet=!1;f.iconType=null;f.iconShapeDataSignal=_.gp(void 0,void 0,"b0v7Ac");f.renderingOptionsSignal=_.gp({iconWidth:"100%",iconHeight:"100%",iconFilter:f.iconFilter},void 0,"Ls6l3e");f.wizHasRendered=!1;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.e(Zs,_.K);Zs.prototype.onDarkModeToggledAction=function(f){f!==this.isDarkTheme&&(this.isDarkTheme=f)};
Zs.prototype.handlePropertyChange=function(){var f=this,H,v,t,M,h,y,m,W,I,S,d,Z,l,L,r,n,Q;return _.Y(function(C){switch(C.nextAddress){case 1:if(H=!f.icon&&!f.iconName||!f.isAttached)return C.return();v=f;t=v.icon;M=v.size;h=v.defaultToFilled;y=v.active;m=v.targetContainer;f.toggleContainerClass(m);_.J("kevlar_use_wil_icons")&&t&&(W=nbH(t),f.iconType=W.length?W[1]:null);if(t){C.jumpTo(2);break}f.iconsetName="";f.iconName="";return C.yield(f.renderIcon(m,t),3);case 3:return C.return();case 2:I=iqr(t);
S=nbH(I);S.length&&(f.iconsetName=S[0],f.iconName=S[1]);if(!_.J("kevlar_use_wil_icons")){C.jumpTo(4);break}d=Zs;Z=ktv;l=f.iconType;L=f.active;r=f.defaultToFilled;n=f.size;Q=f.iconsetName;return C.yield(TwT(),6);case 6:return C.yield(Z.call(d,l,L,r,n,Q,C.yieldResult),5);case 5:f.iconShapeData=C.yieldResult;case 4:if(f.shouldRenderIconShape(m)){C.jumpTo(7);break}return C.yield(f.determineIconSet(I,y,h,M,m),7);case 7:return C.yield(f.renderIcon(m,t),0)}})};
Zs.prototype.toggleContainerClass=function(f){f?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var iqr=function(f){return!_.J("default_to_innertube_icon")||f.indexOf(":")>0?f:_.SW(f)};
_.R=Zs.prototype;_.R.determineIconSet=function(f,H,v,t){var M=this;return _.Y(function(h){return h.nextAddress==1?_.J("kevlar_system_icons")||_.a8("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.a8("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?h.yield(M.switchToYtSysIconset(f,H,v,t),3):h.jumpTo(2):h.nextAddress!=2?h.return():h.yield(M.useYtSysIconsetForMissingIcons(f,H,v,t),0)})};
_.R.switchToYtSysIconset=function(f,H,v,t){var M=this,h,y,m,W,I,S,d;return _.Y(function(Z){switch(Z.nextAddress){case 1:if(!f||M.iconsetName!=="yt-icons"&&M.iconsetName!=="yt-sys-icons"){Z.jumpTo(0);break}h=nbH(f);y=h[1];y=_.cPb(y);_.J("enable_polymer_icons_replace_underscores_dash")&&y.includes("_filled")&&(y=y.replace(/_filled/g,"-filled"));return Z.yield(Iu(y,!0),3);case 3:return m=Z.yieldResult,Z.yield(Iu(y,!1),4);case 4:if((W=Z.yieldResult)||H&&m)M.iconsetName="yt-sys-icons";M.iconName=M.getIconName(y,
H,v,W,m);if(t===24){Z.jumpTo(0);break}I="yt-sys-icons"+t+":"+M.iconName;return Z.yield(Iu(I,!1,!0),6);case 6:return S=Z.yieldResult,Z.yield(Iu(I,!0,!0),7);case 7:d=Z.yieldResult;M.iconName=M.getIconName(y,H,v,S,d);if(!H&&S||H&&d)M.iconsetName="yt-sys-icons"+t;_.Bj(Z)}})};
_.R.getIconName=function(f,H,v,t,M){f.includes("-filled")&&(f=f.replace("-filled",""));return M&&(H||v)?f+"-filled":f};
_.R.useYtSysIconsetForMissingIcons=function(f,H,v,t){var M=this,h,y;return _.Y(function(m){if(m.nextAddress==1)return M.iconsetName!=="yt-icons"?m.jumpTo(0):m.yield(Iu(M.iconName,!1,!1,!0),3);if(m.nextAddress!=4)return h=m.yieldResult,m.yield(Iu(M.iconName,!1),4);y=m.yieldResult;if(h||!y)return m.jumpTo(0);M.iconsetName="yt-sys-icons";return m.yield(M.switchToYtSysIconset(f,H,v,t),0)})};
_.R.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var TwT=function(){return _.Y(function(f){try{return f.return(_.t8().resolve(_.d9))}catch(H){return f.return(new Promise(function(v){_.PL().parkOrScheduleJob(function(){v(_.t8().resolve(_.d9))},2,"ci")}))}})},ktv=function(f,H,v,t,M,h){t=t===void 0?24:t;
if(f){f=f.toLowerCase();var y=f.endsWith("_filled")||f.endsWith("-filled");H={iconName:f,iconStyle:(H===void 0?0:H)||(v===void 0?0:v)||y?"youtube_fill":"youtube_outline",iconSize:t,iconSetName:M===void 0?"yt-icons":M};v=!!h.resolveIcon(H);v||(H.iconSize=void 0,v=!!h.resolveIcon(H));!v&&y&&(H.iconName=f.substring(0,f.length-7),H.iconSize=t,v=!!h.resolveIcon(H),v||(H.iconSize=void 0,v=!!h.resolveIcon(H)));v||(H.iconStyle=void 0,v=!!h.resolveIcon(H));v||_.pb(new _.e$("Icon not supported",{iconName:H.iconName,
iconStyle:H.iconStyle,iconSize:H.iconSize,iconType:f}));return v?H:void 0}};
_.R=Zs.prototype;_.R.shouldRenderIconShape=function(f){if(!_.J("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;f=this.getContainer(f);return!kvT(f,this.icon)};
_.R.renderIcon=function(f,H){var v=this,t,M,h,y,m,W,I,S;return _.Y(function(d){switch(d.nextAddress){case 1:if(H&&v.icon!==H)return d.return();t=v.getContainer(f);M=kvT(t,v.icon);if(v.shouldRenderIconShape(f)&&v.iconType)return v.applyIconShape(M,t),d.return();v.removeIconShape();if(!t)return d.return();v.iconName===""&&v.iconset&&t&&(v.removeStaticIcon(v.iconset,t),M&&v.removeAnimatedIcon(t));if(v.iconName===""&&v.iconset||!v.iconsetName||!bqv)return d.return();v.iconset=bqv.byKey(v.iconsetName);
if(!v.iconset)return v.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.jr(v,v.onIconsetAdded)),d.return();v.missingIconSet&&(v.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.jr(v,v.onIconsetAdded)));y=(h=M||v.isAnimatedIcon?Abs(v.icon):void 0)&&!h.lazyLoad;W=h&&((m=h)==null?void 0:m.lazyLoad)&&(h.lottiePlayerProps.animationConfig.animationData?!0:FW.get(v.isDarkTheme?h.pathDarkTheme:h.path)?!0:!1);if(y||W)return v.applyAnimatedIcon(t,h,v.iconset),d.return();if(W||
(I=h)==null||!I.lazyLoad){d.jumpTo(2);break}S=wqH(h,v.isDarkTheme);v.applyStaticIcon(v.iconset,t,v.iconName,f,M);return d.yield(S,3);case 3:return d.yield(v.renderIcon(v.targetContainer,v.icon),4);case 4:return d.return();case 2:v.applyStaticIcon(v.iconset,t,v.iconName,f,M),_.Bj(d)}})};
_.R.getContainer=function(f){var H,v=(H=H_E(this.hostElement))==null?void 0:H.host;H=!!v&&!!v.polymerController;if(!f||H)return f?this.getTargetContainer(f,v):this.hostElement};
_.R.getTargetContainer=function(f,H){var v=_.mF(H).querySelector("#"+f);v||(f=new _.e$("yt-icon container missing",H.is,f),_.oO(f));return v};
_.R.applyStaticIcon=function(f,H,v,t,M){M&&this.removeAnimatedIcon(H);this.removeIconShape();M=M&&!!this.iconType&&!!this.iconShapeData&&_.J("kevlar_use_wil_icons");try{M?this.applyIconShape(!1,H):f.applyIcon(H,v)}catch(h){this.handleError(h,t,H)}};
_.R.applyIconShape=function(f,H){this.iconset&&H&&(this.removeStaticIcon(this.iconset,H),f&&this.removeAnimatedIcon(H));f={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var v=_.V(this.iconShapeDataSignal);H=v.next().value;v=v.next().value;var t=_.V(this.renderingOptionsSignal),M=t.next().value;t=t.next().value;v(this.iconShapeData);t(f);if(!this.wizHasRendered)for(this.wizHasRendered=!0,f=_.V(vwT(H,M)).next().value;f.firstChild;)_.mF(this.hostElement).appendChild(f.firstChild)};
_.R.removeIconShape=function(){if(_.J("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.R.removeStaticIcon=function(f,H){f.removeIcon(H)};
_.R.applyAnimatedIcon=function(f,H,v){this.removeStaticIcon(v,f);this.removeIconShape();var t;v=this.animatedIconElement&&((t=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:t.type)===H.type;if(this.animatedIconElement&&v){this.animatedIconElement.polymerController.animatedIcon=H;var M;((M=this.animatedIconElement)==null?void 0:M.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(f),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=H,this.animatedIconElement.polymerController.active=this.active,_.J("delhi_modern_web_player_icons")?(H=bjB(f,this.icon)&&f.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=H?H.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.J("kevlar_use_wil_icons")?
f.insertBefore(this.animatedIconElement,f.childNodes[0]):(f=_.mF(f),f.insertBefore(this.animatedIconElement,f.childNodes[0]))};
_.R.removeAnimatedIcon=function(f){_.J("kevlar_use_wil_icons")?this.animatedIconElement&&f.contains(this.animatedIconElement)&&f.removeChild(this.animatedIconElement):(f=_.mF(f),this.animatedIconElement&&f.contains(this.animatedIconElement)&&f.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.R.handleError=function(f,H,v){_.u$(f,this.iconName,H,v);H=kvT(v,this.icon);var t=!1;window.location.href.includes("JpymaW6Lh2w")?t=!0:v._svgIcon&&(v=(v=v._svgIcon.parentNode)?v.tagName:"unknown",_.u$(f,v),v==="YT-ICON"&&f.name==="NotFoundError"?t=!0:f.name==="NotFoundError"&&H&&(t=!0));t?_.pb(f):_.oO(f)};
_.H7.Object.defineProperties(Zs,{template:{configurable:!0,enumerable:!0,get:function(){if(ABH===void 0){var f=document.createElement("template");_.x(f,"\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");f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;
Xlb===void 0&&(Xlb=document.createElement("template"));var t=Xlb;v.call(H,t.content.cloneNode(!0),f.content.firstChild);ABH=f}f=ABH;return f}}});
Zs.prototype.handlePropertyChange=Zs.prototype.handlePropertyChange;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Zs.prototype,"actionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",String)],Zs.prototype,"icon",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],Zs.prototype,"active",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],Zs.prototype,"defaultToFilled",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],Zs.prototype,"isAnimatedIcon",void 0);
_.E([_.F({value:24}),_.N("design:type",Number)],Zs.prototype,"size",void 0);_.E([_.F({value:""}),_.N("design:type",String)],Zs.prototype,"targetContainer",void 0);_.E([_.F(),_.N("design:type",Object)],Zs.prototype,"animatedIconElement",void 0);_.E([_.F(),_.N("design:type",Object)],Zs.prototype,"isDarkTheme",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Zs.prototype,"ariaHidden",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],Zs.prototype,"ariaLabel",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],Zs.prototype,"role",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],Zs.prototype,"tabindex",void 0);_.E([_.F(),_.N("design:type",String)],Zs.prototype,"style",void 0);_.E([_.F(),_.N("design:type",String)],Zs.prototype,"iconFilter",void 0);
_.E([_.Zw("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],Zs.prototype,"handlePropertyChange",null);_.E([_.GW({is:"yt-icon",noInjection:!0})],Zs);var tnB="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),hJg=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var wlZ={};wlZ.YtPlaintextBehavior=[_.dS,{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(f){f.preventDefault();f=f.clipboardData.getData("text/plain");document.execCommand("insertText",!1,f)},
preventRichTextFormatting_:function(f){_.Y_&&(f=f.detail.keyboardEvent,f.stopImmediatePropagation(),f.preventDefault())}}];var qOT;var f$h;var J$=function(){var f=_.K.apply(this,arguments)||this;f.ignoreShadyDom=!1;f.hasChange_=!1;f.hasSetTitle_=!1;f.useIOObserverForVisibilityLogging_=_.J("kevlar_use_vimio_behavior")&&_.a8("INNERTUBE_CLIENT_NAME")==="WEB";f.ytFormattedStringObserverHandlerKeys_=void 0;return f};
_.e(J$,_.K);_.R=J$.prototype;_.R.created=function(){this.useIOObserverForVisibilityLogging_=_.J("kevlar_use_vimio_behavior")&&_.a8("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.R.ready=function(){_.a8("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_()};
_.R.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.R.detached=function(){this.unobserveIOObservers_()};
_.R.clearContents_=function(){for(var f=this.getRoot(),H=f.lastChild;H&&H.tagName!=="STYLE";){try{f.removeChild(H)}catch(v){break}H=f.lastChild}};
_.R.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var f=_.V(this.ytFormattedStringObserverHandlerKeys_),H=f.next();!H.done;H=f.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(H.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.R.resetForAttributedString=function(){var f=this.getRoot();!f.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),f.appendChild(this.ytAttributedStringElementRef))};
_.R.resetForFormattedString=function(){var f=this.getRoot(),H=f.querySelector("yt-attributed-string");H&&(this.ytAttributedStringElementRef=f.removeChild(H))};
_.R.textChanged=function(){this.textChanged_(this.text)};
_.R.textChanged_=function(f){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!f||!f.runs&&!f.simpleText;if(_.J("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var H=this.hostElement.firstChild;H&&H.nodeName==="FONT";){var v=H;H=H.nextSibling;this.hostElement.removeChild(v)}H=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
v=f.simpleText;var t;!v&&((t=f.runs)==null?void 0:t.length)===1&&this.isSimpleString_(f.runs[0])&&(v=f.runs[0].text);v!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.a8("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(v!==void 0){try{H.textContent=v}catch(M){}H.textContent||(this.isEmpty=!0)}else f=f.runs,v!==void 0&&(f=[{text:v}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),f&&this.updateText_(f),
H.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.R.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)};
_.R.computeAriaLabel_=function(f){return f};
_.R.computeEllipsisTruncateStyling=function(f,H){return f&&!H};
_.R.computeUseAttributedString=function(f){return _.J("web_replace_formatted_with_attributed_string")&&e_5(f)&&!this.disableAttributedString&&!this.enableContentEditable};
_.R.setNodeStyle_=function(f,H){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.J("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?H.removeAttribute("dir"):H.setAttribute("dir","auto");H.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");H.style.color="";var v=null;this.noStyles||(f.bold&&(H.classList.add("bold"),v="bold"),f.deemphasize&&(H.classList.add("deemphasize"),v="deemphasize"),f.italics&&H.classList.add("italic"),
f.strikethrough&&H.classList.add("strikethrough"),f.errorUnderline&&(H.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),f.bracket&&H.classList.add("bracket"),f.textColor&&(H.style.color=_.NS(f.textColor)));v!==H.getAttribute("style-target")&&(v?H.setAttribute("style-target",v):H.removeAttribute("style-target"))};
_.R.setUpVisibilityLogging_=function(f,H){var v=this;this.setNodeTrackingParams_(f,H);var t;((t=H.data)==null?0:t.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(f=this.ytRendererBehavior.visibilityObserver.observe(H,function(M){var h=v.ytRendererBehavior.getVisibilityLogger();h&&h.reportShown(M)},this.ytRendererBehavior.visibilityOptionVisible_),H=this.ytRendererBehavior.visibilityObserver.observe(H,function(M){var h=v.ytRendererBehavior.getVisibilityLogger();
h&&h.reportHidden(M)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(f),this.ytFormattedStringObserverHandlerKeys_.push(H))};
_.R.setNodeTrackingParams_=function(f,H){H.data||(H.data={});if((f=f.loggingDirectives?f.loggingDirectives.trackingParams:null)||H.data.trackingParams)H.data.trackingParams=f};
_.R.computeHasLinkOnly_=function(f){return!(!f||f.length!==1||this.noEndpoints||!f[0].navigationEndpoint)};
_.R.getRoot=function(){var f=this.buildScopeDomOptions();return this.enableContentEditable?_.mF(_.mF(this.hostElement,f).querySelector("[contenteditable]")):_.mF(this.hostElement,f)};
_.R.fixContenteditableScope=function(){var f=function(H){H&&(H.nodeType===1&&H.classList&&(H.classList.add("style-scope"),H.classList.add("yt-formatted-string")),H.childNodes&&H.childNodes.forEach(function(v){f(v)}))};
f(this.getRoot())};
_.R.updateText_=function(f){for(var H=f.length,v=this.getRoot(),t=v.firstChild;t&&t.nodeName==="STYLE";)t=t.nextSibling;for(var M=0;M<H&&t;){var h=f[M],y=_.J("remove_cr_char")&&h.text?h.text.replace("\r",""):h.text;if(this.isSimpleString_(h)&&!this.useMixedDirectionFormattedStrings)if(t.nodeName==="#text"){t.textContent!=y&&(t.textContent=y);M++;t=t.nextSibling;continue}else break;if(_.U(h,uV))break;else if(!this.noEndpoints&&h.navigationEndpoint){if(t.nodeName!=="A")break;this.setDataOnAnchor_(t,
h.navigationEndpoint)}else if(t.nodeName!=="SPAN")break;this.setNodeStyle_(h,t);this.setUpVisibilityLogging_(h,t);t.textContent!=y&&(t.textContent=y);M++;t=t.nextSibling}if(t)for(h=v.lastChild,t=M?t.previousSibling:null;h&&h!=t;){try{v.removeChild(h)}catch(m){break}h=v.lastChild}M!==H&&this.addTextNodes_(f,M)};
_.R.addTextNodes_=function(f,H){for(var v=document.createDocumentFragment(),t=f.length;H<t;H++){var M=f[H],h=_.J("remove_cr_char")&&M.text?M.text.replace("\r",""):M.text;if(this.isSimpleString_(M)&&!this.useMixedDirectionFormattedStrings)v.appendChild(document.createTextNode(h));else{var y=_.U(M,uV);if(y){if(y.image){var m=document.createElement("img");y.isCustomEmoji||m.classList.add("small-emoji");m.classList.add("emoji");y.isCustomEmoji&&(m.dataset.emojiId=y.emojiId);m.src=_.YK(y.image.thumbnails,
this.emojiSize);(M=this.get("image.accessibility.accessibilityData.label",y))?m.alt=M:y.shortcuts&&y.shortcuts.length>0?m.alt=y.shortcuts[0]:y.emojiId&&(m.alt=y.emojiId);v.appendChild(m);this.hasEmoji=!0}}else!this.noEndpoints&&M.navigationEndpoint?(m=document.createElement("a"),m.classList.add("yt-simple-endpoint"),m.setAttribute("spellcheck","false"),this.setDataOnAnchor_(m,M.navigationEndpoint)):m=document.createElement("span"),this.setNodeStyle_(M,m),this.setUpVisibilityLogging_(M,m),m.appendChild(document.createTextNode(h)),
v.appendChild(m)}}this.getRoot().appendChild(v)};
_.R.isSimpleString_=function(f){return(this.noEndpoints||!f.navigationEndpoint)&&!_.U(f,uV)&&(this.noStyles||!(f.bold||f.deemphasize||f.italics||f.strikethrough||f.errorUnderline||f.bracket||f.textColor))&&!f.loggingDirectives};
_.R.getRawText=function(){return _.fG(this.text)};
_.R.getFirstRunText=function(){var f;if(((f=this.text)==null?0:f.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.R.setFirstRunText=function(f){var H;((H=this.text)==null?0:H.runs)&&this.text.runs[0]&&(this.text.runs[0].text=f,this.textChanged_(this.text))};
_.R.setDataOnAnchor_=function(f,H){var v=this;!_.J("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(H)||this.isSignalServiceEndpoint_(H)?(f.onclick=this.serviceEndpointHandler_(H),AD(f,"#")):FVE({text:this.text,command:H},function(){CFR(f,H,v.target)})};
_.R.isServiceEndpoint_=function(f){var H;return!((H=_.U(f==null?void 0:f.commandMetadata,_.jG))==null||!H.sendPost)};
_.R.isSignalServiceEndpoint_=function(f){return!!_.U(f,_.dj)};
_.R.serviceEndpointHandler_=function(f){var H=this;return function(v){_.WV(H.hostElement,[f]);v.preventDefault()}};
_.R.overrideAriaLabelChanged_=function(){var f=this.getRoot();this.enableContentEditable&&f&&f.setAttribute("aria-label",this.overrideAriaLabel)};
_.R.enableContentEditableChanged_=function(){var f=this,H=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),H=_.mF(this.hostElement,H),!H.lastChild||H.lastChild instanceof HTMLElement&&H.lastChild.id!=="contenteditable-root"){var v=document.createElement("div");v.id="contenteditable-root";v.setAttribute("contenteditable","true");v.setAttribute("dir","auto");v.onfocus=function(){f.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
H.appendChild(v);this.overrideAriaLabel&&v.setAttribute("aria-label",this.overrideAriaLabel)}}else v=_.$V(this.hostElement).firstChild,v instanceof HTMLElement&&v.id==="contenteditable-root"&&_.mF(this.hostElement,H).removeChild(v)};
_.R.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.R.getNodesForVisibilityLogging_=function(){return _.vI(this.getRoot().childNodes,function(f){var H;return!((H=f.data)==null||!H.trackingParams)})};
_.R.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.R.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var f=this.ytRendererBehavior.getVisibilityLogger();f&&this.getNodesForVisibilityLogging_().forEach(function(H){f.reportShown(H)})}};
_.R.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var f=this.ytRendererBehavior.getVisibilityLogger();f&&this.getNodesForVisibilityLogging_().forEach(function(H){f.reportHidden(H)})}};
_.H7.Object.defineProperties(J$.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.J("enable_mixed_direction_formatted_strings")}}});
J$.prototype.enableContentEditableChanged_=J$.prototype.enableContentEditableChanged_;J$.prototype.overrideAriaLabelChanged_=J$.prototype.overrideAriaLabelChanged_;J$.prototype.ellipsisTruncateChanged_=J$.prototype.ellipsisTruncateChanged_;J$.prototype.textChanged=J$.prototype.textChanged;_.E([_.B(wlZ.YtPlaintextBehavior),_.N("design:type",Object)],J$.prototype,"ytPlaintextBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],J$.prototype,"ytComponentBehavior",void 0);
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],J$.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],J$.prototype,"text",void 0);_.E([_.F(),_.N("design:type",Boolean)],J$.prototype,"noEndpoints",void 0);_.E([_.F(),_.N("design:type",Boolean)],J$.prototype,"noStyles",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],J$.prototype,"isDarkTheme",void 0);
_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],J$.prototype,"splitLines",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],J$.prototype,"forceDefaultStyle",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],J$.prototype,"ellipsisTruncate",void 0);_.E([_.F(),_.N("design:type",Object)],J$.prototype,"ignoreShadyDom",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.N("design:type",Boolean)],J$.prototype,"ellipsisTruncateStyling",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.N("design:type",String)],J$.prototype,"ariaLabel",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],J$.prototype,"isEmpty",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.N("design:type",Boolean)],J$.prototype,"hasLinkOnly_",void 0);_.E([_.F(),_.N("design:type",Boolean)],J$.prototype,"hasEmoji",void 0);_.E([_.F(),_.N("design:type",Boolean)],J$.prototype,"disableAttributedString",void 0);_.E([_.F(),_.N("design:type",Boolean)],J$.prototype,"isOverlay",void 0);_.E([_.F(),_.N("design:type",Boolean)],J$.prototype,"linkInheritColor",void 0);
_.E([_.F(),_.N("design:type",Boolean)],J$.prototype,"noPreWrap",void 0);_.E([_.F(),_.N("design:type",Boolean)],J$.prototype,"userInput",void 0);_.E([_.F({value:16}),_.N("design:type",Number)],J$.prototype,"emojiSize",void 0);_.E([_.F(),_.N("design:type",String)],J$.prototype,"target",void 0);_.E([_.F(),_.N("design:type",Boolean)],J$.prototype,"enableContentEditable",void 0);_.E([_.F(),_.N("design:type",String)],J$.prototype,"overrideAriaLabel",void 0);
_.E([_.F(),_.N("design:type",Boolean)],J$.prototype,"respectHtmlDir",void 0);_.E([_.F(),_.N("design:type",Boolean)],J$.prototype,"respectLangDir",void 0);_.E([_.z("plaintextOnly"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],J$.prototype,"useMixedDirectionFormattedStrings",null);_.E([_.F({computed:"computeUseAttributedString(text)"}),_.N("design:type",Boolean)],J$.prototype,"useYtAttributedString",void 0);
_.E([_.Zw("text"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],J$.prototype,"textChanged",null);_.E([_.Zw("ellipsisTruncate"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],J$.prototype,"ellipsisTruncateChanged_",null);_.E([_.Zw("overrideAriaLabel"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],J$.prototype,"overrideAriaLabelChanged_",null);
_.E([_.Zw("enableContentEditable"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],J$.prototype,"enableContentEditableChanged_",null);_.E([_.GW({is:"yt-formatted-string",disableElementRegistration:!0})],J$);
_.G(J$,"yt-formatted-string",function(){if(f$h===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;qOT===void 0&&(qOT=document.createElement("template"));var t=qOT;v.call(H,t.content.cloneNode(!0),f.content.firstChild);f$h=f}f=f$h;return f});var Hev;var vAM;var too;var MoZ;var lM=function(){var f=_.K.apply(this,arguments)||this;f.focused=!1;f.disabled=!1;f.isOverlay=!1;return f};
_.e(lM,_.K);lM.prototype.triggerDown=function(){if(!this.disabled){_.WB(this.hostElement,"down",!0);var f;(f=this.currentAnimation)==null||f.cancel()}};
lM.prototype.triggerUp=function(){if(!this.disabled){_.WB(this.hostElement,"down",!1);var f=this.fillElement;var H=this.strokeElement;typeof GroupEffect==="function"?(f=new GroupEffect([kdE(f),TlN(H)]),f=new Animation(f,document.timeline)):f=new xpb(f,H);this.currentAnimation=f;var v;(v=this.currentAnimation)==null||v.play()}};
_.E([_.lJ(".stroke"),_.N("design:type",HTMLElement)],lM.prototype,"strokeElement",void 0);_.E([_.lJ(".fill"),_.N("design:type",HTMLElement)],lM.prototype,"fillElement",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],lM.prototype,"focused",void 0);_.E([_.F(),_.N("design:type",Object)],lM.prototype,"disabled",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],lM.prototype,"isOverlay",void 0);_.E([_.GW({is:"yt-interaction",disableElementRegistration:!0})],lM);
_.G(lM,"yt-interaction",function(){if(MoZ===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;too===void 0&&(too=document.createElement("template"));var t=too;v.call(H,t.content.cloneNode(!0),f.content.firstChild);MoZ=f}f=MoZ;return f},{mode:2});var UL=function(){return _.K.apply(this,arguments)||this};
_.e(UL,_.K);_.R=UL.prototype;_.R.ready=function(){var f=this,H=_.mF(this.hostElement).querySelector("#button");H.addEventListener("focus",function(){B2M||(B2M=new xUM);f.keyboardFocused=B2M.isKeyBoardInUse()});
H.addEventListener("blur",function(){f.keyboardFocused=!1;f.rippleUp_()})};
_.R.computeTabIndex_=function(f){return f?-1:0};
_.R.computeButtonAriaPressed_=function(f){if(this.toggleable)return f?"true":"false"};
_.R.rippleDown_=function(){_.mF(this.hostElement).querySelector("#interaction").triggerDown()};
_.R.rippleUp_=function(){_.mF(this.hostElement).querySelector("#interaction").triggerUp()};
_.R.onPressedChanged_=function(){var f=_.$V(_.mF(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.$V(_.mF(this.hostElement).querySelector("#button")).children[0];f&&(f.active=this.pressed)};
UL.prototype.onPressedChanged_=UL.prototype.onPressedChanged_;UL.prototype.rippleUp_=UL.prototype.rippleUp_;UL.prototype.rippleDown_=UL.prototype.rippleDown_;_.E([_.F(),_.N("design:type",String)],UL.prototype,"label",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],UL.prototype,"disabled",void 0);_.E([_.F(),_.N("design:type",Boolean)],UL.prototype,"pressed",void 0);_.E([_.F(),_.N("design:type",Object)],UL.prototype,"toggleable",void 0);
_.E([_.F(),_.N("design:type",Boolean)],UL.prototype,"untabbable",void 0);_.E([_.F(),_.N("design:type",Boolean)],UL.prototype,"keyboardFocused",void 0);_.E([_.sE("down"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UL.prototype,"rippleDown_",null);_.E([_.sE("up"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UL.prototype,"rippleUp_",null);
_.E([_.Zw("pressed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UL.prototype,"onPressedChanged_",null);_.E([_.GW({is:"yt-icon-button",disableElementRegistration:!0})],UL);
_.G(UL,"yt-icon-button",function(){if(vAM===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;Hev===void 0&&(Hev=document.createElement("template"));var t=Hev;v.call(H,t.content.cloneNode(!0),f.content.firstChild);vAM=f}f=vAM;return f},{mode:2});var hkg;var Rko=function(){var f=document.body,H=f.appendChild;if(hkg===void 0){var v=document.createElement("template");_.x(v,'\x3c!--css-build:shady--\x3e<svg style="position: absolute; height: 0; width: 0;" aria-hidden="true"><defs><mask id="artwork__b" fill="#fff"><path d="M.24.24v70.2h10.43c0 33 26.76 59.77 59.77 59.77 33 0 59.77-26.7 59.77-59.7h9.7V.3H.3z"></path></mask><mask id="artwork__d" fill="#fff"><path d="M17.3.23C-2.2-.13.26 14.73.26 14.73s-.1 25.85 14.83 28.3c3.9.06 5.2-5.33 5.2-5.33l-2.2 13.24-4.6 31.26s17.9 5.3 33.4 1.02c.1-12.1 4-43.73 3.9-49.96 3.2 3.7 9 24.97 11 51.1 5.8 1.27 9.3 0 9.3 0S70.9 43.12 54.9 21c-4.7-6.87-16.7-6.87-16.7-6.87-7-.98-8.9-.8-16 .18-7.1 1-6.6 9.5-6.6 9.5s1 5.5-1.4 10.2c-8.1-5-7.1-20.5-7.1-20.5s.5-5.6 8.1-6.8c2.3-1.3 3.9-4.7 2-6.3z"></path></mask><mask id="artwork__f" fill="#fff"><path d="M15.65 12.32L2.2 10.67C1.06 10.54.26 9.5.4 8.4L1.18 2C1.32.88 2.35.07 3.48.2l13.45 1.66c1.12.13 1.92 1.16 1.8 2.28l-.8 6.4c-.13 1.1-1.16 1.92-2.28 1.78z"></path></mask><mask id="artwork__h" fill="#fff"><path id="artwork__g" d="M2.97.2l12.6 1.55-.3 11.72-15.03-2.1z"></path></mask><mask id="artwork__j" fill="#fff"><path d="M.2.24c10.98 3.92 12.35 11.63 12.35 11.63l-.44.8S3.3 10.34.2.25z"></path></mask><mask id="artwork__l" fill="#fff"><path d="M.17.27S7.42.9 5.7 4.77l-.7.98C1 8.05.16.27.16.27z"></path></mask><mask id="artwork__n" fill="#fff"><path d="M.24.24H6.4S7.14 4.8 3.32 4.8C-.5 4.8.24.24.24.24z" id="artwork__m"></path></mask><mask id="artwork__p" fill="#fff"><circle cx="6.46" cy="6.64" r="6.46"></circle></mask><mask id="artwork__r" fill="#fff"><circle cx="6.46" cy="6.64" r="6.46"></circle></mask><mask id="artwork__t" fill="#fff"><path d="M28 14.83c0 8.06-6.22 14.6-13.9 14.6-7.7 0-13.9-4-13.9-14.6C.2 6.77 6.4.25 14.1.25 21.77.25 28 6.78 28 14.83z"></path></mask><mask id="artwork__v" fill="#fff"><path d="M28 14.83c0 8.06-6.22 14.6-13.9 14.6-7.7 0-13.9-4-13.9-14.6C.2 6.77 6.4.25 14.1.25 21.77.25 28 6.78 28 14.83z"></path></mask><mask id="artwork__x" fill="#fff"><path d="M.55.4l9.95.24s1.64 9.34-2.4 9.6C-1.47 10.54.54.4.54.4z"></path></mask><mask id="artwork__z" fill="#fff"><circle cx="59.77" cy="59.77" r="59.77"></circle></mask><clipPath id="hashtag_landing_page_empty__a"><path class="hashtag_landing_page_empty__cls-1" d="M0 0h200v200H0z"></path></clipPath><clipPath id="hashtag_landing_page_empty_dark_mode__a"><path class="hashtag_landing_page_empty_dark_mode__cls-1" d="M0 0h200v200H0z"></path></clipPath><clipPath id="hashtag_landing_page_error__a"><path class="hashtag_landing_page_error__cls-1" d="M-79.58-79.58h459.2v459.2h-459.2z"></path></clipPath><clipPath id="hashtag_landing_page_error__c"><path class="hashtag_landing_page_error__cls-1" d="M189.2 50.73c-44.7 0-83.94 30.59-90.33 67.34-7.88 45.31 26.77 92.29 78 101.2s101.3-23.34 109.2-68.65-28.76-89.53-80.04-98.45a97.63 97.63 0 00-16.75-1.45"></path></clipPath><clipPath id="hashtag_landing_page_error__b"><path class="hashtag_landing_page_error__cls-1" d="M1.49 219.9L124.8 212l-60.67-41.9z"></path></clipPath><clipPath id="hashtag_landing_page_error_dark_mode__a"><path class="hashtag_landing_page_error_dark_mode__cls-1" d="M-78.75-78.75h457.5v457.5h-457.5z"></path></clipPath><clipPath id="hashtag_landing_page_error_dark_mode__c"><path class="hashtag_landing_page_error_dark_mode__cls-1" d="M99.07 118.2c-7.85 45.15 26.68 92 77.76 100.8s100.9-23.25 108.8-68.39-28.69-89.21-79.78-98.1a98.36 98.36 0 00-16.72-1.44c-44.54 0-83.64 30.48-90 67.09"></path></clipPath><clipPath id="hashtag_landing_page_error_dark_mode__b"><path class="hashtag_landing_page_error_dark_mode__cls-1" d="M2.03 219.7l122.87-7.9L64.45 170z"></path></clipPath><mask id="offline_no_content__b" fill="#fff"><use xlink:href="#offline_no_content__a"></use></mask><mask id="offline_no_content__d" fill="#fff"><use xlink:href="#offline_no_content__c"></use></mask><path id="offline_no_content__a" d="M0 194.555V.675h191.961v193.88z"></path><path d="M.668 18.586C8.545 12.047 15.125 3.19 25.082.49v20.673H.668v-2.577z" id="offline_no_content__c"></path><clipPath id="empty_search__clip-path"><path d="M3.43 126.34H227a29.17 29.17 0 0 0-5.06-24c-4.42-6.11-10-12.51-9.71-28.73s-.4-59.23-20.9-67.3c-28.87-11.37-53.18 18.05-71.57 19s-32.31-9.34-45.87-4.5-11.63 16.68-18.17 19.83-20.58.73-25.18 13.8S34.06 77.8 25 83.73c-8.82 5.75-27.62 9.32-21.57 42.61z" fill="none"></path></clipPath><clipPath id="chrome_icon__b"><use overflow="visible" xlink:href="#chrome_icon__a"></use></clipPath><clipPath id="chrome_icon__f"><use overflow="visible" xlink:href="#chrome_icon__e"></use></clipPath><clipPath id="chrome_icon__j"><use overflow="visible" xlink:href="#chrome_icon__i"></use></clipPath><clipPath id="chrome_icon__n"><use overflow="visible" xlink:href="#chrome_icon__m"></use></clipPath><linearGradient id="chrome_icon__c" x1="29.337" x2="81.837" y1="75.021" y2="44.354" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#a52714" stop-opacity=".6"></stop><stop offset=".66" stop-color="#a52714" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__d" x1="110.872" x2="52.538" y1="164.495" y2="130.329" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#055524" stop-opacity=".4"></stop><stop offset=".33" stop-color="#055524" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__g" x1="121.858" x2="136.547" y1="49.804" y2="114.13" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ea6100" stop-opacity=".3"></stop><stop offset=".66" stop-color="#ea6100" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__h" x1="121.858" x2="136.547" y1="49.804" y2="114.13" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ea6100" stop-opacity=".3"></stop><stop offset=".66" stop-color="#ea6100" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__k" x1="29.337" x2="81.837" y1="75.021" y2="44.354" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#a52714" stop-opacity=".6"></stop><stop offset=".66" stop-color="#a52714" stop-opacity="0"></stop></linearGradient><radialGradient id="chrome_icon__l" cx="668.176" cy="55.948" r="84.078" gradientTransform="translate(-576)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#3e2723" stop-opacity=".2"></stop><stop offset="1" stop-color="#3e2723" stop-opacity="0"></stop></radialGradient><linearGradient id="chrome_icon__o" x1="110.872" x2="52.538" y1="164.495" y2="130.329" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#055524" stop-opacity=".4"></stop><stop offset=".33" stop-color="#055524" stop-opacity="0"></stop></linearGradient><radialGradient id="chrome_icon__p" cx="597.875" cy="48.52" r="78.044" gradientTransform="translate(-576)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#3e2723" stop-opacity=".2"></stop><stop offset="1" stop-color="#3e2723" stop-opacity="0"></stop></radialGradient><radialGradient id="chrome_icon__q" cx="671.844" cy="96.138" r="87.87" gradientTransform="translate(-576)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#263238" stop-opacity=".2"></stop><stop offset="1" stop-color="#263238" stop-opacity="0"></stop></radialGradient><radialGradient id="chrome_icon__r" cx="34.286" cy="32.014" r="176.746" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff" stop-opacity=".1"></stop><stop offset="1" stop-color="#fff" stop-opacity="0"></stop></radialGradient><circle id="chrome_icon__a" cx="96" cy="96" r="88"></circle><path id="chrome_icon__e" d="M8 184h83.77l38.88-38.88V116H61.36L8 24.48z"></path><path id="chrome_icon__i" d="M96 56l34.65 60-38.88 68H184V56z"></path><path id="chrome_icon__m" d="M21.97 8v40.34L61.36 116 96 56h88V8z"></path><circle id="ring__dot" cx="4" cy="4" r="2"></circle><linearGradient id="premium_standalone_cairo__paint0_linear_6125_21625" x1="2" y1="22" x2="22" y2="2" gradientUnits="userSpaceOnUse"><stop offset="0.3" stop-color="#E1002D"></stop><stop offset="0.9" stop-color="#E01378"></stop></linearGradient></defs></svg><iron-iconset-svg name="backstage"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="hashtag-landing-page"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="live-chat-badges" size="16"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="miniplayer" size="24"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="offline-no-content"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="promo-full-height"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="rotten-tomatoes" size="13"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="settings"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="shorts" size="32"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="spinners" size="22"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-icons" rtl-mirroring="" size="24" use-global-rtl-attribute=""><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-logos"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons" rtl-mirroring="" size="24" use-global-rtl-attribute=""><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons12" rtl-mirroring="" size="12"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons13" rtl-mirroring="" size="13"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons15" rtl-mirroring="" size="15"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons16" rtl-mirroring="" size="16"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons18" rtl-mirroring="" size="18"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons20" rtl-mirroring="" size="20"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons36" rtl-mirroring="" size="36"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons48" rtl-mirroring="" size="48"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="ytcp-icons" size="24"><svg><defs></defs></svg></iron-iconset-svg>');
hkg=v}v=hkg;H.call(f,v.content)};
document.body?Rko():window.addEventListener("DOMContentLoaded",Rko);var Vo_=_.EH(["aria-"]),e3={};e3.YtRenderButtonBehavior=[_.k.YtRendererBehavior,_.S3.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!!_.t8().resolve(_.vh(_.RM))&&_.J("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 f=this.computeHref_(this.endpoint,!0);f?AD(this.elements_.endpoint,f):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){f=this.buttonClass.split(" ");f=_.V(f);for(var H=f.next();!H.done;H=f.next())H=H.value,_.WB(this.hostElement,H,!0),this.elements_.button&&_.WB(this.elements_.button,H,!0),this.elements_.text&&_.WB(this.elements_.text,H,!0)}this.elements_.icon&&(this.elements_.icon.icon=
this.buttonIcon,this.setIconActive_(this.elements_.icon),this.iconSize&&(this.elements_.icon.size=this.iconSize));this.elements_.text&&(this.elements_.text.text=this.buttonText);this.elements_.button&&(f=null,this.buttonAccessibility&&(f=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=f:f?_.hf([_.YO(Vo_)],this.elements_.button,"aria-label",f):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var f=_.t8().resolve(_.vh(_.RM));f&&(this.keyboardFocused=f.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.vp("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,_.Fj(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.Fj(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(f,H){if(H)for(f=H.split(" "),f=_.V(f),H=f.next();!H.done;H=f.next())H=H.value,_.WB(this.hostElement,H,!1),this.elements_.button&&_.WB(this.elements_.button,H,!1),this.elements_.text&&_.WB(this.elements_.text,H,!1)},
buttonIconChanged_:function(f){this.elements_.icon?f?(this.elements_.icon.icon=f,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.Fj(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.OE(this.hostElement,"is-paper-button-with-icon",!1)):f&&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"&&_.Fj(this.elements_.button).appendChild(this.elements_.icon):_.Fj(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.OE(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(f){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,f){var H=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(f){case "yt_icon_button_with_label":H=!0;_.WB(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();f=_.Fj(this.elements_.button).firstElementChild;
this.elements_.icon=f;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.Fj(this.elements_.endpoint).appendChild(this.elements_.button);_.Fj(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.vp("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;_.Fj(this.elements_.button).appendChild(this.elements_.text);_.Fj(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":H=!0,this.elements_.button=this.getYtIconButton_(),f=_.Fj(this.elements_.button).firstElementChild,this.elements_.icon=f,this.setIconActive_(this.elements_.icon),
_.Fj(this.elements_.endpoint).appendChild(this.elements_.button)}_.OE(this.hostElement,"is-icon-button",H);_.OE(this.hostElement,"is-paper-button",!H);_.OE(this.hostElement,"has-no-text",!this.elements_.text);this.elements_.button.id="button";this.elements_.button.noink=this.noink;this.elements_.button.disabled=this.disabled;var v;_.mF((v=this.container.hostElement)!=null?v:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.Fj(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(f){if(f!=void 0||this.disabled)this.disabled=f,this.elements_.button&&(this.elements_.button.disabled=f)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(f){_.J("kevlar_system_icons")&&f&&this.data&&(this.data.isSelected!==void 0?f.active=this.data.isSelected:this.data.isToggled!==void 0&&(f.active=this.data.isToggled))},
observeBasicPalette_:function(f){_.r6(this.hostElement,f)},
disabledChanged_:function(f){this.data&&this.set("data.isDisabled",f)},
onYtButtonTap_:function(f){if(this.disabled)f.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.WV(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(f=this.disableCommandHandlerOverride,!this.data||!this.data.command||f||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.J("handle_service_request_actions")||_.WV(this.hostElement,[this.serviceEndpoint]),
_.YE(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.J("handle_service_request_actions")?(f=[],this.serviceEndpoint&&f.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&f.push(this.data.command),f.length&&_.Oj(this.hostElement,f,this.hostElement)):this.data&&this.data.command&&(f=this.data.command,f.accountUnlinkCommand||f.accountLinkCommand||f.insertAdCommand||f.insertHighlightMarkerCommand||
f.createLivestreamHighlightClipCommand||f.getVideoUploadFeedbackCommand||f.musicDeletePrivatelyOwnedEntityCommand||f.ypcCancelRecurrenceEndpoint||f.getMultiSelectCommandEndpoint?_.WV(this.hostElement,[f]):_.Oj(this.hostElement,[f],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 f,H=_.mF((f=this.container.hostElement)!=null?f:this.container);H.lastChild&&H.lastChild.tagName!="STYLE";)try{H.removeChild(H.lastChild)}catch(v){break}},
getYtIconButton_:function(){var f=this.reuseEnabled_()?_.vp("yt-icon-button"):document.createElement("yt-icon-button"),H=_.Fj(f).firstElementChild;if(H&&H.is!="yt-icon"){for(H=_.Fj(f);H.lastChild;)H.removeChild(H.lastChild);H=null}H||(H=this.getIcon_(),this.setIconActive_(H),_.Fj(f).appendChild(H));return f},
reuseEnabled_:function(){return _.J("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.vp("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.vp("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.y2H={};
_.y2H.YtButtonBehavior=[e3.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var f=this.data;f&&(this._setEndpoint(this.computeEndpoint_(f)),this._setServiceEndpoint(this.computeServiceEndpoint_(f)),this._setCommand(this.computeCommand_(f)),this._setButtonIcon(this.computeButtonIcon_(f)),this._setButtonText(this.computeButtonText_(f,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(f)),this._setButtonTooltip(this.computeTooltip_(f)),this._setButtonClass(this.computeButtonClass_(f)),this._setIconPositionType(this.computeIconPositionType_(f)),this.updateRenderedElements())},
setPressedState:function(f){var H;if((H=this.elements_)==null?0:H.button)this.elements_.button.pressed=!!f},
computeIconPositionType_:function(f){return f&&f.iconPosition||null},
computeEndpoint_:function(f){var H=f&&f.navigationEndpoint,v=this.get("data.command.commandMetadata.webCommandMetadata.url"),t=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return H?H:f&&f.command&&f.command.modalEndpoint?f.command:v&&!t&&f.command?f.command:null},
computeServiceEndpoint_:function(f){var H=f&&f.serviceEndpoint,v=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return H?H:v&&f.command?f.command:null},
computeCommand_:function(f){return f&&f.command||null},
computeButtonIcon_:function(f){return f&&f.icon&&f.icon.iconType?_.SW(f.icon.iconType):null},
computeButtonText_:function(f,H){return!H&&f&&f.text||null},
computeAccessibility_:function(f){return this.get("accessibilityData.accessibilityData",f)||f&&f.accessibility||(f&&f.text?{label:this.getSimpleString(f.text)}:null)},
computeTooltip_:function(f){return f?f.isDisabled&&f.disabledTooltip||f.tooltip||null:null},
computeButtonClass_:function(f){var H=f&&f.style?f.style.toLowerCase().replace(/_/g,"-")+" ":"";H+=f&&f.size?f.size.toLowerCase().replace(/_/g,"-")+" ":"";f.colorData&&f.colorData.basicColorPaletteData&&f.colorData.basicColorPaletteData.borderColor&&(H+="palette-with-border");return H.trim()}}];var KV={};var Y2_;var mav;var $ah,WMo=function(){return $ah!==void 0?$ah:$ah=document.createElement("template")};
document.head.appendChild(WMo().content);var OeT;var gAT,I$b=function(){return gAT!==void 0?gAT:gAT=document.createElement("template")};
document.head.appendChild(I$b().content);var S2H;var dar,jzo=function(){return dar!==void 0?dar:dar=document.createElement("template")};
document.head.appendChild(jzo().content);var sz_;var Zeb=document.head,J2b=Zeb.appendChild,l$v;if(sz_===void 0){var Uaa=document.createElement("template");_.x(Uaa,"\x3c!--css-build:shady--\x3e");Uaa.content.insertBefore(jzo().content.cloneNode(!0),Uaa.content.firstChild);sz_=Uaa}l$v=sz_;J2b.call(Zeb,l$v.content);var ekr=document.head,LMb=ekr.appendChild,xa9;if(S2H===void 0){var BGZ=document.createElement("template");_.x(BGZ,"\x3c!--css-build:shady--\x3e");BGZ.content.insertBefore(I$b().content.cloneNode(!0),BGZ.content.firstChild);S2H=BGZ}xa9=S2H;LMb.call(ekr,xa9.content);var zkv=document.head,FMb=zkv.appendChild,r2C;if(OeT===void 0){var KMb=document.createElement("template");_.x(KMb,"\x3c!--css-build:shady--\x3e");KMb.content.insertBefore(WMo().content.cloneNode(!0),KMb.content.firstChild);OeT=KMb}r2C=OeT;FMb.call(zkv,r2C.content);var Dah;_.DE("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");Dah=_.J("web_button_rework")&&_.P6("BUTTON_REWORK")||_.J("web_button_rework_with_live");_.LW=function(){return _.K.apply(this,arguments)||this};
_.e(_.LW,_.K);_.LW.prototype.created=function(){this.openPopupConfig=_.a8("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.LW.prototype.onYtNavigate_=function(f){var H=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(f.detail.endpoint);H&&(this.ytOpenPopupBehavior.openPopup(H),f.stopPropagation(),f.preventDefault())};
_.H7.Object.defineProperties(_.LW,{template:{configurable:!0,enumerable:!0,get:function(){if(mav===void 0){var f=document.createElement("template");_.x(f,"\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");f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);
var H=f.content,v=H.insertBefore;Y2_===void 0&&(Y2_=document.createElement("template"));var t=Y2_;v.call(H,t.content.cloneNode(!0),f.content.firstChild);mav=f}f=mav;return f}}});
_.LW.prototype.onYtNavigate_=_.LW.prototype.onYtNavigate_;_.E([_.B(_.IM.YtOpenPopupBehavior),_.N("design:type",Object)],_.LW.prototype,"ytOpenPopupBehavior",void 0);_.E([_.B(_.y2H.YtButtonBehavior),_.N("design:type",Object)],_.LW.prototype,"ytButtonBehavior",void 0);_.E([_.sE("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],_.LW.prototype,"onYtNavigate_",null);
_.E([_.GW({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:Dah})],_.LW);var oAr;var nAC=_.J("web_button_rework")&&_.P6("BUTTON_REWORK")||_.J("web_button_rework_with_live"),xp=function(){var f=_.K.apply(this,arguments)||this;f.isPressed=!1;f.forceIconButton=!1;f.forceIconOnly=!1;f.forceModernIconButton=!1;f.skipCommandHandling=!1;f.alignByText=!1;f.fitToVisibleBounds=!0;f.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};f.onTap=function(H){_.YE(f.hostElement,"yt-service-request-sent-button-renderer",H)};
return f};
_.e(xp,_.K);_.R=xp.prototype;_.R.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.R.onClick=function(f){var H,v=this.disabled||((H=this.data)==null?void 0:H.isDisabled);H=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");v&&H&&f.stopPropagation()};
_.R.computeIcon=function(){var f,H,v=(f=this.data)==null?void 0:(H=f.icon)==null?void 0:H.iconType;if(v)return _.SW(v)};
_.R.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.R.handleUpdateButtonAction=function(f){f=_.U(f,Tmh);var H=_.U(f==null?void 0:f.updatedButton,_.nv);if(this.data&&f&&H){var v=this.data;v.targetId&&f.targetId&&v.targetId===f.targetId&&(this.data=H)}};
_.H7.Object.defineProperties(xp.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var f=this;if(this.data){var H=$bR({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.YE(f.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.YE(f.hostElement,"yt-service-request-completed-button-renderer")}},
onTapCallback:this.onTap,skipCommandHandling:this.skipCommandHandling,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceDisabled:this.disabled,forceModernIconButton:this.forceModernIconButton,nextVersion:!0,isPressed:this.isPressed});H.alignByText=this.alignByText;return H}}}});
_.H7.Object.defineProperties(xp,{template:{configurable:!0,enumerable:!0,get:function(){if(oAr===void 0){var f=document.createElement("template");_.x(f,'\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>');oAr=f}f=oAr;return f}}});
xp.prototype.onClick=xp.prototype.onClick;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],xp.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],xp.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],xp.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],xp.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],xp.prototype,"isPressed",void 0);
_.E([_.F(),_.N("design:type",Object)],xp.prototype,"forceIconButton",void 0);_.E([_.F(),_.N("design:type",Object)],xp.prototype,"forceIconOnly",void 0);_.E([_.F(),_.N("design:type",Object)],xp.prototype,"forceModernIconButton",void 0);_.E([_.F(),_.N("design:type",Object)],xp.prototype,"skipCommandHandling",void 0);_.E([_.F(),_.N("design:type",Object)],xp.prototype,"alignByText",void 0);_.E([_.F(),_.N("design:type",Object)],xp.prototype,"buttonTooltipPosition",void 0);
_.E([_.F(),_.N("design:type",Object)],xp.prototype,"fitToVisibleBounds",void 0);_.E([_.F({computed:"computeTooltip(data)"}),_.N("design:type",Object)],xp.prototype,"tooltip",void 0);_.E([_.F(),_.N("design:type",Object)],xp.prototype,"overrides",void 0);_.E([_.F(),_.N("design:type",Boolean)],xp.prototype,"disabled",void 0);_.E([_.sE("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],xp.prototype,"onClick",null);
_.E([_.z("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.N("design:type",Object),_.N("design:paramtypes",[])],xp.prototype,"computedButtonShape",null);_.E([_.GW({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!nAC,cssBuildOptOut:!0}),_.GW({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!nAC,cssBuildOptOut:!0})],xp);var pYo;var Qzh;var Bp=function(){var f=_.K.apply(this,arguments)||this;f.empty_=!0;f.loadTime=Infinity;f.pendingPaint=!1;f.hasChange_=!1;f.oldThumbnail_=null;f.oldDelayedSrc_="";f.objectURL_=null;return f};
_.e(Bp,_.K);_.R=Bp.prototype;_.R.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.R.ready=function(){var f=this.shouldShowPlaceholder_();_.WB(this.hostElement,"no-transition",!0);f&&this.hostElement.classList.add("with-placeholder")};
_.R.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.R.isThumbPreloaded_=function(f){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",f)};
_.R.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||uNH};
_.R.computeThumbnailSrc_=function(f){return f&&f.thumbnails?_.YK(f.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.R.computeAlt_=function(){var f=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&f||""};
_.R.thumbnailChanged_=function(){var f=_.V([this.thumbnail,this.oldThumbnail_]),H=f.next().value;f=f.next().value;this.oldThumbnail_=H;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(f=this.computeThumbnailSrc_(f),this.computeThumbnailSrc_(H)===f))return;_.J("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(H)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):H&&_.P6("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.qV(this,this.onReload_):_.qV(this,this.onShow_):this.resetImage_();H&&(this.hostElement.style.opacity=""+H.opacity)}};
_.R.delayedSrcChanged_=function(){var f=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===f||this.resetImage_()};
_.R.setSrc_=function(f){f?(_.mF(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.mF(this.hostElement).querySelector("#img").src=f):(_.mF(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.R.resetImage_=function(){dGg(this.hostElement);this.empty_=!0;this.setSrc_(uNH);this.ytRendererBehavior.invalidate(!1)};
_.R.observePlaceholderColor_=function(){var f=this.thumbnail&&this.thumbnail.placeholderColor;f?this.hostElement.style.backgroundColor=_.NS(f):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.R.onLoad_=function(){_.mF(this.hostElement).querySelector("#img").src&&_.mF(this.hostElement).querySelector("#img").src!==uNH&&(SlT(this.hostElement),this.notifyOnLoaded&&_.YE(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.R.onError_=function(){var f=this;if(_.J("web_use_cache_for_image_fallback"))eNg(_.mF(this.hostElement).querySelector("#img").src).then(function(H){f.objectURL_=_.E4(H).toString();f.setSrc_(f.objectURL_)}).catch(function(){_.J("kevlar_woffle_fallback_image")&&f.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.R.onPrescanVisible=function(){this.onShow_()};
_.R.onVisible=function(){if(_.J("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.R.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var f=this.computeSrc_();f!==_.mF(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(f))}};
_.R.onReload_=function(){this.empty_=!1;var f=this.computeSrc_();f!==_.mF(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(f))};
_.R.shouldShowPlaceholder_=function(){return _.J("kevlar_thumbnail_bg")};
Bp.prototype.observePlaceholderColor_=Bp.prototype.observePlaceholderColor_;Bp.prototype.delayedSrcChanged_=Bp.prototype.delayedSrcChanged_;Bp.prototype.thumbnailChanged_=Bp.prototype.thumbnailChanged_;_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],Bp.prototype,"alt",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Bp.prototype,"ariaHidden",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],Bp.prototype,"ariaLabel",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Bp.prototype,"hidden",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],Bp.prototype,"id",void 0);_.E([_.B(_.cH.YtVisibilityBehavior),_.N("design:type",Object)],Bp.prototype,"ytVisibilityBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Bp.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",String)],Bp.prototype,"delayedSrc",void 0);
_.E([_.F(),_.N("design:type",Object)],Bp.prototype,"thumbnail",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Bp.prototype,"loaded",void 0);_.E([_.F(),_.N("design:type",Boolean)],Bp.prototype,"notifyOnLoaded",void 0);_.E([_.F(),_.N("design:type",Number)],Bp.prototype,"height",void 0);_.E([_.F(),_.N("design:type",Number)],Bp.prototype,"width",void 0);_.E([_.F({value:function(){return"width"}}),
_.N("design:type",String)],Bp.prototype,"dimension",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Bp.prototype,"fit",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Bp.prototype,"fitHeight",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Bp.prototype,"fitWidth",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],Bp.prototype,"objectFit",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],Bp.prototype,"objectPosition",void 0);_.E([_.F(),_.N("design:type",String)],Bp.prototype,"preferredThumbnail",void 0);_.E([_.F({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.N("design:type",String)],Bp.prototype,"alt_",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],Bp.prototype,"sharedTooltipText",void 0);
_.E([_.F(),_.N("design:type",Boolean)],Bp.prototype,"ftlEligible",void 0);_.E([_.F({value:void 0}),_.N("design:type",String)],Bp.prototype,"observeHiddenOption",void 0);_.E([_.F({value:"observe_once"}),_.N("design:type",String)],Bp.prototype,"observePrescanOption",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Bp.prototype,"roundedContainer",void 0);
_.E([_.xV("thumbnail"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Bp.prototype,"thumbnailChanged_",null);_.E([_.xV("delayedSrc"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Bp.prototype,"delayedSrcChanged_",null);_.E([_.Zw("thumbnail.placeholderColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Bp.prototype,"observePlaceholderColor_",null);
_.E([_.GW({is:"yt-img-shadow",disableElementRegistration:!0})],Bp);var uNH=_.P6("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.$6()(Bp,"yt-img-shadow",function(){if(Qzh===void 0){var f=document.createElement("template");_.x(f,'\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">');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;pYo===void 0&&(pYo=document.createElement("template"));var t=pYo;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Qzh=f}f=Qzh;return f},{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 aST;_.z$=new _.iN("SCREEN_MANAGER_TOKEN");aST=new _.iN("LOG_INITIAL_SCREEN_TOKEN");var a$T=ODH({entities:{}});var PB_=I3B(a$T)(a$T.entities,{selectSfvAudioItemPlaybackState:function(f,H){var v,t;f=(t=_.dL(f,"sfvAudioItemCurrentlyPlayingEntity",H))!=null?t:void 0;return(v=f==null?void 0:f.sfvAudioItemPlaybackState)!=null?v:void 0},
playlistLoopStateEntitySelector:function(f,H){var v;return(v=_.dL(f,"playlistLoopStateEntity",H))!=null?v:void 0}});_.Fo=_.a(function(f){function H(fg){return _.U(fg,_.af)}
function v(){var fg=t().isTogglingDisabled||r()&&t().toggledIsTogglingDisabled,gB=fg||Z()?r():!r();n(gB);C(!1);if(!fg){var O5;(O5=y)==null||O5(!!gB)}var s5;((s5=h)==null?0:s5())||_.WL(_.t8().resolve(_.z$),t().trackingParams);var U5;if(!gB||!H(t().defaultButtonViewModel)||(U5=h)!=null&&U5()){var lH;!H(t().toggledButtonViewModel)||((lH=h)==null?0:lH())||_.WL(_.t8().resolve(_.z$),H(t().toggledButtonViewModel).trackingParams)}else _.WL(_.t8().resolve(_.z$),H(t().defaultButtonViewModel).trackingParams)}
var t=f.data,M=f.buttonShapeOverrides,h=f.disableExplicitClickLogging,y=f.onToggle,m=f.style,W=f.useOutlinedIcon,I=f.className,S=function(){var fg,gB;return r()?(fg=f.animatedTextPropsToggled)==null?void 0:fg.call(f):(gB=f.animatedTextPropsDefault)==null?void 0:gB.call(f)},d=_.sg(function(){return S()?Object.assign({},S(),{shouldAnimate:Q()}):void 0},void 0,"ZKEa0b"),Z=function(){var fg;
return((fg=A())==null?void 0:fg.isToggled)!==void 0},l=_.V(_.sR(function(){var fg,gB,O5;
return Z()?(fg=A())==null?void 0:fg.isToggled:(O5=M==null?void 0:(gB=M())==null?void 0:gB.toggled)!=null?O5:t().isToggled})),L=l.next().value;
l=l.next().value;var r=L,n=l;l=_.V(_.sR(function(){var fg,gB;return(fg=f.animatedTextPropsToggled)==null?void 0:(gB=fg.call(f))==null?void 0:gB.shouldAnimate}));
L=l.next().value;l=l.next().value;var Q=L,C=l;L=_.V(_.gp(!1,void 0,"S11hid"));var w=L.next().value,c=L.next().value,A=_.uE(function(fg){a:{var gB=t().entityKey,O5=t().toggledStateEntitySelectorType;if(O5)switch(O5){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!gB)break;fg=PB_.selectSfvAudioItemPlaybackState(fg,gB);if(fg==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){fg={isToggled:!0};break a}if(fg){fg={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":fg=
{isToggled:_.dbs(fg).includes("engagement-panel-comments-section")};break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":fg={isToggled:_.dbs(fg).includes("engagement-panel-live-chat-item-section")};break a;default:_.pb(new _.e$("Error: entitySelectorType defined but not matched in selector.",fg,O5))}fg=void 0}return fg}),X=function(){return Object.assign({},M==null?void 0:M(),{onToggle:v,
toggleable:!0,toggled:r(),focused:w()})};
return _.O("toggle-button-view-model",{"on:focusin":_.d6(function(){var fg=_.t8().resolve(_.vh(_.RM));fg&&c(fg.isKeyBoardInUse());return!1}),
"on:focusout":_.d6(function(){c(!1);return!1})},_.O(_.g,{cond:function(){return r()?H(t().toggledButtonViewModel):H(t().defaultButtonViewModel)},
then:function(fg){return _.O(_.Wp,{data:fg,className:I,style:m,useOutlinedIcon:W,buttonOverrides:X,animatedTextProps:d})}}))},"E");
_.Fo.idomCompat={callbacks:{onToggle:!0}};_.yn(_.a(function(f){return _.O("yt-toggle-button-view-model",{class:function(){var H;return(H=f.scopingClassName)==null?void 0:H.call(f)}},_.O(_.Fo,{data:function(){var H;
return(H=f.data)==null?void 0:H.call(f)},
buttonShapeOverrides:function(){var H;return(H=f.overrides)==null?void 0:H.call(f)},
animatedTextPropsDefault:function(){var H;return(H=f.animatedTextPropsDefault)==null?void 0:H.call(f)},
animatedTextPropsToggled:function(){var H;return(H=f.animatedTextPropsToggled)==null?void 0:H.call(f)},
disableExplicitClickLogging:function(){var H;return(H=f.disableExplicitClickLogging)==null?void 0:H.call(f)},
onToggle:function(H){var v;return(v=f.onToggle)==null?void 0:v.call(f,H)},
style:function(){var H;return(H=f.style)==null?void 0:H.call(f)},
useOutlinedIcon:function(){var H;return(H=f.useOutlinedIcon)==null?void 0:H.call(f)},
className:function(){var H;return(H=f.className)==null?void 0:H.call(f)}}))},"F"),"yt-toggle-button-view-model",{props:{data:_.ki,
buttonShapeOverrides:_.ki,overrides:_.ki,animatedTextPropsDefault:_.ki,animatedTextPropsToggled:_.ki,disableExplicitClickLogging:_.ki,onToggle:_.Rm,style:_.ki,useOutlinedIcon:_.ki,className:_.ki,scopingClassName:_.ki}});var rt=function(){return _.K.apply(this,arguments)||this};
_.e(rt,_.K);rt.prototype.onTap=function(f){f.stopPropagation();f=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.z7("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:f})):this.ytLiveChatReduxBehavior.dispatch(_.lF("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:f}))};
_.H7.Object.defineProperties(rt.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.engagementState)==null?void 0:f.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var f=_.U(this.data.toggleButton,_.G3),H;if(Number(((H=this.likeCountState)==null?void 0:H.likeCountIfIndifferentNumber)||"0")===0){var v;H=((v=this.data.likeCountPlaceholder)==null?void 0:v.content)||""}else{var t,M,h;H=((t=this.likeCountState)==null?void 0:(M=t.likeCountIfIndifferent)==null?void 0:M.content)||((h=this.data.likeCountPlaceholder)==null?void 0:h.content)||""}var y,m;v=((y=this.likeCountState)==null?void 0:(m=
y.likeCountIfLiked)==null?void 0:m.content)||"1";y=_.U(f.toggledButtonViewModel,_.af);return Object.assign({},f,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.U(f.defaultButtonViewModel,_.af),{title:H})},toggledButtonViewModel:{buttonViewModel:Object.assign({},y,{title:v})}})}}}});
rt.prototype.onTap=rt.prototype.onTap;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],rt.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],rt.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.PH),_.N("design:type",Object)],rt.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],rt.prototype,"data",void 0);
_.E([_.F({selectorArgs:["data.likeCountEntityKey"],selector:j6H}),_.N("design:type",Object)],rt.prototype,"likeCountState",void 0);_.E([_.F({selectorArgs:["data.engagementStateKey"],selector:Zje}),_.N("design:type",Object)],rt.prototype,"engagementState",void 0);_.E([_.z("data","engagementState"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],rt.prototype,"isLiked",null);
_.E([_.z("data","likeCountState","isLiked"),_.N("design:type",Object),_.N("design:paramtypes",[])],rt.prototype,"toggleButton",null);_.E([_.sE("tap"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],rt.prototype,"onTap",null);_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],rt);
_.G(rt,"yt-live-chat-like-button-view-model",function(){if(Co9===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;GtT===void 0&&(GtT=document.createElement("template"));var t=GtT;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Co9=f}f=Co9;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var Gcn;var CB_;var KW=function(){return _.K.apply(this,arguments)||this};
_.e(KW,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],KW.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],KW.prototype,"data",void 0);_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],KW);
_.G(KW,"yt-live-chat-paid-message-footer-renderer",function(){if(CB_===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;Gcn===void 0&&(Gcn=document.createElement("template"));var t=Gcn;v.call(H,t.content.cloneNode(!0),f.content.firstChild);CB_=f}f=CB_;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var EAn;var NGb;var c2v;var XYa,A2h=function(){if(XYa!==void 0)return XYa;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;c2v===void 0&&(c2v=document.createElement("template"));var t=c2v;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return XYa=f};var Ds=function(){return _.K.apply(this,arguments)||this};
_.e(Ds,_.K);Ds.prototype.onTap=function(f){f.stopPropagation()};
_.H7.Object.defineProperties(Ds.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var f=_.U(this.data.replyButton,_.af),H,v,t,M,h,y,m,W=Number(((H=this.replyCountState)==null?void 0:H.replyCountNumber)||"0")===0?(v=this.data)==null?void 0:(t=v.replyCountPlaceholder)==null?void 0:t.content:((M=this.replyCountState)==null?void 0:(h=M.replyCount)==null?void 0:h.content)||((y=this.data)==null?void 0:(m=y.replyCountPlaceholder)==null?void 0:m.content)||"",I;return Object.assign({},
f,{title:W,accessibilityText:(I=this.replyCountState)==null?void 0:I.replyButtonAccessibilityText})}}}});
_.H7.Object.defineProperties(Ds,{template:{configurable:!0,enumerable:!0,get:function(){return A2h()}}});
Ds.prototype.onTap=Ds.prototype.onTap;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Ds.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Ds.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.PH),_.N("design:type",Object)],Ds.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Ds.prototype,"data",void 0);
_.E([_.F({selectorArgs:["data.replyCountEntityKey"],selector:function(f,H){return _.dL(f.entities,"replyCountEntity",H)}}),
_.N("design:type",Object)],Ds.prototype,"replyCountState",void 0);_.E([_.z("data","replyCountState"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ds.prototype,"buttonViewModel",null);_.E([_.sE("tap"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Ds.prototype,"onTap",null);_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],Ds);
_.G(Ds,"yt-live-chat-reply-button-view-model",function(){return A2h()},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var beh;var ieT;var oM=function(){var f=_.K.apply(this,arguments)||this;f.ariaLabel="";return f};
_.e(oM,_.K);
oM.prototype.dataChanged=function(){for(var f=(0,_.gX)(_.mF(this.hostElement).querySelector("#image"));f.firstChild;)f.removeChild(f.firstChild);if(this.data)if(this.data.icon){var H=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(H.polymerController.icon="yt-sys-icons:shield-filled",H.polymerController.defaultToFilled=!0):H.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();f.appendChild(H)}else if(this.data.customThumbnail){H=document.createElement("img");
var v=_.Yl5(this.data.customThumbnail.thumbnails,16);v?(H.src=v,f.appendChild(H),H.setAttribute("alt",this.hostElement.ariaLabel||"")):_.pb(new _.e$("Could not compute URL for thumbnail",this.data.customThumbnail))}};
oM.prototype.identity=function(f){return f};
oM.prototype.computeType=function(f){return OV(f||void 0)};
oM.prototype.dataChanged=oM.prototype.dataChanged;_.E([_.F(),_.N("design:type",Object)],oM.prototype,"data",void 0);_.E([_.F({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.N("design:type",Object)],oM.prototype,"ariaLabel",void 0);_.E([_.F({computed:"computeType(data)",reflectToAttribute:!0}),_.N("design:type",String)],oM.prototype,"type",void 0);
_.E([_.F({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.N("design:type",String)],oM.prototype,"sharedTooltipText",void 0);_.E([_.F({reflectToAttribute:!0,value:function(){return _.J("live_chat_enable_new_moderator_badge")}}),
_.N("design:type",Boolean)],oM.prototype,"enableNewModeratorBadge",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oM.prototype,"dataChanged",null);_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],oM);
_.G(oM,"yt-live-chat-author-badge-renderer",function(){if(ieT===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;beh===void 0&&(beh=document.createElement("template"));var t=beh;v.call(H,t.content.cloneNode(!0),f.content.firstChild);ieT=f}f=ieT;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var kca;var TGa;var nW=function(){return _.K.apply(this,arguments)||this};
_.e(nW,_.K);_.R=nW.prototype;_.R.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"}}}}};
_.R.computeBadgesInsideChip=function(f){return f?f.filter(function(H){return OV(H.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.R.computeBadgesOutsideChip=function(f){return this.prependChatBadges||!f?[]:f.filter(function(H){H=OV(H.liveChatAuthorBadgeRenderer);return H!=="verified"&&H!=="owner"})};
_.R.computeBadgesBeforeChip=function(f){return this.prependChatBadges&&f?f.filter(function(H){H=OV(H.liveChatAuthorBadgeRenderer);return H!=="verified"&&H!=="owner"}):[]};
_.R.computeIsHighlighted=function(f,H){var v=!!xnR(f,"owner"),t=!!xnR(f,"verified");f=!!xnR(f,"moderator");return(v||t&&!f)&&!H};
_.R.computeAuthorType=function(f){return L1b(f)};
_.R.computeAuthorClass=function(f,H){return H?(f?f+" ":"")+"single-line":f};
_.R.onSeedColorChanged=function(){_.J("live_chat_author_name_color_usernames")||_.J("live_chat_seed_color_usernames")||_.J("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):_.J("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
nW.prototype.onSeedColorChanged=nW.prototype.onSeedColorChanged;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],nW.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],nW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],nW.prototype,"authorName",void 0);_.E([_.F(),_.N("design:type",Array)],nW.prototype,"authorBadges",void 0);
_.E([_.F({computed:"computeAuthorType(authorBadges)"}),_.N("design:type",String)],nW.prototype,"authorType",void 0);_.E([_.F({computed:"computeAuthorClass(authorType, singleLine)"}),_.N("design:type",String)],nW.prototype,"authorClass",void 0);_.E([_.F({computed:"computeBadgesInsideChip(authorBadges)"}),_.N("design:type",Array)],nW.prototype,"badgesInsideChip",void 0);_.E([_.F({computed:"computeBadgesOutsideChip(authorBadges)"}),_.N("design:type",Array)],nW.prototype,"badgesOutsideChip",void 0);
_.E([_.F({computed:"computeBadgesBeforeChip(authorBadges)"}),_.N("design:type",Array)],nW.prototype,"badgesBeforeChip",void 0);_.E([_.F({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.N("design:type",Boolean)],nW.prototype,"isHighlighted",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],nW.prototype,"singleLine",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],nW.prototype,"disableHighlighting",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],nW.prototype,"dashboardMoneyFeed",void 0);_.E([_.F({value:_.J("live_chat_prepend_badges"),reflectToAttribute:!0}),_.N("design:type",Boolean)],nW.prototype,"prependChatBadges",void 0);_.E([_.F(),_.N("design:type",String)],nW.prototype,"authorNameColor",void 0);_.E([_.lJ("#author-name"),_.N("design:type",HTMLDivElement)],nW.prototype,"username",void 0);
_.E([_.Zw("authorNameColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nW.prototype,"onSeedColorChanged",null);_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],nW);
_.G(nW,"yt-live-chat-author-chip",function(){if(TGa===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;kca===void 0&&(kca=document.createElement("template"));var t=kca;v.call(H,t.content.cloneNode(!0),f.content.firstChild);TGa=f}f=TGa;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var wYo;var q2n;var pW=function(){var f=_.K.apply(this,arguments)||this;f.debounceCommand=_.SI(function(H){f.ytComponentBehavior.resolveCommand(H)},1500);
return f};
_.e(pW,_.K);pW.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var f=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",H,v,t=this.isHearted?(H=this.data)==null?void 0:H.unheartCommand:(v=this.data)==null?void 0:v.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.z7("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:f}));(f=_.GK(t))&&this.debounceCommand(f)}};
_.H7.Object.defineProperties(pW.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var f,H;if(!((f=this.data)==null?0:(H=f.creatorThumbnail)==null?0:H.sources))return{};f={thumbnails:[]};H={};H.url=this.data.creatorThumbnail.sources[0].url;f.thumbnails.push(H);return f}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var f,H;return((f=this.engagementState)==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((H=this.engagementState)==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var f,H;return((f=this.engagementState)==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((H=this.engagementState)==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.engagementState)==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var f,H,v;return((f=this.engagementState)==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((H=this.engagementState)==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((v=this.engagementState)==null?void 0:v.heartState)==="TOOLBAR_HEART_STATE_HEARTED"}},
label:{configurable:!0,enumerable:!0,get:function(){return this.data?(this.isHearted?this.data.heartedAccessibilityLabel:this.data.unheartedAccessibilityLabel)||"":""}},
heartHoverText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.isHearted?this.data.heartedHoverText:this.data.unheartedHoverText}}});
pW.prototype.onTap=pW.prototype.onTap;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],pW.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],pW.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.PH),_.N("design:type",Object)],pW.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],pW.prototype,"data",void 0);
_.E([_.F({selectorArgs:["data.engagementStateKey"],selector:Zje}),_.N("design:type",Object)],pW.prototype,"engagementState",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],pW.prototype,"thumbnailDetails",null);_.E([_.z("data","engagementState"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pW.prototype,"isHearted",null);_.E([_.z("data","engagementState"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pW.prototype,"isEditable",null);
_.E([_.z("data","engagementState"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pW.prototype,"showCreatorView",null);_.E([_.z("data","engagementState"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pW.prototype,"showButton",null);_.E([_.z("data","isHearted"),_.N("design:type",String),_.N("design:paramtypes",[])],pW.prototype,"label",null);_.E([_.z("data","isHearted"),_.N("design:type",Object),_.N("design:paramtypes",[])],pW.prototype,"heartHoverText",null);
_.E([_.sE("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pW.prototype,"onTap",null);_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],pW);
_.G(pW,"yt-live-chat-creator-heart-view-model",function(){if(q2n===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;wYo===void 0&&(wYo=document.createElement("template"));var t=wYo;v.call(H,t.content.cloneNode(!0),f.content.firstChild);q2n=f}f=q2n;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var aM=function(){};
_.e(aM,$i);aM.prototype.JSC$13090_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:k1("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
aM.prototype.getApiPaths=function(){return[]};
aM.prototype.getExtension=function(){};
aM.prototype.JSC$13090_buildRequest=function(){};var fAr={},Hib=(fAr.GET_DATASYNC_IDS=FE(aM),fAr);var vGv,tmZ,Mmn,kqZ,Pp,Vmr,vxC,RNH,hNr;vGv="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");tmZ=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.cn=function(f,H,v,t,M,h,y,m,W){this.endpointMap=f;this.networkManager=H;this.authService=v;this.responseProcessorMap=t;this.innertubeResponseStore=M;this.contextProcessors=h;this.asyncContextProcessors=y;this.localInnertubeRouter=m;this.requestSequencer=W;this.inflightRequests=new Map;f.signalEndpointMap||(f.signalEndpointMap={});f.signalEndpointMap=Object.assign({},Hib,f.signalEndpointMap)};
Mmn=function(f,H,v,t,M,h,y,m,W){if(_.cn.instance!==void 0){if(t=_.cn.instance,f=[f!==t.endpointMap,H!==t.networkManager,v!==t.authService,M!==t.innertubeResponseStore,h!==t.contextProcessors,y!==t.asyncContextProcessors,m!==t.localInnertubeRouter],f.some(function(I){return I}))throw new _.e$("InnerTubeTransportService is already initialized",f);
}else _.cn.instance=new _.cn(f,H,v,t,M,h,y,m,W)};
_.AE=function(f,H,v){var t=t===void 0?XkH:t;var M=vxC(f,H);return M?new _.IO(function(h,y){var m,W,I,S,d;return _.Y(function(Z){switch(Z.nextAddress){case 1:return Z.yield(M,2);case 2:m=Z.yieldResult;W=m.JSC$13090_getRequest(H,v,t);if(!W){y(new _.e$("Error: Failed to build request for command.",H));Z.jumpTo(0);break}bY(W.input);S=((I=W.requestShell)==null?void 0:I.mode)==="cors"?"cors":void 0;if(f.authService.syncHeaders){d=hNr(W.config,S);Z.jumpTo(4);break}return Z.yield(RNH(W.config,S),5);case 5:d=
Z.yieldResult;case 4:h(Vmr(f,W,d)),_.Bj(Z)}})}):_.DI(new _.e$("Error: No request builder found for command.",H))};
kqZ=function(f,H,v,t){var M=M===void 0?XkH:M;var h,y,m,W,I,S,d,Z,l,L,r,n,Q,C,w,c,A,X;return _.Y(function(fg){switch(fg.nextAddress){case 1:h=ZDT(H,f.endpointMap);if(!h)throw new _.e$("Error: No streaming request builder found for command",H);y=h.JSC$13090_getRequest(H,v,M);if(!y)throw new _.e$("Failed to build YtRequest for streaming Command",H);if((m=f.localInnertubeRouter)==null||!m.shouldPreferLocalResponse(y.input,y.innerTubeRequest)){fg.jumpTo(2);break}return fg.yield(f.localInnertubeRouter.localInnertubeResponse(y.input,
y.innerTubeRequest),3);case 3:return W=fg.yieldResult,I={},W.playerResponse&&(Pp(f,W.playerResponse,y),I.player=W.playerResponse,(S=t)==null||S(I,W)),W.watchNextResponse&&(Pp(f,W.watchNextResponse,y),I.content=W.watchNextResponse,(d=t)==null||d(I,W)),fg.return(I);case 2:l=((Z=y.requestShell)==null?void 0:Z.mode)==="cors"?"cors":void 0;if(f.authService.syncHeaders){L=hNr(y.config,l);fg.jumpTo(4);break}return fg.yield(RNH(y.config,l),5);case 5:L=fg.yieldResult;case 4:return Q=(n=(r=y.requestShell)==
null?void 0:r.headers)!=null?n:{},y.requestShell=Object.assign({},y.requestShell,{headers:Object.assign({},Q,L)}),C=Object.assign({},y.requestShell),w=JSON.stringify(y.innerTubeRequest),y.requestShell.method==="POST"&&(C=Object.assign({},C,{body:w})),c=function(gB,O5){Pp(f,O5.playerResponse||O5.watchNextResponse||O5.reelItemWatchResponse||O5.reelWatchSequenceResponse,y);t==null||t(gB,O5)},A={},fg.yield(yRh(f.networkManager,y.input,C,c),6);
case 6:return A=fg.yieldResult,((X=y.config)==null?0:X.responseTick)&&_.u0(y.config.responseTick),fg.return(A)}})};
_.Q8=function(f,H,v,t,M){M=M===void 0?{authStrategy:{identity:XkH}}:M;var h=h===void 0?!0:h;var y=function(){};
y=Z3N(jqR(v));H.context||(H.context=_.o8H(t,h));return new _.IO(function(m){var W,I,S,d,Z;return _.Y(function(l){if(l.nextAddress==1)return W=VhE(v),I=_.iy(W),f.authService.syncHeaders?(S=hNr(M,I),l.jumpTo(2)):l.yield(RNH(M,I),3);l.nextAddress!=2&&(S=l.yieldResult);d=yq_(VhE(v));Z={input:d,requestShell:k1(d),innerTubeRequest:H,config:M};m(Vmr(f,Z,S,y));_.Bj(l)})})};
Pp=function(f,H,v){var t;if(H&&!(H==null?0:(t=H.sequenceMetaData)==null?0:t.skipProcessing)&&f.responseProcessorMap){t=_.V(vGv);for(var M=t.next();!M.done;M=t.next())M=M.value,f.responseProcessorMap[M]&&f.responseProcessorMap[M].handleResponse(H,v)}};
Vmr=function(f,H,v,t){t=t===void 0?function(){}:t;
var M,h,y,m,W,I,S,d,Z,l,L,r,n,Q,C,w,c,A,X,fg,gB,O5,s5,U5,lH,E5,uH,Rn,pr,gh,fr,sb,In,Kr,BA,TH,hN,Ho,J9,Ox;return _.Y(function(lC){switch(lC.nextAddress){case 1:y=(M=H.config)==null?void 0:(h=M.storeStrategy)==null?void 0:h.storeKey;if(!(y&&f.innertubeResponseStore&&f.innertubeResponseStore.has(y))||((m=H.config)==null?0:(W=m.storeStrategy)==null?0:W.disableCache)){lC.jumpTo(2);break}return lC.yield(f.innertubeResponseStore.get(y),3);case 3:if((I=lC.yieldResult)&&!I.isExpired())return lC.return(Promise.resolve(_.T7(I)));
case 2:if(!((S=H)==null?0:(d=S.innerTubeRequest)==null?0:d.context)){lC.jumpTo(4);break}Z=H.innerTubeRequest.context;if(!(f.asyncContextProcessors&&f.asyncContextProcessors.length>0)){lC.jumpTo(5);break}l=[];L=_.V(f.asyncContextProcessors);for(r=L.next();!r.done;r=L.next())n=r.value,Q=n.processContext(H),Q.wrappedPromise_&&l.push(Q.wrappedPromise_);if(!(l.length>0)){lC.jumpTo(5);break}return lC.yield(Promise.all(l),5);case 5:C=_.V(f.contextProcessors||[]),w=C.next();case 8:if(w.done){lC.jumpTo(4);
break}c=w.value;return lC.yield(c.processContext(Z),9);case 9:w=C.next();lC.jumpTo(8);break;case 4:if((A=f.localInnertubeRouter)==null||!A.shouldPreferLocalResponse(H.input,H.innerTubeRequest)){lC.jumpTo(12);break}return lC.yield(f.localInnertubeRouter.localInnertubeResponse(H.input,H.innerTubeRequest),13);case 13:return X=lC.yieldResult,Pp(f,X,H),lC.return(X);case 12:return(O5=(gB=H.config)==null?void 0:gB.requestKey)&&f.inflightRequests.has(O5)?fg=f.inflightRequests.get(O5):(s5=JSON.stringify(H.innerTubeRequest),
E5=(lH=(U5=H.requestShell)==null?void 0:U5.headers)!=null?lH:{},H.requestShell=Object.assign({},H.requestShell,{headers:Object.assign({},E5,v)}),uH=Object.assign({},H.requestShell),H.requestShell.method==="POST"&&(uH=Object.assign({},uH,{body:s5})),((Rn=H.config)==null?0:Rn.requestTick)&&_.u0(H.config.requestTick),pr=function(){return f.networkManager.fetch(H.input,uH,H.config)},fg=f.requestSequencer?Ylb(f.requestSequencer,H,pr):pr(),O5&&f.inflightRequests.set(O5,fg)),lC.yield(fg,14);
case 14:(gh=lC.yieldResult)&&_.J("web_streaming_player")&&Array.isArray(gh)&&(gh=gh[0].playerResponse);if(gh&&"error"in gh&&((fr=gh)==null?0:(sb=fr.error)==null?0:sb.details))for(In=gh.error.details,Kr=_.V(In),BA=Kr.next();!BA.done;BA=Kr.next())TH=BA.value,(hN=TH["@type"])&&tmZ.indexOf(hN)>-1&&(delete TH["@type"],gh=TH);O5&&f.inflightRequests.has(O5)&&f.inflightRequests.delete(O5);((Ho=H.config)==null?0:Ho.responseTick)&&_.u0(H.config.responseTick);if(gh||(J9=f.localInnertubeRouter)==null||!J9.canProvideFallbackResponse(H.input,
H.innerTubeRequest)){lC.jumpTo(15);break}return lC.yield(f.localInnertubeRouter.localFallbackInnertubeResponse(H.input,H.innerTubeRequest),16);case 16:gh=lC.yieldResult;case 15:return Pp(f,gh,H),((Ox=H.config)==null?0:Ox.processorTick)&&_.u0(H.config.processorTick),t(),lC.return(gh||void 0)}})};
_.XW=function(f,H){return s6v(H,f.endpointMap)};
vxC=function(f,H){f=JFR(H,f.endpointMap);if(f!==void 0)return Promise.resolve(f)};
RNH=function(f,H){var v,t,M,h;return _.Y(function(y){if(y.nextAddress==1){M=(v=f)==null?void 0:(t=v.authStrategy)==null?void 0:t.sessionIndex;var m=y.yield;var W=_.gj(USe({sessionIndex:M}));return m.call(y,W,2)}h=y.yieldResult;return y.return(Promise.resolve(Object.assign({},l3v(H),h)))})};
hNr=function(f,H){var v;f=f==null?void 0:(v=f.authStrategy)==null?void 0:v.sessionIndex;v=USe({sessionIndex:f});return Object.assign({},l3v(H),v)};var mGo,$Gh,WTa,OiC,gGh,IAa,jRo,sRv,EL,ZiC,JRh,dGr,lAr;mGo=0;$Gh=/tone[1-5]/;WTa=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");OiC="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
gGh=Number.MAX_SAFE_INTEGER;IAa=RegExp("\ufe0f","g");_.G$=function(f){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;f&&_.SlZ(this,f)};
_.SlZ=function(f,H){try{_.I2(H,{context:f,onSuccess:function(t,M){Array.isArray(M)?f.load(M):(t=new _.e$("Emoji manager JSON response was not an array!",{response:M}),_.oO(t))},
onError:function(t){t=new _.e$("Failed to retrieve emoji manager initial JSON data!",{url:H,statusCode:_.mp(t).toString()});_.pb(t)}})}catch(t){var v=new _.e$("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:H});
_.pb(v)}};
_.G$.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.G$.prototype.load=function(f,H){if(H)if(f.length)f=f.concat(H.emojis);else{this.emojis=H.emojis;this.emojiMap=H.emojiMap;this.emojiShortcutMap=H.emojiShortcutMap;this.emojiShortcutCharMap=dGr(H);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=H.emojiRegex;return}this.emojis=[].concat(_.pS(new Set(this.emojis.concat(f))));this.hasInitializedShortcutCharMap=!1;f=Array(this.emojis.length);for(H=0;H<this.emojis.length;H++){var v=this.emojis[H];if(v.emojiId){this.emojiMap[v.emojiId]=v;this.emojiMap[v.emojiId].index=
H;for(var t=0;v.shortcuts&&t<v.shortcuts.length;t++)this.emojiShortcutMap[v.shortcuts[t].toLocaleLowerCase()]=v;f[H]=v.isCustomEmoji&&v.shortcuts?v.shortcuts[0]:v.emojiId}}f.sort(function(M,h){return h.length-M.length});
if(f.length)try{this.emojiRegex=new RegExp(f.join("|").replace("*","\\*"),"gi")}catch(M){this.emojiRegex=/$./}else this.emojiRegex=/$./};
jRo=function(f,H){H=_.V(H);for(var v=H.next();!v.done;v=H.next()){var t=v.value;if(t.emojiId&&f.emojiMap[t.emojiId]){v=Object.assign({},f.emojiMap[t.emojiId],t);f.emojiMap[t.emojiId]=v;var M=void 0;v.index&&((M=f.emojis[v.index])==null?void 0:M.emojiId)===t.emojiId&&(f.emojis[v.index]=v);t=void 0;if((t=v.shortcuts)==null?0:t.length)for(f.hasInitializedShortcutCharMap=!1,t=_.V(v.shortcuts),M=t.next();!M.done;M=t.next())f.emojiShortcutMap[M.value.toLocaleLowerCase()]=v}}};
sRv=function(f){var H,v;_.Y(function(t){if(t.nextAddress==1)return t.yield(_.xP.getInstance(),2);if(t.nextAddress!=3)return(H=t.yieldResult)?t.yield(H.get("ytlc-emoji-pref"),3):t.return();(v=t.yieldResult)&&jRo(f,Object.keys(v).map(function(M){return{emojiId:M,stickyPrefId:v[M]}}).filter(function(M){return!!M.emojiId&&!!M.stickyPrefId}));
_.Bj(t)})};
_.CW=function(f,H,v){return(f=f.emojiMap[H])&&(!f.isLocked||v!==void 0&&v)?f:void 0};
EL=function(f,H,v){v=_.CW(f,H,v===void 0?!1:v);var t=H.match("\u200d");v&&f.skinTone!==0&&(f=(t==null?void 0:t.length)===1?_.CW(f,H.replace("\u200d",WTa[f.skinTone]+"\u200d")):_.CW(f,H+WTa[f.skinTone]))&&(v=f);return v};
ZiC=function(f,H){var v=f.emojiMap[H];return(v==null?0:v.stickyPrefId)?f.emojiMap[v.stickyPrefId]:EL(f,H)};
_.Vp=function(f,H){f=f.emojiShortcutMap[H.toLocaleLowerCase()];return!f||f.isLocked?null:f};
JRh=function(f,H,v){return dGr(f,v===void 0?!1:v)[H]||{}};
dGr=function(f,H){H=H===void 0?!1:H;if(!f.hasInitializedShortcutCharMap){f.hasInitializedShortcutCharMap=!0;for(var v=0;v<f.emojis.length;v++){var t=f.emojis[v];if(!(t.isLocked||H&&t.isCustomEmoji&&t.emojiId&&!f.pickerCustomEmojiIds.includes(t.emojiId)))for(var M=0;t.shortcuts&&M<t.shortcuts.length;M++){var h=t.shortcuts[M];h.startsWith(":_")&&t.isCustomEmoji&&(f.emojiShortcutCharMap[":_"]==null&&(f.emojiShortcutCharMap[":_"]=Object.create(null)),f.emojiShortcutCharMap[":_"][h]=t);if(!(h.length<3||
!t.isCustomEmoji&&$Gh.test(h))){var y=h.substr(0,3).toLocaleLowerCase();f.emojiShortcutCharMap[y]==null&&(f.emojiShortcutCharMap[y]=Object.create(null));f.emojiShortcutCharMap[y][h]=t}}}}return f.emojiShortcutCharMap};
_.G$.prototype.createEmoji=function(f,H){H=H===void 0?!0:H;var v=document.createElement("img");f.isCustomEmoji||v.classList.add("small-emoji");v.classList.add("emoji");v.classList.add("yt-formatted-string");v.src=f.image?_.YK(f.image.thumbnails,this.emojiSize)||"":"";var t=void 0;f.image&&f.image.accessibility&&f.image.accessibility.accessibilityData&&(t=f.image.accessibility.accessibilityData.label);v.alt=t?t:(f.isCustomEmoji&&f.shortcuts?f.shortcuts[0]:f.emojiId)||"";f.isCustomEmoji&&(v.dataset.emojiId=
f.emojiId);_.My&&(v.setAttribute("contenteditable","false"),v.setAttribute("unselectable","on"));H&&(f.shortcuts&&f.shortcuts.length&&v.setAttribute("shared-tooltip-text",f.shortcuts[0]),v.id="emoji-"+mGo++);return v};
_.G$.prototype.createDocumentFragment=function(f,H,v,t){H=H===void 0?!1:H;v=v===void 0?!0:v;t=t===void 0?!1:t;f=f.replace(IAa,"");for(var M=document.createDocumentFragment(),h=0,y,m=0;(y=this.emojiRegex.exec(f))!=null;){var W=_.CW(this,y[0])||_.Vp(this,y[0]);!W||W.isCustomEmoji&&!H||(W=this.createEmoji(W,v),h!==y.index&&M.appendChild(document.createTextNode(f.substring(h,y.index))),M.appendChild(W),h=y.index+y[0].length,m++)}if(!t||m)return M.appendChild(document.createTextNode(f.substr(h))),M};
lAr=function(f,H,v){var t,M,h,y,m,W,I,S,d;return _.Y(function(Z){if(Z.nextAddress==1){if(!H.emojiId||!f.emojiMap[H.emojiId])return Z.return();t=Object.assign({},f.emojiMap[H.emojiId],{stickyPrefId:v});f.emojiMap[H.emojiId]=t;H.index&&((M=f.emojis[H.index])==null?void 0:M.emojiId)===H.emojiId&&(f.emojis[H.index]=t);if((h=H.shortcuts)==null?0:h.length)for(f.hasInitializedShortcutCharMap=!1,y=_.V(H.shortcuts),m=y.next();!m.done;m=y.next())W=m.value,f.emojiShortcutMap[W.toLocaleLowerCase()]=t;return Z.yield(_.xP.getInstance(),
2)}if(Z.nextAddress!=4)return(I=Z.yieldResult)?Z.yield(I.get("ytlc-emoji-pref"),4):Z.jumpTo(0);d=(S=Z.yieldResult)!=null?S:{};d[H.emojiId]=v;return Z.yield(I.set("ytlc-emoji-pref",d,gGh),0)})};
_.N8=new _.G$;var LTH;_.cp={};
LTH={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.J("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:_.J("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 TZ(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 f=_.mF(this.hostElement||this).querySelector("#inline-action-button-container");f&&f.setAttribute("aria-hidden","true");this.menuButton=_.mF(this.hostElement).querySelector("#menu-button")},
attached:function(){var f=this.menuButton;f&&(f.addEventListener("focusin",_.jr(this,this.onMenuButtonFocus_)),f.addEventListener("focusout",_.jr(this,this.onMenuButtonBlur_)))},
detached:function(){var f=this.menuButton;f&&(f.removeEventListener("focusin",_.jr(this,this.onMenuButtonFocus_)),f.removeEventListener("focusout",_.jr(this,this.onMenuButtonBlur_)))},
identity:_.Cg,truthy:function(f){return!!f},
computeTimestampString:function(f){return f?f.timestampText?this.getSimpleString(f.timestampText):this.TIME_FORMATTER.format(new Date(f.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(f){return f},
computeMenuVisible_:function(f,H){return f||H},
computeHasInlineActionButtons:function(f){if(!f)return!1;var H,v;return!((H=f.inlineActionButtons)==null||!H.length)||!((v=f.additionalInlineActionButtons)==null||!v.length)},
createDocumentFragmentFromString:function(f){var H=_.N8.createDocumentFragment.bind(_.N8),v;if((v=this.participantsManager)==null||!v.viewerRegex)return H(f);v=document.createDocumentFragment();for(var t=0,M;(M=this.participantsManager.viewerRegex.exec(f))!=null;){if(M.index>0){var h=":"+M[0]+":";if((_.CW(_.N8,h)||_.Vp(_.N8,h))&&f.indexOf(h)===M.index-1)continue}v.appendChild(H(f.substring(t,M.index)));t=document.createElement("span");t.appendChild(H(M[0]));t.classList.add("mention");v.appendChild(t);
t=M.index+M[0].length}v.appendChild(H(f.substring(t)));return v},
createDocumentFragment:function(f){var H=document.createDocumentFragment();if(f.simpleText)return H.appendChild(this.createDocumentFragmentFromString(f.simpleText)),H;if(!f.runs)return H;for(var v=0;v<f.runs.length;v++){var t=f.runs[v];if(t.emoji)H.appendChild(_.N8.createEmoji(t.emoji));else if(t.text)if(t.navigationEndpoint){var M=document.createElement("a");M.classList.add("yt-simple-endpoint");CFR(M,t.navigationEndpoint);_.mF(M).appendChild(this.createDocumentFragmentFromString(t.text));H.appendChild(M)}else H.appendChild(this.createDocumentFragmentFromString(t.text))}return H},
hasModerationOverlayVisible:function(){var f;return((f=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:f.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(f){f.composedPath().some(function(H){return(H=H instanceof Element?H:null)?H.tagName&&(H.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||H.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.J("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(f)},
colorFromDecimal:function(f){return yBR(f)},
markAsDeleted:function(f,H){this.set("data.deletedStateMessage",f);this.set("data.showOriginalContentMessage",H)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(f){if(this.data.contextMenuEndpoint){var H=_.t8().resolve(_.a9),v=this.data.contextMenuEndpoint,t;(t=_.cn.instance)&&_.XW(t,v)?(H=UGn(H,v),t=_.Q8(t,{},H)):t=_.eNr(H,v);t.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);f&&f.stopPropagation()}},
handleGetContextMenuResponse_:function(f){var H=_.cn.instance;H&&_.XW(H,{liveChatEndpoint:{}})||(f=f.response);f.liveChatItemContextMenuSupportedRenderers&&f.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(f.liveChatItemContextMenuSupportedRenderers.menuRenderer);f.actions&&_.mb(this.hostElement,"yt-live-chat-actions",[f.actions])},
handleGetContextMenuError:function(f){if(f instanceof Error||f instanceof Object||f instanceof String)var H=f;_.oO(new _.e$("Error encountered calling GetLiveChatItemContextMenu",H))},
showContextMenu_:function(f){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:f}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.YE(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.YE(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.cp.YtLiveChatItemBehavior=[LTH,_.CM.YtComponentBehavior,_.IM.YtOpenPopupBehavior];_.Xo=function(){};var xGM;var Blh;var zNH;var FTr;var A$=function(){var f=_.K.apply(this,arguments)||this;f.active=!1;f.identity=_.Cg;return f};
_.e(A$,_.K);A$.prototype.dataChanged=function(){this.active=!1};
A$.prototype.onClick=function(){_.YE(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
A$.prototype.dataChanged=A$.prototype.dataChanged;_.E([_.F(),_.N("design:type",Object)],A$.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],A$.prototype,"active",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],A$.prototype,"dataChanged",null);_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],A$);
_.G(A$,"yt-live-chat-text-input-field-suggestion",function(){if(FTr===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;zNH===void 0&&(zNH=document.createElement("template"));var t=zNH;v.call(H,t.content.cloneNode(!0),f.content.firstChild);FTr=f}f=FTr;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});_.bM=function(f,H,v){return CustomEvent.call(this,f,{detail:{value:H,path:v}})||this};
_.e(_.bM,CustomEvent);_.iM=function(){var f=_.K.apply(this,arguments)||this;f.viewerName=null;f.actionMap={"yt-live-chat-actions":"onChatMessage_"};f.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];f.PARTICIPANT_TIME_USEC_=3E8;return f};
_.e(_.iM,_.K);_.R=_.iM.prototype;_.R.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.R.addParticipant=function(f){var H=_.eTe(this.participants,f,function(t,M){t=t[Object.keys(t)[0]];M=M[Object.keys(M)[0]];t=String(_.fG(t.authorName)).toLowerCase();M=String(_.fG(M.authorName)).toLowerCase();return t<M?-1:t==M?0:1}.bind(this));
if(H>=0){var v=this.participants[H];v[Object.keys(v)[0]].timestampUsec&&this.splice("participants",H,1,f)}else this.splice("participants",-H-1,0,f);f=f[Object.keys(f)[0]];H=_.fG(f.authorName).toLocaleLowerCase();v=H.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(v)||(this.allParticipantsCharMap_[v]={});this.allParticipantsCharMap_[v][H]=f};
_.R.getAuthorsFromPrefix=function(f){return this.allParticipantsCharMap_.hasOwnProperty(f)?this.allParticipantsCharMap_[f]:null};
_.R.computeViewerRegex_=function(f){if(!f)return null;f=f.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var H=f.indexOf("@")===0&&_.J("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(H+f.replace(/ /g,"\\s*")+"|^"+f.replace(/ /g,"\\s*")+"$|^"+f.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+f.replace(/ /g,"\\s*")+"$|(?<=\\s)"+f.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.R.checkForStaleParticipants_=function(){var f=this;this.trimOldParticipants_();this.asyncHandle_&&oxe(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.bJ(function(){f.checkForStaleParticipants_()},3E4))};
_.R.onChatMessage_=function(f){var H=this,v=Date.now()*1E3;f.forEach(function(t){if(t=_.U(t,Lcr)){t=t.item;var M=Object.keys(t)[0];H.SUPPORTED_ITEM_TYPES_.indexOf(M)!=-1&&t[M].timestampUsec>=v-H.PARTICIPANT_TIME_USEC_&&H.addParticipant(t)}},this);
this.checkForStaleParticipants_()};
_.R.trimOldParticipants_=function(){for(var f=Date.now()*1E3,H=this.participants.length-1;H>=0;H--){var v=this.participants[H];v=v[Object.keys(v)[0]];v.timestampUsec&&v.timestampUsec<f-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",H,1)}};
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],_.iM.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],_.iM.prototype,"viewerName",void 0);_.E([_.F({computed:"computeViewerRegex_(viewerName)"}),_.N("design:type",Object)],_.iM.prototype,"viewerRegex",void 0);_.E([_.F({value:function(){return[]},
notify:!0}),_.N("design:type",Array)],_.iM.prototype,"participants",void 0);_.E([_.GW({is:"yt-live-chat-participants-manager",noInjection:!0})],_.iM);var rR9=/.*([:@#].*?)$/,kp=/\u00a0/g,KTT=String.fromCharCode(160),DG_={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"},T$=function(){var f=_.K.apply(this,arguments)||this;f.disabled=!1;f.liveChatRichMessageInput=null;f.messageInput=null;f.isValidWithNoInputText=!1;f.suggestions=[];f.emojiManager=_.N8;f.inputMethodEditorActive=
!1;f.suggestionIndex=-1;f.JSC$14095_lastSuggestionRange=null;return f};
_.e(T$,_.K);_.R=T$.prototype;_.R.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.R.attached=function(){_.hZ&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.R.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.R.dataChanged=function(){if(!this.ignoreColorMapping){var f=!1,H={},v;for(v in DG_)this.data&&this.data.hasOwnProperty(v)&&(H[DG_[v]]=this.colorFromDecimal(this.data[v]),f=!0);f&&_.Sr(this.hostElement,H)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.R.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.R.colorFromDecimal=function(f){f=Math.floor(Number(f));return"rgba("+[f>>16&255,f>>8&255,f&255,(f>>24&255)/255].join()+")"};
_.R.preventDrag=function(f){f.dataTransfer&&(f.dataTransfer.dropEffect="none");f.preventDefault()};
_.R.preventResize=function(f){f.returnValue=!1};
_.R.onInputChange=function(){var f=this.characterCount,H=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&H&&H.remove();if(!H&&this.characterCount>this.maxCharacterLimit){var v=window.getSelection();if(v){var t=v.getRangeAt(0);v.removeAllRanges();v.addRange(t)}}if(v=this.getCurrentRange())t=this.calculateTextBeforeRange(v),this.completeEmojisInRange(v,t,!0)||this.updateSuggestions(v,t);t=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(t);
_.YE(this.hostElement,"yt-live-chat-message-input-change",t);H&&this.characterCount===0&&H.remove();v&&v.commonAncestorContainer.parentElement.id==="input"&&v.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>f):v&&!v.collapsed&&v.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(f=this.input.childNodes.length-1;f>=0;f--)this.input.childNodes[f].nodeName==="BR"&&this.input.childNodes[f].remove()};
_.R.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.R.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var f=this.getCurrentRange();f&&f.commonAncestorContainer.parentElement.id==="input"&&f.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.R.mergeOverflowText=function(f){if(f){var H=document.createRange();H.selectNodeContents(f);H=H.extractContents();this.input.insertBefore(H,f)}};
_.R.checkRangeAtEndOfInput=function(){var f=this.getCurrentRange();if(f){var H=_.mF(this.hostElement).querySelector("#overflow-text"),v=document.createRange();H&&H.previousSibling?H.previousSibling instanceof HTMLImageElement?v.selectNode(H.previousSibling):v.selectNodeContents(H.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?v.selectNode(this.input.lastChild):v.selectNodeContents(this.input.lastChild));v.collapse(!1);return v.isPointInRange(f.startContainer,
f.startOffset)}return!1};
_.R.handleOverflowText=function(f){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var H=_.mF(this.hostElement).querySelector("#overflow-text"),v=this.getCurrentRange();this.input.normalize();f=this.checkRangeAtEndOfInput()&&f;this.mergeOverflowText(H);for(var t,M=0,h=0,y,m=this.input.childNodes,W=0;W<m.length;W++){var I=m[W];I instanceof Text?(h+=I.textContent.length,h>this.maxCharacterLimit&&(t=I,M=this.maxCharacterLimit+I.textContent.length-h)):I instanceof HTMLImageElement&&
(t=void 0,h=I.dataset.emojiId&&((t=this.data)==null?0:t.emojiCharacterCount)?h+this.data.emojiCharacterCount:h+I.alt.length,t=this.input,M=W);if(h>this.maxCharacterLimit&&t){y=document.createRange();y.collapse(!1);H?(h=this.input.lastChild.previousSibling,h instanceof Text?y.setEnd(this.input.lastChild.previousSibling,h.textContent.length):h instanceof HTMLImageElement&&y.setEnd(this.input,this.input.childNodes.length-1)):y.selectNodeContents(this.input);y.setStart(t,M);break}}y&&(t=!1,v&&(f=y.isPointInRange(v.startContainer,
v.startOffset-1)),H||(H=document.createElement("span"),H.id="overflow-text",H.textContent="",H.setAttribute("contenteditable","true"),_.mF(_.mF(this.hostElement).querySelector("#input")).appendChild(H),t=!0),H&&(v=y.extractContents(),H.insertBefore(v,H.firstChild),f&&H.firstChild&&(v=document.createRange(),t?v.setStartAfter(H.lastChild):v.setStartAfter(H.firstChild),v.collapse(!0),H=window.getSelection(),H.removeAllRanges(),H.addRange(v))))}};
_.R.checkForDuplicateSpans=function(){for(var f=0;f<this.input.childNodes.length;f++){var H=this.input.childNodes[f];if(H.nodeName==="SPAN"){var v=document.createRange();v.selectNodeContents(H);v=v.extractContents();this.input.insertBefore(v,H);H.remove()}}this.handleOverflowText(!0)};
_.R.getCurrentRange=function(){var f=window.getSelection();return f&&f.rangeCount?f.getRangeAt(0).cloneRange():null};
_.R.getInputRange=function(){var f=this.getCurrentRange();if(f){for(var H=f.commonAncestorContainer,v=!1,t=_.mF(this.hostElement).querySelector("#input");H;){if(H===t){v=!0;break}H=H.parentNode}v||(f=null)}f||(f=this.getRangeAtEnd());return f};
_.R.getRangeAtEnd=function(){var f=document.createRange(),H=_.mF(this.hostElement).querySelector("#input").lastChild;!H||H.nodeName!=="#text"&&H.nodeName!=="SPAN"?(f.selectNodeContents(_.mF(this.hostElement).querySelector("#input")),f.collapse(!1)):H.nodeName==="#text"?f.setStart(H,H.textContent.length):f.setStart(H,H.childNodes.length);return f};
_.R.getChatParticipantSuggestions=function(f,H,v,t){var M=_.J("live_chat_enable_handles_web_text_input_update");if(H)for(var h in H)if(h.indexOf(f)===0||M&&h.indexOf(v+f)===0){var y=H[h],m=_.fG(y.authorName);t.push({suggestion:{author:!0,authorType:v,image:y.authorPhoto,alt:m,text:m}});if(t.length>=64)break}};
_.R.getSuggestions=function(f){var H=[],v=f.substring(0,3),t=JRh(_.N8,v,!0);if(t)for(var M in t)if(M.toLocaleLowerCase().indexOf(f)===0){var h=t[M];if(h&&h.emojiId){if(h=ZiC(_.N8,h.emojiId)){var y=void 0,m=void 0,W=void 0,I=void 0,S=((y=h.image)==null?0:(m=y.accessibility)==null?0:(W=m.accessibilityData)==null?0:W.label)||h.isCustomEmoji?(I=h.shortcuts)==null?void 0:I[0]:h.emojiId;H.push({suggestion:{emoji:!0,image:h.image,alt:S,text:M,textToInsertWhenSelected:h.isCustomEmoji?M:S}})}if(H.length>=
64)break}}if(!this.participantsManager)return null;if(v.indexOf("@")===0||v.indexOf("#")===0)t=v.charAt(0),f=f.substring(1),M=_.J("live_chat_enable_handles_web_text_input_update"),v.indexOf("@")===0&&M&&(M=this.participantsManager.getAuthorsFromPrefix(v.substring(0,2)),this.getChatParticipantSuggestions(f,M,t,H)),v=v.substring(1),v=this.participantsManager.getAuthorsFromPrefix(v),this.getChatParticipantSuggestions(f,v,t,H);return H?H.sort(function(d,Z){return Z.suggestion.text<d.suggestion.text?-1:
Z.suggestion.text===d.suggestion.text?0:1}):null};
_.R.insertSuggestion=function(f){var H=_.J("live_chat_enable_handles_web_text_input_update"),v=f.authorType;H=f.text.indexOf(v)===0&&H?f.text+KTT:v+f.text+KTT;f.emoji?this.insertTextAtRange(this.JSC$14095_lastSuggestionRange,f.textToInsertWhenSelected||""):f.author&&this.insertTextAtRange(this.JSC$14095_lastSuggestionRange,H)};
_.R.updateSuggestionsAtCaret=function(){var f=this.getCurrentRange();f&&this.updateSuggestions(f,this.calculateTextBeforeRange(f))};
_.R.offsetStartOfRangeBy=function(f,H){for(;H>0;)if(f.startOffset-H>=0){f.setStart(f.startContainer,f.startOffset-H);break}else{H=f.startContainer instanceof HTMLImageElement?H-f.startContainer.alt.length:H-f.startOffset;var v=f.startContainer.previousSibling;if(!v){f.setStart(f.startContainer,0);break}if(_.J("live_chat_require_space_for_autocomplete_emoji")){var t=void 0,M=void 0;f.setStart(v,((t=v)==null?void 0:(M=t.textContent)==null?void 0:M.length)||0)}else f.setStart(v,v.childNodes.length||
0)}};
_.R.updateSuggestions=function(f,H){var v=this;this.JSC$14095_lastSuggestionRange&&(this.JSC$14095_lastSuggestionRange.detach(),this.JSC$14095_lastSuggestionRange=null);if((H=rR9.exec(H))&&H.length&&(H=H[H.length-1].toLocaleLowerCase(),H.length>2&&(this.offsetStartOfRangeBy(f,H.length),this.JSC$14095_lastSuggestionRange=f,(f=this.getSuggestions(H))&&f.length))){this.suggestions=f;_.qV(this,function(){_.mF(v.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(f.length-1);return}this.dropdown.opened=!1};
_.R.completeEmojisInRange=function(f,H,v){var t=H.replace(/[\s\xa0]+$/,"");H=H.length-t.length;t=t.split(" ");t=t[t.length-1].trim().toLocaleLowerCase();var M=t.lastIndexOf(":");if(v&&!H&&M!==t.length-1)return!1;M!==-1&&(v=t.lastIndexOf(":",M-1),v!==-1&&(t=t.substring(v)));if((v=_.Vp(_.N8,t))&&v.emojiId){v=ZiC(_.N8,v.emojiId)||null;this.offsetStartOfRangeBy(f,t.length+H);var h,y,m,W;t=(((h=v)==null?0:h.isCustomEmoji)?(y=v)==null?void 0:(m=y.shortcuts)==null?void 0:m[0]:(W=v)==null?void 0:W.emojiId)||
"";H&&(t+=KTT);this.insertTextAtRange(f,t);this.dropdown.opened=!1;return!0}return!1};
_.R.onSuggestion=function(f){this.insertSuggestion(f.detail);this.dropdown.opened=!1};
_.R.onKeyPress=function(f){f.keyCode===13&&(f.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.YE(this.hostElement,"yt-live-chat-send-message"))};
_.R.completeEmojis=function(){var f=document.createRange(),H=_.mF(this.hostElement).querySelector("#input").lastChild;H?f.setStart(H,H.childNodes.length):(f.selectNodeContents(_.mF(this.hostElement).querySelector("#input")),f.collapse(!1));this.completeEmojisInRange(f,this.calculateTextBeforeRange(f),_.J("live_chat_require_space_for_autocomplete_emoji"))};
_.R.maybePreventTextFormatting=function(f){!_.Y_||!f.ctrlKey&&!f.metaKey||f.keyCode!==66&&f.keyCode!==73||(f.stopImmediatePropagation(),f.preventDefault())};
_.R.onKeyDown=function(f){this.maybePreventTextFormatting(f);if(this.dropdown.opened)switch(f.keyCode){case 27:this.dropdown.opened=!1;f.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;f.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);f.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),f.preventDefault()}};
_.R.onKeyUp=function(f){switch(f.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.My)this.onInputChange()};
_.R.changeSuggestionIndex=function(f){if(this.dropdown.opened){var H=_.mF(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<H.children.length&&(H.children[this.suggestionIndex].active=!1);var v=this.suggestions.length;this.suggestionIndex=(f+v)%v;f=H.children[this.suggestionIndex];f.active=!0;H.scrollTop=f.offsetTop}};
_.R.onInputPaste=function(f){f.preventDefault();(f=f.clipboardData)&&f.types&&(f=f.getData("text/plain")||"",f=f.replace(/\n/g,""),this.insertText(f));(f=this.getCurrentRange())&&f.commonAncestorContainer.parentElement.id==="input"&&f.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.R.onFocus=function(){this._setFocused(!0)};
_.R.onBlur=function(){this._setFocused(!1)};
_.R.insertText=function(f){this.insertTextAtRange(this.getInputRange(),f)};
_.R.insertTextAtRange=function(f,H){if(f&&(f.collapsed||f.deleteContents(),H=_.N8.createDocumentFragment(H,!0,!1))){for(var v=_.V((H==null?void 0:H.childNodes)||[]),t=v.next();!t.done;t=v.next()){t=t.value;var M=void 0,h=void 0,y=void 0,m=void 0,W=void 0;(y=(M=window)==null?void 0:(h=M.ShadyCSS)==null?void 0:h.ScopingShim)==null||(W=(m=y).scopeNode)==null||W.call(m,t,this.hostElement.localName)}v=H.lastChild;f.insertNode(H);this.focused||this.input.focus();if(this.focused){f=f.cloneRange();f.selectNodeContents(v);
f.collapse(!1);if(H=window.getSelection())H.removeAllRanges(),H.addRange(f);f.commonAncestorContainer.parentElement.id==="input"&&f.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}f=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(f);_.YE(this.hostElement,"yt-live-chat-message-input-change",f)}};
_.R.setLiveChatRichMessageInput=function(f){_.mF(_.mF(this.hostElement).querySelector("#input")).textContent="";if(f&&f.textSegments){for(var H=0;H<f.textSegments.length;H++){var v=f.textSegments[H];v.text?_.mF(_.mF(this.hostElement).querySelector("#input")).appendChild(_.N8.createDocumentFragment(v.text,!0,!1)):v.emojiId&&(v=_.CW(_.N8,v.emojiId))&&_.mF(_.mF(this.hostElement).querySelector("#input")).appendChild(_.N8.createEmoji(v,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.R.setText=function(f){this.setLiveChatRichMessageInput(f?{textSegments:[{text:f}]}:null)};
_.R.calculateTextBeforeRange=function(f){var H="",v=f.startContainer;if(v&&v instanceof Text){var t;H=((t=v.textContent)==null?void 0:t.substring(0,f.startOffset))||"";v=v.previousSibling}for(;v&&v instanceof Text;)H=v.textContent+H,v=v.previousSibling;return H.replace(kp," ")};
_.R.calculateLiveChatRichMessageInput=function(){for(var f=[],H="",v=_.mF(_.mF(this.hostElement).querySelector("#input")).childNodes,t=0;t<v.length;t++){var M=v[t];M instanceof Text?H+=M.textContent:M instanceof HTMLImageElement&&(M.dataset.emojiId?(H&&(f.push({text:H.replace(kp," ")}),H=""),f.push({emojiId:M.dataset.emojiId})):H+=M.alt)}H&&f.push({text:H.replace(kp," ")});if(v=_.mF(this.hostElement).querySelector("#overflow-text")){H="";v=v.childNodes;for(t=0;t<v.length;t++)M=v[t],M instanceof Text?
H+=M.textContent:M instanceof HTMLImageElement&&(M.dataset.emojiId?(H&&(f.push({text:H.replace(kp," ")}),H=""),f.push({emojiId:M.dataset.emojiId})):H+=M.alt);H&&f.push({text:H.replace(kp," ")})}return{textSegments:f}};
_.R.computeCharacterCount=function(f){if(!f||!f.textSegments)return 0;for(var H=0,v=0;v<f.textSegments.length;v++){var t=f.textSegments[v];if(t.text)H+=t.text.length;else if(t.emojiId){var M=void 0;if((M=this.data)==null?0:M.emojiCharacterCount)H+=this.data.emojiCharacterCount;else{var h=M=void 0,y=void 0;H+=((h=_.CW(_.N8,(M=t)==null?void 0:M.emojiId))==null?void 0:(y=h.shortcuts)==null?void 0:y[0].length)||0}}}return H};
_.R.characterCountChanged=function(){_.YE(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.R.focusedChanged=function(){this.hostElement.dispatchEvent(new _.bM("focused-changed",this.focused))};
_.R.focus=function(){this.setFocus(!1)};
_.R.focusAtEnd=function(){this.setFocus(!0)};
_.R.setFocus=function(f){f=f?this.getRangeAtEnd():this.getInputRange();_.mF(this.hostElement).querySelector("#input").focus();var H=window.getSelection();H&&(H.removeAllRanges(),H.addRange(f))};
_.R.insertEmoji=function(f){var H,v=((f==null?0:f.isCustomEmoji)?(H=f.shortcuts)==null?void 0:H[0]:f==null?void 0:f.emojiId)||"";this.insertText(v)};
_.R.computeText=function(f){if(!f||!f.textSegments)return"";for(var H="",v=0;v<f.textSegments.length;v++){var t=f.textSegments[v];if(t.text)H+=t.text;else if(t.emojiId){var M=void 0,h=void 0,y=void 0;H+=((h=_.CW(_.N8,(M=t)==null?void 0:M.emojiId))==null?void 0:(y=h.shortcuts)==null?void 0:y[0])||""}}return H};
_.R.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.H7.Object.defineProperties(T$.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.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}}});
T$.prototype.focusedChanged=T$.prototype.focusedChanged;T$.prototype.characterCountChanged=T$.prototype.characterCountChanged;T$.prototype.onSuggestion=T$.prototype.onSuggestion;T$.prototype.onMessageSet=T$.prototype.onMessageSet;T$.prototype.dataChanged=T$.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],T$.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],T$.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],T$.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],T$.prototype,"disabled",void 0);_.E([_.z("disabled"),_.N("design:type",Number),_.N("design:paramtypes",[])],T$.prototype,"inputTabIndex",null);_.E([_.z("data.maxCharacterLimit"),_.F({readOnly:!0,notify:!0}),_.N("design:type",Number),_.N("design:paramtypes",[])],T$.prototype,"maxCharacterLimit",null);
_.E([_.z("liveChatRichMessageInput"),_.F({readOnly:!0,notify:!0}),_.N("design:type",Number),_.N("design:paramtypes",[])],T$.prototype,"characterCount",null);_.E([_.z("maxCharacterLimit, characterCount"),_.F({readOnly:!0,notify:!0}),_.N("design:type",Number),_.N("design:paramtypes",[])],T$.prototype,"remainingCharacterCount",null);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],T$.prototype,"isChatMessageInput",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],T$.prototype,"inputExpanded",void 0);_.E([_.F({readOnly:!0,notify:!0}),_.N("design:type",Object)],T$.prototype,"liveChatRichMessageInput",void 0);_.E([_.F(),_.N("design:type",Object)],T$.prototype,"messageInput",void 0);_.E([_.F(),_.N("design:type",Boolean)],T$.prototype,"ignoreColorMapping",void 0);_.E([_.z("characterCount"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],T$.prototype,"hasText",null);
_.E([_.F(),_.N("design:type",Object)],T$.prototype,"isValidWithNoInputText",void 0);_.E([_.z("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.F(),_.N("design:type",Boolean),_.N("design:paramtypes",[])],T$.prototype,"isInputValid",null);_.E([_.F({readOnly:!0,value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],T$.prototype,"focused",void 0);_.E([_.F(),_.N("design:type",Array)],T$.prototype,"suggestions",void 0);
_.E([_.F(),_.N("design:type",_.G$)],T$.prototype,"emojiManager",void 0);_.E([_.F(),_.N("design:type",_.iM)],T$.prototype,"participantsManager",void 0);_.E([_.F(),_.N("design:type",Boolean)],T$.prototype,"noUnderline",void 0);_.E([_.F(),_.N("design:type",Object)],T$.prototype,"inputMethodEditorActive",void 0);_.E([_.lJ("#dropdown"),_.N("design:type",Object)],T$.prototype,"dropdown",void 0);_.E([_.lJ("#input"),_.N("design:type",HTMLElement)],T$.prototype,"input",void 0);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],T$.prototype,"dataChanged",null);_.E([_.Zw("messageInput"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],T$.prototype,"onMessageSet",null);_.E([_.sE("yt-live-chat-select-suggestion"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],T$.prototype,"onSuggestion",null);
_.E([_.Zw("characterCount"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],T$.prototype,"characterCountChanged",null);_.E([_.Zw("focused"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],T$.prototype,"focusedChanged",null);_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],T$);
_.oGb=_.G(T$,"yt-live-chat-text-input-field-renderer",function(){if(Blh===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;xGM===void 0&&(xGM=document.createElement("template"));var t=xGM;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Blh=f}f=Blh;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var wt=function(){var f=_.K.apply(this,arguments)||this;f.buttonOverrides={style:"overlay",type:"filled"};f.allowAnimations=!1;f.modern=_.J("web_button_rework_with_live");f.noPadding=!1;return f};
_.e(wt,_.K);_.R=wt.prototype;_.R.shouldSupportInlineActionButtons=function(){return!0};
_.R.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"}}}}};
_.R.ready=function(){var f=document.querySelector("yt-live-chat-app");f&&f.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.R.attached=function(){this.allowAnimations=!1};
_.R.dataChanged=function(){if(this.data){var f={"--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)};_.Sr(this.hostElement,f);this.allowAnimations=!0}};
_.R.messageChanged=function(){var f,H=(f=this.data)==null?void 0:f.message;f=_.mF(_.mF(this.hostElement).querySelector("#message"));f.textContent="";H&&f.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(H))};
_.R.computeShowOnlyHeader=function(f,H){return!f||f.pdgLikeButton||f.replyButton||f.buyFlowButton?!1:this.isEmpty(f,H)&&!f.footer};
_.R.computeShowFooterDivider=function(f,H,v){return f?!!f.footer&&!this.isEmpty(f,H)&&!v:!1};
_.R.computeIsUserEditable=function(f){return!!f.inputField};
_.R.computeHasHeartButton=function(f){return(f==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(f==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(f==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.R.computeNoveltyImage=function(f){if(f.headerOverlayImage&&f.headerOverlayImage.thumbnails.length){var H=f.headerOverlayImage.thumbnails[0],v,t;if((v=f.pdgPurchasedNoveltyLoggingDirectives)==null?0:(t=v.loggingDirectives)==null?0:t.trackingParams){var M,h;lLe((M=f.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(h=M.loggingDirectives)==null?void 0:h.trackingParams)}return H.width||0}return 0};
_.R.computeAuthorPhotoSize=function(f){return(f==null?0:f.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.R.inputFocus=function(){var f=_.mF(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");f&&f.focus()};
_.R.inputInsertEmoji=function(f){var H=_.mF(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");H&&H.insertEmoji(f)};
_.R.inputMessage=function(){var f=_.mF(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),H;return f&&((H=this.data)==null?0:H.inputField)?(f.completeEmojis(),_.CV(f.liveChatRichMessageInput)):null};
_.R.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.R.isEmpty=function(f,H){return f?f.empty||!(f.message||f.inputField||H):!0};
_.R.onLowerBuyButtonClick=function(){var f,H=_.U((f=this.data)==null?void 0:f.buyButton,_.nv);H&&H.trackingParams&&!mpR(H.command)&&(f=_.zK(H.trackingParams))&&(H=_.uy())&&_.Ti(H,f)};
_.R.shouldSupportWholeItemClick=function(){return!0};
_.H7.Object.defineProperties(wt.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?0:f.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
wt.prototype.isDeletedChanged=wt.prototype.isDeletedChanged;wt.prototype.messageChanged=wt.prototype.messageChanged;wt.prototype.dataChanged=wt.prototype.dataChanged;_.E([_.B(Veb.YtPdgLiveChatItemBehavior),_.N("design:type",Object)],wt.prototype,"ytPdgLiveChatItemBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],wt.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.PH),_.N("design:type",Object)],wt.prototype,"ytLiveChatReduxBehavior",void 0);
_.E([_.B(_.cp.YtLiveChatItemBehavior),_.N("design:type",_.Xo)],wt.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],wt.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],wt.prototype,"data",void 0);_.E([_.F({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:Zje}),_.N("design:type",Object)],wt.prototype,"engagementState",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.N("design:type",Boolean)],wt.prototype,"isUserEditable",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.N("design:type",Boolean)],wt.prototype,"hasHeartButton",void 0);_.E([_.F({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.N("design:type",Boolean)],wt.prototype,"showOnlyHeader",void 0);
_.E([_.F({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.N("design:type",Boolean)],wt.prototype,"showFooterDivider",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Object)],wt.prototype,"allowAnimations",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],wt.prototype,"dashboardMoneyFeed",void 0);_.E([_.F({computed:"computeNoveltyImage(data)"}),_.N("design:type",Number)],wt.prototype,"noveltyWidth",void 0);
_.E([_.F({computed:"computeAuthorPhotoSize(data)"}),_.N("design:type",Number)],wt.prototype,"authorPhotoSize",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],wt.prototype,"modern",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],wt.prototype,"noPadding",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wt.prototype,"dataChanged",null);
_.E([_.Zw("data.message"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wt.prototype,"messageChanged",null);_.E([_.z("data","dashboardMoneyFeed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],wt.prototype,"hideLowerBumper",null);_.E([_.Zw("isDeleted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wt.prototype,"isDeletedChanged",null);
_.E([_.u({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],wt);
_.G(wt,"yt-live-chat-paid-message-renderer",function(){if(NGb===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;EAn===void 0&&(EAn=document.createElement("template"));var t=EAn;v.call(H,t.content.cloneNode(!0),f.content.firstChild);NGb=f}f=NGb;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var nG_;var p0H;var q8=function(){var f=_.er.apply(this,arguments)||this;f._noAccessors=!0;return f};
_.e(q8,_.er);q8.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.a8("openPopupConfig")};
_.E([_.B(_.IM.YtOpenPopupBehavior),_.N("design:type",Object)],q8.prototype,"ytOpenPopupBehavior",void 0);_.E([_.L2()],q8);_.fm=[_.IM.YtOpenPopupBehavior,q8.prototype];var QRZ;var iE=[_.ec,R8n,_.Kv,_.LG,_.wI,_.BKn,_.zD,_.PPh,_.B1,Ewb];_.J("web_watch_get_updated_metadata_response_processing")&&iE.push(_.h4M);_.J("web_continuation_response_processing")&&iE.push(_.GI);var VRR=new _.iN("RESPONSE_RECEIVED_COMMANDS"),a35=new _.iN("RESPONSE_RECEIVED_COMMANDS");var KiR="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),rFg=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],FiR=["GET_UNSEEN_NOTIFICATION_COUNT"];var HG=function(){var f=_.er.apply(this,arguments)||this;f._noAccessors=!0;f.serviceEndpointHandlers=[];return f};
_.e(HG,_.er);HG.prototype.created=function(){var f=this;this.endpointHandlerActionMap={"yt-service-request":function(H,v,t,M){var h;return zJb(f.hostElement,H,v,t,M,f.serviceEndpointHandlers,(h=f.onEntitiesUpdated)==null?void 0:h.bind(f))}}};
HG.prototype.attached=function(){_.b$(_.A7.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
HG.prototype.detached=function(){_.i$(_.A7.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.E([_.L2()],HG);_.utg=[HG.prototype];var aAb,PRH=function(){return aAb!==void 0?aAb:aAb=document.createElement("template")};
document.head.appendChild(PRH().content);var Gdo;var CR9=document.head,EGn=CR9.appendChild,Nla;if(Gdo===void 0){var cRH=document.createElement("template");_.x(cRH,"\x3c!--css-build:shady--\x3e");cRH.content.insertBefore(PRH().content.cloneNode(!0),cRH.content.firstChild);Gdo=cRH}Nla=Gdo;EGn.call(CR9,Nla.content);var X0r,ARZ=function(){return X0r!==void 0?X0r:X0r=document.createElement("template")};
document.head.appendChild(ARZ().content);var biv;var iiC=document.head,kdv=iiC.appendChild,Tl9;if(biv===void 0){var w0H=document.createElement("template");_.x(w0H,"\x3c!--css-build:shady--\x3e");w0H.content.insertBefore(ARZ().content.cloneNode(!0),w0H.content.firstChild);biv=w0H}Tl9=biv;kdv.call(iiC,Tl9.content);var qla;_.DE("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.DE("sharingRendererButtons","buttonRenderer","ytd-button-renderer");qla=_.J("web_button_rework")&&_.P6("BUTTON_REWORK")||_.J("web_button_rework_with_live");_.vG=function(){var f=_.K.apply(this,arguments)||this;f.isPressed=!1;f.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return f};
_.e(_.vG,_.K);_.R=_.vG.prototype;_.R.created=function(){this.showTooltips=!0};
_.R.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.R.onHintIdChanged=function(){var f=this,H,v,t=(H=this.ytButtonBehavior.data)==null?void 0:(v=H.hint)==null?void 0:v.hintRenderer;if(t&&t.hintId){H=_.$E(this.hostElement,"yt-get-opened-popups-action");H=(H&&H.length===1?H[0]:[]).length>0;var M=null;t.hintId!=="sponsor-pre-purchase"||H?t.hintId.startsWith("sponsor-post-purchase")&&!H?M=J1o("membership-manage"):t.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!H&&(M=J1o("membership-freebie-join")):M=J1o("membership-join");M&&_.nN.addLowPriorityJob(function(){for(var h=
_.V(M),y=h.next();!y.done;y=h.next())f.ytComponentBehavior.resolveCommand(y.value)})}};
_.R.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.R.onYtNavigate=function(f){var H=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(f.detail.endpoint);H&&(f.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(H))};
_.R.onYtServiceRequestSent=function(f,H){this.handleServiceRequestActions(H);_.YE(this.hostElement,"yt-service-request-sent-button-renderer")};
_.R.onServiceRequestCompleted=function(f,H){this.handleServiceRequestActions(H);_.YE(this.hostElement,"yt-service-request-completed-button-renderer")};
_.R.updateButton=function(f){var H;if(f=(H=_.U(f,Tmh))==null?void 0:H.updatedButton)this.ytButtonBehavior.data=_.U(f,_.nv)};
_.R.handleUpdateButtonAction=function(f){var H=this.ytButtonBehavior.data;H.targetId&&f.updateButtonAction.targetId&&H.targetId===f.updateButtonAction.targetId&&this.updateButton(f)};
_.R.handleServiceRequestActions=function(f){if(f=f.actions)for(var H=0;H<f.length;H++)this.updateButton(f[H])};
_.H7.Object.defineProperties(_.vG,{template:{configurable:!0,enumerable:!0,get:function(){if(QRZ===void 0){var f=document.createElement("template");_.x(f,"\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");f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);QRZ=f}f=QRZ;return f}}});
_.vG.prototype.onServiceRequestCompleted=_.vG.prototype.onServiceRequestCompleted;_.vG.prototype.onYtServiceRequestSent=_.vG.prototype.onYtServiceRequestSent;_.vG.prototype.onYtNavigate=_.vG.prototype.onYtNavigate;_.vG.prototype.onPressedStateChanged=_.vG.prototype.onPressedStateChanged;_.vG.prototype.onHintIdChanged=_.vG.prototype.onHintIdChanged;_.E([_.F(),_.N("design:type",Object)],_.vG.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],_.vG.prototype,"isPressed",void 0);
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],_.vG.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.y2H.YtButtonBehavior),_.N("design:type",Object)],_.vG.prototype,"ytButtonBehavior",void 0);_.E([_.B(_.fm),_.N("design:type",Object)],_.vG.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],_.vG.prototype,"ytComponentBehavior",void 0);
_.E([_.B(e3.YtRenderButtonBehavior),_.N("design:type",Object)],_.vG.prototype,"ytRenderButtonBehavior",void 0);_.E([_.Zw("data.hint.hintRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],_.vG.prototype,"onHintIdChanged",null);_.E([_.Zw("isPressed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],_.vG.prototype,"onPressedStateChanged",null);
_.E([_.sE("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],_.vG.prototype,"onYtNavigate",null);_.E([_.sE("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.ER]),_.N("design:returntype")],_.vG.prototype,"onYtServiceRequestSent",null);
_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.TI]),_.N("design:returntype")],_.vG.prototype,"onServiceRequestCompleted",null);_.E([_.u({is:"ytd-button-renderer",disableElementRegistration:qla})],_.vG);var t_=function(){var f=_.K.apply(this,arguments)||this;f.modern=_.J("web_button_rework_with_live");f.buttonOverrides={style:"overlay",type:"filled"};return f};
_.e(t_,_.K);_.R=t_.prototype;_.R.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"}}}}};
_.R.ready=function(){var f=document.querySelector("yt-live-chat-app");f&&f.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.R.dataChanged=function(){if(this.data&&this.data.sticker){var f=_.YK(this.data.sticker.thumbnails,this.stickerWidth);f||_.XWR(f).thenCatch(function(){_.pb(new _.e$("Failed to load Super Sticker with url",f))})}};
_.R.computeAuthorPhotoSize=function(f){return(f==null?0:f.isV2Style)?32:40};
_.R.computeIsV2Style=function(f){return(f==null?0:f.isV2Style)?!0:!1};
_.R.onStickerLoaded=function(f){var H,v,t;(H=_.HB(f))==null||(v=H.parentNode)==null||(t=v.classList)==null||t.add("sticker-loaded")};
_.R.computeNoveltyImageWidth=function(f){var H,v;if(f==null?0:(H=f.headerOverlayImage)==null?0:(v=H.thumbnails)==null?0:v.length){H=f.headerOverlayImage.thumbnails[0];var t,M;if((t=f.pdgPurchasedNoveltyLoggingDirectives)==null?0:(M=t.loggingDirectives)==null?0:M.trackingParams){var h,y;lLe((h=f.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(y=h.loggingDirectives)==null?void 0:y.trackingParams)}return H.width||0}return 0};
_.R.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.R.updateStickerStyles=function(){var f=this.data;f&&(f={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(f.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(f.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(f.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(f.authorNameTextColor)},
_.Sr(this.hostElement,f))};
_.R.onBuyButtonClick=function(){var f,H=_.U((f=this.data)==null?void 0:f.buyButton,_.nv);H&&!mpR(H.command)&&this.ytRendererBehavior.logExplicitClick(H)};
_.R.shouldSupportWholeItemClick=function(){return!0};
_.H7.Object.defineProperties(t_.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 f;return((f=this.data)==null?0:f.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
t_.prototype.updateStickerStyles=t_.prototype.updateStickerStyles;t_.prototype.isDeletedChanged=t_.prototype.isDeletedChanged;t_.prototype.onStickerLoaded=t_.prototype.onStickerLoaded;t_.prototype.dataChanged=t_.prototype.dataChanged;_.E([_.B(Veb.YtPdgLiveChatItemBehavior),_.N("design:type",Object)],t_.prototype,"ytPdgLiveChatItemBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],t_.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],t_.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.cp.YtLiveChatItemBehavior),_.N("design:type",_.Xo)],t_.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],t_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],t_.prototype,"data",void 0);
_.E([_.F({computed:"computeAuthorPhotoSize(data)"}),_.N("design:type",Number)],t_.prototype,"authorPhotoSize",void 0);_.E([_.F(),_.N("design:type",Boolean)],t_.prototype,"isDeleted",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],t_.prototype,"dashboardMoneyFeed",void 0);_.E([_.F({computed:"computeNoveltyImageWidth(data)"}),_.N("design:type",Number)],t_.prototype,"noveltyWidth",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],t_.prototype,"modern",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.N("design:type",Boolean)],t_.prototype,"isV2Style",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],t_.prototype,"dataChanged",null);_.E([_.sE("yt-img-shadow-loaded"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],t_.prototype,"onStickerLoaded",null);
_.E([_.z("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],t_.prototype,"stickerWidth",null);_.E([_.z("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],t_.prototype,"stickerHeight",null);_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],t_.prototype,"hasHeartButton",null);_.E([_.z("data","dashboardMoneyFeed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],t_.prototype,"hideLowerBumper",null);
_.E([_.Zw("isDeleted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],t_.prototype,"isDeletedChanged",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],t_.prototype,"updateStickerStyles",null);_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],t_);
_.G(t_,"yt-live-chat-paid-sticker-renderer",function(){if(p0H===void 0){var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;nG_===void 0&&(nG_=document.createElement("template"));var t=nG_;v.call(H,t.content.cloneNode(!0),f.content.firstChild);p0H=f}f=p0H;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var fLZ;var Hj9;var vSr,tbo=function(){return vSr!==void 0?vSr:vSr=document.createElement("template")};
document.head.appendChild(tbo().content);var Mbv,hbM=function(){return Mbv!==void 0?Mbv:Mbv=document.createElement("template")};
document.head.appendChild(hbM().content);var RbC;var Vba,ybb=function(){return Vba!==void 0?Vba:Vba=document.createElement("template")};
document.head.appendChild(ybb().content);var Ymn;var mso=document.head,$sn=mso.appendChild,WYa;if(Ymn===void 0){var Oj9=document.createElement("template");_.x(Oj9,"\x3c!--css-build:shady--\x3e");Oj9.content.insertBefore(ybb().content.cloneNode(!0),Oj9.content.firstChild);Ymn=Oj9}WYa=Ymn;$sn.call(mso,WYa.content);var gSb=document.head,ILT=gSb.appendChild,SmZ;if(RbC===void 0){var MW=document.createElement("template");_.x(MW,"\x3c!--css-build:shady--\x3e");MW.content.insertBefore(hbM().content.cloneNode(!0),MW.content.firstChild);MW.content.insertBefore(tbo().content.cloneNode(!0),MW.content.firstChild);RbC=MW}SmZ=RbC;ILT.call(gSb,SmZ.content);var h_=function(){var f=_.er.apply(this,arguments)||this;f.focusedIndex=0;f.verticalOffset=0;f.verticalAlign="top";f.dynamicAlign=!0;return f};
_.e(h_,_.er);h_.prototype.emojiUrl=function(f){f=_.CW(this.emojiManager,f);if(!f)return"";var H;f=(H=f.image)==null?void 0:H.thumbnails;return _.YK(f,24)||""};
var dsM=function(f){var H;f.emojiVariants&&(H=f.data)!=null&&H.target&&_.qV(f,function(){f.set("verticalOffset",-1*f.hostElement.clientHeight);var v=_.mF(f.hostElement).querySelector("img");v&&v.focus()})};
_.R=h_.prototype;_.R.onKeyboardEnter=function(){};
_.R.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.R.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.R.onKeyDown=function(f){switch(f.keyCode){case 13:this.onKeyboardEnter();f.preventDefault();break;case 40:this.changeFocus(1);f.preventDefault();break;case 38:this.changeFocus(-1);f.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.R.onYtEmojiSelect=function(f){var H=this,v,t,M,h,y,m,W,I;return _.Y(function(S){if(S.nextAddress==1)return t=(v=H.data)==null?void 0:v.emoji,y=((M=t)==null?void 0:M.stickyPrefId)||((h=t)==null?void 0:h.emojiId),W=(m=f.detail)==null?void 0:m.emojiId,y&&W&&y!==W?S.yield((I=H.emojiManager)==null?void 0:lAr(I,t,W),2):S.return();_.mb(H.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[t,W]);_.Bj(S)})};
_.R.changeFocus=function(f){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+f+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(f=_.mF(this.hostElement).querySelector("#variants"))&&f.children[this.focusedIndex].focus())};
_.H7.Object.defineProperties(h_.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
h_.prototype.onYtEmojiSelect=h_.prototype.onYtEmojiSelect;h_.prototype.onKeyDown=h_.prototype.onKeyDown;h_.prototype.onEmojiVariantsChanged=h_.prototype.onEmojiVariantsChanged;h_.prototype.onVerticalOffsetOrPositionTargetChanged=h_.prototype.onVerticalOffsetOrPositionTargetChanged;_.E([_.B(_.GA),_.N("design:type",Object)],h_.prototype,"ironOverlayBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],h_.prototype,"data",void 0);_.E([_.F(),_.N("design:type",_.G$)],h_.prototype,"emojiManager",void 0);
_.E([_.F(),_.N("design:type",Object)],h_.prototype,"emojiVariants",void 0);_.E([_.F(),_.N("design:type",Object)],h_.prototype,"focusedIndex",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],h_.prototype,"positionTarget",null);_.E([_.F({reflectToAttribute:!0}),_.z("verticalOffset","data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],h_.prototype,"isPositioned",null);_.E([_.F(),_.N("design:type",Object)],h_.prototype,"verticalOffset",void 0);
_.E([_.F(),_.N("design:type",Object)],h_.prototype,"verticalAlign",void 0);_.E([_.F(),_.N("design:type",Object)],h_.prototype,"dynamicAlign",void 0);_.E([_.Zw("verticalOffset","positionTarget"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],h_.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.E([_.Zw("emojiVariants"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],h_.prototype,"onEmojiVariantsChanged",null);
_.E([_.sE("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],h_.prototype,"onKeyDown",null);_.E([_.sE("yt-emoji-select"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype",Promise)],h_.prototype,"onYtEmojiSelect",null);_.E([_.L2()],h_);var jT_=[h_.prototype];var sTH;var Zja;var JbC=/medium-light|medium-dark|light|medium|dark/,lLa=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,Us_=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),Ri=function(){var f=_.K.apply(this,arguments)||this;f.userSelection={left:null,right:null};f.scrollAction="lock";f.isEmojiDraftInProgress=!1;return f};
_.e(Ri,_.K);_.R=Ri.prototype;_.R.onClick=function(f){f=_.HB(f);f instanceof HTMLImageElement&&this.selectOrUpdateEmoji(f)};
_.R.selectOrUpdateEmoji=function(f){var H=f.getAttribute("selection");H&&(H==="default"?_.YE(this.hostElement,"yt-emoji-select",_.CW(this.emojiManager,f.id)):H==="left"?this.userSelection=Object.assign({},this.userSelection,{left:f.src}):H==="right"?this.userSelection=Object.assign({},this.userSelection,{right:f.src}):H==="user"&&this.userSelection.left&&this.userSelection.right&&_.YE(this.hostElement,"yt-emoji-select",_.CW(this.emojiManager,f.id)))};
_.R.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.R.onMultiSelectorThumbnailRowChanged=function(){var f,H,v;((f=this.data)==null?0:(H=f.emoji)==null?0:(v=H.multiSelectorThumbnailRow)==null?0:v.length)&&this.openSelector()};
_.R.getThumbnailFromEmojiRow=function(f){var H,v;return(f==null?void 0:(H=f.thumbnails)==null?void 0:(v=H[0])==null?void 0:v.url)||""};
_.R.getEmojiAltTextForPartialSelector=function(f){var H;return((H=this.getThumbnailFromEmojiRow(f).match(lLa))==null?void 0:H[0])||""};
_.R.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.R.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.R.getRowSelection=function(f){return["left","right"][f]};
_.R.getIdFromComposedEmoji=function(f){return(f==null?void 0:f.emojiId)||""};
_.R.getEmojiFromPartialSelections=function(f,H){if(!f&&!H)return null;var v,t,M=(v=this.data)==null?void 0:(t=v.emoji)==null?void 0:t.variantIds;if(!M||!M.length)return null;var h;f=(h=f.match(JbC))==null?void 0:h[0];var y;H=(y=H.match(JbC))==null?void 0:y[0];if(!f||!H)return null;var m=Us_.get(f);y=Us_.get(H);if(m===y){y=Array.from(Us_.values()).filter(function(I){return I!==m}).join("|");
var W=new RegExp("^((?!("+y+")).)*"+m+"$")}else W=new RegExp(m+".*"+y);return(M=M.find(function(I){return W.test(I)}))&&_.CW(this.emojiManager,M)||null};
_.R.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var f,H=this.ytEmojiSelectorBehavior.emojiUrl(((f=this.data.emoji)==null?void 0:f.emojiId)||"");_.mF(this.hostElement).querySelector('[selection="user"]').src.includes(H)||(this.isEmojiDraftInProgress=!0)}};
_.R.onDomChange=function(){dsM(this.ytEmojiSelectorBehavior)};
_.R.getFocusableElements=function(){return _.mF(this.hostElement).querySelectorAll("img").filter(function(f){return f.getAttribute("role")==="option"})};
_.R.changeFocus=function(f){var H=this.getFocusableElements();H!=null&&H.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+f+H.length)%H.length,this.ytEmojiSelectorBehavior.focusedIndex<H.length&&(f=H[this.ytEmojiSelectorBehavior.focusedIndex])&&f.focus())};
_.R.onKeyboardEnter=function(){var f=this.getFocusableElements();f!=null&&f.length&&(f=f[this.ytEmojiSelectorBehavior.focusedIndex])&&f instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(f),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.H7.Object.defineProperties(Ri.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var f=this,H,v,t;return this.emojiManager&&((H=this.data)==null?0:(v=H.emoji)==null?0:(t=v.variantIds)==null?0:t.length)?this.data.emoji.variantIds.map(function(M){return!!M&&_.CW(f.emojiManager,M)}).filter(function(M){return!!M}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var f,H=(f=this.userSelection)==null?void 0:f.left,v;f=(v=this.userSelection)==null?void 0:v.right;return H&&f?this.getEmojiFromPartialSelections(H,f):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.composedEmojiSelection)==null?0:f.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var H;f=(H=this.userSelection)==null?void 0:H.left;var v;H=(v=this.userSelection)==null?void 0:v.right;if(!f&&!H){var t;return this.ytEmojiSelectorBehavior.emojiUrl(((t=this.data.emoji)==null?void 0:t.emojiId)||"")}return f&&!H?f:!f&&H?H:""}}});
Ri.prototype.onMultiSelectorThumbnailRowChanged=Ri.prototype.onMultiSelectorThumbnailRowChanged;Ri.prototype.onClick=Ri.prototype.onClick;_.E([_.B(_.GA),_.N("design:type",Object)],Ri.prototype,"ironOverlayBehavior",void 0);_.E([_.B(jT_),_.N("design:type",Object)],Ri.prototype,"ytEmojiSelectorBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Ri.prototype,"data",void 0);_.E([_.F(),_.N("design:type",_.G$)],Ri.prototype,"emojiManager",void 0);
_.E([_.F(),_.N("design:type",Object)],Ri.prototype,"userSelection",void 0);_.E([_.F(),_.N("design:type",Object)],Ri.prototype,"scrollAction",void 0);_.E([_.F(),_.N("design:type",Object)],Ri.prototype,"isEmojiDraftInProgress",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ri.prototype,"emojiVariants",null);_.E([_.z("data","userSelection"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ri.prototype,"composedEmojiSelection",null);
_.E([_.sE("click"),_.N("design:type",Function),_.N("design:paramtypes",[MouseEvent]),_.N("design:returntype")],Ri.prototype,"onClick",null);_.E([_.Zw("data.emoji.multiSelectorThumbnailRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ri.prototype,"onMultiSelectorThumbnailRowChanged",null);_.E([_.z("data","userSelection","composedEmojiSelection"),_.N("design:type",String),_.N("design:paramtypes",[])],Ri.prototype,"draftEmojiUrl",null);
_.E([_.GW({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],Ri);
_.G(Ri,"yt-emoji-multi-person-selector",function(){if(Zja===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;sTH===void 0&&(sTH=document.createElement("template"));var t=sTH;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Zja=f}f=Zja;return f},{mode:2});var ebh;var LYg;var VW=function(){var f=_.K.apply(this,arguments)||this;f.tooltip_=null;return f};
_.e(VW,_.K);_.R=VW.prototype;_.R.dataChanged_=function(){var f;if((f=this.data)==null?0:f.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.mF(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.gX)(this.tooltip_).textContent=this.data.tooltip};
_.R.computeTargetId=function(){var f;return((f=this.data)==null?void 0:f.targetId)||""};
_.R.computeId_=function(f){return f};
_.R.computeIcon_=function(f){return _.SW(f)};
_.R.onTap_=function(){this.active=!this.active;_.YE(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.R.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.bM("active-changed",this.active))};
_.H7.Object.defineProperties(VW.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var f,H;if((f=this.data)==null?0:(H=f.icon)==null?0:H.iconType)return this.data.icon.iconType==="SUPER_STICKER";var v,t;return((v=this.data)==null?void 0:(t=v.icon)==null?void 0:t.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
VW.prototype.activeChangedForBinding=VW.prototype.activeChangedForBinding;VW.prototype.dataChanged_=VW.prototype.dataChanged_;_.E([_.B(_.GF.YtLiveChatTooltipTargetingBehavior),_.N("design:type",Object)],VW.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],VW.prototype,"data",void 0);_.E([_.F({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.N("design:type",String)],VW.prototype,"id",void 0);
_.E([_.F({computed:"computeTargetId(data.targetId)"}),_.N("design:type",String)],VW.prototype,"targetId",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],VW.prototype,"active",void 0);_.E([_.F({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.N("design:type",String)],VW.prototype,"icon",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],VW.prototype,"dataChanged_",null);
_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],VW.prototype,"iconFilled",null);_.E([_.Zw("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],VW.prototype,"activeChangedForBinding",null);_.E([_.GW({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],VW);
_.G(VW,"yt-emoji-picker-category-button-renderer",function(){if(LYg===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;ebh===void 0&&(ebh=document.createElement("template"));var t=ebh;v.call(H,t.content.cloneNode(!0),f.content.firstChild);LYg=f}f=LYg;return f},{mode:2});var xsa;var BaT;var yW=function(){var f=_.K.apply(this,arguments)||this;f.ariaLabel=null;f.ariaActivedescendant=null;f.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};f.JSC$14160_ignoreNextFocus_=!1;f.longPressTimeoutId=-1;return f};
_.e(yW,_.K);_.R=yW.prototype;_.R.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.R.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.R.emojiChanged_=function(){this.changeFocus_(0,!1);for(var f=_.UV(),H=0;H<this.emoji.length;H++){var v={veType:88013,elementIndex:H},t=this.emoji[H];t.isCustomEmoji&&(t=document.querySelector(("#"+t.emojiId).replace("/","\\/")))&&(v=_.lV(f,v))&&(t.visualElement=v)}};
_.R.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.R.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.R.emojiSkinToneChanged_=function(f){this.skinTone=f};
_.R.dataChanged=function(){this.data&&this.data.emojiData&&jRo(this.emojiManager,this.data.emojiData)};
_.R.emojiUrl=function(f){f=this.getEmoji(f);if(!f)return"";var H;f=(H=f.image)==null?void 0:H.thumbnails;return _.YK(f,24)||""};
_.R.emojiAlt=function(f){var H=this.get("image.accessibility.accessibilityData.label",f);return H?H:f.isCustomEmoji?f.shortcuts[0]:f.emojiId};
_.R.emojiAriaLabel=function(f){return f.shortcuts?f.shortcuts[0]:""};
_.R.emojiAriaSelected=function(f,H,v){return f&&v==H?"true":"false"};
_.R.getEmoji=function(f){if(this.emojiManager)return this.shouldUseStickyPreferences?ZiC(this.emojiManager,f):EL(this.emojiManager,f)};
_.R.computeId_=function(f){return f.categoryId||""};
_.R.computeEmoji=function(f){var H=this;return this.emojiManager?f.emojiIds?f.emojiIds.map(function(v){return v?_.CW(H.emojiManager,v):null}).filter(AFR):f.emojiData?f.emojiData.map(function(v){var t=!!v.emojiId&&_.CW(H.emojiManager,v.emojiId);
return t?Object.assign({},t,v):null}).filter(AFR):[]:[]};
_.R.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.R.computeAriaLabel_=function(f){return _.fG(f)};
_.R.computeAriaActivedescendant_=function(f,H){return f&&f[H]?f[H].emojiId||"":""};
_.R.handleLongPressEmojiWithVariants=function(f,H){this.changeFocusToEmoji(f.emojiId,!1);this.openVariantSelector(f,H)};
_.R.onMouseDown=function(f){var H=this;this.hostElement!==document.activeElement&&(this.JSC$14160_ignoreNextFocus_=!0);if(f.button===0){var v=_.HB(f);if(v instanceof HTMLImageElement){var t=_.mF(this.hostElement).querySelector("#repeat").itemForElement(v);this.emojiContainsVariants(t)&&(this.longPressTimeoutId=setTimeout(function(){H.handleLongPressEmojiWithVariants(t,v)},500))}}};
_.R.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.R.onFocus=function(){this.JSC$14160_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14160_ignoreNextFocus_=!1};
_.R.onBlur_=function(){this.showFocus=!1};
_.R.emojiContainsVariants=function(f){return!!(f&&f.variantIds&&f.variantIds.length)};
_.R.onClick=function(f){clearTimeout(this.longPressTimeoutId);f=_.HB(f);if(f instanceof HTMLImageElement){var H=f.id;this.changeFocusToEmoji(H,!1);var v=this.getEmoji(H),t;if(t=this.shouldUseStickyPreferences&&this.emojiContainsVariants(v)){var M;t=!((M=this.emojiManager.emojiMap[H])!=null&&M.stickyPrefId)}t?(M=_.mF(this.hostElement).querySelector("#repeat").itemForElement(f),this.openVariantSelector(M,f)):_.YE(this.hostElement,"yt-emoji-select",v)}};
_.R.isActiveEmojiWithVariants=function(f,H){return f&&H?H.stickyPrefId?f===H.stickyPrefId:f===H.emojiId:!1};
_.R.onCloseEmojiVariantSelector=function(f){this.activeEmojiWithVariantsId===f&&(this.activeEmojiWithVariantsId="")};
_.R.onMouseOver_=function(f){f=_.HB(f);f instanceof HTMLImageElement&&_.YE(this.hostElement,"yt-emoji-hover",_.CW(this.emojiManager,f.id))};
_.R.changeFocus_=function(f,H){this.focusedIndex=(this.focusedIndex+f+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(f=this.emoji[this.focusedIndex],H&&(this.showFocus=!0,_.mF(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.YE(this.hostElement,"yt-emoji-hover",f)))};
_.R.changeFocusToEmoji=function(f,H){if(f){var v=this.emoji.findIndex(function(t){return t.emojiId===f});
v!==-1&&this.changeFocus_(v-this.focusedIndex,H)}};
_.R.onKeyDown_=function(f){switch(f.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var H=this.emoji[this.focusedIndex];if(H&&H.emojiId){if(this.emojiContainsVariants(H)){var v=_.mF(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(H,v)}else _.YE(this.hostElement,"yt-emoji-select",EL(this.emojiManager,H.emojiId)),this.hostElement.focus();f.preventDefault()}}break;case 40:this.changeFocus_(1,!0);f.preventDefault();break;case 38:this.changeFocus_(-1,!0),
f.preventDefault()}};
_.R.onEmojiStickyPreferenceChanged=function(f,H){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&f.emojiId&&f.variantIds&&f.variantIds.includes(H)&&this.activeEmojiWithVariantsId!==H&&this.setStickyEmojiPreference(f.emojiId,H)};
_.R.openVariantSelector=function(f,H){this.activeEmojiWithVariantsId=f.stickyPrefId||f.emojiId||"";_.YE(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:f,target:H})};
_.R.setStickyEmojiPreference=function(f,H){if(this.data){var v=this.emoji.findIndex(function(M){return M.emojiId===f});
if(v!==-1){var t=this.emoji[v];t.stickyPrefId=H;this.set("emoji."+v,Object.assign({},t));this.activeEmojiWithVariantsId=H}}};
yW.prototype.onKeyDown_=yW.prototype.onKeyDown_;yW.prototype.onMouseOver_=yW.prototype.onMouseOver_;yW.prototype.onClick=yW.prototype.onClick;yW.prototype.onBlur_=yW.prototype.onBlur_;yW.prototype.onFocus=yW.prototype.onFocus;yW.prototype.onMouseUp=yW.prototype.onMouseUp;yW.prototype.onMouseDown=yW.prototype.onMouseDown;yW.prototype.dataChanged=yW.prototype.dataChanged;yW.prototype.disableIncrementalLoadingChanged_=yW.prototype.disableIncrementalLoadingChanged_;yW.prototype.emojiManagerChanged_=yW.prototype.emojiManagerChanged_;
yW.prototype.emojiChanged_=yW.prototype.emojiChanged_;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],yW.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],yW.prototype,"data",void 0);_.E([_.F({computed:"computeId_(data)"}),_.N("design:type",String)],yW.prototype,"id",void 0);_.E([_.F({computed:"computeEmoji(data)"}),_.N("design:type",Array)],yW.prototype,"emoji",void 0);_.E([_.F(),_.N("design:type",Number)],yW.prototype,"skinTone",void 0);
_.E([_.F(),_.N("design:type",_.G$)],yW.prototype,"emojiManager",void 0);_.E([_.F(),_.N("design:type",Boolean)],yW.prototype,"disableIncrementalLoading",void 0);_.E([_.F({value:0}),_.N("design:type",Number)],yW.prototype,"focusedIndex",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],yW.prototype,"showFocus",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.N("design:type",Object)],yW.prototype,"ariaLabel",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.N("design:type",Object)],yW.prototype,"ariaActivedescendant",void 0);_.E([_.F({value:60}),_.N("design:type",Number)],yW.prototype,"domRepeatTargetFramerate",void 0);_.E([_.F({value:1}),_.N("design:type",Number)],yW.prototype,"domRepeatInitialCount",void 0);_.E([_.F({value:""}),_.N("design:type",String)],yW.prototype,"activeEmojiWithVariantsId",void 0);
_.E([_.F({value:!1}),_.N("design:type",Boolean)],yW.prototype,"shouldUseStickyPreferences",void 0);_.E([_.Zw("emoji"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yW.prototype,"emojiChanged_",null);_.E([_.Zw("emojiManager"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yW.prototype,"emojiManagerChanged_",null);
_.E([_.Zw("disableIncrementalLoading"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yW.prototype,"disableIncrementalLoadingChanged_",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yW.prototype,"dataChanged",null);_.E([_.sE("mousedown"),_.N("design:type",Function),_.N("design:paramtypes",[Object]),_.N("design:returntype")],yW.prototype,"onMouseDown",null);
_.E([_.sE("mouseup"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yW.prototype,"onMouseUp",null);_.E([_.sE("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yW.prototype,"onFocus",null);_.E([_.sE("blur"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yW.prototype,"onBlur_",null);
_.E([_.sE("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],yW.prototype,"onClick",null);_.E([_.sE("mouseover"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],yW.prototype,"onMouseOver_",null);_.E([_.sE("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],yW.prototype,"onKeyDown_",null);
_.E([_.GW({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],yW);
_.G(yW,"yt-emoji-picker-category-renderer",function(){if(BaT===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;xsa===void 0&&(xsa=document.createElement("template"));var t=xsa;v.call(H,t.content.cloneNode(!0),f.content.firstChild);BaT=f}f=BaT;return f},{mode:2});var zbh;var FYn;var rbT;var KYC;var YI=function(){var f=_.K.apply(this,arguments)||this;f.ariaLabel=null;f.ariaActivedescendant=null;f.getFormattedStringRawText=_.fG;f.JSC$14166_ignoreNextFocus_=!1;return f};
_.e(YI,_.K);_.R=YI.prototype;_.R.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")};
_.R.emojiUrl=function(f){var H,v;f=(H=EL(this.emojiManager,f,!0))==null?void 0:(v=H.image)==null?void 0:v.thumbnails;return _.YK(f,24)||""};
_.R.emojiAlt=function(f){var H=this.get("image.accessibility.accessibilityData.label",f);return H?H:f.isCustomEmoji?f.shortcuts[0]:f.emojiId};
_.R.emojiId=function(f){return"emoji"+f};
_.R.computeId_=function(f){return f.categoryId||""};
_.R.computeAriaActivedescendant_=function(f){return this.emoji&&f<this.emoji.length?this.emojiId(f):""};
_.R.emojiChanged_=function(){this.changeFocus_(0,!1);for(var f=_.UV(),H=0;H<this.emoji.length;H++){var v={veType:88013,elementIndex:H},t=this.emoji[H];t.isCustomEmoji&&(t=document.querySelector(("#"+t.emojiId).replace("/","\\/")))&&(v=_.lV(f,v))&&(t.visualElement=v)}};
_.R.computeEmoji_=function(f){var H=this;return this.emojiManager?f.emojiIds.map(function(v){return _.CW(H.emojiManager,v,!0)}).filter(bD3):[]};
_.R.titleOffsetChanged_=function(){var f=this.hostElement.getBoundingClientRect(),H=_.mF(this.hostElement).querySelector("#title").getBoundingClientRect();f=Math.max(0,Math.min(this.titleOffset,f.height-H.height));_.mF(this.hostElement).querySelector("#title").style.top=f+"px"};
_.R.onEmojiMouseOver_=function(f){_.YE(this.hostElement,"yt-emoji-hover",f.model.item)};
_.R.onEmojiTap_=function(f){this.data.command&&(f=rbr(_.t8().resolve(_.vh(ck)),this.data.command,f),_.YE(this.hostElement,"yt-navigate",f))};
_.R.emojiAriaLabel=function(f){return f.shortcuts[0]};
_.R.emojiAriaSelected=function(f,H,v){return f&&v==H?"true":"false"};
_.R.changeFocus_=function(f,H){var v=this.emoji.length;this.focusedIndex=(this.focusedIndex+f+v)%v;f=this.emoji[this.focusedIndex];if(H){var t;(t=_.mF(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||t.scrollIntoView(!1);_.YE(this.hostElement,"yt-emoji-hover",f)}};
_.R.onMouseDown_=function(){this.JSC$14166_ignoreNextFocus_=!0};
_.R.onFocus_=function(){this.JSC$14166_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14166_ignoreNextFocus_=!1};
_.R.onBlur_=function(){this.showFocus=!1};
_.R.onKeyDown_=function(f){switch(f.keyCode){case 13:this.onEmojiTap_(f);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);f.preventDefault();break;case 38:this.changeFocus_(-1,!0),f.preventDefault()}};
YI.prototype.onKeyDown_=YI.prototype.onKeyDown_;YI.prototype.onBlur_=YI.prototype.onBlur_;YI.prototype.onFocus_=YI.prototype.onFocus_;YI.prototype.onMouseDown_=YI.prototype.onMouseDown_;YI.prototype.onEmojiTap_=YI.prototype.onEmojiTap_;YI.prototype.titleOffsetChanged_=YI.prototype.titleOffsetChanged_;YI.prototype.emojiChanged_=YI.prototype.emojiChanged_;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],YI.prototype,"ytComponentBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],YI.prototype,"data",void 0);_.E([_.F({computed:"computeId_(data)"}),_.N("design:type",String)],YI.prototype,"id",void 0);_.E([_.F({computed:"computeEmoji_(data)"}),_.N("design:type",Array)],YI.prototype,"emoji",void 0);_.E([_.F({value:0}),_.N("design:type",Number)],YI.prototype,"titleOffset",void 0);_.E([_.F({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.N("design:type",Object)],YI.prototype,"ariaLabel",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.N("design:type",Object)],YI.prototype,"ariaActivedescendant",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],YI.prototype,"showFocus",void 0);_.E([_.F({value:0}),_.N("design:type",Number)],YI.prototype,"focusedIndex",void 0);_.E([_.F(),_.N("design:type",_.G$)],YI.prototype,"emojiManager",void 0);
_.E([_.Zw("emoji"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YI.prototype,"emojiChanged_",null);_.E([_.Zw("titleOffset"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YI.prototype,"titleOffsetChanged_",null);_.E([_.sE("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],YI.prototype,"onEmojiTap_",null);
_.E([_.sE("mousedown"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YI.prototype,"onMouseDown_",null);_.E([_.sE("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YI.prototype,"onFocus_",null);_.E([_.sE("blur"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YI.prototype,"onBlur_",null);
_.E([_.sE("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],YI.prototype,"onKeyDown_",null);_.E([_.GW({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],YI);
_.G(YI,"yt-emoji-picker-upsell-category-renderer",function(){if(KYC===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;rbT===void 0&&(rbT=document.createElement("template"));var t=rbT;v.call(H,t.content.cloneNode(!0),f.content.firstChild);KYC=f}f=KYC;return f},{mode:2});var DsM;var oSa;var my=function(){var f=_.K.apply(this,arguments)||this;f.scrollAction="lock";f.verticalAlign="top";return f};
_.e(my,_.K);_.R=my.prototype;_.R.onClick=function(f){f=_.HB(f);f instanceof HTMLImageElement&&_.YE(this.hostElement,"yt-emoji-select",_.CW(this.emojiManager,f.id))};
_.R.openSelector=function(){this.ironOverlayBehavior.open()};
_.R.onDomChange=function(){dsM(this.ytEmojiSelectorBehavior)};
_.R.computeIsFamilySelector=function(f){var H;return(f==null?void 0:(H=f.emoji)==null?void 0:H.emojiId)==="\ud83d\udc6a"};
_.R.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var f=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];f&&f.emojiId&&(_.YE(this.hostElement,"yt-emoji-select",_.CW(this.emojiManager,f.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.H7.Object.defineProperties(my.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var f=this,H,v,t;return this.emojiManager&&((H=this.data)==null?0:(v=H.emoji)==null?0:(t=v.variantIds)==null?0:t.length)?this.data.emoji.variantIds.map(function(M){return!!M&&_.CW(f.emojiManager,M)}).filter(function(M){return!!M}):[]}}});
my.prototype.onClick=my.prototype.onClick;_.E([_.B(_.GA),_.N("design:type",Object)],my.prototype,"ironOverlayBehavior",void 0);_.E([_.B(jT_),_.N("design:type",Object)],my.prototype,"ytEmojiSelectorBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],my.prototype,"data",void 0);_.E([_.F(),_.N("design:type",_.G$)],my.prototype,"emojiManager",void 0);_.E([_.F(),_.N("design:type",Object)],my.prototype,"scrollAction",void 0);_.E([_.F(),_.N("design:type",Object)],my.prototype,"verticalAlign",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.N("design:type",Boolean)],my.prototype,"isFamilySelector",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],my.prototype,"emojiVariants",null);_.E([_.sE("click"),_.N("design:type",Function),_.N("design:paramtypes",[MouseEvent]),_.N("design:returntype")],my.prototype,"onClick",null);_.E([_.GW({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],my);
_.G(my,"yt-emoji-variant-selector",function(){if(oSa===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;DsM===void 0&&(DsM=document.createElement("template"));var t=DsM;v.call(H,t.content.cloneNode(!0),f.content.firstChild);oSa=f}f=oSa;return f},{mode:2});var nSh=/:/g,pqr=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],$I=function(){var f=_.K.apply(this,arguments)||this;f.emojiVariantSelector=null;f.emojiMultiPersonSelector=null;f.identity=_.Cg;f.lastAnimationTime_=0;f.animationStart_=null;f.animationEnd_=null;return f};
_.e($I,_.K);_.R=$I.prototype;
_.R.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}}};
_.R.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.N8)};
_.R.attached=function(){_.My&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&sRv(this.emojiManager)};
_.R.dataChanged=function(){var f;if((f=this.data)==null?0:f.categories){f=this.emojiManager;var H=this.getCustomEmojiIds();f.pickerCustomEmojiIds=[].concat(_.pS(OiC),_.pS(H))}};
_.R.getCustomEmojiIds=function(){var f,H=(f=this.data.categories)==null?void 0:f.find(function(h){var y;return((y=h.emojiPickerCategoryRenderer)==null?void 0:y.categoryId)&&pqr.includes(h.emojiPickerCategoryRenderer.categoryId)}),v;
f=(v=this.data.categories)==null?void 0:v.find(function(h){return h.emojiPickerUpsellCategoryRenderer});
var t,M;return[H==null?void 0:(t=H.emojiPickerCategoryRenderer)==null?void 0:t.emojiIds,f==null?void 0:(M=f.emojiPickerUpsellCategoryRenderer)==null?void 0:M.emojiIds].flat().filter(function(h){return!!h})};
_.R.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.R.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.R.updateCategoriesAndPlaceholderInternal=function(f,H){var v=this;f&&H&&(this.categories=f.categories||[],this.categoryButtons=f.categoryButtons||[],this.resetPlaceholder(),this.search="",_.bJ(function(){v.updateButtons_()}))};
_.R.computeId_=function(f){return f.id||""};
_.R.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(f){return f.emojiPickerCategoryRenderer&&f.emojiPickerCategoryRenderer.emojiData}):!1};
_.R.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.R.onShowEmojiVariantSelector=function(f){var H=f.detail.emojiData;H.variantIds&&H.variantIds.length&&(H.multiSelectorThumbnailRow&&H.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:H,target:f.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:H,target:f.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.R.onIronOverlayClosed=function(f){var H=ZiC(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");H&&f.composedPath&&(f.composedPath().includes(_.mF(this.hostElement).querySelector("#emoji-variant-selector"))||f.composedPath().includes(_.mF(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.mb(this.hostElement,"yt-close-emoji-variant-selector",[H.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.R.onEmojiVariantSelectorMouseup=function(f){var H=f.target.firstChild;this.variantSelectorOpened&&H&&_.bJ(function(){H.noCancelOnOutsideClick=!1},100)};
_.R.onEmojiVariantSelectorMousedown=function(f){f=f.target.firstChild;this.variantSelectorOpened&&f&&(f.noCancelOnOutsideClick=!1)};
_.R.onSelectCategory_=function(f){var H=this.search!="";this.search="";for(var v=_.mF(this.hostElement).querySelector("#categories").children,t=0;t<v.length;t++){var M=v[t];if(M.id==f.detail.categoryId){H?(_.mF(this.hostElement).querySelector("#categories").scrollTop=M.offsetTop,this.updateButtons_()):(this.animationStart_=_.mF(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=M.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.R.onEmojiHover_=function(f){this.placeholder=f.detail.shortcuts?f.detail.shortcuts[0]:""};
_.R.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.R.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.R.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.R.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.R.computeSearchCategory_=function(f){f=f.replace(nSh,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();f=f.split(" ");for(var H=[],v=this.emojiManager.emojis,t=0;t<v.length;t++){var M=v[t];if(M.searchTerms)for(var h=0;h<M.searchTerms.length;h++){for(var y=M.searchTerms[h].toLocaleLowerCase(),m=!1,W=0;W<f.length;W++)if(y.indexOf(f[W])!=-1){m=!0;break}if(m&&(!M.isCustomEmoji||!M.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(M.emojiId))){H.push(M.emojiId);
break}}}return{categoryId:-1,emojiIds:H}};
_.R.computeSearchEmptyMessage_=function(f,H){return f&&H&&H.emojiIds&&H.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.R.computeSearching_=function(f){return this.emojiManager&&f.replace(nSh,"").length>1};
_.R.computeSkinToneHidden=function(){var f;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((f=this.data)==null||!f.hideSkinTonePicker)};
_.R.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.R.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.R.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.R.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.R.selectSkinTone_=function(f){f=Number(f.target.getAttribute("tone"));this.set("emojiManager.skinTone",f);_.mb(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[f]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.R.skinToneChanged_=function(){_.mF(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var f=_.mF(this.hostElement).querySelector("#dropdown-content").children,H=0;H<f.length;H++)H===this.skinTone?f[H].setAttribute("selected",""):f[H].removeAttribute("selected")};
_.R.animateScroll_=function(f){this.lastAnimationTime_||(this.lastAnimationTime_=f);f-=this.lastAnimationTime_;f<200?(_.mF(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*f/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.mF(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.R.searchChanged_=function(){this.updateButtons_()};
_.R.updateButtons_=function(){var f=null;if(!this.search)for(var H=_.mF(this.hostElement).querySelector("#categories").scrollTop,v=_.mF(this.hostElement).querySelector("#categories").children,t=0;t<v.length;t++){var M=v[t];M.offsetTop<=H&&(f=M.id)}H=_.mF(this.hostElement).querySelector("#category-buttons").children;for(v=0;v<H.length;v++)t=H[v],t.active=t.id===f};
$I.prototype.searchChanged_=$I.prototype.searchChanged_;$I.prototype.skinToneChanged_=$I.prototype.skinToneChanged_;$I.prototype.onEmojiHover_=$I.prototype.onEmojiHover_;$I.prototype.onSelectCategory_=$I.prototype.onSelectCategory_;$I.prototype.onShowEmojiVariantSelector=$I.prototype.onShowEmojiVariantSelector;$I.prototype.updateCategoriesAndPlaceholder_=$I.prototype.updateCategoriesAndPlaceholder_;$I.prototype.dataChanged=$I.prototype.dataChanged;
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],$I.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],$I.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],$I.prototype,"data",void 0);_.E([_.F({value:function(){return[]}}),
_.N("design:type",Array)],$I.prototype,"categories",void 0);_.E([_.F({value:function(){return[]}}),
_.N("design:type",Array)],$I.prototype,"categoryButtons",void 0);_.E([_.F({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.N("design:type",Boolean)],$I.prototype,"disableScroll",void 0);_.E([_.F({computed:"computeId_(data)",reflectToAttribute:!0}),_.N("design:type",String)],$I.prototype,"id",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],$I.prototype,"selected",void 0);
_.E([_.F({value:!1}),_.N("design:type",Boolean)],$I.prototype,"disableIncrementalLoading",void 0);_.E([_.F(),_.N("design:type",String)],$I.prototype,"placeholder",void 0);_.E([_.F({value:""}),_.N("design:type",String)],$I.prototype,"search",void 0);_.E([_.F({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.N("design:type",Boolean)],$I.prototype,"searching",void 0);_.E([_.F({computed:"computeSearchCategory_(search)"}),_.N("design:type",Object)],$I.prototype,"searchCategory",void 0);
_.E([_.F({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.N("design:type",Object)],$I.prototype,"searchEmptyMessage",void 0);_.E([_.F({computed:"identity(emojiManager.skinTone)"}),_.N("design:type",Number)],$I.prototype,"skinTone",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],$I.prototype,"skinToneOpened",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],$I.prototype,"variantSelectorOpened",void 0);
_.E([_.F({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.N("design:type",Boolean)],$I.prototype,"skinToneHidden",void 0);_.E([_.F(),_.N("design:type",_.G$)],$I.prototype,"emojiManager",void 0);_.E([_.F(),_.N("design:type",Object)],$I.prototype,"emojiVariantSelector",void 0);_.E([_.F(),_.N("design:type",Object)],$I.prototype,"emojiMultiPersonSelector",void 0);
_.E([_.F({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.N("design:type",Boolean)],$I.prototype,"shouldUseStickyPreferences",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$I.prototype,"dataChanged",null);_.E([_.Zw("data","selected"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$I.prototype,"updateCategoriesAndPlaceholder_",null);
_.E([_.sE("yt-show-emoji-variant-selector"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],$I.prototype,"onShowEmojiVariantSelector",null);_.E([_.sE("yt-emoji-picker-select-category"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],$I.prototype,"onSelectCategory_",null);_.E([_.sE("yt-emoji-hover"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],$I.prototype,"onEmojiHover_",null);
_.E([_.Zw("skinTone"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$I.prototype,"skinToneChanged_",null);_.E([_.Zw("search"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$I.prototype,"searchChanged_",null);_.E([_.GW({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],$I);
_.G($I,"yt-emoji-picker-renderer",function(){if(FYn===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;zbh===void 0&&(zbh=document.createElement("template"));var t=zbh;v.call(H,t.content.cloneNode(!0),f.content.firstChild);FYn=f}f=FYn;return f},{mode:2});var WG=function(){var f=_.K.apply(this,arguments)||this;f.emojiManager=_.N8;f.isDarkTheme=document.documentElement.hasAttribute("dark");f.selectedIndex=1;f.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return f};
_.e(WG,_.K);_.R=WG.prototype;_.R.handleEmojiCustomizationVisible=function(f){this.emojiPickerRenderer.selected=f;this.selectedIndex=1;f?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.R.emojiCustomizationSetChanged=function(){var f;(f=this.data)!=null&&f.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.VM(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.R.updateSaveButtonState=function(f){var H;(H=this.data)!=null&&H.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.lF("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:f}))};
_.R.emojiUrl=function(f){f=_.CW(this.emojiManager,f);if(!f)return"";var H;f=(H=f.image)==null?void 0:H.thumbnails;return _.YK(f,24)||""};
_.R.emojiAlt=function(f){var H=_.CW(this.emojiManager,f);if(!H)return f;var v,t,M,h=(H==null?void 0:(v=H.image)==null?void 0:(t=v.accessibility)==null?void 0:(M=t.accessibilityData)==null?void 0:M.label)||"";return h?h:H.isCustomEmoji?H.shortcuts[0]:H.emojiId||f};
_.R.emojiAriaLabel=function(f){var H,v;return((H=_.CW(this.emojiManager,f))==null?void 0:(v=H.shortcuts)==null?void 0:v[0])||f};
_.R.onEmojiClick=function(f){f.model.index!==0&&(this.selectedIndex=f.model.index)};
_.R.onEmojiSelect=function(f){f=f.detail;var H,v;((H=this.data)==null?0:H.emojiCustomizationSetEntityKey)&&((v=this.emojiCustomizationSet)==null?0:v.emojiId)&&f.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,f.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.lF("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,f.emojiId,this.selectedIndex)}))};
_.R.canEditEmoji=function(f,H,v){f=f.indexOf(H);return f===v||f===0||v===0?!1:!0};
_.R.getUpdatedEmojiIdList=function(f,H,v){var t=f.indexOf(H);f=[].concat(_.pS(f));t>=0&&(f[t]=f[v]);f[v]=H;return f};
_.H7.Object.defineProperties(WG,{template:{configurable:!0,enumerable:!0,get:function(){if(Hj9===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;fLZ===void 0&&(fLZ=document.createElement("template"));var t=fLZ;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Hj9=f}f=Hj9;return f}}});
WG.prototype.onEmojiSelect=WG.prototype.onEmojiSelect;_.E([_.B(_.PH),_.N("design:type",Object)],WG.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],WG.prototype,"ytActionHandlerBehavior",void 0);_.E([_.lJ("yt-emoji-picker-renderer"),_.N("design:type",Object)],WG.prototype,"emojiPickerRenderer",void 0);
_.E([_.F({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(f,H){return _.dL(f.entities,"emojiCustomizationSetEntity",H)},
observer:"emojiCustomizationSetChanged"}),_.N("design:type",Object)],WG.prototype,"emojiCustomizationSet",void 0);_.E([_.F(),_.N("design:type",Object)],WG.prototype,"originalEmojiSet",void 0);_.E([_.F(),_.N("design:type",_.G$)],WG.prototype,"emojiManager",void 0);_.E([_.F(),_.N("design:type",Object)],WG.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],WG.prototype,"isDarkTheme",void 0);_.E([_.F(),_.N("design:type",Object)],WG.prototype,"selectedIndex",void 0);
_.E([_.sE("yt-emoji-select"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],WG.prototype,"onEmojiSelect",null);_.E([_.GW({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],WG);var QTa;var uvZ;var aL_;var POr;var Oh=function(){var f=_.K.apply(this,arguments)||this;f.authorBadges=[];return f};
_.e(Oh,_.K);_.R=Oh.prototype;_.R.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.R.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]]"}}}}}};
_.R.dataChanged=function(){var f=L1b(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",f)};
_.R.updateMessage=function(){var f=this.data.message,H=_.mF(_.mF(this.hostElement).querySelector("#message"));H.textContent="";f&&H.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(f))};
_.R.shouldSupportWholeItemClick=function(){return!0};
_.R.onShowOriginalClick=function(f){f.preventDefault();this.showOriginal=!0};
_.R.computeShowBar=function(f,H,v){return f&&H||v};
_.R.computeAuthorBadges=function(f){return f.authorBadges||[]};
_.R.computeAuthorIsOwner=function(f){return!!xnR(f.authorBadges,"owner")};
_.R.computeAuthorNameColor=function(f){var H;if(_.J("live_chat_author_name_color_usernames")&&(f==null?0:(H=f.authorName)==null?0:H.simpleText))return _.DnT(_.obH(f.authorName.simpleText));if(_.J("live_chat_seed_color_usernames")&&(f==null?0:f.authorSeedColorArgb))return _.DnT(_.g9(f.authorSeedColorArgb));if(_.J("live_chat_colored_usernames"))return"#cc0000";var v;return _.J("live_chat_simple_color_usernames")&&(f==null?0:(v=f.authorName)==null?0:v.simpleText)&&(f==null?0:f.authorUsernameColorLight)&&
(f==null?0:f.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.g9(f.authorUsernameColorDark):_.g9(f.authorUsernameColorLight):""};
Oh.prototype.updateMessage=Oh.prototype.updateMessage;Oh.prototype.dataChanged=Oh.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Oh.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.cp.YtLiveChatItemBehavior),_.N("design:type",_.Xo)],Oh.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Oh.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Oh.prototype,"data",void 0);
_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Oh.prototype,"showOriginal",void 0);_.E([_.F({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Oh.prototype,"isDimmed",void 0);_.E([_.F({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Oh.prototype,"showBar",void 0);
_.E([_.F({computed:"computeAuthorBadges(data)"}),_.N("design:type",Array)],Oh.prototype,"authorBadges",void 0);_.E([_.F({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Oh.prototype,"authorIsOwner",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Oh.prototype,"inCollapsedBanner",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Oh.prototype,"inBanner",void 0);
_.E([_.F({value:_.J("live_chat_hide_avatars"),reflectToAttribute:!0}),_.N("design:type",Boolean)],Oh.prototype,"avatarHidden",void 0);_.E([_.F({computed:"computeAuthorNameColor(data)"}),_.N("design:type",String)],Oh.prototype,"authorNameColor",void 0);_.E([_.F(),_.N("design:type",_.iM)],Oh.prototype,"participantsManager",void 0);_.E([_.F({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.N("design:type",Object)],Oh.prototype,"filledButtonOverrides",void 0);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Oh.prototype,"dataChanged",null);_.E([_.Zw("data.message"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Oh.prototype,"updateMessage",null);_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],Oh);
_.G(Oh,"yt-live-chat-text-message-renderer",function(){if(POr===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;aL_===void 0&&(aL_=document.createElement("template"));var t=aL_;v.call(H,t.content.cloneNode(!0),f.content.firstChild);POr=f}f=POr;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var g$=function(){var f=_.K.apply(this,arguments)||this;f.tonalButtonOverrides={type:"tonal",style:"overlay"};return f};
_.e(g$,_.K);
g$.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]]"}}}}}};
g$.prototype.shouldSupportInlineActionButtons=function(){return!0};
g$.prototype.shouldSupportWholeItemClick=function(){return!0};
_.H7.Object.defineProperties(g$.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],g$.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.cp.YtLiveChatItemBehavior),_.N("design:type",_.Xo)],g$.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],g$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],g$.prototype,"data",void 0);_.E([_.F(),_.N("design:type",_.iM)],g$.prototype,"participantsManager",void 0);
_.E([_.F(),_.N("design:type",Object)],g$.prototype,"tonalButtonOverrides",void 0);_.E([_.F({reflectToAttribute:!0}),_.z("data.infoDialogButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],g$.prototype,"hasInfoDialogButton",null);_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],g$);
_.G(g$,"yt-live-chat-auto-mod-message-renderer",function(){if(uvZ===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;QTa===void 0&&(QTa=document.createElement("template"));var t=QTa;v.call(H,t.content.cloneNode(!0),f.content.firstChild);uvZ=f}f=uvZ;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var Gvv;var COM;var ESM;var NaH=function(){return _.K.apply(this,arguments)||this};
_.e(NaH,_.K);_.E([_.F(),_.N("design:type",Object)],NaH.prototype,"data",void 0);_.E([_.u({is:"ytd-factoid-renderer",disableElementRegistration:!0})],NaH);
_.G(NaH,"ytd-factoid-renderer",function(){if(ESM!==void 0)return ESM;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return ESM=f},{mode:1});var Ii=function(){return _.K.apply(this,arguments)||this};
_.e(Ii,_.K);Ii.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.E([_.F(),_.N("design:type",Object)],Ii.prototype,"data",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Ii.prototype,"ytRendererstamperBehavior",void 0);_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],Ii);
_.G(Ii,"yt-live-chat-channel-activity-reputation-renderer",function(){if(COM===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;Gvv===void 0&&(Gvv=document.createElement("template"));var t=Gvv;v.call(H,t.content.cloneNode(!0),f.content.firstChild);COM=f}f=COM;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var cbo;var Xqg;var S5=function(){return _.K.apply(this,arguments)||this};
_.e(S5,_.K);S5.prototype.ready=function(){var f=document.querySelector("yt-live-chat-app");f&&f.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],S5.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Boolean)],S5.prototype,"menuFocused",void 0);_.E([_.F(),_.N("design:type",Object)],S5.prototype,"data",void 0);_.E([_.B(_.cp.YtLiveChatItemBehavior),_.N("design:type",_.Xo)],S5.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],S5);
_.G(S5,"yt-live-chat-donation-announcement-renderer",function(){if(Xqg===void 0){var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;cbo===void 0&&(cbo=document.createElement("template"));var t=cbo;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Xqg=f}f=Xqg;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var Ab_;var bjh,ijn=function(){if(bjh!==void 0)return bjh;var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;Ab_===void 0&&(Ab_=document.createElement("template"));var t=Ab_;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return bjh=f};var d$=function(){return _.K.apply(this,arguments)||this};
_.e(d$,_.K);_.H7.Object.defineProperties(d$,{template:{configurable:!0,enumerable:!0,get:function(){return ijn()}}});
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],d$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],d$.prototype,"data",void 0);_.E([_.GW({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],d$);_.G(d$,"yt-live-chat-empty-feed-view-model",function(){return ijn()},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var kvZ;var TaC;var j5=function(){return _.K.apply(this,arguments)||this};
_.e(j5,_.K);j5.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"}}}}}};
_.H7.Object.defineProperties(j5.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var f,H;return{runs:[{text:(f=this.data)==null?void 0:(H=f.channelName)==null?void 0:H.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var f=[],H;if((H=this.data)==null||!H.channelBadges)return f;var v;H=_.V((v=this.data)==null?void 0:v.channelBadges);for(v=H.next();!v.done;v=H.next()){v=_.U(v.value,QQ9);var t=void 0,M=void 0;if((t=v)==null?0:(M=t.badgeImage)==null?0:M.sources)t=void 0,M={liveChatAuthorBadgeRenderer:{tooltip:v.tooltip,accessibility:{accessibilityData:{label:(t=_.U(v.rendererContext,_.dC))==null?void 0:t.label}}}},v.badgeImage.sources[0].clientResource?M.liveChatAuthorBadgeRenderer.icon=
{iconType:v.badgeImage.sources[0].clientResource.imageName}:M.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:v.badgeImage.sources},f.push(M)}return f}}});
_.E([_.F(),_.N("design:type",Object)],j5.prototype,"data",void 0);_.E([_.z("data.channelName"),_.N("design:type",Object),_.N("design:paramtypes",[])],j5.prototype,"channelName",null);_.E([_.z("data.channelBadges"),_.N("design:type",Array),_.N("design:paramtypes",[])],j5.prototype,"channelBadges",null);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],j5.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],j5);
_.G(j5,"yt-live-chat-identity-view-model",function(){if(TaC===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;kvZ===void 0&&(kvZ=document.createElement("template"));var t=kvZ;v.call(H,t.content.cloneNode(!0),f.content.firstChild);TaC=f}f=TaC;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var wqC;var qmM;var f3b;var HDa;var sh=function(){var f=_.K.apply(this,arguments)||this;f.hidden=!1;f.supportsInlineActionButtons=!0;return f};
_.e(sh,_.K);sh.prototype.ready=function(){var f;((f=document.querySelector("yt-live-chat-app"))==null?0:f.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
sh.prototype.dataChanged=function(f){var H=(0,_.gX)(_.mF(this.hostElement).querySelector("#detail-text"));H.textContent="";(f==null?0:f.detailText)&&H.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(f.detailText))};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],sh.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.cp.YtLiveChatItemBehavior),_.N("design:type",_.Xo)],sh.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],sh.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F({observer:"dataChanged"}),_.N("design:type",Object)],sh.prototype,"data",void 0);
_.E([_.F({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.N("design:type",Object)],sh.prototype,"hidden",void 0);_.E([_.u({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],sh);
_.G(sh,"yt-live-chat-legacy-paid-message-renderer",function(){if(HDa===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;f3b===void 0&&(f3b=document.createElement("template"));var t=f3b;v.call(H,t.content.cloneNode(!0),f.content.firstChild);HDa=f}f=HDa;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var vwZ;var tnh;var Mna={},Zu=function(){return _.er.apply(this,arguments)||this};
_.e(Zu,_.er);Zu.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Zu.prototype.onLiveChatMembershipItemBehaviorClick=Zu.prototype.onLiveChatMembershipItemBehaviorClick;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Zu.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Zu.prototype,"data",void 0);_.E([_.sE("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Zu.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.E([_.L2()],Zu);
Mna.YtLiveChatMembershipItemBehavior=[Zu.prototype,_.k.YtRendererBehavior];var J_=function(){var f=_.K.apply(this,arguments)||this;f.supportsInlineActionButtons=!0;f.hasPrimaryHeaderText=!1;f.showOnlyHeader=!1;f.authorBadges=[];f.modern=_.J("web_button_rework_with_live");f.buttonOverrides={style:"overlay",type:"filled"};return f};
_.e(J_,_.K);_.R=J_.prototype;_.R.shouldSupportInlineActionButtons=function(){return!0};
_.R.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.R.ready=function(){var f=document.querySelector("yt-live-chat-app");f&&f.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.R.messageChanged=function(){var f=this.data.message,H=(0,_.gX)(_.mF(this.hostElement).querySelector("#message"));H.textContent="";f&&H.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(f))};
_.R.computeHasPrimaryHeaderText=function(f){return!(!f||!f.headerPrimaryText)};
_.R.computeShowOnlyHeader=function(f,H){return this.isMessageEmpty(f,H)};
_.R.computeAuthorBadges=function(f){return f.authorBadges||[]};
_.R.isMessageEmpty=function(f,H){return!f||f.empty?!0:!f.message&&!f.inputField&&!H};
_.R.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.R.getInputElement=function(){return _.mF(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.R.inputFocus=function(){var f=this.getInputElement();f&&f.focus()};
_.R.inputInsertEmoji=function(f){var H=this.getInputElement();H&&H.insertEmoji(f)};
_.R.inputMessage=function(){var f=this.getInputElement();return f&&this.data.inputField?(f.completeEmojis(),_.CV(f.liveChatRichMessageInput)):null};
_.R.onFooterButtonClick=function(){this.data.footerButton&&_.YE(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.R.shouldSupportWholeItemClick=function(){return!0};
J_.prototype.isDeletedChanged=J_.prototype.isDeletedChanged;J_.prototype.messageChanged=J_.prototype.messageChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],J_.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.cp.YtLiveChatItemBehavior),_.N("design:type",_.Xo)],J_.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.B(Mna.YtLiveChatMembershipItemBehavior),_.N("design:type",Object)],J_.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],J_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],J_.prototype,"data",void 0);_.E([_.F({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.N("design:type",Object)],J_.prototype,"hasPrimaryHeaderText",void 0);_.E([_.F({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.N("design:type",Object)],J_.prototype,"showOnlyHeader",void 0);
_.E([_.F({computed:"computeAuthorBadges(data)"}),_.N("design:type",Array)],J_.prototype,"authorBadges",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],J_.prototype,"modern",void 0);_.E([_.Zw("data.message"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],J_.prototype,"messageChanged",null);_.E([_.Zw("isDeleted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],J_.prototype,"isDeletedChanged",null);
_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],J_);
_.G(J_,"yt-live-chat-membership-item-renderer",function(){if(tnh===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;vwZ===void 0&&(vwZ=document.createElement("template"));var t=vwZ;v.call(H,t.content.cloneNode(!0),f.content.firstChild);tnh=f}f=tnh;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var hJr;var RJn;var lm=function(){return _.K.apply(this,arguments)||this};
_.e(lm,_.K);lm.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],lm.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],lm.prototype,"data",void 0);_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],lm);
_.G(lm,"yt-live-chat-mode-change-message-renderer",function(){if(RJn===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;hJr===void 0&&(hJr=document.createElement("template"));var t=hJr;v.call(H,t.content.cloneNode(!0),f.content.firstChild);RJn=f}f=RJn;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var VnT;var yFo;var Uh=function(){return _.K.apply(this,arguments)||this};
_.e(Uh,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Uh.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.cp.YtLiveChatItemBehavior),_.N("design:type",_.Xo)],Uh.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Uh.prototype,"data",void 0);_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],Uh);
_.G(Uh,"yt-live-chat-moderation-message-renderer",function(){if(yFo===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;VnT===void 0&&(VnT=document.createElement("template"));var t=VnT;v.call(H,t.content.cloneNode(!0),f.content.firstChild);yFo=f}f=yFo;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var Yua;var mbZ;var e5=function(){var f=_.K.apply(this,arguments)||this;f.modern=_.J("web_button_rework");return f};
_.e(e5,_.K);e5.prototype.onClick=function(){var f;if((f=this.data)!=null&&f.onClickCommand){var H;_.jW.instance.resolveCommand((H=this.data)==null?void 0:H.onClickCommand)}};
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],e5.prototype,"modern",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],e5.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.PH),_.N("design:type",Object)],e5.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.B(_.cp.YtLiveChatItemBehavior),_.N("design:type",_.Xo)],e5.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],e5.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],e5.prototype,"data",void 0);_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],e5);
_.G(e5,"yt-live-chat-offer-click-count-message-renderer",function(){if(mbZ===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;Yua===void 0&&(Yua=document.createElement("template"));var t=Yua;v.call(H,t.content.cloneNode(!0),f.content.firstChild);mbZ=f}f=mbZ;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var $bo;var Wio=function(){return _.K.apply(this,arguments)||this};
_.e(Wio,_.K);_.E([_.F(),_.N("design:type",Object)],Wio.prototype,"data",void 0);_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],Wio);
_.G(Wio,"yt-live-chat-placeholder-item-renderer",function(){if($bo===void 0){var f=document.createElement("template");_.x(f,"\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");f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);$bo=f}f=$bo;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var ODC;var gwv;var I3h=new TZ(7),Lm=function(){var f=_.K.apply(this,arguments)||this;f.data={};return f};
_.e(Lm,_.K);Lm.prototype.dataChanged=function(){var f;((f=this.data)==null?0:f.class)&&_.WB(this.hostElement,this.data.class,!0);var H;((H=this.oldData)==null?0:H.class)&&_.WB(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
Lm.prototype.computeTimestampString=function(f){return I3h.format(new Date(f/1E3))};
Lm.prototype.dataChanged=Lm.prototype.dataChanged;_.E([_.F(),_.N("design:type",Object)],Lm.prototype,"data",void 0);_.E([_.F({computed:"computeTimestampString(data.timestampUsec)"}),_.N("design:type",String)],Lm.prototype,"timestampString",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Lm.prototype,"dataChanged",null);_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],Lm);
_.G(Lm,"yt-live-chat-server-error-message",function(){if(gwv===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;ODC===void 0&&(ODC=document.createElement("template"));var t=ODC;v.call(H,t.content.cloneNode(!0),f.content.firstChild);gwv=f}f=gwv;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var SuC;var db_;var xI=function(){var f=_.K.apply(this,arguments)||this;f.defaultToFilledIcon=!1;return f};
_.e(xI,_.K);xI.prototype.computeHasPrimaryColorIcon=function(f){return f==="SPARK"||f==="SPONSORSHIP_STAR"};
xI.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],xI.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.cp.YtLiveChatItemBehavior),_.N("design:type",_.Xo)],xI.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],xI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],xI.prototype,"defaultToFilledIcon",void 0);_.E([_.F(),_.N("design:type",Object)],xI.prototype,"data",void 0);
_.E([_.F({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.N("design:type",Boolean)],xI.prototype,"hasPrimaryColorIcon",void 0);_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],xI);
_.G(xI,"yt-live-chat-viewer-engagement-message-renderer",function(){if(db_===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;SuC===void 0&&(SuC=document.createElement("template"));var t=SuC;v.call(H,t.content.cloneNode(!0),f.content.firstChild);db_=f}f=db_;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var j6C;var BG=function(){var f=_.K.apply(this,arguments)||this;f.modernUpdate=!1;f.buttonStyle="overlay";f.buttonType="filled";return f};
_.e(BG,_.K);BG.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
BG.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],BG.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],BG.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],BG.prototype,"modernUpdate",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],BG.prototype,"buttonStyle",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],BG.prototype,"buttonType",void 0);
_.E([_.u({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],BG);
_.G(BG,"ytd-ad-hover-text-button-renderer",function(){if(j6C!==void 0)return j6C;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return j6C=f},{mode:1});var s6g;var zl=function(){var f=_.K.apply(this,arguments)||this;f.buttonOverrides={size:"XS"};f.modern=_.J("web_button_rework");return f};
_.e(zl,_.K);zl.prototype.onHelpTap=function(f){this.data&&this.data.informationDialog&&(_.YE(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),f.preventDefault(),f.stopPropagation())};
_.E([_.F(),_.N("design:type",Object)],zl.prototype,"buttonOverrides",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],zl.prototype,"modern",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],zl.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],zl.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],zl);
_.G(zl,"ytd-live-chat-purchased-product-message-renderer",function(){if(s6g!==void 0)return s6g;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return s6g=f},{mode:1});var ZDZ;var JFo;var Fi=function(){var f=_.K.apply(this,arguments)||this;f.isContainerDeleted=!1;return f};
_.e(Fi,_.K);Fi.prototype.onContextMenuClick=function(f){this.ytLiveChatItemBehavior.showContextMenu(f)};
Fi.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))};
Fi.prototype.isContainerDeletedChanged=Fi.prototype.isContainerDeletedChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Fi.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.cp.YtLiveChatItemBehavior),_.N("design:type",_.Xo)],Fi.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Fi.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],Fi.prototype,"isContainerDeleted",void 0);
_.E([_.F(),_.N("design:type",String)],Fi.prototype,"deletedStateMessage",void 0);_.E([_.Zw("isContainerDeleted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fi.prototype,"isContainerDeletedChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],Fi);
_.G(Fi,"ytd-sponsorships-live-chat-header-renderer",function(){if(JFo!==void 0)return JFo;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return JFo=f},{mode:1});var r$=function(){var f=_.K.apply(this,arguments)||this;f.modern=_.J("web_button_rework_with_live");f.buttonOverrides={style:"overlay",type:"filled"};return f};
_.e(r$,_.K);r$.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]]"}}}}}};
r$.prototype.onCtaButtonClick=function(){var f,H=_.U((f=this.data)==null?void 0:f.optInPrompt,_.nv);if(f=this.maybeGetButtonCommand(H)){var v;(v=_.UV())==null||v.clickCommand(f)}};
r$.prototype.maybeGetButtonCommand=function(f){return!f||!f.command||_.U(f.command,ZMM)===void 0&&_.U(f.command,sj_)===void 0?null:f.command};
r$.prototype.shouldHideOptinPrompt=function(f,H){return!f||H};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],r$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.cp.YtLiveChatItemBehavior),_.N("design:type",_.Xo)],r$.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],r$.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],r$.prototype,"modern",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],r$);
_.G(r$,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(ZDZ!==void 0)return ZDZ;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return ZDZ=f},{mode:1});var l3g;var Km=function(){return _.K.apply(this,arguments)||this};
_.e(Km,_.K);Km.prototype.onContextMenuClick=function(f){this.ytLiveChatItemBehavior.showContextMenu(f)};
Km.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))};
Km.prototype.isDeletedChanged=Km.prototype.isDeletedChanged;_.E([_.B(_.cp.YtLiveChatItemBehavior),_.N("design:type",_.Xo)],Km.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Km.prototype,"data",void 0);_.E([_.Zw("isDeleted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Km.prototype,"isDeletedChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],Km);
_.G(Km,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(l3g!==void 0)return l3g;var f=document.createElement("template");_.x(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="gift" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return l3g=f},{mode:1});var Du=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return f};
_.e(Du,_.K);_.R=Du.prototype;
_.R.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"}}}};
_.R.handleLiveChatAction=function(f){_.U(f,B_n)?this.handleMarkChatItemAsDeletedAction(_.U(f,B_n)):_.U(f,xgo)&&this.handleRemoveChatItemAction(_.U(f,xgo))};
_.R.handleLiveChatActions=function(f){f.forEach(this.handleLiveChatAction,this)};
_.R.handleMarkChatItemAsDeletedAction=function(f){var H=this,v;((v=this.data)==null?0:v.items)&&this.data.items.forEach(function(t,M){var h=Object.keys(t)[0];Object.values(t)[0].id===f.targetItemId&&H.markAsDeleted("data.items",M,h,f.deletedStateMessage,f.showOriginalContentMessage)})};
_.R.handleRemoveChatItemAction=function(f){var H=this,v;((v=this.data)==null?0:v.items)&&this.data.items.forEach(function(t,M){Object.values(t)[0].id===f.targetItemId&&H.splice("data.items",M,1)})};
_.R.markAsDeleted=function(f,H,v,t,M){f=[f,H,v].join(".");this.set(f+".deletedStateMessage",t);this.set(f+".showOriginalContentMessage",M)};
_.E([_.F(),_.N("design:type",Object)],Du.prototype,"data",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Du.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Du.prototype,"ytActionHandlerBehavior",void 0);_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],Du);
_.G(Du,"yt-live-chat-item-display-list-renderer",function(){if(qmM===void 0){var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;wqC===void 0&&(wqC=document.createElement("template"));var t=wqC;v.call(H,t.content.cloneNode(!0),f.content.firstChild);qmM=f}f=qmM;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var Ub_;var eJa,Liv=function(){if(eJa!==void 0)return eJa;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;Ub_===void 0&&(Ub_=document.createElement("template"));var t=Ub_;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return eJa=f};var oi=function(){var f=_.K.apply(this,arguments)||this;f.isHeader=!1;return f};
_.e(oi,_.K);oi.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.H7.Object.defineProperties(oi,{template:{configurable:!0,enumerable:!0,get:function(){return Liv()}}});
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],oi.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],oi.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],oi.prototype,"isHeader",void 0);_.E([_.GW({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],oi);_.G(oi,"yt-live-chat-item-display-renderer",function(){return Liv()},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var xbM,BJr,DbM,KiM;
xbM={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}};BJr={home:"eohps",search:"eosps",watch:"eowps"};_.zJH=["watch","search","home"];
_.nm=function(){this.JSC$14277_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14277_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.a8("PRECONSTRUCTION_DELAY",0);this.signals_=_.PL();this.targetPage_=""};
_.nm.prototype.init=function(f,H){f=f===void 0?"":f;H=H===void 0?null:H;if(this.JSC$14277_isInitialized_)this.abort();else if(this.JSC$14277_isInitialized_=!0,f&&_.FiM(this,f),H){var v=_.Gu(this.signals_,"pcl")?0:10,t=function(){for(var M=0,h;h=_.zJH[M++];)h!=f&&h!=H&&this.pendingPages_.push(h);_.rFr(this)}.bind(this);
this.signals_.parkOrScheduleJob(t,v,"pcl")}};
_.nm.prototype.abort=function(){this.fragmentJobId_&&(_.nN.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);KiM(this)};
_.FiM=function(f,H){f.JSC$14277_isInitialized_&&!f.targetPage_&&(f.targetPage_=H,DbM(f,H),f.isInitialPass_=!1,DbM(f,H),f.signals_.processSignal(BJr[f.targetPage_]),KiM(f),_.rFr(f))};
_.rFr=function(f){f.pendingPages_.length&&!f.pagePreparerJobId_&&(f.pagePreparerJobId_=_.Lb(_.nN,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.FiM(this,this.pendingPages_.shift())}.bind(f),f.DEFAULT_DELAY_))};
DbM=function(f,H){if(H=xbM[H])for(var v in H){var t=!1,M=v;v.charAt(0)=="~"&&(t=!0,M=v.substring(1));var h=H[v];h=typeof h=="object"?h:{count:h};H[v]=h;h.componentName=M;h.count>0&&(f.isInitialPass_?t||f.isSeenDuringInitialPass_[M]||(f.JSC$14277_queue_.push({componentName:M,count:1,signals:h.signals}),f.isSeenDuringInitialPass_[M]=!0,h.count--):f.JSC$14277_queue_.push(h))}};
KiM=function(f){f.JSC$14277_queue_.length=0;f.targetPage_="";f.isInitialPass_=!0;f.signals_.processSignal("eop")};
_.nm.getInstance=function(){return _.iw(_.nm)};var owM=function(){this.signals=_.PL();this.init()};
owM.prototype.startPreconstruction=function(){_.nm.getInstance().init(_.P6("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
owM.prototype.init=function(){nwh(this);window.Polymer&&r7a&&g8E();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var f=_.Mr.ytcsi;if(f&&f.gt&&(f=f.gt())&&f.tick&&(f.tick.aft>0||f.tick.pbs>0)&&(_.P6("IS_HOMEPAGE_COLD")||_.P6("IS_RESULTS_PAGE_COLD")||_.P6("IS_WATCH_PAGE_COLD"))){pWZ(this);break a}IwH(Y8v,this.onNotifications,this)}};
var nwh=function(f){var H=function(){f.signals.processSignal("dl")};
document.readyState==="complete"?(_.Nw(Error("th"),"WARNING"),H()):_.cVB(window,"load",H)};
owM.prototype.onNotifications=function(f){f.timer||(_.P6("IS_HOMEPAGE_COLD")||_.P6("IS_RESULTS_PAGE_COLD")||_.P6("IS_WATCH_PAGE_COLD"))&&pWZ(this)};
var pWZ=function(f){f.signals.parkOrScheduleJob(function(){f.signals.processSignal("eocs")},10,"eor")};
new owM;var pm,Q6_=function(){return _.er.apply(this,arguments)||this};
_.e(Q6_,_.er);_.R=Q6_.prototype;_.R.enableActiveViewMeasurement=function(f){if(this.isActiveViewEnabled(f)){var H=this.getUrlPrefixesFromCommand(f.viewableCommands);f=this.getUrlPrefixesFromCommand(f.endOfSessionCommands);if(!pm){var v=_.VQ("custom_active_view_tos_timeout_ms");pm=v>0&&v!==36E5?new NfN(this.getVersion(),v):new NfN(this.getVersion())}Xmg(pm,this.hostElement);AKB(pm,this.hostElement,H,f)}};
_.R.stopActiveViewMeasurement=function(){pm&&Xmg(pm,this.hostElement)};
_.R.isActiveViewEnabled=function(f){return!!f&&(this.hasAtLeastOneUrl(f.viewableCommands)||this.hasAtLeastOneUrl(f.endOfSessionCommands))};
_.R.hasAtLeastOneUrl=function(f){return!!f&&f.length>0&&f[0].loggingUrls!=null&&f[0].loggingUrls.length>0};
_.R.getVersion=function(){var f=_.a8("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(f==null?void 0:f.length)===2?f[1]:null};
_.R.getUrlPrefixesFromCommand=function(f){if(!f)return[];var H=[];f=_.V(f);for(var v=f.next();!v.done;v=f.next())if(v=v.value,v.loggingUrls){v=_.V(v.loggingUrls);for(var t=v.next();!t.done;t=v.next())t=t.value,t.baseUrl&&H.push(t.baseUrl)}return H};
_.E([_.L2()],Q6_);var QW=[Q6_.prototype];var uK9=function(){return _.er.apply(this,arguments)||this};
_.e(uK9,_.er);_.H7.Object.defineProperties(uK9.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.J("enable_entity_store_from_dependency_injection")?_.fu():_.vS()}}});
_.E([_.L2()],uK9);_.um=[D5.prototype,uK9.prototype];var a3b=["ytd-rich-shelf-renderer"],ai=function(){var f=_.er.apply(this,arguments)||this;f._noAccessors=!0;f.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";f.followUpDialogPromise=null;f.followUpDialogPromiseResolve=null;f.followUpDialogPromiseReject=null;return f};
_.e(ai,_.er);_.R=ai.prototype;_.R.dismissibleItemIsDismissedChanged_=function(f){_.J("kevlar_fluid_dismiss")&&(f?_.YE(this.hostElement,"yt-dismissible-item-dismissed"):_.YE(this.hostElement,"yt-dismissible-item-undismissed"))};
_.R.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.R.dismissibleItemReset_=function(){var f=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 _.IO(function(H,v){f.followUpDialogPromiseResolve=H;f.followUpDialogPromiseReject=v});
_.YE(this.hostElement,"yt-enable-lockup-interaction")};
_.R.dismissibleItemOnYtServiceRequestSent_=function(f,H){H.actions&&this.dismissibleItemProcessActions(H.actions,f)};
_.R.dismissibleItemOnRequestSent=function(f){if(_.J("web_button_rework"))for(var H=_.V(f.detail),v=H.next();!v.done;v=H.next()){var t=void 0;(v=(t=_.U(v.value,_.dj))==null?void 0:t.actions)&&this.dismissibleItemProcessActions(v,f)}};
_.R.dismissibleItemOnCommandSent=function(f,H){H&&this.dismissibleItemProcessActions(H,f)};
_.R.setAndGetDismissedContentId=function(f){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+f};
_.R.replayDismissAction=function(f){this.dismissibleItemProcessActions([f])};
_.R.dismissibleItemProcessActions=function(f,H){for(var v=0;v<f.length;v++){var t=f[v],M=void 0;((M=_.U(t,_.Ir))==null?0:M.commands)&&this.dismissibleItemProcessActions(_.U(t,_.Ir).commands,H);if(_.U(t,_.sp)){if(M=_.U(t,_.sp),!M.replaceParentSection||a3b.includes(this.hostElement.nodeName.toLowerCase()))M.groupDismissal&&iDs(this,M.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(M),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.lF("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:t})),t=void 0,(t=H)==null||t.stopPropagation()}else if(_.U(t,xtZ))this.dismissibleItemHandleHideEnclosingAction_(),t=void 0,(t=H)==null||t.stopPropagation();else if(_.U(t,kU9))t=_.U(t,kU9),M=void 0,((M=t)==null?0:M.targetGroupId)&&iDs(this,{targetGroupId:t.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.lF("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
t=void 0,(t=H)==null||t.stopPropagation();else if(_.U(t,_.dj))(t=_.U(t,_.dj).actions)&&_.Oj(this.hostElement,t,this.hostElement),t=void 0,(t=H)==null||t.stopPropagation();else{var h=M=void 0;((M=_.U(t,_.N$))==null?void 0:M.signal)!=="TELL_US_WHY"||((h=_.U(t,_.N$))==null?0:h.targetId)&&_.J("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),t=void 0,(t=H)==null||t.stopPropagation())}}};
_.R.dismissibleItemOnYtServiceRequestCompleted_=function(f,H){var v=this.get("feedbackResponses.0.followUpDialog",H.data);v?this.followUpDialogPromiseResolve(v):H.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(H.actions,f)};
_.R.dismissibleItemHandleReplaceEnclosingAction_=function(f){this.dismissedRenderer=f.item;this.isDismissed=!0;var H=null;(H=_.mF(this.hostElement).querySelector("#dismissed"))&&_.qV(this,function(){_.Tj(H)});
_.YE(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.R.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.R.dismissibleItemHandleUndoFeedbackAction_=function(){_.YE(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.R.dismissibleItemHandleTellUsWhySignalAction_=function(){var f=this;this.followUpDialogPromise.then(function(H){f.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:H}})})};
ai.prototype.dismissibleItemOnYtServiceRequestCompleted_=ai.prototype.dismissibleItemOnYtServiceRequestCompleted_;ai.prototype.dismissibleItemOnCommandSent=ai.prototype.dismissibleItemOnCommandSent;ai.prototype.dismissibleItemOnRequestSent=ai.prototype.dismissibleItemOnRequestSent;ai.prototype.dismissibleItemOnYtServiceRequestSent_=ai.prototype.dismissibleItemOnYtServiceRequestSent_;ai.prototype.dismissibleItemDataChanged_=ai.prototype.dismissibleItemDataChanged_;
ai.prototype.dismissibleItemIsDismissedChanged_=ai.prototype.dismissibleItemIsDismissedChanged_;_.E([_.B(_.fm),_.N("design:type",Object)],ai.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],ai.prototype,"ytdReduxBehavior",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],ai.prototype,"isDismissed",void 0);_.E([_.F(),_.N("design:type",Object)],ai.prototype,"dismissedRenderer",void 0);
_.E([_.Zw("isDismissed"),_.N("design:type",Function),_.N("design:paramtypes",[Boolean]),_.N("design:returntype")],ai.prototype,"dismissibleItemIsDismissedChanged_",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ai.prototype,"dismissibleItemDataChanged_",null);
_.E([_.sE("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.ER]),_.N("design:returntype")],ai.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.E([_.sE("yt-service-request-sent-button-renderer"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],ai.prototype,"dismissibleItemOnRequestSent",null);
_.E([_.sE("yt-dismissible-item-action"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Array]),_.N("design:returntype")],ai.prototype,"dismissibleItemOnCommandSent",null);_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.TI]),_.N("design:returntype")],ai.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.E([_.L2()],ai);_.PG=[_.fm,_.um,ai.prototype];var Gl=function(){var f=_.er.apply(this,arguments)||this;f.disableGridStateAware=!1;f.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};f.currentGridClass="";return f};
_.e(Gl,_.er);Gl.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.qV(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var f=this.gridStateAwareGetElement();_.WB(f,"grid",!0)}};
Gl.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
Gl.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.mF(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
Gl.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var f="grid-disabled";else{f=_.Lev.getInstance();var H=this.get("pageSubtype");f=H&&l2M.includes(H)?"grid-disabled":f.currentSnapState_?f.currentSnapState_.className:null}(H=this.gridStateAwareGetElement())&&f!==this.currentGridClass&&(f&&_.WB(H,f,!0),this.currentGridClass&&_.WB(H,this.currentGridClass,!1),this.currentGridClass=f)};
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Gl.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",String)],Gl.prototype,"gridStateAwareSizingElementSelector",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Gl.prototype,"disableGridStateAware",void 0);_.E([_.L2()],Gl);_.Cm=[Gl.prototype,_.dt.YtActionHandlerBehavior];_.Eh=new _.iN("GUIDE_TOKEN");var cG;_.NW={};cG=function(){var f=_.er.apply(this,arguments)||this;f.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 f};
_.e(cG,_.er);_.R=cG.prototype;_.R.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.R.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var f=_.t8().resolve(_.vh(_.Eh));f&&(this.guidePersistentAndVisible=f.getGuidePersistentAndVisible(),this.activeEndpoint=f.getActiveEndpoint(),this.guideOpened=f.getGuideOpened(),this.miniGuideVisible=f.getMiniGuideVisible())};
_.R.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.R.handleGuideStateAction=function(f){this.guidePersistentAndVisible=f};
_.R.handleMiniGuideStateAction=function(f){this.miniGuideVisible=f};
_.R.handleGuideOpenedAction=function(f){this.guideOpened=f};
_.R.handleActiveEndpointAction=function(f){this.activeEndpoint=f};
cG.prototype.onActiveEndpointChange=cG.prototype.onActiveEndpointChange;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],cG.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],cG.prototype,"guidePersistentAndVisible",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],cG.prototype,"miniGuideVisible",void 0);_.E([_.F(),_.N("design:type",Object)],cG.prototype,"activeEndpoint",void 0);
_.E([_.Zw("activeEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cG.prototype,"onActiveEndpointChange",null);_.E([_.F(),_.N("design:type",Boolean)],cG.prototype,"guideOpened",void 0);_.E([_.L2()],cG);_.NW.YtdGuideStateAwareBehavior=[];_.NW.YtdGuideStateAwareBehavior.push(cG.prototype,_.dt.YtActionHandlerBehavior);var PQh=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],Xi=function(){var f=_.er.apply(this,arguments)||this;f.hoverJobId=0;f.JSC$14308_touched=!1;return f};
_.e(Xi,_.er);_.R=Xi.prototype;_.R.created=function(){this.useExpandableTooltip=!PQh.includes(this.is)};
_.R.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.R.detached=function(){this.useExpandableTooltip=!1};
_.R.lockupOnDown=function(f){this.interactionElement&&!_.w6(_.f2(f),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.R.lockupOnUp=function(f){this.interactionElement&&!_.w6(_.f2(f),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.R.onTouchStart=function(){this.JSC$14308_touched=!0};
_.R.lockupOnMouseEnter=function(){var f=this,H=_.VQ("kevlar_lockup_hover_delay",-1);this.JSC$14308_touched&&H>=0?(_.nN.cancelJob(this.hoverJobId),this.hoverJobId=_.nN.addJob(function(){f.lockupIsHovered=!0},8,H),this.JSC$14308_touched=!1):this.lockupIsHovered=!0};
_.R.lockupOnMouseLeave=function(){this.hoverJobId&&(_.nN.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.R.lockupOnPopupClosed=function(f,H){var v;((v=H.popupRenderer)==null?void 0:v.is)==="ytd-menu-popup-renderer"&&(f=H.popupRenderer.veData,H=_.uy(),f&&H&&_.kE(H,[f]))};
_.R.lockupOnLockupRequested=function(f){var H=f.detail.videoIds[0],v;f.detail&&H===((v=this.data)==null?void 0:v.videoId)&&(f.detail.returnValue=[this.data])};
_.R.lockupOnYtServiceRequestSent=function(f,H){if(f=H.actions)for(var v=0;v<f.length;v++){var t=f[v];if(t.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&H.ajaxPromise){var M=void 0,h=(M=_.U(H.endpoint,_.Kv))==null?void 0:M.playlistId;M=void 0;t=(M=t.removedVideoId)!=null?M:"";b_n(_.EI(),t,h)}else t.action==="ACTION_REMOVE_VIDEO"&&H.ajaxPromise&&(h=void 0,t=(h=t.setVideoId)!=null?h:"",_.i_H(_.EI(),t))}};
_.R.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.R.lockupOnLockupEnabled=function(){if(!this.$){var f=_.t8().resolve(_.fT).getCurrentPage(),H=this.getParentRenderer?this.getParentRenderer():void 0;_.pb(new _.e$("component not ready",this.is,this.isAttached,f==null?void 0:f.is,H==null?void 0:H.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
Xi.prototype.lockupOnLockupEnabled=Xi.prototype.lockupOnLockupEnabled;Xi.prototype.lockupOnLockupDisabled=Xi.prototype.lockupOnLockupDisabled;Xi.prototype.lockupOnYtServiceRequestSent=Xi.prototype.lockupOnYtServiceRequestSent;Xi.prototype.lockupOnLockupRequested=Xi.prototype.lockupOnLockupRequested;Xi.prototype.lockupOnPopupClosed=Xi.prototype.lockupOnPopupClosed;Xi.prototype.lockupOnMouseLeave=Xi.prototype.lockupOnMouseLeave;Xi.prototype.lockupOnMouseEnter=Xi.prototype.lockupOnMouseEnter;
Xi.prototype.onTouchStart=Xi.prototype.onTouchStart;Xi.prototype.lockupOnUp=Xi.prototype.lockupOnUp;Xi.prototype.lockupOnDown=Xi.prototype.lockupOnDown;_.E([_.F(),_.N("design:type",Object)],Xi.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Boolean)],Xi.prototype,"lockupIsHovered",void 0);_.E([_.F(),_.N("design:type",Boolean)],Xi.prototype,"lockupTouchTriggered",void 0);_.E([_.F(),_.N("design:type",Boolean)],Xi.prototype,"useExpandableTooltip",void 0);
_.E([_.lJ("#interaction"),_.N("design:type",Object)],Xi.prototype,"interactionElement",void 0);_.E([_.sE("down"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Xi.prototype,"lockupOnDown",null);_.E([_.sE("up"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Xi.prototype,"lockupOnUp",null);
_.E([_.sE("touchstart"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xi.prototype,"onTouchStart",null);_.E([_.sE("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xi.prototype,"lockupOnMouseEnter",null);_.E([_.sE("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xi.prototype,"lockupOnMouseLeave",null);
_.E([_.sE("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Xi.prototype,"lockupOnPopupClosed",null);_.E([_.sE("yt-lockup-requested"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Xi.prototype,"lockupOnLockupRequested",null);
_.E([_.sE("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.ER]),_.N("design:returntype")],Xi.prototype,"lockupOnYtServiceRequestSent",null);_.E([_.sE("yt-disable-lockup-interaction"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xi.prototype,"lockupOnLockupDisabled",null);
_.E([_.sE("yt-enable-lockup-interaction"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xi.prototype,"lockupOnLockupEnabled",null);_.E([_.L2()],Xi);_.A_=[Xi.prototype];_.G8a={YtdReduxBehavior:[]};_.G8a.YtdReduxBehavior.push.apply(_.G8a.YtdReduxBehavior,_.um);var bm=function(){var f=_.er.apply(this,arguments)||this;f._noAccessors=!0;f.disableNowPlaying=!1;f.disableTooltips=!1;f.useHoveredProperty=!1;f.hovered=!1;f.isThumbnailHovered_=!1;f.addBackground=_.J("kevlar_thumbnail_bg");f.nowPlaying=!1;f.disableRounding=!1;f.size="small";return f};
_.e(bm,_.er);_.R=bm.prototype;_.R.computeThumbnailOverlaySidePanelWidth_=function(f,H){return f-H};
_.R.computeSize=function(f,H){if(!this.disableRounding){if(!f&&!H)return"small";f=Math.max(f||0,H||0);return f>=256?"large":f>=96?"medium":"small"}};
_.R.computeFinalHoveredState_=function(f,H,v){return this.nowPlaying?!1:_.J("kevlar_thumbnail_fluid")&&f?H:v};
_.R.computeHoverOverlays_=function(f,H){return f&&H?H:void 0};
_.R.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.R.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.R.checkMiniplayer_=function(){var f;if(((f=this.data)==null?0:f.playlistSetVideoId)&&_.J("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{f=_.S0();var H=f.currentEndpoint;!this.disableNowPlaying&&H&&_.U(H,_.wI)&&this.data?(H=_.U(H,_.wI),this.nowPlaying=this.data.playlistId?H.playlistId===this.data.playlistId:H.videoId===this.data.videoId,this.isVideoPlaying=f==null?void 0:f.isVideoPlaying):this.nowPlaying=!1}};
bm.prototype.checkMiniplayer_=bm.prototype.checkMiniplayer_;bm.prototype.onMouseLeave_=bm.prototype.onMouseLeave_;bm.prototype.onMouseEnter_=bm.prototype.onMouseEnter_;bm.prototype.computeHoverOverlays_=bm.prototype.computeHoverOverlays_;bm.prototype.computeFinalHoveredState_=bm.prototype.computeFinalHoveredState_;bm.prototype.computeSize=bm.prototype.computeSize;bm.prototype.computeThumbnailOverlaySidePanelWidth_=bm.prototype.computeThumbnailOverlaySidePanelWidth_;
_.E([_.B(_.um),_.N("design:type",Object)],bm.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],bm.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Number)],bm.prototype,"height",void 0);_.E([_.F(),_.N("design:type",Boolean)],bm.prototype,"bottomSidePanel",void 0);_.E([_.F(),_.N("design:type",Number)],bm.prototype,"width",void 0);_.E([_.F(),_.N("design:type",Object)],bm.prototype,"disableNowPlaying",void 0);
_.E([_.F({selector:_.a5}),_.N("design:type",Boolean)],bm.prototype,"miniplayerIsActive",void 0);_.E([_.F(),_.N("design:type",Object)],bm.prototype,"disableTooltips",void 0);_.E([_.F(),_.N("design:type",Object)],bm.prototype,"useHoveredProperty",void 0);_.E([_.F(),_.N("design:type",Object)],bm.prototype,"hovered",void 0);_.E([_.F(),_.N("design:type",Object)],bm.prototype,"isThumbnailHovered_",void 0);
_.E([_.F({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.N("design:type",Boolean)],bm.prototype,"finalHoveredState_",void 0);_.E([_.F({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.N("design:type",Number)],bm.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],bm.prototype,"addBackground",void 0);
_.E([_.F({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.N("design:type",Object)],bm.prototype,"hoverOverlays_",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],bm.prototype,"nowPlaying",void 0);_.E([_.F(),_.N("design:type",Boolean)],bm.prototype,"isVideoPlaying",void 0);_.E([_.F(),_.N("design:type",Object)],bm.prototype,"disableRounding",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.N("design:type",Object)],bm.prototype,"size",void 0);_.E([_.sE("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bm.prototype,"onMouseEnter_",null);_.E([_.sE("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bm.prototype,"onMouseLeave_",null);
_.E([_.Zw("data","disableNowPlaying","miniplayerIsActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bm.prototype,"checkMiniplayer_",null);_.E([_.L2()],bm);var CQn=[bm.prototype];_.im={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(f,H){return f+":"+_.h9(H)},
getPlayerListener_:function(f,H,v){f=this.getPlayerListenerKey_(f,H);H=this.playerListeners_.get(f);v&&this.playerListeners_.delete(f);return H},
savePlayerListener_:function(f,H){var v=H.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(f,H),v);return v},
listenToPlayerEvent:function(f,H,v){v=this.savePlayerListener_(H,v);f.addEventListener(H,v)},
listenToPlayerEvents:function(f,H){H.forEach(function(v,t){this.listenToPlayerEvent(f,t,v)}.bind(this))},
unlistenFromPlayerEvent:function(f,H,v){v=this.getPlayerListener_(H,v,!0);f.removeEventListener(H,v)},
unlistenFromPlayerEvents:function(f,H){H.forEach(function(v,t){this.unlistenFromPlayerEvent(f,t,v)}.bind(this))}}};
_.kI=function(){};_.EwH=new _.iN("PLAYER_API_TOKEN");var ver=!1,RcN,MST=!1,yig;var hj=function(f,H,v,t,M){_.zO.call(this);var h=this;this.playerId=H;this.webPlayerContextConfig=t;this.qA1=M;this.ggv=!1;this.api={};this.sf1=this.cFN=null;this.m99=new _.dH;this.o5={};this.ndW=this.uEx=this.elementId=this.bat=this.config=null;this.yH5=!1;this.aj=this.q7j=null;this.pDt={};this.iNt=["onReady"];this.lastError=null;this.lpI=NaN;this.dG0={};this.ihb=0;this.nj=this.targetElement=f;_.jz(this,this.m99);NJ9(this);v?this.ihb=setTimeout(function(){h.loadNewVideoConfig(v)},0):t&&(cFo(this),
XWM(this))};
_.e(hj,_.zO);hj.prototype.getId=function(){return this.playerId};
hj.prototype.loadNewVideoConfig=function(f){if(!this.isDisposed()){this.ihb&&(clearTimeout(this.ihb),this.ihb=0);var H=f||{};H instanceof t5T||(H=new t5T(H));this.config=H;this.setConfig(f);XWM(this);this.isReady()&&AFo(this)}};
var cFo=function(f){var H;f.webPlayerContextConfig?H=f.webPlayerContextConfig.rootElementId:H=f.config.attrs.id;f.elementId=H||f.elementId;f.elementId==="video-player"&&(f.elementId=f.playerId,f.webPlayerContextConfig?f.webPlayerContextConfig.rootElementId=f.playerId:f.config.attrs.id=f.playerId);var v;((v=f.nj)==null?void 0:v.id)===f.elementId&&(f.elementId+="-player",f.webPlayerContextConfig?f.webPlayerContextConfig.rootElementId=f.elementId:f.config.attrs.id=f.elementId)};
hj.prototype.setConfig=function(f){this.bat=f;this.config=bDn(f);cFo(this);if(!this.uEx){var H;this.uEx=iD_(this,((H=this.config.args)==null?void 0:H.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var v;if((v=this.config)==null?0:v.attrs)f=this.config.attrs,(H=f.width)&&this.nj&&(this.nj.style.width=DD(Number(H)||H,!0)),(f=f.height)&&this.nj&&(this.nj.style.height=DD(Number(f)||f,!0))};
var AFo=function(f){if(f.config&&f.config.loaded!==!0)if(f.config.loaded=!0,!f.config.args||f.config.args.autoplay!=="0"&&f.config.args.autoplay!==0&&f.config.args.autoplay!==!1){var H;f.api.loadVideoByPlayerVars((H=f.config.args)!=null?H:null)}else f.api.cueVideoByPlayerVars(f.config.args)},TJH=function(f){var H=!0,v=f.getPlayerElement();
v&&f.config&&(H=v.dataset.version===k8T(f));return H&&!!_.ES("yt.player.Application.create")},XWM=function(f){if(!f.isDisposed()&&!f.yH5){var H=TJH(f);
if(H&&(f.getPlayerElement()?"html5":null)==="html5")f.ndW="html5",f.isReady()||wWM(f);else if(quM(f),f.ndW="html5",H&&f.aj&&f.targetElement)f.targetElement.appendChild(f.aj),wWM(f);else{f.config&&(f.config.loaded=!0);var v=!1;f.q7j=function(){v=!0;var t=f0Z(f,"player_bootstrap_method")?_.ES("yt.player.Application.createAlternate")||_.ES("yt.player.Application.create"):_.ES("yt.player.Application.create");var M=f.config?bDn(f.config):void 0;t&&t(f.targetElement,M,f.webPlayerContextConfig,f.qA1);wWM(f)};
f.yH5=!0;H?f.q7j():(_.c7(k8T(f),f.q7j),(H=HaC(f))&&FA5(H||""),veT(f)&&!v&&_.qJ("yt.player.Application.create",null))}}};
hj.prototype.getPlayerElement=function(){var f=_.Ml(document,this.elementId);!f&&this.nj&&this.nj.querySelector&&(f=this.nj.querySelector("#"+this.elementId));return f};
var wWM=function(f){if(!f.isDisposed()){var H=f.getPlayerElement(),v=!1;H&&H.getApiInterface&&H.getApiInterface()&&(v=!0);if(v){f.yH5=!1;if(!f0Z(f,"html5_remove_not_servable_check_killswitch")){var t;if((H==null?0:H.isNotServable)&&f.config&&(H==null?0:H.isNotServable((t=f.config.args)==null?void 0:t.video_id)))return}tSg(f)}else f.lpI=setTimeout(function(){wWM(f)},50)}},tSg=function(f){NJ9(f);
f.ggv=!0;var H=f.getPlayerElement();if(H){f.cFN=MSZ(f,H,"addEventListener");f.sf1=MSZ(f,H,"removeEventListener");var v=H.getApiInterface();v=v.concat(H.getInternalApiInterface());for(var t=f.api,M=0;M<v.length;M++){var h=v[M];t[h]||(t[h]=MSZ(f,H,h))}}for(var y in f.o5)f.o5.hasOwnProperty(y)&&f.cFN&&f.cFN(y,f.o5[y]);AFo(f);f.uEx&&f.uEx(f.api);f.m99.publish("onReady",f.api)},MSZ=function(f,H,v){var t=H[v];
return function(){var M=_.NA.apply(0,arguments);try{return f.lastError=null,t.apply(H,M)}catch(h){if(v!=="sendAbandonmentPing")throw h.params=v,f.lastError=h,M=new _.e$("PlayerProxy error in method call",{error:h,method:v,playerId:f.playerId}),M.level="WARNING",M;}}},NJ9=function(f){f.ggv=!1;
if(f.sf1)for(var H in f.o5)f.o5.hasOwnProperty(H)&&f.sf1(H,f.o5[H]);for(var v in f.dG0)f.dG0.hasOwnProperty(v)&&clearTimeout(Number(v));f.dG0={};f.cFN=null;f.sf1=null;H=f.api;for(var t in H)H.hasOwnProperty(t)&&(H[t]=null);H.addEventListener=function(M,h){f.addEventListener(M,h)};
H.removeEventListener=function(M,h){f.removeEventListener(M,h)};
H.destroy=function(){f.dispose()};
H.getLastError=function(){return f.getLastError()};
H.getPlayerType=function(){return f.getPlayerType()};
H.getCurrentVideoConfig=function(){return f.bat};
H.loadNewVideoConfig=function(M){f.loadNewVideoConfig(M)};
H.isReady=function(){return f.isReady()}};
hj.prototype.isReady=function(){return this.ggv};
hj.prototype.addEventListener=function(f,H){var v=this;this.isDisposed();var t=iD_(this,H);t&&(_.cR(this.iNt,f)||this.o5[f]||(H=hcH(this,f),this.cFN&&this.cFN(f,H)),this.m99.subscribe(f,t),f==="onReady"&&this.isReady()&&setTimeout(function(){t(v.api)},0))};
hj.prototype.removeEventListener=function(f,H){this.isDisposed()||(H=iD_(this,H))&&this.m99.unsubscribe(f,H)};
var iD_=function(f,H){var v=H;if(typeof H==="string"){if(f.pDt[H])return f.pDt[H];v=function(){var t=_.NA.apply(0,arguments),M=_.ES(H);if(M)try{M.apply(_.Mr,t)}catch(h){throw t=new _.e$("PlayerProxy error when executing callback",{error:h}),t.level="ERROR",t;}};
f.pDt[H]=v}return v?v:null},hcH=function(f,H){var v=function(t){var M=function(){f.isDisposed();
if(!f.isDisposed())try{f.m99.publish(H,t!=null?t:void 0)}catch(m){var y=new _.e$("PlayerProxy error when creating global callback",{error:m.message,event:H,playerId:f.playerId,data:t,originalStack:m.stack,componentStack:m.componentStack});y.level="WARNING";throw y;}};
if(f0Z(f,"web_player_publish_events_immediately"))M();else{var h=setTimeout(function(){M();_.QA.remove(f.dG0,String(h))},0);
_.QA.add(f.dG0,String(h),!0)}};
return f.o5[H]=v};
hj.prototype.getPlayerType=function(){return this.ndW||(this.getPlayerElement()?"html5":null)};
hj.prototype.getLastError=function(){return this.lastError};
var quM=function(f){f.cancel();NJ9(f);f.ndW=null;f.config&&(f.config.loaded=!1);var H=f.getPlayerElement();H&&(TJH(f)||!veT(f)?f.aj=H:(H&&H.destroy&&H.destroy(),f.aj=null));f.targetElement&&_.L6(f.targetElement)};
hj.prototype.cancel=function(){this.q7j&&_.Mh3(k8T(this),this.q7j);clearTimeout(this.lpI);this.yH5=!1};
hj.prototype.disposeInternal=function(){quM(this);if(this.aj&&this.config&&this.aj.destroy)try{this.aj.destroy()}catch(H){var f=new _.e$("PlayerProxy error during disposal",{error:H});f.level="ERROR";throw f;}this.pDt=null;for(f in this.o5)this.o5.hasOwnProperty(f)&&delete this.o5[f];this.bat=this.config=this.api=null;delete this.targetElement;delete this.nj;_.zO.prototype.disposeInternal.call(this)};
var veT=function(f){var H,v;f=(H=f.config)==null?void 0:(v=H.args)==null?void 0:v.fflags;return!!f&&f.indexOf("player_destroy_old_version=true")!==-1},k8T=function(f){return f.webPlayerContextConfig?f.webPlayerContextConfig.jsUrl:(f=f.config.assets)?f.js:""},HaC=function(f){return f.webPlayerContextConfig?f.webPlayerContextConfig.cssUrl:(f=f.config.assets)?f.css:""},f0Z=function(f,H){if(f.webPlayerContextConfig)var v=f.webPlayerContextConfig.serializedExperimentFlags;
else{var t;if((t=f.config)==null?0:t.args)v=f.config.args.fflags}return(v||"").split("&").includes(H+"=true")},bDn=function(f){for(var H={},v=_.V(Object.keys(f)),t=v.next();!t.done;t=v.next()){t=t.value;
var M=f[t];H[t]=typeof M==="object"?_.QA.clone(M):M}return H};var Oag={},WGN="player_uid_"+(Math.random()*1E9>>>0);var Tl=function(f,H,v,t,M,h){H=H===void 0?document.createElement("div"):H;this.webPlayerContextConfig=f;this.container=H;this.commandResolver=v;this.apiResolver=SX5();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.dZ;t||h?Rc9(this):VSa(this);this.pendingPlayerResponse=t;this.pendingWatchNextResponse=M;this.pendingPlayerVars=h;yir(this)};
Tl.prototype.loadVideoWithPlayerResponse=function(f,H,v){this.loadVideo(f,H,v)};
Tl.prototype.loadVideoWithPlayerVars=function(f){return this.loadVideo(void 0,void 0,f)};
Tl.prototype.destroy=function(f){if(f=_.Ml(document,f))f=WGN+"_"+_.h9(f),(f=Oag[f])&&f.dispose()};
var m1v=function(f,H){var v;_.Y(function(t){if(t.nextAddress==1)return f.pendingWatchNextResponse=H,f.synchronousApi?(v=f.synchronousApi,t.jumpTo(2)):t.yield(f.api,3);t.nextAddress!=2&&(v=t.yieldResult);if(!YXZ(f,v))return t.return();f.pendingWatchNextResponse&&(v.updateVideoData({raw_watch_next_response:f.pendingWatchNextResponse}),f.pendingWatchNextResponse=void 0);_.Bj(t)})},YXZ=function(f,H){var v;
if(!(H==null?0:(v=H.isReady)==null?0:v.call(H))){var t;_.pb(new _.e$("playerApi is falsey",{synchronousApi:f.synchronousApi,apiResolved:f.apiResolver.resolved,playerApiUndefined:H===void 0,playerApiNull:H===null,playerApiReady:(H==null?void 0:(t=H.isReady)==null?void 0:t.call(H))===!0,playerApiMethods:H?Object.keys(H):[]}));return!1}return!0},$1n=function(f,H){if(typeof f[H]==="function")return f[H]()},WG9=function(f){var H=window,v,t=(v=H.ytplayer)==null?void 0:v.bootstrapPlayerContainer;
if((v=t==null?void 0:t.firstElementChild)&&_.Qu(v,"html5-video-player")){var M,h,y=(M=H.ytplayer)==null?void 0:(h=M.bootstrapWebPlayerContextConfig)==null?void 0:h.contextId;M=f.webPlayerContextConfig.contextId;if(y&&y===M){t!==f.container&&(t=!1,$1n(v,"getPlayerState")===2&&(t=!0),f.container.appendChild(v),t||$1n(v,"playVideo"));var m;if((m=H.ytplayer)==null?0:m.bootstrapPlayerResponse)f.bootstrapPlayerResponse=H.ytplayer.bootstrapPlayerResponse}}},yir=function(f){var H,v,t,M,h;
_.Y(function(y){if(y.nextAddress==1)return f.pageReadyOrDataAvailable?y.jumpTo(2):y.yield(f.pageReadyOrDataAvailableResolver.promise,2);if(y.nextAddress!=4)return!_.J("kevlar_player_unified_player_loading")||tSv()&&hcb()?y.jumpTo(4):y.yield(m1E(),4);WG9(f);if(f.pendingPlayerResponse||f.pendingPlayerVars)H=$13(f.pendingPlayerResponse,f.pendingWatchNextResponse,f.pendingPlayerVars),f.pendingPlayerResponse&&f.pendingPlayerResponse===f.bootstrapPlayerResponse&&(H.loaded=!0),f.bootstrapPlayerResponse=
void 0;v=I0E(f.container,H,f.webPlayerContextConfig);((t=H)==null?0:t.loaded)&&f.pendingWatchNextResponse?(m1v(f,f.pendingWatchNextResponse),f.pendingPlayerResponse=void 0,f.pendingPlayerVars=void 0):Oar(f);M=function(m){v.removeEventListener("onReady",M);f.synchronousApi=m;f.apiResolver.resolve(m)};
v.addEventListener("onReady",M);f.commandResolver!==void 0&&(h=f.commandResolver,v.addEventListener("innertubeCommand",function(m){h(m)}));
_.Bj(y)})};
Tl.prototype.loadVideo=function(f,H,v){var t=this,M,h,y,m,W,I,S,d,Z;return _.Y(function(l){if(l.nextAddress==1)return t.pendingPlayerResponse=f,t.pendingWatchNextResponse=H,t.pendingPlayerVars=v,Rc9(t),t.synchronousApi?(M=t.synchronousApi,l.jumpTo(2)):l.yield(t.api,3);l.nextAddress!=2&&(M=l.yieldResult);if(!YXZ(t,M))return l.return(new Promise(function(){}));
y=new Promise(function(L){h=L});
m=function(){var L=M.getPlayerResponse();L&&(M.removeEventListener("onVideoDataChange",m),h(L))};
M.addEventListener("onVideoDataChange",m);if(t.pendingPlayerResponse||t.pendingPlayerVars)t.pendingPlayerResponse&&t.pendingPlayerResponse===t.bootstrapPlayerResponse?(h(t.pendingPlayerResponse),t.pendingWatchNextResponse&&m1v(t,t.pendingWatchNextResponse)):(W=$13(t.pendingPlayerResponse,t.pendingWatchNextResponse,t.pendingPlayerVars),(Z=(I=t.pendingPlayerResponse)==null?void 0:(S=I.playerConfig)==null?void 0:(d=S.playbackStartConfig)==null?void 0:d.startPaused)?M.cueVideoByPlayerVars(W.args):M.loadVideoByPlayerVars(W.args)),
Oar(t),t.bootstrapPlayerResponse=void 0;return l.return(y)})};
var VSa=function(f){if(document.readyState==="complete"||document.readyState==="interactive")Rc9(f);else{var H=function(){document.removeEventListener("DOMContentLoaded",H);Rc9(f)};
document.addEventListener("DOMContentLoaded",H)}},Rc9=function(f){f.pageReadyOrDataAvailable=!0;
f.pageReadyOrDataAvailableResolver.resolve()},Oar=function(f){f.pendingPlayerResponse=void 0;
f.pendingWatchNextResponse=void 0;f.pendingPlayerVars=void 0};
_.H7.Object.defineProperties(Tl.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var w$=function(f){zC.call(this,f===void 0?"document_active":f);var H=this;this.overridePriority=10;this.hasRun=new Map;this.transitions=[{from:"document_active",to:"document_disposed_preventable",action:this.runPreventableDispose},{from:"document_active",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"flush_logs",action:this.runFlush},{from:"document_disposed_preventable",
to:"document_active",action:this.runActive},{from:"document_disposed",to:"flush_logs",action:this.runFlush},{from:"document_disposed",to:"document_active",action:this.runActive},{from:"document_disposed",to:"document_disposed",action:function(){}},
{from:"flush_logs",to:"document_active",action:this.runActive}];window.addEventListener("pagehide",function(v){H.transition("document_disposed",{event:v})});
window.addEventListener("beforeunload",function(v){H.transition("document_disposed_preventable",{event:v})});
window.addEventListener("unload",function(v){H.transition("document_disposed",{event:v});H.hasRun=new Map})};
_.e(w$,zC);
w$.prototype.runPreventableDispose=function(f,H){if(!this.hasRun.get("document_disposed_preventable")){f(H==null?void 0:H.event);var v,t;if((H==null?0:(v=H.event)==null?0:v.defaultPrevented)||(H==null?0:(t=H.event)==null?0:t.returnValue)){H.event.returnValue||(H.event.returnValue=!0);H.event.defaultPrevented||H.event.preventDefault();this.hasRun=new Map;this.transition("document_active");return}}this.hasRun.set("document_disposed_preventable",!0);this.hasRun.get("document_disposed")?this.transition("flush_logs"):this.transition("document_disposed")};
w$.prototype.runDispose=function(f,H){this.hasRun.get("document_disposed")?this.transition("document_active"):(f(H==null?void 0:H.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
w$.prototype.runFlush=function(f,H){f(H==null?void 0:H.event);this.transition("document_active")};
w$.prototype.runActive=function(){};var qW=function(f){zC.call(this,f===void 0?"document_visibility_unknown":f);var H=this;this.transitions=[{from:"document_visibility_unknown",to:"document_visible",action:this.runVisible},{from:"document_visibility_unknown",to:"document_hidden",action:this.runHidden},{from:"document_visibility_unknown",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visibility_unknown",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_visible",to:"document_hidden",action:this.runHidden},
{from:"document_visible",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visible",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_hidden",action:this.runHidden},{from:"document_foregrounded",to:"document_foregrounded",action:this.runForegrounded},{from:"document_hidden",to:"document_visible",action:this.runVisible},{from:"document_hidden",to:"document_backgrounded",
action:this.runBackgrounded},{from:"document_hidden",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_backgrounded",to:"document_visible",action:this.runVisible}];document.addEventListener("visibilitychange",function(v){document.visibilityState==="visible"?H.transition("document_visible",{event:v}):H.transition("document_hidden",
{event:v})});
_.J("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(v){H.transition("document_backgrounded",{event:v})}),window.addEventListener("focus",function(v){H.transition("document_foregrounded",{event:v})}))};
_.e(qW,zC);qW.prototype.runVisible=function(f,H){f(H==null?void 0:H.event);_.J("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
qW.prototype.runHidden=function(f,H){f(H==null?void 0:H.event);_.J("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
qW.prototype.runBackgrounded=function(f,H){f(H==null?void 0:H.event)};
qW.prototype.runForegrounded=function(f,H){f(H==null?void 0:H.event)};var fX=function(){this.teardownLifecycle=new w$;this.visibilityLifecycle=new qW};
fX.prototype.install=function(){var f=_.NA.apply(0,arguments),H=this;f.forEach(function(v){H.teardownLifecycle.install(v)});
f.forEach(function(v){H.visibilityLifecycle.install(v)})};var H5=function(){fX.call(this);var f={};this.install((f.document_disposed={callback:this.abortSlisAndFlush},f));_.J("combine_ve_grafts")&&(f={},this.install((f.document_disposed={callback:this.flushInteractionLoggingAttachVes},f)));f={};this.install((f.flush_logs={callback:this.logFinalPayload},f));_.J("web_log_cfg_cee_ks")||_.Lb(_.nN,gea)};
_.e(H5,fX);var d1v=function(){H5.loggingInstance||(H5.loggingInstance=new H5);return H5.loggingInstance};
H5.prototype.logFinalPayload=function(){if(_.J("web_fp_via_jspb")){var f=new hab,H=_.uy();H&&_.rr(f,1,H);H=_.J("jspb_sparse_encoded_pivot")?new eN([{}]):new eN;_.Lo(H,380,Ra_,f);bKR("finalPayload",H);_.J("web_fp_via_jspb_and_json")&&_.Kb("finalPayload",{csn:_.uy()})}else _.Kb("finalPayload",{csn:_.uy()})};
H5.prototype.abortSlisAndFlush=function(){CMC(Ep);NQ!=null&&NQ.flush()};
H5.prototype.flushInteractionLoggingAttachVes=function(){VYC(_.UV())};
var gea=function(){var f=_.a8("CLIENT_EXPERIMENT_EVENTS");if(f){var H=cNb();f=_.V(f);for(var v=f.next();!v.done;v=f.next())v=v.value,H(v)&&_.Kb("genericClientExperimentEvent",{eventType:v});delete _.nc.CLIENT_EXPERIMENT_EVENTS}};var I0v={};
I0v.YtPlayerBehavior=[_.im.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 f=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.dZ;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;jAs(function(){f.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.uK(this,"pan-down"),_.J("kevlar_pinch_fullscreen")&&_.xi().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.J("kevlar_pinch_fullscreen")&&_.xi().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(f,H,v){var t=this;Rs(this.useUnifiedPlayer_());if(this.mainAppPlayer_)Rs(!1,"MainAppPlayer already created.");else{var M=_.J("kevlar_player_container_query_killswitch")?this.$.container:_.mF(this.hostElement).querySelector("#container");this.mainAppPlayer_=new Tl(this.getWebPlayerContextConfig_(),M,function(h){return _.sV(h,t.hostElement)},f,H,v);
this.mainAppPlayer_.api.then(function(h){t.player_=h;t.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&R2b.resolve(h)})}},
loadVideoWithPlayerResponse:function(f,H){var v=this;if(this.useUnifiedPlayer_()){var t=this.watchNextData,M,h=(M=f.videoDetails)==null?void 0:M.videoId,y,m,W;(M=(y=this.watchNextData)==null?void 0:(m=y.currentVideoEndpoint)==null?void 0:(W=m.watchEndpoint)==null?void 0:W.videoId)&&h!=M&&(t=void 0,_.J("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(f,t,H):this.createMainAppPlayer_(f,t,H);this.mainAppPlayer_.api.then(function(){_.YE(v.hostElement,
"yt-player-updated")})}else this.update(quR(f,H))},
loadVideoWithPlayerVars:function(f){var H=this;this.useUnifiedPlayer_()?(_.J("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(f):this.createMainAppPlayer_(void 0,void 0,f),this.mainAppPlayer_.api.then(function(){_.YE(H.hostElement,"yt-player-updated")})):this.update({args:f})},
update:function(f){var H=this;if(this.useUnifiedPlayer_())Rs(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(f);var v=OKg(f.args);v&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==v&&Object.assign(f.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(f).then(function(t){_.YE(H.hostElement,"yt-player-updated",_.J("kevlar_player_updated_obsolete_player_killswitch")?
t:void 0)})}_.nb(new _.e$("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(f){var H=this,v;return _.Y(function(t){if(t.nextAddress==1)return t.yield(H.getPlayerPromise(),2);v=t.yieldResult;if(!v)throw Error("vh");f&&H.updatePlayerPlaylist_(f);_.Bj(t)})},
acquireApi_:function(f){var H=this;if(this.useUnifiedPlayer_())Rs(!1,"Invalid method call in kevlar_unified_player.");else return _.nN.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(Rs(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(v){H.shouldAutoplay_(f)?v.loadVideoByPlayerVars(f.args):v.cueVideoByPlayerVars(f.args)})):this.initPlayerPromise_=this.initPlayerContainer_(f),this.initPlayerPromise_},
initPlayerContainer_:function(f){var H=this;if(this.useUnifiedPlayer_())Rs(!1,"Invalid method call in kevlar_unified_player.");else return Rs(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.pb(Error("wh")),Rs(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.J("kevlar_player_container_query_killswitch")?this.$.container:_.mF(this.hostElement).querySelector("#container"),m1E().then(function(){var v=H.initPlayer_(f);H.playerResolver_.resolve(v);
return v})},
onPlayerReady_:function(f,H){this.useUnifiedPlayer_()?Rs(!1,"Invalid method call in kevlar_unified_player."):(f.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&R2b.resolve(f),H(f))},
maybeCallApiMethodOnElement_:function(f,H){if(typeof f[H]==="function")return f[H]()},
maybeAdoptBootstrapPlayer_:function(){var f=window,H,v=(H=f.ytplayer)==null?void 0:H.bootstrapPlayerContainer;if((H=v==null?void 0:v.firstElementChild)&&H.classList.contains("html5-video-player")){var t,M,h=(t=f.ytplayer)==null?void 0:(M=t.bootstrapWebPlayerContextConfig)==null?void 0:M.contextId;t=this.getWebPlayerContextConfig_().contextId;if(h&&h===t){v!==this.playerContainer_&&(v=!1,this.maybeCallApiMethodOnElement_(H,"getPlayerState")===2&&(v=!0),this.playerContainer_.appendChild(H),v||this.maybeCallApiMethodOnElement_(H,
"playVideo"));var y;if((y=f.ytplayer)==null?0:y.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=f.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(f){var H=this;if(this.useUnifiedPlayer_())Rs(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(v){H.maybeAdoptBootstrapPlayer_();var t=f?f0T(f):void 0;t&&t==H.bootstrapPlayerResponse_&&(f.loaded=!0);t=H.playerContainer_;var M=H.getWebPlayerContextConfig_();t=I0E(t,f,M);H.player_=t;H.onPlayerReadyEvent_=H.onPlayerReady_.bind(H,H.player_,v);H.player_.addEventListener("onReady",H.onPlayerReadyEvent_);H.player_.addEventListener("innertubeCommand",
H.onPlayerInnerTubeCommand_.bind(H))})},
getPlayerPromise:function(){return this.useUnifiedPlayer_()?(this.mainAppPlayer_||this.createMainAppPlayer_(),this.mainAppPlayer_.api):this.playerResolver_.promise},
getPlayer:function(){return this.player_&&this.player_.isReady()?this.player_:null},
pause:function(){this.getPlayerPromise().then(function(f){f.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(f){f.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var f=_.t8().resolve(_.fT).getCurrentPage();f&&f.getScrollTop()<=0?_.uK(this,"pan-down"):_.uK(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(f){f.isFullscreen()||f.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(f){f.isFullscreen()&&f.toggleFullscreen()})},
updatePlayerPlaylist_:function(f){var H=this,v,t,M;return _.Y(function(h){if(h.nextAddress==1)return v=_.t8().resolve(_.vh(_.u3)),t=!!(v&&v.playlistComponent&&v.playlistComponent.loopOn),h.yield(H.getPlayerPromise(),2);var y=M=h.yieldResult,m=y.updatePlaylist,W=[];if(_.J("kevlar_player_playlist_use_local_index")){var I,S;var d=(S=(I=f.localCurrentIndex)!=null?I:f.currentIndex)!=null?S:0}else{var Z;d=(Z=f.currentIndex)!=null?Z:0}if(f.contents)for(I=0;I<f.contents.length;I++)if((S=f.contents[I])&&S.playlistPanelVideoRenderer)if(hBs(S)){S=
S.playlistPanelVideoRenderer;Z="";S.shortBylineText&&(Z=_.fG(S.shortBylineText));var l="";S.title?l=_.fG(S.title):S.unplayableText&&(l=_.fG(S.unplayableText));W.push({author:Z,title:l,encrypted_id:S.videoId})}else I<d&&--d;m.call(y,{index:d,list:f.playlistId?f.playlistId:"",loop:t,playlist_title:f.title,playlist_length:W.length,video:W,fetch:0,external_list:"1",title:f.title?f.title:"",playlist_author:f.ownerName?_.fG(f.ownerName):void 0});_.Bj(h)})},
focusOnPlayer:function(){_.qV(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var f=this.playerContainer_.querySelector(".html5-video-player");f&&(_.v5(_.t8().resolve(_.xK)),f.focus())}})},
preparePlayer:function(){var f=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(H){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")H();else{var v=function(){document.removeEventListener("DOMContentLoaded",v);H()};
document.addEventListener("DOMContentLoaded",v)}})).then(function(){return m1E()}).then(function(){f.initPlayerPromise_||f.preparePlayerJobId_||(f.preparePlayerJobId_=_.Lb(_.nN,function(){f.initPlayerPromise_||(f.initPlayerPromise_=f.initPlayerContainer_())}))}):_.nb(new _.e$("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(f){this.useUnifiedPlayer_()?Rs(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(f)||(f.args.autoplay="0")},
shouldAutoplay_:function(f){if(this.useUnifiedPlayer_())Rs(!1,"Invalid method call in kevlar_unified_player.");else{var H=this.get("args.el",f);return H&&H!="detailpage"&&this.isMiniplayerActive_()||H&&(H=="sponsorshipsoffer"||H=="handlesclaiming")&&this.get("args.autoplay",f)=="0"?!1:(f=f0T(f))&&this.get("playerConfig.playbackStartConfig.startPaused",f)?!1:!0}},
isMiniplayerActive_:function(){return _.t8().resolve(_.o0).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var f=this.getPlayer();if(f){var H=f.getPlayerState();_.J("kevlar_player_check_ad_state_on_stop")&&(H=f.getPlayerState(f.getPresentingPlayerType()));H!=5&&f.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(f,H,v){v=v===void 0?!1:v;var t=this,M,h,y,m;return _.Y(function(W){if(W.nextAddress==1)return H||(H=t.hostElement),M=t.useUnifiedPlayer_()?!!t.mainAppPlayer_:!!t.initPlayerPromise_,M?W.yield(t.getPlayerPromise(),2):(v?f.insertBefore(H,f.firstChild):f.appendChild(H),W.return());h=W.yieldResult;y=h.getPlayerState(h.getPresentingPlayerType());m=!1;if(y==-1||y==1||y==3)m=!0;v?f.insertBefore(H,f.firstChild):f.appendChild(H);m&&h.playVideo();h.setSize(NaN,NaN);_.Bj(W)})},
watchNextDataChanged_:function(f){var H=this;f&&(this.useUnifiedPlayer_()&&_.J("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&m1v(this.mainAppPlayer_,f):this.getPlayerPromise().then(function(v){v.updateVideoData(H.computeWatchNextPlayerVars_(f))}))},
computeWatchNextPlayerVars_:function(f){if(this.useUnifiedPlayer_()&&_.J("kevlar_unified_player_update_watch_next_killswitch"))Rs(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:f}},
maybeSendAbandonmentPing_:function(){var f=this.getPlayer();f&&f.getPlayerState()!=5&&f.getPlayerState()!=0&&f.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var f=_.a8("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(f=Object.assign({},f),f.rootElementId=this.playerId);f.serializedExperimentIds&&f.serializedExperimentFlags||_.pb(Error("xh"));return f},
hasWebPlayerContextConfig_:function(){return!!_.a8("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(f){this.useUnifiedPlayer_()?Rs(!1,"Invalid method call in kevlar_unified_player."):_.sV(f,this.hostElement)},
useUnifiedPlayer_:function(){var f=_.J("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.J("kevlar_unified_player")||f}}];var SXb={};SXb.YtPlaylistPanelBehavior=[_.k.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(f){f=f.detail;if(f.actions.loop!=void 0||f.actions["yt-icons:loop"]!=void 0)this.loopOn=f.actions.loop||f.actions["yt-icons:loop"];if(f.actions.shuffle!=void 0||f.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=f.actions.shuffle||f.actions["yt-icons:shuffle"]},
setMenuData_:function(f){if(!f||!f.playlistButtons||f.isInfinite)return null;for(var H=f.playlistButtons.menuRenderer.topLevelButtons,v=H.length,t=0;t<v;t++)if(H[t].toggleButtonRenderer){var M=H[t].toggleButtonRenderer;M.defaultIcon.iconType=="LOOP"&&this.loopOn?M.isToggled=this.loopOn:M.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(M.isToggled=this.shuffleOn)}return f.playlistButtons}}];var d1g=function(f){mg.call(this,f,132);this.isDocument=f===document.documentElement};
_.e(d1g,mg);d1g.prototype.calculateScrollDelta=function(f,H,v){var t=0;f<H?t=f<H-100?-48:-8:f>H+v&&(t=f>H+v+100?48:8);return t};
d1g.prototype.JSC$11375_onMouseMove=function(f){this.isDocument||(f.clientX=f.event_.pageX,f.clientY=f.event_.pageY);mg.prototype.JSC$11375_onMouseMove.call(this,f)};var t3=function(){var f=_.er.apply(this,arguments)||this;f._noAccessors=!0;f.scrollElement=document.documentElement;f.JSC$14367_dragListGroup=null;f.dragScrollSupport=null;f.onDraggerCreated=function(H){var v=H.JSC$11371_dragger;v.scrollTarget_=f.scrollElement;H=H.draggerEl;v&&H.menuOpened&&v.setEnabled(!1)};
f.onDragStart=function(H){var v=H.draggerEl;H=H.currDragItem;var t=Object.assign({},H==null?void 0:H.data);t.trackingParams=void 0;v.data=t;v.style.position="absolute";v.style.width=(H==null?void 0:H.clientWidth)+"px";v.style.zIndex="2030";v.onDrag&&v.onDrag();_.J("web_owner_document_fallback_killswitch")?(H=document.querySelector("ytd-app"))&&_.mF(H).appendChild(v):(H=_.Gf(v),(t=H.querySelector("ytd-app"))?_.mF(t).appendChild(v):H.body.appendChild(v));f.dragScrollSupport=new d1g(f.scrollElement);
f.dragScrollSupport.horizontalScrolling_=!1;v=f.dragScrollSupport;v.constrainScroll_=!!v.margin_&&!1};
f.onDrop=function(H){f.handleDrop(H);f.dragScrollSupport&&(_.Mj(f.dragScrollSupport),f.dragScrollSupport=null)};
f.onReorderableScroll=function(){if(f.JSC$14367_dragListGroup){var H=f.JSC$14367_dragListGroup;MrT(H,H.currDragItem_)}};
return f};
_.e(t3,_.er);t3.prototype.detached=function(){_.jA_(this)};
_.jA_=function(f){f.JSC$14367_dragListGroup&&(_.IS(f.JSC$14367_dragListGroup,iGM,f.onDragStart),_.IS(f.JSC$14367_dragListGroup,q6C,f.onDragStart),f.JSC$14367_dragListGroup.dispose(),f.JSC$14367_dragListGroup=null);f.dragScrollSupport&&(_.Mj(f.dragScrollSupport),f.dragScrollSupport=null);f.scrollElement.removeEventListener("scroll",f.onReorderableScroll)};
_.sAh=function(f,H,v,t){t=t===void 0?"":t;_.jA_(f);v&&(f.scrollElement=v);f.JSC$14367_dragListGroup=new pK;f.JSC$14367_dragListGroup.hysteresisDistance_=2;H2h(f.JSC$14367_dragListGroup,H);f.JSC$14367_dragListGroup.draggerElClasses_=I3("dragging").split(" ");t&&vVg(f.JSC$14367_dragListGroup,function(M){var h=M||document,y=null;h.getElementsByClassName?y=h.getElementsByClassName(t)[0]:y=r9_("*",t,M);return y||M});
_.r9(f.JSC$14367_dragListGroup,AtZ,f.onDraggerCreated);_.r9(f.JSC$14367_dragListGroup,iGM,f.onDragStart);_.r9(f.JSC$14367_dragListGroup,q6C,f.onDrop);f.JSC$14367_dragListGroup.init();f.scrollElement.addEventListener("scroll",f.onReorderableScroll,{passive:!0})};
t3.prototype.handleDrop=function(){};
_.H7.Object.defineProperties(t3.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.E([_.F({value:100}),_.N("design:type",Number)],t3.prototype,"scrollMargin",void 0);_.E([_.L2()],t3);_.Zah=[t3.prototype];_.M2={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(f,H,v){var t=this.getClickTarget_(H);if(t&&this.isClickAllowed_(t)){H.preventDefault();f=(0,_.QA.unsafeClone)(f);var M=this.getContainerBoundingRect();H=this.getRelativeClickXy_(H,M);this.expandEndpointUrlMacros_(f,{NX:H[0],NY:H[1],NB:t.code});v&&this.truncateWebCommendMetadataUrl_(f);_.YE(this.hostElement,"yt-navigate",{endpoint:f})}},
getClickTarget_:function(f){if(!this.clickTargetMap)return null;f=_.f2(f)||[];f=_.V(f);for(var H=f.next();!H.done;H=f.next()){H=H.value;if(H===_.mF(this.hostElement).querySelector("#menu"))break;if(H=this.clickTargetMap.get(H.id))return H}return null},
getRelativeClickXy_:function(f,H){var v=f.detail.x,t=f.detail.y;_.J("use_on_click_for_desktop_display_ad")&&f.clientX!=null&&f.clientY!=null&&(v=f.clientX,t=f.clientY);f=Math.round(v-H.left);H=Math.round(t-H.top);return f<0||H<0?[null,null]:[f,H]},
getContainerBoundingRect:function(){return _.mF(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(f,H){for(var v=_.V(f.loggingUrls||[]),t=v.next();!t.done;t=v.next())t=t.value,t.baseUrl&&(t.baseUrl=b9v(t.baseUrl,H));f.urlEndpoint&&f.urlEndpoint.url&&(f.urlEndpoint.url=b9v(f.urlEndpoint.url,H));f.commandMetadata&&f.commandMetadata.webCommandMetadata&&f.commandMetadata.webCommandMetadata.url&&(f.commandMetadata.webCommandMetadata.url=b9v(f.commandMetadata.webCommandMetadata.url,H))},
truncateWebCommendMetadataUrl_:function(f){if(f.commandMetadata&&f.commandMetadata.webCommandMetadata&&f.commandMetadata.webCommandMetadata.url){var H=f.commandMetadata.webCommandMetadata.url,v=H.indexOf("&pp=");if(v>0){var t=H.indexOf("&",v+1);f.commandMetadata.webCommandMetadata.url=t>v&&t<H.length?H.slice(0,v)+H.slice(t):H.slice(0,v)}}},
configureClickTargets:function(f,H,v){this.containerId=f;this.clickTargetMap=new Map;f=_.V(H);for(H=f.next();!H.done;H=f.next())if(H=H.value,H.location){var t=v.get(H.location);t&&(_.WB(_.mF(this.hostElement).querySelector("#"+t),"yt-simple-endpoint",this.isClickAllowed_(H)),this.clickTargetMap.set(t,H))}},
isClickAllowed_:function(f){return f.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||f.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||f.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||f.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.h3={};
_.h3.YtLazyListBehavior=[_.Hp.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 f=(this.constructor.generatedFrom||this).observers;f||(f=[]);f.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
f}},
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 f=this.renderElementsOutsideVisibleArea_;f&&(dpM(f,4),f.processSignal())},
deepLazyListObserver_:function(f){var H=this;if(f){var v=f.value||[];if(this.itemsPath==f.path){var t=this.nonDeferredItemCount;f=0;t>-1&&v.length>t&&(f=_.a8("REMAINING_DOVA_DEFERRED_CHUNKS",-1));f>0?(t>0&&(t=v.slice(0,t),this.setInitialItemsOnDataChanged(t)),(t=this.renderElementsOutsideVisibleArea_)?t.cancel():(t=this.renderElementsOutsideVisibleArea_=new _.t$(2,"eocs"),_.cVB(window,"scroll",function(){return H.renderDeferredElements()})),_.M8(t,function(){H.setInitialItemsOnDataChanged(v)}),_.pc("REMAINING_DOVA_DEFERRED_CHUNKS",
f-1)):this.setInitialItemsOnDataChanged(v)}else if(this.itemsPath+".splices"==f.path)this.onItemsUpdated_(v);
else t="shownItems"+f.path.substr(this.itemsPath.length),this.useSignals&&t==="shownItems.length"||this.notifyPath(t,f.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(f){f&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(f),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(f){f=f.indexSplices;for(var H=0,v=f.length;H<v;H++){var t=f[H];if(t.index<this.shownCount&&(t.removed&&this.splice("shownItems",t.index,t.removed.length),t.addedCount)){var M=t.object.slice(t.index,t.index+t.addedCount);t=["shownItems",t.index,0];t.push.apply(t,M);this.splice.apply(this,t)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(f){this.cancelPendingTasks_();f||(f=[]);this.items_=f;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&&(_.P6("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.qV(this,this.tryRenderChunk_)))},
fillRange_:function(f,H){this.canShowMore&&this.items_&&(f=this.items_.slice(f,H),f.unshift("shownItems"),this.push.apply(this,f),this.shownCount=H,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var f=this;this.canShowMore&&_.iJ(this,"renderChunk",function(){f.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.P6("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.LT(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var f=this.renderElementsOutsideVisibleArea_;f&&(f.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var f=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(f-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=f;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(f){return Math.ceil(1E3/f)},
onCanShowMoreUpdated_:function(f){this.data&&this.items_!==null&&(f?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(f){!this.shouldUseTaskManager()&&this.data&&(!f&&this.canShowMore?(_.uwT(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):f&&this.partiallyRenderedItems_.has(this.items_)&&(_.J("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var yb;_.Rt={};
yb=function(){var f=_.er.apply(this,arguments)||this;f.atStart=!0;f.atEnd=!0;f.startIndex=0;f.endIndex=0;f.scrollCount=0;f.initialStartIndex=0;f.disableScrollEventListener=!1;f.useFloorScrolling=!1;f.isSearch=!1;f.dragging=!1;f.dragMouseStart=0;f.dragOffsetStart=0;f.disableWheelScroll=!1;f.centerListItems=!1;f.offset=0;f.minComponentWidth=0;f.marginWidthRight=0;f.marginWidthLeft=0;f.setButtonsStateRequested=!1;f.itemsVisibilityObserver=null;f.fullyVisibleItemsIndices=[];f.JSC$14378_onWheelScroll=function(H){if(f.isSearch&&
!f.disableWheelScroll&&_.J("desktop_enable_dmpanel_wheel_scroll")){var v=H.shiftKey?Math.abs(H.deltaY)>Math.abs(H.deltaX)?H.deltaY:H.deltaX:H.deltaX;v!==0&&(H.preventDefault(),f.ytLazyListBehavior.fillRemainingListItems(),f.offset+=v,Vb(f),f.reposition_())}};
f.onPointerDown=function(H){Jio(f)&&(f.dragMouseStart=H.clientX,f.dragOffsetStart=f.offset,f.dragging=!0)};
f.onPointerMove=function(H){Jio(f)&&f.dragging&&(f.ytLazyListBehavior.fillRemainingListItems(),f.offset=f.dragOffsetStart-(H.clientX-f.dragMouseStart),Vb(f),f.reposition_())};
f.onPointerUp=function(){Jio(f)&&(f.dragging=!1)};
return f};
_.e(yb,_.er);var l0a=function(f){var H=_.mF(f.hostElement).querySelector("#items").children;if(!H)return 0;var v=0;f=_.V(f.fullyVisibleItemsIndices);for(var t=f.next();!t.done;t=f.next())v+=H[t.value].clientWidth;return v},Jio=function(f){return f.isSearch&&_.J("desktop_enable_dmpanel_click_drag_scroll")};
yb.prototype.created=function(){this.cachedViewportWidth=_.a8("initialInnerWidth")||window.innerWidth;this.JSC$14378_cachedViewportHeight=_.a8("initialInnerHeight")||window.innerHeight;_.a8("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.pc("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
yb.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.J("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();U1T(this)};
yb.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.J("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var f;(f=this.itemsVisibilityObserver)==null||f.disconnect();this.itemsVisibilityObserver=null;var H;(H=this.itemsObserver)==null||H.disconnect()};
var U1T=function(f){var H=_.mF(f.hostElement).querySelector("#scroll-container");if(H){if(!f.itemsVisibilityObserver){var v=window.getComputedStyle(H).marginRight;f.itemsVisibilityObserver=new IntersectionObserver(function(t){ecM(f,t)},{root:H,
rootMargin:v,threshold:.98})}if(H=_.mF(f.hostElement).querySelector("#items"))f.itemsObserver=new paZ(H,function(t){LGh(f,t)})}},LGh=function(f,H){x1v(f)&&(Array.from(H.addedNodes).filter(function(v){return v.nodeType===Node.ELEMENT_NODE}).forEach(function(v){f.itemsVisibilityObserver&&f.itemsVisibilityObserver.observe(v)}),Array.from(H.removedNodes).filter(function(v){return v.nodeType===Node.ELEMENT_NODE}).forEach(function(v){f.itemsVisibilityObserver&&f.itemsVisibilityObserver.unobserve(v)}))},
ecM=function(f,H){var v=new Set(f.fullyVisibleItemsIndices);
H=_.V(H);for(var t=H.next();!t.done;t=H.next()){t=t.value;var M=t.target.parentElement;M?(M=Array.from(M.children).indexOf(t.target),t.isIntersecting?v.add(M):v.has(M)&&v.delete(M)):_.pb(new _.e$("Parent element not found",t.target.nodeName))}f.fullyVisibleItemsIndices=Array.from(v).sort(function(h,y){return h-y});
v.size===0?_.pb(new _.e$("No visible entries in horizontal list")):(f.startIndex=f.fullyVisibleItemsIndices[0],f.endIndex=f.fullyVisibleItemsIndices[f.fullyVisibleItemsIndices.length-1])},x1v=function(f){f.data?f=(f=f.data)&&f.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===f.itemSizeConstraint:!1:f=!1;
return f};
_.R=yb.prototype;_.R.addScrollEventListeners=function(){var f=_.mF(this.hostElement).querySelector("#scroll-container");f.style.touchAction="pan-y";f.addEventListener("wheel",this.JSC$14378_onWheelScroll);f.addEventListener("pointerdown",this.onPointerDown);f.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.R.removeScrollEventListeners=function(){var f=_.mF(this.hostElement).querySelector("#scroll-container");f.removeEventListener("wheel",this.JSC$14378_onWheelScroll);f.removeEventListener("pointerdown",this.onPointerDown);f.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.R.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.qV(this,this.setStartIndex,[this.initialStartIndex])};
_.R.reposition_=function(){var f=_.a8("HTML_DIR")=="rtl"?"":"-",H=_.mF(this.hostElement).querySelector("#items");H&&(H.style.transform="translateX("+f+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.R.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.qV(this,this.setButtonsState_))};
_.R.setButtonsState_=function(){this.setButtonsStateRequested=!1;var f=_.mF(this.hostElement).querySelector("#items").firstElementChild;if(f){this.minComponentWidth||(this.minComponentWidth=Bdr(this,f));f=_.mF(this.hostElement).querySelector("#scroll-container").clientWidth;var H=_.mF(this.hostElement).querySelector("#items");H=_.J("kevlar_horizontal_list_scroll_width_killswitch")?H.clientWidth:H.scrollWidth;var v=this.get(this.ytLazyListBehavior.itemsPath,this);if(v){var t=Math.round(f/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+t,v.length)-1)}this.ytLazyListBehavior.canShowMore?H+this.minComponentWidth>=this.offset+f&&(this.atEnd=!1):this.atEnd=this.offset+f>=H-20?!0:!1;this.atStart=this.offset<=20}};
_.R.setStartIndex=function(f){if(!this.minComponentWidth){var H=_.mF(this.hostElement).querySelector("#items").firstElementChild;if(!H)return;this.minComponentWidth=Bdr(this,H)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*f;Vb(this);this.reposition_()};
_.R.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.Ya();var f=_.mF(this.hostElement).querySelector("#scroll-container").clientWidth;_.J("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=Bdr(this,_.mF(this.hostElement).querySelector("#items").firstElementChild));f=this.useFloorScrolling?Math.floor(f/this.minComponentWidth)||1:Math.round(f/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&zcZ(this);this.offset+=x1v(this)?
l0a(this):f*this.minComponentWidth;Vb(this);this.reposition_();this.scrollCount++};
_.R.prevClick_=function(){var f=_.mF(this.hostElement).querySelector("#scroll-container").clientWidth;f=this.useFloorScrolling?Math.floor(f/this.minComponentWidth)||1:Math.round(f/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=x1v(this)?l0a(this):this.minComponentWidth*this.scrollCount-1):this.offset-=x1v(this)?l0a(this):f*this.minComponentWidth;this.centerListItems&&zcZ(this);Vb(this);this.reposition_()};
_.R.onIronResize_=function(){this.resizeSupportEnabled&&_.qV(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.R.onItemsTransitionEnd_=function(f){_.HB(f)===_.mF(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.R.onChildElementFocus_=function(f){f=f.target.closest("#items > *");var H=_.mF(this.hostElement).querySelector("#scroll-container");if(H.contains(f)){if(_.J("web_horizontal_list_behavior_focus_killswitch"))if(f.offsetLeft<this.offset)this.offset=Math.abs(f.offsetLeft)<f.clientWidth?0:f.offsetLeft;else if(f.offsetLeft+f.clientWidth>this.offset+H.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.Ya(),this.offset=f.offsetLeft+f.clientWidth-H.clientWidth;else return;else{var v=_.mF(this.hostElement).querySelector("#items"),
t=_.a8("HTML_DIR")==="rtl",M=t?v.clientWidth-f.offsetLeft:f.offsetLeft;v=t?v.clientWidth-(f.offsetLeft+f.clientWidth):f.offsetLeft+f.clientWidth;var h=t?M>this.offset+H.clientWidth:M<this.offset,y=t?v<this.offset:v>this.offset+H.clientWidth,m=t?h:y;if(t?y:h)H=t?v:M,this.offset=Math.abs(H)<f.clientWidth?0:H;else if(m)this.ytLazyListBehavior.fillRemainingListItems(),_.Ya(),this.offset=(t?M:v)-H.clientWidth;else return}Vb(this);this.reposition_()}};
_.R.observeShownItems_=function(){this.reset()};
_.R.checkComponentWidthResize=function(){var f=_.mF(this.hostElement).querySelector("#items").firstElementChild;f&&(f=Bdr(this,f),this.centerListItems||f!==this.minComponentWidth)&&(this.minComponentWidth=f,this.offset=f*this.scrollCount,this.centerListItems&&zcZ(this),Vb(this),this.reposition_())};
var Bdr=function(f,H){var v=window.getComputedStyle(H).marginRight;v=Math.floor(Number(v.replace("px","")));var t=window.getComputedStyle(H).marginLeft;t=Math.floor(Number(t.replace("px","")));f.centerListItems&&!f.marginWidthRight&&(f.marginWidthRight=v,f.marginWidthLeft=t);return f.resizeSupportEnabled?H.getBoundingClientRect().width+v:H.offsetWidth+v},Vb=function(f){var H=_.mF(f.hostElement).querySelector("#scroll-container").clientWidth,v=_.mF(f.hostElement).querySelector("#items").clientWidth;
f.offset<0?f.offset=0:f.offset+H>=v&&(f.offset=v-H)},zcZ=function(f){f.offset-=(_.mF(f.hostElement).querySelector("#scroll-container").clientWidth+f.marginWidthRight-f.minComponentWidth)/2-f.marginWidthLeft};
_.H7.Object.defineProperties(yb.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var f=_.a8("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(f==-1)f=this.JSC$14378_cachedViewportHeight,f=f>1320?5:f>1020?4:f>730?3:f>430?2:1;else if(f==0)return 0;_.pc("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",f-1);f=_.a8("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(f>-1)return f;f=this.cachedViewportWidth;f=f>1600?6:f>1400?5:f>1300?4:f>1090?5:f>870?4:f>660?3:2;_.pc("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
f);return f},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.J("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
yb.prototype.observeShownItems_=yb.prototype.observeShownItems_;yb.prototype.onChildElementFocus_=yb.prototype.onChildElementFocus_;yb.prototype.onItemsTransitionEnd_=yb.prototype.onItemsTransitionEnd_;yb.prototype.onIronResize_=yb.prototype.onIronResize_;yb.prototype.prevClick_=yb.prototype.prevClick_;yb.prototype.nextClick_=yb.prototype.nextClick_;yb.prototype.setButtonsState_=yb.prototype.setButtonsState_;yb.prototype.requestButtonsStateUpdate_=yb.prototype.requestButtonsStateUpdate_;
yb.prototype.reposition_=yb.prototype.reposition_;yb.prototype.reset=yb.prototype.reset;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],yb.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h3.YtLazyListBehavior),_.N("design:type",Object)],yb.prototype,"ytLazyListBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],yb.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],yb.prototype,"atStart",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],yb.prototype,"atEnd",void 0);_.E([_.F(),_.N("design:type",Object)],yb.prototype,"startIndex",void 0);_.E([_.F(),_.N("design:type",Object)],yb.prototype,"endIndex",void 0);_.E([_.F({value:6}),_.N("design:type",Number)],yb.prototype,"initialCount",void 0);_.E([_.F(),_.N("design:type",Object)],yb.prototype,"scrollCount",void 0);_.E([_.F(),_.N("design:type",Object)],yb.prototype,"initialStartIndex",void 0);
_.E([_.F(),_.N("design:type",Object)],yb.prototype,"disableScrollEventListener",void 0);_.E([_.F(),_.N("design:type",Object)],yb.prototype,"supportComponentResize",void 0);_.E([_.F({value:function(){var f=this;return function(){return f.prevClick_()}}}),
_.N("design:type",Function)],yb.prototype,"boundPrevClick",void 0);_.E([_.F({value:function(){var f=this;return function(){return f.nextClick_()}}}),
_.N("design:type",Function)],yb.prototype,"boundNextClick",void 0);_.E([_.F(),_.N("design:type",Object)],yb.prototype,"useFloorScrolling",void 0);_.E([_.F(),_.N("design:type",Object)],yb.prototype,"isSearch",void 0);_.E([_.F(),_.N("design:type",Object)],yb.prototype,"dragging",void 0);_.E([_.F(),_.N("design:type",Object)],yb.prototype,"dragMouseStart",void 0);_.E([_.F(),_.N("design:type",Object)],yb.prototype,"dragOffsetStart",void 0);
_.E([_.F(),_.N("design:type",Object)],yb.prototype,"disableWheelScroll",void 0);_.E([_.F(),_.N("design:type",Object)],yb.prototype,"centerListItems",void 0);_.E([_.sE("iron-resize"),_.Zw("guideOpened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yb.prototype,"onIronResize_",null);_.E([_.sE("transitionend"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],yb.prototype,"onItemsTransitionEnd_",null);
_.E([_.sE("focusin"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],yb.prototype,"onChildElementFocus_",null);_.E([_.Zw("shownItems"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yb.prototype,"observeShownItems_",null);_.E([_.L2()],yb);_.Rt.YtdHorizontalListBehavior=[];_.Rt.YtdHorizontalListBehavior.push(_.x3,_.k.YtRendererBehavior,_.h3.YtLazyListBehavior,_.NW.YtdGuideStateAwareBehavior,yb.prototype);var ZaB=["APP_STATE","PI"];var FGC=_.EH(["about:blank"]),riH={pushState:window.history.pushState,replaceState:window.history.replaceState};var Y8=function(f){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=f;this.internalPushState=f.pushState.bind(f);this.internalReplaceState=f.replaceState.bind(f)};
Y8.prototype.init=function(){this.initialized=!0};
Y8.prototype.pushState=function(f,H){this.initialized||this.init();this.internalPushState&&this.internalPushState(f,"",H)};
Y8.prototype.replaceState=function(f,H){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(f,"",H)};
Y8.prototype.getState=function(){return this.history&&this.history.state};var KGr=function(f){var H=function(){var v=f.apply(this,arguments)||this;v.boundHistoryPushState=!1;v.boundHistoryReplaceState=!1;v.debugInfo={};return v};
_.e(H,f);H.prototype.init=function(){var v=_.lS("IFRAME");_.T1(v,_.gr(FGC));v.sandbox="allow-same-origin";v.style.display="none";this.iframe=v;document.body.appendChild(v);this.bindHistoryStateFunctions();f.prototype.init.call(this)};
H.prototype.bindHistoryStateFunctions=function(){var v=this,t=[],M;this.iframe&&((M=this.iframe.contentWindow)==null?0:M.history)&&(M=this.iframe.contentWindow.history)&&(t.push(M),Object.getPrototypeOf(M)&&t.push(Object.getPrototypeOf(M)));window.history&&t.push(window.history);M=window.history;Object.getPrototypeOf(M)&&t.push(Object.getPrototypeOf(M));t.push(riH);M=function(y){for(var m=null,W=0;W<t.length;W++){var I=t[W][y];if(typeof I==="function"){m=I.bind(window.history);v.debugInfo[y]=W;break}}return m};
if(!this.boundHistoryReplaceState){var h=M("replaceState");h&&(this.internalReplaceState=h,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(M=M("pushState"))&&(this.internalPushState=M,this.boundHistoryPushState=!0)};
return H}(Y8),D1r=function(){return KGr.call(this,window.history)||this};
_.e(D1r,KGr);D1r.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var mn=function(f){this.browserHistory=f;this.initialized=!1};
mn.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
mn.prototype.pushState=function(f,H){this.initialized||this.init();this.browserHistory.pushState(f,H)};
mn.prototype.replaceState=function(f,H){this.initialized||this.init();this.browserHistory.replaceState(f,H)};
mn.prototype.handlePopstate=function(f){return f.state};_.oer=function(f,H,v,t,M){this.endpoint=f;this.forward=H;this.historyEntry=v;this.JSC$30119_savedComponentState=t;this.legacyBorder=M===void 0?!1:M};var ne_=function(f,H){this.rootData=f;this.scrollTop=H};var ds=new _.iN("PAGE_REQUEST_TOKEN"),A1h=new _.iN("FETCH_PBJ_TOKEN");_.$8=new _.iN("EPHEMERAL_STORE_TOKEN");_.W5=function(f){this.data=Object.assign({},f);var H;(H=this.data.innertubeResponse)==null||delete H.frameworkUpdates};
_.W5.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.ta)()};
_.T7=function(f){return Object.assign({},f.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var p$v=function(){this.maxSize=100;this.timeToDataCache=new Map};
p$v.prototype.get=function(f){var H=this.timeToDataCache.get(f);H&&(this.timeToDataCache.delete(f),this.timeToDataCache.set(f,H));if(H&&H.rootData&&(_.J("web_use_response_store_for_history_cache")||_.J("mweb_use_new_history_manager"))){var v=_.t8().resolve(_.$8),t=QAv(H),M=!!t;if(t){if(t.content){var h=Os(v,t.content);M&&h?H.rootData.response=_.T7(h):M=!1}t.player&&(h=Os(v,t.player),M&&h?H.rootData.playerResponse=_.T7(h):M=!1);t.reelSequence&&(v=Os(v,t.reelSequence),M&&v?H.rootData.reelWatchSequenceResponse=
_.T7(v):M=!1)}M||(this.timeToDataCache.delete(f),H=void 0)}return H};
p$v.prototype.set=function(f,H){if(H.rootData&&(_.J("web_use_response_store_for_history_cache")||_.J("mweb_use_new_history_manager"))){var v=QAv(H),t=Object.assign({},H.rootData);v&&(v.content&&H.rootData.response&&(uOg(this,v.content,H.rootData.response),t.response=null),v.player&&H.rootData.playerResponse&&(uOg(this,v.player,H.rootData.playerResponse),t.playerResponse=null),v.reelSequence&&H.rootData.reelWatchSequenceResponse&&(uOg(this,v.reelSequence,H.rootData.reelWatchSequenceResponse),t.reelWatchSequenceResponse=
null));H=new ne_(t,H.scrollTop)}this.timeToDataCache.has(f)?this.timeToDataCache.delete(f):this.timeToDataCache.size>=this.maxSize&&(v=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(v.value));this.maxSize!==0&&this.timeToDataCache.set(f,H)};
p$v.prototype.clear=function(){this.timeToDataCache.clear()};
var QAv=function(f){var H=_.t8().resolve(_.vh(ds)),v;if((v=f.rootData)==null?0:v.endpoint)return H==null?void 0:HtE(H,f.rootData.endpoint);var t;_.pb(new _.e$("History snapshot response data does not contain endpoint",(t=f.rootData)==null?void 0:t.url));return null},uOg=function(f,H,v){if(f.maxSize>0){var t;
(f=(t=v.responseContext)==null?void 0:t.maxAgeSeconds)&&Number(f)>0&&(t=_.t8().resolve(_.$8),v=Y$(v,f),t.put(H,new _.W5(v)))}};var a0b=function(f,H,v){this.endpoint=H;this.JSC$30124_savedComponentState=v===void 0?null:v;this.entryTime=f};var x1E=1;var gY=function(f){var H=function(){var v=f.apply(this,[].concat(_.pS(_.NA.apply(0,arguments))))||this;v.historyEntryTime=0;v.historySnapshotCache=v.createHistoryCache();return v};
_.e(H,f);H.prototype.createHistoryCache=function(){return new p$v};
H.prototype.saveAndReplace=function(v,t,M){var h=window.location.href;var y=y===void 0?{}:y;var m=(m=this.browserHistory.getState())&&m.entryTime?m.entryTime:Bdg();v=this.createNewHistoryEntry(v,y,m);this.saveSnapshot(m,t,M);this.replaceState(v,h||window.location.href)};
H.prototype.saveAndPush=function(v,t,M,h,y){y=y===void 0?{}:y;this.saveSnapshot(this.historyEntryTime,M,h);M=this.historySnapshotCache;h=this.historyEntryTime;var m=M.timeToDataCache.keys();m=_.V(m);for(var W=m.next();!W.done;W=m.next())W=W.value,W>h&&M.timeToDataCache.delete(W);t=this.createNewHistoryEntry(t,y);this.pushState(t,v)};
H.prototype.saveSnapshot=function(v,t,M){this.historySnapshotCache.set(v,new ne_(t,M))};
H.prototype.createNewHistoryEntry=function(v,t,M){M=M===void 0?Bdg():M;return new a0b(M,v,t)};
H.prototype.handlePopstate=function(v){var t=f.prototype.handlePopstate.call(this,v),M=null,h=null,y=!1,m=null;t&&t.entryTime&&(m=this.historySnapshotCache.get(t.entryTime)||null,y=t.entryTime>this.historyEntryTime,this.historyEntryTime=t.entryTime,M=t.endpoint,h=t.JSC$30124_savedComponentState);this.handleHistoryCacheLoad(new _.oer(M,y,m,h),v);return t};
H.prototype.pushState=function(v,t){Number(v==null?void 0:v.entryTime)>=0&&(this.historyEntryTime=v.entryTime);f.prototype.pushState.call(this,v,t)};
H.prototype.replaceState=function(v,t){Number(v==null?void 0:v.entryTime)>=0&&(this.historyEntryTime=v.entryTime);f.prototype.replaceState.call(this,v,t)};
H.prototype.handleHistoryCacheLoad=function(){};
return H}(mn),Pun=function(){var f=gY.call(this,new D1r)||this;
f.dispatchElement=null;f.entryIndex=0;return f};
_.e(Pun,gY);_.R=Pun.prototype;_.R.init=function(f){f=f===void 0?!0:f;gY.prototype.init.call(this);this.initialized||(f||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.R.handlePopstate=function(f){var H=null;f.state||(H="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return gY.prototype.handlePopstate.call(this,f);var v=new CustomEvent("yt-history-pop",{cancelable:!0});_.mb(this.dispatchElement,"yt-history-pop",[v,{errorMsg:H}]);_.$E(this.dispatchElement,"yt-close-all-popups-action");if(!v.defaultPrevented){v=_.t8().resolve(_.fT);H=v.getCurrentData();var t=v.getCurrentPage();v=0;t?(t=_.mb(this.dispatchElement,"yt-get-page-offset",
[t]),t.length>0&&(v=t[0])):_.pb(new _.e$("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:H?H.page:"undefined"}));H&&(H.csn=_.uy());this.saveSnapshot(this.historyEntryTime,H,v)}return gY.prototype.handlePopstate.call(this,f)};
_.R.handleHistoryCacheLoad=function(f,H){f.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.V(_.$E(this.dispatchElement,"yt-history-will-navigate",[H])).next().value||_.mb(this.dispatchElement,"yt-history-load",[H,f]))};
_.R.pushState=function(f,H){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var v=new _.e$("history.pushState is not a function",this.getDebugString());_.oO(v)}gY.prototype.pushState.call(this,f,H)};
_.R.replaceState=function(f,H){if(!this.browserHistory.boundHistoryReplaceState){var v=new _.e$("history.replaceState is not a function",this.getDebugString());_.oO(v)}gY.prototype.replaceState.call(this,f,H)};
_.R.saveAndPush=function(f,H,v,t,M){M=M===void 0?{}:M;v&&(v.csn=_.uy());gY.prototype.saveAndPush.call(this,f,H,v,t,M)};
_.R.getDebugString=function(){var f=[];this.initialized&&f.push("i");this.browserHistory.boundHistoryReplaceState&&f.push("bhr");this.browserHistory.boundHistoryPushState&&f.push("bhs");"replaceState"in this.browserHistory.debugInfo&&f.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&f.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&f.push("ei:"+String(this.entryIndex));return f.join(",")};
_.It=function(f,H){f.init(!0);var v=f.browserHistory.getState();f.replaceState(v,y4(H))};
Pun.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.SU=new _.iN("DESKTOP_HISTORY_MANAGER_TOKEN");var Gza=[10,20,30,40,50,60],dY=function(){this.currentPartitionIndex=0},Cub=function(f){k$H({mainAppWeb:_.kz(),
survivalSli:{partitionMinute:f,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},Ee9=function(f){k$H({mainAppWeb:_.kz(),
survivalSli:{partitionMinute:f,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},Nd_=function(f){return f.currentPartitionIndex>=0&&f.currentPartitionIndex<Gza.length?Gza[f.currentPartitionIndex]:-1},civ=function(f){return f.currentPartitionIndex>0&&f.currentPartitionIndex-1<Gza.length?Gza[f.currentPartitionIndex-1]:-1};
dY.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var f=civ(this);f>0&&Ee9(f);f=Nd_(this);f>0&&Cub(f);X$g(this)}};
var X$g=function(f){var H=Nd_(f);if(H>0){var v=civ(f);v<0&&(v=0);f.intervalId=_.nN.addJob(function(){var t=civ(f);t>0&&Ee9(t);t=Nd_(f);t>0&&Cub(t);X$g(f)},3,(H-v)*6E4);
f.currentPartitionIndex+=1}else f.currentPartitionIndex=-1};var Aih=function(){this.skipNextNavigation=!1},ba_=function(f,H,v){if(!H)return!1;
if(f.skipNextNavigation)return f.skipNextNavigation=!1;if(_.U(v,_.X7))return!1;var t,M,h;if((t=_.U(v,_.ec))==null?0:(M=t.browseEndpointContextSupportedConfigs)==null?0:(h=M.browseEndpointContextMainConfig)==null?0:h.skipConfirmation)return!1;var y;return((y=_.U(H.commandMetadata,_.jG))==null?void 0:y.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
Aih.prototype.showConfirmationDialog=function(f,H){this.navigateParams=H;this.customConfirmationCommand?_.t8().resolve(_.MJ).resolveCommand(this.customConfirmationCommand):(H={openPopupAction:{popup:{confirmDialogRenderer:{title:_.qO(_.ZC("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.qO(_.ZC("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.qO(_.ZC("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.qO(_.ZC("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.A7.getInstance().triggerAction("yt-open-popup-action",H,f))};
Aih.prototype.cancelPendingNavigation=function(){var f;((f=this.navigateParams)==null?void 0:f.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var iah=function(){},TdM=function(f,H,v,t,M,h,y){v=v===void 0?{}:v;
y=y===void 0?{}:y;var m=_.lq.instance,W,I=(W=_.U(H,_.X7))==null?void 0:W.url;return I?Q__(m,I,v,window.location.href,function(S,d){kz9(f,S,d,!1,!0,v,h,t)},function(){return!1}):Qk(m,H,v,window.location.href,xz(H),function(S,d){kz9(f,S,d,!1,!0,v,h,t)},M,y)},kz9=function(f,H,v,t,M,h,y,m){if(!f.JSC$14436_chunkHandler)if(v.page==="learning_journey_watch"&&_.J("web_enable_canvas_on_learning_journey")){var W=!_.U(m,_.ec);
M=M||t;if(W)if(M){if(_.J("kevlar_continue_playback_without_player_response")){var I;var S=(I=_.U(m,_.wI))==null?void 0:I.videoId}t={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:t,previousVideoId:S},tempData:h}}else t={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else t={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};f.JSC$14436_chunkHandler=new I2o(_.vx,t,y,W,M)}else if(v.page==="watch"||v.page==="learning_journey_watch")if(M||t){if(_.J("kevlar_continue_playback_without_player_response")){var d;
W=(d=_.U(m,_.wI))==null?void 0:d.videoId}f.JSC$14436_chunkHandler=new j$C(_.vx,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:t,previousVideoId:W},tempData:h},y)}else f.JSC$14436_chunkHandler=new Okv(_.vx);else v.page==="shorts"&&M&&!t?f.JSC$14436_chunkHandler=new dUh(_.vx,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:h},y):f.JSC$14436_chunkHandler=new gC9(y);f.JSC$14436_chunkHandler.processChunk({endpoint:H,data:v});return f.JSC$14436_chunkHandler.lT.promise},
w$H=function(f,H,v,t,M){(v=_.VQo(v))&&kz9(f,H,v,!1,!0,t,void 0,M)};var qX_=function(){this.pendingNavigationPromise=null};
_.R=qX_.prototype;_.R.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.R.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.R.addEventListener=function(){throw Error("yh");};
_.R.dispatchEvent=function(){throw Error("yh");};
_.R.removeEventListener=function(){throw Error("yh");};var fmC=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],jU=function(){_.Sg.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];H7M(this)};
_.e(jU,_.Sg);jU.prototype.verifyUser=function(){var f=H7M(this),H=f.logout;if(!f.sessionChange)return!0;this.dispatchEvent("ytsessionchange");H&&this.dispatchEvent("ytuserinvalid");return!1};
var H7M=function(f){var H=fmC.map(function(M){var h;return(h=_.sk.get(M))!=null?h:""}),v=H.some(function(M,h){return f.sessionCookies&&f.sessionCookies[h]!==""&&M===""}),t=H.some(function(M,h){return f.sessionCookies&&f.sessionCookies[h]!==M});
f.sessionCookies=H;return{logout:v,sessionChange:t}};
jU.prototype.clearTimeout=function(){this.scheduledJobId&&(_.nN.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var D1g=new _.iN("POSTMESSAGE_TUNNEL_TOKEN");var FGH=["/parent_tools","/file_download","/artist_roster"],p$E=[mrM,$rZ,Ws_,gvb,Ogg,Y5o,I_b,S5g];var vL_=new _.iN("APP_ROOT");var ss=new _.iN("NAVIGATION_CONFIRMATION_SERVICE");var t1v="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),M1H=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
Zf=function(f,H){this.pendingNavigationPromise=null;this.JSC$14454_clientRoot=f;this.historyManager=H;this.numNavigations=-1;this.lastNavigationUrl=null;this.resetWarmLoads=!1;this.searchDebugUrlMatcher=new RegExp(/\/results\?.*deb|\/scraper_results\?.*deb|\/results\?.*enable=|\/scraper_results\?.*enable=/);this.isMiniplayerExpansion=!1;this.currentEndpoint=null;this.pageFetcher=new iah;this.debugString=f.is;f={"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};_.b$(_.A7.getInstance(),f,this.JSC$14454_clientRoot)},YDo,mXH,$Xh,Wlr,ySa;
_.e(Zf,qX_);Zf.prototype.reload=function(){_.iY(window.location.href)};
var mmv=function(f){f.currentEndpoint&&_.U(f.currentEndpoint,_.zD)?f.reload():f.currentEndpoint&&f.navigate(f.currentEndpoint,!0,void 0,{disableCache:!0})};
Zf.prototype.navigate=function(f,H,v,t,M,h,y,m){H=H===void 0?!1:H;v=v===void 0?{}:v;t=t===void 0?{}:t;var W=_.t8().resolve(ss),I;if(!y&&ba_(W,(I=this.currentEndpoint)!=null?I:void 0,f))return W.showConfirmationDialog(this.JSC$14454_clientRoot.parentElement,{endpoint:f,reload:H,params:v,tempData:t,requestType:M,createScreenConfig:h}),!1;var S=_.PL();_.Gu(S,"eocs")||S.parkOrScheduleJob(function(){S.processSignal("eocs")},10,"eor");
y=xz(f);W=t.autonav==="1";I=_.uy();jU.instance||(jU.instance=new jU);var d=jU.instance.verifyUser(),Z;if(_.J("enable_dark_theme_only_on_shorts")){var l=document.documentElement.hasAttribute("dark"),L=_.o9(!0)==="USER_INTERFACE_THEME_DARK";if(y==="shorts"){if(!l)if(_.J("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var r;_.iY((r=_.U(f==null?void 0:f.commandMetadata,_.jG))==null?void 0:r.url,void 0,void 0,window.top)}}else{var n;_.iY(_.iZ((n=_.U(f==null?
void 0:f.commandMetadata,_.jG))==null?void 0:n.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.J("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!l){var Q;_.iY(_.iZ((Q=_.U(f==null?void 0:f.commandMetadata,_.jG))==null?void 0:Q.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(L!==l){var C;_.iY(_.iZ((C=_.U(f==null?void 0:f.commandMetadata,_.jG))==null?void 0:C.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(y==="watch"){if(hxb(_.t8().resolve(_.o0),
f)&&(d||_.J("fix_miniplayer_navigation_killswitch")))return!1;_.J("block_all_player_prefetch_requests")||(Z=ynh(_.iw(_.Uz),f,W))}else{var w,c=(w=_.U(this.currentEndpoint,_.wI))==null?void 0:w.videoId;c&&_.xP.getInstance().then(function(U5){U5&&U5.set("yt-miniplayer-shown-video-id",c)})}Z&&(v.frags=Z.missingFragments_.join(","));
r=null;var A;n=(A=_.U(f==null?void 0:f.commandMetadata,_.jG))==null?void 0:A.ignoreNavigation;if(!n)if(_.J("kevlar_command_url")){var X;r=(X=_.U(f==null?void 0:f.commandMetadata,_.jG))==null?void 0:X.url}else r=_.rjR(f,v);if(r&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&r==this.lastNavigationUrl)return _.nQ({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.hQ(NC(),"CANCELLED")}r&&(this.lastNavigationUrl=r);$2N();_.pc("IS_HOMEPAGE_COLD",
!1);_.pc("IS_RESULTS_PAGE_COLD",!1);_.pc("IS_WATCH_PAGE_COLD",!1);f.loggingUrls&&f.loggingUrls.forEach(function(U5){U5.baseUrl&&_.c8(U5.baseUrl)});
_.Pu3(f,h?h.layer:0)&&_.J("kevlar_flush_logs_on_away_navigation")&&_.DK();if(QAE(f))return!1;Clh(y,M);if(!r)return n||_.pb(new _.e$("Can't construct url for endpoint",f)),_.hQ(NC(),"FAILURE"),!1;_.zcT();A=f&&_.U(f,_.ec)&&_.U(f,_.ec).browseId.startsWith("UC");v=(X=_.J("enable_dark_theme_only_on_shorts")&&y==="shorts"?!1:_.nG()&&document.documentElement.hasAttribute("dark")!==_.Dn())?{themeRefresh:1}:{};X&&!_.J8()&&_.o9()==="USER_INTERFACE_THEME_DARK"&&(v.theme="dark");A=X||RxM(r)&&!A&&!_.J("kevlar_disable_url_allowlist");
d||(A=!0);if(A||_.a8("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var fg;var gB=(fg=window.top)==null?void 0:fg.location.href}catch(U5){var O5;gB=(O5=U5)==null?void 0:O5.message}_.pb(new _.e$("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:gB}))}f=_.J("kevlar_redirect_on_window_killswitch")?window.top:window;bY(r);_.iY(_.iZ(r,v),void 0,void 0,f);_.hQ(NC(),"ABORTED");return!1}_.J("kevlar_early_popup_close")&&_.mb(this.JSC$14454_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14436_chunkHandler=void 0;var s5;gB=xz((s5=this.currentEndpoint)!=null?s5:void 0);(s5=y==="shorts"&&gB==="shorts")||_.O3T();_.Cc(q3R)("nr",void 0);W&&_.nQ({webInfo:{navigationReason:"an"}});f.clickTrackingParams&&(t.itct=f.clickTrackingParams,t.csn=I);lje(t);t.endpoint=JSON.stringify(f);_.J("enable_unknown_lact_fix_on_html5")&&(_.t8().resolve(_.xK),t.lact=_.h7());_.QA.isEmpty(t)||_.vV(r,t);!_.J("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(h=Object.assign({},{layer:0},h,{parentLayer:3}));this.pendingNavigationPromise=h=TdM(this.pageFetcher,f,t,this.currentEndpoint,this.JSC$14454_isNetworkPromiseStale.bind(this),h,m);h=h.then(this.handleNavigateSuccess.bind(this,h,f,Z,t),this.handleNavigateFail.bind(this,h,f));_.S0().navigationFinishPromise=h;H={endpoint:f,pageType:y,url:y4(r),reload:!!H,noProgressBar:s5};M&&(H.type=M);this.fireEvent("yt-navigate-start",H);Z&&w$H(this.pageFetcher,f,Z,t,this.currentEndpoint);
return!0};
Zf.prototype.JSC$14454_isNetworkPromiseStale=function(f){return f!=this.pendingNavigationPromise};
var V1v=function(f,H,v,t,M){var h=xz(H);H={endpoint:H,pageType:h};M&&(H.errorMessage=M);_.pb(v);H.navigationDoneMs=_.u0("nd");H.navigationErrorReason=t;f.fireEvent("yt-navigate-error",H)};
Zf.prototype.handleNavigateFail=function(f,H,v){var t=void 0;v instanceof _.pp&&(t=v,zIr(v));if(this.JSC$14454_isNetworkPromiseStale(f))return _.DI(t);_.hQ(NC(),"FAILURE");V1v(this,H,v,"101");return _.DI(v)};
Zf.prototype.handleNavigateSuccess=function(f,H,v,t,M){if(this.JSC$14454_isNetworkPromiseStale(f))return _.gj();this.pendingNavigationPromise=null;if(!M)return H=new _.e$("Missing data in response for navigation endpoint",H),_.DI(H);if(M.reload)return window.location.reload(!0),_.gj();v&&(f={},_.QA.extend(f,_.VQo(v),M),M=f);var h,y;v=(h=M)==null?void 0:(y=h.timing)==null?void 0:y.responseStart;v!=null&&_.u0("srt",v);_.u0("pdc");var m,W;h=(m=M)==null?void 0:(W=m.timing)==null?void 0:W.info;h!=null&&
(m=_.Cc(_.tHe)(h),_.nQ(m));_.hQ(NC(),"SUCCESS");ySa(this,H,M,1,t);return _.gj()};
var RxM=function(f){var H=f;_.J("kevlar_no_redirect_to_classic_2_ks")||(H=(new _.qC(f)).getPath());if(H==="/"||H==="/red")return!1;var v=!0;t1v.forEach(function(t){f.indexOf(t)===0&&(v=!1)});
M1H.forEach(function(t){var M=t.url;_.J(t.expFlag)&&f.indexOf(M)===0&&(v=!1)});
return v};
Zf.prototype.publishPageData=function(f){this.fireEvent("yt-page-data-fetched",{pageData:f})};
YDo=function(f,H,v,t,M,h){var y=null;H.page!=="watch"&&H.page!=="learning_journey_watch"||t?H.filler||_.mb(f.JSC$14454_clientRoot,"yt-stop-old-player",[H]):y=kz9(f.pageFetcher,M,H,v,!1,h,void 0,f.currentEndpoint);if(y)return y.then(f.publishPageData.bind(f,H));f.publishPageData(H);return _.gj()};
mXH=function(f,H,v){var t=null;if(!v)return t=new _.e$("Empty data",f.debugString,H);var M=v.response;if(!M)return t;var h={endpointType:xz(H)||"unknown"};M.responseContext?(M=M.responseContext.errors)&&(t=new _.e$("Errors in response context",f.debugString,H,M,h)):t=M.error||M.errorMetadata?new _.e$("Errors in response",f.debugString,H,M.error,M.errorMetadata,h):new _.e$("responseContext missing",f.debugString,H,Object.keys(M).sort().join(","),h);var y,m,W,I;if(f=v==null?void 0:(y=v.response)==null?
void 0:(m=y.responseContext)==null?void 0:(W=m.webResponseContextExtensionData)==null?void 0:(I=W.webResponseContextDebugData)==null?void 0:I.debugErrorMessages)for(y=0;y<f.length;y++);return t};
$Xh=function(f){var H,v,t,M;return f==null?void 0:(H=f.response)==null?void 0:(v=H.responseContext)==null?void 0:(t=v.errors)==null?void 0:(M=t.error)==null?void 0:M["0"]};
Wlr=function(f,H){var v;if(v=H.url&&!H.url.startsWith("/clip"))v=H.url,v=!_.J("webfe_parse_debug_param_in_resolveurl_service")&&f.searchDebugUrlMatcher.test(v)||ul3(v)?!0:!1;if(v)ul3(H.url)&&_.bZ(window.location.href).themeRefresh?(H=_.tX(H.url,"themeRefresh"),_.It(f.historyManager,H)):H.url&&!ecR(H.url)&&_.It(f.historyManager,H.url);else if(H.endpoint){var t,M,h;(v=(t=H.endpoint)==null?void 0:(M=t.commandMetadata)==null?void 0:(h=M.webCommandMetadata)==null?void 0:h.url)&&!ecR(v)&&_.It(f.historyManager,
v);v&&H.url&&v!=H.url&&!H.url.match("playnext=1")&&new _.e$("Response url mismatch in response data",f.debugString,v,H.url)}};
_.O7h=function(f,H,v,t,M,h,y,m){h=h===void 0?!1:h;var W=_.t8().resolve(ss),I;if(!m&&ba_(W,(I=f.currentEndpoint)!=null?I:void 0,H))return W.showConfirmationDialog(f.JSC$14454_clientRoot.parentElement,{endpoint:H,data:v,navigationType:t,tempData:M,isMiniplayer:h,isForwardHistoryNavigation:y==null?void 0:y.forward}),_.gj();f.pageFetcher.JSC$14436_chunkHandler=void 0;return ySa(f,H,v,t,M,h)};
ySa=function(f,H,v,t,M,h){h=h===void 0?!1:h;f.isMiniplayerExpansion=h;var y=t===2;f.currentEndpoint=H;f.numNavigations++;f.numNavigations&&(YiR.navigationCount=f.numNavigations);_.pc("NUM_NAV",f.numNavigations);var m=mXH(f,H,v);if(m)return V1v(f,H,m,"102",$Xh(v)),_.DI(m);var W,I,S,d;m=v.rootVe||(v==null?void 0:(W=v.response)==null?void 0:(I=W.responseContext)==null?void 0:(S=I.webResponseContextExtensionData)==null?void 0:(d=S.ytConfigData)==null?void 0:d.rootVisualElementType);!y&&v&&Wlr(f,v);var Z,
l;W=v==null?void 0:(Z=v.response)==null?void 0:(l=Z.responseContext)==null?void 0:l.maxAgeSeconds;if(!y&&!isNaN(W)){var L;_.J("kevlar_use_response_ttl_to_invalidate_cache")?L=(0,_.ta)()+1E3*W:_.J("kevlar_always_invalidate_cache")&&(L=0);isNaN(L)||(v.expirationTime=L)}_.iw(_.Uz).prefetchCache_.clear();y||v.page!=="watch"||v.type!=="reduced"&&t!==1?t=YDo(f,v,y,!!h,H,M):(f.publishPageData(v),t=_.gj());M=t.then(function(){var r=xz(H);r={endpoint:H,pageType:r,fromHistory:y,response:v};r.navigationDoneMs=
_.u0("nd");f.fireEvent("yt-navigate-finish",r)});
v.csn&&m&&v.clientSideGrafts&&t.then(f.attachClientSideGrafts.bind(f,v,_.Qe()));return M};
_.R=Zf.prototype;_.R.attachClientSideGrafts=function(f,H){f.clientSideGrafts&&H&&f.clientSideGrafts.forEach(function(v){if(H&&v){var t=_.zK(v);_.J("combine_ve_grafts")?_.UV().graftServerVe(v,H):_.Xl(f.csn,H,t)}})};
_.R.handleSignalActionHistoryBack=function(){window.history.back()};
_.R.handleSignalActionCloseWindow=function(){window.close()};
_.R.handleSignalActionReloadPage=function(){this.reload()};
_.R.handleSignalActionSoftReloadPage=function(){mmv(this)};
_.R.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.R.fireEvent=function(f,H){f=new CustomEvent(f,{bubbles:!0,cancelable:!1,composed:!0,detail:H});this.dispatchEvent(f)};
_.R.addEventListener=function(f,H){this.JSC$14454_clientRoot.addEventListener(f,H)};
_.R.dispatchEvent=function(f){return this.JSC$14454_clientRoot.dispatchEvent(f)};
_.R.removeEventListener=function(f,H){this.JSC$14454_clientRoot.removeEventListener(f,H)};
Zf[bN]=[vL_,_.SU];_.P85=new Rj("browse","h8y2qb");_.GaE=new Rj("search","JzFVk");_.C8b=new Rj("shorts","xwEKAe");_.EjR=new Rj("watchFixie","nmfa2d");_.NR_=new Rj("watchFlexy","CF909");_.c0b=new Rj("watchGrid","Tm0L3c");_.XeR=new Rj("watchLearningJourney","L3n37");var gLo;var ImT=function(){return _.K.apply(this,arguments)||this};
_.e(ImT,_.K);_.H7.Object.defineProperties(ImT,{template:{configurable:!0,enumerable:!0,get:function(){if(gLo===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);gLo=f}f=gLo;return f}}});
_.E([_.B(I0v.YtPlayerBehavior),_.N("design:type",Object)],ImT.prototype,"ytPlayerBehavior",void 0);_.E([_.u({is:"ytd-player"})],ImT);var SD_;var dXZ;var jwM;var J3=function(){var f=_.K.apply(this,arguments)||this;f.forceModernIconButton=!1;f.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return f};
_.e(J3,_.K);J3.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]]"}}}}}};
J3.prototype.handleAccountLinkingStateChangedCommand=function(f){if(f=_.U(f,Mx_)){var H,v=(H=this.data)==null?void 0:H.providerKey;H=f.providerKey;v&&H&&v.id===H.id&&v.subject===H.subject&&(f=f.linked,f!==void 0&&(this.set("data.linked",f),this.notifyPath("data.linked"),_.J("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(f)))}};
J3.prototype.setPlayerAccountLinkState=function(f){var H=new T_n;wDT(H,iRo(new bRb,f));var v=_.vx();v&&v.getPlayerPromise().then(function(t){t.setAccountLinkState(_.QG(H.JSC$12149_serializeBinary(),4));t.updateAccountLinkingConfig(f)})};
J3.prototype.handleShowAccountLinkDialog=function(){var f=this.get("button.buttonRenderer.command");f&&_.SG([f],this.hostElement)};
_.H7.Object.defineProperties(J3.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}}}});
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],J3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],J3.prototype,"ytRendererBehavior",void 0);_.E([_.B([_.dt.YtActionHandlerBehavior]),_.N("design:type",Object)],J3.prototype,"actionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],J3.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],J3.prototype,"overrides",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],J3.prototype,"forceModernIconButton",void 0);_.E([_.F({value:"bottom"}),_.N("design:type",String)],J3.prototype,"buttonTooltipPosition",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],J3.prototype,"forceIconButton",void 0);_.E([_.F(),_.N("design:type",Boolean)],J3.prototype,"disableTextTransform",void 0);
_.E([_.z("data","data.linked","data.isWarning"),_.N("design:type",Object),_.N("design:paramtypes",[])],J3.prototype,"button",null);_.E([_.u({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],J3);
_.G(J3,"ytd-account-link-button-renderer",function(){if(jwM!==void 0)return jwM;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return jwM=f},{mode:1});var swT;var Z7v=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],l5=function(){return _.K.apply(this,arguments)||this};
_.e(l5,_.K);l5.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
l5.prototype.updateButtonActiveState=function(){var f=this,H=!!Z7v.find(function(v){return f.currentState===v});
this.button&&(this.button.isPressed=H)};
_.H7.Object.defineProperties(l5.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var f,H;return((f=this.playlistLoopStateEntity)==null?void 0:f.state)||((H=this.data)==null?void 0:H.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var f=void 0,H;if(this.currentState&&((H=this.data)==null?0:H.states)){H=_.V(this.data.states);for(var v=H.next();!v.done;v=H.next()){v=_.U(v.value,_.U7_);var t=void 0;if(((t=v)==null?void 0:t.state)===this.currentState){f=v;break}}}return f}}});
l5.prototype.updateButtonActiveState=l5.prototype.updateButtonActiveState;_.E([_.B(_.um),_.N("design:type",Object)],l5.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],l5.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],l5.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.F({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.AiB}),_.N("design:type",Object)],l5.prototype,"playlistLoopStateEntity",void 0);_.E([_.F(),_.N("design:type",Object)],l5.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Boolean)],l5.prototype,"forceIconOnly",void 0);_.E([_.lJ("ytd-button-renderer"),_.N("design:type",_.vG)],l5.prototype,"button",void 0);
_.E([_.z("data","playlistLoopStateEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],l5.prototype,"currentState",null);_.E([_.Zw("currentButtonStateRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],l5.prototype,"updateButtonActiveState",null);_.E([_.z("currentState"),_.N("design:type",Object),_.N("design:paramtypes",[])],l5.prototype,"currentButtonStateRenderer",null);
_.E([_.u({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],l5);
_.G(l5,"ytd-playlist-loop-button-renderer",function(){if(swT!==void 0)return swT;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return swT=f},
{mode:1});var JSh;var lmv=_.ZC("DOWNLOAD",{},"Download"),UXo=_.ZC("DOWNLOADING",{},"Downloading"),exC=_.ZC("DOWNLOADED",{},"Downloaded"),Llg=_.ZC("RETRY",{},"Retry"),Us=function(){var f=_.K.apply(this,arguments)||this;f.forceIconButton=!1;f.forceIconOnly=!1;f.overrides=!1;f.buttonTooltipPosition=!1;f.styleActionButton=!1;f.disableTextTransform=!1;f.downloadProgress=0;f.isDownloadComplete=!1;f.isHidden=!0;f.transferState="TRANSFER_STATE_UNKNOWN";f.isVideoDeletedByUser=!1;f.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return f};
_.e(Us,_.K);_.R=Us.prototype;_.R.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.R.dataChanged=function(){var f;(f=this.data)!=null&&f.text||(f=_.CY(_.vS().getState(),this.videoId),this.updateButtonState(f))};
_.R.computeVideoId=function(f){return f};
_.R.showHideButton=function(){this.updateButtonVisibility()};
_.R.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.R.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.R.updateButtonState=function(f){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==UXo||!_.xT(f))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(f){case "TRANSFER_STATE_UNKNOWN":f=lmv;var H="OFFLINE_DOWNLOAD";var v="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":f=Llg;H="OFFLINE_DOWNLOAD";v="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":f=exC;H="OFFLINE_PIN";v="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":f=
UXo;H="OFFLINE_DOWNLOADING_ZERO";v="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":f=Llg;H="OFFLINE_DOWNLOAD";v="ACTION_RETRY";break;default:f=lmv,H="OFFLINE_DOWNLOAD",v="ACTION_ADD"}this.isVideoDeletedByUser&&(f=lmv,H="OFFLINE_DOWNLOAD",v="ACTION_ADD");var t=Object.assign({},this.data);t.text=_.qO(f);t.tooltip=f;t.icon={iconType:H};t.size="SIZE_DEFAULT";t.style="STYLE_DEFAULT";_.U(t.command,_.Sf)&&(_.U(t.command,_.Sf).action=v);this.set("data",t)}};
_.R.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var f="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?f="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?f="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?f="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?f="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?f="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(f="OFFLINE_PIN",this.isDownloadComplete=!0);var H;f!==((H=this.data.icon)==null?void 0:H.iconType)&&(H=Object.assign({},this.data),H.text=_.qO(UXo),H.tooltip=UXo,H.icon={iconType:f},_.U(H.command,_.Sf)&&(_.U(H.command,_.Sf).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",H))}};
Us.prototype.updateProgress=Us.prototype.updateProgress;Us.prototype.onTransferStateChanged=Us.prototype.onTransferStateChanged;Us.prototype.showHideButton=Us.prototype.showHideButton;Us.prototype.dataChanged=Us.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Us.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],Us.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Us.prototype,"forceIconButton",void 0);
_.E([_.F(),_.N("design:type",Object)],Us.prototype,"forceIconOnly",void 0);_.E([_.F(),_.N("design:type",Object)],Us.prototype,"overrides",void 0);_.E([_.F(),_.N("design:type",Object)],Us.prototype,"buttonTooltipPosition",void 0);_.E([_.F(),_.N("design:type",Object)],Us.prototype,"styleActionButton",void 0);_.E([_.F(),_.N("design:type",Object)],Us.prototype,"disableTextTransform",void 0);
_.E([_.F({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.N("design:type",String)],Us.prototype,"videoId",void 0);_.E([_.F(),_.N("design:type",Object)],Us.prototype,"data",void 0);_.E([_.F({selector:NO,selectorArgs:["videoId"]}),_.N("design:type",Object)],Us.prototype,"downloadProgress",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Us.prototype,"isDownloadComplete",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Us.prototype,"isHidden",void 0);_.E([_.F({selector:_.CY,selectorArgs:["videoId"]}),_.N("design:type",String)],Us.prototype,"transferState",void 0);_.E([_.F({selector:_.gig,selectorArgs:["videoId"]}),_.N("design:type",Object)],Us.prototype,"isVideoDeletedByUser",void 0);_.E([_.F({selector:ypb,selectorArgs:["videoId"]}),_.N("design:type",Object)],Us.prototype,"offlineabilityState",void 0);
_.E([_.F({value:!0}),_.N("design:type",Boolean)],Us.prototype,"showTooltips",void 0);_.E([_.F({value:!0}),_.N("design:type",Boolean)],Us.prototype,"sendCommandWhenDisabled",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],Us.prototype,"disabled",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Us.prototype,"dataChanged",null);
_.E([_.xV("offlineabilityState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Us.prototype,"showHideButton",null);_.E([_.xV("transferState","isVideoDeletedByUser"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Us.prototype,"onTransferStateChanged",null);_.E([_.xV("downloadProgress"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Us.prototype,"updateProgress",null);
_.E([_.u({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],Us);
_.G(Us,"ytd-download-button-renderer",function(){if(JSh!==void 0)return JSh;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return JSh=f},{mode:2});var xXn;var BMo,zx_=function(){if(BMo!==void 0)return BMo;var f=document.createElement("template");_.x(f,'\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 BMo=f};var FlC=_.J("web_button_rework")&&_.P6("BUTTON_REWORK")||_.J("web_button_rework_with_live"),rSa=_.VQ("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,eU=function(){var f=_.K.apply(this,arguments)||this;f.isPressed=!1;f.forceIconButton=!1;f.forceIconOnly=!1;f.forceModernIconButton=!1;f.alignByText=!1;f.isShorts=!1;f.animatedText=!1;f.shouldAnimate=!1;f.JSC$14491_browserSupportsAnimation=_.J("web_supports_animations_api");f.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};f.onTap=function(){var H;if((H=f.data)==null||!H.defaultNavigationEndpoint){var v;H=!((v=f.data)==null?0:v.isToggled);var t;if((t=f.data)==null||!t.preventAutoToggle){f.shouldAnimate=!1;f.disableTextUpdateJobId&&_.nN.cancelJob(f.disableTextUpdateJobId);f.disableTextUpdateJobId=_.nN.addLowPriorityJob(function(){f.disableTextUpdateJobId=void 0},rSa);
var M;f.set("data.isToggled",!((M=f.data)==null?0:M.isToggled));v=f.getInnertubeIcon();t={toggled:H,actions:{}};v&&(t.actions[v.toLowerCase()]=H);_.YE(f.hostElement,"yt-toggle-button",t)}}};
return f};
_.e(eU,_.K);_.R=eU.prototype;_.R.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.nN.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.R.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.R.toggle=function(f){var H;this.set("data.isToggled",f!==void 0?f:!((H=this.data)==null?0:H.isToggled))};
_.R.handleUpdateToggleButtonStateCommand=function(f){if(this.data){f=_.U(f,gJh);var H,v,t,M=(H=this.data)==null?void 0:(v=H.toggleButtonSupportedData)==null?void 0:(t=v.toggleButtonIdData)==null?void 0:t.id;M&&f&&M===(f==null?void 0:f.buttonId)&&this.set("data.isToggled",f.toggled)}};
_.R.handleUpdateToggleButtonTextAction=function(f){if(this.data){f=_.U(f,M3C);var H,v,t,M=(H=this.data)==null?void 0:(v=H.toggleButtonSupportedData)==null?void 0:(t=v.toggleButtonIdData)==null?void 0:t.id;M&&f&&M===(f==null?void 0:f.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=f.defaultNumericalValue,this.set("data.defaultText",f.defaultText),this.set("data.toggledText",f.toggledText),this.shouldAnimate=!1)}};
_.R.getInnertubeIcon=function(){var f=this.data;if(f){var H,v,t=((H=f.defaultIcon)==null?0:H.iconType)?(v=f.defaultIcon)==null?void 0:v.iconType:null,M,h;H=((M=f.toggledIcon)==null?0:M.iconType)?(h=f.toggledIcon)==null?void 0:h.iconType:t;return f.isToggled?H:t}};
_.R.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.H7.Object.defineProperties(eU.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var f={renderer:this.data,element:this.hostElement,toggled:!!this.data.isToggled,onTapCallback:this.onTap,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceModernIconButton:this.forceModernIconButton,forceDisabled:this.disabled,nextVersion:!0,useAnimatedText:this.animatedText&&this.JSC$14491_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var H=f.renderer;var v=f.element;var t=f.toggled;var M=f.onTapCallback;var h=f.commandClientArgs;var y=f.overrides;var m=f.forceIcon;var W=f.forceModernIconButton;var I=f.forceDisabled;var S=f.useAnimatedText;var d=f.animatedTextProps;f=TdR(H,t);m=!H.defaultIcon||!m&&H.defaultText?H.defaultIcon?"leading":void 0:W?"icon-only":"icon-only-40";m==="icon-only-40"&&(f.type="text");var Z;W=Object;var l=W.assign,L;a:switch((L=
H.style)==null?void 0:L.styleType){case "STYLE_COMPACT_GRAY":L={size:"S"};break a;default:L={size:"M"}}var r=!!t;var n=(n=t&&H.toggledText||H.defaultText)?_.Qz(n):void 0;S?(S=_.fG(t&&H.toggledText||H.defaultText))&&d&&!isNaN(Number(d.numberValue))?(d.numberText=S,t&&(d.numberValue+=1),S=d):S=void 0:S=void 0;var Q,C,w,c;var A=(d=((C=t?H.toggledAccessibilityData||((A=H.toggledText)==null?void 0:A.accessibility):H.accessibilityData||((Q=H.defaultText)==null?void 0:Q.accessibility))==null?void 0:(w=C.accessibilityData)==
null?void 0:w.label)||((c=H.accessibility)==null?void 0:c.label))?d:_.fG(t&&H.toggledText||H.defaultText);I=I===void 0?H.isDisabled:I;v=kzN(H,t,M,v,h);t=iaB(H,t);t!=null&&t.length?(t=_.NE({innertubeCommand:u8b(t),forceNewState:!0}),t=cK(t)?t:void 0):t=void 0;H=l.call(W,{},f,L,{iconPosition:m},y,{focused:!1,toggled:r,toggleable:!0,formattedButtonText:n,animatedTextProps:S,accessibilityLabel:A,disabled:I,onTap:v,aTagConfig:t},RJ3((Z=H.colorData)==null?void 0:Z.basicColorPaletteData));H.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(H.type="filled");return H}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var f=this.getInnertubeIcon();if(f)return _.SW(f)}}});
eU.prototype.resetAnimation=eU.prototype.resetAnimation;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],eU.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],eU.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],eU.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],eU.prototype,"data",void 0);
_.E([_.F(),_.N("design:type",Object)],eU.prototype,"isPressed",void 0);_.E([_.F(),_.N("design:type",Object)],eU.prototype,"forceIconButton",void 0);_.E([_.F(),_.N("design:type",Object)],eU.prototype,"forceIconOnly",void 0);_.E([_.F(),_.N("design:type",Object)],eU.prototype,"forceModernIconButton",void 0);_.E([_.F(),_.N("design:type",Object)],eU.prototype,"alignByText",void 0);_.E([_.F(),_.N("design:type",Object)],eU.prototype,"overrides",void 0);
_.E([_.F(),_.N("design:type",Boolean)],eU.prototype,"disabled",void 0);_.E([_.F(),_.N("design:type",Object)],eU.prototype,"isShorts",void 0);_.E([_.F(),_.N("design:type",Object)],eU.prototype,"buttonTooltipPosition",void 0);_.E([_.F(),_.N("design:type",Object)],eU.prototype,"animatedText",void 0);_.E([_.F(),_.N("design:type",String)],eU.prototype,"textNumberValue",void 0);_.E([_.F({computed:"computeTooltip(data, data.isToggled)"}),_.N("design:type",Object)],eU.prototype,"tooltip",void 0);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],eU.prototype,"resetAnimation",null);_.E([_.z("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.N("design:type",Object),_.N("design:paramtypes",[])],eU.prototype,"computedButtonShape",null);_.E([_.z("data.*"),_.N("design:type",Object),_.N("design:paramtypes",[])],eU.prototype,"computedIcon",null);
_.E([_.u({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],eU);FlC&&_.G(eU,"ytd-toggle-button-renderer",zx_,{mode:_.WK("kevlar_poly_si_batch_j081")?1:2});var Kl9=_.a(function(f){function H(I){var S;return _.Y(function(d){if(d.nextAddress==1)return(S=!qXs(I,m())||!m().enabled)?d.jumpTo(2):d.yield(M1b(),3);d.nextAddress!=2&&(S=d.yieldResult);if(S)return d.return();v();setTimeout(function(){y(!1)},1500);
_.Bj(d)})}
function v(){setTimeout(function(){y(!0);var I;(I=t.lottieEl)==null||I.goToAndPlay(0)},150)}
var t=_.g3(),M=_.V(_.gp(!1,void 0,"JJXzp")),h=M.next().value,y=M.next().value,m=_.vK(f.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.Kc(function(){var I,S;((I=f.settings)==null?void 0:(S=I.call(f))==null?void 0:S.uniqueId)==="this is not intended behavior"&&_.pb(new _.e$("Smartimation Settings is undefined"))});
_.K4(function(){m().experimentEnabled&&(m().enabled?fmH(H):(y(!1),H7R(H)),_.Dt(function(){H7R(H)}))},"FRiAUe");
_.K4(function(){m().timings.join("");m().experimentEnabled&&(vLs(m()),_.Dt(function(){t1E(m())}))},"VKiJOe");
var W=_.sg(function(){var I=t,S=m().uniqueId+"-border",d,Z;var l="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((Z=(d=_.t8().resolve(_.vh(_.TK)))==null?void 0:d())!=null&&Z?"dark":"light")+"_v2.json";return{animationRef:I,animationConfig:{name:S,autoplay:!1,loop:!1,path:l}}},void 0,"tgykab");
M={};return _.O("yt-smartimation",{class:_.S2(f.className,"smartimation",(M["smartimation--experiment-enabled"]=function(){return m().experimentEnabled},M["smartimation--active-border"]=h,M["smartimation--enable-masking"]=hx5(),M))},_.O(_.g,{cond:function(){return m().experimentEnabled},
then:function(){return _.O("div",{class:"smartimation__border"},_.O(_.j3,{className:"smartimation__border-gradient",data:W,animationName:function(){return W().animationConfig.name}}))}}),_.O("div",{class:"smartimation__content"},f.children))},"G");
Kl9.idomCompat=!0;_.yn(Kl9,"yt-smartimation",{props:{className:_.ki,settings:_.ki}});var LX=function(){var f=_.K.apply(this,arguments)||this;f.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};f.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};f.shouldEnableSmartimation=!1;return f};
_.e(LX,_.K);LX.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
LX.prototype.onDataChanged=function(){var f,H;this.shouldEnableSmartimation=(((f=this.data)==null?void 0:(H=f.timedAnimationData)==null?void 0:H.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
LX.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var f=_.U(this.data.likeButton,_.pv),H=_.U(this.data.dislikeButton,_.pv);return!!((f==null?0:f.isToggled)||(H==null?0:H.isToggled))};
LX.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]]"}}}}}};
_.H7.Object.defineProperties(LX.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var f,H,v=((f=this.data)==null?void 0:(H=f.timedAnimationData)==null?void 0:H.animationTiming)||[];return{uniqueId:"like-dislike",timings:v,enabled:this.shouldEnableSmartimation,experimentEnabled:v.length>0}}}});
LX.prototype.onDataChanged=LX.prototype.onDataChanged;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],LX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],LX.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],LX.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],LX.prototype,"likeButtonOverride",void 0);_.E([_.F(),_.N("design:type",Object)],LX.prototype,"dislikeButtonOverride",void 0);
_.E([_.z("shouldEnableSmartimation"),_.N("design:type",Object),_.N("design:paramtypes",[])],LX.prototype,"smartimationSettings",null);_.E([_.Zw("data"),_.sE("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],LX.prototype,"onDataChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],LX);
_.G(LX,"ytd-segmented-like-dislike-button-renderer",function(){if(xXn!==void 0)return xXn;var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return xXn=f},{mode:1});var DXg;var oLn;(oLn=document.body)==null||oLn.setAttribute("rounded-container","");var nL9={};nL9.YtToggleButtonBehavior=[_.dt.YtActionHandlerBehavior,e3.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 f=this.data.isToggled;if(!this.isModal_(f)){if(!this.data.preventAutoToggle){this.toggle();var H={toggled:this.data.isToggled,actions:{}};H.actions[this.buttonIcon]=this.data.isToggled;_.YE(this.hostElement,"yt-toggle-button",H)}H=this.data.defaultServiceEndpoint||null;var v=this.data.toggledServiceEndpoint||null;if(H&&v||H&&this.data.preventAutoToggle)f=f?v:H,H=this.disableCommandHandlerOverride,_.J("killswitch_toggle_button_behavior_resolve_command")||H?_.WV(this.hostElement,
[f]):_.sV(f,this.hostElement),_.YE(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:f})}},
stateChanged_:function(){var f=this.data;if(f){var H=f.isToggled;this._setEndpoint(this.computeEndpoint_(f));this._setServiceEndpoint(this.computeServiceEndpoint_(f));this._setButtonIcon(this.computeButtonIcon_(f,H));this._setButtonText(this.computeButtonText_(f,H));this._setButtonAccessibility(this.computeAccessibility_(f,H));this._setButtonTooltip(this.computeTooltip_(f,H));this._setButtonClass(this.computeButtonClass_(f,H));this._setIconPositionType(this.computeIconPositionType_(f));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=H):this.elements_.button.setAttribute("aria-pressed",H));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=H)}},
shouldSetIconActiveState_:function(){return _.J("kevlar_system_icons")},
toggle:function(f){this.set("data.isToggled",f!==void 0?f:!this.data.isToggled);_.J("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(f){if(f){var H,v;return!!((H=this.data)==null?0:(v=H.toggledServiceEndpoint)==null?0:v.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(f){return f&&f.defaultNavigationEndpoint||null},
computeButtonIcon_:function(f,H){var v=f&&f.defaultIcon?_.SW(f.defaultIcon.iconType):null;f=f&&f.toggledIcon?_.SW(f.toggledIcon.iconType):v;return H?f:v},
handleUpdateToggleButtonStateCommand_:function(f){f=f.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==f.buttonId&&this.toggle(f.toggled)},
computeButtonText_:function(f,H){return f?H&&f.toggledText||f.defaultText||null:null},
computeAccessibility_:function(f,H){return f?(H?this.get("toggledAccessibilityData.accessibilityData",f):this.get("accessibilityData.accessibilityData",f))||f.accessibility||null:null},
computeTooltip_:function(f,H){return f?H&&f.toggledTooltip||f.defaultTooltip||null:null},
computeButtonClass_:function(f,H){if(!f)return"";var v="",t=f.toggledStyle||f.style;if(H=H?t:f.style){H.styleType&&(H=H.styleType);try{v+=H.toLowerCase().replace(/_/g,"-")+" "}catch(M){_.u$(M,H,typeof H),_.pb(M)}}if(f=f.size){f.sizeType&&(f=f.sizeType);try{v+=f.toLowerCase().replace(/_/g,"-")+" "}catch(M){_.u$(M,f,typeof f),_.pb(M)}}return v.trim()},
computeIconPositionType_:function(f){return f&&f.iconPosition||null},
computeServiceEndpoint_:function(f){var H=f&&f.serviceEndpoint,v=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return H?H:v&&f.command?f.command:null},
handleUpdateToggleButtonTextAction_:function(f){f=f.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==f.buttonId&&(this.set("data.defaultText",f.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",f.toggledText),this.notifyPath("data.toggledText"))}}];_.DE("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var pPM=_.J("web_button_rework")&&_.P6("BUTTON_REWORK")||_.J("web_button_rework_with_live"),x8=function(){var f=_.K.apply(this,arguments)||this;f.systemIcons=_.J("kevlar_system_icons");f.roundedContainer=!0;return f};
_.e(x8,_.K);x8.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
x8.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var f=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var H={toggled:!!this.data.isToggled,actions:{}};H.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var v,t;H.actions.playlistId=(v=this.data.defaultServiceEndpoint)==null?void 0:(t=v.playlistEditEndpoint)==null?void 0:t.playlistId;_.YE(this.hostElement,"yt-toggle-button",H)}(f=f?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(f)}};
x8.prototype.onYtNavigate=function(f){var H=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(f.detail.endpoint);H&&(f.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(H))};
_.H7.Object.defineProperties(x8,{template:{configurable:!0,enumerable:!0,get:function(){if(DXg===void 0){var f=document.createElement("template");_.x(f,"\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");f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);DXg=f}f=DXg;return f}}});
x8.prototype.onYtNavigate=x8.prototype.onYtNavigate;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],x8.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],x8.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.fm),_.N("design:type",Object)],x8.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.B(nL9.YtToggleButtonBehavior),_.N("design:type",Object)],x8.prototype,"ytToggleButtonBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],x8.prototype,"data",void 0);_.E([_.F({value:!0}),_.N("design:type",Boolean)],x8.prototype,"showTooltips",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],x8.prototype,"systemIcons",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],x8.prototype,"roundedContainer",void 0);_.E([_.sE("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],x8.prototype,"onYtNavigate",null);
_.E([_.u({is:"ytd-toggle-button-renderer",disableElementRegistration:pPM})],x8);var QwT;_.B5=new _.iN("PANEL_CONTROLLER_TOKEN");_.zQ=new _.iN("SHEET_CONTROLLER_TOKEN");_.FF=new _.iN("DIALOG_CONTROLLER_TOKEN");QwT=new _.iN("DIALOG_CONTAINER_TOKEN");var gLR=_.ZC("DOWNLOAD",{},"Download"),Imr=_.ZC("DOWNLOADING",{},"Downloading"),SDs=_.ZC("DOWNLOADED",{},"Downloaded"),dXT=_.ZC("RETRY",{},"Retry");var urM=_.a(function(f){var H=lmE,v=function(){return""},t=jwR(f.data),M=swr(f.data),h=Z7E(f.data),y=JSB(f.data);
H=function(){var m=f.data(),W=Wlg(m,t(),M(),h(),y()),I=!!m.videoId,S=W.text;return{title:I?S:void 0,tooltip:I?void 0:S,accessibilityText:S,onTap:W.onTap,iconName:W.iconType,style:m.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:W.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:m.buttonSize}};
v={};v=_.S2("ytDownloadButtonViewModelHost",(v.ytDownloadButtonViewModelIsHidden=function(){var m=f.data(),W=y();return m.playlistId||W()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||W()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},v));
return _.O("download-button-view-model",{class:v},_.O(_.Wp,{data:H}))},"H");
urM.idomCompat=!0;var DXv=new _.iN("SUBMIT_API_SERVICE_TOKEN");var zxs,FlH,oL3={submitAction:"SUBMIT_ACTION_SUBMISSION"};var i73=new _.iN("RENDERER_LOGGER_TOKEN");var cSv=new _.iN("RENDERER_STAMPER_OPTIONS_TOKEN");var nLN;_.ZO=new pKh;nLN=new Map;var XPN="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),b7r=["notificationTextRenderer","notificationMultiActionRenderer"],
ASH="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),NME=pPR(function(f){return _.p4(f==null?void 0:f.targetId)}).useUpdatableData;var ELe=0;_.Jj.debugName="EjJbCe";var amh=_.a(function(f){var H=f.data;f=f.className;_.ru(function(){H().formId||_.oO(Error("Ah"))});
var v=_.BMR(function(){return H().formId},function(){return H().beforeSubmitCommand},function(){return H().afterSubmitCommand}),t=v.submitForm,M=v.isValid,h=v.isSubmitting,y=function(){return{state:H().isDisabled||!M()||h()?"disabled":"active"}};
return _.O("yt-submit-button-view-model",{class:_.S2("ytSubmitButtonViewModelHost",f)},_.O(_.Jj,{data:function(){return H().button}},{buttonViewModel:function(m){return _.O(_.Wp,{data:m.data,
buttonOverrides:y,onClick:t})}}))},"I");var GYh=_.a(function(f){var H=f.backgroundLottieRef;var v=f.foregroundLottieRef;var t=f.children;var M=f.wrapperClass;var h=f.disableAnimation;f=function(){return(_.J("web_animated_actions")||_.J("web_animated_actions_v2"))&&!(h==null?0:h())};
return _.O("yt-animated-action",{class:_.S2("ytAnimatedActionHost",M)},_.O("div",{class:"ytAnimatedActionContentWithBackground"},_.O(_.g,{cond:f,then:function(){return _.O(Pfg,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:H==null?void 0:H(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(kYR()?"dark":"light")+"_v5.json"}}}})}}),t),_.O(_.g,{cond:f,
then:function(){return _.O(Pfg,{lottiePlayerProps:function(){return{animationRef:v==null?void 0:v(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(kYR()?"dark":"light")+"_v4.json"}}}})}}))},"J");
GYh.idomCompat=!0;var Pfg=_.a(function(f){var H=f.wrapperClass;var v=f.lottieClass;var t=f.lottiePlayerProps;return _.O("div",{class:_.S2("ytAnimatedActionLottie",H),"aria-hidden":"true"},_.O(_.j3,{className:v,data:t,animationName:function(){return t().animationConfig.name}}))},"K");var TM3={isOpen:!1};var qDs={isAllowed:!1};var HJR={errorMessage:"",title:"",privacy:"",isDisabled:!0};var tyv={isOpen:!1};var hnE={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var Cfh={response:void 0};var VyE=function(f,H){f=f===void 0?Cfh:f;switch(H.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},f,{response:H.payload});default:return f}};var ELa={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var yL_=function(f,H){f=f===void 0?ELa:f;switch(H.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},f,{nextDisabled:H.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},f,{nextCommand:H.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},f,{footerSubmissionData:H.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},f,{isImpersonationValid:H.payload});default:return f}};var NMv={reportFormData:void 0,reportDetailsFormData:void 0};var Yyr=function(f,H){f=f===void 0?NMv:f;switch(H.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},f,{reportFormData:H.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},f,{reportDetailsFormData:H.payload});default:return f}};var cSg=void 0;_.J("mweb_enable_redux_store_on_demand")||(cSg=new HS(mMN()));var rY=_.J("enable_web_delhi_icons");var XP9=_.a(function(f){f=_.tV(f,{themeOverride:void 0,animationRef:{}});var H=f.animatedIconType,v=f.active,t=f.themeOverride,M=f.animationRef;f=f.staticIconFn;var h=_.V(_.gp(void 0,void 0,"P5a72b")),y=h.next().value,m=h.next().value,W=function(){a:{var n=H();var Q=t==null?void 0:t();var C;Q=(Q==null?void 0:Q.useDarkTheme)||((C=_.t8().resolve(_.vh(_.TK)))==null?void 0:C());switch(n){case "LIKE":cSg||(cSg=new HS(mMN()));n=(n=ESR(cSg.getState()))&&n.animationLightUrl&&n.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:Q?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:Q?n.animationDarkUrl:n.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(n){Q=n;break a}Q="animated_like_icon_"+(Q?"dark":"light")+"_"+(rY?"v5":"v4");Q={lottiePlayerProps:{animationConfig:{name:Q,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+Q+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(rY?" animated-like-icon-delhi":"")}}},totalFrames:rY?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":Q={lottiePlayerProps:{animationConfig:{name:Q?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(Q?"dark":"light")+(rY?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(rY?" animated-subscribe-icon-delhi":"")}}},totalFrames:rY?120:79,lazyLoad:!1};break a}Q=
void 0}return Q},I=function(){var n,Q;
return(Q=(n=W())==null?void 0:n.lottiePlayerProps.animationConfig.name)!=null?Q:""},S=function(){if(W()){var n=W().lottiePlayerProps.animationConfig.path;
return FW.get(n)||y()}};
h=_.V(_.gp(!1,void 0,"h6xR3c"));var d=h.next().value;h=h.next().value;var Z=WC_(h),l=function(){var n=W(),Q,C,w;return(w=n==null?void 0:(Q=n.lottiePlayerProps.animationConfig)==null?void 0:(C=Q.rendererSettings)==null?void 0:C.className)!=null?w:""},L=void 0,r=void 0;
_.K4(function(){var n=W(),Q=I(),C=S(),w=d(),c=v();if(n&&(r!==Q&&(r=Q,L=c,Q=M(),Z.animationConfig=n.lottiePlayerProps.animationConfig,Z.animationRef=Q,C&&(Z.animationConfig.animationData=C,Z.animationConfig.path=void 0),Q=n.lottiePlayerProps.animationConfig.path,!FW.get(Q)&&n.lazyLoad&&Q&&$Mb(Q,m)),!(w||n.lazyLoad&&!C))){if(C=!M().lottieEl)c?(w=n.totalFrames,Z.animationConfig.initialSegment=[w-1,w]):Z.animationConfig.initialSegment=void 0;if(L!==c&&!C)if(C=M(),c){var A;(A=C.lottieEl)==null||A.playSegments([0,
n.totalFrames],!0)}else{var X;(X=C.lottieEl)==null||X.playSegments([0,1],!0)}L=c}},"YCYOCe");
return _.O("animated-icon",{class:"ytAnimatedIconHost"},_.O(_.g,{cond:function(){var n,Q;return!((n=W())==null||!n.lottiePlayerProps.animationConfig.path||((Q=W())==null?0:Q.lazyLoad)&&!S()||d())},
then:function(){return _.O(_.j3,{data:Z,animationName:I,className:l,animationRef:M})},
else:f}))},"L");_.KX=_.a(function(f){var H=_.TN("yt-subscribe-button-view-model"),v=_.TN("div"),t=_.TN("div"),M=_.g3(),h=_.g3(),y=_.g3(),m=_.s7(Gze,function(){return f.data().stateEntityStoreKey}),W=_.s7(Cu5,function(){var fr,sb;
return(sb=(fr=f.data().notificationStateEntityStoreKeys)==null?void 0:fr.subsNotificationStateKey)!=null?sb:""}),I=function(){return!f.data().enableSubscribeButtonPostClickAnimation},S=_.V(_.gp(0,void 0,"YtsSKb")),d=S.next().value,Z=S.next().value;
S=_.V(_.gp(0,void 0,"V6JxRe"));var l=S.next().value,L=S.next().value;S=_.V(_.gp(!1,void 0,"JUCSZ"));var r=S.next().value,n=S.next().value;S=_.V(_.gp(!1,void 0,"oV6jwf"));var Q=S.next().value,C=S.next().value;S=_.V(_.gp(!1,void 0,"hK1Whe"));var w=S.next().value,c=S.next().value,A;S=_.V(_.gp(!1,void 0,"Asaolf"));var X=S.next().value,fg=S.next().value,gB=function(){C(!0);_.LT(_.nN,function(){C(!1)},1500)};
_.K4(function(){var fr=Q();Og(function(){fr&&!I()&&m()&&lJv(M,h,y)})},"Qq6Hsf");
_.K4(function(){var fr=m();Og(function(){if(!I()&&fr){var sb;((sb=f.animateWidth)==null?0:sb.call(f))&&JL5(H.value,!!fr.subscribed,d(),l());var In,Kr;((In=A)==null?0:In.subscribed)||!fr.subscribed||fr.key!==((Kr=A)==null?void 0:Kr.key)||gB();A=fr}})},"hog8te");
S=_.sg(function(){var fr,sb,In,Kr=f.data(),BA=!((fr=m())==null||!fr.subscribed);fr=!((sb=f.isOverlay)==null||!sb.call(f));sb=r()?H:void 0;var TH=(In=W())==null?void 0:In.state;In=X();ZJr(Kr,TH);return IJE({model:Kr,subscribed:BA,isOverlay:fr,element:sb,notificationState:TH,disableTextEllipsis:!0,focused:In})},void 0,"hc1PRd");
var O5=function(){var fr;if(!I()&&((fr=f.animateWidth)==null?0:fr.call(f))&&(v==null?0:v.value)&&(t==null?0:t.value)&&!w()){fr=m();var sb=_.V((fr==null?0:fr.subscribed)?[v,t]:[t,v]),In=sb.next().value;sb=sb.next().value;In=Math.ceil(In.value.getBoundingClientRect().width);sb=Math.ceil(sb.value.getBoundingClientRect().width);Z(In);L(sb);JL5(H.value,!(fr==null||!fr.subscribed),In,sb);c(!0)}},s5=_.d6(function(fr){O5();
var sb=m();sb&&(fr.detail.endpoint.subscribeEndpoint||fr.detail.endpoint.unsubscribeEndpoint)&&dMg(H.value,!sb.subscribed,sb)}),U5=function(){var fr=_.t8().resolve(_.vh(_.RM));
fr&&fg(fr.isKeyBoardInUse())},lH=function(){fg(!1)};
_.kF("yt-player-subscribe",function(fr){var sb=m();sb&&fr===f.data().channelId&&dMg(H.value,!0,sb)});
_.kF("yt-player-unsubscribe",function(fr){var sb=m();sb&&fr===f.data().channelId&&dMg(H.value,!1,sb)});
_.kF("yt-update-subscribe-button-action",function(fr){fr=_.U(fr,wUZ);var sb=m();sb&&fr&&fr.channelId===f.data().channelId&&dMg(H.value,!!fr.subscribed,sb)});
_.Kc(function(){H.value&&(H.value.addEventListener("focusin",U5),H.value.addEventListener("focusout",lH));var fr=_.Lb(_.nN,function(){O5()});
n(!0);_.Dt(function(){_.nN.cancelJob(fr);H.value&&(H.value.removeEventListener("focusin",U5),H.value.removeEventListener("focusout",lH))})});
var E5=function(){var fr,sb,In;if(In=!((fr=m())==null||!fr.subscribed))fr=!!f.data().disableNotificationBell,In=(sb=W())==null?void 0:sb.state,In=!fr&&!!In;return In},uH=function(){var fr;
return!((fr=m())==null?0:fr.subscribed)},Rn=function(){var fr,sb;
if(sb=uH()){sb=!!f.data().disableNotificationBell;var In=(fr=W())==null?void 0:fr.state;sb=!sb&&!!In}return sb},pr={},gh={};
return _.O("yt-subscribe-button-view-model",{class:_.S2(f.className,"ytSubscribeButtonViewModelHost",(pr.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var fr,sb;return!((fr=m())==null||!fr.subscribed)&&((sb=f.animateWidth)==null?void 0:sb.call(f))&&Q()},pr.ytSubscribeButtonViewModelHostHidden=function(){var fr;
return!((fr=m())==null?0:fr.subscribed)&&f.data().hideWhenUnsubscribed},pr)),
el:H,"on:yt-service-request-sent":s5},_.O(GYh,{backgroundLottieRef:M,foregroundLottieRef:h,wrapperClass:_.S2("ytSubscribeButtonViewModelAnimatedActionWrapper",(gh.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var fr;return((fr=f.animateWidth)==null?void 0:fr.call(f))&&Q()},gh.ytSubscribeButtonViewModelStaticWidth=function(){var fr;
return!((fr=f.animateWidth)==null?0:fr.call(f))},gh)),
disableAnimation:I},_.O("div",{el:v,class:"ytSubscribeButtonViewModelContainer"},_.O(_.$p,{data:S,icon:function(){return _.O(_.g,{cond:E5,then:function(){var fr=function(){var sb;return SyB((sb=W())==null?void 0:sb.state)};
return _.O(_.g,{cond:function(){return I()||fr()!=="NOTIFICATIONS_NONE"},
then:function(){return _.O(_.JE,{icon:fr})},
else:function(){return _.O(XP9,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:y})}})}})},
secondaryIconName:function(){return E5()?"EXPAND":void 0}}))),_.O("div",{el:t,
class:"ytSubscribeButtonViewModelInvisible"},_.O(_.g,{cond:function(){var fr;return((fr=f.animateWidth)==null?void 0:fr.call(f))&&!I()&&!w()},
then:function(){return _.O(_.$p,{data:_.sg(function(){var fr;return IJE({model:f.data(),subscribed:uH(),isOverlay:!((fr=f.isOverlay)==null||!fr.call(f)),element:H,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var fr;return Rn()?SyB((fr=W())==null?void 0:fr.state):void 0},
secondaryIconName:function(){return Rn()?"EXPAND":void 0}})}})))},"M");
_.KX.idomCompat=!0;var ASC=_.a(function(f){var H=f.data;var v=_.s7(Gze,function(){return H().subscriptionStateEntityKey});
return _.O(_.g,{cond:function(){var t=H(),M=v();return!t.hideWhenUnsubscribed||(M==null?0:M.subscribed)?_.U(H().button,_.af):void 0},
then:function(t){return _.O("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.O(_.Wp,{data:t,buttonOverrides:function(){return{toggled:!0}}}))}})},"N");
ASC.idomCompat=!0;var b7T,Df;b7T=_.a(function(f){return _.O(_.Jj,{data:function(){return f.actionRow().actions}},{buttonViewModel:function(H){var v=H.data;
return _.O(Df,{isRow:f.isRow,isIconOnlyButton:function(){return UM5(v())},
useIntrinsicWidth:f.useIntrinsicWidth},_.O(_.Wp,{data:v}))},
subscribeButtonViewModel:function(H){return _.O(Df,{isRow:f.isRow},_.O(_.KX,{data:H.data,isOverlay:!1,animateWidth:function(){return!f.isRow()}}))},
downloadButtonViewModel:function(H){var v=H.data;return _.O(Df,{isRow:f.isRow,isIconOnlyButton:function(){return!!v().playlistId}},_.O(urM,{data:v}))},
submitButtonViewModel:function(H){var v=H.data;return _.O(Df,{isRow:f.isRow,isIconOnlyButton:function(){var t=v();return UM5(_.U(t==null?void 0:t.button,_.af))}},_.O(amh,{data:v}))},
toggleButtonViewModel:function(H){var v=H.data;return _.O(Df,{isRow:f.isRow,isIconOnlyButton:function(){var t=v();return UM5(_.U(t.isToggled?t.toggledButtonViewModel:t.defaultButtonViewModel,_.af))}},_.O(_.Fo,{data:v}))},
subscribePlusButtonViewModel:function(H){return _.O(Df,{isRow:f.isRow},_.O(ASC,{data:H.data}))}})},"O");
Df=_.a(function(f){var H={};return _.O("div",{class:_.S2("yt-flexible-actions-view-model-wiz__action",(H["yt-flexible-actions-view-model-wiz__action--row-action"]=f.isRow,H["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=f.useIntrinsicWidth,H["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,H["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=f.isIconOnlyButton,H))},f.children)},"P");
_.ot=_.a(function(f){var H=function(){var t;return((t=f.layout)==null?void 0:t.call(f))===1},v={};
return _.O("yt-flexible-actions-view-model",{class:_.S2("yt-flexible-actions-view-model-wiz",f.className,(v["yt-flexible-actions-view-model-wiz--inline"]=function(){return!H()},v["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return f.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},v))},_.O(_.eK,{each:function(){return f.data().actionsRows||[]}},function(t){return _.O(_.g,{cond:H,
then:function(){return _.O("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.O(b7T,{actionRow:t,isRow:H,useIntrinsicWidth:function(){return!!f.data().respectActionIntrinsicWidth}}))},
else:function(){return _.O(b7T,{actionRow:t,isRow:H})}})}))},"Q");_.yn(_.ot,"yt-flexible-actions-view-model",{props:{data:_.ki,layout:_.ki,justifyContentOverride:_.ki,className:_.ki}});_.nX=_.a(function(f){var H=_.s7(am,function(){var M;return(M=f.data().dislikeEntityKey)!=null?M:""}),v=_.sg(function(){var M=H();
return M?M.likeStatus==="DISLIKE":_.U(f.data().toggleButtonViewModel,_.G3).isToggled},void 0,"B2tgKf"),t=_.sg(function(){return Object.assign({},_.U(f.data().toggleButtonViewModel,_.G3),{isToggled:v()})},void 0,"otfIbf");
return _.O("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.O(_.Fo,{data:t,buttonShapeOverrides:f.buttonShapeOverrideables,onToggle:function(M){var h=H();h&&M!==(h.likeStatus==="DISLIKE")&&h.key&&_.HK(_.z7("likeStatusEntity",h.key,{likeStatus:M?"DISLIKE":"INDIFFERENT",hadUserInteraction:M}))}}))},"R");
_.nX.idomCompat=!0;_.pX=_.a(function(f){var H=_.J("web_supports_animations_api"),v=MY(function(Z){var l=I();if(!Z){var L,r;return{numberText:(r=l==null?void 0:(L=l.likeCountIfIndifferent)==null?void 0:L.content)!=null?r:"",numberValue:Number(l==null?void 0:l.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var n;L=(l==null?void 0:(n=l.likeCountIfIndifferent)==null?void 0:n.content)!==Z.numberText;if(m()||!L)return Z;var Q;return{numberText:(l==null?void 0:(Q=l.likeCountIfIndifferent)==null?void 0:Q.content)||
"",numberValue:Number(l==null?void 0:l.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!l}}),t=MY(function(Z){var l=I();
if(!Z){var L,r;return{numberText:(r=l==null?void 0:(L=l.likeCountIfLiked)==null?void 0:L.content)!=null?r:"",numberValue:Number(l==null?void 0:l.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var n;L=(l==null?void 0:(n=l.likeCountIfIndifferent)==null?void 0:n.content)!==Z.numberText;if(m()||!L)return Z;var Q;return{numberText:(l==null?void 0:(Q=l.likeCountIfLiked)==null?void 0:Q.content)||"",numberValue:Number(l==null?void 0:l.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!l}}),M=_.V(_.gp(void 0,
void 0,"xYSlUe")),h=M.next().value,y=M.next().value,m=h,W=_.s7(am,function(){var Z,l;
return(l=(Z=f.data())==null?void 0:Z.likeStatusEntityKey)!=null?l:""}),I=_.s7(j6H,function(){var Z,l;
return((Z=f.likeCountEntity)==null?void 0:(l=Z.call(f))==null?void 0:l.key)||""}),S=_.sg(function(){var Z;
return((Z=W())==null?void 0:Z.likeStatus)==="LIKE"},void 0,"DG5Osd"),d=function(){var Z;
return H&&!((Z=f.likeCountEntity)==null||!Z.call(f))};
return _.O("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.O(_.Fo,{data:function(){var Z=Object,l=Z.assign,L;var r=_.U((L=f.data())==null?void 0:L.toggleButtonViewModel,_.G3);return l.call(Z,{},r||{},{isToggled:S()})},
buttonShapeOverrides:f.buttonShapeOverrideables,animatedTextPropsDefault:function(){return d()?v():void 0},
animatedTextPropsToggled:function(){return d()?t():void 0},
onToggle:function(Z){enN(Z,W(),m(),y)},
style:function(){var Z;return((Z=f.disableIconAnimation)==null?0:Z.call(f))?void 0:{animateIcon:"true"}}}))},"S");
_.pX.idomCompat=!0;var i7n=_.a(function(f){var H=function(){return _.U(f.data().likeButtonViewModel,_.Fd)},v=function(){var M;
return((M=H())==null?void 0:M.likeStatusEntityKey)||""},t=_.sg(function(){var M,h;
var y=(h=_.s7(am,v)())!=null?h:(M=H())==null?void 0:M.likeStatusEntity;M=f.data();var m;M=(M==null?void 0:(m=M.timedAnimationData)==null?void 0:m.animationTiming)||[];return{uniqueId:"like-dislike",timings:M,enabled:(y==null?void 0:y.likeStatus)==="INDIFFERENT"&&M.length>0,experimentEnabled:M.length>0}},void 0,"hGh9Td");
return _.O("segmented-like-dislike-button-view-model",{class:_.S2("ytSegmentedLikeDislikeButtonViewModelHost",f.className),"button-renderer":!0},_.O(Kl9,{settings:t},_.O("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.O(_.g,{cond:H,then:function(M){return _.O(_.pX,{data:M,likeCountEntity:function(){return f.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.O(_.g,{cond:function(){return _.U(f.data().dislikeButtonViewModel,_.z3)},
then:function(M){return _.O(_.nX,{data:M,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"T");
i7n.idomCompat=!0;_.yn(i7n,"segmented-like-dislike-button-view-model",{props:{data:_.ki,className:_.ki}});var kYM=_.a(function(f){var H=f.data;var v=f.className;var t=f.setMinWidth;var M=f.forceIconOnly;var h=_.TN("account-link-button-view-model"),y=_.s7(_.LC5,function(){var Z;return(Z=H().accountLinkStatusEntityKey)!=null?Z:""}),m=_.s7(_.LC5,function(){var Z;
return(Z=H().accountLinkStatusSecondaryEntityKey)!=null?Z:""}),W=function(){if(!_.J("web_account_link_secondary_killswitch")){var Z,l;
return((Z=y())==null?void 0:Z.linked)||((l=m())==null?void 0:l.linked)}var L;return(L=y())==null?void 0:L.linked};
_.K4(function(){var Z=y();if(Z){var l=wDT(new T_n,iRo(new bRb,!!Z.linked));_.Wx().then(function(L){L&&(L.setAccountLinkState(_.QG(l.JSC$12149_serializeBinary(),4)),L.updateAccountLinkingConfig(!!Z.linked))})}},"b9pSsf");
var I=function(){return _.U(H().toggleButtonViewModel,_.G3)};
_.kF("yt-signal-action-show-account-link-dialog",function(){if(I()){var Z=W()?I().toggledButtonViewModel:I().defaultButtonViewModel;Z=_.U(Z,_.af);var l;if((l=y())==null?0:l.isWarning){l=_.U(H().warningButtonViewModel,_.af);if(!l){_.Nw(Error("Bh"));return}Z=l}var L;(l=_.GK((L=Z)==null?void 0:L.onTap))&&_.SG([l],h.value)}else _.Nw(Error("Ch"))});
var S=function(){var Z=I();return Object.assign({},Z,{isToggled:W()})},d=function(){return(M==null?0:M())?{iconPosition:"icon-only"}:{}};
return _.O("account-link-button-view-model",{class:_.S2("ytwAccountLinkButtonViewModelHost",v,function(){return(t==null?0:t())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:h,"button-renderer":!0},_.O("div",null,_.O(_.g,{cond:function(){var Z;if((Z=y())==null?0:Z.isWarning)return(Z=_.U(H().warningButtonViewModel,_.af))||_.Nw(Error("Bh")),Z},
then:function(Z){return _.O(_.Wp,{data:Z,buttonOverrides:d})},
else:function(){return _.O(_.Fo,{data:S,buttonShapeOverrides:d})}})))},"U");_.yn(kYM,"account-link-button-view-model",{props:{data:_.ki,className:_.Rm,setMinWidth:_.Rm,forceIconOnly:_.Rm}});_.DE("menuRenderer","menuRenderer","ytd-menu-renderer");
var TMn={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"}},
wPh=_.J("web_fix_missing_action_buttons")?100:200,Qb=function(){var f=_.K.apply(this,arguments)||this;f.safeArea=!_.J("kevlar_flex_menu_safe_area_killswitch");f.tonalOverride=!1;f.threeDotSize="M";f.isOverlay=!1;f.useOverlayDark=!1;f.topLevelIconsOnly=!1;f.JSC$14622_lastWidth=0;f.maybeUpdateFlexibleMenu=function(){_.J("web_fix_missing_action_buttons")?requestAnimationFrame(f.maybeUpdateFlexibleMenuImpl):f.maybeUpdateFlexibleMenuImpl()};
f.maybeUpdateFlexibleMenuImpl=function(){var H;if((H=f.data)!=null&&H.flexibleItems){f.maybeFlushDebouncer();H=f.hostElement.clientWidth;var v=H>f.JSC$14622_lastWidth,t,M=((t=f.topLevelButtonsContainer)==null?void 0:t.scrollHeight)||0,h;t=((h=f.flexibleItemButtonsContainer)==null?void 0:h.scrollHeight)||0;h=f.hostElement.scrollHeight>Math.max(M,t)+8;v?(f.resetFlexibleItems(),f.JSC$14622_lastWidth=f.hostElement.clientWidth,f.maybeUpdateFlexibleMenu()):h&&(f.shrinkFlexibleMenu(),f.JSC$14622_lastWidth=
H)}};
f.computeThreeDotButtonShape=function(){if(f.tonalOverride)return Object.assign({},{onTap:function(){f.onOverflowTap()},
iconPosition:"icon-only",style:f.isOverlay?f.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:f.threeDotSize,state:"active",accessibilityLabel:f.computeAccessibilityLabel(f.data)},f.threeDotButtonOverride)};
f.onOverflowTap=function(){if(f.data.fetchMenuCommand)_.t8().resolve(_.MJ).resolveCommand(f.data.fetchMenuCommand,{form:{element:f.hostElement}});else if(f.data.isDisabled&&f.data.disabledCommand)_.sV(f.data.disabledCommand,f.hostElement);else{var H=f.createMenuRendererVe(),v={items:f.items};f.data.menuPopupAccessibility&&(v.menuPopupAccessibility=f.data.menuPopupAccessibility);f.data.footer&&(v.footer=f.data.footer);H={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:v},veData:H}};
_.t8().resolve(_.zQ).openSheet({openPopupActionCommand:H},f.hostElement)}};
return f};
_.e(Qb,_.K);_.R=Qb.prototype;_.R.updateButtonOverrides=function(){if(!_.J("menu_renderer_label_update_upkillswitch")){var f=_.mF(this.hostElement).querySelector("yt-button-view-model");f&&(f.buttonOverrides=this.buttonOverrides)}};
_.R.computeHasItems=function(){var f;return((f=this.topLevelButtonData)==null?void 0:f.length)||this.hasFlexibleItems};
_.R.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.R.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.Sr(this.hostElement,{"--ytd-menu-renderer-button-color":_.NS(this.data.iconColor)}))};
_.R.onStamperFinished=function(){this.JSC$14622_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.R.setupFlexibleMenu=function(){var f=this,H;(H=this.data)!=null&&H.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.Nl(this.maybeUpdateFlexibleMenu,wPh,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){f.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))};
_.R.maybeFlushDebouncer=function(){if(_.J("web_replace_formatted_with_attributed_string")){var f;(f=this.topLevelButtons)==null||f.forEach(function(v){var t;(v=(t=v.getElementsByTagName("yt-attributed-string"))==null?void 0:t[0])&&az3(v)});
var H;(H=this.flexibleItemButtons)==null||H.forEach(function(v){var t;(v=(t=v.getElementsByTagName("yt-attributed-string"))==null?void 0:t[0])&&az3(v)})}};
_.R.resetFlexibleItems=function(){var f;if((f=this.data)!=null&&f.flexibleItems){_.J("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var H;this.flexAsTopLevelButtons=(H=this.data.flexibleItems)==null?void 0:H.map(function(v){return _.U(v,_.BCh).topLevelButton});
_.J("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.R.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.R.shrinkFlexibleMenu=function(){var f;(f=this.flexAsTopLevelButtons)!=null&&f.length&&(this.flexAsTopLevelButtons=[].concat(_.pS(this.flexAsTopLevelButtons.slice(0,-1))))};
_.R.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:TMn,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:TMn,events:!0}}};
_.R.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.R.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.R.detached=function(){this.icon="MORE_VERT"};
_.R.computeTopLevelButtonData=function(f){if(!f)return[];var H;f=(H=f==null?void 0:f.topLevelButtons)!=null?H:[];return _.QA.unsafeClone([].concat(_.pS(f)))};
_.R.computeItems=function(f,H){if(!f)return[];var v=[];if(H){var t=(f.flexibleItems||[]).map(function(y){return _.U(y,_.BCh)});
t=_.V(t);for(var M=t.next();!M.done;M=t.next())M=M.value,H.includes(M.topLevelButton)||(M=M.menuItem)&&v.push(M)}var h;f=(h=f==null?void 0:f.items)!=null?h:[];return[].concat(_.pS(v),_.pS(f))};
_.R.computeMenuActive=function(f,H){return f||H};
_.R.onPopupOpened=function(){this.overlayOpen=!0;_.YE(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.R.onPopupClosed=function(){this.overlayOpen=!1;_.YE(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.R.onPopupCanceled=function(){this.overlayOpen=!1;_.YE(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.R.computeAccessibilityLabel=function(f){return this.get("accessibility.accessibilityData.label",f)};
_.R.isHidden=function(f,H){return this.tonalOverride||!f?!0:f.fetchMenuCommand||f.isDisabled&&f.disabledCommand?!1:!(H==null?0:H.length)};
_.R.isModernOverflowHidden=function(f,H){return this.tonalOverride&&f?f.fetchMenuCommand?!1:!(H==null?0:H.length):!0};
_.R.createMenuRendererVe=function(){var f=this.data.trackingParams,H=_.uy(),v=_.Qe();return f&&H&&v?(f=_.zK(f),v=_.$$(7591),_.J("combine_ve_grafts")?_.YP(_.UV(),v,f):_.Xl(H,f,v),v):null};
_.H7.Object.defineProperties(Qb.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.flexAsTopLevelButtons)==null||!f.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
Qb.prototype.onPopupCanceled=Qb.prototype.onPopupCanceled;Qb.prototype.onPopupClosed=Qb.prototype.onPopupClosed;Qb.prototype.onPopupOpened=Qb.prototype.onPopupOpened;Qb.prototype.tonalOverrideChanged=Qb.prototype.tonalOverrideChanged;Qb.prototype.resetFlexibleItems=Qb.prototype.resetFlexibleItems;Qb.prototype.setupFlexibleMenu=Qb.prototype.setupFlexibleMenu;Qb.prototype.iconButtonColorChanged=Qb.prototype.iconButtonColorChanged;Qb.prototype.updateButtonOverrides=Qb.prototype.updateButtonOverrides;
_.E([_.B(_.fm),_.N("design:type",Object)],Qb.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Qb.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Qb.prototype,"ytRendererstamperBehavior",void 0);_.E([_.lJ("#button-shape"),_.N("design:type",HTMLElement)],Qb.prototype,"buttonShape",void 0);_.E([_.lJ("#button"),_.N("design:type",Object)],Qb.prototype,"button",void 0);
_.E([_.F(),_.N("design:type",Object)],Qb.prototype,"data",void 0);_.E([_.F({computed:"computeTopLevelButtonData(data)"}),_.N("design:type",Array)],Qb.prototype,"topLevelButtonData",void 0);_.E([_.F(),_.N("design:type",Array)],Qb.prototype,"flexAsTopLevelButtons",void 0);_.E([_.F({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.N("design:type",Array)],Qb.prototype,"items",void 0);_.E([_.F({value:"MORE_VERT"}),_.N("design:type",String)],Qb.prototype,"icon",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Qb.prototype,"safeArea",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.N("design:type",Boolean)],Qb.prototype,"menuActive",void 0);_.E([_.F(),_.N("design:type",Boolean)],Qb.prototype,"menuFocused",void 0);_.E([_.F({value:"bottom"}),_.N("design:type",String)],Qb.prototype,"buttonTooltipPosition",void 0);_.E([_.F(),_.N("design:type",Boolean)],Qb.prototype,"overlayOpen",void 0);
_.E([_.F({value:!0}),_.N("design:type",Boolean)],Qb.prototype,"forceIconButton",void 0);_.E([_.F(),_.N("design:type",Boolean)],Qb.prototype,"styleActionButton",void 0);_.E([_.F(),_.N("design:type",Boolean)],Qb.prototype,"disableTextTransformOnButtons",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Qb.prototype,"tonalOverride",void 0);_.E([_.F(),_.N("design:type",Object)],Qb.prototype,"threeDotSize",void 0);
_.E([_.F(),_.N("design:type",Object)],Qb.prototype,"threeDotButtonOverride",void 0);_.E([_.F(),_.N("design:type",Object)],Qb.prototype,"isOverlay",void 0);_.E([_.F(),_.N("design:type",Object)],Qb.prototype,"useOverlayDark",void 0);_.E([_.F({computed:"computeButtonOverride(tonalOverride)"}),_.N("design:type",Object)],Qb.prototype,"buttonOverride",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Qb.prototype,"hasCustomIconColor",void 0);
_.E([_.F({reflectToAttribute:!0}),_.z("flexAsTopLevelButtons"),_.N("design:type",Object),_.N("design:paramtypes",[])],Qb.prototype,"hasFlexibleItems",null);_.E([_.F({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.N("design:type",Boolean)],Qb.prototype,"hasItems",void 0);_.E([_.F(),_.N("design:type",Object)],Qb.prototype,"topLevelIconsOnly",void 0);
_.E([_.Zw("topLevelIconsOnly"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qb.prototype,"updateButtonOverrides",null);_.E([_.z("topLevelIconsOnly"),_.N("design:type",Object),_.N("design:paramtypes",[])],Qb.prototype,"buttonOverrides",null);_.E([_.lJ("#top-level-buttons-computed"),_.N("design:type",HTMLElement)],Qb.prototype,"topLevelButtonsContainer",void 0);_.E([_.UE(".top-level-buttons > *"),_.N("design:type",Array)],Qb.prototype,"topLevelButtons",void 0);
_.E([_.lJ("#flexible-item-buttons"),_.N("design:type",HTMLElement)],Qb.prototype,"flexibleItemButtonsContainer",void 0);_.E([_.UE("#flexible-item-buttons > *"),_.N("design:type",Array)],Qb.prototype,"flexibleItemButtons",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qb.prototype,"iconButtonColorChanged",null);
_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qb.prototype,"setupFlexibleMenu",null);_.E([_.xV("topLevelIconsOnly"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qb.prototype,"resetFlexibleItems",null);_.E([_.Zw("tonalOverride"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qb.prototype,"tonalOverrideChanged",null);
_.E([_.sE("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qb.prototype,"onPopupOpened",null);_.E([_.sE("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qb.prototype,"onPopupClosed",null);_.E([_.sE("yt-popup-canceled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qb.prototype,"onPopupCanceled",null);
_.G(Qb,"ytd-menu-renderer",function(){if(dXZ===void 0){var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);dXZ=f}f=dXZ;return f},{mode:2});var qD_;var fJv;_.u5=_.a(function(f){var H=f.data;var v=function(){if(H().icon)a:{var t={iconName:H().icon};for(var M=_.t8().resolve(_.d9),h=_.V([12,24]),y=h.next();!y.done;y=h.next()){var m=y.value;y=Object.assign({},t,{iconStyle:"youtube_fill",iconSize:m});m=Object.assign({},t,{iconStyle:"youtube_outline",iconSize:m});if(M.resolveIcon(y)){t=y;break a}if(M.resolveIcon(m)){t=m;break a}}t=void 0}else t=void 0;return t};
f={};return _.O("badge-shape",{class:_.S2("badge-shape-wiz",function(){return KC_(H().type)},(f["badge-shape-wiz--overlay"]=function(){return H().isOverlay},f["badge-shape-wiz--ads-include-dot"]=function(){return H().adsIncludeDot},f["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(H().type){case 17:case 18:case 19:var t=!0;
break a;default:t=!1}return t},f["badge-shape-wiz--status-badge"]=function(){a:switch(H().type){case 12:case 13:case 14:case 15:case 16:var t=!0;
break a;default:t=!1}return t},f["badge-shape-wiz--no-text"]=function(){return!H().text},f["badge-shape-wiz--modern"]=function(){return H().modern||_.J("web_modern_badge_shape")},f)),
style:_.ZE({"background-color":function(){var t;return(t=H().customColors)==null?void 0:t.backgroundColor}}),
role:function(){return H().accessibilityText?"img":void 0},
"aria-label":function(){return H().accessibilityText}},_.O(_.g,{cond:function(){return H().animation},
then:function(t){return _.O(_.j3,{className:"badge-shape-wiz__icon",data:t,animationName:function(){return t().animationConfig.name||""}})}}),_.O(_.g,{cond:function(){var t;
return v()&&!((t=H())==null?0:t.animation)},
then:function(){return _.O("div",{class:"badge-shape-wiz__icon"},_.O(HDe,{data:function(){return v()}}))}}),_.O("div",{class:"badge-shape-wiz__text"},function(){var t;
return(t=H())==null?void 0:t.text}))},"V");
_.u5.idomCompat=!0;_.yn(_.u5,"badge-shape",{props:{data:_.ki}});var at=function(){var f=_.K.apply(this,arguments)||this;f.systemIcons=_.J("kevlar_system_icons");f.animated=_.J("animated_live_badge_icon");f.useBadgeShape=_.J("web_badge_shape_defrag");return f};
_.e(at,_.K);_.R=at.prototype;_.R.addTooltips=function(){for(var f=_.mF(this.hostElement).querySelectorAll(".badge"),H=0,v;v=f[H++];){var t=this.repeatElement.itemForElement(v);v=_.mF(v);v.lastChild&&v.lastChild.is==="tp-yt-paper-tooltip"&&v.removeChild(v.lastChild);if(t=t.metadataBadgeRenderer&&t.metadataBadgeRenderer.tooltip){var M=_.vp("tp-yt-paper-tooltip");(0,_.gX)(M).textContent=t;M.setAttribute("position","top");M.setAttribute("aria-hidden","true");v.appendChild(M)}}};
_.R.badgesChanged=function(){var f=this;_.PL().parkOrScheduleJob(function(){f.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.R.standaloneRoundedBadgeChanged=function(){var f=this.useRoundedBadge?this.useRoundedBadge:void 0;f&&(this.useRoundedBadge=f)};
_.R.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.R.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.R.computeStyle=function(f){_.J("enable_html5_teal_ad_badge")&&f==="BADGE_STYLE_TYPE_AD"&&(f="badge-style-type-ad-alternate");_.J("kevlar_ytb_live_badges")&&f==="BADGE_STYLE_TYPE_LIVE_NOW"&&(f="badge-style-type-live-now-alternate");return f?f.toLowerCase().replace(/_/g,"-"):""};
_.R.computeRole=function(f){return this.computeAriaLabel(f)?"img":"status"};
_.R.computeAriaLabel=function(f){var H;return(f==null?void 0:(H=f.accessibilityData)==null?void 0:H.label)||(f==null?void 0:f.label)};
_.R.computeBadgeShape=function(f){if(f){var H,v;var t=FCr(f.style);var M=rL5(f.style),h=f.label,y=((H=f.accessibilityData)==null?void 0:H.label)||f.label;a:switch(f.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":H=!0;break a;default:H=!1}var m=(v=f.icon)==null?void 0:v.iconType;a:switch(f.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":f=!0;break a;default:f=!1}t={type:t,brNzRatingBadgeType:M,text:h,accessibilityText:y,
isOverlay:H,icon:m!=="PREMIUM"?m:void 0,modern:_.J("web_modern_badge_view_model"),adsIncludeDot:f}}else t={};return t};
_.R.updateComputedBadges=function(f,H,v){var t=this;(H=H?[H]:v?[v]:void 0)?this.computedBadges=H:this.computedBadges=f==null?void 0:f.filter(function(M){var h;if((h=M.metadataBadgeRenderer)==null?0:h.groups){h=!1;M=_.V(M.metadataBadgeRenderer.groups);for(var y=M.next();!y.done;y=M.next()){y=y.value;var m=void 0;h=h||((m=t.hiddenBadgeGroups)==null?void 0:m.includes(y))}return!h}return!0})};
_.R.useFilledIcons=function(f){return _.J("kevlar_system_icons")&&(f==="AUDIO_BADGE"||f==="CHECK_CIRCLE_THICK"||f==="OFFICIAL_ARTIST_BADGE"||f==="SPONSORSHIP_STAR"||f==="PERSON_RADAR_FILLED"||f==="PERSON_RADAR")};
_.R.computeBadgeShapeStyle=function(f){return this.useBadgeShape?f==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||f==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":"":""};
_.R.computeIcon=function(f){var H,v;f=f==null?void 0:(H=f.metadataBadgeRenderer)==null?void 0:(v=H.icon)==null?void 0:v.iconType;if(f!=="PREMIUM"&&f)return _.SW(f)};
_.R.computeStandaloneBadge=function(f){var H;f=f==null?void 0:(H=f.icon)==null?void 0:H.iconType;return f==="PREMIUM_STANDALONE"||f==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
at.prototype.hiddenBadgeGroupsChanged=at.prototype.hiddenBadgeGroupsChanged;at.prototype.standaloneBadgeChanged=at.prototype.standaloneBadgeChanged;at.prototype.standaloneRoundedBadgeChanged=at.prototype.standaloneRoundedBadgeChanged;at.prototype.badgesChanged=at.prototype.badgesChanged;_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],at.prototype,"hidden",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],at.prototype,"componentBehavior",void 0);
_.E([_.F(),_.N("design:type",Array)],at.prototype,"badges",void 0);_.E([_.F(),_.N("design:type",Object)],at.prototype,"topStandaloneBadge",void 0);_.E([_.F(),_.N("design:type",Object)],at.prototype,"bottomStandaloneBadge",void 0);_.E([_.F(),_.N("design:type",Object)],at.prototype,"computedBadges",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],at.prototype,"mediumFontAdBadge",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],at.prototype,"useRoundedBadge",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],at.prototype,"largeFontAdBadge",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],at.prototype,"overlayAd",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],at.prototype,"overlayPremium",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],at.prototype,"noDotAdBadge",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],at.prototype,"collectionTruncate",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],at.prototype,"isThumbnailBadge",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],at.prototype,"wrapBadges",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],at.prototype,"systemIcons",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],at.prototype,"animated",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],at.prototype,"useBadgeShape",void 0);_.E([_.F({value:[]}),_.N("design:type",Array)],at.prototype,"hiddenBadgeGroups",void 0);_.E([_.lJ("#repeat"),_.N("design:type",Qs)],at.prototype,"repeatElement",void 0);_.E([_.xV("badges"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],at.prototype,"badgesChanged",null);
_.E([_.xV("useRoundedBadge"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],at.prototype,"standaloneRoundedBadgeChanged",null);_.E([_.xV("topStandaloneBadge","bottomStandaloneBadge"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],at.prototype,"standaloneBadgeChanged",null);_.E([_.xV("hiddenBadgeGroups"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],at.prototype,"hiddenBadgeGroupsChanged",null);
_.E([_.u({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],at);
var HJo=_.$6()(at,"ytd-badge-supported-renderer",function(){if(fJv===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);fJv=f}f=fJv;return f},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.WK("kevlar_poly_si_batch_j053")?1:2});var P5=function(){var f=_.K.apply(this,arguments)||this;f.iconType="STAR";f.standardizeIconSize=_.J("kevlar_system_icons");f.mediaHoverOverlayInitialVisibility=_.J("enable_top_landscape_image_button_command_web");f.noBottomMargin=!1;f.thumbnailObjectFit="CONTAIN";f.thumbnailFitHeight=!0;f.actionMap={"yt-mute-ad-action":"handleMuteAd"};return f};
_.e(P5,_.K);_.R=P5.prototype;
_.R.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"}}}};
_.R.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",P5.JSC$14634_DEFAULT_CLICK_LOCATION_BEHAVIOR,P5.JSC$14634_CLICK_LOCATION_ID_MAP))};
_.R.onTap=function(f){if(!_.J("use_on_click_for_desktop_display_ad"))this.onTapOrClick(f)};
_.R.onClick=function(f){if(_.J("use_on_click_for_desktop_display_ad"))this.onTapOrClick(f)};
_.R.onTapOrClick=function(f){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,f,!1)};
_.R.updateMediaBackgroundImage=function(){var f=this.get("data.image.thumbnail.thumbnails");f&&(f=_.YK(f,0))&&_.Sr(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+f+")"})};
_.R.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var f=0;f<this.data.impressionEndpoints.length;f++){var H=this.data.impressionEndpoints[f];H.clickTrackingParams&&delete H.clickTrackingParams;_.t8().resolve(_.MJ).resolveCommand(H,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var v;((v=this.data)==null?0:v.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.R.handleMuteAd=function(){};
_.R.attached=function(){var f=this;_.J("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&f.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.R.detached=function(){_.J("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.H7.Object.defineProperties(P5.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null||!f.titleText)return"";var H;return _.ZC("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((H=this.data)==null?void 0:H.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?0:f.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?0:f.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?0:f.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?0:f.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?0:f.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 f;return!((f=this.data)==null||!f.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"}}});
P5.prototype.onClick=P5.prototype.onClick;P5.prototype.onTap=P5.prototype.onTap;P5.prototype.dataChanged=P5.prototype.dataChanged;
P5.JSC$14634_CLICK_LOCATION_ID_MAP=_.J("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"]]);
P5.JSC$14634_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.J("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"}];_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],P5.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],P5.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.B(_.PG),_.N("design:type",Object)],P5.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],P5.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.M2.YtSparklesClickLocationBehavior),_.N("design:type",Object)],P5.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.B(QW),_.N("design:type",Object)],P5.prototype,"ytdActiveViewBehavior",void 0);_.E([_.B([_.dt.YtActionHandlerBehavior]),_.N("design:type",Object)],P5.prototype,"actionHandlerBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],P5.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],P5.prototype,"clickCommand",void 0);_.E([_.F({reflectToAttribute:!0,selector:_.Qq}),_.N("design:type",Boolean)],P5.prototype,"miniMode",void 0);_.E([_.F(),_.N("design:type",String)],P5.prototype,"iconType",void 0);_.E([_.z("data.titleText"),_.N("design:type",String),_.N("design:paramtypes",[])],P5.prototype,"titleAriaLabel",null);
_.E([_.z("data.rating"),_.N("design:type",Object),_.N("design:paramtypes",[])],P5.prototype,"getRating",null);_.E([_.z("data.price"),_.N("design:type",Object),_.N("design:paramtypes",[])],P5.prototype,"getPrice",null);_.E([_.z("data.thirdLine"),_.N("design:type",Object),_.N("design:paramtypes",[])],P5.prototype,"getThirdLine",null);_.E([_.z("data.fourthLine"),_.N("design:type",Object),_.N("design:paramtypes",[])],P5.prototype,"getFourthLine",null);
_.E([_.z("data.fifthLine"),_.N("design:type",Object),_.N("design:paramtypes",[])],P5.prototype,"getFifthLine",null);_.E([_.z("getRating"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],P5.prototype,"computeRatingHidden",null);_.E([_.z("getPrice"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],P5.prototype,"computePriceHidden",null);_.E([_.z("getThirdLine"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],P5.prototype,"computeThirdLineHidden",null);
_.E([_.z("getFourthLine"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],P5.prototype,"computeFourthLineHidden",null);_.E([_.z("getFifthLine"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],P5.prototype,"computeFifthLineHidden",null);_.E([_.F({reflectToAttribute:!0}),_.z("data.energyIcon"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],P5.prototype,"hasEnergyIcon",null);
_.E([_.z("computePriceHidden","computeRatingHidden"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],P5.prototype,"computeSecondaryTextHidden",null);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],P5.prototype,"standardizeIconSize",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],P5.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],P5.prototype,"noBottomMargin",void 0);
_.E([_.F({reflectToAttribute:!0}),_.z("data.layout"),_.N("design:type",String),_.N("design:paramtypes",[])],P5.prototype,"layout",null);_.E([_.z("data.layout"),_.N("design:type",Object),_.N("design:paramtypes",[])],P5.prototype,"mediaThumbnailWidth",null);_.E([_.z("layout"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],P5.prototype,"useRoundedBadge",null);_.E([_.F(),_.N("design:type",String)],P5.prototype,"thumbnailObjectFit",void 0);
_.E([_.F(),_.N("design:type",Object)],P5.prototype,"thumbnailFitHeight",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],P5.prototype,"dataChanged",null);_.E([_.sE("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],P5.prototype,"onTap",null);_.E([_.sE("click"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],P5.prototype,"onClick",null);
_.E([_.u({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],P5);
_.G(P5,"ytd-display-ad-renderer",function(){if(qD_!==void 0)return qD_;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return qD_=f},{mode:1});var vhH;var tyg;var MyC;var DMB=new Map;var hnv=!1;var GQ=function(){var f=_.K.apply(this,arguments)||this;f.DEFAULT_TOOLTIP_OFFSET="10";f.TOOLTIP_OFFSET_NO_BANNER="-8";f.badges=null;f.noEndpoints=!1;f.wrapText=!1;f.forceVerified=!1;f.tooltipPosition="top";f.compactStyle=!1;f.height=0;f.lineHeight=0;return f};
_.e(GQ,_.K);_.R=GQ.prototype;_.R.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.R.attached=function(){var f=this;this.observer=new MutationObserver(function(H,v){f.handleResized();v.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.R.detached=function(){this.observer&&this.observer.disconnect()};
_.R.logTooltipEvent=function(){_.J("kevlar_wiz_tooltip_event_killswitch")||hnv||(_.ohb("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),hnv=!0)};
_.R.handleWindowResized=function(){this.handleResized()};
_.R.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")))};
_.R.onHeightChanged=function(){if(this.verified){var f=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.a8("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=f:this.textContainerEl.style.marginRight=f}};
_.R.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.a8("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.R.handleResized=function(){var f=this;this.verified&&_.nN.addLowPriorityJob(function(){f.fitBackgroundToText();var H=getComputedStyle(f.hostElement).lineHeight;H&&(H=H.match(/\d+/))&&H.length&&(f.lineHeight=Number(H[0]));f.height=f.lineHeight&&!f.wrapText?f.lineHeight:f.textEl.offsetHeight})};
_.R.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var f=document.createRange(),H=_.mF(this.textEl).children;H.length>0?f.selectNodeContents(H[0]):f.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(f.getBoundingClientRect().width)+"px"}};
_.R.computeChannelBadgeStyle=function(f){var H;if((f==null?0:(H=f.runs)==null?0:H.length)&&f.runs[0].textColor)return"--ytd-badge-icon-color:"+_.NS(f.runs[0].textColor)+";"};
_.H7.Object.defineProperties(GQ.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"?_.qO(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var f=this.get("badges.0.metadataBadgeRenderer.tooltip");if(f)return f}return _.fG(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
GQ.prototype.onLineHeightChanged=GQ.prototype.onLineHeightChanged;GQ.prototype.onHeightChanged=GQ.prototype.onHeightChanged;GQ.prototype.onChannelNameChanged=GQ.prototype.onChannelNameChanged;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],GQ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],GQ.prototype,"badges",void 0);_.E([_.F(),_.N("design:type",Object)],GQ.prototype,"channelName",void 0);
_.E([_.F(),_.N("design:type",Object)],GQ.prototype,"noEndpoints",void 0);_.E([_.F(),_.N("design:type",Object)],GQ.prototype,"wrapText",void 0);_.E([_.F(),_.N("design:type",Object)],GQ.prototype,"forceVerified",void 0);_.E([_.F(),_.N("design:type",Object)],GQ.prototype,"tooltipPosition",void 0);_.E([_.F(),_.N("design:type",String)],GQ.prototype,"tooltip",void 0);_.E([_.F(),_.N("design:type",Boolean)],GQ.prototype,"hasChannelArt",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],GQ.prototype,"compactStyle",void 0);_.E([_.lJ("#text-container"),_.N("design:type",HTMLElement)],GQ.prototype,"textContainerEl",void 0);_.E([_.lJ("#text"),_.N("design:type",Object)],GQ.prototype,"textEl",void 0);_.E([_.lJ("#verified-tooltip"),_.N("design:type",HTMLElement)],GQ.prototype,"verifiedTooltip",void 0);_.E([_.F(),_.N("design:type",Object)],GQ.prototype,"height",void 0);
_.E([_.F(),_.N("design:type",Object)],GQ.prototype,"lineHeight",void 0);_.E([_.F({reflectToAttribute:!0}),_.z("badges","forceVerified"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],GQ.prototype,"verified",null);_.E([_.z("badges","verified"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],GQ.prototype,"hideBadges",null);_.E([_.z("channelName"),_.N("design:type",Object),_.N("design:paramtypes",[])],GQ.prototype,"formattedName",null);
_.E([_.z("badges","verified","formattedName"),_.N("design:type",String),_.N("design:paramtypes",[])],GQ.prototype,"tooltipText",null);_.E([_.z("hasChannelArt"),_.N("design:type",String),_.N("design:paramtypes",[])],GQ.prototype,"tooltipOffset",null);_.E([_.Zw("channelName"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],GQ.prototype,"onChannelNameChanged",null);
_.E([_.Zw("height"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],GQ.prototype,"onHeightChanged",null);_.E([_.Zw("lineHeight","height"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],GQ.prototype,"onLineHeightChanged",null);_.E([_.u({is:"ytd-channel-name",disableElementRegistration:!0})],GQ);
_.G(GQ,"ytd-channel-name",function(){if(MyC!==void 0)return MyC;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return MyC=f},{mode:_.WK("kevlar_poly_si_batch_j036")?1:2});var CX=function(){var f=_.K.apply(this,arguments)||this;f.standardizeIconSize=_.J("kevlar_system_icons");return f};
_.e(CX,_.K);CX.prototype.basicPaletteChanged=function(){var f;(f=this.data.color)!=null&&f.basicColorPaletteData&&_.r6(this.hostElement,this.data.color.basicColorPaletteData)};
CX.prototype.useFilledIcons=function(f){return _.J("kevlar_system_icons")&&(f==="CHECK_CIRCLE_THICK"||f==="OFFICIAL_ARTIST_BADGE")};
_.H7.Object.defineProperties(CX.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var f,H,v;return this.data.authorCreator||((f=this.data)==null?void 0:(H=f.color)==null?void 0:(v=H.basicColorPaletteData)==null?void 0:v.backgroundColor)}}});
CX.prototype.basicPaletteChanged=CX.prototype.basicPaletteChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],CX.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],CX.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],CX.prototype,"standardizeIconSize",void 0);_.E([_.F({reflectToAttribute:!0}),_.z("data.authorUnifiedVerified"),_.N("design:type",Object),_.N("design:paramtypes",[])],CX.prototype,"verified",null);
_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],CX.prototype,"creator",null);_.E([_.Zw("data.color.basicColorPaletteData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],CX.prototype,"basicPaletteChanged",null);_.E([_.u({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],CX);
_.G(CX,"ytd-author-comment-badge-renderer",function(){if(tyg!==void 0)return tyg;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return tyg=f},{mode:1});var Rn9;var Es=function(){return _.K.apply(this,arguments)||this};
_.e(Es,_.K);Es.prototype.computeThumbnailWidth=function(f){if(f==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Es.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Es.prototype,"data",void 0);_.E([_.F({computed:"computeIcon_(data.icon)"}),_.N("design:type",String)],Es.prototype,"icon",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],Es.prototype,"surface",void 0);
_.E([_.F({reflectToAttribute:!0,value:_.J("enable_shrink_image_size_on_web_posts_singleton")}),_.N("design:type",Boolean)],Es.prototype,"searchSxsUx",void 0);_.E([_.u({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],Es);
_.G(Es,"ytd-backstage-image-renderer",function(){if(Rn9!==void 0)return Rn9;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Rn9=f},{mode:1});var Vyv;var N2=function(){var f=_.K.apply(this,arguments)||this;f.isLoading=!1;f.selectedItemIndex=-1;return f};
_.e(N2,_.K);_.R=N2.prototype;_.R.computeIsChannelOwner=function(f){if(!f)return!0;f=f[0];return!(f&&(f.signinEndpoint||f.selectServiceEndpoint))};
_.R.computeIsImagePoll=function(f){return(f==null?void 0:f.type)==="POLL_TYPE_IMAGE"};
_.R.computeIsTotalVotesDisabled=function(f){return!(f==null?0:f.totalVotes)};
_.R.thumbnailSrc=function(f){var H,v,t,M;return(f==null?0:(H=f.thumbnails)==null?0:(v=H[0])==null?0:v.url)?_.Co((t=f.thumbnails)==null?void 0:(M=t[0])==null?void 0:M.url):void 0};
_.R.progressWidth=function(f){return"width:"+(f?f*100:0)+"%;"};
_.R.textAreaWidth=function(f){return this.isImagePoll?null:"width:"+(f?f*100:0)+"%;"};
_.R.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.R.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var f=this.data.choices,H=0;H<f.length;H++)if(f[H].selected){this.selectedItemIndex=H;break}};
_.R.onPopupClosed=function(f,H){f=Number(this.pollVotes.selected);H.confirmed&&(this.selectChoice(f,!1),_.mb(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.R.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.R.onYtCommentPollRevert=function(f,H){H&&(this.selectChoice(H.selectedChoiceIndex,!0),this.set("data.totalVotes",H.totalVotes))};
_.R.onYtServiceRequestSent=function(f,H){if(H.actions)for(f=0;f<H.actions.length;f++){var v=H.actions[f];_.U(v,lP)&&this.set("data.totalVotes",_.U(v,lP).totalVotes)}};
_.R.onYtServiceRequestCompleted=function(f){var H=this.get("detail.data.actionResults.0.feedback",f);f=this.get("detail.data.actionResults.0.status",f);if(H==="FEEDBACK_DESELECT"||H==="FEEDBACK_SELECT")this.isLoading=!1,f==="STATUS_FAILED"?_.YE(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.R.getEndpoint=function(f,H){return H===f?this.data.choices[H].deselectServiceEndpoint||null:this.data.choices[f].selectServiceEndpoint||null};
_.R.selectChoice=function(f,H){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var v=0;v<this.data.choices.length;v++){var t;if(f===this.selectedItemIndex){var M=!1;var h=t=null}else t=(M=v===f)?this.data.choices[v].voteRatioIfSelected:this.data.choices[v].voteRatioIfNotSelected,h=M?this.data.choices[v].votePercentageIfSelected:this.data.choices[v].votePercentageIfNotSelected;this.set("data.choices."+v+".voteRatio",t);
this.set("data.choices."+v+".votePercentage",h);this.set("data.choices."+v+".selected",M)}H||(this.isLoading=!0,(H=this.getEndpoint(f,this.selectedItemIndex))&&_.t8().resolve(_.MJ).resolveCommand(H,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===f?-1:f};
_.H7.Object.defineProperties(N2.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
N2.prototype.onYtServiceRequestCompleted=N2.prototype.onYtServiceRequestCompleted;N2.prototype.onYtServiceRequestSent=N2.prototype.onYtServiceRequestSent;N2.prototype.onYtCommentPollRevert=N2.prototype.onYtCommentPollRevert;N2.prototype.onPopupClosed=N2.prototype.onPopupClosed;N2.prototype.dataChanged=N2.prototype.dataChanged;_.E([_.B(_.N_),_.N("design:type",Object)],N2.prototype,"paperItemBehavior",void 0);
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],N2.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.fm),_.N("design:type",Object)],N2.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],N2.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],N2.prototype,"isLoading",void 0);_.E([_.F({computed:"computeIsChannelOwner(data.choices)"}),_.N("design:type",Boolean)],N2.prototype,"isChannelOwner",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.N("design:type",Boolean)],N2.prototype,"isImagePoll",void 0);_.E([_.F({computed:"computeIsTotalVotesDisabled(data)"}),_.N("design:type",Boolean)],N2.prototype,"isTotalVotesDisabled",void 0);_.E([_.F(),_.N("design:type",Object)],N2.prototype,"previousPollInfo",void 0);_.E([_.F(),_.N("design:type",Object)],N2.prototype,"selectedItemIndex",void 0);_.E([_.lJ("#poll-votes"),_.N("design:type",Object)],N2.prototype,"pollVotes",void 0);
_.E([_.z("isChannelOwner"),_.N("design:type",Object),_.N("design:paramtypes",[])],N2.prototype,"endpointStyle",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],N2.prototype,"dataChanged",null);_.E([_.sE("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],N2.prototype,"onPopupClosed",null);
_.E([_.sE("yt-comment-poll-revert"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],N2.prototype,"onYtCommentPollRevert",null);_.E([_.sE("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.ER]),_.N("design:returntype")],N2.prototype,"onYtServiceRequestSent",null);
_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],N2.prototype,"onYtServiceRequestCompleted",null);_.E([_.u({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],N2);
_.G(N2,"ytd-backstage-poll-renderer",function(){if(Vyv!==void 0)return Vyv;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Vyv=f},{mode:2});var yLh;var YyT={autoplay:!1,loop:!1},mM9={simpleText:""},c5=function(){var f=_.K.apply(this,arguments)||this;f.isLoading=!1;f.usesPanelLockup=!1;f.selectedItemIndex=-1;f.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},YyT,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});f.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},YyT,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});f.correctnessAnimationProps=[];f.correctnessAnimationRefs=[];return f};
_.e(c5,_.K);_.R=c5.prototype;_.R.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.R.computeIsChannelOwner=function(f){if(!f)return!0;f=f[0];return!(f&&(f.signinEndpoint||f.selectServiceEndpoint))};
_.R.computeIsTotalVotesDisabled=function(f){return!(f==null?0:f.totalVotes)};
_.R.computeIsImageQuiz=function(f){return(f==null?void 0:f.type)==="POLL_TYPE_IMAGE"};
_.R.onExplanationChanged=function(){this.expander.reset()};
_.R.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var f=this.data.choices;if(f){this.maybeInitializeQuizLotties(f);for(var H=0;H<f.length;H++)if(f[H].isSelected||this.isChannelOwner&&f[H].isCorrect){this.selectedItemIndex=H;return}this.selectedItemIndex=-1}}};
_.R.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var f=this.selectedItemIndex,H=Number(this.quizVotes.selected);this.selectChoice(H);this.sendVoteAction(H,f);this.quizVotes.selected=-1;var v;f=!((v=this.data)==null?0:v.enableAnimation);this.maybePlayAnswerAnimations(f)}};
_.R.onYtCommentPollRevert=function(f,H){H&&(this.selectChoice(H.selectedChoiceIndex),this.set("data.totalVotes",H.totalVotes))};
_.R.onYtServiceRequestSent=function(f,H){if(H.actions)for(f=_.V(H.actions),H=f.next();!H.done;H=f.next())(H=_.U(H.value,lP))&&this.set("data.totalVotes",H.totalVotes)};
_.R.onYtServiceRequestCompleted=function(f){var H=this.get("detail.data.actionResults.0.feedback",f);f=this.get("detail.data.actionResults.0.status",f);if(H==="FEEDBACK_DESELECT"||H==="FEEDBACK_SELECT")this.isLoading=!1,f==="STATUS_FAILED"?_.YE(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.R.getAnimationPropsForChoiceIndex=function(f,H){return H[f]};
_.R.maybePlayAnswerAnimations=function(f){f=f===void 0?!1:f;var H;if((H=this.data)!=null&&H.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){H=_.V(this.correctnessAnimationRefs);for(var v=H.next();!v.done;v=H.next()){var t=void 0,M=void 0;(t=v.value)==null||(M=t.lottieEl)==null||M.stop()}if(!(this.selectedItemIndex<0)){H=0;f&&(H=this.isCorrect?37:25);var h,y;(h=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(y=h.lottieEl)==null||y.goToAndPlay(f?H:0,!0);if(!(this.isCorrect||
(h=this.data.choices.findIndex(function(S){return S.isCorrect}),h<0))){var m,W;
(W=(m=this.correctnessAnimationRefs[h])==null?void 0:m.lottieEl)==null||W.goToAndPlay(37,!0);var I;m=(I=this.fadeContainers)==null?void 0:I.item(h);!f&&m&&this.fadeIn(m)}}}};
_.R.thumbnailSrc=function(f){var H,v,t,M;return(f==null?0:(H=f.thumbnails)==null?0:(v=H[0])==null?0:v.url)?_.Co((t=f.thumbnails)==null?void 0:(M=t[0])==null?void 0:M.url):void 0};
_.R.a11yVotedText=function(f,H){var v,t,M=((v=this.data)==null?void 0:(t=v.correctVotedText)==null?void 0:t.simpleText)||"",h,y;v=((h=this.data)==null?void 0:(y=h.votedText)==null?void 0:y.simpleText)||"";if(!H)return"";var m,W;if((m=this.data)==null?0:(W=m.choices)==null?0:W[f].isCorrect)return M;var I,S;return((I=this.data)==null?0:(S=I.choices)==null?0:S[f].isSelected)?v:""};
_.R.getEndpoint=function(f,H){return H===f?this.data.choices[f].deselectServiceEndpoint||null:this.data.choices[f].selectServiceEndpoint||null};
_.R.sendVoteAction=function(f,H){if(f=this.getEndpoint(f,H))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(f)};
_.R.selectChoice=function(f){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var H=0;H<this.data.choices.length;H++)this.set("data.choices."+H+".isSelected",f===this.selectedItemIndex?!1:H===f);this.selectedItemIndex=this.selectedItemIndex===f?-1:f};
_.R.maybeInitializeQuizLotties=function(f){var H=this;this.isDarkTheme&&(this.baseCorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_DarkTheme_01a.json",this.baseIncorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_DarkTheme_01a.json");this.correctnessAnimationProps=f.map(function(v){return{animationConfig:v.isCorrect?H.baseCorrectLottiePlayerAnimationConfig:H.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){H.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(v){return v.animationRef||{}})};
_.R.fadeIn=function(f){f.classList.add("fade-in");_.OR(_.nN,function(){f.classList.remove("fade-in")},900)};
_.H7.Object.defineProperties(c5.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.J("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.fG(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 f,H;return((f=this.data)==null?void 0:(H=f.choices)==null?void 0:H.some(function(v){return v.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null||!f.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?mM9:this.data.choices[this.selectedItemIndex].explanation||mM9}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null||!f.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
c5.prototype.onYtServiceRequestCompleted=c5.prototype.onYtServiceRequestCompleted;c5.prototype.onYtServiceRequestSent=c5.prototype.onYtServiceRequestSent;c5.prototype.onYtCommentPollRevert=c5.prototype.onYtCommentPollRevert;c5.prototype.dataChanged=c5.prototype.dataChanged;c5.prototype.onExplanationChanged=c5.prototype.onExplanationChanged;_.E([_.B(_.N_),_.N("design:type",Object)],c5.prototype,"paperItemBehavior",void 0);
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],c5.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],c5.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.Hp.YtTaskEmitterBehavior),_.N("design:type",Object)],c5.prototype,"ytTaskEmitterBehavior",void 0);_.E([_.B(_.fm),_.N("design:type",Object)],c5.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],c5.prototype,"data",void 0);
_.E([_.F(),_.N("design:type",Object)],c5.prototype,"isLoading",void 0);_.E([_.F(),_.N("design:type",Object)],c5.prototype,"usesPanelLockup",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.N("design:type",Boolean)],c5.prototype,"isChannelOwner",void 0);_.E([_.F({computed:"computeIsTotalVotesDisabled(data)"}),_.N("design:type",Boolean)],c5.prototype,"isTotalVotesDisabled",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.N("design:type",Boolean)],c5.prototype,"isImageQuiz",void 0);_.E([_.F(),_.N("design:type",Object)],c5.prototype,"previousQuizInfo",void 0);_.E([_.F(),_.N("design:type",Object)],c5.prototype,"selectedItemIndex",void 0);_.E([_.F({reflectToAttribute:!0}),_.z("data","usesPanelLockup"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],c5.prototype,"shouldUseModernUi",null);
_.E([_.UE(".fade-container"),_.N("design:type",Object)],c5.prototype,"fadeContainers",void 0);_.E([_.F(),_.N("design:type",Array)],c5.prototype,"correctnessAnimationProps",void 0);_.E([_.z("explanation","showCorrectAnswer"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],c5.prototype,"showExplanation",null);_.E([_.z("isChannelOwner","isAttempted"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],c5.prototype,"showCorrectAnswer",null);
_.E([_.z("isChannelOwner","isAttempted","data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],c5.prototype,"isQuizAnsweringDisabled",null);_.E([_.z("isQuizAnsweringDisabled"),_.N("design:type",Object),_.N("design:paramtypes",[])],c5.prototype,"endpointStyle",null);_.E([_.z("data","selectedItemIndex"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],c5.prototype,"isAttempted",null);
_.E([_.z("data","selectedItemIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],c5.prototype,"explanation",null);_.E([_.z("data","selectedItemIndex"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],c5.prototype,"isCorrect",null);_.E([_.lJ("ytd-expander"),_.N("design:type",Object)],c5.prototype,"expander",void 0);_.E([_.lJ("#quiz-votes"),_.N("design:type",Object)],c5.prototype,"quizVotes",void 0);
_.E([_.Zw("explanation"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],c5.prototype,"onExplanationChanged",null);_.E([_.Zw("data","isChannelOwner"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],c5.prototype,"dataChanged",null);_.E([_.sE("yt-comment-quiz-revert"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],c5.prototype,"onYtCommentPollRevert",null);
_.E([_.sE("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.ER]),_.N("design:returntype")],c5.prototype,"onYtServiceRequestSent",null);_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],c5.prototype,"onYtServiceRequestCompleted",null);_.E([_.u({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],c5);
_.G(c5,"ytd-backstage-quiz-renderer",function(){if(yLh!==void 0)return yLh;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return yLh=f},{mode:1});var $MH;var XF=function(){return _.K.apply(this,arguments)||this};
_.e(XF,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],XF.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],XF.prototype,"data",void 0);_.E([_.u({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],XF);
_.G(XF,"ytd-post-uploaded-video-renderer",function(){if($MH!==void 0)return $MH;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return $MH=f},{mode:1});var WCh;var A3=function(){return _.K.apply(this,arguments)||this};
_.e(A3,_.K);A3.prototype.useFilledIcons=function(f){return f==="SPONSORSHIP_STAR"};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],A3.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],A3.prototype,"data",void 0);_.E([_.u({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],A3);
var OJg=_.$6()(A3,"ytd-sponsors-only-badge-renderer",function(){if(WCh===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);WCh=f}f=WCh;return f},{allowedProps:["data"],
mode:1});var gho;var b5=function(){return _.K.apply(this,arguments)||this};
_.e(b5,_.K);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],b5.prototype,"componentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],b5.prototype,"data",void 0);_.E([_.u({is:"ytd-child-video-renderer",disableElementRegistration:!0})],b5);
_.G(b5,"ytd-child-video-renderer",function(){if(gho!==void 0)return gho;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return gho=f},{mode:1});var IJv;var Syh;var i5=function(){var f=_.K.apply(this,arguments)||this;f.size=0;f.enableWebModernCollectionsV2=_.J("web_modern_collections_v2");f.fallbackImageSize={height:void 0,width:9999};f.webModernCollections=!1;return f};
_.e(i5,_.K);_.R=i5.prototype;_.R.computeBlurredImageSize=function(f){return f?{height:f*2,width:f*2}:this.fallbackImageSize};
_.R.computeImageSize=function(f){return f?{height:f,width:f}:this.fallbackImageSize};
_.R.computeObjectFit=function(f){return f?"FILL":"CONTAIN"};
_.R.computePreserve=function(f){return f?!0:!1};
_.R.setBackground=function(){var f,H;_.J("web_modern_collections_v2")&&((f=this.data)==null?0:(H=f.thumbnail)==null?0:H.sampledThumbnailColor)&&(f=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+f.red+","+f.green+","+f.blue+",1)")};
i5.prototype.setBackground=i5.prototype.setBackground;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],i5.prototype,"ytRendererBehavior",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],i5.prototype,"watchFeedThumbnail",void 0);_.E([_.F(),_.N("design:type",Object)],i5.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],i5.prototype,"size",void 0);
_.E([_.F({computed:"computeBlurredImageSize(size)"}),_.N("design:type",Object)],i5.prototype,"blurredImageSize",void 0);_.E([_.F({computed:"computeImageSize(size)"}),_.N("design:type",Object)],i5.prototype,"imageSize",void 0);_.E([_.F({computed:"computePreserve(size)"}),_.N("design:type",String)],i5.prototype,"preserve",void 0);_.E([_.F({computed:"computeObjectFit(size)"}),_.N("design:type",String)],i5.prototype,"objectFit",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],i5.prototype,"enableWebModernCollectionsV2",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],i5.prototype,"webModernCollections",void 0);_.E([_.Zw("data.thumbnail.sampledThumbnailColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],i5.prototype,"setBackground",null);_.E([_.u({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],i5);
_.G(i5,"ytd-playlist-custom-thumbnail-renderer",function(){if(Syh!==void 0)return Syh;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Syh=f},{mode:1});var dMr;var k8=function(){return _.K.apply(this,arguments)||this};
_.e(k8,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],k8.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],k8.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Number)],k8.prototype,"width",void 0);_.E([_.u({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],k8);
_.G(k8,"ytd-playlist-video-thumbnail-renderer",function(){if(dMr!==void 0)return dMr;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return dMr=f},{mode:1});var jx_;var TQ=function(){return _.K.apply(this,arguments)||this};
_.e(TQ,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],TQ.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],TQ.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Number)],TQ.prototype,"width",void 0);_.E([_.u({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],TQ);
_.G(TQ,"ytd-show-custom-thumbnail-renderer",function(){if(jx_!==void 0)return jx_;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return jx_=f},{mode:1});var sxh;var wY=function(){return _.K.apply(this,arguments)||this};
_.e(wY,_.K);wY.prototype.useFilledIcons=function(f){return f==="MUSIC"||f==="COURSE"};
wY.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=XE(this.overlayColor,"0.8");else if(this.overlayColor){var f=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+f.red+","+f.green+","+f.blue+",0.8)"}};
_.H7.Object.defineProperties(wY.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)}}});
wY.prototype.overlayColorChanged=wY.prototype.overlayColorChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],wY.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],wY.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],wY.prototype,"overlayColor",void 0);_.E([_.F({reflectToAttribute:!0}),_.z("data.icon","data.text"),_.N("design:type",Object),_.N("design:paramtypes",[])],wY.prototype,"overlayStyle",null);
_.E([_.F({reflectToAttribute:!0}),_.z("data.icon","data.text"),_.N("design:type",Object),_.N("design:paramtypes",[])],wY.prototype,"overlayTextStyle",null);_.E([_.Zw("overlayColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wY.prototype,"overlayColorChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],wY);
_.G(wY,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(sxh!==void 0)return sxh;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return sxh=f},{mode:1});var ZJT;var q2=function(){var f=_.K.apply(this,arguments)||this;f.active=!1;return f};
_.e(q2,_.K);q2.prototype.computeIsSpinnerHidden=function(f){return(f==null?void 0:f.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
q2.prototype.computeOverlayIcon=function(f){return(f==null?void 0:f.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(f==null?void 0:f.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],q2.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],q2.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],q2.prototype,"active",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],q2);
_.G(q2,"ytd-thumbnail-overlay-downloading-renderer",function(){if(ZJT!==void 0)return ZJT;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return ZJT=f},{mode:1});var JLb;var f5=function(){return _.K.apply(this,arguments)||this};
_.e(f5,_.K);_.H7.Object.defineProperties(f5.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],f5.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],f5.prototype,"data",void 0);_.E([_.z("data.text"),_.N("design:type",Object),_.N("design:paramtypes",[])],f5.prototype,"text",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],f5);
_.G(f5,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(JLb!==void 0)return JLb;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return JLb=f},{mode:1});var lJg,UMb=function(){if(lJg!==void 0)return lJg;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return lJg=f};var Hi=function(){return _.K.apply(this,arguments)||this};
_.e(Hi,_.K);_.H7.Object.defineProperties(Hi,{template:{configurable:!0,enumerable:!0,get:function(){return UMb()}}});
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Hi.prototype,"animateEqualizer",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],Hi);_.$6()(Hi,"ytd-thumbnail-overlay-equalizer",function(){return UMb()},{allowedProps:["animateEqualizer"],
mode:1});var en9;var vi=function(){var f=_.K.apply(this,arguments)||this;f.nowPlayingBadge=_.J("web_now_playing_badge");f.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return f};
_.e(vi,_.K);vi.prototype.activeChanged=function(){var f=this;_.J("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.qV(this,function(){_.YE(f.hostElement,"yt-playlist-lockup-now-playing-active",f)})};
vi.prototype.onMiniplayerPlayStateChanged=function(f){var H,v=(H=_.U(_.S0().currentEndpoint,_.wI))==null?void 0:H.videoId;this.isVideoPlaying=f&&(_.J("web_limit_now_playing_animation_killswitch")||this.videoId===v)};
vi.prototype.activeChanged=vi.prototype.activeChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],vi.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],vi.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],vi.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Boolean)],vi.prototype,"isVideoPlaying",void 0);_.E([_.F(),_.N("design:type",String)],vi.prototype,"videoId",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],vi.prototype,"equalizerOnly",void 0);_.E([_.F(),_.N("design:type",Boolean)],vi.prototype,"isActive",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],vi.prototype,"nowPlayingBadge",void 0);_.E([_.Zw("isActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vi.prototype,"activeChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],vi);
_.G(vi,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(en9!==void 0)return en9;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return en9=f},{mode:1});var LCb;var tz=function(){return _.K.apply(this,arguments)||this};
_.e(tz,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],tz.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],tz.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],tz);
_.G(tz,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(LCb!==void 0)return LCb;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return LCb=f},{mode:_.WK("kevlar_poly_si_batch_j025")?1:2});var xMv;var Mv=function(){return _.K.apply(this,arguments)||this};
_.e(Mv,_.K);Mv.prototype.onDurationChanged=function(){var f,H;_.mF(this.hostElement).querySelector("#progress").style.width=((H=(f=this.data)==null?void 0:f.percentDurationWatched)!=null?H:0)+"%"};
Mv.prototype.onDurationChanged=Mv.prototype.onDurationChanged;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Mv.prototype,"componentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Mv.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Mv.prototype,"isLive",void 0);_.E([_.Zw("data.percentDurationWatched"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Mv.prototype,"onDurationChanged",null);
_.E([_.u({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],Mv);
_.G(Mv,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(xMv!==void 0)return xMv;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return xMv=f},{mode:1});var Bng;var hz=function(){var f=_.K.apply(this,arguments)||this;f.bottomPanel=!1;f.richGridOverlay=!1;f.watchFeedOverlay=!1;f.isCompact=!1;return f};
_.e(hz,_.K);hz.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.H7.Object.defineProperties(hz.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var f,H;return((f=this.data)==null?void 0:(H=f.icon)==null?void 0:H.iconType)==="PLAY_ALL"&&_.J("kevlar_system_icons")}}});
hz.prototype.widthChanged=hz.prototype.widthChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],hz.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],hz.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Number)],hz.prototype,"width",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],hz.prototype,"bottomPanel",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],hz.prototype,"richGridOverlay",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],hz.prototype,"watchFeedOverlay",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],hz.prototype,"isCompact",void 0);_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],hz.prototype,"isIconFilled",null);_.E([_.Zw("width","watchFeedOverlay"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hz.prototype,"widthChanged",null);
_.E([_.u({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],hz);
_.G(hz,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(Bng!==void 0)return Bng;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Bng=f},{mode:1});var znr;var FCT=["CLIP","SHORTS"],RY=function(){var f=_.K.apply(this,arguments)||this;f.animated=_.J("animated_live_badge_icon");f.hasIcon=!1;f.updateTimerIntervalId=0;f.timeSinceLive=0;return f};
_.e(RY,_.K);_.R=RY.prototype;_.R.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.R.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.R.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.R.hasIconOrText=function(){var f,H;return!!(((f=this.data)==null?0:f.icon)||((H=this.data)==null?0:H.text))};
_.R.initializeLiveBadgeTimer=function(){var f=this,H,v=(H=this.liveBadgeData)==null?void 0:H.startTimestampSec;if(v&&this.canShowLiveBadgeTimer()){var t;H=Number((t=this.liveBadgeData)==null?void 0:t.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(v);this.updateTimerIntervalId=_.Wh(function(){f.canShowLiveBadgeTimer()?f.timeSinceLive++:(f.timeSinceLive=0,window.clearInterval(f.updateTimerIntervalId))},H)}else this.timeSinceLive=0};
_.R.canShowLiveBadgeTimer=function(){var f=Date.now(),H,v;return f<(Number((H=this.liveBadgeData)==null?void 0:H.endTimestampSec)-1)*1E3&&f>Number((v=this.liveBadgeData)==null?void 0:v.startTimestampSec)*1E3};
_.H7.Object.defineProperties(RY.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var f=this.data;var H=this.timeSinceLive;var v,t,M,h;a:{var y=f.style;if(y===void 0)y=17;else switch(y){case "LIVE":y=18;break a;default:y=17}}H={type:y,text:H?sjs({seconds:H}):_.fG(f.text),accessibilityText:(v=f.text)==null?void 0:(t=v.accessibility)==null?void 0:(M=t.accessibilityData)==null?void 0:M.label,icon:(h=f.icon)==null?void 0:h.iconType}}else H={};return H}},
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 f;return(f=this.data)==null?void 0:f.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 FCT.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
RY.prototype.initializeLiveBadgeTimer=RY.prototype.initializeLiveBadgeTimer;RY.prototype.dataChanged=RY.prototype.dataChanged;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],RY.prototype,"componentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],RY.prototype,"data",void 0);_.E([_.F({computed:"computeIcon_(data.icon)"}),_.N("design:type",String)],RY.prototype,"icon",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],RY.prototype,"animated",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.N("design:type",Boolean)],RY.prototype,"hideTimeStatus",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],RY.prototype,"hasIcon",void 0);_.E([_.F(),_.N("design:type",Object)],RY.prototype,"timeSinceLive",void 0);_.E([_.z("data","timeSinceLive"),_.N("design:type",Object),_.N("design:paramtypes",[])],RY.prototype,"badgeShapeData",null);
_.E([_.z("data","overlayType"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],RY.prototype,"hideBadgeShape",null);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RY.prototype,"dataChanged",null);_.E([_.F({reflectToAttribute:!0}),_.z("data.style"),_.N("design:type",Object),_.N("design:paramtypes",[])],RY.prototype,"overlayStyle",null);
_.E([_.z("data.liveBadgeData"),_.N("design:type",Object),_.N("design:paramtypes",[])],RY.prototype,"liveBadgeData",null);_.E([_.F({reflectToAttribute:!0}),_.z("data.type"),_.N("design:type",Object),_.N("design:paramtypes",[])],RY.prototype,"overlayType",null);_.E([_.z("overlayType","overlayStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],RY.prototype,"useFilledIcon",null);
_.E([_.xV("liveBadgeData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RY.prototype,"initializeLiveBadgeTimer",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],RY);
_.G(RY,"ytd-thumbnail-overlay-time-status-renderer",function(){if(znr!==void 0)return znr;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return znr=f},{mode:_.WK("kevlar_poly_si_batch_j035")?1:2});var rLb;var V5=function(){return _.K.apply(this,arguments)||this};
_.e(V5,_.K);V5.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"}}}}};
V5.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(f){if(this.hasPlaybackProgressBar)return{percentDurationWatched:f.percentDurationWatched}};
V5.prototype.computeHasPlaybackProgressBar=function(f){return!!f.percentDurationWatched&&f.percentDurationWatched>0};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],V5.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],V5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],V5.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.N("design:type",Boolean)],V5.prototype,"hasPlaybackProgressBar",void 0);
_.E([_.u({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],V5);
_.G(V5,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(rLb!==void 0)return rLb;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return rLb=f},{mode:1});var KCh;var DMh=_.a(function(f){var H=f.data;var v=f.children;var t=function(){return!!H().doubleStack},M=function(){return!!H().includeStackHeight};
return _.O("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!H().experimentEnabled}},_.O(_.g,{cond:H,
then:function(){var h={};return _.O(_.R8,null,_.O(_.g,{cond:M,then:function(){var y={};return _.O("div",{class:_.S2("collections-stack-wiz__spacer",(y["collections-stack-wiz__spacer--double-stack"]=t,y))})}}),_.O("div",{class:_.S2((h["collections-stack-wiz__relative-stack"]=M,h))},_.O(_.g,{cond:t,
then:function(){var y={};return _.O("div",{class:_.S2("collections-stack-wiz__collection-stack2",function(){return H().customClassName2ndStack},(y["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return H().enableResponsiveMode},y)),
style:_.ZE({"background-color":function(){return pg3(H())}})})}}),_.O("div",{class:_.S2("collections-stack-wiz__collection-stack1",function(){return H().customClassName1stStack},function(){return nhE(H().thumbnailSize?H().thumbnailSize:"medium")}),
style:_.ZE({"background-color":function(){return pg3(H())}})}),v))}}))},"W");_.yn(DMh,"yt-collections-stack",{props:{data:_.ki}});var y5=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};f.webModernCollections=!1;f.isSearch=!1;f.isDoubleStack=!1;f.thumbnailSize="medium";f.enableWebModernCollectionsV2=_.J("web_modern_collections_v2");return f};
_.e(y5,_.K);_.R=y5.prototype;
_.R.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]]"}}}}}};
_.R.getThumbnailDetails=function(f){if(f!=null&&f.thumbnailRenderer){var H=f.thumbnailRenderer,v;if((v=H.playlistVideoThumbnailRenderer)==null?0:v.thumbnail)return H.playlistVideoThumbnailRenderer.thumbnail;var t;if((t=H.playlistCustomThumbnailRenderer)==null?0:t.thumbnail)return H.playlistCustomThumbnailRenderer.thumbnail;f=f.thumbnailRenderer;var M;if((M=f.showCustomThumbnailRenderer)==null?0:M.thumbnail)return f.showCustomThumbnailRenderer.thumbnail}};
_.R.computeOverlayColor=function(f){var H,v;if((H=this.getThumbnailDetails(f))==null?0:(v=H.darkColorPalette)==null?0:v.section2Color)return this.getThumbnailDetails(f).darkColorPalette.section2Color;var t;return(t=this.getThumbnailDetails(f))==null?void 0:t.sampledThumbnailColor};
_.R.computeWebModernCollections=function(f){if(f==null||!f.thumbnailOverlays)return!1;f=_.V(f.thumbnailOverlays);for(var H=f.next();!H.done;H=f.next()){var v=void 0;if((v=H.value)==null?0:v.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.R.computeNavigationEndpoint=function(f){return wws(f==null?void 0:f.navigationEndpoint)};
_.H7.Object.defineProperties(y5.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var f=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:f==null?void 0:f.sampledThumbnailColor,vibrantColorPalette:f==null?void 0:f.vibrantColorPalette,darkColorPalette:f==null?void 0:f.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],y5.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],y5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(CQn),_.N("design:type",Object)],y5.prototype,"ytdThumbnailBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],y5.prototype,"componentBehavior",void 0);
_.E([_.F({value:!1}),_.N("design:type",Boolean)],y5.prototype,"watchFeedThumbnail",void 0);_.E([_.F(),_.N("design:type",Number)],y5.prototype,"customThumbnailSize",void 0);_.E([_.F({value:!0}),_.N("design:type",Boolean)],y5.prototype,"hideAria",void 0);_.E([_.F(),_.N("design:type",Object)],y5.prototype,"data",void 0);_.E([_.F({computed:"computeOverlayColor(data)"}),_.N("design:type",Object)],y5.prototype,"overlayColor",void 0);
_.E([_.F({computed:"computeWebModernCollections(data)"}),_.N("design:type",Object)],y5.prototype,"webModernCollections",void 0);_.E([_.F({computed:"computeNavigationEndpoint(data)"}),_.N("design:type",Object)],y5.prototype,"computedNavigationEndpoint",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],y5.prototype,"isSearch",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],y5.prototype,"isDoubleStack",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],y5.prototype,"thumbnailSize",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],y5.prototype,"enableWebModernCollectionsV2",void 0);_.E([_.z("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.N("design:type",Object),_.N("design:paramtypes",[])],y5.prototype,"collectionStack",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],y5);
_.G(y5,"ytd-playlist-thumbnail",function(){if(KCh!==void 0)return KCh;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return KCh=f},{mode:_.WK("kevlar_poly_si_batch_j025")?1:2});var ohH;var YD=function(){var f=_.K.apply(this,arguments)||this;f.noEndpoints=!1;f.amsterdamPostMvp=_.J("web_amsterdam_post_mvp_playlists");f.badges=[];f.transferState="TRANSFER_STATE_UNKNOWN";return f};
_.e(YD,_.K);_.R=YD.prototype;_.R.getMetadata=function(f){if(!f)return[];var H=[],v=f.shortViewCountText||f.viewCountText;v&&H.push(_.fG(v));f.publishedTimeText&&H.push(_.fG(f.publishedTimeText));f.upcomingEventData&&f.upcomingEventData.upcomingEventText&&H.push(_.x$(_.fG(f.upcomingEventData.upcomingEventText),Number(f.upcomingEventData.startTime)));return H};
_.R.observeDataForBylineSeparator=function(){this.data&&_.WB(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.R.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.NS(this.metadataColor)};
_.R.getSimpleString=function(f){return _.fG(f)};
_.R.isBylineHidden=function(f){return this.noByline||!((f==null?0:f.longBylineText)||(f==null?0:f.shortBylineText))};
_.R.isMetadataHidden=function(f){var H;return((H=this.getMetadata(f))==null?void 0:H.length)===0};
_.R.isBylineMetadataSeparatorHidden=function(f){return this.isMetadataHidden(f)||!this.shouldShowVideoInfo};
_.R.isLongByline=function(f,H){return H&&!(f==null||!f.longBylineText)};
_.H7.Object.defineProperties(YD.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var f;return this.amsterdamPostMvp&&!((f=this.data)==null||!f.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.J("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
YD.prototype.metadataColorChanged=YD.prototype.metadataColorChanged;YD.prototype.observeDataForBylineSeparator=YD.prototype.observeDataForBylineSeparator;_.E([_.B(_.um),_.N("design:type",Object)],YD.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],YD.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],YD.prototype,"noEndpoints",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],YD.prototype,"isSlimShort",void 0);
_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],YD.prototype,"radioMeta",void 0);_.E([_.F({selector:_.Qn}),_.N("design:type",Object)],YD.prototype,"isGridViewEnabled",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],YD.prototype,"richMeta",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],YD.prototype,"amsterdamPostMvp",void 0);_.E([_.F(),_.N("design:type",Boolean)],YD.prototype,"noByline",void 0);
_.E([_.F({computed:"isLongByline(data, radioMeta)"}),_.N("design:type",Boolean)],YD.prototype,"longByline",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],YD.prototype,"truncateMetadataLine",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],YD.prototype,"miniMode",void 0);_.E([_.F(),_.N("design:type",Number)],YD.prototype,"metadataColor",void 0);_.E([_.F(),_.N("design:type",Array)],YD.prototype,"badges",void 0);
_.E([_.F({selector:_.CY,selectorArgs:["data.videoId"]}),_.N("design:type",String)],YD.prototype,"transferState",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],YD.prototype,"isDownloading",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],YD.prototype,"typographyBump",void 0);_.E([_.lJ("#metadata-line"),_.N("design:type",HTMLElement)],YD.prototype,"metadataLine",void 0);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YD.prototype,"observeDataForBylineSeparator",null);_.E([_.Zw("metadataColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YD.prototype,"metadataColorChanged",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],YD.prototype,"shouldShowVideoInfo",null);
_.E([_.z("badges"),_.N("design:type",String),_.N("design:paramtypes",[])],YD.prototype,"inlineBadgeClass",null);_.E([_.z("longByline"),_.N("design:type",String),_.N("design:paramtypes",[])],YD.prototype,"longBylineClass",null);_.E([_.z("data","longByline"),_.N("design:type",Object),_.N("design:paramtypes",[])],YD.prototype,"bylineText",null);_.E([_.z("isGridViewEnabled","data"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],YD.prototype,"watchFeedBigThumbs",null);
_.E([_.u({is:"ytd-video-meta-block",disableElementRegistration:!0})],YD);
_.G(YD,"ytd-video-meta-block",function(){if(ohH!==void 0)return ohH;var f=document.createElement("template");_.x(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return ohH=f},{mode:_.WK("kevlar_poly_si_batch_j080")?1:2});_.DE("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var ma=function(){var f=_.K.apply(this,arguments)||this;f.displayItemCount=2;f.isBackstagePlaylist=!1;f.isPostCompactPlaylist=!1;f.shouldShowChannelThumbnail=!1;f.useModernCollectionsV2=_.J("web_modern_collections_v2");return f};
_.e(ma,_.K);_.R=ma.prototype;_.R.computeFirstVideos=function(f,H){return f===void 0||H===void 0?[]:f.slice(0,H)};
_.R.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var f=this.data.thumbnailRenderer;f.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",f.playlistVideoThumbnailRenderer.thumbnail);f.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",f.playlistCustomThumbnailRenderer.thumbnail)}};
_.R.computeThumbnailHeight=function(f,H,v,t,M){return t?M==="BIG"?280:M==="MASSIVE"?337:234:v?240:H?72:f?118:138};
_.R.computeThumbnailWidth=function(f,H,v,t,M){return t?M==="MEDIUM"?450:M==="BIG"?500:M==="MASSIVE"?600:420:v?360:H?128:f?210:246};
_.R.computeUseBiggerThumbs=function(f){return f&&_.J("enable_desktop_search_bigger_thumbs")};
_.R.computeShouldShowChannelThumbnail=function(f,H){return f&&!(H==null||!H.channelThumbnail)};
_.H7.Object.defineProperties(ma.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
ma.prototype.dataChanged=ma.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ma.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.A_),_.N("design:type",Object)],ma.prototype,"ytdLockupBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],ma.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],ma.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],ma.prototype,"displayItemCount",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],ma.prototype,"isBackstagePlaylist",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],ma.prototype,"isPostCompactPlaylist",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],ma.prototype,"isSearch",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.N("design:type",Boolean)],ma.prototype,"useBiggerThumbs",void 0);_.E([_.F({reflectToAttribute:!0,value:function(){return _.yQ("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],ma.prototype,"biggerThumbsStyle",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],ma.prototype,"isDownloads",void 0);_.E([_.F({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.N("design:type",Object)],ma.prototype,"shouldShowChannelThumbnail",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],ma.prototype,"useModernCollectionsV2",void 0);
_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ma.prototype,"dataChanged",null);_.E([_.z("isSearch"),_.N("design:type",String),_.N("design:paramtypes",[])],ma.prototype,"stackThumbnailSize",null);_.E([_.u({is:"ytd-playlist-renderer",disableElementRegistration:!0})],ma);
_.G(ma,"ytd-playlist-renderer",function(){if(IJv===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);IJv=f}f=IJv;return f},{mode:1});var nhv;var pgn;var $D=function(){var f=_.K.apply(this,arguments)||this;f.collections=!!_.J("web_modern_collections_v2");f.startX=0;return f};
_.e($D,_.K);$D.prototype.onEndpointMouseDown=function(f){this.startX=f.clientX};
$D.prototype.onEndpointClick=function(f){this.startX!==f.clientX&&(f.preventDefault(),f.stopPropagation())};
$D.prototype.computeObjectFit=function(f){return f==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||f==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||f==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
$D.prototype.computeCardStyle=function(f){return f?f.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.H7.Object.defineProperties($D.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var f,H;return this.collections&&((f=this.data)==null?void 0:(H=f.searchRefinementCardRendererStyle)==null?void 0:H.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],$D.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],$D.prototype,"data",void 0);_.E([_.F({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.N("design:type",Number)],$D.prototype,"objectFit",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.N("design:type",String)],$D.prototype,"cardStyle",void 0);
_.E([_.F({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],$D.prototype,"roundContainer",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],$D.prototype,"collections",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],$D.prototype,"isAlbumCard",null);_.E([_.z("data","collections","isAlbumCard"),_.N("design:type",Object),_.N("design:paramtypes",[])],$D.prototype,"collectionStack",null);
_.E([_.u({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],$D);
_.G($D,"ytd-search-refinement-card-renderer",function(){if(pgn!==void 0)return pgn;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return pgn=f},{mode:1});var QxZ;var Wi=function(){var f=_.K.apply(this,arguments)||this;f.isRichGrid=!1;return f};
_.e(Wi,_.K);_.E([_.F(),_.N("design:type",Object)],Wi.prototype,"data",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Wi.prototype,"componentBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],Wi.prototype,"ytdReduxBehavior",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Wi.prototype,"isRichGrid",void 0);_.E([_.F({reflectToAttribute:!0,selector:_.Qq}),_.N("design:type",Boolean)],Wi.prototype,"miniMode",void 0);
_.E([_.u({is:"ytd-game-details-renderer",disableElementRegistration:!0})],Wi);
_.G(Wi,"ytd-game-details-renderer",function(){if(QxZ!==void 0)return QxZ;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return QxZ=f},{mode:1});var uVh;var aJb;var Oi=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return f};
_.e(Oi,_.K);_.R=Oi.prototype;_.R.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.R.currentStateData=function(f){var H=f||this.data;return H&&H.states&&H.currentStateId!=null?H.states.find(function(v){return v.stateId===H.currentStateId})||null:null};
_.R.currentStateRendererData=function(f){return(f=this.currentStateData(f))&&f.state&&f.state.buttonRenderer?f.state.buttonRenderer:null};
_.R.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())};
_.R.computeButtonIcon=function(f){f=this.currentStateRendererData(f);var H;return(f==null?0:(H=f.icon)==null?0:H.iconType)?f.icon.iconType.toLowerCase():null};
_.R.computeAccessibility=function(f){return(f=this.currentStateRendererData(f))&&f.accessibilityData?f.accessibilityData.accessibilityData||null:null};
_.R.computeButtonClass=function(f){var H=this.currentStateRendererData(f);if(!H)return"";f="";var v=H.style;v&&(f+=v.toLowerCase().replace(/_/g,"-")+" ");(H=H.size)&&(f+=H.toLowerCase().replace(/_/g,"-")+" ");return f.trim()};
_.R.computeServiceEndpoint=function(f){if(!f)return null;var H=f&&f.serviceEndpoint,v=this.get("command.commandMetadata.webCommandMetadata.sendPost",f);return H?H:v&&f.command?f.command:null};
_.R.computeBellMenuItemParams=function(f){var H;f=(H=_.U(f==null?void 0:f.command,_.Ir))==null?void 0:H.commands;if(!f||f.length===0)return null;H=_.U(f[0],_.Up);var v,t;return(H==null?0:(v=H.popup)==null?0:(t=v.menuPopupRenderer)==null?0:t.items)?H.popup.menuPopupRenderer.items.map(function(M){return M.menuServiceItemRenderer.trackingParams}):null};
_.R.handleBellMenuOpenSelectedAction=function(f){var H=f.trackingParams,v=this.computeBellMenuItemParams(this.data);this.data&&H&&v&&v.includes(H)&&this.ytRenderButtonBehavior._setButtonIcon(f.icon.iconType.toLowerCase())};
_.R.onYtServiceRequestCompleted=function(f,H){(f=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",H))&&this.set("data",f)};
_.R.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.R.resetState=function(){this.set("data.currentStateId",3)};
_.R.onYtButtonTapHandler=function(){if(this.data){var f=this.currentStateRendererData(this.data);f&&this.ytRendererBehavior.logExplicitClick(f)}};
Oi.prototype.onYtServiceRequestError=Oi.prototype.onYtServiceRequestError;Oi.prototype.onYtServiceRequestCompleted=Oi.prototype.onYtServiceRequestCompleted;Oi.prototype.stateChanged=Oi.prototype.stateChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Oi.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Oi.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.B(e3.YtRenderButtonBehavior),_.N("design:type",Object)],Oi.prototype,"ytRenderButtonBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Oi.prototype,"data",void 0);_.E([_.xV("data","data.currentStateId"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Oi.prototype,"stateChanged",null);
_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.TI]),_.N("design:returntype")],Oi.prototype,"onYtServiceRequestCompleted",null);_.E([_.sE("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Oi.prototype,"onYtServiceRequestError",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],Oi);
_.G(Oi,"ytd-subscription-notification-toggle-button-renderer",function(){if(aJb!==void 0)return aJb;var f=document.createElement("template");_.x(f,"\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");f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return aJb=f},{mode:1});var PGC;var gq=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};f.tapHandler=function(){if(f.data){var H=f.currentStateRendererData();H&&f.ytRendererBehavior.logExplicitClick(H)}};
return f};
_.e(gq,_.K);_.R=gq.prototype;_.R.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.R.currentStateData=function(){var f=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(H){return H.stateId===f.data.currentStateId})||null:null};
_.R.currentStateRendererData=function(){var f=this.currentStateData();return f&&f.state&&f.state.buttonRenderer?f.state.buttonRenderer:null};
_.R.computeAccessibilityLabel=function(){var f,H,v;return(f=this.currentStateRendererData())==null?void 0:(H=f.accessibilityData)==null?void 0:(v=H.accessibilityData)==null?void 0:v.label};
_.R.computeBellMenuItemParams=function(){var f,H,v=(H=_.U((f=this.data)==null?void 0:f.command,_.Ir))==null?void 0:H.commands;if(!v||v.length===0)return null;f=_.U(v[0],_.Up);var t,M;return(f==null?0:(t=f.popup)==null?0:(M=t.menuPopupRenderer)==null?0:M.items)?f.popup.menuPopupRenderer.items.map(function(h){return h.menuServiceItemRenderer.trackingParams}):null};
_.R.handleBellMenuOpenSelectedAction=function(f){var H=f.trackingParams,v=this.computeBellMenuItemParams();if(this.data&&H&&v&&v.includes(H)&&(f==null||!f.isDisabled)){var t;((t=_.U(f.serviceEndpoint,_.dj))==null?void 0:t.signal)!=="CLIENT_SIGNAL"&&(this.icon=f.icon.iconType)}};
_.R.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.R.onYtServiceRequestCompleted=function(f,H){if(f=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",H))this.icon=void 0,this.set("data",f)};
_.R.onYtServiceRequestError=function(){this.icon=void 0};
_.H7.Object.defineProperties(gq.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var f=this.data,H=this.textLabel,v=this.hostElement,t=this.computeAccessibilityLabel(),M=this.tapHandler,h=this.isOverlay?"overlay":"mono",y=(f==null?0:f.disableButton)?"disabled":"active";H=H?_.Qz(H):void 0;return{style:h,type:"tonal",state:y,size:"M",focused:!1,formattedButtonText:H,iconPosition:"leading-trailing",onTap:uVB(f,M,v),accessibilityLabel:t}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var f=this.currentStateRendererData(),H,v,t=(v=this.icon)!=null?v:f==null?void 0:(H=f.icon)==null?void 0:H.iconType;if(t)return _.SW(t)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var f,H,v=(f=this.data)==null?void 0:(H=f.secondaryIcon)==null?void 0:H.iconType;if(v)return _.SW(v)}}});
gq.prototype.onYtServiceRequestError=gq.prototype.onYtServiceRequestError;gq.prototype.onYtServiceRequestCompleted=gq.prototype.onYtServiceRequestCompleted;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],gq.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],gq.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],gq.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],gq.prototype,"textLabel",void 0);
_.E([_.F(),_.N("design:type",String)],gq.prototype,"icon",void 0);_.E([_.F(),_.N("design:type",Boolean)],gq.prototype,"isOverlay",void 0);_.E([_.z("data.*","textLabel"),_.N("design:type",Object),_.N("design:paramtypes",[])],gq.prototype,"computedButtonShape",null);_.E([_.z("data.*","icon"),_.N("design:type",Object),_.N("design:paramtypes",[])],gq.prototype,"computedIcon",null);_.E([_.z("computedIcon"),_.N("design:type",Object),_.N("design:paramtypes",[])],gq.prototype,"computedAnimateIcon",null);
_.E([_.z("data.*"),_.N("design:type",Object),_.N("design:paramtypes",[])],gq.prototype,"computedSecondaryIcon",null);_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.TI]),_.N("design:returntype")],gq.prototype,"onYtServiceRequestCompleted",null);_.E([_.sE("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],gq.prototype,"onYtServiceRequestError",null);
_.E([_.u({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],gq);
_.G(gq,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(PGC!==void 0)return PGC;var f=document.createElement("template");_.x(f,'\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 PGC=f},{mode:_.WK("kevlar_poly_si_batch_j081")?1:2});var G4_;_.yn(GYh,"yt-animated-action",{props:{backgroundLottieRef:_.ki,foregroundLottieRef:_.ki,wrapperClass:_.ki,disableAnimation:_.ki},unsafeExternallySettableAttributes:new Set(["key"])});var IY=function(){var f=_.K.apply(this,arguments)||this;f.animatedActionEnabled=_.J("web_animated_actions");f.foregroundLottieRef={};f.backgroundLottieRef={};f.forceIconOnly=!1;f.showTextWhileAnimating=!1;f.keyboardFocused=!1;f.isAnimating=!1;f.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return f};
_.e(IY,_.K);_.R=IY.prototype;_.R.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.R.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]]"}}}}}};
_.R.attached=function(){this.keyboardFocused=!1};
_.R.onYtServiceRequestSent=function(f,H){(this.get("endpoint.subscribeEndpoint",H)||this.get("endpoint.unsubscribeEndpoint",H))&&this.updateSubscriptionState(!this.subscribed)};
_.R.onYtServiceRequestCompleted=function(f,H){(f=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",H.data))&&this.bellButton&&(this.bellButton.data=f)};
_.R.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.Sr(this.hostElement)};
_.R.onPlayerSubscribe=function(f){this.isCompactRed()||f!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.R.onPlayerUnsubscribe=function(f){this.isCompactRed()||f!==this.data.channelId||this.updateSubscriptionState(!1)};
_.R.handleUpdateSubscribeButtonAction=function(f){f=_.U(f,wUZ);var H;f&&f.channelId===((H=this.data)==null?void 0:H.channelId)&&this.updateSubscriptionState(!!f.subscribed)};
_.R.computeButtonStyle=function(f){return this.get("style.styleType",f)||null};
_.R.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.R.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.R.updateSubscriptionState=function(f){if(f!==this.subscribed){this.set("data.subscribed",f);var H,v=(H=this.data)==null?void 0:H.subscribedEntityKey;v&&this.ytdReduxBehavior.dispatch(_.lF("subscriptionStateEntity",v,{key:v,subscribed:f}));this.isCompactRed()||_.YE(this.hostElement,"yt-subscription-changed",f);f||(_.mb(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!f),f&&this.hasBellButton&&this.startAnimation())}};
_.R.startAnimation=function(){var f=this;if(!this.isAnimating){var H=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var v;(v=this.backgroundLottieRef.lottieEl)==null||v.goToAndPlay(0);var t;(t=this.foregroundLottieRef.lottieEl)==null||t.goToAndPlay(0);_.nN.addJob(function(){f.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.nN.addJob(function(){f.updateContainerToFitContent(!!f.subscribed,!0)},2,1500);
_.nN.addJob(function(){f.isAnimating=!1},2,H)}};
_.R.maybeAnimateBellIcon=function(){var f=_.$V(this.hostElement).querySelector("yt-animated-icon");if(f){var H;(H=f.animationRef.lottieEl)==null||H.goToAndPlay(0)}};
_.R.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.R.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.R.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var f;this.unsubscribedWidth=(f=this.subscribeButtonShape)==null?void 0:f.getBoundingClientRect().width}var H;this.subscribedWidth=(H=this.bellButton)==null?void 0:H.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.R.updateContainerToFitContent=function(f,H){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(f?(f=this.subscribedWidth,H=this.isAnimating&&!H,this.subscribedIconOnlyWidth===void 0||H||(f=this.subscribedIconOnlyWidth),this.hostElement.style.width=f+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.R.clearContainerSize=function(){this.hostElement.style.width=""};
_.R.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.R.maybeSetSubscribedButtonIconOnlyWidth=function(){var f=this;this.forceIconOnly&&this.showTextWhileAnimating&&this.subscribedIconOnlyWidth===void 0&&(this.subscribedIconOnlyWidth=0,this.subscribed?this.subscribedIconOnlyWidth=this.subscribedWidth:(this.bellButton&&(this.bellButton.textLabel=void 0),requestAnimationFrame(function(){var H;f.subscribedIconOnlyWidth=(H=f.bellButton)==null?void 0:H.getBoundingClientRect().width;requestAnimationFrame(function(){if(f.bellButton){var v;f.bellButton.textLabel=
(v=f.data)==null?void 0:v.subscribedButtonText}})})))};
_.H7.Object.defineProperties(IY.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 f;return(f=this.data)==null?void 0:f.subscribedButtonText}var H;return this.forceIconOnly?void 0:(H=this.data)==null?void 0:H.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var f,H,v=((f=this.data)==null?void 0:(H=f.timedAnimationData)==null?void 0:H.animationTiming)||[];return{uniqueId:"subscribe",timings:v,enabled:v.length>0&&!this.subscribed,experimentEnabled:v.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var f;return!this.subscribed&&((f=this.data)==null?void 0:f.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 f={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var H=f.renderer;var v=f.element;var t=f.subscribed;var M=f.commandController;var h=f.isOverlay;f=f.stopPropagation;var y=CGb(H,t);h&&(y.style="overlay");h=Object;var m=h.assign,W;a:switch((W=H.style)==null?void 0:W.styleType){case "COMPACT_GRAY":case "COMPACT_RED":W={size:"S"};break a;default:W={size:"M"}}var I=G4s(H,
t);var S=(S=t?H.subscribedButtonText:H.unsubscribedButtonText)?_.Qz(S):void 0;return m.call(h,{},y,W,{focused:!1,toggled:t,accessibilityLabel:I,formattedButtonText:S,onTap:PGH(H,t,v,M,f)})}}}});
IY.prototype.onMouseDown=IY.prototype.onMouseDown;IY.prototype.onDataChanged=IY.prototype.onDataChanged;IY.prototype.observedSubscribed=IY.prototype.observedSubscribed;IY.prototype.onYtServiceRequestCompleted=IY.prototype.onYtServiceRequestCompleted;IY.prototype.onYtServiceRequestSent=IY.prototype.onYtServiceRequestSent;IY.prototype.maybeUpdateBellButtonText=IY.prototype.maybeUpdateBellButtonText;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],IY.prototype,"ytComponentBehavior",void 0);
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],IY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],IY.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],IY.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],IY.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],IY.prototype,"data",void 0);
_.E([_.F({selectorArgs:["data.subscribedEntityKey"],selector:Gze}),_.N("design:type",Object)],IY.prototype,"subscriptionStateEntity",void 0);_.E([_.F({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.N("design:type",Boolean)],IY.prototype,"subscribed",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],IY.prototype,"branded",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],IY.prototype,"animatedActionEnabled",void 0);
_.E([_.F(),_.N("design:type",Object)],IY.prototype,"foregroundLottieRef",void 0);_.E([_.F(),_.N("design:type",Object)],IY.prototype,"backgroundLottieRef",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],IY.prototype,"overlayButton",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.N("design:type",Object)],IY.prototype,"buttonStyle",void 0);_.E([_.F(),_.N("design:type",Object)],IY.prototype,"forceIconOnly",void 0);
_.E([_.F(),_.N("design:type",Object)],IY.prototype,"showTextWhileAnimating",void 0);_.E([_.F({value:function(){return!!_.t8().resolve(_.vh(_.RM))&&_.J("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.N("design:type",Boolean)],IY.prototype,"useKeyboardFocused",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],IY.prototype,"keyboardFocused",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],IY.prototype,"isAnimating",void 0);_.E([_.z("data.notificationPreferenceButton.*"),_.N("design:type",Object),_.N("design:paramtypes",[])],IY.prototype,"hasBellButton",null);
_.E([_.Zw("subscribedButtonText"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IY.prototype,"maybeUpdateBellButtonText",null);_.E([_.z("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.N("design:type",Object),_.N("design:paramtypes",[])],IY.prototype,"subscribedButtonText",null);_.E([_.z("data.timedAnimationData.animationTiming","subscribed"),_.N("design:type",Object),_.N("design:paramtypes",[])],IY.prototype,"smartimationSettings",null);
_.E([_.F({reflectToAttribute:!0}),_.z("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.N("design:type",Object),_.N("design:paramtypes",[])],IY.prototype,"subscribeButtonHidden",null);_.E([_.F({reflectToAttribute:!0}),_.z("subscribed","hasBellButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],IY.prototype,"subscribeButtonInvisible",null);
_.E([_.F({reflectToAttribute:!0}),_.z("subscribed"),_.N("design:type",Object),_.N("design:paramtypes",[])],IY.prototype,"unsubscribeButtonHidden",null);_.E([_.lJ("ytd-subscription-notification-toggle-button-renderer-next"),_.N("design:type",Object)],IY.prototype,"bellButton",void 0);_.E([_.lJ("#subscribe-button-shape"),_.N("design:type",HTMLElement)],IY.prototype,"subscribeButtonShape",void 0);
_.E([_.z("overlayButton","subscribed","data"),_.N("design:type",Object),_.N("design:paramtypes",[])],IY.prototype,"buttonShape",null);_.E([_.sE("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.ER]),_.N("design:returntype")],IY.prototype,"onYtServiceRequestSent",null);_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.TI]),_.N("design:returntype")],IY.prototype,"onYtServiceRequestCompleted",null);
_.E([_.Zw("subscribed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IY.prototype,"observedSubscribed",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IY.prototype,"onDataChanged",null);_.E([_.sE("mousedown"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],IY.prototype,"onMouseDown",null);
_.E([_.u({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],IY);
_.G(IY,"ytd-subscribe-button-renderer",function(){if(G4_!==void 0)return G4_;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return G4_=f},{mode:1});var SY=function(){var f=_.K.apply(this,arguments)||this;f.isRichGrid=!1;return f};
_.e(SY,_.K);SY.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"}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],SY.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],SY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],SY.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],SY.prototype,"isRichGrid",void 0);_.E([_.u({is:"ytd-game-card-renderer",disableElementRegistration:!0})],SY);
_.G(SY,"ytd-game-card-renderer",function(){if(uVh!==void 0)return uVh;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return uVh=f},{mode:1});var dq={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.J("defer_menus")&&!Lrh?0:void 0,waitForSignal:"eocs"};var CGH;var EhZ;var jY=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return f};
_.e(jY,_.K);_.R=jY.prototype;_.R.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.R.onSeriesReminderStateEntityChange=function(){var f,H,v;((f=this.eventReminderStateEntity)==null?0:f.key)&&((H=this.seriesReminderStateEntity)==null?void 0:H.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((v=this.eventReminderStateEntity)==null?void 0:v.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.lF("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.R.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.R.onYtServiceRequestError=function(){var f;this.updateReminderStateEntitiesFromButtonState((f=this.data)==null?void 0:f.currentState)};
_.R.handleUpdateUpcomingEventReminderButtonStateCommand=function(f){if(f=_.U(f,l5v)){var H,v=(H=this.data)==null?void 0:H.targetId;v&&f.targetId===v&&_.bJ(this.updateReminderStateEntitiesFromButtonState.bind(this,f.state))}};
_.R.getButtonStateFromReminderState=function(){var f;if(((f=this.seriesReminderStateEntity)==null?void 0:f.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var H;if(((H=this.eventReminderStateEntity)==null?void 0:H.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var v,t;if(((v=this.seriesReminderStateEntity)==null?void 0:v.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((t=this.eventReminderStateEntity)==
null?void 0:t.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var M;return(M=this.data)==null?void 0:M.currentState};
_.R.updateReminderStateEntitiesFromButtonState=function(f){if(f){switch(f){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":f="UPCOMING_EVENT_REMINDER_STATE_NONE";var H="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":f="UPCOMING_EVENT_REMINDER_STATE_SINGLE";H="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":f="UPCOMING_EVENT_REMINDER_STATE_NONE";H="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var v;
((v=this.eventReminderStateEntity)==null?0:v.key)&&this.ytdReduxBehavior.dispatch(_.lF("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:f})));var t;((t=this.seriesReminderStateEntity)==null?0:t.key)&&this.ytdReduxBehavior.dispatch(_.lF("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:H})))}};
_.H7.Object.defineProperties(jY.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var f=this.getButtonStateFromReminderState(),H,v;if(f&&((H=this.data)==null?0:(v=H.states)==null?0:v.length))for(H=_.V(this.data.states),v=H.next();!v.done;v=H.next()){v=v.value;var t=void 0;if(((t=_.U(v,UBH))==null?void 0:t.state)===f)return _.U(v,UBH)}}}});
jY.prototype.onYtServiceRequestError=jY.prototype.onYtServiceRequestError;jY.prototype.onYtServiceRequestCompleted=jY.prototype.onYtServiceRequestCompleted;jY.prototype.onSeriesReminderStateEntityChange=jY.prototype.onSeriesReminderStateEntityChange;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],jY.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],jY.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],jY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],jY.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],jY.prototype,"data",void 0);_.E([_.F({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:EeN}),_.N("design:type",Object)],jY.prototype,"eventReminderStateEntity",void 0);
_.E([_.F({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(f,H){return _.dL(f.entities,"sportsSeriesReminderStateEntity",H)}}),
_.N("design:type",Object)],jY.prototype,"seriesReminderStateEntity",void 0);_.E([_.z("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],jY.prototype,"currentButtonStateRenderer",null);_.E([_.Zw("seriesReminderStateEntity"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jY.prototype,"onSeriesReminderStateEntityChange",null);
_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jY.prototype,"onYtServiceRequestCompleted",null);_.E([_.sE("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jY.prototype,"onYtServiceRequestError",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],jY);
_.G(jY,"ytd-upcoming-event-reminder-button-renderer",function(){if(EhZ!==void 0)return EhZ;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);
return EhZ=f},{mode:1});var Nn9;var si=function(){return _.K.apply(this,arguments)||this};
_.e(si,_.K);si.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.H7.Object.defineProperties(si.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(_.J("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],si.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],si.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],si.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],si.prototype,"shelfDismissal",void 0);_.E([_.z("data.responseText"),_.N("design:type",Object),_.N("design:paramtypes",[])],si.prototype,"text",null);
_.E([_.z("data.responseText"),_.N("design:type",Object),_.N("design:paramtypes",[])],si.prototype,"textAriaLabel",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],si);
_.G(si,"ytd-notification-multi-action-renderer",function(){if(Nn9!==void 0)return Nn9;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Nn9=f},{mode:1});var cLT;var Zj=function(){return _.K.apply(this,arguments)||this};
_.e(Zj,_.K);Zj.prototype.ready=function(){var f=this;_.mF(this.hostElement).querySelector("#undo").addEventListener("tap",function(){f.onUndoTap()})};
Zj.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.t8().resolve(_.MJ).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Zj.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Zj.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],Zj);
_.G(Zj,"ytd-notification-text-renderer",function(){if(cLT!==void 0)return cLT;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return cLT=f},{mode:1});var Xga;var Jz=function(){var f=_.K.apply(this,arguments)||this;f.mouseOverDelayJobId=0;f.fadeInImageDelayJobId=0;f.startTimeMs=-1;f.loadingStartTimeMs=-1;f.loadingEndTimeMs=-1;f.hasVideoPreview=!1;return f};
_.e(Jz,_.K);_.R=Jz.prototype;_.R.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.R.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.R.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.R.showThumbnail=function(){var f=this;this.csn=_.uy();_.ar("fmth");_.nN.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.OR(_.nN,function(){f.loadingStartTimeMs=(0,_.ta)();var H=_.mF(f.hostElement).querySelector("#thumbnail");H.complete?f.displayMouseOverImage():H.addEventListener("load",_.jr(f,f.displayMouseOverImage))},150):_.WB(_.mF(this.hostElement).querySelector("#play"),"show",!0)};
_.R.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.R.onTap=function(){this.removeVideoPreview()};
_.R.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var f=this.videoId,H=this.csn,v=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,t=this.startTimeMs,M=this.hasVideoPreview,h=_.zK(this.trackingParams),y={isMovingThumbnail:M};M&&t>0&&(v>0&&(y.movingThumbnailLoadingDurationMs=Math.round(v)),y.durationHoveredMs=Math.round((0,_.ta)()-t));f&&(y.videoId=f);_.wj(H,h,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:y});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.R.removeVideoPreview=function(){_.nN.cancelJob(this.mouseOverDelayJobId);_.nN.cancelJob(this.fadeInImageDelayJobId);var f=_.mF(this.hostElement).querySelector("#thumbnail");_.WB(f,"fade-in",!1);f.removeEventListener("load",_.jr(this,this.displayMouseOverImage));f=_.mF(this.hostElement).querySelector("#play");_.WB(f,"fade-in",!1);_.WB(f,"show",!1)};
_.R.displayMouseOverImage=function(){var f=_.mF(this.hostElement).querySelector("#thumbnail"),H=_.mF(this.hostElement).querySelector("#play");this.isImageAvailable(f)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.ta)(),this.startTimeMs=(0,_.ta)(),this.fadeInImageDelayJobId=_.OR(_.nN,function(){_.WB(f,"fade-in",!0)},50)):_.WB(H,"fade-in",!0)};
_.R.computeThumbnail=function(f,H){var v;f&&f.movingThumbnailDetails&&f.movingThumbnailDetails.thumbnails&&H?v=_.YK(f.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):v=H?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(v)return _.Co(v)};
_.R.isImageAvailable=function(f){return!(!f.src||f.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||f.naturalWidth===120)};
Jz.prototype.onTap=Jz.prototype.onTap;Jz.prototype.dataChanged=Jz.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Jz.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Jz.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Jz.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],Jz.prototype,"csn",void 0);_.E([_.F(),_.N("design:type",Object)],Jz.prototype,"trackingParams",void 0);
_.E([_.F(),_.N("design:type",String)],Jz.prototype,"videoId",void 0);_.E([_.F(),_.N("design:type",Boolean)],Jz.prototype,"isAttachedAndDataSet",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Jz.prototype,"dataChanged",null);_.E([_.sE("click"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Jz.prototype,"onTap",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],Jz);
_.G(Jz,"ytd-moving-thumbnail-renderer",function(){if(Xga!==void 0)return Xga;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Xga=f},{mode:1});var ALn;_.H1=function(f){this.hostElement=f;this.eventSink=null;this.eventList=[]};
_.H1.prototype.shouldForward=function(){var f,H;return(H=(f=this.eventSink)==null?void 0:f.isConnected)!=null?H:document.body.contains(this.eventSink)};
_.H1.prototype.start=function(f,H){this.eventSink&&this.stop();for(var v=0;v<f.length;v++)this.hostElement.addEventListener(f[v],_.jr(this,this.forwardEvent));var t;this.eventSink=(t=H.hostElement)!=null?t:H;this.eventList=f};
_.H1.prototype.stop=function(){for(var f=0;f<this.eventList.length;f++)this.hostElement.removeEventListener(this.eventList[f],_.jr(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.H1.prototype.forwardEvent=function(f,H){this.shouldForward()&&(f.stopPropagation(),this.eventSink instanceof Element?_.YE(this.eventSink,f.type,H):_.pb(new _.e$("eventSink is not an element")))};_.lv={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.H1(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(f,H){this.forwarder_.start(f,H)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var Ui=function(){return _.K.apply(this,arguments)||this};
_.e(Ui,_.K);_.R=Ui.prototype;_.R.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=_.a8("HTML_DIR")==="rtl"?"right":"left"};
_.R.dataChanged=function(){this.popupOpen=!1};
_.R.computeAriaLabel=function(f){return _.U(f,sHa).label};
_.R.onTap=function(f){f.stopPropagation();f.preventDefault();this.data.command&&_.t8().resolve(_.MJ).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.R.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.R.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
Ui.prototype.onPopupClosed=Ui.prototype.onPopupClosed;Ui.prototype.onPopupOpened=Ui.prototype.onPopupOpened;Ui.prototype.onTap=Ui.prototype.onTap;Ui.prototype.dataChanged=Ui.prototype.dataChanged;_.E([_.B(_.lv.YtEventForwardingBehavior),_.N("design:type",Object)],Ui.prototype,"eventForwardingBehavior",void 0);_.E([_.B(_.zA),_.N("design:type",Object)],Ui.prototype,"ironButtonState",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Ui.prototype,"componentBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],Ui.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,value:-1}),_.N("design:type",Number)],Ui.prototype,"tabindex",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.N("design:type",Object)],Ui.prototype,"ariaLabel",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],Ui.prototype,"disableTooltips",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ui.prototype,"popupOpen",void 0);
_.E([_.F(),_.N("design:type",Element)],Ui.prototype,"eventSink",void 0);_.E([_.lJ("#tooltip"),_.N("design:type",Object)],Ui.prototype,"tooltip",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ui.prototype,"dataChanged",null);_.E([_.sE("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ui.prototype,"onTap",null);
_.E([_.sE("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ui.prototype,"onPopupOpened",null);_.E([_.sE("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ui.prototype,"onPopupClosed",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],Ui);
_.G(Ui,"ytd-thumbnail-overlay-button-renderer",function(){if(ALn!==void 0)return ALn;var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return ALn=f},{mode:1});var bJM;var eY=function(){return _.K.apply(this,arguments)||this};
_.e(eY,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],eY.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],eY.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],eY.prototype,"disableAnimation",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],eY.prototype,"rounded",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],eY.prototype,"transparentBackground",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],eY.prototype,"noPadding",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],eY);
_.G(eY,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(bJM!==void 0)return bJM;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return bJM=f},{mode:1});var iJn;var L5=function(){return _.K.apply(this,arguments)||this};
_.e(L5,_.K);L5.prototype.computeIconPosition=function(f){return this.get("iconPosition",f)||null};
L5.prototype.computeIconStyle=function(f){return this.get("iconStyle",f)||null};
L5.prototype.computeIsIconStyleFilled=function(f){if(!f)return!1;var H;return f.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((H=f.icon)==null?void 0:H.iconType)==="ERROR_BLACK"};
_.E([_.F(),_.N("design:type",Object)],L5.prototype,"data",void 0);_.E([_.F({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.N("design:type",Object)],L5.prototype,"iconPosition",void 0);_.E([_.F({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.N("design:type",Object)],L5.prototype,"iconStyle",void 0);_.E([_.F({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],L5.prototype,"iconStyleFilled",void 0);
_.E([_.u({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],L5);
_.G(L5,"ytd-thumbnail-overlay-icon-renderer",function(){if(iJn!==void 0)return iJn;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return iJn=f},{mode:1});var k4g;var xD=function(){return _.K.apply(this,arguments)||this};
_.e(xD,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],xD.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],xD.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],xD);
_.G(xD,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(k4g!==void 0)return k4g;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return k4g=f},{mode:1});var TnT;var Bi=function(){var f=_.K.apply(this,arguments)||this;f.isPreviewLoading=!1;return f};
_.e(Bi,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Bi.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Bi.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Bi.prototype,"isPreviewLoading",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],Bi);
_.G(Bi,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(TnT!==void 0)return TnT;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return TnT=f},{mode:1});var wgZ;var z6=function(){return _.K.apply(this,arguments)||this};
_.e(z6,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],z6.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],z6.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],z6);
_.G(z6,"ytd-thumbnail-overlay-pinking-renderer",function(){if(wgZ!==void 0)return wgZ;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return wgZ=f},{mode:1});var qyM;var Fn=function(){var f=_.K.apply(this,arguments)||this;f.disableTooltips=!1;f.isLoading=!1;f.useExpandableTooltip=!1;f.toggled=!1;f.hovered=!1;f.mouseoverDelayJobId=0;f.toggleDelayJobId=0;f.expandAnimationDelayJobId=0;return f};
_.e(Fn,_.K);_.R=Fn.prototype;_.R.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");_.mF(this.hostElement).querySelector("#tooltip").position=_.a8("HTML_DIR")==="rtl"?"right":"left"};
_.R.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.nN.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.nN.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.nN.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.R.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.nN.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.nN.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.nN.cancelJob(this.expandAnimationDelayJobId)};
_.R.computeIcon=function(f,H,v){return(f=v?H:f)&&f.iconType?_.SW(f.iconType):void 0};
_.R.computeAriaLabel=function(f,H,v){return _.U(v?H:f,sHa).label};
_.R.computeTooltip=function(f,H,v){return v?H:f};
_.R.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.R.computeIconOnHover=function(f,H){if((f==null?0:f.iconType)&&!H)return _.SW(f.iconType)};
_.R.onTap=function(f){var H=this;f.stopPropagation();f.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(f=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(f),this.useExpandableTooltip&&(this.toggleDelayJobId=_.OR(_.nN,function(){H.hovered=!1;H.data&&!H.data.toggledServiceEndpoint&&(H.expandAnimationDelayJobId=_.OR(_.nN,function(){H.set("data.isToggled",
!1)},200))},2E3))};
_.R.onMouseenter=function(){var f=this;this.mouseoverDelayJobId=_.OR(_.nN,function(){f.hovered=!0},300)};
_.R.onMouseleave=function(){_.nN.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.R.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.R.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.R.onServiceRequestCompleted=function(f,H){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(H)||this.set("data.isToggled",!this.data.isToggled)};
_.R.serviceRequestWasSuccessful=function(f){return _.U(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.Kv)?f.data.status==="STATUS_SUCCEEDED":!0};
Fn.prototype.onServiceRequestCompleted=Fn.prototype.onServiceRequestCompleted;Fn.prototype.onPopupClosed=Fn.prototype.onPopupClosed;Fn.prototype.onPopupOpened=Fn.prototype.onPopupOpened;Fn.prototype.onMouseleave=Fn.prototype.onMouseleave;Fn.prototype.dataChanged=Fn.prototype.dataChanged;_.E([_.B(_.zA),_.N("design:type",Object)],Fn.prototype,"ironButtonState",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Fn.prototype,"ytComponentBehavior",void 0);
_.E([_.B(_.lv.YtEventForwardingBehavior),_.N("design:type",Object)],Fn.prototype,"ytEventForwardingBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Fn.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.N("design:type",Object)],Fn.prototype,"ariaLabel",void 0);_.E([_.F(),_.N("design:type",Object)],Fn.prototype,"disableTooltips",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Fn.prototype,"popupOpen",void 0);_.E([_.F(),_.N("design:type",Object)],Fn.prototype,"isLoading",void 0);_.E([_.F(),_.N("design:type",Element)],Fn.prototype,"eventSink",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Fn.prototype,"useExpandableTooltip",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.N("design:type",Object)],Fn.prototype,"toggled",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Fn.prototype,"hovered",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.N("design:type",Object)],Fn.prototype,"iconOnHover",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fn.prototype,"dataChanged",null);
_.E([_.sE("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fn.prototype,"onMouseleave",null);_.E([_.sE("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fn.prototype,"onPopupOpened",null);_.E([_.sE("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fn.prototype,"onPopupClosed",null);
_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.TI]),_.N("design:returntype")],Fn.prototype,"onServiceRequestCompleted",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],Fn);
_.G(Fn,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(qyM!==void 0)return qyM;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return qyM=f},{mode:_.WK("kevlar_poly_si_batch_j053")?1:2});var fo9;var Hxh=_.a(function(f){var H=f.data;var v=f.thumbnailSize;var t=function(){return H().enableSegmentView};
return _.O("yt-thumbnail-overlay-progress-bar-view-model",{class:_.S2("ytThumbnailOverlayProgressBarHost",function(){return EhT(v==null?void 0:v())})},_.O(_.g,{cond:t,
then:function(){return _.O("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.O("div",{class:_.zV("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+H().startPercent+"%"}}),_.O("div",{class:_.zV("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+H().segmentDurationPercent+"%"}},_.O("div",{class:_.zV("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.O("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.O("div",null," ",function(){return H().segmentLabel})),_.O("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.O("div",{class:_.zV("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.O(_.g,{cond:function(){return!t()&&H().startPercent},
then:function(){var M={};return _.O("div",{class:_.zV("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(M.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.J("web_enable_modern_progress_bar_overlay"),M))},_.O("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+H().startPercent+"%"}}))}}))},"X");
Hxh.idomCompat=!0;var vHH=_.a(function(f){var H=_.g3(),v=_.uE(function(M){var h,y,m;a:{var W=(h=f.data())==null?void 0:h.animationActivationTargetId;h=((y=f.data())==null?void 0:y.animationActivationEntityKey)||"";y=(m=f.data())==null?void 0:m.animationActivationEntitySelectorType;if(h&&W)switch(y){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":M=_.dL(M.entities,"playerStateEntity",h);m=_.t8().resolve(_.vh(_.o0));W=!!(M&&M.videoId===W&&(m==null?0:m.isMiniplayerActive()));W={activated:W,playAnimation:W&&
M.playerState==="PLAYER_STATE_PLAYING"};break a}W=void 0}return W});
_.K4(function(){var M;if((M=v())==null?0:M.activated){var h;if((h=v())==null?0:h.playAnimation){var y;(y=H.lottieEl)==null||y.goToAndPlay(0)}else{var m;(m=H.lottieEl)==null||m.goToAndStop(0)}}},"DbQiXd");
var t=function(){var M,h=!((M=v())==null||!M.activated);if(f.data()){M=f.data();var y=void 0;M.icon&&(y=_.Uae(M.icon),y=r2H(y));var m=void 0,W;if((W=M.backgroundColor)==null?0:W.lightTheme){var I;m={backgroundColor:XE((I=M.backgroundColor)==null?void 0:I.lightTheme,"0.8")}}if(M.text||y||h){if(h&&M.lottieData&&H){I=M.lottieData;var S,d,Z;W={animationConfig:{name:I.url,path:I.url,autoplay:(S=I.settings)==null?void 0:S.autoplay,loop:(Z=(d=I.settings)==null?void 0:d.loop)!=null?Z:!0},animationRef:H}}else W=
void 0;if(h)S=17;else b:switch(M.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":S=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":S=19;break b;default:S=17}h={type:S,text:h&&M.animatedText?M.animatedText:M.text,icon:y,customColors:m,animation:W}}else h=void 0}else h=void 0;return h};
return _.O("yt-thumbnail-badge-view-model",{class:_.S2("ytThumbnailBadgeViewModelHost",f.class)},_.O(_.g,{cond:t,then:function(){return _.O(_.u5,{data:function(){return t()}})}}))},"Y");var tTb=_.a(function(f){var H={},v={};return _.O("yt-thumbnail-bottom-overlay-view-model",{class:_.S2("ytThumbnailBottomOverlayViewModelHost",(H.ytThumbnailBottomOverlayViewModelHostBackground=function(){return f.data().enableGradientBackground},H))},_.O(_.Jj,{data:function(){return f.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(t){return _.O(Hxh,{data:t.data,
thumbnailSize:f.thumbnailSize})}}),_.O("div",{class:_.S2("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var t;
return NnN((t=f.thumbnailSize)==null?void 0:t.call(f))},(v.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var t;
return(t=f.isClip)==null?void 0:t.call(f)},v.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var t;
return!_.J("web_enable_modern_progress_bar_overlay")&&((t=f.thumbnailSize)==null?void 0:t.call(f))==="small"},v))},_.O(_.Jj,{data:function(){return f.data().badge}},{thumbnailBadgeViewModel:function(t){return _.O(vHH,{data:t.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.O(_.Jj,{data:function(){return f.data().badges}},{thumbnailBadgeViewModel:function(t){return _.O(vHH,{data:t.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Z");
tTb.idomCompat=!0;_.yn(tTb,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.Rm,thumbnailSize:_.Rm,isClip:_.Rm}});var foN={calledOnce:!1,state:"visible"},HxB={calledOnce:!1,state:"hidden"};var rq=_.a(function(f){var H=f.data;var v=f.className;f=f.alwaysShow;var t=_.AL3(),M={};return _.O("thumbnail-hover-overlay-view-model",{el:_.tE(_.nT(function(){return H().rendererContext})),
class:_.S2("ytThumbnailHoverOverlayViewModelHost",v,(M.ytThumbnailHoverOverlayViewModelHostForceHover=f,M)),"aria-label":function(){var h;return(h=_.U(H().rendererContext,_.dC))==null?void 0:h.label},
role:function(){return _.KT(H().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.KT(H().rendererContext)!==void 0?0:void 0},
"on:keypress":t},_.O("div",{class:_.S2("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(H().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var h="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:h="ytThumbnailHoverOverlayViewModelStyleCover"}return h})},_.O(_.g,{cond:function(){return H().icon},
then:function(h){return _.O(_.Hn,{data:h,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.O(_.g,{cond:function(){return H().text},
then:function(h){return _.O(_.iq,{text:h,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"$");
rq.idomCompat=!0;var MTC=_.a(function(f){var H=f.data;return _.O(_.Jj,{data:function(){return H==null?void 0:H().overlays}},{thumbnailHoverOverlayViewModel:rq})},"aa");
MTC.idomCompat=!0;var hoH={};var Ro_=_.a(function(f){var H=f.data;var v=f.image;var t=f.state;var M=f.iconType;var h=f.overlays;var y=f.isOverlay;var m=_.w8("div");f=_.V(_.gp(!0,void 0,"sUzEZ"));var W=f.next().value,I=f.next().value,S=function(){return!!H().onTap},d=_.vK(M,"LIVE");
_.K4(function(){var l=H();requestAnimationFrame(function(){if(m.value===null)var L=!0;else{var r=m.value;L=l.badgeText;var n=MTH(l.size);L in hoH?r=hoH[L]:(r=r.clientWidth,hoH[L]=r);(L=r>n)?m.value.style.display="none":m.value.style.visibility="visible"}I(L)})},"SpVcNb");
var Z=function(){var l={};return l["yt-spec-avatar-shape__image"]=!0,l["yt-spec-avatar-shape__image--ads-app"]=H().type===1,l};
return _.O("yt-avatar-shape",null,_.O("div",{el:_.tE(Ros(S,{keydown:function(l){if(l.key==="Enter"){var L;(L=l.currentTarget)==null||L.click()}},
click:function(l){var L,r;return void((r=(L=H()).onTap)==null?void 0:r.call(L,l))}})),
class:function(){var l={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},L=H();l=(l[L.clusterLayoutConfig?YNR(L.clusterLayoutConfig):mfs(L.size)]=!0,l["yt-spec-avatar-shape__button--tappable"]=S(),l);(L=H().avatarButtonCustomClassName)&&(l[L]=!0);return _.zV(l)},
"aria-label":function(){return S()?H().accessibilityText:""},
role:function(){return S()?"button":void 0},
tabindex:function(){return S()?0:void 0}},_.O("div",{class:function(){var l,L=H(),r=t==null?void 0:t(),n=y==null?void 0:y(),Q=!((l=L.decorations)==null||!l.includes(2)||L.size!=="medium"&&L.size!=="large"),C=L.size==="tiny"||L.size==="extra-small",w,c,A,X,fg={};
l=(fg["yt-spec-avatar-shape--live-ring"]=!!(((w=L.decorations)==null?0:w.includes(0))&&WjR(L.size)),fg["yt-spec-avatar-shape--stories-watched"]=Q&&!(r==null||!r.storiesWatched),fg["yt-spec-avatar-shape--stories-unwatched"]=Q&&!(r==null?0:r.storiesWatched),fg["yt-spec-avatar-shape--background-border"]=Oxb(L.decorations)&&!C,fg["yt-spec-avatar-shape--background-border-thin"]=Oxb(L.decorations)&&C,fg["yt-spec-avatar-shape__on-select-border"]=!((c=L.decorations)==null||!c.includes(4)),fg["yt-spec-avatar-shape__white-border"]=
!((A=L.decorations)==null||!A.includes(5)),fg["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((X=L.decorations)==null?0:X.includes(5))&&C),fg["yt-spec-avatar-shape--is-overlay"]=!!n,fg);return _.zV(l)},
style:function(){a:{var l=H().clusterLayoutConfig;if(l){b:{var L=l.numAvatarsInCluster;var r=l.avatarIndex;if(r!==L-1){switch(l.clusterSize){case "small":l="32";break;case "medium":l="36";break;case "40":l="40";break;default:L=void 0;break b}L="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+l+"x"+l+"_avatars_"+L+"_index_"+r+".svg"}else L=void 0}if(L){L=_.ZE({"-webkit-mask-image":"url("+L+")","mask-image":"url("+L+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}L=void 0}return L}},_.O("div",{class:function(){var l={};
var L=H();l=(l[L.clusterLayoutConfig?VT3(L.clusterLayoutConfig):yOR(L.size)]=!0,l["yt-spec-avatar-shape--no-margin"]=Oxb(H().decorations),l);return _.zV(l)}},_.O(_.Hn,{data:v,
alt:function(){return!S()&&H().accessibilityText?H().accessibilityText:""},
targetWidth:function(){return $fN(H().size)},
targetHeight:function(){return $fN(H().size)},
className:function(){return _.zV(Z())}}),_.O(_.g,{cond:function(){var l;
return((l=H().decorations)==null?void 0:l.includes(0))&&WjR(H().size)},
then:function(){return _.O("div",{class:function(){var l={};l=(l["yt-spec-avatar-shape__live-badge"]=!0,l["yt-spec-avatar-shape__live-badge--badge-small"]=H().size==="small",l["yt-spec-avatar-shape__live-badge--badge-medium"]=H().size==="medium"||H().size==="48",l["yt-spec-avatar-shape__live-badge--badge-large"]=H().size==="large",l["yt-spec-avatar-shape__live-badge--badge-extra-large"]=H().size==="extra-large"||H().size==="extra-extra-large"||H().size==="giant",l);return _.zV(l)}},_.O(_.g,{cond:function(){return H().badgeText},
then:function(l){return _.O("div",{class:"yt-spec-avatar-shape__badge-text",el:m},l)}}),_.O(_.g,{cond:W,
then:function(){return _.O("div",{class:"yt-spec-avatar-shape__badge-icon"},_.O(_.JE,{icon:d,size:function(){a:switch(H().size){case "extra-large":var l=16;break a;default:l=13}return l}}))}}))}}),_.O(_.g,{cond:function(){var l,L;
return((l=H().decorations)==null?void 0:l.includes(1))||((L=H().decorations)==null?void 0:L.includes(0))&&!WjR(H().size)},
then:function(){return _.O("div",{class:function(){var l=H(),L,r,n={};var Q=(n["yt-spec-avatar-shape__live-dot"]=!((L=l.decorations)==null||!L.includes(0)||WjR(l.size)),n["yt-spec-avatar-shape__new-content"]=!((r=l.decorations)==null||!r.includes(1)),n);return _.zV(Q)}})}}),_.O(_.g,{cond:function(){return!!h},
then:function(){return _.O("div",{class:function(){var l={};l=Object.assign((l["yt-spec-avatar-shape__image-overlays"]=!0,l),Z());return _.zV(l)}},h==null?void 0:h())}})))))},"ba");
Ro_.idomCompat={callbacks:{overlays:!0}};_.K5=_.a(function(f){function H(){v().endpoint&&_.XA(v().endpoint)}
var v=f.data;var t=f.decorations;var M=f.avatarButtonCustomClassName;var h=f.isOverlay;var y=f.clusterLayoutConfig;return _.O("avatar-view-model",null,_.O(_.g,{cond:function(){return v().image},
then:function(m){return _.O(Ro_,{data:function(){return Iob({data:v(),onTap:v().endpoint?H:void 0,decorations:t==null?void 0:t(),badgeText:void 0,accessibilityText:v().accessibilityText,avatarButtonCustomClassName:M==null?void 0:M(),clusterLayoutConfig:y==null?void 0:y()})},
image:m,iconType:"RADAR_LIVE",overlays:function(){return _.O(MTC,{data:v})},
isOverlay:h})}}))},"ca");
_.K5.idomCompat=!0;_.Dj=_.a(function(f){var H=f.data;f=f.className;var v=_.w8("yt-decorated-avatar-view-model"),t=function(){return _.U(H().avatar,_.pT)},M=_.sg(function(){var h,y=H(),m=t(),W=_.KT(H().rendererContext),I=(h=v.value)!=null?h:void 0,S;
if(m){I={data:y,avatar:m,onTap:W,element:I};h=I.data;y=I.avatar;m=I.onTap;W=I.element;I=I.commandController;m=m?sob(m,W,I):void 0;W=[];h.liveData&&W.push(0);var d;I=(d=h.liveData)==null?void 0:d.liveBadgeText;d=(S=_.U(h.rendererContext,_.dC))==null?void 0:S.label;S=Iob({data:y,onTap:m,decorations:W,badgeText:I,accessibilityText:d?d:h.a11yLabel})}else S={size:"medium"};return S},void 0,"c00kWd");
return _.O("yt-decorated-avatar-view-model",{class:_.S2("ytDecoratedAvatarViewModelHost",f),el:v},_.O(_.g,{cond:function(){var h;return(h=t())==null?void 0:h.image},
then:function(h){return _.O(Ro_,{data:M,image:h,iconType:"RADAR_LIVE",overlays:function(){return _.O(MTC,{data:t})}})}}))},"da");
_.Dj.idomCompat=!0;_.oY=_.a(function(f){var H=function(){var m;return Object.assign({},f.data(),(m=f.overrides)==null?void 0:m.call(f))},v=function(){return _.DO(H().rendererContext)},t=function(){var m=H().avatars,W,I;
return(I=(W=(m==null?0:m[0])?_.U(m[0],_.pT):void 0)==null?void 0:W.avatarImageSize)!=null?I:"AVATAR_SIZE_UNKNOWN"},M=function(){return joN(H())},h=function(){if(H().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var m=void 0;
else if((m=f.decorations)==null?0:m.call(f))m=f.decorations();else{m=H();var W=0;m.avatars&&(W+=m.avatars.length);m.decoratedText&&(W+=1);m=W>1?[3]:[]}return m},y={};
return _.O("yt-avatar-stack-view-model",{el:_.tE(_.nT(function(){return H().rendererContext})),
class:_.S2("yt-avatar-stack-view-model-wiz",f.className,(y["yt-avatar-stack-view-model-wiz--tappable"]=v,y["yt-avatar-stack-view-model-wiz--is-overlay"]=f.isOverlay,y["yt-avatar-stack-view-model-wiz--medium-text"]=f.useMediumText,y)),tabindex:function(){return v()?0:void 0},
role:function(){return v()?"link":void 0},
"aria-label":function(){var m,W;return(W=(m=_.U(H().rendererContext,_.dC))==null?void 0:m.label)!=null?W:""}},_.O(_.g,{cond:function(){var m;
return H().avatars&&!((m=f.hideAvatar)==null?0:m.call(f))},
then:function(){return _.O("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.O(_.g,{cond:function(){return H().decoratedText},
then:function(m){var W={};return _.O("div",{class:_.S2("yt-avatar-stack-view-model-wiz__text-container",(W["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return t()==="AVATAR_SIZE_XXS"||t()==="AVATAR_SIZE_XS"},W["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var I;
return((I=f.isOverlay)==null?void 0:I.call(f))&&(t()==="AVATAR_SIZE_XXS"||t()==="AVATAR_SIZE_XS")},W)),
style:_.ZE({width:function(){return M().avatarSizeInPx+"px"},
height:function(){return M().avatarSizeInPx+"px"}})},_.O(_.iq,{text:m,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.O("div",{style:function(){return _.ZE(M().avatarStackStyle)()},
class:function(){return M().avatarStackClass}},_.O(_.Jj,{data:function(){return M().avatars.reverse()}},{avatarViewModel:function(m,W){return _.O("div",{style:function(){var I,S;
return _.ZE((S=(I=M()).avatarStyle)==null?void 0:S.call(I,W()))()},
class:function(){return M().avatarClass}},_.O(_.K5,{data:m.data,
decorations:h,avatarButtonCustomClassName:function(){return M().avatarButtonCustomClassName},
isOverlay:f.isOverlay,clusterLayoutConfig:function(){var I,S;return(S=(I=M()).clusterLayoutConfig)==null?void 0:S.call(I,W())}}))},
decoratedAvatarViewModel:function(m,W){return _.O("div",{style:function(){var I,S;return _.ZE((S=(I=M()).avatarStyle)==null?void 0:S.call(I,W()))()},
class:function(){return M().avatarClass}},_.O(_.Dj,{data:m.data}))}})))}}),_.O(_.g,{cond:function(){return H().text},
then:function(m){return _.O(_.iq,{text:m,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"ea");
_.oY.idomCompat=!0;_.yn(_.a(function(f){var H=f.data;var v=f.thumbnailSize;return _.O("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.O("div",{class:_.S2("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return ZxR(v==null?void 0:v())})},_.O(_.Jj,{data:function(){return H().avatarStack}},{avatarStackViewModel:function(t){return _.O(_.oY,{data:t.data,
decorations:[5]})}})))},"fa"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.ki,
thumbnailSize:_.ki}});var VTn=_.a(function(f){f=_.tV(f,{hidden:!1});var H=f.data;return _.O("yt-thumbnail-overlay-title-view-model",{class:"ytThumbnailOverlayTitleViewModelHost",hidden:f.hidden},_.O(_.iq,{text:function(){return H().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.O(_.g,{cond:function(){return H().subtitle},
then:function(){return _.O(_.iq,{text:function(){return H().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}}))},"ga");
VTn.idomCompat=!0;_.yn(VTn,"yt-thumbnail-overlay-title-view-model",{props:{data:_.ki,hidden:_.ki}});var yOo=_.a(function(f){f=_.tV(f,{isClip:!1});var H=f.data,v=f.thumbnailSize,t={};return _.O("yt-thumbnail-overlay-badge-view-model",{class:_.S2("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(H().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var M="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:M="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return M},function(){return JO5(v==null?void 0:v())},(t["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
f.isClip,t))},_.O(_.Jj,{data:function(){return H().thumbnailBadges}},{thumbnailBadgeViewModel:function(M){return _.O(vHH,{data:M.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"ha");
yOo.idomCompat=!0;_.yn(yOo,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.ki,thumbnailSize:_.ki,isClip:_.ki}});var YNo=_.a(function(f){var H=f.data;f=f.hidden;var v=_.sg(function(){return H().indicatorCount||0},void 0,"RYwqDc"),t={};
return _.O("yt-page-indicator-view-model",{class:_.S2("yt-page-indicator-view-model",(t["yt-page-indicator-view-model__indicator--hidden"]=function(){return!H().indicatorCount},t)),
hidden:f},_.O(_.eK,{each:function(){return Array(v())}},function(M,h){var y={};
return _.O("div",{class:_.S2("yt-page-indicator-view-model__indicator",(y["yt-page-indicator-view-model__indicator--selected"]=function(){return H().selectedIndex===h()},y))})}))},"ia");
YNo.idomCompat=!0;_.yn(YNo,"yt-page-indicator-view-model",{props:{data:_.ki,hidden:_.ki}});var n5=function(){var f=_.K.apply(this,arguments)||this;f.eventSink=function(){return f};
f.disableInteraction=!1;f.noRoundedCorners=!1;f.isPreviewLoading=!1;f.isOriginalAspectRatio=!1;f.computedObjectFit=!1;f.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return f};
_.e(n5,_.K);_.R=n5.prototype;
_.R.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:_.J("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"}}};
_.R.onImageLoaded=function(){this.loaded=!0};
_.R.onImageUnloaded=function(){this.loaded=!1};
_.R.computeRichThumbnail=function(f,H,v,t){if(f&&H&&!t&&!_.J("disable_moving_thumbs_handling")&&!v)return H};
_.R.computeImageWidth=function(f,H){return H||9999};
_.R.computeIsOriginalAspectRatio=function(f){return f};
_.R.computeIsLive=function(f){if(f==null?0:f.badges)for(var H=0;H<f.badges.length;H++){var v=f.badges[H];if(v.metadataBadgeRenderer&&v.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(f==null?0:f.thumbnailOverlays)for(H=0;H<f.thumbnailOverlays.length;H++)if(v=f.thumbnailOverlays[H],v.thumbnailOverlayTimeStatusRenderer&&v.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.R.computeObjectFit=function(f,H){return H||(f?"CONTAIN":"")};
_.R.computeNavigationEndpoint=function(f,H,v){return f?H:v};
_.R.computeHasClip=function(f){f=_.V(f||[]);for(var H=f.next();!H.done;H=f.next())if(H.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.R.computeOverlayColor=function(f){var H;return(f==null?0:(H=f.darkColorPalette)==null?0:H.section2Color)?f.darkColorPalette.section2Color:f==null?void 0:f.sampledThumbnailColor};
_.H7.Object.defineProperties(n5.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return TJb(this.width)}}});
n5.prototype.onImageUnloaded=n5.prototype.onImageUnloaded;n5.prototype.onImageLoaded=n5.prototype.onImageLoaded;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],n5.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],n5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(CQn),_.N("design:type",Object)],n5.prototype,"ytdThumbnailBehavior",void 0);
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],n5.prototype,"componentBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],n5.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],n5.prototype,"data",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],n5.prototype,"circular",void 0);
_.E([_.F({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.N("design:type",Object)],n5.prototype,"richThumbnail",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.N("design:type",Boolean)],n5.prototype,"hasClip",void 0);_.E([_.F(),_.N("design:type",Object)],n5.prototype,"eventSink",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],n5.prototype,"queued",void 0);
_.E([_.F({value:!1}),_.N("design:type",Boolean)],n5.prototype,"richGridThumbnail",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],n5.prototype,"useExpandableTooltip",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],n5.prototype,"useUntranslatedNavigationEndpoint",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],n5.prototype,"disableInteraction",void 0);
_.E([_.F({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.N("design:type",Object)],n5.prototype,"computedNavigationEndpoint",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],n5.prototype,"nowPlayingEqualizerOnly",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],n5.prototype,"hidePlaybackStatus",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],n5.prototype,"objectFit",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],n5.prototype,"noRoundedCorners",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],n5.prototype,"watchFeedThumbnail",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],n5.prototype,"isPreviewLoading",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.N("design:type",Object)],n5.prototype,"isOriginalAspectRatio",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.N("design:type",Object)],n5.prototype,"computedObjectFit",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.N("design:type",Boolean)],n5.prototype,"isLiveVideo",void 0);
_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],n5.prototype,"loaded",void 0);_.E([_.F({computed:"computeOverlayColor(data.thumbnail)"}),_.N("design:type",Object)],n5.prototype,"overlayColor",void 0);_.E([_.F({selector:_.ToN}),_.N("design:type",Boolean)],n5.prototype,"inlinePreviewIsEnabled",void 0);_.E([_.F(),_.N("design:type",Number)],n5.prototype,"width",void 0);
_.E([_.z("inlinePreviewIsEnabled"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],n5.prototype,"isPreviewDisabled",null);_.E([_.z("width"),_.N("design:type",String),_.N("design:paramtypes",[])],n5.prototype,"thumbnailSize",null);_.E([_.sE("image-loaded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],n5.prototype,"onImageLoaded",null);
_.E([_.sE("image-unloaded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],n5.prototype,"onImageUnloaded",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-thumbnail"})],n5);
var mf_=_.$6()(n5,"ytd-thumbnail",function(){if(fo9===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);fo9=f}f=fo9;return f},{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 eo_=function(f){var H=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$14895_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$14895_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(v){$f9(H,v)};
this.onLockupMouseLeaveFn=function(v){v=v.relatedTarget;var t,M;((t=document.getElementsByTagName("ytd-video-preview"))==null?0:(M=t.item(0))==null?0:M.contains(v))||(H.terminateVideoPreview(),p5(H))};
this.onThumbnailMouseDownFn=function(){H.terminateVideoPreview();p5(H)};
this.onTouchStart=function(){H.JSC$14895_touched=!0};
this.mediaRenderer=f.mediaRenderer;this.thumbnailElement=f.thumbnailElement;this.lockupElement=f.lockupElement;this.videoPreviewOptsInput=f.videoPreviewOpts;Wjo(this);Q5(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)):
_.pb(Error("Dh")):_.pb(Error("Eh")):OxH(this)},AY=function(f){OxH(f);
var H;(H=f.lockupElement)==null||H.removeEventListener("mouseenter",f.onMouseMoveFn);var v;(v=f.lockupElement)==null||v.removeEventListener("mouseleave",f.onLockupMouseLeaveFn);var t;(t=f.lockupElement)==null||t.removeEventListener("touchstart",f.onTouchStart);var M;(M=f.thumbnailElement)==null||M.removeEventListener("mousedown",f.onThumbnailMouseDownFn);p5(f)},Wjo=function(f){f.inlinePreviewIsEnabledForUser=_.vS().getState().ui.inlinePreviewIsEnabled;
f.unsubscribeFromInlinePreviewIsEnabled=_.sI(_.vS(),_.ToN,function(H){(f.inlinePreviewIsEnabledForUser=H)||p5(f)});
f.JSC$14895_unsubscribeFromInlinePreviewIsActive=_.sI(_.vS(),_.kuH,function(H){(f.inlinePreviewIsActive=H)||p5(f)})},OxH=function(f){f.unsubscribeFromInlinePreviewIsEnabled();
f.unsubscribeFromInlinePreviewIsEnabled=function(){};
f.JSC$14895_unsubscribeFromInlinePreviewIsActive();f.JSC$14895_unsubscribeFromInlinePreviewIsActive=function(){}},$f9=function(f,H){H.buttons>0||(H=_.VQ("kevlar_lockup_hover_delay",-1),f.JSC$14895_touched&&H>=0?(_.nN.cancelJob(f.videoPreviewJobId),f.videoPreviewJobId=_.OR(_.nN,function(){gHr(f)},H),f.JSC$14895_touched=!1):gHr(f))},hX5=function(f){f.videoPreviewJobId=_.OR(_.nN,function(){return _.Y(function(H){return H.yield(IoH(f,{isAutoplay:!0}),0)})})},gHr=function(f){!f.previewTriggered&&Q5(f)&&
(f.inlinePreviewIsActive&&f.terminateVideoPreview(),f.previewTriggered=!0,f.mediaRenderer.isInlinePreviewTriggered=!0,_.nN.cancelJob(f.videoPreviewJobId),f.videoPreviewJobId=_.OR(_.nN,function(){return _.Y(function(H){return H.yield(IoH(f),0)})}))},IoH=function(f,H){H=H===void 0?{}:H;
var v=H.isAutoplay===void 0?!1:H.isAutoplay;var t,M,h,y;return _.Y(function(m){if(m.nextAddress==1){if(!Q5(f))return m.return();t=f.getVideoPreviewOpts();if(!t)return m.return();v&&(t.isAutoplay=!0);return(h=(M=_.$E(f.mediaRenderer.hostElement,"yt-open-video-preview-action",[t]))&&M[0])?m.yield(M[0],3):m.jumpTo(2)}m.nextAddress!=2&&(h=m.yieldResult===1);if(h){var W=(y=f.mediaRenderer)==null?void 0:y.data;W&&(UfR(W)?delete W.inlinePlayerData:"inlinePlaybackEndpoint"in W&&delete W.inlinePlaybackEndpoint)}_.Bj(m)})};
eo_.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var f,H;if((H=(f=this.videoPreviewOptsInput)==null?void 0:f.videoPreviewData)!=null)f=H;else if(f=this.mediaRenderer.data)if(UfR(f))f={inlinePlaybackEndpoint:_.GK(f.inlinePlayerData.onVisible),navigationEndpoint:_.GK(f.onTap),thumbnail:"image"in f?f.image:f.thumbnail,thumbnailOverlays:void 0,accessibilityText:loR(f)};else if("multipleInlinePlaybackEndpoint"in f){var v=_.U(_.U(f.multipleInlinePlaybackEndpoint,D7T),oJv);if(v!=
null&&v.playerDescriptors){H=[];v=_.V(v.playerDescriptors);for(var t=v.next();!t.done;t=v.next())t=t.value,H.push({inlinePlaybackEndpoint:t.inlinePlaybackEndpoint,navigationEndpoint:t.navigationEndpoint,thumbnail:t.thumbnail,thumbnailOverlays:t.thumbnailOverlays,accessibilityText:loR(f)});f=H}else f=void 0}else f={inlinePlaybackEndpoint:f.inlinePlaybackEndpoint,navigationEndpoint:f.navigationEndpoint,thumbnail:f.thumbnail,thumbnailOverlays:f.thumbnailOverlays,accessibilityText:loR(f)};else f=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:f,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var Q5=function(f){var H;if(H=f.inlinePreviewIsEnabledForUser)H=(f=f.mediaRenderer.data)?"inlinePlaybackEndpoint"in f&&f.inlinePlaybackEndpoint||UfR(f)&&f.inlinePlayerData||"multipleInlinePlaybackEndpoint"in f&&f.multipleInlinePlaybackEndpoint?!0:!1:!1;return H};
eo_.prototype.terminateVideoPreview=function(){_.mb(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var p5=function(f){_.nN.cancelJob(f.videoPreviewJobId);f.inlinePreviewIsActive=!1;f.previewTriggered=!1;f.mediaRenderer.isInlinePreviewTriggered=!1};var SNC=_.EH(["#"]),uv=function(){var f=_.K.apply(this,arguments)||this;f.isDisabled=!1;return f};
_.e(uv,_.K);_.R=uv.prototype;_.R.configureRendererStamper=function(){return{"data.menu":dq,"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"}}}};
_.R.attached=function(){this.updateInlinePreviewHoverListeners()};
_.R.detached=function(){this.clearInlinePreviewHoverListeners()};
_.R.getMetadata=function(f){var H=[];if(f.metadataText&&Object.keys(f.metadataText).length>0){var v=this.ytRendererBehavior.getSimpleString(f.metadataText);f.upcomingEventData&&f.upcomingEventData.upcomingEventText&&(v=_.x$(v,Number(f.upcomingEventData.startTime)));H.push(v)}else f.shortViewCountText&&H.push(this.ytRendererBehavior.getSimpleString(f.shortViewCountText)),f.publishedTimeText&&H.push(this.ytRendererBehavior.getSimpleString(f.publishedTimeText)),f.upcomingEventData&&f.upcomingEventData.upcomingEventText&&
(v=this.ytRendererBehavior.getSimpleString(f.upcomingEventData.upcomingEventText),H.push(_.x$(v,Number(f.upcomingEventData.startTime))));return H};
_.R.calculateBylineText=function(f){return f.shortBylineText?f.shortBylineText:f.bylineText?f.bylineText:null};
_.R.calculateIsDisabled=function(f){return!!f.isDisabled};
_.R.computeHrefWithDefault=function(f){return this.ytComponentBehavior.computeHref_(f)||_.boe(SNC)};
_.R.onDetailsTap=function(f){var H=this.data&&this.data.navigationEndpoint;H&&!_.w6(_.f2(f)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.J("kevlar_grid_video_renderer_killswitch")?_.YE(this.hostElement,"yt-navigate",{endpoint:H}):this.ytComponentBehavior.resolveCommand(H))};
_.R.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.R.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14902_inlinePreviewHoverListener=Q4({mediaRenderer:this,lockupElement:_.mF(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.mF(this.hostElement).querySelector("ytd-thumbnail")})};
_.R.clearInlinePreviewHoverListeners=function(){var f;(f=this.JSC$14902_inlinePreviewHoverListener)==null||AY(f)};
_.R.computeThumbnailWidth=function(f,H){return H&&H>0?H:f?360:210};
_.R.computeShowChannelThumbnail=function(f,H){var v;return H&&!!(f==null?0:(v=f.channelThumbnailSupportedRenderers)==null?0:v.channelThumbnailWithLinkRenderer)};
_.H7.Object.defineProperties(uv.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.JSC$14902_inlinePreviewHoverListener)==null?0:Q5(f))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
uv.prototype.dataChanged=uv.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],uv.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],uv.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],uv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.PG),_.N("design:type",Object)],uv.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.B(_.A_),_.N("design:type",Object)],uv.prototype,"ytdLockupBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],uv.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],uv.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Boolean)],uv.prototype,"noEndpoints",void 0);_.E([_.F({computed:"calculateBylineText(data)"}),_.N("design:type",Object)],uv.prototype,"bylineText",void 0);
_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],uv.prototype,"isSearch",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],uv.prototype,"isDownloading",void 0);_.E([_.F({reflectToAttribute:!0,value:0}),_.N("design:type",Number)],uv.prototype,"width",void 0);_.E([_.F({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.N("design:type",Object)],uv.prototype,"isDisabled",void 0);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uv.prototype,"dataChanged",null);_.E([_.z("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],uv.prototype,"isHovered",null);_.E([_.u({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],uv);
_.G(uv,"ytd-grid-video-renderer",function(){if(CGH!==void 0)return CGH;var f=document.createElement("template");_.x(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" hidden="[[!bylineText]]" class="style-scope ytd-grid-video-renderer"><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return CGH=f},{mode:_.WK("kevlar_poly_si_batch_j047")?1:2});var dfg;var aY=function(){var f=_.K.apply(this,arguments)||this;f.roundedContainer=!0;f.skipRoundingTop=!1;f.disableTopPadding=!1;f.amsterdamEnabled=_.J("enable_desktop_amsterdam_info_panels");return f};
_.e(aY,_.K);aY.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
aY.prototype.onClick=function(f){var H,v=(H=this.data)==null?void 0:H.sourceEndpoint;!_.w6(_.f2(f),this.hostElement,["A".toString()])&&v&&_.YE(this.hostElement,"yt-navigate",{endpoint:v})};
_.H7.Object.defineProperties(aY.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 f;return!((f=this.data)==null||!f.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var f,H;return(H=(f=this.data)==null?void 0:f.paragraphMaxLines)!=null?H:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],aY.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],aY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],aY.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],aY.prototype,"showVerticalDividers",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],aY.prototype,"roundedContainer",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],aY.prototype,"skipRoundingTop",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],aY.prototype,"disableTopPadding",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],aY.prototype,"amsterdamEnabled",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],aY.prototype,"showMetadataAtTop",null);
_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],aY.prototype,"showMetadataBelowTitle",null);_.E([_.F({reflectToAttribute:!0}),_.z("data.menu"),_.N("design:type",Object),_.N("design:paramtypes",[])],aY.prototype,"hasMenu",null);_.E([_.F({reflectToAttribute:!0}),_.z("data.truncateParagraphs"),_.N("design:type",Object),_.N("design:paramtypes",[])],aY.prototype,"truncateParagraphs",null);
_.E([_.F({reflectToAttribute:!0}),_.z("data.paragraphMaxLines"),_.N("design:type",Number),_.N("design:paramtypes",[])],aY.prototype,"paragraphMaxLines",null);_.E([_.F({type:_.J("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.z("data.background"),_.N("design:type",Object),_.N("design:paramtypes",[])],aY.prototype,"background",null);_.E([_.u({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],aY);
_.G(aY,"ytd-info-panel-content-renderer",function(){if(dfg!==void 0)return dfg;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return dfg=f},{mode:_.WK("kevlar_poly_si_batch_j076")?1:2});var jo9;var soH;var ZxM;var JOb;var Pi=function(){return _.K.apply(this,arguments)||this};
_.e(Pi,_.K);Pi.prototype.computeStyle=function(f){return f};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Pi.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Pi.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],Pi.prototype,"style_",void 0);_.E([_.GW({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],Pi);
_.G(Pi,"yt-channel-thumbnail-with-link-renderer",function(){if(JOb===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;ZxM===void 0&&(ZxM=document.createElement("template"));var t=ZxM;v.call(H,t.content.cloneNode(!0),f.content.firstChild);JOb=f}f=JOb;return f},{mode:2});var G6=function(){var f=_.K.apply(this,arguments)||this;f.modernTypography=_.J("web_modern_typography");return f};
_.e(G6,_.K);G6.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"}}}};
G6.prototype.computeTitleStyle=function(f){return f||null};
G6.prototype.computeAvatarStyle=function(f){return f||null};
G6.prototype.computeShowNavigationButton=function(f,H){return!(f==null||!f.navigationButton||H)};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],G6.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],G6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],G6.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.N("design:type",String)],G6.prototype,"titleStyle",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.N("design:type",String)],G6.prototype,"avatarStyle",void 0);_.E([_.F(),_.N("design:type",Boolean)],G6.prototype,"hideNavigationButton",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],G6.prototype,"isModernSd",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],G6.prototype,"modernTypography",void 0);
_.E([_.u({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],G6);
_.G(G6,"ytd-rich-list-header-renderer",function(){if(soH!==void 0)return soH;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return soH=f},{mode:_.WK("kevlar_poly_si_batch_j058")?1:2});var C5=function(){return _.K.apply(this,arguments)||this};
_.e(C5,_.K);C5.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]]"}}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],C5.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],C5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],C5.prototype,"data",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],C5.prototype,"isSearch",void 0);_.E([_.u({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],C5);
_.G(C5,"ytd-preview-card-renderer",function(){if(jo9!==void 0)return jo9;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return jo9=f},{mode:1});var loM;var Ei=function(){return _.K.apply(this,arguments)||this};
_.e(Ei,_.K);Ei.prototype.configureRendererStamper=function(){return{"data.menu":dq}};
Ei.prototype.dataChanged=function(){var f=this.get("colorExtractionPalette.section1Color",this.data);f=_.NS(f);_.Sr(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":f})};
Ei.prototype.computeCardStyle=function(f){return this.get("style.value",f)||null};
Ei.prototype.dataChanged=Ei.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Ei.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Ei.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.PG),_.N("design:type",Object)],Ei.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Ei.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.N("design:type",String)],Ei.prototype,"cardStyle",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ei.prototype,"dataChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],Ei);
_.G(Ei,"ytd-compact-channel-recommendation-card-renderer",function(){if(loM!==void 0)return loM;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return loM=f},{mode:1});var Ufo;var eoh;var Nv=function(){var f=_.K.apply(this,arguments)||this;f.alignAuto=!1;f.collapsed=!0;f.isToggled=!1;f.alwaysCollapsed=!1;f.canToggle=!0;f.collapsedHeight=80;f.disableToggle=!1;f.alwaysToggleable=!1;f.reversed=!1;f.shouldUseNumberOfLines=!1;f.recomputeOnResize=!1;f.canToggleJobId=0;f.lastReversed=!1;return f};
_.e(Nv,_.K);_.R=Nv.prototype;_.R.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.R.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.R.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var f=_.mF(this.hostElement),H=f.childNodes,v=document.createDocumentFragment(),t=f.childNodes.length-1;t>=0;t--)_.mF(v).appendChild(H[t]);_.J("enable_shadydom_free_scoped_node_methods")?_.$V(this.hostElement).appendChild(v):f.appendChild(v)}};
_.R.ready=function(){var f=this;_.bJ(function(){f.initChildrenObserver()},1)};
_.R.attached=function(){var f;(f=this.resizeObserver)==null||f.observe(this.content)};
_.R.detached=function(){this.detachObserver()};
_.R.toggle=function(f,H){this.canToggle&&(this.isToggled=H,_.YE(this.hostElement,"yt-refit"),f&&f.stopPropagation())};
_.R.reset=function(){this.childrenChanged()};
_.R.onIronResize=function(){this.recomputeOnResize&&!_.J("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.R.computeIsMoreVisible=function(f,H){return f&&!H};
_.R.computeShouldUseNumberOfLines=function(f){try{return!!f&&window.CSS.supports("-webkit-line-clamp","1")}catch(H){}return!1};
_.R.computeIsLessVisible=function(f,H){return f&&H};
_.R.observeCollapsedHeightAndMaxLines=function(){var f=this.collapsedHeight,H=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.Sr(this.hostElement,{"--ytd-expander-max-lines":""+H,"--ytd-expander-collapsed-height":""}):_.Sr(this.hostElement,{"--ytd-expander-collapsed-height":f+"px","--ytd-expander-max-lines":""})};
_.R.handleMoreTap=function(f){this.disableToggle||(_.YE(this.hostElement,"yt-expander-more-tapped"),this.toggle(f,!0))};
_.R.handleLessTap=function(f){_.YE(this.hostElement,"yt-expander-less-tapped");this.toggle(f,!1)};
_.R.initChildrenObserver=function(){var f=this;this.observer=new MutationObserver(function(){f.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.J("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.Nl(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var H;(H=f.resizeThrottle)==null||H.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.R.childrenChanged=function(){var f=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){Wn(function(){f.canToggleJobId=0;f.calculateCanCollapse()})}))};
_.R.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};
_.R.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.R.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.bM("collapsed-changed",this.collapsed))};
_.R.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.bM("is-toggled-changed",this.isToggled))};
_.R.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.bM("can-toggle-changed",this.canToggle))};
_.H7.Object.defineProperties(Nv.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
Nv.prototype.canToggleChangedForBinding=Nv.prototype.canToggleChangedForBinding;Nv.prototype.isToggledChangedForBinding=Nv.prototype.isToggledChangedForBinding;Nv.prototype.collapsedChangedForBinding=Nv.prototype.collapsedChangedForBinding;Nv.prototype.observeCollapsedHeightAndMaxLines=Nv.prototype.observeCollapsedHeightAndMaxLines;Nv.prototype.onIronResize=Nv.prototype.onIronResize;Nv.prototype.reversedChanged=Nv.prototype.reversedChanged;Nv.prototype.toggledChanged=Nv.prototype.toggledChanged;
Nv.prototype.alwaysToggleableChanged=Nv.prototype.alwaysToggleableChanged;_.E([_.B(_.x3),_.N("design:type",Object)],Nv.prototype,"ironResizableBehavior",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Nv.prototype,"alignAuto",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Nv.prototype,"collapsed",void 0);_.E([_.F(),_.N("design:type",Object)],Nv.prototype,"isToggled",void 0);_.E([_.F(),_.N("design:type",Object)],Nv.prototype,"alwaysCollapsed",void 0);
_.E([_.F(),_.N("design:type",Object)],Nv.prototype,"canToggle",void 0);_.E([_.F(),_.N("design:type",Object)],Nv.prototype,"collapsedHeight",void 0);_.E([_.F(),_.N("design:type",Object)],Nv.prototype,"disableToggle",void 0);_.E([_.F(),_.N("design:type",Object)],Nv.prototype,"alwaysToggleable",void 0);_.E([_.F(),_.N("design:type",Object)],Nv.prototype,"reversed",void 0);_.E([_.F(),_.N("design:type",Number)],Nv.prototype,"maxNumberOfLines",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.N("design:type",Object)],Nv.prototype,"shouldUseNumberOfLines",void 0);_.E([_.F(),_.N("design:type",Object)],Nv.prototype,"recomputeOnResize",void 0);_.E([_.lJ("#content"),_.N("design:type",HTMLDivElement)],Nv.prototype,"content",void 0);_.E([_.xV("alwaysToggleable"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Nv.prototype,"alwaysToggleableChanged",null);
_.E([_.xV("isToggled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Nv.prototype,"toggledChanged",null);_.E([_.z("canToggleJobId"),_.N("design:type",Object),_.N("design:paramtypes",[])],Nv.prototype,"isResetting",null);_.E([_.Zw("reversed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Nv.prototype,"reversedChanged",null);
_.E([_.sE("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Nv.prototype,"onIronResize",null);_.E([_.Zw("maxNumberOfLines","collapsedHeight"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Nv.prototype,"observeCollapsedHeightAndMaxLines",null);_.E([_.Zw("collapsed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Nv.prototype,"collapsedChangedForBinding",null);
_.E([_.Zw("isToggled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Nv.prototype,"isToggledChangedForBinding",null);_.E([_.Zw("canToggle"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Nv.prototype,"canToggleChangedForBinding",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-expander"})],Nv);
_.G(Nv,"ytd-expander",function(){if(eoh!==void 0)return eoh;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return eoh=f},{mode:1});var ci=function(){return _.K.apply(this,arguments)||this};
_.e(ci,_.K);ci.prototype.computeIsCarousel=function(f){return!!f.isCarousel};
ci.prototype.observeLightsourcePalette=function(){var f,H=(f=this.data)==null?void 0:f.vibrantsourceColorPaletteData;H&&_.r6(this.hostElement,H)};
ci.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
ci.prototype.observeLightsourcePalette=ci.prototype.observeLightsourcePalette;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ci.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],ci.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],ci.prototype,"data",void 0);_.E([_.F({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],ci.prototype,"isCarousel",void 0);
_.E([_.Zw("data.vibrantsourceColorPaletteData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ci.prototype,"observeLightsourcePalette",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],ci);
_.G(ci,"ytd-media-upsell-renderer",function(){if(Ufo!==void 0)return Ufo;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Ufo=f},{mode:2});var Ljv;var Xn=function(){var f=_.K.apply(this,arguments)||this;f.JSC$14930_playerEvents=new Map;f.listeningToPlayer=!1;f.startX=0;f.active=!1;f.shouldShowButtons=_.J("web_buttons_hidden_killswitch");f.isHighlighted=!1;f.useHighlightStyling=_.J("web_enable_deeper_metadata_highlight_styling");f.modern=_.J("kevlar_modern_sd");f.enableProblemWalkthrough=_.J("problem_walkthrough_sd");return f};
_.e(Xn,_.K);_.R=Xn.prototype;
_.R.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}}}}}};
_.R.created=function(){this.JSC$14930_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.R.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.jr(this,this.onRepeatButtonToggle));_.J("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.jr(this,this.onActiveUpdate))};
_.R.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.jr(this,this.onRepeatButtonToggle));_.J("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.jr(this,this.onActiveUpdate))};
_.R.onDataChanged=function(){this.removePlayerListeners()};
_.R.onColorPaletteChange=function(){var f={},H;if(_.o9()==="USER_INTERFACE_THEME_DARK"&&((H=this.data)==null?0:H.darkColorPalette)){var v=this.data.darkColorPalette;f["--ytd-macro-markers-list-item-background-color"]=_.cS(this.get("section2Color",v))}else{var t;_.o9()==="USER_INTERFACE_THEME_LIGHT"&&((t=this.data)==null?0:t.lightColorPalette)&&(v=this.data.lightColorPalette,f["--ytd-macro-markers-list-item-background-color"]=_.cS(this.get("section3Color",v)))}v?(f["--ytd-macro-markers-list-item-title-color"]=
_.cS(this.get("primaryTitleColor",v)),f["--ytd-macro-markers-list-item-secondary-color"]=_.cS(this.get("secondaryTitleColor",v)),f["--ytd-macro-markers-list-item-timestamp-background-color"]=_.cS(this.get("section1Color",v)),this.customButtonProperties={customColors:{color:_.cS(this.get("primaryTitleColor",v))}},this.useColorSampling=!0):(f["--ytd-macro-markers-list-item-background-color"]="initial",f["--ytd-macro-markers-list-item-title-color"]="initial",f["--ytd-macro-markers-list-item-secondary-color"]=
"initial",f["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.Sr(this.hostElement,f)};
_.R.onEndpointMouseDown=function(f){this.startX=f.clientX};
_.R.onEndpointClick=function(f){var H=this,v,t,M;return _.Y(function(h){if(h.nextAddress==1){if(H.startX!==f.clientX)return f.preventDefault(),h.return();H.data&&H.ytRendererBehavior.logExplicitClick(H.data);if(!H.seekWithAnimationOnClick)return h.jumpTo(0);if(f.button!==0||f.shiftKey||f.altKey||f.metaKey||f.ctrlKey||_.w6(_.f2(f),H.hostElement,["BUTTON".toString()]))return h.return();f.stopPropagation();f.preventDefault();return H.data?h.yield(_.tj().getPlayerPromise(),3):h.return()}v=h.yieldResult;
M=(t=_.U(H.data.onTap,_.wI))==null?void 0:t.startTimeSeconds;M!==void 0&&v.seekToTimeWithAnimation(M*1E3,_.fG(H.data.title));_.Bj(h)})};
_.R.computeLayout=function(f){return f};
_.R.computeIsHighlighted=function(f){return!!f};
_.R.computeCarouselType=function(f){return f};
_.R.hideModernCarousel=function(f){return this.modern&&this.hideThumbnail(f)};
_.R.hideThumbnail=function(f){return this.enableProblemWalkthrough&&f!==null&&f==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.R.onRepeatButtonToggle=function(f){var H=this;f.detail.toggled&&_.tj().getPlayerPromise().then(function(v){H.ytPlayerListenerBehavior.listenToPlayerEvents(v,H.JSC$14930_playerEvents);H.listeningToPlayer=!0})};
_.R.onLoopRangeChange=function(f){var H=_.mF(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(H){var v=H.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",H.polymerController.data);if(v){var t=Number(v.endTimeMs);if(Number(v.startTimeMs)!==(f==null?void 0:f.startTimeMs)||t!==(f==null?void 0:f.endTimeMs))H.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.R.removePlayerListeners=function(){var f=this;this.listeningToPlayer&&_.tj().getPlayerPromise().then(function(H){f.ytPlayerListenerBehavior.unlistenFromPlayerEvents(H,f.JSC$14930_playerEvents);f.listeningToPlayer=!1})};
_.R.onActiveUpdate=function(f){this.active=f.detail.active};
Xn.prototype.onColorPaletteChange=Xn.prototype.onColorPaletteChange;Xn.prototype.onDataChanged=Xn.prototype.onDataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Xn.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Xn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.im.YtPlayerListenerBehavior),_.N("design:type",_.kI)],Xn.prototype,"ytPlayerListenerBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],Xn.prototype,"data",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Xn.prototype,"useCustomColors",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Xn.prototype,"active",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Xn.prototype,"shouldShowButtons",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.N("design:type",String)],Xn.prototype,"layout",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.N("design:type",Object)],Xn.prototype,"isHighlighted",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Xn.prototype,"useHighlightStyling",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Xn.prototype,"modern",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Xn.prototype,"enableProblemWalkthrough",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.N("design:type",String)],Xn.prototype,"carouselType",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Xn.prototype,"useColorSampling",void 0);_.E([_.F(),_.N("design:type",Boolean)],Xn.prototype,"seekWithAnimationOnClick",void 0);_.E([_.F(),_.N("design:type",Object)],Xn.prototype,"customButtonProperties",void 0);
_.E([_.lJ("#repeat-button"),_.N("design:type",HTMLElement)],Xn.prototype,"repeatButton",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xn.prototype,"onDataChanged",null);_.E([_.Zw("data.lightColorPalette","data.darkColorPalette"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xn.prototype,"onColorPaletteChange",null);_.E([_.u({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],Xn);
_.G(Xn,"ytd-macro-markers-list-item-renderer",function(){if(Ljv!==void 0)return Ljv;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Ljv=f},{mode:1});var xf_;var B0M;var Az=function(){var f=_.K.apply(this,arguments)||this;f.modernTypography=_.J("web_modern_typography");return f};
_.e(Az,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Az.prototype,"ytRendererBehavior",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Az.prototype,"modernTypography",void 0);_.E([_.F(),_.N("design:type",Object)],Az.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],Az);
_.G(Az,"ytd-title-and-button-list-header-renderer",function(){if(B0M!==void 0)return B0M;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return B0M=f},{mode:1});var zov;var FjM=new _.iN("BUTTON_RENDERER_WIZ_TOKEN"),rOa=new _.iN("BUTTON_RENDERER_TOKEN");_.bv=_.a(function(f){var H=_.t8().resolve(_.vh(FjM));if(H)return _.O(H,Object.assign({},f));var v=_.t8().resolve(rOa);return v?_.O(I4s,null,function(){return _.O(q$,null,function(){var t,M,h,y,m,W,I,S,d,Z,l,L;return void v(f.data(),{onButtonClickCallback:f.onButtonClickCallback,shouldShowIcons:(t=f.shouldShowIcons)==null?void 0:t.call(f),icon:(M=f.icon)==null?void 0:M.call(f),processAllEndpoints:(h=f.processAllEndpoints)==null?void 0:h.call(f),preventDefault:(y=f.preventDefault)==null?void 0:y.call(f),
stopPropagation:(m=f.stopPropagation)==null?void 0:m.call(f),disableButtonRendererClickHandling:(W=f.disableButtonRendererClickHandling)==null?void 0:W.call(f),className:(I=f.className)==null?void 0:I.call(f),buttonOverrides:(S=f.buttonOverrides)==null?void 0:S.call(f),forceModernIconButton:(d=f.forceModernIconButton)==null?void 0:d.call(f),isSubscribe:(Z=f.isSubscribe)==null?void 0:Z.call(f),alignByText:(l=f.alignByText)==null?void 0:l.call(f),forceDisabled:(L=f.forceDisabled)==null?void 0:L.call(f)})})}):
_.O(_.R8,null)},"ja");
_.bv.idomCompat=!0;var KjT=_.a(function(f){var H=f.data,v=_.vK(f.useSquareAspectRatio,!1);return _.O("dismissed-mini-game-card-view-model",null,_.O(_.g,{cond:function(){var t,M;return(t=H().responseText)==null?void 0:(M=t.runs)==null?void 0:M.length},
then:function(){var t={};return _.O("div",{class:_.S2("yt-mini-game-card-view-model__dismissed-card",(t["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!v()},t["yt-mini-game-card-view-model--dismissed-square-card"]=v,t))},_.O("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.O(_.g,{cond:function(){return H().responseText.runs[0].text},
then:function(M){return _.O("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:M},M)}}),_.O(_.Jj,{data:function(){return H().buttons}},{buttonRenderer:_.bv,
buttonViewModel:_.Wp})))}}))},"ka");var aov=_.a(function(f){f=_.tV(f,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var H=f.data,v=f.useFullWidth,t=f.isDesktopWeb,M=f.addSearchResultTopMargin,h=function(){return H().layout},y=function(){return H().title},m=function(){return H().metadataText?H().metadataText:H().genre},W=function(){return H().channelName},I=function(){return H().image},S=function(){return H().colorPalette},d=function(){return H().actionButton},Z=function(){return H().overflowButton},
l=function(){return H().avatar},L=function(){var C={};
C=_.S2("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(C["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return t()},C));
return _.O("div",{class:C},_.O(Df_,{imageData:I,colorPalette:S}),_.O(oHo,{onTap:function(){return H().onTap},
imageData:I,accessibilityText:function(){return H().accessibilityText},
overlayBadgeText:function(){return H().overlayBadgeText},
iconName:function(){return H().iconName},
unplayableInlinePlaybackIconName:function(){return H().unplayableInlinePlaybackIconName},
isDesktopWeb:t}),_.O(_.g,{cond:function(){return!t()},
then:function(){return _.O(_.R8,null,_.O(nHC,{layout:h,colorPalette:S,isDesktopWeb:t,overflowButton:Z,avatar:l,onTap:function(){return H().onTap},
genre:m,title:y,channelName:W}),_.O(p9C,{actionButton:d}))}}))},r=function(){var C={};
C=_.S2((C["yt-mini-game-card-view-model--search-result-desktop"]=function(){return t()},C["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!t()},C["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return M()},C));
return _.O("div",{class:C},L(),_.O(QoZ,{description:function(){return H().description},
isDesktopWeb:t,title:y,genre:m,onTap:function(){return H().onTap},
actionButton:d,overflowButton:Z,avatar:l,channelName:W}))},n=function(){var C={};
C=_.S2("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(C["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return t()},C["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return t()&&H().width===135},C["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return t()},C["yt-mini-game-card-view-model--big-metadata-font"]=function(){return H().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},C["yt-mini-game-card-view-model--use-full-width"]=
function(){return v()},C["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!d()},C));
return _.O("div",{class:C},_.O(uka,{colorPalette:S,isDesktopWeb:t,onTap:function(){return H().onTap},
accessibilityText:function(){return H().accessibilityText},
overlayBadgeText:function(){return H().overlayBadgeText},
iconName:function(){return H().iconName},
unplayableInlinePlaybackIconName:function(){return H().unplayableInlinePlaybackIconName},
actionButton:d,imageData:I}),_.O(nHC,{layout:h,colorPalette:S,isDesktopWeb:t,overflowButton:Z,avatar:l,onTap:function(){return H().onTap},
genre:m,title:y,channelName:W}))},Q=function(){var C={};
C=_.S2("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(C["yt-mini-game-card-view-model--square-card-desktop"]=function(){return t()},C["yt-mini-game-card-view-model--use-full-width"]=function(){return v()},C));
return _.O("div",{class:C},_.O(oHo,{onTap:function(){return H().onTap},
imageData:I,accessibilityText:function(){return H().accessibilityText},
overlayBadgeText:function(){return H().overlayBadgeText},
iconName:function(){return H().iconName},
unplayableInlinePlaybackIconName:function(){return H().unplayableInlinePlaybackIconName},
isDesktopWeb:t}),_.O(nHC,{layout:h,colorPalette:S,isDesktopWeb:t,overflowButton:Z,avatar:l,onTap:function(){return H().onTap},
genre:m,title:y,channelName:W}))};
return _.O("mini-game-card-view-model",{class:f.className},_.O(_.B6,null,_.O(_.Lc,{when:function(){return h()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return n()}),_.O(_.Lc,{when:function(){return h()==="MINI_APP_LAYOUT_SQUARE"}},function(){return Q()}),_.O(_.Lc,{when:function(){return h()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return r()})))},"la");
aov.idomCompat=!0;var p9C=_.a(function(f){var H=_.vK(f.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.O(_.Jj,{data:f.actionButton},{buttonViewModel:function(v){return _.O("div",{class:H},_.O(_.Wp,{data:v.data}))}})},"ma"),oHo=_.a(function(f){var H=f.onTap;
var v=f.imageData;var t=f.accessibilityText;var M=f.overlayBadgeText;var h=f.iconName;var y=f.unplayableInlinePlaybackIconName;f=f.isDesktopWeb;return _.O(_.VU,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:H},_.O(_.Hn,{data:v,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(t==null?void 0:t())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.O(Pch,{overlayBadgeText:M,iconName:h,unplayableInlinePlaybackIconName:y,isDesktopWeb:f}))},"na"),Pch=_.a(function(f){var H=f.overlayBadgeText;
var v=f.iconName;var t=f.unplayableInlinePlaybackIconName;var M=f.isDesktopWeb;return _.O("div",{class:"yt-mini-game-card-view-model__badge-container"},_.O(_.g,{cond:v,then:function(h){return _.O("div",{class:"yt-mini-game-card-view-model__badge"},_.O("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.O(_.JE,{icon:h,className:"yt-mini-game-card-view-model__icon",size:12}),_.O("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},H)))}}),_.O(_.g,{cond:function(){return!v()&&
H()},
then:function(){return _.O("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},H)}}),_.O(_.g,{cond:function(){return t()&&M()},
then:function(){return _.O("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.O(_.JE,{icon:t,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"oa"),Df_=_.a(function(f){var H=f.colorPalette;
var v=f.imageData;var t=function(){return H().vibrantColorPalette?H().vibrantColorPalette.section2Color:H().sectionTwoColor};
return _.O(_.R8,null,_.O("div",{class:"yt-mini-game-card-view-model__background-base",style:_.ZE({"background-color":function(){return XE(t(),"1")}})}),_.O("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.ZE({"background-image":function(){return"url("+v().sources[0].url+")"}})}),_.O("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.ZE({background:function(){return"linear-gradient(180deg,\n    "+XE(t(),".8")+" 0%,\n    "+XE(t(),".4")+" 25%,\n    "+XE(H().vibrantColorPalette?H().vibrantColorPalette.section4Color:H().sectionFourColor,".8")+" 100%)"}})}))},"pa"),nHC=_.a(function(f){var H=f.layout;
var v=f.colorPalette;var t=f.overflowButton;var M=f.avatar;var h=f.onTap;var y=f.title;var m=f.channelName;var W=f.genre;var I=function(){var S;return H()!=="MINI_APP_LAYOUT_SQUARE"&&((S=v())==null?0:S.textPrimaryColor)?"color: "+XE(v().textPrimaryColor,".7"):""};
return _.O("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.O(_.g,{cond:M,then:function(){return _.O("div",{class:"yt-mini-game-card-view-model__avatar"},_.O(_.Jj,{data:M},{avatarViewModel:_.K5}))}}),_.O(_.VU,{command:h,
className:"yt-mini-game-card-view-model__metadata-details"},_.O("h3",{class:"yt-mini-game-card-view-model__title",title:y},y),_.O(_.g,{cond:M,then:function(){return _.O("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.O("span",{class:"yt-mini-game-card-view-model__genre",title:m,style:I},m),_.O("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:I},W))},
else:function(){return _.O("span",{class:"yt-mini-game-card-view-model__genre",title:W},W)}})),_.O("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.O(_.Jj,{data:t},{buttonViewModel:function(S){var d=S.data;
return _.O(_.Wp,{data:function(){return Object.assign({},d(),{customFontColor:H()==="MINI_APP_LAYOUT_SINGLETON"?d().customFontColor:void 0})}})}})))},"qa"),uka=_.a(function(f){var H=f.colorPalette;
var v=f.isDesktopWeb;var t=f.onTap;var M=f.accessibilityText;var h=f.overlayBadgeText;var y=f.iconName;var m=f.unplayableInlinePlaybackIconName;var W=f.actionButton;f=f.imageData;return _.O("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.O(Df_,{imageData:f,colorPalette:H}),_.O(oHo,{onTap:t,imageData:f,accessibilityText:M,overlayBadgeText:h,iconName:y,unplayableInlinePlaybackIconName:m,isDesktopWeb:v}),_.O(_.g,{cond:function(){return W==null?void 0:W()},
then:function(){return _.O(p9C,{actionButton:W})}}))},"ra"),QoZ=_.a(function(f){var H=f.description;
var v=f.isDesktopWeb;var t=f.title;var M=f.genre;var h=f.onTap;var y=f.actionButton;var m=f.overflowButton;var W=f.avatar;f=f.channelName;var I={};I=_.S2("yt-mini-game-card-view-model--search-result-metadata-wrapper",(I["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=v,I["yt-mini-game-card-view-model--show-unplayable-on-hover"]=v,I["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!v()},I));
var S={};S=_.S2("yt-mini-game-card-view-model__search-result-info-row",(S["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!v()},S));
return _.O("div",{class:I},_.O("div",{class:S},_.O(_.VU,{command:h,className:"yt-mini-game-card-view-model__metadata-details"},_.O("h3",{class:"yt-mini-game-card-view-model__title",title:t},t),_.O("span",{class:"yt-mini-game-card-view-model__genre",title:M},M)),_.O(p9C,{actionButton:y,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.O("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.O(_.Jj,{data:m},{buttonViewModel:_.Wp}))),_.O("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.O("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.O("div",{class:"yt-mini-game-card-view-model__avatar"},_.O(_.Jj,{data:W},{avatarViewModel:function(d){var Z=d.data;return _.O(_.K5,{data:function(){return Object.assign({},Z(),{avatarImageSize:v()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.O(_.VU,{command:h,
className:"yt-mini-game-card-view-model__description"},_.O("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},f)),_.O(_.VU,{command:h,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.O("div",null)))),_.O(_.g,{cond:v,then:function(){return _.O(_.VU,{command:h,className:"yt-mini-game-card-view-model__description"},H)}}))},"sa");_.yn(aov,"mini-game-card-view-model",{props:{data:_.ki,className:_.ki,useFullWidth:_.ki,isDesktopWeb:_.ki,addSearchResultTopMargin:_.ki}});_.yn(KjT,"dismissed-mini-game-card-view-model",{props:{data:_.ki,useSquareAspectRatio:_.ki}});var iv=function(){var f=_.K.apply(this,arguments)||this;f.isSearch=!1;f.isRichGrid=!1;return f};
_.e(iv,_.K);_.R=iv.prototype;_.R.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.R.dismissibleItemOnYtServiceRequestSent=function(f,H){H.actions&&this.dismissibleItemProcessActions(f,H.actions)};
_.R.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.R.dataChanged=function(){this.dismissibleItemReset()};
_.R.dismissibleItemProcessActions=function(f,H){for(var v=0;v<H.length;v++){var t=H[v];_.U(t,_.sp)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.U(t,_.sp)),f.stopPropagation())}};
_.R.dismissibleItemHandleReplaceEnclosingAction=function(f){this.dismissedRenderer=f.item;this.isDismissed=!0};
_.H7.Object.defineProperties(iv.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var f;return!!this.data&&!((f=this.dismissedRenderer)==null?0:f.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.dismissedRenderer)==null||!f.notificationMultiActionRenderer)}}});
iv.prototype.dataChanged=iv.prototype.dataChanged;iv.prototype.dismissibleItemOnRequestSent=iv.prototype.dismissibleItemOnRequestSent;iv.prototype.dismissibleItemOnYtServiceRequestSent=iv.prototype.dismissibleItemOnYtServiceRequestSent;_.E([_.F(),_.N("design:type",Object)],iv.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],iv.prototype,"isSearch",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],iv.prototype,"isDismissed",void 0);
_.E([_.F(),_.N("design:type",Object)],iv.prototype,"dismissedRenderer",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],iv.prototype,"isRichGrid",void 0);_.E([_.z("data.layout"),_.N("design:type",Object),_.N("design:paramtypes",[])],iv.prototype,"useSquareAspectRatio",null);_.E([_.z("data","dismissedRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],iv.prototype,"showCard",null);
_.E([_.z("data","dismissedRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],iv.prototype,"showDismissed",null);_.E([_.sE("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.ER]),_.N("design:returntype")],iv.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.E([_.sE("yt-service-request-sent-button-renderer"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],iv.prototype,"dismissibleItemOnRequestSent",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],iv.prototype,"dataChanged",null);_.E([_.GW({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],iv);
_.G(iv,"ytd-mini-game-card-view-model",function(){if(zov!==void 0)return zov;var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return zov=f},{mode:_.WK("kevlar_poly_si_batch_j081")?1:2});var GT_;var Cca;var kD=function(){return _.v7.apply(this,arguments)||this};
_.e(kD,_.v7);kD.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
kD.prototype.getContinuationUrl=function(f){var H={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(H.itct=this.data.clickTrackingParams);return _.kk(f,H)};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],kD.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],kD.prototype,"data",void 0);_.E([_.GW({is:"yt-reload-continuation",noInjection:!0})],kD);var EHa;var N0_;var T6=function(){var f=_.K.apply(this,arguments)||this;f.notificationData={};return f};
_.e(T6,_.K);_.R=T6.prototype;_.R.isMenuExpanded=function(f){return f&&f.length<=1?"undefined":"false"};
_.R.dataChanged_=function(){this.selected=void 0;var f=this.computeSelectedIndex_(this.data);f>=0&&(this.selected=f);f=this.data&&this.data.length>1;_.WB(this.hostElement,"has-items",f);_.mF(this.hostElement).querySelector("#label").tabIndex=f?0:-1};
_.R.onDropdownOpen=function(){var f=_.uy();if(this.parentTrackingParams&&this.data){var H=_.zK(this.parentTrackingParams);this.data.forEach(function(v){f&&H&&v.trackingParams&&(v=_.zK(v.trackingParams),_.Xl(f,H,v),_.i0(f,[v]))})}else this.parentTrackingParams||_.pb(new _.e$("No parent tracking params passed in for yt-dropdown-menu."))};
_.R.hasNotification=function(f){var H;if(f.targetId&&((H=this.notificationData)==null?0:H.targetId)){var v;return f.targetId===((v=this.notificationData)==null?void 0:v.targetId)}};
_.R.computeSelectedIndex_=function(f){if(f)for(var H=0,v=f.length;H<v;H++)if(f[H].selected)return H;return-1};
_.R.computeLabel_=function(f){return this.data&&f!=void 0?this.data[f].title:""};
_.R.computeShowIcon_=function(f,H){return!H&&!!f};
_.R.computeVerticalOffset_=function(f){return f?36:0};
_.R.computeEndpoint_=function(f){return f.endpoint||f.navigationEndpoint};
_.R.onLabelClick_=function(f){this.data&&this.data.length<=1?f.stopPropagation():this.menuExpanded="true"};
_.R.onIronActivate_=function(f){f=f.detail.item;var H=_.mF(this.hostElement).querySelector("#repeat").itemForElement(f);if(H&&H.trackingParams){var v=_.uy(),t=_.zK(H.trackingParams);v&&_.Ti(v,t)}if(H&&H.serviceEndpoint)_.J("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(H.serviceEndpoint):_.WV(this.hostElement,[H.serviceEndpoint]),_.YE(this.hostElement,"yt-playlist-reloading");else a:{if((H=f.querySelector("yt-supported-renderers"))&&
(H=H.rendererElement)&&H.is=="yt-reload-continuation"){H.trigger();break a}(f=f.querySelector("yt-reload-continuation"))&&f.trigger()}};
_.R.onTap_=function(f){f.preventDefault()};
_.R.onItemTap_=function(f){this.ytEndpointBehavior.onEndpointTap_(f)};
_.R.onLinkFocus_=function(f){try{var H=f.target}catch(t){}if(H){var v=H.querySelector("tp-yt-paper-item");v&&_.iJ(this,"focus",function(){v.focus()})}};
_.R.onMenuClose_=function(){this.menuExpanded="false"};
_.R.isLabelIconActive_=function(f){return f==="true"};
_.R.computeHasSubtitle_=function(f){return!!f};
_.R.computeHrefForItem_=function(f){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(f))};
_.R.updateSelectedFromBinding=function(f){this.selected=f.detail.value};
_.H7.Object.defineProperties(T6.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
T6.prototype.onMenuClose_=T6.prototype.onMenuClose_;T6.prototype.onTap_=T6.prototype.onTap_;T6.prototype.onIronActivate_=T6.prototype.onIronActivate_;T6.prototype.onDropdownOpen=T6.prototype.onDropdownOpen;T6.prototype.dataChanged_=T6.prototype.dataChanged_;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],T6.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.S3.YtEndpointBehavior),_.N("design:type",Object)],T6.prototype,"ytEndpointBehavior",void 0);
_.E([_.F(),_.N("design:type",Array)],T6.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],T6.prototype,"parentTrackingParams",void 0);_.E([_.F(),_.N("design:type",Object)],T6.prototype,"selected",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],T6.prototype,"useLabel",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],T6.prototype,"useComputedAriaLabel",void 0);_.E([_.F(),_.N("design:type",String)],T6.prototype,"icon",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],T6.prototype,"iconLabel",void 0);_.E([_.F(),_.N("design:type",String)],T6.prototype,"ariaLabel",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],T6.prototype,"disabled",void 0);_.E([_.F({computed:"isMenuExpanded(data)"}),_.N("design:type",String)],T6.prototype,"menuExpanded",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],T6.prototype,"closeOnActivate",void 0);
_.E([_.F({reflectToAttribute:!0,value:_.J("web_modern_buttons")}),_.N("design:type",Boolean)],T6.prototype,"modernButtons",void 0);_.E([_.F(),_.N("design:type",Object)],T6.prototype,"notificationData",void 0);_.E([_.z("ariaLabel, selected"),_.F(),_.N("design:type",String),_.N("design:paramtypes",[])],T6.prototype,"computedAriaLabel",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],T6.prototype,"dataChanged_",null);
_.E([_.sE("paper-dropdown-open"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],T6.prototype,"onDropdownOpen",null);_.E([_.sE("iron-activate"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],T6.prototype,"onIronActivate_",null);_.E([_.sE("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],T6.prototype,"onTap_",null);
_.E([_.sE("iron-overlay-closed"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],T6.prototype,"onMenuClose_",null);_.E([_.GW({is:"yt-dropdown-menu",disableElementRegistration:!0})],T6);
_.G(T6,"yt-dropdown-menu",function(){if(N0_===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;EHa===void 0&&(EHa=document.createElement("template"));var t=EHa;v.call(H,t.content.cloneNode(!0),f.content.firstChild);N0_=f}f=N0_;return f},{mode:2});var wq=function(){var f=_.K.apply(this,arguments)||this;f.hasNotification=!1;return f};
_.e(wq,_.K);wq.prototype.computeId=function(f){return f};
wq.prototype.computeHorizontalAlign=function(f){return f?"right":"left"};
wq.prototype.computeAccessibilityLabel=function(f){var H,v;return((H=f.accessibility)==null?void 0:(v=H.accessibilityData)==null?void 0:v.label)||null};
wq.prototype.notificationDataChanged=function(){var f;this.hasNotification=!!this.notificationData&&!((f=this.data)==null?0:f.icon)};
wq.prototype.notificationDataChanged=wq.prototype.notificationDataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],wq.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.GF.YtLiveChatTooltipTargetingBehavior),_.N("design:type",Object)],wq.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],wq.prototype,"data",void 0);_.E([_.F({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.N("design:type",String)],wq.prototype,"id",void 0);
_.E([_.F({value:!1}),_.N("design:type",Boolean)],wq.prototype,"isRightAligned",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],wq.prototype,"disabled",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],wq.prototype,"closeOnActivate",void 0);_.E([_.F(),_.N("design:type",Object)],wq.prototype,"notificationData",void 0);_.E([_.F(),_.N("design:type",Object)],wq.prototype,"hasNotification",void 0);
_.E([_.F({value:!1}),_.N("design:type",Boolean)],wq.prototype,"useComputedAriaLabel",void 0);_.E([_.Zw("notificationData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wq.prototype,"notificationDataChanged",null);_.E([_.GW({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],wq);
_.G(wq,"yt-sort-filter-sub-menu-renderer",function(){if(Cca===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;GT_===void 0&&(GT_=document.createElement("template"));var t=GT_;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Cca=f}f=Cca;return f},{mode:2});var cOb=_.a(function(f){var H=f.data;var v=_.d6(function(){var h=H().onTap;(h=_.U(h,_.PK))&&_.t8().resolve(_.MJ).resolveCommand(h);return!1}),t=function(){return{sources:[{url:H().thumbnailUrl,
width:120,height:90}]}},M=function(){return H().rating&&H().ratingA11yLabel&&H().reviewsCount&&H().reviewsCountA11yLabel};
return _.O("place-data-view-model",null,_.O(_.g,{cond:function(){return H().placeName&&H().placeCategory},
then:function(){return _.O("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":v},_.O(_.Hn,{data:t,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.O(_.VU,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return H().onTap}},_.O("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return H().placeName}},function(){return H().placeName})),_.O("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.O(_.g,{cond:M,
then:function(){return _.O("div",{class:_.S2("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.O("span",{class:"score",title:function(){return H().ratingA11yLabel}},function(){return H().rating}),_.O("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.O(_.JE,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.O("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return H().reviewsCountA11yLabel}},function(){return H().reviewsCount}))},
else:function(){return _.O("div",{class:_.S2("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.O("div",{class:_.S2("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.O("span",{class:"category",
title:function(){return H().placeCategory}},function(){return H().placeCategory}))))}}))},"ta");
cOb.idomCompat=!0;_.yn(cOb,"place-data-view-model",{props:{data:_.ki}});var X9v=new _.iN("INLINE_PLAYBACK_HOOK_TOKEN");var AOZ=ODH({sharedUi:vM_});_.E7=I3B(AOZ)(AOZ.sharedUi,{animatedThumbnailEnabledSelector:function(f){return f.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(f){return f.inlinePreviewEnabled},
currentPageTypeSelector:function(f){return f.currentPageType},
currentPageSubTypeSelector:function(f){return f.currentPageSubType}});var bx_=function(f){this.setActiveSlideIndex=f;this.jobIds=[];this.isSlideshowPlaying=!1},T0v=function(f,H){f.isSlideshowPlaying||(f.isSlideshowPlaying=!0,ixh(f),kTH(f,H,0))},ixh=function(f){_.OR(_.nN,function(){f.setActiveSlideIndex(0)},1)},kTH=function(f,H,v){f.jobIds.push(_.OR(_.nN,function(){var t=v<H-1?v+1:0;
f.setActiveSlideIndex(t);kTH(f,H,t)},1800))};var w9M=new _.iN("IMAGE_ON_LOAD_HANDLER_TOKEN");var qNo=_.a(function(f){return _.O("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.O(_.g,{cond:function(){var H;return(H=f.data())==null?void 0:H.thumbnail},
then:function(H){return _.O(_.Hn,{data:H,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ua");_.f8n=_.a(function(f){var H=f.data;var v=f.lockupExperiments;f={};return _.O("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.O("div",{class:_.S2("ytThumbnailOverlayButtonViewModelButton",(f.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var t;return v&&((t=v())==null?void 0:t.useLegacySizedIconButton)},f))},_.O(_.Jj,{data:function(){return H().overlayButton}},{buttonViewModel:function(t){return _.O(_.Wp,{data:t.data,
buttonOverrides:function(){var M;return v&&((M=v())==null?0:M.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"va");
_.f8n.idomCompat=!0;var HFo=_.a(function(f){return _.O("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.d6(function(H){H.preventDefault();return!1})},_.O(_.Jj,{data:function(){return f.data().buttons}},{toggleButtonViewModel:function(H){return _.O("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.O(_.Fo,{data:H.data}))}}))},"wa");
HFo.idomCompat=!0;var vQn=_.a(function(f){var H=function(){var v;return((v=_.U(f.data().rendererContext,_.dC))==null?void 0:v.label)||""};
return _.O("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.O(_.g,{cond:function(){return f.data().image},
then:function(){return _.O("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.O(_.Hn,{data:function(){return f.data().image},
alt:H}))}}),_.O(_.g,{cond:function(){return f.data().text},
then:function(){return _.O("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return f.data().text})}}))},"xa");var t8a;t8a=_.E7.animatedThumbnailEnabledSelector;_.qv=_.a(function(f){var H=[],v=function(){var Z,l;return TJb((Z=f.width)==null?void 0:Z.call(f),(l=f.height)==null?void 0:l.call(f))},t=_.t8().resolve(_.vh(w9M)),M=_.TN("yt-thumbnail-view-model",function(){H.push("elRef.value set");
var Z;(Z=f.playbackRef)==null||Z.call(f,{thumbnailElRef:M,thumbnail:f.data().image,thumbnailOverlays:f.data().overlays,thumbnailSize:v()})});
_.Kc(function(){H.push("onInit");_.Dt(function(){H.push("onCleanup")})});
var h=_.uE(t8a),y=function(){var Z,l;return(l=(Z=f.aspectRatio)==null?void 0:Z.call(f))!=null?l:0},m=function(){return(f.data().image?_.l$E(f.data().image):y())<=1&&y()===0},W=function(){return m()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},I=function(){M.value||_.pb(new _.e$("Thumbnail elRef.value is null",H.join("\n")));
t&&M.value&&t(M.value)},S=function(){var Z,l;
return((Z=f.hovered)==null?void 0:Z.call(f))&&v()!=="large"&&((l=f.data().overlays)==null?void 0:l.some(function(L){return _.U(L,N4a)}))},d={};
return _.O("yt-thumbnail-view-model",{class:_.S2("yt-thumbnail-view-model",f.className,function(){return xfs(y())},function(){var Z,l;
a:{var L=v(),r=(Z=f.disableRounding)==null?void 0:Z.call(f);Z=(l=f.isClip)==null?void 0:l.call(f);if(!r&&!Z)switch(L){case "large":l="yt-thumbnail-view-model--large";break a;case "small":l="yt-thumbnail-view-model--small";break a;default:l="yt-thumbnail-view-model--medium";break a}l=void 0}return l},(d["yt-thumbnail-view-model--cinematic"]=m,d)),
style:_.ZE({"background-color":function(){var Z,l=m()?(Z=f.data().backgroundColor)==null?void 0:Z.lightTheme:void 0;return l?XE(l,"1"):void 0}}),
el:M},_.O(_.g,{cond:m,then:function(){return _.O("div",{class:"yt-thumbnail-view-model__blurred-image"},_.O(_.Hn,{data:function(){return f.data().image},
alt:"",contentMode:W,targetWidth:f.width,onload:I}))}}),_.O("div",{class:"yt-thumbnail-view-model__image"},_.O(_.Hn,{data:function(){return f.data().image},
alt:"",contentMode:W,targetWidth:f.width,onload:I}),null),_.O(_.Jj,{data:function(){return S()?void 0:f.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:VTn,thumbnailOverlayBadgeViewModel:function(Z){return _.O(yOo,{data:Z.data,thumbnailSize:v,isClip:f.isClip})},
thumbnailBottomOverlayViewModel:function(Z){return _.O(tTb,{data:Z.data,thumbnailSize:v,isClip:f.isClip})},
thumbnailOverlayFullViewModel:vQn,thumbnailOverlayButtonViewModel:function(Z){return _.O(_.f8n,{data:Z.data,lockupExperiments:f.lockupExperiments})}}),_.O(_.Jj,{data:function(){var Z;
return((Z=f.hovered)==null?0:Z.call(f))?f.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(Z){return _.O(rq,{data:Z.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:HFo}),_.O(_.Jj,{data:function(){var Z;return((Z=f.hovered)==null?0:Z.call(f))&&h()?f.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:qNo}),_.O(_.g,{cond:f.isClip,then:function(){return _.O("div",{class:"ytPinkingNsHost"},_.O("svg",{class:"ytPinkingNsPinkingLeft"},_.O("defs",null,_.O("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.O("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.O("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.O("svg",{class:"ytPinkingNsPinkingRight"},_.O("defs",null,_.O("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.O("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.O("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"ya");
_.qv.idomCompat={callbacks:{playbackRef:!0}};var M8b=_.a(function(f){var H=_.V(_.gp(-1,void 0,"RW2Ole")),v=H.next().value,t=H.next().value;_.Kc(function(){var M=new bx_(t);T0v(M,f.data().thumbnails.length);_.Dt(function(){if(M.isSlideshowPlaying){M.isSlideshowPlaying=!1;for(var h=M.jobIds,y=0,m=h.length;y<m;y++)_.nN.cancelJob(h[y]);M.jobIds.length=0}})});
return _.O("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.O(_.Jj,{data:function(){return f.data().thumbnails}},{thumbnailViewModel:function(M,h){return _.O("div",{class:function(){var y=!f.data().primaryThumbnail,m=h(),W=v(),I=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
y&&m===0&&I.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");m<=W&&I.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return I.join(" ")}},_.O(_.qv,{data:M.data,
disableRounding:f.disableRounding}))}}))},"za");
M8b.idomCompat=!0;var B0R=new _.iN("DWELL_DETECTOR_REGISTRY_TOKEN");var R6C=_.a(function(f){var H=zoE(f.triggeringElement),v=function(){return!!f.data().primaryThumbnail},t=function(){var h,y=(h=f.data())==null?void 0:h.maxHeight,m;
h=(m=f.maxHeight)==null?void 0:m.call(f);return y!=null&&h!=null?Math.min(y,h):h!=null?h:y},M=function(){var h=t();
if(h){var y;if(v()&&(y=f.includeStackHeight)!=null&&y.call(f)){var m;y=((m=f.doubleStack)==null?0:m.call(f))?8:4}else y=0;h=h-y-1;if(!(h<0)){m=Math;y=m.ceil;var W,I;var S=k8r((I=(W=f.aspectRatio)==null?void 0:W.call(f))!=null?I:0);return y.call(m,h*S)}}};
return _.O("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.ZE({height:function(){return t()?t()+"px":void 0},
width:function(){return M()?M()+"px":void 0}})},_.O(h6C,{stackEnabled:v,
thumbnailSize:function(){var h,y;return TJb((h=f.width)==null?void 0:h.call(f),(y=f.height)==null?void 0:y.call(f))},
doubleStack:f.doubleStack,stackColor:function(){return f.data().stackColor},
includeStackHeight:f.includeStackHeight},_.O(_.Jj,{data:function(){return f.data().primaryThumbnail}},{thumbnailViewModel:function(h){var y={};
return _.O(_.qv,{data:h.data,width:f.width,height:f.height,aspectRatio:f.aspectRatio,disableRounding:f.disableRounding,className:_.S2((y.ytCollectionThumbnailViewModelHostHasStacks=v,y)),hovered:f.hovered,playbackRef:f.playbackRef})}}),_.O(_.g,{cond:function(){var h;
return H()&&((h=f.data().thumbnails)==null?void 0:h.length)},
then:function(){return _.O("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.O(M8b,{data:f.data,disableRounding:function(){return!v()}}))}})))},"Aa");
R6C.idomCompat={callbacks:{playbackRef:!0}};
var h6C=_.a(function(f){var H=f.children;var v=f.stackEnabled;var t=f.thumbnailSize;var M=f.doubleStack;var h=f.stackColor;var y=f.includeStackHeight;var m,W=(m=_.t8().resolve(_.vh(_.TK)))==null?void 0:m();return _.O(_.g,{cond:v,then:function(){return _.O(DMh,{data:function(){var I,S;return{experimentEnabled:!0,thumbnailSize:t(),doubleStack:M==null?void 0:M(),color:W?h==null?void 0:(I=h())==null?void 0:I.darkTheme:h==null?void 0:(S=h())==null?void 0:S.lightTheme,enableResponsiveMode:!1,includeStackHeight:y==
null?void 0:y()}}},H)},
else:function(){return H}})},"Ba");var V8_=new _.iN("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var HO;_.f_={calledOnce:!0,state:"visible"};HO={calledOnce:!0,state:"hidden"};_.vO=_.a(function(f){var H=f.data;var v=f.customCommandResolver;var t=f.className;var M=f.delayedClassName;var h=f.animationEntityKey;var y=f.isCompactWidth;f=_.V(_.gp(!1,void 0,"aSkCmb"));var m=f.next().value,W=f.next().value,I=_.vK(h,""),S=_.s7(GvE,I),d=function(){var s5,U5;return(U5=(s5=S())==null?void 0:s5.value)!=null?U5:!1},Z=function(){_.HK(_.lF("booleanEntity",I(),{key:I(),
value:!0}));c=void 0};
h=_.V(_.sR(d));var l=h.next().value,L=h.next().value;h=_.V(_.sR(d));var r=h.next().value,n=h.next().value;h=_.V(_.sR(function(){var s5;return d()?(s5=H().styleTransitionConfig)==null?void 0:s5.destinationStyle:void 0}));
var Q=h.next().value,C=h.next().value,w=function(){var s5=Object.assign({},H(),Q()&&{style:Q()});var U5,lH,E5=s5.label,uH=(U5=s5.interaction)==null?void 0:(lH=U5.accessibility)==null?void 0:lH.label;U5=s5.iconImage?s5.label&&s5.label.content?s5.iconLeading?"leading":"trailing":"icon-only":void 0;s5={formattedButtonText:E5,accessibilityLabel:uH,style:Dfs(s5.style),type:oHR(s5.style),state:"active",size:Kjr(s5.size),iconPosition:U5,disabled:!1,aTagConfig:rOe(s5,v)};_.J("enable_desktop_vdcbg_components")&&
(s5.focused=m());return s5},c;
h=_.MV({visibilityCallback:function(s5){var U5,lH=(U5=H().interaction)==null?void 0:U5.onFirstVisible;s5&&lH&&_.XA(lH)},
showOption:_.f_});var A=function(){return HjN(w(),!!H().iconImage)};
f={};t=_.S2(function(){return"ytwAdButtonViewModelHost"},function(){return H().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var s5=!!H().delayedAppearanceConfig,U5=l();
return s5?U5?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var s5=!!H().delayedAppearanceConfig,U5=r();
return s5?U5?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!H().delayedAppearanceConfig||l()?M==null?void 0:M():""},(f.ytwAdButtonViewModelHostCompactWidth=function(){return y==null?void 0:y()},f),t!=null?t:"");
var X=function(){var s5,U5=(s5=H().delayedAppearanceConfig)==null?void 0:s5.delayedInvisibleSeconds;U5&&(c=_.LT(_.nN,function(){L(!0);fg()},U5*1E3))},fg=function(){var s5,U5=(s5=H().delayedAppearanceConfig)==null?void 0:s5.delayedVisibleSeconds;
U5&&(c=_.LT(_.nN,function(){n(!0);gB()},U5*1E3))},gB=function(){var s5,U5=(s5=H().styleTransitionConfig)==null?void 0:s5.styleTransitionSeconds,lH,E5=(lH=H().styleTransitionConfig)==null?void 0:lH.destinationStyle;
U5&&E5?c=_.LT(_.nN,function(){C(E5);Z()},U5*1E3):Z()},O5=function(){var s5;
return(s5=H().delayedAppearanceConfig)==null?void 0:s5.transitionDurationSeconds};
_.Kc(function(){X()});
_.Dt(function(){c&&_.nN.cancelJob(c)});
return _.O("ad-button-view-model",{"on:focusin":_.d6(_.J("enable_desktop_vdcbg_components")?function(){var s5=_.t8().resolve(_.vh(_.RM));s5&&W(s5.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.d6(_.J("enable_desktop_vdcbg_components")?function(){W(!1);return!1}:void 0),
class:t,el:_.tE(h),style:_.ZE({"transition-duration":function(){return O5()?O5()+"s":void 0}})},_.O(_.g,{cond:w,
then:function(){return _.O(_.$p,{data:w,icon:function(){return _.O(_.g,{cond:function(){return H().iconImage},
then:function(s5){return _.O(_.Hn,{data:s5,alt:"",targetWidth:A,targetHeight:A,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"Ca");var yKn=_.a(function(f){var H=f.data;f=function(){return H().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var v=_.MV({visibilityCallback:function(h){var y,m=(y=H().interaction)==null?void 0:y.onFirstVisible;h&&m&&_.XA(m)},
showOption:_.f_}),t={},M={};return _.O("ad-button-group-view-model",{class:_.S2("ytwAdButtonGroupViewModelHost",(t.ytwAdButtonGroupViewModelHostCompactWidth=f,t)),el:_.tE(v)},_.O("div",{class:_.S2("ytwAdButtonGroupViewModelHostSecondaryButton",(M.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=f,M))},_.O(_.Jj,{data:function(){return H().secondaryAdButton}},{adButtonViewModel:function(h){return _.O(_.vO,{data:h.data})}})),_.O("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.O(_.Jj,
{data:function(){return H().primaryAdButton}},{adButtonViewModel:function(h){return _.O(_.vO,{data:h.data})}})))},"Da");var YMC=_.a(function(f){var H=function(){var v;return((v=f.data())==null?void 0:v.answers)||[]};
return _.O("yt-survey-icons",{class:"ytSurveyIconsHost"},_.O("div",{class:"ytSurveyIconsHeader"},_.O("div",{class:"ytSurveyIconsTitle"},function(){var v;return(v=f.data())==null?void 0:v.text}),_.O("div",null,_.O(_.$p,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var v;(v=f.onDismiss)==null||v.call(f)}}},
iconName:"DISMISSAL"}))),_.O("div",null,_.O("div",{class:"ytSurveyIconsAnswers"},_.O(_.eK,{each:function(){return H()},
keyBy:"INDEX"},function(v,t){return _.O("div",null,_.O(_.$p,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var M;(M=f.onSelect)==null||M.call(f,v(),t)}}},
icon:function(){return _.O(_.JE,{icon:function(){var M,h;return(M=v())==null?void 0:(h=M.icon)==null?void 0:h.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.O("div",{class:"ytSurveyIconsAnswersText"},_.O("div",null,function(){return H().length?H()[0].text:""}),_.O("div",null,function(){return H().length?H()[H().length-1].text:""}))))},"Ea");var m5M=_.a(function(f){var H=_.tE(_.nT(function(){var W;return(W=f.data())==null?void 0:W.rendererContext},void 0,void 0,void 0,!0)),v=_.V(_.gp(!1,void 0,"YxWRNc")),t=v.next().value,M=v.next().value,h=_.s7(xME,function(){var W;
return(W=f.data().keys)==null?void 0:W.surveyEntityKey}),y=_.s7(Bnv,function(){var W;
return(W=f.data().keys)==null?void 0:W.surveyStateEntityKey});
_.kF("ytd-slimline-survey-show-action",function(){M(!1)});
var m=function(){var W,I;var S=(W=y())==null?void 0:(I=W.questionStack)==null?void 0:I[0];if(S!==void 0){var d,Z;return(d=h())==null?void 0:(Z=d.questions)==null?void 0:Z[S]}};
v={};return _.O("yt-slimline-survey-view-model",{el:H,class:_.S2("ytSlimlineSurveyViewModelHost",(v.ytSlimlineSurveyViewModelCollapsed=function(){return t()},v))},_.O("div",{class:"ytSlimlineSurveyViewModelContainer"},_.O(_.g,{cond:function(){var W;
return((W=m())==null?void 0:W.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.O(YMC,{data:function(){return m()},
onSelect:function(W,I){var S,d;return _.Y(function(Z){M(!0);if(d=(S=f.data())==null?void 0:S.onSelectRating)_.XA(d),_.HK(Wd9(I));_.Bj(Z)})},
onDismiss:function(){M(!0);var W;var I=(W=h())==null?void 0:W.dismissalFeedbackToken;W=I?{feedbackEndpoint:{feedbackToken:I}}:void 0;W&&_.Cu(W,{form:{element:H.value}})}})}})))},"Fa");var $5h=_.a(function(f){return _.O("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.O(_.Jj,{data:function(){var H;return(H=f.data())==null?void 0:H.attachments}},{flexibleActionsViewModel:function(H){return _.O("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.O(_.ot,{data:H.data,
layout:function(){var v;return((v=f.lockupStyle())==null?void 0:v.arrangement)===1?0:1},
justifyContentOverride:function(){var v;return((v=f.lockupStyle())==null?void 0:v.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(H){return _.O("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.O(m5M,{data:H.data}))},
expandableMetadataViewModel:function(H){H=H.data;var v;return _.O("div",{class:_.S2("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(v=_.t8().resolve(_.vh(V8_)))==null?void 0:v({data:H}))},
adButtonGroupViewModel:function(H){return _.O("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.O(yKn,{data:H.data}))},
adButtonViewModel:function(H){return _.O("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.O(_.vO,{data:H.data,isCompactWidth:!0}))}}))},"Ga");var PcB=_.VQ("rich_grid_min_item_width",310),uke=_.VQ("rich_grid_max_item_width",500);var Wkr=_.a(function(f){var H=f.data;return _.O("br-nz-badge-shape",{class:_.S2(function(){return bxs(H().brNzRatingBadgeType)}),
role:function(){return H().accessibilityText?"img":void 0},
"aria-label":function(){return H().accessibilityText}},function(){var v;
return(v=H())==null?void 0:v.text})},"Ha");_.to=_.a(function(f){var H=function(){var v=f.data(),t,M;if(v){var h=!((t=f.workaroundShortsIsThumbnailBadge)==null||!t.call(f));t=(M=f.modern)==null?void 0:M.call(f);var y;a:switch(v.badgeStyle){case "BADGE_OVERLAY":M=!0;break a;default:M=!1}v={type:h?17:ixB(v.badgeStyle),brNzRatingBadgeType:kTb(v.badgeStyle),text:v.badgeText,icon:v.iconName,isOverlay:M,modern:t||_.J("web_modern_badge_view_model"),accessibilityText:v.accessibilityLabel||((y=_.U(v.rendererContext,_.dC))==null?void 0:y.label)}}else v=
void 0;return v};
return _.O("yt-badge-view-model",{class:_.S2("ytBadgeViewModelHost",f.class)},_.O(_.B6,null,_.O(_.Lc,{when:function(){var v;return!((v=H())==null||!v.brNzRatingBadgeType)}},function(){return _.O(Wkr,{data:function(){return H()}})}),_.O(_.Lc,{when:function(){return!!H()&&!H().brNzRatingBadgeType}},function(){return _.O(_.u5,{data:function(){return H()}})})))},"Ia");
_.to.idomCompat=!0;var w9R,T0E;w9R=16/9;T0E=2/3;_.M3=_.a(function(f){var H=f.data;var v=f.className;var t=f.imageSizeConfig;var M=f.notifyOnLoaded;var h=function(){return H().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},y=function(){var Z;
return _.DO((Z=H())==null?void 0:Z.rendererContext)};
f={};f=(f.ytContentPreviewImageViewModelHost=!0,f.ytContentPreviewImageViewModelCircleImage=function(){return h()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},f.ytContentPreviewImageViewModelTappable=function(){return y()},f);
var m=function(){var Z,l;return(l=(Z=_.U(H().rendererContext,_.dC))==null?void 0:Z.label)!=null?l:""},W=function(){return f83(H())},I=function(){var Z=qNR(h(),H().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",t==null?void 0:t(),HFR(W()),H().layoutWidth,H().layoutHeight),l=Object.assign({},Z);
Z.width&&(l.width=Math.round(Z.width));Z.height&&(l.height=Math.round(Z.height));Z.maxWidth&&(l.maxWidth=Math.round(Z.maxWidth));Z.maxHeight&&(l.maxHeight=Math.round(Z.maxHeight));return l},S=_.sg(function(){return I().height},void 0,"CxFlJb"),d=_.sg(function(){return I().width},void 0,"lb8Jhd");
return _.O("yt-content-preview-image-view-model",{el:_.tE(_.nT(function(){var Z;return(Z=H())==null?void 0:Z.rendererContext})),
role:function(){return y()?"link":void 0},
tabindex:function(){return y()?0:void 0},
class:_.S2(v,f,function(){var Z=h();var l=t==null?void 0:t();Z=Z==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||Z==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||Z==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||Z==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(l==null?void 0:l.size)!=null&&l.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(l==null?void 0:l.size)!=null&&l.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return Z}),
style:function(){var Z=I(),l=[];Z.width&&l.push("width: "+Z.width+"px");Z.height&&l.push("height: "+Z.height+"px");Z.maxWidth&&l.push("max-width: "+Z.maxWidth+"px");Z.maxHeight&&l.push("max-height: "+Z.maxHeight+"px");Z.fullWidth&&l.push("width: 100%");return l.join(";")}},_.O(_.g,{cond:W,
then:function(Z){return _.O(_.Hn,{data:Z,alt:m,"data-disabled$":function(){return!m()},
notifyOnLoaded:M,targetWidth:d,targetHeight:S,preserveWidth:function(){return!!d()},
preserveHeight:function(){return!!S()}})}}),_.O(_.Jj,{data:function(){var Z;
return(Z=H())==null?void 0:Z.overlays}},{thumbnailHoverOverlayViewModel:rq,
thumbnailOverlayButtonViewModel:_.f8n}))},"Ja");
_.M3.idomCompat=!0;var gQb=_.a(function(f){var H=f.data;var v=f.className;var t=f.useSmallLayout;f=f.useMediumText;var M={};f=(M["yt-attribution-view-model-wiz"]=!0,M["yt-attribution-view-model-wiz--medium-text"]=f,M);return _.O("yt-attribution-view-model",{el:_.tE(_.nT(function(){var h;return(h=H())==null?void 0:h.rendererContext})),
class:_.S2(v,f)},_.O(_.g,{cond:function(){return _.DO(H().rendererContext)},
then:function(){return _.O("button",{class:"yt-attribution-view-model-wiz--tappable"},_.O(OFn,{data:H,useSmallLayout:t}))},
else:function(){return _.O(OFn,{data:H,useSmallLayout:t})}}))},"Ka"),OFn=_.a(function(f){var H=f.data;
var v=f.useSmallLayout;var t=function(){return{size:(v==null?0:v())?16:24}};
return _.O(_.R8,null,_.O(_.Jj,{data:function(){return H().contentPreviewImage}},{contentPreviewImageViewModel:function(M){return _.O(_.M3,{data:M.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:t})}}),_.O(_.Jj,{data:function(){return H().badge}},{badgeViewModel:function(M){return _.O(_.to,{data:M.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.O(_.g,{cond:function(){return H().text},
then:function(){return _.O(_.iq,{text:function(){return H().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.O(_.g,{cond:function(){return H().suffix},
then:function(){return _.O(_.iq,{text:function(){return H().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"La");
gQb.idomCompat=!0;var I8M,SM_,d5b,j7M,s7h;I8M=_.a(function(f){var H=f.delimiter;var v=f.max;var t=f.index;var M=f.isStandalone;return _.O(_.g,{cond:function(){return v()-1>t()},
then:function(){var h={};return _.O("span",{class:_.S2("yt-content-metadata-view-model-wiz__delimiter",(h["yt-content-metadata-view-model-wiz__delimiter--standalone"]=M,h)),"aria-hidden":!0},H)}})},"Ma");
SM_=_.a(function(f){var H=f.metadataPart;var v=f.maxLines;return _.O(_.iq,{text:function(){return H().text},
linkInheritColor:!0,className:function(){return vQ3(v())},
userInput:!0})},"Na");
d5b=_.a(function(f){var H=f.metadataPart;var v=f.maxLines;return _.O(_.g,{cond:function(){return H().tooltip},
then:function(t){return _.O("span",{title:t,role:"tooltip"},_.O(SM_,{metadataPart:H,maxLines:v}))},
else:function(){return _.O(SM_,{metadataPart:H,maxLines:v})}})},"Oa");
j7M=_.a(function(f){var H=f.metadataPart;var v=f.isOverlay;var t=f.useMediumText;var M=f.hideAvatar;var h=function(){return H().maxLines!==void 0?H().maxLines:1};
return _.O(_.R8,null,_.O(_.Jj,{data:function(){return H().avatarStack}},{avatarStackViewModel:function(y){return _.O(_.oY,{data:y.data,
isOverlay:v,useMediumText:t,hideAvatar:M})},
badgeViewModel:_.to}),_.O(_.g,{cond:function(){return H().leadingIcon},
then:function(y){return _.O(_.JE,{className:"yt-content-metadata-view-model-wiz__leading-icon",icon:function(){return y().name},
size:function(){return y().width}})}}),_.O(_.g,{cond:function(){return H().text},
then:function(){return _.O(d5b,{metadataPart:H,maxLines:h})}}),_.O(_.g,{cond:function(){return H().icon},
then:function(y){return _.O(_.JE,{className:"yt-content-metadata-view-model-wiz__icon",icon:function(){return y().name},
size:function(){return y().width}})}}))},"Pa");
s7h=_.a(function(f){var H=f.metadataRow;var v=f.isInline;var t=f.delimiter;var M=f.isOverlay;var h=f.useMediumText;var y=f.extensions;var m=function(){var I,S=y==null?void 0:(I=y())==null?void 0:I.lockupMetadata;I=H();var d,Z;return!!((S==null?0:(d=S.byline)==null?0:d.hideAvatar)&&((Z=_.U(I,pHh))==null?void 0:Z.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},W=function(){return H().metadataParts||[]};
f={};return _.O("div",{class:_.S2("yt-content-metadata-view-model-wiz__metadata-row",(f["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=v,f["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var I,S=y==null?void 0:(I=y())==null?void 0:I.lockupMetadata;I=H();var d,Z;return!!((S==null?0:(d=S.byline)==null?0:d.addPadding)&&((Z=_.U(I,pHh))==null?void 0:Z.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},f["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
function(){var I;
return!!(y==null?0:(I=y())==null?0:I.lockupMetadata)&&H().badges&&!H().metadataParts},f))},_.O(_.Jj,{data:function(){return H().badges}},{badgeViewModel:function(I){return _.O("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.O(_.to,{data:I.data}))}}),_.O(_.eK,{each:W},function(I,S){return _.O(_.R8,null,_.O(j7M,{metadataPart:I,
isOverlay:M,useMediumText:h,hideAvatar:m}),_.O(I8M,{delimiter:t,max:function(){return W().length},
index:S,isStandalone:!1}))}),_.O(_.g,{cond:function(){return H().isSpacerRow&&!v()},
then:function(){return _.O("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Qa");
_.ho=_.a(function(f){f=_.tV(f,{layout:0,isOverlay:!1});var H=f.data,v=f.layout,t=f.isOverlay,M=f.useMediumText,h=f.extensions,y=function(){return v()===0},m=function(){var I;
return((I=H().metadataRows)==null?void 0:I.filter(function(S){var d,Z=h==null?void 0:(d=h())==null?void 0:d.lockupMetadata,l,L;d=!!((Z==null?0:(l=Z.description)==null?0:l.hideDescription)&&((L=_.U(S,pHh))==null?void 0:L.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var r,n;return!((Z==null?0:(r=Z.spacer)==null?0:r.hideSpacer)&&((n=_.U(S,pHh))==null?void 0:n.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||d)}))||[]},W={};
return _.O("yt-content-metadata-view-model",{class:_.S2(f.className,"yt-content-metadata-view-model-wiz",(W["yt-content-metadata-view-model-wiz--inline"]=y,W["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.DO(H().rendererContext)},W["yt-content-metadata-view-model-wiz--medium-text"]=M,W)),
el:_.tE(_.nT(function(){return H().rendererContext}))},_.O(_.eK,{each:m},function(I,S){return _.O(_.R8,null,_.O(s7h,{metadataRow:I,
isInline:y,delimiter:function(){return H().delimiter},
isOverlay:t,useMediumText:M,extensions:h}),_.O(_.g,{cond:function(){return y()&&!I.isSpacerRow},
then:function(){return _.O(I8M,{delimiter:function(){return H().delimiter},
max:function(){return m().length},
index:S,isStandalone:!0})}}))}))},"Ra");
_.ho.idomCompat=!0;var ZFr=_.a(function(f){var H={};return _.O("yt-lockup-metadata-view-model",{class:_.S2("yt-lockup-metadata-view-model-wiz",function(){a:{var v=f.lockupStyle();if(v==null?0:v.isOverlay)v="yt-lockup-metadata-view-model-wiz--overlay";else switch(v==null?void 0:v.arrangement){case 1:v="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:v="yt-lockup-metadata-view-model-wiz--vertical"}}return v},function(){a:{var v=f.lockupStyle();
if(v==null?0:v.isTiny)v="yt-lockup-metadata-view-model-wiz--tiny";else switch(v==null?void 0:v.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":v="yt-lockup-metadata-view-model-wiz--compact";break a;default:v="yt-lockup-metadata-view-model-wiz--standard"}}return v},(H["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var v;
return(v=f.lockupStyle())==null?void 0:v.isOverlay},H["yt-lockup-metadata-view-model-wiz--card"]=function(){var v;
return(v=f.lockupStyle())==null?void 0:v.isCard},H["yt-lockup-metadata-view-model-wiz--centered"]=function(){var v;
return(v=f.lockupStyle())==null?void 0:v.isCentered},H["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var v;
return(v=f.lockupStyle())==null?void 0:v.typographyBump},H["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var v;
return(v=f.lockupStyle())==null?void 0:v.useLegacyTypography},H["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var v;
return(v=f.lockupStyle())==null?void 0:v.useRichGridLegacyTypography},H))},_.O(_.Jj,{data:function(){return f.data().image}},{avatarStackViewModel:function(v){return _.O("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.O(_.oY,{data:v.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(v){return _.O("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.O(_.K5,{data:v.data}))},
decoratedAvatarViewModel:function(v){return _.O("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.O(_.Dj,{data:v.data}))}}),_.O("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.O("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var v;return(v=f.data().title)==null?void 0:v.content}},_.O(_.g,{cond:function(){return f.data().title},
then:function(v){return _.O(_.VU,{command:f.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:f.lockupAccessibilityLabel},_.O(_.iq,{text:v,userInput:!0}))}})),_.O("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.O(_.Jj,{data:function(){return f.data().metadata}},{contentMetadataViewModel:function(v){return _.O(_.ho,{data:v.data,
layout:1,useMediumText:function(){var t,M;return((t=f.lockupStyle())==null?void 0:t.typographyBump)||((M=f.lockupStyle())==null?void 0:M.useRichGridLegacyTypography)},
extensions:function(){var t,M,h,y;return{lockupMetadata:{byline:{hideAvatar:((t=f.lockupStyle())==null?void 0:t.arrangement)===0,addPadding:((M=f.lockupStyle())==null?void 0:M.arrangement)===1},description:{hideDescription:!((h=f.lockupStyle())==null||!h.compactMetadata)},spacer:{hideSpacer:!((y=f.lockupStyle())==null||!y.compactMetadata)}}}}})}})),_.O(_.Jj,{data:function(){return f.data().attribution}},{attributionViewModel:function(v){return _.O("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},
_.O(gQb,{data:v.data,
useSmallLayout:!0}))}})),_.O("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.O(_.Jj,{data:function(){return f.data().menuButton}},{buttonViewModel:function(v){return _.O(_.Wp,{data:v.data,
buttonOverrides:function(){var t;return((t=f.lockupStyle())==null?0:t.isOverlay)?{style:"overlay"}:void 0}})}})))},"Sa");
ZFr.idomCompat=!0;var JKM=_.a(function(f){var H=_.TN("notification-multi-action-renderer");_.ru(function(){requestAnimationFrame(function(){_.Tj(H.value)})});
var v={},t={},M={};return _.O("notification-multi-action-renderer",{class:_.S2("ytNotificationMultiActionRendererHost",(v.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var h;return(h=f.useLegacyShelfStyle)==null?void 0:h.call(f)},v)),
el:H},_.O("span",{"aria-live":"polite",class:_.S2("ytNotificationMultiActionRendererTextContainer",(t.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var h;return(h=f.useLegacyShelfStyle)==null?void 0:h.call(f)},t))},_.O(_.iq,{text:function(){return f.data().responseText}})),_.O("div",{class:_.S2("ytNotificationMultiActionRendererButtonContainer",(M.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var h;
return(h=f.useLegacyShelfStyle)==null?void 0:h.call(f)},M))},_.O(_.Jj,{data:function(){var h;
return(h=f.data().buttons)==null?void 0:h.map(function(y){if(y=y.buttonRenderer){var m,W=Object,I=W.assign,S=(m=y.icon)==null?void 0:m.iconType;m=(m=y.command||y.serviceEndpoint||y.navigationEndpoint)?{innertubeCommand:m}:void 0;y={buttonViewModel:I.call(W,{},{iconName:S,onTap:m,trackingParams:y.trackingParams,titleFormatted:y.text?_.Qz(y.text):void 0},M85(y))}}else y=void 0;return y}).filter(function(y){return!!y})}},{buttonViewModel:function(h,y){return _.O("div",null,_.O(_.Wp,{data:h.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var m;return((m=f.useModernStyles)==null?0:m.call(f))?{type:y()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Ta");var l8r=_.a(function(f){var H=_.TN("notification-text-renderer");_.ru(function(){requestAnimationFrame(function(){_.Tj(H.value)})});
return _.O("notification-text-renderer",{el:H,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.O(_.iq,{text:function(){return f.data().successResponseText}}))},"Ua");_.Re=_.a(function(f){var H=_.s7(bas,function(){var t;return h6H((t=f.contentId)==null?void 0:t.call(f))}),v=function(){var t;
return _.U((t=H())==null?void 0:t.command,_.sp)};
return _.O(_.g,{cond:function(){var t;if(!(t=v())){var M;t=_.U((M=H())==null?void 0:M.command,xtZ)}return t},
then:function(){return _.O(_.g,{cond:v,then:function(){var t={};return _.O("div",{class:_.S2("ytDismissibleItemReplacedContent",function(){var M;return R6H((M=f.aspectRatio)==null?void 0:M.call(f))})},_.O("div",{class:_.S2((t.ytDismissibleItemAspectRatioContainer=function(){var M;
return((M=f.aspectRatio)==null?void 0:M.call(f))!==void 0},t))},_.O(_.Jj,{data:function(){var M;
return(M=v())==null?void 0:M.item}},{notificationMultiActionRenderer:function(M){return _.O(JKM,{data:M.data,
useModernStyles:f.useModernStyle,useLegacyShelfStyle:f.useLegacyShelfStyle})},
notificationTextRenderer:l8r})))}})},
else:f.children})},"Va");_.U5o=_.a(function(f){var H=f.data;var v=f.customCommandResolver;f=_.tE(_.MV({visibilityCallback:function(h){var y,m=(y=H().interaction)==null?void 0:y.onFirstVisible;h&&m&&_.XA(m)},
showOption:_.f_}));var t=function(){var h;return((h=H().interaction)==null?0:h.onTap)?function(y){var m;FjR(y,(m=H().interaction)==null?void 0:m.onTap,v)}:void 0},M=function(){var h,y=H(),m=t(),W=(h=_.U(H().rendererContext,_.dC))==null?void 0:h.label;
a:switch(y.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":h=1;break a;default:h=0}return{size:YMH(y.size),type:h,onTap:m,accessibilityText:W}};
return _.O("ad-avatar-view-model",{class:function(){var h;return((h=H().interaction)==null?0:h.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:f},_.O(_.g,{cond:function(){return H().image},
then:function(h){return _.O(Ro_,{data:M,image:h})}}))},"Wa");_.Vc=_.a(function(f){var H=_.tV(f,{hasDot:!1});f=Object.assign({},H);var v=H.data,t=H.hasDot;H=H.customCommandResolver;var M=(delete f.data,delete f.hasDot,delete f.customCommandResolver,f);f=function(){return v().style};
f!==void 0&&f!==null||_.Nw(Error("Fh"));f=_.as(function(){return v().interaction},H);
return _.O("ad-badge-view-model",{class:_.S2(function(){var h;return((h=v().interaction)==null?0:h.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var h=M.adRenderingContextType();
v();return h==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:_.tE(f)},_.O(_.u5,{data:function(){var h;v();return{type:2,text:(h=v().label)==null?void 0:h.content,adsIncludeDot:t(),isOverlay:v().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Xa");var e6T;_.yc=_.a(function(f){var H=f.data;var v=f.customCommandResolver;var t=f.adRenderingContextType;return _.O("ad-details-line-view-model",{class:function(){var M;return((M=H().interaction)==null?0:M.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.tE(_.MV({visibilityCallback:function(M){var h,y=(h=H().interaction)==null?void 0:h.onFirstVisible;M&&y&&_.XA(y)},
showOption:_.f_}),_.as(function(){return H().interaction},v))},_.O(_.g,{cond:function(){return H().style},
then:function(M){return _.O(_.eK,{each:function(){var h;return((h=H())==null?void 0:h.attributes)||[]},
keyBy:"INDEX"},function(h){return _.O(e6T,{attribute:h,style:M,adRenderingContextType:function(){return t()}})})}}))},"Ya");
e6T=_.a(function(f){var H=f.attribute;var v=f.style;var t=f.adRenderingContextType;return _.O(_.g,{cond:function(){return H().text},
then:function(M){return _.O(_.iq,{text:M,className:function(){var h=t();v();return h==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Za");var Lkn=_.a(function(f){var H=f.data;var v=f.typographyBump;var t=function(){return H().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
f={};return _.O(_.R8,null,_.O("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.O(_.iq,{text:function(){return H().headline},
className:_.S2("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(f.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return t==null?void 0:t()},f.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(v==null?void 0:v())&&!(t==null?0:t())},f)),
linkInheritColor:!0}),_.O(_.g,{cond:function(){return H().description},
then:function(M){var h={};return _.O(_.iq,{text:M,className:_.S2("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(h.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return t==null?void 0:t()},h.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(v==null?void 0:v())&&!(t==null?0:t())},h)),
linkInheritColor:!0})}}),_.O(_.g,{cond:function(){return H().secondaryDescription},
then:function(M){var h={};return _.O(_.iq,{text:M,className:_.S2("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(h.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return v==null?void 0:v()},h)),
linkInheritColor:!0})}}),_.O("div",{class:function(){return t()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.O(_.g,{cond:function(){return H().adAvatar},
then:function(){return _.O("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.O(_.Jj,{data:function(){return H().adAvatar}},{adAvatarViewModel:_.U5o}))}}),_.O(_.Jj,{data:function(){return H().adBadge}},{adBadgeViewModel:function(M){return _.O(_.Vc,{data:M.data,
hasDot:function(){return!!H().adDetailsLine},
adRenderingContextType:function(){return H().adRenderingContextType}})}}),_.O(_.Jj,{data:function(){return H().adDetailsLine}},{adDetailsLineViewModel:function(M){return _.O(_.yc,{data:M.data,
adRenderingContextType:function(){return H().adRenderingContextType}})}}))),_.O("div",{class:function(){return t()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.O(_.Jj,{data:function(){return H().menu}},{buttonViewModel:function(M){return _.O(_.Wp,{data:M.data,
buttonOverrides:function(){a:switch(H().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var h="S";break a;default:h="M"}return{size:h}}})}})))},"$a"),x5h=_.a(function(f){var H=f.data;
var v=f.noBottomMargin;var t=f.useVideoLockupTopPadding;var M=f.typographyBump;f={};f=_.S2("ytwFeedAdMetadataViewModelHostMetadata",(f.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return v==null?void 0:v()},f.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return t==null?void 0:t()},f));
var h=function(){return H().adBadge};
h!==void 0&&h!==null||_.Nw(Error("Gh"));h={};var y={};return _.O(_.R8,null,_.O(_.g,{cond:function(){return H().adAvatar},
then:function(){return _.O("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.O(_.Jj,{data:function(){return H().adAvatar}},{adAvatarViewModel:function(m){return _.O(_.U5o,{data:m.data})}}))}}),_.O("div",{class:f},_.O("div",{class:_.S2("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(h.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return M==null?void 0:M()},h.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(M==
null?void 0:M())&&_.J("web_enable_typography_bump_v2")},h))},_.O(_.iq,{text:function(){return H().headline},
linkInheritColor:!0})),_.O(_.g,{cond:function(){return H().description},
then:function(m){return _.O(_.iq,{text:m,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.O("div",{class:function(){return H().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.J("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.O(_.Jj,{data:function(){return H().adBadge}},
{adBadgeViewModel:function(m){return _.O(_.Vc,{data:m.data,
hasDot:function(){return!!H().adDetailsLine},
adRenderingContextType:function(){return H().adRenderingContextType}})}}),_.O(_.Jj,{data:function(){return H().adDetailsLine}},{adDetailsLineViewModel:function(m){return _.O(_.yc,{data:m.data,
adRenderingContextType:function(){return H().adRenderingContextType}})}})),_.O(_.g,{cond:function(){return H().secondaryDescription},
then:function(m){return _.O(_.iq,{text:m,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.O("div",{class:_.S2("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(y.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return t==null?void 0:t()},y))},_.O(_.Jj,{data:function(){return H().menu}},{buttonViewModel:_.Wp})))},"ab"),Bfg=_.a(function(f){var H=f.data;
var v=f.noBottomMargin;var t=f.listenToTapEvent;var M=f.setTouchEndHandler;var h=f.useVideoLockupTopPadding;var y=f.typographyBump;f=_.MV({visibilityCallback:function(d){var Z,l=(Z=H().interaction)==null?void 0:Z.onFirstVisible;d&&l&&_.XA(l)},
showOption:_.f_});var m=_.as(function(){return H().interaction},void 0,function(){return t==null?void 0:t()}),W=_.V(_.gp(!1,void 0,"p7Js8e")),I=W.next().value,S=W.next().value;
W=_.d6(function(d){(M==null?0:M())&&!I()&&(d.currentTarget.click(),S(!0),setTimeout(function(){S(!1)},100));
return!1});
return _.O("feed-ad-metadata-view-model",{class:function(){var d;return((d=H().interaction)==null?0:d.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.tE(f,m),"on:touchend":W},_.O(_.B6,null,_.O(_.Lc,{when:function(){return H().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.O(Lkn,{data:H,
typographyBump:y})}),_.O(_.Lc,{when:function(){return H().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.O(x5h,{data:H,
noBottomMargin:v,useVideoLockupTopPadding:h,typographyBump:y})})))},"bb");var z6b,FkM;z6b=_.E7.inlinePreviewEnabledSelector;_.YM=_.a(function(f){return _.O("yt-lockup-view-model",{class:_.S2(f.className)},_.O(_.Re,{contentId:function(){return f.data().contentId},
useModernStyle:!0,aspectRatio:function(){var H,v;return((H=f.containerType)==null?void 0:H.call(f))!==3?X9E(f.data().contentType,(v=f.force16By9ThumbnailAspectRatio)==null?void 0:v.call(f)):void 0}},function(){return _.O(FkM,Object.assign({},f))}))},"cb");
FkM=_.a(function(f){f=_.tV(f,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0});var H=f.data,v=f.containerLayoutConfig,t=f.containerType,M=f.sizing,h=f.protectBackground,y=f.typographyBump,m=f.force16By9ThumbnailAspectRatio,W=f.thumbnailFixedWidth,I=f.thumbnailTargetWidth,S=f.lockupExperiments,d=f.elementsPerRow;
f=_.tE(_.nT(function(){var lH;return(lH=H())==null?void 0:lH.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 Z=_.uE(z6b),l=_.t8().resolve(_.vh(X9v)),L=l?{}:void 0,r=function(){var lH,E5,uH;return(uH=(E5=_.U((lH=H())==null?void 0:lH.rendererContext,_.dC))==null?void 0:E5.label)!=null?uH:void 0},n=function(){var lH=v==null?void 0:v(),E5;
if(lH==null?0:lH.containerType){var uH=(E5=H())==null?void 0:E5.contentType;E5=S();var Rn=y(),pr=I(),gh=h();lH=Object.assign({},AOT(EHe(lH),GTs(lH.responsiveSize),Rn,uH,lH.force16By9ThumbnailAspectRatio,pr,gh,E5),{thumbnailFixedWidth:lH.contentPreviewWidth})}else lH=AOT(t(),M(),y(),(uH=H())==null?void 0:uH.contentType,m(),I(),h(),S());return lH};
l&&L&&l({enabled:function(){return Z()},
itemPlaybackModel:function(){return H().itemPlayback},
thumbnailElRef:function(){return L.thumbnailElRef},
containerElRef:f,options:function(){var lH,E5=(lH=_.U(H().metadata,_.Qjo))==null?void 0:lH.endorsement;lH=L.thumbnailOverlays||[];E5&&lH.push(E5);var uH,Rn;return{thumbnail:L.thumbnail,thumbnailOverlays:lH,accessibilityText:r(),thumbnailSize:L.thumbnailSize,enableRounding:n().isCollection,containPlayerWithinThumbnail:n().isCollection,trackingParams:(uH=_.U(H().rendererContext,_.eW))==null?void 0:(Rn=uH.loggingDirectives)==null?void 0:Rn.trackingParams}}});
var Q=0;l=_.V(_.gp(!1,void 0,"BKBkhb"));var C=l.next().value,w=l.next().value;l=_.V(_.gp(!1,void 0,"GK0mq"));var c=l.next().value,A=l.next().value;l=_.d6(function(){var lH=Z()&&H().itemPlayback;c()?(_.nN.cancelJob(Q),Q=_.nN.addJob(function(){w(!lH)},8,32)):w(!lH);
return!0});
var X=_.d6(function(){Q&&(_.nN.cancelJob(Q),Q=0);w(!1)});
_.Dt(function(){Q&&(_.nN.cancelJob(Q),Q=0)});
var fg=yK3(function(){A(!0)}),gB=fg.touchFeedbackEvents,O5=fg.touchFeedbackOnPointerUp,s5=fg.touchFeedbackOnPointerDown;
fg=fg.touchFeedbackOnPointerLeave;var U5={};return _.O("div",{el:f,class:_.S2("yt-lockup-view-model-wiz",function(){a:{var lH=n();if(lH.isOverlay)lH="yt-lockup-view-model-wiz--overlay";else switch(lH.arrangement){case 1:lH="yt-lockup-view-model-wiz--horizontal";break a;default:lH="yt-lockup-view-model-wiz--vertical"}}return lH},function(){a:{var lH=n();
if(lH.isOverlay)lH="yt-lockup-view-model-wiz--overlay";else{switch(lH.collectionStackNumber){case 1:lH="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:lH="yt-lockup-view-model-wiz--collection-stack-2";break a}lH=void 0}}return lH},function(){var lH;
return _.t8e((lH=H())==null?void 0:lH.contentId)},(U5["yt-lockup-view-model-wiz--card"]=function(){return n().isCard},U5["yt-lockup-view-model-wiz--compact"]=function(){return n().isTiny||n().sizing!=="STANDARD"},U5["yt-lockup-view-model-wiz--protect-background"]=h,U5["yt-lockup-view-model-wiz--add-margins"]=function(){return n().addMarginForFullbleed},U5["yt-lockup-view-model-wiz--centered"]=function(){return n().isCentered},U5["yt-lockup-view-model-wiz--fullbleed"]=function(){return n().fullbleed},
U5["yt-lockup-view-model-wiz--single-column-grid"]=function(){return d()===1&&t()===2},U5["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var lH;
return(lH=S())==null?void 0:lH.useRichGridLegacyMargin},U5)),
"on:mousedown":s5,"on:mouseleave":X,"on:mouseup":O5,"on:mouseover":l,"on:touchstart":s5,"on:touchend":O5,"on:pointerleave":fg},_.O(_.VU,{command:function(){var lH;return _.KT((lH=H())==null?void 0:lH.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return W()&&n().arrangement===1?"width: "+W():""}},_.O(_.Jj,{data:function(){var lH;
return(lH=H())==null?void 0:lH.contentImage}},{thumbnailViewModel:function(lH){return _.O(_.qv,{data:lH.data,
aspectRatio:function(){return n().aspectRatio},
disableRounding:function(){return n().disableRounding},
width:I,hovered:C,isClip:function(){var E5;return((E5=H())==null?void 0:E5.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:LjE(L),lockupExperiments:function(){return S()}})},
collectionThumbnailViewModel:function(lH){return _.O(R6C,{data:lH.data,aspectRatio:function(){return n().aspectRatio},
disableRounding:function(){return n().disableRounding},
width:I,doubleStack:function(){return n().collectionStackNumber===2},
hovered:C,playbackRef:LjE(L)})},
decoratedAvatarViewModel:_.Dj})),_.O("div",{class:"yt-lockup-view-model-wiz__metadata"},_.O(_.Jj,{data:function(){var lH;return(lH=H())==null?void 0:lH.metadata}},{lockupMetadataViewModel:function(lH){return _.O(ZFr,{data:lH.data,
lockupStyle:n,lockupCommand:function(){var E5;return _.KT((E5=H())==null?void 0:E5.rendererContext)},
lockupAccessibilityLabel:function(){return r()}})},
feedAdMetadataViewModel:function(lH){return _.O(Bfg,{data:lH.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:y})}}),_.O(_.Jj,{data:function(){var lH;
return(lH=H())==null?void 0:lH.attachmentSlot}},{lockupAttachmentsViewModel:function(lH){return _.O($5h,{data:lH.data,
lockupStyle:n})}})),_.O(_.yU,{model:function(){a:{switch(n().collectionStackNumber){case 1:var lH=8;
break a;case 2:lH=12;break a}lH=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:lH}},
pointerDownEvent:gB.pointerDownEvent,pointerUpEvent:gB.pointerUpEvent,pointerLeaveEvent:gB.pointerLeaveEvent}))},"db");
_.YM.idomCompat=!0;_.yn(_.YM,"yt-lockup-view-model",{props:{data:_.ki,containerLayoutConfig:_.ki,containerType:_.ki,sizing:_.ki,protectBackground:_.ki,typographyBump:_.ki,thumbnailFixedWidth:_.ki,thumbnailTargetWidth:_.ki,force16By9ThumbnailAspectRatio:_.ki,className:_.ki,lockupExperiments:_.ki,elementsPerRow:_.ki}});var OF3,rKh=_.a(function(f){var H=_.tV(f,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),v=H.text,t=H.alwaysShowTruncationText;f=H.truncationText;var M=H.onTextClick,h=H.maxLines,y=H.disableTextMask,m=H.textStyle,W=H.accessibilityLabel,I=H.textSize,S=H.alwaysTruncateAtMaxLines,d=H.expandOnClick;H=_.V(_.gp(!1,void 0,"lWDnae"));var Z=H.next().value,l=H.next().value;H=_.d6(function(){d()&&l(!Z());M==null||M()});
var L=function(){a:switch(I()){case "medium":var X=2;break a;case "large":X=2.2;break a;default:X=1.8}return X},r=SMs(v,function(){return Z()?Infinity:h()},L,y,S,Z),n=r.isTruncated;
v=r.displayText;S=r.contentRef;var Q=r.hiddenRef,C=r.placeholderTruncationTextRef,w=r.hiddenTruncationTextRef;r=r.truncationTextRef;var c={},A={};return _.O("truncated-text",{class:_.S2((c["truncated-text-wiz"]=!0,c["truncated-text-wiz--overlay"]=function(){return m()==="overlay"},c["truncated-text-wiz--medium-text"]=function(){return I()==="medium"},c["truncated-text-wiz--large-text"]=function(){return I()==="large"},c["truncated-text-wiz--primary-text"]=function(){return m()==="primary-text"},c)),
"on:click":H,style:function(){return"line-height: "+L()+"rem;"}},_.O("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",
el:S,style:function(){return Z()?"":"max-height: "+h()*L()+"rem;"}},_.O(_.iq,{text:v}),_.O("button",{"aria-disabled":!0,
disabled:!0,class:"truncated-text-wiz__inline-button",el:C,style:function(){return"line-height: "+L()+"rem;"}},_.O(_.iq,{text:f}))),_.O("truncated-text-content",{class:_.S2("truncated-text-wiz__truncated-text-content","truncated-text-wiz__truncated-text-content--hidden-text-content"),
el:Q,style:function(){return Z()?"":"max-height: "+h()*L()+"rem;"},
"aria-hidden":"true"},_.O(_.iq,{text:v}),_.O("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:w,style:function(){return"line-height: "+L()+"rem;"}},_.O(_.iq,{text:f}))),_.O("button",{"aria-label":W,
class:_.S2((A["truncated-text-wiz__absolute-button"]=function(){return!y()},A["truncated-text-wiz__bottom-button"]=function(){return y()},A["truncated-text-wiz--hidden"]=function(){return!(!Z()&&(t!=null&&t()||n()))},A)),
el:r,style:function(){return"line-height: "+L()+"rem;"}},_.O(_.iq,{text:f})))},"eb");
rKh.idomCompat={callbacks:{onTextClick:!0}};var oQg=_.a(function(f){var H=f.data;f=f.className;var v=_.sg(function(){return j7R(H())},void 0,"sR58pd");
return _.O("yt-video-attribute-view-model",{class:f},_.O("div",{class:function(){var t=H();a:switch(t.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var M="yt-video-attribute-view-model--vertical";break a;default:M="yt-video-attribute-view-model--horizontal"}a:switch(t.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var h="yt-video-attribute-view-model--image-small";break a;default:h="yt-video-attribute-view-model--image-large"}a:switch(t.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var y=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":y="yt-video-attribute-view-model--image-avatar";break a;default:y=""}a:switch(t.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var m="yt-video-attribute-view-model--metadata-header";break a;default:m=""}a:switch(t.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var W="yt-video-attribute-view-model--container-card";break a;default:W=""}return["yt-video-attribute-view-model",M,h,
y,m,W,j7R(t)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.ZE({"background-color":function(){var t=H();if(t.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var M="";else{M=t.lightColorPalette;t=t.darkColorPalette;var h,y=((h=_.t8().resolve(_.vh(_.TK)))==null?0:h())&&t?t:M;M=(M=y==null?void 0:y.section2Color)?_.cS(M):""}return M}})},_.O(_.g,{cond:function(){return v()||!_.J("web_video_attribute_view_model_a11y_fix")},
then:function(){return _.O(_.VU,{className:"yt-video-attribute-view-model__content-container",command:v,role:"group",ariaLabel:function(){return H().title}},_.O(_.g,{cond:function(){return H().heroText||H().image},
then:function(){return _.O(Kk9,{data:H})}}),_.O(D5v,{data:H,
sizeSmall:function(){return H().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))},
else:function(){return _.O("div",{class:"yt-video-attribute-view-model__content-container"},_.O(_.g,{cond:function(){return H().heroText||H().image},
then:function(){return _.O(Kk9,{data:H})}}),_.O(D5v,{data:H,
sizeSmall:function(){return H().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))}})))},"fb");
oQg.idomCompat=!0;var Kk9=_.a(function(f){var H=f.data;var v,t=(v=_.t8().resolve(_.vh(_.TK)))==null?void 0:v(),M=function(){return t&&H().darkThemeImage?H().darkThemeImage:H().image},h=_.sg(function(){return s7B(H())},void 0,"zGDeMe");
return _.O("div",{class:"yt-video-attribute-view-model__hero-section"},_.O(_.B6,null,_.O(_.Lc,{when:M},function(){return _.O(_.Hn,{data:function(){return M()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.O(_.Lc,{when:function(){return H().heroText}},function(){return _.O("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.O("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return H().heroText}))})),_.O(_.g,{cond:function(){return H().overflowMenuOnTap},
then:function(){return _.O("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.O(_.$p,{data:h,iconName:"MORE_VERT"}))}}))},"gb");
Kk9.idomCompat=!0;var D5v=_.a(function(f){var H=f.data;f=f.sizeSmall;var v=function(){return H().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},t=_.sg(function(){return cK(_.NE({innertubeCommand:j7R(H())}))?"link":"group"},void 0,"kGuRzd"),M={};
return _.O("div",{class:_.S2("yt-video-attribute-view-model__metadata",(M["yt-video-attribute-view-model--small-font"]=f,M)),role:t},_.O("h1",{class:"yt-video-attribute-view-model__title"},function(){return H().title}),_.O(_.g,{cond:function(){return H().subtitle},
then:function(){return _.O("h4",{class:"yt-video-attribute-view-model__subtitle"},_.O(_.g,{cond:v,then:function(){return _.O(rKh,{text:function(){return d55(H().subtitle)},
truncationText:function(){return d55(H().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.O("span",null,function(){return H().subtitle})}}))}}),_.O(_.g,{cond:function(){return H().secondarySubtitle},
then:function(h){return _.O("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.O(_.iq,{text:function(){var y=h();if(y!=null&&y.attachmentRuns){for(var m=[],W=_.V(y.attachmentRuns),I=W.next();!I.done;I=W.next())I=I.value,I.element&&m.push(Object.assign({},I,{element:Object.assign({},I.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));y=Object.assign({},y,{attachmentRuns:m})}return y}}))}}),_.O(_.Jj,
{data:function(){return H().buttonViewModel}},{buttonViewModel:function(h){return _.O(_.Wp,{data:h.data,
className:"yt-video-attribute-view-model__button"})}}))},"hb");
D5v.idomCompat=!0;_.yn(oQg,"yt-video-attribute-view-model",{props:{data:_.ki,className:_.ki}});var md=function(){var f=_.K.apply(this,arguments)||this;f.useHighlightStyling=_.J("web_enable_deeper_metadata_highlight_styling");f.isSearch=!1;f.JSC$15132_lastScrollContainerWidth=NaN;f.pageLoadingFromNavigation=!1;f.currentIndex=0;f.supportComponentResize=!1;return f};
_.e(md,_.K);_.R=md.prototype;
_.R.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}}}}}};
_.R.attached=function(){document.addEventListener("yt-page-type-changed",_.jr(this,this.onPageChange))};
_.R.detached=function(){document.removeEventListener("yt-page-type-changed",_.jr(this,this.onPageChange))};
_.R.getItemsPath=function(){return"data.cards"};
_.R.onIronResize=function(){this.updateListStyles()};
_.R.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var f;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(f=this.data)==null?void 0:f.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.J("problem_walkthrough_sd")&&!!this.centerItems};
_.R.computeCardListStyle=function(f){return f||null};
_.R.computeEmpty=function(f){return!this.get("cards.length",f)};
_.R.computeThumbnailStyle=function(f){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",f)||null};
_.R.computeHasSubtitle=function(f){return!!this.get("header.richListHeaderRenderer.subtitle",f)};
_.R.computeInitialCountNumber=function(f){return this.hasSquareMiniApp&&f==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&f==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:f==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:f==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:f==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&f==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.R.computeUseFloorScrolling=function(f){return f==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.R.computeHasGameCard=function(f){return(f=this.get("cards",f))?f.some(function(H){return H.gameCardRenderer}):!1};
_.R.computeCenterHeaderTitle=function(f){return!(f==null||!f.centerHeaderTitle)};
_.R.computeHasPortraitMiniApp=function(f){return(f=f==null?void 0:f.cards)?f.some(function(H){return H.miniGameCardViewModel&&H.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.R.computeHasSquareMiniApp=function(f){return(f=f==null?void 0:f.cards)?f.some(function(H){return H.miniGameCardViewModel&&H.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.R.computeHasSkinnyWidthPortraitMiniApp=function(f){return(f=f==null?void 0:f.cards)?f.some(function(H){return H.miniGameCardViewModel&&H.miniGameCardViewModel.width===135}):!1};
_.R.computeCenterItems=function(f){return!!f};
_.R.computeHasInfoPanel=function(f){var H;return f==null?void 0:(H=f.cards)==null?void 0:H.some(function(v){return v.infoPanelContentRenderer})};
_.R.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.R.getItemByIndex=function(f){var H=this.items.children;return H&&H.length>f?H[f]:void 0};
_.R.onPageChange=function(){var f=this;this.pageLoadingFromNavigation=!0;_.nN.addJob(function(){f.pageLoadingFromNavigation=!1;_.$E(f.hostElement,"yt-terminate-video-preview-action")},8)};
_.R.updateListStyles=function(){if(_.J("problem_walkthrough_sd")&&this.JSC$15132_scrollContainer!==void 0){var f=this.JSC$15132_scrollContainer.clientWidth;f!==this.JSC$15132_lastScrollContainerWidth&&(this.JSC$15132_lastScrollContainerWidth=f,_.Sr(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(f*.8,415)+"px"}),_.YE(this.hostElement,"iron-resize"))}};
_.H7.Object.defineProperties(md.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.J("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var f,H,v;return!!((f=this.data)==null?0:(H=f.cards)==null?0:(v=H[0])==null?0:v.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var f,H,v;return!!((f=this.data)==null?0:(H=f.cards)==null?0:(v=H[0])==null?0:v.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var f,H,v;return _.J("enable_desktop_amsterdam_info_panels")&&!!((f=this.data)==null?0:(H=f.cards)==null?0:(v=H[0])==null?0:v.infoPanelContentRenderer)}}});
md.prototype.dataChanged=md.prototype.dataChanged;md.prototype.onIronResize=md.prototype.onIronResize;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],md.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],md.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.Rt.YtdHorizontalListBehavior),_.N("design:type",Object)],md.prototype,"ytdHorizontalListBehavior",void 0);
_.E([_.B(_.PG),_.N("design:type",Object)],md.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],md.prototype,"data",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],md.prototype,"useCustomColors",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],md.prototype,"useHighlightStyling",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.N("design:type",Object)],md.prototype,"cardListStyle",void 0);_.E([_.F({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.N("design:type",Boolean)],md.prototype,"empty",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.N("design:type",Boolean)],md.prototype,"hasSubtitle",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.N("design:type",Boolean)],md.prototype,"thumbnailStyle",void 0);_.E([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.N("design:type",Boolean)],md.prototype,"hasGameCard",void 0);_.E([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.N("design:type",Boolean)],md.prototype,"centerHeaderTitle",void 0);
_.E([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.N("design:type",Boolean)],md.prototype,"hasPortraitMiniApp",void 0);_.E([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.N("design:type",Boolean)],md.prototype,"hasSquareMiniApp",void 0);_.E([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.N("design:type",Boolean)],md.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.E([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.N("design:type",Boolean)],md.prototype,"hasInfoPanel",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],md.prototype,"isSearch",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],md.prototype,"inlineStructuredDescription",void 0);_.E([_.lJ("#scroll-container"),_.N("design:type",HTMLDivElement)],md.prototype,"JSC$15132_scrollContainer",void 0);
_.E([_.F({computed:"computeInitialCountNumber(data.style.type)"}),_.N("design:type",Number)],md.prototype,"initialCount",void 0);_.E([_.F({computed:"computeUseFloorScrolling(data.style.type)"}),_.N("design:type",Boolean)],md.prototype,"useFloorScrolling",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.N("design:type",Boolean)],md.prototype,"centerItems",void 0);_.E([_.F(),_.N("design:type",Object)],md.prototype,"pageLoadingFromNavigation",void 0);
_.E([_.F(),_.N("design:type",Object)],md.prototype,"currentIndex",void 0);_.E([_.F(),_.N("design:type",Number)],md.prototype,"scrollCount",void 0);_.E([_.F(),_.N("design:type",Object)],md.prototype,"supportComponentResize",void 0);_.E([_.lJ("#items"),_.N("design:type",HTMLDivElement)],md.prototype,"items",void 0);_.E([_.sE("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],md.prototype,"onIronResize",null);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],md.prototype,"dataChanged",null);_.E([_.F({reflectToAttribute:!0}),_.z("inlineStructuredDescription"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],md.prototype,"hideNavigationButton",null);_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],md.prototype,"modernChapters",null);
_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],md.prototype,"hasVideoAttributeViewModels",null);_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],md.prototype,"modernInfoPanels",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],md);
_.G(md,"ytd-horizontal-card-list-renderer",function(){if(xf_!==void 0)return xf_;var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return xf_=f},{mode:_.WK("kevlar_poly_si_batch_j072")?1:2});var nQb=_.a(function(f){var H=f.data;var v={};return _.O("video-summary-content-view-model",{class:_.S2("videoSummaryContentViewModelHost",f.className,(v.videoSummaryContentViewModelHostIsSearch=f.isSearch,v))},_.O(_.eK,{each:function(){var t=[],M=H().paragraphs;if(M==null||!M.length)return[];for(var h=0;h<M.length;h++){var y=_.U(M[h],PeZ),m=void 0;h>0&&(m=_.U(M[h-1],PeZ));m&&!!m.marker===!!y.marker?t[t.length-1].paragraphs.push(y):t.push({isList:!!y.marker,paragraphs:[y]})}return t},
keyBy:"INDEX"},function(t){return _.O(_.g,{cond:function(){return t().isList},
then:function(){return _.O("ul",{class:"videoSummaryContentViewModelList"},_.O(_.eK,{each:function(){return t().paragraphs},
keyBy:"INDEX"},function(M){return _.O("li",{class:"videoSummaryContentViewModelListItem"},_.O(_.iq,{text:function(){return M().text}}))}))},
else:function(){return _.O(_.eK,{each:function(){return t().paragraphs},
keyBy:"INDEX"},function(M){return _.O("p",{class:"videoSummaryContentViewModelParagraph"},_.O(_.iq,{text:function(){return M().text}}))})}})}),_.O(_.g,{cond:function(){return!!_.U(H().likeButtonViewModel,_.Fd)&&!!_.U(H().dislikeButtonViewModel,_.z3)},
then:function(){return _.O("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.O("div",{class:"videoSummaryContentViewModelLikeButton"},_.O(_.pX,{data:function(){return _.U(H().likeButtonViewModel,_.Fd)},
disableIconAnimation:!0})),_.O(_.nX,{data:function(){return _.U(H().dislikeButtonViewModel,_.z3)}}))}}))},"ib");
nQb.idomCompat=!0;_.yn(nQb,"video-summary-content-view-model",{props:{data:_.ki,isSearch:_.ki,className:_.ki}});var $M=function(){var f=_.K.apply(this,arguments)||this;var H,v;f.isExpanded=(v=(H=f.data)==null?void 0:H.isExpanded)!=null?v:!1;f.disableExpand=!1;f.showProminentLabel=!1;f.showRightSideLabel=!0;f.toggleExpandableContent=function(t){f.disableExpand||(t.stopPropagation(),_.qY(_.f2(t),f.hostElement,["info","expanded-subtitle"])||(f.isExpanded=!f.isExpanded,f.ytRendererBehavior.logExplicitClick(f.data),f.JSC$15143_cardList&&!_.J("expandable_metadata_a11y_fix_ks")&&_.qV(f,function(){_.kX(f.hostElement)})))};
f.useSquareThumbnail=!1;f.contentHiddenWithDisplayNone=_.J("web_expandable_metadata_content_hidden_with_display_none");f.startX=0;return f};
_.e($M,_.K);_.R=$M.prototype;_.R.computeUseSquareThumbnail=function(){var f;return(f=this.data)==null?void 0:f.useSquareThumbnail};
_.R.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"}}}}};
_.R.dataChanged=function(){if(this.data){var f,H;this.isExpanded=(H=(f=this.data)==null?void 0:f.isExpanded)!=null?H:!1;var v,t,M,h;if(f=this.isDarkTheme()?(v=this.data)==null?void 0:(t=v.colorData)==null?void 0:t.darkColorPalette:(M=this.data)==null?void 0:(h=M.colorData)==null?void 0:h.lightColorPalette){var y,m;if((y=this.data)==null?0:(m=y.colorData)==null?0:m.vibrantColorPalette)f.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.r6(this.hostElement,f)}}};
_.R.isExpandedChanged=function(){this.isExpanded&&this.JSC$15143_cardList&&_.YE(this.JSC$15143_cardList,"iron-resize")};
_.R.computeIsExpanded=function(f){return!!f.isExpanded};
_.R.computeShowProminentLabel=function(f,H){var v;return!!(f==null?0:(v=f.header)==null?0:v.showLeadingCollapsedLabel)&&!H};
_.R.computeShowRightSideLabel=function(f,H){var v;return!(f==null?0:(v=f.header)==null?0:v.showLeadingCollapsedLabel)&&!H};
_.R.captureContentClick=function(f){if(!this.disableExpand)if(_.J("expandable_metadata_fix_killswitch")){var H=f.target;_.H09(H,"ytd-macro-markers-list-item-renderer")||f.stopPropagation();(H==null?void 0:H.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.qY(_.f2(f),this.hostElement,["items"])||_.w6(_.f2(f),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.R.timestampClick=function(f){f.stopPropagation();var H,v;(f=(H=this.data)==null?void 0:(v=H.header)==null?void 0:v.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(f)};
_.R.onDown=function(f){f.stopPropagation();this.startX=f.detail?f.detail.x:0};
_.R.onUp=function(f){this.skipKeyInteraction(f)&&f.stopPropagation()};
_.R.skipKeyInteraction=function(f){var H=f.target;if((H==null?void 0:H.id)==="scroll-container"||(H==null?void 0:H.id)==="items"||f.detail&&f.detail.x!==this.startX)return!0;f=_.f2(f);f=_.V(f);for(H=f.next();!H.done;H=f.next()){H=H.value;if(H===this.hostElement)break;if(H.hasAttribute&&H.hasAttribute("skip-key-interaction"))return!0}return!1};
_.R.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.H7.Object.defineProperties($M.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var f;return!!_.U((f=this.data)==null?void 0:f.expandedContent,aNo)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var f;return!!_.U((f=this.data)==null?void 0:f.expandedContent,_.u9v)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var f,H;return!((f=this.data)==null||!f.useCustomColors)&&!((H=this.data)==null||!H.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var f,H;return!!((f=this.data)==null?0:(H=f.header)==null?0:H.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var f,H;return!!((f=this.data)==null?0:(H=f.header)==null?0:H.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var f,H;return!!((f=this.data)==null?0:(H=f.header)==null?0:H.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}},
contentHidden:{configurable:!0,enumerable:!0,get:function(){return _.J("web_expandable_metadata_content_hidden_with_display_none")&&!this.isExpanded}}});
$M.prototype.onUp=$M.prototype.onUp;$M.prototype.onDown=$M.prototype.onDown;$M.prototype.isExpandedChanged=$M.prototype.isExpandedChanged;$M.prototype.dataChanged=$M.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],$M.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],$M.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],$M.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],$M.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],$M.prototype,"isExpanded",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],$M.prototype,"disableExpand",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],$M.prototype,"isSearch",void 0);
_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],$M.prototype,"isWatch",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.N("design:type",Object)],$M.prototype,"showProminentLabel",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.N("design:type",Object)],$M.prototype,"showRightSideLabel",void 0);
_.E([_.F({value:!1,reflectToAttribute:!0}),_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],$M.prototype,"hasVideoSummary",null);_.E([_.F({value:!1,reflectToAttribute:!0}),_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],$M.prototype,"hasLockupViewModel",null);_.E([_.F({reflectToAttribute:!0}),_.z("data","isWatch"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],$M.prototype,"useCustomColors",null);
_.E([_.F({reflectToAttribute:!0}),_.z("data","isExpanded"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],$M.prototype,"showInfoButton",null);_.E([_.z("data","isExpanded"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],$M.prototype,"showTimestamp",null);_.E([_.z("data","isExpanded"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],$M.prototype,"showExpandedSubtitle",null);
_.E([_.z("data","isExpanded"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],$M.prototype,"showThumbnail",null);_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],$M.prototype,"useVppShoppingDestinationStyle",null);_.E([_.F(),_.N("design:type",Object)],$M.prototype,"toggleExpandableContent",void 0);_.E([_.lJ("ytd-horizontal-card-list-renderer"),_.N("design:type",Object)],$M.prototype,"JSC$15143_cardList",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.N("design:type",Object)],$M.prototype,"useSquareThumbnail",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],$M.prototype,"contentHiddenWithDisplayNone",void 0);_.E([_.z("isExpanded"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],$M.prototype,"contentHidden",null);
_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$M.prototype,"dataChanged",null);_.E([_.Zw("isExpanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$M.prototype,"isExpandedChanged",null);_.E([_.sE("down"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],$M.prototype,"onDown",null);
_.E([_.sE("up"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],$M.prototype,"onUp",null);_.E([_.u({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],$M);
_.G($M,"ytd-expandable-metadata-renderer",function(){if(nhv!==void 0)return nhv;var f=document.createElement("template");_.x(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[contentHidden]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return nhv=f},{mode:1});var pma,Q7g=function(){if(pma!==void 0)return pma;var f=document.createElement("template");_.x(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return pma=f};_.yn(_.oY,"yt-avatar-stack-view-model",{props:{className:_.ki,data:_.ki,overrides:_.ki,isOverlay:_.ki,useMediumText:_.ki,decorations:_.ki,hideAvatar:_.ki}});_.DE("itemSectionRenderer","videoRenderer","ytd-video-renderer");var WO=function(){var f=_.K.apply(this,arguments)||this;f.disableExpand=!1;f.shouldShowChannelInfo=!1;f.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return f};
_.e(WO,_.K);_.R=WO.prototype;_.R.computeUseSearchUi=function(){var f,H;return this.isSearch||((f=this.data)==null?void 0:(H=f.style)==null?void 0:H.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.R.computeUseThreeLineTitle=function(){var f;return((f=this.data)==null?void 0:f.maxTitleLines)===3};
_.R.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.J("polymer_video_renderer_defer_menu")&&!Lrh?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"}}}};
_.R.attached=function(){_.WB(this.hostElement,"blue-links",_.J("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.R.detached=function(){this.clearInlinePreviewHoverListeners()};
_.R.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.OE(_.mF(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var f=this.get("data.buttons.buttonRenderer.serviceEndpoint"),H;f&&((H=_.U(f.commandMetadata,_.eA))==null?0:H.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(f);this.updateInlinePreviewHoverListeners()};
_.R.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15148_inlinePreviewHoverListener=Q4({mediaRenderer:this,lockupElement:this.JSC$15148_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.R.clearInlinePreviewHoverListeners=function(){var f;(f=this.JSC$15148_inlinePreviewHoverListener)==null||AY(f)};
_.R.onTextWrapperClick=function(f){var H,v,t=this.hideTranslation?(H=this.data)==null?void 0:H.untranslatedNavigationEndpoint:(v=this.data)==null?void 0:v.navigationEndpoint;H=_.qY(_.f2(f),this.hostElement,["expandable-metadata"]);!t||H&&!_.J("expandable_metadata_fix_killswitch")||_.w6(_.f2(f),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.YE(this.hostElement,"yt-navigate",{endpoint:t})};
_.R.computeThumbnailWidth=function(f,H,v,t,M){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:t?M==="MASSIVE"?600:M==="BIG"?500:M==="MEDIUM"?450:420:v?360:H?128:f?210:246};
_.R.computeUseBiggerThumbs=function(f){return f&&_.J("enable_desktop_search_bigger_thumbs")};
_.R.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.R.computeVideoStyle=function(){if(_.J("enable_video_style")){var f,H;return(f=this.data)==null?void 0:(H=f.style)==null?void 0:H.value}};
_.R.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.R.handleHideItemSectionVideosByIdCommand=function(f){var H;f=(H=_.U(f,Vhv))==null?void 0:H.videoId;this.data&&this.data.videoId===f&&(this.isHidden=!0)};
_.R.getMetadataSnippetContainerClass=function(f){return f?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.R.computeTitleText=function(f,H,v){return f?v:H};
_.R.computeDescriptionSnippet=function(f,H,v){return f?v:H};
_.R.computeSnippetText=function(f,H,v){return f?v:H};
_.R.computeNavigationEndpoint=function(f,H){return f?H==null?void 0:H.untranslatedNavigationEndpoint:H==null?void 0:H.navigationEndpoint};
_.R.hideInlineTitleIcon=function(f,H){return f||!H};
_.H7.Object.defineProperties(WO.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 f;return(f=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?f:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var f,H,v;return!!(this==null?0:(f=this.data)==null?0:(H=f.channelThumbnailSupportedRenderers)==null?0:(v=H.channelThumbnailWithLinkRenderer)==null?0:v.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var f;return!!_.U((f=this.data)==null?void 0:f.avatar,a5h)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.JSC$15148_inlinePreviewHoverListener)==null?0:Q5(f))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.H7.Object.defineProperties(WO,{template:{configurable:!0,enumerable:!0,get:function(){return Q7g()}}});
WO.prototype.dataChanged=WO.prototype.dataChanged;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],WO.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],WO.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],WO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.PG),_.N("design:type",Object)],WO.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.B(_.A_),_.N("design:type",Object)],WO.prototype,"ytdLockupBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],WO.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],WO.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],WO.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],WO.prototype,"isBackstageVideo",void 0);
_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],WO.prototype,"isPostCompactVideo",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],WO.prototype,"isHistory",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],WO.prototype,"isRichGridVideoPost",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],WO.prototype,"isHidden",void 0);
_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],WO.prototype,"isSearch",void 0);_.E([_.F({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.N("design:type",Boolean)],WO.prototype,"useSearchUi",void 0);_.E([_.F({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.N("design:type",Boolean)],WO.prototype,"useThreeLineTitle",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.N("design:type",Boolean)],WO.prototype,"useBiggerThumbs",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.N("design:type",Object)],WO.prototype,"videoStyle",void 0);_.E([_.F({computed:"computeDisableExpand(videoStyle)"}),_.N("design:type",Object)],WO.prototype,"disableExpand",void 0);
_.E([_.F({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.N("design:type",Object)],WO.prototype,"shouldShowChannelInfo",void 0);_.E([_.F({reflectToAttribute:!0,value:function(){return _.yQ("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],WO.prototype,"biggerThumbsStyle",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.N("design:type",String)],WO.prototype,"inlineTitleIcon",void 0);_.E([_.F({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.N("design:type",Object)],WO.prototype,"computedNavigationEndpoint",void 0);_.E([_.F({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(f,H){return _.dL(f.entities,"searchVideoResultEntity",H)}}),
_.N("design:type",Object)],WO.prototype,"searchVideoResultEntity",void 0);_.E([_.lJ("ytd-thumbnail"),_.N("design:type",HTMLElement)],WO.prototype,"thumbnail",void 0);_.E([_.lJ("#dismissible"),_.N("design:type",HTMLElement)],WO.prototype,"JSC$15148_dismissibleMedia",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WO.prototype,"dataChanged",null);
_.E([_.z("searchVideoResultEntity"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],WO.prototype,"hideTranslation",null);_.E([_.z("searchVideoResultEntity"),_.N("design:type",Array),_.N("design:paramtypes",[])],WO.prototype,"hiddenBadgeGroups",null);_.E([_.z("data","useAvatar"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],WO.prototype,"shouldShowChannelThumbnail",null);_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],WO.prototype,"useAvatar",null);
_.E([_.z("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],WO.prototype,"isHovered",null);_.E([_.u({is:"ytd-video-renderer",disableElementRegistration:!0})],WO);_.G(WO,"ytd-video-renderer",function(){return Q7g()},{mode:_.WK("kevlar_poly_si_batch_j047")?1:2});var O_=function(){var f=_.K.apply(this,arguments)||this;f.editDialog=null;f.roundedContainer=!0;f.isLoading=!1;f.isRichGrid=!1;f.isRichGridRepost=!1;f.reduceSidePaddings=_.J("reduce_side_paddings_in_shelf");f.JSC$15155_spinnerEl=null;return f};
_.e(O_,_.K);_.R=O_.prototype;
_.R.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"}}}};
_.R.contentTextChanged=function(){this.expander.reset()};
_.R.dataChanged=function(){var f=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var H=0,v=this.data.actions&&this.data.actions.length;H<v;H++)this.openEditDialog(_.U(this.data.actions[H],jSo));if((H=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(H=this.get("buttonRenderer.hint.hintRenderer.hintId",H))&&H.startsWith("share-post-hint")){var t=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(t){_.tp.getInstance();var M=MB(_.qO(_.ZC("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.nN.addLowPriorityJob(function(){_.Oj(f.hostElement,M,t)})}}}};
_.R.updatePoll=function(f){f>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.R.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15155_spinnerEl||(this.JSC$15155_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.mF(this.hostElement).appendChild(this.JSC$15155_spinnerEl));this.JSC$15155_spinnerEl&&(this.JSC$15155_spinnerEl.active=this.isLoading)};
_.R.onYtNavigate=function(f){var H=this.get("updateCommentDialogEndpoint",f.detail.endpoint);H&&(this.openEditDialog(H),f.stopPropagation())};
_.R.onYtCommentboxDismiss=function(){this.editDialog=null};
_.R.onYtCommentPollRevert=function(f,H){H&&this.updatePoll(H.selectedChoiceIndex)};
_.R.onYtServiceRequestSent=function(f,H){var v;H.endpoint&&(_.U(H.endpoint,k3h)||_.U(H.endpoint,ivh)&&((v=_.U(H.endpoint,ivh))==null||!v.clientActions))&&(this.isLoading=!0);if(H.actions)for(f=0;f<H.actions.length;f++)v=H.actions[f],_.U(v,lP)&&(v=this.get("updateBackstagePollAction.selectedChoiceIndex",v),v==void 0&&(v=-1),this.updatePoll(v))};
_.R.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.R.openEditDialog=function(f){f&&f.dialog&&(this.editDialog=f.dialog,f=this.editDialogEl.firstElementChild)&&(f.focus(),f.openDialog&&f.openDialog())};
_.R.computeIsPostHidden=function(f,H){return!!f||H};
_.R.computeSurfaceType=function(f){return f?f.toLowerCase().replace(/_/g,"-"):""};
_.R.computeUsesCompactLockup=function(f){return f==="BACKSTAGE_SURFACE_TYPE_HOME"||f==="BACKSTAGE_SURFACE_TYPE_SEARCH"||f==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||f==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||f==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||f==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.R.computeShowWithoutToolbar=function(f){return!f.actionButtons&&!f.actionMenu};
_.R.computePostAttachment=function(f){if(f.backstageAttachment){if(_.U(f.backstageAttachment,zY9))return"poll";if(_.U(f.backstageAttachment,W5h))return"quiz";if(_.U(f.backstageAttachment,_.QD))return"video";if(_.U(f.backstageAttachment,OvM))return"uploaded-videos";if(_.U(f.backstageAttachment,E0a))return f.contentText?"image":"image-only";if(_.U(f.backstageAttachment,ycg))return"playlist"}return"none"};
_.R.computePostTabIndex=function(f){return f?0:-1};
_.R.computeButtonTooltipPosition=function(f){return this.computeUsesCompactLockup(f)?"top":"bottom"};
_.R.computeHasText=function(f){return!(f==null||!f.contentText)};
_.R.onTap=function(f){var H,v;if(((H=this.data)==null?0:H.navigationEndpoint)&&((v=this.data)==null?void 0:v.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var t;((t=this.data)==null?0:t.navigationEndpoint)&&!_.w6(_.f2(f)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.YE(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.H7.Object.defineProperties(O_.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.voteCount)||_.qO("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.U(this.data.backstageAttachment,zY9))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.U(this.data.backstageAttachment,OvM))}}});
O_.prototype.onYtServiceRequestCompleted=O_.prototype.onYtServiceRequestCompleted;O_.prototype.onYtServiceRequestSent=O_.prototype.onYtServiceRequestSent;O_.prototype.onYtCommentPollRevert=O_.prototype.onYtCommentPollRevert;O_.prototype.onYtCommentboxDismiss=O_.prototype.onYtCommentboxDismiss;O_.prototype.onYtNavigate=O_.prototype.onYtNavigate;O_.prototype.isLoadingChanged=O_.prototype.isLoadingChanged;O_.prototype.dataChanged=O_.prototype.dataChanged;O_.prototype.contentTextChanged=O_.prototype.contentTextChanged;
_.E([_.B(_.PG),_.N("design:type",Object)],O_.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],O_.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],O_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],O_.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],O_.prototype,"data",void 0);
_.E([_.F(),_.N("design:type",Object)],O_.prototype,"editDialog",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],O_.prototype,"roundedContainer",void 0);_.E([_.F(),_.N("design:type",Object)],O_.prototype,"isLoading",void 0);_.E([_.F({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.N("design:type",String)],O_.prototype,"surface",void 0);
_.E([_.F({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.N("design:type",Boolean)],O_.prototype,"usesCompactLockup",void 0);_.E([_.F({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],O_.prototype,"showWithoutToolbar",void 0);_.E([_.F({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.N("design:type",String)],O_.prototype,"attachment",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],O_.prototype,"isRichGrid",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],O_.prototype,"isRichGridRepost",void 0);_.E([_.F({reflectToAttribute:!0,value:_.J("use_better_post_dismissals")}),_.N("design:type",Boolean)],O_.prototype,"useBetterPostDismissals",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],O_.prototype,"reduceSidePaddings",void 0);
_.E([_.F({computed:"computeHasText(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],O_.prototype,"hasText",void 0);_.E([_.lJ("#expander"),_.N("design:type",Object)],O_.prototype,"expander",void 0);_.E([_.lJ("#action-buttons"),_.N("design:type",Object)],O_.prototype,"actionButtons",void 0);_.E([_.lJ("#edit-dialog"),_.N("design:type",HTMLElement)],O_.prototype,"editDialogEl",void 0);
_.E([_.Zw("data.contentText"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],O_.prototype,"contentTextChanged",null);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],O_.prototype,"dataChanged",null);_.E([_.Zw("isLoading"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],O_.prototype,"isLoadingChanged",null);
_.E([_.sE("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],O_.prototype,"onYtNavigate",null);_.E([_.sE("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],O_.prototype,"onYtCommentboxDismiss",null);_.E([_.sE("yt-comment-poll-revert"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],O_.prototype,"onYtCommentPollRevert",null);
_.E([_.sE("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.ER]),_.N("design:returntype")],O_.prototype,"onYtServiceRequestSent",null);_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.TI]),_.N("design:returntype")],O_.prototype,"onYtServiceRequestCompleted",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],O_.prototype,"voteCount",null);
_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],O_.prototype,"commentCount",null);_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],O_.prototype,"hasPoll",null);_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],O_.prototype,"hasUploadedVideo",null);_.E([_.u({is:"ytd-post-renderer",disableElementRegistration:!0})],O_);
_.G(O_,"ytd-post-renderer",function(){if(vhH!==void 0)return vhH;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return vhH=f},{mode:1});var uSr;var a8g;var gz=function(){return _.K.apply(this,arguments)||this};
_.e(gz,_.K);gz.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],gz.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],gz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.Rt.YtdHorizontalListBehavior),_.N("design:type",Object)],gz.prototype,"ytdHorizontalListBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],gz.prototype,"componentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],gz.prototype,"data",void 0);
_.E([_.F({value:"$.items.children"}),_.N("design:type",String)],gz.prototype,"itemsPath",void 0);_.E([_.F({value:1}),_.N("design:type",Number)],gz.prototype,"initialCount",void 0);_.E([_.F(),_.N("design:type",String)],gz.prototype,"surface",void 0);_.E([_.u({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],gz);
_.G(gz,"ytd-post-multi-image-renderer",function(){if(a8g!==void 0)return a8g;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return a8g=f},{mode:_.WK("kevlar_poly_si_batch_j079")?1:2});var P6_={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}},Ie=function(){var f=_.K.apply(this,arguments)||this;f.hasInlineCommentSection=!1;f.editDialog=null;f.isLoading=!1;f.shouldHideAuthor=!1;f.shouldShowVideoTime=!1;
f.isInEngagementPanel=!1;f.hideBorder=!1;f.usesFullLockup=!1;f.shouldShowMenuInCompactView=!1;f.JSC$15171_spinnerEl=null;f.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return f};
_.e(Ie,_.K);_.R=Ie.prototype;_.R.configureRendererStamper=function(){return P6_};
_.R.computeIsPollHeaderEnabled=function(f){return(f==null?void 0:f.pollMetadataIcon)!=null};
_.R.getPublishTimeStampString=function(f,H){H=new Date((Number(H)-60*((new Date).getTimezoneOffset()-(new Date(Number(H)*1E3)).getTimezoneOffset()))*1E3);H=(new TZ(10)).format(H);if(f&&f.runs&&f.runs.length)for(var v=0;v<f.runs.length;v++)f.runs[v].text&&(f.runs[v].text=f.runs[v].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",H));return f};
_.R.created=function(){this.JSC$15171_spinnerEl=null};
_.R.contentTextChanged=function(){this.expander.reset()};
_.R.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var f;if((f=this.data)==null?0:f.actions){f=_.V(this.data.actions);for(var H=f.next();!H.done;H=f.next())this.openEditDialog(_.U(H.value,jSo))}};
_.R.handleSignalActionOpenPostCommentDialogAction=function(){_.mF(this.hostElement).querySelector("#action-buttons").reply()};
_.R.updatePoll=function(f,H){H&&this.set("data.pollMetadataVoteCountText",H);this.hasInlineCommentSection&&(f=f>=0,H=_.mF(this.hostElement).querySelector("#action-buttons"),f?H.reply():H.hideReplyDialog())};
_.R.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15171_spinnerEl||(this.JSC$15171_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.mF(this.hostElement).appendChild(this.JSC$15171_spinnerEl));this.JSC$15171_spinnerEl&&(this.JSC$15171_spinnerEl.active=this.isLoading)};
_.R.onYtNavigate=function(f){var H=this.get("updateCommentDialogEndpoint",f.detail.endpoint);H&&(this.openEditDialog(H),f.stopPropagation())};
_.R.onYtCommentboxDismiss=function(){this.editDialog=null};
_.R.onYtCommentPollRevert=function(f,H){H&&this.updatePoll(H.selectedChoiceIndex,H.totalVotes)};
_.R.onYtServiceRequestSent=function(f,H){f.stopPropagation();f=_.U(H.endpoint,ivh);if(_.U(H.endpoint,k3h)||f&&!f.clientActions)this.isLoading=!0;if(H.actions)for(f=0;f<H.actions.length;f++){var v=H.actions[f],t=_.U(v,lP);t&&(v=this.get("updateBackstagePollAction.selectedChoiceIndex",v),v===void 0&&(v=-1),this.updatePoll(v,t.totalVotes))}};
_.R.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.R.openEditDialog=function(f){f&&f.dialog&&(this.editDialog=f.dialog,f=this.editDialogElement.firstElementChild)&&(f.focus(),f.openDialog&&f.openDialog())};
_.R.computeIsBodyHidden=function(f,H){return!!f||H};
_.H7.Object.defineProperties(Ie.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var f,H;if((f=this.data)==null?0:(H=f.pollMetadataIcon)==null?0:H.iconType)return _.SW(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.voteCount)||_.qO("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.U(this.data.backstageAttachment,zY9))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.U(this.data.backstageAttachment,W5h))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.U(this.data.backstageAttachment,OvM))}}});
Ie.prototype.onYtServiceRequestCompleted=Ie.prototype.onYtServiceRequestCompleted;Ie.prototype.onYtServiceRequestSent=Ie.prototype.onYtServiceRequestSent;Ie.prototype.onYtCommentPollRevert=Ie.prototype.onYtCommentPollRevert;Ie.prototype.onYtCommentboxDismiss=Ie.prototype.onYtCommentboxDismiss;Ie.prototype.onYtNavigate=Ie.prototype.onYtNavigate;Ie.prototype.isLoadingChanged=Ie.prototype.isLoadingChanged;Ie.prototype.dataChanged=Ie.prototype.dataChanged;Ie.prototype.contentTextChanged=Ie.prototype.contentTextChanged;
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Ie.prototype,"actionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Ie.prototype,"rendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Ie.prototype,"rendererstamperBehavior",void 0);_.E([_.lJ("#contentTextExpander"),_.N("design:type",Object)],Ie.prototype,"expander",void 0);
_.E([_.lJ("#edit-dialog"),_.N("design:type",Element)],Ie.prototype,"editDialogElement",void 0);_.E([_.F(),_.N("design:type",Object)],Ie.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],Ie.prototype,"hasInlineCommentSection",void 0);_.E([_.F(),_.N("design:type",Object)],Ie.prototype,"editDialog",void 0);_.E([_.F(),_.N("design:type",Object)],Ie.prototype,"isLoading",void 0);
_.E([_.F({computed:"computeIsPollHeaderEnabled(data)"}),_.N("design:type",Boolean)],Ie.prototype,"isPollHeaderEnabled",void 0);_.E([_.F(),_.N("design:type",Object)],Ie.prototype,"shouldHideAuthor",void 0);_.E([_.F(),_.N("design:type",Object)],Ie.prototype,"shouldShowVideoTime",void 0);_.E([_.F(),_.N("design:type",Object)],Ie.prototype,"isInEngagementPanel",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Ie.prototype,"hideBorder",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Ie.prototype,"usesFullLockup",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Ie.prototype,"shouldShowMenuInCompactView",void 0);_.E([_.z("isInEngagementPanel"),_.N("design:type",Number),_.N("design:paramtypes",[])],Ie.prototype,"postTextMaxLines",null);_.E([_.z("data.icon.iconType"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ie.prototype,"pollIcon",null);
_.E([_.Zw("data.contentText"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ie.prototype,"contentTextChanged",null);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ie.prototype,"dataChanged",null);_.E([_.Zw("isLoading"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ie.prototype,"isLoadingChanged",null);
_.E([_.sE("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ie.prototype,"onYtNavigate",null);_.E([_.sE("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ie.prototype,"onYtCommentboxDismiss",null);_.E([_.sE("yt-comment-poll-revert"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Ie.prototype,"onYtCommentPollRevert",null);
_.E([_.sE("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.ER]),_.N("design:returntype")],Ie.prototype,"onYtServiceRequestSent",null);_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ie.prototype,"onYtServiceRequestCompleted",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ie.prototype,"voteCount",null);
_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ie.prototype,"commentCount",null);_.E([_.z("data.backstageAttachment"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ie.prototype,"hasPoll",null);_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ie.prototype,"hasQuiz",null);_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ie.prototype,"hasUploadedVideo",null);
_.E([_.u({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],Ie);
_.G(Ie,"ytd-backstage-post-renderer",function(){if(uSr!==void 0)return uSr;var f=document.createElement("template");_.x(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return uSr=f},{mode:1});var GpH;var Sl=function(){var f=_.K.apply(this,arguments)||this;f.editDialog=null;f.showExpandButton=!1;f.isRichGrid=!1;f.usesFullLockup=!1;return f};
_.e(Sl,_.K);_.R=Sl.prototype;_.R.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"}}}};
_.R.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.R.computeShowExpandButton=function(f){return this.usesCompactLockup||f&&f.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.R.computeUsesCompactLockup=function(f){return!!f.condensedContent};
_.R.computeShowFullContentText=function(f){return!f};
_.R.onYtNavigate=function(f){f=this.get("updateCommentDialogEndpoint",f.detail.endpoint);this.openEditDialog(f)};
_.R.onYtCommentboxDismiss=function(){this.editDialog=null};
_.R.openEditDialog=function(f){f&&f.dialog&&(this.editDialog=f.dialog,f=this.repostEditDialogEl.firstElementChild)&&(f.focus(),f.openDialog&&f.openDialog())};
_.R.onTap=function(f){if(this.data){var H=null;this.usesCompactLockup&&!_.w6(_.f2(f)||[],this.hostElement,["YT-IMG-SHADOW"])?H=this.get("navigationEndpoint",this.data):f.target===this.moreButtonEl&&(H=this.get("navigationEndpoint",f.target.data));H&&_.YE(this.hostElement,"yt-navigate",{endpoint:H})}};
Sl.prototype.onYtCommentboxDismiss=Sl.prototype.onYtCommentboxDismiss;Sl.prototype.onYtNavigate=Sl.prototype.onYtNavigate;Sl.prototype.dataChanged=Sl.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Sl.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Sl.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Sl.prototype,"data",void 0);
_.E([_.F(),_.N("design:type",Object)],Sl.prototype,"editDialog",void 0);_.E([_.F({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Sl.prototype,"usesCompactLockup",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Sl.prototype,"showExpandButton",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Sl.prototype,"isRichGrid",void 0);
_.E([_.F({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Sl.prototype,"showFullContentText",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Sl.prototype,"usesFullLockup",void 0);_.E([_.lJ("#more"),_.N("design:type",Object)],Sl.prototype,"moreButtonEl",void 0);_.E([_.lJ("#repost-content-text"),_.N("design:type",HTMLElement)],Sl.prototype,"repostContentTextEl",void 0);
_.E([_.lJ("#repost-edit-dialog"),_.N("design:type",HTMLElement)],Sl.prototype,"repostEditDialogEl",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Sl.prototype,"dataChanged",null);_.E([_.sE("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Sl.prototype,"onYtNavigate",null);
_.E([_.sE("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Sl.prototype,"onYtCommentboxDismiss",null);_.E([_.u({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],Sl);
_.G(Sl,"ytd-shared-post-renderer",function(){if(GpH!==void 0)return GpH;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return GpH=f},{mode:1});var C6v;var EQZ;var dz=function(){return _.K.apply(this,arguments)||this};
_.e(dz,_.K);dz.prototype.attached=function(){var f=this;this.networkStatusManager||(this.networkStatusManager=new _.Aa,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){f.onlineHandler()}))};
dz.prototype.detached=function(){var f=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){f.onlineHandler()}),delete this.networkStatusManager)};
dz.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],dz.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],dz.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],dz.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],dz);
_.G(dz,"ytd-reload-page-button-renderer",function(){if(EQZ!==void 0)return EQZ;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);
return EQZ=f},{mode:1});var Nf9={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"},jl=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.e(jl,_.K);_.R=jl.prototype;_.R.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.R.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.R.computeHasBodyText=function(f){return!!f.bodyText};
_.R.computeButtons=function(f){var H=[];f.ctaButton&&H.push(f.ctaButton);f.secondaryButton&&H.push(f.secondaryButton);return H};
_.R.computeRendererStyle=function(f){return f.style?f.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():f.icon?"":"no-icon"};
_.R.getIconName=function(f,H){H=H===void 0?!1:H;if(f===void 0)return"";f=this.get("icon.iconType",f);var v;_.J("enable_hlp_client_icon_pick")?v=this.getThemedIcon(f,H):v=f;(H=Nf9[v])||(H="yt-icons");return[H,v].join(":")};
_.R.getThemedIcon=function(f,H){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(f)?H?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(f)?H?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":f};
_.R.isThumbnail=function(f){return!!f.thumbnail};
_.R.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.R.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],jl.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],jl.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],jl.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],jl.prototype,"data",void 0);
_.E([_.F({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.N("design:type",String)],jl.prototype,"rendererStyle",void 0);_.E([_.F({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.N("design:type",String)],jl.prototype,"iconName",void 0);_.E([_.F({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],jl.prototype,"thumbnail",void 0);_.E([_.F({computed:"computeButtons(data)"}),_.N("design:type",Array)],jl.prototype,"buttons",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],jl.prototype,"isDarkTheme",void 0);_.E([_.F({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],jl.prototype,"hasBodyText",void 0);_.E([_.u({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],jl);
_.G(jl,"ytd-background-promo-renderer",function(){if(C6v!==void 0)return C6v;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return C6v=f},{mode:1});var cKZ;var s_=function(){var f=_.K.apply(this,arguments)||this;f.collections=_.J("web_modern_collections_v2");return f};
_.e(s_,_.K);_.H7.Object.defineProperties(s_.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var f,H,v,t,M,h;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(f=this.data)==null?void 0:(H=f.thumbnail)==null?void 0:H.sampledThumbnailColor,vibrantColorPalette:(v=this.data)==null?void 0:(t=v.thumbnail)==null?void 0:t.vibrantColorPalette,darkColorPalette:(M=this.data)==null?void 0:(h=M.thumbnail)==null?void 0:h.darkColorPalette,experimentEnabled:this.collections}}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],s_.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],s_.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],s_.prototype,"collections",void 0);_.E([_.z("data","collections"),_.N("design:type",Object),_.N("design:paramtypes",[])],s_.prototype,"collectionStack",null);_.E([_.u({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],s_);
_.G(s_,"ytd-compact-station-renderer",function(){if(cKZ!==void 0)return cKZ;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return cKZ=f},{mode:1});var Xmr;var Z1=function(){var f=_.K.apply(this,arguments)||this;f.isRichGrid=!1;return f};
_.e(Z1,_.K);Z1.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]]"}}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Z1.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Z1.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Z1.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Z1.prototype,"isRichGrid",void 0);_.E([_.u({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],Z1);
_.G(Z1,"ytd-grid-channel-renderer",function(){if(Xmr!==void 0)return Xmr;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Xmr=f},{mode:1});var AKh;var Jo=function(){return _.K.apply(this,arguments)||this};
_.e(Jo,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Jo.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Jo.prototype,"data",void 0);_.E([_.u({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],Jo);
_.G(Jo,"ytd-grid-movie-playlist-renderer",function(){if(AKh!==void 0)return AKh;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return AKh=f},{mode:1});var bFM;var ln=function(){var f=_.K.apply(this,arguments)||this;f.downloadProgress=0;f.transferState="TRANSFER_STATE_UNKNOWN";f.modernButtons=_.J("web_modern_buttons");f.useModernCollectionsV2=_.J("web_modern_collections_v2");return f};
_.e(ln,_.K);ln.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
ln.prototype.configureRendererStamper=function(){return{"data.menu":dq}};
ln.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
ln.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.J("woffle_playlist_renderer_killswitch")){var f,H=J$E(this.entityInfo,this.transferState,this.downloadProgress,(f=this.data)==null?void 0:f.playlistId,this.isOnline);f=H.viewPlaylistText;var v=H.badges;H=H.thumbnailOverlays;this.isDownloads=!!f||!!v;this.set("data.viewPlaylistText",f);v&&v.length>0&&this.set("data.badges",v);H&&H.length>0&&this.set("data.thumbnailOverlays",
H)}};
_.H7.Object.defineProperties(ln.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 f;return!((f=this.data)==null?0:f.menu)}}});
ln.prototype.transferStateChanged=ln.prototype.transferStateChanged;ln.prototype.dataChanged=ln.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ln.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.A_),_.N("design:type",Object)],ln.prototype,"ytdLockupBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],ln.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],ln.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.F({selector:_.hPR,selectorArgs:["data.playlistId"]}),_.N("design:type",Object)],ln.prototype,"downloadProgress",void 0);_.E([_.F({selector:_.EF,selectorArgs:["data.playlistId"]}),_.N("design:type",Object)],ln.prototype,"transferState",void 0);_.E([_.F({selector:MDR,selectorArgs:["data.playlistId"]}),_.N("design:type",Object)],ln.prototype,"entityInfo",void 0);_.E([_.F({selector:_.GZ}),_.N("design:type",Boolean)],ln.prototype,"isOnline",void 0);
_.E([_.F(),_.N("design:type",Object)],ln.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],ln.prototype,"downloadRenderData",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],ln.prototype,"modernButtons",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],ln.prototype,"isDownloads",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],ln.prototype,"useModernCollectionsV2",void 0);
_.E([_.z("transferState"),_.F({reflectToAttribute:!0}),_.N("design:type",String),_.N("design:paramtypes",[])],ln.prototype,"downloadState",null);_.E([_.z("data"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ln.prototype,"menuHidden",null);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ln.prototype,"dataChanged",null);
_.E([_.xV("transferState","downloadProgress","isOnline"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ln.prototype,"transferStateChanged",null);_.E([_.u({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],ln);
_.G(ln,"ytd-grid-playlist-renderer",function(){if(bFM!==void 0)return bFM;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return bFM=f},{mode:1});var iFv;var U_=function(){var f=_.K.apply(this,arguments)||this;f.collections=_.J("web_modern_collections_v2");return f};
_.e(U_,_.K);U_.prototype.configureRendererStamper=function(){return{"data.menu":dq,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.H7.Object.defineProperties(U_.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var f,H,v,t,M,h;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(f=this.data)==null?void 0:(H=f.thumbnail)==null?void 0:H.sampledThumbnailColor,vibrantColorPalette:(v=this.data)==null?void 0:(t=v.thumbnail)==null?void 0:t.vibrantColorPalette,darkColorPalette:(M=this.data)==null?void 0:(h=M.thumbnail)==null?void 0:h.darkColorPalette,experimentEnabled:this.collections}}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],U_.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.PG),_.N("design:type",Object)],U_.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.B(_.A_),_.N("design:type",Object)],U_.prototype,"ytdLockupBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],U_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],U_.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],U_.prototype,"collections",void 0);_.E([_.z("data","collections"),_.N("design:type",Object),_.N("design:paramtypes",[])],U_.prototype,"collectionStack",null);_.E([_.u({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],U_);
_.G(U_,"ytd-grid-radio-renderer",function(){if(iFv!==void 0)return iFv;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return iFv=f},{mode:1});var kpT;var el=function(){var f=_.K.apply(this,arguments)||this;f.useModernCollectionsV2=_.J("web_modern_collections_v2");return f};
_.e(el,_.K);el.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
el.prototype.computeNavigationEndpoint=function(f){return wws(f==null?void 0:f.navigationEndpoint)};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],el.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],el.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.A_),_.N("design:type",Object)],el.prototype,"ytdLockupBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],el.prototype,"data",void 0);_.E([_.F({computed:"computeNavigationEndpoint(data)"}),_.N("design:type",Object)],el.prototype,"computedNavigationEndpoint",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],el.prototype,"useModernCollectionsV2",void 0);_.E([_.u({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],el);
_.G(el,"ytd-grid-show-renderer",function(){if(kpT!==void 0)return kpT;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return kpT=f},{mode:1});var Tfn;_.L_=function(f){this.playerClient=f};
_.wmh=function(f,H,v){v=v===void 0?{}:v;return f.playerClient.setOption("ad",H,v)};
_.L_.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.L_.prototype.executeCommand=function(f,H){this.getOptions().includes("executeCommand")?_.wmh(this,"executeCommand",{command:f,layoutId:H}):_.cx("Calling executeCommand when adModule is not loaded")};var xM=function(){return _.K.apply(this,arguments)||this};
_.e(xM,_.K);xM.prototype.getLayoutId=function(){var f=_.ES("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.layoutId:null};
xM.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var f=_.vx(),H=this.getLayoutId(),v=this.data.clickthroughEndpoint;f&&H&&_.J("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?f.getPlayerPromise().then(function(t){(new _.L_(t)).executeCommand(v,H)}):_.YE(this.hostElement,"yt-navigate",{endpoint:v})}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],xM.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],xM.prototype,"data",void 0);_.E([_.u({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],xM);
_.G(xM,"ytd-shopping-companion-item-renderer",function(){if(Tfn!==void 0)return Tfn;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Tfn=f},{mode:1});var qMZ;var BO=function(){var f=_.K.apply(this,arguments)||this;f.isExpandableContent=!1;return f};
_.e(BO,_.K);_.H7.Object.defineProperties(BO.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var f,H,v;return((f=this.data)==null?void 0:f.price)||((H=this.data)==null?void 0:(v=H.dealsData)==null?void 0:v.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var f,H;if((f=this.data)!=null&&f.dealsData&&((H=this.data)==null||!H.priceReplacementText)){f=this.data.dealsData;var v,t,M;return((v=f.salesData)==null?void 0:v.originalPrice)||((t=f.priceDropData)==null?void 0:t.referencePrice)||((M=f.promotionData)==null?void 0:M.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var f,H;return(f=this.data)==null?void 0:(H=f.dealsData)==null?void 0:H.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],BO.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],BO.prototype,"componentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],BO.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],BO.prototype,"isExpandableContent",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],BO.prototype,"showCta",null);
_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],BO.prototype,"ctaText",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],BO.prototype,"hasPriceTopPosition",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],BO.prototype,"hasPriceBottomPosition",null);_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],BO.prototype,"useNewStyle",null);
_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],BO.prototype,"showPriceReplacementText",null);_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],BO.prototype,"priceValue",null);_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],BO.prototype,"showDeal",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],BO.prototype,"showAffiliateDisclaimer",null);
_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],BO.prototype,"useSaleStyle",null);_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],BO.prototype,"useFromBrandCtaStyle",null);_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],BO.prototype,"useFromVendorCtaStyle",null);
_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],BO.prototype,"useShoppingCollectionCtaStyle",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],BO);
_.G(BO,"ytd-vertical-product-card-renderer",function(){if(qMZ!==void 0)return qMZ;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return qMZ=f},{mode:1});var fdH;var zg=function(){return _.K.apply(this,arguments)||this};
_.e(zg,_.K);zg.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],zg.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],zg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.A_),_.N("design:type",Object)],zg.prototype,"ytdLockupBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],zg.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],zg);
_.G(zg,"ytd-grid-movie-renderer",function(){if(fdH!==void 0)return fdH;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return fdH=f},{mode:1});var HHH;var FC=function(){var f=_.K.apply(this,arguments)||this;f.itemStyle="small-item";return f};
_.e(FC,_.K);FC.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var f,H,v,t,M=(H=_.U((f=this.data)==null?void 0:f.buttonCommand,_.jA))==null?void 0:(v=H.item)==null?void 0:(t=v.notificationTextRenderer)==null?void 0:t.successResponseText;M&&_.ZFg(this.hostElement,M)}};
_.H7.Object.defineProperties(FC.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var f,H;return((f=this.data)==null?void 0:f.isProductPlaceholder)!==void 0&&((H=this.data)==null?void 0:H.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.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}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],FC.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],FC.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],FC.prototype,"itemStyle",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],FC.prototype,"hasPrice",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],FC.prototype,"hasPriceReplacementText",null);
_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],FC.prototype,"hasAdditionalFeesText",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],FC.prototype,"hasAffiliateDisclaimer",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],FC.prototype,"isProductPlaceholder",null);_.E([_.F(),_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],FC.prototype,"hideOpenInNewIcon",null);
_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],FC.prototype,"ariaLabel",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],FC);
_.G(FC,"ytd-merch-shelf-item-renderer",function(){if(HHH!==void 0)return HHH;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return HHH=f},{mode:1});var vtn=_.a(function(f){return _.O("button-card-view-model",{el:_.tE(_.nT(function(){return f.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return f.data().title},
role:"button"},_.O(_.yU,{model:{}}),_.O("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.O("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.O(_.g,{cond:function(){return f.data().image},
then:function(H){return _.O(_.Hn,{data:H,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.O("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return f.data().title})))},"jb");_.J("web_button_view_model_wcw_registration_killswitch")||_.yn(vtn,"button-card-view-model",{props:{data:_.ki}});_.yn(_.a(function(f){f=_.tV(f,{className:void 0});var H=f.data;f=f.className;var v=_.sg(function(){return H().onTapCommand},void 0,"NprDr");
return _.O("ytd-shopping-item-card",{class:_.S2("ytdShoppingItemCardHost",f)},_.O(_.VU,{command:v,className:"ytdShoppingItemCardHostLink"},_.O("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.O(_.Jj,{data:function(){return H().thumbnailViewModel}},{thumbnailViewModel:function(t){return _.O(_.qv,{data:t.data,
aspectRatio:3})}})),_.O("div",null,_.O("p",{class:"ytdShoppingItemCardHostItemTitle"},_.O(_.iq,{text:function(){return H().itemTitle}})),_.O("p",{class:"ytdShoppingItemCardHostPrice"},_.O(_.iq,{text:function(){return H().priceOrStatus}})))))},"kb"),"ytd-shopping-item-card",{props:{data:_.ki,
className:_.ki}});var tMa={isAdsVideo:!0},MMh={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},hE_={showPlayerControls:!1,videoPreviewDurationMs:15E3},RE9={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0};var Aj=null,JKR={};var e6r="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(" "),rz={},Lk3=(rz.FEwhat_to_watch="home",rz.FEhashtag="hashtag",rz.FEtrending="trending",rz.FEhistory="history",rz.SPunlimited="premium",rz.FEmemberships_and_purchases="paid_memberships",rz.SPredeem_code="redeem",rz.SPverify_location="locate",rz.SPminor_moment="minor_moment",
rz.FEmini_app_container="mini_app",rz.FEnews_destination="news",rz.SPopen_in_app="open_in_app",rz.FEexplore="explore",rz.FEsubscriptions="subscriptions",rz.FEsfv_audio_pivot="sfv_audio_pivot",rz.FEplaylist_aggregation="playlist_aggregation",rz);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");_.gj("init");var VMC=function(){},$Hr=_.a(function(f){var H=f.data;
var v=f.inlineMetadata;var t=f.aspectRatio;var M=f.scrimStyle;var h=f.className;var y=f.useDefaultStyle;var m=new VMC,W=_.J("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",I=_.sg(function(){return(y==null?0:y())?W==="SHORTS_LOCKUP_STYLE_SLIM":H().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"ibyPNe"),S=_.sg(function(){return _.p4(v)||I()||!1},void 0,"F6KaVc"),d=function(){return(M==null?void 0:M())!==void 0?M==null?void 0:M():1},Z=_.sg(function(){return H().belowThumbnailMetadata||
!S()},void 0,"t2xwLe");
f=_.MV({visibilityCallback:function(fg){var gB=H().onFirstVisible;fg&&gB&&_.XA(gB)},
showOption:{calledOnce:!0,state:"visible"}});var l=_.tE(),L={},r=_.S2(function(){return I(),"shortsLockupViewModelHostThumbnailContainer"},(L.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.p4(t)===1},L.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.p4(t)===2},L.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.J("web_shorts_2_by_3_lockups_study")&&!_.J("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
L)),n=_.sg(function(){if(_.p4(t)===1)return 1;
_.p4(t);return 2},void 0,"LG7swb"),Q,C=function(){if(m){var fg;
(fg=Q)==null||AY(fg);var gB;if(m.hostElement&&((gB=m.data)==null?0:gB.inlinePlayerData)){fg=Object.assign({},RE9);var O5,s5;((O5=m.data)==null?void 0:(s5=O5.inlinePlayerData)==null?void 0:s5.maxPlaybackLengthSec)!==void 0&&(fg.videoPreviewDurationMs=m.data.inlinePlayerData.maxPlaybackLengthSec*1E3);Q=Q4({mediaRenderer:m,lockupElement:m.hostElement,thumbnailElement:l.value,videoPreviewOpts:fg})}}};
_.K4(function(){m&&(m.data=H(),C())},"adXpp");
var w=_.sg(function(){return H().thumbnail},void 0,"cFasFe");
L=_.sg(function(){return H().badge},void 0,"a2oavc");
var c=_.sg(function(){return H().onTap},void 0,"jb0oIf"),A={},X={};
return _.O("ytm-shorts-lockup-view-model",{el:_.tE(function(fg){m&&(m.hostElement=fg)},C,f),
class:_.S2("shortsLockupViewModelHost",h)},_.O(_.R8,null,_.O(_.VU,{command:c,className:_.S2("shortsLockupViewModelHostEndpoint",(A.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!Z()},A),"reel-item-endpoint",""),
ariaHidden:function(){return!S()},
tabIndex:function(){return S()?0:-1}},_.O("div",{el:l,
class:_.S2("shortsLockupViewModelHostThumbnailParentContainer",(X.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!I()},X))},_.O(_.g,{cond:w,
then:function(){return _.O("div",{class:r},_.O(_.Hn,{data:function(){var fg;return(fg=w==null?void 0:w())!=null?fg:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.O(_.Jj,{data:function(){return H().thumbnailViewModel}},{thumbnailViewModel:function(fg){return _.O(_.qv,{data:fg.data,
aspectRatio:function(){return n()},
disableRounding:function(){return I()}})}}),null),_.O(_.g,{cond:S,
then:function(){return _.O(yCa,{data:H,scrimStyle:d,useDefaultStyle:y})}}),_.O(_.Jj,{data:L},{badgeViewModel:function(fg){return _.O(_.to,{data:fg.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.O(_.g,{cond:function(){return S()&&H().menuOnTap},
then:function(){return _.O(Yrh,{data:H,inlineMetadata:!0})}}),_.O(_.g,{cond:Z,
then:function(){return _.O(mHh,{data:H,useDefaultStyle:y,inlineMetadata:S})}})))},"lb"),yCa=_.a(function(f){var H=f.data;
var v=f.scrimStyle;var t=f.useDefaultStyle;var M=_.J("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",h=t&&_.J("web_hide_primary_text_for_pivot_panel"),y=_.sg(function(){return(t==null?0:t())?M==="SHORTS_LOCKUP_STYLE_SLIM":H().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"o1uIvc");
f={};f=_.S2("shortsLockupViewModelHostInlineMetadata",(f.shortsLockupViewModelHostMetadataRounded=function(){return!y()},f.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(v==null?void 0:v())===3&&!_.J("enable_shorts_lockup_new_scrim")},f.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(v==null?void 0:v())===3&&_.J("enable_shorts_lockup_new_scrim")},f.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(v==null?void 0:v())===2||(v==null?void 0:
v())===4},f.shortsLockupViewModelHostShowOverPlayer=function(){return!0},f),"image-overlay-text");
var m={};return _.O("div",{class:f},_.O("h3",{class:_.S2("shortsLockupViewModelHostMetadataTitle",(m.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(v==null?void 0:v())===4},m.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return H().belowThumbnailMetadata},m)),
"aria-label":function(){return H().accessibilityText}},_.O(_.g,{cond:function(){var W;
return!((W=H().overlayMetadata)==null||!W.primaryText)&&!h},
then:function(){return _.O(_.iq,{text:function(){var W;return(W=H().overlayMetadata)==null?void 0:W.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.O(_.g,{cond:function(){var W;
return(W=H().overlayMetadata)==null?void 0:W.secondaryText},
then:function(){return _.O(Wwh,{data:H,scrimStyle:v,className:void 0})}}))},"mb"),mHh=_.a(function(f){var H=f.data;
var v=f.useDefaultStyle;var t=f.inlineMetadata;var M=_.J("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",h=_.sg(function(){return(v==null?0:v())?M==="SHORTS_LOCKUP_STYLE_SLIM":H().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"c4LgDb"),y=_.tE(),m;
f=_.d6(function(l){if(_.r3(_.Fs(l),y.value,["AVATAR-VIEW-MODEL"]))return!1;var L;(L=m)==null||L.click();return!1});
var W=_.sg(function(){return H().belowThumbnailMetadata||H().overlayMetadata},void 0,"YLe6Mc"),I=function(){return H().menuOnTap&&!t()},S=function(){var l;
return(l=W())==null?void 0:l.avatar},d={},Z={};
return _.O("div",{class:_.S2(function(){return h()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(d.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!S()},d.shortsLockupViewModelHostOutsideMetadataHasMenu=I,d)),
"on:click":f,el:y,role:"presentation"},_.O(_.Jj,{data:S},{avatarViewModel:function(l){return _.O("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.O(_.K5,{data:l.data}))}}),_.O("div",null,_.O("h3",{class:_.S2("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(Z.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var l,L;
return!((l=W())==null?0:(L=l.primaryText)==null?0:L.content)},Z.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=t,Z)),
role:"presentation"},_.O(_.VU,{ref:function(l){return void(m=l)},
command:function(){return H().onTap},
className:_.S2("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var l,L;return(l=W())==null?void 0:(L=l.primaryText)==null?void 0:L.content},
"aria-label":function(){return H().accessibilityText}},_.O(_.g,{cond:function(){var l;
return(l=W())==null?void 0:l.primaryText},
then:function(l){return _.O(_.iq,{text:l,noEndpoints:!0,noStyleRuns:!0})}}))),_.O(_.g,{cond:function(){var l;
return(l=W())==null?void 0:l.secondaryText},
then:function(l){return _.O("div",{class:_.S2("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.O(_.iq,{text:l,noStyleRuns:!0}))}})),_.O(_.g,{cond:I,
then:function(){return _.O(Yrh,{data:H,inlineMetadata:!1})}}))},"nb"),Wwh=_.a(function(f){var H=f.data;
var v=f.scrimStyle;f=f.className;var t={};return _.O("div",{class:_.S2((t.shortsLockupViewModelHostMetadataSubhead=function(){return(v==null?void 0:v())!==4},t.shortsLockupViewModelHostMetadataSubheadNew=_.J("enable_shorts_lockup_new_scrim"),t.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(v==null?void 0:v())===4},t),f),
"aria-hidden":"true"},_.O(_.iq,{text:function(){var M;return(M=H().overlayMetadata)==null?void 0:M.secondaryText},
noStyleRuns:!0}))},"ob"),Yrh=_.a(function(f){var H=f.data;
var v=f.inlineMetadata;f={};f=_.S2((f.shortsLockupViewModelHostInlineMetadataMenu=function(){return v()},f.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!v()},f.shortsLockupViewModelHostShowOverPlayer=function(){return!0},f),"image-overlay-text");
return _.O("div",{class:f},_.O(_.$p,{data:function(){return{style:v()?"overlay":"mono",accessibilityLabel:H().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(t){t.preventDefault();t.stopPropagation();var M=_.NE({elementsCommand:H().menuOnTap,forceNewState:!0});if(M==null?0:M.onclick)M.onclick(t)}}},
iconName:"MORE_VERT"}))},"pb");var OHb=_.a(function(f){var H=f.data;var v=f.inlineMetadata;var t=f.aspectRatio;var M=f.scrimStyle;var h=f.className;var y=f.useDefaultStyle;f=_.sg(function(){var m=H().entityId;return m?m.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"W3Tlke");
return _.O("ytm-shorts-lockup-view-model-v2",{class:_.S2("shortsLockupViewModelHost",h)},_.O(_.Re,{contentId:f,aspectRatio:function(){return(t==null?void 0:t())===1?1:(t==null?void 0:t())===2?2:4}},function(){return _.O($Hr,{data:H,
inlineMetadata:v,aspectRatio:t,scrimStyle:M,className:h,useDefaultStyle:y})}))},"qb");_.yn(OHb,"ytm-shorts-lockup-view-model-v2",{props:{data:_.Rm,inlineMetadata:_.Rm,aspectRatio:_.Rm,scrimStyle:_.Rm,className:_.Rm,useDefaultStyle:_.Rm}});var gtM=16/9*210,K_=function(){var f=_.K.apply(this,arguments)||this;f.isExpandableContent=!1;f.hideShelfHeader=!1;f.engagementPanel=!1;f.buttonClasses=["arrow"];f.isSearch=!1;f.disableScrollEventListener=!1;f.containsLockup=!1;f.overrideArrowPositionForProductCard=!1;f.overrideArrowPositionForShoppingItemCard=!1;f.overrideArrowPositionForReelItems=!1;f.overrideArrowPositionForGridMovie=!1;f.overrideArrowPositionToCenter=!1;f.isSearchPostShelf=!1;f.overrideArrowPositionForMixedShelf=!1;f.overrideArrowPositionForMixedShelfShortsOnly=
!1;f.hasBigThumbsReelItems=!1;f.shouldUseMixedListHeight=!1;f.shouldUseShortsListHeight=!1;f.gridVideoWidth=0;f.isSearchVodShelf=!1;f.disableWheelScroll=!1;f.sizing="COMPACT";f.shortsLockupAspectRatio=0;return f};
_.e(K_,_.K);_.R=K_.prototype;
_.R.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]]"}}}}};
_.R.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.J("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.R.computeInitialCountNumber=function(f){if(!f)return 6;var H=f.items.some(function(h){return!!h.topicRecommendationsChipRenderer}),v=f.items.some(function(h){return!!h.displayAdRenderer}),t=this.computeShouldListItemsHaveEqualHeight(f),M=f.items.some(function(h){return!!h.gridPlaylistRenderer});
f=f.items.some(function(h){return!!h.shoppingItemCardViewModel});
return H?9:v?8:M||t?10:f?7:6};
_.R.computeContainsPost=function(f){return!!f&&!!f.items&&f.items.some(function(H){return!!H.postRenderer})};
_.R.computeContainsLockup=function(){if(_.J("web_horizontal_list_lockup_arrow_killswitch"))return!1;var f,H;return(f=this.data)==null?void 0:(H=f.items)==null?void 0:H.some(function(v){return!!v.lockupViewModel})};
_.R.maybeUpdateLockupAspectRatio=function(){var f,H;if(this.computeContainsLockup()&&((f=this.data)==null?0:(H=f.items)==null?0:H.length)){var v;f=X9E((v=this.data.items[0].lockupViewModel)==null?void 0:v.contentType,this.data.force16By9ThumbnailAspectRatio);v=wWR(f);v=this.computeLockupWidth()/v;_.Sr(this.hostElement,{"--yt-horizontal-list-content-height":v+"px"})}};
_.R.computeOverrideArrowPositionForProductCard=function(f){if(this.isExpandableContent)return!1;var H;return!!(f==null?0:(H=f.items)==null?0:H.some(function(v){return!!v.verticalProductCardRenderer}))};
_.R.computeOverrideArrowPositionForShoppingItemCard=function(f){var H;return!!(f==null?0:(H=f.items)==null?0:H.some(function(v){return!!v.shoppingItemCardViewModel}))};
_.R.computeOverrideArrowPositionForReelItemRenderer=function(f){return this.containsReelItemRenderer(f)};
_.R.computeHasBigThumbsReelItems=function(f,H){return f&&this.containsReelItemRenderer(H)};
_.R.computeShouldListItemsHaveEqualHeight=function(f){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(f==null?void 0:f.itemSizeConstraint)};
_.R.computeShouldListItemsHaveShortsHeight=function(f){return this.computeShouldListItemsHaveEqualHeight(f)&&!this.containsGridVideoRenderer(f)};
_.R.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.R.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.R.containsReelItemRenderer=function(f){var H;return!!(f==null?0:(H=f.items)==null?0:H.some(function(v){return!(!v.reelItemRenderer&&!v.shortsLockupViewModel)}))};
_.R.containsGridVideoRenderer=function(f){var H;return!!(f==null?0:(H=f.items)==null?0:H.some(function(v){return!!v.gridVideoRenderer||!!v.lockupViewModel}))};
_.R.computeContainsGridMovieRenderer=function(f){var H;return!!(f==null?0:(H=f.items)==null?0:H.some(function(v){return!!v.gridMovieRenderer}))};
_.R.computeOverrideArrowPositionToCenter=function(f){return this.computeIsSearchPostShelf(f)};
_.R.computeIsSearchPostShelf=function(f){var H;return!!(f==null?0:(H=f.items)==null?0:H.some(function(v){var t,M;return((M=(t=v.postRenderer)==null?void 0:t.surface)!=null?M:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.R.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(f){var H;return!!(f==null?0:(H=f.items)==null?0:H.some(function(v){var t,M,h;return((h=(t=v.backgroundPromoRenderer)==null?void 0:(M=t.style)==null?void 0:M.value)!=null?h:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.R.computeIsSearchVodShelf=function(f,H){return f&&this.containsGridVideoRenderer(H)};
_.R.computeDisableWheelScroll=function(f,H){return this.computeIsSearchVodShelf(f,H)};
_.R.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.R.computeShortsLockupAspectRatio=function(){return 1};
_.R.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.Sr(this.hostElement,{"--ytd-reel-item-thumbnail-height":gtM+"px"})};
K_.prototype.dataChanged=K_.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],K_.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],K_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.Rt.YtdHorizontalListBehavior),_.N("design:type",Object)],K_.prototype,"ytdHorizontalListBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],K_.prototype,"data",void 0);
_.E([_.F(),_.N("design:type",Object)],K_.prototype,"isExpandableContent",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],K_.prototype,"hideShelfHeader",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],K_.prototype,"engagementPanel",void 0);_.E([_.F(),_.N("design:type",Array)],K_.prototype,"buttonClasses",void 0);_.E([_.F(),_.N("design:type",Object)],K_.prototype,"isSearch",void 0);
_.E([_.F(),_.N("design:type",Object)],K_.prototype,"disableScrollEventListener",void 0);_.E([_.F({computed:"computeInitialCountNumber(data)"}),_.N("design:type",Number)],K_.prototype,"initialCount",void 0);_.E([_.F({computed:"computeContainsPost(data)"}),_.N("design:type",Boolean)],K_.prototype,"supportComponentResize",void 0);_.E([_.F({computed:"computeContainsPost(data)"}),_.N("design:type",Boolean)],K_.prototype,"containsPost",void 0);
_.E([_.F({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.N("design:type",Object)],K_.prototype,"containsLockup",void 0);_.E([_.F({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],K_.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.E([_.F({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.N("design:type",Object)],K_.prototype,"overrideArrowPositionForProductCard",void 0);_.E([_.F({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.N("design:type",Object)],K_.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.E([_.F({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.N("design:type",Object)],K_.prototype,"overrideArrowPositionForReelItems",void 0);_.E([_.F({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.N("design:type",Object)],K_.prototype,"overrideArrowPositionForGridMovie",void 0);
_.E([_.F({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.N("design:type",Object)],K_.prototype,"overrideArrowPositionToCenter",void 0);_.E([_.F({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.N("design:type",Object)],K_.prototype,"isSearchPostShelf",void 0);_.E([_.F({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.N("design:type",Object)],K_.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.E([_.F({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.N("design:type",Object)],K_.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.E([_.F({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.N("design:type",Object)],K_.prototype,"hasBigThumbsReelItems",void 0);
_.E([_.F({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.N("design:type",Object)],K_.prototype,"shouldUseMixedListHeight",void 0);_.E([_.F({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.N("design:type",Object)],K_.prototype,"shouldUseShortsListHeight",void 0);_.E([_.F({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.N("design:type",Object)],K_.prototype,"gridVideoWidth",void 0);
_.E([_.F({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.N("design:type",Object)],K_.prototype,"isSearchVodShelf",void 0);_.E([_.F({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.N("design:type",Object)],K_.prototype,"disableWheelScroll",void 0);_.E([_.F({computed:"computeSizing(isSearch)"}),_.N("design:type",Object)],K_.prototype,"sizing",void 0);
_.E([_.F({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.N("design:type",Object)],K_.prototype,"shortsLockupAspectRatio",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],K_.prototype,"dataChanged",null);
_.G(K_,"yt-horizontal-list-renderer",function(){if(SD_===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);SD_=f}f=SD_;return f},{mode:1});var Idg;var Sr_=[10,12,14,16,18,20,24,28,32,36],dHM=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],D1=function(){var f=_.K.apply(this,arguments)||this;f.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";f.hideOverflow=!1;f.useRoboto=!1;f.fontClass="";f.overflown=!1;f.actionMap={"yt-window-resized":"resize"};return f};
_.e(D1,_.K);_.R=D1.prototype;
_.R.attached=function(){var f=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();_.qV(this,function(){f.resize()});
if(!_.My){var H,v,t;(H=document)==null||(v=H.fonts)==null||(t=v.ready)==null||t.then(function(){f.resize()})}};
_.R.dataChanged=function(){this.resize()};
_.R.guideIsExpandedChanged=function(){this.resize()};
_.R.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 f=this.getMaxNumLines(),H=this.getMinFont(),v=this.getMaxFont(),t=this.useRoboto?Sr_:dHM;for(t=t.filter(function(h){return h<=v&&h>=H});t.length>1;){var M=Math.floor(t.length/2);
this.updateFontSize(t[M]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=f)t=t.slice(M,t.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>f)t=t.slice(0,M);else break}this.updateFontSize(t[t.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(f)}};
_.R.handleOverflow=function(f){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>f&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",f.toString()))};
_.R.updateFontSize=function(f){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+f;this.textNode.classList.add(this.fontClass)};
_.R.getMaxFont=function(){var f=this.useRoboto?Sr_:dHM;f=f[f.length-1];return this.maxFontSize&&this.maxFontSize<=f?this.maxFontSize:f};
_.R.getMinFont=function(){var f=(this.useRoboto?Sr_:dHM)[0];return this.minFontSize&&this.minFontSize>=f?this.minFontSize:f};
_.R.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.R.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.R.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.fG(this.text).split("\n").length-1:Infinity};
_.R.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("Hh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
D1.prototype.guideIsExpandedChanged=D1.prototype.guideIsExpandedChanged;D1.prototype.dataChanged=D1.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],D1.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],D1.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],D1.prototype,"actionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],D1.prototype,"text",void 0);
_.E([_.F(),_.N("design:type",String)],D1.prototype,"fontFamily",void 0);_.E([_.F(),_.N("design:type",Number)],D1.prototype,"maxWidth",void 0);_.E([_.F(),_.N("design:type",Number)],D1.prototype,"maxHeight",void 0);_.E([_.F(),_.N("design:type",Number)],D1.prototype,"maxFontSize",void 0);_.E([_.F(),_.N("design:type",Number)],D1.prototype,"minFontSize",void 0);_.E([_.F(),_.N("design:type",Number)],D1.prototype,"maxLines",void 0);_.E([_.F(),_.N("design:type",Object)],D1.prototype,"hideOverflow",void 0);
_.E([_.F({selector:_.XLs}),_.N("design:type",Boolean)],D1.prototype,"guideIsExpanded",void 0);_.E([_.lJ("#container"),_.N("design:type",HTMLElement)],D1.prototype,"containerNode",void 0);_.E([_.lJ("#text"),_.N("design:type",HTMLElement)],D1.prototype,"textNode",void 0);_.E([_.xV("text"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],D1.prototype,"dataChanged",null);
_.E([_.xV("guideIsExpanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],D1.prototype,"guideIsExpandedChanged",null);_.E([_.u({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],D1);
_.G(D1,"yt-dynamic-sizing-formatted-string",function(){if(Idg!==void 0)return Idg;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Idg=f},{mode:1});var jDg;_.sD9=function(f){_.vR.call(this,f)};
_.e(_.sD9,_.vR);var ZHH=function(f){_.vR.call(this,f)};
_.e(ZHH,_.sD9);var oe=function(){return _.K.apply(this,arguments)||this};
_.e(oe,_.K);oe.prototype.onTapSuspendedChannel=function(){var f;if((f=this.data)!=null&&f.serviceEndpoint){var H,v;(f=(v=_.U((H=this.data)==null?void 0:H.serviceEndpoint,_.X7))==null?void 0:v.url)?_.iY(f,void 0,void 0,window.top):(H=new ZHH("Did not handle suspended account tap. No appealUrl."),_.oO(H))}else H=new ZHH("Did not handle suspended account tap. No serviceEndpoint."),_.oO(H)};
oe.prototype.onTap=function(){var f=this,H=_.UV(),v,t=(v=_.lV(H,{veType:7116}))!=null?v:void 0;_.NY(H,{visualElement:t});_.At();this.saveRoleText();var M;if((M=this.data)==null?0:M.youtubeSuspended)this.onTapSuspendedChannel();else{var h=!1,y,m;(H=(m=_.U((y=this.data)==null?void 0:y.serviceEndpoint,_.vPM))==null?void 0:m.supportedTokens)&&H.forEach(function(W){if(W.accountSigninToken)if(h=!0,f.onAccountItemTap)f.onAccountItemTap(W.accountSigninToken.signinUrl);else _.iY(W.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!h){if(y=this.get("serviceEndpoint",this.data))h=!0,this.ytComponentBehavior.resolveCommand(y);h||_.nb(new ZHH("Did not handle account switch tap. No token."))}}};
oe.prototype.saveRoleText=function(){if(this.data){var f=this.data,H=f.channelDelegationRole;if(H){var v,t=(v=_.U(f==null?void 0:f.serviceEndpoint,_.vPM))==null?void 0:v.supportedTokens;if(!t){var M,h,y,m;t=(M=_.U(f==null?void 0:f.serviceEndpoint,_.Up))==null?void 0:(h=M.popup)==null?void 0:(y=h.confirmDialogRenderer)==null?void 0:(m=y.confirmButton)==null?void 0:m.buttonRenderer;var W;t=(W=_.U(t==null?void 0:t.command,_.Ir))==null?void 0:W.commands;if(!t)return;var I;t=(I=_.U(t[1],_.vPM))==null?
void 0:I.supportedTokens}if(t){W=void 0;I=_.V(t);for(t=I.next();!t.done;t=I.next())if(t=t.value,t.datasyncIdToken){W=t.datasyncIdToken.datasyncIdToken;break}if(W){var S;a:{if(_.IjN()&&(I=_.j5r(W+"::pom"))){I=new BH(I);break a}I=void 0}(S=I)==null||S.set("role_text",H);if((zO5?zO5:window.location).href.indexOf("studio")!==-1&&(S=Sie())){I=S.src?(new URL(S.src)).origin:"*";var d;(d=S.contentWindow)==null||d.postMessage({action:"save_pom_role",datasyncId:W,roleText:H},I)}}}}}};
_.H7.Object.defineProperties(oe.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var f,H,v=(f=this.data)==null?void 0:(H=f.accountPhoto)==null?void 0:H.thumbnails;return v&&v.length>0&&(v[0].height===36||v[0].height===48)?v[0].height:40}}});
oe.prototype.onTap=oe.prototype.onTap;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],oe.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],oe.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],oe.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!1}),_.N("design:type",Function)],oe.prototype,"onAccountItemTap",void 0);
_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],oe.prototype,"enableRingForActiveAccount",null);_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],oe.prototype,"thumbnailSize",null);_.E([_.sE("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oe.prototype,"onTap",null);_.E([_.u({is:"ytd-account-item-renderer",disableElementRegistration:!0})],oe);
_.G(oe,"ytd-account-item-renderer",function(){if(jDg!==void 0)return jDg;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return jDg=f},{mode:1});var JCa;var n_=function(){return _.K.apply(this,arguments)||this};
_.e(n_,_.K);n_.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.t8().resolve(_.MJ).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],n_.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],n_.prototype,"data",void 0);_.E([_.u({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],n_);
_.G(n_,"ytd-identity-chip-renderer",function(){if(JCa!==void 0)return JCa;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return JCa=f},{mode:1});var ldH;var UHZ;var eET;var Lwo;var p_=function(){var f=_.K.apply(this,arguments)||this;f.richItemMinWidth=_.VQ("wn_grid_min_item_width",310);f.isShorts=!1;f.isWatchNext=!1;f.isExploreHub=!1;return f};
_.e(p_,_.K);_.H7.Object.defineProperties(p_.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var f=[],H=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.Sr(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var v;if(((v=this.data)==null?0:v.rows)&&H)for(H*=this.data.rows,v=0;v<H;v++)f.push({});return f}}});
_.E([_.B(_.um),_.N("design:type",Object)],p_.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],p_.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],p_.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,selector:_.uA,value:3}),_.N("design:type",Number)],p_.prototype,"itemsPerRow",void 0);_.E([_.F({selector:_.cGT,value:6}),_.N("design:type",Number)],p_.prototype,"slimItemsPerRow",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Number)],p_.prototype,"richItemMinWidth",void 0);_.E([_.F({reflectToAttribute:!0,selector:_.Qq}),_.N("design:type",Boolean)],p_.prototype,"miniMode",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],p_.prototype,"isShorts",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],p_.prototype,"isWatchNext",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],p_.prototype,"isExploreHub",void 0);
_.E([_.z("isExploreHub"),_.F({reflectToAttribute:!0}),_.N("design:type",Object),_.N("design:paramtypes",[])],p_.prototype,"shimmerAnimation",null);_.E([_.z("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.N("design:type",Array),_.N("design:paramtypes",[])],p_.prototype,"cardItems",null);_.E([_.u({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],p_);
_.xHZ=_.$6()(p_,"ytd-ghost-grid-renderer",function(){if(Lwo===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);Lwo=f}f=Lwo;return f},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.yn(_.a(function(f){var H=_.tV(f,{numberOfComments:3}).numberOfComments,v=_.tV(f,{isInitialLoad:!1}).isInitialLoad,t=_.tV(f,{engagementPanel:!1}).engagementPanel,M=function(){return Math.min(Number(H==null?void 0:H())||20,20)};
return _.O("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.O(_.g,{cond:function(){return!(t==null?0:t())&&(v==null?void 0:v())},
then:function(){return _.O("div",{class:"ytGhostCommentsComments"},_.O("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.O("div",{class:_.S2("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.O("div",{class:_.S2("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.O("div",{class:"ytGhostCommentsGhostCard"},_.O("div",{class:"ytGhostCommentsAvatar"},_.O("div",{class:"ytGhostCommentsCircle"})),_.O("div",{class:"ytGhostCommentsComments"},_.O("div",{class:"ytGhostCommentsMeta"},
_.O("div",{class:_.S2("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.O("div",{class:_.S2("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.O("div",{class:"ytGhostCommentsComments"},_.O(_.eK,{each:function(){return Array((M==null?void 0:M())||3)}},function(){return _.O("div",{class:"ytGhostCommentsGhostCard"},_.O("div",{class:"ytGhostCommentsAvatar"},_.O("div",{class:"ytGhostCommentsCircle"})),_.O("div",{class:"ytGhostCommentsHost"},_.O("div",{class:"ytGhostCommentsMeta"},
_.O("div",{class:_.S2("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.O("div",{class:_.S2("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.O("div",{class:_.S2("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.O("div",{class:"ytGhostCommentsGhostLikeDislike"},_.O("div",{class:_.S2("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.O("div",{class:_.S2("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"rb"),"yt-ghost-comments",{props:{numberOfComments:_.ki,
isInitialLoad:_.ki,engagementPanel:_.ki}});_.DE("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var Qc=function(){var f=_.K.apply(this,arguments)||this;f.isOverridable=!1;f.spinnerActive=!1;f.showButton=!1;f.isCommentsSection=!1;f.engagementPanel=!0;f.isShortsGrid=!1;f.isShortsPage=!1;f.isWatchPage=!1;f.ghostCardExperimentEnabled=_.J("show_ghost_comments_shorts_watch")||_.J("show_ghost_comments_desktop_watch");f.originalShowButton=!1;f.endOfList=!1;return f};
_.e(Qc,_.K);_.R=Qc.prototype;_.R.resetIntersectionObserver=function(){var f;(f=this.observer)==null||f.disconnect();this.observer=void 0};
_.R.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var f,H;((f=this.data)==null?void 0:f.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((H=this.data)==null?0:H.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.R.initializeIntersectionObserver=function(){var f=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(H){H=_.V(H);for(var v=H.next();!v.done;v=H.next())v.value.isIntersecting&&(f.triggerContinuation(),f.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.R.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.R.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var f;((f=this.data)==null?0:f.continuationEndpoint)&&(f=_.U(this.data.continuationEndpoint,_.GI))&&this.ytdReduxBehavior.dispatch(_.yq({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:f}}))};
_.R.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.R.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.R.onServiceRequestCompleted=function(f,H){if(!_.J("kevlar_hide_spinner_on_empty_continuation_killswitch")){var v;(v=H.actions)!=null&&v.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.R.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.R.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.R.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.R.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var f=3;if(this.engagementPanel){var H,v,t;f=Math.floor(((((H=this.hostElement)==null?void 0:(v=H.parentElement)==null?void 0:(t=v.parentElement)==null?void 0:t.scrollHeight)||108)-108)/108);f=this.isInitialLoad?Math.max(f,3):3}H=[].concat(_.pS(this.hostElement.querySelectorAll("yt-ghost-comments")));H=_.V(H);for(v=H.next();!v.done;v=H.next())v=v.value,v.numberOfComments=f,v.isInitialLoad=this.isInitialLoad,v.engagementPanel=
this.engagementPanel}};
_.R.detached=function(){this.resetIntersectionObserver()};
_.H7.Object.defineProperties(Qc.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.J("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.J("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
Qc.prototype.numberOfGhostCommentsChanged=Qc.prototype.numberOfGhostCommentsChanged;Qc.prototype.continuationTriggerOffsetChanged=Qc.prototype.continuationTriggerOffsetChanged;Qc.prototype.showButtonChanged=Qc.prototype.showButtonChanged;Qc.prototype.onYtServiceRequestCompletedForButtonRenderer=Qc.prototype.onYtServiceRequestCompletedForButtonRenderer;Qc.prototype.onServiceRequestCompleted=Qc.prototype.onServiceRequestCompleted;Qc.prototype.onYtServiceRequestSentForButtonRenderer=Qc.prototype.onYtServiceRequestSentForButtonRenderer;
Qc.prototype.observeData=Qc.prototype.observeData;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Qc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Qc.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.cH.YtVisibilityBehavior),_.N("design:type",Object)],Qc.prototype,"ytVisibilityBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Qc.prototype,"ytComponentBehavior",void 0);
_.E([_.B(_.um),_.N("design:type",Object)],Qc.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Qc.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],Qc.prototype,"isOverridable",void 0);_.E([_.F(),_.N("design:type",Object)],Qc.prototype,"spinnerActive",void 0);_.E([_.F(),_.N("design:type",Object)],Qc.prototype,"showButton",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Qc.prototype,"isCommentsSection",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Qc.prototype,"engagementPanel",void 0);_.E([_.F(),_.N("design:type",Object)],Qc.prototype,"isShortsGrid",void 0);_.E([_.F({reflectToAttribute:!0,selector:_.iO_}),_.N("design:type",Object)],Qc.prototype,"isShortsPage",void 0);_.E([_.F({reflectToAttribute:!0,selector:_.bO3}),_.N("design:type",Object)],Qc.prototype,"isWatchPage",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Qc.prototype,"ghostCardExperimentEnabled",void 0);
_.E([_.F(),_.N("design:type",Number)],Qc.prototype,"continuationTriggerOffset",void 0);_.E([_.F(),_.N("design:type",Object)],Qc.prototype,"endOfList",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Qc.prototype,"isInitialLoad",void 0);_.E([_.lJ("ytd-button-renderer"),_.N("design:type",_.vG)],Qc.prototype,"buttonRenderer",void 0);_.E([_.F(),_.N("design:type",Object)],Qc.prototype,"buttonOverrides",void 0);
_.E([_.F(),_.z("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.N("design:type",Object),_.N("design:paramtypes",[])],Qc.prototype,"isShortsCommentsSection",null);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qc.prototype,"observeData",null);
_.E([_.sE("yt-service-request-sent-button-renderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qc.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.TI]),_.N("design:returntype")],Qc.prototype,"onServiceRequestCompleted",null);
_.E([_.sE("yt-service-request-completed-button-renderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qc.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.E([_.xV("showButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qc.prototype,"showButtonChanged",null);
_.E([_.xV("continuationTriggerOffset"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qc.prototype,"continuationTriggerOffsetChanged",null);_.E([_.Zw("isInitialLoad","engagementPanel"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qc.prototype,"numberOfGhostCommentsChanged",null);_.E([_.u({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],Qc);
_.G(Qc,"ytd-continuation-item-renderer",function(){if(eET!==void 0)return eET;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return eET=f},{mode:1});var BNH;var un=function(){var f=_.K.apply(this,arguments)||this;f.downloadProgress=0;f.transferState="TRANSFER_STATE_UNKNOWN";f.downloadState="DOWNLOAD_STATE_UNKNOWN";f.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";f.offlineVideoPolicyExpirationTimestamp=0;f.downloadedVideoPlaybackPosition=0;return f};
_.e(un,_.K);un.prototype.dataChanged=function(){var f;this.videoData=_.U((f=this.data)==null?void 0:f.renderer,oWg);this.transferStateChanged()};
un.prototype.downloadProgressChanged=function(){if(this.entityInfo){var f=Object.assign({},this.videoData),H=lsg(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),v=H.publishedTimeText,t=H.badges;f.shortViewCountText=H.shortViewCountText;f.publishedTimeText=v;f.badges=t;this.set("videoData",f)}};
un.prototype.transferStateChanged=function(){if(this.entityInfo){var f=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",H=_.xT(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!LY(this.entityInfo.policyEntity),v=Object.assign({},this.videoData),t=lsg(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),M=t.publishedTimeText,h=t.badges;v.shortViewCountText=
t.shortViewCountText;v.publishedTimeText=M;v.badges=h;v.isDisabled=H;v.isWatched=this.downloadedVideoPlaybackPosition>0;v.navigationEndpoint=H?void 0:kAB(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var y;f&&((y=this.videoData)==null?0:y.videoId)&&!_.J("dl_resume_click_killswitch")&&(v.isDisabled=!1,v.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});v.thumbnailOverlays=ZWs(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",v)}};
un.prototype.transferStateChanged=un.prototype.transferStateChanged;un.prototype.downloadProgressChanged=un.prototype.downloadProgressChanged;un.prototype.dataChanged=un.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],un.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],un.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],un.prototype,"data",void 0);
_.E([_.F(),_.N("design:type",Object)],un.prototype,"videoData",void 0);_.E([_.F({selector:NO,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],un.prototype,"downloadProgress",void 0);_.E([_.F(),_.N("design:type",Number)],un.prototype,"relativeDateReference",void 0);_.E([_.F({selector:_.CY,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],un.prototype,"transferState",void 0);
_.E([_.F({selector:I5v,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],un.prototype,"downloadState",void 0);_.E([_.F({selector:f5H,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],un.prototype,"offlinePolicyAction",void 0);_.E([_.F({selector:HMg,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],un.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.E([_.F({selector:ca,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],un.prototype,"downloadedVideoPlaybackPosition",void 0);_.E([_.F({selector:tDT,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],un.prototype,"entityInfo",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],un.prototype,"isDownloading",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],un.prototype,"dataChanged",null);
_.E([_.xV("downloadProgress"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],un.prototype,"downloadProgressChanged",null);_.E([_.xV("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],un.prototype,"transferStateChanged",null);
_.E([_.u({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],un);
_.G(un,"ytd-downloaded-video-grid-video-renderer",function(){if(BNH!==void 0)return BNH;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return BNH=f},{mode:_.WK("kevlar_poly_si_batch_j025")?1:2});var zEH;var ae=function(){};
ae.prototype.resolve=function(f,H){var v=this;return _.Y(function(t){return t.yield(v.resolveCommand(f,H),0)})};var Fwv,PO;Fwv=pPR(function(f){return f.targetId},{shouldPersist:!1});
PO=Fwv.updateData;_.rC_=Fwv.useUpdatableData;var Kwb,DHr;Kwb=pPR(function(f){return f.targetId});
DHr=Kwb.updateData;_.otr=Kwb.useUpdatableData;var ntg=FkR.bind(null,PO),pza=FkR.bind(null,DHr);(function(f,H,v){var t=_.U(v==null?void 0:v.updatedRenderer,_.Ypb);return t?f({targetId:H},function(){return t}):!1}).bind(null,PO);var Gg=function(){};
_.e(Gg,ae);Gg.prototype.resolveCommand=function(f){var H;return _.Y(function(v){H=_.U(f,_.G8e);if(!H)return v.return();ntg(H.targetId,H);_.Bj(v)})};var C_=function(){var f=_.er.apply(this,arguments)||this;f.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return f};
_.e(C_,_.er);_.R=C_.prototype;_.R.configureContinuationPathMap=function(){return{}};
_.R.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.R.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.R.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.R.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.R.handleAppendContinuationItemsAction=function(f){var H=_.U(f,_.oRr);if(this.data&&this.data.targetId&&H&&this.continuationPathMap&&H.targetId===this.data.targetId){var v=n$T(f),t=v&&this.continuationPathMap[v];if(t&&v)if(f=this.get(t,this.data)){a:{for(v=0;v<f.length;v++){var M=f[v],h=void 0,y=!!_.U((h=_.U(M,svg))==null?void 0:h.content,_.F59);if(_.U(M,_.bw)||y)break a}v=f.length}t="data."+t;H.continuationItems?v===f.length-1?(this.pop(t),this.push.apply(this,[t].concat(_.pS(H.continuationItems)))):
v===f.length?this.push.apply(this,[t].concat(_.pS(H.continuationItems))):this.splice.apply(this,[t,v,1].concat(_.pS(H.continuationItems))):this.splice(t,v,1);(_.J("web_enable_voting_animation")||_.J("enable_music_web_cairo_voting_animation"))&&_.YE(this.hostElement,"yt-append-continuation-items-action-finished");_.YE(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.pb(new _.e$("append continuation items does not exist",v));else _.pb(new _.e$("append continuation path does not exist",
v))}};
_.R.handleReloadContinuationItemsCommand=function(f){var H=_.U(f,_.G8e);if(this.data&&H){if(_.J("web_client_explore_hub")||_.J("web_explore_hub_on_hover")||_.J("web_client_explore_hub_on_hover"))try{_.t8().resolve(Gg).resolveCommand(f)}catch(h){}if(this.data.targetId&&this.continuationPathMap&&H.targetId===this.data.targetId&&(!_.J("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||H.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var v,t=(v=H.slot)==null?void 0:
v.replace("RELOAD_CONTINUATION_SLOT_","");v=(f=n$T(f)+"-"+(t==null?void 0:t.toLowerCase()))&&this.continuationPathMap[f];if(!v||!f||!t)_.pb(new _.e$("reload continuation path does not exist",f));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(H)){if(H.replaceWithFirstItem){var M;this.set("data."+v,((M=H.continuationItems)==null?0:M.length)?H.continuationItems[0]:{})}else this.set("data."+v,H.continuationItems?H.continuationItems:[]);this.continuationIsReloading=
!1;_.YE(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.R.handleShowReloadUiCommand=function(f){f=_.U(f,ihn);var H;((H=this.data)==null?0:H.targetId)&&(f==null?0:f.targetId)&&f.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
C_.prototype.observeData=C_.prototype.observeData;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],C_.prototype,"actionHandlerBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],C_.prototype,"componentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],C_.prototype,"data",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],C_.prototype,"continuationIsReloading",void 0);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],C_.prototype,"observeData",null);_.E([_.L2()],C_);_.E_=[_.CM.YtComponentBehavior,_.dt.YtActionHandlerBehavior,C_.prototype];_.N3={};_.N3.YtNextContinuationBehavior=[_.Hp.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",_.jr(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.jr(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(f,H){f.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,H,{}):(f={locationRetrieved:function(v){this.makeNextContinuationRequest_(v,H,{})}.bind(this)},_.YE(this.hostElement,"yt-retrieve-location",f))},
makeNextContinuationRequest_:function(f,H,v){_.ar("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();f=H(f);var t;this.canUseContextualNetworkManager_()&&(t=this.getNetworkManager());t||(t=_.t8().resolve(_.a9));H=_.cn.instance;if(_.a8("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&H){t=_.tt([f.startsWith("/")?f.substr(1):f]);var M,h;v=_.Q8(H,{},t,v==null?void 0:(M=v.context)==null?void 0:(h=M.clickTracking)==null?void 0:h.clickTrackingParams).then(function(y){return{response:y}})}else v=
this.nextContinuation.usePost?t.postData(f,v):t.fetchData(f);
v.then(this.updateNextContinuationData_.bind(this,f));this.pendingContinuationRequest_=v;this.startListeningForNavigate_()},
updateNextContinuationData_:function(f,H){var v=this;_.ar("ncl");this.pendingContinuationRequest_=void 0;if(H){var t={};this.nextContinuation&&(t=this.nextContinuation);if(H.response&&H.response.continuationContents&&H.response.continuationContents[t.continuationType]){f=H.response.continuationContents[t.continuationType];var M=t.header||"data.header",h=f[t.responseHeaderKey||"header"];h&&this.set(M,h);M=t.contentsArray||"data.contents";h=this.getContents_(f,t.responseContentsKey||"contents")||[];
this.pathExists_(M)?(h.unshift(M),this.push.apply(this,h)):this.set(M,h);h&&(rKB(_.UV(),H.response,this.hostElement,function(y){_.mb(v.hostElement,"yt-store-grafted-ve-action",[y])}),_.YE(this.hostElement,"yt-next-continuation-data-updated",{continuationData:H,
page:this,contentsArray:M}));this.set(t.continuationsArray||"data.continuations",f[t.responseContinuationsKey||"continuations"]||[])}else H.reload?_.pb(new _.e$("Reloading from continuation is unsupported")):H.responseContext&&H.responseContext.errors||(delete H.xsrf_token,delete H.timing,delete H.endpoint,delete H.csn,H.responseContext&&delete H.responseContext.serviceTrackingParams,M={request:_.iZ(f,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(H).sort()},H.response&&(M.responseContentKeys=
Object.keys(H.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(M.continuationType=this.nextContinuation.continuationType.substr(0,256)),H=new _.e$("Malformed continuation",M),f.indexOf("/comment_service_ajax")==0?_.pb(H):_.oO(H)),this.set(t.continuationsArray||"data.continuations",[])}else _.nb(new _.e$("Missing continuation response",f))},
getContents_:function(f,H){H=H.split(".");return _.QA.getValueByKeys(f,H)},
pathExists_:function(f){var H=this;f=f.toString().split(".");for(var v=0;v<f.length;v++)if(H=H[f[v]],H===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var QD_;var uha;var cO=function(){var f=_.K.apply(this,arguments)||this;f.triggered_=!1;return f};
_.e(cO,_.K);_.R=cO.prototype;_.R.attached=function(){this.maybeTriggerAutoload()};
_.R.detached=function(){this.hasBeenTriggered_=!1};
_.R.onPrescanVisible=function(){this.onShow()};
_.R.onShow=function(){this.showButton||this.trigger()};
_.R.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.YE(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.R.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.R.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.R.computeLabel_=function(f,H){return f===void 0?null:f.label||!H?f.label:this.showMoreText_};
_.R.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.R.getContinuationUrl=function(f){var H={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(H.itct=this.data.clickTrackingParams);return _.kk(f,H)};
_.R.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
cO.prototype.showButtonChanged_=cO.prototype.showButtonChanged_;cO.prototype.observeData_=cO.prototype.observeData_;_.E([_.B(_.cH.YtVisibilityBehavior),_.N("design:type",Object)],cO.prototype,"ytVisibilityBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],cO.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],cO.prototype,"data",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],cO.prototype,"showButton",void 0);
_.E([_.F({value:!1}),_.N("design:type",Boolean)],cO.prototype,"showIcon",void 0);_.E([_.F({computed:"computeLabel_(data, showButton)"}),_.N("design:type",Object)],cO.prototype,"label",void 0);_.E([_.F({value:_.qO(_.ZC("SHOW_MORE",void 0,"Show More"))}),_.N("design:type",Object)],cO.prototype,"showMoreText_",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],cO.prototype,"spinnerActive_",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],cO.prototype,"hasBeenTriggered_",void 0);
_.E([_.F({value:void 0}),_.N("design:type",String)],cO.prototype,"observeVisibleOption",void 0);_.E([_.F({value:void 0}),_.N("design:type",String)],cO.prototype,"observeHiddenOption",void 0);_.E([_.F({value:"observe_once"}),_.N("design:type",Object)],cO.prototype,"observePrescanOption",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cO.prototype,"observeData_",null);
_.E([_.Zw("showButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cO.prototype,"showButtonChanged_",null);_.E([_.GW({is:"yt-next-continuation",disableElementRegistration:!0})],cO);
_.G(cO,"yt-next-continuation",function(){if(uha===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;QD_===void 0&&(QD_=document.createElement("template"));var t=QD_;v.call(H,t.content.cloneNode(!0),f.content.firstChild);uha=f}f=uha;return f},{mode:2});var adh;var P1C;var XC=function(){return _.K.apply(this,arguments)||this};
_.e(XC,_.K);XC.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],XC.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],XC.prototype,"data",void 0);_.E([_.GW({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],XC);
_.G(XC,"yt-music-pass-small-feature-info-renderer",function(){if(P1C===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;adh===void 0&&(adh=document.createElement("template"));var t=adh;v.call(H,t.content.cloneNode(!0),f.content.firstChild);P1C=f}f=P1C;return f},{mode:2});_.DE("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var Ao=function(){var f=_.K.apply(this,arguments)||this;f.isCollapsible=!1;f.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return f};
_.e(Ao,_.K);_.R=Ao.prototype;_.R.computeIsCollapsible=function(f){return!!(((f==null?0:f.showMoreText)||(f==null?0:f.visibleRowCount))&&(f==null?0:f.isCollapsible))};
_.R.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"}}}};
_.R.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.R.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.R.onIronResize=function(){var f=this;_.iJ(this,"updateGridInitItems",function(){f.maybeUpdateInitialItemsDisplayed()})};
_.R.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var f=this.getVisibleWidth();f!==0&&(f=Math.floor(f/214)*(this.data.visibleRowCount||2),f!==this.initialCount&&(this.initialCount=f,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.R.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.R.computeExpandVisible=function(f,H,v,t){return f&&H&&v&&!!t&&!!t.showMoreText};
_.R.computeShowMoreButton=function(f){return{text:f,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.R.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.R.initCollapsed=function(){var f=this;this.ytLazyListBehavior.canShowMore=!1;var H;(this.collapsed=!((H=this.data)==null||!H.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.qV(this,function(){_.$E(f.hostElement,"yt-refit-popups-action")})};
_.R.fillRestIfNotCollapsible=function(){var f=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!f||this.ytLazyListBehavior.fillRemainingListItems()};
_.R.computeViewAllHidden=function(f,H){return f||!H.viewAllEndpoint};
Ao.prototype.fillRestIfNotCollapsible=Ao.prototype.fillRestIfNotCollapsible;Ao.prototype.initCollapsed=Ao.prototype.initCollapsed;Ao.prototype.onIronResize=Ao.prototype.onIronResize;Ao.prototype.persistentGuideChanged=Ao.prototype.persistentGuideChanged;_.E([_.B(_.x3),_.N("design:type",Object)],Ao.prototype,"ironResizableBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Ao.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Ao.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.h3.YtLazyListBehavior),_.N("design:type",Object)],Ao.prototype,"ytLazyListBehavior",void 0);_.E([_.B(_.N3.YtNextContinuationBehavior),_.N("design:type",Object)],Ao.prototype,"ytNextContinuationBehavior",void 0);_.E([_.B(_.NW.YtdGuideStateAwareBehavior),_.N("design:type",Object)],Ao.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.B(_.E_),_.N("design:type",Object)],Ao.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Ao.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Boolean)],Ao.prototype,"collapsed",void 0);_.E([_.F(),_.N("design:type",Number)],Ao.prototype,"initialCount",void 0);_.E([_.F({computed:"computeShowMoreButton(data.showMoreText)"}),_.N("design:type",Object)],Ao.prototype,"showMoreButton",void 0);
_.E([_.F({computed:"computeIsCollapsible(data)"}),_.N("design:type",Object)],Ao.prototype,"isCollapsible",void 0);_.E([_.lJ("#items"),_.N("design:type",HTMLElement)],Ao.prototype,"items",void 0);_.E([_.xV("guidePersistentAndVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ao.prototype,"persistentGuideChanged",null);_.E([_.sE("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ao.prototype,"onIronResize",null);
_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ao.prototype,"initCollapsed",null);_.E([_.xV("canShowMore"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ao.prototype,"fillRestIfNotCollapsible",null);_.E([_.u({is:"ytd-grid-renderer",disableElementRegistration:!0})],Ao);
_.G(Ao,"ytd-grid-renderer",function(){if(zEH!==void 0)return zEH;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return zEH=f},{mode:_.WK("kevlar_poly_si_batch_j025")?1:2});var bn=function(){return _.K.apply(this,arguments)||this};
_.e(bn,_.K);
bn.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"}}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],bn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],bn.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],bn.prototype,"data",void 0);_.E([_.u({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],bn);
_.G(bn,"ytd-carousel-ad-renderer",function(){if(UHZ!==void 0)return UHZ;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return UHZ=f},{mode:1});var Gnb;var kM=function(){return _.K.apply(this,arguments)||this};
_.e(kM,_.K);_.R=kM.prototype;_.R.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"}}}};
_.R.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,kM.JSC$15347_CLICK_LOCATION_ID_MAP))};
_.R.onSitelinkTap=function(f){f.stopPropagation();var H,v,t=f==null?void 0:(H=f.model)==null?void 0:(v=H.item)==null?void 0:v.onTap;t&&this.ytSparklesClickLocationBehavior.handleClick(t,f,!1)};
_.R.onTap=function(f){var H=this.data&&this.data.content&&this.data.content.navigationEndpoint;H&&this.ytSparklesClickLocationBehavior.handleClick(H,f,!1)};
_.R.sendImpression=function(){if(this.data&&this.data.content)for(var f=_.V(this.data.content.impressionEndpoints||[]),H=f.next();!H.done;H=f.next()){H=_.V(H.value.loggingUrls||[]);for(var v=H.next();!v.done;v=H.next())v=v.value,v.baseUrl&&XB(v.baseUrl,v.attributionSrcMode)}};
kM.prototype.onTap=kM.prototype.onTap;kM.prototype.dataChanged=kM.prototype.dataChanged;kM.JSC$15347_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","title"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","display-url"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK","sitelinks-table"]]);
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],kM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],kM.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.M2.YtSparklesClickLocationBehavior),_.N("design:type",Object)],kM.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],kM.prototype,"data",void 0);
_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kM.prototype,"dataChanged",null);_.E([_.sE("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],kM.prototype,"onTap",null);_.E([_.u({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],kM);
_.G(kM,"ytd-promoted-sparkles-text-search-renderer",function(){if(Gnb!==void 0)return Gnb;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Gnb=f},{mode:1});var C1o;var Tg=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-mute-ad-action":"handleMuteAd"};return f};
_.e(Tg,_.K);_.R=Tg.prototype;
_.R.configureRendererStamper=function(){return{"data.menu":{id:_.J("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]]"}}}}}};
_.R.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.R.computeHasAdBadge=function(f){return!(f==null||!f.adBadge)};
_.R.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",Tg.JSC$15356_DEFAULT_AD_BADGE_RENDERER),_.WB(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,Tg.JSC$15356_CLICK_LOCATION_ID_MAP))};
_.R.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var f;(((f=this.data)==null?void 0:f.impressionCommands)||[]).forEach(function(H){H=_.V(H.loggingUrls||[]);for(var v=H.next();!v.done;v=H.next())v=v.value,v.baseUrl&&XB(v.baseUrl,v.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.R.onTap=function(f){var H,v=(H=this.data)==null?void 0:H.navigationEndpoint,t;(H=(t=this.data)==null?void 0:t.thumbnailNavigationEndpoint)&&_.qY(_.f2(f),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(H,f,!1):v&&this.ytSparklesClickLocationBehavior.handleClick(v,f,!1)};
_.R.handleMuteAd=function(){this.collapsed=!0};
_.R.attached=function(){var f=this;_.J("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&f.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.R.detached=function(){_.J("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.H7.Object.defineProperties(Tg.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var f;return!(((f=this.data)==null?void 0:f.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var f;return!(((f=this.data)==null?void 0:f.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.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}}});
Tg.prototype.dataChanged=Tg.prototype.dataChanged;
Tg.JSC$15356_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","title"],["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL","action-button"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","website-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","sparkles-container"]]);
Tg.JSC$15356_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.ZC("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Tg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Tg.prototype,"ytRendererBehavior",void 0);_.E([_.B(QW),_.N("design:type",Object)],Tg.prototype,"ytdActiveViewBehavior",void 0);
_.E([_.B([_.dt.YtActionHandlerBehavior]),_.N("design:type",Object)],Tg.prototype,"actionHandlerBehavior",void 0);_.E([_.B(_.M2.YtSparklesClickLocationBehavior),_.N("design:type",Object)],Tg.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Tg.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Tg.prototype,"collapsed",void 0);_.E([_.F({reflectToAttribute:!0,value:function(){return _.J("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],Tg.prototype,"useBiggerThumbs",void 0);_.E([_.F({reflectToAttribute:!0,value:function(){return _.yQ("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],Tg.prototype,"biggerThumbsStyle",void 0);_.E([_.F({reflectToAttribute:!0,value:function(){return _.J("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.N("design:type",Boolean)],Tg.prototype,"fixAlignmentSmallScreens",void 0);_.E([_.F({reflectToAttribute:!0,value:function(){return _.J("enable_desktop_search_bigger_thumbs_square")}}),
_.N("design:type",Boolean)],Tg.prototype,"useBiggerThumbsSquare",void 0);_.E([_.F({reflectToAttribute:!0}),_.z("data.mediaHoverOverlay"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Tg.prototype,"hideHoverOverlay",null);_.E([_.F({reflectToAttribute:!0}),_.z("data.promotedSparklesWebStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Tg.prototype,"webSearchLayout",null);
_.E([_.F({reflectToAttribute:!0}),_.z("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Tg.prototype,"webSearchLayoutLandscape",null);_.E([_.F({reflectToAttribute:!0}),_.z("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Tg.prototype,"webSearchLayoutSquare",null);
_.E([_.F({reflectToAttribute:!0}),_.z("data.promotedSparklesWebStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Tg.prototype,"sparklesCtaNoBackground",null);_.E([_.F({reflectToAttribute:!0}),_.z("data.actionButton"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Tg.prototype,"hideActionButton",null);_.E([_.F({computed:"computeButtonOverride(uiUpdate)"}),_.N("design:type",Object)],Tg.prototype,"buttonOverride",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.N("design:type",Boolean)],Tg.prototype,"hasNewAdBadge",void 0);_.E([_.z("data.promotedSparklesWebStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Tg.prototype,"useRoundedBadge",null);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tg.prototype,"dataChanged",null);_.E([_.u({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],Tg);
_.G(Tg,"ytd-promoted-sparkles-web-renderer",function(){if(C1o!==void 0)return C1o;var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return C1o=f},{mode:1});var EtM;var wz=function(){var f=_.K.apply(this,arguments)||this;f.isInlinePreviewTriggered=!1;f.enableMonoStyle=_.J("enable_default_mono_cta_migration_web_client");return f};
_.e(wz,_.K);_.R=wz.prototype;_.R.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]]"}}}}}};
_.R.computeShowCta=function(f){return!(f==null||!f.ctaRenderer)};
_.R.onCtaClick=function(){var f,H,v,t=(f=this.data)==null?void 0:(H=f.ctaRenderer)==null?void 0:(v=H.buttonRenderer)==null?void 0:v.command;t&&this.ytComponentBehavior.resolveCommand(t)};
_.R.onWatchButtonClick=function(){var f,H,v,t=(f=this.data)==null?void 0:(H=f.watchButtonRenderer)==null?void 0:(v=H.buttonRenderer)==null?void 0:v.command;t&&this.ytComponentBehavior.resolveCommand(t)};
_.R.onTap=function(){};
_.R.dataChanged=function(){if(this.data){var f;_.J("enable_inline_muted_playback_on_web_search")&&((f=this.data)==null?0:f.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",wz.JSC$15360_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",wz.JSC$15360_DEFAULT_CLICK_LOCATION_BEHAVIOR,wz.JSC$15360_CLICK_LOCATION_ID_MAP);
this.thumbnail&&(f=this.thumbnail.getElementsByTagName("a"),f.length>0&&(f=f.namedItem("thumbnail"))&&f.removeAttribute("href"))}};
_.R.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var f=_.V(this.data.impressionUrls),H=f.next();!H.done;H=f.next())H=H.value,su3(H,JV5(H));this.data.impressionsFired=!0}};
_.R.maybeComputeHref=function(){return null};
_.R.computeIsShortDR=function(f){return!(f==null||!f.watchButtonRenderer)&&!(f==null||!f.ctaRenderer)&&!!this.enableShortDR};
_.R.computeIsNewUiOrShortDr=function(f){return!!this.enableUiUpdate||this.computeIsShortDR(f)};
_.R.computeIsNewUiAndNotShortDr=function(f){return!!this.enableUiUpdate&&!this.computeIsShortDR(f)};
_.R.computeHideAvatar=function(f){return!((f==null?0:f.channelThumbnail)&&this.computeIsNewUiOrShortDr(f))};
_.R.onClick=function(f){var H,v=(H=this.data)==null?void 0:H.navigationEndpoint;if(this.enableShortDR&&v&&(_.U(v,_.wI)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(v,f,!!_.U(v,_.wI)),f.stopPropagation();else if(v&&_.U(v,_.wI))this.ytSparklesClickLocationBehavior.handleClick(v,f,!0),f.stopPropagation();else if(v){var t,M;((t=this.data)==null?0:t.navigationEndpoint)&&((M=this.data)==null?0:M.adPlaybackContextParams)&&(H=this.data.navigationEndpoint,f=this.data.adPlaybackContextParams,
H.commandMetadata&&_.U(H.commandMetadata,_.jG)&&_.U(H.commandMetadata,_.jG).url&&(H=_.bZ(_.U(H.commandMetadata,_.jG).url).adurl)&&_.JXs(H)&&_.vV(_.Ag(H),{encoded_ad_playback_context:f}));this.ytComponentBehavior.resolveCommand(v)}};
_.R.computeButtonOverride=function(f){if(this.computeIsNewUiOrShortDr(f))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.R.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.R.onThumbnailContainerClick=function(f){this.onClick(f)};
_.R.computeThumbnailWidth=function(f,H){return f?H==="MASSIVE"?600:H==="BIG"?500:H==="MEDIUM"?450:420:360};
_.R.attached=function(){var f=this,H;_.J("enable_inline_muted_playback_on_web_search")&&((H=this.data)==null?0:H.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.J("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&f.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.R.detached=function(){var f;_.J("enable_inline_muted_playback_on_web_search")&&((f=this.data)==null?0:f.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.J("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.R.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15361_inlinePreviewHoverListener=Q4({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:tMa})};
_.R.clearInlinePreviewHoverListeners=function(){var f;(f=this.JSC$15361_inlinePreviewHoverListener)==null||AY(f)};
wz.prototype.dataChanged=wz.prototype.dataChanged;wz.prototype.onTap=wz.prototype.onTap;wz.JSC$15360_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.ZC("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};wz.JSC$15360_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
wz.JSC$15360_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],wz.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],wz.prototype,"ytRendererBehavior",void 0);_.E([_.B(QW),_.N("design:type",Object)],wz.prototype,"ytdActiveViewBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],wz.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.M2.YtSparklesClickLocationBehavior),_.N("design:type",Object)],wz.prototype,"ytSparklesClickLocationBehavior",void 0);
_.E([_.lJ("#main-container"),_.N("design:type",HTMLElement)],wz.prototype,"mainContainer",void 0);_.E([_.F(),_.N("design:type",Object)],wz.prototype,"isInlinePreviewTriggered",void 0);_.E([_.F(),_.N("design:type",Object)],wz.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,value:function(){return _.J("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],wz.prototype,"useBiggerThumbs",void 0);_.E([_.F({reflectToAttribute:!0,value:function(){return _.J("enable_video_display_compact_button_group_for_desktop_search")}}),
_.N("design:type",Boolean)],wz.prototype,"enableShortDR",void 0);_.E([_.F({reflectToAttribute:!0,value:function(){return _.J("enable_vac_ui_update_for_desktop_search")}}),
_.N("design:type",Boolean)],wz.prototype,"enableUiUpdate",void 0);_.E([_.F({reflectToAttribute:!0,value:function(){return _.yQ("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],wz.prototype,"biggerThumbsStyle",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.N("design:type",Boolean)],wz.prototype,"showCta",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.N("design:type",Boolean)],wz.prototype,"isShortDr",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.N("design:type",Boolean)],wz.prototype,"isShortDrOrNewUi",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.N("design:type",Boolean)],wz.prototype,"isNewUiAndNotShortDr",void 0);_.E([_.F({computed:"computeButtonOverride(data)"}),_.N("design:type",Object)],wz.prototype,"buttonOverride",void 0);_.E([_.F({computed:"computeSecondaryButtonOverride(data)"}),_.N("design:type",Object)],wz.prototype,"secondaryButtonOverride",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],wz.prototype,"enableMonoStyle",void 0);
_.E([_.lJ("ytd-thumbnail"),_.N("design:type",HTMLElement)],wz.prototype,"thumbnail",void 0);_.E([_.sE("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wz.prototype,"onTap",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wz.prototype,"dataChanged",null);_.E([_.u({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],wz);
_.G(wz,"ytd-promoted-video-renderer",function(){if(EtM!==void 0)return EtM;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return EtM=f},{mode:1});var NNb;var q3=function(){var f=_.K.apply(this,arguments)||this;f.useRoundedBadge=!0;f.sitelinkIds=[];return f};
_.e(q3,_.K);_.R=q3.prototype;
_.R.configureRendererStamper=function(){return{"data.menu":{id:_.J("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]]"}}}}}};
_.R.dataChanged=function(){var f;(f=this.data)!=null&&f.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,q3.JSC$15366_CLICK_LOCATION_ID_MAP)};
_.R.onTap=function(f){var H,v=(H=this.data)==null?void 0:H.navigationCommand;v&&!_.qY(_.f2(f),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(v,f,!1)};
_.R.onSitelinkTap=function(f){var H,v,t=f==null?void 0:(H=f.model)==null?void 0:(v=H.item)==null?void 0:v.onTap;t&&this.ytSparklesClickLocationBehavior.handleClick(t,f,!1)};
_.R.configureSitelinkClickTargets=function(){var f=this,H,v,t=(H=this.data)==null?void 0:(v=H.clickLocationTargets)==null?void 0:v.find(function(M){return M.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
t&&_.mF(this.hostElement).querySelectorAll(".sitelink").forEach(function(M){_.WB(M,"yt-simple-endpoint",!0);f.sitelinkIds.push(M.id);var h,y;(h=f.ytSparklesClickLocationBehavior)==null||(y=h.clickTargetMap)==null||y.set(M.id,t)})};
_.R.sendImpression=function(){var f,H,v=((f=this.data)==null?void 0:(H=f.impressionCommand)==null?void 0:H.loggingUrls)||[];f=_.V(v);for(H=f.next();!H.done;H=f.next())H=H.value,H.baseUrl&&XB(H.baseUrl,H.attributionSrcMode)};
_.R.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.H7.Object.defineProperties(q3.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
q3.prototype.onTap=q3.prototype.onTap;q3.prototype.dataChanged=q3.prototype.dataChanged;q3.JSC$15366_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND","text-image-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","headline"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","website-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"]]);
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],q3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],q3.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.M2.YtSparklesClickLocationBehavior),_.N("design:type",Object)],q3.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],q3.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],q3.prototype,"showFavicon",null);_.E([_.F({reflectToAttribute:!0,value:function(){return _.J("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],q3.prototype,"useBiggerThumbs",void 0);_.E([_.F({reflectToAttribute:!0,value:function(){return _.yQ("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],q3.prototype,"biggerThumbsStyle",void 0);_.E([_.F({reflectToAttribute:!0,value:function(){return _.J("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.N("design:type",Boolean)],q3.prototype,"enableThumbnailScalingFix",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],q3.prototype,"dataChanged",null);_.E([_.sE("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],q3.prototype,"onTap",null);_.E([_.u({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],q3);
_.G(q3,"ytd-text-image-no-button-layout-renderer",function(){if(NNb!==void 0)return NNb;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return NNb=f},{mode:_.WK("kevlar_poly_si_batch_j028")?1:2});var cC_;var fk=function(){var f=_.K.apply(this,arguments)||this;f.isInlinePlaybackState=!1;f.uiUpdate=_.J("web_modern_buttons");f.hideCta=_.J("hide_cta_for_home_web_video_ads");f.noBottomMargin=!1;f.animateInTimeStamp=_.VQ("hide_cta_for_home_web_video_ads_animate_in_time");f.animateInCta=!1;f.isHovered=!1;f.enableMonoStyle=_.J("enable_default_mono_cta_migration_web_client");f.player=null;f.JSC$15373_playerEvents=new Map;f.JSC$15373_preventProgressSaveTimer=null;f.delayedCtaJobId=null;return f};
_.e(fk,_.K);_.R=fk.prototype;_.R.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]]"}}}}}};
_.R.attached=function(){this.JSC$15373_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15373_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.J("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.R.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15373_playerEvents)};
_.R.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",fk.JSC$15372_DEFAULT_CLICK_LOCATION_BEHAVIOR,fk.JSC$15372_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.R.hoverChanged=function(){var f=this;this.delayedCtaJobId&&(_.nN.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.J("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.LT(_.nN,function(){f.buttonContainer.classList.add("show-delayed-buttons")},_.VQ("delayed_cta_on_web_delay_milliseconds")))};
_.R.setPlayer=function(){var f=this,H;return _.Y(function(v){if(v.nextAddress==1)return(H=_.$E(f.hostElement,"yt-get-inline-preview-player-action"))&&H[0]?v.yield(H[0].getPlayerPromise(),3):v.jumpTo(0);f.player=v.yieldResult;f.ytPlayerListenerBehavior.listenToPlayerEvents(f.player,f.JSC$15373_playerEvents);_.Bj(v)})};
_.R.onPlaybackStart=function(){var f=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15373_preventProgressSaveTimer=_.OR(_.nN,function(){f.JSC$15373_preventProgressSaveTimer=null},1E4))};
_.R.onVideoProgress=function(f){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&f>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.R.resetPreventProgressSaveTimer=function(){_.nN.cancelJob(this.JSC$15373_preventProgressSaveTimer);this.JSC$15373_preventProgressSaveTimer=null};
_.R.getSimpleString=function(f){return _.fG(f)};
_.R.onClick=function(f){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var H,v=(H=this.data)==null?void 0:H.navigationEndpoint,t;H=(t=this.data)==null?void 0:t.channelEndpoint;var M,h;(t=(h=_.U((M=this.data)==null?void 0:M.adCtaButton,_.nv))==null?void 0:h.command)&&_.qY(_.f2(f),this.hostElement,["call-to-action"])?_.J("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(t,f,!1):H&&_.qY(_.f2(f),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(H,f,!1):!_.qY(_.f2(f),this.hostElement,["secondary-button"])&&v&&(_.J("enable_short_dr_for_desktop_launchable")?(M=!!_.U(v,_.wI),this.isInlinePlaybackState&&M&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(v,f,M)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(v,f,!0)))}};
_.R.updateWatchEndpointStartTime=function(){var f,H;this.player&&((f=this.data)==null?0:f.inlinePlaybackEndpoint)&&((H=this.data)==null?0:H.navigationEndpoint)&&!this.JSC$15373_preventProgressSaveTimer&&(f=Math.floor(this.player.getCurrentTime()),_.U(this.data.navigationEndpoint,_.wI).startTimeSeconds=f,_.U(this.data.inlinePlaybackEndpoint,_.wI).startTimeSeconds=f)};
_.R.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.R.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.H7.Object.defineProperties(fk.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.J("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var f,H;return!((f=this.data)==null||!f.watchButton)&&!((H=this.data)==null||!H.adCtaButton)}}});
fk.prototype.hoverChanged=fk.prototype.hoverChanged;fk.prototype.dataChanged=fk.prototype.dataChanged;
fk.JSC$15372_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","title-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","channel-thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER","short-byline-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL","call-to-action"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","ad-inline-playback-metadata"]]);
fk.JSC$15372_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TITLE",code:0,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:19,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",code:20,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",
code:31,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],fk.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],fk.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],fk.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.M2.YtSparklesClickLocationBehavior),_.N("design:type",Object)],fk.prototype,"ytSparklesClickLocationBehavior",void 0);
_.E([_.B(_.im.YtPlayerListenerBehavior),_.N("design:type",_.kI)],fk.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],fk.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],fk.prototype,"isInlinePlaybackState",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],fk.prototype,"miniMode",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],fk.prototype,"uiUpdate",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],fk.prototype,"hideCta",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],fk.prototype,"noBottomMargin",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],fk.prototype,"animateInCta",void 0);_.E([_.F({computed:"computeButtonOverride(uiUpdate)"}),_.N("design:type",Object)],fk.prototype,"buttonOverride",void 0);
_.E([_.F({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.N("design:type",Object)],fk.prototype,"secondaryButtonOverride",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],fk.prototype,"isHovered",void 0);_.E([_.lJ("#button-container"),_.N("design:type",HTMLElement)],fk.prototype,"buttonContainer",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],fk.prototype,"typographyBump",void 0);
_.E([_.F({reflectToAttribute:!0}),_.z("typographyBump"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],fk.prototype,"typographyBumpV2",null);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],fk.prototype,"enableMonoStyle",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fk.prototype,"dataChanged",null);
_.E([_.Zw("isHovered"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fk.prototype,"hoverChanged",null);_.E([_.z("data"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],fk.prototype,"isButtonGroup",null);_.E([_.u({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],fk);
_.G(fk,"ytd-ad-inline-playback-meta-block",function(){if(cC_!==void 0)return cC_;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return cC_=f},{mode:_.WK("kevlar_poly_si_batch_j065")?1:2});var Xza;var Hc=function(){var f=_.K.apply(this,arguments)||this;f.noBottomMargin=!1;f.isInlinePreviewTriggered=!1;f.JSC$15378_activeViewMeasurementDataResolver=_.bE();return f};
_.e(Hc,_.K);_.R=Hc.prototype;_.R.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.R.attached=function(){var f=this;this.updateInlinePreviewHoverListeners();this.JSC$15378_activeViewMeasurementDataResolver.promise.then(function(H){f.ytdActiveViewBehavior.enableActiveViewMeasurement(H,15)});
_.J("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&f.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.R.detached=function(){this.clearInlinePreviewHoverListeners();_.J("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.R.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15378_inlinePreviewHoverListener=Q4({mediaRenderer:this,lockupElement:this.JSC$15378_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:tMa})};
_.R.clearInlinePreviewHoverListeners=function(){var f;(f=this.JSC$15378_inlinePreviewHoverListener)==null||AY(f)};
_.R.onDataChanged=function(){var f;((f=this.data)==null?0:f.activeView)&&this.JSC$15378_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Hc.JSC$15377_DEFAULT_CLICK_LOCATION_BEHAVIOR,Hc.JSC$15377_CLICK_LOCATION_ID_MAP);this.thumbnail&&(f=this.thumbnail.getElementsByTagName("a"),f.length>0&&(f=f.namedItem("thumbnail"))&&f.removeAttribute("href"));var H;if((H=this.data)==
null?0:H.forceImpAutoplay){var v;(v=this.JSC$15378_inlinePreviewHoverListener)==null||hX5(v)}};
_.R.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.R.onThumbnailContainerClick=function(f){if(this.data&&this.data.navigationEndpoint){var H,v=(H=this.data)==null?void 0:H.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(v,f,!!_.U(v,_.wI));f.stopPropagation()}};
_.R.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.R.impressionLog=function(){var f=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var H,v,t=(v=_.U((H=this.data)==null?void 0:H.onImpression,_.Ir))==null?void 0:v.commands;t&&(t.forEach(function(M){M.clickTrackingParams&&delete M.clickTrackingParams;f.ytComponentBehavior.resolveCommand(M)}),this.data.impressionsFired=!0)}};
_.H7.Object.defineProperties(Hc.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.JSC$15378_inlinePreviewHoverListener)==null?0:Q5(f))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Hc.prototype.onTypographyBumpChanged=Hc.prototype.onTypographyBumpChanged;Hc.prototype.onDataChanged=Hc.prototype.onDataChanged;Hc.JSC$15377_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Hc.JSC$15377_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Hc.prototype,"ytComponentBehavior",void 0);_.E([_.B(QW),_.N("design:type",Object)],Hc.prototype,"ytdActiveViewBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Hc.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Hc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.PG),_.N("design:type",Object)],Hc.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.B(_.A_),_.N("design:type",Object)],Hc.prototype,"ytdLockupBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],Hc.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.M2.YtSparklesClickLocationBehavior),_.N("design:type",Object)],Hc.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Hc.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],Hc.prototype,"noBottomMargin",void 0);
_.E([_.F(),_.N("design:type",Object)],Hc.prototype,"isInlinePreviewTriggered",void 0);_.E([_.F({reflectToAttribute:!0,selector:_.Qq}),_.N("design:type",Boolean)],Hc.prototype,"miniMode",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],Hc.prototype,"typographyBump",void 0);_.E([_.lJ("ytd-thumbnail"),_.N("design:type",HTMLElement)],Hc.prototype,"thumbnail",void 0);_.E([_.lJ("#dismissible"),_.N("design:type",HTMLElement)],Hc.prototype,"JSC$15378_dismissibleMedia",void 0);
_.E([_.lJ("ytd-ad-inline-playback-meta-block"),_.N("design:type",HTMLElement)],Hc.prototype,"adInlinePlaybackMetaBlock",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Hc.prototype,"onDataChanged",null);_.E([_.xV("typographyBump"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Hc.prototype,"onTypographyBumpChanged",null);
_.E([_.z("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Hc.prototype,"isHovered",null);_.E([_.u({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],Hc);
_.G(Hc,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(Xza!==void 0)return Xza;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Xza=f},{mode:1});var ACv;var vc=function(){var f=_.K.apply(this,arguments)||this;f.isInlinePreviewTriggered=!1;f.JSC$15381_activeViewMeasurementDataResolver=_.bE();return f};
_.e(vc,_.K);_.R=vc.prototype;_.R.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.R.attached=function(){var f=this;this.updateInlinePreviewHoverListeners();this.JSC$15381_activeViewMeasurementDataResolver.promise.then(function(H){f.ytdActiveViewBehavior.enableActiveViewMeasurement(H,15)})};
_.R.detached=function(){this.clearInlinePreviewHoverListeners()};
_.R.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15381_inlinePreviewHoverListener=Q4({mediaRenderer:this,lockupElement:this.JSC$15381_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:tMa})};
_.R.clearInlinePreviewHoverListeners=function(){var f;(f=this.JSC$15381_inlinePreviewHoverListener)==null||AY(f)};
_.R.onDataChanged=function(){var f;((f=this.data)==null?0:f.activeView)&&this.JSC$15381_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",vc.JSC$15380_DEFAULT_CLICK_LOCATION_BEHAVIOR,vc.JSC$15380_CLICK_LOCATION_ID_MAP);this.thumbnail&&(f=this.thumbnail.getElementsByTagName("a"),f.length>0&&(f=f.namedItem("thumbnail"))&&f.removeAttribute("href"))};
_.R.onThumbnailContainerClick=function(f){if(this.data&&this.data.navigationEndpoint){var H,v=(H=this.data)==null?void 0:H.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(v,f,!0);f.stopPropagation()}};
_.R.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.R.impressionLog=function(){var f=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var H,v,t=(v=_.U((H=this.data)==null?void 0:H.onImpression,_.Ir))==null?void 0:v.commands;t&&(t.forEach(function(M){M.clickTrackingParams&&delete M.clickTrackingParams;_.t8().resolve(_.MJ).resolveCommand(M,{form:{element:f.hostElement}})}),this.data.impressionsFired=!0)}};
_.H7.Object.defineProperties(vc.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.JSC$15381_inlinePreviewHoverListener)==null?0:Q5(f))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
vc.prototype.onDataChanged=vc.prototype.onDataChanged;vc.JSC$15380_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);vc.JSC$15380_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.E([_.B(QW),_.N("design:type",Object)],vc.prototype,"ytdActiveViewBehavior",void 0);
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],vc.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],vc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.PG),_.N("design:type",Object)],vc.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.B(_.A_),_.N("design:type",Object)],vc.prototype,"ytdLockupBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],vc.prototype,"ytdReduxBehavior",void 0);
_.E([_.B(_.M2.YtSparklesClickLocationBehavior),_.N("design:type",Object)],vc.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],vc.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],vc.prototype,"isInlinePreviewTriggered",void 0);_.E([_.F({reflectToAttribute:!0,selector:_.Qq}),_.N("design:type",Boolean)],vc.prototype,"miniMode",void 0);_.E([_.lJ("ytd-thumbnail"),_.N("design:type",HTMLElement)],vc.prototype,"thumbnail",void 0);
_.E([_.lJ("#dismissible"),_.N("design:type",HTMLElement)],vc.prototype,"JSC$15381_dismissibleMedia",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vc.prototype,"onDataChanged",null);_.E([_.z("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],vc.prototype,"isHovered",null);_.E([_.u({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],vc);
_.G(vc,"ytd-video-display-full-buttoned-renderer",function(){if(ACv!==void 0)return ACv;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return ACv=f},{mode:1});var fp=function(f,H,v,t){t=t===void 0?!1:t;_.vR.call(this,f);this.adsClientErrorMessage=v;this.aggressivelySample=t;this.args=[];H&&this.args.push(H)};
_.e(fp,_.vR);var w3=function(f,H,v,t){t=t===void 0?!1:t;_.vR.call(this,f);this.adsClientErrorMessage=v;this.aggressivelySample=t;this.args=[];H&&this.args.push(H)};
_.e(w3,_.vR);var bH9=function(f){_.zO.call(this);var H=this;this.initializationFunction=f;this.instance=null;this.addOnDisposeCallback(function(){_.Mj(H.instance);H.instance=null})};
_.e(bH9,_.zO);bH9.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.cx("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var a8v=function(){var f=new Map;[].forEach(function(H){f.set(H.JSC$30419_getType(),H)});
this.getters=f};new Promise(function(){});var oQv=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"]]),KkN=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"}]]),iH9=function(f){this.experimentApiProvider=f;f=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=f<.1};var t1=function(f,H,v,t){_.zO.call(this);this.adsControlFlowEventListeners=H;this.adEventLogger=v;this.experimentApiProvider=t;this.adsControlFlowManagerHelper=f(this,this,this,this,this);_.jz(this,this.adsControlFlowManagerHelper);f=_.V(H);for(H=f.next();!H.done;H=f.next())_.jz(this,H.value)};
_.e(t1,_.zO);var knh=function(f,H,v,t){MU(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",H,v,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t);f=_.V(f.adsControlFlowEventListeners);for(t=f.next();!t.done;t=f.next())knh(t.value,H,v)};
_.R=t1.prototype;_.R.onOpportunityProcessedExternallyManaged=function(f,H,v,t){MU(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",f,v,H,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t)};
_.R.onSlotReceivedExternallyManaged=function(f,H){h1(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",f,H)};
_.R.onSlotEntered=function(f){if(R$(this.adsControlFlowManagerHelper,f)!=null){h1(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",f);this.adsControlFlowManagerHelper.onSlotEntered(f);for(var H=_.V(this.adsControlFlowEventListeners),v=H.next();!v.done;v=H.next())v.value.onSlotEntered(f);if(R$(this.adsControlFlowManagerHelper,f)!=null&&R$(this.adsControlFlowManagerHelper,f).isOccupyingSlotType()&&V7(this.adsControlFlowManagerHelper,f)&&!TNn(this.adsControlFlowManagerHelper,f)){var t;y7(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",f,(t=V7(this.adsControlFlowManagerHelper,f))!=null?t:void 0);f=R$(this.adsControlFlowManagerHelper,f);f.slotLifecycleStage!=="entered"&&YC(f.slot,f.slotLifecycleStage,"enterLayoutForSlot");f.slotLifecycleStage="rendering";f.registeredLayoutRenderingAdapter.startRendering(f.layout)}}};
_.R.onSlotExited=function(f){if(R$(this.adsControlFlowManagerHelper,f)!=null){h1(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",f);this.adsControlFlowManagerHelper.onSlotExited(f);for(var H=_.V(this.adsControlFlowEventListeners),v=H.next();!v.done;v=H.next())v.value.onSlotExited(f);R$(this.adsControlFlowManagerHelper,f)!=null&&R$(this.adsControlFlowManagerHelper,f).markedForUnscheduleAfterOutboundAdapterRequests&&wzh(this,f)}};
_.R.onLayoutReceivedExternallyManaged=function(f,H,v){f.managerLayer!=="core"&&y7(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",f,H,v)};
var qrb=function(f,H,v){if(R$(f.adsControlFlowManagerHelper,H)!=null){y7(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",H,v);f=_.V(f.adsControlFlowEventListeners);for(var t=f.next();!t.done;t=f.next())qrb(t.value,H,v)}};
t1.prototype.onLayoutExited=function(f,H,v){if(R$(this.adsControlFlowManagerHelper,f)!=null){y7(this.adEventLogger,D5E(v),f,H);this.adsControlFlowManagerHelper.onLayoutExited(f,H);for(var t=_.V(this.adsControlFlowEventListeners),M=t.next();!M.done;M=t.next())M.value.onLayoutExited(f,H,v);(v=V7(this.adsControlFlowManagerHelper,f))&&H.layoutId===v.layoutId&&fWZ(this,f)}};
t1.prototype.disposeInternal=function(){var f=HCg(this.adsControlFlowManagerHelper);f=_.V(f);for(var H=f.next();!H.done;H=f.next())wzh(this,H.value);_.zO.prototype.disposeInternal.call(this)};
var wzh=function(f,H){if(R$(f.adsControlFlowManagerHelper,H)!=null)if(R$(f.adsControlFlowManagerHelper,H).JSC$30449_isSlotExitRequested()||R$(f.adsControlFlowManagerHelper,H).JSC$30449_isLayoutExitRequested())R$(f.adsControlFlowManagerHelper,H).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(R$(f.adsControlFlowManagerHelper,H).isOccupyingSlotType())R$(f.adsControlFlowManagerHelper,H).markedForUnscheduleAfterOutboundAdapterRequests=!0,fWZ(f,H);else if(R$(f.adsControlFlowManagerHelper,H).JSC$30449_isSlotFillRequested())R$(f.adsControlFlowManagerHelper,
H).markedForUnscheduleAfterOutboundAdapterRequests=!0,R$(f.adsControlFlowManagerHelper,H)!=null&&(h1(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",H),H=R$(f.adsControlFlowManagerHelper,H),H.fulfillmentLifecycleStage="fill_cancel_requested",H.registeredFulfillmentAdapter.cancelSlotFilling());else{var v=V7(f.adsControlFlowManagerHelper,H),t;f.experimentApiProvider.get();(t=_.J("h5_enable_layout_unscheduling_events"))&&(v?vYM(f,H,v):_.cx(Error("Jh"),H,v,void 0,!1));h1(f.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",H);var M=R$(f.adsControlFlowManagerHelper,H),h=H.slotEntryTrigger,y=M.registeredSlotEntryTriggerAdapters.get(h.triggerId);y&&(y.unregisterTrigger(h),M.registeredSlotEntryTriggerAdapters.delete(h.triggerId));h=_.V(H.slotFulfillmentTriggers);for(y=h.next();!y.done;y=h.next()){y=y.value;var m=M.registeredFulfillmentTriggerAdapters.get(y.triggerId);m&&(m.unregisterTrigger(y),M.registeredFulfillmentTriggerAdapters.delete(y.triggerId))}h=_.V(H.slotExpirationTriggers);
for(y=h.next();!y.done;y=h.next())if(y=y.value,m=M.registeredExpirationTriggerAdapters.get(y.triggerId))m.unregisterTrigger(y),M.registeredExpirationTriggerAdapters.delete(y.triggerId);M.hasLayout()&&(h=M.layout,me(M,h.layoutExitNormalTriggers),me(M,h.layoutExitSkipTriggers),me(M,h.layoutExitMuteTriggers),me(M,h.layoutExitUserInputSubmittedTriggers),me(M,h.layoutExitUserCancelledTriggers));M.registeredFulfillmentAdapter=void 0;M.registeredSlotAdapter!=null&&(M.registeredSlotAdapter.release(),M.registeredSlotAdapter=
void 0);M.registeredLayoutRenderingAdapter!=null&&(M.registeredLayoutRenderingAdapter.release(),M.registeredLayoutRenderingAdapter=void 0);M=f.adsControlFlowManagerHelper;R$(M,H)&&(M=twZ(M,H.slotType+"_"+H.slotPhysicalPosition))&&M.delete(H.slotId);h1(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",H);f=_.V(f.adsControlFlowEventListeners);for(M=f.next();!M.done;M=f.next())M=M.value,M.onSlotUnscheduled(H),v&&!t&&vYM(M,H,v)}},vYM=function(f,H,v){y7(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
H,v);
y7(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",H,v);f=_.V(f.adsControlFlowEventListeners);for(var t=f.next();!t.done;t=f.next())t=t.value,v&&vYM(t,H,v)},fWZ=function(f,H){if(R$(f.adsControlFlowManagerHelper,H)!=null&&R$(f.adsControlFlowManagerHelper,H).isOccupyingSlotType()){var v=V7(f.adsControlFlowManagerHelper,H);
if(v&&TNn(f.adsControlFlowManagerHelper,H)){if(R$(f.adsControlFlowManagerHelper,H)!=null){var t=f.adEventLogger,M;var h=((M=KkN.get("abandoned"))==null?void 0:M.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";y7(t,h,H,v);f=R$(f.adsControlFlowManagerHelper,H);f.slotLifecycleStage!=="rendering"&&YC(f.slot,f.slotLifecycleStage,"exitLayout");f.slotLifecycleStage="rendering_stop_requested";f.registeredLayoutRenderingAdapter.stopRendering(v,"abandoned")}}else{h1(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
H);try{t=R$(f.adsControlFlowManagerHelper,H);if(!t)throw new w3("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");t.slotLifecycleStage!=="enter_requested"&&t.slotLifecycleStage!=="entered"&&t.slotLifecycleStage!=="rendering"&&YC(t.slot,t.slotLifecycleStage,"exitSlot");t.slotLifecycleStage="exit_requested";if(t.registeredSlotAdapter===void 0)throw t.slotLifecycleStage="scheduled",new w3("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
t.registeredSlotAdapter.exit()}catch(y){y instanceof w3&&y.adsClientErrorMessage?(Mwa(f.adEventLogger,y.adsClientErrorMessage,H),_.cx(y,H,void 0,void 0,y.aggressivelySample)):(Mwa(f.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",H),_.cx(y,H))}}}};var $C=function(f,H,v,t,M,h){_.zO.call(this);this.registry=f;this.experimentApiProvider=h;this.slotMap=new Map};
_.e($C,_.zO);var twZ=function(f,H){return(f=f.slotMap.get(H))?f:new Map},R$=function(f,H){return twZ(f,H.slotType+"_"+H.slotPhysicalPosition).get(H.slotId)},HCg=function(f){var H=[];
f.slotMap.forEach(function(v){v=_.V(v.values());for(var t=v.next();!t.done;t=v.next())H.push(t.value.slot)});
return H};
$C.prototype.onSlotEntered=function(f){f=R$(this,f);f.slotLifecycleStage!=="enter_requested"&&YC(f.slot,f.slotLifecycleStage,"onSlotEntered");f.slotLifecycleStage="entered"};
var TNn=function(f,H){f=R$(f,H);return f.hasLayout()&&f.isRendering()},V7=function(f,H){(f=R$(f,H))?f.hasLayout()&&!f.layout&&_.cx("Unexpected empty layout",H):_.cx("Unexpected undefined slotState",H);
return(f==null?void 0:f.layout)||null};
$C.prototype.onSlotExited=function(f){f=R$(this,f);f.slotLifecycleStage!=="exit_requested"&&YC(f.slot,f.slotLifecycleStage,"onSlotExited");f.slotLifecycleStage="scheduled"};
$C.prototype.onLayoutExited=function(f,H){f=R$(this,f);f.isPrimaryLayout(H)&&(f.slotLifecycleStage!=="rendering_stop_requested"&&YC(f.slot,f.slotLifecycleStage,"onLayoutExited"),f.slotLifecycleStage="entered")};
var me=function(f,H){H=_.V(H);for(var v=H.next();!v.done;v=H.next()){v=v.value;var t=f.registeredLayoutExitTriggerAdapters.get(v.triggerId);t&&(t.unregisterTrigger(v),f.registeredLayoutExitTriggerAdapters.delete(v.triggerId))}},YC=function(f,H,v){_.cx("Slot stage was "+H+" when calling method "+v,f)};var RGv=function(f){_.zO.call(this);this.deps=f;this.JSC$15431_adsControlFlowManager=hGb(this)};
_.e(RGv,_.zO);var hGb=function(f){var H=new t1(function(v,t,M,h){return new $C(f.deps.registry,v,t,M,h,f.deps.experimentApiProvider)},new Set(uSg(f.deps.registry).concat(f.deps.listeners)),f.deps.adEventLogger,f.deps.experimentApiProvider);
_.jz(f,H);return H};var x65=function(){};var VwZ=function(f,H){_.zO.call(this);this.experimentApiProvider=f;this.eventLoggingSettingsProvider=H;this.eventCount=0;this.premiumAdSeenEventLogger=BjE()()};
_.e(VwZ,_.zO);VwZ.prototype.logEvent=function(f){MU(this,f)};
var h1=function(f,H,v,t){MU(f,H,void 0,void 0,void 0,v,void 0,void 0,void 0,v.adSlotLoggingData,void 0,void 0,t)},y7=function(f,H,v,t,M){MU(f,H,void 0,void 0,void 0,v,t?t:void 0,void 0,void 0,v.adSlotLoggingData,t?t.adLayoutLoggingData:void 0,void 0,M);
v=_.t8().resolve(_.vh(xF))==null?void 0:Bk();H=v==null?void 0:v.adsSeenHotConfig;v=v==null?void 0:v.adsHotConfig;(H==null?0:H.logOnAdsSeen)&&(v==null?0:v.webEnablePremiumAdsSeenLogging)&&yw_(f,t?t:void 0,M)},Mwa=function(f,H,v){MU(f,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,v,void 0,void 0,void 0,v.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:H})},MU=function(f,H,v,t,M,h,y,m,W,I,S,d,Z){Z=Z===void 0?0:Z;
YYh(f.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+H,"slot:",h,"layout:",y,"ping:",m,"Opportunity:",{opportunityType:v,associatedSlotId:t,slotsFromOpportunity:M,triggerBundle:W,adSlotLoggingData:I,adLayoutLoggingData:S});try{var l=function(){f.experimentApiProvider.get();if(H!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){H||_.cx("Empty PACF event type",h,y);var L=f.eventLoggingSettingsProvider.get();var r;(r=L.alwaysIncludeDebugData)||(L.experimentApiProvider.get(),r=
!1);L=r;r={eventType:H,eventOrder:++f.eventCount};var n={};h&&(n.slotData=pme(L,h));if(y){var Q={type:y.layoutType,controlFlowManagerLayer:oQv.get(y.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};L&&(Q.debugData={layoutId:y.layoutId});n.layoutData=Q}m&&(n.pingData={pingDispatchStatus:m.dispatchStatus,serializedAdPingMetadata:m.ping.serializedAdPingMetadata,pingIndex:m.index});W&&(n.triggerData=nQ5(W.trigger,W.category));v&&(n.opportunityData=Q7v(L,v,t,M));r.adClientData=n;I&&(r.serializedSlotAdServingData=
I.serializedSlotAdServingDataEntry);S&&(r.serializedAdServingData=S.serializedAdServingDataEntry);d&&(r.errorInfo=d);_.Kb("adsClientStateChange",{adsClientEvent:r})}};
Z&&Z>0?_.Lb(_.Zb(),function(){return l()},Z):l()}catch(L){YYh(f.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.Lb(_.Zb(),function(){_.cx(L instanceof Error?L:String(L),h,y,{pacf_message:"exception during pacf logging"})})}},yw_=function(f,H,v){if(H){var t=H.adLayoutLoggingData;
_.Lb(_.Zb(),function(){f.premiumAdSeenEventLogger!=null&&t&&_.Kb("adsSeenClientLogging",{serializedAdServingDataEntry:t.serializedAdServingDataEntry})},v!=null?v:0)}};var mDa=function(f,H){VwZ.call(this,f,H)};
_.e(mDa,VwZ);var $Dh=function(){},YYh=function(f,H){return _.J(H)};var OCZ=function(){var f=new WXa;this.JSC$15456_adsControlFlowManager=(new RGv(f)).JSC$15431_adsControlFlowManager},WXa=function(){_.zO.call(this);
var f=this;this.experimentApiProvider=new bH9(function(){return new $Dh});
var H=new bH9(function(){return new iH9(f.experimentApiProvider)});
this.adEventLogger=new mDa(this.experimentApiProvider,H);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.e(WXa,_.zO);var gYo=function(){},IWh,Wc=function(){IWh||(IWh=new gYo);
return IWh},OJ=function(f){if(!f.JSC$15467_externallyManagedSlotAdapterCallback){var H=(new OCZ).JSC$15456_adsControlFlowManager;
f.JSC$15467_externallyManagedSlotAdapterCallback=H}return f.JSC$15467_externallyManagedSlotAdapterCallback},SYb=function(f,H,v){var t=H.opportunityType,M=Error("Kh");
if(t!==void 0){var h=OJ(f);knh(h,t,void 0,v)}else _.cx(M,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});h=[];if(H.adSlotAndLayoutMetadata!==void 0){H=_.V(H.adSlotAndLayoutMetadata);for(var y=H.next();!y.done;y=H.next()){var m=y.value;if(y=m.adSlotMetadata)if(h.push(y),f.onSlotReceivedExternallyManaged(y,v),m.adLayoutMetadata){m=_.V(m.adLayoutMetadata);for(var W=m.next();!W.done;W=m.next())f.onLayoutReceivedExternallyManaged(y,W.value,v)}else v>0&&_.cx("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
t,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else v>0&&_.cx("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+t,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else v>0&&_.cx("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+t,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(t!==void 0)f.onOpportunityProcessedExternallyManaged(t,h,void 0,v);else _.cx(M,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
gYo.prototype.onSlotReceivedExternallyManaged=function(f,H){f=ql(f);if(f instanceof w3)_.cx(f,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else OJ(this).onSlotReceivedExternallyManaged(f,H)};
gYo.prototype.onLayoutReceivedExternallyManaged=function(f,H,v){f=ql(f);H=P6s(H);if(f instanceof w3)_.cx(f,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(H instanceof fp)_.cx(H,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else OJ(this).onLayoutReceivedExternallyManaged(f,H,v)};
gYo.prototype.onOpportunityProcessedExternallyManaged=function(f,H,v,t){var M=[];H=_.V(H);for(var h=H.next();!h.done;h=H.next())h=ql(h.value),h instanceof w3?_.cx(h,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):M.push(h);OJ(this).onOpportunityProcessedExternallyManaged(f,M,v,t)};
var dDH=function(f,H){H=ql(H);if(H instanceof w3)_.cx(H,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var v=OJ(f);h1(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",H);v=_.V(v.adsControlFlowEventListeners);for(var t=v.next();!t.done;t=v.next())t=R$(t.value,H),t.slotLifecycleStage!=="not_scheduled"&&YC(t.slot,t.slotLifecycleStage,"onSlotScheduled"),t.slotLifecycleStage="scheduled";f=OJ(f);h1(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",H);f=_.V(f.adsControlFlowEventListeners);
for(v=f.next();!v.done;v=f.next())v.value.onSlotEntered(H)}},jCa=function(f,H){H=ql(H);
if(H instanceof w3)_.cx(H,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var v=OJ(f);h1(v.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",H);v=_.V(v.adsControlFlowEventListeners);for(var t=v.next();!t.done;t=v.next())t.value.onSlotExited(H);f=OJ(f);h1(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",H);f=_.V(f.adsControlFlowEventListeners);for(v=f.next();!v.done;v=f.next())v.value.onSlotUnscheduled(H)}},sCa=function(f,H,v){H=ql(H);
v=P6s(v);if(H instanceof w3)_.cx(H,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(v instanceof fp)_.cx(v,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var t=OJ(f);y7(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",H,v);t=_.V(t.adsControlFlowEventListeners);for(var M=t.next();!M.done;M=t.next())M.value.onLayoutScheduled(H,v);f=OJ(f);y7(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",H,v);f=_.V(f.adsControlFlowEventListeners);
for(t=f.next();!t.done;t=f.next())qrb(t.value,H,v)}},g2=function(f,H,v){H=ql(H);
v=P6s(v);if(H instanceof w3)_.cx(H,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(v instanceof fp)_.cx(v,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var t=OJ(f);y7(t.adEventLogger,D5E("normal"),H,v);t=_.V(t.adsControlFlowEventListeners);for(var M=t.next();!M.done;M=t.next())M.value.onLayoutExited(H,v,"normal");f=OJ(f);f=_.V(f.adsControlFlowEventListeners);for(t=f.next();!t.done;t=f.next())vYM(t.value,H,v)}};_.I$=_.a(function(f){var H=_.tV(f,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});f=Object.assign({},H);var v=H.data;H=H.customCommandResolver;var t=(delete f.data,delete f.customCommandResolver,f);f=_.MV({visibilityCallback:function(m,W){var I,S=(I=v().interaction)==null?void 0:I.onFirstVisible;m&&(S&&_.XA(S),t.setOnErrorHandler()&&Gpb(W))},
showOption:_.f_});H=_.as(function(){return v().interaction},H,function(){var m;
return(m=t.listenToTapEvent)==null?void 0:m.call(t)});
var M=_.V(_.gp(!1,void 0,"nqIeMd")),h=M.next().value,y=M.next().value;M=_.d6(function(m){var W;((W=t.setTouchEndHandler)==null?0:W.call(t))&&!h()&&(m.currentTarget.click(),y(!0),setTimeout(function(){y(!1)},100));
return!1});
return _.O("ad-image-view-model",{class:function(){var m,W=[((m=v().interaction)==null?0:m.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],I;((I=t.isGridViewEnabled)==null?0:I.call(t))&&W.push("ytwAdImageViewModelHostInGridView");return W.join(" ")},
el:_.tE(f,H),"on:touchend":M},_.O("div",{class:"ytwAdImageViewModelHostImageContainer"},_.O(_.Hn,{data:function(){var m;return{sources:v().imageSources,contentMode:(m=v().imageProperties)==null?void 0:m.contentMode}},
alt:function(){var m,W;return((m=v().interaction)==null?void 0:(W=m.accessibility)==null?void 0:W.label)||""},
targetHeight:t.targetHeight,targetWidth:t.targetWidth,preserveHeight:t.preserveHeight,preserveWidth:t.preserveWidth,useWidth:t.useWidth,style:function(){var m,W;return"vertical-align: bottom;"+(((m=v().background)==null?0:m.color)?"background-color:"+_.NS((W=v().background)==null?void 0:W.color)+";":"")},
className:function(){return t.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var m,W;return(W=(m=t.setDraggable)==null?void 0:m.call(t))!=null?W:void 0}})))},"sb");var ZCb=_.a(function(f){var H=f.data,v=f.listenToTapEvent,t=function(){};
return _.O("ad-button-hover-overlay-view-model",{"on:click":_.d6(function(M){if(_.J("enable_web_home_top_landscape_image_layout_legacy_click_command")){var h,y=(h=H().interaction)==null?void 0:h.onTap;y&&_.YE(M.currentTarget,"yt-navigate",{endpoint:_.GK(y)})}}),
class:function(){var M;return((M=H().interaction)==null?0:M.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.tE(_.MV({visibilityCallback:function(M){var h,y=(h=H().interaction)==null?void 0:h.onFirstVisible;M&&y&&_.XA(y)},
showOption:_.f_}),_.as(function(){return H().interaction},void 0,function(){return!_.J("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(v==null?void 0:v())}))},function(){return _.J("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.O(_.Jj,{data:function(){return H().button}},{adButtonViewModel:function(M){return _.O(_.vO,{data:M.data,
customCommandResolver:t})}}):_.O(_.Jj,{data:function(){return H().button}},{adButtonViewModel:_.vO})}())},"tb");var Hs;_.yn(_.a(function(f){var H=f.data;f=_.MV({visibilityCallback:function(m,W){if(m){var I;(m=(I=H().interaction)==null?void 0:I.onFirstVisible)&&_.XA(m);var S;if(I=(S=H().adLayoutData)==null?void 0:S.activeViewData)vs(W,I),_.J("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&tY(W)})}else _.J("stop_av_measurement_on_detach")&&tY(W)},
showOption:_.f_,hideOption:HO});var v=_.as(function(){return H().interaction},void 0,function(){return!0}),t=_.V(_.gp(!1,void 0,"K1MNM")),M=t.next().value,h=t.next().value;
t=_.d6(function(){h(!0)});
var y=_.d6(function(){h(!1)});
return _.O("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.tE(f,bFR,v),"on:mouseenter":t,"on:mouseleave":y},_.O("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.ZE({"max-width":function(){return _.J("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.O("div",{class:function(){var m;
a:{var W;switch((m=_.U(H().thumbnailImage,aDv))==null?void 0:(W=m.imageProperties)==null?void 0:W.renderingAspect){case "RENDERING_ASPECT_SQUARE":m="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":m="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}m=void 0}return m}},_.O(_.Jj,{data:function(){return H().thumbnailImage}},{adImageViewModel:function(m){return _.O(_.I$,
{data:m.data,
listenToTapEvent:!0,setTouchEndHandler:_.J("enable_top_landscape_image_experiment_dom_id_web")})}})),_.O("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.O(_.g,{cond:function(){var m,W,I;
return(m=_.U(H().thumbnailImage,aDv))==null?void 0:(W=m.imageProperties)==null?void 0:(I=W.overlayIcon)==null?void 0:I.iconImage},
then:function(m){return _.O(_.Hn,{data:m,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.O("div",{class:function(){return M()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.O(_.Jj,{data:function(){return H().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(m){return _.O(ZCb,
{data:m.data,
listenToTapEvent:!0})}}))),_.O("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.O(_.Jj,{data:function(){return H().feedAdMetadata}},{feedAdMetadataViewModel:function(m){return _.O(Bfg,{data:m.data,
listenToTapEvent:!0,setTouchEndHandler:_.J("enable_top_landscape_image_experiment_dom_id_web")})}})))},"ub"),"compact-landscape-no-button-layout-view-model",{props:{data:_.ki}});_.yn(_.a(function(f){var H=f.data;f=_.MV({visibilityCallback:function(m,W){if(m){var I;(m=(I=H().interaction)==null?void 0:I.onFirstVisible)&&_.XA(m);var S;if(I=(S=H().adLayoutData)==null?void 0:S.activeViewData)vs(W,I),_.J("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&tY(W)})}else _.J("stop_av_measurement_on_detach")&&tY(W)},
showOption:_.f_,hideOption:HO});var v=_.uE(_.Qn),t=_.as(function(){return H().interaction}),M={},h={},y={};
return _.O("square-image-layout-view-model",{class:_.S2("ytwSquareImageLayoutViewModelHost",(M.ytwSquareImageLayoutViewModelHostColumn=v,M)),el:_.tE(f,iFE,t)},_.O("div",{class:_.S2("ytwSquareImageLayoutViewModelHostImage",(h.ytwSquareImageLayoutViewModelHostColumnImage=v,h))},function(){return _.O(_.Jj,{data:function(){return H().adImage}},{adImageViewModel:function(m){return _.O(_.I$,{data:m.data,
isGridViewEnabled:v,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.O("div",{class:_.S2("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(y.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=v,y))},_.O(_.Jj,{data:function(){return H().feedAdMetadata}},{feedAdMetadataViewModel:Bfg}),function(){return _.O(_.Jj,{data:function(){return H().adButton}},{adButtonViewModel:function(m){var W={};
return _.O(_.vO,{data:m.data,className:_.S2((W.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,W.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=v,W))})}})}()))},"vb"),"square-image-layout-view-model",{props:{data:_.ki}});_.yn(_.a(function(f){var H=f.data;var v=f.noBottomMargin;var t=f.typographyBump;f=_.MV({visibilityCallback:function(d,Z){if(d){var l;(d=(l=H().interaction)==null?void 0:l.onFirstVisible)&&_.XA(d);var L;if(l=(L=H().adLayoutData)==null?void 0:L.activeViewData)vs(Z,l),_.J("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&tY(Z)})}else _.J("stop_av_measurement_on_detach")&&tY(Z)},
showOption:_.f_,hideOption:HO});var M=_.as(function(){return H().interaction},void 0,function(){return _.J("enable_web_home_top_landscape_image_layout_level_click")}),h=function(){return H().interaction};
h!==void 0&&h!==null||_.Nw(Error("Lh"));var y=function(){var d,Z,l;return(d=_.U(H().thumbnailImage,aDv))==null?void 0:(Z=d.background)==null?void 0:(l=Z.backgroundImageSource)==null?void 0:l.imageSources};
h=_.V(_.gp(!1,void 0,"pZPLOd"));var m=h.next().value,W=h.next().value;h=_.d6(function(){W(!0)});
var I=_.d6(function(){W(!1)}),S=function(){return m()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.O("top-landscape-image-layout-view-model",{class:function(){var d;return((d=H().interaction)==null?0:d.onTap)&&_.J("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.tE(f,kpr,M),"on:mouseenter":h,"on:mouseleave":I},_.O("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.O(_.g,{cond:function(){return y()&&y().length>0},
then:function(){return _.O("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.ZE({top:"0","background-image":function(){return"url("+String(y()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.O(_.g,{cond:function(){return!!H().adButtonHoverOverlay},
then:function(){return _.O("div",{class:S},_.O(_.Jj,{data:function(){return H().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:ZCb}))}}),_.O("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.O(_.Jj,{data:function(){return H().thumbnailImage}},{adImageViewModel:function(d){return _.O(_.I$,{data:d.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.J("enable_web_home_top_landscape_image_layout_level_click")})}})),_.O("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.O(_.Hn,{data:{sources:[{clientResource:{imageName:_.J("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.O("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.O(_.Jj,{data:function(){return H().feedAdMetadata}},{feedAdMetadataViewModel:function(d){return _.O(Bfg,{data:d.data,
noBottomMargin:function(){return v==null?void 0:v()},
listenToTapEvent:function(){return _.J("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return t==null?void 0:t()}})}})))},"wb"),"top-landscape-image-layout-view-model",{props:{data:_.ki,
noBottomMargin:_.ki,typographyBump:_.ki}});_.yn(_.a(function(f){var H=f.data;var v=f.typographyBump;return _.O("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.tE(_.MV({visibilityCallback:function(t,M){if(t){var h;(t=(h=H().interaction)==null?void 0:h.onFirstVisible)&&_.XA(t);var y;(h=(y=H().adLayoutData)==null?void 0:y.activeViewData)&&vs(M,h)}},
showOption:_.f_,hideOption:HO}))},_.O("div",null,_.O(_.Jj,{data:function(){return H().videoLockup}},{lockupViewModel:function(t){return _.O(_.YM,{data:t.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:v})}})))},"xb"),"video-display-button-group-layout-view-model",{props:{data:_.ki,
noBottomMargin:_.ki,typographyBump:_.ki}});_.yn(_.a(function(f){var H=f.data;var v=f.className;var t=f.typographyBump;return _.O("video-display-compact-button-group-layout-view-model",{el:_.tE(_.MV({visibilityCallback:function(M,h){if(M){var y;(M=(y=H().interaction)==null?void 0:y.onFirstVisible)&&_.XA(M);var m;(y=(m=H().adLayoutData)==null?void 0:m.activeViewData)&&vs(h,y)}},
showOption:_.f_})),class:_.S2("videoDisplayCompactButtonGroupLayoutViewModelHost",v)},_.O(_.Jj,{data:function(){return H().videoLockup}},{lockupViewModel:function(M){return _.O(_.YM,{data:M.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:t})}}))},"yb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.ki,
className:_.ki,typographyBump:_.ki}});_.yn(_.a(function(f){var H=f.data;var v=f.className;var t=f.typographyBump;return _.O("video-display-compact-buttoned-layout-view-model",{el:_.tE(_.MV({visibilityCallback:function(M,h){if(M){var y;(M=(y=H().interaction)==null?void 0:y.onFirstVisible)&&_.XA(M);var m;(y=(m=H().adLayoutData)==null?void 0:m.activeViewData)&&vs(h,y)}},
showOption:_.f_})),class:_.S2("videoDisplayCompactButtonedLayoutViewModelHost",v)},_.O(_.Jj,{data:function(){return H().videoLockup}},{lockupViewModel:function(M){return _.O(_.YM,{data:M.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:t})}}))},"zb"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.ki,
className:_.ki,typographyBump:_.ki}});_.yn(_.a(function(f){var H=f.data;var v=f.className;var t=f.typographyBump;var M=function(){return H().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},h=_.uE(_.Qn);
f=_.MV({visibilityCallback:function(I,S){if(I){var d=H();I=d.adLayoutData;var Z;(d=(Z=d.interaction)==null?void 0:Z.onFirstVisible)&&_.XA(d);(Z=I==null?void 0:I.activeViewData)&&vs(S,Z)}},
showOption:_.f_});var y=_.sg(function(){return{containerType:M()&&h()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST"}},void 0,"BXJVJ"),m=_.sg(function(){return M()&&h()?"":M()?"168px":"50%"},void 0,"ikSkm"),W=_.sg(function(){return M()&&h()?9999:void 0},void 0,"M8rucc");
return _.O("video-display-compact-layout-view-model",{el:_.tE(f),class:_.S2("videoDisplayCompactLayoutViewModelHost",v)},_.O(_.Jj,{data:function(){return H().videoLockup}},{lockupViewModel:function(I){return _.O(_.YM,{data:I.data,
containerLayoutConfig:y,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:m,thumbnailTargetWidth:W,typographyBump:t})}}))},"Ab"),"video-display-compact-layout-view-model",{props:{data:_.ki,
className:_.ki,typographyBump:_.ki}});_.yn(_.a(function(f){var H=f.data;var v=f.typographyBump;return _.O("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.tE(_.MV({visibilityCallback:function(t,M){if(t){var h;(t=(h=H().interaction)==null?void 0:h.onFirstVisible)&&_.XA(t);var y;(h=(y=H().adLayoutData)==null?void 0:y.activeViewData)&&vs(M,h)}},
showOption:_.f_,hideOption:HO}))},_.O("div",null,_.O(_.Jj,{data:function(){return H().videoLockup}},{lockupViewModel:function(t){return _.O(_.YM,{data:t.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:v})}})))},"Bb"),"video-display-full-layout-view-model",{props:{data:_.ki,
noBottomMargin:_.ki,typographyBump:_.ki}});_.JwT=_.a(function(f){var H=f.data;f=_.TN("ad-card-badge-view-model");return _.O("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:f},_.O(_.g,{cond:function(){return H().imageBadge},
then:function(v){return _.O(_.Hn,{data:v,alt:""})}}))},"Cb");var lWr=_.a(function(f){var H=f.data;var v=f.customCommandResolver;return _.O("carousel-ad-card-image-view-model",{class:function(){var t;return((t=H().interaction)==null?0:t.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.tE(_.MV({visibilityCallback:function(t){var M,h=(M=H().interaction)==null?void 0:M.onFirstVisible;t&&h&&_.XA(h)},
showOption:_.f_}),_.as(function(){return H().interaction},v)),
"aria-label":function(){var t,M;return(t=H().interaction)==null?void 0:(M=t.accessibility)==null?void 0:M.label}},_.O(_.Jj,{data:function(){return H().adImage}},{adImageViewModel:function(t){return _.O(_.I$,{data:t.data,
customCommandResolver:v})}}),_.O("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.O(_.Jj,{data:function(){return H().badge}},{adCardBadgeViewModel:_.JwT})),_.O(_.yU,{model:{color:4}}))},"Db");var UDg=_.a(function(f){var H=_.V(_.gp(0,void 0,"o9Bzd")),v=H.next().value;H.next();var t=H.next().value,M=_.V(_.gp(!1,void 0,"KLdzYe"));H=M.next().value;var h=M.next().value,y;_.Dt(function(){clearTimeout(y)});
M=_.d6(function(){var I;((I=f.animate)==null?0:I.call(f))?(h(!0),y=setTimeout(function(){h(!1);m()},200)):m();
return!1});
var m=function(){t(function(I){return(I+f.numShownItems())%f.data().length})},W={};
return _.O("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.O("div",{class:_.S2("ytwHorizontalCarouselCarouselWrapper")},_.O("div",{class:_.S2("ytwHorizontalCarouselCarouselInnerWrapper",(W.ytwHorizontalCarouselAnimating=H,W))},_.O(_.eK,{each:f.data,keyBy:"INDEX"},function(I,S){return _.O("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.ZE({"flex-basis":function(){return"calc((100% - (8px * "+(f.numShownItems()-1)+")) / "+f.numShownItems()+")"},
order:function(){var d=S-v();d<0&&(d+=f.data().length);return d}})},f.children(I,S))}))),_.O("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":M},f.nextButton()))},"Eb");var eGC=_.a(function(f){var H=f.data;var v=f.customCommandResolver;var t=f.expansive;return _.O("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.tE(_.MV({visibilityCallback:function(M){var h,y=(h=H().interaction)==null?void 0:h.onFirstVisible;M&&y&&_.XA(y)},
showOption:_.f_}))},_.O(UDg,{data:function(){var M;return((M=H())==null?void 0:M.carouselAdCards)||[]},
nextButton:function(){return _.O(_.Jj,{data:function(){return H().nextButton}},{buttonViewModel:function(M){var h=M.data;
return _.O(_.Wp,{data:function(){return(t==null?0:t())?Object.assign({},h(),{style:"mono"}):h()},
className:_.J("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(M){return _.O(_.Jj,{data:M},{carouselAdCardImageViewModel:function(h){return _.O(lWr,{data:h.data,customCommandResolver:v})}})}))},"Fb");var LXh=_.a(function(f){var H=f.data;var v=f.customCommandResolver;var t=f.className;var M=f.buttonClassName;var h=f.animationEntityKey;var y=f.expansive;return _.O("carousel-button-view-model",{class:_.S2("ytwCarouselButtonViewModelHost",t)},_.O(_.Jj,{data:function(){return H().carousel}},{carouselAdCardCollectionViewModel:function(m){return _.O(eGC,{data:m.data,
customCommandResolver:v,expansive:y})}}),_.O(_.Jj,{data:function(){return H().button}},{adButtonViewModel:function(m){var W=m.data;
return _.O(_.vO,{data:function(){return(y==null?0:y())?Object.assign({},W(),{style:"AD_BUTTON_STYLE_TONAL"}):W()},
className:M,customCommandResolver:v,animationEntityKey:h})}}))},"Gb");_.xDo=_.a(function(f){var H=f.data;f=f.className;var v=_.TN("pivot-button-view-model");_.Kc(function(){var t;((t=H())==null?0:t.backgroundColor)&&v.value.setAttribute("data-background-color",String(H().backgroundColor))});
return _.O("pivot-button-view-model",{el:v,class:_.S2("ytwPivotButtonViewModelHost",f)},_.O(_.VU,{command:function(){var t=H();t=t.onClickCommand?_.GK(t.onClickCommand):t.contentDescription?_.ht(t.contentDescription):void 0;return t},
ariaLabel:function(){return H().contentDescription}},_.O(_.g,{cond:function(){return H().thumbnail},
then:function(t){return _.O(_.Hn,{data:t,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.O(_.g,{cond:function(){return H().icon},
then:function(t){return _.O(_.JE,{icon:function(){return t().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Hb");_.Bxv=_.a(function(f){var H=f.data;var v=f.buttonShapeOverrideables;return _.O("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.O(_.Jj,{data:function(){return H().buttonViewModels}},{buttonViewModel:function(t){return _.O(_.Wp,{data:t.data,
buttonOverrides:v})},
likeButtonViewModel:function(t){return _.O(_.pX,{data:t.data,buttonShapeOverrideables:v})},
dislikeButtonViewModel:function(t){return _.O(_.nX,{data:t.data,buttonShapeOverrideables:v})},
toggleButtonViewModel:function(t){return _.O(_.Fo,{data:t.data,buttonShapeOverrides:v})}}))},"Ib");var zGo=_.a(function(f){var H=f.avatar;var v=f.headline;var t=f.badge;var M=f.description;var h=f.expansive;f={};return _.O("yt-ad-metadata-shape",{class:_.S2("ytAdMetadataShapeHost",(f.ytAdMetadataShapeHostLarge=h,f))},_.O("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.O(_.g,{cond:H,then:function(y){return _.O(_.U5o,{data:function(){return(h==null?0:h())?Object.assign({},y(),{size:"AD_AVATAR_SIZE_MPLUS"}):y()}})}}),_.O("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.O(_.iq,{text:v,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.O(_.g,{cond:t,then:function(y){return _.O(_.Vc,{data:function(){return(h==null?0:h())?Object.assign({},y(),{style:"AD_BADGE_STYLE_STARK"}):y()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.O("h2",{class:"ytAdMetadataShapeHostDescription"},_.O(_.iq,{text:M,
linkInheritColor:!0})))},"Jb");var FXg=_.a(function(f){var H=f.data;var v=f.onShow;var t=f.expansive;f=_.as(function(){return H().interaction});
_.Kc(function(){var h,y=(h=H().animatedRenderingConfig)==null?void 0:h.delayedSecondsToVisible;if(y){var m=setTimeout(v,y*1E3);_.Dt(function(){clearTimeout(m)})}});
var M={};return _.O("reels-ad-card-buttoned-view-model",{class:_.S2(function(){var h;return((h=H().interaction)==null?0:h.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(M.ytwReelsAdCardButtonedViewModelHostExpansive=t,M)),
el:_.tE(f)},_.O(zGo,{avatar:function(){return _.U(H().avatar,p49)},
headline:function(){return H().headline},
badge:function(){return _.U(H().adBadge,QHa)},
description:function(){return H().description},
expansive:t}),_.O(_.Jj,{data:function(){return H().ctaButton}},{adButtonViewModel:function(h){var y=h.data;
return _.O(_.vO,{data:function(){return(t==null?0:t())?Object.assign({},y(),{style:"AD_BUTTON_STYLE_FILLED"}):y()}})}}))},"Kb");var rwn=_.a(function(f){var H=f.data;f=f.expansive;var v=_.J("web_ad_metadata_clickable")?_.as(function(){return H().interaction},void 0,function(){return _.J("web_ad_metadata_clickable")}):void 0,t={};
t=_.zV("ytwReelsAdMetadataViewModelHost",(t.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.J("web_ad_metadata_clickable"),t));return _.O("reels-ad-metadata-view-model",{class:t,el:_.tE(v)},_.O(zGo,{avatar:function(){return _.U(H().avatar,p49)},
headline:function(){return H().headline},
badge:function(){return _.U(H().adBadge,QHa)},
description:function(){return H().description},
expansive:f}))},"Lb");var KXo={iconPosition:"icon-with-label",size:"L"},DDo=_.a(function(f){var H=f.data;var v=f.overlayDensity;f=_.TN("reels-player-overlay-layout-view-model");var t=_.vK(v,0),M=function(){var d;return(d=H().reelsAdCardButtonedEntityKey)!=null?d:""},h=function(){return M()+"/ad_button"},y=_.s7(GvE,M),m=function(){var d,Z;
return(Z=(d=y())==null?void 0:d.value)!=null?Z:!1},W=_.uE(Tf3),I=function(){return Object.assign({},KXo,(W()||t()===2)&&{style:"overlay-dark"})};
v={};var S={};return _.O("reels-player-overlay-layout-view-model",{class:_.S2("ytwReelsPlayerOverlayLayoutViewModelHost",(v.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!H().extension},v.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},v)),
"overlay-density":function(){return String(t())},
el:f},_.O("div",{class:_.S2("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(S.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},S))},_.O("div",{"aria-hidden":function(){return m()},
class:_.S2("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return m()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.ZE({"transition-duration":function(){return HHb(H())}})},_.O(_.Jj,{data:function(){return H().adMetadata}},{reelsAdMetadataViewModel:function(d){return _.O(rwn,{data:d.data,
expansive:function(){return t()===1}})}}),_.O(_.g,{cond:function(){return H().extension},
then:function(d){return _.O("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.O(_.Jj,{data:d},{adButtonViewModel:function(Z){return _.O(_.vO,{data:Z.data,animationEntityKey:h,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(Z){return _.O(LXh,{data:Z.data,animationEntityKey:h,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return t()===1}})}}))}})),_.O("div",{"aria-hidden":function(){return!m()},
class:_.S2("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return m()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.ZE({"transition-duration":function(){return HHb(H())}})},_.O(_.Jj,{data:function(){return H().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(d){return _.O(FXg,{data:d.data,
onShow:function(){_.HK(_.lF("booleanEntity",M(),{key:M(),value:!0}))},
expansive:function(){return t()===1}})}}))),_.O("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.O(_.Jj,{data:function(){return H().actions}},{reelActionBarViewModel:function(d){return _.O(_.Bxv,{data:d.data,
buttonShapeOverrideables:I})}}),_.O(_.Jj,{data:function(){return H().menu}},{buttonViewModel:function(d){return _.O(_.Wp,{data:d.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},I(),{type:"tonal"})}})}}),_.O(_.Jj,{data:function(){return H().pivotButton}},{pivotButtonViewModel:function(d){return _.O(_.xDo,{data:d.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Mb");_.yn(DDo,"reels-player-overlay-layout-view-model",{props:{data:_.ki,overlayDensity:_.ki}});var Su=function(){var f=_.K.apply(this,arguments)||this;f.noBottomMargin=!1;f.overlayDensity=0;return f};
_.e(Su,_.K);_.R=Su.prototype;
_.R.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.J("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]]"}}}}}};
_.R.ready=function(){var f=this;jAs(function(){f.isAttached&&k$(f.JSC$15511_storedAdSlotMetadata,f.JSC$15511_storedAdLayoutMetadata,f.adSlotMetadata,f.adLayoutMetadata)&&g2(Wc(),f.JSC$15511_storedAdSlotMetadata,f.JSC$15511_storedAdLayoutMetadata)})};
_.R.attached=function(){k$(this.JSC$15511_storedAdSlotMetadata,this.JSC$15511_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&sCa(Wc(),this.JSC$15511_storedAdSlotMetadata,this.JSC$15511_storedAdLayoutMetadata)};
_.R.detached=function(){k$(this.JSC$15511_storedAdSlotMetadata,this.JSC$15511_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&g2(Wc(),this.JSC$15511_storedAdSlotMetadata,this.JSC$15511_storedAdLayoutMetadata)};
_.R.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.R.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15511_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15511_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15511_storedAdLayoutMetadata!==void 0&&this.JSC$15511_storedAdSlotMetadata!==void 0&&g2(Wc(),this.JSC$15511_storedAdSlotMetadata,this.JSC$15511_storedAdLayoutMetadata),sCa(Wc(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15511_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15511_storedAdSlotMetadata=this.adSlotMetadata)};
_.H7.Object.defineProperties(Su.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.adLayoutMetadata}}});
Su.prototype.onAdMetadataChanged=Su.prototype.onAdMetadataChanged;Su.prototype.onTypographyBumpChanged=Su.prototype.onTypographyBumpChanged;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Su.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Su.prototype,"rendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Su.prototype,"ytComponentBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],Su.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],Su.prototype,"noBottomMargin",void 0);_.E([_.F(),_.N("design:type",Object)],Su.prototype,"overlayDensity",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],Su.prototype,"typographyBump",void 0);_.E([_.z("data.adLayoutMetadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],Su.prototype,"adLayoutMetadata",null);_.E([_.F(),_.N("design:type",Object)],Su.prototype,"adSlotMetadata",void 0);
_.E([_.lJ("ytd-video-display-full-buttoned-and-button-group-renderer"),_.N("design:type",HTMLElement)],Su.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.E([_.Zw("typographyBump"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Su.prototype,"onTypographyBumpChanged",null);_.E([_.Zw("adLayoutMetadata","adSlotMetadata"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Su.prototype,"onAdMetadataChanged",null);
_.E([_.u({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],Su);
_.G(Su,"ytd-in-feed-ad-layout-renderer",function(){if(ldH!==void 0)return ldH;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return ldH=f},
{mode:_.WK("kevlar_poly_si_batch_j028")?1:2});var oYZ;var nYn;_.yn(_.Vc,"ad-badge-view-model",{props:{data:_.ki,hasDot:_.ki,customCommandResolver:_.Rm,adRenderingContextType:_.Rm}});_.yn(_.vO,"ad-button-view-model",{props:{data:_.ki,customCommandResolver:_.Rm,className:_.Rm,delayedClassName:_.Rm,animationEntityKey:_.Rm,isCompactWidth:_.Rm}});var d2=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return f};
_.e(d2,_.K);_.R=d2.prototype;_.R.computeHasLiveDescription=function(f){return!(f==null||!f.liveDescription)};
_.R.computeHasByline=function(f){return!(f==null||!f.byline)};
_.R.computeUsesAdButtonViewModel=function(f){return!!_.U(f==null?void 0:f.cta,u_r)};
_.R.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]"}}}},"data.cta":{id:"ad-button",mapping:{adButtonViewModel:{component:"ad-button-view-model",params:{isCompactWidth:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.R.onYtToggleButton=function(f){var H,v=(H=this.data)==null?void 0:H.videoReminderEntityKey;v&&this.ytdReduxBehavior.dispatch(_.lF("upcomingEventReminderStateEntity",v,{key:v,state:f.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.R.attached=function(){this.updateChannelBanner()};
_.R.dataChanged=function(){this.updateChannelBanner()};
_.R.videoReminderStateChanged=function(){var f;this.videoReminderState&&_.U((f=this.data)==null?void 0:f.cta,_.pv)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.R.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var f=_.YK(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);f&&(f.startsWith("//")&&(f="https:"+f),this.hostElement.classList.add("channel-banner"),_.Sr(this.hostElement,{"--ytvmh-channel-banner":"url("+f+")"}))}else _.J("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.R.onPlayerReady=function(){this.onIronResize()};
_.R.maybeFlushDebouncer=function(){_.J("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(f){var H;f=(H=f.getElementsByTagName("yt-attributed-string"))==null?void 0:H[0];az3(f==null?void 0:f.polymerController)})};
_.R.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var f=_.mF(this.hostElement).querySelector("#live-description"),H;f&&((H=this.data)==null?0:H.shortLiveDescription)&&f.clientWidth<f.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
d2.prototype.onIronResize=d2.prototype.onIronResize;d2.prototype.videoReminderStateChanged=d2.prototype.videoReminderStateChanged;d2.prototype.dataChanged=d2.prototype.dataChanged;d2.prototype.onYtToggleButton=d2.prototype.onYtToggleButton;_.E([_.B(_.x3),_.N("design:type",Object)],d2.prototype,"ironResizableBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],d2.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],d2.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],d2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],d2.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],d2.prototype,"data",void 0);_.E([_.F({selectorArgs:["data.videoReminderEntityKey"],selector:EeN}),_.N("design:type",Object)],d2.prototype,"videoReminderState",void 0);
_.E([_.F({reflectToAttribute:!0,value:_.J("web_modern_buttons")}),_.N("design:type",Boolean)],d2.prototype,"rounded",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.N("design:type",Boolean)],d2.prototype,"hasLiveDescription",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.N("design:type",Boolean)],d2.prototype,"hasByline",void 0);
_.E([_.F({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.N("design:type",String)],d2.prototype,"adRenderingContextType",void 0);_.E([_.F({computed:"computeUsesAdButtonViewModel(data)"}),_.N("design:type",Boolean)],d2.prototype,"usesAdButtonViewModel",void 0);_.E([_.F({reflectToAttribute:!0,value:_.J("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.N("design:type",Boolean)],d2.prototype,"resizableAdBannerSafariFix",void 0);
_.E([_.F({reflectToAttribute:!0,value:_.J("align_three_dot_menu_with_title_description")}),_.N("design:type",Boolean)],d2.prototype,"menuFix",void 0);_.E([_.UE("yt-formatted-string"),_.N("design:type",Array)],d2.prototype,"formattedStrings",void 0);_.E([_.lJ("#cta-button"),_.N("design:type",HTMLElement)],d2.prototype,"ctaButton",void 0);_.E([_.sE("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],d2.prototype,"onYtToggleButton",null);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],d2.prototype,"dataChanged",null);_.E([_.Zw("videoReminderState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],d2.prototype,"videoReminderStateChanged",null);_.E([_.sE("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],d2.prototype,"onIronResize",null);
_.E([_.u({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],d2);
_.G(d2,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(nYn!==void 0)return nYn;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return nYn=f},{mode:1});var pF9;var ju=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};f.isLocked=!1;return f};
_.e(ju,_.K);_.R=ju.prototype;_.R.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.R.onExpandedChanged=function(){this.expanded&&_.$E(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.R.onMouseOver=function(){this.maybeExpand()};
_.R.onTap=function(){this.maybeExpand()};
_.R.onExpandableTileExpanding=function(f){f!==this&&(this.expanded=!1)};
_.R.onExpandableTileLockAndCollapse=function(f){this.isLocked=!0;f!==this&&(this.expanded=!1)};
_.R.onExpandableTileUnlock=function(){this.isLocked=!1};
ju.prototype.onTap=ju.prototype.onTap;ju.prototype.onMouseOver=ju.prototype.onMouseOver;ju.prototype.onExpandedChanged=ju.prototype.onExpandedChanged;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],ju.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ju.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],ju.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],ju.prototype,"expanded",void 0);_.E([_.xV("expanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ju.prototype,"onExpandedChanged",null);_.E([_.sE("mouseover"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ju.prototype,"onMouseOver",null);_.E([_.sE("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ju.prototype,"onTap",null);
_.E([_.u({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],ju);
_.G(ju,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(pF9!==void 0)return pF9;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return pF9=f},{mode:1});var QCT;var sJ=function(){var f=_.K.apply(this,arguments)||this;f.buttonOverrides={style:"overlay"};f.useYtdPlayer=_.J("use_ytd_player_for_desktop_masthead");f.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};f.playbackFinished=!1;f.JSC$15525_playerManager=null;f.JSC$15525_mastheadCounter=new xjM;return f};
_.e(sJ,_.K);_.R=sJ.prototype;_.R.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"}}}};
_.R.created=function(){this.JSC$15525_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15525_playerManager=new zF)};
_.R.ready=function(){var f=this;this.JSC$15525_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var H=_.mF(this.hostElement).querySelector("#player");this.useYtdPlayer?H.style.display="none":(this.ytdPlayer.style.display="none",azn(this.JSC$15525_playerManager,H,function(){f.onPlaybackEnded()}),_.mF(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var v;
((v=f.data)==null?0:v.navigationEndpoint)&&_.YE(f.hostElement,"yt-navigate",{endpoint:f.data.navigationEndpoint})}))};
_.R.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15525_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.R.attached=function(){var f=this;_.bJ(function(){f.maybePlayVideo()})};
_.R.maybePlayVideo=function(){var f=this;!(this.expanded&&this.isAttached&&this.data&&this.data.videoId)||this.playbackFinished||this.useYtdPlayer&&this.data.disableAutoPlayback||(this.hostElement.classList.add("video-playing"),this.lockAndCollapseExpandableTiles(),this.useYtdPlayer?this.ytdPlayer.play():(this.JSC$15525_playerManager.playVideo(),this.getPlayerPromise().then(function(){f.JSC$15525_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.R.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15525_playerManager.stopVideo()};
_.R.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var f,H={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((f=this.data.playbackStartMs)!=null?f:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(H);this.setupYtdPlayer()}else G9b(this.JSC$15525_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(PlH(this.JSC$15525_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.R.getPlayerPromise=function(){return this.JSC$15525_playerManager.getPlayerPromise()};
_.R.onYtToggleButton=function(f){this.useYtdPlayer?this.toggleMute(f.detail.toggled):f.detail.toggled?this.JSC$15525_playerManager.mute():this.JSC$15525_playerManager.unMute()};
_.R.onYtNavigate=function(f){var H=Kav(f.detail.endpoint),v=DvN(this.data.clickthroughReportingData);H&&v&&(f.detail.endpoint.watchEndpoint?f.detail.tempData=v:_.vV(H,v,30))};
_.R.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.R.onExpandedChanged=function(){this.expanded?(_.$E(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.R.onMouseOver=function(){this.maybeExpand()};
_.R.onTap=function(){this.maybeExpand()};
_.R.onExpandableTileExpanding=function(f){f!==this&&(this.stopVideo(),this.expanded=!1)};
_.R.onExpandableTileLockAndCollapse=function(f){f!==this&&(this.isLocked=!0,this.expanded=!1)};
_.R.onExpandableTileUnlock=function(){this.isLocked=!1};
_.R.lockAndCollapseExpandableTiles=function(){_.mb(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.R.unlockExpandableTiles=function(){_.mb(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.R.setupYtdPlayer=function(){var f=this,H;return _.Y(function(v){if(v.nextAddress==1)return v.yield(f.ytdPlayer.getPlayerPromise(),2);H=v.yieldResult;H.addEventListener("onStateChange",function(t){f.onPlayerStateChange(t)});
H.addEventListener("onCueRangeExit",function(t){f.onCueRangeExit(t)});
_.Bj(v)})};
_.R.onPlayerStateChange=function(f){if(f===1&&(f=this.ytdPlayer.getPlayer())){var H=f.getCurrentTime(),v,t,M=H+((t=(v=this.data)==null?void 0:v.playbackDurationMs)!=null?t:0)/1E3;f.addCueRange("playback",H,M);this.JSC$15525_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.R.onCueRangeExit=function(f){f==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.R.toggleMute=function(f){var H=this,v;return _.Y(function(t){if(t.nextAddress==1)return t.yield(H.ytdPlayer.getPlayerPromise(),2);v=t.yieldResult;f?v.mute():v.unMute();_.Bj(t)})};
sJ.prototype.onTap=sJ.prototype.onTap;sJ.prototype.onMouseOver=sJ.prototype.onMouseOver;sJ.prototype.onExpandedChanged=sJ.prototype.onExpandedChanged;sJ.prototype.onYtNavigate=sJ.prototype.onYtNavigate;sJ.prototype.onYtToggleButton=sJ.prototype.onYtToggleButton;sJ.prototype.dataChanged=sJ.prototype.dataChanged;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],sJ.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],sJ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],sJ.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],sJ.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],sJ.prototype,"expanded",void 0);_.E([_.F(),_.N("design:type",Object)],sJ.prototype,"buttonOverrides",void 0);
_.E([_.F(),_.N("design:type",Object)],sJ.prototype,"useYtdPlayer",void 0);_.E([_.lJ("#ytd-player"),_.N("design:type",Object)],sJ.prototype,"ytdPlayer",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sJ.prototype,"dataChanged",null);_.E([_.sE("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],sJ.prototype,"onYtToggleButton",null);
_.E([_.sE("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],sJ.prototype,"onYtNavigate",null);_.E([_.xV("expanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sJ.prototype,"onExpandedChanged",null);_.E([_.sE("mouseover"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sJ.prototype,"onMouseOver",null);
_.E([_.sE("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sJ.prototype,"onTap",null);_.E([_.u({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],sJ);
_.G(sJ,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(QCT!==void 0)return QCT;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return QCT=f},{mode:1});var u5r;var Z2=function(){return _.K.apply(this,arguments)||this};
_.e(Z2,_.K);Z2.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Z2.prototype.onShow=function(){var f=_.mF(this.hostElement).querySelector("#live-description"),H;f&&((H=this.data)==null?0:H.shortLiveDescription)&&f.clientWidth<f.scrollWidth&&this.hostElement.classList.add("short-live-description")};
Z2.prototype.onYtToggleButton=function(f){var H,v=(H=this.data)==null?void 0:H.videoReminderEntityKey;v&&this.ytdReduxBehavior.dispatch(_.lF("upcomingEventReminderStateEntity",v,{key:v,state:f.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
Z2.prototype.videoReminderStateChanged=function(){var f;this.videoReminderState&&_.U((f=this.data)==null?void 0:f.cta,_.pv)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
Z2.prototype.videoReminderStateChanged=Z2.prototype.videoReminderStateChanged;Z2.prototype.onYtToggleButton=Z2.prototype.onYtToggleButton;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Z2.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Z2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],Z2.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Z2.prototype,"data",void 0);
_.E([_.F({selectorArgs:["data.videoReminderEntityKey"],selector:EeN}),_.N("design:type",Object)],Z2.prototype,"videoReminderState",void 0);_.E([_.sE("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Z2.prototype,"onYtToggleButton",null);_.E([_.Zw("videoReminderState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Z2.prototype,"videoReminderStateChanged",null);
_.E([_.u({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],Z2);
_.G(Z2,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(u5r!==void 0)return u5r;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return u5r=f},{mode:_.WK("kevlar_poly_si_batch_j065")?1:2});var aWh;var J1=function(){var f=_.K.apply(this,arguments)||this;f.useYtdPlayer=_.J("use_ytd_player_for_desktop_masthead");f.buttonOverrides={style:"overlay"};f.JSC$15533_playerManager=null;f.JSC$15533_mastheadCounter=new xjM;f.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return f};
_.e(J1,_.K);_.R=J1.prototype;_.R.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"}}}};
_.R.created=function(){this.JSC$15533_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15533_playerManager=new zF)};
_.R.ready=function(){var f=this;this.JSC$15533_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var H;(H=this.embeddedPlayer)==null||H.remove()}else{var v;(v=this.ytdPlayer)==null||v.remove();azn(this.JSC$15533_playerManager,this.embeddedPlayer,function(){f.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){f.data&&f.data.navigationEndpoint&&_.YE(f.hostElement,"yt-navigate",{endpoint:f.data.navigationEndpoint})})}};
_.R.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15533_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.R.dataChanged=function(){var f=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var H=!this.data.disableAutoPlayback,v,t={autoplay:H,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((v=this.data.playbackStartMs)!=null?v:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(H?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(t);this.setupYtdPlayer()}else G9b(this.JSC$15533_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(PlH(this.JSC$15533_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15533_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.mb(f.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");f.JSC$15533_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.R.getPlayerPromise=function(){return this.JSC$15533_playerManager.getPlayerPromise()};
_.R.onYtToggleButton=function(f){this.useYtdPlayer?this.toggleMute(f.detail.toggled):f.detail.toggled?this.JSC$15533_playerManager.mute():this.JSC$15533_playerManager.unMute()};
_.R.onYtNavigate=function(f){var H=Kav(f.detail.endpoint),v=DvN(this.data.clickthroughReportingData);H&&v&&(f.detail.endpoint.watchEndpoint?f.detail.tempData=v:_.vV(H,v,30))};
_.R.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15533_playerManager.stopVideo()};
_.R.setupYtdPlayer=function(){var f=this,H;return _.Y(function(v){if(v.nextAddress==1)return v.yield(f.ytdPlayer.getPlayerPromise(),2);H=v.yieldResult;H.addEventListener("onStateChange",function(t){f.onPlayerStateChange(t)});
H.addEventListener("onCueRangeExit",function(t){f.onCueRangeExit(t)});
_.Bj(v)})};
_.R.onPlayerStateChange=function(f){if(f===1&&(f=this.ytdPlayer.getPlayer())){var H=f.getCurrentTime(),v,t,M=H+((t=(v=this.data)==null?void 0:v.playbackDurationMs)!=null?t:0)/1E3;f.addCueRange("playback",H,M);_.mb(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15533_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.R.onCueRangeExit=function(f){f==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.R.toggleMute=function(f){var H=this,v;return _.Y(function(t){if(t.nextAddress==1)return t.yield(H.ytdPlayer.getPlayerPromise(),2);v=t.yieldResult;f?v.mute():v.unMute();_.Bj(t)})};
_.H7.Object.defineProperties(J1.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var f,H;if(!((f=this.data)==null?0:(H=f.accessibilityData)==null?0:H.label))return"Ad primary link";var v,t;return _.ZC("AD_TITLE",{title:(v=this.data)==null?void 0:(t=v.accessibilityData)==null?void 0:t.label})}}});
J1.prototype.onYtMastheadHidden=J1.prototype.onYtMastheadHidden;J1.prototype.onYtNavigate=J1.prototype.onYtNavigate;J1.prototype.onYtToggleButton=J1.prototype.onYtToggleButton;J1.prototype.dataChanged=J1.prototype.dataChanged;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],J1.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],J1.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],J1.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],J1.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],J1.prototype,"useYtdPlayer",void 0);_.E([_.lJ("ytd-toggle-button-renderer"),_.N("design:type",Object)],J1.prototype,"muteButton",void 0);_.E([_.F(),_.N("design:type",Object)],J1.prototype,"buttonOverrides",void 0);
_.E([_.z("data.accessibilityData.label"),_.N("design:type",String),_.N("design:paramtypes",[])],J1.prototype,"titleAriaLabel",null);_.E([_.lJ("#replay-button"),_.N("design:type",Object)],J1.prototype,"replayButton",void 0);_.E([_.lJ("#player-container"),_.N("design:type",Object)],J1.prototype,"playerContainer",void 0);_.E([_.lJ("#player"),_.N("design:type",Object)],J1.prototype,"embeddedPlayer",void 0);_.E([_.lJ("#ytd-player"),_.N("design:type",Object)],J1.prototype,"ytdPlayer",void 0);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],J1.prototype,"dataChanged",null);_.E([_.sE("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],J1.prototype,"onYtToggleButton",null);_.E([_.sE("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],J1.prototype,"onYtNavigate",null);
_.E([_.sE("yt-masthead-hidden"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],J1.prototype,"onYtMastheadHidden",null);_.E([_.u({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],J1);
_.G(J1,"ytd-video-masthead-ad-primary-video-renderer",function(){if(aWh!==void 0)return aWh;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return aWh=f},{mode:2});var P_9;var la=function(){var f=_.K.apply(this,arguments)||this;f.collapsed=!1;f.impressionResolver=_.bE();f.JSC$15537_activeViewMeasurementDataResolver=_.bE();f.actionMap={"yt-mute-ad-action":"handleMuteAd"};return f};
_.e(la,_.K);_.R=la.prototype;_.R.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"}}}};
_.R.ready=function(){var f=this;_.mF(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){f.expandAd()});
this.hostElement.addEventListener("yt-action",function(H){if(H.detail.actionName==="yt-service-request"){var v=H.detail.args[1];v.videoMastheadAdMuteCommand&&(f.collapseAd(v.videoMastheadAdMuteCommand.encryptedMastheadId),H.stopPropagation())}})};
_.R.attached=function(){var f=this;_.bJ(function(){f.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(H){if(!f.collapsed){H=_.V(H);for(var v=H.next();!v.done;v=H.next())v=v.value,XB(v.baseUrl,v.attributionSrcMode);f.data.impressionCommand=void 0}});
this.JSC$15537_activeViewMeasurementDataResolver.promise.then(function(H){f.ytdActiveViewBehavior.enableActiveViewMeasurement(H,15)});
_.J("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&f.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.R.dataChanged=function(){var f;((f=this.data.impressionCommand)==null?0:f.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var H;((H=this.data)==null?0:H.activeView)&&this.JSC$15537_activeViewMeasurementDataResolver.resolve(this.data.activeView);(f=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(f.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.R.computeWidescreen=function(f){var H;return!!(f&&((H=_.U(f,rhZ))==null?0:H.isWidescreen))};
_.R.computeExpandable=function(f){return!!(f&&f.length>0)};
_.R.onIronResize=function(){if(this.expandable){var f=_.mF(this.hostElement).querySelector("#expandable-tile-container :first-child");f&&!f.expanded&&(f.expanded=!0)}};
_.R.handleMuteAd=function(){this.collapseAd(null)};
_.R.restoreCollapsedState=function(f){this.collapsed=_.Uj().get("HIDDEN_MASTHEAD_ID")===f};
_.R.collapseAd=function(f){if(f){var H=_.Uj();H.set("HIDDEN_MASTHEAD_ID",f);H.save()}(f=_.mF(this.hostElement).querySelector("#video"))&&_.YE(f,"yt-masthead-hidden");this.collapsed=!0};
_.R.expandAd=function(){var f=_.Uj();f.set("HIDDEN_MASTHEAD_ID",!1);f.save();location.reload()};
_.R.detached=function(){_.J("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
la.prototype.onIronResize=la.prototype.onIronResize;la.prototype.dataChanged=la.prototype.dataChanged;_.E([_.B(_.x3),_.N("design:type",Object)],la.prototype,"ironResizableBehavior",void 0);_.E([_.B(QW),_.N("design:type",Object)],la.prototype,"ytdActiveViewBehavior",void 0);_.E([_.B(_.Cm),_.N("design:type",Object)],la.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],la.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],la.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],la.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],la.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.N("design:type",Boolean)],la.prototype,"widescreen",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.N("design:type",Boolean)],la.prototype,"expandable",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],la.prototype,"collapsed",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],la.prototype,"dataChanged",null);
_.E([_.sE("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],la.prototype,"onIronResize",null);_.E([_.u({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],la);
_.G(la,"ytd-video-masthead-ad-v3-renderer",function(){if(P_9!==void 0)return P_9;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return P_9=f},{mode:2});var UJ=function(){return _.K.apply(this,arguments)||this};
_.e(UJ,_.K);_.R=UJ.prototype;_.R.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.R.ready=function(){var f=this;jAs(function(){f.isAttached&&k$(f.JSC$15542_storedAdSlotMetadata,f.JSC$15542_storedAdLayoutMetadata,f.adSlotMetadata,f.adLayoutMetadata)&&g2(Wc(),f.JSC$15542_storedAdSlotMetadata,f.JSC$15542_storedAdLayoutMetadata)})};
_.R.attached=function(){k$(this.JSC$15542_storedAdSlotMetadata,this.JSC$15542_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&sCa(Wc(),this.JSC$15542_storedAdSlotMetadata,this.JSC$15542_storedAdLayoutMetadata)};
_.R.detached=function(){k$(this.JSC$15542_storedAdSlotMetadata,this.JSC$15542_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&g2(Wc(),this.JSC$15542_storedAdSlotMetadata,this.JSC$15542_storedAdLayoutMetadata)};
_.R.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15542_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15542_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15542_storedAdLayoutMetadata!==void 0&&this.JSC$15542_storedAdSlotMetadata!==void 0&&g2(Wc(),this.JSC$15542_storedAdSlotMetadata,this.JSC$15542_storedAdLayoutMetadata),sCa(Wc(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15542_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15542_storedAdSlotMetadata=this.adSlotMetadata)};
_.H7.Object.defineProperties(UJ.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.adLayoutMetadata}}});
UJ.prototype.onAdMetadataChanged=UJ.prototype.onAdMetadataChanged;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],UJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],UJ.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],UJ.prototype,"data",void 0);_.E([_.z("data.adLayoutMetadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],UJ.prototype,"adLayoutMetadata",null);
_.E([_.F(),_.N("design:type",Object)],UJ.prototype,"adSlotMetadata",void 0);_.E([_.Zw("adLayoutMetadata","adSlotMetadata"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UJ.prototype,"onAdMetadataChanged",null);_.E([_.u({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],UJ);
_.G(UJ,"ytd-page-top-ad-layout-renderer",function(){if(oYZ!==void 0)return oYZ;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return oYZ=
f},{mode:_.WK("kevlar_poly_si_batch_j070")?1:2});var GRn;var eu=function(){var f=_.K.apply(this,arguments)||this;f.noBottomMargin=!1;f.overlayDensity=0;f.typographyBump=!1;return f};
_.e(eu,_.K);_.R=eu.prototype;
_.R.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",
noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]"}}}}}};
_.R.ready=function(){var f=this;jAs(function(){f.isAttached&&f.adSlotMetadata&&jCa(Wc(),f.adSlotMetadata)})};
_.R.attached=function(){if(this.adSlotMetadata){var f;if(this.adSlotMetadata===((f=this.data)==null?void 0:f.adSlotMetadata))dDH(Wc(),this.adSlotMetadata);else{var H;_.pb(Error("Mh`"+this.adSlotMetadata+"`"+((H=this.data)==null?void 0:H.adSlotMetadata)))}}};
_.R.detached=function(){this.adSlotMetadata&&jCa(Wc(),this.adSlotMetadata)};
_.R.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.R.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&jCa(Wc(),this.adSlotMetadata),dDH(Wc(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.H7.Object.defineProperties(eu.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var f,H,v=_.U((f=this.data)==null?void 0:(H=f.fulfillmentContent)==null?void 0:H.fulfilledLayout,_.Dtn),t;return(f=(t=_.U(v==null?void 0:v.renderingContent,KPb))==null?void 0:t.layout)?f.toLowerCase().replace(/_/g,"-"):""}}});
eu.prototype.onAdSlotMetadataChanged=eu.prototype.onAdSlotMetadataChanged;eu.prototype.onTypographyBumpChanged=eu.prototype.onTypographyBumpChanged;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],eu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],eu.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],eu.prototype,"rendererBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],eu.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],eu.prototype,"noBottomMargin",void 0);_.E([_.F(),_.N("design:type",Object)],eu.prototype,"overlayDensity",void 0);_.E([_.F(),_.N("design:type",Object)],eu.prototype,"typographyBump",void 0);_.E([_.lJ("ytd-in-feed-ad-layout-renderer"),_.N("design:type",HTMLElement)],eu.prototype,"inFeedAdLayoutRenderer",void 0);
_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",String),_.N("design:paramtypes",[])],eu.prototype,"layout",null);_.E([_.Zw("typographyBump"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],eu.prototype,"onTypographyBumpChanged",null);_.E([_.Zw("data.adSlotMetadata"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],eu.prototype,"onAdSlotMetadataChanged",null);
_.E([_.u({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],eu);
_.G(eu,"ytd-ad-slot-renderer",function(){if(GRn!==void 0)return GRn;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return GRn=f},{mode:_.WK("kevlar_poly_si_batch_j077")?
1:2});var C_h;var Lk=function(){return _.K.apply(this,arguments)||this};
_.e(Lk,_.K);_.R=Lk.prototype;_.R.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"}}}};
_.R.maybeComputeHref=function(){return null};
_.R.onTap=function(){};
_.R.onThumbnailContainerClick=function(f){this.onClick(f)};
_.R.onClick=function(f){var H,v=(H=this.data)==null?void 0:H.navigationEndpoint;v&&_.U(v,_.wI)&&(this.ytSparklesClickLocationBehavior.handleClick(v,f,!1),f.stopPropagation())};
_.R.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var f=_.V(this.data.impressionUrls),H=f.next();!H.done;H=f.next())H=H.value,su3(H,JV5(H));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",Lk.JSC$15550_DEFAULT_CLICK_LOCATION_BEHAVIOR,Lk.JSC$15550_CLICK_LOCATION_ID_MAP);this.thumbnail&&(f=this.thumbnail.getElementsByTagName("a"),f.length>0&&(f=f.namedItem("thumbnail"))&&
f.removeAttribute("href"))}};
_.R.attached=function(){var f=this;_.J("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&f.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.R.detached=function(){_.J("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.H7.Object.defineProperties(Lk.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.J("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.J("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
Lk.prototype.dataChanged=Lk.prototype.dataChanged;Lk.prototype.onTap=Lk.prototype.onTap;Lk.JSC$15550_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
Lk.JSC$15550_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Lk.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Lk.prototype,"ytRendererBehavior",void 0);_.E([_.B(QW),_.N("design:type",Object)],Lk.prototype,"ytdActiveViewBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Lk.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],Lk.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.M2.YtSparklesClickLocationBehavior),_.N("design:type",Object)],Lk.prototype,"ytSparklesClickLocationBehavior",void 0);
_.E([_.F({selector:_.Qn}),_.N("design:type",Object)],Lk.prototype,"isGridViewEnabled",void 0);_.E([_.z("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Lk.prototype,"watchFeedBigThumbs",null);_.E([_.z("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.N("design:type",String),_.N("design:paramtypes",[])],Lk.prototype,"thumbnailWidth",null);_.E([_.F(),_.N("design:type",Object)],Lk.prototype,"data",void 0);
_.E([_.lJ("ytd-thumbnail"),_.N("design:type",HTMLElement)],Lk.prototype,"thumbnail",void 0);_.E([_.sE("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Lk.prototype,"onTap",null);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Lk.prototype,"dataChanged",null);_.E([_.u({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],Lk);
_.G(Lk,"ytd-compact-promoted-video-renderer",function(){if(C_h!==void 0)return C_h;var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return C_h=f},{mode:1});var EYh;_.DE("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var xC=function(){return _.K.apply(this,arguments)||this};
_.e(xC,_.K);xC.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],xC.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],xC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],xC.prototype,"data",void 0);_.E([_.u({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],xC);
_.G(xC,"ytd-search-pyv-renderer",function(){if(EYh!==void 0)return EYh;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return EYh=f},{mode:1});var NxC;_.DE("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var Bc=function(){var f=_.K.apply(this,arguments)||this;f.roundedContainer=!0;f.JSC$15558_handleOpenPostCommentDialogActionAfterStamp=!1;f.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return f};
_.e(Bc,_.K);_.R=Bc.prototype;
_.R.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}}};
_.R.onStampFinished=function(){this.JSC$15558_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.R.handleSignalActionOpenPostCommentDialogAction=function(){var f=_.mF(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");f?f.openDialog():this.JSC$15558_handleOpenPostCommentDialogActionAfterStamp=!0};
_.R.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.R.computeHideBorder=function(){return this.isInEngagementPanel};
_.R.computeIsCompact=function(){return this.isInEngagementPanel};
_.R.computeUsesCompactLockup=function(f){return f==="BACKSTAGE_SURFACE_TYPE_HOME"||f==="BACKSTAGE_SURFACE_TYPE_SEARCH"||f==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||f==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||f==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||f==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.R.computeUsesFullLockup=function(){var f,H=(f=this.data)==null?void 0:f.post,v;f=(v=_.U(H,NQ9))==null?void 0:v.surface;var t;v=(t=_.U(H,AhM))==null?void 0:t.originalPost;var M;if(t=f||((M=_.U(v,NQ9))==null?void 0:M.surface))return!this.computeUsesCompactLockup(t)&&this.useUpdatedRepostUi;var h;return((h=_.U(H,AhM))==null?void 0:h.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.H7.Object.defineProperties(Bc.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var f,H;return((H=_.U((f=this.data)==null?void 0:f.post,NQ9))==null?void 0:H.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.useUpdatedRepostUi}}});
Bc.prototype.onYtCommentModerationPanelEmpty=Bc.prototype.onYtCommentModerationPanelEmpty;Bc.prototype.onStampFinished=Bc.prototype.onStampFinished;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Bc.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Bc.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Bc.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],Bc.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Bc.prototype,"roundedContainer",void 0);_.E([_.F({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Bc.prototype,"hideBorder",void 0);_.E([_.F({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Bc.prototype,"isCompact",void 0);
_.E([_.F({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Bc.prototype,"usesFullLockup",void 0);_.E([_.sE("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Bc.prototype,"onStampFinished",null);
_.E([_.sE("ytd-comment-moderation-panel-empty"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Bc.prototype,"onYtCommentModerationPanelEmpty",null);_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Bc.prototype,"isInEngagementPanel",null);_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Bc.prototype,"useUpdatedRepostUi",null);
_.E([_.u({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],Bc);
_.G(Bc,"ytd-backstage-post-thread-renderer",function(){if(NxC!==void 0)return NxC;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return NxC=f},{mode:1});var cwo;var zq=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.e(zq,_.K);zq.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
zq.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var f=this.data.thumbnail.thumbnails;this.isDarkTheme&&(f=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(f=_.YK(f,24,void 0,"height"))?f:void 0}};
zq.prototype.onDarkModeToggledAction=function(f){this.isDarkTheme=f};
zq.prototype.computeHasText=function(){var f;return!((f=this.data)==null||!f.text)};
_.H7.Object.defineProperties(zq.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.Co(this.bannerImageUrl))+'");'}}});
zq.prototype.computeHasText=zq.prototype.computeHasText;zq.prototype.computeBannerImageUrl=zq.prototype.computeBannerImageUrl;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],zq.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],zq.prototype,"actionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],zq.prototype,"ytRendererBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],zq.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Boolean)],zq.prototype,"isDarkTheme",void 0);_.E([_.F(),_.N("design:type",String)],zq.prototype,"bannerImageUrl",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.N("design:type",Boolean)],zq.prototype,"hasText",void 0);_.E([_.Zw("data","isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zq.prototype,"computeBannerImageUrl",null);
_.E([_.Zw("data.text"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zq.prototype,"computeHasText",null);_.E([_.z("bannerImageUrl"),_.N("design:type",Object),_.N("design:paramtypes",[])],zq.prototype,"bannerStyle",null);_.E([_.u({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],zq);
_.G(zq,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(cwo!==void 0)return cwo;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return cwo=f},{mode:1});var XFr;var nk=function(){return _.K.apply(this,arguments)||this};
_.e(nk,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],nk.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],nk.prototype,"data",void 0);_.E([_.u({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],nk);
_.G(nk,"ytd-backstage-zero-state-renderer",function(){if(XFr!==void 0)return XFr;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return XFr=f},{mode:1});var Awv;var pk=function(){return _.K.apply(this,arguments)||this};
_.e(pk,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],pk.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],pk.prototype,"data",void 0);_.E([_.F({computed:"computeIcon_(data.icon)"}),_.N("design:type",String)],pk.prototype,"icon",void 0);_.E([_.u({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],pk);
_.G(pk,"ytd-post-filter-zero-state-renderer",function(){if(Awv!==void 0)return Awv;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Awv=f},{mode:1});var bCT;var iCh={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},Q7=function(){return _.K.apply(this,arguments)||this};
_.e(Q7,_.K);Q7.prototype.configureRendererStamper=function(){return iCh};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Q7.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Q7.prototype,"rendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Q7.prototype,"data",void 0);_.E([_.F({computed:"computeIcon_(data.icon)"}),_.N("design:type",String)],Q7.prototype,"icon",void 0);_.E([_.u({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],Q7);
_.G(Q7,"ytd-post-scheduling-zero-state-renderer",function(){if(bCT!==void 0)return bCT;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return bCT=f},{mode:1});var kR_;var ua=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return f};
_.e(ua,_.K);ua.prototype.onTabsActivate=function(f){this.data&&this.data.tabs&&_.YE(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[f.detail.selected].navigationEndpoint})};
ua.prototype.shouldShowTotalCount=function(f){return f&&f.totalCount!==void 0};
ua.prototype.handleUpdatePostsTotalCountAction=function(f){var H=this.get(["data.tabs",1,"totalCount"]),v=this.get("updatePostsTotalCountAction.updateType",f);f=this.get("updatePostsTotalCountAction.number",f);H!==void 0&&v!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&f&&(v==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(H)+f):v==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(H)-f))};
_.H7.Object.defineProperties(ua.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var f=0,H=this.data.tabs.length;f<H;f++)if(this.data.tabs[f].selected)return f;return 0}}});
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],ua.prototype,"actionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ua.prototype,"rendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],ua.prototype,"data",void 0);_.E([_.z("data.tabs"),_.N("design:type",Number),_.N("design:paramtypes",[])],ua.prototype,"selected",null);_.E([_.u({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],ua);
_.G(ua,"ytd-post-stream-filter-renderer",function(){if(kR_!==void 0)return kR_;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return kR_=f},{mode:1});var Txr;var a$=function(){return _.K.apply(this,arguments)||this};
_.e(a$,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],a$.prototype,"kevlarBehaviors",void 0);_.E([_.F(),_.N("design:type",Object)],a$.prototype,"data",void 0);_.E([_.u({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],a$);
_.G(a$,"ytd-channel-age-gate-renderer",function(){if(Txr!==void 0)return Txr;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Txr=f},{mode:1});var wFo;_.DE("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var Pc=function(){var f=_.K.apply(this,arguments)||this;f.data=null;return f};
_.e(Pc,_.K);Pc.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.H7.Object.defineProperties(Pc.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var f,H,v;return((f=this.data)==null?0:(H=f.title)==null?0:(v=H.runs)==null?0:v.length)?147:160}}});
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Pc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Pc.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],Pc.prototype,"imageSizePx",null);_.E([_.u({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],Pc);
_.G(Pc,"ytd-channel-owner-empty-state-renderer",function(){if(wFo!==void 0)return wFo;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return wFo=f},{mode:1});var qY_;var fXg;var Gq=function(){var f=_.K.apply(this,arguments)||this;f.boundSubmitSearch=function(){f.submitSearch()};
f.boundClearSearch=function(){f.clearSearch()};
return f};
_.e(Gq,_.K);_.R=Gq.prototype;_.R.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]]"}}}}}};
_.R.toggleClearButton=function(){this.hideClearButton=Woe||!this.input.value};
_.R.submitOnEnterKeyUp=function(f){f.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.R.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.R.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.R.submit=function(){_.YE(this.hostElement,"search-query-changed",this.input.value)};
Gq.prototype.toggleClearButton=Gq.prototype.toggleClearButton;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Gq.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Gq.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Gq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Gq.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Gq.prototype,"hideClearButton",void 0);_.E([_.F(),_.N("design:type",Object)],Gq.prototype,"boundSubmitSearch",void 0);_.E([_.F(),_.N("design:type",Object)],Gq.prototype,"boundClearSearch",void 0);_.E([_.lJ("#input"),_.N("design:type",Object)],Gq.prototype,"input",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Gq.prototype,"toggleClearButton",null);
_.E([_.u({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],Gq);
_.G(Gq,"ytd-channel-switcher-search-box-renderer",function(){if(fXg!==void 0)return fXg;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return fXg=f},{mode:1});var HwH;var Ck=function(){var f=_.K.apply(this,arguments)||this;f.boundSubmit=function(){f.submit()};
return f};
_.e(Ck,_.K);_.R=Ck.prototype;_.R.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"}}}}};
_.R.ready=function(){var f=this;this.form.addEventListener("submit",function(H){return f.onSubmit(H)})};
_.R.onSubmit=function(f){f.preventDefault();return!1};
_.R.toggleClearButton=function(){this.hideClearButton=Woe||!this.input.value};
_.R.submitOnEnterKeyUp=function(f){f.keyCode===13&&this.submit()};
_.R.submit=function(){var f=this.data.endpoint,H=(0,_.QA.unsafeClone)(f);_.U(H,_.ec)?_.U(H,_.ec).query=this.input.value:_.U(H,_.LG)&&(_.U(H,_.LG).query=this.input.value);var v=_.U(H.commandMetadata,_.jG);(v==null?0:v.url)?(v.url=_.Pk(v.url,"query",this.input.value),_.YE(this.hostElement,"yt-navigate",{endpoint:H})):_.U(H,LPo)?(_.U(H,LPo).channelSwitcherQuery=this.input.value,_.t8().resolve(_.MJ).resolveCommand(H,{form:{element:this.hostElement}})):(f=Error("Nh`"+JSON.stringify(f)),_.oO(f))};
_.R.getUrl=function(f){return this.get("commandMetadata.webCommandMetadata.url",f)};
Ck.prototype.toggleClearButton=Ck.prototype.toggleClearButton;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Ck.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Ck.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Ck.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ck.prototype,"hideClearButton",void 0);
_.E([_.F(),_.N("design:type",Object)],Ck.prototype,"boundSubmit",void 0);_.E([_.lJ("#form"),_.N("design:type",HTMLFormElement)],Ck.prototype,"form",void 0);_.E([_.lJ("#input"),_.N("design:type",Object)],Ck.prototype,"input",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ck.prototype,"toggleClearButton",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],Ck);
_.G(Ck,"ytd-search-box-renderer",function(){if(HwH!==void 0)return HwH;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return HwH=f},{mode:2});var EJ=function(){var f=_.K.apply(this,arguments)||this;f.showSearchBox=!0;return f};
_.e(EJ,_.K);EJ.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],EJ.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],EJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],EJ.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],EJ.prototype,"showSearchBox",void 0);_.E([_.u({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],EJ);
_.G(EJ,"ytd-channel-switcher-header-renderer",function(){if(qY_!==void 0)return qY_;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return qY_=f},{mode:1});var vBg;var ttb;var NU=function(){var f=_.K.apply(this,arguments)||this;f.isDisplayed=!0;return f};
_.e(NU,_.K);_.R=NU.prototype;_.R.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R.dataChanged=function(){this.isDisplayed=!0};
_.R.computeType=function(f){return f||"UNKNOWN"};
_.R.onYtServiceRequestCompleted=function(f){f.stopPropagation();this.isDisplayed=!1};
_.R.onClose=function(){this.isDisplayed=!1};
NU.prototype.onYtServiceRequestCompleted=NU.prototype.onYtServiceRequestCompleted;NU.prototype.dataChanged=NU.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],NU.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],NU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],NU.prototype,"data",void 0);
_.E([_.F({computed:"computeType(data.type)",reflectToAttribute:!0}),_.N("design:type",String)],NU.prototype,"type",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],NU.prototype,"isDisplayed",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NU.prototype,"dataChanged",null);
_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],NU.prototype,"onYtServiceRequestCompleted",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],NU);
_.G(NU,"ytd-alert-with-button-renderer",function(){if(ttb!==void 0)return ttb;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return ttb=f},{mode:1});var cc=function(){var f=_.K.apply(this,arguments)||this;f.noResult=!1;f.enableAlertBanner=!1;f.dismissedAlertBanner=!1;f.hideCreateChannelButton=!1;f.boundDismissAlertBanner=function(){f.dismissAlertBanner()};
f.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return f};
_.e(cc,_.K);_.R=cc.prototype;_.R.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.R.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.R.updateChannelSwitcherAction=function(f){var H;f=(H=_.U(f,jvZ))==null?void 0:H.page;_.U(f,d7C)!==void 0&&(this.data=_.U(f,d7C))};
_.R.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]]"}}}}}};
_.R.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.R.searchQueryChanged=function(f,H){if(this.data&&this.data.contents&&this.data.contents.length){f=[];var v=[];this.hideCreateChannelButton=this.noResult=!1;for(var t=document.querySelectorAll("ytd-account-item-renderer"),M=_.V(t),h=M.next();!h.done;h=M.next())h=h.value,v.push(h),h.style.display="block";this.resetRightBorder(v);if(H){this.hideCreateChannelButton=!0;for(v=1;v<this.data.contents.length;v++)if(h=this.data.contents[v],_.U(h,lDC)){var y=void 0,m=void 0;M=(y=_.U(h,lDC))==null?void 0:(m=
y.accountName)==null?void 0:m.simpleText;m=y=void 0;h=(y=_.U(h,lDC))==null?void 0:(m=y.channelHandle)==null?void 0:m.simpleText;(y=t[v-1])&&M&&_.WR(M,H)?f.push(y):_.J("enable_handle_search_on_channel_switcher")&&y&&h&&_.WR(h.toString(),H.toString())?f.push(y):y.style.display="none"}f.length===0&&(this.noResult=!0);this.resetRightBorder(f)}}};
_.R.resetRightBorder=function(f){for(var H=0;H<f.length;H++)f[H].style.borderRight=!this.hideCreateChannelButton&&(H+2)%3===0||this.hideCreateChannelButton&&(H+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.R.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.R.setShowSearchBox=function(f){if(f&&f.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var H=0;H<f.contents.length;H++)_.U(f.contents[H],_.bw)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.R.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.H7.Object.defineProperties(cc.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null?0:f.contents)}}});
cc.prototype.onContinuationItemsUpdated=cc.prototype.onContinuationItemsUpdated;cc.prototype.searchQueryChanged=cc.prototype.searchQueryChanged;cc.prototype.onDataChanged=cc.prototype.onDataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],cc.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],cc.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],cc.prototype,"actionHandlerBehavior",void 0);_.E([_.B(_.E_),_.N("design:type",Object)],cc.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],cc.prototype,"data",void 0);_.E([_.lJ("ytd-channel-switcher-header-renderer"),_.N("design:type",Object)],cc.prototype,"channelSwitcherHeaderRenderer",void 0);_.E([_.F(),_.N("design:type",Object)],cc.prototype,"noResult",void 0);
_.E([_.F(),_.N("design:type",Object)],cc.prototype,"enableAlertBanner",void 0);_.E([_.F(),_.N("design:type",Object)],cc.prototype,"dismissedAlertBanner",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],cc.prototype,"hideCreateChannelButton",void 0);_.E([_.z("data.contents"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],cc.prototype,"isLoading",null);_.E([_.F(),_.N("design:type",Object)],cc.prototype,"boundDismissAlertBanner",void 0);
_.E([_.F({computed:"computeButtonOverride()"}),_.N("design:type",Object)],cc.prototype,"buttonOverride",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cc.prototype,"onDataChanged",null);_.E([_.sE("search-query-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,String]),_.N("design:returntype")],cc.prototype,"searchQueryChanged",null);
_.E([_.sE("yt-next-continuation-data-updated"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],cc.prototype,"onContinuationItemsUpdated",null);_.E([_.u({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],cc);
_.G(cc,"ytd-channel-switcher-page-renderer",function(){if(vBg!==void 0)return vBg;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return vBg=f},{mode:1});var Mth;var ht9;var X$=function(){var f=_.K.apply(this,arguments)||this;f.images=[];f.selectedImageIndex=0;return f};
_.e(X$,_.K);_.R=X$.prototype;
_.R.ready=function(){_.r9(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.r9(this.JSC$15603_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.r9(this.JSC$15603_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.r9(this.JSC$15603_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.R.onThumbnailClick=function(f){if(f=f.event_.detail)this.selectedImageIndex=this.images.indexOf(f)};
_.R.updateImageThumbnails=function(f){f=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:f.event_.detail});this.images.splice(this.selectedImageIndex,1,f);this.images=[].concat(_.pS(this.images))};
_.R.cancelImageRepositions=function(){this.selectedImageIndex=0;_.YE(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.R.saveImageRepositions=function(){this.selectedImageIndex=0;_.YE(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.H7.Object.defineProperties(X$.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var f=this;return(this.images||[]).map(function(H,v){return{image:H,selected:v===f.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],X$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.lJ("ytd-backstage-image-preview-renderer"),_.N("design:type",Object)],X$.prototype,"JSC$15603_imagePreviewContainer",void 0);_.E([_.lJ(".thumbnail-images-container"),_.N("design:type",HTMLElement)],X$.prototype,"thumbnailImagesContainer",void 0);_.E([_.F(),_.N("design:type",Array)],X$.prototype,"images",void 0);
_.E([_.F(),_.N("design:type",Object)],X$.prototype,"repositionInstructions",void 0);_.E([_.F(),_.N("design:type",Object)],X$.prototype,"selectedImageIndex",void 0);_.E([_.z("images","selectedImageIndex"),_.N("design:type",Array),_.N("design:paramtypes",[])],X$.prototype,"thumbnailRendererDatas",null);_.E([_.z("images","selectedImageIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],X$.prototype,"selectedImageData",null);
_.E([_.u({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],X$);
_.G(X$,"ytd-backstage-multi-image-reposition-renderer",function(){if(ht9!==void 0)return ht9;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return ht9=f},{mode:1});var A1=function(f,H){_.Sg.call(this);this.uploadUrl=f;this.channelId=H;this.imagesUploadData=[]};
_.e(A1,_.Sg);A1.prototype.getAllUploadStatuses=function(){var f=this,H,v,t;return _.Y(function(M){if(M.nextAddress==1)return M.yield(Rta(f),2);H=M.yieldResult;v=H.get("succeed");t=H.get("failed");return M.return(v.concat(t))})};
var yUH=function(f){var H,v;return _.Y(function(t){if(t.nextAddress==1)return t.yield(Rta(f),2);H=t.yieldResult;v=H.get("failed");v.length>0&&VtT(f,v);return t.return(f.getAllUploadStatuses())})},Rta=function(f){var H,v,t,M,h,y,m;
return _.Y(function(W){if(W.nextAddress==1)return H=new Map,W.yield(Promise.allSettled(f.imagesUploadData.map(function(I){return I.uploadPromise})),2);
v=W.yieldResult;t=[];M=_.V(v);for(h=M.next();!h.done;h=M.next())y=h.value,y.status==="fulfilled"&&t.push(y.value);m=f.imagesUploadData.map(function(I){return I.image}).filter(function(I){return t.every(function(S){return S.id!==I.id})});
H.set("succeed",t);H.set("failed",m);return W.return(H)})},VtT=function(f,H){H=_.V(H);
for(var v=H.next();!v.done;v=H.next()){var t=f;v=v.value;Yav(t,v.id)>=0&&t.cancel(v.id);var M=new mhb(v),h=_.mtC(t.uploadUrl,{"X-YouTube-ChannelId":t.channelId},v.imageBlob);M.transfer=h;M.uploadPromise=$ha(h,v);t.imagesUploadData.push(M);h.run()}};
A1.prototype.cancel=function(f){var H=Yav(this,f);H!==-1&&((H=this.imagesUploadData[H].transfer)&&H.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(v){return v.image.id!==f}))};
var Yav=function(f,H){return f.imagesUploadData.findIndex(function(v){return v.image.id===H})},$ha=function(f,H){return new Promise(function(v,t){f.listen("l",function(){var M=f.getResponseText();
M?(M=JSON.parse(M).encryptedBlobId,H.encryptedBlobId=M,v(H)):t("upload failed")});
f.listen("n",function(){t("upload failed")})})},mhb=function(f){this.image=f};var vt3=function(f,H,v,t,M){this.id=f;this.imageBlob=H;this.localImageSrc=v;this.naturalWidth=t;this.naturalHeight=M;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 W0h=[".jpeg",".jpg",".png"],ba=function(){var f=_.K.apply(this,arguments)||this;f.showImagesPreview=!1;f.pollOptions=[];f.errorMessage="";f.optionPlaceholderText="";f.optionDefaultText="";f.JSC$15614_imageId=0;f.maxFileSizeMb=0;f.maxAspectRatio=0;f.invalidFileSizeError="";f.invalidAspectRatioError="";f.invalidFileTypeError="";f.imageSelector=new YW(null,"single_file",W0h);return f};
_.e(ba,_.K);_.R=ba.prototype;_.R.ready=function(){_.r9(this.imageSelector,"j",this.onImageSelect,!1,this);_.r9(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.r9(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.R.dataChanged=function(){var f,H,v=_.U((f=this.data)==null?void 0:(H=f.cellTemplate)==null?void 0:H.onEmptyCellTap,l6n);if(v&&v.uploadUrl&&v.channelId){var t;this.maxFileSizeMb=((t=v.imageValidationInfo)==null?void 0:t.maxFileSizeMb)||0;var M;this.maxAspectRatio=((M=v.imageValidationInfo)==null?void 0:M.allowedMaxAspectRatio)||0;var h;this.invalidFileSizeError=this.getSimpleString((h=this.data)==null?void 0:h.invalidFileSizeError);var y;this.invalidAspectRatioError=this.getSimpleString((y=this.data)==
null?void 0:y.invalidAspectRatioError);var m;this.invalidFileTypeError=this.getSimpleString((m=this.data)==null?void 0:m.invalidFileTypeError);this.uploadManager=new A1(v.uploadUrl,v.channelId)}};
_.R.onEditorInfoChange=function(){this.optionPlaceholderText=_.fG(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.fG(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.R.observeAddImageError=function(){this.errorMessage!==""&&_.YE(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.R.onPollOptionsChange=function(){for(var f=!1,H=[],v=0;v<this.pollOptions.length;v++){var t=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(v+1);this.pollOptions[v].placeholderText!==t?(f=!0,H.push(Object.assign({},this.pollOptions[v],{placeholderText:t}))):H.push(this.pollOptions[v])}f&&(this.pollOptions=H);this.isValid()?_.YE(this.hostElement,"yt-commentbox-post-enable"):_.YE(this.hostElement,"yt-commentbox-post-disable")};
_.R.createPollOptions=function(f){var H=[],v;f=(v=f==null?void 0:f.minPollOptions)!=null?v:0;for(v=0;v<f;v++)H.push(this.createPollOption());return H};
_.R.onImageSelect=function(f){var H=this,v,t,M,h,y,m;return _.Y(function(W){if(W.nextAddress==1){if(H.selectedImageIndex===void 0)return W.jumpTo(0);v=f.files[0];H.errorMessage="";t=H.validateImage(v);if(t!=="")return H.errorMessage=t,W.return();M=new Ac(H.maxAspectRatio,!1,!0);return W.yield(M.transform(v),3)}if(W.nextAddress!=4)return h=W.yieldResult,h.transformedData?h.invalidAspectRatio?(H.errorMessage=H.invalidAspectRatioError,W.return()):W.yield(tMe(H.JSC$15614_imageId,f.files[0],h.transformedData),
4):(H.errorMessage=H.invalidFileTypeError,W.return());y=W.yieldResult;H.JSC$15614_imageId++;VtT(H.uploadManager,[y]);m=Object.assign({},H.pollOptions[H.selectedImageIndex],{image:y});H.pollOptions.splice(H.selectedImageIndex,1,m);H.refreshPollOptions();_.YE(H.hostElement,"yt-backstage-poll-image-select");_.Bj(W)})};
_.R.validateImage=function(f){return f.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.R.refreshPollOptions=function(){this.pollOptions=[].concat(_.pS(this.pollOptions))};
_.R.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.pS(this.pollOptions),[this.createPollOption()]))};
_.R.onRemovePollOption=function(f){var H=this.pollOptions[f.model.index];H&&H.image&&this.uploadManager.cancel(H.image.id);this.pollOptions.splice(f.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.YE(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.R.onTextInput=function(){this.refreshPollOptions()};
_.R.onImageButtonClick=function(f){this.selectedImageIndex=f.model.index;this.imageSelector.click()};
_.R.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.R.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.R.saveImageRepositions=function(f){f=f.event_.detail;for(var H=0,v=[],t=_.V(this.pollOptions),M=t.next();!M.done;M=t.next())M=M.value,M.image!==void 0?(M=Object.assign({},M,{image:f[H]}),v.push(M),H++):v.push(M);this.showImagesPreview=!1;this.pollOptions=[].concat(_.pS(v))};
_.R.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 f=0,H=_.V(this.pollOptions),v=H.next();!v.done;v=H.next())if(v=v.value,v.optionText.trim()!==""||v.image!==void 0){if(!v.image||this.hasCustomOptionText&&v.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;f++}return f>=Number(this.editorInfo.minPollOptions)};
_.R.getAllUploadStatuses=function(){var f=this,H,v,t,M;return _.Y(function(h){if(h.nextAddress==1)return h.yield(f.uploadManager.getAllUploadStatuses(),2);H=h.yieldResult;v=_.V(H);for(t=v.next();!t.done;t=v.next())if(M=t.value,M.encryptedBlobId===void 0)return h.return(yUH(f.uploadManager));return h.return(H)})};
_.R.getPostCreateOptions=function(){for(var f=[],H=_.V(this.pollOptions),v=H.next();!v.done;v=H.next())v=v.value,v.image!==void 0&&f.push({text:this.hasCustomOptionText?v.optionText:v.placeholderText,image:v.image});return f};
_.R.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.R.createButtonRenderer=function(f,H){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:f,accessibilityData:{accessibilityData:{label:this.getSimpleString(f)}},isDisabled:H}};
_.R.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.R.computeThumbnailRendererData=function(f){return f?{image:f,selected:!1}:void 0};
_.R.getSimpleString=function(f){return _.fG(f)};
_.R.updateOptionTextFromBinding=function(f){if(f.target){var H=Array.from(_.mF(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(f.target);if(H>=0){var v;this.pollOptions[H].optionText=(v=f.detail.value)!=null?v:""}}};
_.H7.Object.defineProperties(ba.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var f,H;return this.pollOptions.length<((H=(f=this.editorInfo)==null?void 0:f.maxPollOptions)!=null?H:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(f){return f.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(f){return f.image}).map(function(f){return f.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(f){return f.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var f,H=(f=this.data)==null?void 0:f.addOptionButtonText;return H?this.createButtonRenderer(H,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var f,H=(f=this.data)==null?void 0:f.repositionImagesButtonLabel;return H?this.createButtonRenderer(H,!this.hasImages):void 0}}});
ba.prototype.onPollOptionsChange=ba.prototype.onPollOptionsChange;ba.prototype.observeAddImageError=ba.prototype.observeAddImageError;ba.prototype.onEditorInfoChange=ba.prototype.onEditorInfoChange;ba.prototype.dataChanged=ba.prototype.dataChanged;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],ba.prototype,"ytRendererstamperBehavior",void 0);_.E([_.lJ("ytd-backstage-multi-image-reposition-renderer"),_.N("design:type",Object)],ba.prototype,"imageRepositionContainer",void 0);
_.E([_.F(),_.N("design:type",Object)],ba.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],ba.prototype,"editorInfo",void 0);_.E([_.F(),_.N("design:type",A1)],ba.prototype,"uploadManager",void 0);_.E([_.F(),_.N("design:type",Object)],ba.prototype,"showImagesPreview",void 0);_.E([_.F(),_.N("design:type",Array)],ba.prototype,"pollOptions",void 0);_.E([_.F(),_.N("design:type",Object)],ba.prototype,"errorMessage",void 0);
_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ba.prototype,"dataChanged",null);_.E([_.xV("editorInfo"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ba.prototype,"onEditorInfoChange",null);_.E([_.Zw("errorMessage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ba.prototype,"observeAddImageError",null);
_.E([_.xV("pollOptions"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ba.prototype,"onPollOptionsChange",null);_.E([_.z("pollOptions","editorInfo"),_.N("design:type",Object),_.N("design:paramtypes",[])],ba.prototype,"isAllowedToAddOption",null);_.E([_.z("pollOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],ba.prototype,"hasImages",null);
_.E([_.z("pollOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],ba.prototype,"imagesToReposition",null);_.E([_.z("pollOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],ba.prototype,"hasCustomOptionText",null);_.E([_.z("data","isAllowedToAddOption"),_.N("design:type",Object),_.N("design:paramtypes",[])],ba.prototype,"addOptionButton",null);_.E([_.z("data","hasImages"),_.N("design:type",Object),_.N("design:paramtypes",[])],ba.prototype,"repositionImagesButton",null);
_.E([_.u({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],ba);
_.G(ba,"ytd-backstage-image-poll-editor-renderer",function(){if(Mth!==void 0)return Mth;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Mth=f},{mode:2});var Owh={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 gBh;var ia=function(){var f=_.K.apply(this,arguments)||this;f.a11yConfig=Owh;f.imageDisplayOffsetTop=0;f.imageDisplayOffsetLeft=0;f.pickerDisplayOffsetTop=0;f.pickerDisplayOffsetLeft=0;f.showPreviewContainer=!0;f.startPicker=!1;f.repositionOptional=!1;f.editOnlyMode=!1;f.savedImageDisplayOffsetTop=0;f.savedImageDisplayOffsetLeft=0;return f};
_.e(ia,_.K);_.R=ia.prototype;_.R.created=function(){_.p3.requestAvailability()};
_.R.ready=function(){};
_.R.onArrowKeysDown=function(f){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){f.detail.keyboardEvent.preventDefault();var H=0,v=0,t="";switch(f.detail.keyboardEvent.key){case "ArrowUp":MMB(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?t=this.a11yConfig.reachBottomOfImage:H=this.imageHeight*.05*-1;break;case "ArrowDown":MMB(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?t=this.a11yConfig.reachTopOfImage:
H=this.imageHeight*.05;break;case "ArrowLeft":MMB(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?t=this.a11yConfig.reachRightOfImage:v=this.imageWidth*.05*-1;break;case "ArrowRight":MMB(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?t=this.a11yConfig.reachLeftOfImage:v=this.imageWidth*.05}t&&_.ZC(t)&&_.YE(this.hostElement,"iron-announce",{text:_.ZC(t)});if(v||H)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+H)),f=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),f=_.ZC(this.a11yConfig.imageVerticalPosition,{x_percent:""+f,y_percent:""+(100-f)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+v)),f=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),f=_.ZC(this.a11yConfig.imageHorizontalPosition,{x_percent:""+f,y_percent:""+(100-f)})),f&&_.YE(this.hostElement,"iron-announce",{text:f})}};
_.R.getPreviewPosition=function(f,H,v,t){return Math.round(100*(f+H*.5-v)/t)};
_.R.calculateDisplayPosition=function(){var f=this.imageData.naturalWidth,H=this.imageData.naturalHeight;this.displayScale=Math.max(200/f,200/H);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var v=f*this.displayScale*this.imageData.previewCoordinates.left,t=H*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=H>f?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-v;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=f>H?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-t;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=f*this.displayScale;this.imageHeight=H*this.displayScale};
_.R.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.R.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.R.getSignedPosition=function(f,H,v){return H==="X"&&_.a8("HTML_DIR")==="rtl"?v==="-"?f+"px":f*-1+"px":v==="-"?f*-1+"px":f+"px"};
_.R.pickerMove=function(f){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var H=this.pickerOffsetX-f.clientX,v=this.pickerOffsetY-f.clientY;this.pickerOffsetX=f.clientX;this.pickerOffsetY=f.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
v)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-H))}};
_.R.pickerMoveStart=function(f){this.startPicker=!0;this.pickerOffsetX=f.clientX;this.pickerOffsetY=f.clientY};
_.R.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var f=this.generateCropPreview();f&&_.YE(this.hostElement,"ytd-backstage-image-preview-coordinates-update",f)};
_.R.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.YE(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.R.deleteImage=function(){_.YE(this.hostElement,"ytd-backstage-image-preview-delete")};
_.R.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.R.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var f=this.generateCropPreview();f&&_.YE(this.hostElement,"ytd-backstage-image-preview-coordinates-save",f)};
_.R.getPreviewOffset=function(f,H,v){return H&&f?(v==="X"&&_.a8("HTML_DIR")==="rtl"?300/H*f:300/H*f*-1)+"px":"0px"};
_.R.getSimpleText=function(f){return f?_.fG(f):""};
_.R.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}};
_.H7.Object.defineProperties(ia.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var f=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.ZC(this.a11yConfig.imageVerticalPosition,{x_percent:""+f,y_percent:""+(100-f)})+"\n"+_.ZC(this.a11yConfig.verticalRepositionInstruction)}f=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.ZC(this.a11yConfig.imageHorizontalPosition,{x_percent:""+f,y_percent:""+(100-f)})+"\n"+_.ZC(this.a11yConfig.horizontalRepositionInstruction)}},
pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}},
imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}},
editButton:{configurable:!0,enumerable:!0,get:function(){var f,H,v=(f=this.instruction)==null?void 0:(H=f.previewInstruction)==null?void 0:H.editButtonLabel;return v?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:v,accessibilityData:{accessibilityData:{label:this.getSimpleText(v)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var f,H,v,t,M=this.editOnlyMode?(f=this.instruction)==null?void 0:(H=f.editInstruction)==null?void 0:H.saveImagesButtonLabel:(v=this.instruction)==null?void 0:(t=v.editInstruction)==null?void 0:t.saveButtonLabel;return M?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:M,accessibilityData:{accessibilityData:{label:this.getSimpleText(M)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var f,H,v=(f=this.instruction)==null?void 0:(H=f.previewInstruction)==null?void 0:H.deleteButtonLabel;return v?{size:"SIZE_SMALL",text:v,accessibilityData:{accessibilityData:{label:this.getSimpleText(v)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var f,H,v=(f=this.instruction)==null?void 0:(H=f.editInstruction)==null?void 0:H.cancelButtonLabel;f=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return v?{style:f,size:"SIZE_SMALL",text:v,accessibilityData:{accessibilityData:{label:this.getSimpleText(v)}}}:void 0}},
cropOffsetTop:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetTop===void 0||this.pickerDisplayOffsetTop===void 0?0:this.pickerDisplayOffsetTop-this.imageDisplayOffsetTop}},
cropOffsetLeft:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetLeft===void 0||this.pickerDisplayOffsetLeft===void 0?0:this.pickerDisplayOffsetLeft-this.imageDisplayOffsetLeft}},
pickerBackgroundStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.imageDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.imageDisplayOffsetTop,"Y",void 0)+");"}},
pickerDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return"width:"+this.pickerSize+"px;height:"+this.pickerSize+"px;transform:translateX("+this.getSignedPosition(this.pickerDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.pickerDisplayOffsetTop,"Y",void 0)+");"}},
imageInPickerStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.cropOffsetLeft,"X","-")+") translateY("+this.getSignedPosition(this.cropOffsetTop,"Y","-")+");"}},
previewClipperStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getPreviewOffset(this.cropOffsetLeft,this.pickerSize,"X")+") translateY("+this.getPreviewOffset(this.cropOffsetTop,this.pickerSize,"Y")+");"}},
pickerModeStyle:{configurable:!0,enumerable:!0,get:function(){return this.showPreviewContainer?"preview":"edit"}}});
ia.prototype.onEditOnlyModeUpdate=ia.prototype.onEditOnlyModeUpdate;ia.prototype.onImageChange=ia.prototype.onImageChange;_.E([_.F(),_.N("design:type",vt3)],ia.prototype,"imageData",void 0);_.E([_.F(),_.N("design:type",Object)],ia.prototype,"instruction",void 0);_.E([_.F(),_.N("design:type",Object)],ia.prototype,"a11yConfig",void 0);_.E([_.F(),_.N("design:type",Number)],ia.prototype,"imageWidth",void 0);_.E([_.F(),_.N("design:type",Number)],ia.prototype,"imageHeight",void 0);
_.E([_.F(),_.N("design:type",Number)],ia.prototype,"displayScale",void 0);_.E([_.F(),_.N("design:type",Object)],ia.prototype,"imageDisplayOffsetTop",void 0);_.E([_.F(),_.N("design:type",Object)],ia.prototype,"imageDisplayOffsetLeft",void 0);_.E([_.F(),_.N("design:type",Object)],ia.prototype,"pickerDisplayOffsetTop",void 0);_.E([_.F(),_.N("design:type",Object)],ia.prototype,"pickerDisplayOffsetLeft",void 0);_.E([_.F(),_.N("design:type",Object)],ia.prototype,"showPreviewContainer",void 0);
_.E([_.F(),_.N("design:type",Object)],ia.prototype,"startPicker",void 0);_.E([_.F(),_.N("design:type",Number)],ia.prototype,"pickerOffsetX",void 0);_.E([_.F(),_.N("design:type",Number)],ia.prototype,"pickerOffsetY",void 0);_.E([_.F(),_.N("design:type",Object)],ia.prototype,"repositionOptional",void 0);_.E([_.F(),_.N("design:type",Object)],ia.prototype,"editOnlyMode",void 0);_.E([_.lJ("#picker-container"),_.N("design:type",HTMLElement)],ia.prototype,"JSC$15627_pickerContainer",void 0);
_.E([_.lJ("#picker"),_.N("design:type",HTMLElement)],ia.prototype,"picker",void 0);_.E([_.lJ("#preview-clipper"),_.N("design:type",HTMLElement)],ia.prototype,"previewClipper",void 0);_.E([_.lJ("#image-in-picker-background"),_.N("design:type",HTMLImageElement)],ia.prototype,"JSC$15627_imageInBackground",void 0);_.E([_.lJ("#image-in-picker"),_.N("design:type",HTMLImageElement)],ia.prototype,"JSC$15627_imageInPicker",void 0);
_.E([_.lJ("#image-in-preview-clipper"),_.N("design:type",HTMLImageElement)],ia.prototype,"JSC$15627_imageInPreviewClipper",void 0);_.E([_.z("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],ia.prototype,"altLabelForImage",null);_.E([_.z("imageHeight","imageWidth"),_.N("design:type",Number),_.N("design:paramtypes",[])],ia.prototype,"pickerSize",null);
_.E([_.z("imageHeight","imageWidth"),_.N("design:type",Object),_.N("design:paramtypes",[])],ia.prototype,"imageOrientationStyle",null);_.E([_.z("instruction"),_.N("design:type",Object),_.N("design:paramtypes",[])],ia.prototype,"editButton",null);_.E([_.z("instruction","editOnlyMode"),_.N("design:type",Object),_.N("design:paramtypes",[])],ia.prototype,"saveButton",null);_.E([_.z("instruction"),_.N("design:type",Object),_.N("design:paramtypes",[])],ia.prototype,"deleteButton",null);
_.E([_.z("instruction","editOnlyMode"),_.N("design:type",Object),_.N("design:paramtypes",[])],ia.prototype,"cancelButton",null);_.E([_.z("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.N("design:type",Number),_.N("design:paramtypes",[])],ia.prototype,"cropOffsetTop",null);_.E([_.z("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.N("design:type",Number),_.N("design:paramtypes",[])],ia.prototype,"cropOffsetLeft",null);
_.E([_.z("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],ia.prototype,"pickerBackgroundStyle",null);_.E([_.z("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],ia.prototype,"pickerDisplayStyle",null);_.E([_.z("cropOffsetLeft","cropOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],ia.prototype,"imageInPickerStyle",null);
_.E([_.z("cropOffsetLeft","cropOffsetTop","pickerSize"),_.N("design:type",String),_.N("design:paramtypes",[])],ia.prototype,"previewClipperStyle",null);_.E([_.xV("imageData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ia.prototype,"onImageChange",null);_.E([_.xV("editOnlyMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ia.prototype,"onEditOnlyModeUpdate",null);
_.E([_.z("showPreviewContainer"),_.N("design:type",String),_.N("design:paramtypes",[])],ia.prototype,"pickerModeStyle",null);_.E([_.u({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],ia);
_.G(ia,"ytd-backstage-image-preview-renderer",function(){if(gBh!==void 0)return gBh;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return gBh=f},{mode:1});var IXh;var SaZ={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 dho;var jB9;var kC=function(){var f=_.K.apply(this,arguments)||this;f.a11yConfig=SaZ;f.imageDisplayOffsetTop=0;f.imageDisplayOffsetLeft=0;f.pickerDisplayOffsetTop=0;f.pickerDisplayOffsetLeft=0;f.cropCoordinatesSaved=!1;f.previewSize=0;f.startPicker=!1;f.repositionOptional=!1;return f};
_.e(kC,_.K);_.R=kC.prototype;_.R.created=function(){_.p3.requestAvailability()};
_.R.ready=function(){};
_.R.onArrowKeysDown=function(f){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){f.detail.keyboardEvent.preventDefault();var H=0,v=0,t="";switch(f.detail.keyboardEvent.key){case "ArrowUp":hEs(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?t=this.a11yConfig.reachBottomOfImage:H=this.imageHeight*.05*-1;break;case "ArrowDown":hEs(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?t=this.a11yConfig.reachTopOfImage:
H=this.imageHeight*.05;break;case "ArrowLeft":hEs(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?t=this.a11yConfig.reachRightOfImage:v=this.imageWidth*.05*-1;break;case "ArrowRight":hEs(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?t=this.a11yConfig.reachLeftOfImage:v=this.imageWidth*.05}t&&_.ZC(t)&&_.YE(this.hostElement,"iron-announce",{text:_.ZC(t)});if(v||H)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+H)),f=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),f=_.ZC(this.a11yConfig.imageVerticalPosition,{x_percent:""+f,y_percent:""+(100-f)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+v)),f=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),f=_.ZC(this.a11yConfig.imageHorizontalPosition,{x_percent:""+f,y_percent:""+(100-f)})),f&&_.YE(this.hostElement,"iron-announce",{text:f})}};
_.R.getPreviewPosition=function(f,H,v,t){return Math.round(100*(f+H*.5-v)/t)};
_.R.displayImage=function(){var f=this.JSC$15638_pickerContainer.getBoundingClientRect().width,H=this.JSC$15638_pickerContainer.getBoundingClientRect().height,v=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),t=this.JSC$15638_imageInBackground.naturalWidth,M=this.JSC$15638_imageInBackground.naturalHeight;this.displayScale=Math.max(v/t,v/M);this.imageWidth=t*this.displayScale;this.imageHeight=M*this.displayScale;this.pickerDisplayOffsetLeft=(f-v)/2;this.pickerDisplayOffsetTop=
(H-v)/2;this.imageDisplayOffsetLeft=M>t?this.pickerDisplayOffsetLeft:(f-this.imageWidth)/2;this.imageDisplayOffsetTop=t>M?this.pickerDisplayOffsetTop:(H-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.R.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15638_imageInBackground.src=this.imageData.toString(),this.JSC$15638_imageInPicker.src=this.imageData.toString(),this.JSC$15638_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.R.getSignedPosition=function(f,H,v){return H==="X"&&_.a8("HTML_DIR")==="rtl"?v==="-"?f+"px":f*-1+"px":v==="-"?f*-1+"px":f+"px"};
_.R.pickerMove=function(f){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var H=this.pickerOffsetX-f.clientX,v=this.pickerOffsetY-f.clientY;this.pickerOffsetX=f.clientX;this.pickerOffsetY=f.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
v)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-H))}};
_.R.pickerMoveStart=function(f){this.startPicker=!0;this.pickerOffsetX=f.clientX;this.pickerOffsetY=f.clientY};
_.R.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.R.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.YE(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.R.getPreviewOffset=function(f,H,v,t){return H&&f&&v?(t==="X"&&_.a8("HTML_DIR")==="rtl"?v/H*f:v/H*f*-1)+"px":"0px"};
_.R.getSimpleText=function(f){return f?_.fG(f):""};
_.R.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var f=this.cropOffsetTop/this.imageHeight,H=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,v=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,t=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.mF(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.YE(this.hostElement,"yt-img-crop-coordinates-update",{top:f,right:H,bottom:v,left:t})}};
_.H7.Object.defineProperties(kC.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var f=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.ZC(this.a11yConfig.imageVerticalPosition,{x_percent:""+f,y_percent:""+(100-f)})+"\n"+_.ZC(this.a11yConfig.verticalRepositionInstruction)}f=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.ZC(this.a11yConfig.imageHorizontalPosition,{x_percent:""+f,y_percent:""+(100-f)})+"\n"+_.ZC(this.a11yConfig.horizontalRepositionInstruction)}},
pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}},
imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}},
editButton:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.previewInstruction&&this.instruction.previewInstruction.editButtonLabel)return{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:this.instruction.previewInstruction.editButtonLabel,accessibilityData:{accessibilityData:{label:this.getSimpleText(this.instruction.previewInstruction.editButtonLabel)}}}}},
saveButton:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.editInstruction&&this.instruction.editInstruction.saveButtonLabel)return{style:"STYLE_PRIMARY",size:"SIZE_SMALL",text:this.instruction.editInstruction.saveButtonLabel,accessibilityData:{accessibilityData:{label:this.getSimpleText(this.instruction.editInstruction.saveButtonLabel)}}}}},
cropOffsetTop:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetTop===void 0||this.pickerDisplayOffsetTop===void 0?0:this.pickerDisplayOffsetTop-this.imageDisplayOffsetTop}},
cropOffsetLeft:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetLeft===void 0||this.pickerDisplayOffsetLeft===void 0?0:this.pickerDisplayOffsetLeft-this.imageDisplayOffsetLeft}},
pickerBackgroundStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.imageDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.imageDisplayOffsetTop,"Y",void 0)+");"}},
pickerDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return"width:"+this.pickerSize+"px;height:"+this.pickerSize+"px;transform:translateX("+this.getSignedPosition(this.pickerDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.pickerDisplayOffsetTop,"Y",void 0)+");"}},
imageInPickerStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.cropOffsetLeft,"X","-")+") translateY("+this.getSignedPosition(this.cropOffsetTop,"Y","-")+");"}},
previewClipperStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getPreviewOffset(this.cropOffsetLeft,this.pickerSize,this.previewSize,"X")+") translateY("+this.getPreviewOffset(this.cropOffsetTop,this.pickerSize,this.previewSize,"Y")+");"}},
pickerModeStyle:{configurable:!0,enumerable:!0,get:function(){return this.cropCoordinatesSaved?"preview":"edit"}},
learnMore:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.editInstruction)return this.instruction.editInstruction.learnMore}},
learnMoreUrl:{configurable:!0,enumerable:!0,get:function(){if(this.learnMore&&this.learnMore.runs&&this.learnMore.runs[0]){var f,H=(f=this.learnMore.runs[0])==null?void 0:f.navigationEndpoint,v;return((v=_.U(H,_.X7))==null?void 0:v.url)||void 0}}}});
kC.prototype.onImageDataChange=kC.prototype.onImageDataChange;_.E([_.F(),_.N("design:type",Object)],kC.prototype,"imageData",void 0);_.E([_.F(),_.N("design:type",Object)],kC.prototype,"instruction",void 0);_.E([_.F(),_.N("design:type",Object)],kC.prototype,"a11yConfig",void 0);_.E([_.F(),_.N("design:type",Number)],kC.prototype,"imageWidth",void 0);_.E([_.F(),_.N("design:type",Number)],kC.prototype,"imageHeight",void 0);_.E([_.F(),_.N("design:type",Number)],kC.prototype,"displayScale",void 0);
_.E([_.F(),_.N("design:type",Object)],kC.prototype,"imageDisplayOffsetTop",void 0);_.E([_.F(),_.N("design:type",Object)],kC.prototype,"imageDisplayOffsetLeft",void 0);_.E([_.F(),_.N("design:type",Object)],kC.prototype,"pickerDisplayOffsetTop",void 0);_.E([_.F(),_.N("design:type",Object)],kC.prototype,"pickerDisplayOffsetLeft",void 0);_.E([_.F(),_.N("design:type",Object)],kC.prototype,"cropCoordinatesSaved",void 0);_.E([_.F(),_.N("design:type",Object)],kC.prototype,"previewSize",void 0);
_.E([_.F(),_.N("design:type",Object)],kC.prototype,"startPicker",void 0);_.E([_.F(),_.N("design:type",Number)],kC.prototype,"pickerOffsetX",void 0);_.E([_.F(),_.N("design:type",Number)],kC.prototype,"pickerOffsetY",void 0);_.E([_.F(),_.N("design:type",Object)],kC.prototype,"repositionOptional",void 0);_.E([_.lJ("#picker-container"),_.N("design:type",HTMLElement)],kC.prototype,"JSC$15638_pickerContainer",void 0);_.E([_.lJ("#picker"),_.N("design:type",HTMLElement)],kC.prototype,"picker",void 0);
_.E([_.lJ("#image-in-picker-background"),_.N("design:type",HTMLImageElement)],kC.prototype,"JSC$15638_imageInBackground",void 0);_.E([_.lJ("#image-in-picker"),_.N("design:type",HTMLImageElement)],kC.prototype,"JSC$15638_imageInPicker",void 0);_.E([_.lJ("#image-in-preview-clipper"),_.N("design:type",HTMLImageElement)],kC.prototype,"JSC$15638_imageInPreviewClipper",void 0);_.E([_.lJ("#full-image-as-preview"),_.N("design:type",HTMLImageElement)],kC.prototype,"imageAsPreview",void 0);
_.E([_.z("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],kC.prototype,"altLabelForImage",null);_.E([_.z("imageHeight","imageWidth"),_.N("design:type",Number),_.N("design:paramtypes",[])],kC.prototype,"pickerSize",null);_.E([_.z("imageHeight","imageWidth"),_.N("design:type",Object),_.N("design:paramtypes",[])],kC.prototype,"imageOrientationStyle",null);
_.E([_.z("instruction.previewInstruction.editButtonLabel"),_.N("design:type",Object),_.N("design:paramtypes",[])],kC.prototype,"editButton",null);_.E([_.z("instruction.editInstruction.saveButtonLabel"),_.N("design:type",Object),_.N("design:paramtypes",[])],kC.prototype,"saveButton",null);_.E([_.z("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.N("design:type",Number),_.N("design:paramtypes",[])],kC.prototype,"cropOffsetTop",null);
_.E([_.z("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.N("design:type",Number),_.N("design:paramtypes",[])],kC.prototype,"cropOffsetLeft",null);_.E([_.z("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],kC.prototype,"pickerBackgroundStyle",null);_.E([_.z("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],kC.prototype,"pickerDisplayStyle",null);
_.E([_.z("cropOffsetLeft","cropOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],kC.prototype,"imageInPickerStyle",null);_.E([_.z("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.N("design:type",String),_.N("design:paramtypes",[])],kC.prototype,"previewClipperStyle",null);_.E([_.Zw("imageData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kC.prototype,"onImageDataChange",null);
_.E([_.z("cropCoordinatesSaved"),_.N("design:type",String),_.N("design:paramtypes",[])],kC.prototype,"pickerModeStyle",null);_.E([_.z("instruction.editInstruction.learnMore"),_.N("design:type",Object),_.N("design:paramtypes",[])],kC.prototype,"learnMore",null);_.E([_.z("learnMore"),_.N("design:type",Object),_.N("design:paramtypes",[])],kC.prototype,"learnMoreUrl",null);_.E([_.GW({is:"yt-img-crop-picker",disableElementRegistration:!0})],kC);
_.G(kC,"yt-img-crop-picker",function(){if(jB9===void 0){var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;dho===void 0&&(dho=document.createElement("template"));var t=dho;v.call(H,t.content.cloneNode(!0),f.content.firstChild);jB9=f}f=jB9;return f},{mode:2});var Tq=function(){var f=_.K.apply(this,arguments)||this;f.errorMessage="";f.hasPreview=!1;f.isBackstagePost=!1;f.dismissButtonOverrides={size:"XS"};return f};
_.e(Tq,_.K);_.R=Tq.prototype;_.R.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"}}}};
_.R.detached=function(){this.removeOverlay()};
_.R.setPreview=function(f){_.mF(this.hostElement).querySelector("#preview-picker").imageData=f;this.hasPreview=!0;_.YE(this.hostElement,"yt-backstage-image-select-preview")};
_.R.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var f=_.mF(this.hostElement).querySelector("#dropzone");f.classList.remove("dragover");f.classList.remove("error");_.YE(this.hostElement,"yt-backstage-image-select-cancel")};
_.R.setupOverlay=function(){var f=this.imageUploadEndpoint;this.removeOverlay();if(f&&f.imageValidationInfo){var H=_.mF(this.hostElement).querySelector("#dropzone"),v=_.mF(this.hostElement).querySelector("#select");this.overlay=new iP(f.uploadUrl,f.channelId,f.imageValidationInfo.maxFileSizeMb,f.imageValidationInfo.allowedMaxAspectRatio,H,v,!0);_.r9(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.r9(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.r9(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.r9(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.r9(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.R.removeOverlay=function(){this.overlay&&(_.IS(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.IS(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.IS(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.IS(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.IS(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.R.onDragOver=function(f){var H=_.mF(this.hostElement).querySelector("#dropzone");_.WB(H,"dragover",f.value)};
_.R.onPreview=function(f){this.setPreview(f.value)};
_.R.onImageError=function(f){if(f.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var H;f=(H=this.data)==null?void 0:H.fileSizeError}else if(f.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var v;f=(v=this.data)==null?void 0:v.invalidError}else if(f.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var t;f=(t=this.data)==null?void 0:t.invalidAspectRatioError}else return;this.errorMessage=_.fG(f);_.mF(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.R.onImageAlert=function(f){this.onImageError(f)};
_.R.uploadPromise=function(){var f=this,H=this.overlay&&this.overlay.uploadPromise();if(H)return H.catch(function(){throw Error(f.data?_.fG(f.data.uploadFailureError):"");})};
_.H7.Object.defineProperties(Tq.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var f,H;if((f=this.data)==null?0:(H=f.icon)==null?0:H.iconType)return _.SW(this.data.icon.iconType)}}});
Tq.prototype.setupOverlay=Tq.prototype.setupOverlay;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Tq.prototype,"rendererStamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Tq.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Tq.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],Tq.prototype,"imageUploadEndpoint",void 0);_.E([_.F(),_.N("design:type",Object)],Tq.prototype,"errorMessage",void 0);
_.E([_.F(),_.N("design:type",iP)],Tq.prototype,"overlay",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Tq.prototype,"hasPreview",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Tq.prototype,"isBackstagePost",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Tq.prototype,"selectionCancel",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Tq.prototype,"previewCancel",null);
_.E([_.z("data.icon.iconType"),_.N("design:type",Object),_.N("design:paramtypes",[])],Tq.prototype,"icon",null);_.E([_.F(),_.N("design:type",Object)],Tq.prototype,"dismissButtonOverrides",void 0);_.E([_.Zw("imageUploadEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tq.prototype,"setupOverlay",null);_.E([_.u({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],Tq);
_.G(Tq,"ytd-backstage-image-select-renderer",function(){if(IXh!==void 0)return IXh;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return IXh=f},{mode:1});var sBC;var ZwH;var w2=function(){var f=_.K.apply(this,arguments)||this;f.selected=!1;return f};
_.e(w2,_.K);_.R=w2.prototype;_.R.computeSelected=function(f){return f==null?void 0:f.selected};
_.R.computeTransform=function(f,H,v){var t,M,h=(M=(t=this.imageContainer)==null?void 0:t.getBoundingClientRect())!=null?M:{width:0,height:0};t=Math.max(h.width/H,h.height/v);v=v*t*f.top;return"translateX("+this.getSignedPosition(H*t*f.left,"X","-")+") translateY("+this.getSignedPosition(v,"Y","-")+")"};
_.R.getSignedPosition=function(f,H,v){return H==="X"&&_.a8("HTML_DIR")==="rtl"?v==="-"?f+"px":f*-1+"px":v==="-"?f*-1+"px":f+"px"};
_.R.onClick=function(){var f;_.YE(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(f=this.data)==null?void 0:f.image)};
_.R.onKeyPress=function(f){if(f.keyCode===13)this.onClick()};
_.H7.Object.defineProperties(w2.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var f,H;return((f=this.data)==null?void 0:(H=f.image)==null?void 0:H.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)!=null&&f.image){var H;f=(H=this.data)==null?void 0:H.image;return f.previewCoordinates.top!==0||f.previewCoordinates.left!==0?(H=this.computeTransform(f.previewCoordinates,f.naturalWidth,f.naturalHeight),f.naturalHeight>=f.naturalWidth?"width:inherit;transform:"+H+";":"height:inherit;transform:"+H+";"):f.naturalHeight>=f.naturalWidth?"width:inherit;":"height:inherit;"}}}});
w2.prototype.onKeyPress=w2.prototype.onKeyPress;_.E([_.lJ(".image-container"),_.N("design:type",HTMLElement)],w2.prototype,"imageContainer",void 0);_.E([_.F(),_.N("design:type",Object)],w2.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.N("design:type",Object)],w2.prototype,"selected",void 0);_.E([_.z("data.image"),_.N("design:type",Object),_.N("design:paramtypes",[])],w2.prototype,"thumbnailUrl",null);
_.E([_.z("data.image","data.image.previewCoordinates"),_.N("design:type",Object),_.N("design:paramtypes",[])],w2.prototype,"thumbnailStyle",null);_.E([_.sE("keypress"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],w2.prototype,"onKeyPress",null);_.E([_.u({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],w2);
_.G(w2,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(ZwH!==void 0)return ZwH;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return ZwH=f},{mode:2});var qU=function(f,H,v){v=v===void 0?!1:v;_.Sg.call(this);var t=this;this.dropZoneOverlay=new yD(f);this.selectOverlay=v?new YW(H,"multiple_file",["image/*"]):new YW(H,"single_file",["image/*"]);this.handler=new _.Y1(this);_.jz(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(H,"click",function(){t.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.e(qU,_.Sg);qU.prototype.onChange=function(f){var H;(H=f.files)!=null&&H.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:f.files}))};var ff=function(){var f=_.K.apply(this,arguments)||this;f.addImageErrorMessage="";f.errorMessage="";f.images=[];f.selectedImageIndex=0;f.modern=_.J("web_modern_buttons");f.maxNumImagesPerPost=_.VQ("max_num_images_per_post_web_ui");f.JSC$15653_imageId=0;return f};
_.e(ff,_.K);_.R=ff.prototype;_.R.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.YE(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.R.observeDragToReorder=function(){var f=this;if(this.showImagesPreview){var H,v=zh9(_.tp.getInstance(),(H=this.data)==null?void 0:H.dragToReorderTooltip);_.nN.addLowPriorityJob(function(){_.Oj(f.hostElement,v,f.thumbnailDragDropArea)})}};
_.R.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}}};
_.R.computeThumbnail=function(f){return(f==null?void 0:f.localImageSrc)||void 0};
_.R.onRendererstamperFinished=function(){_.sAh(this.ytReorderableBehavior,_.mF(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.mF(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.R.handleDrop=function(f){var H=f.currDragItem;if(H!=null&&H.data){f=this.images[this.selectedImageIndex];var v=H.data.image,t=this.images.indexOf(v)||0;H=_.Nr(H.parentNode.children,H);this.images.splice(t,1);this.images.splice(H,0,v);this.images=[].concat(_.pS(this.images));this.selectedImageIndex=this.images.indexOf(f)}};
_.R.setUpImagePicker=function(){var f=this.imageUploadEndpoint;f&&f.imageValidationInfo&&(this.uploadManager=new A1(f.uploadUrl,f.channelId),this.initialPicker||(this.initialPicker=new qU(this.dropzone,this.selectLink,!0),_.r9(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new qU(this.addImageButtonContainer,this.addImageSelectButton),_.r9(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.r9(this.JSC$15653_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.r9(this.JSC$15653_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.r9(_.mF(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.R.detached=function(){this.initialPicker&&(_.IS(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.IS(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.R.onInitialSelectImages=function(f){var H=this;return _.Y(function(v){return v.yield(H.onSelectImages(f,!1),0)})};
_.R.onAddImage=function(f){var H=this;return _.Y(function(v){return v.yield(H.onSelectImages(f,!0),0)})};
_.R.onSelectImages=function(f,H){var v=this,t,M,h,y,m,W,I,S,d,Z,l,L,r,n,Q,C,w,c,A,X;return _.Y(function(fg){switch(fg.nextAddress){case 1:H?v.addImageErrorMessage="":(v.images=[],v.errorMessage="");t=f.detail;M=v.validateImages([].concat(_.pS(t)));if(M!=="")return H?v.addImageErrorMessage=M:v.errorMessage=M,fg.return();h=[].concat(_.pS(t)).map(function(gB){return(new Ac(v.maxAspectRatio,!1,!0)).transform(gB)});
return fg.yield(Promise.allSettled(h),2);case 2:y=fg.yieldResult,m=_.V(y.entries()),W=m.next();case 3:if(W.done){fg.jumpTo(5);break}I=W.value;S=_.V(I);d=S.next().value;Z=S.next().value;l=d;L=Z;if(L.status!=="fulfilled"){Q=n=r=void 0;H?v.addImageErrorMessage=_.fG((r=v.data)==null?void 0:r.invalidError):v.errorMessage=v.errorMessage===""?_.fG((n=v.data)==null?void 0:n.invalidError):_.fG((Q=v.data)==null?void 0:Q.multiFileError);fg.jumpTo(4);break}C=L.value;C.cropped&&_.YE(v.hostElement,"yt-backstage-multi-image-cropped");
if(C.invalidAspectRatio){A=c=w=void 0;H?v.addImageErrorMessage=_.fG((w=v.data)==null?void 0:w.invalidAspectRatioError):v.errorMessage=v.errorMessage===""?_.fG((c=v.data)==null?void 0:c.invalidAspectRatioError):_.fG((A=v.data)==null?void 0:A.multiFileError);fg.jumpTo(4);break}return fg.yield(tMe(v.JSC$15653_imageId,f.detail[l],C.transformedData),8);case 8:X=fg.yieldResult,v.images.push(X),v.JSC$15653_imageId++;case 4:W=m.next();fg.jumpTo(3);break;case 5:if(v.errorMessage!==""||v.addImageErrorMessage!==
"")return fg.return();H?VtT(v.uploadManager,[v.images[v.images.length-1]]):VtT(v.uploadManager,v.images);v.images=[].concat(_.pS(v.images));v.selectedImageIndex=H?Math.max(v.images.length-1,0):0;_.YE(v.hostElement,"yt-backstage-multi-image-select");_.Bj(fg)}})};
_.R.onThumbnailClick=function(f){if(f=f.event_.detail)this.selectedImageIndex=this.images.indexOf(f)};
_.R.validateImages=function(f){if(f.length>this.maxNumImagesPerPost){var H;return _.fG((H=this.data)==null?void 0:H.multiImageExceedMaxImageCountError)}var v=1048576*this.maxFileSizeMb;f=f.filter(function(h){return h.size>v}).length;
if(f===0)return"";var t,M;f=f>1?(t=this.data)==null?void 0:t.multiFileError:(M=this.data)==null?void 0:M.fileSizeError;return _.fG(f)};
_.R.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.pS(this.images));this.selectedImageIndex=0};
_.R.repositionImage=function(f){this.images[this.selectedImageIndex].previewCoordinates=f.event_.detail;this.images=[].concat(_.pS(this.images))};
_.R.getAllUploadStatuses=function(){var f=this,H,v,t,M;return _.Y(function(h){if(h.nextAddress==1)return h.yield(f.uploadManager.getAllUploadStatuses(),2);H=h.yieldResult;v=_.V(H);for(t=v.next();!t.done;t=v.next())if(M=t.value,M.encryptedBlobId===void 0)return h.return(yUH(f.uploadManager));return h.return(H)})};
_.R.hasImages=function(){return this.images.length>0};
_.R.cancel=function(){for(var f=this.uploadManager,H=_.V(f.imagesUploadData),v=H.next();!v.done;v=H.next())f.cancel(v.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.YE(this.hostElement,"yt-backstage-multi-image-cancel")};
_.H7.Object.defineProperties(ff.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var f,H;return((f=this.imageUploadEndpoint)==null?void 0:(H=f.imageValidationInfo)==null?void 0:H.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var f,H;return((f=this.imageUploadEndpoint)==null?void 0:(H=f.imageValidationInfo)==null?void 0:H.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var f,H;if((f=this.data)==null?0:(H=f.icon)==null?0:H.iconType)return _.SW(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.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 f=this;return(this.images||[]).map(function(H,v){return{renderer:{image:H,selected:v===f.selectedImageIndex}}})}}});
ff.prototype.setUpImagePicker=ff.prototype.setUpImagePicker;ff.prototype.onRendererstamperFinished=ff.prototype.onRendererstamperFinished;ff.prototype.observeDragToReorder=ff.prototype.observeDragToReorder;ff.prototype.observeAddImageError=ff.prototype.observeAddImageError;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],ff.prototype,"rendererStamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ff.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.Zah),_.N("design:type",Object)],ff.prototype,"ytReorderableBehavior",void 0);_.E([_.lJ("#dropzone"),_.N("design:type",HTMLElement)],ff.prototype,"dropzone",void 0);_.E([_.lJ("#select-link"),_.N("design:type",HTMLElement)],ff.prototype,"selectLink",void 0);_.E([_.lJ("#thumbnail-drag-drop-area"),_.N("design:type",HTMLElement)],ff.prototype,"thumbnailDragDropArea",void 0);_.E([_.lJ("#add-image-button-container"),_.N("design:type",HTMLElement)],ff.prototype,"addImageButtonContainer",void 0);
_.E([_.lJ("#add-image-button"),_.N("design:type",HTMLElement)],ff.prototype,"addImageSelectButton",void 0);_.E([_.lJ("#image-preview-container"),_.N("design:type",Object)],ff.prototype,"JSC$15653_imagePreviewContainer",void 0);_.E([_.F(),_.N("design:type",Object)],ff.prototype,"addImageErrorMessage",void 0);_.E([_.F(),_.N("design:type",Object)],ff.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],ff.prototype,"errorMessage",void 0);
_.E([_.F(),_.N("design:type",Object)],ff.prototype,"imageUploadEndpoint",void 0);_.E([_.F(),_.N("design:type",Array)],ff.prototype,"images",void 0);_.E([_.F(),_.N("design:type",qU)],ff.prototype,"initialPicker",void 0);_.E([_.F(),_.N("design:type",qU)],ff.prototype,"addImagePicker",void 0);_.E([_.F(),_.N("design:type",A1)],ff.prototype,"uploadManager",void 0);_.E([_.F(),_.N("design:type",Object)],ff.prototype,"selectedImageIndex",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],ff.prototype,"modern",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],ff.prototype,"maxNumImagesPerPost",void 0);_.E([_.z("imageUploadEndpoint"),_.N("design:type",Number),_.N("design:paramtypes",[])],ff.prototype,"maxAspectRatio",null);_.E([_.z("imageUploadEndpoint"),_.N("design:type",Number),_.N("design:paramtypes",[])],ff.prototype,"maxFileSizeMb",null);
_.E([_.z("data.icon.iconType"),_.N("design:type",Object),_.N("design:paramtypes",[])],ff.prototype,"dropIcon",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],ff.prototype,"selectionCancel",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],ff.prototype,"previewCancel",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],ff.prototype,"dataForAddImageButton",null);
_.E([_.z("errorMessage"),_.N("design:type",String),_.N("design:paramtypes",[])],ff.prototype,"dropzoneClass",null);_.E([_.z("images"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ff.prototype,"showImagesPreview",null);_.E([_.z("images"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ff.prototype,"containMaxImages",null);_.E([_.Zw("addImageErrorMessage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ff.prototype,"observeAddImageError",null);
_.E([_.Zw("showImagesPreview"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ff.prototype,"observeDragToReorder",null);_.E([_.z("images","selectedImageIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],ff.prototype,"selectedImageData",null);_.E([_.z("images","selectedImageIndex"),_.N("design:type",Array),_.N("design:paramtypes",[])],ff.prototype,"thumbnailRenderers",null);
_.E([_.sE("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ff.prototype,"onRendererstamperFinished",null);_.E([_.Zw("imageUploadEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ff.prototype,"setUpImagePicker",null);_.E([_.u({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],ff);
_.G(ff,"ytd-backstage-multi-image-select-renderer",function(){if(sBC!==void 0)return sBC;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return sBC=f},{mode:1});var JUZ;var lXh;var UhM;var HJ=function(){var f=_.K.apply(this,arguments)||this;f.boundCaptureFocus=function(H){f.onCaptureFocus(H)};
return f};
_.e(HJ,_.K);_.R=HJ.prototype;_.R.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.R.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.R.onCaptureFocus=function(f){_.f2(f).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.R.getIconType=function(f){return f?"yt-icons:"+f.toLowerCase():null};
_.R.onSelect=function(){var f;if((f=this.data)==null?0:f.onSelectCommand)if(_.J("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var H;((H=_.U(this.data.onSelectCommand.commandMetadata,_.jG))==null?0:H.url)?_.YE(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.t8().resolve(_.MJ).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.H7.Object.defineProperties(HJ.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.fG(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}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],HJ.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],HJ.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],HJ.prototype,"data",void 0);_.E([_.lJ("#item"),_.N("design:type",HTMLElement)],HJ.prototype,"item",void 0);_.E([_.z("data.label"),_.N("design:type",String),_.N("design:paramtypes",[])],HJ.prototype,"label",null);
_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],HJ.prototype,"value",null);_.E([_.u({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],HJ);
_.G(HJ,"ytd-privacy-dropdown-item-renderer",function(){if(UhM!==void 0)return UhM;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return UhM=f},{mode:1});var vJ=function(){var f=_.K.apply(this,arguments)||this;f.value="";f.label="";f.disabled=!1;return f};
_.e(vJ,_.K);_.R=vJ.prototype;_.R.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"}}}};
_.R.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.R.dataChanged=function(){this.reset()};
_.R.valueChanged=function(){var f;if(this.value&&(f=this.data)!=null&&f.entries){f=_.V(this.data.entries);for(var H=f.next();!H.done;H=f.next())if((H=this.getRendererForEntry(H.value))&&this.getItemRendererValue(H)===this.value){this.label=this.ytComponentBehavior.getSimpleString(H.label);break}}};
_.R.setInitialLabel=function(){if(this.data&&this.data.entries)for(var f=_.V(this.data.entries),H=f.next();!H.done;H=f.next())if(H=this.getRendererForEntry(H.value)){if(H.isSelected){this.label=this.ytComponentBehavior.getSimpleString(H.label);break}this.data.label&&(this.label=this.data.label)}};
_.R.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var f=_.V(this.data.entries),H=f.next();!H.done;H=f.next()){H=this.getRendererForEntry(H.value);var v=void 0;if((v=H)==null?0:v.isSelected)return this.getItemRendererValue(H)||-1}return-1};
_.R.getItemRendererValue=function(f){return"stringValue"in f||"int32Value"in f?f.stringValue||f.int32Value||null:null};
_.R.getRendererForEntry=function(f){return f.dropdownItemRenderer||f.privacyDropdownItemRenderer||f.navigationDropdownItemRenderer||null};
_.R.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.bM("value-changed",this.value))};
_.R.updateValueFromBinding=function(f){this.value=f.detail.value};
vJ.prototype.valueChangedForBinding=vJ.prototype.valueChangedForBinding;vJ.prototype.valueChanged=vJ.prototype.valueChanged;vJ.prototype.dataChanged=vJ.prototype.dataChanged;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],vJ.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],vJ.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],vJ.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],vJ.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],vJ.prototype,"value",void 0);_.E([_.F(),_.N("design:type",Object)],vJ.prototype,"label",void 0);_.E([_.lJ("#entries"),_.N("design:type",Object)],vJ.prototype,"entries",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],vJ.prototype,"disabled",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vJ.prototype,"dataChanged",null);
_.E([_.xV("value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vJ.prototype,"valueChanged",null);_.E([_.Zw("value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vJ.prototype,"valueChangedForBinding",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],vJ);
_.G(vJ,"ytd-flat-dropdown-renderer",function(){if(lXh!==void 0)return lXh;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return lXh=f},{mode:1});var etg;var tn=function(){var f=_.K.apply(this,arguments)||this;f.quizOptions=[];f.explanationPlaceholderText="";f.optionPlaceholderText="";f.correctAnswerIndex=-1;f.isMarkAnswerTooltipShown=!1;f.timer=0;return f};
_.e(tn,_.K);_.R=tn.prototype;_.R.dataChanged=function(){this.optionPlaceholderText=_.fG(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.fG(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.R.onMarkCorrectAnswer=function(f){var H,v=((H=this.quizOptions[this.correctAnswerIndex])==null?void 0:H.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[f.model.index]=Object.assign({},this.quizOptions[f.model.index],{explanationText:v,isCorrect:!0});this.correctAnswerIndex=f.model.index;this.quizOptions=[].concat(_.pS(this.quizOptions))};
_.R.updatePlaceholderTexts=function(){for(var f=!1,H=[],v=0;v<this.quizOptions.length;v++){var t=this.optionPlaceholderText+" "+(v+1),M=void 0;((M=this.quizOptions[v])==null?void 0:M.placeholderText)!==t?(f=!0,H.push(Object.assign({},this.quizOptions[v],{placeholderText:t}))):H.push(this.quizOptions[v])}f&&(this.quizOptions=H);this.isValid()?_.YE(this.hostElement,"yt-commentbox-post-enable"):_.YE(this.hostElement,"yt-commentbox-post-disable")};
_.R.getSimpleString=function(f){return _.fG(f)};
_.R.createQuizOptions=function(f){var H=[],v;f=(v=f==null?void 0:f.minQuizOptions)!=null?v:0;for(v=0;v<f;v++)H.push(this.createQuizOption());return H};
_.R.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.pS(this.quizOptions),[this.createQuizOption()]))};
_.R.onInput=function(){this.quizOptions=[].concat(_.pS(this.quizOptions))};
_.R.onExplanationInput=function(){_.YE(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.R.onRemoveQuizOption=function(f){this.quizOptions.splice(f.model.index,1);f.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:f.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.pS(this.quizOptions));this.quizOptions.length===0&&_.YE(this.hostElement,"yt-quiz-attachment-dismiss")};
_.R.updateHintRenderer=function(){var f=this;clearTimeout(this.timer);this.timer=setTimeout(function(){f.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.R.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var f=0,H=0,v=_.V(this.quizOptions),t=v.next();!t.done;t=v.next()){t=t.value;var M=void 0;if(((M=t.optionText)==null?void 0:M.trim())!==""||t.isCorrect){t.isCorrect&&H++;M=void 0;if(this.hasCustomOptionText&&((M=t.optionText)==null?void 0:M.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;f++}}return f>=
Number(this.editorInfo.minQuizOptions)&&H===1};
_.R.getPostCreateOptions=function(){for(var f=[],H=_.V(this.quizOptions),v=H.next();!v.done;v=H.next()){v=v.value;var t=void 0;((t=v.optionText)==null?void 0:t.trim())!==""&&f.push({pollOption:{text:v.optionText,explanation:v.explanationText},isCorrect:v.isCorrect})}return f};
_.R.getExplanationText=function(){var f;return((f=this.quizOptions[this.correctAnswerIndex])==null?void 0:f.explanationText)||""};
_.R.maybeDisplayMarkAnswerEduToolTip=function(){var f,H,v,t,M,h,y;this.shouldShowMarkAnswerTooltip()&&((f=this.editorInfo)==null?0:(H=f.markAnswerButton)==null?0:(v=H.buttonRenderer)==null?0:(t=v.hint)==null?0:(M=t.hintRenderer)==null?0:(h=M.content)==null?0:(y=h.bubbleHintRenderer)==null?0:y.text)&&(_.tp.getInstance(),f=MB(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,(f==null?void 0:f.length)>0&&this.optionSelectors&&_.sV(f[0],this.optionSelectors[0]))};
_.R.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var f=0,H=_.V(this.quizOptions),v=H.next();!v.done;v=H.next()){v=v.value;var t=void 0;((t=v.optionText)==null?void 0:t.trim())!==""&&f++;if(v.isCorrect)return!1}return f<2?!1:!0};
_.R.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.R.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.R.updateOptionTextFromBinding=function(f){if(f.target){var H=Array.from(_.mF(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(f.target);if(H>=0){var v;this.quizOptions[H].optionText=(v=f.detail.value)!=null?v:""}}};
_.H7.Object.defineProperties(tn.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var f,H,v=(f=this.editorInfo)==null?void 0:(H=f.addOptionButton)==null?void 0:H.buttonRenderer;v&&(v.style="STYLE_SUGGESTIVE",v.size="SIZE_SMALL",v.isDisabled=!this.isAllowedToAddOption);return(v==null?0:v.text)?v:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var f,H;return this.quizOptions.length<((H=(f=this.editorInfo)==null?void 0:f.maxQuizOptions)!=null?H:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(f){var H;return(H=f.optionText)==null?void 0:H.trim()})}}});
tn.prototype.updatePlaceholderTexts=tn.prototype.updatePlaceholderTexts;tn.prototype.dataChanged=tn.prototype.dataChanged;_.E([_.F(),_.N("design:type",Object)],tn.prototype,"editorInfo",void 0);_.E([_.F(),_.N("design:type",Array)],tn.prototype,"quizOptions",void 0);_.E([_.F(),_.N("design:type",Object)],tn.prototype,"explanationPlaceholderText",void 0);_.E([_.UE(".option-selector-button"),_.N("design:type",Array)],tn.prototype,"optionSelectors",void 0);
_.E([_.xV("editorInfo"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tn.prototype,"dataChanged",null);_.E([_.z("editorInfo","isAllowedToAddOption","quizOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],tn.prototype,"addAnswerButton",null);_.E([_.z("editorInfo","quizOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],tn.prototype,"isAllowedToAddOption",null);
_.E([_.xV("quizOptions"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tn.prototype,"updatePlaceholderTexts",null);_.E([_.z("quizOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],tn.prototype,"hasCustomOptionText",null);_.E([_.u({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],tn);
_.G(tn,"ytd-backstage-quiz-editor-renderer",function(){if(etg!==void 0)return etg;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return etg=f},{mode:2});var L09;var xhH=(gy.FIRSTDAYOFWEEK+1)%7;var Bch;var ztC=[],F0Z=0,rUC=0;F0Z=0;rUC=24;if(.25*(rUC-F0Z)<0)Bch=[];else{for(var K0h=F0Z;K0h<rUC;K0h+=.25)ztC.push(K0h);Bch=ztC}var DhC=Bch.map(function(f){f=f*60*60;return{secondsSinceMidnight:f,text:(new TZ(7)).format(new Date(0,0,0,0,0,f))}});var oBh;var Mm=function(){var f=_.K.apply(this,arguments)||this;f.skipNextOpenDialog=!1;f.errorMessage="";f.previousMonthLabel=_.ZC("PREVIOUS_MONTH_LABEL");f.nextMonthLabel=_.ZC("NEXT_MONTH_LABEL");return f};
_.e(Mm,_.K);_.R=Mm.prototype;_.R.attached=function(){var f=this,H=new MutationObserver(function(){f.JSC$15696_calendarMain.scrollHeight>0&&(H.disconnect(),f.calendarConfig&&f.calendarConfig.selectedDate&&f.scrollToDate())});
H.observe(this.JSC$15696_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){H.disconnect()},1E3)};
_.R.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.R.onDateTextChange=function(){if(this.calendarConfig){var f=this.validateDateText();f.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(f.details)):this.textbox.setAttribute("invalid","")}};
_.R.handleDayClick=function(f){f.model.day.date&&(this.commitDate(f.model.day.date),this.dialog.close())};
_.R.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var f=gtR(this.calendarConfig.selectedDate,this.renderData);f!==void 0&&this.JSC$15696_calendarMain.scrollToIndex(f)}};
_.R.scrollToNextMonth=function(){this.JSC$15696_calendarMain.scrollToIndex(this.JSC$15696_calendarMain.firstVisibleIndex+1)};
_.R.scrollToPrevMonth=function(){this.JSC$15696_calendarMain.firstVisibleIndex===0&&this.JSC$15696_calendarMain.scrollTo(0,0);this.JSC$15696_calendarMain.scrollToIndex(this.JSC$15696_calendarMain.firstVisibleIndex-1)};
_.R.onFormSubmit=function(f){f.preventDefault();this.calendarConfig&&(f=this.validateDateText(),f.isValid&&(this.commitDate(f.details),this.dialog.close()))};
_.R.onEscOrClickingOutside=function(f){f=f.detail.path&&!!f.detail.path.length&&f.detail.path[0];if(f.classList.contains("ytd-calendar-date-picker")){f===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var H=0;H<this.dropdownButton.children.length;H++)this.dropdownButton.children[H]===f&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}f=this.textbox.value!==this.dateText;H=this.validateDateText();f&&H.isValid&&this.commitDate(H.details);this.dialog.close();this.textbox.value=
this.dateText};
_.R.commitDate=function(f){this.calendarConfig&&(this.set("calendarConfig.selectedDate",f),_.YE(this.hostElement,"ytd-calendar-date-selected",f))};
_.R.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var f=this.textbox.value;var H=new Date;f=(new otg(2)).parse(f,H,{validate:!0})===f.length?Ww_(H):void 0;if(!f)return this.errorMessage=_.ZC("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};H=this.calendarConfig.start;var v=this.calendarConfig.end;if(VMH(f,H))return this.errorMessage=_.ZC("ENTER_DATE_OR_LATER",{allowed_date:$Hg(H)}),{isValid:!1,details:void 0};if(VMH(v,f))return this.errorMessage=
_.ZC("ENTER_DATE_OR_EARLIER",{allowed_date:$Hg(v)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:f}};
_.H7.Object.defineProperties(Mm.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?$Hg(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var f=this.calendarConfig,H=[],v=0;v<7;v++)H.push(gy.NARROWWEEKDAYS[(v+xhH)%7]);v=[];for(var t=new Date(f.start.year,f.start.month);t.getFullYear()<f.end.year||t.getFullYear()===f.end.year&&t.getMonth()<=f.end.month;){var M=v,h=M.push,y=t.getFullYear(),m=t.getMonth(),W=f,I=void 0,S=[],d=Object.freeze({extraCssClass:"invisible",debugClass:""}),Z=new Date(y,m),l=Ww_(Z);Z=Z.getDay();for(var L=Ww_(new Date);l.month===
m;){Z!==xhH&&I||(I=Array.from({length:7}).fill(d),S.push(I));var r={date:{year:y,month:m,day:l.day},extraCssClass:"",debugClass:""};W.selectedDate&&r.date&&REN(r.date,W.selectedDate)&&(r.extraCssClass+=" selected");if(VMH(l,W.start)||VMH(W.end,l))r.extraCssClass+=" disabled";REN(l,L)&&(r.extraCssClass+=" today");r.extraCssClass=r.extraCssClass.trim();I[(Z-xhH+7)%7]=r;l=YrB(l);Z=(Z+1)%7}h.call(M,{weeks:S,monthLabel:gy.SHORTMONTHS[m]+" "+y,year:y,month:m,monthLabelExtraCssClass:S[0][2]===d?"shift-down-label":
""});t.setMonth(t.getMonth()+1)}return{months:v,daysOfWeekLabel:H}}}}});
Mm.prototype.onEscOrClickingOutside=Mm.prototype.onEscOrClickingOutside;Mm.prototype.scrollToDate=Mm.prototype.scrollToDate;_.E([_.F(),_.N("design:type",Object)],Mm.prototype,"calendarConfig",void 0);_.E([_.F(),_.N("design:type",Object)],Mm.prototype,"skipNextOpenDialog",void 0);_.E([_.F(),_.N("design:type",Object)],Mm.prototype,"errorMessage",void 0);_.E([_.F(),_.N("design:type",Object)],Mm.prototype,"previousMonthLabel",void 0);
_.E([_.F(),_.N("design:type",Object)],Mm.prototype,"nextMonthLabel",void 0);_.E([_.lJ("#textbox"),_.N("design:type",HTMLInputElement)],Mm.prototype,"textbox",void 0);_.E([_.lJ("#calendar-dialog"),_.N("design:type",Object)],Mm.prototype,"dialog",void 0);_.E([_.lJ("#calendar-main"),_.N("design:type",Object)],Mm.prototype,"JSC$15696_calendarMain",void 0);_.E([_.lJ("#date-picker"),_.N("design:type",HTMLElement)],Mm.prototype,"dropdownButton",void 0);
_.E([_.z("calendarConfig.selectedDate"),_.N("design:type",String),_.N("design:paramtypes",[])],Mm.prototype,"dateText",null);_.E([_.z("calendarConfig","calendarConfig.selectedDate"),_.N("design:type",Object),_.N("design:paramtypes",[])],Mm.prototype,"renderData",null);_.E([_.Zw("renderData","calendarConfig.selectedDate"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Mm.prototype,"scrollToDate",null);
_.E([_.sE("iron-overlay-canceled"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Mm.prototype,"onEscOrClickingOutside",null);_.E([_.GW({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],Mm);
_.G(Mm,"ytd-calendar-date-picker",function(){if(oBh!==void 0)return oBh;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return oBh=f},{mode:2});var nBn=_.ZC("UTC_OFFSET_FORMAT",{utc_offset:(new TZ("Z")).format(new Date)}),pXh=(new Date).getTimezoneOffset()*-60,QBh=new Date,ufZ,aXn=kT(QBh.getTimezoneOffset());ufZ=IwC(duC(aXn,QBh));var PIn=_.ZC("LOCAL_TIME_GMT_LABEL",{gmt_text:ufZ.replace("+0","+").replace("-0","-").replace(":00","")}),hn=function(){var f=_.K.apply(this,arguments)||this;f.selectedTimeIndex=0;f.selectedTimezoneIndex=0;f.timeOfDayOptions=DhC;return f};
_.e(hn,_.K);_.R=hn.prototype;_.R.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var f=mH_();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=f,this.selectedTimeIndex=0;else{var H=OH5(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},f,{selectedDate:H.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(v){return v.secondsSinceMidnight===H.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.R.onDatePicked=function(f){this.selectedDate=f.detail};
_.R.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.YE(this.hostElement,"ytd-date-time-selection-cancelled")};
_.R.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var f=this.selectedDate;f=new Date(f.year,f.month,f.day);_.YE(this.hostElement,"ytd-date-time-selection-update",Math.floor(f.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+f.getTimezoneOffset()*60))}};
_.R.getTimezoneFormat=function(f){return f.localizedDisplayText?f.localizedDisplayText:_.ZC("TIMEZONE_FORMAT",{utc_offset_text:""+f.localizedUtcOffset,city_name:""+f.localizedName})};
_.R.updateSelectedTimeIndexFromBinding=function(f){this.selectedTimeIndex=f.detail.value};
_.R.updateSelectedTimezoneIndexFromBinding=function(f){this.selectedTimezoneIndex=f.detail.value};
_.H7.Object.defineProperties(hn.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var f=this.data.timezoneOptions;var H={name:"Etc/Unknown",localizedName:_.ZC("LOCAL_TIME_LABEL"),localizedUtcOffset:nBn,utcOffsetSec:""+pXh,localizedDisplayText:PIn};f?f.length&&f[0].name!==H.name&&(f[0].localizedDisplayText||(H.localizedDisplayText=""),f.unshift(H)):f=[H];return f}}},
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]}}});
hn.prototype.onDateTimeTimezoneChange=hn.prototype.onDateTimeTimezoneChange;hn.prototype.onDatePicked=hn.prototype.onDatePicked;hn.prototype.updateDefaultSelectedValue=hn.prototype.updateDefaultSelectedValue;_.E([_.F(),_.N("design:type",Object)],hn.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],hn.prototype,"calendarConfig",void 0);_.E([_.F(),_.N("design:type",Object)],hn.prototype,"selectedDate",void 0);_.E([_.F(),_.N("design:type",Object)],hn.prototype,"selectedTimeIndex",void 0);
_.E([_.F(),_.N("design:type",Object)],hn.prototype,"selectedTimezoneIndex",void 0);_.E([_.lJ("#time-listbox"),_.N("design:type",Object)],hn.prototype,"timeListBox",void 0);_.E([_.lJ("#timezone-listbox"),_.N("design:type",Object)],hn.prototype,"timezoneListBox",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],hn.prototype,"rendererStamperBehavior",void 0);_.E([_.z("data.timezoneOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],hn.prototype,"timeZones",null);
_.E([_.xV("data","timeZones"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hn.prototype,"updateDefaultSelectedValue",null);_.E([_.z("selectedTimezoneIndex","timeZones"),_.N("design:type",Object),_.N("design:paramtypes",[])],hn.prototype,"selectedTimezone",null);_.E([_.z("selectedTimeIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],hn.prototype,"selectedTime",null);
_.E([_.sE("ytd-calendar-date-selected"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],hn.prototype,"onDatePicked",null);_.E([_.Zw("selectedTimezone","selectedTime","selectedDate"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hn.prototype,"onDateTimeTimezoneChange",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],hn);
_.G(hn,"ytd-date-time-picker-renderer",function(){if(L09!==void 0)return L09;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return L09=f},{mode:1});var GkT;var Rk=function(){var f=_.K.apply(this,arguments)||this;f.boundOnTapDismissButton=function(){f.dismissTapHandler()};
f.dismissButtonOverrides={size:"XS"};return f};
_.e(Rk,_.K);Rk.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}}}}}};
Rk.prototype.dismissTapHandler=function(){_.YE(this.hostElement,"yt-backstage-attachment-dismissed")};
Rk.prototype.computeAttachmentType=function(f){return f?f.backstageImageRenderer?"image":f.videoRenderer?"video":"none":"none"};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Rk.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Rk.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Rk.prototype,"attachmentPreview",void 0);_.E([_.F(),_.N("design:type",Object)],Rk.prototype,"dismissButton",void 0);_.E([_.F(),_.N("design:type",Object)],Rk.prototype,"boundOnTapDismissButton",void 0);
_.E([_.F(),_.N("design:type",Object)],Rk.prototype,"dismissButtonOverrides",void 0);_.E([_.F({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.N("design:type",String)],Rk.prototype,"attachmentType",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],Rk);
_.G(Rk,"ytd-backstage-dismissable-attachment",function(){if(GkT!==void 0)return GkT;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return GkT=f},{mode:1});var CIo;var VJ=function(){var f=_.K.apply(this,arguments)||this;f.selectedVideoId=void 0;f.picker=void 0;f.dismissButtonOverrides={size:"XS"};f.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return f};
_.e(VJ,_.K);_.R=VJ.prototype;_.R.onServiceRequestCompleted=function(f){f.stopPropagation()};
_.R.handleAddVideoPreviewAction=function(f){f=this.get("addVideoPreviewAction",f);this.onGetVideoPreviewSuccess(f)};
_.R.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}}}}}};
_.R.onLaunchVideoPicker=function(f){var H=this,v=_.fG(this.get("addVideoLinkAction.title",f)),t=this.get("addVideoLinkAction.onePickHostId",f);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",f);t&&(this.picker||(v=_.M$o(_.n8v(t).setTitle(v).addView(fyv()).addView(qSb()),function(M){H.onPickVideo(M)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",f)||v.addView("youtube"),this.picker=v.build()),this.picker.setVisible(!0))};
_.R.onPickVideo=function(f){if(f)if(f.action==="cancel")_.YE(this.hostElement,"yt-video-link-button-cancel");else if(f.action==="picked"){f=f.docs;if(!f||f.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(f=(f==null?0:f.length)?f[0]:void 0)?f.id:void 0;this.setVideoPreview()}};
_.R.setVideoPreview=function(){var f=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){f.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.R.onGetVideoPreviewSuccess=function(f){if(f&&f.videoPreview&&f.cancelButton)this.videoPreview=f.videoPreview,this.cancelButton=f.cancelButton,_.YE(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.R.onGetVideoPreviewError=function(){this.cancel()};
_.R.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.YE(this.hostElement,"yt-video-link-cancel")};
_.R.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
VJ.prototype.onServiceRequestCompleted=VJ.prototype.onServiceRequestCompleted;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],VJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],VJ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],VJ.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],VJ.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],VJ.prototype,"videoPreview",void 0);_.E([_.F(),_.N("design:type",Object)],VJ.prototype,"cancelButton",void 0);_.E([_.F(),_.N("design:type",Object)],VJ.prototype,"getVideoPreviewCommand",void 0);_.E([_.F(),_.N("design:type",Object)],VJ.prototype,"dismissButtonOverrides",void 0);
_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],VJ.prototype,"onServiceRequestCompleted",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],VJ);
_.G(VJ,"ytd-backstage-video-link-attachment",function(){if(CIo!==void 0)return CIo;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return CIo=f},{mode:1});var EBn;var NcZ;var cUH;var yJ=function(){return _.K.apply(this,arguments)||this};
_.e(yJ,_.K);yJ.prototype.dataChanged=function(){this.active=!1};
yJ.prototype.onTap=function(){_.YE(this.hostElement,"yt-select-emoji-suggestion",this.data)};
yJ.prototype.identity=function(f){return f};
_.H7.Object.defineProperties(yJ.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var f,H,v,t;if((f=this.data)==null?0:(H=f.image)==null?0:(v=H.thumbnails)==null?0:(t=v[0])==null?0:t.url)return f=this.data.image.thumbnails[0].url,f.startsWith("data:image/svg+xml")?no(f):_.Co(f)}}});
yJ.prototype.dataChanged=yJ.prototype.dataChanged;_.E([_.F(),_.N("design:type",Object)],yJ.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],yJ.prototype,"active",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yJ.prototype,"dataChanged",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],yJ.prototype,"imageSrc",null);
_.E([_.u({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],yJ);
_.G(yJ,"ytd-emoji-suggestion",function(){if(cUH!==void 0)return cUH;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return cUH=f},{mode:1});var XXa=/.*([:@#].*?)$/,Yx=function(){var f=_.K.apply(this,arguments)||this;f.suggestions=[];f.suggestionIndex=-1;f.JSC$15724_lastSuggestionRange=null;return f};
_.e(Yx,_.K);_.R=Yx.prototype;_.R.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.R.getSuggestions=function(f){var H=[],v=JRh(this.emojiManager,f.substr(0,3));if(v)for(var t in v)if(t.toLocaleLowerCase().indexOf(f)===0){var M=v[t];if(M&&M.emojiId){M=EL(this.emojiManager,M.emojiId);var h=void 0,y=void 0,m=void 0,W=void 0,I=((h=M)==null?0:h.isCustomEmoji)?(y=M)==null?void 0:(m=y.shortcuts)==null?void 0:m[0]:(W=M)==null?void 0:W.emojiId;h=void 0;H.push({suggestion:{image:(h=M)==null?void 0:h.image,alt:I,text:t}});if(H.length>=64)break}}return H?H.sort(function(S,d){return d.suggestion.text<
S.suggestion.text?-1:d.suggestion.text===S.suggestion.text?0:1}):null};
_.R.insertSuggestion=function(f){_.YE(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15724_lastSuggestionRange,text:f.alt});this.dropdown.opened=!1};
_.R.updateSuggestionsAtCaret=function(f){this.updateSuggestions(f,this.retrieveTextBeforeRange(f))};
_.R.offsetStartOfRangeBy=function(f,H){f.startOffset>=H&&f.setStart(f.startContainer,f.startOffset-H)};
_.R.updateSuggestions=function(f,H){var v=this;this.JSC$15724_lastSuggestionRange&&(this.JSC$15724_lastSuggestionRange.detach(),this.JSC$15724_lastSuggestionRange=null);if((H=XXa.exec(H))&&H.length&&(H=H[H.length-1].toLocaleLowerCase(),H.length>2||H===":_")&&(this.offsetStartOfRangeBy(f,H.length),this.JSC$15724_lastSuggestionRange=f,(f=this.getSuggestions(H))&&f.length)){this.suggestions=f;_.qV(this,function(){v.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(f.length-1);return}this.dropdown.opened=!1};
_.R.onKeyDown=function(f){if(this.dropdown.opened)switch(f.key){case "Escape":this.dropdown.opened=!1;f.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);f.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);f.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),f.preventDefault()}};
_.R.onKeyUp=function(f,H){switch(f.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(H);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(H)}};
_.R.onKeyPress=function(f){f.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),f.preventDefault())};
_.R.changeSuggestionIndex=function(f){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(f+this.suggestions.length)%this.suggestions.length,f=this.dropdownContent.children[this.suggestionIndex],f.active=!0,this.dropdownContent.scrollTop=f.offsetTop)};
_.R.retrieveTextBeforeRange=function(f){var H=f.startContainer;return H&&H.nodeType===Node.TEXT_NODE?H.textContent.substr(0,f.startOffset):""};
Yx.prototype.onKeyPress=Yx.prototype.onKeyPress;Yx.prototype.onKeyUp=Yx.prototype.onKeyUp;Yx.prototype.onKeyDown=Yx.prototype.onKeyDown;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Yx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Array)],Yx.prototype,"suggestions",void 0);_.E([_.F(),_.N("design:type",_.G$)],Yx.prototype,"emojiManager",void 0);_.E([_.F(),_.N("design:type",Number)],Yx.prototype,"verticalSuggestionsOffset",void 0);
_.E([_.lJ("#dropdown"),_.N("design:type",Object)],Yx.prototype,"dropdown",void 0);_.E([_.lJ("#dropdown-content"),_.N("design:type",HTMLDivElement)],Yx.prototype,"dropdownContent",void 0);_.E([_.sE("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],Yx.prototype,"onKeyDown",null);_.E([_.sE("keyup"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent,Range]),_.N("design:returntype")],Yx.prototype,"onKeyUp",null);
_.E([_.sE("keypress"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],Yx.prototype,"onKeyPress",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-emoji-input"})],Yx);
_.G(Yx,"ytd-emoji-input",function(){if(NcZ!==void 0)return NcZ;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return NcZ=f},{mode:2});var AUg;var mr=function(){var f=_.K.apply(this,arguments)||this;f.hasMaxOptions=!1;return f};
_.e(mr,_.K);_.R=mr.prototype;_.R.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.R.setPrefilledChoices=function(f){var H=this;this.set("pollOptions",[]);var v;for(v=0;v<Math.min(f.length,this.data.maxPollOptions);v++)this.push("pollOptions",f[v].substring(0,this.data.maxPollOptionChars));for(;v<this.data.minPollOptions;v++)this.push("pollOptions","");this.hasMaxOptions=v>=this.data.maxPollOptions;_.qV(this,function(){for(var t=H.pollOptions,M=_.mF(H.hostElement).querySelectorAll(".poll-option-input"),h=0;h<M.length;h++)M[h].value=t[h]})};
_.R.focusChanged=function(){_.Sr(this.hostElement)};
_.R.onInput=function(){var f=this;_.iJ(this,"onInput",function(){f.isValid()?_.YE(f.hostElement,"yt-commentbox-post-enable"):_.YE(f.hostElement,"yt-commentbox-post-disable")},300)};
_.R.setPollOptions=function(){var f=[],H,v=((H=this.data)==null?0:H.minPollOptions)?this.data.minPollOptions:0;for(H=0;H<v;H++)f.push("");return f};
_.R.addPollOption=function(){var f=this;_.YE(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.nN.addLowPriorityJob(function(){var H;(H=_.mF(f.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||H.focus()})};
_.R.onRemovePollOption=function(f){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.YE(this.hostElement,"yt-poll-attachment-dismiss")):(f=this.repeat.indexForElement(f.target.parentNode),f!==null&&(this.splice("pollOptions",f,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.YE(this.hostElement,"yt-commentbox-post-enable"))))};
_.R.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.R.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var f=0,H=this.pollOptions.length;f<H;f++)if(this.pollOptions[f].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.R.getPollOptions=function(){return this.pollOptions};
_.R.setPollOptionsFromInputs=function(){for(var f=_.mF(this.hostElement).querySelectorAll(".poll-option-input"),H=0;H<f.length;H++)this.pollOptions[H]=f[H].value.trim()};
_.R.clearPollOptions=function(){var f=_.mF(this.hostElement).querySelectorAll(".poll-option-input");f=_.V(f);for(var H=f.next();!H.done;H=f.next())H.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.R.getSimpleString=function(f){return _.fG(f)};
_.R.updateValueFromBinding=function(f){if(f.target&&this.pollOptions){var H=Array.from(_.mF(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(f.target);if(H>=0){var v;this.pollOptions[H]=(v=f.detail.value)!=null?v:"";this.notifyPath("pollOptions."+H)}}};
mr.prototype.dataChanged=mr.prototype.dataChanged;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],mr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],mr.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Array)],mr.prototype,"pollOptions",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],mr.prototype,"hasMaxOptions",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],mr.prototype,"enableCreationBox",void 0);
_.E([_.lJ("#repeat"),_.N("design:type",Qs)],mr.prototype,"repeat",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mr.prototype,"dataChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-poll-attachment"})],mr);
_.G(mr,"ytd-poll-attachment",function(){if(AUg!==void 0)return AUg;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return AUg=f},{mode:2});var bwn;var iw_;var kkb;var Tc9;var $x=function(){return _.K.apply(this,arguments)||this};
_.e($x,_.K);_.H7.Object.defineProperties($x.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],$x.prototype,"rendererBehaviors",void 0);_.E([_.F(),_.N("design:type",Object)],$x.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],$x.prototype,"focused",void 0);_.E([_.F({reflectToAttribute:!0}),_.z("focused"),_.N("design:type",Object),_.N("design:paramtypes",[])],$x.prototype,"ariaSelected",null);_.E([_.GW({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],$x);
_.G($x,"yt-user-mention-suggestion-renderer",function(){if(Tc9===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;kkb===void 0&&(kkb=document.createElement("template"));var t=kkb;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Tc9=f}f=Tc9;return f},{mode:2});var wXZ;var qav;var WJ=function(){var f=_.K.apply(this,arguments)||this;f.focusedSuggestionIndex=-1;return f};
_.e(WJ,_.K);_.R=WJ.prototype;_.R.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.R.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.R.setFocusedSuggestionIndex=function(f){!this.data||!this.data.suggestions||f<0||f>=this.data.suggestions.length||(this.focusedSuggestionIndex=f,f=this.getSuggestionId(f),this._setFocusedSuggestionId(f))};
_.R.advanceSuggestion=function(f){this.focusedSuggestionIndex===-1||f!==-1&&f!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+f),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.R.ensureSuggestionVisible=function(f){f=this.getSuggestionId(f);f=_.mF(this.hostElement).querySelector("[id="+f+"]");f!=null&&(f.offsetTop<this.hostElement.scrollTop?f.scrollIntoView(!0):f.offsetTop+f.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&f.scrollIntoView(!1))};
_.R.getSuggestionId=function(f){return"user-mention-suggestion-"+f};
_.R.onSuggestionTap=function(f){var H=_.U(f.model.item,jjC);this.ytRendererBehavior.logExplicitClick(H);_.YE(this.hostElement,"yt-user-mention-suggestion-selected",{data:H,index:f.model.index})};
_.R.onSuggestionMouseMove=function(f){f.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(f.model.index)};
_.R.isSuggestionFocused=function(f,H){return f===H};
_.R.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.R.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.bM("focused-suggestion-id-changed",this.focusedSuggestionId))};
WJ.prototype.focusedSuggestionIdChangedForBinding=WJ.prototype.focusedSuggestionIdChangedForBinding;WJ.prototype.onDomChange=WJ.prototype.onDomChange;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],WJ.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],WJ.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],WJ.prototype,"focusedSuggestionIndex",void 0);_.E([_.F({readOnly:!0}),_.N("design:type",String)],WJ.prototype,"focusedSuggestionId",void 0);
_.E([_.sE("dom-change"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],WJ.prototype,"onDomChange",null);_.E([_.Zw("focusedSuggestionId"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WJ.prototype,"focusedSuggestionIdChangedForBinding",null);_.E([_.GW({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],WJ);
_.G(WJ,"yt-user-mention-suggestions-dropdown",function(){if(qav===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;wXZ===void 0&&(wXZ=document.createElement("template"));var t=wXZ;v.call(H,t.content.cloneNode(!0),f.content.firstChild);qav=f}f=qav;return f},{mode:2});var OW=function(){var f=_.K.apply(this,arguments)||this;f.suggestionsResponse=null;f.activeMention=null;f.selectionChangeListener=f.onSelectionChange.bind(f);f.handlesEnabled=_.J("enable_handles_in_mention_suggest_posts");f.handlesInMentionSuggestionsEnabled=_.J("handles_in_mention_suggest_posts");f.zeroPrefixMentionSuggestionEnabled=_.J("enable_zero_prefix_mention_suggestion_web");f.pendingQuery=null;f.flowNonce=null;return f};
_.e(OW,_.K);_.R=OW.prototype;_.R.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.R.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.R.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.R.hasSuggestions=function(f){return!!(f&&f.suggestions&&f.suggestions.length>0)};
_.R.onInput=function(){var f=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var H=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),v=this.activeMention.JSC$11327_getText().slice(-1)===" ",t=this.activeMention.JSC$11327_getText().slice(-2,-1)===" ",M="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11327_getText().slice(-2,
-1))>=0;M=this.zeroPrefixMentionSuggestionEnabled&&M;if(this.activeMention.isCollapsed()||(H||t||M)&&v)this.cancelActiveMention();else{var h=this.activeMention.JSC$11327_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.iJ(this,"requestSuggestions",function(){f.requestSuggestions(h)},100)}}}};
_.R.onServiceRequestSent=function(f){f.stopPropagation()};
_.R.onServiceRequestCompleted=function(f){f.stopPropagation();f=f.detail.data;f.query&&(!this.pendingQuery||this.pendingQuery!==f.query)||!this.zeroPrefixMentionSuggestionEnabled&&f.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=f,this.hasSuggestions(f)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.R.onServiceRequestError=function(f){f.stopPropagation()};
_.R.onUserMentionSuggestionSelected=function(f){this.selectSuggestion(f.detail.data,f.detail.index)};
_.R.onSelectionChange=function(){if(this.activeMention){var f=_.Yd(),H=this.activeMention.JSC$11327_containsRange(f);f=f&&this.containsHelper(this.dropdown,f.getContainer());H||f||this.cancelActiveMention()}};
_.R.containsHelper=function(f,H){var v;if(((v=window.ShadyDOM)==null?void 0:v.noPatch)===!0)return f.contains(H);for(;H;){if(H===f)return!0;H=H instanceof ShadowRoot?H.host:H.parentNode}return!1};
_.R.maybeStartSuggest=function(){var f=_.Yd();if(f&&f.isCollapsed()){var H=f.JSC$11327_getStartNode(),v=f.JSC$11327_getStartOffset();if(H instanceof Text&&!(v<1)){var t=H.textContent;!(t=t&&t.charAt(v-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(t)<0||(this.activeMention=_.oE(H,v-1,f.JSC$11327_getEndNode(),f.JSC$11327_getEndOffset()),this.flowNonce=nP(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.R.updateActiveMention=function(){if(this.activeMention){var f=_.Yd();f&&f.isCollapsed()&&(this.activeMention=_.oE(this.activeMention.JSC$11327_getStartNode(),this.activeMention.JSC$11327_getStartOffset(),f.JSC$11327_getEndNode(),f.JSC$11327_getEndOffset()))}};
_.R.requestSuggestions=function(f){if(this.activeMention){var H={suggestions_query:f};this.pendingQuery=f;_.WV(this.hostElement,[this.suggestionsEndpoint,H])}};
_.R.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()};
_.R.focusPreviousSuggestion=function(f){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),f.preventDefault())};
_.R.focusNextSuggestion=function(f){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),f.preventDefault())};
_.R.selectFocusedSuggestion=function(f){if(this.hasSuggestions(this.suggestionsResponse)){var H=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.U(H,jjC)&&(this.selectSuggestion(_.U(H,jjC),this.dropdown.focusedSuggestionIndex),f.preventDefault())}};
_.R.selectSuggestion=function(f,H){if(f){var v=this.activeMention;if(v){var t=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&f.handle?_.F_(t,"\u00a0\u2068@"+f.handle+"\u2069\u00a0"):this.handlesEnabled?_.F_(t,"\u00a0"+f.displayName+"\u00a0"):_.F_(t,"\u00a0@"+f.displayName+"\u00a0");AD(t,"/channel/"+f.channelId);t.classList.add("yt-formatted-string","yt-simple-endpoint");t.setAttribute("spellcheck","false");v.isCollapsed()||v.JSC$11327_removeContents();v.insertNode(t,!0);f=document.createTextNode(" ");
t.parentNode.insertBefore(f,t.nextSibling);window.getSelection().collapse(f,1);H={suggestionSelected:{suggestionIndex:H}};if(this.zeroPrefixMentionSuggestionEnabled){var M;H.suggestionSelected.isZeroPrefix=((M=this.suggestionsResponse)==null?void 0:M.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",H);this.cancelActiveMention();_.YE(this.hostElement,"yt-mention-inserted")}}};
_.R.getPositionTarget=function(f){return f&&f.getBrowserRangeObject()};
_.R.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.R.onFocusedSuggestionIdChanged=function(f){var H=_.a1E(this.hostElement)[0];H&&(f.detail.value?H.setAttribute("aria-activedescendant",f.detail.value):H.removeAttribute("aria-activedescendant"))};
_.R.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.R.logGELEvent=function(f,H){f={eventType:f,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};H&&(f=Object.assign(f,H));_.Kb("userMentionAutoCompleteBoxEvent",f)};
OW.prototype.onDomChange=OW.prototype.onDomChange;OW.prototype.onUserMentionSuggestionSelected=OW.prototype.onUserMentionSuggestionSelected;OW.prototype.onServiceRequestError=OW.prototype.onServiceRequestError;OW.prototype.onServiceRequestCompleted=OW.prototype.onServiceRequestCompleted;OW.prototype.onServiceRequestSent=OW.prototype.onServiceRequestSent;OW.prototype.onInput=OW.prototype.onInput;_.E([_.B(_.dS),_.N("design:type",Object)],OW.prototype,"ironA11yKeysBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],OW.prototype,"suggestionsEndpoint",void 0);_.E([_.F(),_.N("design:type",Object)],OW.prototype,"suggestionsResponse",void 0);_.E([_.F(),_.N("design:type",Object)],OW.prototype,"activeMention",void 0);_.E([_.lJ("#dropdown"),_.N("design:type",Object)],OW.prototype,"dropdown",void 0);_.E([_.lJ("#iron-dropdown"),_.N("design:type",Object)],OW.prototype,"ironDropdown",void 0);
_.E([_.sE("input"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],OW.prototype,"onInput",null);_.E([_.sE("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],OW.prototype,"onServiceRequestSent",null);_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],OW.prototype,"onServiceRequestCompleted",null);
_.E([_.sE("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],OW.prototype,"onServiceRequestError",null);_.E([_.sE("yt-user-mention-suggestion-selected"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],OW.prototype,"onUserMentionSuggestionSelected",null);
_.E([_.sE("dom-change"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],OW.prototype,"onDomChange",null);_.E([_.GW({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],OW);
_.G(OW,"yt-user-mention-autosuggest-input",function(){if(iw_===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;bwn===void 0&&(bwn=document.createElement("template"));var t=bwn;v.call(H,t.content.cloneNode(!0),f.content.firstChild);iw_=f}f=iw_;return f},{mode:2});var gF=null;
_.p2({is:"ytd-commentbox",_template:function(){if(EBn!==void 0)return EBn;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return EBn=f},
behaviors:[_.SJR.YtHostElementBehavior,_.dS,_.dt.YtActionHandlerBehavior,_.CM.YtComponentBehavior,_.h$.YtRendererstamperBehavior,_.G8a.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(f,H){return _.dL(f.entities,"aadcGuidelinesStateEntityPayload",H)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(f,H){return _.dL(f.entities,"commentboxStateEntity",H)},
observer:"commentboxStateEntityChanged_"},receivedFocusPreviously_:{type:Boolean,value:!1},isReply:{type:Boolean,value:!1},isBackstageComment:{type:Boolean,computed:"computeIsBackstageComment_(data.avatarSize)",reflectToAttribute:!0},attachmentButtonIds:{type:Object,readOnly:!0,computed:"computeAttachmentButtonIds_()"},isBackstagePost:{type:Boolean,value:!1,reflectToAttribute:!0},serviceEndpoint:{type:Object,readOnly:!0,computed:"computeServiceEndpoint_(data)"},submitButtonDisabled:{type:Boolean,
value:!1},attachment:Object,isLoading:{type:Boolean,observer:"isLoadingChanged_"},errorMessage_:{type:Object,value:null},alertMessage_:{type:Object,value:null},imageUploadEndpoint_:{type:Object,computed:"computeImageUploadEndpoint_(data)"},rateLimitErrorCommands:{type:Object,computed:"computeRateLimitErrorCommands_(data)"},addedAttachment:{type:String,value:"none",reflectToAttribute:!0},prefilledAttachment_:{type:String,value:"none",reflectToAttribute:!0},previousText_:String,inlineSchedulePanel_:{type:Object,
computed:"computeInlineSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},dropdownSchedulePanel_:{type:Object,computed:"computeDropdownSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},scheduleButton_:Object,zeroStepChannelCreationRenderer:Object,enableCreationBox:{type:Boolean,reflectToAttribute:!0},isInputFocus_:{type:Boolean,observer:"onIsInputFocusChanged_"},hasImage_:{type:Boolean,computed:"computeHasImage_(addedAttachment)"},hasPollOrQuizRendererInEditDialog_:{type:Boolean,
computed:"computeHasPollOrQuizRendererInEditDialog_(data)"},hasVideo_:{type:Boolean,computed:"computeHasVideo_(addedAttachment)"},hasPoll_:{type:Boolean,computed:"computeHasPoll_(addedAttachment)"},hasImagePoll_:{type:Boolean,computed:"computeHasImagePoll_(addedAttachment)"},hasQuiz_:{type:Boolean,computed:"computeHasQuiz_(addedAttachment)"},prefilledContent_:{type:Object,readOnly:!0,computed:"computePrefilledContent_(data)"},editAttachment_:{type:Object,readOnly:!0,computed:"computeEditAttachment_(data)"},
isCreationBox:{type:Boolean,reflectToAttribute:!0,value:!1},isPopupBox:{type:Boolean,reflectToAttribute:!0,value:!1},emojiManager:{type:Object,readOnly:!0,value:function(){return _.N8}},
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:_.J("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.J("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",_.jr(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(f){this.fire(f?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(f){this.set("submitButtonDisabled",void 0);this.clear();f&&this.computeIsEmojiButtonDisplayed_(f)&&(f=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&f.updateEmojiCategories()},
observePrefilledImage_:function(f,H,v){this.isValidPrefilledImage_(f,H,v)&&(this.prefilledAttachment_="image",this.prefilledImageData_=H,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(f,H){this.isValidPrefilledVideo_(f,H)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(f){f&&f.pollData&&f.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(f.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.Ya();this.focus()},
detached:function(){document.removeEventListener("tap",_.jr(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(f){f=f.detail;f=f.isCustomEmoji?f.shortcuts[0]:f.emojiId;var H=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(H,f);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var f=_.Yd();if(f){f=f.getBrowserRangeObject();for(var H=f.commonAncestorContainer;H;){if(H===this.getEditableTextArea_())return f;H=H.parentNode}}f=this.getEditableTextArea_();f=_.DN(f,f.childNodes.length);f.select();return f.getBrowserRangeObject()},
insertTextWithEmojis_:function(f,H,v){(H=this.emojiManager.createDocumentFragment(H,!0,!1,v===void 0?!0:v))&&H.childNodes.length!==0&&(f.collapsed||f.deleteContents(),v=H.lastChild,f.insertNode(H),_.Q9H(v).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var f=_.Yd();if(f){var H=f.JSC$11327_getStartNode(),v=f.JSC$11327_getEndNode();if(Idv(H)&&Idv(v)){var t=f.JSC$11327_getStartOffset(),M;if(_.yB&&H.nodeType===Node.ELEMENT_NODE&&(M=_.K_g(H)))_.DN(M,0).select();else{M=Rc(H)?H:_.EZ(H,Rc);var h=Rc(v)?v:_.EZ(v,Rc);if(M||h)if(f.isCollapsed()){if(H.nodeType===Node.TEXT_NODE){f=!0;t===H.length&&(f=!1);if(gF==="end"||gF==="right")f=!1;H=H.parentNode;f=[].concat(_.pS(H.parentNode.childNodes)).indexOf(H)+(f?0:1);_.DN(H.parentNode,
f).select()}}else M?M.previousSibling&&M.previousSibling.length>0?_.oE(v,f.JSC$11327_getEndOffset(),M.previousSibling,M.previousSibling.length-1).select():(H=document.createTextNode("\u200b"),M.parentNode.insertBefore(H,M),_.oE(v,f.JSC$11327_getEndOffset(),H,0).select()):h&&(h.nextSibling&&h.nextSibling.length>0?_.oE(H,f.JSC$11327_getStartOffset(),h.nextSibling,1).select():(v=document.createTextNode("\u200b"),h.parentNode.insertBefore(v,h.nextSibling),_.oE(H,f.JSC$11327_getStartOffset(),v,v.length).select()));
gF=null}}else gF=null}else gF=null},
leftKeyPressed_:function(){gF="left"},
rightKeyPressed_:function(){gF="right"},
endKeyPressed_:function(){gF="end"},
maybeDeleteChip_:function(){var f=JCe(!0);if(f){var H=_.Yd(),v=H.JSC$11327_getStartNode();H=H.JSC$11327_getStartOffset();_.Bt(v,H,f,f.childNodes.length).select()}},
maybeBackspaceChip_:function(){var f=JCe(!1);if(f){var H=_.Yd(),v=H.JSC$11327_getStartNode();H=H.JSC$11327_getStartOffset();_.Bt(v,H,f,0).select()}},
maybeBackspaceChipWordMode_:function(f){var H=_.Yd();if(H.isCollapsed()){var v=H.JSC$11327_getStartNode();H=H.JSC$11327_getStartOffset();var t=ldb(v,H,!0);t&&(_.Bt(v,H,t,0).select(),document.execCommand("delete"),f.preventDefault(),f.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(f){var H=_.Yd();if(H.isCollapsed()){var v=H.JSC$11327_getStartNode();H=H.JSC$11327_getStartOffset();var t=ldb(v,H,!1);t&&(_.Bt(v,H,t,t.childNodes.length).select(),document.execCommand("delete"),f.preventDefault(),f.stopImmediatePropagation())}},
onTap_:function(f){if(!f.defaultPrevented&&(f.currentTarget.tagName==="YTD-COMMENTBOX"&&Rc(f.target)&&f.preventDefault(),this.isEmojiPickerDisplayed)){var H=this.$$("#emojis"),v=this.$$("#emoji-button"),t=this.getEditableTextArea_();if((f=f.path?f.path:f.composedPath&&f.composedPath())&&!f.includes(H)&&!f.includes(t)&&!f.includes(v))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(f,H,v){return f==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&H!==void 0&&H.encryptedBlobId!==null&&H.sourceExternalVideoId!==null&&v!==void 0&&v.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(f,H){return f==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!H&&!!H.videoRenderer&&!!H.videoRenderer.videoId},
isValidPrefilledAttachment_:function(f,H,v){return this.isValidPrefilledImage_(f,H,v)||this.isValidPrefilledVideo_(f,v)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.J("enable_multi_image_post_creation")){var f=this.$$("ytd-backstage-multi-image-select-renderer");f&&f.hasImages()&&f.cancel()}else(f=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&f.cancel();(f=this.$["poll-attachment"])&&this.hasPoll_&&f.clearPollOptions();(f=this.$["image-poll-attachment"])&&this.hasImagePoll_&&f.resetPollOptions();(f=this.$["quiz-attachment"])&&this.hasQuiz_&&f.resetQuizOptions();
(f=this.$["video-link-attachment"])&&this.hasVideo_&&f.cancel();(f=this.$["access-restrictions-selector"].firstElementChild)&&f.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 _.mF(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.mF(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(f,H){f=dHR(f,this.emojiManager,H).cloneNode(!0);for(H=f.firstChild;H;)if(H.nodeType!==1)H=H.nextSibling;else switch(H.tagName){case "BR":var v=_.U$();_.PCg(v,H);H=v.nextSibling;break;case "DIV":(v=H.lastChild)&&H.nextSibling&&_.B4(_.U$(),v);H.previousSibling&&(H.previousSibling.nodeType===1||H.previousSibling.nodeType===3&&!H.previousSibling.textContent.endsWith("\n"))&&_.x0(_.U$(),H);v&&v.nodeName==="BR"&&_.U1(v);v=H;H.hasChildNodes()?(H=H.firstChild,
_.GHr(v)):(H=H.nextSibling,_.U1(v));break;default:H=H.nextSibling}return UHT(f)},
onAddImageError_:function(f){f.stopPropagation();this.errorMessage_=_.qO(f.detail)},
setTextAreaValue_:function(f){f||(f="");var H=this.getEditableFormattedString_();H.text="";this.getEditableTextArea_().innerText="";typeof f==="string"&&(f={runs:[{text:f}]});H.text=f},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();gF=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var f=this.getEditableTextArea_();f&&(_.DN(f,f.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.a8("HTML_DIR")==="rtl"){var f=this.getEditableTextArea_(),H=this.getTextAreaValue()!==""?"auto":"rtl";f.setAttribute("dir",H)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var f;return ZRH((f=this.$["quiz-attachment"])==null?void 0:f.getExplanationText())||ZRH(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var f=null;if(this.isEmojiButtonDisplayed){var H=this.getInputRange_();H&&(f=this.emojiInput.retrieveTextBeforeRange(H))}this.insertText_(f,!0);this.updateCharCount_();this.setSubmitButton_();f=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=f.scrollHeight>f.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var f=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:f})},
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(f){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(f)},
onPasteEmoji_:function(f){f.preventDefault();f.stopImmediatePropagation();f=f.clipboardData.getData("text/plain");this.insertText_(f,!1,!1)},
insertText_:function(f,H,v){H=H===void 0?!1:H;v=v===void 0?!0:v;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&f){var t=this.getInputRange_().cloneRange();this.emojiManager&&t&&(H&&this.emojiInput.offsetStartOfRangeBy(t,f.length),this.insertTextWithEmojis_(t,f,v),Srs(this.getEditableTextArea_().lastChild)||(t=this.getInputRange_().cloneRange()),t&&(this.emojiInput.updateSuggestions(t,f),this.updateSuggestionOffset_(t)))}},
setSubmitButton_:function(){if(this.data){var f=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",H=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(f||H){var v=this.getTextAreaValue().trim();H=v===this.previousText_;v=!v||this.aboveCharLimit_;f&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(v=this.aboveCharLimit_);this.submitButtonDisabled=
H||v||!this.getTextLength();f&&_.J("enable_post_scheduling")&&(this.submitButtonDisabled=H&&!this.scheduledPublishTimeSec_||v)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.fG,computeCreationBoxClass_:function(f){return f?"focused":"not-focused"},
computeFooterMessageClass_:function(f,H){return H?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(f,H){return H?H:f},
computeFooterMessageHidden_:function(f,H){return!H&&!f},
computePlaceholderText_:function(f,H,v){return(v==="video"||v==="image")&&(f==null?0:f.prefilledPlaceholderText)?f==null?void 0:f.prefilledPlaceholderText:H==="poll"||H==="image-poll"?f==null?void 0:f.pollPostPlaceholderText:H==="quiz"?f==null?void 0:f.quizPostPlaceholderText:H==="image"?f==null?void 0:f.imagePostPlaceholderText:f==null?void 0:f.placeholderText},
computeHideAttachmentButtons_:function(f,H,v,t){return f===void 0?!1:t&&this.getSimpleString(t)===this.getSimpleString(f.rateLimitErrorMessage)?!0:H!=="none"||v!=="none"||!f.videoLinkButton&&!f.pollButton&&!f.imagePollButton&&!f.quizButton&&!f.imageButton},
computeHideDismissableAttachment_:function(f){return f!=="image"&&f!=="video"},
computeHasVideo_:function(f){return f==="video"},
computeHasImage_:function(f){return f==="image"},
computeHasPoll_:function(f){return f==="poll"},
computeHasImagePoll_:function(f){return f==="image-poll"},
computeHasQuiz_:function(f){return f==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(f){return f&&f.backstageAttachment?f.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!f.backstageAttachment.quizRenderer&&!f.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(f){if(this.isValidPrefilledAttachment_(f.purpose,f.prefilledImageData,f.backstageAttachment))return f.backstageAttachment},
computeEditAttachment_:function(f){if(this.computePrefilledContent_(f)===void 0)return f.backstageAttachment},
computeAuthorThumbnailDimension_:function(f,H){return f&&!H?24:40},
computeImageUploadEndpoint_:function(f){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",f)},
computeRateLimitErrorCommands_:function(f){var H,v;return f==null?void 0:(H=f.advancedTierFeatures)==null?void 0:(v=H.rateLimit)==null?void 0:v.rateLimitCommands},
computeIsBackstageComment_:function(f){return!(!f||f!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(f){return this.get("submitButton.buttonRenderer.serviceEndpoint",f)||this.get("replyButton.buttonRenderer.serviceEndpoint",f)||this.get("postButton.buttonRenderer.serviceEndpoint",f)},
computeSubmitButtonOverride:function(){if(_.J("web_modern_buttons")){var f,H;return{segmentedPosition:this.dropdownSchedulePanel_||!((f=this.data)==null?0:(H=f.postOptionsMenu)==null?0:H.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.J("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(f,H){f=this.get("submitButton.buttonRenderer",f)||this.get("replyButton.buttonRenderer",f)||this.get("postButton.buttonRenderer",f);H&&(f=H);f&&(f=Object.assign({},f),f.serviceEndpoint=void 0,f.isDisabled=this.submitButtonDisabled);return f},
computeHasExternalLinksAccess_:function(f){if(_.J("enable_rfa_external_links")){var H,v,t;return(t=f==null?void 0:(H=f.advancedTierFeatures)==null?void 0:(v=H.externalLinks)==null?void 0:v.allowExternalLinks)!=null?t:!0}return!0},
computeIsEmojiButtonDisplayed_:function(f){return f.emojiButton&&f.emojiPicker&&f.emojiPicker.emojiPickerRenderer&&f.emojiPicker.emojiPickerRenderer.categories?f.emojiPicker.emojiPickerRenderer.categories.find(function(H){return H.emojiPickerCategoryRenderer?H.emojiPickerCategoryRenderer.emojiIds&&H.emojiPickerCategoryRenderer.emojiIds.length>0:H.emojiPickerUpsellCategoryRenderer?H.emojiPickerUpsellCategoryRenderer.emojis&&H.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(f){return f.charLimit?f.charLimit:null},
computeDropdownSchedulingPanel_:function(f,H){if(f==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&H)return H},
computeInlineSchedulingPanel_:function(f,H){if(f==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&H)return H},
computeHideAuthorThumbnail_:function(f,H){return f||this.computeUseIdentityChip_(H)},
computeHideIdentityChipRenderer_:function(f,H){return f||!this.computeUseIdentityChip_(H)},
computeUseIdentityChip_:function(f){return!!f&&!!f.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(f){var H,v,t,M;(f==null?0:(H=f.detail)==null?0:(v=H.endpoint)==null?0:v.ypcGetOffersEndpoint)||(f==null?0:(t=f.detail)==null?0:(M=t.endpoint)==null?0:M.ypcOffersEndpoint)?(f.stopPropagation(),_.WV(this,[f.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",f)&&(f.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(f){this.addedAttachment="video";this.selectedVideoId_=f.detail.videoId},
commentboxStateEntityChanged_:function(f){var H=this;(f==null?void 0:f.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(f==null?void 0:f.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){H.focus()})},
onYtServiceRequestSent_:function(f,H){if(H.actions)for(f=_.V(H.actions),H=f.next();!H.done;H=f.next())H.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(f){this.isLoading=!1;var H=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",f),v,t,M,h=f==null?void 0:(v=f.detail)==null?void 0:(t=v.data)==null?void 0:(M=t.actionResult)==null?void 0:M.commentboxStateEntityKey;if(H)this.errorMessage_=H;else if(h){var y;this.dismissData_=f==null?void 0:(y=f.detail)==null?void 0:y.data;this.commentboxStateKey_=h}else{this.clear();var m;this.fire("yt-commentbox-dismiss",f==null?void 0:(m=f.detail)==
null?void 0:m.data)}},
onYtServiceRequestError_:function(f){f.stopPropagation();this.isLoading=!1;var H,v;if(((H=this.data)==null?void 0:H.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((v=this.data)==null?void 0:v.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(H=this.get("detail.error.args",f)||[],H.length>1&&H[1].message){this.handlePostsServiceRequestError_(H[1].message);return}(f=this.get("detail.error.message",f))?this.errorMessage_=this.data.errorMessage||_.qO(f):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(f){if(_.J("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var H=_.V(this.rateLimitErrorCommands),v=H.next();!v.done;v=H.next())if(v=v.value,v.errorLabel===f){_.sV(v.command,this.hostElement);return}this.errorMessage_=_.qO(f)},
submitIfNotBackstagePost_:function(f){if(!this.isBackstagePost)this.onSubmit_(f)},
onSubmit_:function(f){var H=this,v,t,M,h,y,m,W,I,S,d,Z,l,L,r,n;return _.Y(function(Q){switch(Q.nextAddress){case 1:f.stopPropagation();if(!H.serviceEndpoint||!H.isValidInput_())return Q.return();if(H.shouldShowPostAadcNotice_())return H.showPostAadcNotice_(),Q.return();if(H.shouldShowCommentAadcNotice_())return H.showCommentAadcNotice_(),Q.return();if(!(H.$$("ytd-backstage-multi-image-select-renderer")&&H.hasImage_&&_.J("enable_multi_image_post_creation"))){Q.jumpTo(2);break}v=H.$$("ytd-backstage-multi-image-select-renderer");
return Q.yield(v.getAllUploadStatuses(),3);case 3:t=Q.yieldResult;if(!t)return Q.return();M=_.V(t);for(h=M.next();!h.done;h=M.next())if(y=h.value,y.encryptedBlobId===void 0)return H.isLoading=!1,W=m=void 0,H.errorMessage_=(W=(m=H.imageUploadEndpoint_)==null?void 0:m.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?W:null,Q.return();return Q.return(H.submitForm_(void 0,void 0,void 0,void 0,v.images,H.taggedVideoId_));case 2:if(!H.hasImagePoll_||!H.$["image-poll-attachment"]){Q.jumpTo(4);
break}return Q.yield(H.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:I=Q.yieldResult;if(!I)return Q.return();S=_.V(I);for(d=S.next();!d.done;d=S.next())if(Z=d.value,!Z.encryptedBlobId)return H.isLoading=!1,l=void 0,H.errorMessage_=(l=H.data.errorMessage)!=null?l:null,Q.return();case 4:r=(L=H.$$("ytd-backstage-image-select-renderer"))&&L.uploadPromise(),n=H.getSharedPostId_(),r?r.then(function(){H.submitForm_.apply(H,_.pS(_.NA.apply(0,arguments)))}).catch(function(C){H.isLoading=!1;
H.errorMessage_=_.qO(C.message)}):H.selectedVideoId_?H.submitForm_(void 0,H.selectedVideoId_):H.prefilledAttachment_==="image"?H.submitForm_(H.prefilledImageData_.encryptedBlobId,void 0,void 0,H.prefilledImageData_.sourceExternalVideoId,void 0,H.taggedVideoId_):H.prefilledAttachment_==="video"?H.submitForm_(void 0,H.data.backstageAttachment.videoRenderer.videoId):n?H.submitForm_(void 0,void 0,n):H.taggedVideoId_!==void 0?H.submitForm_(void 0,void 0,void 0,void 0,void 0,H.taggedVideoId_):H.submitForm_(),
_.Bj(Q)}})},
openSchedulingPanel:function(f){f&&f.scheduleButton&&f.scheduleButton.buttonRenderer&&(this.scheduleButton_=f.scheduleButton.buttonRenderer);f&&f.dateTimePicker&&this.set("data.schedulingDateTimePicker",f.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(f){f.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(f){f.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(f){f.stopPropagation();f.detail.alertMessage&&(this.alertMessage_=f.detail.alertMessage)},
onImageSelected_:function(f){f.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(f){f.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(f){f.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(f.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(f){f.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(f){var H=this.$["video-link-attachment"];H&&H.onLaunchVideoPicker(f)},
onAttachmentDismiss_:function(f){f.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"&&_.J("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.J("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 f;if(this.addedAttachment==="image-poll"&&((f=this.$["image-poll-attachment"])==null||!f.isValid()))return!1;var H;if(this.addedAttachment==="quiz"&&((H=this.$["quiz-attachment"])==null||!H.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;f=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(f=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")f=!0;return f||!!this.getTextAreaValue().trim()},
submitForm_:function(f,H,v,t,M,h){var y=this.getTextAreaValue().trim(),m={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&y===this.previousText_&&(y=void 0);y!==void 0&&(m.comment_text=y);this.isLoading=!0;h!=void 0&&(m.tagged_video_id=h);f?(m.image_blob_id=f,this.imagePreviewCoordinates_&&(m.image_preview_coordinates=this.imagePreviewCoordinates_)):H?m.attached_video_id=H:v?m.shared_post_id=v:M&&M.length>0&&(m.images_data=M.map(function(W){return{encryptedBlobId:W.encryptedBlobId,
previewCoordinates:W.previewCoordinates}}));
t&&(m.source_video_id=t);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(m.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(m.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(m.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.J("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(m.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.J("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(m.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.WV(this,[this.serviceEndpoint,m])},
onIsInputFocusChanged_:function(f,H){f?this.fire("yt-autonav-pause-focus"):H!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(f){var H=this.getEditableTextArea_();[].concat(_.pS(f.dataTransfer.items)).forEach(function(v){v.kind==="string"&&v.type.match("^text/plain")&&v.getAsString(function(t){H.appendChild(document.createTextNode(t))})});
f.preventDefault()},
preventDefault_:function(f){f.preventDefault()},
onSuggestionInsert_:function(f){this.insertTextWithEmojis_(f.detail.range,f.detail.text)},
onEmojiSuggestionClick_:function(f){this.emojiInput.insertSuggestion(f.detail)},
computeSubmitButtonClass_:function(f,H){return!H||f?"":"with-options"},
updateSuggestionOffset_:function(f){if(this.emojiInput&&_.mF(this.emojiInput).querySelector("#dropdown")){var H=this.getEditableTextArea_().getBoundingClientRect().bottom,v=f.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(H-v)+5;H=this.getEditableTextArea_().getBoundingClientRect().left;f=f.getBoundingClientRect().left-H;_.mF(this.emojiInput).querySelector("#dropdown").style.marginLeft=f+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(f){if(_.J("enable_post_scheduling")&&this.data&&this.data.purpose){f=f.detail;if(Math.floor(Date.now()/1E3)>=f)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var H=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(H)||H!==f?this.scheduledPublishTimeSec_=f:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=f;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var f=["image-button","image-poll-button","poll-button"];_.J("enable_quiz_creation")&&f.push("quiz-button");_.J("auto_convert_posts_video_tag")||f.push("video-link-button");return f},
getButtonRenderer:function(f,H){if(f)switch(H){case "video-link-button":var v;return((v=f.videoLinkButton)==null?void 0:v.buttonRenderer)||void 0;case "image-button":var t;return((t=f.imageButton)==null?void 0:t.buttonRenderer)||void 0;case "poll-button":var M;return((M=f.pollButton)==null?void 0:M.buttonRenderer)||void 0;case "image-poll-button":var h;return((h=f.imagePollButton)==null?void 0:h.buttonRenderer)||void 0;case "quiz-button":var y;return((y=f.quizButton)==null?void 0:y.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var f;return(f=this.data)==null||!f.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var f,H;return!((f=this.data)==null||!f.openAadcDialog)&&!((H=this.aadcGuidelinesState_)==null||!H.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.a8("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var f;((f=this.data)==null?0:f.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.P8("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(f){f.clickTrackingParams&&_.UV().clickCommand(f);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.mb(this,"yt-close-popup-action")},
onHideIdentityChip:function(f){var H;this.set("data.placeholderText",(H=f.hideIdentityChipAction)==null?void 0:H.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var Ik=function(){var f=_.K.apply(this,arguments)||this;f.isOpen=!1;f.modern=_.J("web_modern_buttons");f.roundedContainer=!0;f.dropdownButtonOverride=_.J("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;f.inPopupContainer=!1;f.isCommentboxLoading=!1;var H=["image-button","image-poll-button","poll-button"];_.J("enable_quiz_creation")&&H.push("quiz-button");_.J("auto_convert_posts_video_tag")||H.push("video-link-button");f.attachmentButtonIds=H;f.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 f};
_.e(Ik,_.K);_.R=Ik.prototype;_.R.computeButtonOverride=function(){var f;return((f=this.data)==null?0:f.postOptionsMenu)&&_.J("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.R.configureRendererStamper=function(){var f={"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]]"}}}}};_.J("auto_convert_posts_video_tag")||(f["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return f};
_.R.ready=function(){var f=this,H=_.mF(this.hostElement).querySelector("#placeholder-area"),v=function(t){f.onOpen(t)};
H.addEventListener("tap",v);H.addEventListener("keypress",v)};
_.R.showButtonEduTooltip=function(){var f,H,v,t,M,h,y;if(_.J("enable_quiz_creation")&&((f=this.data)==null?0:(H=f.quizButton)==null?0:(v=H.buttonRenderer)==null?0:(t=v.hint)==null?0:(M=t.hintRenderer)==null?0:(h=M.content)==null?0:(y=h.bubbleHintRenderer)==null?0:y.text)&&(_.tp.getInstance(),f=MB(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(f==null?void 0:
f.length)>0)){this.ytComponentBehavior.resolveCommand(f[0],{form:{element:this.quizButton}});return}var m;if((m=this.data)==null?0:m.imagePollButtonTooltip)if(_.tp.getInstance(),m=MB(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(m==null?void 0:m.length)>0){this.ytComponentBehavior.resolveCommand(m[0],{form:{element:this.imagePollButton}});return}var W;_.J("enable_multi_image_post_creation")&&
((W=this.data)==null?0:W.multiImageButtonTooltip)&&(_.tp.getInstance(),W=MB(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(W==null?void 0:W.length)>0&&this.ytComponentBehavior.resolveCommand(W[0],{form:{element:this.imageButton}}))};
_.R.onCreatePollAction=function(f){_.U(f,SBg)&&(this.JSC$15779_commentbox.addedAttachment="poll",this.openDialog())};
_.R.onAddVideoLinkAction=function(f){if(_.U(f,WQh))this.JSC$15779_commentbox.onAddVideoLink(f)};
_.R.onShowSchedulingPanelCommand=function(f){(f=_.U(f,G_h))&&this.openSchedulingPanel(f)};
_.R.onCreateImagePollCommand=function(f){_.U(f,mQ_)&&(this.JSC$15779_commentbox.openImagePollComponent(),this.openDialog())};
_.R.onCreateQuizCommand=function(f){_.U(f,$QC)&&(this.JSC$15779_commentbox.openQuizComponent(),this.openDialog())};
_.R.openSchedulingPanel=function(f){_.J("enable_post_scheduling")&&(this.openDialog(),this.JSC$15779_commentbox.openSchedulingPanel(f))};
_.R.onCreateCommentAction=function(f){this.get("createCommentAction.contents",f)&&(this.JSC$15779_commentbox.clear(),this.closeDialog())};
_.R.onOpen=function(f){f instanceof KeyboardEvent&&f.type==="keypress"&&f.keyCode!==13&&f.keyCode!==32||(this.data.prepareAccountEndpoint?_.YE(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.R.onYtCommentboxDismiss=function(){this.closeDialog()};
_.R.onYtCommentboxLoadingStart=function(f){f.stopPropagation();this.isCommentboxLoading=!0};
_.R.onYtCommentboxLoadingEnd=function(f){f.stopPropagation();this.isCommentboxLoading=!1};
_.R.onYtVideoLinkButtonCancel=function(f){f.stopPropagation();this.onOpen(f)};
_.R.onYtVideoLinkSelected=function(f){f.stopPropagation();this.onOpen(f)};
_.R.onIronSelect=function(f){f.stopPropagation();f.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=f.detail.item.value&&(this.accessRestriction?(this.accessRestriction=f.detail.item.value,this.onOpen(f)):this.accessRestriction=f.detail.item.value)};
_.R.onYtNavigate=function(f){this.get("detail.endpoint.backstageImageUploadEndpoint",f)&&(this.JSC$15779_commentbox.addedAttachment="image",this.JSC$15779_commentbox.submitButtonDisabled=!0,this.onOpen(f))};
_.R.onRequestSent=function(f){if(_.J("web_button_rework"))for(var H=_.V(f.detail),v=H.next();!v.done;v=H.next())_.U(v.value,l6n)&&(this.JSC$15779_commentbox.addedAttachment="image",this.JSC$15779_commentbox.submitButtonDisabled=!0,this.onOpen(f))};
_.R.openDialog=function(){this.JSC$15779_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$15779_commentbox.focus()};
_.R.onPopupClosed=function(){_.tp.getInstance()};
_.R.computeCreationDisabled=function(f){return!!f};
_.R.computeIsCreationDialog=function(f){return!!f&&f==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.R.computeDisabledPostButton=function(f){if(!f)return null;f.isDisabled=!0;return f};
_.R.computeIsCreationDialogWithHeader=function(f){return!this.inPopupContainer&&!!f&&!!f.authorText&&f.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.R.computeIsHeaderHidden=function(f,H){return!f||H};
_.R.computeDropdownRendererClasses=function(f){return f?["text-secondary-style"]:[]};
_.R.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var f=_.mF(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;f&&f.reset()};
Ik.prototype.onPopupClosed=Ik.prototype.onPopupClosed;Ik.prototype.onRequestSent=Ik.prototype.onRequestSent;Ik.prototype.onYtNavigate=Ik.prototype.onYtNavigate;Ik.prototype.onIronSelect=Ik.prototype.onIronSelect;Ik.prototype.onYtVideoLinkSelected=Ik.prototype.onYtVideoLinkSelected;Ik.prototype.onYtVideoLinkButtonCancel=Ik.prototype.onYtVideoLinkButtonCancel;Ik.prototype.onYtCommentboxLoadingEnd=Ik.prototype.onYtCommentboxLoadingEnd;Ik.prototype.onYtCommentboxLoadingStart=Ik.prototype.onYtCommentboxLoadingStart;
Ik.prototype.onYtCommentboxDismiss=Ik.prototype.onYtCommentboxDismiss;Ik.prototype.showButtonEduTooltip=Ik.prototype.showButtonEduTooltip;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Ik.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Ik.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Ik.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Ik.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Ik.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Ik.prototype,"isOpen",void 0);_.E([_.F({computed:"computeButtonOverride(data)"}),_.N("design:type",Object)],Ik.prototype,"buttonOverride",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Ik.prototype,"modern",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Ik.prototype,"roundedContainer",void 0);_.E([_.F(),_.N("design:type",Object)],Ik.prototype,"dropdownButtonOverride",void 0);_.E([_.F({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.N("design:type",Boolean)],Ik.prototype,"creationDisabled",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ik.prototype,"enableCreationBox",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.N("design:type",Boolean)],Ik.prototype,"isCreationDialog",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Ik.prototype,"inPopupContainer",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.N("design:type",Boolean)],Ik.prototype,"isCreationDialogWithHeader",void 0);_.E([_.F(),_.N("design:type",Object)],Ik.prototype,"accessRestriction",void 0);
_.E([_.F({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.N("design:type",Array)],Ik.prototype,"dropdownRendererClasses",void 0);_.E([_.F(),_.N("design:type",Object)],Ik.prototype,"isCommentboxLoading",void 0);_.E([_.F(),_.N("design:type",Array)],Ik.prototype,"attachmentButtonIds",void 0);_.E([_.lJ("#image-button"),_.N("design:type",HTMLElement)],Ik.prototype,"imageButton",void 0);
_.E([_.lJ("#image-poll-button"),_.N("design:type",HTMLElement)],Ik.prototype,"imagePollButton",void 0);_.E([_.lJ("#quiz-button"),_.N("design:type",HTMLElement)],Ik.prototype,"quizButton",void 0);_.E([_.lJ("#commentbox"),_.N("design:type",Object)],Ik.prototype,"JSC$15779_commentbox",void 0);_.E([_.Zw("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ik.prototype,"showButtonEduTooltip",null);
_.E([_.sE("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ik.prototype,"onYtCommentboxDismiss",null);_.E([_.sE("yt-commentbox-loading-start"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ik.prototype,"onYtCommentboxLoadingStart",null);
_.E([_.sE("yt-commentbox-loading-end"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ik.prototype,"onYtCommentboxLoadingEnd",null);_.E([_.sE("yt-video-link-button-cancel"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ik.prototype,"onYtVideoLinkButtonCancel",null);
_.E([_.sE("yt-video-link-selected"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ik.prototype,"onYtVideoLinkSelected",null);_.E([_.sE("iron-select"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ik.prototype,"onIronSelect",null);_.E([_.sE("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ik.prototype,"onYtNavigate",null);
_.E([_.sE("yt-service-request-sent-button-renderer"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ik.prototype,"onRequestSent",null);_.E([_.sE("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ik.prototype,"onPopupClosed",null);_.E([_.u({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],Ik);
_.G(Ik,"ytd-backstage-post-dialog-renderer",function(){if(JUZ!==void 0)return JUZ;var f=document.createElement("template");_.x(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n  [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n    <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return JUZ=f},{mode:1});var fiC;var HI_;var SQ=function(){return _.K.apply(this,arguments)||this};
_.e(SQ,_.K);_.R=SQ.prototype;_.R.computeHeartButtonStyle=function(f){return(f==null?0:f.styleType)?f.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.R.onYtButtonTap=function(){if(this.data.isEnabled){var f=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(f=this.getEndpoint(f))&&_.t8().resolve(_.MJ).resolveCommand(f,{form:{element:this.hostElement}})}else(f=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(f)};
_.R.toggle=function(f){this.set("data.isHearted",f!==void 0?f:!this.data.isHearted)};
_.R.getEndpoint=function(f){var H,v=(H=this.data)==null?void 0:H.heartEndpoint,t;H=(t=this.data)==null?void 0:t.unheartEndpoint;if(v&&H)return f?H:v};
_.R.computeButtonAccessibility=function(f,H){var v,t,M=f==null?void 0:(v=f.heartedAccessibility)==null?void 0:(t=v.accessibilityData)==null?void 0:t.label,h,y;f=f==null?void 0:(h=f.unheartedAccessibility)==null?void 0:(y=h.accessibilityData)==null?void 0:y.label;return H?M:f};
_.H7.Object.defineProperties(SQ.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 f;return _.J("kevlar_system_icons")&&!((f=this.data)==null||!f.isHearted)}}});
SQ.prototype.onYtButtonTap=SQ.prototype.onYtButtonTap;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],SQ.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.fm),_.N("design:type",Object)],SQ.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],SQ.prototype,"data",void 0);_.E([_.z("data.isHearted"),_.N("design:type",Object),_.N("design:paramtypes",[])],SQ.prototype,"heartTooltip",null);
_.E([_.z("data.isHearted"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],SQ.prototype,"iconFilled",null);_.E([_.F({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.N("design:type",String)],SQ.prototype,"buttonAccessibility",void 0);_.E([_.F({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.N("design:type",String)],SQ.prototype,"heartButtonStyle",void 0);
_.E([_.sE("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SQ.prototype,"onYtButtonTap",null);_.E([_.u({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],SQ);
_.G(SQ,"ytd-creator-heart-renderer",function(){if(HI_!==void 0)return HI_;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return HI_=f},{mode:1});var dF=function(){var f=_.K.apply(this,arguments)||this;f.hasCreatorReply=!1;f.buttonOverrides={size:"S",iconPosition:"icon-only"};f.replyButtonOverrides={size:"S",type:"text"};f.forceIconButton=!_.J("web_modern_buttons");f.modern=_.J("web_modern_buttons");f.buttonTooltipPosition="bottom";f.systemIcons=_.J("kevlar_system_icons");f.replyDialog=null;return f};
_.e(dF,_.K);_.R=dF.prototype;
_.R.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]]"}}}}}};
_.R.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.R.dataChange=function(){this.replyDialog&&_.mF(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var f,H,v;this.isLiked=this.systemIcons&&!!((f=this.data)==null?0:(H=f.likeButton)==null?0:(v=H.toggleButtonRenderer)==null?0:v.isToggled)};
_.R.computeShowVoteCountBeginning=function(f,H){return f===void 0||H===void 0?!0:f.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!H&&this.ytRendererBehavior.getSimpleString(H)!=="0"};
_.R.computeShowVoteCountEnd=function(f,H){return f===void 0||H===void 0?!0:f.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!H&&this.ytRendererBehavior.getSimpleString(H)!=="0"};
_.R.computeShowCommentCount=function(f,H){return f===void 0||H===void 0?!0:f.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!H&&this.ytRendererBehavior.getSimpleString(H)!=="0"};
_.R.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.R.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.R.showReplyDialog=function(f){f&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.mF(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=f,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.R.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.R.onRequestSent=function(f){if(_.J("web_button_rework")){f=_.V(f.detail);for(var H=f.next();!H.done;H=f.next())(H=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",H.value))&&this.showReplyDialog(H)}};
_.R.onYtNavigate=function(f){var H,v;(f=(H=_.U(f.detail.endpoint,_.eRo))==null?void 0:(v=H.dialog)==null?void 0:v.commentReplyDialogRenderer)&&this.showReplyDialog(f)};
_.R.onYtServiceRequestSent=function(f,H){f.stopPropagation();if(H.actions)for(f=0;f<H.actions.length;f++){var v=_.U(H.actions[f],le_);v&&this.handleUpdateCommentVoteAction(v)}};
_.R.handleUpdateCommentVoteAction=function(f){this.voteCount=f.voteCount||_.qO("0");f.voteStatus==="LIKE"?this.JSC$15790_ytdDislikeToggleButtonRenderer.toggle(!1):f.voteStatus==="DISLIKE"?this.JSC$15790_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15790_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15790_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.R.computeReplyButtonHidden=function(f){return f};
_.R.computeReplyButtonBeginning=function(f){return(f==null?0:f.replyButton)&&f.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?f.replyButton:void 0};
_.R.computeReplyButtonEnd=function(f){return(f==null?0:f.replyButton)&&f.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?f.replyButton:void 0};
_.R.computeActionButtonStyle=function(f){return(f==null?0:f.style)?f.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.R.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.R.onYtToggleButton=function(f){var H,v;this.isLiked=this.systemIcons&&!!((H=f.detail)==null?0:(v=H.actions)==null?0:v.like)};
dF.prototype.onYtToggleButton=dF.prototype.onYtToggleButton;dF.prototype.onButtonTooltipPositionChanged=dF.prototype.onButtonTooltipPositionChanged;dF.prototype.onYtServiceRequestSent=dF.prototype.onYtServiceRequestSent;dF.prototype.onYtNavigate=dF.prototype.onYtNavigate;dF.prototype.onRequestSent=dF.prototype.onRequestSent;dF.prototype.onYtCommentboxDismiss=dF.prototype.onYtCommentboxDismiss;dF.prototype.dataChange=dF.prototype.dataChange;
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],dF.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],dF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],dF.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],dF.prototype,"voteCount",void 0);_.E([_.F(),_.N("design:type",Object)],dF.prototype,"commentCount",void 0);_.E([_.F(),_.N("design:type",Object)],dF.prototype,"replyThumbnail",void 0);
_.E([_.F(),_.N("design:type",Object)],dF.prototype,"hasCreatorReply",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],dF.prototype,"enableCreationBox",void 0);_.E([_.F({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.N("design:type",String)],dF.prototype,"actionButtonsStyle",void 0);_.E([_.F({computed:"computeReplyButtonBeginning(data)"}),_.N("design:type",Object)],dF.prototype,"replyButtonBeginning",void 0);
_.E([_.F({computed:"computeReplyButtonEnd(data)"}),_.N("design:type",Object)],dF.prototype,"replyButtonEnd",void 0);_.E([_.F(),_.N("design:type",Object)],dF.prototype,"buttonOverrides",void 0);_.E([_.F(),_.N("design:type",Object)],dF.prototype,"replyButtonOverrides",void 0);_.E([_.F(),_.N("design:type",Object)],dF.prototype,"forceIconButton",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],dF.prototype,"useCommentIcon",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],dF.prototype,"modern",void 0);_.E([_.F(),_.N("design:type",Object)],dF.prototype,"buttonTooltipPosition",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],dF.prototype,"systemIcons",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],dF.prototype,"isLiked",void 0);_.E([_.lJ("ytd-button-renderer"),_.N("design:type",Object)],dF.prototype,"ytdReplyButtonRenderer",void 0);
_.E([_.lJ("#like-button"),_.N("design:type",Object)],dF.prototype,"JSC$15790_ytdLikeToggleButtonRenderer",void 0);_.E([_.lJ("#dislike-button"),_.N("design:type",Object)],dF.prototype,"JSC$15790_ytdDislikeToggleButtonRenderer",void 0);_.E([_.lJ("#reply-dialog"),_.N("design:type",HTMLElement)],dF.prototype,"replyDialogElement",void 0);_.E([_.lJ("#reply-button"),_.N("design:type",HTMLElement)],dF.prototype,"replyButtonElement",void 0);
_.E([_.lJ("#reply-button-end"),_.N("design:type",HTMLElement)],dF.prototype,"replyButtonEndElement",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dF.prototype,"dataChange",null);_.E([_.sE("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],dF.prototype,"onYtCommentboxDismiss",null);
_.E([_.sE("yt-service-request-sent-button-renderer"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],dF.prototype,"onRequestSent",null);_.E([_.sE("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],dF.prototype,"onYtNavigate",null);
_.E([_.sE("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.ER]),_.N("design:returntype")],dF.prototype,"onYtServiceRequestSent",null);_.E([_.Zw("buttonTooltipPosition"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dF.prototype,"onButtonTooltipPositionChanged",null);
_.E([_.sE("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],dF.prototype,"onYtToggleButton",null);_.E([_.u({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],dF);
_.G(dF,"ytd-comment-action-buttons-renderer",function(){if(fiC!==void 0)return fiC;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return fiC=f},{mode:1});var vqr;var jQ=function(){return _.K.apply(this,arguments)||this};
_.e(jQ,_.K);jQ.prototype.focus=function(){_.mF(this.hostElement).querySelector("#commentbox").focus()};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],jQ.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],jQ.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],jQ.prototype,"zeroStepChannelCreationRenderer",void 0);_.E([_.u({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],jQ);
_.G(jQ,"ytd-comment-dialog-renderer",function(){if(vqr!==void 0)return vqr;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return vqr=f},{mode:1});var tPv;var sW=function(){var f=_.K.apply(this,arguments)||this;f.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.J("enable_web_delhi_icons")};f.replyButtonOverrides={size:"S",type:"text"};return f};
_.e(sW,_.K);_.R=sW.prototype;_.R.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.R.detached=function(){this.replyBox&&this.replyBox.remove()};
_.R.showReplyDialog=function(f){if(f){var H=this.replyBox;H||(H=document.createElement("ytd-comment-reply-dialog-renderer"),H.id="replybox",_.mF(this.replyDialogDiv).appendChild(H));H.data=f;this.replyDialogDiv.hidden=!1;H.openDialog()}};
_.R.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.R.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var f,H=_.U((f=this.toolbarSurface)==null?void 0:f.subscribersOnlyDisclaimerSnackbarCommand,_.PK);H&&_.YE(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:H})}};
_.R.onYtServiceRequestSent=function(f,H){f.stopPropagation();if(H.actions)for(var v=0;v<H.actions.length;v++){var t=_.U(H.actions[v],le_);t?this.handleUpdateCommentVoteAction(t):f.target===this.heartButton&&this.toggleHeartState()}};
_.R.handleUpdateCommentVoteAction=function(f){var H;(H=this.toolbarState)!=null&&H.key&&this.ytdReduxBehavior.dispatch(_.z7("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:f.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":f.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.R.toggleHeartState=function(){var f;(f=this.toolbarState)!=null&&f.key&&this.ytdReduxBehavior.dispatch(_.z7("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.H7.Object.defineProperties(sW.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var f,H,v;return(((f=this.toolbarState)==null?void 0:f.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(H=this.toolbarData)==null?void 0:H.likeCountLiked:(v=this.toolbarData)==null?void 0:v.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.toolbarSurface)==null?void 0:f.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.toolbarSurface)==null?void 0:f.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.toolbarSurface)==null?void 0:f.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.toolbarSurface)==null?void 0:f.prepareAccountCommand)!==void 0&&!_.J("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var f,H=_.U((f=this.toolbarSurface)==null?void 0:f.prepareAccountCommand,_.PK),v,t,M,h,y,m,W,I,S;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((v=this.toolbarSharedData)==null||!v.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((t=this.toolbarState)==null?void 0:t.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:H!=null?H:_.U((M=this.toolbarSurface)==null?void 0:M.likeCommand,_.PK),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:H!=null?H:_.U((h=this.toolbarSurface)==null?void 0:h.unlikeCommand,_.PK),defaultCommand:this.isVisiblyDisabled?_.U((y=this.toolbarSurface)==null?void 0:y.commentDisabledActionCommand,_.PK):void 0,defaultTooltip:(m=this.toolbarData)==null?void 0:m.likeInactiveTooltip,toggledTooltip:(W=this.toolbarData)==null?void 0:W.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(I=this.toolbarData)==null?void 0:I.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(S=this.toolbarSharedData)==null?void 0:S.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var f,H=_.U((f=this.toolbarSurface)==null?void 0:f.prepareAccountCommand,_.PK),v,t,M,h,y,m,W,I,S,d;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((v=this.toolbarSharedData)==null||!v.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((t=this.toolbarState)==null?void 0:t.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:H!=null?H:_.U((M=this.toolbarSurface)==null?void 0:M.dislikeCommand,_.PK),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:H!=null?H:_.U((h=this.toolbarSurface)==null?void 0:h.undislikeCommand,_.PK),defaultCommand:this.isVisiblyDisabled?_.U((y=this.toolbarSurface)==null?void 0:y.commentDisabledActionCommand,_.PK):void 0,defaultTooltip:(m=this.toolbarData)==null?void 0:m.dislikeInactiveTooltip,toggledTooltip:(W=this.toolbarData)==null?void 0:
W.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(I=this.toolbarSharedData)==null?void 0:I.dislikeReplyButtonA11y:(S=this.toolbarSharedData)==null?void 0:S.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(d=this.toolbarSharedData)==null?void 0:d.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var f,H,v;if(((f=this.toolbarState)==null?void 0:f.heartState)!==void 0&&((H=this.toolbarState)==null?void 0:H.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((v=this.toolbarState)==null?void 0:v.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var t,M,h,y,m,W,I,S,d,Z,l,L,r,n;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(t=this.toolbarData)==null?void 0:t.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((M=this.toolbarState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((h=this.toolbarState)==null?void 0:h.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((y=this.toolbarState)==null?void 0:y.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((m=this.toolbarState)==null?void 0:m.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.U((W=this.toolbarSurface)==null?void 0:W.heartCommand,
_.PK),unheartEndpoint:this.isVisiblyDisabled?void 0:_.U((I=this.toolbarSurface)==null?void 0:I.unheartCommand,_.PK),disabledEndpoint:this.isVisiblyDisabled?_.U((S=this.toolbarSurface)==null?void 0:S.commentDisabledActionCommand,_.PK):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(d=this.toolbarData)==null?void 0:d.heartActiveTooltip,unheartedTooltip:(Z=this.toolbarData)==null?void 0:Z.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((l=
this.toolbarState)==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(L=this.toolbarSharedData)==null?void 0:L.unheartButtonA11y:(r=this.toolbarSharedData)==null?void 0:r.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(n=this.toolbarSharedData)==null?void 0:n.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.toolbarSurface)==null||!f.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var f,H,v,t;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(f=this.commentStrings)==null?void 0:f.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.U((H=this.toolbarSurface)==null?void 0:H.replyCommand,_.PK),command:this.isVisiblyDisabled?_.U((v=this.toolbarSurface)==null?
void 0:v.commentDisabledActionCommand,_.PK):this.isSubsOnlyCommentsIneligibleUser?_.U((t=this.toolbarSurface)==null?void 0:t.subscribersOnlySnackbarCommand,_.PK):void 0}}}});
sW.prototype.onYtServiceRequestSent=sW.prototype.onYtServiceRequestSent;sW.prototype.hideReplyDialogDiv=sW.prototype.hideReplyDialogDiv;_.E([_.F(),_.N("design:type",Object)],sW.prototype,"commentStrings",void 0);_.E([_.F(),_.N("design:type",Boolean)],sW.prototype,"isReply",void 0);_.E([_.F(),_.N("design:type",Object)],sW.prototype,"toolbarData",void 0);_.E([_.F(),_.N("design:type",Object)],sW.prototype,"toolbarSharedData",void 0);
_.E([_.F(),_.N("design:type",String)],sW.prototype,"toolbarStateKey",void 0);_.E([_.F(),_.N("design:type",String)],sW.prototype,"toolbarSurfaceKey",void 0);_.E([_.B(_.um),_.N("design:type",Object)],sW.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],sW.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],sW.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.B(_.fm),_.N("design:type",Object)],sW.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.lJ("#reply-dialog"),_.N("design:type",HTMLElement)],sW.prototype,"replyDialogDiv",void 0);_.E([_.lJ("#replybox"),_.N("design:type",Object)],sW.prototype,"replyBox",void 0);_.E([_.lJ("ytd-creator-heart-renderer"),_.N("design:type",Object)],sW.prototype,"heartButton",void 0);_.E([_.F({selector:function(f,H){return _.dL(f.entities,"engagementToolbarStateEntityPayload",H)},
selectorArgs:["toolbarStateKey"]}),_.N("design:type",Object)],sW.prototype,"toolbarState",void 0);_.E([_.F({selector:Nds,selectorArgs:["toolbarSurfaceKey"]}),_.N("design:type",Object)],sW.prototype,"toolbarSurface",void 0);_.E([_.F(),_.N("design:type",Object)],sW.prototype,"buttonOverrides",void 0);_.E([_.sE("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sW.prototype,"hideReplyDialogDiv",null);
_.E([_.z("toolbarData","toolbarState"),_.N("design:type",String),_.N("design:paramtypes",[])],sW.prototype,"likeCount",null);_.E([_.z("likeCount"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],sW.prototype,"showLikeCount",null);_.E([_.z("toolbarSurface"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],sW.prototype,"isVisiblyDisabled",null);_.E([_.z("toolbarSurface"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],sW.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.E([_.z("toolbarSurface"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],sW.prototype,"isSubsOnlyCommentsEligibleUser",null);_.E([_.z("toolbarSurface"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],sW.prototype,"hasPrepareAccountCommand",null);_.E([_.z("toolbarData","toolbarState","toolbarSurface"),_.N("design:type",Object),_.N("design:paramtypes",[])],sW.prototype,"likeToggleButtonRenderer",null);
_.E([_.z("isReply","toolbarData","toolbarState","toolbarSurface"),_.N("design:type",Object),_.N("design:paramtypes",[])],sW.prototype,"dislikeToggleButtonRenderer",null);_.E([_.z("toolbarData","toolbarState","toolbarSurface"),_.N("design:type",Object),_.N("design:paramtypes",[])],sW.prototype,"creatorHeartSupportedRenderer",null);_.E([_.z("toolbarSurface"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],sW.prototype,"hasReplyCommand",null);
_.E([_.z("toolbarSurface","commentStrings","isVisiblyDisabled"),_.N("design:type",Object),_.N("design:paramtypes",[])],sW.prototype,"replyButtonRenderer",null);_.E([_.F(),_.N("design:type",Object)],sW.prototype,"replyButtonOverrides",void 0);_.E([_.sE("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.ER]),_.N("design:returntype")],sW.prototype,"onYtServiceRequestSent",null);_.E([_.u({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],sW);
_.G(sW,"ytd-comment-engagement-bar",function(){if(tPv!==void 0)return tPv;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return tPv=f},{mode:1});var MPb;var Zz=function(){return _.K.apply(this,arguments)||this};
_.e(Zz,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Zz.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Zz.prototype,"data",void 0);_.E([_.u({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],Zz);
_.G(Zz,"ytd-comment-inline-thumbnail-renderer",function(){if(MPb!==void 0)return MPb;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return MPb=f},{mode:1});var h1C;var Jn=function(){return _.K.apply(this,arguments)||this};
_.e(Jn,_.K);Jn.prototype.onMessageTap=function(){if(this.onTapCommand){var f=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);f&&this.ytdOpenPopupBehavior.openPopup(f)}};
_.H7.Object.defineProperties(Jn.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var f,H,v;return(f=this.data)==null?void 0:(H=f.button)==null?void 0:(v=H.buttonRenderer)==null?void 0:v.command}}});
_.E([_.B(_.fm),_.N("design:type",Object)],Jn.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Jn.prototype,"data",void 0);_.E([_.z("data.button.buttonRenderer.command"),_.N("design:type",Object),_.N("design:paramtypes",[])],Jn.prototype,"onTapCommand",null);_.E([_.u({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],Jn);
_.G(Jn,"ytd-comment-pause-composer-renderer",function(){if(h1C!==void 0)return h1C;var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return h1C=f},{mode:1});var R1o;var VPv;var ll=function(){var f=_.K.apply(this,arguments)||this;f.isOpen=!1;return f};
_.e(ll,_.K);_.R=ll.prototype;_.R.dataChanged=function(){this.isOpen=!1};
_.R.onTap=function(){this.data&&(this.data.navigationEndpoint?_.YE(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.R.focus=function(){this.JSC$15820_commentbox.focus()};
_.R.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.R.openDialog=function(){this.isOpen=!0;this.JSC$15820_commentbox.focus();this.JSC$15820_commentbox.maybeHeightChanged()};
ll.prototype.onYtCommentboxDismiss=ll.prototype.onYtCommentboxDismiss;ll.prototype.dataChanged=ll.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ll.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],ll.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],ll.prototype,"isOpen",void 0);_.E([_.lJ("#commentbox"),_.N("design:type",Object)],ll.prototype,"JSC$15820_commentbox",void 0);
_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ll.prototype,"dataChanged",null);_.E([_.sE("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],ll.prototype,"onYtCommentboxDismiss",null);_.E([_.u({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],ll);
_.G(ll,"ytd-comment-reply-dialog-renderer",function(){if(VPv!==void 0)return VPv;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return VPv=f},{mode:1});var y6o;var UW=function(){return _.K.apply(this,arguments)||this};
_.e(UW,_.K);_.H7.Object.defineProperties(UW.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var f,H,v=(f=this.data)==null?void 0:(H=f.icon)==null?void 0:H.iconType;return v?"yt-icons:"+v.toLowerCase():null}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],UW.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],UW.prototype,"data",void 0);_.E([_.F(),_.z("data.icon"),_.N("design:type",Object),_.N("design:paramtypes",[])],UW.prototype,"icon",null);_.E([_.u({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],UW);
_.G(UW,"ytd-pinned-comment-badge-renderer",function(){if(y6o!==void 0)return y6o;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return y6o=f},{mode:1});var YCb;var m0Z={},$0H={input:!0,meta:!0,br:!0,link:!0,img:!0},eQ=null;m0Z.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(){eQ==null&&(eQ=document.createElement("tp-yt-paper-tooltip"),eQ.offset=8,eQ.fitToVisibleBounds=!0)},
onMouseOver_:function(f){if(f=_.EZ(f.target,function(M){return M==this||M.getAttribute&&M.getAttribute("shared-tooltip-text")}.bind(this),!0)){var H=f.getAttribute("shared-tooltip-text");
if(H){var v=this,t=null;f!=this&&(f.tagName.toLowerCase()in $0H?v=f.parentElement:v=f,f.id&&(t=f.id));this.polymerController.createTooltipIfRequired_();if(eQ.parentElement!=v||eQ.for!=t)(0,_.gX)(eQ).textContent=H,_.mF(v).appendChild(eQ),eQ.for=t,eQ.animationDelay=this.polymerController.sharedTooltipAnimationDelay,eQ.position=this.polymerController.sharedTooltipPosition}}}};var Lf=function(){return _.K.apply(this,arguments)||this};
_.e(Lf,_.K);Lf.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]]"}}}}}};
Lf.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img");var f;((f=this.data)==null?0:f.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
Lf.prototype.colorChanged=function(){var f,H,v,t=(f=this.data)==null?void 0:(H=f.color)==null?void 0:(v=H.basicColorPaletteData)==null?void 0:v.foregroundBodyColor;t&&(this.rgbBadgeColor=_.NS(t));_.mF(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
Lf.prototype.tooltipChanged=function(){var f;((f=this.data)==null?0:f.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
Lf.prototype.tooltipChanged=Lf.prototype.tooltipChanged;Lf.prototype.colorChanged=Lf.prototype.colorChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Lf.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Lf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(m0Z.YtSharedTooltipBehavior),_.N("design:type",Object)],Lf.prototype,"ytSharedTooltipBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Lf.prototype,"data",void 0);
_.E([_.F({value:"#4285F4"}),_.N("design:type",String)],Lf.prototype,"rgbBadgeColor",void 0);_.E([_.Zw("data.color"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Lf.prototype,"colorChanged",null);_.E([_.Zw("data.tooltip"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Lf.prototype,"tooltipChanged",null);_.E([_.u({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],Lf);
_.G(Lf,"ytd-sponsor-comment-badge-renderer",function(){if(YCb!==void 0)return YCb;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return YCb=f},{mode:1});var Wth;var OIM;var xx=function(){return _.K.apply(this,arguments)||this};
_.e(xx,_.K);xx.prototype.computeState=function(f){switch(f==null?void 0:f.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"}};
xx.prototype.updateStateIdentifier=function(f){if(this.viewModel.triStateKey){var H=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.z7("triStateButtonStateEntityPayload",H,{key:H,stateIdentifier:f}))}};
xx.prototype.onClick=function(){var f=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(){f.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){f.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.H7.Object.defineProperties(xx.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 f;return((f=this.data)==null?void 0:f.buttonText)||""}}});
_.E([_.F(),_.N("design:type",Object)],xx.prototype,"viewModel",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],xx.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],xx.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],xx.prototype,"ytRendererBehavior",void 0);_.E([_.F({selector:ciE,selectorArgs:["viewModel.triStateKey"]}),_.N("design:type",Object)],xx.prototype,"triStateButtonStateEntity",void 0);
_.E([_.F({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.N("design:type",String)],xx.prototype,"state",void 0);_.E([_.z("viewModel","state"),_.N("design:type",Object),_.N("design:paramtypes",[])],xx.prototype,"data",null);_.E([_.z("data"),_.N("design:type",String),_.N("design:paramtypes",[])],xx.prototype,"buttonText",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],xx);
_.G(xx,"ytd-tri-state-button-view-model",function(){if(OIM!==void 0)return OIM;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return OIM=f},{mode:1});var gqo;var IiH;var BJ=function(){var f=_.K.apply(this,arguments)||this;f.defaultIconToFilled=!_.J("kevlar_fill_comment_chip_icon_killswitch");return f};
_.e(BJ,_.K);BJ.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
BJ.prototype.dataChanged=function(){if(this.data){var f,H;((f=this.data.chipColorPalette)==null?0:f.backgroundColor)&&((H=this.data.chipColorPalette)==null?0:H.foregroundTitleColor)&&_.Sr(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.cS(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.cS(this.data.chipColorPalette.foregroundTitleColor)});var v;((v=this.data)==null?0:v.command)?(_.Sr(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.Sr(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}};
BJ.prototype.onTap=function(){var f;if(this.data&&(f=this.data)!=null&&f.command){var H;this.ytComponentBehavior.resolveCommand((H=this.data)==null?void 0:H.command)}};
BJ.prototype.getIconSize=function(){return _.J("kevlar_fill_comment_chip_icon_killswitch")?24:12};
BJ.prototype.onTap=BJ.prototype.onTap;BJ.prototype.dataChanged=BJ.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],BJ.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],BJ.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.dS),_.N("design:type",Object)],BJ.prototype,"ironA11yKeysBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],BJ.prototype,"data",void 0);
_.E([_.F(),_.N("design:type",Object)],BJ.prototype,"basePriceText",void 0);_.E([_.F(),_.N("design:type",Object)],BJ.prototype,"chipIcon",void 0);_.E([_.F(),_.N("design:type",Object)],BJ.prototype,"defaultIconToFilled",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BJ.prototype,"dataChanged",null);_.E([_.sE("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BJ.prototype,"onTap",null);
_.E([_.GW({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],BJ);
_.G(BJ,"yt-pdg-comment-chip-renderer",function(){if(IiH===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;gqo===void 0&&(gqo=document.createElement("template"));var t=gqo;v.call(H,t.content.cloneNode(!0),f.content.firstChild);IiH=f}f=IiH;return f},{mode:2});var z9=function(){var f=_.K.apply(this,arguments)||this;f.useSmallAvatars=_.J("small_avatars_for_comments");f.webWatchCompactComments=_.J("web_watch_compact_comments");f.editDialog=null;return f};
_.e(z9,_.K);_.R=z9.prototype;_.R.onShow=function(){_.ar("cmv",void 0,"wn_comments")};
_.R.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"}}}};
_.R.detached=function(){this.editDialog=null;this.expander.reset()};
_.R.updateBackgroundColor=function(){if(this.backgroundColor){var f={"--ytd-comment-paid-background-color":_.cS(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.Sr(this.hostElement,f)}else _.Sr(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.R.resetExpander=function(){var f;(f=this.expander)==null||f.reset()};
_.R.openEditDialog=function(f){f.dialog&&(this.editDialog=f.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.R.onYtNavigate=function(f){var H=f.detail.endpoint;if(H=_.U(H,_.L4o)||_.U(H,_.x_n))f.stopPropagation(),this.openEditDialog(H)};
_.R.onYtCommentboxDismiss=function(){this.editDialog=null;_.Sr(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.R.onAuthorThumbnailClicked=function(){_.J("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.R.onYtCommentboxResize=function(f){var H;(f==null?0:(H=f.detail)==null?0:H.height)&&_.Sr(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":f.detail.height+"px"})};
_.H7.Object.defineProperties(z9.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 f,H=(f=this.commentEntity)==null?void 0:f.author;return H&&(H.isCreator||H.isVerified||H.isArtist)?{renderer:{authorEndpoint:H.channelPageEndpoint?_.U(H.channelPageEndpoint,_.PK):_.U(H.channelCommand,_.PK),authorText:{runs:[{text:H.displayName}]},color:H.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:H.isArtist?{iconType:"AUDIO_BADGE"}:
H.isVerified?{iconType:H.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:H.isArtist||H.isVerified?H.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var f,H=(f=this.commentEntity)==null?void 0:f.author;return H!=null&&H.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:H.sponsorBadgeUrl}]},tooltip:H.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var f;return _.U((f=this.commentSurfaceEntity)==null?void 0:f.pdgCommentChip,_.Hvh)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var f;return this.voiceReplyContainerViewModel&&((f=this.voiceReplyContainerViewModel)==null?void 0:f.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var f;return _.U((f=this.commentSurfaceEntity)==null?void 0:f.voiceReplyContainerViewModel,KQg)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var f;return this.voiceReplyContainerViewModel&&(f=this.voiceReplyContainerViewModel)!=null&&f.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var f,H;return(H=(f=this.commentSurfaceEntity)==null?void 0:f.commentBackgroundColor)!=null?H:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.J("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var f,H;return(((f=this.commentEntity)==null?void 0:(H=f.properties)==null?void 0:H.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var f,H;if(_.J("enable_profile_cards_on_comments")&&((f=this.commentEntity)==null?0:(H=f.author)==null?0:H.profileCardEndpoint)&&this.viewModel.allowProfileCard){var v,t;return _.U((v=this.commentEntity)==null?void 0:(t=v.author)==null?void 0:t.profileCardEndpoint,_.PK)}var M,h;return _.U((M=this.commentEntity)==null?void 0:(h=M.avatar)==null?void 0:h.endpoint,_.PK)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var f,H;if(_.J("enable_profile_cards_on_comments")&&((f=this.commentEntity)==null?0:(H=f.author)==null?0:H.channelPageEndpoint)){var v,t;return _.U((v=this.commentEntity)==null?void 0:(t=v.author)==null?void 0:t.channelPageEndpoint,_.PK)}var M,h;return _.U((M=this.commentEntity)==null?void 0:(h=M.avatar)==null?void 0:h.endpoint,_.PK)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var f,H,v,t,M=(f=this.commentEntity)==null?void 0:(H=f.avatar)==null?void 0:(v=H.image)==null?void 0:(t=v.sources)==null?void 0:t[0];return M?{thumbnails:[{url:M.url,width:M.width,height:M.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var f,H;return((f=this.commentEntity)==null?0:(H=f.author)==null?0:H.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var f,H;return((f=this.commentEntity)==null?void 0:(H=f.author)==null?void 0:H.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var f,H;return((f=this.commentEntity)==null?void 0:(H=f.properties)==null?void 0:H.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var f;return _.U((f=this.commentSurfaceEntity)==null?void 0:f.publishedTimeCommand,_.PK)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var f,H;if(((f=this.commentEntity)==null?0:f.translatedContent)&&((H=this.translateButtonState)==null?void 0:H.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var v;if((v=this.voiceReplyContainerViewModel)==null?0:v.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var t,M;return((t=this.commentEntity)==null?void 0:(M=t.properties)==null?void 0:M.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var f,H;return((f=this.commentSharedEntity)==null?void 0:(H=f.strings)==null?void 0:H.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var f,H;return((f=this.commentSharedEntity)==null?void 0:(H=f.strings)==null?void 0:H.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.commentEntity)==null||!f.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var f,H,v=(H=_.U((f=this.viewModel)==null?void 0:f.translateButton,re_))!=null?H:{},t,M,h,y,m,W,I,S,d,Z,l;return Object.assign({},v,{untoggledStateData:Object.assign({},v.untoggledStateData,{buttonText:(t=this.commentEntity)==null?void 0:(M=t.translateData)==null?void 0:M.text}),togglingStateData:Object.assign({},v.togglingStateData,{buttonText:(h=this.commentSharedEntity)==null?
void 0:(y=h.strings)==null?void 0:y.translatingText}),toggledStateData:Object.assign({},v.toggledStateData,{buttonText:(m=this.commentSharedEntity)==null?void 0:(W=m.strings)==null?void 0:W.seeOriginalText}),transitionCommand:((I=this.commentEntity)==null?0:I.translatedContent)?void 0:_.U((S=this.commentEntity)==null?void 0:(d=S.translateData)==null?void 0:d.translateComment,_.PK),triStateKey:(Z=this.commentEntity)==null?void 0:(l=Z.properties)==null?void 0:l.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var f,H,v;return((H=_.U(_.U((f=this.toolbarSurface)==null?void 0:f.menuCommand,_.PK),BSh))==null?void 0:(v=H.menu)==null?void 0:v.menuRenderer)||null}}});
z9.prototype.onYtCommentboxResize=z9.prototype.onYtCommentboxResize;z9.prototype.onYtCommentboxDismiss=z9.prototype.onYtCommentboxDismiss;z9.prototype.onYtNavigate=z9.prototype.onYtNavigate;z9.prototype.resetExpander=z9.prototype.resetExpander;z9.prototype.updateBackgroundColor=z9.prototype.updateBackgroundColor;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],z9.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],z9.prototype,"ytdReduxBehavior",void 0);
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],z9.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],z9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.lJ("#author-thumbnail > button"),_.N("design:type",HTMLElement)],z9.prototype,"authorThumbnailAnchor",void 0);_.E([_.F({reflectToAttribute:!0}),_.z("viewModel"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],z9.prototype,"linked",null);
_.E([_.z("viewModel","linked"),_.N("design:type",Object),_.N("design:paramtypes",[])],z9.prototype,"linkedCommentBadge",null);_.E([_.F({reflectToAttribute:!0}),_.z("viewModel"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],z9.prototype,"pinned",null);_.E([_.z("viewModel","pinned"),_.N("design:type",Object),_.N("design:paramtypes",[])],z9.prototype,"pinnedCommentBadge",null);
_.E([_.z("commentEntity","commentSharedEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],z9.prototype,"authorCommentBadge",null);_.E([_.F({reflectToAttribute:!0}),_.z("authorCommentBadge"),_.N("design:type",Object),_.N("design:paramtypes",[])],z9.prototype,"hasAuthorBadge",null);_.E([_.z("commentEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],z9.prototype,"sponsorCommentBadge",null);
_.E([_.F({reflectToAttribute:!0}),_.z("sponsorCommentBadge"),_.N("design:type",Object),_.N("design:paramtypes",[])],z9.prototype,"hasSponsorBadge",null);_.E([_.z("commentSurfaceEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],z9.prototype,"pdgCommentChipRenderer",null);_.E([_.F({reflectToAttribute:!0}),_.z("voiceReplyContainerViewModel"),_.N("design:type",Object),_.N("design:paramtypes",[])],z9.prototype,"hasVoiceReply",null);
_.E([_.z("commentSurfaceEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],z9.prototype,"voiceReplyContainerViewModel",null);_.E([_.z("voiceReplyContainerViewModel"),_.N("design:type",Object),_.N("design:paramtypes",[])],z9.prototype,"voiceReplyUnavailableText",null);_.E([_.F(),_.N("design:type",Object)],z9.prototype,"data",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],z9.prototype,"viewModel",null);
_.E([_.F({selector:function(f,H){return _.dL(f.entities,"commentSharedEntityPayload",H)},
selectorArgs:["viewModel.sharedKey"]}),_.N("design:type",Object)],z9.prototype,"commentSharedEntity",void 0);_.E([_.F({selector:function(f,H){return _.dL(f.entities,"commentEntityPayload",H)},
selectorArgs:["viewModel.commentKey"]}),_.N("design:type",Object)],z9.prototype,"commentEntity",void 0);_.E([_.F({selector:function(f,H){return _.dL(f.entities,"commentSurfaceEntityPayload",H)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.N("design:type",Object)],z9.prototype,"commentSurfaceEntity",void 0);_.E([_.F({selector:Nds,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.N("design:type",Object)],z9.prototype,"toolbarSurface",void 0);_.E([_.F({selector:ciE,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.N("design:type",Object)],z9.prototype,"translateButtonState",void 0);
_.E([_.z("commentSurfaceEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],z9.prototype,"backgroundColor",null);_.E([_.F({reflectToAttribute:!0}),_.z("viewModel"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],z9.prototype,"optimalReadingWidthComments",null);_.E([_.lJ("ytd-expander"),_.N("design:type",Object)],z9.prototype,"expander",void 0);
_.E([_.Zw("backgroundColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],z9.prototype,"updateBackgroundColor",null);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],z9.prototype,"useSmallAvatars",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],z9.prototype,"webWatchCompactComments",void 0);_.E([_.F({reflectToAttribute:!0}),_.z("commentEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],z9.prototype,"isReply",null);
_.E([_.z("commentEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],z9.prototype,"authorThumbnailEndpoint",null);_.E([_.z("commentEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],z9.prototype,"authorNameEndpoint",null);_.E([_.z("commentEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],z9.prototype,"authorThumbnail",null);_.E([_.z("commentEntity"),_.N("design:type",String),_.N("design:paramtypes",[])],z9.prototype,"authorTextClass",null);
_.E([_.z("commentEntity"),_.N("design:type",String),_.N("design:paramtypes",[])],z9.prototype,"authorChannelName",null);_.E([_.z("commentEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],z9.prototype,"publishedTime",null);_.E([_.z("commentSurfaceEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],z9.prototype,"publishedTimeCommand",null);
_.E([_.z("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.N("design:type",Object),_.N("design:paramtypes",[])],z9.prototype,"contentText",null);_.E([_.Zw("contentText"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],z9.prototype,"resetExpander",null);_.E([_.z("commentEntity"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],z9.prototype,"shouldShowReadMoreInitially",null);
_.E([_.z("commentSharedEntity"),_.N("design:type",String),_.N("design:paramtypes",[])],z9.prototype,"expandText",null);_.E([_.z("commentSharedEntity"),_.N("design:type",String),_.N("design:paramtypes",[])],z9.prototype,"collapseText",null);_.E([_.z("commentEntity"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],z9.prototype,"shouldShowTranslateButton",null);
_.E([_.z("commentEntity","commentSharedEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],z9.prototype,"translateButton",null);_.E([_.z("toolbarSurface"),_.N("design:type",Object),_.N("design:paramtypes",[])],z9.prototype,"overflowMenuRenderer",null);_.E([_.F(),_.N("design:type",Object)],z9.prototype,"editDialog",void 0);_.E([_.lJ("ytd-comment-dialog-renderer"),_.N("design:type",Object)],z9.prototype,"editCommentDialogContainer",void 0);
_.E([_.lJ("ytd-comment-reply-dialog-renderer"),_.N("design:type",Object)],z9.prototype,"editReplyDialogContainer",void 0);_.E([_.sE("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],z9.prototype,"onYtNavigate",null);_.E([_.sE("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],z9.prototype,"onYtCommentboxDismiss",null);
_.E([_.sE("yt-commentbox-resize"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],z9.prototype,"onYtCommentboxResize",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-comment-view-model"})],z9);
_.G(z9,"ytd-comment-view-model",function(){if(Wth!==void 0)return Wth;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Wth=f},{mode:_.WK("kevlar_poly_si_batch_j025")?1:2});var Fw=function(){var f=_.K.apply(this,arguments)||this;f.modern=_.J("web_modern_buttons");f.commentThreadingEnabled=_.J("web_delhi_comment_threads");f.isWatchGrid=_.J("kevlar_watch_grid");f.buttonOverrides=f.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};f.JSC$15866_spinnerEl=null;return f};
_.e(Fw,_.K);_.R=Fw.prototype;_.R.configureContinuationPathMap=function(){return _.J("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.R.shouldShowExpandedThreads=function(f,H){return this.commentThreadingEnabled&&!H&&(f==null?void 0:f.length)>0};
_.R.shouldShowCollapsedThreads=function(f,H){return this.commentThreadingEnabled&&H&&f};
_.R.computeThreadRenderer=function(f){return _.U(f,Uc9)};
_.R.computeIsContinuationItem=function(f){return!!this.computeContinuationItemRenderer(f)};
_.R.computeButtonRenderer=function(f){return _.U(f,_.nv)};
_.R.computeContinuationItemRenderer=function(f){return _.U(f,_.bw)};
_.R.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]]"}}}}}};
_.R.attached=function(){this.isShowRepliesVisible=!0};
_.R.dataChanged=function(){var f=this.expanderContents;f&&(f.hidden=!0);this.isLoading=!1};
_.R.endsInContinuation=function(f){return!!f&&f.length>0&&!!this.computeContinuationItemRenderer(f[f.length-1])};
_.R.computeShouldShowHideRepliesButton=function(f,H){return!f&&H};
_.R.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.R.isLoadingChanged=function(){this.isLoading&&!this.JSC$15866_spinnerEl&&(this.JSC$15866_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.mF(this.expanderContents).appendChild(this.JSC$15866_spinnerEl));this.JSC$15866_spinnerEl&&(this.JSC$15866_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var f;(f=this.contents)==null||f.classList.remove("reloading")}};
_.R.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var f=_.U(this.data.viewReplies,_.nv);f&&this.ytRendererBehavior.logExplicitClick(f);this.commentThreadingEnabled&&this.toggleCollapsed&&this.toggleCollapsed()};
_.R.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var f=_.U(this.data.hideReplies,_.nv);f&&this.ytRendererBehavior.logExplicitClick(f);this.commentThreadingEnabled&&this.toggleCollapsed&&this.toggleCollapsed()};
_.R.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var f=_.mF(this.hostElement).querySelector("#expander-contents");f&&(f.hidden=this.isShowRepliesVisible)}};
_.R.computeAlign=function(){if(this.modern){var f;return!((f=this.data)==null?0:f.viewRepliesCreatorThumbnail)}};
_.H7.Object.defineProperties(Fw.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var f,H;return this.endsInContinuation((f=this.data)==null?void 0:f.contents)||this.commentThreadingEnabled&&this.endsInContinuation((H=this.data)==null?void 0:H.subThreads)}}});
Fw.prototype.isShowMoreChanged=Fw.prototype.isShowMoreChanged;Fw.prototype.isLoadingChanged=Fw.prototype.isLoadingChanged;Fw.prototype.triggerFirstContinuation=Fw.prototype.triggerFirstContinuation;Fw.prototype.dataChanged=Fw.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Fw.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Fw.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.B(_.E_),_.N("design:type",Object)],Fw.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Fw.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Fw.prototype,"modern",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Fw.prototype,"commentThreadingEnabled",void 0);_.E([_.F(),_.N("design:type",Boolean)],Fw.prototype,"collapsed",void 0);
_.E([_.F(),_.N("design:type",Function)],Fw.prototype,"toggleCollapsed",void 0);_.E([_.F(),_.N("design:type",Boolean)],Fw.prototype,"isLoading",void 0);_.E([_.F({value:!0}),_.N("design:type",Boolean)],Fw.prototype,"isShowRepliesVisible",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],Fw.prototype,"useNewFormatting",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Fw.prototype,"isWatchGrid",void 0);_.E([_.F(),_.N("design:type",Object)],Fw.prototype,"buttonOverrides",void 0);
_.E([_.lJ("#expander-contents"),_.N("design:type",HTMLElement)],Fw.prototype,"expanderContents",void 0);_.E([_.lJ("ytd-continuation-item-renderer"),_.N("design:type",Object)],Fw.prototype,"continuationItemRenderer",void 0);_.E([_.lJ("#contents"),_.N("design:type",HTMLElement)],Fw.prototype,"contents",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fw.prototype,"dataChanged",null);
_.E([_.z("data.contents","data.subThreads.*"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Fw.prototype,"hasContinuation",null);_.E([_.sE("yt-expander-more-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fw.prototype,"triggerFirstContinuation",null);_.E([_.Zw("isLoading"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fw.prototype,"isLoadingChanged",null);
_.E([_.Zw("isShowRepliesVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fw.prototype,"isShowMoreChanged",null);_.E([_.u({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],Fw);
_.G(Fw,"ytd-comment-replies-renderer",function(){if(R1o!==void 0)return R1o;var f=document.createElement("template");_.x(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div hidden="[[!shouldShowCollapsedThreads(data.viewReplies, collapsed)]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button="">\n    <div class="threadline style-scope ytd-comment-replies-renderer">\n      <div class="connection style-scope ytd-comment-replies-renderer"></div>\n      <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n      <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n    </div>\n    <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="more-replies-sub-thread" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowMoreTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div hidden="[[!shouldShowExpandedThreads(data.subThreads, collapsed)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button$="[[computeIsContinuationItem(item)]]">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n          <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n          </ytd-comment-thread-renderer>\n        </template>\n        <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n          <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="" class="style-scope ytd-comment-replies-renderer">\n          </ytd-continuation-item-renderer>\n        </template>\n      </div>\n    </div>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button="">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-sub-thread" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </template>\n</div>\n');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return R1o=f},{mode:1});var SCv;var rF=function(){var f=_.K.apply(this,arguments)||this;f.isOpen=!1;f.commentDialog=null;f.useSmallAvatars=_.J("small_avatars_for_comments");f.useSmallAvatarsEngagementPanelOnly=_.J("small_avatars_for_comments_ep");f.placeholderFocusListener=null;f.hasOpenedDialog=!1;f.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return f};
_.e(rF,_.K);_.R=rF.prototype;_.R.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]]"}}}}}};
_.R.ready=function(){var f=this,H=_.mF(this.hostElement).querySelector("#placeholder-area"),v=_.mF(this.hostElement).querySelector("#simplebox-placeholder"),t=function(M){M.stopPropagation();M instanceof KeyboardEvent&&M.type==="keypress"&&M.keyCode!==13&&M.keyCode!==32||f.openDialog()};
this.placeholderFocusListener=t;v.addEventListener("focus",this.placeholderFocusListener);H.addEventListener("tap",t);H.addEventListener("keypress",t)};
_.R.maybeRemoveFocusEventListener=function(){var f;(f=this.data)!=null&&f.prepareAccountEndpoint&&!_.J("web_comments_simplebox_modal_focus_on_tap_ks")&&(f=_.mF(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(f.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.R.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.R.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.J("web_comment_simplebox_resolve_polymer_command_ks")?_.jW.instance.resolveCommand(this.data.prepareAccountEndpoint):_.sV(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var f=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);f&&this.ytdOpenPopupBehavior.openPopup(f);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.mF(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.R.onYtCommentboxDismiss=function(f){f.stopPropagation();this.isOpen=!1};
_.R.onCreateCommentAction=function(f){this.get("createCommentAction.contents",f)&&(this.isOpen=!1)};
_.R.computeCommentDialog=function(f){return{placeholderText:f.placeholderText,authorThumbnail:f.authorThumbnail,submitButton:f.submitButton,imageButton:f.imageButton,cancelButton:f.cancelButton,emojiButton:f.emojiButton,emojis:f.emojis,emojiPicker:f.emojiPicker,aadcGuidelinesStateEntityKey:f.aadcGuidelinesStateEntityKey,openAadcDialog:f.openAadcDialog,unicodeEmojisUrl:f.unicodeEmojisUrl}};
_.R.onHideIdentityChip=function(f){_.U(f,dcr)&&this.set("data.placeholderText",_.U(f,dcr).placeholderText)};
rF.prototype.onYtCommentboxDismiss=rF.prototype.onYtCommentboxDismiss;rF.prototype.dataChanged=rF.prototype.dataChanged;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],rF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.fm),_.N("design:type",Object)],rF.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],rF.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],rF.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],rF.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],rF.prototype,"isOpen",void 0);_.E([_.F(),_.N("design:type",Object)],rF.prototype,"commentDialog",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],rF.prototype,"engagementPanel",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],rF.prototype,"useSmallAvatars",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],rF.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],rF.prototype,"enableCreationBox",void 0);_.E([_.F(),_.N("design:type",Boolean)],rF.prototype,"showCreateDialog",void 0);
_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rF.prototype,"dataChanged",null);_.E([_.sE("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],rF.prototype,"onYtCommentboxDismiss",null);_.E([_.u({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],rF);
_.G(rF,"ytd-comment-simplebox-renderer",function(){if(SCv!==void 0)return SCv;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return SCv=f},{mode:1});var d0H;_.DE("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var Kf=function(){var f=_.K.apply(this,arguments)||this;f.addHoverEffect=_.J("swatcheroo_comments_hover_effect");f.useSmallAvatars=_.J("small_avatars_for_comments");f.threadHovered=!1;f.collapsed=!1;f.removed=!1;f.actionMap=f.configureActionMap();f.toggleCollapsed=function(){f.collapsed=!f.collapsed;f.collapsed&&_.J("web_comment_threading_scroll_on_collapse")&&_.mb(f.hostElement,"yt-scroll-to-watch-element",[f.commentElement])};
return f};
_.e(Kf,_.K);_.R=Kf.prototype;_.R.configureActionMap=function(){return _.J("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"}:{}};
_.R.createCommentReplyAction=function(f){f=_.U(f,Ieb);if(f!=null&&f.contents){var H=f.replyToCommentId,v=f.parentCommentId,t,M=(t=this.commentViewModel)==null?void 0:t.commentId;(M===H||M===v&&!H)&&this.attachReply(f.contents)}};
_.R.attachReply=function(f){var H;((H=this.data)==null?0:H.replies)?(H=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+H+".continuationItemRenderer")?this.splice("data.replies.commentRepliesRenderer.subThreads",H,0,f):this.push("data.replies.commentRepliesRenderer.subThreads",f)):this.set("data.replies",{commentRepliesRenderer:{subThreads:[f]}})};
_.R.removeCommentAction=function(f){f=_.U(f,Zhr);var H=f==null?void 0:f.commentId,v;H&&((v=this.commentViewModel)==null?void 0:v.commentId)===H&&this.maybeRemoveComment(f.actionResult)};
_.R.banAuthorAction=function(f){f=_.U(f,Ohh);var H=f==null?void 0:f.commentId,v;H&&((v=this.commentViewModel)==null?void 0:v.commentId)===H&&this.maybeRemoveComment(f.actionResult)};
_.R.hideReportedCommentAction=function(f){f=_.U(f,pUM);var H=f==null?void 0:f.commentId,v;H&&((v=this.commentViewModel)==null?void 0:v.commentId)===H&&this.maybeRemoveComment(f.actionResult)};
_.R.maybeRemoveComment=function(f){f&&f.status==="STATUS_SUCCEEDED"&&(this.feedbackText=f.feedbackText||_.hd("Comment removed"),this.removed=!0)};
_.R.onTap=function(f){if(this.addHoverEffect&&!this.engagementPanel&&!_.w6(_.f2(f)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var H;((H=window.getSelection())==null?0:H.toString().length)||_.sV({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.R.attached=function(){var f=this,H;(H=this.commentThreadHitbox)==null||H.addEventListener("mouseover",function(){f.threadHovered=!0});
var v;(v=this.commentThreadHitbox)==null||v.addEventListener("mouseout",function(){f.threadHovered=!1});
var t;(t=this.commentThreadHitbox)==null||t.addEventListener("click",function(){f.maybeToggleCollapsed()})};
_.R.maybeToggleCollapsed=function(){var f,H,v,t=(f=this.data)==null?void 0:(H=f.replies)==null?void 0:(v=H.commentRepliesRenderer)==null?void 0:v.subThreads;t&&(t.length===1&&_.U(t[0],_.bw)||this.toggleCollapsed())};
_.H7.Object.defineProperties(Kf.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)!=null&&f.commentViewModel)return _.U(this.data.commentViewModel,FQH)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var f,H,v;return _.J("web_delhi_comment_threads")&&!!((f=this.data)==null?0:(H=f.replies)==null?0:(v=H.commentRepliesRenderer)==null?0:v.subThreads)}}});
Kf.prototype.onTap=Kf.prototype.onTap;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Kf.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Kf.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Kf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Kf.prototype,"addHoverEffect",void 0);
_.E([_.F(),_.N("design:type",Object)],Kf.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Kf.prototype,"useSmallAvatars",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Kf.prototype,"isSubThread",void 0);_.E([_.lJ(".thread-hitbox"),_.N("design:type",HTMLElement)],Kf.prototype,"commentThreadHitbox",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Kf.prototype,"threadHovered",void 0);
_.E([_.lJ("#comment"),_.N("design:type",HTMLElement)],Kf.prototype,"commentElement",void 0);_.E([_.F(),_.N("design:type",Object)],Kf.prototype,"collapsed",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Kf.prototype,"removed",void 0);_.E([_.F(),_.N("design:type",Object)],Kf.prototype,"feedbackText",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Kf.prototype,"commentViewModel",null);
_.E([_.z("data.replies"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Kf.prototype,"hasSubThreading",null);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Kf.prototype,"engagementPanel",void 0);_.E([_.sE("tap"),_.sE("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Kf.prototype,"onTap",null);_.E([_.u({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],Kf);
_.G(Kf,"ytd-comment-thread-renderer",function(){if(d0H!==void 0)return d0H;var f=document.createElement("template");_.x(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer collapsed="[[collapsed]]" data="[[data.replies.commentRepliesRenderer]]" toggle-collapsed="[[toggleCollapsed]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return d0H=f},{mode:_.WK("kevlar_poly_si_batch_j025")?1:2});var jga;var Dz=function(){var f=_.K.apply(this,arguments)||this;f.modernTypography=_.J("web_modern_typography");f.compactHeader=_.J("web_watch_compact_comments_header");f.hidePanelButton=!1;f.isPostSchedulingEnabled=_.J("enable_post_scheduling");f.hasFinishedStamping=!1;f.JSC$15889_handleOpenPostCommentDialogActionAfterStamp=!1;f.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return f};
_.e(Dz,_.K);_.R=Dz.prototype;
_.R.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"}}}};
_.R.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.R.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$15889_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.R.onYtServiceRequestSent=function(f,H){if(!_.J("kevlar_command_handler")&&H.actions)for(f=0;f<H.actions.length;f++){var v=H.actions[f];_.U(v,G_h)&&_.mF(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.U(v,G_h))}};
_.R.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var f;if(this.getPrefilledBackstagePostDialog((f=this.data)==null?void 0:f.actions)){_.mF(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var H=_.mF(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;H&&_.qV(this,function(){H.focus();H.openDialog&&H.openDialog()})}}else this.hasActionsChange=!0};
_.R.computeIsBackstage=function(f){return f};
_.R.onYtCommentboxDismiss=function(){_.mF(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.R.removePrefilledDialog=function(f){if(f==null?0:f.actions){for(var H=f.actions.length-1;H>=0;H--){var v=void 0;((v=_.U(f.actions[H],U_C))==null?0:v.dialog)&&delete f.actions[H]}this.set("data",void 0);this.set("data",f)}};
_.R.getPrefilledBackstagePostDialog=function(f){if(f)for(var H=0;H<f.length;H++){var v=f[H],t=void 0;if((t=_.U(v,U_C))==null?0:t.dialog)return _.U(v,U_C).dialog}return null};
_.R.computeBackstagePostDialog=function(f){return f&&(this.getPrefilledBackstagePostDialog(f.actions)||f.createRenderer)};
_.R.dataChanged=function(){if(this.data){var f=this.data.customEmojis,H=this.data.unicodeEmojisUrl;_.N8.clear();H&&_.SlZ(_.N8,H);f&&_.N8.load(f)}};
_.R.handleSignalActionOpenPostCommentDialogAction=function(){var f=_.mF(this.hostElement).querySelector("ytd-comment-simplebox-renderer");f?f.openDialog():this.JSC$15889_handleOpenPostCommentDialogActionAfterStamp=!0};
_.H7.Object.defineProperties(Dz.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.J("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var f,H,v,t,M,h,y;return!this.hidePanelButton&&_.J("kevlar_watch_comments_panel_button")&&((y=_.U((f=this.data)==null?void 0:(H=f.sortMenu)==null?void 0:(v=H.sortFilterSubMenuRenderer)==null?void 0:(t=v.subMenuItems)==null?void 0:(M=t[0])==null?void 0:(h=M.serviceEndpoint)==null?void 0:h.commandMetadata,_.jG))==null?void 0:y.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.ZC("MINIPLAYER_EXPAND_LABEL"),text:_.qO(_.ZC("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
Dz.prototype.dataChanged=Dz.prototype.dataChanged;Dz.prototype.onYtCommentboxDismiss=Dz.prototype.onYtCommentboxDismiss;Dz.prototype.observePrefilledBackstagePostDialog=Dz.prototype.observePrefilledBackstagePostDialog;Dz.prototype.onYtServiceRequestSent=Dz.prototype.onYtServiceRequestSent;Dz.prototype.onStampFinished=Dz.prototype.onStampFinished;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Dz.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Dz.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Dz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Dz.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Dz.prototype,"modernTypography",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Dz.prototype,"compactHeader",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Dz.prototype,"engagementPanel",void 0);_.E([_.F(),_.N("design:type",Object)],Dz.prototype,"hidePanelButton",void 0);_.E([_.F({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Dz.prototype,"isBackstage",void 0);_.E([_.F({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.N("design:type",Object)],Dz.prototype,"backstagePostDialog",void 0);
_.E([_.F(),_.N("design:type",Object)],Dz.prototype,"isPostSchedulingEnabled",void 0);_.E([_.F({reflectToAttribute:!0}),_.z("data","showCommentsPanelButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],Dz.prototype,"useSpaceBetween",null);_.E([_.F({reflectToAttribute:!0}),_.z("data","hidePanelButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],Dz.prototype,"showCommentsPanelButton",null);
_.E([_.z("data","showCommentsPanelButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],Dz.prototype,"commentsPanelButtonData",null);_.E([_.sE("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Dz.prototype,"onStampFinished",null);_.E([_.sE("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.ER]),_.N("design:returntype")],Dz.prototype,"onYtServiceRequestSent",null);
_.E([_.Zw("data.actions"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Dz.prototype,"observePrefilledBackstagePostDialog",null);_.E([_.sE("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Dz.prototype,"onYtCommentboxDismiss",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Dz.prototype,"dataChanged",null);
_.E([_.u({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],Dz);
_.G(Dz,"ytd-comments-header-renderer",function(){if(jga!==void 0)return jga;var f=document.createElement("template");_.x(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return jga=f},{mode:1});var sgb;var ok=function(){return _.K.apply(this,arguments)||this};
_.e(ok,_.K);_.E([_.F(),_.N("design:type",Object)],ok.prototype,"data",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ok.prototype,"ytRendererBehavior",void 0);_.E([_.u({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],ok);
_.G(ok,"ytd-destination-button-renderer",function(){if(sgb!==void 0)return sgb;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return sgb=f},{mode:1});var ZIo;var nf=function(){var f=_.K.apply(this,arguments)||this;f.isRichGrid=!1;f.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};f.modernTypography=_.J("web_modern_typography");return f};
_.e(nf,_.K);_.R=nf.prototype;_.R.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.R.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.R.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.R.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var f;if((f=this.data)==null||!f.isExpanded){f=this.hostElement.clientWidth;var H;if(f&&(H=this.data)!=null&&H.destinationButtons){H=Math.floor((f+4)/214);f=this.data.destinationButtons.length;var v=Math.ceil(f/H);this.fullyVisibleRows=f%H===1&&v===2?1:Math.min(v,2);this.isShowMoreVisible=this.fullyVisibleRows<v}}}};
_.R.updateRichGridDestinationButtonsVisibility=function(){var f,H;if(this.isRichGrid&&((f=this.data)==null||!f.isExpanded)&&(H=this.data)!=null&&H.destinationButtons){f=this.richGridItemsPerRow+1;H=this.data.destinationButtons.length;var v=Math.ceil(H/f);this.fullyVisibleRows=H%f===1&&v===2?1:Math.min(v,2);this.isShowMoreVisible=this.fullyVisibleRows<v}};
_.R.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
nf.prototype.updateRichGridDestinationButtonsVisibility=nf.prototype.updateRichGridDestinationButtonsVisibility;_.E([_.F(),_.N("design:type",Object)],nf.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Number)],nf.prototype,"fullyVisibleRows",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],nf.prototype,"isShowMoreVisible",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],nf.prototype,"isRichGrid",void 0);
_.E([_.F({selector:_.uA,value:0}),_.N("design:type",Number)],nf.prototype,"richGridItemsPerRow",void 0);_.E([_.F(),_.N("design:type",Object)],nf.prototype,"gridStateActionMap",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],nf.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],nf.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],nf.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],nf.prototype,"ytdReduxBehavior",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],nf.prototype,"modernTypography",void 0);_.E([_.Zw("data","richGridItemsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nf.prototype,"updateRichGridDestinationButtonsVisibility",null);
_.E([_.u({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],nf);
_.G(nf,"ytd-destination-shelf-renderer",function(){if(ZIo!==void 0)return ZIo;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return ZIo=f},{mode:1});var J6h;var pf=function(){return _.K.apply(this,arguments)||this};
_.e(pf,_.K);pf.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"}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],pf.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],pf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],pf.prototype,"data",void 0);_.E([_.u({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],pf);
_.G(pf,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(J6h!==void 0)return J6h;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return J6h=f},{mode:1});var lio;var QJ=function(){var f=_.K.apply(this,arguments)||this;f.disableAnimation=!1;f.isSlimlineSurvey=!1;f.isSlimlineSurveyFollowUp=!1;f.isShortsStyle=!1;return f};
_.e(QJ,_.K);QJ.prototype.onTap=function(f){f.preventDefault();this.data&&_.YE(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.H7.Object.defineProperties(QJ.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 f,H,v,t,M;return((f=this.data)==null?0:f.checked)?(H=this.data)==null?void 0:(v=H.onStateIcon)==null?void 0:v.iconType:(t=this.data)==null?void 0:(M=t.defaultStateIcon)==null?void 0:M.iconType}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],QJ.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],QJ.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],QJ.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],QJ.prototype,"disableAnimation",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],QJ.prototype,"isSlimlineSurvey",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],QJ.prototype,"isSlimlineSurveyFollowUp",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],QJ.prototype,"isShortsStyle",void 0);_.E([_.z("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],QJ.prototype,"isAnimatedIcon",null);
_.E([_.z("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.N("design:type",Number),_.N("design:paramtypes",[])],QJ.prototype,"iconSize",null);_.E([_.z("isShortsStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],QJ.prototype,"isDarkTheme",null);_.E([_.z("data.checked"),_.N("design:type",Object),_.N("design:paramtypes",[])],QJ.prototype,"icon",null);_.E([_.u({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],QJ);
_.G(QJ,"ytd-rating-survey-option-renderer",function(){if(lio!==void 0)return lio;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return lio=f},{mode:2});var U0o;var ul=function(){var f=_.K.apply(this,arguments)||this;f.firstResponseText=null;f.lastResponseText=null;f.selectedNonStarOption=null;f.hideOptions=!1;f.hideUndoButton=!0;f.disableAnimation=!1;f.showResponseRangeText=!1;f.selectedRatingIndex=-1;f.isSlimlineSurvey=!1;f.isSlimlineSurveyFollowUp=!1;f.isShortsStyle=!1;f.slimlineSurveyRatingSelectedIndex=-1;return f};
_.e(ul,_.K);_.R=ul.prototype;_.R.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.R.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.R.onOptionChange=function(f,H){var v=this;f=H.onStateIcon&&H.defaultStateIcon&&H.onStateIcon.iconType===H.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(y,m){y.responseText===H.responseText?v.isSlimlineSurvey?(v.selectedRatingIndex=m,v.ytdReduxBehavior.dispatch(Wd9(m))):(v.setSurveyOptionValue(m,!0,"checked"),v.setSurveyOptionValue(m,!0,"selected")):(v.setSurveyOptionValue(m,!1,"checked"),v.setSurveyOptionValue(m,
!1,"selected"))});
else if(f)this.selectedNonStarOption=H,this.hideOptions=!0;else{var t=this.ytRendererBehavior.getSimpleString(H.responseText),M=!0;this.getOptionRenderers().forEach(function(y,m){v.setSurveyOptionValue(m,M,"checked");v.setSurveyOptionValue(m,!1,"selected");v.ytRendererBehavior.getSimpleString(y.responseText)===t&&(M=!1,v.setSurveyOptionValue(m,!0,"selected"))})}f=H.responseEndpoint;
var h;H.followUpCommand&&(h=_.U(H.followUpCommand,XC_));this.isSlimlineSurvey?(this.resetComponent(),_.mb(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.mb(this.hostElement,"ytd-inline-survey-rating-select-action",[f,h])};
_.R.showSelectedOption=function(){var f=this;_.nN.addJob(function(){var H=f.getOptionRenderers()[f.slimlineSurveyRatingSelectedIndex];f.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),H)},8,100)};
_.R.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(f){var H;return(H=_.U(f,bZb))!=null?H:{}}):[]};
_.R.onUndoClick=function(){this.resetComponent();_.mb(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.R.setSurveyOptionValue=function(f,H,v){this.notifyPath("data.ratings."+f+".ratingSurveyOptionRenderer."+v);this.set("data.ratings."+f+".ratingSurveyOptionRenderer."+v,H)};
_.R.resetComponent=function(){var f=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var H=this.getOptionRenderers(),v,t;this.firstResponseText=(t=(v=H[0])==null?void 0:v.responseText)!=null?t:null;var M,h;this.lastResponseText=(h=(M=H[H.length-1])==null?void 0:M.responseText)!=null?h:null;H.forEach(function(y,m){f.setSurveyOptionValue(m,!1,"checked");f.setSurveyOptionValue(m,!1,"selected")})};
_.H7.Object.defineProperties(ul.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
ul.prototype.onOptionChange=ul.prototype.onOptionChange;ul.prototype.dataChanged=ul.prototype.dataChanged;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],ul.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ul.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],ul.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],ul.prototype,"data",void 0);
_.E([_.F(),_.N("design:type",Object)],ul.prototype,"firstResponseText",void 0);_.E([_.F(),_.N("design:type",Object)],ul.prototype,"lastResponseText",void 0);_.E([_.F(),_.N("design:type",Object)],ul.prototype,"selectedNonStarOption",void 0);_.E([_.F(),_.N("design:type",Object)],ul.prototype,"hideOptions",void 0);_.E([_.F(),_.N("design:type",Object)],ul.prototype,"hideUndoButton",void 0);_.E([_.F(),_.N("design:type",Object)],ul.prototype,"disableAnimation",void 0);
_.E([_.F(),_.N("design:type",Object)],ul.prototype,"showResponseRangeText",void 0);_.E([_.F(),_.N("design:type",Object)],ul.prototype,"selectedRatingIndex",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],ul.prototype,"isSlimlineSurvey",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],ul.prototype,"isSlimlineSurveyFollowUp",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],ul.prototype,"isShortsStyle",void 0);_.E([_.F({selector:function(f){return f.ui.slimlineSurveyRatingSelectedIndex}}),
_.N("design:type",Object)],ul.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.E([_.z("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ul.prototype,"isSingleSelect",null);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ul.prototype,"dataChanged",null);
_.E([_.sE("ytd-rating-survey-option-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],ul.prototype,"onOptionChange",null);_.E([_.u({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],ul);
_.G(ul,"ytd-rating-survey-renderer",function(){if(U0o!==void 0)return U0o;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return U0o=f},{mode:1});var e1n;var Ltb;var x0n;var rCs=(gy.FIRSTDAYOFWEEK+1)%7,BOh=function(f,H,v,t){var M="";if(t.selection&&xHT(t.selection))$d(f,t.selection)&&(M+=" selected");else if(t.selection&&BNb(t.selection)){var h=t.selection.selectionState||"START_DATE";$d(f,t.selection.start)&&(M+=" period-start ",h==="START_DATE"&&(M+="selected"));$d(f,t.selection.end)&&(M+=" period-end ",h==="END_DATE"&&(M+="selected"));Ws(f,t.selection.start)||Ws(t.selection.end,f)||(M+=" highlighted")}if(Ws(H,t.start)||Ws(t.end,H))M+=" disabled";t.circleToday&&
$d(H,v)&&(M+=" today");return M};var ak=function(){return _.K.apply(this,arguments)||this};
_.e(ak,_.K);_.R=ak.prototype;_.R.attached=function(){var f=this;_.qV(this,function(){f.JSC$15923_calendarMain.scrollHeight>0&&(f.calendarConfig.selection?f.scrollToDate(zEb(f.calendarConfig.selection)):f.scrollToDate(f.calendarConfig.end))})};
_.R.updateSelection=function(f){f=Kw5(Object.assign({},this.calendarConfig,{selection:f}),BOh);this.splice.apply(this,["renderData.months",0,f.length].concat(_.pS(f)))};
_.R.scrollToDate=function(f){this.renderData&&(f=DHg(f,this.renderData),f!==void 0&&this.JSC$15923_calendarMain.scrollToIndex(f))};
_.R.scrollToNextMonth=function(){this.JSC$15923_calendarMain.scrollToIndex(this.JSC$15923_calendarMain.firstVisibleIndex+1)};
_.R.scrollToPrevMonth=function(){this.JSC$15923_calendarMain.firstVisibleIndex===0&&this.JSC$15923_calendarMain.scrollTo(0,0);this.JSC$15923_calendarMain.scrollToIndex(this.JSC$15923_calendarMain.firstVisibleIndex-1)};
_.R.handleDayClick=function(f){_.mb(this.hostElement,"ytd-calendar-date-clicked",[f.model.day.date])};
_.R.handleDayMouseDown=function(f){f.preventDefault();_.mb(this.hostElement,"ytd-calendar-date-mousedown",[f.model.day.date])};
_.R.handleDayMouseUp=function(f){_.mb(this.hostElement,"ytd-calendar-date-mouseup",[f.model.day.date])};
_.R.handleDayMouseEnter=function(f){f.preventDefault();_.mb(this.hostElement,"ytd-calendar-date-mouseenter",[f.model.day.date])};
_.R.handleDayMouseLeave=function(f){_.mb(this.hostElement,"ytd-calendar-date-mouseleave",[f.model.day.date])};
_.H7.Object.defineProperties(ak.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var f=this.calendarConfig,H=BOh;H=H===void 0?BOh:H;for(var v=[],t=0;t<7;t++)v.push(gy.NARROWWEEKDAYS[(t+rCs)%7]);return{months:Kw5(f,H),daysOfWeekLabel:v}}}});
_.E([_.F(),_.N("design:type",Object)],ak.prototype,"calendarConfig",void 0);_.E([_.lJ("#calendar-main"),_.N("design:type",Object)],ak.prototype,"JSC$15923_calendarMain",void 0);_.E([_.z("calendarConfig"),_.N("design:type",Object),_.N("design:paramtypes",[])],ak.prototype,"renderData",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],ak);
_.G(ak,"ytd-scrollable-calendar",function(){if(x0n!==void 0)return x0n;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return x0n=f},{mode:2});var z1r;var Fta;var PJ=function(){var f=_.K.apply(this,arguments)||this;f.hideCharCounter=!1;f.hideLabel=!1;f.noLabelFloat=!1;f.autoValidate=!0;f.invalid=!1;f.disabled=!1;f.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return f};
_.e(PJ,_.K);_.R=PJ.prototype;_.R.reset=function(f){this.value=f&&this.data?this.data.value=f:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.R.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.R.focusTextInput=function(){this.input.focus()};
_.R.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()};
_.R.valueChanged=function(){var f,H;if(((f=this.data)==null?0:f.value)||((H=this.data)==null?void 0:H.value)==="")this.value=this.data.value;else{var v;((v=this.data)==null?void 0:v.value)!==void 0||this.value||(this.value="")}};
_.R.computeLabel=function(f,H){return H?"":_.fG(f)};
_.R.computeAriaLabel=function(f,H){return H?_.fG(f):""};
_.R.computeErrorMessage=function(f,H,v,t){!f&&H?f=v||this.strings.REQUIRED_LABEL:(f=_.fG(t),f=_.$v(f,"&")?"document"in _.Mr?Urb(f):eTa(f):f);return f};
_.R.computeType=function(f){return f==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.R.onTextValueChanged=function(f){this.value=f.detail.value;var H;(H=this.onValueChanged)==null||H.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.R.handleUpdateTextInputFormFieldRendererCommand=function(f){(f=_.U(f,OZM))&&this.data&&this.data.id===f.id&&(f.invalid!==void 0&&(this.invalid=f.invalid),f.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",f.invalidValueErrorMessage))};
_.R.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.bM("value-changed",this.value))};
_.R.updateInvalidFromBinding=function(f){this.invalid=f.detail.value};
_.H7.Object.defineProperties(PJ.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var f;return!((f=this.data)==null||!f.isMultiline)}}});
PJ.prototype.valueChangedForBinding=PJ.prototype.valueChangedForBinding;PJ.prototype.valueChanged=PJ.prototype.valueChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],PJ.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],PJ.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],PJ.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],PJ.prototype,"data",void 0);_.E([_.F(),_.N("design:type",String)],PJ.prototype,"value",void 0);_.E([_.F(),_.N("design:type",String)],PJ.prototype,"pattern",void 0);_.E([_.F(),_.N("design:type",String)],PJ.prototype,"errorMessage",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],PJ.prototype,"componentStyle",void 0);_.E([_.F(),_.N("design:type",Object)],PJ.prototype,"hideCharCounter",void 0);
_.E([_.F(),_.N("design:type",Object)],PJ.prototype,"hideLabel",void 0);_.E([_.F(),_.N("design:type",Object)],PJ.prototype,"noLabelFloat",void 0);_.E([_.F(),_.N("design:type",Function)],PJ.prototype,"onValueChanged",void 0);_.E([_.F(),_.N("design:type",Boolean)],PJ.prototype,"isMultilineOverride",void 0);_.E([_.F(),_.N("design:type",Object)],PJ.prototype,"autoValidate",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],PJ.prototype,"invalid",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],PJ.prototype,"disabled",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],PJ.prototype,"enableOverlayTheme",void 0);_.E([_.F({value:{REQUIRED_LABEL:_.ZC("REQUIRED_LABEL",void 0,"Required")}}),_.N("design:type",Object)],PJ.prototype,"strings",void 0);_.E([_.lJ("#input"),_.N("design:type",Object)],PJ.prototype,"input",void 0);
_.E([_.z("data","isMultilineOverride"),_.N("design:type",Object),_.N("design:paramtypes",[])],PJ.prototype,"isMultiline",null);_.E([_.xV("data.value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],PJ.prototype,"valueChanged",null);_.E([_.Zw("value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],PJ.prototype,"valueChangedForBinding",null);_.E([_.GW({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],PJ);
_.G(PJ,"yt-text-input-form-field-renderer",function(){if(Fta===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;z1r===void 0&&(z1r=document.createElement("template"));var t=z1r;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Fta=f}f=Fta;return f},{mode:2});var G9=function(){var f=_.K.apply(this,arguments)||this;f.data=void 0;f.selectionState="START_DATE";f.isStartDateInvalid=!1;f.isEndDateInvalid=!1;f.autoapply=!1;f.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 f};
_.e(G9,_.K);_.R=G9.prototype;_.R.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"}}}}};
_.R.focus=function(){this.startDateInput.focus()};
_.R.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:Ow(this.data.selection.start),end:Ow(this.data.selection.end)})};
_.R.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.R.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.bC(this.selectionState)}};
_.R.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.R.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.R.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.R.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var f=this.calendar.calendarConfig,H=f.end;f=ntv({start:f.start,end:this.endDate||H},this.startDateInput.value||"");this.isStartDateInvalid=!f.isValid;f.isValid&&(f=f.value,this.selection=this.endDate?{start:f,end:this.endDate}:f,this.calendar.scrollToDate(f));this.updateInvalidState()}};
_.R.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var f=this.calendar.calendarConfig,H=f.start;f=ntv({start:this.startDate||H,end:f.end},this.endDateInput.value||"");this.isEndDateInvalid=!f.isValid;f.isValid&&(f=f.value,this.selection={start:this.startDate,end:f},this.calendar.scrollToDate(f));this.updateInvalidState()}};
_.R.handleCalendarDateClicked=function(f){var H=this.selection&&zEb(this.selection),v=this.selection&&FwE(this.selection);H&&!Ws(f,H)&&this.selectionState==="END_DATE"?(this.selection={start:H,end:f},this.selectionState="START_DATE"):(v&&!Ws(v,f)?this.selection={start:f,end:v}:this.selection=f,this.selectionState="END_DATE")};
_.R.handleCalendarDateMouseDown=function(f){this.selection&&!xHT(this.selection)&&(this.dragPivot=$d(f,this.selection.start)?this.selection.end:$d(f,this.selection.end)?this.selection.start:f)};
_.R.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.R.handleCalendarDateMouseEnter=function(f){this.dragPivot&&(this.selection={start:function(H,v){return Ws(H,v)?H:v}(this.dragPivot,f),
end:function(H,v){return Ws(H,v)?v:H}(this.dragPivot,f)},this.dragPivot||(this.selectionState="START_DATE"))};
_.R.handleCalendarDateMouseLeave=function(){};
_.R.handleCalendarSubmitDateRange=function(){this.selection&&!xHT(this.selection)&&_.mb(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.R.updateInvalidState=function(){var f=function(H,v){v?H.setAttribute("invalid",""):H.removeAttribute("invalid")};
f(this.startDateInput,this.isStartDateInvalid);f(this.endDateInput,this.isEndDateInvalid)};
_.R.updateDateStrings=function(){this.selection&&(xHT(this.selection)?LwR(this.selection):(LwR(this.selection.start),LwR(this.selection.end)))};
_.R.updateCalendarSelection=function(f){this.calendar.updateSelection(Object.assign({},f,{selectionState:this.selectionState}))};
_.R.updateIsStartDateInvalidFromBinding=function(f){this.isStartDateInvalid=f.detail.value};
_.R.updateIsEndDateInvalidFromBinding=function(f){this.isEndDateInvalid=f.detail.value};
_.R.updateStartDateStringFromBinding=function(){};
_.R.updateEndDateStringFromBinding=function(){};
_.H7.Object.defineProperties(G9.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:Ow(this.data.dateRangeStart),end:Ow(this.data.dateRangeEnd),selection:{start:Ow(this.data.selection.start),end:Ow(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&zEb(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&FwE(this.selection)}}});
G9.prototype.resetTextboxes=G9.prototype.resetTextboxes;G9.prototype.observeSelection=G9.prototype.observeSelection;G9.prototype.dataChanged=G9.prototype.dataChanged;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],G9.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],G9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.lJ("#calendar"),_.N("design:type",Object)],G9.prototype,"calendar",void 0);
_.E([_.lJ("#start-date"),_.N("design:type",Object)],G9.prototype,"startDateInput",void 0);_.E([_.lJ("#end-date"),_.N("design:type",Object)],G9.prototype,"endDateInput",void 0);_.E([_.F(),_.N("design:type",Object)],G9.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],G9.prototype,"selection",void 0);_.E([_.F(),_.N("design:type",String)],G9.prototype,"selectionState",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],G9.prototype,"calendarConfig",null);
_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],G9.prototype,"errorMessage",null);_.E([_.z("selection"),_.N("design:type",Object),_.N("design:paramtypes",[])],G9.prototype,"startDate",null);_.E([_.z("selection"),_.N("design:type",Object),_.N("design:paramtypes",[])],G9.prototype,"endDate",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],G9.prototype,"dataChanged",null);
_.E([_.Zw("selection","selectionState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],G9.prototype,"observeSelection",null);_.E([_.Zw("selectionState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],G9.prototype,"resetTextboxes",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],G9);
_.G(G9,"ytd-date-period-picker-renderer",function(){if(Ltb!==void 0)return Ltb;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Ltb=f},{mode:1});var Cf=function(){var f=_.K.apply(this,arguments)||this;var H={};f.actionMap=(H["ytd-date-period-picker-apply"]="handleDateRangeUpdated",H);return f};
_.e(Cf,_.K);Cf.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
Cf.prototype.handleDateRangeUpdated=function(){};
_.E([_.F(),_.N("design:type",Object)],Cf.prototype,"data",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Cf.prototype,"actionHandlerBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Cf.prototype,"rendererstamperBehavior",void 0);_.E([_.u({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],Cf);
_.G(Cf,"ytd-report-history-section-header-renderer",function(){if(e1n!==void 0)return e1n;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return e1n=f},{mode:1});var r6b;var KtC;var D0h;var EW=function(){return _.K.apply(this,arguments)||this};
_.e(EW,_.K);_.H7.Object.defineProperties(EW.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var f,H;return((f=this.data)==null?0:(H=f.icon)==null?0:H.iconType)?_.SW(this.data.icon.iconType):""}}});
_.E([_.F(),_.N("design:type",Object)],EW.prototype,"data",void 0);_.E([_.z("data"),_.N("design:type",String),_.N("design:paramtypes",[])],EW.prototype,"icon",null);_.E([_.u({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],EW);
_.G(EW,"ytd-report-history-table-text-cell-renderer",function(){if(D0h!==void 0)return D0h;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return D0h=f},{mode:1});var Nm=function(){return _.K.apply(this,arguments)||this};
_.e(Nm,_.K);Nm.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Nm.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Nm.prototype,"data",void 0);_.E([_.u({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],Nm);
_.G(Nm,"ytd-report-history-table-reason-cell-renderer",function(){if(KtC!==void 0)return KtC;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return KtC=f},{mode:1});var cJ=function(){return _.K.apply(this,arguments)||this};
_.e(cJ,_.K);cJ.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"}}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],cJ.prototype,"rendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],cJ.prototype,"data",void 0);_.E([_.u({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],cJ);
_.G(cJ,"ytd-report-history-table-cell-renderer",function(){if(r6b!==void 0)return r6b;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);
return r6b=f},{mode:1});var oqh;var Xw=function(){var f=_.K.apply(this,arguments)||this;f.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 f};
_.e(Xw,_.K);Xw.prototype.onDataChanged=function(){var f;if((f=this.data)==null?0:f.style)this.componentStyle=this.getStyleName(this.data.style)};
Xw.prototype.getCellForColumn=function(f){return this.cells.find(function(H){var v;return((v=_.U(H==null?void 0:H.cell,TKb)||_.U(H==null?void 0:H.cell,kMZ))==null?void 0:v.columnId)===f.type})};
Xw.prototype.getClassForColumn=function(f){switch(f){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
Xw.prototype.getStyleName=function(f){switch(f){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.H7.Object.defineProperties(Xw.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var f;return(((f=this.data)==null?void 0:f.cells)||[]).map(function(H){return _.U(H,iZC)})}}});
Xw.prototype.onDataChanged=Xw.prototype.onDataChanged;_.E([_.F(),_.N("design:type",Object)],Xw.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Array)],Xw.prototype,"columnRenderData",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],Xw.prototype,"componentStyle",void 0);_.E([_.z("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],Xw.prototype,"cells",null);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xw.prototype,"onDataChanged",null);_.E([_.u({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],Xw);
_.G(Xw,"ytd-report-history-table-row-renderer",function(){if(oqh!==void 0)return oqh;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return oqh=f},{mode:1});var nqZ;var pEn;var pze={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},QDs={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var An=function(){return _.K.apply(this,arguments)||this};
_.e(An,_.K);An.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"}}}}}};
An.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.H7.Object.defineProperties(An.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?0:f.columns)?C1R(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return P1H(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var f=this.tableSpec,H=pze;H=H===void 0?QDs:H;H=Gn5(f.columnDimensions,f.columnsToShow||[],H);f=0;H=_.V(H);for(var v=H.next();!v.done;v=H.next())v=v.value,f+=v.minWidth+v.paddingLeft+v.paddingRight;return f}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.E([_.B(_.E_),_.N("design:type",Object)],An.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],An.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],An.prototype,"data",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],An.prototype,"tableSpec",null);_.E([_.z("tableSpec"),_.N("design:type",Array),_.N("design:paramtypes",[])],An.prototype,"columnRenderData",null);
_.E([_.z("tableSpec"),_.N("design:type",Number),_.N("design:paramtypes",[])],An.prototype,"totalMinWidth",null);_.E([_.z("totalMinWidth"),_.N("design:type",String),_.N("design:paramtypes",[])],An.prototype,"tableWidthStyle",null);_.E([_.u({is:"ytd-table-renderer",disableElementRegistration:!0})],An);
_.G(An,"ytd-table-renderer",function(){if(pEn!==void 0)return pEn;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return pEn=f},{mode:1});var bl=function(){return _.K.apply(this,arguments)||this};
_.e(bl,_.K);bl.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}}}}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],bl.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],bl.prototype,"data",void 0);_.E([_.u({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],bl);
_.G(bl,"ytd-report-reason-history-modal-renderer",function(){if(nqZ!==void 0)return nqZ;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return nqZ=f},{mode:1});var QgT;var uRh;var aiZ;var il=function(){return _.K.apply(this,arguments)||this};
_.e(il,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],il.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],il.prototype,"data",void 0);_.E([_.u({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],il);
_.G(il,"ytd-profile-column-stats-entry-renderer",function(){if(aiZ!==void 0)return aiZ;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return aiZ=f},{mode:1});var Pr9;var kx=function(){return _.K.apply(this,arguments)||this};
_.e(kx,_.K);kx.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],kx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],kx.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],kx.prototype,"data",void 0);_.E([_.u({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],kx);
_.G(kx,"ytd-profile-column-stats-renderer",function(){if(Pr9!==void 0)return Pr9;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Pr9=f},{mode:1});var Gwv;var T9=function(){return _.K.apply(this,arguments)||this};
_.e(T9,_.K);_.H7.Object.defineProperties(T9.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null||!f.useThumbnailSize)return 80;var H,v;f=(H=this.data)==null?void 0:(v=H.thumbnail)==null?void 0:v.thumbnails;var t;return f&&((t=f[0])==null?void 0:t.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null||!f.useThumbnailSize)return 80;var H,v;f=(H=this.data)==null?void 0:(v=H.thumbnail)==null?void 0:v.thumbnails;var t;return f&&((t=f[0])==null?void 0:t.height)||80}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],T9.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],T9.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],T9.prototype,"componentStyle",void 0);_.E([_.z("data.useThumbnailSize"),_.N("design:type",Object),_.N("design:paramtypes",[])],T9.prototype,"thumbnailWidth",null);
_.E([_.z("data.useThumbnailSize"),_.N("design:type",Object),_.N("design:paramtypes",[])],T9.prototype,"thumbnailHeight",null);_.E([_.u({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],T9);
_.G(T9,"ytd-profile-column-user-info-renderer",function(){if(Gwv!==void 0)return Gwv;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Gwv=f},{mode:1});var wF=function(){return _.K.apply(this,arguments)||this};
_.e(wF,_.K);wF.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]]"}}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],wF.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],wF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],wF.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],wF.prototype,"componentStyle",void 0);_.E([_.u({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],wF);
_.G(wF,"ytd-profile-column-renderer",function(){if(uRh!==void 0)return uRh;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return uRh=f},{mode:1});var qm=function(){var f=_.K.apply(this,arguments)||this;f.componentStyle="NON_CENTERED_PROFILE";return f};
_.e(qm,_.K);qm.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
qm.prototype.getIcon=function(f){return f?"settings:"+f.toLowerCase():null};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],qm.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],qm.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],qm.prototype,"data",void 0);_.E([_.u({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],qm);
_.G(qm,"ytd-page-introduction-renderer",function(){if(QgT!==void 0)return QgT;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return QgT=f},{mode:1});var CrH;var fL=function(){return _.K.apply(this,arguments)||this};
_.e(fL,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],fL.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],fL.prototype,"data",void 0);_.E([_.u({is:"ytd-report-description-renderer",disableElementRegistration:!0})],fL);
_.G(fL,"ytd-report-description-renderer",function(){if(CrH!==void 0)return CrH;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return CrH=f},{mode:1});var Eqa;var NOg;var HT=function(){return _.K.apply(this,arguments)||this};
_.e(HT,_.K);HT.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],HT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],HT.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],HT.prototype,"data",void 0);_.E([_.u({is:"ytd-video-report-renderer",disableElementRegistration:!0})],HT);
_.G(HT,"ytd-video-report-renderer",function(){if(NOg!==void 0)return NOg;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return NOg=f},{mode:1});var c6o;_.DE("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.DE("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var vT=function(){return _.K.apply(this,arguments)||this};
_.e(vT,_.K);vT.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]]"}}}}}};
vT.prototype.computeMessageStyle=function(f){return f};
vT.prototype.computeButtonOverride=function(f){var H;if((f==null?0:(H=f.style)==null?0:H.value)&&f.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],vT.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],vT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],vT.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],vT.prototype,"shelf",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],vT.prototype,"panel",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.N("design:type",Boolean)],vT.prototype,"componentStyle",void 0);_.E([_.F({computed:"computeButtonOverride(data)"}),_.N("design:type",Object)],vT.prototype,"buttonOverride",void 0);_.E([_.u({is:"ytd-message-renderer",disableElementRegistration:!0})],vT);
_.G(vT,"ytd-message-renderer",function(){if(c6o!==void 0)return c6o;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return c6o=f},{mode:1});var ts=function(){return _.K.apply(this,arguments)||this};
_.e(ts,_.K);ts.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"}}}};
ts.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
ts.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.H7.Object.defineProperties(ts.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var f,H;return!!(((f=this.data)==null?0:f.header)&&((H=this.data)==null?0:H.table))}}});
ts.prototype.onRequestError=ts.prototype.onRequestError;_.E([_.B(_.E_),_.N("design:type",Object)],ts.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ts.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],ts.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],ts.prototype,"data",void 0);
_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],ts.prototype,"isUnifiedReportHistory",null);_.E([_.sE("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ts.prototype,"onRequestError",null);_.E([_.u({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],ts);
_.G(ts,"ytd-report-history-section-renderer",function(){if(Eqa!==void 0)return Eqa;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Eqa=f},{mode:1});var XEH;var Mz=function(){var f=_.K.apply(this,arguments)||this;f.answerExpanded=!1;return f};
_.e(Mz,_.K);Mz.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Mz.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Mz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Mz.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Mz.prototype,"answerExpanded",void 0);_.E([_.u({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],Mz);
_.G(Mz,"ytd-handles-claiming-faq-renderer",function(){if(XEH!==void 0)return XEH;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return XEH=f},{mode:1});var A6M;var bIv=function(){return _.K.apply(this,arguments)||this};
_.e(bIv,_.K);_.E([_.F(),_.N("design:type",Object)],bIv.prototype,"data",void 0);_.E([_.u({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],bIv);
_.G(bIv,"ytd-handles-claiming-faq-section-renderer",function(){if(A6M!==void 0)return A6M;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return A6M=f},{mode:1});var iIr;var hs=function(){var f=_.K.apply(this,arguments)||this;f.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";f.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";f.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";f.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";f.leftSquiggly=f.leftSquigglyLight;f.rightSquiggly=f.rightSquigglyLight;
f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};f.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return f};
_.e(hs,_.K);_.R=hs.prototype;_.R.updateLeftSquigglyStyle=function(){_.Sr(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.R.updateRightSquigglyStyle=function(){_.Sr(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.R.ready=function(){var f=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(f)};
_.R.onDarkModeToggledAction=function(f){f!==this.isDarkTheme&&(this.set("isDarkTheme",f),f?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.R.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
hs.prototype.updateRightSquigglyStyle=hs.prototype.updateRightSquigglyStyle;hs.prototype.updateLeftSquigglyStyle=hs.prototype.updateLeftSquigglyStyle;_.E([_.F(),_.N("design:type",Object)],hs.prototype,"data",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],hs.prototype,"isDarkTheme",void 0);_.E([_.F(),_.N("design:type",String)],hs.prototype,"leftSquiggly",void 0);_.E([_.F(),_.N("design:type",String)],hs.prototype,"rightSquiggly",void 0);
_.E([_.Zw("leftSquiggly"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hs.prototype,"updateLeftSquigglyStyle",null);_.E([_.Zw("rightSquiggly"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hs.prototype,"updateRightSquigglyStyle",null);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],hs.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],hs.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],hs.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],hs.prototype,"actionButtonOverride",void 0);_.E([_.u({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],hs);
_.G(hs,"ytd-handles-claiming-header-renderer",function(){if(iIr!==void 0)return iIr;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return iIr=f},{mode:1});var kwb;var RI=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};f.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";f.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";f.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";f.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
f.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";f.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";f.image0SquigglyBackground=f.image0LightSquigglyBackground;f.image1SquigglyBackground=f.image1LightSquigglyBackground;f.image3SquigglyBackground=f.image3LightSquigglyBackground;return f};
_.e(RI,_.K);_.R=RI.prototype;_.R.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.R.onDataChanged=function(){this.updateTitleAndImages()};
_.R.onThemeChanged=function(){this.updateTitleAndImages()};
_.R.onDarkModeToggledAction=function(f){f!==this.isDarkTheme&&(this.isDarkTheme=f)};
_.R.updateImage0SquigglyBackground=function(){_.Sr(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.R.updateImage1SquigglyBackground=function(){_.Sr(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.R.updateImage3SquigglyBackground=function(){_.Sr(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.R.updateTitleAndImages=function(){var f,H;((f=this.data)==null?void 0:(H=f.titleImages)==null?void 0:H.length)===5&&(this.title0=this.data.titleImages[0].title,this.title1=this.data.titleImages[1].title,this.title2=this.data.titleImages[2].title,this.title3=this.data.titleImages[3].title,this.title4=this.data.titleImages[4].title,this.isDarkTheme?(this.image0=this.data.titleImages[0].darkImage,this.image1=this.data.titleImages[1].darkImage,this.image2=this.data.titleImages[2].darkImage,this.image3=
this.data.titleImages[3].darkImage,this.image4=this.data.titleImages[4].darkImage,this.image0SquigglyBackground=this.image0DarkSquigglyBackground,this.image1SquigglyBackground=this.image1DarkSquigglyBackground,this.image3SquigglyBackground=this.image3DarkSquigglyBackground):(this.image0=this.data.titleImages[0].lightImage,this.image1=this.data.titleImages[1].lightImage,this.image2=this.data.titleImages[2].lightImage,this.image3=this.data.titleImages[3].lightImage,this.image4=this.data.titleImages[4].lightImage,
this.image0SquigglyBackground=this.image0LightSquigglyBackground,this.image1SquigglyBackground=this.image1LightSquigglyBackground,this.image3SquigglyBackground=this.image3LightSquigglyBackground))};
RI.prototype.updateImage3SquigglyBackground=RI.prototype.updateImage3SquigglyBackground;RI.prototype.updateImage1SquigglyBackground=RI.prototype.updateImage1SquigglyBackground;RI.prototype.updateImage0SquigglyBackground=RI.prototype.updateImage0SquigglyBackground;RI.prototype.onThemeChanged=RI.prototype.onThemeChanged;RI.prototype.onDataChanged=RI.prototype.onDataChanged;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],RI.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],RI.prototype,"isDarkTheme",void 0);_.E([_.F(),_.N("design:type",Object)],RI.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],RI.prototype,"title0",void 0);_.E([_.F(),_.N("design:type",Object)],RI.prototype,"title1",void 0);_.E([_.F(),_.N("design:type",Object)],RI.prototype,"title2",void 0);_.E([_.F(),_.N("design:type",Object)],RI.prototype,"title3",void 0);
_.E([_.F(),_.N("design:type",Object)],RI.prototype,"title4",void 0);_.E([_.F(),_.N("design:type",Object)],RI.prototype,"image0",void 0);_.E([_.F(),_.N("design:type",Object)],RI.prototype,"image1",void 0);_.E([_.F(),_.N("design:type",Object)],RI.prototype,"image2",void 0);_.E([_.F(),_.N("design:type",Object)],RI.prototype,"image3",void 0);_.E([_.F(),_.N("design:type",Object)],RI.prototype,"image4",void 0);_.E([_.F(),_.N("design:type",String)],RI.prototype,"image0SquigglyBackground",void 0);
_.E([_.F(),_.N("design:type",String)],RI.prototype,"image1SquigglyBackground",void 0);_.E([_.F(),_.N("design:type",String)],RI.prototype,"image3SquigglyBackground",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RI.prototype,"onDataChanged",null);_.E([_.Zw("isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RI.prototype,"onThemeChanged",null);
_.E([_.Zw("image0SquigglyBackground"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RI.prototype,"updateImage0SquigglyBackground",null);_.E([_.Zw("image1SquigglyBackground"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RI.prototype,"updateImage1SquigglyBackground",null);
_.E([_.Zw("image3SquigglyBackground"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RI.prototype,"updateImage3SquigglyBackground",null);_.E([_.u({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],RI);
_.G(RI,"ytd-handles-claiming-title-images-section-renderer",function(){if(kwb!==void 0)return kwb;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return kwb=f},{mode:1});var TOb;var Vw=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.e(Vw,_.K);Vw.prototype.ready=function(){var f=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(f)};
Vw.prototype.onDarkModeToggledAction=function(f){f!==this.isDarkTheme&&this.set("isDarkTheme",f)};
Vw.prototype.onCopyButtonClick=function(){var f=this,H,v,t;return _.Y(function(M){return(H=f.data)!=null&&H.primaryChannelUrl?M.yield(navigator.clipboard.writeText(((v=f.data)==null?0:v.encodedChannelUrl)?f.data.encodedChannelUrl:"https://"+_.fG((t=f.data)==null?void 0:t.primaryChannelUrl)),0):M.jumpTo(0)})};
_.E([_.F(),_.N("design:type",Object)],Vw.prototype,"data",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Vw.prototype,"ytComponentBehavior",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Vw.prototype,"isDarkTheme",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Vw.prototype,"ytActionHandlerBehavior",void 0);_.E([_.u({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],Vw);
_.G(Vw,"ytd-handles-claiming-update-social-renderer",function(){if(TOb!==void 0)return TOb;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return TOb=f},{mode:1});var wEZ;var yw=function(){var f=_.K.apply(this,arguments)||this;f.JSC$16017_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";f.JSC$16017_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};f.squigglyBackground=f.JSC$16017_squigglyBackgroundLight;return f};
_.e(yw,_.K);yw.prototype.updateSquigglyBackgroundStyle=function(){_.Sr(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
yw.prototype.ready=function(){var f=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",f);this.squigglyBackground=f?this.JSC$16017_squigglyBackgroundDark:this.JSC$16017_squigglyBackgroundLight};
yw.prototype.onDarkModeToggledAction=function(f){f!==this.isDarkTheme&&(this.set("isDarkTheme",f),this.squigglyBackground=f?this.JSC$16017_squigglyBackgroundDark:this.JSC$16017_squigglyBackgroundLight)};
yw.prototype.updateSquigglyBackgroundStyle=yw.prototype.updateSquigglyBackgroundStyle;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],yw.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],yw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],yw.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],yw.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],yw.prototype,"isDarkTheme",void 0);_.E([_.F(),_.N("design:type",String)],yw.prototype,"squigglyBackground",void 0);_.E([_.Zw("squigglyBackground"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yw.prototype,"updateSquigglyBackgroundStyle",null);_.E([_.u({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],yw);
_.G(yw,"ytd-handles-claiming-vanity-info-renderer",function(){if(wEZ!==void 0)return wEZ;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return wEZ=f},{mode:1});var qCh;var Yc=function(){var f=_.K.apply(this,arguments)||this;f.JSC$16020_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";f.JSC$16020_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";f.squigglyBackground=f.JSC$16020_squigglyBackgroundLight;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.e(Yc,_.K);_.R=Yc.prototype;_.R.ready=function(){var f=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(f)};
_.R.onDarkModeToggledAction=function(f){f!==this.isDarkTheme&&(this.set("isDarkTheme",f),this.squigglyBackground=f?this.JSC$16020_squigglyBackgroundDark:this.JSC$16020_squigglyBackgroundLight)};
_.R.updateSquigglyBackgroundStyle=function(){_.Sr(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.R.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.R.detached=function(){this.stop()};
_.R.stop=function(){this.playerElement.stop()};
_.R.setupVideoPlayer=function(){var f=this,H,v;return _.Y(function(t){H=f.data.videoId;v="http://i1.ytimg.com/vi/"+H+"/maxresdefault.jpg";f.playerElement.loadVideoWithPlayerVars({video_id:H,iurlhq:v});_.Bj(t)})};
Yc.prototype.onDataChanged=Yc.prototype.onDataChanged;Yc.prototype.updateSquigglyBackgroundStyle=Yc.prototype.updateSquigglyBackgroundStyle;_.E([_.F({value:!1}),_.N("design:type",Boolean)],Yc.prototype,"isDarkTheme",void 0);_.E([_.F(),_.N("design:type",String)],Yc.prototype,"squigglyBackground",void 0);_.E([_.lJ("#player"),_.N("design:type",Object)],Yc.prototype,"playerElement",void 0);_.E([_.F(),_.N("design:type",Object)],Yc.prototype,"data",void 0);
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Yc.prototype,"ytActionHandlerBehavior",void 0);_.E([_.Zw("squigglyBackground"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Yc.prototype,"updateSquigglyBackgroundStyle",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Yc.prototype,"onDataChanged",null);
_.E([_.u({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],Yc);
_.G(Yc,"ytd-handles-claiming-video-item-renderer",function(){if(qCh!==void 0)return qCh;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return qCh=f},{mode:1});var f99;var $c=function(){var f=_.er.apply(this,arguments)||this;f.dragging=!1;f.dragMouseStart=0;f.dragOffsetStart=0;f.containerWidthDiff=0;f.boundPrevClick=function(){f.set("offset",mI(f,f.offset-(f.scrollDistance||320)))};
f.boundNextClick=function(){f.set("offset",mI(f,f.offset+(f.scrollDistance||320)))};
f.boundScrollContainerMouseDown=function(H){f.dragMouseStart=H.clientX;f.dragOffsetStart=f.offset;f.dragging=!0};
f.boundScrollContainerDrag=function(H){f.dragging&&f.set("offset",mI(f,f.dragOffsetStart-(H.clientX-f.dragMouseStart)))};
f.boundMouseUp=function(){f.onMouseUp()};
f.boundWheelScroll=function(H){var v=0;Math.abs(H.deltaX)>=Math.abs(H.deltaY)?v=H.deltaX:H.shiftKey&&(v=H.deltaY);v!==0&&(f.offset+=v,H.stopPropagation(),H.preventDefault())};
f.boundChipCloudChipScrollIntoView=function(H){(H=H.detail)&&f.scrollChipIntoView(H)};
return f};
_.e($c,_.er);$c.prototype.attached=function(){var f=_.mF(this.hostElement).querySelector("#scroll-container");f.addEventListener("wheel",this.boundWheelScroll);f.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);f.style.touchAction="pan-y";f.addEventListener("pointerdown",this.boundScrollContainerMouseDown);f.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
$c.prototype.detached=function(){var f=_.mF(this.hostElement).querySelector("#scroll-container");f.removeEventListener("wheel",this.boundWheelScroll);f.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);f.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);f.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
$c.prototype.reset=function(){this.set("offset",0);_.qV(this,this.setContainerWidthDiff);WT(this)};
var mI=function(f,H){return Math.min(Math.max(H,0),f.containerWidthDiff)};
$c.prototype.onMouseUp=function(){this.dragging=!1};
$c.prototype.transformContainer=function(){this.offset=mI(this,this.offset);var f=_.a8("HTML_DIR")==="rtl"?"":"-";_.mF(this.hostElement).querySelector("#chips").style.transform="translateX("+f+this.offset+"px)";WT(this)};
var WT=function(f){_.qV(f,f.setButtonsState)};
$c.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=mI(this,this.offset));this.atStart=this.offset<=0};
$c.prototype.setContainerWidthDiff=function(){var f=_.mF(this.hostElement).querySelector("#scroll-container"),H=_.mF(this.hostElement).querySelector("#chips");f&&H&&(this.containerWidthDiff=H.clientWidth-f.clientWidth)};
$c.prototype.scrollChipIntoView=function(f){var H=_.mF(this.hostElement).querySelector("#scroll-container");if(H){var v=this.atStart?0:106,t=this.atEnd?0:106;f.offsetLeft<this.offset+v?this.offset=mI(this,f.offsetLeft-v):f.offsetLeft+f.clientWidth>this.offset+H.clientWidth-t&&(this.offset=mI(this,f.offsetLeft+f.clientWidth+t-H.clientWidth))}};
$c.prototype.transformContainer=$c.prototype.transformContainer;_.E([_.F({value:0}),_.N("design:type",Number)],$c.prototype,"offset",void 0);_.E([_.F({value:!0,reflectToAttribute:!0}),_.N("design:type",Boolean)],$c.prototype,"atStart",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],$c.prototype,"atEnd",void 0);_.E([_.F(),_.N("design:type",Number)],$c.prototype,"scrollDistance",void 0);
_.E([_.Zw("offset"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$c.prototype,"transformContainer",null);_.E([_.L2()],$c);var Hsa;var vyZ;var hXb=_.a(function(f){var H=f.data;f=_.V(_.gp(!1,void 0,"HDMMr"));var v=f.next().value,t=f.next().value;f={};f=_.S2("ytChipShapeChip",function(){a:switch(H==null?void 0:H().state){case 0:var h="ytChipShapeActive";break a;case 1:h="ytChipShapeDisabled";break a;default:h="ytChipShapeInactive"}return h},function(){var h=H().type===1||H().type===2,y=H();
return h||y!=null&&y.startIcon?y==null||!y.startIcon||y!=null&&y.text?h?"ytChipShapeEndIconPadding":(y==null?0:y.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(f.ytChipShapeFocused=function(){var h;
return v()&&((h=H())==null?void 0:h.state)!==1},f));
var M=function(h){if((H==null?void 0:H().state)!==1){var y,m;(m=(y=H()).onTap)==null||m.call(y,h)}};
return _.O("chip-shape",{class:"ytChipShapeHost","on:focusin":_.d6(function(){var h=_.t8().resolve(_.vh(_.RM));if(h){t(h.isKeyBoardInUse());var y,m;(m=(y=H()).onFocusIn)==null||m.call(y)}return!1}),
"on:focusout":_.d6(function(){t(!1);return!1})},_.O(tCa,{shouldWrapInButton:function(){return H().type!==2},
selected:function(){return H().state===0},
onClick:M,isDropdown:function(){return H().type===1},
accessibilityLabel:function(){return H().accessibilityLabel}},_.O("div",{class:f},_.O(_.g,{cond:function(){return H().startIcon},
then:function(){return _.O(_.JE,{icon:function(){var h;return(h=H())==null?void 0:h.startIcon},
className:function(){return H().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return H().text},_.O(MCH,{shape:H,
onClick:M}),_.O(_.yU,{model:{borderRadius:"8px"}}))))},"Nb");
hXb.idomCompat=!0;var tCa=_.a(function(f){var H=_.d6(function(v){f.onClick(v);return!1});
return _.O(_.g,{cond:f.shouldWrapInButton,then:function(){return _.O("button",{class:"ytChipShapeButtonReset","on:click":H,role:function(){return f.isDropdown()?"combobox":"tab"},
"aria-label":f.accessibilityLabel,"aria-selected":f.selected},f.children)},
else:function(){return f.children}})},"Ob"),MCH=_.a(function(f){var H=f.shape;
var v=f.onClick;var t=_.d6(function(M){v(M);return!1});
return _.O(_.B6,null,_.O(_.Lc,{when:function(){return H().type===1}},function(){return _.O(_.JE,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.O(_.Lc,{when:function(){return H().type===2}},function(){return _.O("button",{class:"ytChipShapeButtonReset",
"on:click":t},_.O(_.JE,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.O(_.Lc,{when:function(){return H().type===0}},function(){return _.O(_.R8,null)}))},"Pb");_.yn(hXb,"chip-shape",{props:{data:_.ki}});var Ot=function(){var f=_.K.apply(this,arguments)||this;f.disableDeselectEvent=!1;f.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return f};
_.e(Ot,_.K);_.R=Ot.prototype;_.R.onSelectChipCommand=function(f){if(!this.selected&&this.data&&(f=_.U(f,MdM),f.targetId&&f.targetId===this.data.targetId))this.onTap()};
_.R.onFilterChipTransformCommand=function(f){if(!this.selected&&this.data){var H;(f=(H=_.U(f,TQZ))==null?void 0:H.chipUniqueId)&&f===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.R.dataChanged=function(){var f=this;_.qV(this,function(){f.data&&f.data.isSelected&&!f.selected&&(f.scrollChipIntoView(),f.onTap())})};
_.R.computeChipStyle=function(f){return f!=null?f:"STYLE_DEFAULT"};
_.R.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.mb(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.mb(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.R.onFocus=function(){var f=_.t8().resolve(_.vh(_.RM));f&&f.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.R.scrollChipIntoView=function(){_.YE(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.H7.Object.defineProperties(Ot.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return bHN({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
Ot.prototype.onFocus=Ot.prototype.onFocus;Ot.prototype.onTap=Ot.prototype.onTap;Ot.prototype.dataChanged=Ot.prototype.dataChanged;_.E([_.B(_.Z6),_.N("design:type",Object)],Ot.prototype,"ironButtonState",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Ot.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Ot.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Ot.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.dS),_.N("design:type",Object)],Ot.prototype,"ironA11yKeysBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Ot.prototype,"disableDeselectEvent",void 0);_.E([_.F(),_.N("design:type",Object)],Ot.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.z("data.icon"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ot.prototype,"hasIcon",null);
_.E([_.F({reflectToAttribute:!0}),_.z("data.uniqueId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ot.prototype,"isGnomeChip",null);_.E([_.F({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.N("design:type",String)],Ot.prototype,"chipStyle",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Ot.prototype,"selected",void 0);
_.E([_.z("data","selected"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ot.prototype,"chipShapeData",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ot.prototype,"dataChanged",null);_.E([_.sE("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ot.prototype,"onTap",null);
_.E([_.sE("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ot.prototype,"onFocus",null);_.E([_.GW({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],Ot);
_.G(Ot,"yt-chip-cloud-chip-renderer",function(){if(vyZ===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;Hsa===void 0&&(Hsa=document.createElement("template"));var t=Hsa;v.call(H,t.content.cloneNode(!0),f.content.firstChild);vyZ=f}f=vyZ;return f},{mode:2});var gv=function(){var f=_.K.apply(this,arguments)||this;f.isDarkTheme=!1;f.notSticky=!1;f.transparentBackground=!1;f.shouldHide=!1;f.disableSticky=!1;f.fluidWidth=!1;f.isClipList=!1;f.defaultChipIndex=0;f.isPlaylist=!1;f.playlistVotingAnimationEnabled=_.J("web_enable_voting_animation");f.toolbarHeight=0;f.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return f};
_.e(gv,_.K);_.R=gv.prototype;
_.R.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}}}}}};
_.R.attached=function(){var f=this;document.addEventListener("scroll",_.jr(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var H;this.toolbarHeight=((H=document.querySelector("ytd-masthead"))==null?void 0:H.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(v){f.handleIntersect(v)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){f.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.R.detached=function(){var f;(f=this.intersectionObserver)==null||f.disconnect();var H;(H=this.resizeObserver)==null||H.disconnect();document.removeEventListener("scroll",_.jr(this,this.updateChipBarWidthAndTop))};
_.R.dataChanged=function(){var f=this,H,v,t;((t=_.U((H=this.data)==null?void 0:(v=H.contents)==null?void 0:v[0],K5v))==null?void 0:t.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var M=this.findSelectedChipIndex();this.selectedIndex!==M&&(this.selectedIndex=-1);_.qV(this,function(){f.selectedIndex=M;f.updating=!1;f.ytScrollableChipCloudBehavior.reset()})};
_.R.findSelectedChipIndex=function(){var f;if((f=this.data)==null||!f.contents)return 0;f=this.data.contents;for(var H=0;H<f.length;H++){var v=void 0;if((v=_.U(f[H],K5v))==null?0:v.isSelected)return H}return 0};
_.R.computeStyle=function(f){return f};
_.R.handleChipCloudChipSelectAction=function(f){f=this.JSC$16041_chipsSelector.indexOf(f);f>-1&&this.JSC$16041_chipsSelector.selectIndex(f)};
_.R.handleChipCloudChipDeselectAction=function(){if(_.J("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var f,H,v,t=(v=_.U((f=this.data)==null?void 0:(H=f.contents)==null?void 0:H[0],K5v))==null?void 0:v.navigationEndpoint;t&&_.mb(this.hostElement,"yt-browse-section-list-reload-endpoint",[t]);this.JSC$16041_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.R.onGuideIsExpandedChanged=function(){var f=this.ytScrollableChipCloudBehavior;_.qV(f,f.setContainerWidthDiff);WT(this.ytScrollableChipCloudBehavior)};
_.R.onResize=function(){var f=this.ytScrollableChipCloudBehavior;_.qV(f,f.setContainerWidthDiff);WT(this.ytScrollableChipCloudBehavior)};
_.R.onDarkModeToggledAction=function(f){this.isDarkTheme=f};
_.R.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.R.handleIntersect=function(f){this.notSticky=this.isChannelPageGrid||this.disableSticky||f[0].intersectionRatio===1};
_.R.updateDimensions=function(){var f=this.ytRendererBehavior.parentComponent;if(f){var H,v=(H=f.headerElement)!=null?H:f;_.Sr(this.hostElement,{"--ytd-rich-grid-chips-bar-width":v.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.R.updateSelectedIndexFromBinding=function(f){this.selectedIndex=f.detail.value};
_.R.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var f;(f=this.sortFilterHeaderRendererElement)==null||f.setAttribute("is-playlist-page-with-filters","")}};
_.R.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(I19(!this.notSticky))};
_.H7.Object.defineProperties(gv.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 f,H,v=(f=this.data)==null?void 0:(H=f.contents)==null?void 0:H.find(function(t){return _.U(t,Qfh)});
return{sortFilterHeaderRenderer:_.U(v,Qfh)}}}});
gv.prototype.dispatchChipBarIsSticky=gv.prototype.dispatchChipBarIsSticky;gv.prototype.isPlaylistPageChanged=gv.prototype.isPlaylistPageChanged;gv.prototype.updateChipBarWidthAndTop=gv.prototype.updateChipBarWidthAndTop;gv.prototype.onResize=gv.prototype.onResize;gv.prototype.onGuideIsExpandedChanged=gv.prototype.onGuideIsExpandedChanged;gv.prototype.dataChanged=gv.prototype.dataChanged;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],gv.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],gv.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],gv.prototype,"actionHandlerBehavior",void 0);_.E([_.B(_.x3),_.N("design:type",Object)],gv.prototype,"ironResizableBehavior",void 0);_.E([_.B(),_.N("design:type",$c)],gv.prototype,"ytScrollableChipCloudBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],gv.prototype,"ytdReduxBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],gv.prototype,"data",void 0);_.E([_.F({value:0}),_.N("design:type",Number)],gv.prototype,"selectedIndex",void 0);_.E([_.F({value:320}),_.N("design:type",Number)],gv.prototype,"scrollDistance",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],gv.prototype,"isDarkTheme",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],gv.prototype,"notSticky",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],gv.prototype,"transparentBackground",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.N("design:type",String)],gv.prototype,"componentStyle",void 0);_.E([_.F({selector:_.XLs}),_.N("design:type",Boolean)],gv.prototype,"guideIsExpanded",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],gv.prototype,"shouldHide",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],gv.prototype,"disableSticky",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],gv.prototype,"fluidWidth",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],gv.prototype,"isClipList",void 0);_.E([_.F(),_.N("design:type",Object)],gv.prototype,"defaultChipIndex",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],gv.prototype,"isPlaylist",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],gv.prototype,"playlistVotingAnimationEnabled",void 0);_.E([_.lJ("#chips"),_.N("design:type",Object)],gv.prototype,"JSC$16041_chipsSelector",void 0);_.E([_.lJ("ytd-sort-filter-header-renderer"),_.N("design:type",HTMLElement)],gv.prototype,"sortFilterHeaderRendererElement",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],gv.prototype,"updating",void 0);
_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],gv.prototype,"dataChanged",null);_.E([_.Zw("guideIsExpanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],gv.prototype,"onGuideIsExpandedChanged",null);_.E([_.sE("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],gv.prototype,"onResize",null);
_.E([_.xV("isChannelPageGrid","disableSticky","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],gv.prototype,"updateChipBarWidthAndTop",null);_.E([_.z("componentStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],gv.prototype,"isChannelPageGrid",null);_.E([_.z("componentStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],gv.prototype,"isHashtagLandingPage",null);
_.E([_.Zw("isPlaylistPage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],gv.prototype,"isPlaylistPageChanged",null);_.E([_.z("componentStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],gv.prototype,"isPlaylistPage",null);_.E([_.z("componentStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],gv.prototype,"isDisableDeselectEvent",null);
_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],gv.prototype,"sortFilterHeaderRendererData",null);_.E([_.F({reflectToAttribute:!0,selector:_.qI5}),_.N("design:type",String)],gv.prototype,"frostedGlassMode",void 0);_.E([_.Zw("notSticky"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],gv.prototype,"dispatchChipBarIsSticky",null);_.E([_.u({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],gv);
_.G(gv,"ytd-feed-filter-chip-bar-renderer",function(){if(f99!==void 0)return f99;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return f99=f},{mode:1});var RXh;var VCg=_.a(function(f){var H=f.data;var v=f.buttonIndex;var t=f.selectedIndex;var M=f.onSelect;var h=function(){return v()===t()},y=function(){var m,W;
return(W=(m=H().text)==null?void 0:m.content)!=null?W:""};
f=_.Xge();return _.O("yt-toggleable-image-button-view-model",{class:function(){var m={};m=(m.toggleableImageButtonViewModelHost=!0,m[""]=!0,m.toggleableImageButtonViewModelSemiTransparent=t()!==-1&&!h(),m);return _.zV(m)},
tabindex:0,"aria-label":y,"aria-pressed":h,role:"button","on:keydown":f,"on:click":_.d6(function(){M(H().onSubmitCommand);return!1})},_.O(_.g,{cond:function(){return H().logo},
then:function(m){return _.O(_.Hn,{data:m,className:function(){var W={};W=(W.toggleableImageButtonViewModelImage=!0,W.toggleableImageButtonViewModelCircularRadius=!(!H().backgroundColor||!H().backgroundColorDarkMode),W.toggleableImageButtonViewModelGradientRing=!!(h()&&H().backgroundColor&&H().backgroundColorDarkMode),W);return _.zV(W)},
alt:y,useWidth:!1,style:function(){if(h()&&H().backgroundColor&&H().backgroundColorDarkMode){var W=XE(Number(H().backgroundColorDarkMode),"1");var I=XE(Number(H().backgroundColor),"1");W="background: linear-gradient(180deg,"+W+","+I+") border-box;"}else W="";return W}})}}),_.O(_.yU,{model:{borderRadius:"16px"}}),_.O("p",{class:function(){var m={};
m=(m.toggleableImageButtonViewModelLabel=!0,m.toggleableImageButtonViewModelBoldText=h(),m);return _.zV(m)}},_.O(_.iq,{text:function(){return H().text}})))},"Qb");
VCg.idomCompat=!0;var YGg=_.a(function(f){var H=f.data;f=_.V(_.gp({index:-1,command:{}},void 0,"GM3umb"));var v=f.next().value,t=f.next().value;return _.O("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.O("div",{class:"nudgeFormViewModelFormOptions"},_.O(_.Jj,{data:function(){return H().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(M,h){return _.O(VCg,{data:M.data,buttonIndex:h,selectedIndex:function(){return v().index},
onSelect:function(y){t({index:h(),command:y})}})}})),_.O(_.iq,{text:function(){return H().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.O("div",{class:"nudgeFormViewModelSubmit"},_.O(_.Jj,{data:function(){return H().submitButton}},{buttonViewModel:function(M){return _.O(yu9,{data:M.data,
isDisabled:function(){return v().index===-1},
onClick:function(){_.XA(v().command)}})}})))},"Rb");
YGg.idomCompat=!0;var yu9=_.a(function(f){var H=_.sg(function(){return Object.assign({},f.data(),{state:f.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.O(_.Wp,{data:H,onClick:f.onClick})},"Sb");_.yn(YGg,"yt-nudge-form-view-model",{props:{data:_.ki}});var II=function(){var f=_.K.apply(this,arguments)||this;f.roundedContainer=!0;f.buttonUpdate=_.J("web_modern_buttons");f.isDarkMode=!1;f.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return f};
_.e(II,_.K);_.R=II.prototype;_.R.computeNudgeStyle=function(f){return f?"modernized-nudge":""};
_.R.handleDarkModeToggledAction=function(f){this.isDarkMode=f};
_.R.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.R.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"}}}};
_.R.computeIsHorizontalButtons=function(f){return f?!!f.applyModernizedStyle&&!!f.enableHorizontalButtons&&!!f.secondaryButton:!1};
_.H7.Object.defineProperties(II.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var f,H;return(H=(f=this.data)==null?void 0:f.backgroundStyle)!=null?H:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var f,H;return(H=(f=this.data)==null?void 0:f.contentsLocation)!=null?H:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null?0:f.lightIconImage)}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],II.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],II.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.PG),_.N("design:type",Object)],II.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],II.prototype,"actionHandlerBehavior",void 0);
_.E([_.F({reflectToAttribute:!0}),_.z("isHideEnclosingAction"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],II.prototype,"isHidden",null);_.E([_.F(),_.N("design:type",Object)],II.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],II.prototype,"roundedContainer",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],II.prototype,"buttonUpdate",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.N("design:type",String)],II.prototype,"nudgeStyle",void 0);_.E([_.F({reflectToAttribute:!0}),_.z("data.trimStyle"),_.N("design:type",String),_.N("design:paramtypes",[])],II.prototype,"trimStyle",null);_.E([_.F({reflectToAttribute:!0}),_.z("data.backgroundStyle"),_.N("design:type",String),_.N("design:paramtypes",[])],II.prototype,"backgroundStyle",null);
_.E([_.F({reflectToAttribute:!0}),_.z("data.contentsLocation"),_.N("design:type",String),_.N("design:paramtypes",[])],II.prototype,"contentsLocation",null);_.E([_.F({reflectToAttribute:!0}),_.z("data.disableDropShadow"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],II.prototype,"noShadow",null);_.E([_.F({reflectToAttribute:!0}),_.z("data.lightIconImage"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],II.prototype,"noIcon",null);
_.E([_.F({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.N("design:type",Boolean)],II.prototype,"isHorizontalButtons",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Object)],II.prototype,"isDarkMode",void 0);_.E([_.u({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],II);
_.G(II,"ytd-feed-nudge-renderer",function(){if(RXh!==void 0)return RXh;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return RXh=f},{mode:_.WK("kevlar_poly_si_batch_j028")?1:2});var mFh;var $Fg;var SX=function(){var f=_.K.apply(this,arguments)||this;f.collapsed=!1;f.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return f};
_.e(SX,_.K);SX.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"}}}};
SX.prototype.handleRatingSelect=function(){var f;((f=this.data)==null?0:f.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
SX.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],SX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],SX.prototype,"actionHandlerBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],SX.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],SX.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.PG),_.N("design:type",Object)],SX.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],SX.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],SX.prototype,"collapsed",void 0);_.E([_.u({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],SX);
_.G(SX,"ytd-slimline-survey-renderer",function(){if($Fg!==void 0)return $Fg;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return $Fg=f},{mode:1});var WRC;var dv=function(){return _.K.apply(this,arguments)||this};
_.e(dv,_.K);dv.prototype.maybeGetBackgroundColor=function(f){return this.isDarkMode?f.section2Color:f.section3Color};
dv.prototype.colorPaletteChanged=function(){var f=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;f&&(f==null?0:f.secondaryTitleColor)&&this.maybeGetBackgroundColor(f)?(this.hostElement.style.backgroundColor=_.NS(this.maybeGetBackgroundColor(f)),this.hostElement.style.color=_.NS(f.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
dv.prototype.colorPaletteChanged=dv.prototype.colorPaletteChanged;_.E([_.B(_.um),_.N("design:type",Object)],dv.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],dv.prototype,"data",void 0);_.E([_.F({selector:function(f){return f.ui.darkModeIsEnabled}}),
_.N("design:type",Boolean)],dv.prototype,"isDarkMode",void 0);_.E([_.F(),_.N("design:type",Object)],dv.prototype,"lightColorPalette",void 0);_.E([_.F(),_.N("design:type",Object)],dv.prototype,"darkColorPalette",void 0);_.E([_.Zw("darkColorPalette","lightColorPalette","data","isDarkMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dv.prototype,"colorPaletteChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],dv);
_.G(dv,"ytd-endorsement-header-renderer",function(){if(WRC!==void 0)return WRC;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return WRC=f},{mode:1});_.yn(_.Dj,"yt-decorated-avatar-view-model",{props:{data:_.ki,className:_.ki}});_.jX=new _.iN("VIEW_TRANSITION_MANAGER_TOKEN");var st=function(){var f=_.K.apply(this,arguments)||this;f.fullHeight=_.J("web_rich_grid_media_full_height");f.showChannelAvatar=!0;f.hasPlaylistThumbnail=!1;f.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};f.registerThumbnailForPageTransition=function(){_.J("web_thumbnail_to_watch_transition")&&_.Os9(_.t8().resolve(_.jX),f.thumbnail)};
return f};
_.e(st,_.K);_.R=st.prototype;
_.R.configureRendererStamper=function(){return{lazyLoadMenu:dq,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"}}}};
_.R.attached=function(){this.updateInlinePreviewHoverListeners()};
_.R.detached=function(){this.clearInlinePreviewHoverListeners()};
_.R.shouldLazyLoadMenu=function(){var f=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.J("kevlar_modern_downloads_page")||!f};
_.R.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16066_inlinePreviewHoverListener=Q4({mediaRenderer:this,lockupElement:this.JSC$16066_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.R.getVideoPreviewOpts=function(){var f={},H;if((H=this.data)==null?0:H.multipleInlinePlaybackEndpoint)f=hE_;this.isRadio&&(f=MMh);return f};
_.R.clearInlinePreviewHoverListeners=function(){var f;(f=this.JSC$16066_inlinePreviewHoverListener)==null||AY(f)};
_.R.getOwner=function(){var f,H,v;return((f=this.data)==null?void 0:(H=f.channelThumbnailSupportedRenderers)==null?void 0:H.channelThumbnailWithLinkRenderer)||_.U((v=this.data)==null?void 0:v.showProviderChannelThumbnail,ye9)};
_.R.updateLockupSize=function(){var f;((f=this.getOwner())==null?0:f.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.R.getFeedbackEndpoint=function(f){if(_.U(f,_.B1))return f;var H,v;f=(v=(H=_.U(f,_.Ir))==null?void 0:H.commands)!=null?v:[];H=_.V(f);for(v=H.next();!v.done;v=H.next())if(v=this.getFeedbackEndpoint(v.value))return v;return null};
_.R.computeNavigationEndpoint=function(f){return wws(f==null?void 0:f.navigationEndpoint)};
_.R.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var f=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(f)!==JSON.stringify(this.data)&&this.set("data",f)}};
_.R.onDataChanged=function(){var f=this,H=this.getOwner();if(H){this.set("data.owner",H);var v,t,M,h,y,m=((v=this.data)==null?void 0:(t=v.shortBylineText)==null?void 0:(M=t.runs)==null?void 0:(h=M[0])==null?void 0:h.text)||((y=H.name)==null?void 0:y.simpleText);this.set("data.owner.title",m)}var W,I,S,d,Z,l;H=((W=this.data)==null?void 0:(I=W.thumbnailRenderer)==null?void 0:I.playlistVideoThumbnailRenderer)||((S=this.data)==null?void 0:(d=S.thumbnailRenderer)==null?void 0:d.playlistCustomThumbnailRenderer)||
((Z=this.data)==null?void 0:(l=Z.thumbnailRenderer)==null?void 0:l.showCustomThumbnailRenderer);var L;((L=this.data)==null?0:L.thumbnail)||!H||this.set("data.thumbnail",H.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){f.updateLockupSize()});
var r;if(W=((r=this.data)==null?void 0:r.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(W);var n;((n=this.dismissActionToReplayEntity)==null?0:n.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.R.onHiddenChanged=function(){this.updateLockupSize()};
_.R.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.mb(this.hostElement,"yt-terminate-video-preview-action");else{var f;(f=this.videoTitleLink)==null||f.focus()}};
_.R.metadataColorChanged=function(){var f;if(this.metadataColor&&((f=this.videoTitle)==null?0:f.style))this.videoTitle.style.color=_.NS(this.metadataColor);else{var H,v;!this.metadataColor&&((H=this.videoTitle)==null?0:(v=H.style)==null?0:v.color)&&(this.videoTitle.style.color="")}};
_.R.onDetailsClick=function(f){var H=this.computedNavigationEndpoint;H&&(_.w6(_.f2(f),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.YE(this.hostElement,"yt-navigate",{endpoint:H}))};
_.R.onRendererTap=function(){this.registerThumbnailForPageTransition();var f,H,v=((f=this.data)==null?void 0:f.serviceEndpoint)||this.getFeedbackEndpoint((H=this.data)==null?void 0:H.navigationEndpoint);v&&_.U(v,_.B1)&&this.ytComponentBehavior.resolveCommand(v)};
_.R.onMouseDown=function(f){var H=f.target,v=this.computedNavigationEndpoint,t;f=H.href||((t=_.U(v==null?void 0:v.commandMetadata,_.jG))==null?void 0:t.url);t=H.data||v;f&&t&&nSB(f,t)};
_.R.computeVideoTitleText=function(){var f;if((f=this.data)==null?0:f.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.R.computeHasPlaylistThumbnail=function(f){var H,v,t,M,h;if((((H=f.thumbnailRenderer)==null?0:H.playlistVideoThumbnailRenderer)||((v=f.thumbnailRenderer)==null?0:v.playlistCustomThumbnailRenderer)||((t=f.thumbnailRenderer)==null?0:t.showCustomThumbnailRenderer)||((M=f.thumbnailRenderer)==null?0:M.playlistVideoThumbnailRenderer)||((h=f.thumbnailRenderer)==null?0:h.playlistCustomThumbnailRenderer))&&f.thumbnailOverlays)for(H=0;H<f.thumbnailOverlays.length;H++)if(v=void 0,(v=f.thumbnailOverlays[H])==
null?0:v.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.H7.Object.defineProperties(st.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.J("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var f;return(f=this.data)==null?void 0:f.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var f;return(f=this.data)==null?void 0:f.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.JSC$16066_inlinePreviewHoverListener)==null?0:Q5(f))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.lY(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var f,H;return((f=this.data)==null?void 0:f.videoId)||((H=this.data)==null?void 0:H.playlistId)||""}}});
st.prototype.onMouseDown=st.prototype.onMouseDown;st.prototype.metadataColorChanged=st.prototype.metadataColorChanged;st.prototype.onIsDismissedChanged=st.prototype.onIsDismissedChanged;st.prototype.onHiddenChanged=st.prototype.onHiddenChanged;st.prototype.onDataChanged=st.prototype.onDataChanged;st.prototype.handleReloadDownloadsInfo=st.prototype.handleReloadDownloadsInfo;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],st.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],st.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],st.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.PG),_.N("design:type",Object)],st.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.B(_.A_),_.N("design:type",Object)],st.prototype,"ytdLockupBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],st.prototype,"ytdReduxBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],st.prototype,"data",void 0);_.E([_.F(),_.N("design:type",String)],st.prototype,"entitySelectorType",void 0);_.E([_.F(),_.N("design:type",Boolean)],st.prototype,"noEndpoints",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],st.prototype,"isRadio",void 0);_.E([_.F({reflectToAttribute:!0,selector:_.Qq}),_.N("design:type",Boolean)],st.prototype,"miniMode",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],st.prototype,"fullHeight",void 0);
_.E([_.F(),_.N("design:type",Boolean)],st.prototype,"showDarkVideoMetadata",void 0);_.E([_.F(),_.N("design:type",Boolean)],st.prototype,"showLightVideoMetadata",void 0);_.E([_.F(),_.N("design:type",Number)],st.prototype,"metadataColor",void 0);_.E([_.F(),_.N("design:type",Object)],st.prototype,"showChannelAvatar",void 0);_.E([_.F(),_.N("design:type",Boolean)],st.prototype,"hidden",void 0);_.E([_.F({value:!0}),_.N("design:type",Boolean)],st.prototype,"showYtInteraction",void 0);
_.E([_.F(),_.N("design:type",String)],st.prototype,"dismissedContentId",void 0);_.E([_.F({selectorArgs:["dismissedContentId"],selector:bas}),_.N("design:type",Object)],st.prototype,"dismissActionToReplayEntity",void 0);
_.E([_.F({selectorArgs:["entitySelectorType","mediaId"],selector:function(f,H,v){if(_.J("kevlar_modern_downloads_page")&&v&&H&&H!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(H){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var t=tDT(f,v);if(t){H=_.CY(f,v);var M=NO(f,v),h=I5v(f,v);f=ca(f,v);var y=lsg(t,H,M,h);M=y.shortViewCountText;var m=y.publishedTimeText;y=y.badges;var W=f>0;h=ZWs(t,H,h,f);t=_.xT(H)||H==="TRANSFER_STATE_FAILED"||H==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!LY(t.policyEntity)?
void 0:kAB(v,f,t.videoEntity.lengthSeconds);H==="TRANSFER_STATE_PAUSED_BY_USER"&&v&&!_.J("dl_resume_click_killswitch")&&(t={offlineVideoEndpoint:{videoId:v,action:"ACTION_RESUME"}});v={shortViewCountText:M,publishedTimeText:m,badges:y,isWatched:W,navigationEndpoint:t,thumbnailOverlays:h}}else v=void 0;return v;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(H=MDR(f,v))if(t=_.EF(f,v),h=_.hPR(f,v),t!=="TRANSFER_STATE_UNKNOWN"){v=J$E(H,t,h,v,_.GZ(f));break a}v=void 0}return v;default:_.pb(new _.e$("Error: entitySelectorType defined but not matched in selector.",
f,H))}}}),
_.N("design:type",Object)],st.prototype,"entityDrivenState",void 0);_.E([_.F({computed:"computeVideoTitleText(data)"}),_.N("design:type",Object)],st.prototype,"videoTitleText",void 0);_.E([_.F({computed:"computeHasPlaylistThumbnail(data)"}),_.N("design:type",Object)],st.prototype,"hasPlaylistThumbnail",void 0);_.E([_.F({computed:"computeNavigationEndpoint(data)"}),_.N("design:type",Object)],st.prototype,"computedNavigationEndpoint",void 0);
_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],st.prototype,"typographyBump",void 0);_.E([_.F({reflectToAttribute:!0}),_.z("typographyBump"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],st.prototype,"typographyBumpV2",null);_.E([_.lJ("#video-title"),_.N("design:type",HTMLElement)],st.prototype,"videoTitle",void 0);_.E([_.lJ("#video-title-link"),_.N("design:type",HTMLElement)],st.prototype,"videoTitleLink",void 0);
_.E([_.lJ("#thumbnail"),_.N("design:type",HTMLElement)],st.prototype,"thumbnail",void 0);_.E([_.lJ("#dismissible"),_.N("design:type",HTMLElement)],st.prototype,"JSC$16066_dismissibleMedia",void 0);_.E([_.z("data.menu"),_.N("design:type",Object),_.N("design:paramtypes",[])],st.prototype,"lazyLoadMenu",null);_.E([_.z("data.menu"),_.N("design:type",Object),_.N("design:paramtypes",[])],st.prototype,"immediateLoadMenu",null);
_.E([_.xV("entityDrivenState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],st.prototype,"handleReloadDownloadsInfo",null);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],st.prototype,"onDataChanged",null);_.E([_.xV("hidden"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],st.prototype,"onHiddenChanged",null);
_.E([_.Zw("isDismissed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],st.prototype,"onIsDismissedChanged",null);_.E([_.Zw("metadataColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],st.prototype,"metadataColorChanged",null);_.E([_.sE("mousedown"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],st.prototype,"onMouseDown",null);
_.E([_.z("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],st.prototype,"isHovered",null);_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],st.prototype,"useAvatar",null);_.E([_.z("data","entitySelectorType"),_.N("design:type",String),_.N("design:paramtypes",[])],st.prototype,"mediaId",null);_.E([_.u({is:"ytd-rich-grid-media",disableElementRegistration:!0})],st);
var gyh=_.$6()(st,"ytd-rich-grid-media",function(){if(mFh!==void 0)return mFh;var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return mFh=f},{mode:_.WK("kevlar_poly_si_batch_j072")?1:2});var I9g;var Zv=function(){var f=_.K.apply(this,arguments)||this;f.removeMaxWidth=!0;f.insetMetadata=!1;return f};
_.e(Zv,_.K);_.R=Zv.prototype;_.R.configureRendererStamper=function(){return{innerMenu:dq,outerMenu:Object.assign({},dq,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.R.onDataChanged=function(){var f,H=((f=this.data)==null?void 0:f.trackingParams)||"";H&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(H));var v;((v=this.dismissActionToReplayEntity)==null?0:v.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.R.attached=function(){this.updateInlinePreviewHoverListeners()};
_.R.detached=function(){this.clearInlinePreviewHoverListeners()};
_.R.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16071_inlinePreviewHoverListener=Q4({mediaRenderer:this,lockupElement:this.JSC$16071_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:RE9})};
_.R.clearInlinePreviewHoverListeners=function(){var f;(f=this.JSC$16071_inlinePreviewHoverListener)==null||AY(f)};
_.R.onRendererTap=function(){var f,H,v=(f=this.data)==null?void 0:(H=f.serviceEndpoints)==null?void 0:H[0];_.U(v,_.B1)&&this.componentBehavior.resolveCommand(v)};
_.R.onDetailsClick=function(f){var H,v=(H=this.data)==null?void 0:H.navigationEndpoint;v&&(_.w6(_.f2(f),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(v))};
_.R.onShow=function(){var f=this.data;f.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(f.onFirstVisibleCommand),delete f.onFirstVisibleCommand)};
_.H7.Object.defineProperties(Zv.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var f;return this.insetMetadata?void 0:(f=this.data)==null?void 0:f.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var f;return this.insetMetadata?(f=this.data)==null?void 0:f.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var f=this.data;if(f!=null&&f.badge&&(f=_.U(f.badge,eYT))){var H,v,t;return[{metadataBadgeRenderer:{label:((H=f.label)==null?void 0:(v=H.runs)==null?void 0:v[0].text)||((t=f.label)==null?void 0:t.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var f=this.data;return Object.assign({},f.headline,{accessibility:f.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var f,H,v;return this.isSlimShort?(f=this.computedTitle)==null?void 0:(H=f.accessibility)==null?void 0:(v=H.accessibilityData)==null?void 0:v.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.J("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.JSC$16071_inlinePreviewHoverListener)==null?0:Q5(f))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Zv.prototype.onDataChanged=Zv.prototype.onDataChanged;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Zv.prototype,"componentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Zv.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.A_),_.N("design:type",Object)],Zv.prototype,"ytdLockupBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Zv.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.B(_.PG),_.N("design:type",Object)],Zv.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],Zv.prototype,"ytdReduxBehavior",void 0);_.E([_.lJ("ytd-thumbnail"),_.N("design:type",HTMLElement)],Zv.prototype,"thumbnail",void 0);_.E([_.lJ("#dismissible"),_.N("design:type",HTMLElement)],Zv.prototype,"JSC$16071_dismissibleMedia",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Zv.prototype,"removeMaxWidth",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Zv.prototype,"insetMetadata",void 0);_.E([_.F(),_.N("design:type",String)],Zv.prototype,"dismissedContentId",void 0);_.E([_.F({selectorArgs:["dismissedContentId"],selector:bas}),_.N("design:type",Object)],Zv.prototype,"dismissActionToReplayEntity",void 0);_.E([_.z("insetMetadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],Zv.prototype,"thumbnailObjectFit",null);
_.E([_.z("data","insetMetadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],Zv.prototype,"innerMenu",null);_.E([_.z("data","insetMetadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],Zv.prototype,"outerMenu",null);_.E([_.F(),_.N("design:type",Object)],Zv.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,selector:_.Qq}),_.N("design:type",Boolean)],Zv.prototype,"miniMode",void 0);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zv.prototype,"onDataChanged",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Zv.prototype,"shortsBadges",null);_.E([_.z("data"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Zv.prototype,"isShort",null);
_.E([_.z("data"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Zv.prototype,"isSlimShort",null);_.E([_.z("data","isShort"),_.N("design:type",Object),_.N("design:paramtypes",[])],Zv.prototype,"computedTitle",null);_.E([_.z("isSlimShort","computedTitle"),_.N("design:type",Object),_.N("design:paramtypes",[])],Zv.prototype,"computedAccessibilityLabel",null);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Zv.prototype,"shouldForce2By3",null);_.E([_.z("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Zv.prototype,"isHovered",null);_.E([_.u({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],Zv);
_.G(Zv,"ytd-rich-grid-slim-media",function(){if(I9g!==void 0)return I9g;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return I9g=f},{mode:_.WK("kevlar_poly_si_batch_j063")?1:2});var SGh;var dFM;var Js=function(){var f=_.K.apply(this,arguments)||this;f.darkerDarkTheme=_.J("web_darker_dark_theme");return f};
_.e(Js,_.K);Js.prototype.computeIcon=function(f){return f&&f.iconType?"yt-sys-icons:"+f.iconType.toLowerCase():""};
Js.prototype.onMouseEnter=function(){this.isHovered=!0};
Js.prototype.onMouseLeave=function(){this.isHovered=!1};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Js.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Js.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Js.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Js.prototype,"data",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],Js.prototype,"isHovered",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Js.prototype,"darkerDarkTheme",void 0);_.E([_.u({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],Js);
_.G(Js,"ytd-expand-on-hover-card-renderer",function(){if(dFM!==void 0)return dFM;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return dFM=f},{mode:1});var j4o,s4r=function(){if(j4o!==void 0)return j4o;var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return j4o=f};_.DE("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var lU=function(){var f=_.K.apply(this,arguments)||this;f.compactStyle=!1;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.e(lU,_.K);_.R=lU.prototype;_.R.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.R.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"}}}};
_.R.computeHideDot=function(f){return!(f&&f.subscriberCountText&&f.videoCountText)||this.compactStyle};
_.R.hasDualButtons=function(f){return f&&f.purchaseButton&&f.subscribeButton};
_.R.backgroundColorChanged=function(){if(this.data!==void 0){var f=this.data.backgroundColor;this.isDarkTheme&&(f=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=f!=null?_.NS(f):"transparent"}};
_.R.onDarkModeToggledAction=function(f){this.isDarkTheme=f};
_.R.onTap=function(f){var H,v,t=((H=this.data)==null?void 0:H.navigationEndpoint)||((v=this.data)==null?void 0:v.serviceEndpoint);_.U(t,_.iF)&&(t&&_.t8().resolve(_.MJ).resolveCommand(t,{form:{element:this.hostElement}}),f.preventDefault())};
_.R.computeChannelEndpoint=function(f){return _.U(f,_.iF)?null:f};
_.R.computeHrefEndpoint=function(f){return _.U(f,_.iF)?null:this.componentBehavior.computeHref_(f)};
_.R.computeChannelRendererStyle=function(f){return f};
_.R.computeIconSize=function(f){return f?108:136};
_.H7.Object.defineProperties(lU,{template:{configurable:!0,enumerable:!0,get:function(){return s4r()}}});
lU.prototype.backgroundColorChanged=lU.prototype.backgroundColorChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],lU.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],lU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.fm),_.N("design:type",Object)],lU.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],lU.prototype,"componentBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],lU.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Boolean)],lU.prototype,"isDarkTheme",void 0);_.E([_.F({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.N("design:type",String)],lU.prototype,"channelRendererStyle",void 0);_.E([_.F({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],lU.prototype,"dualButtons",void 0);_.E([_.F({reflectToAttribute:!0,value:function(){return _.J("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],lU.prototype,"useBiggerThumbs",void 0);_.E([_.F({reflectToAttribute:!0,value:function(){return _.yQ("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],lU.prototype,"biggerThumbStyle",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],lU.prototype,"compactStyle",void 0);_.E([_.Zw("data","isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lU.prototype,"backgroundColorChanged",null);_.E([_.u({is:"ytd-channel-renderer",disableElementRegistration:!0})],lU);_.G(lU,"ytd-channel-renderer",function(){return s4r()},{mode:1});var Zsh;var JuC;_.DE("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var Ut=function(){var f=_.K.apply(this,arguments)||this;f.displayItemCount=2;f.collections=_.J("web_modern_collections_v2");f.hasPlaylistThumbnail=!1;f.stackThumbnailSize="large";return f};
_.e(Ut,_.K);_.R=Ut.prototype;_.R.attached=function(){this.updateInlinePreviewHoverListeners()};
_.R.detached=function(){this.clearInlinePreviewHoverListeners()};
_.R.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.R.computeFirstVideos=function(f,H){return f&&H?f.slice(0,H):[]};
_.R.computeThumbnailWidth=function(f,H){return f?H==="BIG"?500:H==="MASSIVE"?600:H==="MEDIUM"?450:420:360};
_.R.computeThumbnailHeight=function(f,H){return f?H==="BIG"?280:H==="MASSIVE"?337:234:202};
_.R.clearInlinePreviewHoverListeners=function(){var f;(f=this.JSC$16084_inlinePreviewHoverListener)==null||AY(f)};
_.R.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16084_inlinePreviewHoverListener=Q4({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:hE_,thumbnailElement:this.thumbnail})};
_.R.computeHasPlaylistThumbnail=function(f){var H,v;if((((H=f.thumbnailRenderer)==null?0:H.playlistVideoThumbnailRenderer)||((v=f.thumbnailRenderer)==null?0:v.playlistCustomThumbnailRenderer))&&f.thumbnailOverlays)for(H=0;H<f.thumbnailOverlays.length;H++)if(v=void 0,(v=f.thumbnailOverlays[H])==null?0:v.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.H7.Object.defineProperties(Ut.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.JSC$16084_inlinePreviewHoverListener)==null?0:Q5(f))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Ut.prototype.dataChanged=Ut.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Ut.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.A_),_.N("design:type",Object)],Ut.prototype,"ytdLockupBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Ut.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],Ut.prototype,"displayItemCount",void 0);_.E([_.F({reflectToAttribute:!0,value:function(){return _.J("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],Ut.prototype,"useBiggerThumbs",void 0);_.E([_.F({reflectToAttribute:!0,value:function(){return _.yQ("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],Ut.prototype,"biggerThumbsStyle",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ut.prototype,"collections",void 0);_.E([_.F({computed:"computeHasPlaylistThumbnail(data)"}),_.N("design:type",Object)],Ut.prototype,"hasPlaylistThumbnail",void 0);_.E([_.F(),_.N("design:type",String)],Ut.prototype,"stackThumbnailSize",void 0);_.E([_.lJ("ytd-thumbnail"),_.N("design:type",HTMLElement)],Ut.prototype,"thumbnail",void 0);
_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ut.prototype,"dataChanged",null);_.E([_.z("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ut.prototype,"isHovered",null);_.E([_.u({is:"ytd-radio-renderer",disableElementRegistration:!0})],Ut);
_.G(Ut,"ytd-radio-renderer",function(){if(JuC!==void 0)return JuC;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return JuC=f},{mode:_.WK("kevlar_poly_si_batch_j058")?1:2});var l9T;_.DE("itemSectionRenderer","showRenderer","ytd-show-renderer");var eX=function(){return _.K.apply(this,arguments)||this};
_.e(eX,_.K);eX.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
eX.prototype.computeThumbnailWidth=function(f){return f?360:246};
eX.prototype.computeUseProminentThumbs=function(f){return f};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],eX.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],eX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],eX.prototype,"data",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],eX.prototype,"isSearch",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.N("design:type",Boolean)],eX.prototype,"useProminentThumbs",void 0);_.E([_.u({is:"ytd-show-renderer",disableElementRegistration:!0})],eX);
_.G(eX,"ytd-show-renderer",function(){if(l9T!==void 0)return l9T;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return l9T=f},{mode:1});_.DE("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var LL=function(){var f=_.K.apply(this,arguments)||this;f.isRichGrid=!1;return f};
_.e(LL,_.K);LL.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"}}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],LL.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],LL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],LL.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],LL.prototype,"isRichGrid",void 0);_.E([_.u({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],LL);
_.G(LL,"ytd-feed-entry-renderer",function(){if(Zsh!==void 0)return Zsh;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Zsh=f},{mode:1});var UFa;var xc=function(){return _.K.apply(this,arguments)||this};
_.e(xc,_.K);xc.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.E([_.B(_.um),_.N("design:type",Object)],xc.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],xc.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],xc.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],xc.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,selector:_.uA,value:3}),_.N("design:type",Number)],xc.prototype,"itemsPerRow",void 0);
_.E([_.u({is:"ytd-link-card-renderer",disableElementRegistration:!0})],xc);
_.G(xc,"ytd-link-card-renderer",function(){if(UFa!==void 0)return UFa;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return UFa=f},{mode:1});var eXo;var BT=function(){return _.K.apply(this,arguments)||this};
_.e(BT,_.K);_.R=BT.prototype;_.R.configureRendererStamper=function(){return{"data.menu":dq,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.R.onRendererTap=function(f){if(!this.ytdDismissibleItemBehavior.isDismissed){var H,v=(H=this.data)==null?void 0:H.navigationEndpoint;v&&!_.w6(_.f2(f),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(v)?_.w6(_.f2(f),this.hostElement,["A"])||_.YE(this.hostElement,"yt-navigate",{endpoint:v}):this.ytComponentBehavior.resolveCommand(v,{}))}};
_.R.maybeComputeHref=function(f){return this.ytComponentBehavior.computeHref_(f,!0)};
_.R.getNavigationCommand=function(f){return this.isNavigationCommand(f)?f:null};
_.R.isNavigationCommand=function(f){return f?_.U(f,_.ec)||_.U(f,_.wI)||_.U(f,_.X7)?!0:!1:!1};
BT.prototype.onRendererTap=BT.prototype.onRendererTap;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],BT.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],BT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.PG),_.N("design:type",Object)],BT.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],BT.prototype,"ytComponentBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],BT.prototype,"data",void 0);_.E([_.sE("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],BT.prototype,"onRendererTap",null);_.E([_.u({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],BT);
_.G(BT,"ytd-lumiere-promo-item-image-renderer",function(){if(eXo!==void 0)return eXo;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return eXo=f},{mode:1});var LRg;var zy=function(){return _.K.apply(this,arguments)||this};
_.e(zy,_.K);zy.prototype.computeLandscapeThumbnail=function(){var f;return((f=this.data)==null?void 0:f.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],zy.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],zy.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],zy.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,selector:_.Qq}),_.N("design:type",Boolean)],zy.prototype,"miniMode",void 0);_.E([_.F({reflectToAttribute:!0,selector:_.uA}),_.N("design:type",Number)],zy.prototype,"itemsPerRow",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.N("design:type",Boolean)],zy.prototype,"landscapeThumbnail",void 0);_.E([_.u({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],zy);
_.G(zy,"ytd-lumiere-shelf-details-renderer",function(){if(LRg!==void 0)return LRg;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return LRg=f},{mode:_.WK("kevlar_poly_si_batch_j076")?1:2});var xFC;var FY=function(){return _.K.apply(this,arguments)||this};
_.e(FY,_.K);FY.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],FY.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],FY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],FY.prototype,"data",void 0);_.E([_.u({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],FY);
_.G(FY,"ytd-primetime-promo-details-renderer",function(){if(xFC!==void 0)return xFC;var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return xFC=f},{mode:1});var BEH;var rv=function(){return _.K.apply(this,arguments)||this};
_.e(rv,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],rv.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],rv.prototype,"data",void 0);_.E([_.u({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],rv);
_.G(rv,"ytd-panel-show-style-metadata-renderer",function(){if(BEH!==void 0)return BEH;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return BEH=f},{mode:1});var zXa;var KL=function(){return _.K.apply(this,arguments)||this};
_.e(KL,_.K);_.R=KL.prototype;_.R.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.R.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.R.computeThumbnail=function(f){if(f)return f.smallFormFactorBackgroundThumbnail||f.largeFormFactorBackgroundThumbnail};
_.R.maybeComputeHref=function(f){return this.ytComponentBehavior.computeHref_(f,!0)};
_.R.isNavigationCommand=function(f){return f?_.U(f,_.ec)||_.U(f,_.wI)||_.U(f,_.X7)?!0:!1:!1};
_.R.getNavigationCommand=function(f){return this.isNavigationCommand(f)?f:null};
KL.prototype.onPanelTap=KL.prototype.onPanelTap;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],KL.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],KL.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],KL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],KL.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],KL.prototype,"roundedContainer",void 0);_.E([_.F({reflectToAttribute:!0,value:_.J("web_modern_buttons")}),_.N("design:type",Boolean)],KL.prototype,"modernButtons",void 0);_.E([_.sE("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],KL.prototype,"onPanelTap",null);_.E([_.u({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],KL);
_.G(KL,"ytd-primetime-promo-panel-renderer",function(){if(zXa!==void 0)return zXa;var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return zXa=f},{mode:1});_.yn(_.a(function(f){f=_.tV(f,{data:{},useFullWidth:!1});var H=f.data,v=f.useFullWidth;f={};return _.O("teaser-card-view-model",{class:_.S2("ytTeaserCardViewModelHost",(f.ytTeaserCardViewModelUseFullWidth=function(){return v()},f))},_.O(_.g,{cond:function(){return H().onTap},
then:function(t){return _.O(_.VU,{className:"ytTeaserCardViewModelLink",command:t},_.O("div",{class:"ytTeaserCardViewModelImageContainer"},_.O(_.g,{cond:function(){return H().image},
then:function(M){return _.O(_.Hn,{data:M,className:"ytTeaserCardViewModelImage",alt:""})}})),_.O("p",{class:"ytTeaserCardViewModelCaption"},function(){return H().caption}))}}))},"Tb"),"teaser-card-view-model",{props:{data:_.ki,
useFullWidth:_.ki}});var FRT=new _.iN("RICH_GRID_VIDEO_RENDERER_TOKEN");_.yn(_.a(function(f){var H=f.data;var v=f.showYtInteractionInContent;var t=function(){return!!H().selectableFeedback};
f=_.V(_.gp(!1,void 0,"nblDw"));var M=f.next().value,h=f.next().value;_.Kc(function(){var Z=_.U(H().primaryButton,_.G3);(Z==null?0:Z.isToggled)&&h(Z.isToggled)});
f=_.d6(function(Z){if(!t())return!1;if(M()){var l;var L=(l=H().selectableFeedback)==null?void 0:l.onDeselect}else{var r;L=(r=H().selectableFeedback)==null?void 0:r.onSelect}L&&_.XA(L,{form:{element:Z.target}});h(!M());if(Z=_.U(H().primaryButton,_.G3))Z.isToggled=M();return!1});
var y=function(){if(!t()){var Z,l=(Z=H().loggingDirectives)==null?void 0:Z.trackingParams;l&&_.WL(_.t8().resolve(_.z$),l)}},m=_.AL3(),W=function(){var Z;
return t()?(Z=H().selectableFeedback)==null?void 0:Z.a11yLabel:void 0},I=function(){return t()?{toggled:M()}:{}},S=_.t8().resolve(_.vh(FRT)),d={};
return _.O("yt-feedback-item-renderer",{class:_.S2("ytFeedbackItemRendererHost",(d.ytFeedbackItemRendererSelectableFeedback=t,d)),"on:click":f,"on:keydown":m,title:W,"aria-label":W,"aria-pressed":function(){return t()?M():void 0},
tabindex:function(){return t()?0:void 0},
role:function(){return t()?"button":void 0}},_.O("div",{class:"ytFeedbackItemRendererContentContainer"},_.O(_.Jj,{data:function(){return H().content}},{videoRenderer:function(Z){return _.O(S,{data:Z.data,
showYtInteraction:v})},
lockupViewModel:function(Z){return _.O(_.YM,{data:Z.data,containerType:2})}})),_.O("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.O(_.Jj,{data:function(){return H().primaryButton}},{toggleButtonViewModel:function(Z){return _.O(_.Fo,{data:Z.data,
buttonShapeOverrides:I,disableExplicitClickLogging:!0,onToggle:y})}})))},"Ub"),"yt-feedback-item-renderer",{props:{data:_.ki,
showYtInteractionInContent:_.ki}});var Dv=function(){var f=_.K.apply(this,arguments)||this;f.isShortsGrid=!1;f.isCompactGrid=!1;f.isShortsPanelGrid=!1;f.renderedFromRichGrid=!1;f.isInFirstColumn=!1;f.noGutterMargins=!1;f.isInlineGroupItem=!1;f.insetMetadata=!1;f.noBottomMarginInAds=!0;f.force16By9ThumbnailAspectRatio=!1;f.useCompactList=!1;f.containerType=2;f.thumbnailTargetWidth=9999;f.isResponsiveGrid=!1;f.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};f.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};
f.hoverListener=f.hover.bind(f);f.leaveListener=f.leave.bind(f);f.highlighted=!1;f.JSC$16119_unsubscribeFromInlinePreviewIsActive=function(){};
return f};
_.e(Dv,_.K);_.R=Dv.prototype;_.R.computeContainerType=function(){return this.useCompactList?3:2};
_.R.computeThumbnailTargetWidth=function(){var f;return(f=this.itemWidth)!=null?f:9999};
_.R.updateIsInFirstColumn=function(){var f;this.isInFirstColumn=((f=this.data)==null?void 0:f.colIndex)===0};
_.R.observerContainerType=function(){if(this.lockup){var f=this.lockup;f.containerType=this.containerType;f.sizing=this.sizing;f.typographyBump=this.typographyBump;f.itemWidth=this.itemWidth}this.richGridMedia&&_.J("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.J("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.R.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.R.leave=function(f){f=f.relatedTarget;var H=document.querySelector("ytd-video-preview");f&&H&&_.$V(H).contains(f)||this.removeAndCleanupHighlight()};
_.R.hover=function(){var f;if(!this.highlighted&&(!_.J("web_enable_rich_item_on_focus_effect")||(f=this.data)!=null&&f.onFocusEffect)){var H,v;((H=this.data)==null?void 0:(v=H.onFocusEffect)==null?void 0:v.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(f=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:f,boxShadow:"0 0 0 10px "+f}));var t,M;((t=this.data)==null?void 0:(M=t.onFocusEffect)==null?void 0:
M.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.R.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};
_.R.registerHoverHighlightListeners=function(){var f=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16119_unsubscribeFromInlinePreviewIsActive=_.sI(_.vS(),_.kuH,function(H){f.highlighted&&!H&&f.removeAndCleanupHighlight()})};
_.R.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16119_unsubscribeFromInlinePreviewIsActive()};
_.R.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.R.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.R.getBackgroundColor=function(){var f,H,v=(f=this.data)==null?void 0:(H=f.onFocusEffect)==null?void 0:H.onFocusColor;if(v){if(document.documentElement.hasAttribute("dark")&&(v==null?0:v.darkTheme))return _.NS(v==null?void 0:v.darkTheme);if(v==null?0:v.lightTheme)return _.NS(v==null?void 0:v.lightTheme)}};
_.R.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var f=_.uy(),H,v,t;f&&((H=this.data)==null?0:H.trackingParams)&&((v=this.data)==null?void 0:v.colIndex)!=null&&((t=this.data)==null?void 0:t.rowIndex)!=null&&_.q6(f,_.zK(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.R.isSlimMediaRenderer=function(f){return!!_.U(f==null?void 0:f.content,_.H3n)||!!_.U(f==null?void 0:f.content,f6a)||!!_.U(f==null?void 0:f.content,_.of)||!!_.U(f==null?void 0:f.content,JcH)};
_.R.isPostRenderer=function(){var f,H;return!!_.U((f=this.data)==null?void 0:f.content,X4o)||!!_.U((H=this.data)==null?void 0:H.content,AhM)};
_.R.computeIsGameCardShelf=function(){var f;return!!_.U((f=this.data)==null?void 0:f.content,txM)};
_.R.computeIsMiniGameCardShelf=function(){var f,H;return!!_.U((f=this.data)==null?void 0:f.content,dgb)||!!_.U((H=this.data)==null?void 0:H.content,jQH)};
_.R.computeIsTeaserCard=function(){var f;return!!_.U((f=this.data)==null?void 0:f.content,jQH)};
_.R.computeIsSelectableFeedbackItem=function(){var f,H;return!((H=_.U((f=this.data)==null?void 0:f.content,_.ZRC))==null||!H.selectableFeedback)};
_.R.computeContainsLumierePosters=function(){var f,H;return((H=_.U((f=this.data)==null?void 0:f.content,tga))==null?void 0:H.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.R.computeIsExpandOnHoverCardShelf=function(){var f;return!!_.U((f=this.data)==null?void 0:f.content,vRb)};
_.R.computeIsLinkCardShelf=function(){var f;return!!_.U((f=this.data)==null?void 0:f.content,KJC)};
_.R.computeIsReelItemStyleAvatarCircle=function(f){var H;return((H=_.U(f==null?void 0:f.content,_.of))==null?void 0:H.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.R.computeIsLinkCardFullWidth=function(f,H){var v;return((v=_.U(f==null?void 0:f.content,KJC))==null?void 0:v.useFullWidth)||H<=2};
_.H7.Object.defineProperties(Dv.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){return this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.J("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.J("web_enable_rich_item_on_focus_effect")||_.J("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}}});
Dv.prototype.richGridHoverHighlightChanged=Dv.prototype.richGridHoverHighlightChanged;Dv.prototype.observerContainerType=Dv.prototype.observerContainerType;Dv.prototype.updateIsInFirstColumn=Dv.prototype.updateIsInFirstColumn;_.E([_.B(_.um),_.N("design:type",Object)],Dv.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Dv.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Dv.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Dv.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.A_),_.N("design:type",Object)],Dv.prototype,"ytdLockupBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Dv.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.N("design:type",Boolean)],Dv.prototype,"isPost",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.N("design:type",Boolean)],Dv.prototype,"containsLumierePosters",void 0);_.E([_.F({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.N("design:type",Boolean)],Dv.prototype,"isSlimMedia",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.N("design:type",Boolean)],Dv.prototype,"isGameCardShelf",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.N("design:type",Boolean)],Dv.prototype,"isMiniGameCardShelf",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.N("design:type",Boolean)],Dv.prototype,"isTeaserCard",void 0);_.E([_.F({computed:"computeIsSelectableFeedbackItem(data)"}),_.N("design:type",Boolean)],Dv.prototype,"isSelectableFeedbackItem",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Dv.prototype,"isShortsGrid",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Dv.prototype,"isSlimGrid",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Dv.prototype,"isCompactGrid",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Dv.prototype,"isShortsPanelGrid",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.N("design:type",Boolean)],Dv.prototype,"isExpandOnHoverCardShelf",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.N("design:type",Boolean)],Dv.prototype,"isLinkCardShelf",void 0);_.E([_.F({reflectToAttribute:!0,selector:_.uA,value:3}),_.N("design:type",Number)],Dv.prototype,"itemsPerRow",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Dv.prototype,"renderedFromRichGrid",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Dv.prototype,"isInFirstColumn",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Dv.prototype,"noGutterMargins",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Dv.prototype,"isInlineGroupItem",void 0);_.E([_.F(),_.N("design:type",Object)],Dv.prototype,"insetMetadata",void 0);
_.E([_.F(),_.N("design:type",Object)],Dv.prototype,"noBottomMarginInAds",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Dv.prototype,"isShelfItem",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.N("design:type",Boolean)],Dv.prototype,"isReelItemStyleAvatarCircle",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.N("design:type",Boolean)],Dv.prototype,"isLinkCardFullWidth",void 0);
_.E([_.F(),_.N("design:type",Object)],Dv.prototype,"force16By9ThumbnailAspectRatio",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Dv.prototype,"useCompactList",void 0);_.E([_.F(),_.N("design:type",String)],Dv.prototype,"sizing",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],Dv.prototype,"typographyBump",void 0);_.E([_.F(),_.N("design:type",Number)],Dv.prototype,"itemWidth",void 0);_.E([_.F(),_.N("design:type",Boolean)],Dv.prototype,"isHomeShelf",void 0);
_.E([_.F(),_.N("design:type",Boolean)],Dv.prototype,"isHomeGrid",void 0);_.E([_.lJ("yt-lockup-view-model"),_.N("design:type",HTMLElement)],Dv.prototype,"lockup",void 0);_.E([_.lJ("ytd-rich-grid-media"),_.N("design:type",HTMLElement)],Dv.prototype,"richGridMedia",void 0);_.E([_.lJ("ytd-ad-slot-renderer"),_.N("design:type",HTMLElement)],Dv.prototype,"adSlotRenderer",void 0);_.E([_.F({computed:"computeContainerType(useCompactList)"}),_.N("design:type",Object)],Dv.prototype,"containerType",void 0);
_.E([_.F({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.N("design:type",Object)],Dv.prototype,"thumbnailTargetWidth",void 0);_.E([_.z("showYtInteractionOnRichItem"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Dv.prototype,"showYtInteractionOnRichGridMedia",null);_.E([_.z("isSelectableFeedbackItem","richGridHoverHighlight"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Dv.prototype,"showYtInteractionOnRichItem",null);
_.E([_.z("typographyBump","isHomeGrid"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Dv.prototype,"richTypographyBump",null);_.E([_.F({reflectToAttribute:!0}),_.z("isShortsGrid","isCompactGrid"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Dv.prototype,"richGridHoverHighlight",null);_.E([_.z("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.N("design:type",Number),_.N("design:paramtypes",[])],Dv.prototype,"shortsLockupViewModelAspectRatio",null);
_.E([_.z("isInlineGroupItem"),_.N("design:type",Number),_.N("design:paramtypes",[])],Dv.prototype,"shortsLockupViewModelScrimStyle",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Dv.prototype,"updateIsInFirstColumn",null);_.E([_.Zw("containerType","sizing","typographyBump"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Dv.prototype,"observerContainerType",null);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Dv.prototype,"isResponsiveGrid",void 0);_.E([_.F(),_.N("design:type",Object)],Dv.prototype,"lockupExperiments",void 0);_.E([_.Zw("richGridHoverHighlight"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Dv.prototype,"richGridHoverHighlightChanged",null);_.E([_.u({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],Dv);
_.ruT=_.$6()(Dv,"ytd-rich-item-renderer",function(){if(SGh===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);SGh=f}f=SGh;return f},{mode:_.WK("kevlar_poly_si_batch_j028")?1:2});var vYR={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var IW_=_.qO(_.ZC("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var Mwe={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},RGE={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},VwT={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var KRn;var oI=function(){var f=_.K.apply(this,arguments)||this;f.useResponsiveGrid=!1;f.hidden=!1;f.isShowMoreHidden=!1;f.isShowLessHidden=!0;f.hasExpansionButton=!1;f.isExpanded=!1;f.isInnerShelf=!1;f.allVideosCount=0;f.allPlaylistCount=0;f.haveSmartDownloadsCompleted=!1;f.restrictContentsOverflow=!1;f.firstShownIndex=0;f.horizontalOffset=0;f.atEnd=!0;f.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
f.nextClick=function(){var H;(H=f.data)!=null&&H.contents&&(f.firstShownIndex+=f.currentElementsPerRow,f.updateHorizontalOffset(),f.updateHorizontalItemVisibility())};
f.previousClick=function(){var H;(H=f.data)!=null&&H.contents&&(f.firstShownIndex-=f.currentElementsPerRow,f.updateHorizontalOffset(),f.updateHorizontalItemVisibility())};
return f};
_.e(oI,_.K);_.R=oI.prototype;
_.R.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:_.a8("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.R.attached=function(){this.requestElementsPerRow()};
_.R.refreshGridLayoutNew=function(){var f;if((f=this.data)!=null&&f.contents&&this.containerWidth){var H;((H=this.data.responsiveContainerConfiguration)==null?0:H.responsiveSize)?(f=_.jCe(this.data.responsiveContainerConfiguration,this.containerWidth),f=_.GV(Object.assign({},f,{standardUnitMinWidth:this.standardUnitMinWidth}))):f=_.GV({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=f.typographyBump;if(this.elementsPerRow!==
f.numItems||this.gutter!==f.gutter)this.elementsPerRow=f.numItems,this.gutter=f.gutter,this.itemWidth=f.itemWidth,_.Sr(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":f.gutter+"px"})}};
_.R.computeSizing=function(){if(!this.isLumiere){var f=_.Cce(this.data);if(f)return f;if(_.J("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.R.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.R.computeButton=function(f){var H=_.U(f,_.nv);f=Object.assign({},_.U(f,_.nv));return H?(f.text||(f.text={simpleText:f.tooltip}),f.style="STYLE_MONO_OUTLINE",f.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",f):H};
_.R.onRowIndexChange=function(){var f=_.uy(),H,v;((H=this.data)==null?0:H.trackingParams)&&((v=this.data)==null?void 0:v.rowIndex)!=null&&f&&_.q6(f,_.zK(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.R.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var f,H=((f=this.getRichItemRenderers()[0])==null?void 0:f.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*H;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.R.requestElementsPerRow=function(){_.YE(this.hostElement,"yt-request-elements-per-row")};
_.R.onUpdateElementsPerRowAction=function(f,H,v,t,M,h){if(this.containerWidth!==h&&(this.containerWidth=h,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&f&&H&&v&&t&&M&&(this.elementsPerRow!==f||this.postsPerRow!==H||this.slimItemsPerRow!==v||this.gameCardsPerRow!==t||this.miniGameCardsPerRow!==M)&&(this.elementsPerRow=f,this.postsPerRow=H,this.slimItemsPerRow=v,this.gameCardsPerRow=t,this.miniGameCardsPerRow=M,this.updateItemVisibility())};
_.R.getRichItemRenderers=function(){return _.mF(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.R.updateItemVisibility=function(){var f=this;if(this.data&&this.data.contents){var H=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(t,M){var h;((h=f.data)==null?0:h.isExpanded)?(t.hidden=M>H-1,t.ytRendererBehavior.markDirty()):t.hidden=M>f.currentElementsPerRow-1||M>H-1});
var v=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||v||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||v||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.R.setHeightToSingleRow=function(){var f=this.getRichItemRenderers(),H=Number.parseInt(getComputedStyle(f[0]).marginBottom,10)||0;f=f.slice(0,this.currentElementsPerRow).reduce(function(v,t){return Math.max(v,t.getBoundingClientRect().height+H)},0);
this.contents.style.height=f+"px"};
_.R.focusNextExpandedItem=function(){var f;((f=this.data)==null?0:f.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.R.focusItem=function(f,H){var v=this.getRichItemRenderers();if(v[f]&&(f=v[f].querySelector(".focus-on-expand"))){if(H){var t;(t=v[this.currentElementsPerRow])==null||t.scrollIntoView({behavior:"smooth",block:"center"})}f.focus({preventScroll:!0})}};
_.R.onDataChange=function(){var f=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var H;if((H=this.data)==null?0:H.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.qV(this,function(){f.updateItemVisibility()});
var v;if((v=this.data)==null?0:v.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.Sr(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),H=0;H<this.data.contents.length;H++)v=_.U(this.data.contents[H],_.Lv)||{},v.colIndex=H,v.rowIndex=this.data.rowIndex};
_.R.handleRerenderDownloadsData=function(){_.J("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())};
_.R.blockInlinePreview=function(f){var H=this,v;return _.Y(function(t){(v=H.inlinePreviewIsEnabled)&&H.ytdReduxBehavior.dispatch(_.gMC(!1));return t.return(new Promise(function(M){f(function(){v&&H.ytdReduxBehavior.dispatch(_.gMC(!0));M()})}))})};
_.R.expandShelf=function(){var f=this;if(this.data){var H,v=(H=_.U(this.data.showMoreButton,_.nv))==null?void 0:H.trackingParams;v&&_.WL(_.UV(),v);this.data.isExpanded=!0;this.blockInlinePreview(function(t){f.setHeightToSingleRow();f.updateItemVisibility();f.contents.style.height=f.contents.scrollHeight+"px";_.nN.addJob(function(){f.contents.style.height="auto";f.focusNextExpandedItem();t()},2,200)})}};
_.R.collapseShelf=function(){var f=this;return _.Y(function(H){if(H.nextAddress==1){if(!f.data)return H.return();f.data.isExpanded=!1;return H.yield(f.blockInlinePreview(function(v){f.contents.style.height=f.contents.scrollHeight+"px";f.setHeightToSingleRow();_.nN.addJob(function(){f.updateItemVisibility();f.contents.style.height="auto";v()},2,200)}),2)}_.YE(f.hostElement,"yt-rich-shelf-renderer-collapse",f.data.trackingParams);
f.focusItem(0,!1);_.Bj(H)})};
_.R.updateArrowButtonStatus=function(){var f=this.getRichItemRenderers().length;if(!_.J("web_rich_shelf_renderer_use_data_contents_killswitch")){var H,v;f=((H=this.data)==null?void 0:(v=H.contents)==null?void 0:v.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=f};
_.R.onChildElementFocus=function(f){this.hasChevronButtons&&(f=f.target.closest("#contents > *"),this.contents.contains(f)&&(f.offsetLeft<this.horizontalOffset?this.previousClick():f.offsetLeft+f.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.R.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.a8("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.R.updateHorizontalOffset=function(){var f=this.getRichItemRenderers(),H=f.length;if(!_.J("web_rich_shelf_renderer_use_data_contents_killswitch")){var v,t;H=((v=this.data)==null?void 0:(t=v.contents)==null?void 0:t.length)||0}var M;f=((M=f[0])==null?void 0:M.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>H?this.firstShownIndex=H-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*f};
_.R.isSlimMediaShelfRenderer=function(){var f,H,v,t=(v=_.U((f=this.data)==null?void 0:(H=f.contents)==null?void 0:H[0],_.Lv))==null?void 0:v.content;return!!(_.U(t,_.H3n)||_.U(t,f6a)||_.U(t,_.of)||_.U(t,JcH))};
_.R.isGameCardShelf=function(){var f,H,v,t=(v=_.U((f=this.data)==null?void 0:(H=f.contents)==null?void 0:H[0],_.Lv))==null?void 0:v.content;return!!_.U(t,txM)};
_.R.isGnomeShelf=function(){var f,H,v,t=(v=_.U((f=this.data)==null?void 0:(H=f.contents)==null?void 0:H[0],_.Lv))==null?void 0:v.content;return!!_.U(t,_.ZRC)};
_.R.isMiniGameCardShelf=function(){var f,H,v,t=(v=_.U((f=this.data)==null?void 0:(H=f.contents)==null?void 0:H[0],_.Lv))==null?void 0:v.content;return!!_.U(t,dgb)||!!_.U(t,jQH)};
_.R.hasGameBoxArtAvatarStyle=function(){var f;return((f=this.data)==null?void 0:f.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.R.hasRoundedGameBoxArtAvatarStyle=function(){var f;return((f=this.data)==null?void 0:f.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.R.isShortsShelf=function(){var f,H,v,t=(v=_.U((f=this.data)==null?void 0:(H=f.contents)==null?void 0:H[0],_.Lv))==null?void 0:v.content;return!!_.U(t,_.of)||!!_.U(t,JcH)};
_.R.isPostShelfRenderer=function(){var f,H,v,t=(v=_.U((f=this.data)==null?void 0:(H=f.contents)==null?void 0:H[0],_.Lv))==null?void 0:v.content;return!(!_.U(t,X4o)&&!_.U(t,AhM))};
_.R.isLumiereShelf=function(){var f,H,v=_.U((f=this.data)==null?void 0:(H=f.contents)==null?void 0:H[0],_.Lv);return!!_.U(v==null?void 0:v.content,tga)};
_.R.isLumiereShelfWithPosters=function(){var f,H,v=_.U((f=this.data)==null?void 0:(H=f.contents)==null?void 0:H[0],_.Lv),t;return((t=_.U(v==null?void 0:v.content,tga))==null?void 0:t.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.R.isExpandOnHoverCardShelf=function(){var f,H,v,t=(v=_.U((f=this.data)==null?void 0:(H=f.contents)==null?void 0:H[0],_.Lv))==null?void 0:v.content;return!!_.U(t,vRb)};
_.R.computeHasFeaturedBadge=function(){var f,H,v=_.U((f=this.data)==null?void 0:(H=f.badges)==null?void 0:H[0],_.Jkn);return v?v.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.R.computeHasPaygatedFeaturedBadge=function(){var f,H,v=_.U((f=this.data)==null?void 0:(H=f.badges)==null?void 0:H[0],_.Jkn);return v?(v==null?void 0:v.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.R.computeHeaderHidden=function(){var f,H,v,t,M,h;return!((f=this.data)==null?0:f.icon)&&!((H=this.data)==null?0:H.title)&&!((v=this.data)==null?0:v.subtitle)&&!((t=this.data)==null?0:t.thumbnail)&&!((M=this.data)==null?0:M.badges)&&!((h=this.data)==null?0:h.menu)};
_.R.showCtaButton=function(){var f;return!((f=this.data)==null||!f.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.R.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.R.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.R.computeForce16By9ThumbnailAspectRatio=function(){var f,H;return((f=this.data)==null?void 0:(H=f.responsiveContainerConfiguration)==null?void 0:H.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.R.onSectionReactiveDismissal=function(f,H,v){var t,M;var h=(t=this.data)==null?void 0:(M=t.targetingContext)==null?void 0:M.targetGroupId;this&&h&&H.targetGroupId&&h.includes(H.targetGroupId)?(t=this.rowIndex,f=t===void 0?!1:!(H.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&t<=f)):f=!1;f&&(this.hidden=v)};
_.H7.Object.defineProperties(oI.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var f=this.elementsPerRow;this.isPostShelfRenderer()?f=this.postsPerRow:this.isSlimMediaShelfRenderer()?f=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?f=this.slimItemsPerRow-1:this.isGameCardShelf()?f=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(f=this.miniGameCardsPerRow);return f}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.J("kevlar_clean_feeds_show_more")&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null?0:f.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var f,H;return!((f=this.data)==null||!f.previousButton)&&!((H=this.data)==null||!H.nextButton)}},
previousButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.firstShownIndex===0,ariaHidden:!0,tabIndex:-1}}},
nextButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.atEnd,ariaHidden:!0,tabIndex:-1}}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var f;return((f=_.t8().resolve(_.fT).getCurrentPage())==null?void 0:f.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var f,H,v,t;return!((f=this.data)==null?0:(H=f.thumbnail)==null?0:(v=H.accessibility)==null?0:(t=v.accessibilityData)==null?0:t.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
oI.prototype.onChildElementFocus=oI.prototype.onChildElementFocus;oI.prototype.handleRerenderDownloadsData=oI.prototype.handleRerenderDownloadsData;oI.prototype.onDataChange=oI.prototype.onDataChange;oI.prototype.onRowIndexChange=oI.prototype.onRowIndexChange;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],oI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],oI.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.PG),_.N("design:type",Object)],oI.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],oI.prototype,"actionHandlerBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],oI.prototype,"ytdReduxBehavior",void 0);_.E([_.F({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.N("design:type",Object)],oI.prototype,"useResponsiveGrid",void 0);_.E([_.F(),_.N("design:type",Object)],oI.prototype,"data",void 0);
_.E([_.F(),_.N("design:type",Number)],oI.prototype,"standardUnitMinWidth",void 0);_.E([_.F({reflectToAttribute:!0,value:3}),_.N("design:type",Number)],oI.prototype,"elementsPerRow",void 0);_.E([_.F({value:3}),_.N("design:type",Number)],oI.prototype,"postsPerRow",void 0);_.E([_.F({value:6}),_.N("design:type",Number)],oI.prototype,"slimItemsPerRow",void 0);_.E([_.F({value:6}),_.N("design:type",Number)],oI.prototype,"gameCardsPerRow",void 0);
_.E([_.F({value:6}),_.N("design:type",Number)],oI.prototype,"miniGameCardsPerRow",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],oI.prototype,"hidden",void 0);_.E([_.F(),_.N("design:type",Object)],oI.prototype,"isShowMoreHidden",void 0);_.E([_.F(),_.N("design:type",Object)],oI.prototype,"isShowLessHidden",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],oI.prototype,"hasExpansionButton",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],oI.prototype,"isExpanded",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],oI.prototype,"isInnerShelf",void 0);_.E([_.F({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.N("design:type",Boolean)],oI.prototype,"isShorts",void 0);_.E([_.F({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.N("design:type",Boolean)],oI.prototype,"isLumiere",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.N("design:type",Boolean)],oI.prototype,"hasBoxArtThumbnailStyle",void 0);_.E([_.F({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.N("design:type",Boolean)],oI.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.N("design:type",Boolean)],oI.prototype,"hasFeaturedBadge",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.N("design:type",Boolean)],oI.prototype,"hasPaygatedFeaturedBadge",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.N("design:type",Boolean)],oI.prototype,"isHeaderHidden",void 0);_.E([_.F({selector:_.viB}),_.N("design:type",Object)],oI.prototype,"allVideosCount",void 0);_.E([_.F({selector:dDb}),_.N("design:type",Object)],oI.prototype,"allPlaylistCount",void 0);
_.E([_.F({selector:WHs}),_.N("design:type",Object)],oI.prototype,"haveSmartDownloadsCompleted",void 0);
_.E([_.F({selectorArgs:["entitySelectorType"],selector:function(f,H){if(_.J("kevlar_modern_downloads_page")&&H&&H!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var v=f.entities;switch(H){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":H=_.o5(v);f=SO(H);var t=_.Ba(H);v=_.pY(v);v=_.hd(YYB(t,v,H.length));return{contents:f,subtitle:v};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return v=_.o5(v),{contents:SO(v)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return v=
_.nY(v),{contents:SO(v)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return v=_.DI_(v),{contents:SO(v)};default:_.pb(new _.e$("Error: entitySelectorType defined but not matched in selector.",f,H))}}}}),
_.N("design:type",Object)],oI.prototype,"entityDrivenRichShelfData",void 0);_.E([_.F({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.N("design:type",Boolean)],oI.prototype,"hasTopCtaButton",void 0);_.E([_.F({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.N("design:type",Boolean)],oI.prototype,"hasBottomCtaButton",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.N("design:type",Boolean)],oI.prototype,"force16By9ThumbnailAspectRatio",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],oI.prototype,"restrictContentsOverflow",void 0);_.E([_.F({selector:_.ToN}),_.N("design:type",Boolean)],oI.prototype,"inlinePreviewIsEnabled",void 0);_.E([_.F({computed:"computeSizing(data)"}),_.N("design:type",String)],oI.prototype,"sizing",void 0);
_.E([_.F(),_.N("design:type",Boolean)],oI.prototype,"typographyBump",void 0);_.E([_.F(),_.N("design:type",Number)],oI.prototype,"itemWidth",void 0);_.E([_.F(),_.N("design:type",Object)],oI.prototype,"firstShownIndex",void 0);_.E([_.F(),_.N("design:type",Object)],oI.prototype,"horizontalOffset",void 0);_.E([_.F(),_.N("design:type",Object)],oI.prototype,"atEnd",void 0);_.E([_.lJ("#contents"),_.N("design:type",HTMLElement)],oI.prototype,"contents",void 0);
_.E([_.Zw("data.rowIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oI.prototype,"onRowIndexChange",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oI.prototype,"onDataChange",null);_.E([_.Zw("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oI.prototype,"handleRerenderDownloadsData",null);
_.E([_.sE("focusin"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],oI.prototype,"onChildElementFocus",null);_.E([_.F({reflectToAttribute:!0}),_.z("data","isHomePage"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],oI.prototype,"isTruncated",null);_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],oI.prototype,"showBottomDivider",null);
_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],oI.prototype,"hasChevronButtons",null);_.E([_.z("firstShownIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],oI.prototype,"previousButtonOverride",null);_.E([_.z("atEnd"),_.N("design:type",Object),_.N("design:paramtypes",[])],oI.prototype,"nextButtonOverride",null);_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],oI.prototype,"isHomePage",null);
_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],oI.prototype,"thumbnailAriaHidden",null);_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],oI.prototype,"initiallyIsExpanded",null);_.E([_.z("data"),_.N("design:type",String),_.N("design:paramtypes",[])],oI.prototype,"entitySelectorType",null);_.E([_.u({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],oI);
_.DFC=_.$6()(oI,"ytd-rich-shelf-renderer",function(){if(KRn===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);KRn=f}f=KRn;return f},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.WK("kevlar_poly_si_batch_j028")?1:2});var oya;_.yn(_.to,"yt-badge-view-model",{props:{data:_.ki,class:_.ki,workaroundShortsIsThumbnailBadge:_.ki,modern:_.ki}});_.yn(m5M,"yt-slimline-survey-view-model",{props:{data:_.ki}});var nL=function(){var f=_.K.apply(this,arguments)||this;f.tileLottieAnimationRef={};f.backgroundLottieAnimationRef={};f.isOnHoverBehaviorForLottieEnabled=!0;f.useBiggerShowcaseImage=_.J("enable_desktop_search_bigger_thumbs");f.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return f};
_.e(nL,_.K);_.R=nL.prototype;_.R.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.R.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"}}}};
_.R.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var f=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);f!==this.hasTile&&this.set("hasTile",f);f=this.hasLogo(this.data)||!!this.data.badgeText;f!==this.hasMetadata&&this.set("hasMetadata",f);f=this.data.overflowButton?!1:f;f!==this.showLogoImage&&this.set("showLogoImage",f);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.R.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.R.currentColorChanged=function(){this.updateButtonPalette()};
_.R.computeBackgroundStyle=function(f){if(f&&this.data){var H=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var v=_.m3((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);v&&H.push('background-image: url("'+v+'");')}var t;((t=f.basicColorData)==null?void 0:t.backgroundColor)!==void 0&&H.push("background-color: "+_.cS(f.basicColorData.backgroundColor)+";");return H.join("")}};
_.R.onDarkModeToggledAction=function(f){f!==this.isDarkTheme&&this.set("isDarkTheme",f)};
_.R.getCurrentLogo=function(f,H){if(f)return H?f.darkLogoImage:f.lightLogoImage};
_.R.getCurrentStaticTileImage=function(f,H){if(this.hasStaticTile(f))return f.darkTileImage?H?f.darkTileImage:f.tileImage:f.tileImage};
_.R.computeTitleStyle=function(f){if(this.data&&this.data.title&&f&&f.basicColorData&&f.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.NS(f.basicColorData.foregroundTitleColor)+";"};
_.R.computeSubtitleStyle=function(f){if(this.data&&this.data.subtitle&&f&&f.basicColorData&&f.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.NS(f.basicColorData.foregroundBodyColor)+";"};
_.R.computeSupplementalStyle=function(f){if(this.data&&this.data.supplementalText&&f&&f.supplementalTextColor!==void 0)return f=_.NS(f.supplementalTextColor),"color:"+f+";--yt-endpoint-color:"+f+";--yt-endpoint-hover-color:"+f+";--yt-endpoint-visited-color:"+f+";--yt-formatted-string-bold-font-weight:700;"};
_.R.computeDismissIconStyle=function(f){var H,v;if((f==null?0:(H=f.dismissButtonColorData)==null?0:H.foregroundTitleColor)&&(f==null?0:(v=f.dismissButtonColorData)==null?0:v.backgroundColor))return"--yt-button-color:"+_.cS(f.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.cS(f.dismissButtonColorData.backgroundColor)+";"};
_.R.computeOverflowIconStyle=function(f){var H,v;if((f==null?0:(H=f.dismissButtonColorData)==null?0:H.foregroundTitleColor)&&(f==null?0:(v=f.dismissButtonColorData)==null?0:v.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.cS(f.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.cS(f.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.cS(f.dismissButtonColorData.foregroundTitleColor)+";"};
_.R.computeBannerStyle=function(f){return f?f.toLowerCase().replace(/_/g,"-"):""};
_.R.computeLocation=function(f){switch(f==null?void 0:f.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.R.shouldShowTileSection=function(f,H,v){return!this.shouldExpandLogo(f,H,v)&&H};
_.R.shouldShowExpandedLogoSection=function(f,H,v){return this.shouldExpandLogo(f,H,v)&&f!==void 0&&this.hasLogo(f)};
_.R.shouldExpandLogo=function(f,H,v){return f&&H?!1:v>=2};
_.R.hasStaticTile=function(f){return!(f==null||!f.tileImage)};
_.R.hasTileLottie=function(f){var H;return!!(f==null?0:(H=f.tileLottie)==null?0:H.url)};
_.R.hasLogo=function(f){return this.getCurrentLogo(f,this.isDarkTheme)!==void 0};
_.R.getLogoHeight=function(f){return this.logoWithPadding(f)?"26":"20"};
_.R.getExpandedLogoHeight=function(f){return this.logoWithPadding(f)?"31":"24"};
_.R.getLogoImageId=function(f){return this.logoWithPadding(f)?"logo-image-with-padding":"logo-image"};
_.R.getMaxTitleFontSize=function(f){return f.overrideTitleMaxFontSize?String(f.overrideTitleMaxFontSize):"36"};
_.R.hasBackgroundLottie=function(f){var H;return!!(f==null?0:(H=f.backgroundLottie)==null?0:H.url)};
_.R.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var f,H;(f=this.tileLottieAnimationRef)==null||(H=f.lottieEl)==null||H.play();var v,t;(v=this.backgroundLottieAnimationRef)==null||(t=v.lottieEl)==null||t.play()}};
_.R.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var f,H;(f=this.tileLottieAnimationRef)==null||(H=f.lottieEl)==null||H.pause();var v,t;(v=this.backgroundLottieAnimationRef)==null||(t=v.lottieEl)==null||t.pause()}};
_.R.pauseLottie=function(){var f,H;(f=this.tileLottieAnimationRef)==null||(H=f.lottieEl)==null||H.pause();var v,t;(v=this.backgroundLottieAnimationRef)==null||(t=v.lottieEl)==null||t.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.R.performPrimaryButtonAction=function(){var f,H,v;((f=this.data)==null?0:(H=f.primaryButton)==null?0:(v=H.buttonRenderer)==null?0:v.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.R.requestElementsPerRow=function(){_.YE(this.hostElement,"yt-request-elements-per-row")};
_.R.updateButtonPalette=function(){if(this.data&&this.currentColorData){var f;((f=this.data.dismissButton)==null?0:f.buttonRenderer)&&this.currentColorData.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.dismissButtonColorData},this.data.dismissButton.buttonRenderer.style=void 0,this.set("dismissButton",{buttonRenderer:Object.assign({},this.data.dismissButton.buttonRenderer)}));var H;if((H=this.data.primaryButton)==null?0:H.buttonRenderer)this.currentColorData.primaryButtonColorData?
(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorData.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorData.primaryButtonStyleType,this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)});var v;if((v=this.data.secondaryButton)==
null?0:v.buttonRenderer)this.currentColorData.secondaryButtonColorData?(this.data.secondaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.secondaryButtonColorData},this.data.secondaryButton.buttonRenderer.style=void 0):this.currentColorData.secondaryButtonStyleType&&(this.data.secondaryButton.buttonRenderer.style=this.currentColorData.secondaryButtonStyleType,this.data.secondaryButton.buttonRenderer.colorData=void 0),this.set("secondaryButton",{buttonRenderer:Object.assign({},
this.data.secondaryButton.buttonRenderer)});var t;((t=this.data.primaryButton)==null?0:t.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var M;((M=this.data.secondaryButton)==null?0:M.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var h;((h=this.data.primaryButton)==null?0:h.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},
this.data.primaryButton.buttonViewModel)})}};
_.R.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var f=this.getTileLottieDataBasedOnTheme(),H,v;if(f.url!==((H=this.tileLottiePlayerProps)==null?void 0:(v=H.animationConfig)==null?void 0:v.path)){var t,M;(t=this.tileLottieAnimationRef)==null||(M=t.lottieEl)==null||M.destroy();var h;this.isOnHoverBehaviorForLottieEnabled=!((h=f.settings)==null?0:h.autoplay);var y,m;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(m=(y=f.settings)==null?void 0:y.autoplay)!=null?m:!1,loop:this.getLottieLoopValue(f.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof f.url==="string"?this.tileLottiePlayerProps.animationConfig.path=f.url:this.tileLottiePlayerProps.animationConfig.animationData=f.url}}};
_.R.getOverflowButton=function(f){return _.U(f.overflowButton,xQb)};
_.R.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var f=this.getBackgroundLottieDataBasedOnTheme(),H,v;if(f.url!==((H=this.backgroundLottiePlayerProps)==null?void 0:(v=H.animationConfig)==null?void 0:v.path)){var t,M;(t=this.backgroundLottieAnimationRef)==null||(M=t.lottieEl)==null||M.destroy();var h;this.isOnHoverBehaviorForLottieEnabled=!((h=f.settings)==null?0:h.autoplay);var y,m;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(m=(y=f.settings)==null?void 0:y.autoplay)!=null?m:!1,loop:this.getLottieLoopValue(f.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof f.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=f.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
f.url}}};
_.R.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var f;((f=this.tileLottieAnimationRef)==null?void 0:f.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var H;((H=this.backgroundLottieAnimationRef)==null?void 0:H.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.R.getTileLottieDataBasedOnTheme=function(){var f;if(this.isDarkTheme&&((f=this.data)==null?0:f.darkThemeTileLottie))return this.data.darkThemeTileLottie;var H;return((H=this.data)==null?0:H.tileLottie)?this.data.tileLottie:{}};
_.R.getBackgroundLottieDataBasedOnTheme=function(){var f;if(this.isDarkTheme&&((f=this.data)==null?0:f.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var H;return((H=this.data)==null?0:H.backgroundLottie)?this.data.backgroundLottie:{}};
_.R.onUpdateElementsPerRowAction=function(f){f&&this.elementsPerRow!==f&&(this.elementsPerRow=f)};
_.R.getLottieLoopValue=function(f){return f?f.loop!==void 0?f.loop:f.loopCount?f.loopCount-1:!0:!0};
_.R.logoWithPadding=function(f){var H,v,t;return(f=(H=this.getCurrentLogo(f,this.isDarkTheme))==null?void 0:(v=H.thumbnails)==null?void 0:(t=v[0])==null?void 0:t.height)&&f%31===0?!0:!1};
nL.prototype.currentColorChanged=nL.prototype.currentColorChanged;nL.prototype.themeChanged=nL.prototype.themeChanged;nL.prototype.dataChanged=nL.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],nL.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],nL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.PG),_.N("design:type",Object)],nL.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],nL.prototype,"actionHandlerBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],nL.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],nL.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],nL.prototype,"primaryButton",void 0);_.E([_.F(),_.N("design:type",Object)],nL.prototype,"secondaryButton",void 0);
_.E([_.F({reflectToAttribute:!0,value:3}),_.N("design:type",Number)],nL.prototype,"elementsPerRow",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],nL.prototype,"isDarkTheme",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],nL.prototype,"hasTile",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],nL.prototype,"hasMetadata",void 0);
_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],nL.prototype,"showLogoImage",void 0);_.E([_.F(),_.N("design:type",Object)],nL.prototype,"currentColorData",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.N("design:type",String)],nL.prototype,"bannerStyle",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.N("design:type",String)],nL.prototype,"location",void 0);
_.E([_.F(),_.N("design:type",Object)],nL.prototype,"tileLottiePlayerProps",void 0);_.E([_.F(),_.N("design:type",Object)],nL.prototype,"tileLottieAnimationRef",void 0);_.E([_.F(),_.N("design:type",Object)],nL.prototype,"backgroundLottiePlayerProps",void 0);_.E([_.F(),_.N("design:type",Object)],nL.prototype,"backgroundLottieAnimationRef",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],nL.prototype,"useBiggerShowcaseImage",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],nL.prototype,"isHideEnclosingAction",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nL.prototype,"dataChanged",null);_.E([_.xV("isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nL.prototype,"themeChanged",null);
_.E([_.xV("currentColorData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nL.prototype,"currentColorChanged",null);_.E([_.u({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],nL);
_.G(nL,"ytd-statement-banner-renderer",function(){if(oya!==void 0)return oya;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return oya=f},{mode:1});var nyb;var pL=function(){var f=_.K.apply(this,arguments)||this;f.isSearch=!1;f.hideShelfHeader=!1;f.engagementPanel=!1;f.disableMouseScroll=!0;f.useFloorScrolling=!0;f.modernTypography=_.J("web_modern_typography");return f};
_.e(pL,_.K);pL.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.ZC("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.ZC("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
pL.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
pL.prototype.onDataChanged=pL.prototype.onDataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],pL.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],pL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],pL.prototype,"isSearch",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],pL.prototype,"hideShelfHeader",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],pL.prototype,"engagementPanel",void 0);_.E([_.F(),_.N("design:type",Object)],pL.prototype,"disableMouseScroll",void 0);_.E([_.F(),_.N("design:type",Object)],pL.prototype,"useFloorScrolling",void 0);_.E([_.F(),_.N("design:type",Object)],pL.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],pL.prototype,"modernTypography",void 0);
_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pL.prototype,"onDataChanged",null);_.E([_.u({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],pL);
_.G(pL,"ytd-reel-shelf-renderer",function(){if(nyb!==void 0)return nyb;var f=document.createElement("template");_.x(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n  <h2 class="style-scope ytd-reel-shelf-renderer">\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n    <span id="title" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n  </h2>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return nyb=f},{mode:_.WK("kevlar_poly_si_batch_j028")?1:2});var pZb;var Q4h;Q4h=_.EH(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.u0r=_.gr(Q4h);var a9h=_.a(function(f){var H=f.data;f=f.useSmallFont;var v={},t={};return _.O("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.O(_.g,{cond:function(){return H().favicon},
then:function(M){return _.O(_.Hn,{data:M,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.O("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.O(_.iq,{text:function(){return H().title},
className:_.S2("yt-channel-external-link-view-model-wiz__title",(v["yt-channel-external-link-view-model-wiz__title--title-small-font"]=f,v)),ellipsisTruncate:!0,userInput:!0}),_.O(_.iq,{text:function(){return H().link},
className:_.S2("yt-channel-external-link-view-model-wiz__link",(t["yt-channel-external-link-view-model-wiz__link--link-small-font"]=f,t)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Vb");
a9h.idomCompat=!0;_.yn(a9h,"yt-channel-external-link-view-model",{props:{data:_.ki,useSmallFont:_.ki}});_.DE("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var Qw=function(){var f=_.K.apply(this,arguments)||this;f.revealButtonClass="button";f.businessEmailDisplayState="HIDE_SECTION";return f};
_.e(Qw,_.K);_.R=Qw.prototype;_.R.refit=function(){var f=this;_.bJ(function(){_.$E(f.hostElement,"yt-refit-popups-action")});
_.qV(this,function(){_.$E(f.hostElement,"yt-refit-popups-action")})};
_.R.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.c7(_.u0r),this.businessEmailDisplayState="CAPTCHA")};
_.R.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"};
_.R.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.R.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"}}}};
_.R.computeEmailHref=function(f){return"mailto:"+f};
_.R.computeSafeUrl=function(f){if(f)return _.Co(f)};
_.R.linkEndpoint=function(f){return _.U(f.onTap,_.PK)};
_.R.linkEndpointToHref=function(f){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(f))};
_.R.onYtServiceRequestCompleted=function(f){var H;if((H=f.detail.data)==null?0:H.businessEmail)this.businessEmail=f.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var v;if((v=f.detail.data)==null?0:v.errorMessage)this.businessEmailErrorMessage=f.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.R.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var f=this.JSC$16231_captchaTextarea.value;if(f){f={recaptcha_response_token:f,channel_id:this.metadata.channelId};var H=_.U(this.metadata.onBusinessEmailRevealClickCommand,_.PK);H&&this.ytComponentBehavior.resolveCommand(H,{form:f})}}};
_.R.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.H7.Object.defineProperties(Qw.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var f;return _.U((f=this.data)==null?void 0:f.metadata,VgT)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.U(this.metadata.businessEmailRevealButton,_.af)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var f=new URL(this.metadata.canonicalChannelUrl);return f.host+f.pathname}}},
formattedDescription:{configurable:!0,enumerable:!0,get:function(){return this.metadata.description?{simpleText:this.metadata.description}:void 0}},
shouldRendereVerifiedPhoneStatus:{configurable:!0,enumerable:!0,get:function(){return this.metadata.phoneVerifiedLabel!==""&&this.learnMoreCommand!==void 0}},
learnMoreCommand:{configurable:!0,enumerable:!0,get:function(){return _.U(this.metadata.learnMoreOnTap,_.PK)}}});
Qw.prototype.onYtServiceRequestCompleted=Qw.prototype.onYtServiceRequestCompleted;Qw.prototype.businessEmailMetadataChanged=Qw.prototype.businessEmailMetadataChanged;Qw.prototype.refit=Qw.prototype.refit;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Qw.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Qw.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Qw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.lJ("#g-recaptcha-response"),_.N("design:type",HTMLTextAreaElement)],Qw.prototype,"JSC$16231_captchaTextarea",void 0);_.E([_.F(),_.N("design:type",Object)],Qw.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],Qw.prototype,"revealButtonClass",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Qw.prototype,"metadata",null);
_.E([_.z("metadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],Qw.prototype,"revealButton",null);_.E([_.z("metadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],Qw.prototype,"channelDisplayUrl",null);_.E([_.xV("metadata"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qw.prototype,"refit",null);_.E([_.z("metadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],Qw.prototype,"formattedDescription",null);
_.E([_.z("metadata","learnMoreCommand"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Qw.prototype,"shouldRendereVerifiedPhoneStatus",null);_.E([_.z("metadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],Qw.prototype,"learnMoreCommand",null);_.E([_.F(),_.N("design:type",String)],Qw.prototype,"businessEmailDisplayState",void 0);_.E([_.F(),_.N("design:type",String)],Qw.prototype,"businessEmail",void 0);
_.E([_.F(),_.N("design:type",String)],Qw.prototype,"businessEmailErrorMessage",void 0);_.E([_.xV("metadata"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qw.prototype,"businessEmailMetadataChanged",null);_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Qw.prototype,"onYtServiceRequestCompleted",null);_.E([_.u({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],Qw);
_.G(Qw,"ytd-about-channel-renderer",function(){if(pZb!==void 0)return pZb;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return pZb=f},{mode:1});var P2r;var uU=function(){return _.K.apply(this,arguments)||this};
_.e(uU,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],uU.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],uU.prototype,"data",void 0);_.E([_.u({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],uU);
_.G(uU,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(P2r!==void 0)return P2r;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return P2r=f},{mode:1});var GJT;var aI=function(){return _.K.apply(this,arguments)||this};
_.e(aI,_.K);aI.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],aI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],aI.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],aI.prototype,"aligment",void 0);_.E([_.u({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],aI);
_.G(aI,"ytd-channel-list-sub-menu-renderer",function(){if(GJT!==void 0)return GJT;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return GJT=
f},{mode:1});var C2h;var PT=function(){return _.K.apply(this,arguments)||this};
_.e(PT,_.K);PT.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}}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],PT.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],PT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],PT.prototype,"data",void 0);_.E([_.u({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],PT);
_.G(PT,"ytd-channel-sub-menu-renderer",function(){if(C2h!==void 0)return C2h;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return C2h=f},{mode:1});var Eyg;var NEh;var Gy=function(){var f=_.K.apply(this,arguments)||this;f.isCompact=!1;return f};
_.e(Gy,_.K);_.H7.Object.defineProperties(Gy.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var f,H;return((H=_.U((f=this.data)==null?void 0:f.endpoint,_.X7))==null?void 0:H.target)==="TARGET_NEW_WINDOW"}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Gy.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Gy.prototype,"componentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Gy.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Gy.prototype,"isCompact",void 0);_.E([_.z("isCompact"),_.N("design:type",Number),_.N("design:paramtypes",[])],Gy.prototype,"thumbnailWidth",null);
_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Gy.prototype,"openNewWindow",null);_.E([_.u({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],Gy);
_.G(Gy,"ytd-media-lockup-renderer",function(){if(NEh!==void 0)return NEh;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return NEh=f},{mode:1});var cuC;var CL=function(){return _.K.apply(this,arguments)||this};
_.e(CL,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],CL.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],CL.prototype,"componentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],CL.prototype,"data",void 0);_.E([_.u({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],CL);
_.G(CL,"ytd-structured-description-channel-lockup-renderer",function(){if(cuC!==void 0)return cuC;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return cuC=f},{mode:1});var XZC;var Et=function(){var f=_.K.apply(this,arguments)||this;f.isCompact=!1;f.collections=_.J("web_modern_collections_v2");f.collectionsStackColor=_.J("modernize_structured_description_playlist_lockups_v2");return f};
_.e(Et,_.K);Et.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:_.J("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.H7.Object.defineProperties(Et.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var f,H,v,t,M,h;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(f=this.data)==null?void 0:(H=f.thumbnail)==null?void 0:H.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(v=this.data)==null?void 0:(t=v.thumbnail)==null?void 0:t.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(M=this.data)==null?void 0:(h=M.thumbnail)==
null?void 0:h.vibrantColorPalette:void 0}}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Et.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Et.prototype,"componentBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Et.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Et.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Et.prototype,"showSidePanelThumbnailOverlay",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Et.prototype,"isCompact",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Et.prototype,"collections",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Et.prototype,"collectionsStackColor",void 0);_.E([_.z("data"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Et.prototype,"twoLineTitle",null);
_.E([_.z("data","collections","collectionsStackColor"),_.N("design:type",Object),_.N("design:paramtypes",[])],Et.prototype,"collectionStack",null);_.E([_.u({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],Et);
_.G(Et,"ytd-structured-description-playlist-lockup-renderer",function(){if(XZC!==void 0)return XZC;var f=document.createElement("template");_.x(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return XZC=f},{mode:1});var Au_;var Nz=function(){return _.K.apply(this,arguments)||this};
_.e(Nz,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Nz.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Nz.prototype,"componentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Nz.prototype,"data",void 0);_.E([_.u({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],Nz);
_.G(Nz,"ytd-structured-description-video-lockup-renderer",function(){if(Au_!==void 0)return Au_;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Au_=f},{mode:2});var cT=function(){return _.K.apply(this,arguments)||this};
_.e(cT,_.K);
cT.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}}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],cT.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],cT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],cT.prototype,"data",void 0);_.E([_.u({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],cT);
_.G(cT,"ytd-compact-infocard-renderer",function(){if(Eyg!==void 0)return Eyg;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Eyg=f},{mode:1});var bsr;var XY=function(){var f=_.K.apply(this,arguments)||this;f.useModernCollectionsV2=_.J("web_modern_collections_v2");return f};
_.e(XY,_.K);XY.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.H7.Object.defineProperties(XY.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.J("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.J("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.J("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],XY.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],XY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.PG),_.N("design:type",Object)],XY.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],XY.prototype,"ytdReduxBehavior",void 0);_.E([_.F({selector:_.Qn}),_.N("design:type",Object)],XY.prototype,"isGridViewEnabled",void 0);
_.E([_.z("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],XY.prototype,"watchFeedBigThumbs",null);_.E([_.z("isGridViewEnabled","data"),_.F({reflectToAttribute:!0,value:"168"}),_.N("design:type",String),_.N("design:paramtypes",[])],XY.prototype,"thumbnailWidth",null);_.E([_.z("isGridViewEnabled","data"),_.F({reflectToAttribute:!0,value:"94"}),_.N("design:type",String),_.N("design:paramtypes",[])],XY.prototype,"customThumbnailSize",null);
_.E([_.F(),_.N("design:type",Object)],XY.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],XY.prototype,"useModernCollectionsV2",void 0);_.E([_.u({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],XY);
_.G(XY,"ytd-compact-playlist-renderer",function(){if(bsr!==void 0)return bsr;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return bsr=f},{mode:1});var iso;var As=function(){var f=_.K.apply(this,arguments)||this;f.darkerDarkTheme=_.J("web_darker_dark_theme");f.roundedContainer=!0;f.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return f};
_.e(As,_.K);_.R=As.prototype;_.R.attached=function(){this.requestElementsPerRow()};
_.R.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"}}}};
_.R.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.R.computeViewStyle=function(f){return f.style?f.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.R.onUpdateElementsPerRowAction=function(f){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&f===1};
_.R.requestElementsPerRow=function(){_.YE(this.hostElement,"yt-request-elements-per-row")};
As.prototype.dataChanged=As.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],As.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],As.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.PG),_.N("design:type",Object)],As.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],As.prototype,"actionHandlerBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],As.prototype,"data",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],As.prototype,"hideThumbnail",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.N("design:type",String)],As.prototype,"viewStyle",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],As.prototype,"darkerDarkTheme",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],As.prototype,"roundedContainer",void 0);
_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],As.prototype,"dataChanged",null);_.E([_.u({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],As);
_.G(As,"ytd-compact-promoted-item-renderer",function(){if(iso!==void 0)return iso;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return iso=f},{mode:1});var kJT;var bU=function(){var f=_.K.apply(this,arguments)||this;f.collections=_.J("web_modern_collections_v2");return f};
_.e(bU,_.K);bU.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
bU.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
bU.prototype.onYtNavigate=function(f,H){var v=this;if(H.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",H)){var t=this.get("watchEndpoint.videoId",H.endpoint),M=_.$E(this.hostElement,"yt-get-current-video-id-action")[0];_.J("kevlar_mix_handle_first_endpoint_different")&&t&&M&&t!==M||(f.stopPropagation(),_.tj().getPlayerPromise().then(function(h){if(h.getPlayerState()===0&&v.data.secondaryNavigationEndpoint)var y=v.data.secondaryNavigationEndpoint;else{y=
Object.assign({},H.endpoint);var m=_.U(y.commandMetadata,_.jG);m&&(h=Math.floor(h.getCurrentTime()),m.url=_.kk(m.url,{t:h}),!_.J("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(m=_.U(y,_.wI)))&&(m.startTimeSeconds=h)}_.YE(v.hostElement,"yt-navigate",{endpoint:y})}))}};
_.H7.Object.defineProperties(bU.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.J("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.J("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var f,H,v,t,M,h;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(f=this.data)==null?void 0:(H=f.thumbnail)==null?void 0:H.sampledThumbnailColor,vibrantColorPalette:(v=this.data)==null?void 0:(t=v.thumbnail)==null?void 0:t.vibrantColorPalette,darkColorPalette:(M=this.data)==null?void 0:(h=M.thumbnail)==null?void 0:h.darkColorPalette,experimentEnabled:this.collections}}}});
bU.prototype.onYtNavigate=bU.prototype.onYtNavigate;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],bU.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.S3.YtEndpointBehavior),_.N("design:type",Object)],bU.prototype,"ytEndpointBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],bU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.PG),_.N("design:type",Object)],bU.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.B(_.A_),_.N("design:type",Object)],bU.prototype,"ytdLockupBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],bU.prototype,"ytdReduxBehavior",void 0);_.E([_.F({selector:_.Qn}),_.N("design:type",Object)],bU.prototype,"isGridViewEnabled",void 0);_.E([_.z("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],bU.prototype,"watchFeedBigThumbs",null);
_.E([_.z("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.N("design:type",String),_.N("design:paramtypes",[])],bU.prototype,"thumbnailWidth",null);_.E([_.F(),_.N("design:type",Object)],bU.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],bU.prototype,"collections",void 0);_.E([_.z("data","collections"),_.N("design:type",Object),_.N("design:paramtypes",[])],bU.prototype,"collectionStack",null);
_.E([_.sE("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],bU.prototype,"onYtNavigate",null);_.E([_.u({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],bU);
_.G(bU,"ytd-compact-radio-renderer",function(){if(kJT!==void 0)return kJT;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return kJT=f},{mode:1});var TEg;var iU=function(){return _.K.apply(this,arguments)||this};
_.e(iU,_.K);iU.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
iU.prototype.computeRendererStyle=function(f){return f.style?f.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.E([_.F(),_.N("design:type",Object)],iU.prototype,"data",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],iU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],iU.prototype,"rendererBehavior",void 0);_.E([_.F({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.N("design:type",String)],iU.prototype,"rendererStyle",void 0);_.E([_.u({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],iU);
_.G(iU,"ytd-compact-text-promo-renderer",function(){if(TEg!==void 0)return TEg;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return TEg=f},{mode:1});var wZn;var kc=function(){var f=_.K.apply(this,arguments)||this;f.isShortsStyle=!1;return f};
_.e(kc,_.K);_.R=kc.prototype;_.R.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"}}}};
_.R.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.YE(this.hostElement,"yt-disable-lockup-interaction"):_.YE(this.hostElement,"yt-enable-lockup-interaction"))};
_.R.isMetaBlockEmpty=function(f){return!f||!f.longBylineText&&!f.shortBylineText&&!f.shortViewCountText&&!f.viewCountText};
_.R.computeHasOneLineTitle=function(f){return this.forceOneLineTitle||!(f==null||!f.buttons)};
_.R.computeDisableInteraction=function(){var f;return!((f=this.data)==null?0:f.navigationEndpoint)};
_.R.hasSingularTopStandaloneBadge=function(){var f;return!((f=this.data)==null||!f.topStandaloneBadge)};
_.H7.Object.defineProperties(kc.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.J("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.J("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 f;return this.hasSingularTopStandaloneBadge()?[(f=this.data)==null?void 0:f.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var f;return this.shouldShowTopBadges?((f=this.data)==null?void 0:f.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
kc.prototype.disableInteractionChanged=kc.prototype.disableInteractionChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],kc.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],kc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.PG),_.N("design:type",Object)],kc.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.B(_.A_),_.N("design:type",Object)],kc.prototype,"ytdLockupBehavior",void 0);
_.E([_.B(_.um),_.N("design:type",Object)],kc.prototype,"ytdReduxBehavior",void 0);_.E([_.F({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.N("design:type",Boolean)],kc.prototype,"metaBlockEmpty",void 0);_.E([_.F({selector:_.Qn}),_.N("design:type",Object)],kc.prototype,"isGridViewEnabled",void 0);_.E([_.z("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],kc.prototype,"watchFeedBigThumbs",null);
_.E([_.z("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.N("design:type",String),_.N("design:paramtypes",[])],kc.prototype,"thumbnailWidth",null);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],kc.prototype,"isShortsStyle",void 0);_.E([_.F(),_.N("design:type",Object)],kc.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.N("design:type",Boolean)],kc.prototype,"hasOneLineTitle",void 0);
_.E([_.F(),_.N("design:type",Boolean)],kc.prototype,"hideThumbnail",void 0);_.E([_.F(),_.N("design:type",Boolean)],kc.prototype,"forceOneLineTitle",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.N("design:type",Boolean)],kc.prototype,"disableInteraction",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],kc.prototype,"musicMetadataVideoLockup",void 0);
_.E([_.Zw("disableInteraction"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kc.prototype,"disableInteractionChanged",null);_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],kc.prototype,"shouldShowTopBadges",null);_.E([_.z("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],kc.prototype,"topBadges",null);
_.E([_.z("shouldShowTopBadges","data"),_.N("design:type",Array),_.N("design:paramtypes",[])],kc.prototype,"inlineMetadataBadges",null);_.E([_.z("shouldShowTopBadges"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],kc.prototype,"shouldShowBadgesBelowMetadata",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],kc.prototype,"compactTitleClass",null);_.E([_.u({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],kc);
_.G(kc,"ytd-compact-video-renderer",function(){if(wZn!==void 0)return wZn;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return wZn=f},{mode:_.WK("kevlar_poly_si_batch_j067")?1:2});var qGv;_.DE("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var Ty=function(){return _.K.apply(this,arguments)||this};
_.e(Ty,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Ty.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Ty.prototype,"data",void 0);_.E([_.u({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],Ty);
_.G(Ty,"ytd-counterfactual-renderer",function(){if(qGv!==void 0)return qGv;var f=document.createElement("template");_.x(f,"\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");f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return qGv=f},{mode:1});var fgo;var wv=function(){var f=_.K.apply(this,arguments)||this;f.hidden=!1;return f};
_.e(wv,_.K);wv.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.t8().resolve(_.MJ).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
wv.prototype.computeHidden=function(f){return!!f};
_.H7.Object.defineProperties(wv.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}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],wv.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],wv.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.N("design:type",Object)],wv.prototype,"hidden",void 0);_.E([_.z("data.label"),_.N("design:type",String),_.N("design:paramtypes",[])],wv.prototype,"label",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],wv.prototype,"value",null);
_.E([_.u({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],wv);
_.G(wv,"ytd-dropdown-item-renderer",function(){if(fgo!==void 0)return fgo;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return fgo=f},{mode:1});var Hyv;var vr_;var qz=function(){return _.K.apply(this,arguments)||this};
_.e(qz,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],qz.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],qz.prototype,"data",void 0);_.E([_.F({computed:"getSimpleString(data.label)"}),_.N("design:type",String)],qz.prototype,"label",void 0);_.E([_.u({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],qz);
_.G(qz,"ytd-navigation-dropdown-item-renderer",function(){if(vr_!==void 0)return vr_;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return vr_=f},{mode:1});var fB=function(){var f=_.K.apply(this,arguments)||this;f.disabled=!1;f.value="";f.noLabelFloat=!1;f.noUnderline=!1;f.usePrimaryColor=!1;f.hasBackground=!1;f.verticalAlign="top";f.autosize=!1;f.minAutosizeWidth=100;f.autosizeFont="14px Roboto";return f};
_.e(fB,_.K);_.R=fB.prototype;_.R.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"}}}};
_.R.open=function(){this.inputEl.open()};
_.R.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.R.dataChanged=function(){this.reset()};
_.R.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.bM("value-changed",this.value))};
_.R.stopPropagation=function(f){f.stopPropagation()};
_.R.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var f=this.canvas.getContext("2d");f&&(f.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(f.measureText(this.inputEl.value).width)+24)+"px")}};
_.R.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var f=0,H=this.data.entries.length;f<H;f++){var v=this.data.entries[f],t;for(t in v)if(v.hasOwnProperty(t)){var M=v[t];if("isSelected"in M&&M.isSelected)return"stringValue"in M?M.stringValue||"":"int32Value"in M?M.int32Value||0:0}}return null};
_.R.updateValueFromBinding=function(f){this.value=f.detail.value};
_.H7.Object.defineProperties(fB.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 f=0,H=this.data.entries.length;f<H;f++){var v=this.data.entries[f],t;for(t in v)if(v.hasOwnProperty(t)){var M=v[t];if("isSelected"in M&&M.isSelected&&"label"in M)return this.ytRendererBehavior.getSimpleString(M.label)}}return null}}});
fB.prototype.autoSizeLabel=fB.prototype.autoSizeLabel;fB.prototype.stopPropagation=fB.prototype.stopPropagation;fB.prototype.valueChangedForBinding=fB.prototype.valueChangedForBinding;fB.prototype.dataChanged=fB.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],fB.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],fB.prototype,"ytRendererStamperBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],fB.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],fB.prototype,"disabled",void 0);_.E([_.F(),_.N("design:type",Object)],fB.prototype,"value",void 0);_.E([_.F(),_.N("design:type",Object)],fB.prototype,"noLabelFloat",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],fB.prototype,"noUnderline",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],fB.prototype,"theme",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],fB.prototype,"usePrimaryColor",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],fB.prototype,"hasBackground",void 0);_.E([_.F(),_.N("design:type",Object)],fB.prototype,"verticalAlign",void 0);_.E([_.F(),_.N("design:type",Object)],fB.prototype,"autosize",void 0);_.E([_.F(),_.N("design:type",Object)],fB.prototype,"minAutosizeWidth",void 0);_.E([_.F(),_.N("design:type",Object)],fB.prototype,"autosizeFont",void 0);
_.E([_.lJ("#entries"),_.N("design:type",Object)],fB.prototype,"entries",void 0);_.E([_.lJ("#input"),_.N("design:type",Object)],fB.prototype,"inputEl",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fB.prototype,"dataChanged",null);_.E([_.xV("value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fB.prototype,"valueChangedForBinding",null);
_.E([_.sE("iron-overlay-opened"),_.sE("iron-overlay-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],fB.prototype,"stopPropagation",null);_.E([_.sE("iron-select"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fB.prototype,"autoSizeLabel",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],fB.prototype,"label",null);
_.E([_.u({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],fB);
_.G(fB,"ytd-dropdown-renderer",function(){if(Hyv!==void 0)return Hyv;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Hyv=f},{mode:1});var ti_;var Hr=function(){var f=_.K.apply(this,arguments)||this;f.isConstrainedList=!1;return f};
_.e(Hr,_.K);Hr.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"}}}};
Hr.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
Hr.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
Hr.prototype.computeViewAllHidden=function(f,H){return f||!H.viewAllEndpoint};
Hr.prototype.fillRestIfNoShowMore=Hr.prototype.fillRestIfNoShowMore;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Hr.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Hr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.h3.YtLazyListBehavior),_.N("design:type",Object)],Hr.prototype,"ytLazyListBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Hr.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Hr.prototype,"isConstrainedList",void 0);_.E([_.xV("data","canShowMore"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Hr.prototype,"fillRestIfNoShowMore",null);_.E([_.u({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],Hr);
_.G(Hr,"ytd-expanded-shelf-contents-renderer",function(){if(ti_!==void 0)return ti_;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return ti_=f},{mode:_.WK("kevlar_poly_si_batch_j025")?1:2});var MiT;var vr=function(){return _.K.apply(this,arguments)||this};
_.e(vr,_.K);vr.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}}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],vr.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],vr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],vr.prototype,"data",void 0);_.E([_.u({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],vr);
_.G(vr,"ytd-feed-channel-filter-header-renderer",function(){if(MiT!==void 0)return MiT;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return MiT=f},{mode:1});var hrg;var Rr9;var ViH;var tP=function(){return _.K.apply(this,arguments)||this};
_.e(tP,_.K);_.R=tP.prototype;_.R.onClick=function(f){var H,v=(H=this.data)==null?void 0:H.sectionEndpoint;!_.w6(_.f2(f),this.hostElement,["A".toString()])&&v&&_.YE(this.hostElement,"yt-navigate",{endpoint:v})};
_.R.computeHasSectionEndpoint=function(f){return(f==null?void 0:f.sectionEndpoint)!==void 0};
_.R.computeShowHeaderAsLink=function(f){return(f==null?void 0:f.header)!==void 0&&(f==null?void 0:f.sectionEndpoint)!==void 0};
_.R.computeShowSubheaderAsLink=function(f){return(f==null?void 0:f.subheader)!==void 0&&(f==null?void 0:f.sectionEndpoint)!==void 0&&(f==null?void 0:f.header)===void 0};
_.R.getHeaderAsLinkClass=function(f){var H=[],v;(f==null?0:(v=f.headerIcon)==null?0:v.iconType)&&H.push("header-link-active");return H.join(" ")};
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],tP.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],tP.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],tP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],tP.prototype,"data",void 0);
_.E([_.F({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],tP.prototype,"hasSectionEndpoint",void 0);_.E([_.F({computed:"computeShowHeaderAsLink(data)"}),_.N("design:type",Boolean)],tP.prototype,"showHeaderAsLink",void 0);_.E([_.F({computed:"computeShowSubheaderAsLink(data)"}),_.N("design:type",Boolean)],tP.prototype,"showSubheaderAsLink",void 0);_.E([_.u({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],tP);
_.G(tP,"ytd-medical-panel-section-renderer",function(){if(ViH!==void 0)return ViH;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return ViH=f},{mode:1});var Mn=function(){var f=_.K.apply(this,arguments)||this;f.isExpanded=!1;f.roundedContainer=!0;f.skipRoundingTop=!1;f.toggleExpandableSection=function(){f.isExpanded=!f.isExpanded};
return f};
_.e(Mn,_.K);
Mn.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]]"}}}}}};
Mn.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
Mn.prototype.dataChanged=Mn.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Mn.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Mn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Mn.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],Mn.prototype,"isExpanded",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Mn.prototype,"roundedContainer",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Mn.prototype,"skipRoundingTop",void 0);_.E([_.F(),_.N("design:type",Object)],Mn.prototype,"toggleExpandableSection",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Mn.prototype,"dataChanged",null);_.E([_.u({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],Mn);
_.G(Mn,"ytd-medical-panel-content-renderer",function(){if(Rr9!==void 0)return Rr9;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Rr9=f},{mode:1});_.DE("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var hP=function(){var f=_.K.apply(this,arguments)||this;f.roundedContainer=!0;f.amsterdamEnabled=_.J("enable_desktop_amsterdam_info_panels");f.hasTitle=!1;f.linkIcon="OPEN_IN_NEW";f.isDismissed=!1;return f};
_.e(hP,_.K);
hP.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",roundedContainer:"[[roundedContainer]]"}},
horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
hP.prototype.computeHasTitle=function(f){return!(f==null||!f.title)};
hP.prototype.onClick=function(f){var H,v=(H=this.data)==null?void 0:H.headerEndpoint;!_.w6(_.f2(f),this.hostElement,["BUTTON".toString()])&&v&&this.ytComponentBehavior.resolveCommand(v)};
_.H7.Object.defineProperties(hP.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 f;return((f=this.data)==null?void 0:f.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var f,H;return((f=this.data)==null?void 0:f.disableBottomDivider)||!((H=this.data)==null?0:H.title)}}});
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],hP.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],hP.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],hP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],hP.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],hP.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],hP.prototype,"roundedContainer",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],hP.prototype,"amsterdamEnabled",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.N("design:type",Object)],hP.prototype,"hasTitle",void 0);
_.E([_.F({type:_.J("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.z("data.background"),_.N("design:type",Object),_.N("design:paramtypes",[])],hP.prototype,"background",null);_.E([_.F({type:_.J("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.z("data.titleStyle"),_.N("design:type",Object),_.N("design:paramtypes",[])],hP.prototype,"titleStyle",null);
_.E([_.F({type:_.J("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.z("data.titleStyle"),_.N("design:type",Object),_.N("design:paramtypes",[])],hP.prototype,"showLinkIcon",null);_.E([_.F(),_.N("design:type",String)],hP.prototype,"linkIcon",void 0);_.E([_.F({type:_.J("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],hP.prototype,"hideDivider",null);
_.E([_.F({selectorArgs:["data.dismissStateEntityKey"],selector:function(f,H){f=_.dL(f.entities,"dismissState",H);return(f==null?void 0:f.isDismissed)||(f==null?void 0:f.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(f==null?void 0:f.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.N("design:type",Object)],hP.prototype,"isDismissed",void 0);_.E([_.u({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],hP);
_.G(hP,"ytd-info-panel-container-renderer",function(){if(hrg!==void 0)return hrg;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return hrg=f},{mode:1});var yyC;_.DE("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var Ra=function(){var f=_.K.apply(this,arguments)||this;f.modernTypography=_.J("web_modern_typography");return f};
_.e(Ra,_.K);Ra.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Ra.prototype.computeStyle=function(f){return f?f:""};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Ra.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Ra.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Ra.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.N("design:type",String)],Ra.prototype,"titleStyle",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Ra.prototype,"modernTypography",void 0);_.E([_.u({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],Ra);
_.G(Ra,"ytd-item-section-header-renderer",function(){if(yyC!==void 0)return yyC;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return yyC=f},{mode:1});var Yf9;var mon,$or=function(){return mon!==void 0?mon:mon=document.createElement("template")};
document.head.appendChild($or().content);var WKb;_.V9=new _.iN("VOTING_ANIMATION_CONTROLLER_TOKEN");var grn=_.a(function(f){var H=f.data;var v=_.TN("div"),t=_.TN("div");f=_.V(_.gp("VOTE_STATUS_NONE",void 0,"FVF7mc"));var M=f.next().value,h=f.next().value,y=_.s7(sCe,function(){var Z;return(Z=H())==null?void 0:Z.entityKey}),m=_.J("web_enable_voting_animation")||_.J("enable_music_web_cairo_voting_animation");
_.Kc(function(){var Z;((Z=H().initialState)==null?0:Z.status)&&h(H().initialState.status)});
var W=function(){var Z,l,L=(l=(Z=H().initialState)==null?void 0:Z.votes)!=null?l:0,r;Z=(r=H().initialState)==null?void 0:r.status;return Z==="VOTE_STATUS_UPVOTED"?L-1:Z==="VOTE_STATUS_DOWNVOTED"?L+1:L},I=function(){return M()==="VOTE_STATUS_UPVOTED"?W()+1:M()==="VOTE_STATUS_DOWNVOTED"?W()-1:W()},S=function(Z){var l=Z?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
h(l);var L=I(),r=_.t8().resolve(_.vh(_.V9)),n=y();n&&(Z&&(n==null?0:n.upvoteDefaultButtonOnTap)?_.XA(n.upvoteDefaultButtonOnTap,{form:{element:v.value},disableClickTracking:!0}):(n==null?0:n.upvoteToggledButtonOnTap)&&_.XA(n.upvoteToggledButtonOnTap,{form:{element:v.value},disableClickTracking:!0}));var Q;Z=(Q=n==null?void 0:n.enableOptimisticReordering)!=null?Q:H().enableOptimisticReordering;m&&r&&H().itemId&&Z&&Oyo(r,H().itemId,L,l)},d=function(Z){var l=Z?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
h(l);var L=I(),r=_.t8().resolve(_.vh(_.V9)),n=y();n&&(Z&&(n==null?0:n.downvoteDefaultButtonOnTap)?_.XA(n.downvoteDefaultButtonOnTap,{form:{element:t.value},disableClickTracking:!0}):(n==null?0:n.downvoteToggledButtonOnTap)&&_.XA(n.downvoteToggledButtonOnTap,{form:{element:t.value},disableClickTracking:!0}));var Q;Z=(Q=n==null?void 0:n.enableOptimisticReordering)!=null?Q:H().enableOptimisticReordering;m&&r&&H().itemId&&Z&&Oyo(r,H().itemId,L,l)};
f={};f=_.S2("ytVotingViewModelVoteCount",(f.ytVotingViewModelVoteCountDisabled=function(){return H().isDisabled},f));
return _.O("voting-view-model",{class:"ytVotingViewModelHost"},_.O("div",{el:v},_.O(_.Jj,{data:function(){var Z=_.U(H().upvoteButton,_.G3);return{toggleButtonViewModel:Object.assign({},Z,{isToggled:M()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(Z){return _.O(_.Fo,{data:Z.data,
onToggle:S})}})),_.O("div",{class:f},function(){var Z,l,L;
return M()==="VOTE_STATUS_UPVOTED"?(Z=H().initialState)==null?void 0:Z.compactVotesUpvoted:M()==="VOTE_STATUS_DOWNVOTED"?(l=H().initialState)==null?void 0:l.compactVotesDownvoted:(L=H().initialState)==null?void 0:L.compactVotes}),_.O("div",{el:t},_.O(_.Jj,{data:function(){var Z=_.U(H().downvoteButton,_.G3);
return{toggleButtonViewModel:Object.assign({},Z,{isToggled:M()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(Z){return _.O(_.Fo,{data:Z.data,
onToggle:d})}})))},"Wb");_.yn(_.a(function(f){var H=f.data;return _.O("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.O("div",{class:_.S2("ytEngagementBarViewModelEngagementBarWrapper",f.className)},_.O(_.Jj,{data:function(){return H().actions}},{votingViewModel:grn})))},"Xb"),"engagement-bar-view-model",{props:{data:_.ki,
className:_.ki}});var y9=function(){var f=_.K.apply(this,arguments)||this;f.playlistVotingAnimationEnabled=_.J("web_enable_voting_animation");f.downloadProgress=0;f.transferState="TRANSFER_STATE_UNKNOWN";f.downloadState="DOWNLOAD_STATE_UNKNOWN";f.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";f.offlineVideoPolicyExpirationTimestamp=0;return f};
_.e(y9,_.K);_.R=y9.prototype;_.R.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"}}}};
_.R.canReorderChanged=function(){this.persistentDragHandle=_.J("kevlar_playlist_drag_handles")&&this.canReorder};
_.R.onDrag=function(){if(this.thumbnail){var f=_.mF(this.thumbnail).querySelector("yt-image");f&&(f.shouldRenderLazy=!1)}};
_.R.onMenuOverlayChanged=function(f,H){this.menuOpened=H};
_.R.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.R.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.R.onContentsTap=function(f){var H,v=(H=this.data)==null?void 0:H.serviceEndpoints;if(v&&v.length===1&&_.U(v[0],x5B)&&!_.w6(_.f2(f),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(v[0]);else{var t;(H=(t=this.data)==null?void 0:t.navigationEndpoint)&&_.J("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?Igh(_.t8().resolve(_.o0),H):(_.S0().playlistSuggestionsShelfActivation=
!0,_.SfM(_.t8().resolve(_.o0),H)):H&&!_.w6(_.f2(f),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.J("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.YE(this.hostElement,"yt-navigate",{endpoint:H}):this.ytComponentBehavior.resolveCommand(H))}};
_.R.computeStyle=function(f){return f?f.toLowerCase().replace(/_/g,"-"):""};
_.R.computeThumbnailWidth=function(f){return f==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.R.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=lsg(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))}};
_.R.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.R.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.R.dataChanged=function(){if(this.data){var f,H,v,t=((f=this.downloadRenderData)==null?void 0:f.badges)&&((H=this.downloadRenderData)==null?void 0:H.badges)!==((v=this.data)==null?void 0:v.badges),M,h,y;f=((M=this.downloadRenderData)==null?void 0:M.thumbnailOverlays)&&((h=this.downloadRenderData)==null?void 0:h.thumbnailOverlays)!==((y=this.data)==null?void 0:y.thumbnailOverlays);(!this.downloadRenderData||t||f)&&this.downloadStateChanged()}};
_.R.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var f,H,v=(f=this.data.menu)==null?void 0:(H=f.menuRenderer)==null?void 0:H.items;if(v)for(f=_.V(v),H=f.next();!H.done;H=f.next())if(H=H.value,v=void 0,_.U((v=H.menuServiceItemRenderer)==null?void 0:v.serviceEndpoint,_.Kv)){var t=v=void 0,M=void 0;H=(v=H)==null?void 0:(t=v.menuServiceItemRenderer)==null?void 0:(M=t.serviceEndpoint)==null?void 0:M.playlistEditEndpoint;M=t=void 0;if(v=(t=H)==null?void 0:(M=t.actions)==null?void 0:
M[0])t=void 0,v.setVideoId=(t=this.data)==null?void 0:t.setVideoId;M=t=v=void 0;if(H=(v=H)==null?void 0:(t=v.clientActions)==null?void 0:(M=t[0])==null?void 0:M.playlistRemoveVideosAction)v=void 0,H.setVideoIds=[(v=this.data)==null?void 0:v.setVideoId]}}};
_.H7.Object.defineProperties(y9.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
y9.prototype.setVideoIdChanged=y9.prototype.setVideoIdChanged;y9.prototype.dataChanged=y9.prototype.dataChanged;y9.prototype.downloadStateChanged=y9.prototype.downloadStateChanged;y9.prototype.onMenuOverlayChanged=y9.prototype.onMenuOverlayChanged;y9.prototype.canReorderChanged=y9.prototype.canReorderChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],y9.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],y9.prototype,"ytdReduxBehavior",void 0);
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],y9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.A_),_.N("design:type",Object)],y9.prototype,"ytdLockupBehavior",void 0);_.E([_.B(_.PG),_.N("design:type",Object)],y9.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],y9.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],y9.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],y9.prototype,"canReorder",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],y9.prototype,"menuOpened",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],y9.prototype,"handleIsHovered",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],y9.prototype,"persistentDragHandle",void 0);_.E([_.F(),_.N("design:type",Object)],y9.prototype,"downloadRenderData",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],y9.prototype,"styleType",void 0);_.E([_.F({computed:"computeThumbnailWidth(data.style)"}),_.N("design:type",Number)],y9.prototype,"thumbnailWidth",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],y9.prototype,"isDownloads",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],y9.prototype,"playlistVotingAnimationEnabled",void 0);
_.E([_.F({selector:NO,selectorArgs:["data.videoId"]}),_.N("design:type",Object)],y9.prototype,"downloadProgress",void 0);_.E([_.F(),_.N("design:type",Number)],y9.prototype,"relativeDateReference",void 0);_.E([_.F({selector:_.CY,selectorArgs:["data.videoId"]}),_.N("design:type",Object)],y9.prototype,"transferState",void 0);_.E([_.F({selector:I5v,selectorArgs:["data.videoId"]}),_.N("design:type",Object)],y9.prototype,"downloadState",void 0);
_.E([_.F({selector:f5H,selectorArgs:["data.videoId"]}),_.N("design:type",Object)],y9.prototype,"offlinePolicyAction",void 0);_.E([_.F({selector:HMg,selectorArgs:["data.videoId"]}),_.N("design:type",Object)],y9.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.E([_.F({selector:tDT,selectorArgs:["data.videoId"]}),_.N("design:type",Object)],y9.prototype,"entityInfo",void 0);_.E([_.F({selector:_.a5}),_.N("design:type",Boolean)],y9.prototype,"miniplayerIsActive",void 0);
_.E([_.z("data"),_.N("design:type",String),_.N("design:paramtypes",[])],y9.prototype,"playlistVideoId",null);_.E([_.lJ("#thumbnail"),_.N("design:type",Object)],y9.prototype,"thumbnail",void 0);_.E([_.xV("canReorder"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],y9.prototype,"canReorderChanged",null);
_.E([_.sE("yt-menu-overlay-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Boolean]),_.N("design:returntype")],y9.prototype,"onMenuOverlayChanged",null);_.E([_.xV("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],y9.prototype,"downloadStateChanged",null);
_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],y9.prototype,"dataChanged",null);_.E([_.xV("data.setVideoId"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],y9.prototype,"setVideoIdChanged",null);_.E([_.u({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],y9);
_.G(y9,"ytd-playlist-video-renderer",function(){if(WKb!==void 0)return WKb;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);f.content.insertBefore($or().content.cloneNode(!0),f.content.firstChild);return WKb=f},{mode:1});var doH;var Yb=function(){return _.K.apply(this,arguments)||this};
_.e(Yb,_.K);_.E([_.F(),_.N("design:type",Object)],Yb.prototype,"data",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Yb.prototype,"rendererBehavior",void 0);_.E([_.u({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],Yb);
_.G(Yb,"ytd-premium-browse-footer-renderer",function(){if(doH!==void 0)return doH;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return doH=f},{mode:1});var jZM;var m1=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return f};
_.e(m1,_.K);_.R=m1.prototype;_.R.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.R.handleDarkModeToggledAction=function(f){this.isDarkTheme=f};
_.R.computeHeaderLogoThumbnail=function(f,H){if(f)return H?f.darkLogo:f.lightLogo};
_.R.computeHeaderLogoHeight=function(f,H){var v,t,M;return(f=(v=this.computeHeaderLogoThumbnail(f,H))==null?void 0:(t=v.thumbnails)==null?void 0:(M=t[0])==null?void 0:M.height)&&f%31===0?"31":"24"};
_.R.computeHeaderLogoMarginBottom=function(f,H){return this.computeHeaderLogoHeight(f,H)==="24"?"0":"-7"};
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],m1.prototype,"actionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],m1.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],m1.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Boolean)],m1.prototype,"isDarkTheme",void 0);_.E([_.F({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.N("design:type",Object)],m1.prototype,"themeLogo",void 0);
_.E([_.F({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.N("design:type",String)],m1.prototype,"logoHeight",void 0);_.E([_.F({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.N("design:type",String)],m1.prototype,"logoMarginBottom",void 0);_.E([_.u({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],m1);
_.G(m1,"ytd-primetime-promo-header-renderer",function(){if(jZM!==void 0)return jZM;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return jZM=f},{mode:1});var sZC;var JyT=_.a(function(f){var H=_.d6(function(M){var h;(h=f.onClick)==null||h.call(f,M)}),v={},t={};
return _.O("yt-shelf-header-layout",{class:_.S2("shelf-header-layout-wiz",(v["shelf-header-layout-wiz--disable-horizontal-padding"]=f.disableHorizontalPadding,v["shelf-header-layout-wiz--disable-vertical-padding"]=f.disableVerticalPadding,v["shelf-header-layout-wiz--responsive"]=f.useResponsiveLayout,v["shelf-header-layout-wiz--narrow"]=function(){var M,h;return((M=f.useResponsiveLayout)==null?void 0:M.call(f))&&((h=f.forceSmallLayout)==null?void 0:h.call(f))},v["shelf-header-layout-wiz--is-overlay"]=
f.isOverlay,v["shelf-header-layout-wiz--tappable"]=!!f.onClick,v)),
"on:click":H,tabindex:function(){var M;return((M=f.isInteractive)==null?0:M.call(f))?0:void 0}},_.O(_.g,{cond:f.leadingIcon,
then:function(M){return _.O("div",{class:"shelf-header-layout-wiz__leading-icon"},_.O(_.JE,{icon:M}))},
else:function(){return _.O(_.g,{cond:f.hasLeadingImage,then:function(){var M,h={};return _.O("div",{class:_.S2("shelf-header-layout-wiz__leading-image",(h["shelf-header-layout-wiz__leading-image--circular-image"]=f.circularImage,h))},(M=f.leadingImage)==null?void 0:M.call(f))}})}}),_.O("div",{class:"shelf-header-layout-wiz__label-container"},_.O(_.g,{cond:f.hasSuperlabel,
then:function(){var M;return _.O("div",{class:"shelf-header-layout-wiz__superlabel"},(M=f.superlabel)==null?void 0:M.call(f))}}),_.O("div",{class:"shelf-header-layout-wiz__title-row"},_.O(Zy_,{text:f.title,
className:_.S2("shelf-header-layout-wiz__title",(t["shelf-header-layout-wiz__title--small-title"]=f.forceSmallLayout,t)),tagLevel:f.tagLevel}),_.O(_.g,{cond:f.hasDetail,then:function(){var M;return _.O("div",{class:"shelf-header-layout-wiz__detail"},(M=f.detail)==null?void 0:M.call(f))}})),_.O(_.g,{cond:f.hasSublabel,
then:function(){var M;return _.O("div",{class:"shelf-header-layout-wiz__sublabel"},(M=f.sublabel)==null?void 0:M.call(f))}})),_.O(_.g,{cond:f.hasTrailingActions,
then:function(){var M;return _.O("div",{class:"shelf-header-layout-wiz__trailing-actions"},(M=f.trailingActions)==null?void 0:M.call(f))}}))},"Yb");
JyT.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var Zy_=_.a(function(f){var H=f.text;var v=f.className;var t=f.tagLevel;return _.O(_.B6,null,_.O(_.Lc,{when:function(){return(t==null?void 0:t())===0}},function(){return _.O("h2",{class:v},H())}),_.O(_.Lc,{when:function(){return(t==null?void 0:t())===1}},function(){return _.O("h3",{class:v},H())}),_.O(_.Lc,{when:function(){return(t==null?void 0:t())===2}},function(){return _.O("h4",{class:v},H())}),_.O(_.xk,null,function(){return _.O("h2",{class:v},H())}))},"Zb");var erh,lgH,UoT;_.$b=_.a(function(f){var H=f.className;var v=f.data;var t=f.disableHorizontalPadding;var M=f.disableVerticalPadding;var h=f.forceSmallLayout;var y=f.useResponsiveLayout;f=f.isOverlay;return _.O("yt-section-header-view-model",{class:_.S2("ytSectionHeaderViewModelHost",H),style:_.ZE({"background-color":function(){return dy(v().backgroundColor)?_.cS(dy(v().backgroundColor)):void 0}})},_.O(JyT,{hasDetail:!1,
title:function(){return _.O(_.iq,{text:function(){return v().headline}})},
hasTitle:!0,sublabel:function(){return _.O(lgH,{data:v})},
hasSublabel:function(){return!!v().sublabel||!!v().bottomBadge},
superlabel:function(){return _.O(UoT,{data:v})},
hasSuperlabel:function(){return!!v().superlabel||!!v().topBadge},
leadingImage:function(){return _.O(erh,{leadingAccessory:function(){return v().leadingAccessory}})},
hasLeadingImage:function(){return!!v().leadingAccessory},
trailingActions:function(){return _.O(_.Jj,{data:function(){return v().trailingActions}},{flexibleActionsViewModel:_.ot})},
hasTrailingActions:function(){return!!v().trailingActions},
disableHorizontalPadding:t,disableVerticalPadding:M,forceSmallLayout:h,useResponsiveLayout:y,isOverlay:f,isInteractive:function(){return!!_.KT(v().rendererContext)},
onClick:function(m){if(_.DO(v().rendererContext)){var W=_.KT(v().rendererContext);W&&_.Cu(W,{form:{element:m.target,event:m}})}}}))},"$b");
erh=_.a(function(f){var H=f.leadingAccessory;return _.O(_.R8,null,_.O(_.g,{cond:function(){var v;return(v=H().image)!=null?v:_.CT(H().themedImage)},
then:function(v){return _.O(_.Hn,{data:v,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.O(_.g,{cond:function(){return _.U(H().avatar,_.pT)},
then:function(v){return _.O(_.K5,{data:v})}}))},"ac");
lgH=_.a(function(f){var H=f.data;return _.O(_.R8,null,_.O(_.g,{cond:function(){return _.U(H().bottomBadge,KH_)},
then:function(v){var t={};return _.O(_.to,{data:v,class:_.S2((t.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!v()&&!!H().sublabel},t))})}}),_.O(_.g,{cond:function(){return H().sublabel},
then:function(v){return _.O(_.iq,{text:v})}}))},"bc");
UoT=_.a(function(f){var H=f.data;return _.O(_.R8,null,_.O(_.g,{cond:function(){return _.U(H().topBadge,KH_)},
then:function(v){var t={};return _.O(_.to,{data:v,class:_.S2((t.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!v()&&!!H().superlabel},t))})}}),_.O(_.g,{cond:function(){return H().superlabel},
then:function(v){return _.O(_.iq,{text:v})}}))},"cc");_.yn(_.$b,"yt-section-header-view-model",{props:{data:_.ki,className:_.ki,disableHorizontalPadding:_.ki,disableVerticalPadding:_.ki,forceSmallLayout:_.ki,useResponsiveLayout:_.ki,isOverlay:_.ki}});_.DE("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var Wr=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return f};
_.e(Wr,_.K);_.R=Wr.prototype;_.R.attached=function(){this.requestElementsPerRow()};
_.R.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"}}}};
_.R.onDataChange=function(){var f=this;_.qV(this,function(){f.updateItemVisibility()})};
_.R.onUpdateElementsPerRowAction=function(f){f&&this.elementsPerRow!==f&&(this.elementsPerRow=f,this.updateItemVisibility())};
_.R.updateItemVisibility=function(){var f=this;this.data&&this.data.panels&&_.mF(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(H,v){H.hidden=v>f.elementsPerRow-1})};
_.R.requestElementsPerRow=function(){_.YE(this.hostElement,"yt-request-elements-per-row")};
Wr.prototype.onDataChange=Wr.prototype.onDataChange;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Wr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.PG),_.N("design:type",Object)],Wr.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Wr.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Wr.prototype,"actionHandlerBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],Wr.prototype,"data",void 0);_.E([_.F({value:3}),_.N("design:type",Number)],Wr.prototype,"elementsPerRow",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Wr.prototype,"onDataChange",null);_.E([_.u({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],Wr);
_.G(Wr,"ytd-primetime-promo-renderer",function(){if(sZC!==void 0)return sZC;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return sZC=f},{mode:1});var LKv;var Oc=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return f};
_.e(Oc,_.K);Oc.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
Oc.prototype.handleButtonRefreshAction=function(f){if(f=_.U(f,BQb))this.set("data.button",f.membershipButton),this.notifyPath("data.button")};
_.H7.Object.defineProperties(Oc.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var f,H;return((f=this.data)==null?void 0:(H=f.avatars)==null?void 0:H.slice(0,8))||[]}}});
_.E([_.F(),_.N("design:type",Object)],Oc.prototype,"data",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Oc.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Oc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Oc.prototype,"rendererBehavior",void 0);_.E([_.z("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],Oc.prototype,"avatars",null);
_.E([_.u({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],Oc);
_.G(Oc,"ytd-recognition-shelf-renderer",function(){if(LKv!==void 0)return LKv;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return LKv=f},{mode:1});var xo_;var BDM;var g5=function(){var f=_.K.apply(this,arguments)||this;f.modernButtons=_.J("web_modern_buttons");return f};
_.e(g5,_.K);_.R=g5.prototype;
_.R.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]]"}}}}}};
_.R.dataChanged=function(){this.collapsed=!0};
_.R.computeVisibleItems=function(f,H){return f!==void 0&&f.items?H?f.items.slice(0,this.data.collapsedItemCount):f.items:[]};
_.R.computeHideShowMore=function(f,H,v){return f>=H||!v};
_.R.computeHideShowAll=function(f,H,v){return!(f&&H)||v};
_.R.onMoreClick=function(){this.collapsed=!1};
_.H7.Object.defineProperties(g5.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.J("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.yQ("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.J("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
g5.prototype.dataChanged=g5.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],g5.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],g5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],g5.prototype,"data",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],g5.prototype,"isSearch",void 0);
_.E([_.F({computed:"computeVisibleItems(data,collapsed)"}),_.N("design:type",Array)],g5.prototype,"visibleItems",void 0);_.E([_.F({value:!0}),_.N("design:type",Boolean)],g5.prototype,"collapsed",void 0);_.E([_.F({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.N("design:type",Boolean)],g5.prototype,"hideShowMore",void 0);
_.E([_.F({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.N("design:type",Boolean)],g5.prototype,"hideShowAll",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],g5.prototype,"modernButtons",void 0);_.E([_.z("isSearch"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],g5.prototype,"typographyBump",null);
_.E([_.z("isSearch"),_.N("design:type",Object),_.N("design:paramtypes",[])],g5.prototype,"lockupExperiments",null);_.E([_.z("isSearch"),_.N("design:type",String),_.N("design:paramtypes",[])],g5.prototype,"thumbnailWidth",null);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],g5.prototype,"dataChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],g5);
_.G(g5,"ytd-vertical-list-renderer",function(){if(BDM!==void 0)return BDM;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return BDM=f},{mode:1});var zra=_.EH(["#"]);_.DE("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var Ia=function(){var f=_.K.apply(this,arguments)||this;f.isConstrainedList=!1;f.modernTypography=_.J("web_modern_typography");return f};
_.e(Ia,_.K);_.R=Ia.prototype;
_.R.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"}}}};
_.R.computeThumbnailStyle=function(f){return f||""};
_.R.computePlaceAnnotationUnderTitle=function(){var f;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((f=this.data)==null?void 0:f.thumbnailStyle)||"")};
_.R.computeHrefWithDefault=function(f){return this.ytComponentBehavior.computeHref_(f)||_.boe(zra)};
_.R.computeIsPromoShelf=function(f){var H;return(f=f==null?void 0:(H=f[0])==null?void 0:H.metadataBadgeRenderer)?f.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.R.computePlaceBadgeBesideTitle=function(f){var H;return(f==null?0:(H=f[0])==null?0:H.metadataBadgeRenderer)?!this.computeIsPromoShelf(f):!1};
_.R.computeMenuIcon=function(f){return this.computeIsPromoShelf(f)?"yt-icons:more_vert":"yt-icons:more"};
_.R.onDataChange=function(){var f,H;((f=this.data)==null?0:(H=f.content)==null?0:H.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.R.onLockupRequested=function(f){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&f.detail&&f.detail.videoIds){for(var H=this.data.content.gridRenderer.items,v=new Set,t=_.V(f.detail.videoIds),M=t.next();!M.done;M=t.next())v.add(M.value);f.detail.returnValue=H.filter(function(h){return h.gridVideoRenderer&&h.gridVideoRenderer.videoId&&v.has(h.gridVideoRenderer.videoId)}).map(function(h){return h.gridVideoRenderer})}};
_.R.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
Ia.prototype.onLockupRequested=Ia.prototype.onLockupRequested;Ia.prototype.onDataChange=Ia.prototype.onDataChange;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Ia.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.PG),_.N("design:type",Object)],Ia.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Ia.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Ia.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.x3),_.N("design:type",Object)],Ia.prototype,"ironResizableBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Ia.prototype,"data",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],Ia.prototype,"isSearch",void 0);_.E([_.F(),_.N("design:type",Object)],Ia.prototype,"isConstrainedList",void 0);_.E([_.F({reflectToAttribute:!0,value:function(){return _.J("kevlar_fluid_dismiss")}}),
_.N("design:type",Boolean)],Ia.prototype,"enableFluidDismiss",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.N("design:type",String)],Ia.prototype,"thumbnailStyle",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Ia.prototype,"modernTypography",void 0);_.E([_.F({computed:"computeMenuIcon(data.badges)"}),_.N("design:type",String)],Ia.prototype,"menuIcon",void 0);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ia.prototype,"onDataChange",null);_.E([_.sE("yt-lockup-requested"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ia.prototype,"onLockupRequested",null);_.E([_.u({is:"ytd-shelf-renderer",disableElementRegistration:!0})],Ia);
_.G(Ia,"ytd-shelf-renderer",function(){if(xo_!==void 0)return xo_;var f=document.createElement("template");_.x(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return xo_=f},{mode:1});var FKn;var Se=function(){return _.K.apply(this,arguments)||this};
_.e(Se,_.K);Se.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.H7.Object.defineProperties(Se.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Se.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Se.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Se.prototype,"data",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Se.prototype,"isPlaylist",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Se.prototype,"isClipList",void 0);
_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Se.prototype,"isPlaylistPageWithFilters",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Se.prototype,"hasTitle",null);_.E([_.F(),_.z("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.N("design:type",Object),_.N("design:paramtypes",[])],Se.prototype,"isRightAligned",null);
_.E([_.u({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],Se);
_.G(Se,"ytd-sort-filter-header-renderer",function(){if(FKn!==void 0)return FKn;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return FKn=f},{mode:1});var ryn;var d5=function(){var f=_.K.apply(this,arguments)||this;f.enableRightArrowHidden=_.J("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return f};
_.e(d5,_.K);d5.prototype.attached=function(){var f=this;this.enableRightArrowHidden&&(this.JSC$16360_throttledOnResize=new _.Nl(function(){var H;(H=f.ytdHorizontalListBehavior)==null||H.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var H;
(H=f.JSC$16360_throttledOnResize)==null||H.fire()}),this.resizeObserver.observe(this.hostElement))};
d5.prototype.detached=function(){if(this.enableRightArrowHidden){var f;(f=this.resizeObserver)==null||f.disconnect();var H;(H=this.JSC$16360_throttledOnResize)==null||H.dispose()}};
d5.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]]"}}}}}};
d5.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.H7.Object.defineProperties(d5.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.J("enable_creator_details_shelf_m2")){var f=[],H;((H=this.data)==null?0:H.creatorVideosButton)&&f.push(this.data.creatorVideosButton);var v;((v=this.data)==null?0:v.creatorAboutButton)&&f.push(this.data.creatorAboutButton);H=_.V(this.data.creatorCustomUrlButtons||[]);for(v=H.next();!v.done;v=H.next())f.push(v.value);return f}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.J("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],d5.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],d5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.Rt.YtdHorizontalListBehavior),_.N("design:type",Object)],d5.prototype,"ytdHorizontalListBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],d5.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],d5.prototype,"engagementPanel",void 0);
_.E([_.F(),_.N("design:type",Object)],d5.prototype,"enableRightArrowHidden",void 0);_.E([_.z("enableRightArrowHidden","atEnd"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],d5.prototype,"hideRightArrow",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],d5.prototype,"creatorCustomUrlButtons",null);
_.E([_.F({reflectToAttribute:!0}),_.z("data","creatorCustomUrlButtons"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],d5.prototype,"showCreatorCustomUrlButtons",null);_.E([_.z("showCreatorCustomUrlButtons"),_.N("design:type",Number),_.N("design:paramtypes",[])],d5.prototype,"channelAvatarSize",null);_.E([_.u({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],d5);
_.G(d5,"ytd-video-description-infocards-section-renderer",function(){if(ryn!==void 0)return ryn;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return ryn=f},{mode:_.WK("kevlar_poly_si_batch_j067")?1:2});var KKr;var je=function(){return _.K.apply(this,arguments)||this};
_.e(je,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],je.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],je.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],je.prototype,"data",void 0);_.E([_.F({computed:"computeIcon_(data.infoIcon)"}),_.N("design:type",Object)],je.prototype,"infoIcon",void 0);_.E([_.u({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],je);
_.G(je,"ytd-eom-settings-disclaimer-renderer",function(){if(KKr!==void 0)return KKr;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return KKr=f},{mode:1});var Dog;var sc=function(){return _.K.apply(this,arguments)||this};
_.e(sc,_.K);_.H7.Object.defineProperties(sc.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.suppressPaddingDisclaimer)}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],sc.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],sc.prototype,"componentBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],sc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],sc.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],sc.prototype,"suppressPaddingDisclaimer",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],sc);
_.G(sc,"ytd-product-list-header-renderer",function(){if(Dog!==void 0)return Dog;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Dog=f},{mode:1});var orh;var ZH=function(){return _.K.apply(this,arguments)||this};
_.e(ZH,_.K);ZH.prototype.computeThumbnailStyle=function(f){if(f&&(f=_.NS(f)))return"background-color:"+f+";"};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ZH.prototype,"rendererBehaviors",void 0);_.E([_.F(),_.N("design:type",Object)],ZH.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],ZH);
_.G(ZH,"ytd-hashtag-tile-renderer",function(){if(orh!==void 0)return orh;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return orh=f},{mode:1});var nrn;var JP=function(){return _.K.apply(this,arguments)||this};
_.e(JP,_.K);JP.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}}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],JP.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],JP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],JP.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],JP);
_.G(JP,"ytd-sponsorships-alert-renderer",function(){if(nrn!==void 0)return nrn;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return nrn=f},{mode:1});var pNr;var l4=function(){return _.K.apply(this,arguments)||this};
_.e(l4,_.K);l4.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.H7.Object.defineProperties(l4.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.J("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.J("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.E([_.B(_.PG),_.N("design:type",Object)],l4.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.B(_.A_),_.N("design:type",Object)],l4.prototype,"ytdLockupBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],l4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],l4.prototype,"ytRendererBehavior",void 0);_.E([_.F({selector:_.Qn}),_.N("design:type",Object)],l4.prototype,"isGridViewEnabled",void 0);
_.E([_.z("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],l4.prototype,"watchFeedBigThumbs",null);_.E([_.z("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.N("design:type",String),_.N("design:paramtypes",[])],l4.prototype,"thumbnailWidth",null);_.E([_.F(),_.N("design:type",Object)],l4.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],l4);
_.G(l4,"ytd-compact-movie-renderer",function(){if(pNr!==void 0)return pNr;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return pNr=f},{mode:1});var QZa;var uZH;var agg=_.a8("HTML_DIR")==="rtl",Uc=function(){var f=_.K.apply(this,arguments)||this;f.engagementPanel=!1;f.maxLines=2;f.expandButtonOffset=0;f.showExpandButton=!1;f.isTruncated=!1;f.isExpanded=!1;f.currentSnippetType=2;f.alwaysShowExpandButton=!1;f.JSC$16377_lastWidth=NaN;f.observer=null;f.left=0;f.right=0;f.mid=0;f.longestSnippetLength=0;f.isFinalSnippet=!1;f.isFirstMutation=!1;f.isResetMutation=!1;f.OVERFLOW_THRESHOLD=5;return f};
_.e(Uc,_.K);_.R=Uc.prototype;_.R.onClick=function(f){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.w6(_.f2(f)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var H;if((H=window.getSelection())==null||!H.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.R.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.R.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.R.updateTextOnSnippetTypeChange=function(){_.J("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.R.setUpBinarySearch=function(f){f=f*this.maxLines/8;this.left=0;var H,v;this.right=Math.min(f*2,(v=(H=this.simpleText)==null?void 0:H.length)!=null?v:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.R.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.R.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.pb(new _.e$("AttributedSnippet is empty when the description is not empty",this.text))};
_.R.mutationCallback=function(){if(this.observer!=null){var f=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var H=Math.floor(f*this.maxLines/8);this.setSnippetText(this.text,H);H!==0||this.attributedTextIsEmpty()||_.pb(new _.e$("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;f=f*this.maxLines/8;this.left=0;var v;this.right=Math.min(f*2,(v=(H=this.simpleText)==null?void 0:H.length)!=null?v:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=
0;this.setSnippetText(this.text,this.mid);this.isFirstMutation=!1}else this.isTruncated=!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset()),this.isFinalSnippet=!0,this.isFirstMutation=!1,this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else{this.isOverflowing()?this.right=this.mid-1:(this.left=this.mid+1,this.longestSnippetLength=this.mid);if(this.left>this.right){if(this.mid===this.longestSnippetLength){this.expandButtonOffset=this.computeExpandButtonOffset();
this.observer.disconnect();this.maybeLogWarningForEmptyAttributedSnippet();return}this.setSnippetText(this.text,this.longestSnippetLength);this.isFinalSnippet=!0}this.mid=Math.floor(this.left+(this.right-this.left)/2);this.setSnippetText(this.text,this.mid)}}};
_.R.mutationObserve=function(f){var H=this;this.observer||(this.observer=new MutationObserver(function(){H.mutationCallback()}));
this.observer.observe(f,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.R.attached=function(){var f=this;_.qV(this,function(){f.resize()})};
_.R.isExpandedChanged=function(){_.YE(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.R.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)};
_.R.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var f="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((agg?"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",f);this.snippetContainer.style.setProperty("mask-image",
f)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(agg?"right":"left",this.expandButtonOffset+"px")};
_.R.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.R.setSnippetText=function(f,H){f||(f={});if(_.w9(f)){var v=k6(f,H);v.attachmentRuns||v.commandRuns||v.decorationRuns||v.styleRuns||v.alignment||v.lineBreakMode?this.attributedSnippetTextEl?(_.J("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=k6(f,H),this.attributedSnippetTextEl.headerRuns=qOr(H,this.headerRuns)):this.attributedSnippetText={data:k6(f,H),headerRuns:qOr(H,this.headerRuns)},this.currentSnippetType=0):_.pb(new _.e$("Tried to set snippet text when HTML element was null",
f)):(this.plainSnippetText.textContent=bV(f.content||"",H),this.currentSnippetType=2)}else{a:{v=ZC5(f,H);if(v.runs){v=_.V(v.runs);for(var t=v.next();!t.done;t=v.next())if(t=t.value,t.bold||t.deemphasize||t.italics||t.strikethrough||t.textColor||t.navigationEndpoint||_.U(t,uV)){v=!0;break a}}v=!1}v?this.formattedSnippetText?(this.formattedSnippetText.text=ZC5(f,H),this.currentSnippetType=1):_.pb(new _.e$("Tried to set snippet text when HTML element was null",f)):(this.plainSnippetText.textContent=
bV(_.fG(f),H),this.currentSnippetType=2)}};
_.R.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.R.attributedTextIsEmpty=function(){var f=this.text;if(!_.w9(f))return!0;var H;return((H=f.content)==null?void 0:H.length)===0?!0:!1};
_.R.resize=function(f){if(this.snippetText){if(f===void 0?0:f)this.JSC$16377_lastWidth=NaN;var H=this.hostElement.offsetWidth;if(H!==this.JSC$16377_lastWidth&&!this.isExpanded)if(this.JSC$16377_lastWidth=H,this.hasAttributedStringText)this.attributedSnippetIsEmpty()?(this.showExpandButton=this.alwaysShowExpandButton,this.isFinalSnippet=!1,this.isFirstMutation=!0,this.mutationObserve(this.snippetText),this.setSnippetText(this.text,Infinity)):(this.isResetMutation=!0,this.mutationObserve(this.snippetText),
this.setSnippetText(this.text,0));else if(this.setSnippetText(this.text,Infinity),this.showExpandButton=this.alwaysShowExpandButton,this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;f=0;var v,t;H=Math.min(H*this.maxLines/8*2,(t=(v=this.simpleText)==null?void 0:v.length)!=null?t:0)-1;for(v=0;f<=H;)t=Math.floor(f+(H-f)/2),this.setSnippetText(this.text,t),this.isOverflowing()?H=t-1:(f=t+1,v=t);this.setSnippetText(this.text,v);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.R.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.R.onExpandClick=function(){var f=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.J("inline_expander_reset_focus_killswitch")||_.qV(this,function(){var H;((H=_.t8().resolve(_.vh(_.RM)))==null?0:H.isKeyBoardInUse())&&_.kX(f.hostElement)});
_.YE(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.R.onCollapseClick=function(){this.collapse();_.YE(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.R.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.R.computeExpandButtonOffset=function(){var f=this.expandSizer;return f?agg?f.offsetParent?f.offsetParent.offsetWidth-f.offsetWidth-f.offsetLeft:0:f.offsetLeft:0};
_.H7.Object.defineProperties(Uc.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.w9(this.text)?this.text.content||"":_.fG(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 _.w9(this.text)?!0:this.text&&_.J("web_replace_formatted_with_attributed_string")&&e_5(this.text)?(this.text=_.Qz(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}}});
Uc.prototype.onTextChanged=Uc.prototype.onTextChanged;Uc.prototype.updateMaskAndExpandButtonOffset=Uc.prototype.updateMaskAndExpandButtonOffset;Uc.prototype.updateSnippetContainerMaxHeight=Uc.prototype.updateSnippetContainerMaxHeight;Uc.prototype.isExpandedChanged=Uc.prototype.isExpandedChanged;Uc.prototype.updateTextOnSnippetTypeChange=Uc.prototype.updateTextOnSnippetTypeChange;Uc.prototype.updateIsFormattedExpanded=Uc.prototype.updateIsFormattedExpanded;Uc.prototype.updateIsAttributedExpanded=Uc.prototype.updateIsAttributedExpanded;
Uc.prototype.onClick=Uc.prototype.onClick;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Uc.prototype,"componentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Uc.prototype,"text",void 0);_.E([_.F(),_.N("design:type",Array)],Uc.prototype,"headerRuns",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Uc.prototype,"engagementPanel",void 0);_.E([_.F(),_.N("design:type",Object)],Uc.prototype,"maxLines",void 0);
_.E([_.F(),_.N("design:type",String)],Uc.prototype,"expandLabel",void 0);_.E([_.F(),_.N("design:type",String)],Uc.prototype,"collapseLabel",void 0);_.E([_.F(),_.N("design:type",Object)],Uc.prototype,"expandCommand",void 0);_.E([_.F(),_.N("design:type",Object)],Uc.prototype,"expandButtonOffset",void 0);_.E([_.z("text"),_.N("design:type",String),_.N("design:paramtypes",[])],Uc.prototype,"simpleText",null);
_.E([_.sE("click"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Uc.prototype,"onClick",null);_.E([_.z("text","isExpanded"),_.N("design:type",Object),_.N("design:paramtypes",[])],Uc.prototype,"expandedText",null);_.E([_.z("headerRuns","isExpanded"),_.N("design:type",Object),_.N("design:paramtypes",[])],Uc.prototype,"expandedHeaderRuns",null);
_.E([_.z("text"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Uc.prototype,"hasAttributedStringText",null);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Uc.prototype,"showExpandButton",void 0);_.E([_.z("collapseLabel","isExpanded"),_.N("design:type",Object),_.N("design:paramtypes",[])],Uc.prototype,"showCollapseButton",null);_.E([_.F(),_.N("design:type",Object)],Uc.prototype,"isTruncated",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Uc.prototype,"isExpanded",void 0);_.E([_.F(),_.N("design:type",Boolean)],Uc.prototype,"isAttributedExpanded",void 0);_.E([_.Zw("isExpanded","hasAttributedStringText"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Uc.prototype,"updateIsAttributedExpanded",null);_.E([_.F(),_.N("design:type",Boolean)],Uc.prototype,"isFormattedExpanded",void 0);
_.E([_.Zw("isExpanded","hasAttributedStringText"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Uc.prototype,"updateIsFormattedExpanded",null);_.E([_.F(),_.N("design:type",Number)],Uc.prototype,"currentSnippetType",void 0);_.E([_.z("currentSnippetType"),_.N("design:type",Object),_.N("design:paramtypes",[])],Uc.prototype,"useAttributedSnippet",null);
_.E([_.z("currentSnippetType"),_.N("design:type",Object),_.N("design:paramtypes",[])],Uc.prototype,"useFormattedSnippet",null);_.E([_.z("currentSnippetType"),_.N("design:type",Object),_.N("design:paramtypes",[])],Uc.prototype,"usePlainSnippet",null);_.E([_.F(),_.N("design:type",Object)],Uc.prototype,"alwaysShowExpandButton",void 0);_.E([_.Zw("currentSnippetType"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Uc.prototype,"updateTextOnSnippetTypeChange",null);
_.E([_.F(),_.N("design:type",Object)],Uc.prototype,"attributedSnippetText",void 0);_.E([_.lJ("#snippet"),_.N("design:type",HTMLElement)],Uc.prototype,"snippetContainer",void 0);_.E([_.lJ("#snippet-text"),_.N("design:type",HTMLElement)],Uc.prototype,"snippetText",void 0);_.E([_.lJ("#plain-snippet-text"),_.N("design:type",HTMLElement)],Uc.prototype,"plainSnippetText",void 0);_.E([_.lJ("#formatted-snippet-text"),_.N("design:type",Object)],Uc.prototype,"formattedSnippetText",void 0);
_.E([_.lJ("#attributed-snippet-text"),_.N("design:type",Object)],Uc.prototype,"attributedSnippetTextEl",void 0);_.E([_.lJ("#expand"),_.N("design:type",HTMLElement)],Uc.prototype,"expandButton",void 0);_.E([_.lJ("#expand-sizer"),_.N("design:type",HTMLElement)],Uc.prototype,"expandSizer",void 0);_.E([_.xV("isExpanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Uc.prototype,"isExpandedChanged",null);
_.E([_.Zw("isExpanded","maxLines"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Uc.prototype,"updateSnippetContainerMaxHeight",null);_.E([_.Zw("isTruncated","showExpandButton","expandButtonOffset"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Uc.prototype,"updateMaskAndExpandButtonOffset",null);
_.E([_.xV("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Uc.prototype,"onTextChanged",null);_.E([_.u({is:"ytd-text-inline-expander",disableElementRegistration:!0})],Uc);
_.G(Uc,"ytd-text-inline-expander",function(){if(uZH===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);uZH=f}f=uZH;return f},{mode:2});var ee=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return f};
_.e(ee,_.K);ee.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
ee.prototype.handleUpdateDescriptionAction=function(f){if(f=_.U(f,_.t3n))if(f.attributedDescription)this.set("data.attributedDescriptionBodyText",f.attributedDescription);else if(f.description){var H;((H=this.data)==null?0:H.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.Qz(f.description)):this.set("data.descriptionBodyText",f.description)}};
_.H7.Object.defineProperties(ee.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var f,H;return!((f=this.data)==null||!f.attributedDescriptionBodyText)||!((H=this.data)==null||!H.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null?0:f.collapsedLineCount){var H;return(H=this.data)==null?void 0:H.collapsedLineCount}f=_.VQ("web_watch_description_collapsed_default_lines",12);if(_.J("ww_desc_line_page_size_ks"))return f;H=Math.round(_.BS().height*_.VQ("web_watch_description_screen_height_percentage",.5)/20);return Math.max(H,f)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var f,H,v;return(v=(f=this.data)==null?void 0:f.descriptionBodyText)!=null?v:(H=this.data)==null?void 0:H.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.sourceAttributions}}});
ee.prototype.panelContentVisibleChanged=ee.prototype.panelContentVisibleChanged;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],ee.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ee.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],ee.prototype,"componentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],ee.prototype,"data",void 0);
_.E([_.F(),_.N("design:type",Boolean)],ee.prototype,"panelContentVisible",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],ee.prototype,"engagementPanel",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],ee.prototype,"shortsPanel",void 0);_.E([_.lJ("#inline-expander"),_.N("design:type",Object)],ee.prototype,"inlineExpander",void 0);
_.E([_.Zw("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ee.prototype,"panelContentVisibleChanged",null);_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ee.prototype,"hasDescriptionText",null);_.E([_.z("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],ee.prototype,"collapsedLines",null);
_.E([_.z("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.N("design:type",Object),_.N("design:paramtypes",[])],ee.prototype,"descriptionText",null);_.E([_.z("data","data.headerRuns"),_.N("design:type",Object),_.N("design:paramtypes",[])],ee.prototype,"headerRuns",null);_.E([_.z("data","data.sourceAttributions"),_.N("design:type",Object),_.N("design:paramtypes",[])],ee.prototype,"sourceAttributions",null);
_.E([_.u({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],ee);
_.G(ee,"ytd-expandable-video-description-body-renderer",function(){if(QZa!==void 0)return QZa;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return QZa=f},{mode:_.WK("kevlar_poly_si_batch_j028")?1:2});var P9v;var Grh=_.a(function(f){var H=f.data;return _.O("factoid-renderer",{class:"ytwFactoidRendererHost"},_.O("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return H().accessibilityText}},_.O("span",{class:"ytwFactoidRendererValue"},_.O(_.iq,{text:function(){return H().value}})),_.O("span",{class:"ytwFactoidRendererLabel"},_.O(_.iq,{text:function(){return H().label}}))))},"dc");_.yn(Grh,"factoid-renderer",{props:{data:_.ki}});_.yn(_.a(function(f){var H=f.data;return _.O("upload-time-factoid-renderer",null,_.O(_.Jj,{data:function(){return H().factoid}},{factoidRenderer:Grh}))},"ec"),"upload-time-factoid-renderer",{props:{data:_.Rm}});_.yn(_.a(function(f){var H=f.data;return _.O("view-count-factoid-renderer",null,_.O(_.Jj,{data:function(){return H().factoid}},{factoidRenderer:Grh}))},"fc"),"view-count-factoid-renderer",{props:{data:_.Rm}});var LB=function(){var f=_.K.apply(this,arguments)||this;f.shortsPanel=!1;f.engagementPanel=!1;f.watchWhileSdp=_.J("shorts_desktop_watch_while_sdp");return f};
_.e(LB,_.K);LB.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"}}}}};
_.H7.Object.defineProperties(LB.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var f;return(f=this.data)==null?void 0:f.channel}}});
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],LB.prototype,"componentBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],LB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],LB.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],LB.prototype,"shortsPanel",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],LB.prototype,"engagementPanel",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],LB.prototype,"watchWhileSdp",void 0);_.E([_.z("shortsPanel","engagementPanel","data.channel"),_.N("design:type",Object),_.N("design:paramtypes",[])],LB.prototype,"showChannelInfo",null);_.E([_.u({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],LB);
_.G(LB,"ytd-video-description-header-renderer",function(){if(P9v!==void 0)return P9v;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return P9v=f},{mode:1});var C9C;var xb=function(){return _.K.apply(this,arguments)||this};
_.e(xb,_.K);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],xb.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],xb.prototype,"ytRendererBehavior",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],xb.prototype,"noPadding",void 0);_.E([_.F(),_.N("design:type",Object)],xb.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],xb);
_.G(xb,"ytd-list-item-view-model",function(){if(C9C!==void 0)return C9C;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return C9C=f},{mode:1});var Er9;var ND_;var cyo;var XN9;var Br=function(){var f=_.K.apply(this,arguments)||this;f.adaptiveFullWidth=!1;f.modernButtons=_.J("web_modern_buttons");f.buttonOverrides={style:"call-to-action",type:"filled"};f.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return f};
_.e(Br,_.K);Br.prototype.handleSetTimestamp_=function(f){this.data&&this.data.shortUrl&&(_.mF(this.hostElement).querySelector("#share-url").value=f.isSet?_.us(this.data.shortUrl,"t",f.timestamp):this.data.shortUrl)};
Br.prototype.handleSignalActionCopyShareUrl_=function(f,H){(_.J("killswitch_copy_link_target_check")||_.mF(this.hostElement).querySelector("#copy-button")===H)&&this.copyUrlToClipboard()};
Br.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.mF(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
Br.prototype.computeStyle_=function(f){return f?f.toLowerCase().replace(/_/g,"-"):""};
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Br.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Br.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Br.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.N("design:type",String)],Br.prototype,"rendererStyle",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Br.prototype,"adaptiveFullWidth",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Br.prototype,"modernButtons",void 0);_.E([_.F(),_.N("design:type",Object)],Br.prototype,"buttonOverrides",void 0);_.E([_.GW({is:"yt-copy-link-renderer",disableElementRegistration:!0})],Br);
_.G(Br,"yt-copy-link-renderer",function(){if(XN9===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;cyo===void 0&&(cyo=document.createElement("template"));var t=cyo;v.call(H,t.content.cloneNode(!0),f.content.firstChild);XN9=f}f=XN9;return f},{mode:2});_.DE("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var zm=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return f};
_.e(zm,_.K);_.R=zm.prototype;_.R.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.R.attached=function(){this.keyboardFocused=!1};
_.R.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var f=_.t8().resolve(_.vh(_.RM));f&&(this.keyboardFocused=f.isKeyBoardInUse())}};
_.R.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.R.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}};
_.R.onChange_=function(){if(this.data){var f=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;f&&this.ytComponentBehavior.resolveCommand(f);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.R.handleUpdateToggleAction_=function(f){(f=_.U(f,qB9))&&this.data&&f.targetId==this.data.targetId&&this.set("data.toggled",f.toggled)};
_.R.toBoolean_=function(f){return!!f};
_.R.reset=function(){};
_.R.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.bM("data-changed",this.data))};
_.R.updateDataToggledFromBinding=function(f){this.set("data.toggled",f.detail.value)};
zm.prototype.dataChangedForBinding=zm.prototype.dataChangedForBinding;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],zm.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],zm.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],zm.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],zm.prototype,"ytRendererBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],zm.prototype,"data",void 0);_.E([_.F({computed:"computeDescription_(data.*)"}),_.N("design:type",Object)],zm.prototype,"description_",void 0);_.E([_.F({value:function(){return!!_.t8().resolve(_.vh(_.RM))&&_.J("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.N("design:type",Boolean)],zm.prototype,"useKeyboardFocused",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],zm.prototype,"keyboardFocused",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zm.prototype,"dataChangedForBinding",null);_.E([_.GW({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],zm);
_.G(zm,"yt-toggle-form-field-renderer",function(){if(ND_===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;Er9===void 0&&(Er9=document.createElement("template"));var t=Er9;v.call(H,t.content.cloneNode(!0),f.content.firstChild);ND_=f}f=ND_;return f},{mode:2});var Ayo;var byo;var Fx=function(){var f=_.K.apply(this,arguments)||this;f.isDarkTheme=!1;f.isSearch=!1;f.darkerDarkTheme=_.J("web_darker_dark_theme");f.noTopMargin=_.J("kevlar_watch_no_top_margin");f.maskFade=_.J("web_watch_chips_mask_fade");f.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 f};
_.e(Fx,_.K);_.R=Fx.prototype;_.R.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}}}}}};
_.R.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.R.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.R.dataChanged=function(){var f=this.getSelectedIndex();if(f>0)this.selected=f;else{this.selected=0;var H,v;(H=this.ytScrollableChipCloudBehavior)==null||(v=H.reset)==null||v.call(H)}};
_.R.getSelectedIndex=function(){var f;if((f=this.data)==null||!f.chips)return-1;f=-1;for(var H,v=0;v<((H=this.data)==null?void 0:H.chips.length);v++){var t=void 0,M=void 0;if((t=this.data)==null?0:(M=t.chips[v].chipCloudChipRenderer)==null?0:M.isSelected){f=v;break}}return f};
_.R.onResize=function(){var f=this.ytScrollableChipCloudBehavior;_.qV(f,f.setContainerWidthDiff);WT(this.ytScrollableChipCloudBehavior)};
_.R.onDarkModeToggledAction=function(f){this.isDarkTheme=f};
_.R.handleRelatedChipCommand=function(f,H){f=this.JSC$16404_chipsSelector.indexOf(H);f!==-1&&this.JSC$16404_chipsSelector.selectIndex(f)};
_.R.handleChipCloudChipSelectAction=function(f){f=this.JSC$16404_chipsSelector.indexOf(f);f>-1&&this.JSC$16404_chipsSelector.selectIndex(f)};
_.R.handleChipCloudChipDeselectAction=function(){var f=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16404_chipsSelector&&((f==null?0:f.continuationCommand)?_.WV(this.hostElement,[f]):(f==null?0:f.searchEndpoint)?this.ytComponentBehavior.resolveCommand(f):f&&_.Oj(this.hostElement,[f],this.hostElement),this.JSC$16404_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.R.updateSelectedFromBinding=function(f){this.selected=f.detail.value};
Fx.prototype.onResize=Fx.prototype.onResize;Fx.prototype.dataChanged=Fx.prototype.dataChanged;Fx.prototype.isSearchChanged=Fx.prototype.isSearchChanged;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Fx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Fx.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Fx.prototype,"actionHandlerBehavior",void 0);
_.E([_.B(_.x3),_.N("design:type",Object)],Fx.prototype,"ironResizableBehavior",void 0);_.E([_.B(),_.N("design:type",$c)],Fx.prototype,"ytScrollableChipCloudBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Fx.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Fx.prototype,"data",void 0);_.E([_.F({value:0}),_.N("design:type",Number)],Fx.prototype,"selected",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Fx.prototype,"isDarkTheme",void 0);_.E([_.F({value:160}),_.N("design:type",Number)],Fx.prototype,"scrollDistance",void 0);_.E([_.F(),_.N("design:type",Object)],Fx.prototype,"isSearch",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Fx.prototype,"darkerDarkTheme",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Fx.prototype,"noTopMargin",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Fx.prototype,"maskFade",void 0);_.E([_.lJ("#chips"),_.N("design:type",Object)],Fx.prototype,"JSC$16404_chipsSelector",void 0);_.E([_.Zw("isSearch"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fx.prototype,"isSearchChanged",null);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fx.prototype,"dataChanged",null);
_.E([_.sE("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fx.prototype,"onResize",null);_.E([_.GW({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],Fx);
_.G(Fx,"yt-chip-cloud-renderer",function(){if(byo===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;Ayo===void 0&&(Ayo=document.createElement("template"));var t=Ayo;v.call(H,t.content.cloneNode(!0),f.content.firstChild);byo=f}f=byo;return f},{mode:2});var iyT,kro=function(){return iyT!==void 0?iyT:iyT=document.createElement("template")};
document.head.appendChild(kro().content);var TDh;var wNg=document.head,qf_=wNg.appendChild,fSh;if(TDh===void 0){var HU9=document.createElement("template");_.x(HU9,"");HU9.content.insertBefore(kro().content.cloneNode(!0),HU9.content.firstChild);TDh=HU9}fSh=TDh;qf_.call(wNg,fSh.content);var vnZ=_.a(function(f){var H=f.data;return _.O("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.O("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.O("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.O(_.g,{cond:function(){return _.CT(H().image)},
then:function(v){return _.O("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.O(_.Hn,{data:v,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.O("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.O(_.iq,{text:function(){return H().title}})),_.O("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.O(_.iq,{text:function(){return H().subtitle}})))),_.O(_.g,{cond:function(){var v;
return(v=H())==null?void 0:v.hasBottomDivider},
then:function(){return _.O("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"gc");var t_a=_.a(function(f){var H=f.data;return _.O("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.O("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.O(_.Jj,{data:function(){var v;return(v=H().offerPlanDetailsItem)!=null?v:[]}},{offerPlanDetailsItemViewModel:function(v){return _.O("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.O(vnZ,{data:v.data}))}})),_.O("div",null,_.O(_.g,{cond:function(){return H().hasBottomDivider},
then:function(){return _.O("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.O("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.O("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.O("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.O("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"hc");var M_b=_.a(function(f){var H=f.data;f=_.V(_.gp(!1,void 0,"SpEGQd"));var v=f.next().value,t=f.next().value,M=_.d6(function(){t(!v());return!1}),h=function(){var y;
return(y=H().offerPlanDetailsContainer)!=null?y:[]};
return _.O("lp-complex-offer-card-details-view-model",null,_.O("div",null,_.O(_.g,{cond:function(){return v()},
then:function(){return _.O("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.O("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":M,"aria-expanded":v},_.O(_.iq,{text:function(){return H().expandedTitle}})),_.O("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.O(_.Jj,{data:h},{offerPlanDetailsContainerViewModel:function(y){return _.O("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.O(t_a,{data:y.data}))}})),_.O("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.O(_.iq,{text:function(){return H().legalText}})))},
else:function(){return _.O("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":M,"aria-expanded":v},_.O(_.iq,{text:function(){return H().collapsedTitle}}),_.O("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.O(_.JE,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"ic");var hDh=_.a(function(f){var H=f.data;return _.O("lp-complex-offer-card-option-view-model",null,_.O("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.O(_.g,{cond:function(){return H().topDividerText},
then:function(){return _.O("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.O("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.O("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.O("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.O(_.iq,{text:function(){return H().topDividerText}}))))}}),_.O(_.g,{cond:function(){return H().description},
then:function(){return _.O("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.O(_.iq,{text:function(){return H().description}}))}}),_.O(_.g,{cond:function(){return H().planPricingPrimary},
then:function(){return _.O("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.O(_.iq,{text:function(){return H().planPricingPrimary}}))}}),_.O(_.g,{cond:function(){return H().planPricingSecondary},
then:function(){return _.O("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.O(_.iq,{text:function(){return H().planPricingSecondary}}))}}),_.O(_.g,{cond:function(){return H().primaryButton},
then:function(){return _.O("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.O(_.Jj,{data:function(){return H().primaryButton}},{buttonViewModel:function(v){return _.O(_.Wp,{data:v.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"jc");var RDM=_.a(function(f){var H=f.data;var v=function(){var h;return((h=H())==null?void 0:h.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
f={};var t={},M={};return _.O("ytm-lp-complex-offer-card-view-model",null,_.O("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.O("div",{class:_.S2((f.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=v,f),"ytmLpComplexOfferCardViewModelCardContainer")},_.O(_.g,{cond:function(){var h;return(h=H())==null?void 0:h.bannerText},
then:function(){return _.O("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.O("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.O(_.iq,{text:function(){return H().bannerText}})))}}),_.O(_.g,{cond:function(){return _.CT(H().logo)},
then:function(h){var y={};return _.O("div",{class:_.S2((y.ytmLpComplexOfferCardViewModelLogoAlignLeft=v,y),"ytmLpComplexOfferCardViewModelLogo")},_.O(_.Hn,{data:h,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.O("div",{class:_.S2((t.ytmLpComplexOfferCardViewModelTitleAlignLeft=v,t),"ytmLpComplexOfferCardViewModelTitle")},_.O(_.iq,{text:function(){return H().title}})),_.O(_.g,{cond:function(){var h;
return(h=H())==null?void 0:h.subtitle},
then:function(){var h={};return _.O("div",{class:_.S2((h.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=v,h),"ytmLpComplexOfferCardViewModelSubtitle")},_.O(_.iq,{text:function(){return H().subtitle}}))}}),_.O(_.g,{cond:function(){return H().planPricingPrimary},
then:function(){return _.O("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.O(_.iq,{text:function(){return H().planPricingPrimary}}))}}),_.O(_.g,{cond:function(){return H().planPricingSecondary},
then:function(){return _.O("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.O(_.iq,{text:function(){return H().planPricingSecondary}}))}}),_.O(_.g,{cond:function(){return H().purchaseButton},
then:function(){return _.O("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.O(_.Jj,{data:function(){return H().purchaseButton}},{buttonViewModel:function(h){return _.O(_.Wp,{data:h.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.O(_.g,{cond:function(){var h;
return(h=H())==null?void 0:h.offerOptions},
then:function(){return _.O("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.O(_.Jj,{data:function(){return H().offerOptions}},{lpComplexOfferCardOptionViewModel:hDh}))}}),_.O("div",{class:_.S2((M.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=v,M),"ytmLpComplexOfferCardViewModelLegalText")},_.O(_.iq,{text:function(){return H().legalText}})),_.O(_.g,{cond:function(){var h;
return(h=H())==null?void 0:h.offerCardDetails},
then:function(){return _.O("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.O(_.Jj,{data:function(){return H().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:M_b}))}}))))},"kc");var V_g=_.a(function(f){var H=f.data;var v=function(){var y;return((y=H())==null?void 0:y.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
f={};var t={},M={},h={};return _.O("ytm-lp-complex-offer-card-section-view-model",null,_.O("div",{class:_.S2("ytmLpComplexOfferCardSectionViewModelHost")},_.O("div",{class:_.S2((f.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=v,f),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.O("div",{class:_.S2((t.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=v,t),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.O("h2",{class:_.S2((M.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
v,M),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.O(_.iq,{text:function(){return H().title}}))),_.O(_.g,{cond:function(){var y;
return(y=H())==null?void 0:y.subtitle},
then:function(){var y={},m={};return _.O("div",{class:_.S2((y.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=v,y),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.O("div",{class:_.S2((m.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=v,m),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.O(_.iq,{text:function(){return H().subtitle}})))}}),_.O("div",{class:_.S2((h.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=v,h),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.O(_.Jj,{data:function(){var y;
return(y=H().offerPlans)!=null?y:[]}},{lpComplexOfferCardViewModel:function(y){return _.O("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.O(RDM,{data:y.data}))}})))))},"lc");var yl9=_.a(function(f){return _.O("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.O("div",{class:"ytLpCouponBannerViewModelIcon"},_.O(_.JE,{icon:function(){return"price_tag"}})),_.O("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.O("div",{class:"ytLpCouponBannerViewModelContent"},_.O("div",{class:"ytLpCouponBannerViewModelHeading"},_.O(_.iq,{text:function(){var H;
return(H=f.data())==null?void 0:H.title}})),_.O("div",{class:"ytLpCouponBannerViewModelBody"},_.O(_.iq,{text:function(){var H;
return(H=f.data())==null?void 0:H.subtitle}})))))},"mc");
yl9.idomCompat=!0;_.r5=A8v.getInstance();var YnZ;YnZ=_.a(function(f){return _.O("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":f.shouldAriaHideContent},_.O("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:f.questionId},_.O(_.iq,{text:f.question})))},"nc");
_.mPg=_.a(function(f){var H=f.data;var v=f.themeOverride;f=_.V(_.gp(!1,void 0,"ljTVPd"));var t=f.next().value,M=f.next().value;f=_.d6(function(){M(!t());return!1});
var h=function(){return t()?"EXPAND_LESS":"EXPAND_MORE"},y=("faq-container"+_.BC(_.r5)).toString(),m="faq-question-and-answers-section-question"+_.BC(_.r5),W={},I={};
return _.O("faq-entry-view-model-c3",null,_.O("div",{class:_.S2("yt-lp-faq-entry-view-model",(W["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return v==null?void 0:v().useDarkTheme},W))},_.O("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":f,role:"button","aria-expanded":t,"aria-labelledby":m.toString(),"tab-index":"0"},_.O(YnZ,{question:function(){return H().question},
questionId:m,shouldAriaHideContent:!0}),_.O(_.g,{cond:function(){return t()!==void 0},
then:function(){return _.O("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.O(_.JE,{icon:h,ariaHidden:!0}),_.O("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.O("div",{class:_.S2("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(I["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!t()},I))},_.O("div",{id:y},_.O(_.eK,{each:function(){return H().answers||[]}},function(S){return _.O("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.O(_.iq,{text:S}))})))))},"oc");
_.mPg.idomCompat=!0;var $Ph=_.a(function(f){var H=f.data;var v=f.themeOverride;f={};return _.O("lp-faq-section-view-model-c3",null,_.O("div",{class:_.S2("yt-lp-faq-section-view-model",(f["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return H().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},f["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(v==null||!v().useDarkTheme)},f))},_.O("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.O(_.g,{cond:function(){return H().header},
then:function(t){return _.O("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.O(_.iq,{text:t}))}}),_.O("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.O(_.Jj,{data:function(){return H().faqs}},{faqEntryViewModel:function(t){return _.O(_.mPg,{data:t.data,
themeOverride:v})}})),_.O("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.O(_.eK,{each:function(){return H().footers||[]}},function(t){return _.O(_.iq,{text:t})})),_.O(_.g,{cond:function(){return H().legal},
then:function(t){return _.O("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.O(_.iq,{text:t}))}}))))},"pc");
$Ph.idomCompat=!0;var WBM=_.a(function(f){var H=f.data;var v=f.themeOverride;_.Kc(function(){var y=H().gtmId;y&&_.F9(y,_.a8("GL",""))});
var t={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var y,m,W;return(W=(y=H().logo)==null?void 0:(m=y.accessibilityData)==null?void 0:m.label)!=null?W:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},M=_.t8().resolve(_.vh(_.TK)),h=function(){return M&&M()||(v==null?void 0:v().useDarkTheme)};
return _.O("lp-header-section-view-model",null,_.O("div",{class:function(){var y=H().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",m=H().marginType==="LP_SECTION_MARGIN_TYPE_TOP",W=v==null?void 0:v().useDarkTheme,I=["lp-header-section-view-model"];y&&I.push("lp-header-section-view-model--ptc-layout-type");m&&I.push("lp-header-section-view-model__lp-header-section-margin");W&&I.push("lp-header-section-view-model--premium-force-dark-mode");return I.join(" ")}},_.O(_.g,{cond:function(){return H().logo},
then:function(){return _.O("div",null,_.O(_.g,{cond:h,then:function(){return _.O(_.g,{cond:function(){var y;return(y=H().logo)==null?void 0:y.imageDark},
then:function(y){return _.O(_.Hn,Object.assign({},{data:y},t))}})},
else:function(){return _.O(_.g,{cond:function(){var y;return(y=H().logo)==null?void 0:y.imageLight},
then:function(y){return _.O(_.Hn,Object.assign({},{data:y},t))}})}}))}}),_.O(_.g,{cond:function(){return H().title},
then:function(y){return _.O("div",{class:"lp-header-section-view-model__lp-header-title"},_.O(_.iq,{text:y}))}}),_.O("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.O(_.g,{cond:function(){return H().subtitles},
then:function(y){return _.O(_.eK,{each:y},function(m){return _.O("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.O(_.iq,{text:m}))})}})),_.O(_.g,{cond:function(){return H().additionalInfo},
then:function(y){return _.O("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.O(_.iq,{text:y}))}}),_.O("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.O(_.g,{cond:function(){return H().primaryButton},
then:function(y){return _.O("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.O(_.Jj,{data:y},{buttonViewModel:_.Wp}))}}),_.O(_.g,{cond:function(){return H().secondaryButton},
then:function(y){return _.O("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.O(_.Jj,{data:y},{buttonViewModel:_.Wp}))}})),_.O(_.g,{cond:function(){return H().otherOffersInfo},
then:function(y){return _.O("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.O(_.iq,{text:y}))}}),_.O("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.O(_.g,{cond:function(){return H().billingInfo},
then:function(y){return _.O(_.eK,{each:y},function(m){return _.O("div",null,_.O(_.iq,{text:m}))})}}))))},"qc");
WBM.idomCompat=!0;var OUa=_.a(function(f){var H=f.data;var v=_.vK(f.themeOverride,{useDarkTheme:!1});f={};f=_.S2("ytmLpHeadlineSectionViewModelHost",(f.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return v().useDarkTheme},f));
return _.O("lp-headline-section-view-model",null,_.O("div",{class:f},_.O("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.O(_.iq,{text:function(){return H().title}})),_.O(_.g,{cond:function(){return H().subtitle},
then:function(t){return _.O("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.O(_.iq,{text:t}))}})))},"rc");var gno=_.a(function(f){var H=f.data;var v=f.themeOverride;var t=_.t8().resolve(_.vh(_.TK)),M=function(){return t&&t()||(v==null?void 0:v().useDarkTheme)},h=function(){var I,S;
var d=M()?(I=H().textBackgroundImage)==null?void 0:I.imageDark:(S=H().textBackgroundImage)==null?void 0:S.imageLight;return J25((d==null?void 0:d.sources)||[])},y=function(){var I,S;
return M()?(I=H().featureImage)==null?void 0:I.imageDark:(S=H().featureImage)==null?void 0:S.imageLight},m=function(){return H().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},W=function(){var I,S;
return M()?(I=H().logo)==null?void 0:I.imageDark:(S=H().logo)==null?void 0:S.imageLight};
return _.O("ytm-lp-large-feature-section-view-model",null,_.O("div",{class:function(){var I=H().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",S=H().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",d=(H().index||0)%2===1,Z=v==null?void 0:v().useDarkTheme,l=["yt-lp-large-feature-section-view-model"];I?l.push("yt-lp-large-feature-section-view-model--music-feature-type"):S?l.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):d||l.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
Z&&l.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return l.join(" ")}},_.O("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.O(_.g,{cond:y,
then:function(){return _.O(_.Hn,{data:function(){return y()},
alt:function(){var I,S,d;return(d=(I=H().featureImage)==null?void 0:(S=I.accessibilityData)==null?void 0:S.label)!=null?d:""},
contentMode:m})}})),_.O("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var I;return((I=h())==null?0:I.url)?"background-image: url("+_.Co(h().url)+");":""}},_.O("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.O(_.g,{cond:W,
then:function(){return _.O(_.Hn,{data:function(){return W()},
alt:function(){var I,S,d;return(d=(I=H().logo)==null?void 0:(S=I.accessibilityData)==null?void 0:S.label)!=null?d:""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",targetWidth:138,targetHeight:20,preserveWidth:!0,preserveHeight:!0,className:"yt-lp-large-feature-section-view-model__lp-large-feature-section-logo"})}}),_.O(_.g,{cond:function(){return H().eyebrowText},
then:function(){return _.O("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.O(_.iq,{text:function(){return H().eyebrowText}}))}}),_.O(_.g,{cond:function(){return H().title},
then:function(){return _.O("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.O(_.iq,{text:function(){return H().title}}))}}),_.O(_.g,{cond:function(){return H().subtitles},
then:function(){return _.O("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.O(_.eK,{each:function(){return H().subtitles||[]}},function(I){return _.O(_.iq,{text:I})}))}})))))},"sc");
gno.idomCompat=!0;var ISg=_.a(function(f){return _.O("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.O("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.O(_.JE,{icon:function(){var H;return(H=f.data())==null?void 0:H.iconType},
className:function(){var H;switch((H=f.data())==null?void 0:H.style){case "LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconGreen";case "LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconSmall";default:return"ytLpFeatureListItemViewModelFeatureListIconDefault"}},
active:function(){var H;return((H=f.data())==null?void 0:H.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.O("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.O(_.iq,{text:function(){var H;
return(H=f.data())==null?void 0:H.text},
className:function(){var H;return((H=f.data())==null?void 0:H.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"tc");var SnM=_.a(function(f){f=_.tV(f,{config:void 0,themeOverride:void 0});var H=f.data,v=f.config,t=f.themeOverride;f={};f=_.S2("ytmLpOfferCardOptionViewModelHost",(f.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var m;return(m=t())==null?void 0:m.useDarkTheme},f));
var M=_.d6(function(){var m,W;(m=v())==null||(W=m.handleRadioButtonClick)==null||W.call(m,H());return!1}),h=function(){var m;
return(m=v())==null?void 0:m.shouldDisplayRadioButton},y=function(){var m;
return(m=H().featureListItems)!=null?m:[]};
return _.O("ytm-lp-offer-card-option-view-model",null,_.O("div",{class:f,"on:click":_.d6(function(){if(h()){var m,W;(m=v())==null||(W=m.handleRadioButtonClick)==null||W.call(m,H())}return!1})},_.O(_.g,{cond:h,
then:function(){return _.O("div",null,_.O("input",{type:"radio","on:click":M,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var m;return!((m=v())==null||!m.isOptionSelected)}}))}}),_.O("div",null,_.O("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.O(_.iq,{text:function(){return H().eyebrowText}})),_.O("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.O(_.iq,{text:function(){return H().title}})),_.O("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.O(_.iq,
{text:function(){return H().subtitle}})),_.O(_.g,{cond:function(){return y().length>0},
then:function(){return _.O("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.O(_.Jj,{data:y},{lpFeatureListItemViewModel:ISg}))}}),_.O("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.O(_.iq,{text:function(){return H().description}})))))},"uc");
SnM.idomCompat=!0;var dPC=_.a(function(f){var H=f.data;var v=f.themeOverride;f=_.V(_.sR(function(){var h,y=(h=H().offerOptions)==null?void 0:h[0];return _.U(y,Ikg)||{}}));
var t=f.next().value,M=f.next().value;f={};return _.O("ytm-lp-offer-card-view-model",null,_.O("div",{class:_.S2("ytmLpOfferCardViewModelHost",(f.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(v==null||!v().useDarkTheme)},f))},_.O("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.O(_.g,{cond:function(){return H().titleIconType},
then:function(){return _.O("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.O(_.JE,{icon:function(){var h;return((h=H().titleIconType)==null?void 0:h.toString())||""}}))}}),_.O("div",{class:"ytmLpOfferCardViewModelTitleText"},_.O(_.iq,{text:function(){return H().title}})),_.O(_.Jj,{data:function(){return H().titleBadge}},{badgeViewModel:function(h){return _.O("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.O(_.to,{data:h.data}))}})),_.O("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.O(_.Jj,{data:function(){return H().offerOptions}},{lpOfferCardOptionViewModel:function(h){var y=h.data;
return _.O(_.R8,null,_.O("div",{class:"ytmLpOfferCardViewModelDivider"}),_.O(SnM,{data:y,config:function(){var m;return{shouldDisplayRadioButton:(H().offerOptions||[]).length>1,isOptionSelected:y().id===((m=t())==null?void 0:m.id),handleRadioButtonClick:function(W){return void M(W)}}},
themeOverride:v}))}})),_.O("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.O(_.Jj,{data:function(){var h;
return(h=t())==null?void 0:h.purchaseButtonOverride}},{buttonViewModel:_.Wp}))))},"vc");
dPC.idomCompat=!0;var j_v=_.a(function(f){var H=f.data;var v=f.themeOverride;f={};f=_.S2("ytmLpOfferCardSectionViewModelHost",(f.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var t;return v==null?void 0:(t=v())==null?void 0:t.useDarkTheme},f));
return _.O("ytm-lp-offer-card-section-view-model",null,_.O("div",{class:f},_.O(_.g,{cond:function(){return H().title!==void 0},
then:function(){return _.O("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.O("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.O(_.iq,{text:function(){return H().title}})),_.O(_.g,{cond:function(){return H().subtitle},
then:function(){return _.O("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.O(_.iq,{text:function(){return H().subtitle}}))}}))}}),_.O("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.O(_.Jj,{data:function(){return H().offerCards}},{lpOfferCardViewModel:function(t){return _.O("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.O(dPC,{data:t.data,
themeOverride:v}))}})),_.O(_.g,{cond:function(){return H().footer},
then:function(){return _.O("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.O(_.iq,{text:function(){return H().footer}}))}})))},"wc");var s_g=_.a(function(f){var H=f.data;return _.O("lp-offer-table-cell-content-view-model",null,_.O("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.O(_.B6,null,_.O(_.Lc,{when:function(){return H().title}},function(){return _.O(_.iq,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return H().title}})}),_.O(_.Lc,{when:function(){return H().subTitle}},function(){return _.O(_.iq,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return H().subTitle}})}),_.O(_.Lc,{when:function(){return H().featureDescription}},function(){return _.O(_.iq,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return H().featureDescription}})}),_.O(_.Lc,{when:function(){return H().description}},function(){return _.O(_.iq,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return H().description}})}),_.O(_.Lc,{when:function(){return H().iconType}},function(){return _.O("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.O(_.JE,{icon:function(){return H().iconType.toString()}}))}),_.O(_.Lc,{when:function(){return H().purchaseButton}},function(){return _.O(_.Jj,{data:function(){return H().purchaseButton}},{buttonViewModel:function(v){return _.O("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.O(_.Wp,
{data:v.data}))}})}),_.O(_.Lc,{when:function(){return H().note}},function(){return _.O(_.iq,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return H().note}})}),_.O(_.Lc,{when:function(){return H().featureDetail}},function(){return _.O(_.iq,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return H().featureDetail}})}),_.O(_.Lc,{when:function(){return H().badge}},function(){return _.O(_.Jj,{data:function(){return H().badge}},{badgeViewModel:_.to})}))))},"xc");
s_g.idomCompat=!0;var ZUh=_.a(function(f){var H=f.data;return _.O("lp-offer-table-cell-view-model",null,_.O("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(H().alignSelf){case "LP_OFFER_TABLE_ALIGNMENT_START":return"justify-content: flex-start;";case "LP_OFFER_TABLE_ALIGNMENT_END":return"justify-content: flex-end;";case "LP_OFFER_TABLE_ALIGNMENT_CENTER":return"justify-content: center;";default:return"justify-content: flex-start;"}}},_.O(_.Jj,{data:function(){return H().contents}},{lpOfferTableCellContentViewModel:s_g})))},
"yc");
ZUh.idomCompat=!0;var Jln=_.a(function(f){var H=f.data;var v=f.lpTableIsFirstRow;var t=f.lpTableIsLastRow;var M=function(){return(v==null?0:v())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},h=function(){return(v==null?0:v())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(t==null?0:t())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.O("ytm-lp-offer-table-row-view-model",null,_.O("div",{class:"ytLpOfferTableRowViewModelHost"},_.O(_.Jj,{data:function(){return H().rowHeaderCell}},{lpOfferTableCellViewModel:function(y){return _.O("div",{class:M},_.O(ZUh,{data:y.data}))}}),_.O(_.Jj,{data:function(){return H().contentCells}},{lpOfferTableCellViewModel:function(y){return _.O("div",{class:h},_.O(ZUh,{data:y.data}))}})))},"zc");
Jln.idomCompat=!0;var lS9=_.a(function(f){var H=f.data;var v=f.themeOverride;var t=_.t8().resolve(_.vh(_.TK)),M=function(){return _.U(H().logo,opv)||{}};
f={};return _.O("ytm-lp-offer-table-section-view-model",null,_.O("div",{class:"ytLpOfferTableViewModelHost"},_.O(_.g,{cond:function(){var h,y;return t&&t()||(v==null?0:v().useDarkTheme)?(h=M())==null?void 0:h.imageDark:(y=M())==null?void 0:y.imageLight},
then:function(h){return _.O(_.Hn,{data:h,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var y,m,W;return(W=(y=M())==null?void 0:(m=y.accessibilityData)==null?void 0:m.label)!=null?W:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.O("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.O(_.iq,{text:function(){return H().title}})),_.O("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.O(_.iq,{text:function(){return H().subtitle}})),_.O(_.g,{cond:function(){return H().disclaimers},
then:function(h){return _.O("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.O(_.eK,{each:h},function(y){return _.O("div",null,_.O(_.iq,{text:y}))}))}}),_.O("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.O(_.Jj,{data:function(){return H().rows}},{lpOfferTableRowViewModel:function(h,y){return _.O(Jln,{data:h.data,
lpTableIsFirstRow:function(){return y()===0},
lpTableIsLastRow:function(){return y()===H().rows.length-1}})}})),_.O("div",{class:_.S2((f.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return H().hasFooterBackground},f))},_.O(_.g,{cond:function(){return H().footer},
then:function(){return _.O("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.O(_.iq,{text:function(){return H().footer}}))}}),_.O(_.g,{cond:function(){return H().footerTitle},
then:function(){return _.O("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.O(_.iq,{text:function(){return H().footerTitle}}))}}),_.O(_.g,{cond:function(){return H().footerDescription},
then:function(){return _.O("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.O(_.iq,{text:function(){return H().footerDescription}}))}}))))},"Ac");
lS9.idomCompat=!0;var UPo=_.a(function(f){var H=f.data;var v=f.themeOverride;var t=_.t8().resolve(_.vh(_.TK)),M=function(){var m;return v==null?void 0:(m=v())==null?void 0:m.useDarkTheme},h=function(){var m,W;
return t&&t()||M()?(m=H().image)==null?void 0:m.imageDark:(W=H().image)==null?void 0:W.imageLight};
f={};f=_.S2("ytmLpSmallFeatureSectionViewModelHost",(f.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=M,f));var y=function(){var m,W,I;return(I=(m=H().image)==null?void 0:(W=m.accessibilityData)==null?void 0:W.label)!=null?I:""};
return _.O("ytm-lp-small-feature-section-view-model",{class:f},_.O(_.g,{cond:function(){return h()&&!Wkg},
then:function(){return _.O("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.O(_.Hn,{data:function(){return h()},
alt:y,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.O("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.O("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.O(_.g,{cond:function(){return H().title},
then:function(m){return _.O(_.iq,{text:m})}})),_.O("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.O(_.iq,{text:function(){return H().description}}))))},"Bc");
UPo.idomCompat=!0;var eDH=_.a(function(f){var H=f.data;var v=f.themeOverride;f={};return _.O("ytm-lp-small-feature-section-group-view-model",null,_.O("div",{class:_.S2("ytmLpSmallFeatureSectionGroupViewModelHost",(f.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(v==null||!v().useDarkTheme)},f))},_.O("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.O(_.Jj,{data:function(){return H().smallFeatures}},{lpSmallFeatureSectionViewModel:function(t){return _.O("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.O(UPo,{data:t.data,
themeOverride:v}))}}))))},"Cc");
eDH.idomCompat=!0;_.yn(_.a(function(f){var H=f.data;var v=function(){return H().forcedTheme==="USER_INTERFACE_THEME_DARK"},t=function(){return H().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},M=function(){var y="",m,W;
var I=_.t8().resolve(_.vh(_.TK));I=v()||(I==null?0:I())?(m=H().themedImageViewModel)==null?void 0:m.imageDark:(W=H().themedImageViewModel)==null?void 0:W.imageLight;(m=J25((I==null?void 0:I.sources)||[]))&&m.url&&(y=t()?"background-image: linear-gradient(to bottom, transparent, "+(H().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.Co(m.url)+");":"background-image: url("+_.Co(m.url)+");");return y},h=function(){return{useDarkTheme:v()}};
f={};return _.O("yt-section-group-view-model",null,_.O("div",{class:_.S2("yt-lp-section-group-view-model",(f["yt-lp-section-group-view-model--premium-force-dark-mode"]=v,f["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return H().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},f))},_.O(_.g,{cond:function(){return M().length},
then:function(){var y={};return _.O("div",{class:_.S2("yt-lp-section-group-view-model__bg-image",(y["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=t,y)),style:M})}}),_.O("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.O(_.Jj,{data:function(){return H().sections}},{lpFaqSectionViewModel:function(y){return _.O($Ph,{data:y.data,
themeOverride:h})},
lpHeaderSectionViewModel:function(y){return _.O(WBM,{data:y.data,themeOverride:h})},
lpHeadlineSectionViewModel:function(y){return _.O(OUa,{data:y.data,themeOverride:h})},
lpLargeFeatureSectionViewModel:function(y){return _.O(gno,{data:y.data,themeOverride:h})},
lpOfferCardSectionViewModel:function(y){return _.O(j_v,{data:y.data,themeOverride:h})},
lpComplexOfferCardSectionViewModel:function(y){return _.O(V_g,{data:y.data})},
lpOfferTableSectionViewModel:function(y){return _.O(lS9,{data:y.data,themeOverride:h})},
lpSmallFeatureSectionGroupViewModel:function(y){return _.O(eDH,{data:y.data,themeOverride:h})},
lpCouponBannerViewModel:function(y){return _.O(yl9,{data:y.data})}}))))},"Dc"),"yt-section-group-view-model",{props:{data:_.ki}});var UDv=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.LBv=_.a(function(f){function H(){if(UDv.has(f.data().displayType)){var I=!t(),S;if((S=f.disableDeselection)==null||!S.call(f)||I){f.data().selected=I;S=Object.assign({},y(),{selected:I});m(S);var d;(d=f.callback)==null||d.call(f,S,I)}}}
var v=_.TN("chip-view-model"),t=function(){var I,S;return!!(((I=f.selected)==null?void 0:I.call(f))!==void 0?(S=f.selected)==null?0:S.call(f):y().selected)},M=_.V(_.sR(f.data)),h=M.next().value;
M=M.next().value;var y=h,m=M,W=_.s7(lWg,function(){return f.data().chipEntityKey||""});
return _.O("chip-view-model",{class:"ytChipViewModelHost",el:v},_.O(hXb,{data:function(){var I,S=Object.assign({},y(),{selected:t()}),d=W(),Z=(I=f.disableDeselection)==null?void 0:I.call(f);a:switch(S.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":I=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":I=3;break a;default:I=0}return{text:(d==null?void 0:d.text)||S.text,state:S.disabled?1:S.selected?0:2,type:I,onTap:eGH(S,v,H,Z),
accessibilityLabel:S.accessibilityLabel||S.text}}}))},"Ec");
_.LBv.idomCompat={callbacks:{callback:!0}};_.xPg=_.a(function(f){var H=_.s7(Jwr,function(){var y;return(y=f.data())==null?void 0:y.chipBarStateEntityKey}),v=function(){return f.data().disableDeselection},t=_.V(_.sR(function(){var y;
if(((y=H())==null?void 0:y.selectedIndex)!=void 0)return H().selectedIndex;var m,W;y=_.V(((m=f.data())==null?void 0:(W=m.chips)==null?void 0:W.entries())||[]);for(m=y.next();!m.done;m=y.next()){m=_.V(m.value);W=m.next().value;m=m.next().value;var I=void 0;if((I=_.U(m,_.Pd))==null?0:I.selected)return W}return-1})),M=t.next().value,h=t.next().value;
return _.O("chip-bar-view-model",{class:_.S2("ytChipBarViewModelHost",f.className),role:"tablist"},_.O(_.Jj,{data:function(){return f.data().chips}},{chipViewModel:function(y,m){return _.O("div",{class:"ytChipBarViewModelChipWrapper"},_.O(_.LBv,{data:y.data,
selected:function(){return m()===M()},
callback:function(W,I){W=!!I;I=m();h(W?I:-1);var S,d=(S=f.data())==null?void 0:S.chipBarStateEntityKey;d&&W&&_.HK(_.lF("chipBarStateEntity",d,{key:d,selectedIndex:I}))},
disableDeselection:f.disableDeselection||v}))}}))},"Fc");_.yn(_.xPg,"chip-bar-view-model",{props:{data:_.Rm,className:_.Rm,disableDeselection:_.Rm}});_.B1g=_.a(function(f){var H=f.data;f={};return _.O("divider-view-model",{class:_.S2("dividerViewModelHost",(f.dividerViewModelInsetThinPadding=function(){return H().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},f))},_.O("div",{class:_.S2("dividerViewModelBaseDivider",function(){return LXB(H().dividerStyle)}),
style:_.ZE({"background-color":function(){return H().backgroundColor?_.NS(H().backgroundColor):void 0}})}))},"Gc");
_.B1g.idomCompat=!0;_.yn(_.B1g,"divider-view-model",{props:{data:_.ki}});var sw=new Map,jO=new Map,zGR=0,Z4;var pFN=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],aWB={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var zDo,FBv;zDo=function(f){return function(H){return function(){return(H==null?void 0:H())!==void 0?String(H())+f:void 0}}};
_.KB=zDo("px");FBv=zDo("s");var rlg=pPR(function(f){return f.targetGroupId}).useUpdatableData;var DPh=_.a(function(f){function H(fg){return function(){var gB=r().numItemsPerGridRow,O5=fg()*gB;gB=O5+gB;var s5,U5;return(U5=(s5=t().contents)==null?void 0:s5.slice(O5,gB))!=null?U5:[]}}
var v=_.tV(f,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),t=v.data,M=v.layoutContainerWidth,h=v.shouldUseOwnContainerSize,y=v.marginSettings,m=msR(),W=_.V(rlg(function(){var fg,gB;return{targetGroupId:(fg=t().targetingContext)==null?void 0:(gB=fg.targetGroupId)==null?void 0:gB[0]}})).next().value;
v=_.V(_.gp(!0,void 0,"f25nob"));var I=v.next().value,S=v.next().value,d=function(){var fg,gB=(fg=_.U(t().showMoreButton,_.af))==null?void 0:fg.trackingParams;gB&&_.WL(_.UV(),gB);S(!1)},Z=function(){var fg,gB=(fg=_.U(t().showLessButton,_.af))==null?void 0:fg.trackingParams;
gB&&_.WL(_.UV(),gB);S(!0)};
v=_.TN("grid-shelf-view-model");var l=_.GR3(v,{canHaveZeroSize:!1}),L=function(){var fg;return(fg=t().contentAspectRatio)!=null?fg:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},r=_.sg(function(){var fg=_.GV({containerWidth:h()&&l.width()>0?l.width()||M():M(),
sizing:"EXTRA_COMPACT",marginSettings:y(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:fg.maxContainerWidth,numItemsPerGridRow:fg.numItems,contentPadding:h()?fg.margin:fg.contentMargin,itemWidth:fg.itemWidth,itemMargin:fg.gutter/2}},void 0,"b3gcJf"),n=function(){if(t().enableVerticalExpansion){if(I())return Q();
var fg,gB,O5=(gB=(fg=t().contents)==null?void 0:fg.length)!=null?gB:0;return Math.ceil(O5/r().numItemsPerGridRow)}return r().numItemsPerGridRow<=2?2:1},Q=function(){var fg;
return Math.ceil(((fg=t().minCollapsedItemCount)!=null?fg:1)/r().numItemsPerGridRow)},C=function(){return t().enableVerticalExpansion&&t().showLessButton&&!I()&&n()>Q()},w=function(){var fg,gB;
return t().enableVerticalExpansion&&t().showMoreButton&&I()&&((gB=(fg=t().contents)==null?void 0:fg.length)!=null?gB:0)>r().numItemsPerGridRow*Q()},c=function(){return!C()},A=function(){return!w()},X={};
return _.O("grid-shelf-view-model",{class:_.S2("ytGridShelfViewModelHost",f.className,(X.ytGridShelfViewModelHostHasBottomButton=function(){return C()||w()},X.ytGridShelfViewModelHostIsDismissed=function(){var fg,gB=(fg=W())!=null?fg:{};
fg=gB.behavior;var O5=gB.isDismissed,s5=gB.stamperContextTargetId;gB=gB.stamperIndex;if(!(_.J("mweb_see_fewer_shorts_group_dismissal")&&O5&&fg&&s5))return!1;var U5;O5=m;for(var lH,E5,uH=((lH=O5)==null?0:lH.targetId)?_.p4((E5=O5)==null?void 0:E5.targetId):void 0;((U5=O5)==null?0:U5.parent)&&uH!==s5;)O5=O5.parent,E5=lH=void 0,uH=((lH=O5)==null?0:lH.targetId)?_.p4((E5=O5)==null?void 0:E5.targetId):void 0;U5=uH===s5?O5:void 0;if(!U5)return!1;var Rn;s5=U5==null?void 0:(Rn=U5.stamperIndex)==null?void 0:
Rn.call(U5);return fg==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||fg==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&s5!=null&&gB!=null&&s5>gB},X)),
el:v,style:_.ZE({"margin-left":(0,_.KB)(function(){return r().contentPadding}),
"margin-right":(0,_.KB)(function(){return r().contentPadding})})},_.O(_.g,{cond:function(){return _.U(t().header,XHb)},
then:function(fg){return _.O(_.$b,{data:fg,disableHorizontalPadding:!0})}}),_.O("div",null,_.O(_.eK,{each:function(){return Array(n())}},function(fg,gB){return _.O(KBZ,{className:f.className,
items:H(gB),responsiveGridShelfLayout:r,contentAspectRatio:L})})),_.O("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.O(_.Jj,{data:function(){return t().showMoreButton}},{buttonViewModel:function(fg){return _.O("div",{hidden:A},_.O(_.Wp,{data:fg.data,
onClick:d}))}}),_.O(_.Jj,{data:function(){return t().showLessButton}},{buttonViewModel:function(fg){return _.O("div",{hidden:c},_.O(_.Wp,{data:fg.data,
onClick:Z}))}})))},"Hc");
DPh.idomCompat=!0;var KBZ=_.a(function(f){var H=f.items;var v=f.responsiveGridShelfLayout;var t=f.contentAspectRatio;f=f.className;var M=_.TN("div");BxE(M,function(){a:{var y=M.value;for(var m=H(),W=[],I=0;I<m.length;I++){var S=_.U(m[I],JcH);if(!S||S==null||!S.inlinePlayerData){y=null;break a}var d=y.children.item(I);if(!d){y=null;break a}W.push({thumbnailElement:d,videoData:S})}y={gridVideoPreviewData:{gridItems:W}}}return y});
var h=(0,_.KB)(function(){return-v().itemMargin});
return _.O("div",{el:M,class:_.S2("ytGridShelfViewModelGridShelfRow",f),style:_.ZE({"margin-left":h,"margin-right":h})},_.O(_.Jj,{data:H,replacementWrapper:function(y){return _.O(onh,{responsiveGridShelfLayout:v},y)}},{shortsLockupViewModel:function(y){return _.O(onh,{responsiveGridShelfLayout:v},_.O(OHb,{data:y.data,
aspectRatio:function(){return t()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"Ic"),onh=_.a(function(f){return _.O("div",{style:_.ZE({width:(0,_.KB)(function(){return f.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+f.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},f.children)},"Jc");
DPh.idomCompat=!0;_.yn(DPh,"grid-shelf-view-model",{props:{data:_.ki,layoutContainerWidth:_.ki,shouldUseOwnContainerSize:_.ki,marginSettings:_.ki,className:_.ki}});_.nnh=_.a(function(f){var H=_.V(_.gp(!1,void 0,"YYtxR")),v=H.next().value,t=H.next().value;H={};return _.O("yt-alert-banner-view-model",{class:_.S2("ytAlertBannerViewModelHost",f.className,function(){var M;a:switch((M=f.data())==null?void 0:M.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":M="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":M="ytAlertBannerViewModelWarning";break a;default:M="ytAlertBannerViewModelInformational"}return M},(H.ytAlertBannerViewModelDismissed=
v,H.ytAlertBannerViewModelFullbleed=f.fullbleed,H.ytAlertBannerViewModelNarrow=f.narrow,H.ytAlertBannerViewModelIsInRichGrid=f.isInRichGrid,H))},_.O(_.g,{cond:function(){var M;
return!((M=f.data())==null?0:M.hideIcon)},
then:function(){return _.O("div",{class:"ytAlertBannerViewModelIcon"},_.O(_.JE,{icon:function(){return"info_circle"}}))}}),_.O("div",{class:"ytAlertBannerViewModelOuterContainer"},_.O("div",{class:"ytAlertBannerViewModelContainer"},_.O("div",{class:"ytAlertBannerViewModelContent"},_.O("div",{class:"ytAlertBannerViewModelHeading"},_.O(_.iq,{text:function(){var M;
return(M=f.data())==null?void 0:M.heading}})),_.O("div",{class:"ytAlertBannerViewModelBody"},_.O(_.iq,{text:function(){var M;
return(M=f.data())==null?void 0:M.body}})))),_.O(_.Jj,{data:function(){var M;
return(M=f.data())==null?void 0:M.actionButton}},{buttonViewModel:function(M){return _.O(_.Wp,{data:M.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.O(_.Jj,{data:function(){var M;
return(M=f.data())==null?void 0:M.dismissButton}},{buttonViewModel:function(M){return _.O(_.Wp,{data:M.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var h;((h=f.data())==null?0:h.disableLocalDismissBehavior)||t(!0)}})}}))},"Kc");_.yn(_.nnh,"yt-alert-banner-view-model",{props:{data:_.ki,fullbleed:_.ki,narrow:_.ki,isInRichGrid:_.ki,className:_.ki}});_.DH=_.a(function(f){var H=f.data;var v=f.callback;var t=f.selectionBehavior;var M=f.disableChipsScrollAnimation;var h=_.w8("div");f=_.V(_.gp(!0,void 0,"xkhdbf"));var y=f.next().value,m=f.next().value;f=_.V(_.gp(!1,void 0,"gY0n0c"));var W=f.next().value,I=f.next().value,S=!1,d=0;_.ru(function(){m(L());I(r())});
f=_.V(_.sR(function(){var fg={};return H().autoselectedChipIndex!=null?(fg[H().autoselectedChipIndex]=!0,fg):{}}));
var Z=f.next().value,l=f.next().value,L=function(){var fg=h.value;return fg==null||fg.scrollLeft-1<=0},r=function(){var fg=h.value;
return fg==null?!1:fg.scrollLeft+1>=(fg==null?NaN:fg.scrollWidth)-(fg==null?NaN:fg.clientWidth)},n=function(){return H().isHorizontallyScrollable},Q=function(fg){h.value!=null&&(_.a8("HTML_DIR")==="rtl"&&(fg=-fg),h.value.scrollBy({left:fg,
behavior:(M==null?0:M())?"instant":"smooth"}))},C=function(){Q(-320)},w=function(){Q(320)},c=_.d6(function(fg){S=!0;
d=fg.clientX}),A=_.d6(function(fg){if(S){fg=fg.clientX;
var gB=fg-d;d=fg;var O5;(O5=h.value)==null||O5.scrollBy({left:-gB})}}),X=_.d6(function(){var fg=L(),gB=r();
fg!==y()&&m(fg);gB!==W()&&I(gB)});
vb("pointerup",function(){S&&(S=!1)});
return _.O("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.O(_.Re,{contentId:function(){return H().contentId},
useModernStyle:!0},function(){var fg={},gB={};return _.O("div",null,_.O(_.g,{cond:function(){return H().title},
then:function(){return _.O("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.O("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return H().title}),_.O(_.Jj,{data:function(){return H().overflowButton}},{buttonViewModel:_.Wp}))}}),_.O("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.O(_.g,{cond:function(){return H().previousButton},
then:function(){var O5={};return _.O("div",{class:_.S2("ytChipsShelfViewModelLeftArrowContainer",(O5.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return y()},O5))},_.O(_.Jj,{data:function(){return H().previousButton}},{buttonViewModel:function(s5){return _.O(_.Wp,{data:s5.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:C})}}))}}),_.O("div",{el:h,
"on:pointerdown":c,"on:pointermove":A,"on:scroll":X,class:_.S2("ytChipsShelfViewModelChipsScrollContainer",(fg.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=n,fg))},_.O("div",{class:_.S2("ytChipsShelfViewModelChipsContainer",(gB.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=n,gB.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,gB)),role:"tablist"},_.O(_.Jj,{data:function(){return H().contents}},{chipViewModel:function(O5,s5){return _.O("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.O(_.LBv,{data:O5.data,
callback:function(U5,lH){var E5=s5(),uH,Rn=(uH=t==null?void 0:t())!=null?uH:0;Rn===1||Rn===2?(uH={},l((uH[E5]=lH,uH))):(uH={},l(Object.assign({},Z(),(uH[E5]=lH,uH))));v==null||v(U5,lH,E5)},
disableDeselection:function(){return(t==null?void 0:t())===1},
selected:function(){return!!Z()[s5()]}}))}}))),_.O(_.g,{cond:function(){return H().nextButton},
then:function(){var O5={};return _.O("div",{class:_.S2("ytChipsShelfViewModelRightArrowContainer",(O5.ytChipsShelfViewModelRightArrowContainerIsHidden=W,O5))},_.O(_.Jj,{data:function(){return H().nextButton}},{buttonViewModel:function(s5){return _.O(_.Wp,{data:s5.data,
className:"ytChipsShelfViewModelRightArrow",onClick:w})}}))}})))}))},"Lc");
_.DH.idomCompat={callbacks:{callback:!0}};_.yn(_.DH,"chips-shelf-view-model",{props:{data:_.ki,callback:_.Rm,selectionBehavior:_.ki,disableChipsScrollAnimation:_.ki}});var puM=_.a(function(f){f=_.tV(f,{disabled:!1});var H=f.active,v=f.disabled;f={};f=_.S2("ytSwitchShapeTrack",(f.ytSwitchShapeTrackActive=function(){return H()},f.ytSwitchShapeTrackDisabled=function(){return v()},f));
var t={};t=_.S2("ytSwitchShapeKnob",(t.ytSwitchShapeKnobActive=function(){return H()},t));
return _.O("switch-shape",{class:"ytSwitchShapeHost"},_.O("div",{class:f}),_.O("div",{class:t}))},"Mc");var Q_h=_.a(function(f){var H=_.tV(f,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),v=H.data;f=H.className;var t=H.handleOnTapEventInParent,M=H.parentActive;H=_.V(_.sR(function(){var d;return(d=M())!=null?d:v().switchedOnByDefault||!1}));
var h=H.next().value,y=H.next().value,m=function(){return v().isDisabled},W=_.TN("button");
H=_.d6(function(d){return d.key==="Enter"?(d.preventDefault(),W.value.click(),!1):!0});
var I=_.d6(function(d){if(v().handleOnTapEventInParent||t())return!0;if(m())return!1;EY_(v(),h(),d);y(!h());return!1}),S={};
S=_.S2("ytSwitchButtonViewModelButton",(S.ytSwitchButtonViewModelTappable=function(){return!m()},S));
return _.O("switch-button-view-model",{class:_.S2("ytSwitchButtonViewModelHost",f)},_.O("button",{el:W,class:S,"on:click":I,"on:keydown":H,"aria-label":function(){return h()?v().a11yLabelSwitchedOn:v().a11yLabelSwitchedOff},
"aria-checked":h,"aria-disabled":m,role:"switch"},_.O(puM,{active:h,disabled:m})))},"Nc");var u6_=_.a(function(f){var H=f.data;var v=f.isLeading;var t=f.hideSelectionTextChevron;var M=f.isToggled;var h=function(){return v()?H().leadingImage:H().trailingImage},y=function(){a:switch(H().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var S="expand_more";
break a;default:S="chevron_right"}return S};
f={};var m=_.S2("yt-list-item-view-model-wiz__image-container",(f["yt-list-item-view-model-wiz__leading"]=v,f["yt-list-item-view-model-wiz__trailing"]=function(){return!v()},f)),W=_.S2("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
f={};var I=_.S2("yt-list-item-view-model-wiz__accessory",(f["yt-list-item-view-model-wiz__leading"]=v,f["yt-list-item-view-model-wiz__trailing"]=function(){return!v()},f));
return _.O(_.g,{cond:function(){var S=H(),d=v();return!!(d&&(S.leadingImage||S.leadingAccessory)||!d&&(S.trailingImage||S.trailingButton||S.trailingButtons||S.selectionText))},
then:function(){return _.O(_.R8,null,_.O(_.g,{cond:h,then:function(S){return _.O("div",{class:m,"aria-hidden":"true"},_.O(_.Hn,{data:S,alt:"",preserveWidth:!0,preserveHeight:!0,className:W,isToggled:M}))}}),_.O(_.g,{cond:function(){return v()&&H().leadingAccessory},
then:function(){return _.O("div",{class:m},_.O(_.Jj,{data:function(){return H().leadingAccessory}},{avatarViewModel:function(S){return _.O(_.K5,{data:S.data,
avatarButtonCustomClassName:W})},
collectionThumbnailViewModel:function(S){return _.O(R6C,{data:S.data,maxHeight:36,includeStackHeight:!0})}}))}}),_.O(_.g,{cond:function(){return!v()&&H().trailingButton},
then:function(){return _.O("div",{class:"yt-list-item-view-model-wiz__button-container"},_.O(_.Jj,{data:function(){return H().trailingButton}},{buttonViewModel:function(S){return _.O(_.Wp,{data:S.data,
className:I})}}))}}),_.O(_.g,{cond:function(){var S;
return!v()&&((S=H().trailingButtons)==null?void 0:S.buttons)},
then:function(){return _.O("div",{class:"yt-list-item-view-model-wiz__button-container"},_.O(_.Jj,{data:function(){var S;return(S=H().trailingButtons)==null?void 0:S.buttons}},{buttonViewModel:function(S){return _.O(_.Wp,{data:S.data,
className:I})},
accountLinkButtonViewModel:function(S){return _.O(kYM,{data:S.data,className:I})},
switchButtonViewModel:function(S){return _.O(Q_h,{data:S.data,className:I})},
subscribeButtonViewModel:function(S){return _.O(_.KX,{data:S.data,isOverlay:!1,animateWidth:!1,className:I})},
toggleButtonViewModel:function(S){return _.O(_.Fo,{data:S.data,className:I})}}))}}),_.O(_.g,{cond:function(){return!v()&&!!H().selectionText},
then:function(){return _.O(_.R8,null,_.O(_.iq,{text:function(){return H().selectionText},
className:_.S2("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.O(_.g,{cond:function(){return!(t==null?0:t())},
then:function(){return _.O(_.JE,{icon:y,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Oc");var aSZ=_.a(function(f){var H=f.data;return _.O(_.g,{cond:function(){return H().title||H().subtitle},
then:function(){return _.O("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.O(_.g,{cond:function(){return H().title},
then:function(v){return _.O("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.O(_.iq,{text:v,className:"yt-list-item-view-model-wiz__title"}))}}),_.O(_.g,{cond:function(){return H().subtitle},
then:function(v){return _.O(_.iq,{text:v,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Pc");var oa=_.a(function(f){var H=f.data;var v=f.hideSelectionTextChevron;var t=f.TrailingAccessory;var M=f.isToggled;var h=f.disabled;var y=f.isSelectItem;var m=f.isCompact;var W=f.inPopup;var I=f.disableHorizontalPadding;f=f.isTappableWithoutSelect;var S={};return _.O("div",{class:_.S2("yt-list-item-view-model-wiz__label",(S["yt-list-item-view-model-wiz__container"]=function(){return!(y==null?0:y())},S["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!H().isDisabled||!(h==null||
!h())},S["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!H().subtitle},S["yt-list-item-view-model-wiz__container--compact"]=m,S["yt-list-item-view-model-wiz__container--tappable"]=f,S["yt-list-item-view-model-wiz__container--in-popup"]=W,S["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(I==null?void 0:I())&&!(y==null?0:y())},S))},_.O(u6_,{data:H,
isLeading:!0,hideSelectionTextChevron:v,isToggled:M}),_.O(aSZ,{data:H}),_.O(_.g,{cond:function(){return!!t},
then:function(){return _.O("div",{class:"yt-list-item-view-model-wiz__trailing"},t&&_.O(t,null))},
else:function(){return _.O(u6_,{data:H,isLeading:!1,hideSelectionTextChevron:v,isToggled:M})}}))},"Qc");var Gxr=_.a(function(f){var H=_.tV(f,{checked:!1});f=H.name;var v=H.onChange,t=H.onClick,M=H.checked,h=H.labelRenderable,y=H.hasLeadingLabel,m=H.labelClass,W=H.isCompact,I=H.selectElementClass;H=H.disableHorizontalPadding;var S="checkbox"+_.BC(_.r5),d=_.d6(function(L){t==null||t(L);return!1}),Z=_.d6(function(L){v==null||v(L);
return!1}),l={};
return _.O("checkbox-shape",null,_.O("label",{class:_.S2("checkbox-shape-wiz",m,(l["checkbox-shape-wiz--compact"]=W,l["checkbox-shape-wiz--disable-horizontal-padding"]=H,l))},_.O("input",{class:"checkbox-shape-wiz__input",id:S,checked:M,name:f,type:"checkbox","prop:checked":M,"on:change":Z,"on:click":d}),_.O(_.g,{cond:function(){return!(y==null?0:y())},
then:function(){return _.O(PWh,{isLeading:!0,selectElementClass:I})}}),_.O(_.g,{cond:function(){return!!h},
then:function(){return _.O("div",{class:"checkbox-shape-wiz__label"},h==null?void 0:h())}}),_.O(_.g,{cond:y,
then:function(){return _.O(PWh,{isLeading:!1,selectElementClass:I})}})))},"Rc");
Gxr.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var PWh=_.a(function(f){var H=f.selectElementClass;f={};return _.O("div",{class:_.S2("checkbox-shape-wiz__checkbox",H,(f["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(H==null?0:H())},f)),
"aria-hidden":"true"},_.O(_.JE,{icon:_.J("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.O(_.JE,{icon:_.J("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Sc");_.nB=_.a(function(f){var H=f.name;var v=f.onChange;var t=f.onClick;var M=f.checked;var h=f.labelRenderable;var y=f.useCheckIcon;var m=f.hasLeadingLabel;var W=f.labelClass;var I=f.isCompact;var S=f.selectElementClass;var d=f.ariaLabel;f=f.className;var Z="radio"+_.BC(_.r5),l=_.TN("input"),L=_.d6(function(X){l.value.checked=!(M==null||!M());v==null||v(X);return!1}),r=_.d6(function(X){t==null||t(X);
return!1}),n=_.d6(function(X){_.J("enable_ios_webview_radio_button_responsiveness")&&(X.preventDefault(),l.value.click())}),Q=_.V(_.gp(!1,void 0,"nXiHX")),C=Q.next().value,w=Q.next().value;
Q=_.d6(function(){var X;((X=_.t8().resolve(_.vh(_.RM)))==null?0:X.isKeyBoardInUse())&&w(!0)});
var c=_.d6(function(){w(!1)}),A={};
return _.O("radio-shape",{class:_.S2("radio-shape-wiz",f)},_.O("input",{el:l,class:"radio-shape-wiz__input",id:Z,"prop:checked":M,name:H,type:"radio","on:change":L,"on:click":r,"aria-label":d,"on:focusin":Q,"on:focusout":c}),_.O("label",{class:_.S2("radio-shape-wiz__label-container",W,(A["radio-shape-wiz--compact"]=I,A["radio-shape-wiz__label-container--keyboard-focused"]=C,A)),for:Z,"on:click":n},_.O(_.g,{cond:function(){return!(m==null?0:m())},
then:function(){return _.O(CW9,{checked:M,useCheckIcon:y,isLeading:!0,selectElementClass:S})}}),_.O(_.g,{cond:function(){return!!h},
then:function(){return _.O("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(d==null?0:d())?"true":"false"}},h==null?void 0:h())}}),_.O(_.g,{cond:m,
then:function(){return _.O(CW9,{checked:M,useCheckIcon:y,isLeading:!1,selectElementClass:S})}})))},"Tc");
_.nB.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var CW9=_.a(function(f){var H=f.useCheckIcon;var v=f.selectElementClass;f=function(){return(H==null?0:H())?"CHECK":_.J("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var t={};return _.O("div",{class:_.S2("radio-shape-wiz__radio",v,(t["radio-shape-wiz__radio--check-icon"]=H,t["radio-shape-wiz__radio--radio-default-style"]=function(){return!(v==null?0:v())},t)),
"aria-hidden":"true"},_.O(_.JE,{icon:f}),_.O(_.JE,{icon:f,active:function(){return!(H==null?0:H())}}))},"Uc");_.pB=_.a(function(f){var H=f.data;var v=f.isMenuItem;var t=f.isCompact;var M=f.onTap;var h=f.trailingAccessory;var y=f.hideSelectionTextChevron;var m=f.disabled;var W=f.inPopup;var I=f.disableHorizontalPadding;var S=f.isOverlay;f=f.isToggled;var d=_.uE(function(gB){return XFg(gB,H())}),Z=function(){return _.J("enable_web_shorts_captions_language_command")?Object.assign({},H(),d()):H()},l=function(){return!(Z().isSelected===void 0||!Z().selectionStyle||Z().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
L=function(){return(_.DO(Z().rendererContext)||M)&&!l()},r={},n=_.S2("yt-list-item-view-model-wiz__container",(r["yt-list-item-view-model-wiz__container--tappable"]=function(){return _.DO(Z().rendererContext)||l()},r["yt-list-item-view-model-wiz__container--compact"]=t,r["yt-list-item-view-model-wiz__container--in-popup"]=W,r["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(I==null?void 0:I())&&l()},r)),Q=function(){return Z().leadingImage||Z().leadingAccessory},
C=_.S2("yt-list-item-view-model-wiz__image-container",function(){return Q()?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"});
r=_.d6(function(gB){return void(M==null?void 0:M(gB))});
var w=_.Xge(),c=_.V(_.gp(!1,void 0,"iQppzc")),A=c.next().value,X=c.next().value,fg={data:Z,hideSelectionTextChevron:y,TrailingAccessory:h,isToggled:f,disabled:m,isSelectItem:l,isCompact:t,inPopup:W,disableHorizontalPadding:I,isTappableWithoutSelect:L};h={};return _.O("yt-list-item-view-model",{el:_.tE(_.nT(function(){return Z().rendererContext}),Ros(function(){return L==null?void 0:L()},{focusin:function(){var gB;
((gB=_.t8().resolve(_.vh(_.RM)))==null?0:gB.isKeyBoardInUse())&&X(!0)},
focusout:function(){X(!1)}})),
class:_.S2("yt-list-item-view-model-wiz",(h["yt-list-item-view-model-wiz--is-overlay"]=S,h["yt-list-item-view-model-wiz--keyboard-focused"]=A,h)),role:function(){return(v==null?0:v())?"menuitem":"listitem"},
tabindex:function(){var gB=L();return M||gB?0:void 0},
"on:keydown":w,"on:click":r},_.O(_.g,{cond:l,then:function(){return _.O(_.B6,null,_.O(_.Lc,{when:function(){return Z().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.O(Gxr,{labelRenderable:function(){return _.O(oa,Object.assign({},fg))},
isCompact:t,checked:function(){return Z().isSelected},
hasLeadingLabel:function(){return!!Q()},
labelClass:n,selectElementClass:C,disableHorizontalPadding:I})}),_.O(_.Lc,{when:function(){return Z().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.O(_.nB,{labelRenderable:function(){return _.O(oa,Object.assign({},fg))},
isCompact:t,checked:function(){return Z().isSelected},
hasLeadingLabel:function(){return!!Q()},
labelClass:n,selectElementClass:C})}),_.O(_.Lc,{when:function(){return Z().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.O(_.nB,{labelRenderable:function(){return _.O(oa,Object.assign({},fg))},
isCompact:t,checked:function(){return Z().isSelected},
hasLeadingLabel:function(){return!!Q()},
labelClass:n,selectElementClass:C,useCheckIcon:!0})}),_.O(_.xk,null,function(){return _.O(oa,Object.assign({},fg))}))},
else:function(){return _.O(oa,Object.assign({},fg))}}))},"Vc");
_.pB.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.Eng=_.a(function(f){var H=f.data;var v=f.onTap;var t=f.onSwitch;var M=f.overrideDisabled;f=f.disableHorizontalPadding;var h=_.V(_.sR(function(){var d;return((d=cwR(S()))==null?void 0:d.switchedOnByDefault)||!1})),y=h.next().value,m=h.next().value;
h=_.V(_.gp(!1,void 0,"ZHBkbb"));var W=h.next().value,I=h.next().value,S=function(){var d;if(!(d=H().switchButton)){var Z=H();d=M==null?void 0:M();Z={switchOnCommand:Z.switchOnCommand,switchOffCommand:Z.switchOffCommand,switchedOnByDefault:Z.switchedOnByDefault,isDisabled:Z.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:Z.a11yLabelSwitchedOn,a11yLabelSwitchedOff:Z.a11yLabelSwitchedOff};d!==void 0&&(Z.isDisabled=d);d={switchButtonViewModel:Z}}return d};
return _.O("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.O(_.pB,{data:function(){return{title:H().title,subtitle:H().attributedSubtitle,leadingImage:H().leadingImage,leadingAccessory:H().leadingAccessory,isDisabled:H().isDisabled}},
onTap:function(d){var Z=cwR(S());!Z||Z.isDisabled||H().ignoreTapUntilCommandCompletes&&W()||(v==null||v(d),EY_(Z,y(),d,H().ignoreTapUntilCommandCompletes,I),m(!y()),t==null||t(y()))},
trailingAccessory:function(){return _.O(_.Jj,{data:S},{switchButtonViewModel:function(d){return _.O(Q_h,{data:d.data,parentActive:y,handleOnTapEventInParent:!!v})}})},
disableHorizontalPadding:f}))},"Wc");var N1H=_.a(function(f){var H=_.V(_.sR(function(){var M,h;return!!((M=f.data())==null?0:(h=M.initialState)==null?0:h.isToggled)})),v=H.next().value,t=H.next().value;
H=_.d6(function(){t(!v())});
return _.O("toggleable-list-item-view-model",{el:_.tE(_.nT(function(){return f.data().rendererContext})),
class:_.S2("toggleableListItemViewModelHost",f.className),"on:click":H},_.O(_.g,{cond:function(){if(v()){var M=f.data().toggledListItem;M=_.U(M,_.ef)}else M=f.data().defaultListItem,M=_.U(M,_.ef);return M},
then:function(M){return _.O(_.pB,{data:M,isToggled:v,ariaLabel:function(){var h=v()?f.data().toggledListItem:f.data().defaultListItem,y;h=(y=_.U(h,_.ef))==null?void 0:y.rendererContext;var m;return(m=_.U(h,_.dC))==null?void 0:m.label},
ariaPressed:function(){return v()}})}}))},"Xc");var clM=_.ZC("DOWNLOAD",{},"Download"),XuM=_.ZC("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),Alo=_.ZC("RETRY",{},"Retry"),bUv=_.ZC("PAUSE_DOWNLOADING",{},"Pause downloading"),iUr=_.ZC("RESUME_DOWNLOAD",{},"Resume download"),AwE={text:clM,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},JY={text:XuM,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},kRs={text:Alo,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
bCr={text:bUv,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},iCB={text:iUr,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var kxa=_.a(function(f){var H=function(){var m=f.data();m=_.KT(m.rendererContext);var W;return(W=_.U(m,_.Sf))==null?void 0:W.videoId},v=_.uE(function(m){var W=H(),I=qYs(f.data());
return W?_.CY(m,W):I?_.EF(m,I):"TRANSFER_STATE_UNKNOWN"}),t=_.s7(_.gig,H),M=_.uE(function(m){return _.VDT(m,H(),qYs(f.data()))}),h=function(){return wFR(v(),t(),_.KT(f.data().rendererContext),!!qYs(f.data()))},y=function(){return M()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.O("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:y},_.O(_.g,{cond:function(){return!y()},
then:function(){return _.O(_.g,{cond:h,then:function(m){return _.O(_.eK,{each:m},function(W){return _.O(_.pB,{data:W,isCompact:f.isCompact,isMenuItem:f.isMenuItem,inPopup:f.inPopup,disableHorizontalPadding:f.disableHorizontalPadding})})}})}}))},"Yc");
kxa.idomCompat=!0;_.T1o=_.a(function(f){var H=f.data;var v=f.isCompact;var t=f.hideSelectionTextChevron;var M=f.inPopup;var h=f.isOverlay;var y=f.disableHorizontalPadding;var m=function(){return fXv(H())&&(M==null?void 0:M())};
f={};return _.O("yt-list-view-model",{class:_.S2("ytListViewModelHost",(f.ytListViewModelHostKaiosSpatNav=Wkg&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",f.ytListViewModelCollectionThumbnailClass=function(){return tt5(H())},f)),
role:function(){return m()?"menu":"list"},
style:_.ZE({"max-height":function(){var W,I=(W=H())==null?void 0:W.visibleElementCount;if(I)return tt5(H())?(I+.5)*48+"px":(I+.5)*40+"px"}})},_.O(_.Jj,{data:function(){return H().listItems}},{listItemViewModel:function(W){return _.O(_.pB,{data:W.data,
isMenuItem:m,isCompact:v,hideSelectionTextChevron:t,inPopup:M,isOverlay:h,disableHorizontalPadding:y})},
toggleableListItemViewModel:function(W){return _.O(N1H,{data:W.data})},
downloadListItemViewModel:function(W){return _.O(kxa,{data:W.data,isMenuItem:m,isCompact:v,inPopup:M,disableHorizontalPadding:y})},
switchListItemViewModel:function(W){return _.O(_.Eng,{data:W.data,disableHorizontalPadding:y})}}))},"Zc");
_.T1o.idomCompat=!0;var wuC=_.a(function(f){var H=f.data;var v=f.isOverlay;f={};return _.O("yt-course-perks-view-model",{class:_.S2("ytwCoursePerksViewModelHost",(f.ytwCoursePerksViewModelHostOverlay=v,f))},_.O("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.O(_.iq,{text:function(){return H().title}})),_.O("div",null,_.O(_.g,{cond:function(){return H().perks},
then:function(t){return _.O(_.T1o,{data:function(){return{listItems:t()}},
isCompact:!0,isOverlay:v})}})))},"$c");_.yn(wuC,"yt-course-perks-view-model",{props:{data:_.Rm,isOverlay:_.Rm}});_.yn(_.a(function(f){var H=f.data;return _.O("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.O("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.O(_.iq,{text:function(){return H().title}})),_.O("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.O(_.iq,{text:function(){return H().progressSummary}})),_.O("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.O("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.ZE({width:function(){return H().progressPercentage*100+"%"}})})))},"ad"),"yt-course-progress-view-model",{props:{data:_.ki}});var qn9=_.a(function(f){var H={};return _.O("yt-progress-view-model",{class:_.S2("ytwProgressViewModelHost",(H.ytwProgressViewModelHostOverlay=_.vK(f.isOverlay,!1),H))},_.O(_.g,{cond:function(){return f.data().progressSummary},
then:function(v){return _.O("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.O(_.iq,{text:v}))}}),_.O("div",{class:"ytwProgressViewModelHostProgressContainer"},_.O(_.g,{cond:function(){return f.data().leadingLabel},
then:function(v){return _.O("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.O(_.iq,{text:v}))}}),_.O("div",{class:"ytwProgressViewModelHostProgressBar"},_.O("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(f.data().progressPercentage||0)*100+"%"}}))))},"bd");var Q9=_.a(function(f){var H=f.starNumber;var v=f.data;var t=function(){var M;return((M=v())==null?void 0:M.rating)||0};
return _.O(_.g,{cond:function(){return H()},
then:function(M){return _.O(_.B6,null,_.O(_.Lc,{when:function(){return t()>=M()-.25}},function(){return _.O("div",{class:"ytStarRatingViewModelHostStar"},_.O(_.JE,{icon:"STAR_FILLED"}))}),_.O(_.Lc,{when:function(){return t()>=M()-.75}},function(){return _.O("div",{class:"ytStarRatingViewModelHostStar"},_.O(_.JE,{icon:"STAR_HALF"}))}),_.O(_.xk,null,function(){return _.O("div",{class:"ytStarRatingViewModelHostStar"},_.O(_.JE,{icon:"STAR_BORDER"}))}))}})},"cd"),fG_=_.a(function(f){f=f.data;
return _.O("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.O(Q9,{starNumber:1,data:f}),_.O(Q9,{starNumber:2,data:f}),_.O(Q9,{starNumber:3,data:f}),_.O(Q9,{starNumber:4,data:f}),_.O(Q9,{starNumber:5,data:f}))},"dd");_.yn(_.a(function(f){var H=_.tV(f,{}).data;return _.O("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.O("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.O(_.iq,{text:function(){var v;return(v=H())==null?void 0:v.title}})),_.O("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.O(_.g,{cond:function(){return H().starProgressViewModels},
then:function(v){return _.O("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.O(_.Jj,{data:v},{progressViewModel:qn9}))}}),_.O("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.O("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.O(_.iq,{text:function(){var v;
return(v=H())==null?void 0:v.averageRatingLabel}})),_.O(_.g,{cond:function(){return H().zeroStateText},
then:function(v){return _.O("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.O(_.iq,{text:v}))}}),_.O(_.g,{cond:function(){return H().starRatingViewModel},
then:function(v){return _.O("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.O(_.Jj,{data:v},{starRatingViewModel:fG_}))}}),_.O("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.O(_.iq,{text:function(){var v;
return(v=H())==null?void 0:v.totalRatingsCountLabel}})))))},"ed"),"yt-course-ratings-view-model",{props:{data:_.Rm}});var Hnh;Hnh={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"}};_.vjb=_.a(function(f){var H=_.TN("yt-learning-journey-loader-view-model"),v=_.g3();_.ru(function(){requestAnimationFrame(function(){var M;(M=v.lottieEl)==null||M.addEventListener("DOMLoaded",function(){var h;(h=f.onLottieLoaded)==null||h.call(f)})});
var t=f.data().browseEndpoint;t&&_.XA(t)});
return _.O("yt-learning-journey-loader-view-model",{class:_.S2("learningJourneyLoaderViewModelHost",f.className),"data-target-id":function(){var t;return((t=f.data)==null?void 0:t.call(f).targetId)||""},
el:H},_.O(_.j3,{className:_.S2("learningJourneyLoaderViewModelLoader",f.className),animationName:function(){return Hnh.animationConfig.name},
data:Hnh,animationRef:v}))},"fd");_.yn(_.vjb,"yt-learning-journey-loader-view-model",{props:{data:_.ki,className:_.Rm,onLottieLoaded:_.Rm}});var htN=new Set,Mt_=null;var M9H=_.a(function(f){var H=null,v=null,t=function(){return f.data()},M=function(){var r=t();
var n=_.t8().resolve(_.vh(_.TK));r=n!=null&&n()?r.darkThemeColorPalette:r.lightThemeColorPalette;return{primaryTextColor:Uw(r,0),secondaryTextColor:Uw(r,1),optionColor:Uw(r,2),backgroundColor:Uw(r,3),videoBackgroundColor:Uw(r,4)}},h=function(){return!!M().optionColor},y=_.V(_.gp(-1,void 0,"Wnp7o")),m=y.next().value,W=y.next().value,I=function(r){return t().correctAnswerIndex===r},S=function(){return m()!==-1};
y=_.V(_.gp("",void 0,"CFFQk"));var d=y.next().value,Z=y.next().value,l=function(){var r=S(),n=m()===t().correctAnswerIndex;return r?n?264685:264684:264683},L=function(r){return m()===t().correctAnswerIndex&&I(r)};
return _.O("learning-journey-quiz-view-model",{class:_.S2("learningJourneyQuizViewModelHost",f.className),style:_.ZE({background:function(){return M().backgroundColor}})},_.O("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},d),_.O(_.g,{cond:function(){return!!t().video},
then:function(){return _.O("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.ZE({background:function(){return M().videoBackgroundColor}})},_.O(_.Jj,{data:function(){return t().video}},{lockupViewModel:function(r){return _.O(_.YM,{data:r.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.O("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.O("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.O("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.O(_.g,{cond:function(){return!!t().aiGeneratedQuizLabel},
then:function(){return _.O("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.O(_.iq,{text:function(){return t().aiGeneratedQuizLabel}}))}}),_.O("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.ZE({"align-items":function(){return t().overflowMenu?"start":"center"}})},_.O("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.ZE({"min-height":function(){return t().overflowMenu?"48px":"26px"}})},_.O("div",{class:"learningJourneyQuizYoututorText",
el:_.tE(function(r){_.lw(l(),r,H,function(n){H=n})}),
style:_.ZE({color:function(){return M().primaryTextColor}}),
"client-ve-type":l},_.O(_.iq,{text:function(){return t().questionHeaderText}})))),_.O("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.tE(function(r){_.lw(264688,r,v,function(n){v=n})}),
style:_.ZE({color:function(){return M().secondaryTextColor}}),
"client-ve-type":264688},_.O(_.iq,{text:function(){var r=t();return S()?r.explanationText:r.questionSubheaderText}}))),_.O("div",{role:"group",
class:_.S2("learningJourneyQuizViewModelHostQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.O(_.eK,{each:function(){return t().optionsData||[]}},function(r,n){var Q={};
return _.O("button",{class:_.S2("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(Q.learningJourneyQuizViewModelHostQuizHover=function(){return!S()},Q.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=h,Q.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return S()&&I(n())},Q.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){var C;
if(C=m()!==t().correctAnswerIndex)C=n(),C=m()===C;return C},Q)),
"on:click":_.d6(function(){if(S())return!1;W(n());var C,w;Z(I(n())?((C=t().successTitle)==null?void 0:C.content)||"":((w=t().failureTitle)==null?void 0:w.content)||"");return!1}),
style:_.ZE({background:"transparent"}),"aria-description":function(){var C,w;return S()?I(n())?(C=t().successTitle)==null?void 0:C.content:(w=t().failureTitle)==null?void 0:w.content:""},
"aria-disabled":S,"client-ve-type":264686},_.O("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.O(_.iq,{text:r.optionText}),_.O(_.g,{cond:function(){var C=n(),w;if(w=S())w=m()===C||I(C);return w},
then:function(){return _.O(t9a,{isOptionCorrect:I,optionIndex:n,isOptionSelectedAndCorrect:L,colors:M})}})))}),_.O(_.g,{cond:S,
then:function(){return _.O("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.O("div",{class:"learningJourneyQuizYoututorExplanationText"},_.O(_.iq,{text:function(){return t().explanationHeaderText}})),_.O(_.iq,{text:function(){return t().optionsData[m()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"gd"),t9a=_.a(function(f){var H={};
return _.O("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,width:24,viewBox:"0 0 24 24",class:_.S2("learningJourneyQuizYoututorOptionIconTrailing",(H.learningJourneyQuizViewModelHostQuizPulse=function(){return f.isOptionSelectedAndCorrect(f.optionIndex())},H.learningJourneyQuizYoututorIconIncorrectFill=function(){return!f.isOptionSelectedAndCorrect(f.optionIndex())&&!f.isOptionCorrect(f.optionIndex())},H.learningJourneyQuizYoututorIconCorrectFill=function(){return f.isOptionCorrect(f.optionIndex())},
H))},_.O("path",{d:function(){var v=f.optionIndex();
return f.isOptionCorrect(v)?"M12,2C6.5,2,2,6.5,2,12c0,5.5,4.5,10,10,10s10-4.5,10-10C22,6.5,17.5,2,12,2z M9.8,17.3l-4.2-4.1L7,11.8l2.8,2.7L17,7.4 l1.4,1.4L9.8,17.3z":"M12 1.5C18.0751 1.5 23 6.42487 23 12.5C23 18.5751 18.0751 23.5 12 23.5C5.92487 23.5 1 18.5751 1 12.5C1 6.42487 5.92487 1.5 12 1.5ZM16.207 8.29297C15.8165 7.90246 15.1835 7.90246 14.793 8.29297L12 11.0859L9.20703 8.29297C8.81651 7.90247 8.18349 7.90247 7.79297 8.29297C7.40245 8.68349 7.40246 9.31651 7.79297 9.70703L10.5859 12.5L7.79297 15.293C7.40247 15.6835 7.4025 16.3165 7.79297 16.707C8.1835 17.0976 8.81651 17.0976 9.20703 16.707L12 13.9141L14.793 16.707L14.8691 16.7754C15.2619 17.0958 15.8409 17.0731 16.207 16.707C16.5731 16.3409 16.5958 15.7619 16.2754 15.3691L16.207 15.293L13.4141 12.5L16.207 9.70703C16.5975 9.31651 16.5975 8.68349 16.207 8.29297Z"}}))},
"hd");
M9H.idomCompat=!0;var hen;_.Rea=_.a(function(f){var H=null,v=null,t=null,M=function(){return f.data()},h=function(){var c=M();
var A=_.t8().resolve(_.vh(_.TK));c=A!=null&&A()?c.darkThemeColorPalette:c.lightThemeColorPalette;return{primaryTextColor:eO(c,0),secondaryTextColor:eO(c,1),optionColor:eO(c,2),backgroundColor:eO(c,3),videoBackgroundColor:eO(c,4)}},y=function(){return!!h().optionColor},m=_.V(_.gp(-1,void 0,"oGWitb")),W=m.next().value,I=m.next().value,S=function(c){return W()===c},d=function(c){return M().correctAnswerIndex===c},Z=function(){return W()!==-1},l=function(){return W()===M().correctAnswerIndex},L=function(){var c=
M(),A=Z(),X=l();
return A?X?c.successTitle:c.failureTitle:c.questionHeaderText},r=function(){var c=Z(),A=l();
return c?A?264685:264684:264683},n=function(){var c=M();
return Z()?c.explanationText:c.questionSubheaderText},Q=function(){return!!M().video},C=function(c){return l()&&d(c)},w=_.d6(function(){I(-1);
return!1});
return _.O(_.g,{cond:function(){return M().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.O(M9H,{data:function(){return M()}})},
else:function(){return _.O("learning-journey-quiz-view-model",{class:_.S2("learningJourneyQuizViewModelHost",f.className),style:_.ZE({background:function(){return h().backgroundColor}})},_.O(_.g,{cond:Q,
then:function(){return _.O("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.ZE({background:function(){return h().videoBackgroundColor}})},_.O(_.Jj,{data:function(){return M().video}},{lockupViewModel:function(c){return _.O(_.YM,{data:c.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.O("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.O("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.O("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.O(_.g,{cond:function(){return!!M().aiGeneratedQuizLabel},
then:function(){return _.O("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.O(_.iq,{text:function(){return M().aiGeneratedQuizLabel}}))}}),_.O("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.ZE({"align-items":function(){return M().overflowMenu?"start":"center"}})},_.O("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.ZE({"min-height":function(){return M().overflowMenu?"48px":"26px"}})},_.O("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.tE(function(c){_.lw(r(),c,H,function(A){H=A})}),
style:_.ZE({color:function(){return h().primaryTextColor}}),
"client-ve-type":r},_.O(_.iq,{text:L}))),_.O("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.O(_.g,{cond:Z,then:function(){return _.O("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.tE(function(c){_.lw(264687,c,v,function(A){v=A})}),
"on:click":w,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.O("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.ZE({fill:function(){return h().primaryTextColor}})},_.O("path",{d:"M440-122q-121-15-200.5-105.5T160-440q0-66 26-126.5T260-672l57 57q-38 34-57.5 79T240-440q0 88 56 155.5T440-202v80zm80 0v-80q87-16 143.5-83T720-440q0-100-70-170t-170-70h-3l44 44-56 56-140-140 140-140 56 56-44 44h3q134 0 227 93t93 227q0 121-79.5 211.5T520-122z"})))}}),
_.O(_.Jj,{data:function(){return M().overflowMenu}},{buttonViewModel:function(c){return _.O(_.Wp,{data:c.data})}}))),_.O("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.tE(function(c){_.lw(264688,c,t,function(A){t=A})}),
style:_.ZE({color:function(){return h().secondaryTextColor}}),
"client-ve-type":264688},_.O(_.iq,{text:n}))),_.O("div",{role:"group",class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.O(_.eK,{each:function(){return M().optionsData||[]}},function(c,A){var X={};
return _.O("button",{class:_.S2("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizViewModelHostQuizOptionsBorderRound",(X.learningJourneyQuizViewModelHostQuizHover=function(){return!Z()},X.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=y,X.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return C(A())},X.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!l()&&S(A())},X.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return Z()&&
!S(A())},X)),
"on:click":_.d6(function(){if(Z())return!1;I(A());return!1}),
style:_.ZE({background:function(){var fg=A();return Z()&&S(fg)?"":y()?h().optionColor:"transparent"}}),
"aria-disabled":Z,"client-ve-type":264686},_.O("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.O(_.g,{cond:Z,then:function(){return _.O(hen,{isOptionCorrect:d,optionIndex:A,isOptionSelectedAndCorrect:C,colors:h})}}),_.O(_.iq,{text:c.optionText})))})))))}})},"id");
hen=_.a(function(f){var H={};return _.O("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var v=f.optionIndex();return f.isOptionCorrect(v)?"0 0 24 24":"0 -960 960 960"},
class:_.S2("learningJourneyQuizViewModelHostQuizOptionIconLeading",(H.learningJourneyQuizViewModelHostQuizPulse=function(){return f.isOptionSelectedAndCorrect(f.optionIndex())},H)),
style:_.ZE({fill:function(){return f.colors().primaryTextColor}})},_.O("path",{d:function(){var v=f.optionIndex();
return f.isOptionCorrect(v)?"M12,2C6.5,2,2,6.5,2,12c0,5.5,4.5,10,10,10s10-4.5,10-10C22,6.5,17.5,2,12,2z M9.8,17.3l-4.2-4.1L7,11.8l2.8,2.7L17,7.4 l1.4,1.4L9.8,17.3z":"M330-120L120-330v-300l210-210h300l210 210v300L630-120H330zm36-190l114-114 114 114 56-56-114-114 114-114-56-56-114 114-114-114-56 56 114 114-114 114 56 56z"}}))},"jd");
_.Rea.idomCompat=!0;_.yn(_.Rea,"learning-journey-quiz-view-model",{props:{data:_.ki,className:_.ki}});var V99=_.a(function(f){var H=_.V((0,_.rC_)(function(){var v;return{targetId:(v=f.data().config)==null?void 0:v.suspenseKey,contents:[f.data()]}})).next().value;
return _.O("yt-suspense-view-model",{class:_.S2("ytSuspenseViewModelHost")},_.O(_.Jj,{data:function(){if(H().contents.length>0){var v;return(v=H().contents[0].config)==null?void 0:v.contents}}},{lockupViewModel:_.YM}))},"kd");var y0a=_.a(function(f){var H=_.tV(f,{palette:void 0,isLastItem:!1}),v=H.palette,t=H.isLastItem,M=function(){return f.data().isHighlighted},h=function(){var W;
return Vtr((W=v())==null?void 0:W.iconDisabledColor)},y=function(){var W;
return Vtr((W=v())==null?void 0:W.primaryTitleColor)},m=function(){var W;
return Vtr((W=v())==null?void 0:W.secondaryTitleColor)};
H={};return _.O("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.tE(_.nT(function(){return f.data().rendererContext}))},_.O(_.Jj,{data:function(){return f.data().thumbnail}},{thumbnailViewModel:_.qv}),_.O("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.O("div",{class:_.S2("ytMacroMarkerListItemViewModelTimeDescription",(H.ytMacroMarkerListItemViewModelHighlighted=M,H)),
style:_.ZE({"background-color":function(){return M()?y():h()},
color:function(){return M()?"":m()}})},_.O(_.iq,{text:function(){return f.data().timestamp}})),_.O("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.ZE({"background-color":function(){return t()?"transparent":h()}})}),_.O("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(M()?y():m())}},_.O(_.iq,{text:function(){return f.data().title}}))))},"ld");_.u4=_.a(function(f){function H(hN){C("transform:translateX("+(_.a8("HTML_DIR")==="rtl"?"":"-")+hN+"px)")}
function v(hN){return Math.min(Math.max(hN,0),Q()-fg())}
function t(){var hN=A()+U5();return M()?(Math.round(fg()/hN)||1)*hN:0}
var M=function(){return f.data().items||[]},h=function(){return f.data().previousButton},y=function(){return f.data().nextButton},m=function(){var hN,Ho;
return(Ho=(hN=f.disableArrows)==null?void 0:hN.call(f))!=null?Ho:!1},W=function(){var hN;
return!((hN=f.forceNarrowLayout)==null||!hN.call(f))},I=_.sg(function(){var hN;
return!((hN=f.centerAlignItems)==null||!hN.call(f))&&Q()<=fg()},void 0,"DL81uf"),S=_.TN("horizontal-shelf-view-model"),d=_.TN("div"),Z=_.V(_.gp(0,void 0,"xZFppf")),l=Z.next().value,L=Z.next().value;
Z=_.V(_.gp(0,void 0,"pH9gvd"));var r=Z.next().value,n=Z.next().value,Q=r;r=_.V(_.gp("",void 0,"oYcWy"));Z=r.next().value;var C=r.next().value;r=_.V(_.gp(0,void 0,"lI6NJb"));var w=r.next().value,c=r.next().value,A=w;r=_.V(_.gp(0,void 0,"yPqhW"));w=r.next().value;var X=r.next().value,fg=w;r=_.V(_.gp(!1,void 0,"u4CvOe"));var gB=r.next().value,O5=r.next().value;r=_.V(_.gp(0,void 0,"oQOBbe"));w=r.next().value;var s5=r.next().value,U5=w;r=_.V(_.gp(0,void 0,"fCqgxd"));var lH=r.next().value,E5=r.next().value;
r=_.V(_.gp("50%",void 0,"kjP5ke"));var uH=r.next().value,Rn=r.next().value,pr=function(){var hN,Ho=(hN=f.data())==null?void 0:hN.responsiveContainerConfiguration,J9,Ox;return Ho?GTs(Ho==null?void 0:Ho.responsiveSize):(Ox=(J9=f.sizing)==null?void 0:J9.call(f))!=null?Ox:"STANDARD"};
r=_.sg(function(){return!m()&&l()>0},void 0,"oVCO3d");
w=_.sg(function(){return!m()&&l()<Q()-fg()},void 0,"MQ6Gb");
var gh=function(){L(v(l()-t()));H(l())},fr=function(){L(v(l()+t()));
H(l())},sb=function(){S.value!==null&&Kr()},In;
_.Kc(function(){Kr();window.ResizeObserver?(In=new ResizeObserver(_.SI(sb,0)),In.observe(S.value)):window.addEventListener("resize",sb)});
_.Dt(function(){if(window.ResizeObserver){var hN;(hN=In)==null||hN.disconnect()}else window.removeEventListener("resize",sb)});
var Kr=function(){var hN=S.value.clientWidth,Ho=f.includeMargin!==void 0?f.includeMargin():!1,J9;var Ox=f.hasPeek!==void 0?f.hasPeek():!((J9=f.data())==null||!J9.hasPeek);hN=_.GV({containerWidth:hN,hasPeek:Ox,sizing:pr(),marginSettings:Ho?W()?4:1:0});s5(hN.gutter);E5(hN.margin);c(hN.itemWidth);O5(hN.maxContainerWidth<528||W());X(hN.maxContainerWidth);M()&&n((hN.itemWidth+hN.gutter)*M().length-hN.gutter);if(M()){var lC;if(((lC=f.thumbnailAspectRatio)==null?void 0:lC.call(f))!==void 0){var vA;Rn(A()/
k8r((vA=f.thumbnailAspectRatio)==null?void 0:vA.call(f))/2+"px")}else Rn("50%")}},BA={},TH={};
return _.O("horizontal-shelf-view-model",{class:_.S2("ytwHorizontalShelfViewModelHost",f.className),el:S},_.O(_.g,{cond:function(){var hN;return f.data().header&&!((hN=f.horizontalShelfExperiments)==null?0:hN.call(f).hideHeader)},
then:function(){return _.O("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.ZE({width:function(){return fg()+"px"},
padding:function(){return"0 "+lH()+"px"}})},_.O(_.Jj,{data:function(){return f.data().header}},{sectionHeaderViewModel:function(hN){return _.O(_.$b,{data:hN.data,
disableHorizontalPadding:!0,forceSmallLayout:gB,useResponsiveLayout:!0})}}))}}),_.O("div",{class:_.S2("ytwHorizontalShelfViewModelOuterContainer",(BA.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return I()},BA)),
style:_.ZE({"margin-top":function(){var hN,Ho=f.data().header&&!((hN=f.horizontalShelfExperiments)==null?0:hN.call(f).hideHeader),J9;return(((J9=f.ensureMarginTop)==null?0:J9.call(f))&&!Ho?12:0)+"px"}})},_.O("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.ZE({width:function(){return fg()+"px"},
padding:function(){return"0 "+lH()+"px"},
overflow:function(){return m()?"auto":"hidden"}})},_.O("div",{class:_.S2("ytwHorizontalShelfViewModelItems",(TH.ytwHorizontalShelfViewModelCenterAlignItems=function(){return I()},TH)),
el:d,style:Z},_.O(_.Jj,{data:M},{macroMarkerListItemViewModel:function(hN,Ho){return _.O("div",{style:_.ZE({width:function(){return A()+"px"},
"margin-right":function(){return(Ho()===M().length-1?0:U5())+"px"}})},_.O(y0a,{data:hN.data,
palette:_.vK(f.palette),isLastItem:function(){return Ho()===M().length-1}}))},
lockupViewModel:function(hN,Ho){var J9=hN.data;return _.O("div",{style:_.ZE({width:function(){return A()+"px"},
"margin-right":function(){return(Ho()===M().length-1?0:U5())+"px"}})},_.O(_.YM,{data:J9,
containerType:4,sizing:pr,protectBackground:f.protectBackground,thumbnailFixedWidth:function(){return yUb(J9())+"px"},
thumbnailTargetWidth:function(){return yUb(J9())}}))},
suspenseViewModel:function(hN,Ho){return _.O("div",{style:_.ZE({width:function(){return A()+"px"},
"margin-right":function(){return(Ho()===M().length-1?0:U5())+"px"}})},_.O(V99,{data:hN.data}))}}))),_.O(_.g,{cond:r,
then:function(){return _.O("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.ZE({top:function(){return uH()}})},_.O(_.Jj,{data:h},{buttonViewModel:function(hN){return _.O(_.Wp,{data:hN.data,
onClick:gh})}}))}}),_.O(_.g,{cond:w,
then:function(){return _.O("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.ZE({top:function(){return uH()}})},_.O(_.Jj,{data:y},{buttonViewModel:function(hN){return _.O(_.Wp,{data:hN.data,
onClick:fr})}}))}})))},"md");
_.u4.idomCompat=!0;var Ydb=_.a(function(f){var H=function(){return f.data().targetId||""},v=function(){var r;
return((r=f.data())==null?void 0:r.expansionEntityKey)||""},t=_.s7(_.Pn,v),M=!0,h=function(){var r;
return((r=t())==null?void 0:r.value)===H()},y=function(r){_.HK(_.lF("stringEntity",v(),{key:v(),
value:r?H():""}))};
_.ru(function(){M=!1;f.data().isExpanded&&y(!0)});
var m=function(){if(h()){var r=!0;f.onCollapse!==void 0&&(r=f.onCollapse());r&&y(!1)}else y(!0)},W=_.d6(m),I=function(){var r;
return(((r=f.accordionStyle)==null?void 0:r.call(f))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},S=_.TN("div"),d=function(){var r,n;
return(n=(r=_.U(f.data().rendererContext,_.dC))==null?void 0:r.label)!=null?n:""},Z=function(){var r,n;
return{disabled:(r=f.hideIfNotExpanded)==null?void 0:r.call(f),ariaHidden:(n=f.hideIfNotExpanded)==null?void 0:n.call(f)}},l={},L={};
return _.O("yt-accordion-item-view-model",{class:_.S2("ytAccordionItemViewModelHost",f.className,(l.ytAccordionItemViewModelExpanded=function(){return h()},l.ytAccordionItemViewModelHidden=function(){var r;
return(r=f.hideIfNotExpanded)==null?void 0:r.call(f)},l.ytAccordionItemViewModelMini=I,l)),
"data-target-id":H},_.O("div",{class:"ytAccordionItemViewModelContainer"},_.O("div",{class:"ytAccordionItemViewModelLeftSection","on:click":W,title:d,"aria-hidden":function(){var r;return(r=f.hideIfNotExpanded)==null?void 0:r.call(f)}},_.O(_.iq,{text:function(){return f.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:d})),_.O("div",{class:"ytAccordionItemViewModelRightSection"},_.O(_.Jj,{data:function(){return h()?f.data().expandButton:f.data().collapseButton}},{buttonViewModel:function(r){return _.O(_.Wp,{data:r.data,
className:"ytAccordionItemViewModelToggleButton",onClick:m,buttonOverrides:Z})}}))),_.O("div",{class:"ytAccordionItemViewModelContainer"},_.O("div",{class:_.S2("ytAccordionItemViewModelContent",(L.ytAccordionItemViewModelExpandedSubtitle=function(){return h()},L)),
el:S,style:_.ZE({"max-height":function(){return M?"auto":h()?S.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!h()}},_.O(_.g,{cond:function(){return!I()},
then:function(){return _.O(_.iq,{text:function(){return f.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.O(_.Jj,{data:function(){return f.data().content}},{horizontalShelfViewModel:function(r){return _.O(_.u4,{data:r.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"nd");_.m4o=_.a(function(f){var H=_.V((0,_.rC_)(f.data)).next().value,v=function(){return f.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},t=function(){return v()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},M=_.V(_.gp(!0,void 0,"FVec2e")),h=M.next().value,y=M.next().value,m=function(){return t()&&h()},W=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){y(!h())}}},I=_.d6(function(){H().onTitleTap&&_.XA(H().onTitleTap||{})});
M={};return _.O("yt-accordion-view-model",{class:_.S2("ytAccordionViewModelHost",(M.ytAccordionViewModelMinimized=function(){return m()},M)),
"data-target-id":function(){return f.data().targetId||""}},_.O(_.g,{cond:function(){return t()||!!H().title},
then:function(){return _.O("div",{class:"ytAccordionViewModelHeader"},_.O("div",{class:"ytAccordionViewModelTitleSection"},_.O("div",{class:"ytAccordionViewModelTitleWrapper"},_.O(_.g,{cond:function(){return!!f.data().headerIcon},
then:function(){return _.O(_.JE,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var S;return(S=f.data().headerIcon)==null?void 0:S.iconType}})}}),_.O("div",{class:"ytAccordionViewModelTitle",
"on:click":I},_.O(_.iq,{className:"ytAccordionViewModelTitleText",text:function(){return H().title}})))),_.O("div",{class:"ytAccordionViewModelButtonSection"},_.O(_.g,{cond:t,
then:function(){return _.O(_.$p,{data:W,iconName:function(){return m()?"chevron_down":"chevron_collapse"}})}})))}}),_.O("div",{class:"ytAccordionViewModelContent"},_.O(_.Jj,{data:function(){return H().contents}},{accordionItemViewModel:function(S){return _.O(Ydb,{data:S.data,
className:"ytAccordionViewModelRow",accordionStyle:v,hideIfNotExpanded:m,onCollapse:function(){return t()?(y(!0),!1):!0}})}})),_.O("div",null,_.O(_.g,{cond:function(){return!t()&&(!!H().disclaimerFooter||!!H().footer)},
then:function(){return _.O("div",{class:"ytAccordionViewModelFooter"},_.O(_.iq,{text:function(){return H().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.O(_.Jj,{data:function(){return f.data().footer}},{flexibleActionsViewModel:function(S){return _.O(_.ot,{data:S.data,
layout:0})}}))}})))},"od");_.yn(_.m4o,"yt-accordion-view-model",{props:{data:_.ki}});_.yn(_.a(function(f){var H=null,v=null,t,M=(t=_.t8().resolve(_.vh(_.TK)))==null?void 0:t(),h=_.V(_.gp(!1,void 0,"EVXQGb"));t=h.next().value;var y=h.next().value;h=_.V(_.gp(!0,void 0,"W9FIJf"));var m=h.next().value,W=h.next().value,I=_.TN("textarea",function(n){_.lw(264503,n,H,function(Q){H=Q})}),S=function(n){y(!0);
n={learningJourneyFormData:{query:n}};_.XA(f.data().searchEndpoint||{},{form:{formData:n}});return!1},d=_.d6(function(n){n.target.closest("button-view-model")&&y(!0)});
h=_.d6(function(){W(I.value.value.length===0)});
var Z=_.d6(function(n){if(n.key==="Enter"&&!n.shiftKey&&!m()){var Q=n.target;n.preventDefault();S(Q.value)}}),l={},L={},r={};
return _.O("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.O("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.O(_.Hn,{data:function(){return f.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.O("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.O("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.O("div",{class:_.S2("ytLearningJourneyZeroStateSearchBar",(l.ytLearningJourneyZeroStateSearchBarDark=M,l))},_.O("textarea",{class:_.S2("ytLearningJourneyZeroStateTextInput",(L.ytLearningJourneyZeroStateTextInputDark=M,L)),el:I,"on:keyup":h,"on:keydown":Z,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.O("div",{class:_.S2("ytLearningJourneyZeroStateSearchButtonContainer",(r.ytLearningJourneyZeroStateSearchButtonContainerDark=M,r))},_.O(_.Wp,{data:function(){return _.U(f.data().searchButton,_.af)},
className:"search-button",onClick:function(){return S(I.value.value)},
buttonOverrides:function(){return{disabled:m(),style:M?"mono-inverse":"mono",size:"XL"}}}))),_.O(_.g,{cond:function(){return!!f.data().errorBanner},
then:function(){return _.O("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.tE(function(n){_.lw(264617,n,v,function(Q){v=Q})})},_.O(_.Jj,{data:function(){return f.data().errorBanner}},{alertBannerViewModel:function(n){return _.O(_.nnh,{data:n.data,
"client-ve-type":264617})}}))}})),_.O(_.g,{cond:t,
then:function(){return _.O("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.O(_.Jj,{data:function(){return f.data().loader}},{learningJourneyLoaderViewModel:function(n){return _.O(_.vjb,{data:n.data})}}))},
else:function(){return _.O("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.O(_.g,{cond:function(){return!!f.data().learningJourneyShelf},
then:function(){return _.O("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.O("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return f.data().learningJourneySectionTitle}),_.O(_.Jj,{data:function(){return f.data().learningJourneyShelf}},{horizontalShelfViewModel:function(n){return _.O(_.u4,{data:n.data,
centerAlignItems:!0})}}))}}),_.O("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.O("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return f.data().suggestedJourneySectionTitle}),_.O("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":d},_.O(_.Jj,{data:function(){return f.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(n){return _.O(_.ot,{data:n.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"pd"),"yt-learning-journey-zero-state",{props:{data:_.ki}});var $4T=_.a(function(f){var H=f.data;return _.O("ytvl-live-leaderboard-item-action-content-view-model",{class:_.S2("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.O(_.iq,{text:function(){var v;return(v=H())==null?void 0:v.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.O(_.Jj,{data:function(){return H().actionButton}},{buttonViewModel:function(v){return _.O(_.Wp,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:v.data})}}))},"qd");var WDn=_.a(function(f){var H=f.data;return _.O("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.S2("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.O(_.iq,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var v;return(v=H())==null?void 0:v.displayName},
ellipsisTruncate:!0}),_.O(_.Jj,{data:function(){return H().badge}},{buttonViewModel:function(v){return _.O(_.Wp,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:v.data})}}))},"rd");_.yn(_.a(function(f){var H=f.data;return _.O("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.O("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.O(_.iq,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var v;return(v=H())==null?void 0:v.rank}})),_.O("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.O(_.Jj,{data:function(){return H().avatar}},{avatarViewModel:_.K5})),_.O("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.O(_.Jj,{data:function(){return H().content}},{liveLeaderboardItemChannelContentViewModel:WDn,
liveLeaderboardItemActionContentViewModel:$4T})),_.O(_.iq,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var v;return(v=H())==null?void 0:v.points}}))},"sd"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.ki}});_.yn(_.a(function(f){var H=f.data;return _.O("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.O(_.iq,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var v,t;return(v=H())==null?void 0:(t=v.ranking)==null?void 0:t.rank}}),_.O("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.O(_.Jj,{data:function(){return H().avatar}},{avatarViewModel:_.K5})),_.O(_.iq,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var v,t;return(v=H())==null?void 0:(t=v.channelContent)==null?void 0:t.channelName}}),_.O(_.iq,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var v;return(v=H())==null?void 0:v.points}}))},"td"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.ki}});var Onr=_.a(function(f){f=_.tV(f,{wrapper:!1}).wrapper;return _.O(_.g,{cond:f,then:function(){return _.O("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.O("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.O("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"ud");
Onr.idomCompat=!0;var gjh=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],IGb=_.a(function(f){var H=f.data;var v=_.tE(),t=_.sg(function(){return H().command},void 0,"o6t5Yb");
_.K4(function(){t()&&_.Cu(t(),{form:{element:v.value}})},"qIHWLc");
return _.O("div",{el:v,class:"YtQrCodeRendererHostContainer"},_.O(_.g,{cond:function(){return H().qrCodeImage},
then:function(M){return _.O(_.Hn,{data:M,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.O(_.g,{cond:function(){return H().spinner},
then:function(){return _.O(Onr,null)}})}}),_.O(_.g,{cond:function(){return H().label},
then:function(M){return _.O(_.iq,{text:M,className:"YtQrCodeRendererHostLabel"})}}),_.O(_.g,{cond:function(){return H().labels},
then:function(M){return _.O("div",{class:"YtQrCodeRendererHostLabels"},_.O(_.eK,{each:M},function(h){return _.O(_.iq,{text:h})}))}}))},"wd");_.yn(_.a(function(f){var H=f.data;var v=_.sg(function(){return H().qrEntityKey},void 0,"joYCxd"),t=_.sg(function(){return H().deleteEntityOnDismiss},void 0,"x3yAde"),M=_.sg(function(){return H().command},void 0,"dJe1Re"),h=_.s7(COR,v);
f=_.sg(function(){return H().qrCodeImage},void 0,"qM5dZe");
var y=_.sg(function(){return H().style&&gjh.includes(H().style)},void 0,"CaNEkf"),m=_.MV({visibilityCallback:function(W){W&&M()&&_.Cu(M())},
showOption:{calledOnce:!0,state:"visible"}});_.Kc(function(){_.Dt(function(){t()&&v()&&_.fu().dispatch(_.lF("qrCodeEntity",v()))})});
return _.O("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.tE(m)},_.O(_.g,{cond:y,then:function(){return _.O(_.g,{cond:h,then:function(W){return _.O(IGb,{data:W})}})}}),_.O(_.g,{cond:f,
then:function(W){return _.O(_.Hn,{data:W,alt:""})}}))},"vd"),"yt-qr-code-renderer",{props:{data:_.ki}});var d4a=_.a(function(f){var H=function(){return _.cS(1728053247&(f.barColor!==void 0?dy(f.barColor()):4278190080))};
return _.O("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},_.O(Sdh,{animationDelay:0,percentWidth:100,barColor:function(){return H()}}),_.O("div",{class:"ytVideoOverviewGhostCardMediaWrapper"},_.O("div",{class:"ytVideoOverviewGhostCardMedia",
style:function(){return"background-color:"+H()}})),_.O(Sdh,{animationDelay:0,
percentWidth:100,barColor:function(){return H()}}),_.O(Sdh,{animationDelay:600,
percentWidth:60,barColor:function(){return H()}}))},"xd"),Sdh=_.a(function(f){return _.O("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+f.percentWidth()+"%"}},_.O("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var H=f.animationDelay(),v=f.barColor();return"animation-delay:"+H+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+v+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"yd");var jLM;_.sLH=_.a(function(f){function H(n){y(n)}
var v=f.data;var t=_.TN("yt-video-overview-view-model"),M=_.w8("div");f=_.V(_.gp(-1,void 0,"x5g1Ze"));var h=f.next().value,y=f.next().value;f=_.V(_.gp(0,void 0,"dDbW8"));var m=f.next().value,W=f.next().value,I={},S=_.s7(YaE,function(){return v().asyncDataEntityKey}),d=function(){var n;
if((n=S())==null?0:n.videoOverviewViewModel){var Q;return _.U((Q=S())==null?void 0:Q.videoOverviewViewModel,CPb)}return v()};
_.Kc(function(){W(Math.min((t.value.clientWidth-24)/4-8,72))});
var Z=function(n){y(n);(M==null?0:M.value)&&M.value.children[n]&&M.value.children[n].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};
BxE(t,function(){var n;if((n=d())==null||!n.inlinePlaybackEndpoint)return null;var Q;n=I==null?void 0:(Q=I.thumbnailElRef)==null?void 0:Q.value;if(!n)return null;var C;Q=(C=d())==null?void 0:C.inlinePlaybackEndpoint;C=_.U(Q,oJv);return{multipleVideoPreviewData:{data:(C==null?0:C.playerDescriptors)&&(C==null?0:C.playerDescriptors.length)?C.playerDescriptors:[],thumbnailElement:n,trackingParams:"test",callbacks:{onPlaybackStarted:Z},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}});
var l=function(){var n;return((n=d())==null?void 0:n.headerSubtext)!==void 0?!0:!1},L=function(){var n,Q=dy((n=d())==null?void 0:n.titleColor);
return Q?"color: "+_.cS(Q)+";":void 0},r=function(){var n,Q=dy((n=d())==null?void 0:n.subtextColor);
return Q?"color: "+_.cS(Q)+";":void 0};
return _.O("yt-video-overview-view-model",{class:"ytGenAiVideoOverviewViewModelHost",el:t,style:function(){var n,Q=dy((n=d())==null?void 0:n.backgroundColor);return Q?"background-color: "+_.cS(Q)+";":void 0}},_.O(_.g,{cond:function(){var n;
return(n=d())==null?void 0:n.isLoading},
then:function(){return _.O(d4a,{barColor:function(){var n;return(n=d())==null?void 0:n.titleColor}})},
else:function(){return _.O(_.R8,null,_.O("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.O("div",{class:"ytGenAiVideoOverviewViewModelTitle",style:function(){return L()}},_.O(_.iq,{text:function(){var n;
return(n=d())==null?void 0:n.headerText}})),_.O(_.g,{cond:l,
then:function(){return _.O("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.O("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return r()}},_.O(_.JE,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.O("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return r()}},_.O(_.iq,{text:function(){var n;
return(n=d())==null?void 0:n.headerSubtext}})))}})),_.O("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.O(_.Jj,{data:function(){var n;
return(n=d())==null?void 0:n.thumbnail}},{thumbnailViewModel:function(n){return _.O(_.qv,{data:n.data,
aspectRatio:0,playbackRef:LjE(I)})}})),_.O(_.g,{cond:function(){var n,Q,C,w;
return((n=d())==null?void 0:(Q=n.listItems)==null?void 0:Q.length)!==void 0&&((C=d())==null?void 0:(w=C.listItems)==null?void 0:w.length)>0?!0:!1},
then:function(){return _.O("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:M},_.O(_.eK,{each:function(){var n;return(n=d())==null?void 0:n.listItems}},function(n,Q){return _.O(jLM,{image:n.image,
index:Q,isSelected:function(){return Q()===h()},
onClick:H,itemWidth:m})}))}}),_.O("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.O("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return L()}},_.O(_.iq,{text:function(){var n,Q,C,w,c,A,X;
return(X=(n=d())==null?void 0:(Q=n.listItems)==null?void 0:(C=Q[h()])==null?void 0:C.headline)!=null?X:(w=d())==null?void 0:(c=w.listItems)==null?void 0:(A=c[0])==null?void 0:A.headline}})),_.O("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return r()}},_.O(_.iq,{text:function(){var n,Q,C,w,c,A,X;
return(X=(n=d())==null?void 0:(Q=n.listItems)==null?void 0:(C=Q[h()])==null?void 0:C.subtext)!=null?X:(w=d())==null?void 0:(c=w.listItems)==null?void 0:(A=c[0])==null?void 0:A.subtext}}))))}}))},"zd");
jLM=_.a(function(f){var H=f.image;var v=f.itemWidth;var t=f.index;var M=f.isSelected;var h=f.onClick;f=_.d6(function(){t!==void 0&&h!==void 0&&h(t());return!1});
var y={};return _.O("div",{class:_.S2("ytGenAiVideoOverviewViewModelCarouselItem",(y.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return M==null?void 0:M()},y)),
style:function(){return"width: "+v()+"px;"},
"on:click":f},_.O(_.Hn,{data:H,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.O(_.g,{cond:function(){return M==null?void 0:M()},
then:function(){return _.O("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.O("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Ad");
_.sLH.idomCompat=!0;_.yn(_.sLH,"yt-video-overview-view-model",{props:{data:_.ki}});_.ZnT=_.a(function(f){var H=f.data;var v=f.topbarOffset;var t,M=((t=_.t8().resolve(_.vh(_.TK)))==null?void 0:t())||!1;return _.O("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var h=H();var y,m,W=M?(y=h.config)==null?void 0:y.darkThemeBackgroundColor:(m=h.config)==null?void 0:m.lightThemeBackgroundColor;h=W?_.NS(W):void 0;h="background-color: "+h+";";v!==void 0&&(h+="top: -"+v()+"px;");return h},
"aria-hidden":!0},_.O(_.g,{cond:function(){var h,y,m;return!!((h=H().backgroundImageConfig)==null?0:(y=h.image)==null?0:(m=y.sources)==null?0:m.length)},
then:function(){return _.O(_.Hn,{data:function(){var h;return(h=H().backgroundImageConfig)==null?void 0:h.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.O("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+mh5(M,H().gradientColorConfig)+";"}}))},"Bd");
_.ZnT.idomCompat=!0;var aa=_.a(function(f){var H=f.className;var v=f.data;var t=f.isOverlay;var M=f.maxLinesOverride;var h=f.useMediumText;var y=function(){return v().alwaysShowTruncationText},m=function(){return v().truncationText},W=function(){return h!==void 0&&h()?"medium":"small"},I=function(){return t!==void 0&&t()?"overlay":"default"},S=function(){var L,r;
return(r=(L=_.U(v().rendererContext,_.dC))==null?void 0:L.label)!=null?r:""};
f=_.V(_.gp(!1,void 0,"xVwzHf"));var d=f.next().value,Z=f.next().value;f=_.d6(function(){v().expandOnTap&&Z(!d());return!1});
var l={};return _.O("yt-description-preview-view-model",{el:_.tE(_.nT(function(){return v().rendererContext})),
class:_.S2("yt-description-preview-view-model-wiz",H,(l["yt-description-preview-view-model-wiz--clickable"]=function(){var L;return!((L=_.U(v().rendererContext,tT5))==null||!L.onTap)},l["yt-description-preview-view-model-wiz--is-overlay"]=t,l)),
"on:click":f},_.O(_.g,{cond:function(){return v().description},
then:function(L){return _.O(_.g,{cond:d,then:function(){var r={};return _.O("div",{class:_.S2("yt-description-preview-view-model-wiz__description",(r["yt-description-preview-view-model-wiz__description--medium-text"]=h,r))},_.O(_.iq,{text:L}))},
else:function(){return _.O(rKh,{text:L,alwaysShowTruncationText:y,truncationText:m,maxLines:function(){var r;return(r=M==null?void 0:M())!=null?r:v().maxLines},
textStyle:I,accessibilityLabel:S,textSize:W})}})}}))},"Cd");
aa.idomCompat=!0;var J0n=_.a(function(f){var H=f.data;var v=f.isOverlay;return _.O("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.O("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.O(_.Jj,{data:function(){return H().header}},{sectionHeaderViewModel:function(t){return _.O(_.$b,{data:t.data,
isOverlay:v})}})),_.O("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.O(_.Jj,{data:function(){return H().channelInfoButtons}},{flexibleActionsViewModel:_.ot})),_.O("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.O(_.Jj,{data:function(){return H().description}},{descriptionPreviewViewModel:function(t){return _.O(aa,{data:t.data,
isOverlay:v})}})))},"Dd");
J0n.idomCompat=!0;var lGb=_.a(function(f){var H=f.data;var v={};return _.O("factoid-view-model",{class:_.S2("ytwFactoidViewModelHost",(v.ytwFactoidViewModelHostOverlay=f.isOverlay,v))},_.O(_.iq,{text:function(){return H().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.O(_.iq,{text:function(){return H().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Ed");
lGb.idomCompat=!0;var U4C=_.a(function(f){var H=f.data;var v=f.isOverlay;return _.O("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.O(_.Jj,{data:function(){return H().factoids}},{factoidViewModel:function(t){return _.O(lGb,{data:t.data,
isOverlay:v})}}))},"Fd");
U4C.idomCompat=!0;_.een=_.a(function(f){var H=f.data;var v=f.isOverlay;return _.O("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.O(_.Jj,{data:function(){return H().items}},{channelInfoViewModel:function(t){return _.O("div",{class:"ytwCourseMetadataViewModelHostItem"},_.O(J0n,{data:t.data,
isOverlay:v}))},
coursePerksViewModel:function(t){return _.O("div",{class:"ytwCourseMetadataViewModelHostItem"},_.O(wuC,{data:t.data,isOverlay:v}))},
descriptionPreviewViewModel:function(t){return _.O("div",{class:"ytwCourseMetadataViewModelHostItem"},_.O(aa,{data:t.data,isOverlay:v}))},
factoidsRowViewModel:function(t){return _.O("div",{class:"ytwCourseMetadataViewModelHostItem"},_.O(U4C,{data:t.data,isOverlay:v}))},
progressViewModel:function(t){return _.O("div",{class:"ytwCourseMetadataViewModelHostItem"},_.O(qn9,{data:t.data,isOverlay:v}))}}))},"Gd");var LDo=_.a(function(f){return _.O("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.O(_.Jj,{data:function(){return f.data().content}},{courseMetadataViewModel:function(H){return _.O(_.een,{data:H.data,
isOverlay:f.isOverlay})},
progressViewModel:function(H){return _.O(qn9,{data:H.data})}}))},"Hd");var x4M=_.a(function(f){var H=f.data;f=f.className;var v=function(){var M;return _.DO((M=H())==null?void 0:M.rendererContext)},t={};
t=(t.dynamicTextViewModelHost=!0,t.dynamicTextViewModelHostTappable=function(){return v()},t);
return _.O("yt-dynamic-text-view-model",{el:_.tE(_.nT(function(){var M;return(M=H())==null?void 0:M.rendererContext})),
role:function(){return v()?"link":void 0},
tabindex:function(){return v()?0:void 0},
class:_.S2(f,t)},_.O("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var M,h,y;return(y=(h=_.U((M=H())==null?void 0:M.rendererContext,_.dC))==null?void 0:h.label)!=null?y:""}},_.O(_.iq,{text:function(){return H().text},
userInput:!0})))},"Id");
x4M.idomCompat=!0;_.Pr=_.a(function(f){var H=f.data;var v=f.isPositionRelative;var t=_.W0_("(max-width: 527.9px)"),M=function(){var h,y;return(y=(h=H())==null?void 0:h.style)!=null?y:"IMAGE_BANNER_STYLE_FULL_BLEED"};
f={};return _.O("yt-image-banner-view-model",{el:_.tE(_.nT(function(){var h;return(h=H())==null?void 0:h.rendererContext})),
class:_.S2((f.ytImageBannerViewModelHost=!0,f.ytImageBannerViewModelInset=function(){return OwB(M())},f.ytImageBannerViewModelPositionAbsolute=function(){return _.p4(!0)&&!(v==null?0:v())},f.ytImageBannerViewModelSmallInset=function(){return OwB(M())&&t()},f.ytImageBannerViewModelTappable=function(){var h;
return _.DO((h=H())==null?void 0:h.rendererContext)},f))},_.O(_.g,{cond:function(){var h;
return(h=H())==null?void 0:h.image},
then:function(){return _.O(_.Hn,{data:function(){return H().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.O(_.Jj,{data:function(){var h;
return(h=H())==null?void 0:h.overlays}},{thumbnailHoverOverlayViewModel:rq}))},"Jd");
_.Pr.idomCompat=!0;var BRT;BRT=_.a(function(f){var H=f.condition;var v=f.content;return _.O(_.g,{cond:H,then:function(){return _.O("div",{class:"page-header-view-model-wiz__scroll-container"},v())},
else:function(){return v()}})},"Kd");
_.zeC=_.a(function(f){var H=f.data;var v=f.noPadding;var t=f.enableBanner;var M=f.cinematicContainerTopbarOffset;var h=f.allowCinematicContainerOverflow;var y=f.displayAsSidebar;var m=f.displayAsPanel;var W=f.alwaysUseMediumTextDescription;var I=gBB(),S=function(){return!!H().image||!!H().animatedImage},d=function(){return!!H().background},Z=function(){return(y==null?0:y())||(m==null?0:m())?1:I()},l=function(){return Z()===1},L=function(){return l()||Z()===2},r=function(){return Z()===4},n=function(){var lH=
H();
var E5=!!H().heroImage;var uH=Z(),Rn=IX_(H()),pr=y==null?void 0:y(),gh=!lH.metadata,fr;if(fr=E5?_.U(lH.heroImage,DBT):_.U(lH.animatedImage||lH.image,DBT)){lH=fr.style;var sb=fr.layoutMode;if(sb!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(fr=HFR(f83(fr)),E5)E5=$he(uH,lH,sb,fr,pr);else b:if(gh)E5=uH===1?{size:48}:{size:72};else switch(uH){case 1:E5={size:72};break b;case 2:E5={size:120};break b;default:E5=Rn<4?{size:120}:{size:160}}else E5=void 0}else E5={size:0};return E5};
f={};f=_.S2((f["page-header-view-model-wiz"]=!0,f["page-header-view-model-wiz--no-padding"]=function(){return!(v==null||!v())},f["page-header-view-model-wiz--small-top-padding"]=function(){return l()&&!H().actions&&!(m==null?0:m())||Z()===2&&!(S()||H().heroImage)},f["page-header-view-model-wiz--small-bottom-padding"]=function(){return L()&&!H().actions&&!(m==null?0:m())},f["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(h==null?0:h())},f["page-header-view-model-wiz--display-as-sidebar"]=
y,f));
var Q={},C=_.S2((Q["page-header-view-model-wiz__page-header-headline"]=!0,Q["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){var lH;return(lH=n())==null?void 0:lH.allowFullWidth},Q)),w=function(){var lH;
return L()&&!((lH=n())==null?0:lH.allowFullWidth)},c=function(){return l()&&(!!H().heroImage||S())&&IX_(H())>0},A=function(){return c()&&(m==null?void 0:m())};
Q={};var X=_.S2((Q["page-header-view-model-wiz__page-header-title"]=!0,Q["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!c()},Q["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return c()&&!A()},Q["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=A,Q["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=d,Q));
Q={};var fg=_.S2((Q["page-header-view-model-wiz__page-header-headline-image"]=!0,Q["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!H().heroImage&&L()},Q));
Q={};var gB=_.S2((Q["page-header-view-model-wiz__page-header-banner-container"]=t,Q["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var lH;return(t==null?void 0:t())&&((lH=_.U(H().banner,_.nir))==null?void 0:lH.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},Q));
Q={};var O5=_.S2((Q["page-header-view-model-wiz__page-header-content-metadata"]=!0,Q["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=d,Q));Q={};var s5=_.S2((Q["page-header-view-model-wiz__page-header-flexible-actions"]=!0,Q["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!H().metadata||L()},Q["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!L()},Q));
Q={};var U5=_.S2((Q["page-header-view-model-wiz__page-header-attribution"]=!0,Q["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=d,Q));return _.O("yt-page-header-view-model",{class:f},_.O(_.g,{cond:d,then:function(){return _.O("div",{class:"page-header-view-model-wiz__page-header-background"},_.O(_.Jj,{data:function(){return H().background}},{cinematicContainerViewModel:function(lH){return _.O(_.ZnT,{data:lH.data,
topbarOffset:M})}}))}}),_.O(BRT,{condition:function(){return!(y==null||!y())},
content:function(){return _.O("div",{class:"page-header-view-model-wiz__page-header-content"},_.O(_.g,{cond:function(){return(t==null?void 0:t())&&H().banner},
then:function(){return _.O("div",{class:gB},_.O(_.Jj,{data:function(){return H().banner}},{imageBannerViewModel:_.Pr}))}}),_.O("div",{class:C},_.O(_.g,{cond:S,
then:function(){return _.O(_.Jj,{data:function(){var lH;if(!(lH=H().animatedImage)){lH=H();if(S()){var E5=lH=Object.assign({},lH),uH=Z(),Rn=IX_(H()),pr=E5.image,gh=_.U(pr,oiC),fr=gh==null?void 0:gh.avatar,sb=_.U(fr,_.pT);if(pr&&fr&&sb){switch(uH){case 1:sb.avatarImageSize="AVATAR_SIZE_XL";break;case 2:sb.avatarImageSize="AVATAR_SIZE_XXL";break;default:Rn<4?sb.avatarImageSize="AVATAR_SIZE_XXL":sb.avatarImageSize="AVATAR_SIZE_XXXL"}_.pu(fr,_.pT,Object.assign({},sb));gh.avatar=Object.assign({},fr);_.pu(pr,
oiC,Object.assign({},gh));E5.image=Object.assign({},pr)}}lH=lH.image}return lH}},{contentPreviewImageViewModel:function(lH){return _.O(_.M3,{data:lH.data,
className:fg,imageSizeConfig:n})},
decoratedAvatarViewModel:function(lH){return _.O(_.Dj,{data:lH.data,className:fg})}})}}),_.O(_.g,{cond:function(){return!!H().heroImage&&!w()},
then:function(){return _.O(_.Jj,{data:function(){return H().heroImage}},{contentPreviewImageViewModel:function(lH){return _.O(_.M3,{data:lH.data,
className:fg,imageSizeConfig:n})}})}}),_.O("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.O(_.g,{cond:function(){return!!H().heroImage&&w()},
then:function(){return _.O("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.O(_.Jj,{data:function(){return H().heroImage}},{contentPreviewImageViewModel:function(lH){return _.O(_.M3,{data:lH.data,
className:fg,imageSizeConfig:n})}}))}}),_.O(_.Jj,{data:function(){return H().title}},{dynamicTextViewModel:function(lH){return _.O(x4M,{data:lH.data,
className:X})}}),_.O(_.Jj,{data:function(){return H().metadata}},{contentMetadataViewModel:function(lH){return _.O(_.ho,{data:lH.data,
layout:function(){return l()?1:0},
className:O5,isOverlay:d,useMediumText:r})}}),_.O(_.g,{cond:function(){return H().description&&!l()},
then:function(){return _.O(_.Jj,{data:function(){return H().description}},{descriptionPreviewViewModel:function(lH){return _.O(aa,{data:lH.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:d,maxLinesOverride:function(){return l()?void 0:1},
useMediumText:function(){return(W==null?void 0:W())||r()}})}})}}),_.O(_.g,{cond:function(){return H().attribution&&!L()},
then:function(){return _.O(_.Jj,{data:function(){return H().attribution}},{attributionViewModel:function(lH){return _.O(gQb,{data:lH.data,
className:U5,useMediumText:r})}})}}),_.O(_.g,{cond:function(){return H().actions&&!L()},
then:function(){return _.O(_.Jj,{data:function(){return H().actions}},{flexibleActionsViewModel:function(lH){return _.O(_.ot,{data:lH.data,
layout:function(){return SaT(Z())},
className:s5})}})}}))),_.O("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.O(_.g,{cond:function(){return H().description&&l()},
then:function(){return _.O(_.Jj,{data:function(){return H().description}},{descriptionPreviewViewModel:function(lH){return _.O(aa,{data:lH.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:d,maxLinesOverride:function(){return l()?void 0:1},
useMediumText:function(){return(W==null?void 0:W())||r()}})}})}}),_.O(_.g,{cond:function(){return H().attribution&&L()},
then:function(){return _.O(_.Jj,{data:function(){return H().attribution}},{attributionViewModel:function(lH){return _.O(gQb,{data:lH.data,
className:U5,useMediumText:r})}})}}),_.O(_.g,{cond:function(){return H().actions&&L()},
then:function(){return _.O(_.Jj,{data:function(){return H().actions}},{flexibleActionsViewModel:function(lH){return _.O(_.ot,{data:lH.data,
layout:function(){return SaT(Z())},
className:s5})}})}})),_.O("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.O(_.Jj,{data:function(){return H().bottomMetadataFlexibleContainer}},{flexibleContainer:function(lH){return _.O(LDo,{data:lH.data,
isOverlay:d})}})))}}))},"Ld");
_.zeC.idomCompat=!0;_.yn(_.a(function(f){var H=_.V(_.gp(!1,void 0,"j5qbkc")),v=H.next().value,t=H.next().value;return _.O("yt-official-card-view-model",{class:_.S2("ytOfficialCardViewModelHost",f.className),style:_.ZE({"background-color":function(){var M,h=dy((M=f.data())==null?void 0:M.backgroundColor);return h?_.cS(h):void 0}})},_.O(_.Jj,{data:function(){return f.data().header}},{pageHeaderViewModel:function(M){return _.O(_.zeC,{data:M.data,
noPadding:!0})}}),_.O(_.Jj,{data:function(){return f.data().contents}},{horizontalShelfViewModel:function(M){return _.O(_.u4,{data:M.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.O(_.g,{cond:v,
then:function(){return _.O("div",{class:"ytOfficialCardViewModelExpandedContent"},_.O(_.Jj,{data:function(){return f.data().expandedContents}},{horizontalShelfViewModel:function(M){return _.O(_.u4,{data:M.data,
sizing:"MINI"})}}),_.O("div",{class:"ytOfficialCardViewModelCollapseButton"},_.O(_.Jj,{data:function(){return f.data().collapseButton}},{buttonViewModel:function(M){return _.O(_.Wp,{data:M.data,
onClick:function(){t(!v())}})}})))},
else:function(){return _.O("div",{class:"ytOfficialCardViewModelExpandButton"},_.O(_.Jj,{data:function(){return f.data().expandButton}},{buttonViewModel:function(M){return _.O(_.Wp,{data:M.data,
onClick:function(){t(!v())}})}}))}}))},"Md"),"yt-official-card-view-model",{props:{data:_.ki,
className:_.ki}});var FDH=_.a(function(f){var H,v=(H=_.t8().resolve(_.vh(_.TK)))==null?void 0:H();return _.O("ytw-search-friction-view-model",{class:_.S2("ytwSearchFrictionViewModelHost",f.className)},_.O("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.O("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.O(_.g,{cond:function(){return v&&f.data().darkThemeImage?f.data().darkThemeImage:f.data().image},
then:function(t){return _.O(_.Hn,{data:t,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.O(_.Jj,{data:function(){return f.data().overflowMenuButton}},{buttonViewModel:function(t){return _.O(_.Wp,{data:t.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.O(_.iq,{text:function(){return f.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.O(_.eK,{each:function(){return f.data().bodyText||[]}},function(t){return _.O(_.iq,{text:t,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.O(_.Jj,{data:function(){return f.data().actions}},{buttonViewModel:function(t){return _.O(_.Wp,{data:t.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.O(_.iq,{text:function(){return f.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.O(_.iq,{text:function(){return f.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"Nd");
FDH.idomCompat=!0;_.yn(FDH,"ytw-search-friction-view-model",{props:{data:_.ki,className:_.ki}});_.Gm=_.a(function(f){var H=_.TN("markdown-div"),v,t=(v=_.t8().resolve(_.vh(_.TK)))==null?void 0:v();_.K4(function(){var M=H.value;var h=new Zr_,y=new Map(h.JSC$9292_sanitizerTable.globalAttributePolicies);y.set("style",{policyAction:4});h.JSC$9292_sanitizerTable=new dQ(h.JSC$9292_sanitizerTable.allowedElements,h.JSC$9292_sanitizerTable.elementPolicies,h.JSC$9292_sanitizerTable.allowedGlobalAttributes,y,h.JSC$9292_sanitizerTable.globallyAllowedAttributePrefixes);var m=["data-time"];if(m===void 0)y=
new Set(h.JSC$9292_sanitizerTable.globallyAllowedAttributePrefixes),y.add("data-"),h.JSC$9292_sanitizerTable=new dQ(h.JSC$9292_sanitizerTable.allowedElements,h.JSC$9292_sanitizerTable.elementPolicies,h.JSC$9292_sanitizerTable.allowedGlobalAttributes,h.JSC$9292_sanitizerTable.globalAttributePolicies,y);else{y=new Set(h.JSC$9292_sanitizerTable.allowedGlobalAttributes);m=_.V(m);for(var W=m.next();!W.done;W=m.next()){W=W.value;if(W.indexOf("data-")!==0)throw Error("ma`"+W);y.add(W)}h.JSC$9292_sanitizerTable=
new dQ(h.JSC$9292_sanitizerTable.allowedElements,h.JSC$9292_sanitizerTable.elementPolicies,y,h.JSC$9292_sanitizerTable.globalAttributePolicies,h.JSC$9292_sanitizerTable.globallyAllowedAttributePrefixes)}y=new Set(h.JSC$9292_sanitizerTable.allowedGlobalAttributes);y.add("class");h.JSC$9292_sanitizerTable=new dQ(h.JSC$9292_sanitizerTable.allowedElements,h.JSC$9292_sanitizerTable.elementPolicies,y,h.JSC$9292_sanitizerTable.globalAttributePolicies,h.JSC$9292_sanitizerTable.globallyAllowedAttributePrefixes);
_.Me(M,_.Ih_(h.build(),jBN(f.text())));sBH(H.value)},"nk5Hce");
v={};return _.O("div",null,_.O("markdown-div",{class:_.S2("ytwMarkdownDivHost",(v.ytwMarkdownDivDark=t,v.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var M;return((M=f.isSmallText)==null?void 0:M.call(f))||!1},v.ytwMarkdownDivHostWrapCodeBlocks=function(){var M;
return((M=f.wrapCodeBlocks)==null?void 0:M.call(f))||!1},v.ytwMarkdownDivHostEnableDefaultStyling=function(){var M;
return!((M=f.disableDefaultStyling)==null?0:M.call(f))},v)),
el:H}))},"Od");
_.Gm.idomCompat=!0;var r0g=_.a(function(f){var H=f.imageData;var v=_.vK(f.isInList,!1),t=function(){return v()?{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:52,targetHeight:52,className:"ytwGenAiRichTextViewModelContentImage"}:{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:80,targetHeight:80,className:"ytwGenAiRichTextViewModelContentImage"}};
return _.O("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.O(_.g,{cond:function(){return H().image},
then:function(M){return _.O(_.Hn,{data:M,alt:function(){return t().alt},
contentMode:function(){return t().contentMode},
targetWidth:function(){return t().targetWidth},
targetHeight:function(){return t().targetHeight},
className:function(){return t().className}})}}),_.O("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.O("div",{class:_.S2("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.O(_.iq,{text:function(){return H().title}})),_.O(_.eK,{each:function(){var M;
return(M=H().description)!=null?M:[]}},function(M){return _.O("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.O(CB,{content:M}))})))},"Pd"),KDh=_.a(function(f){var H=f.list;
var v=function(){var t;return(t=H().items)!=null?t:[]};
return _.O("div",{class:"ytwGenAiRichTextViewModelListContent"},_.O(_.g,{cond:function(){return H().title},
then:function(t){return _.O("div",{class:_.S2("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.O(_.iq,{text:t}))}}),_.O(_.g,{cond:function(){return H().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.O("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.O(_.eK,{each:v},function(t){return _.O("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.O(CB,{content:t,isInList:!0}))}))}}),_.O(_.g,{cond:function(){return H().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.O("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.O(_.eK,{each:v},function(t){return _.O("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.O(CB,{content:t,isInList:!0}))}))}}),_.O(_.g,{cond:function(){return H().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.O("div",{class:"ytwGenAiRichTextViewModelImageList"},_.O(_.eK,{each:v},function(t){return _.O("div",{class:"ytwGenAiRichTextViewModelListItem"},_.O(CB,{content:t,isInList:!0}))}))}}))},"Qd"),D49=_.a(function(f){var H=f.table;
return _.O("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.O("thead",null,_.O("tr",null,_.O(_.eK,{each:function(){var v,t;return(t=(v=H().header)==null?void 0:v.cells)!=null?t:[]}},function(v){return _.O("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.O(_.eK,{each:function(){return v.contents}},function(t){return _.O(CB,{content:t})}))}))),_.O("tbody",null,_.O(_.eK,{each:function(){var v;
return(v=H().rows)!=null?v:[]}},function(v){return _.O("tr",null,_.O(_.eK,{each:function(){return v.cells}},function(t){return _.O("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.O(_.eK,{each:function(){return t.contents}},function(M){return _.O(CB,{content:M})}))}))})))},"Rd"),CB=_.a(function(f){var H=f.content;
var v=_.vK(f.isInList,!1),t=function(){var M,h;return(h=(M=H().contentBlock)==null?void 0:M.contents)!=null?h:[]};
return _.O("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.O(_.g,{cond:function(){return H().text},
then:function(M){return _.O(_.iq,{className:"ytwGenAiRichTextViewModelText",text:M})}}),_.O(_.g,{cond:function(){return H().image},
then:function(M){return _.O(r0g,{imageData:M,isInList:v})}}),_.O(_.g,{cond:function(){return H().list},
then:function(M){return _.O(KDh,{list:M})}}),_.O(_.g,{cond:function(){return H().contentBlock},
then:function(){return _.O("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.O(_.eK,{each:t},function(M){return _.O(CB,{content:M,isInList:!1})}))}}),_.O(_.g,{cond:function(){return H().table},
then:function(M){return _.O(D49,{table:M})}}))},"Sd"),ojb=_.a(function(f){var H={};
H=_.zV("ytwGenAiRichTextViewModelHost",(H.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.yQ("search_overview_link_style")),H));return _.O("gen-ai-rich-text-view-model",{class:H},_.O(CB,{content:function(){return f.data().content}}))},"Td");_.njh=_.a(function(f){var H=f.data;var v=function(){var r;return((r=H().loadingUi)!=null?r:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},t=function(){return H().isLoading&&(v()==="UNSPECIFIED"||v()==="GHOST_CARD")},M=function(){return!H().isLoading},h=function(){return!!H().content&&!H().contents},y=function(){return!!H().contents},m=function(){return!!H().nextQueryButtons},W=function(){return H().isLoading&&v()==="INVISIBLE"},I=function(){var r,n;
return(n=(r=H().headerIcon)==null?void 0:r.iconType)!=null?n:""},S=function(){var r;
return(r=H().content)!=null?r:""},d=function(){return!!H().sourcesSection},Z,l=!((Z=_.t8().resolve(_.vh(_.TK)))==null||!Z()),L=_.sg(function(){var r=[],n=H().contents;
if(n)for(var Q=0;Q<n.length;Q++){var C=_.U(n&&n[Q],G3n);C&&r.push(C)}return r},void 0,"ycU97e");
_.Kc(function(){H().isLoading||_.u0("so_re",void 0,"search_overview_answer")});
return _.O("ytd-overview-answer-view-model",{class:function(){var r={};r=(r.ytdOverviewAnswerViewModelHost=!0,r.ytdOverviewAnswerViewModelDarkBackground=l&&!W(),r.ytdOverviewAnswerViewModelLightBackground=!l&&!W(),r);return _.zV(r)}},_.O(_.g,{cond:function(){return!W()},
then:function(){return _.O(_.R8,null,_.O("h2",null,_.O("div",{class:"ytdOverviewAnswerViewModelHeader"},_.O(_.g,{cond:I,then:function(r){return _.O("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.O(_.JE,{icon:r}))}}),_.O("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.O("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return H().headerText}),_.O("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.O(_.iq,{text:function(){return H().headerSubtext}}))))),_.O(_.g,{cond:t,
then:function(){return _.O(Zwb,null)}}),_.O(_.g,{cond:M,
then:function(){return _.O(_.R8,null,_.O(_.g,{cond:h,then:function(){return _.O("div",{class:"ytdOverviewAnswerViewModelText"},_.O(_.Gm,{text:S,isSmallText:!0}))}}),_.O(_.g,{cond:y,
then:function(){return _.O("div",{class:"ytdOverviewAnswerViewModelRichText"},_.O(_.eK,{each:L},function(r){return _.O(ojb,{data:r})}))}}),_.O(_.g,{cond:m,
then:function(){return _.O("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.O(_.Jj,{data:function(){return H().nextQueryButtons}},{buttonViewModel:function(r){return _.O(_.Wp,{data:r.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.u4}))}}),_.O("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.O("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.O(_.g,{cond:function(){return!!_.U(H().likeButtonViewModel,_.Fd)&&!!_.U(H().dislikeButtonViewModel,_.z3)},
then:function(){return _.O("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.O(_.pX,{data:function(){return _.U(H().likeButtonViewModel,_.Fd)},
disableIconAnimation:!0}),_.O(_.nX,{data:function(){return _.U(H().dislikeButtonViewModel,_.z3)}}))}})),_.O(_.g,{cond:function(){var r;
return(r=H().sourcesSection)==null?void 0:r.headerText},
then:function(r){return _.O("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.O(_.iq,{text:r}))}})),_.O(_.g,{cond:d,
then:function(){return _.O("div",{class:"ytdOverviewAnswerViewModelSources"},_.O(_.Jj,{data:function(){var r;return(r=H().sourcesSection)==null?void 0:r.sourcesShelf}},{buttonViewModel:_.Wp,
horizontalShelfViewModel:function(r){return _.O(_.u4,{data:r.data,includeMargin:!0,hasPeek:!0})}}))}}),_.O(_.g,{cond:function(){return H().disclaimerText},
then:function(){return _.O("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.O(_.iq,{text:function(){return H().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"Ud");var pev=_.a(function(f){var H=f.data;var v=f.active;var t=_.TN("transcript-segment-view-model");_.K4(function(){var M,h,y,m=((M=_.t8().resolve(_.vh(_.TK)))==null?0:M())?(h=H())==null?void 0:h.darkThemeColorPalette:(y=H())==null?void 0:y.lightThemeColorPalette;m&&(m.additiveBackground&&t.value.style.setProperty("--timestamp-active-background-color",_.cS(m.additiveBackground)),m.textSecondary&&t.value.style.setProperty("--timestamp-active-color",_.NS(m.textSecondary)))},"KHcbwb");
f={};return _.O("transcript-segment-view-model",{class:_.S2("ytwTranscriptSegmentViewModelHost",(f.ytwTranscriptSegmentViewModelHostActive=v,f.ytwTranscriptSegmentViewModelHostModern=_.J("enable_timeline_view_modern_transcript")||_.J("enable_timeline_view_modern_transcript_fe"),f)),el:t},_.O(_.g,{cond:function(){var M;return(M=H())==null?void 0:M.timestamp},
then:function(M){var h={};return _.O("div",{class:_.S2("ytwTranscriptSegmentViewModelTimestamp",(h.ytwTranscriptSegmentViewModelTimestampActive=v,h))},M)}}),_.O(_.iq,{text:function(){var M,h,y;
return(y=(M=H())==null?void 0:M.attributedText)!=null?y:{content:(h=H())==null?void 0:h.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"Vd");var QL9=_.a(function(f){var H=f.data;return _.O("div",{class:"videoAttributesSectionViewModelHeader"},_.O("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.O("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return H().headerTitle}),_.O(_.g,{cond:function(){return H().headerInfoButton},
then:function(){return _.O(_.Jj,{data:function(){return H().headerInfoButton}},{buttonViewModel:function(v){return _.O(_.Wp,{data:v.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.O(_.g,{cond:function(){return H().headerSubtitle},
then:function(){return _.O("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return H().headerSubtitle})}}))},"Wd"),upg=_.a(function(f){function H(r){return Math.max(Math.min(r,0),I()-m())}
var v=f.data;var t;f=_.TN("div",function(r){var n=function(){S(r.clientWidth)};
n();window.ResizeObserver&&(t=new ResizeObserver(n),t.observe(r))});
var M=_.TN("div",function(r){W(r.scrollWidth)}),h=_.V(_.gp(0,void 0,"C3XQAe")),y=h.next().value;
h=h.next().value;var m=y,W=h;h=_.V(_.gp(0,void 0,"db7y3"));y=h.next().value;h=h.next().value;var I=y,S=h;y=_.V(_.gp(0,void 0,"RchC7"));var d=y.next().value,Z=y.next().value;_.Dt(function(){var r;(r=t)==null||r.disconnect()});
var l=function(){Z(H(d()+I()))},L=function(){Z(H(d()-I()))};
return _.O("yt-video-attributes-section-view-model",null,_.O("div",{class:"videoAttributesSectionViewModelHost"},_.O(_.g,{cond:function(){return v().headerTitle},
then:function(){return _.O(QL9,{data:v})}}),_.O("div",{class:_.S2("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:f},_.O("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.ZE({transform:function(){var r=d();_.a8("HTML_DIR")==="rtl"&&(r*=-1);return"translateX("+r+"px)"}}),
el:M},_.O(_.Jj,{data:function(){return v().videoAttributeViewModels}},{videoAttributeViewModel:oQg}))),_.O(_.Jj,{data:function(){return v().footerButton}},{buttonViewModel:function(r){return _.O(_.Wp,{data:r.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.O(_.g,{cond:function(){return d()<0&&v().previousButton},
then:function(){return _.O("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.O(_.Jj,{data:function(){return v().previousButton}},{buttonViewModel:function(r){return _.O(_.Wp,{data:r.data,
onClick:l})}}))}}),_.O(_.g,{cond:function(){return d()>I()-m()&&v().nextButton},
then:function(){return _.O("div",{class:"videoAttributesSectionViewModelRightArrow"},_.O(_.Jj,{data:function(){return v().nextButton}},{buttonViewModel:function(r){return _.O(_.Wp,{data:r.data,
onClick:L})}}))}})))},"Xd");
upg.idomCompat=!0;var aGh=_.a(function(f){var H=f.data;var v=f.active;var t={},M={};return _.O("timeline-item-view-model",{class:_.S2("ytwTimelineItemViewModelHost",(t.ytwTimelineItemViewModelHostChapterChild=f.chapterChild,t.ytwTimelineItemViewModelModern=_.J("enable_timeline_view_modern_transcript")||_.J("enable_timeline_view_modern_transcript_fe"),t))},_.O("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.O("div",{class:_.S2("ytwTimelineItemViewModelTimestamp",(M.ytwTimelineItemViewModelTimestampActive=
v,M))},function(){return H().timestamp})),_.O("div",{class:"ytwTimelineItemViewModelContentItems"},_.O(_.Jj,{data:function(){return H().contentItems}},{transcriptSegmentViewModel:function(h){return _.O(pev,{data:h.data,
active:v})},
videoAttributesSectionViewModel:upg})))},"Yd");var P8b=_.a(function(f){var H=f.data;f={};return _.O("timeline-chapter-view-model",{class:_.S2("ytwTimelineChapterViewModelHost")},_.O("div",{class:_.S2("ytwTimelineChapterViewModelTitle",(f.ytwTimelineChapterViewModelModern=_.J("enable_timeline_view_modern_transcript")||_.J("enable_timeline_view_modern_transcript_fe"),f))},function(){return H().title}),_.O(_.Jj,{data:function(){return H().contents}},{timelineItemViewModel:function(v){return _.O(aGh,{data:v.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(v){return _.O(upg,{data:v.data})}}))},"Zd");var Gav=_.a(function(f){var H=f.data;var v=_.TN("macro-markers-panel-item-view-model"),t=_.s7(_.QTe,function(){var h;return(h=H().markersEngagementPanelSyncEntityKey)!=null?h:""}),M=function(){var h;
return((h=t())==null?void 0:h.activeItemIndex)===H().index};
f=_.d6(function(h){var y,m,W,I,S;return _.Y(function(d){if(d.nextAddress==1)return h.stopPropagation(),_.r3(_.Fs(h),v.value,["A".toString(),"BUTTON".toString()])?d.return():(y=_.GK(H().onTap))?d.yield(_.Wx(),2):d.return();m=d.yieldResult;I=(W=_.U(y,_.wI))==null?void 0:W.startTimeSeconds;I===void 0||(S=m)!=null&&S.seekTo(I,!0);_.Bj(d)})});
return _.O("macro-markers-panel-item-view-model",{class:_.S2("ytwMacroMarkersPanelItemViewModelHost",{"is-active":M}),el:v,"on:click":f,tabindex:0},_.O(_.Jj,{data:function(){var h;return(h=H())==null?void 0:h.item}},{timelineChapterViewModel:function(h){return _.O(P8b,{data:h.data,
active:M})},
timelineItemViewModel:function(h){return _.O(aGh,{data:h.data,active:M})},
videoAttributeViewModel:oQg}))},"$d");
Gav.idomCompat=!0;_.yn(Gav,"macro-markers-panel-item-view-model",{props:{data:_.ki}});_.yn(upg,"yt-video-attributes-section-view-model",{props:{data:_.ki}});var C8H=_.a(function(f){var H=function(){var v,t,M;return(M=(v=f.data().leadingLogoAccessibility)==null?void 0:(t=v.accessibilityData)==null?void 0:t.label)!=null?M:""};
return _.O("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.O(_.g,{cond:function(){return f.data().leadingLogo},
then:function(v){return _.O(_.Hn,{className:"ytwFantasySectionHeaderViewModelLogo",data:v,alt:H})}}),_.O("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.O(_.iq,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return f.data().title}}),_.O(_.iq,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return f.data().subtitle}})),_.O(_.Jj,{data:function(){return f.data().trailingButton}},{buttonViewModel:function(v){return _.O(_.Wp,{data:v.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"ae");var Ejo=_.a(function(f){var H={};H=_.S2("ytwFantasyTeamViewModelHost",(H.ytwFantasyTeamViewModelCompact=function(){var M;return!((M=f.compact)==null||!M.call(f))},H.ytwFantasyTeamViewModelUser=function(){return f.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},H.ytwFantasyTeamViewModelOpponent=function(){return f.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},H));
var v=function(){var M,h,y;return(y=(M=f.data().teamLogoAccessibility)==null?void 0:(h=M.accessibilityData)==null?void 0:h.label)!=null?y:""},t=_.s7(aLs,function(){return f.data().teamEntityKey});
return _.O("ytw-fantasy-team-view-model",{class:H},_.O(_.g,{cond:function(){return f.data().teamLogo},
then:function(M){return _.O(_.Hn,{className:"ytwFantasyTeamViewModelLogo",data:M,alt:v})}}),_.O("div",{class:"ytwFantasyTeamViewModelMetadata"},_.O("div",{class:"ytwFantasyTeamViewModelHeader"},_.O(_.iq,{className:"ytwFantasyTeamViewModelScore",
text:function(){var M;return(M=t())==null?void 0:M.score}}),_.O(_.JE,{icon:function(){var M;
return(M=t())==null?void 0:M.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.O(_.iq,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var M;return(M=t())==null?void 0:M.projectedScore}})),_.O(_.iq,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return f.data().primaryText}}),_.O(_.iq,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return f.data().secondaryText}}),_.O(_.iq,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return f.data().tertiaryText}})),_.O(_.iq,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var M;return(M=t())==null?void 0:M.score}}))},"be");_.yn(_.a(function(f){return _.O("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.O("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.O(_.Jj,{data:function(){return f.data().summaryHeader}},{fantasySectionHeaderViewModel:C8H})),_.O(_.Jj,{data:function(){return f.data().userTeam}},{fantasyTeamViewModel:Ejo}),_.O(_.Jj,{data:function(){return f.data().opponentTeam}},{fantasyTeamViewModel:Ejo}))},"ce"),"fantasy-league-summary-view-model",{props:{data:_.ki}});var NRh=_.a(function(f){var H=_.tV(f,{shape:{},useCustomTabRenderable:!1}),v=H.shape;H=H.useCustomTabRenderable;var t=f.customTabRenderable,M=function(){return v().disabled},h=function(){return v().selected},y=function(){return v().title},m=function(){return v().icon},W=_.TN("yt-tab-shape");
f=_.d6(function(d){var Z;if(!M()&&((Z=v().aTagConfig)==null?0:Z.onclick))v().aTagConfig.onclick(d);return!1});
var I=_.d6(function(d){if(d.key==="Enter"||d.key==="ArrowUp"||d.key==="ArrowDown")d.preventDefault(),W.value.click();return!1}),S={};
return _.O("yt-tab-shape",{class:_.S2("yt-tab-shape-wiz",function(){return v().className},(S["yt-tab-shape-wiz__tab--last-tab"]=function(){return v().isLastTab},S["yt-tab-shape-wiz--host-disabled"]=M,S["yt-tab-shape-wiz--host-clickable"]=!t,S)),
role:t?void 0:"tab","aria-selected":h!=null?h:!1,"aria-disabled":M,tabindex:t?void 0:0,"on:click":f,"on:keydown":I,el:W,"tab-identifier":function(){return v().identifier},
"tab-title":y},_.O(_.g,{cond:H,then:function(){return t()},
else:function(){var d={},Z={};return _.O(_.R8,null,_.O("div",{class:_.S2("yt-tab-shape-wiz__tab",(d["yt-tab-shape-wiz__tab--tab-selected"]=h,d))},_.O(_.g,{cond:m,then:function(l){return _.O(_.JE,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return l().iconType}})}}),y),_.O("div",{class:_.S2("yt-tab-shape-wiz__tab-bar",(Z["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=h,Z))}))}}))},"de");
NRh.idomCompat={callbacks:{customTabRenderable:!0}};_.XeM=_.a(function(f){var H=f.shape;f=_.V(_.gp(48,void 0,"r9IBlb"));var v=f.next().value,t=f.next().value;f=_.V(_.gp(0,void 0,"Bd7rmd"));var M=f.next().value,h=f.next().value,y=function(){return H().tabs},m=_.TN("yt-tab-group-shape"),W=function(){var I,S;
return(S=(I=y())==null?void 0:I.findIndex(function(d){return d.selected}))!=null?S:-1};
_.Kc(function(){var I=m.value.querySelectorAll("yt-tab-shape"),S=W()>-1?I[W()]:void 0;_.nN.addJob(function(){t((S==null?void 0:S.getBoundingClientRect().width)||0)},8,0)});
_.K4(function(){var I=W(),S=_.nN.addJob(function(){var d,Z=((d=m.value)==null?void 0:d.querySelectorAll("yt-tab-shape"))||[],l;t(((l=I>-1?Z[I]:void 0)==null?void 0:l.getBoundingClientRect().width)||0);for(l=d=0;l<I;l++)d+=Z[l].offsetWidth+24;_.a8("HTML_DIR")==="rtl"&&(d=-d);h(d)},8,0);
_.Dt(function(){_.nN.cancelJob(S)})},"EHixkc");
f={};return _.O("yt-tab-group-shape",{class:_.S2("yt-tab-group-shape-wiz",(f["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return H().isOverflowHidden},f)),
el:m},_.O(_.g,{cond:y,then:function(I){return _.O(_.R8,null,_.O("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.O(_.eK,{each:I},function(S,d){return _.O(NRh,{shape:function(){return Object.assign({},S,{isLastTab:d()===I().length-1})},
customTabRenderable:S.customTabRenderable,useCustomTabRenderable:!!S.customTabRenderable})})),_.O(c0H,{width:v,
sliderOffset:M}))}}))},"ee");
_.XeM.idomCompat=!0;var c0H=_.a(function(f){var H=_.vK(f.sliderOffset,0),v=f.width;return _.O("div",{class:"yt-tab-group-shape-wiz__slider",style:_.ZE({width:function(){return v()+"px"},
transform:function(){return"translateX("+H()+"px)"}})})},"fe");var A0M=_.a(function(f){var H=function(){var h,y,m;return(m=(h=f.data().playerLogoAccessibility)==null?void 0:(y=h.accessibilityData)==null?void 0:y.label)!=null?m:""},v=_.s7(POg,function(){return f.data().playerEntityKey}),t={};
t=_.S2("ytwFantasyPlayerViewModelHost",(t.ytwFantasyPlayerViewModelPlaying=function(){var h;return!((h=v())==null||!h.isPlayerPlaying)},t.ytwFantasyPlayerViewModelOnField=function(){var h;
return((h=v())==null?void 0:h.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},t.ytwFantasyPlayerViewModelRedZone=function(){var h;
return((h=v())==null?void 0:h.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},t));
var M=function(){var h,y,m,W=((h=_.t8().resolve(_.vh(_.TK)))==null?0:h())?(y=f.data().playerLogoBackgroundColor)==null?void 0:y.darkTheme:(m=f.data().playerLogoBackgroundColor)==null?void 0:m.lightTheme;return W===void 0?"":_.cS(W)};
return _.O("ytw-fantasy-player-view-model",{class:t},_.O(_.g,{cond:function(){return f.data().playerLogo},
then:function(h){return _.O("div",{class:"ytwFantasyPlayerViewModelLogo"},_.O("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.O(_.Hn,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.ZE({"background-color":M}),data:h,alt:H})),_.O("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.O(_.JE,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.O("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.O("div",{class:"ytwFantasyPlayerViewModelHeader"},_.O(_.iq,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var h;return(h=f.data())==null?void 0:h.playerNameText}}),_.O(_.iq,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var h;return(h=f.data())==null?void 0:h.playerDescriptionText}})),_.O("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.O(_.iq,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var h;return(h=v())==null?void 0:h.gamePeriodText}}),_.O(_.iq,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var h;return(h=f.data())==null?void 0:h.opponentTeamText}}),_.O(_.iq,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var h;return(h=v())==null?void 0:h.gameStatusText}}),_.O(_.iq,{className:_.S2("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var h;return(h=v())==null?void 0:h.playerStatusText}})),_.O("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.O(_.iq,{text:function(){var h;
return(h=v())==null?void 0:h.playerStatsText}}))),_.O(_.iq,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var h;return(h=v())==null?void 0:h.fantasyScore}}))},"ge");var bng=_.a(function(f){return _.O("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.O(_.g,{cond:function(){return f.data().players},
then:function(H){return _.O(_.Jj,{data:H},{fantasyPlayerViewModel:A0M})}}))},"he");var inb=_.a(function(f){var H=_.V(_.sR(function(){var M;return(M=f.data().selectedTabIdentifierKey)!=null?M:""})),v=H.next().value,t=H.next().value;
_.ru(function(){var M;(M=f.setSelectedTabSignal)==null||M.call(f,v)});
return _.O("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.O("div",{class:"ytTabbedViewModelTabGroup"},_.O(_.XeM,{shape:function(){var M=f.data(),h=[],y={tabs:h};if(!M.tabs)return y;M=_.V(M.tabs);for(var m=M.next(),W={};!m.done;W={tabViewModel:void 0},m=M.next())if(W.tabViewModel=_.U(m.value,fsb),W.tabViewModel){var I=m=void 0;h.push({aTagConfig:{onclick:function(S){return function(){var d;t((d=S.tabViewModel.tabIdentifier)!=null?d:"")}}(W)},
identifier:W.tabViewModel.tabIdentifier,selected:v()===W.tabViewModel.tabIdentifier,title:(I=(m=W.tabViewModel.title)==null?void 0:m.content)!=null?I:""})}return y}})),_.O(_.Jj,{data:function(){var M,h=_.V((M=f.data().tabs)!=null?M:[]);
for(M=h.next();!M.done;M=h.next())if((M=_.U(M.value,fsb))&&M.tabIdentifier===v())return M.content}},{fantasyRosterViewModel:bng}))},"ie");_.yn(_.a(function(f){var H=_.V(JUT()),v=H.next().value,t=H.next().value;return _.O("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.O(_.iq,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return f.data().title}}),_.O(_.g,{cond:function(){return f.data().tabbedViewModel},
then:function(M){return _.O(_.Jj,{data:M},{tabbedViewModel:function(h){return _.O(inb,{data:h.data,setSelectedTabSignal:t})}})}}),_.O(_.g,{cond:function(){var M,h=(M=_.U(f.data().tabbedViewModel,HWr))==null?void 0:M.tabs;
M=_.U(h==null?void 0:h[0],fsb);h=_.U(h==null?void 0:h[1],fsb);var y=M==null?void 0:M.tabIdentifier;if(v()===y){var m,W;if(!((m=_.U(M==null?void 0:M.content,ckM))==null?0:(W=m.players)==null?0:W.length))return f.data().noUserTeamPlayersText}else{var I,S;if(!((I=_.U(h==null?void 0:h.content,ckM))==null?0:(S=I.players)==null?0:S.length))return f.data().noOpponentTeamPlayersText}},
then:function(M){return _.O(_.iq,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:M})}}))},"je"),"ytw-fantasy-matchup-view-model",{props:{data:_.ki}});_.yn(_.a(function(f){return _.O("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.O(_.iq,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return f.data().title}}),_.O(_.g,{cond:function(){return f.data().matchupTeamPairs},
then:function(H){return _.O(_.eK,{each:H,keyBy:"INDEX"},function(v){return _.O("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.O(_.Jj,{data:function(){return[v().firstTeam,v().secondTeam]}},{fantasyTeamViewModel:function(t){return _.O(Ejo,{data:t.data,
compact:!0})}}))})}}))},"ke"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.ki}});_.yn(_.a(function(f){var H=function(){var M,h,y;return(y=(M=f.data().userLogoAccessibility)==null?void 0:(h=M.accessibilityData)==null?void 0:h.label)!=null?y:""},v=function(){var M,h,y;
return(y=(M=f.data().opponentLogoAccessibility)==null?void 0:(h=M.accessibilityData)==null?void 0:h.label)!=null?y:""},t=_.s7(uvT,function(){return f.data().entityKey});
return _.O("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.O("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.O(_.g,{cond:function(){return f.data().userLogo},
then:function(M){return _.O(_.Hn,{className:"ytwFantasyWinProbabilityViewModelLogo",data:M,alt:H})}}),_.O("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.O(_.iq,{text:function(){return f.data().title}})),_.O(_.g,{cond:function(){return f.data().opponentLogo},
then:function(M){return _.O(_.Hn,{className:"ytwFantasyWinProbabilityViewModelLogo",data:M,alt:v})}})),_.O("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.O("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.O(_.iq,{text:function(){var M;
return(M=t())==null?void 0:M.userWinNumberLabel}})),_.O("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.O("div",{class:_.S2("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.ZE({flex:function(){var M,h;return(h=(M=t())==null?void 0:M.userWinNumber)!=null?h:50}})}),_.O("div",{class:_.S2("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.ZE({flex:function(){var M,h;return(h=(M=t())==null?void 0:M.opponentWinNumber)!=null?h:50}})})),_.O("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.O(_.iq,{text:function(){var M;
return(M=t())==null?void 0:M.opponentWinNumberLabel}}))))},"le"),"fantasy-win-probability-view-model",{props:{data:_.ki}});var ka9={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},TRr=_.a(function(f){return _.O(_.Jj,{data:f.button},{buttonViewModel:function(H){return _.O(_.Wp,{data:H.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"me"),wev=_.a(function(f){return _.O("ytd-backstage-locked-post-view-model",{class:_.S2("ytdBackstageLockedPostViewModelHost",f.className)},_.O("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.O("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.O(_.Jj,
{data:function(){return f.data().authorAvatar}},{decoratedAvatarViewModel:_.Dj})),_.O("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.O("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.O(_.iq,{text:function(){return f.data().authorText}})),_.O("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.O(_.iq,{text:function(){return f.data().publishedTimeText}}),_.O(_.Jj,{data:function(){return f.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(H){return _.O(OJg,
{data:H.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.O("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.O(_.iq,{text:function(){return f.data().contentText}})),_.O(_.B6,null,_.O(_.Lc,{when:function(){return f.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.O("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.O(_.Hn,{data:ka9,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.O(_.iq,{text:function(){return f.data().lockedText}}))}),_.O(_.Lc,{when:function(){return f.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.O("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.O("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.O(_.Hn,{data:ka9,
alt:""})),_.O(_.iq,{text:function(){return f.data().lockedText}}))})),_.O("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.O(TRr,{button:function(){return f.data().likeButton}}),_.O("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return f.data().voteCountA11y}},_.O(_.iq,{text:function(){return f.data().voteCount}})),_.O(TRr,{button:function(){return f.data().dislikeButton}}),_.O(TRr,{button:function(){return f.data().commentButton}}),_.O("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return f.data().commentCountA11y}},_.O(_.iq,{text:function(){return f.data().commentCount}}))))},"ne");
wev.idomCompat=!0;_.yn(wev,"ytd-backstage-locked-post-view-model",{props:{data:_.ki,className:_.ki}});_.DE("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var Ec=function(){var f=_.K.apply(this,arguments)||this;f.darkerPanels=_.J("web_watch_darker_panels");f.commentsHidePanelButton=!1;f.isWatchGrid=!1;f.continuationShowButton=!1;f.isSearch=!1;f.isConstrainedList=!1;f.isWatch=!1;f.eligibleToSwitchToGrid=!1;f.useBigThumbs=!1;f.notSticky=!1;f.epRestyle=!1;f.isCarouselInFeed=!0;f.topSpacingZero=!1;f.continuationIsInitialLoad=!0;f.enableSqueezebackPanels=_.J("web_shorts_enable_squeezeback_panels");f.enableAnchoredPanel=_.J("desktop_shorts_v2_anchored_panel");
f.mastheadHeight=0;f.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};f.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return f};
_.e(Ec,_.K);_.R=Ec.prototype;_.R.updateLockupContainerTypes=function(f){if(this.eligibleToSwitchToGrid){var H;(H=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||H.forEach(function(v){v.containerType=f})}};
_.R.getItemsPath=function(){return"data.contents"};
_.R.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.R.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",
commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",
compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",
fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",
handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",
horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",
messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",
offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",
premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",
redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",
searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",
showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",
unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",
primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",
listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",videoOverviewViewModel:"yt-video-overview-view-model",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",
properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},
learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.J("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.J("kevlar_low_priority_continuation")}}};
_.R.created=function(){};
_.R.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.R.handleIntersect=function(f){this.notSticky=f[0].intersectionRatio===1};
_.R.attached=function(){var f=this,H=_.J("web_item_section_sticky_header_use_scroll_as_fallback");H||document.addEventListener("scroll",_.jr(this,this.updateHeaderState));var v;this.mastheadHeight=((v=document.querySelector("ytd-masthead"))==null?void 0:v.clientHeight)||0;window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver(function(t){f.handleIntersect(t)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement)):H&&document.addEventListener("scroll",_.jr(this,this.updateHeaderState));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){f.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.R.detached=function(){document.removeEventListener("scroll",_.jr(this,this.updateHeaderState));var f;(f=this.intersectionObserver)==null||f.disconnect();var H;(H=this.resizeObserver)==null||H.disconnect()};
_.R.updated=function(f){f.has("data")&&this.updateHeaderState()};
_.R.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(I19(!this.notSticky))};
_.R.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var f=_.mF(this.hostElement).querySelector("ytd-comments-header-renderer");f&&(f.hidePanelButton=this.commentsHidePanelButton)}};
_.R.onRetrieveLocation=function(f,H){this.containsComments()&&(this.firstCommentsLoaded=H.hasComments=!0)};
_.R.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.R.onLoadReloadContinuation=function(f,H){var v=this;f.stopPropagation();this.isReloading=!0;_.YE(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(t){var M=_.t8().resolve(_.a9);t=H(t);M.postData(t).then(function(h){v.onReloadContinuationData(h)})}})};
_.R.onReloadContinuationData=function(f){if(f=this.get("response.continuationContents.itemSectionContinuation",f)||this.get("response.contents.itemSectionRenderer",f)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",f)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",f))this.set("data.contents",f.contents||f.results),f.header&&this.set("data.header",f.header),this.set("data.continuations",
f.continuations||[]);this.isReloading=!1};
_.R.computeContentsClass=function(f){return f?"reloading":""};
_.R.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.R.computeSectionIdentifier=function(f){return f==null?void 0:f.sectionIdentifier};
_.R.computeFitContainer=function(f){return(f==null?void 0:f.sectionIdentifier)==="youchat-item-section"};
_.R.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.J("kevlar_disable_comments_auto_load")};
_.R.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.R.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.R.computeHasDestinationShelfRenderer=function(f){var H,v;return!!(f==null?0:(H=f.contents)==null?0:(v=H[0])==null?0:v.destinationShelfRenderer)};
_.R.computeHasSectionGroupViewModel=function(f){var H,v;return!!(f==null?0:(H=f.contents)==null?0:(v=H[0])==null?0:v.sectionGroupViewModel)};
_.R.computeHasQrCodeRenderer=function(f){var H,v;return!!(f==null?0:(H=f.contents)==null?0:(v=H[0])==null?0:v.qrCodeRenderer)};
_.R.computeStaticCommentsHeader=function(f){return f&&this.containsComments()};
_.R.computeEpRestyle=function(f){return _.J("web_ep_restyling")&&f&&this.containsComments()};
_.R.computeIsContinuationCommentSection=function(f){return(f==null?void 0:f.targetId)==="shorts-engagement-panel-comments-section"||(f==null?void 0:f.targetId)==="comments-section"||(f==null?void 0:f.targetId)==="engagement-panel-comments-section"};
_.R.computeSuppressPaddingDisclaimer=function(){var f,H,v,t;return!!((f=this.data)==null?0:(H=f.contents)==null?0:(v=H[0])==null?0:(t=v.productListHeaderRenderer)==null?0:t.suppressPaddingDisclaimer)};
_.R.computeHeaderStyle=function(f){switch(f==null?void 0:f.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.R.dataChanged=function(){this.firstCommentsLoaded=!1};
_.R.observeDataContentsLength=function(){var f,H;((f=this.data)==null?0:(H=f.contents)==null?0:H.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.R.onYtDismissibleItemDismissedChange=function(f){this._setItemDismissed(f.type==="yt-dismissible-item-dismissed")};
_.R.triggerContinuations=function(){for(var f=_.mF(this.hostElement).querySelector("#continuations").children,H=0;H<f.length;H++)f[H].trigger()};
_.R.triggerInitialContinuations=function(){for(var f=_.mF(this.hostElement).querySelector("#continuations").children,H=0;H<f.length;H++)f[H].triggerIfNotPreviouslyTriggered()};
_.R.handleYtItemSectionContinuation=function(f,H){var v;H&&((v=this.data)==null?void 0:v.sectionIdentifier)!==H||(this.set("data.continuations",[f]),this.triggerContinuations())};
_.R.handleYtItemSectionReplace=function(f,H){var v;H&&((v=this.data)==null?void 0:v.sectionIdentifier)!==H||(this.set("data.contents",f),this.set("data.continuations",[]))};
_.R.computeUseHeightHack=function(f){return f&&!_.J("kevlar_disable_height_hack")};
_.R.computeTopSpacingZero=function(f){return f};
_.R.continuationShowButtonChanged=function(){var f=_.mF(this.hostElement).querySelector("ytd-continuation-item-renderer");f&&(f.showButton=this.continuationShowButton)};
_.R.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.bM("data-changed",this.data))};
_.H7.Object.defineProperties(Ec.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.J("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var f,H,v;return!!((f=this.data)==null?0:(H=f.contents)==null?0:(v=H[0])==null?0:v.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var f,H,v,t,M,h,y;return!!((f=this.data)==null?0:(H=f.contents)==null?0:(v=H[0])==null?0:(t=v.shelfRenderer)==null?0:(M=t.content)==null?0:(h=M.gridRenderer)==null?0:(y=h.targetId)==null?0:y.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var f,H,v;return!!((f=this.data)==null?0:(H=f.contents)==null?0:(v=H[0])==null?0:v.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var f,H,v;return!!((f=this.data)==null?0:(H=f.contents)==null?0:(v=H[0])==null?0:v.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.yQ("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.J("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.J("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
Ec.prototype.dataChangedForBinding=Ec.prototype.dataChangedForBinding;Ec.prototype.continuationShowButtonChanged=Ec.prototype.continuationShowButtonChanged;Ec.prototype.onYtDismissibleItemDismissedChange=Ec.prototype.onYtDismissibleItemDismissedChange;Ec.prototype.observeDataContentsLength=Ec.prototype.observeDataContentsLength;Ec.prototype.dataChanged=Ec.prototype.dataChanged;Ec.prototype.onServiceRequestCompleted=Ec.prototype.onServiceRequestCompleted;Ec.prototype.onLoadReloadContinuation=Ec.prototype.onLoadReloadContinuation;
Ec.prototype.onRetrieveLocation=Ec.prototype.onRetrieveLocation;Ec.prototype.commentsHidePanelButtonChanged=Ec.prototype.commentsHidePanelButtonChanged;Ec.prototype.dispatchChipBarIsSticky=Ec.prototype.dispatchChipBarIsSticky;Ec.prototype.updateLockupContainerTypes=Ec.prototype.updateLockupContainerTypes;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Ec.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Ec.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Ec.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.h3.YtLazyListBehavior),_.N("design:type",Object)],Ec.prototype,"ytLazyListBehavior",void 0);_.E([_.B(_.N3.YtNextContinuationBehavior),_.N("design:type",Object)],Ec.prototype,"ytNextContinuationBehavior",void 0);
_.E([_.B(_.E_),_.N("design:type",Object)],Ec.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Ec.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],Ec.prototype,"ytdReduxBehavior",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Ec.prototype,"darkerPanels",void 0);_.E([_.F(),_.N("design:type",Object)],Ec.prototype,"data",void 0);
_.E([_.F(),_.N("design:type",Boolean)],Ec.prototype,"engagementPanel",void 0);_.E([_.F(),_.N("design:type",Object)],Ec.prototype,"commentsHidePanelButton",void 0);_.E([_.F(),_.N("design:type",Object)],Ec.prototype,"isWatchGrid",void 0);_.E([_.F(),_.N("design:type",Object)],Ec.prototype,"continuationShowButton",void 0);_.E([_.F({computed:"computeIsContinuationCommentSection(data)"}),_.N("design:type",Boolean)],Ec.prototype,"continuationIsCommentsSection",void 0);
_.E([_.F({value:!0}),_.N("design:type",Boolean)],Ec.prototype,"autoFill",void 0);_.E([_.F(),_.N("design:type",Boolean)],Ec.prototype,"continuationDisablePrescanVisibility",void 0);_.E([_.F(),_.N("design:type",Boolean)],Ec.prototype,"isReloading",void 0);_.E([_.F(),_.N("design:type",Object)],Ec.prototype,"isSearch",void 0);_.E([_.F(),_.N("design:type",Object)],Ec.prototype,"isConstrainedList",void 0);_.E([_.F(),_.N("design:type",Object)],Ec.prototype,"isWatch",void 0);
_.E([_.F(),_.N("design:type",Object)],Ec.prototype,"eligibleToSwitchToGrid",void 0);_.E([_.F(),_.N("design:type",Object)],Ec.prototype,"useBigThumbs",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Ec.prototype,"notSticky",void 0);_.E([_.F({selector:_.Qn}),_.N("design:type",Object)],Ec.prototype,"isGridViewEnabled",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.N("design:type",Object)],Ec.prototype,"epRestyle",void 0);_.E([_.z("isWatch"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ec.prototype,"hideShortsShelfHeader",null);_.E([_.z("isSearch","isWatch"),_.N("design:type",String),_.N("design:paramtypes",[])],Ec.prototype,"thumbnailWidth",null);
_.E([_.z("isSearch","containerWidth"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ec.prototype,"thumbnailTargetWidth",null);_.E([_.z("isSearch","isWatch"),_.N("design:type",String),_.N("design:paramtypes",[])],Ec.prototype,"sizing",null);_.E([_.z("isWatch","isGridViewEnabled","useBigThumbs","data"),_.F({reflectToAttribute:!0}),_.N("design:type",Number),_.N("design:paramtypes",[])],Ec.prototype,"lockupContainerType",null);
_.E([_.Zw("lockupContainerType","data"),_.N("design:type",Function),_.N("design:paramtypes",[Number]),_.N("design:returntype")],Ec.prototype,"updateLockupContainerTypes",null);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],Ec.prototype,"pageSubtype",void 0);_.E([_.F({computed:"computeContainerWidth()"}),_.N("design:type",Number)],Ec.prototype,"containerWidth",void 0);_.E([_.F(),_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ec.prototype,"isPlaylist",null);
_.E([_.F(),_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ec.prototype,"isClipList",null);_.E([_.F(),_.N("design:type",Object)],Ec.prototype,"isCarouselInFeed",void 0);_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ec.prototype,"isPlaylistVideoContainer",null);_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ec.prototype,"isSearchFrictionPage",null);
_.E([_.F({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.N("design:type",Boolean)],Ec.prototype,"useHeightHack",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.N("design:type",Object)],Ec.prototype,"topSpacingZero",void 0);_.E([_.F({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.N("design:type",Boolean)],Ec.prototype,"showButton",void 0);
_.E([_.F(),_.N("design:type",Boolean)],Ec.prototype,"firstCommentsLoaded",void 0);_.E([_.F(),_.N("design:type",Object)],Ec.prototype,"continuationIsInitialLoad",void 0);_.E([_.F({reflectToAttribute:!0,readOnly:!0}),_.N("design:type",Boolean)],Ec.prototype,"itemDismissed",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.N("design:type",String)],Ec.prototype,"sectionIdentifier",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.N("design:type",String)],Ec.prototype,"fitContainer",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.N("design:type",Boolean)],Ec.prototype,"hasDestinationShelfRenderer",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.N("design:type",Boolean)],Ec.prototype,"staticCommentsHeader",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Ec.prototype,"enableSqueezebackPanels",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Ec.prototype,"enableAnchoredPanel",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.N("design:type",Boolean)],Ec.prototype,"hasSectionGroupViewModel",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.N("design:type",Boolean)],Ec.prototype,"hasQrCodeRenderer",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.N("design:type",Boolean)],Ec.prototype,"suppressDisclaimerSeparator",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.N("design:type",String)],Ec.prototype,"headerStyle",void 0);
_.E([_.z("isSearch"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ec.prototype,"lockupExperiments",null);_.E([_.z("isSearch"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ec.prototype,"typographyBump",null);_.E([_.lJ("#header"),_.N("design:type",HTMLElement)],Ec.prototype,"header",void 0);_.E([_.Zw("notSticky"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ec.prototype,"dispatchChipBarIsSticky",null);
_.E([_.Zw("commentsHidePanelButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ec.prototype,"commentsHidePanelButtonChanged",null);_.E([_.sE("yt-retrieve-location"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Ec.prototype,"onRetrieveLocation",null);
_.E([_.sE("yt-load-reload-continuation"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Function]),_.N("design:returntype")],Ec.prototype,"onLoadReloadContinuation",null);_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ec.prototype,"onServiceRequestCompleted",null);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ec.prototype,"dataChanged",null);
_.E([_.xV("data.contents.length"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ec.prototype,"observeDataContentsLength",null);_.E([_.sE("yt-dismissible-item-dismissed"),_.sE("yt-dismissible-item-undismissed"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Ec.prototype,"onYtDismissibleItemDismissedChange",null);
_.E([_.Zw("continuationShowButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ec.prototype,"continuationShowButtonChanged",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ec.prototype,"dataChangedForBinding",null);_.E([_.u({is:"ytd-item-section-renderer",disableElementRegistration:!0})],Ec);
_.G(Ec,"ytd-item-section-renderer",function(){if(Yf9!==void 0)return Yf9;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Yf9=f},{mode:1});var qdn;var etv=_.qO(_.ZC("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var fa9={},UhR=(fa9[0]={title:_.hd(_.ZC("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.hd(_.ZC("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.td("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},fa9[1]={title:_.hd(_.ZC("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.td("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},fa9);_.DE("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var Nn=function(){var f=_.K.apply(this,arguments)||this;f.allVideosCount=0;f.allPlaylistCount=0;f.isOnline=!1;f.shouldRenderDownloadsBanner=!1;f.shouldRenderDownloadsBannerUpsell=!1;f.hasOptedIntoSmartDownloads=!1;f.areAllSmartDownloadsDeleted=!1;f.smartDownloadsCompleted=!1;return f};
_.e(Nn,_.K);Nn.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
Nn.prototype.attached=function(){this.downloadsToRenderChanged()};
Nn.prototype.detached=function(){this.set("renderableData",{})};
Nn.prototype.downloadsToRenderChanged=function(){var f=_.vS().getState().entities,H=_.o5(f),v=_.J("kevlar_playlist_dl_page_killswitch")?EP3(f):_.nY(f),t=_.pLR(f),M=_.P3_(f),h=_.Ba(H);f=_.pY(f);this.set("renderableData",xhb(v,H,t,M,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,h,f))};
Nn.prototype.downloadsToRenderChanged=Nn.prototype.downloadsToRenderChanged;_.E([_.B(_.um),_.N("design:type",Object)],Nn.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Nn.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Nn.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Nn.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],Nn.prototype,"renderableData",void 0);_.E([_.F({selector:_.viB}),_.N("design:type",Object)],Nn.prototype,"allVideosCount",void 0);_.E([_.F({selector:dDb}),_.N("design:type",Object)],Nn.prototype,"allPlaylistCount",void 0);_.E([_.F({selector:_.GZ}),_.N("design:type",Object)],Nn.prototype,"isOnline",void 0);_.E([_.F({selector:_.Yzr}),_.N("design:type",Object)],Nn.prototype,"shouldRenderDownloadsBanner",void 0);
_.E([_.F({selector:_.OMR}),_.N("design:type",Object)],Nn.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.E([_.F({selector:_.mBb}),_.N("design:type",Object)],Nn.prototype,"hasOptedIntoSmartDownloads",void 0);_.E([_.F({selector:_.$BN}),_.N("design:type",Object)],Nn.prototype,"areAllSmartDownloadsDeleted",void 0);_.E([_.F({selector:WHs}),_.N("design:type",Object)],Nn.prototype,"smartDownloadsCompleted",void 0);
_.E([_.xV("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Nn.prototype,"downloadsToRenderChanged",null);_.E([_.u({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],Nn);
_.G(Nn,"ytd-offline-item-section-renderer",function(){if(qdn!==void 0)return qdn;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return qdn=f},
{mode:1});var Htv;var v2n;var cr=function(){return _.K.apply(this,arguments)||this};
_.e(cr,_.K);
cr.prototype.onDataChanged=function(){if(this.JSC$16658_lastData){var f=this.getFilterClass(this.JSC$16658_lastData.status);f&&this.hostElement.classList.remove(f)}var H;(f=this.getFilterClass((H=this.data)==null?void 0:H.status))&&this.hostElement.classList.add(f);f==="selected"?_.mF(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.mF(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");f==="disabled"?_.mF(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.mF(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16658_lastData=this.data};
cr.prototype.getFilterClass=function(f){switch(f){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
cr.prototype.onDataChanged=cr.prototype.onDataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],cr.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],cr.prototype,"data",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cr.prototype,"onDataChanged",null);_.E([_.u({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],cr);
_.G(cr,"ytd-search-filter-renderer",function(){if(v2n!==void 0)return v2n;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return v2n=f},{mode:_.WK("kevlar_poly_si_batch_j075")?1:2});var Xx=function(){return _.K.apply(this,arguments)||this};
_.e(Xx,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Xx.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Xx.prototype,"data",void 0);_.E([_.u({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],Xx);
_.G(Xx,"ytd-search-filter-group-renderer",function(){if(Htv!==void 0)return Htv;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Htv=f},{mode:_.WK("kevlar_poly_si_batch_j075")?1:2});var tRH;var AP=function(){return _.K.apply(this,arguments)||this};
_.e(AP,_.K);AP.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.Ya());this.isCollapsed=!this.isCollapsed};
AP.prototype.navigateToAboutTheseResultsPage=function(){var f=_.Pv("https://www.youtube.com/howyoutubeworks/product-features/search/");f?_.we(window,f,"_blank"):_.Ge(Error("Sh"))};
AP.prototype.dataChanged=function(){this.isCollapsed=!0};
AP.prototype.computeShowBottomBorder=function(){var f,H,v;return!!((f=this.data)==null?0:(H=f.button)==null?0:H.toggleButtonRenderer)||!((v=this.data)==null||!v.aboutTheseResultsButton)};
AP.prototype.dataChanged=AP.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],AP.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],AP.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.N("design:type",Boolean)],AP.prototype,"showBottomBorder",void 0);_.E([_.F(),_.N("design:type",Boolean)],AP.prototype,"renderCollapsibleMenu",void 0);
_.E([_.F(),_.N("design:type",Boolean)],AP.prototype,"isCollapsed",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],AP.prototype,"dataChanged",null);_.E([_.u({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],AP);
_.G(AP,"ytd-search-sub-menu-renderer",function(){if(tRH!==void 0)return tRH;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return tRH=f},{mode:1});var MRr;var hCC=new _.iN("SECTION_LIST_RENDERER_TOKEN");var RCv;var b4=function(){return _.K.apply(this,arguments)||this};
_.e(b4,_.K);b4.prototype.computeStyle=function(f){return f?f.toLowerCase().replace(/_/g,"-"):""};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],b4.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],b4.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],b4.prototype,"headerStyle",void 0);_.E([_.u({is:"ytd-text-header-renderer",disableElementRegistration:!0})],b4);
_.G(b4,"ytd-text-header-renderer",function(){if(RCv!==void 0)return RCv;var f=document.createElement("template");_.x(f,"\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");f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return RCv=f},{mode:1});var VRM;var i4=function(){return _.K.apply(this,arguments)||this};
_.e(i4,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],i4.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],i4.prototype,"data",void 0);_.E([_.u({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],i4);
_.G(i4,"ytd-minor-moment-header-renderer",function(){if(VRM!==void 0)return VRM;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return VRM=f},{mode:1});var y4g;var kb=function(){return _.K.apply(this,arguments)||this};
_.e(kb,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],kb.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],kb.prototype,"data",void 0);_.E([_.u({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],kb);
_.G(kb,"ytd-minor-moment-setting-alert-renderer",function(){if(y4g!==void 0)return y4g;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return y4g=f},{mode:1});var Y9_;var mZH;var Tm=function(){var f=_.K.apply(this,arguments)||this;f.booleanSettingById=!1;f.smartDownloadsEnabledVE=_.$$(128287);f.smartDownloadsDisabledVE=_.$$(128286);f.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return f};
_.e(Tm,_.K);_.R=Tm.prototype;_.R.attachSmartDownloadsSettingVes=function(){var f;this.activeVeForLogging||((f=this.data)==null?void 0:f.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.YP(_.UV(),this.smartDownloadsEnabledVE),_.YP(_.UV(),this.smartDownloadsDisabledVE))};
_.R.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.YE(this.hostElement,"yt-settings-switch-ready")};
_.R.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.R.onSwitchChange=function(f){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(f=_.HB(f).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.J("kevlar_settings_switch_resolve_command_killswitch")?_.t8().resolve(_.MJ).resolveCommand(f,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(f)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.R.handleUpdateSettingsSwitch=function(f){(f=_.U(f,$7T))&&this.data&&this.data.id===f.id&&this.set("data.enabled",!!f.enabled)};
_.R.onToggleSettingsSwitch=function(f,H){this.data&&this.data.id===f&&this.set("data.enabled",H!=null?H:!this.data.enabled)};
_.R.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.wC.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.R.maybeLogSmartDownloadsSettingVisibility=function(){var f=_.uy(),H;f&&((H=this.data)==null?void 0:H.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.i0(f,[this.smartDownloadsEnabledVE]),_.kE(f,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.i0(f,[this.smartDownloadsDisabledVE]),_.kE(f,[this.smartDownloadsEnabledVE])))};
_.R.maybeLogSmartDownloadsSettingClick=function(){var f;((f=this.data)==null?void 0:f.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.$P(_.UV(),this.activeVeForLogging)};
_.R.updateDataEnabledFromBinding=function(f){this.set("data.enabled",f.detail.value)};
_.H7.Object.defineProperties(Tm.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var f=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!f&&(f=this.ytRendererBehavior.getSimpleString(this.data.title));return f}}});
Tm.prototype.dataChanged=Tm.prototype.dataChanged;_.E([_.B(_.um),_.N("design:type",Object)],Tm.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Tm.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Tm.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Tm.prototype,"ytComponentBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],Tm.prototype,"data",void 0);_.E([_.F({selector:function(f,H){if(Object.keys(f==null?void 0:f.entities).length)switch(H){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return No3(f.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.N("design:type",Object)],Tm.prototype,"booleanSettingById",void 0);_.E([_.F(),_.N("design:type",pP)],Tm.prototype,"activeVeForLogging",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Tm.prototype,"toggleAriaLabel",null);_.E([_.xV("data"),_.xV("booleanSettingById"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tm.prototype,"dataChanged",null);
_.E([_.u({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],Tm);
_.G(Tm,"ytd-settings-switch-renderer",function(){if(mZH!==void 0)return mZH;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return mZH=f},{mode:1});var w5=function(){return _.K.apply(this,arguments)||this};
_.e(w5,_.K);w5.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}}}}};
_.H7.Object.defineProperties(w5.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var f=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(f+=" remove-left-margin");this.data.extraBottomSpace&&(f+=" extra-bottom-space");return f}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],w5.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],w5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],w5.prototype,"data",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],w5.prototype,"contentsClassName",null);_.E([_.u({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],w5);
_.G(w5,"ytd-minor-moment-setting-section-renderer",function(){if(Y9_!==void 0)return Y9_;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Y9_=f},{mode:1});var $ZZ;var qn=function(){return _.K.apply(this,arguments)||this};
_.e(qn,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],qn.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],qn.prototype,"componentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],qn.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],qn);
_.G(qn,"ytd-empty-product-details-renderer",function(){if($ZZ!==void 0)return $ZZ;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return $ZZ=f},{mode:1});var Wf_;var OtT;var fq=function(){var f=_.K.apply(this,arguments)||this;f.expanded=!0;return f};
_.e(fq,_.K);fq.prototype.getBadgeRowClass=function(f,H,v){for(var t=_.V(this.hostElement.querySelectorAll("yt-img-shadow")),M=t.next();!M.done;M=t.next())M.value.onShow();f=f.selected;return v?f!==-1?f===H?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(f!==void 0?f:0)===H?"badge-line":"badge-hidden"};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],fq.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],fq.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],fq.prototype,"expanded",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],fq);
_.G(fq,"ytd-sponsorships-loyalty-badges-renderer",function(){if(OtT!==void 0)return OtT;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return OtT=f},{mode:1});var g2M;var Hl=function(){var f=_.K.apply(this,arguments)||this;f.expanded=!0;return f};
_.e(Hl,_.K);Hl.prototype.getContainerClasses=function(f,H){f=f?"expanded":"collapsed";H&&(f+=" item");return f};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Hl.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Hl.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],Hl.prototype,"expanded",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],Hl);
_.G(Hl,"ytd-sponsorships-perk-renderer",function(){if(g2M!==void 0)return g2M;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return g2M=f},{mode:1});var Iag;var vl=function(){var f=_.K.apply(this,arguments)||this;f.expanded=!0;return f};
_.e(vl,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],vl.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],vl.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],vl.prototype,"expanded",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],vl);
_.G(vl,"ytd-sponsorships-perks-renderer",function(){if(Iag!==void 0)return Iag;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Iag=f},{mode:1});var tB=function(){var f=_.K.apply(this,arguments)||this;f.isCollapsed=!1;return f};
_.e(tB,_.K);tB.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
tB.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
tB.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var f;this.expandCollapseButton=_.U((f=this.data)==null?void 0:f.expandButton,_.nv)}else{var H;this.expandCollapseButton=_.U((H=this.data)==null?void 0:H.collapseButton,_.nv)}};
tB.prototype.updateExpandCollapseButton=tB.prototype.updateExpandCollapseButton;tB.prototype.onDataChanged=tB.prototype.onDataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],tB.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],tB.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],tB.prototype,"isCollapsed",void 0);_.E([_.F(),_.N("design:type",Object)],tB.prototype,"expandCollapseButton",void 0);
_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tB.prototype,"onDataChanged",null);_.E([_.xV("data","isCollapsed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tB.prototype,"updateExpandCollapseButton",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],tB);
_.G(tB,"ytd-sponsorships-expandable-perks-renderer",function(){if(Wf_!==void 0)return Wf_;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Wf_=f},{mode:1});var S9H;var Mp=function(){return _.K.apply(this,arguments)||this};
_.e(Mp,_.K);Mp.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Mp.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Mp.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Mp.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],Mp);
_.G(Mp,"ytd-sponsorships-actionable-message-renderer",function(){if(S9H!==void 0)return S9H;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return S9H=f},{mode:1});var dZh;var hB=function(){return _.K.apply(this,arguments)||this};
_.e(hB,_.K);_.R=hB.prototype;_.R.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.R.getExpansionIcon=function(f){return f?"COLLAPSE":"EXPAND"};
_.R.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.R.computeMessageContainerStyle=function(f){var H=f.expandableItems?" style-clickable":"";return f.messageContainerStyle?f.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+H:"style-unspecified"+H};
_.R.isSinglePerk=function(f){return!!f.messageContainerStyle&&(f.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||f.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.R.onExpandedChanged=function(){var f=this;if(this.expanded)for(var H=_.V(this.hostElement.querySelectorAll("yt-img-shadow")),v=H.next();!v.done;v=H.next())v.value.onShow();_.qV(this,function(){_.YE(f.hostElement,"yt-refit")})};
_.R.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
hB.prototype.onDataChanged=hB.prototype.onDataChanged;hB.prototype.onExpandedChanged=hB.prototype.onExpandedChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],hB.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],hB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],hB.prototype,"data",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],hB.prototype,"expanded",void 0);
_.E([_.Zw("expanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hB.prototype,"onExpandedChanged",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hB.prototype,"onDataChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],hB);
_.G(hB,"ytd-sponsorships-expandable-message-renderer",function(){if(dZh!==void 0)return dZh;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return dZh=f},{mode:_.WK("kevlar_poly_si_batch_j028")?1:2});var jGo;var RU=function(){return _.K.apply(this,arguments)||this};
_.e(RU,_.K);RU.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"}}}}};
RU.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.U(this.data.endButton,_.nv).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
RU.prototype.onDataChanged=RU.prototype.onDataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],RU.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],RU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],RU.prototype,"data",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RU.prototype,"onDataChanged",null);
_.E([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],RU);
_.G(RU,"ytd-sponsorships-heading-renderer",function(){if(jGo!==void 0)return jGo;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return jGo=f},{mode:1});var sG9;var Vd=function(){return _.K.apply(this,arguments)||this};
_.e(Vd,_.K);_.E([_.F(),_.N("design:type",Object)],Vd.prototype,"data",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Vd.prototype,"ytRendererBehavior",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],Vd);
_.G(Vd,"ytd-sponsorships-links-renderer",function(){if(sG9!==void 0)return sG9;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return sG9=f},{mode:1});var Zto;var yd=function(){return _.K.apply(this,arguments)||this};
_.e(yd,_.K);_.R=yd.prototype;_.R.onDataChanged=function(){if(this.data&&this.data.expandableItems){var f;(f=_.mF(this.hostElement).querySelector("tp-yt-paper-button"))==null||f.setAttribute("role","button")}else{var H;(H=_.mF(this.hostElement).querySelector("tp-yt-paper-button"))==null||H.removeAttribute("role")}};
_.R.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.R.getExpansionIcon=function(f){return f?"COLLAPSE":"EXPAND"};
_.R.getTileClasses=function(f){return f?"tile expandable-tile":"tile"};
_.R.getButtonDisabled=function(f){return f?void 0:""};
yd.prototype.onDataChanged=yd.prototype.onDataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],yd.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],yd.prototype,"data",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],yd.prototype,"expanded",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yd.prototype,"onDataChanged",null);
_.E([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],yd);
_.G(yd,"ytd-sponsorships-list-tile-renderer",function(){if(Zto!==void 0)return Zto;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Zto=f},{mode:1});var J4h;var la_;var Y9=function(){return _.K.apply(this,arguments)||this};
_.e(Y9,_.K);Y9.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Y9.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Y9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Y9.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],Y9);
_.G(Y9,"ytd-sponsorships-promotion-renderer",function(){if(la_!==void 0)return la_;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return la_=f},{mode:1});var UZn;var mz=function(){return _.K.apply(this,arguments)||this};
_.e(mz,_.K);mz.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],mz.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],mz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],mz.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],mz);
_.G(mz,"ytd-sponsorships-purchase-option-renderer",function(){if(UZn!==void 0)return UZn;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return UZn=f},{mode:1});var eCv;var LfC;var xZM=function(){return _.K.apply(this,arguments)||this};
_.e(xZM,_.K);_.E([_.F(),_.N("design:type",Object)],xZM.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],xZM);
_.G(xZM,"ytd-ypc-offer-promo-renderer",function(){if(LfC!==void 0)return LfC;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return LfC=f},{mode:1});var $9=function(){return _.K.apply(this,arguments)||this};
_.e($9,_.K);_.R=$9.prototype;
_.R.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"}}}}};
_.R.expansionCTA=function(f,H){return f&&(H?f.collapseCallToAction:f.expansionCallToAction)};
_.R.getExpansionIcon=function(f){return f?"COLLAPSE":"EXPAND"};
_.R.expansionCallToActionTap=function(){var f=this;this.expanded=!this.expanded;_.qV(this,function(){_.YE(f.hostElement,"yt-refit")})};
_.R.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var f,H=(f=this.data)==null?void 0:f.onVisible;H&&this.ytComponentBehavior.resolveCommand(H)};
_.R.computeDisplayTitle=function(f){return!(!f||this.titledisplaystatus!=="show")};
_.R.computeDisplaySeparator=function(){return!1};
_.R.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
$9.prototype.onDataChanged=$9.prototype.onDataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],$9.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],$9.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],$9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],$9.prototype,"data",void 0);
_.E([_.F({value:!1}),_.N("design:type",Boolean)],$9.prototype,"expanded",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],$9.prototype,"purchaseButtonClicked",void 0);_.E([_.F({reflectToAttribute:!0,value:"show"}),_.N("design:type",String)],$9.prototype,"titledisplaystatus",void 0);_.E([_.F({computed:"computeDisplayTitle(data.title)"}),_.N("design:type",Boolean)],$9.prototype,"displayTitle",void 0);
_.E([_.F({computed:"computeDisplaySeparator(data)"}),_.N("design:type",Boolean)],$9.prototype,"displaySeparator",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$9.prototype,"onDataChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],$9);
_.G($9,"ytd-sponsorships-tier-renderer",function(){if(eCv!==void 0)return eCv;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return eCv=f},{mode:2});var Wl=function(){return _.K.apply(this,arguments)||this};
_.e(Wl,_.K);
Wl.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"}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Wl.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Wl.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Wl.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],Wl);
_.G(Wl,"ytd-sponsorships-management-renderer",function(){if(J4h!==void 0)return J4h;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return J4h=f},{mode:1});var BVv;var OO=function(){return _.K.apply(this,arguments)||this};
_.e(OO,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],OO.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],OO.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],OO);
_.G(OO,"ytd-open-in-native-app-view-model",function(){if(BVv!==void 0)return BVv;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return BVv=f},{mode:_.WK("kevlar_poly_si_batch_j028")?1:2});var zCb;var Ffn;var r4g=_.EH(["top-"]),KfZ=_.EH(["bottom-"]),DZn=_.EH(["left-"]),o2M=_.EH(["right-"]),n2b={},pyr=function(f,H,v){f.removeAttribute("top-"+v);f.removeAttribute("bottom-"+v);f.removeAttribute("left-"+v);f.removeAttribute("right-"+v);H&&(H.top&&_.hf([_.YO(r4g)],f,"top-"+v,H.top),H.bottom&&_.hf([_.YO(KfZ)],f,"bottom-"+v,H.bottom),H.left&&_.hf([_.YO(DZn)],f,"left-"+v,H.left),H.right&&_.hf([_.YO(o2M)],f,"right-"+v,H.right))};
n2b.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(f){var H,v=_.mF((H=this.hostElement)!=null?H:this),t;H=this.cardItemBoxBehaviorMarginTargetId&&v?v.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(t=this.hostElement)!=null?t:this;pyr(H,f,"margin")},
cardItemContainerPaddingChanged_:function(f){var H,v=_.mF((H=this.hostElement)!=null?H:this),t;H=this.cardItemBoxBehaviorPaddingTargetId&&v?v.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(t=this.hostElement)!=null?t:this;pyr(H,f,"padding")}}];var gw={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 QGo;var ucn;var IU=function(){return _.K.apply(this,arguments)||this};
_.e(IU,_.K);IU.prototype.textColorChanged_=function(){this.hostElement.style.color=gw[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
IU.prototype.textColorChanged_=IU.prototype.textColorChanged_;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],IU.prototype,"ytRendererBehavior",void 0);_.E([_.B(n2b.YtCardItemBoxBehavior),_.N("design:type",Object)],IU.prototype,"ytCardItemBoxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],IU.prototype,"data",void 0);_.E([_.Zw("data.textColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IU.prototype,"textColorChanged_",null);
_.E([_.GW({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],IU);
_.G(IU,"yt-card-item-text-renderer",function(){if(ucn===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;QGo===void 0&&(QGo=document.createElement("template"));var t=QGo;v.call(H,t.content.cloneNode(!0),f.content.firstChild);ucn=f}f=ucn;return f},{mode:2});var aaC;var Pjv;var SJ=function(){return _.K.apply(this,arguments)||this};
_.e(SJ,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],SJ.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],SJ.prototype,"data",void 0);_.E([_.GW({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],SJ);
_.G(SJ,"yt-card-item-badge-renderer",function(){if(Pjv===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;aaC===void 0&&(aaC=document.createElement("template"));var t=aaC;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Pjv=f}f=Pjv;return f},{mode:2});var GSb;var Cjg;var dw=function(){return _.K.apply(this,arguments)||this};
_.e(dw,_.K);dw.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],dw.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],dw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],dw.prototype,"data",void 0);_.E([_.GW({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],dw);
_.G(dw,"yt-card-item-text-collection-renderer",function(){if(Cjg===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;GSb===void 0&&(GSb=document.createElement("template"));var t=GSb;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Cjg=f}f=Cjg;return f},{mode:2});var E2v;var NVh;var jJ=function(){return _.K.apply(this,arguments)||this};
_.e(jJ,_.K);jJ.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]]"}}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],jJ.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],jJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],jJ.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Number)],jJ.prototype,"iconSize",void 0);_.E([_.GW({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],jJ);
_.G(jJ,"yt-card-item-text-with-button-renderer",function(){if(NVh===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;E2v===void 0&&(E2v=document.createElement("template"));var t=E2v;v.call(H,t.content.cloneNode(!0),f.content.firstChild);NVh=f}f=NVh;return f},{mode:2});var sO=function(){return _.K.apply(this,arguments)||this};
_.e(sO,_.K);sO.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"}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],sO.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],sO.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],sO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],sO.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],sO);
_.G(sO,"ytd-commerce-cart-summary-line-item-renderer",function(){if(Ffn!==void 0)return Ffn;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Ffn=f},{mode:1});_.DE("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Zl=function(){var f=_.K.apply(this,arguments)||this;f.hidden=!1;return f};
_.e(Zl,_.K);_.R=Zl.prototype;_.R.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"}}}}};
_.R.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.R.updateSummary=function(){var f=this.commerceCartCheckoutButtonEntity,H;if(((H=this.data)==null?0:H.cartButton)&&f.checkoutSummaryText){var v,t=xd((v=this.data)==null?void 0:v.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+t+".cardItemTextRenderer.text",Bs(f.checkoutSummaryText));if(f.checkoutDetailText){var M;v=xd((M=this.data)==null?void 0:M.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+v+".cardItemTextRenderer.text",Bs(f.checkoutDetailText))}if(f.checkoutAdditionalMetadataText){var h;
M=xd((h=this.data)==null?void 0:h.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+M+".cardItemTextRenderer.text",Bs(f.checkoutAdditionalMetadataText))}}else f.estimatedTotalPrice&&(h=xd((t=this.data)==null?void 0:t.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+h+".cardItemTextRenderer.text",Bs(f.estimatedTotalPrice)))};
_.R.updateIsHidden=function(){var f,H=(f=this.commerceCartCheckoutButtonEntity)==null?void 0:f.isHidden;H!==void 0&&(this.hidden=H)};
_.R.updateCheckoutButton=function(){var f,H=(f=this.commerceCartCheckoutButtonEntity)==null?void 0:f.isDisabled;H!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",H);var v;f=(v=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:v.innertubeCommand;f!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",f);var t;v=(t=this.commerceCartCheckoutButtonEntity)==null?void 0:t.checkoutButtonText;v!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:v})};
Zl.prototype.entityChanged=Zl.prototype.entityChanged;_.E([_.B(_.um),_.N("design:type",Object)],Zl.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Zl.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Zl.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Zl.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Zl.prototype,"fullWidth",void 0);_.E([_.F(),_.N("design:type",Object)],Zl.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Zl.prototype,"compact",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Zl.prototype,"hidden",void 0);
_.E([_.F({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:X$v}),_.N("design:type",Object)],Zl.prototype,"commerceCartCheckoutButtonEntity",void 0);_.E([_.Zw("commerceCartCheckoutButtonEntity","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zl.prototype,"entityChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],Zl);
_.G(Zl,"ytd-commerce-cart-checkout-button-renderer",function(){if(zCb!==void 0)return zCb;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return zCb=f},{mode:2});var c4v;_.Xyv={};
_.Xyv.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",_.jr(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.jr(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(f){!this.tappableItemBehaviorTapEnabled||f.keyCode!==13&&f.keyCode!==32||f.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var f=this.data.onTap;f.ypcGetCartEndpoint?(_.WV(this.hostElement,[f]),this.tappableItemBehaviorTapEnabled=!1):f.ypcOffersEndpoint?_.WV(this.hostElement,[f]):_.Oj(this.hostElement,[f],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(f){this.tappableItemBehaviorTapEnabled=!!f},
tappableItemBehaviorOnTapEnabledChanged_:function(){var f=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(f.setAttribute("tabIndex",0),f.setAttribute("role","button")):(f.removeAttribute("tabIndex"),f.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(f){f.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var A4C;var bt_;var JB=function(){return _.K.apply(this,arguments)||this};
_.e(JB,_.K);JB.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.om("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.om("sharingToggleButtonAndDefaultButton")}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],JB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],JB.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],JB.prototype,"data",void 0);_.E([_.GW({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],JB);
_.G(JB,"yt-card-item-actions-renderer",function(){if(bt_===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;A4C===void 0&&(A4C=document.createElement("template"));var t=A4C;v.call(H,t.content.cloneNode(!0),f.content.firstChild);bt_=f}f=bt_;return f},{mode:2});var itC;var kSM;var TVa;var wya;var q9h;var fQa;var lo=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return f};
_.e(lo,_.K);lo.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
lo.prototype.handleDarkModeToggledAction_=function(f){this.isDarkTheme_=f};
lo.prototype.computeThemeImage_=function(f,H){if(!f||!f.imageLight)return!1;this.isCircular_=f.isCircular;f.imageWidth&&(this.hostElement.style.width=f.imageWidth+"px");f.imageHeight&&(this.hostElement.style.height=f.imageHeight+"px");f.borderWidth&&(this.image.style.borderWidth=f.borderWidth+"px",this.image.style.borderStyle="solid");f.borderColor&&(this.image.style.borderColor=_.cS(f.borderColor));return H&&f.imageDark?f.imageDark:f.imageLight};
lo.prototype.computeThemeIcon_=function(f){var H,v;if(!(f==null?0:(H=f.themedIcon)==null?0:(v=H.icon)==null?0:v.iconType))return!1;this.icon.style.color=gw[f.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(f.imageWidth||18)+"px";this.icon.style.height=(f.imageHeight||18)+"px";return _.SW(f.themedIcon.icon.iconType)};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],lo.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],lo.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(n2b.YtCardItemBoxBehavior),_.N("design:type",Object)],lo.prototype,"ytCardItemBoxBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],lo.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],lo.prototype,"data",void 0);
_.E([_.F({value:!1}),_.N("design:type",Boolean)],lo.prototype,"fit",void 0);_.E([_.F(),_.N("design:type",Boolean)],lo.prototype,"isDarkTheme_",void 0);_.E([_.F({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.N("design:type",Object)],lo.prototype,"themeImage_",void 0);_.E([_.F({computed:"computeThemeIcon_(data)"}),_.N("design:type",Object)],lo.prototype,"themeIcon_",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Object)],lo.prototype,"isCircular_",void 0);
_.E([_.lJ("#image"),_.N("design:type",Object)],lo.prototype,"image",void 0);_.E([_.lJ("#icon"),_.N("design:type",Object)],lo.prototype,"icon",void 0);_.E([_.GW({is:"yt-themed-image-renderer",disableElementRegistration:!0})],lo);
_.G(lo,"yt-themed-image-renderer",function(){if(fQa===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;q9h===void 0&&(q9h=document.createElement("template"));var t=q9h;v.call(H,t.content.cloneNode(!0),f.content.firstChild);fQa=f}f=fQa;return f},{mode:2});var UO=function(){return _.K.apply(this,arguments)||this};
_.e(UO,_.K);UO.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"}}}}};
UO.prototype.computeImagePlacement_=function(f){return f||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],UO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],UO.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],UO.prototype,"data",void 0);_.E([_.F({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.N("design:type",String)],UO.prototype,"imagePlacement",void 0);
_.E([_.GW({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],UO);
_.G(UO,"yt-card-item-text-with-image-renderer",function(){if(wya===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;TVa===void 0&&(TVa=document.createElement("template"));var t=TVa;v.call(H,t.content.cloneNode(!0),f.content.firstChild);wya=f}f=wya;return f},{mode:2});var eJ=function(){return _.K.apply(this,arguments)||this};
_.e(eJ,_.K);eJ.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"}}}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],eJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],eJ.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],eJ.prototype,"data",void 0);_.E([_.GW({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],eJ);
_.G(eJ,"yt-card-item-error-renderer",function(){if(kSM===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;itC===void 0&&(itC=document.createElement("template"));var t=itC;v.call(H,t.content.cloneNode(!0),f.content.firstChild);kSM=f}f=kSM;return f},{mode:2});var Hz9;var vsM;_.DE("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var Lq=function(){return _.K.apply(this,arguments)||this};
_.e(Lq,_.K);_.R=Lq.prototype;
_.R.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"}}}}};
_.R.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.R.backgroundColorChanged_=function(){var f,H=(f=this.data)==null?void 0:f.backgroundColor;f=gw[H||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.mF(this.hostElement).querySelector("#main-content").style.backgroundColor=f};
_.R.headerPromoBackgroundColorChanged_=function(){var f,H=(f=this.data)==null?void 0:f.headerPromoBackgroundColor;f=gw[H||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.mF(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=f};
_.R.errorRendererVisibilityChanged_=function(){var f=this.isExpanded_,H;this.isErrorRendererVisible_=!((H=this.data)==null||!H.errorRenderer)&&!f};
_.R.onYtToggleButton_=function(f,H){this.isExpanded_=H.toggled};
Lq.prototype.onYtToggleButton_=Lq.prototype.onYtToggleButton_;Lq.prototype.errorRendererVisibilityChanged_=Lq.prototype.errorRendererVisibilityChanged_;Lq.prototype.headerPromoBackgroundColorChanged_=Lq.prototype.headerPromoBackgroundColorChanged_;Lq.prototype.backgroundColorChanged_=Lq.prototype.backgroundColorChanged_;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Lq.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Lq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(n2b.YtCardItemBoxBehavior),_.N("design:type",Object)],Lq.prototype,"ytCardItemBoxBehavior",void 0);_.E([_.B(_.Xyv.YtTappableItemBehavior),_.N("design:type",Object)],Lq.prototype,"ytTappableItemBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Lq.prototype,"data",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],Lq.prototype,"isExpanded_",void 0);
_.E([_.F({value:!1}),_.N("design:type",Boolean)],Lq.prototype,"isErrorRendererVisible_",void 0);_.E([_.Zw("data.backgroundColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Lq.prototype,"backgroundColorChanged_",null);_.E([_.Zw("data.headerPromoBackgroundColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Lq.prototype,"headerPromoBackgroundColorChanged_",null);
_.E([_.Zw("data.errorRenderer","isExpanded_"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Lq.prototype,"errorRendererVisibilityChanged_",null);_.E([_.sE("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[Event,Object]),_.N("design:returntype")],Lq.prototype,"onYtToggleButton_",null);_.E([_.GW({is:"yt-card-item-renderer",disableElementRegistration:!0})],Lq);
_.G(Lq,"yt-card-item-renderer",function(){if(vsM===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;Hz9===void 0&&(Hz9=document.createElement("template"));var t=Hz9;v.call(H,t.content.cloneNode(!0),f.content.firstChild);vsM=f}f=vsM;return f},{mode:2});_.DE("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var x9=function(){var f=_.K.apply(this,arguments)||this;f.hidden=!1;return f};
_.e(x9,_.K);_.R=x9.prototype;_.R.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.R.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.R.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var f,H=(f=this.commerceCartHeaderEntity)==null?void 0:f.isHidden;H!==void 0&&(this.hidden=H)}};
_.R.updateTitle=function(){var f=this.commerceCartHeaderEntity.isDisabled,H,v,t=(v=_.U((H=this.data)==null?void 0:H.item,z5g))==null?void 0:v.headingRenderer;t&&(H=xd(t,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+H+".0.cardItemTextRenderer.textColor",f?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.R.updateSummaryText=function(){var f=this.commerceCartHeaderEntity;if(this.compact){var H,v,t=(v=_.U((H=this.data)==null?void 0:H.item,z5g))==null?void 0:v.headingRenderer;t&&(H=xd(t,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+H+".1.cardItemTextRenderer.text",f.shortHeaderSummaryText?Bs(f.shortHeaderSummaryText):f.headerSummaryText?Bs(f.headerSummaryText):""))}else{var M;if(H=(M=_.U((t=this.data)==null?void 0:t.item,z5g))==null?void 0:M.additionalInfoRenderer)H=xd(H,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+H+".text",f.headerSummaryText?Bs(f.headerSummaryText):"")}};
_.R.updateCheckoutButton=function(){var f=this.commerceCartHeaderEntity,H,v,t=(v=_.U((H=this.data)==null?void 0:H.item,z5g))==null?void 0:v.additionalInfoRenderer;H=xd(t,"buttonRenderer");var M;v=(M=this.commerceCartHeaderEntity)==null?void 0:M.isButtonDisabled;var h;M=(h=this.commerceCartHeaderEntity)==null?void 0:h.isButtonHidden;v!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+H+".buttonRenderer.isDisabled",v);M!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
M);var y;f=(y=f.checkoutButtonCommand)==null?void 0:y.innertubeCommand;f!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+H+".buttonRenderer.command",f)};
x9.prototype.entityChanged=x9.prototype.entityChanged;_.E([_.B(_.um),_.N("design:type",Object)],x9.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],x9.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],x9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],x9.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],x9.prototype,"compact",void 0);_.E([_.F({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(f,H){return _.dL(f.entities,"commerceCartHeaderEntity",H)}}),
_.N("design:type",Object)],x9.prototype,"commerceCartHeaderEntity",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],x9.prototype,"hidden",void 0);_.E([_.Zw("commerceCartHeaderEntity","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],x9.prototype,"entityChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],x9);
_.G(x9,"ytd-commerce-cart-header-renderer",function(){if(c4v!==void 0)return c4v;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return c4v=f},{mode:1});var tjv;var Mjo=_.SI(function(f,H){var v;return(v=f.onChangeCallback)==null?void 0:v.call(f,H)},1E3),hWH=_.a(function(f){var H=f.data;
var v=f.iconMinus;f=f.iconPlus;var t=function(){return!!H().disabled},M=_.V(_.gp(0,void 0,"r56zNb")),h=M.next().value,y=M.next().value;
M={};M=_.S2("yt-spec-quantity-incrementer-shape__icon",(M["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return t()||h()===(H().onRemoveCommand?0:1)},M));
var m={};m=_.S2("yt-spec-quantity-incrementer-shape__icon",(m["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return h()>=H().maxValue||t()},m));
var W={};W=_.S2("yt-spec-quantity-incrementer-shape__text",(W["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return h()>H().maxValue},W["yt-spec-quantity-incrementer-shape__text--text-disabled"]=t,W));
var I=_.d6(function(){if(h()===1){var d,Z;(Z=(d=H()).onRemoveCommand)==null||Z.call(d)}d=h()>H().maxValue?H().maxValue:h()-1;y(d);Mjo(H(),d);return!1}),S=_.d6(function(){if(h()===H().maxValue)return!1;
var d=h()+1;y(d);Mjo(H(),d);return!1});
_.ru(function(){y(H().value)});
return _.O("quantity-incrementer-shape",null,_.O("div",{class:"yt-spec-quantity-incrementer-shape"},_.O("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return h()===(H().onRemoveCommand?0:1)||t()},
"aria-label":function(){return h()!==1?H().minusLabel:H().minimumReachedLabel},
"on:click":I},_.O(_.yU,{model:{circular:!0}}),_.O("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.O("div",{class:M},v()))),_.O("div",{class:W},h),_.O("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return h()>=H().maxValue||t()},
"aria-label":function(){return h()!==H().maxValue?H().plusLabel:H().maximumReachedLabel},
"on:click":S},_.O(_.yU,{model:{circular:!0}}),_.O("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.O("div",{class:m},f())))))},"oe");_.yn(_.a(function(f){function H(){v().onRemoveCommand&&_.XA(v().onRemoveCommand)}
var v=f.data;var t=_.s7(zng,function(){return v().quantityIncrementerEntityKey});
return _.O("yt-quantity-incrementer-view-model",null,_.O(hWH,{data:function(){var M=v(),h;var y=t()?!((h=t())==null||!h.disabled):!1;var m;h=t()?(m=t())==null?void 0:m.quantity:v().quantity;return F0T(M,y,H,h)},
iconMinus:function(){return _.O(_.JE,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.O(_.JE,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"pe"),"yt-quantity-incrementer-view-model",{props:{data:_.ki}});var Bl=function(){var f=_.K.apply(this,arguments)||this;f.compact=!1;f.hasQuantityIncrementer=!1;return f};
_.e(Bl,_.K);Bl.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"}}}};
Bl.prototype.computeHasQuantityIncrementer=function(){var f;return!!_.U((f=this.data)==null?void 0:f.picker,D8g)};
Bl.prototype.onLabelClick=function(){var f;(f=this.dropdownEl)==null||f.open()};
_.E([_.lJ("ytd-dropdown-renderer"),_.N("design:type",Object)],Bl.prototype,"dropdownEl",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Bl.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Bl.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Bl.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],Bl.prototype,"quantityColor",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Bl.prototype,"compact",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.N("design:type",Object)],Bl.prototype,"hasQuantityIncrementer",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],Bl);
_.G(Bl,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(tjv!==void 0)return tjv;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return tjv=f},{mode:1});var RWh;var Vjr;var zt=function(){return _.K.apply(this,arguments)||this};
_.e(zt,_.K);zt.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
zt.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
zt.prototype.updateTitle=function(){var f=this.disabledCartItemEntity;f.disableActionName&&this.set("data.title",Bs(f.disableActionName))};
zt.prototype.updateButton=function(){var f,H=(f=this.disabledCartItemEntity.undoCommand)==null?void 0:f.innertubeCommand;H!==void 0&&(this.set("data.actionButton.buttonRenderer.command",H),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
zt.prototype.entityChanged=zt.prototype.entityChanged;_.E([_.B(_.um),_.N("design:type",Object)],zt.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],zt.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],zt.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(f,H){return _.dL(f.entities,"disabledCartItemEntity",H)}}),
_.N("design:type",Object)],zt.prototype,"disabledCartItemEntity",void 0);_.E([_.F(),_.N("design:type",Object)],zt.prototype,"data",void 0);_.E([_.Zw("disabledCartItemEntity","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zt.prototype,"entityChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],zt);
_.G(zt,"ytd-disabled-cart-item-renderer",function(){if(Vjr!==void 0)return Vjr;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Vjr=f},{mode:1});_.DE("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var F8=function(){var f=_.K.apply(this,arguments)||this;f.compact=!1;f.hidden=!1;f.errorHidden=!1;f.noOnTap=!1;return f};
_.e(F8,_.K);_.R=F8.prototype;
_.R.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"}}}};
_.R.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.R.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var f=this.firstButtonElement;f.alignByText=!0;f.iconAlignByText=!0}};
_.R.computeNoOnTap=function(f){return!f};
_.R.updateQuantityColor=function(){if(this.pickerElement){var f,H=(f=this.commerceCartItemEntity)==null?void 0:f.quantityColor;this.pickerElement.quantityColor=H}};
_.R.updateTotalPriceColor=function(){var f,H=(f=this.commerceCartItemEntity)==null?void 0:f.totalPriceColor;if(H){var v;f=_.U((v=this.data)==null?void 0:v.quantityPicker,r$C);if(v=_.U(f==null?void 0:f.price,FJb))v.textColor=H}};
_.R.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var f,H=(f=this.commerceCartItemEntity)==null?void 0:f.isHidden;H!==void 0&&(this.hidden=H)}};
_.R.updateHideErrorMessage=function(){var f,H=(f=this.commerceCartItemEntity)==null?void 0:f.hideErrorMessage;H!==void 0&&(this.errorHidden=H)};
_.R.updateQuantity=function(){var f=this,H,v=(H=this.commerceCartItemEntity)==null?void 0:H.quantity,t;H=(t=this.commerceCartItemEntity)==null?void 0:t.totalPrice;if(v){this.updateTotalPriceColor();this.updateQuantityColor();var M;t=_.U((M=this.data)==null?void 0:M.quantityPicker,r$C);if(M=_.U(t==null?void 0:t.price,FJb))M.text=H?{simpleText:H.content}:void 0;if(H=_.U(t==null?void 0:t.picker,D8g))H.quantity=v;var h;if(M=(h=_.U(t==null?void 0:t.picker,DQZ))==null?void 0:h.entries){h=!1;H=void 0;M=
_.V(M);for(t=M.next();!t.done;t=M.next())t=t.value,t.dropdownItemRenderer&&(H||(H=t.dropdownItemRenderer),t.dropdownItemRenderer.isSelected=!1,v===t.dropdownItemRenderer.int32Value&&(h=!0,t.dropdownItemRenderer.isSelected=!0));!h&&H&&(H.isSelected=!0)}_.qV(this,function(){var y;f.set("data.quantityPicker",_.QA.unsafeClone((y=f.data)==null?void 0:y.quantityPicker))})}};
F8.prototype.onYtRendererstamperFinished=F8.prototype.onYtRendererstamperFinished;F8.prototype.entityChanged=F8.prototype.entityChanged;_.E([_.F(),_.N("design:type",Object)],F8.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],F8.prototype,"compact",void 0);_.E([_.B(_.um),_.N("design:type",Object)],F8.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],F8.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],F8.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],F8.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(f,H){return _.dL(f.entities,"commerceCartItemEntity",H)}}),
_.N("design:type",Object)],F8.prototype,"commerceCartItemEntity",void 0);_.E([_.F(),_.N("design:type",Object)],F8.prototype,"quantityPicker",void 0);_.E([_.F(),_.N("design:type",Object)],F8.prototype,"compactQuantityPicker",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],F8.prototype,"hidden",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],F8.prototype,"errorHidden",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.N("design:type",Object)],F8.prototype,"noOnTap",void 0);_.E([_.lJ("ytd-commerce-cart-item-quantity-picker-renderer"),_.N("design:type",Object)],F8.prototype,"pickerElement",void 0);_.E([_.lJ("yt-button-renderer"),_.N("design:type",Element)],F8.prototype,"firstButtonElement",void 0);
_.E([_.Zw("commerceCartItemEntity","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],F8.prototype,"entityChanged",null);_.E([_.sE("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],F8.prototype,"onYtRendererstamperFinished",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],F8);
_.G(F8,"ytd-commerce-cart-item-renderer",function(){if(RWh!==void 0)return RWh;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return RWh=f},{mode:_.WK("kevlar_poly_si_batch_j028")?1:2});var yIh;var YKM;var rw=function(){return _.K.apply(this,arguments)||this};
_.e(rw,_.K);rw.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}}}}}};
rw.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
rw.prototype.updateCheckoutLineItems=function(){var f,H=(f=this.commerceCartCheckoutButtonEntity)==null?void 0:f.checkoutLineItems;H&&(f=H.map(function(v){a:{var t=v.price,M=v.description;switch(v.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":v={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Bs(M),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:Bs(t),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}};break a;default:v={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Bs(M),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:Bs(t),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}}}}return v}),this.set("data.summaryLineItems",f))};
rw.prototype.updateIsHidden=function(){var f,H=(f=this.commerceCartCheckoutButtonEntity)==null?void 0:f.isHidden;H!==void 0&&(this.hostElement.hidden=H)};
rw.prototype.entityChanged=rw.prototype.entityChanged;_.E([_.B(_.um),_.N("design:type",Object)],rw.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],rw.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],rw.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],rw.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],rw.prototype,"data",void 0);_.E([_.F({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:X$v}),_.N("design:type",Object)],rw.prototype,"commerceCartCheckoutButtonEntity",void 0);_.E([_.Zw("commerceCartCheckoutButtonEntity","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rw.prototype,"entityChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],rw);
_.G(rw,"ytd-commerce-cart-summary-renderer",function(){if(YKM!==void 0)return YKM;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return YKM=f},{mode:1});var mqg={};mqg.InjectBehavior=[OkE.InjectBehavior];var $qv;var Woa;var Kq=function(){return _.K.apply(this,arguments)||this};
_.e(Kq,_.K);
Kq.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:_.om("menuRenderer")}}};
Kq.prototype.onMenuTap=function(f){f.stopPropagation()};
_.H7.Object.defineProperties(Kq.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 f,H;return!(((f=this.data)==null||!f.sectionHeading)&&((H=this.data)==null?void 0:H.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var f,H;return!(((f=this.data)==null||!f.image)&&((H=this.data)==null?void 0:H.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var f,H;return!(((f=this.data)==null||!f.menu)&&((H=this.data)==null?void 0:H.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Kq.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Kq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.Xyv.YtTappableItemBehavior),_.N("design:type",Object)],Kq.prototype,"ytTappableItemBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Kq.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0}),_.z("data.accessibilityData"),_.N("design:type",String),_.N("design:paramtypes",[])],Kq.prototype,"ariaLabel",null);_.E([_.z("data.sectionHeading","data.layout"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Kq.prototype,"sectionHeadingVisible",null);_.E([_.z("data.image","data.layout"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Kq.prototype,"imageVisible",null);
_.E([_.z("data.menu","data.layout"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Kq.prototype,"menuVisible",null);_.E([_.GW({is:"yt-activity-item-renderer",disableElementRegistration:!0})],Kq);
_.G(Kq,"yt-activity-item-renderer",function(){if(Woa===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;$qv===void 0&&($qv=document.createElement("template"));var t=$qv;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Woa=f}f=Woa;return f},{mode:2});var Oz9;var gs_;var IQh;var SKn;var Dl=function(){return _.K.apply(this,arguments)||this};
_.e(Dl,_.K);
Dl.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"}}}}};
Dl.prototype.backgroundColorChanged_=function(){var f,H=(f=this.data)==null?void 0:f.backgroundColor;this.hostElement.style.backgroundColor=gw[H||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Dl.prototype.backgroundColorChanged_=Dl.prototype.backgroundColorChanged_;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Dl.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Dl.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Dl.prototype,"data",void 0);
_.E([_.Zw("data.backgroundColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Dl.prototype,"backgroundColorChanged_",null);_.E([_.GW({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],Dl);
_.G(Dl,"yt-offer-item-upsell-renderer",function(){if(SKn===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;IQh===void 0&&(IQh=document.createElement("template"));var t=IQh;v.call(H,t.content.cloneNode(!0),f.content.firstChild);SKn=f}f=SKn;return f},{mode:2});_.DE("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var oU=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};f.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return f};
_.e(oU,_.K);_.R=oU.prototype;
_.R.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:_.om("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.R.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.R.computeContainerStyle_=function(f){return f};
_.R.computeContainerIsHidden_=function(f){return f&&!!f.isHidden};
_.R.computeShowSpinner_=function(f,H){return f&&H==="in-progress"};
_.R.computeShowMoreContentsButton_=function(f,H,v,t,M){return!(!(t&&t.length||M&&M.length&&v)||!f||H)};
_.R.onToggleButton_=function(f){var H=this;f.stopPropagation();this.isExpanded_=f.detail&&f.detail.toggled;var v,t;this.isExpanded_&&!this.data.continuationSection.length&&((v=this.data)==null?0:(t=v.continuation)==null?0:t.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.YE(this.hostElement,"yt-load-next-continuation",function(M){return H.getContinuationUrl_(H.data.continuation.onClickContinuationData,M)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.WV(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.R.onShowMoreContentsButtonClicked_=function(f){var H=this;f.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.YE(this.hostElement,"yt-load-next-continuation",function(v){return H.getContinuationUrl_(H.data.continuations[0].nextContinuationData,v)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.WV(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.R.getContinuationUrl_=function(f,H){var v=f.continuation;f=f.clickTrackingParams;var t=_.uy();f&&t&&_.Ti(t,_.zK(f));return _.kk(H,{continuation:v})};
_.R.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var f=_.mF(this.hostElement).querySelector("#continuation-section");f&&(f=f.querySelectorAll("ytmusic-item-section-renderer"))&&f.forEach(function(H){return H.classList.add("memberships-and-purchases")})};
_.R.dataChanged_=function(){var f;this.isExpanded_=!((f=this.data)==null||!f.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.R.updateCardOnClickCommand_=function(f){f=_.U(f,ZW_);var H,v;this.data&&((H=this.data)==null?0:H.targetId)&&f&&f.targetId===((v=this.data)==null?void 0:v.targetId)&&f.onClickCommand&&(this.data.onClickCommand=f.onClickCommand,this.isOnClickCommand_=!0)};
_.R.backgroundColorChanged_=function(){var f,H=(f=this.data)==null?void 0:f.backgroundColor;this.hostElement.style.backgroundColor=gw[H||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
oU.prototype.backgroundColorChanged_=oU.prototype.backgroundColorChanged_;oU.prototype.dataChanged_=oU.prototype.dataChanged_;oU.prototype.nextContinuationDataUpdated_=oU.prototype.nextContinuationDataUpdated_;oU.prototype.onToggleButton_=oU.prototype.onToggleButton_;_.E([_.B(_.E_),_.N("design:type",Object)],oU.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],oU.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],oU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.N3.YtNextContinuationBehavior),_.N("design:type",Object)],oU.prototype,"ytNextContinuationBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],oU.prototype,"ytRendererBehavior",void 0);_.E([_.B(mqg.InjectBehavior),_.N("design:type",Object)],oU.prototype,"injectBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],oU.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],oU.prototype,"compact",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],oU.prototype,"isExpanded_",void 0);_.E([_.F({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.N("design:type",String)],oU.prototype,"containerStyle_",void 0);_.E([_.F({value:"not-started"}),_.N("design:type",String)],oU.prototype,"continuationStatus_",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.N("design:type",Boolean)],oU.prototype,"showSpinner_",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],oU.prototype,"isOnClickCommand_",void 0);_.E([_.F({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.N("design:type",Boolean)],oU.prototype,"showMoreContentsButton_",void 0);
_.E([_.F({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(f,H){return!H||f.entities?null:_.dL(f.entities,"cardItemContainerEntity",H)}}),
_.N("design:type",Object)],oU.prototype,"cardItemContainerEntity_",void 0);_.E([_.sE("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],oU.prototype,"onToggleButton_",null);_.E([_.sE("yt-next-continuation-data-updated"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oU.prototype,"nextContinuationDataUpdated_",null);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oU.prototype,"dataChanged_",null);_.E([_.Zw("data.backgroundColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oU.prototype,"backgroundColorChanged_",null);_.E([_.GW({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],oU);
_.G(oU,"yt-card-item-container-renderer",function(){if(gs_===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;Oz9===void 0&&(Oz9=document.createElement("template"));var t=Oz9;v.call(H,t.content.cloneNode(!0),f.content.firstChild);gs_=f}f=gs_;return f},{mode:2});var nq=function(){return _.K.apply(this,arguments)||this};
_.e(nq,_.K);nq.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"}}}};
nq.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
nq.prototype.computeLoadingHidden=function(){var f;return!((f=this.commerceCartPageStateEntity)==null?0:f.cartActionInProgress)};
nq.prototype.updateNotification=function(){var f,H=(f=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:f.summaryText;H&&this.set("data.cartNotification",Bs(H))};
nq.prototype.notificationEntityChanged=nq.prototype.notificationEntityChanged;_.E([_.B(_.um),_.N("design:type",Object)],nq.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],nq.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],nq.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],nq.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],nq.prototype,"data",void 0);_.E([_.F({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(f,H){return _.dL(f.entities,"commerceCartExpandableNotificationEntity",H)}}),
_.N("design:type",Object)],nq.prototype,"commerceCartExpandableNotificationEntity",void 0);_.E([_.F({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(f,H){return _.dL(f.entities,"commerceCartPageStateEntity",H)}}),
_.N("design:type",Object)],nq.prototype,"commerceCartPageStateEntity",void 0);_.E([_.lJ("#spinner"),_.N("design:type",HTMLElement)],nq.prototype,"spinner",void 0);_.E([_.Zw("commerceCartExpandableNotificationEntity","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nq.prototype,"notificationEntityChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],nq);
_.G(nq,"ytd-commerce-cart-renderer",function(){if(yIh!==void 0)return yIh;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return yIh=f},{mode:1});var dqr;var pq=function(){var f=_.K.apply(this,arguments)||this;f.bigImage=!1;return f};
_.e(pq,_.K);_.H7.Object.defineProperties(pq.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.placeholderImageUrl}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],pq.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],pq.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],pq.prototype,"bigImage",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],pq.prototype,"placeholderImageUrl",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],pq);
_.G(pq,"ytd-empty-product-shelf-renderer",function(){if(dqr!==void 0)return dqr;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return dqr=f},{mode:1});var jJo;var Qd=function(){var f=_.K.apply(this,arguments)||this;f.itemStyle="link-item";f.watchMetadataRefresh=!1;f.skinnyMode=!1;f.metaPanel=!1;f.inStructuredDescription=!1;f.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};f.updateOnResizeDebouncer=null;return f};
_.e(Qd,_.K);_.R=Qd.prototype;_.R.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.R.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"}}}}};
_.R.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.R.attachVEs=function(f){f.trackingParams&&_.UV().graftServerVe(f.trackingParams)};
_.R.handleUpdateMerchShelfAction=function(f){var H=this,v=_.U(f.updateMerchandiseShelfAction.merchandiseShelf,_.q3o);v&&(v.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){H.attachVEs(v);H.data=v},Number(v.renderDelayMs))):(this.attachVEs(v),this.data=v))};
_.R.updateOnResize=function(){if(this.JSC$16826_scrollContainer!==void 0&&this.JSC$16826_scrollContainer.clientWidth!==0&&this.items!==void 0){var f=this.JSC$16826_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-f));this.ytdHorizontalListBehavior.reposition_();var H;switch((H=this.data)==null?void 0:H.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var v,
t;((v=this.data)==null?void 0:(t=v.items)==null?void 0:t.length)===1?this.itemStyle="cta-item":this.itemStyle=f>=740?"large-item":"small-item"}}};
_.R.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.ML(this.updateOnResizeDebouncer,_.XQ.after(100),this.updateOnResize)};
Qd.prototype.debouncedUpdateOnResize=Qd.prototype.debouncedUpdateOnResize;Qd.prototype.dataChanged=Qd.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Qd.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Qd.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.Rt.YtdHorizontalListBehavior),_.N("design:type",Object)],Qd.prototype,"ytdHorizontalListBehavior",void 0);
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Qd.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Qd.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Qd.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Qd.prototype,"itemStyle",void 0);_.E([_.F({value:6}),_.N("design:type",Number)],Qd.prototype,"initialCount",void 0);
_.E([_.F({value:"data.items"}),_.N("design:type",String)],Qd.prototype,"itemsPath",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Qd.prototype,"watchMetadataRefresh",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Qd.prototype,"skinnyMode",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Qd.prototype,"metaPanel",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Qd.prototype,"inStructuredDescription",void 0);
_.E([_.lJ("#items"),_.N("design:type",HTMLDivElement)],Qd.prototype,"items",void 0);_.E([_.lJ("#scroll-container"),_.N("design:type",HTMLDivElement)],Qd.prototype,"JSC$16826_scrollContainer",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qd.prototype,"dataChanged",null);_.E([_.sE("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qd.prototype,"debouncedUpdateOnResize",null);
_.E([_.u({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],Qd);
_.G(Qd,"ytd-merch-shelf-renderer",function(){if(jJo!==void 0)return jJo;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return jJo=f},{mode:2});var sJa;var uo=function(){var f=_.K.apply(this,arguments)||this;f.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 f};
_.e(uo,_.K);_.R=uo.prototype;
_.R.addBackstagePostAction=function(f){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(f=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",f))&&(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:f}):this.set("data.contents",[{backstagePostThreadRenderer:f}]))};
_.R.addBackstageCommentAction=function(f){var H=this.get("addBackstageCommentAction.parentId",f);f=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",f);if(H&&f){H=this.postIdToIndices(H);for(var v=0;v<H.length;v++){var t=H[v];if(t<0)break;t="data.contents."+t+".backstagePostThreadRenderer.comments";this.get(t)&&(this.get(t+".backstageCommentsRenderer.contents")&&this.push(t+".backstageCommentsRenderer.contents",{commentThreadRenderer:f}),this.get(t+".backstageCommentsRenderer.teaserContents")?
this.push(t+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:f}):this.set(t+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:f}]))}}};
_.R.addBackstageReplyAction=function(f){var H=this.get("addBackstageReplyAction.parentId",f);f=this.get("addBackstageReplyAction.renderer.commentRenderer",f);H&&f&&this.setCreatorReply(H,f)};
_.R.banAuthorAction=function(f){var H=this.get("banAuthorAction.commentId",f);H&&(f=this.get("banAuthorAction.parentCommentId",f)||this.getParentPostId(H),this.removeFromStream(H,f))};
_.R.hideReportedCommentAction=function(f){var H=this.get("hideReportedCommentAction.commentId",f);H&&((f=this.get("hideReportedCommentAction.parentCommentId",f))||(f=this.getParentPostId(H)),this.removeFromStream(H,f))};
_.R.replaceBackstageCommentAction=function(f){var H=this.get("replaceBackstageCommentAction.commentId",f),v=this.get("replaceBackstageCommentAction.parentId",f);f=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",f);if(H&&v&&f){v=this.postIdToIndices(v);for(var t=0;t<v.length;t++){var M=v[t];if(M<0)break;var h=this.commentIdToIndex(H,M,!1);if(h>=0){var y=this.get("data.contents."+M+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+h+".commentThreadRenderer.replies.commentRepliesRenderer");
y&&(f.replies={commentRepliesRenderer:y});this.splice("data.contents."+M+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",h,1,{commentThreadRenderer:f})}h=this.commentIdToIndex(H,M,!0);if(h>=0){if(y=this.get("data.contents."+M+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(h+".commentThreadRenderer.replies.commentRepliesRenderer")))f.replies={commentRepliesRenderer:y};this.splice("data.contents."+M+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
h,1,{commentThreadRenderer:f})}}}};
_.R.replaceBackstagePostAction=function(f){var H=this.get("replaceBackstagePostAction.itemId",f);if(H){H=this.postIdToIndices(H);for(var v=0;v<H.length;v++){var t=H[v];if(t<0)break;var M=this.getPostRendererType(t),h=this.get("replaceBackstagePostAction.renderer."+M,f);if(!h&&M!=="sharedPostRenderer")break;var y=!1;h||(y=!0,h=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",f));if(!h)break;var m={};y?(_.pu(m,NQ9,h),this.set("data.contents."+t+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
m)):(_.pu(m,new _.Ak(M),h),this.set("data.contents."+t+".backstagePostThreadRenderer.post",m))}}};
_.R.replaceBackstageReplyAction=function(f){var H=this.get("replaceBackstageReplyAction.replyId",f),v=this.get("replaceBackstageReplyAction.parentId",f);f=this.get("replaceBackstageReplyAction.renderer.commentRenderer",f);H&&f&&v&&this.setCreatorReply(v,f)};
_.R.removeCommentAction=function(f){var H=this.get("removeCommentAction.commentId",f);if(H){var v=this.get("removeCommentAction.parentCommentId",f);v&&this.get("removeCommentAction.isCreatorReply",f)?this.setCreatorReply(v,void 0):(v||(v=this.getParentPostId(H)),this.removeFromStream(H,v))}};
_.R.setCreatorReply=function(f,H){var v=this.getParentPostId(f);if(v){v=this.postIdToIndices(v);for(var t=0;t<v.length;t++){var M=v[t];if(M<0)break;var h=this.commentIdToIndex(f,M,!1);if(h>=0){var y="data.contents."+M+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+h;h=y+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";y+=".commentThreadRenderer.replies";H==void 0?(this.set(y,{}),this.set(h,!1)):(this.set(y,{commentRepliesRenderer:{teaserContents:[{commentRenderer:H}]}}),
this.set(y+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(h,!0))}h=this.commentIdToIndex(f,M,!0);h>=0&&(h="data.contents."+M+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+h,M=h+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",h+=".commentThreadRenderer.replies",H==void 0?(this.set(h,{}),this.set(M,!1)):(this.set(h,{commentRepliesRenderer:{teaserContents:[{commentRenderer:H}]}}),this.set(M,!0)))}}};
_.R.removeFromStream=function(f,H){if(H){H=this.postIdToIndices(H);for(var v=0;v<H.length;v++){var t=H[v];if(t<0)break;var M=this.commentIdToIndex(f,t,!1);M>=0&&this.splice("data.contents."+t+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",M,1);M=this.commentIdToIndex(f,t,!0);M>=0&&this.splice("data.contents."+t+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",M,1);t="data.contents."+t+".backstagePostThreadRenderer.post.backstagePostRenderer";
M=t+".backstageAttachment.pollRenderer.votedCommentId";this.get(M)===f&&(this.set(M,null),this.set(t+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(H=this.postIdToIndices(f).reverse(),v=0;v<H.length;v++){t=H[v];if(t<0)break;M=this.getPostRendererType(t);var h=this.get("backstagePostThreadRenderer.post."+M,this.data.contents[t]);h.postId===f?this.splice("data.contents",t,1):M==="sharedPostRenderer"&&this.set("data.contents."+t+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);h.scheduledPublishTimeSec&&_.mb(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.R.postIdToIndices=function(f){for(var H=[],v=0;v<this.data.contents.length;v++){var t=this.getPostRendererType(v);this.get("backstagePostThreadRenderer.post."+t+".postId",this.data.contents[v])===f&&H.push(v);if(t==="sharedPostRenderer"){var M=this.get("backstagePostThreadRenderer.post."+t+".originalPost.backstagePostRenderer.postId",this.data.contents[v]);t=this.get("backstagePostThreadRenderer.post."+t+".originalPost.postRenderer.postId",this.data.contents[v]);M!==f&&t!==f||H.push(v)}}return H};
_.R.commentIdToIndex=function(f,H,v){if(H<0)return-1;var t,M,h,y,m=_.U((t=this.data)==null?void 0:(M=t.contents)==null?void 0:(h=M[H])==null?void 0:(y=h.backstagePostThreadRenderer)==null?void 0:y.comments,Csn);return(H=v?m==null?void 0:m.teaserContents:m==null?void 0:m.contents)&&H.length?H.findIndex(function(W){return _.U(W,Uc9).comment.commentRenderer.commentId===f}):-1};
_.R.getParentPostId=function(f){f=f.split(".");if(f[1])return f[0]};
_.R.getPostRendererType=function(f){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[f])?"sharedPostRenderer":"backstagePostRenderer"};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],uo.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],uo.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],uo.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-backstage-items"})],uo);
_.G(uo,"ytd-backstage-items",function(){if(sJa!==void 0)return sJa;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return sJa=
f},{mode:1});var ZzT;var JIH={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100},aU=function(){var f=_.K.apply(this,arguments)||this;f.disablePrescanVisibility=!0;f.canScheduleJobs=!0;f.engagementPanel=!1;f.hidePanelButton=!1;f.isWatchGrid=!1;f.hasShownSubscribersOnlyDisclaimer=!1;f.actionMap=
{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};return f};
_.e(aU,_.K);_.R=aU.prototype;_.R.created=function(){this.initCommentsCsi_();_.J("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_")};
_.R.contentsChanged_=function(){var f;(f=this.data)!=null&&f.contents&&this.tickForCommentsTimer_("cml")};
_.R.headerChanged_=function(){var f;(f=this.data)!=null&&f.header&&this.tickForCommentsTimer_("cmhl")};
_.R.initCommentsCsi_=function(){_.QZ("wn_comments");var f=_.uy();f&&_.nQ({clientScreenNonce:f},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.R.createCommentAction_=function(f){f=_.QA.unsafeClone(f);var H,v;if(f=(H=_.U(f,gRH))==null?void 0:(v=H.contents)==null?void 0:v.commentThreadRenderer){var t,M,h,y,m,W;!this.isBackstage&&((t=this.data)==null?0:(M=t.header)==null?0:(h=M.commentsHeaderRenderer)==null?0:(y=h.createRenderer)==null?0:(m=y.commentSimpleboxRenderer)==null?0:(W=m.zeroStep)==null?0:W.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var I,
S,d;this.isBackstage&&_.U((I=this.data)==null?void 0:(S=I.header)==null?void 0:(d=S.commentsHeaderRenderer)==null?void 0:d.zeroStateMessage,ch9)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(f)}};
_.R.doReplyInsert_=function(f,H,v,t){t?this.splice(f,t,0,H):this.push(f,H)};
_.R.getRepliesPath_=function(f){return"data.contents."+f+".commentThreadRenderer.replies"};
_.R.getRepliesContentsPath_=function(f,H){f=this.getRepliesPath_(f);return H?f+".commentRepliesRenderer.teaserContents":f+".commentRepliesRenderer.contents"};
_.R.showSubscribersOnlyDisclaimer_=function(f){(f=f.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(f=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(f))&&(_.mb(this.hostElement,"yt-open-popup-action",[f,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.R.createCommentReplyAction_=function(f){f=_.QA.unsafeClone(f);var H=_.U(f,Ieb);if(f=H==null?void 0:H.contents){var v=this.commentIdToIndex_(H==null?void 0:H.parentCommentId);if(!(v<0)){var t=this.getRepliesPath_(v);if(this.get(t)){H=H.replyToCommentId;t=this.getRepliesContentsPath_(v,!1);if(this.get(t)){var M=this.get(t).length,h=t+"."+(M-1)+".continuationItemRenderer";this.get(h+".button")?(h=this.replyIdToIndex_(H,v,!1),this.doReplyInsert_(t,f,h,M-1)):this.get(h)||(M=this.replyIdToIndex_(H,v,
!1),this.doReplyInsert_(t,f,M,null))}t=this.getRepliesContentsPath_(v,!0);this.get(t)?(v=this.replyIdToIndex_(H,v,!0),(!H||v>=0)&&this.doReplyInsert_(t,f,v,null)):this.set(t,[f])}else this.set(t,{commentRepliesRenderer:{teaserContents:[f]}})}}};
_.R.hideReportedCommentAction_=function(f){var H=_.U(f,pUM);if(f=H==null?void 0:H.commentId)(H=this.get("parentCommentId",H))||(H=this.getParentCommentId_(f)),this.remove_(f,H)};
_.R.getParentCommentId_=function(f){f=f.split(".");if(f[1])return f[0]};
_.R.removeCommentAction_=function(f){var H=_.U(f,Zhr);if(f=H==null?void 0:H.commentId)H=(H==null?void 0:H.parentCommentId)||this.getParentCommentId_(f),this.remove_(f,H)};
_.R.pinCommentAction_=function(f){f=_.QA.unsafeClone(f);var H=_.U(f,sSb);H!=null&&H.commentId&&(f=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",f))&&(this.remove_(H.commentId),this.insert_(f,!0))};
_.R.unpinCommentAction_=function(f){f=_.QA.unsafeClone(f);f=_.U(f,Jeh);if(f!=null&&f.commentId){var H,v,t=(H=f.actionResult)==null?void 0:(v=H.update)==null?void 0:v.commentThreadRenderer;t&&(this.remove_(f.commentId),this.insert_(t))}};
_.R.banAuthorAction_=function(f){var H=_.U(f,Ohh);H!=null&&H.commentId&&(f=H.commentId,H=H.parentCommentId||this.getParentCommentId_(f),this.remove_(f,H))};
_.R.commentIdToIndex_=function(f){var H;return f&&(H=this.data)!=null&&H.contents?this.data.contents.findIndex(function(v){v=v.commentThreadRenderer;var t;return f===((v==null?void 0:v.commentViewModel)&&((t=_.U(v.commentViewModel,FQH))==null?void 0:t.commentId))}):-1};
_.R.insert_=function(f,H){H=H===void 0?!1:H;var v,t;if((v=this.data)==null?0:(t=v.contents)==null?0:t.some(function(h){return!!h.commentThreadRenderer}))for(v=0,t=this.data.contents.length;v<t;v++){var M=this.data.contents[v].commentThreadRenderer;
if(JIH[f.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=JIH[M.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){H&&JIH[f.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===JIH[M.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",v,1,{commentThreadRenderer:f}):this.splice("data.contents",v,0,{commentThreadRenderer:f});break}}else this.set("data.contents",[{commentThreadRenderer:f}])};
_.R.doReplyRemove_=function(f,H,v){f=this.replyIdToIndex_(f,H,v);f<0||(H=this.getRepliesContentsPath_(H,v),this.splice(H,f,1))};
_.R.remove_=function(f,H){H=this.commentIdToIndex_(H);H<0?(H=this.commentIdToIndex_(f),H<0||this.splice("data.contents",H,1)):_.J("web_delhi_comment_threads")||(this.doReplyRemove_(f,H,!1),this.doReplyRemove_(f,H,!0))};
_.R.replyIdToIndex_=function(f,H,v){if(H<0)return-1;H=this.getRepliesContentsPath_(H,v);H=this.get(H);if(!H||!H.length)return-1;v=0;for(var t=H.length;v<t;v++){var M=void 0,h=void 0;if(((M=H[v])==null?void 0:(h=M.commentViewModel)==null?void 0:h.commentId)===f)return v}return-1};
_.R.tickForCommentsTimer_=function(f){_.ar(f,void 0,"wn_comments")};
_.R.reloadComments_=function(f){f=_.U(f,BmM);_.U(f==null?void 0:f.command,_.GI)&&_.WV(this.hostElement,[f==null?void 0:f.command])};
_.H7.Object.defineProperties(aU.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var f,H,v;return!!((f=this.data)==null?0:(H=f.header)==null?0:(v=H.commentsHeaderRenderer)==null?0:v.isBackstageContent)}}});
_.H7.Object.defineProperties(aU,{template:{configurable:!0,enumerable:!0,get:function(){if(ZzT===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);ZzT=f}f=ZzT;return f}}});
aU.prototype.showSubscribersOnlyDisclaimer_=aU.prototype.showSubscribersOnlyDisclaimer_;aU.prototype.headerChanged_=aU.prototype.headerChanged_;aU.prototype.contentsChanged_=aU.prototype.contentsChanged_;_.E([_.B(_.fm),_.N("design:type",Object)],aU.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.B(_.SJR.YtHostElementBehavior),_.N("design:type",Object)],aU.prototype,"ytHostElementBehavior",void 0);
_.E([_.B(_.im.YtPlayerListenerBehavior),_.N("design:type",Function)],aU.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],aU.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],aU.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],aU.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0}),_.z("data.header.commentsHeaderRenderer.isBackstageContent"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],aU.prototype,"isBackstage",null);_.E([_.F(),_.N("design:type",Object)],aU.prototype,"disablePrescanVisibility",void 0);_.E([_.F(),_.N("design:type",Object)],aU.prototype,"canScheduleJobs",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],aU.prototype,"engagementPanel",void 0);
_.E([_.F(),_.N("design:type",Object)],aU.prototype,"hidePanelButton",void 0);_.E([_.F(),_.N("design:type",Object)],aU.prototype,"isWatchGrid",void 0);_.E([_.F(),_.N("design:type",Object)],aU.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);_.E([_.Zw("data.contents"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aU.prototype,"contentsChanged_",null);
_.E([_.Zw("data.header"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aU.prototype,"headerChanged_",null);_.E([_.sE("yt-show-subscribers-only-disclaimer"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],aU.prototype,"showSubscribersOnlyDisclaimer_",null);_.E([_.u({is:"ytd-comments"})],aU);var Pl=function(){return _.er.apply(this,arguments)||this};
_.e(Pl,_.er);_.R=Pl.prototype;_.R.bindIf=function(f,H,v){return f?H:v};
_.R.bindIfDefined=function(f,H){return f!==void 0?f:H};
_.R.booleanString=function(f){return(!!f).toString()};
_.R.equals=function(){for(var f=_.NA.apply(0,arguments),H=f[0],v=1;v<f.length;v++)if(H!=f[v])return!1;return!0};
_.R.isGreaterThan=function(f,H){return f>H};
_.R.isLessThan=function(f,H){return f<H};
_.R.logicalAND=function(){for(var f=_.NA.apply(0,arguments),H=!!f[0],v=1;v<f.length;v++)H=H&&!!f[v];return H};
_.R.logicalOR=function(){for(var f=_.NA.apply(0,arguments),H=!!f[0],v=1;v<f.length;v++)H=H||!!f[v];return H};
_.R.toBool=function(f){return!!f};
Pl.prototype.toBool=Pl.prototype.toBool;Pl.prototype.logicalOR=Pl.prototype.logicalOR;Pl.prototype.logicalAND=Pl.prototype.logicalAND;Pl.prototype.isLessThan=Pl.prototype.isLessThan;Pl.prototype.isGreaterThan=Pl.prototype.isGreaterThan;Pl.prototype.equals=Pl.prototype.equals;Pl.prototype.booleanString=Pl.prototype.booleanString;Pl.prototype.bindIfDefined=Pl.prototype.bindIfDefined;Pl.prototype.bindIf=Pl.prototype.bindIf;_.E([_.L2()],Pl);_.lQa=[Pl.prototype];var Uq9;var eWb;var Gt=function(){return _.K.apply(this,arguments)||this};
_.e(Gt,_.K);Gt.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
Gt.prototype.onBackIconTap_=function(){window.history.back()};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Gt.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Gt.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Gt.prototype,"data",void 0);_.E([_.GW({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],Gt);
_.G(Gt,"yt-header-with-back-renderer",function(){if(eWb===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;Uq9===void 0&&(Uq9=document.createElement("template"));var t=Uq9;v.call(H,t.content.cloneNode(!0),f.content.firstChild);eWb=f}f=eWb;return f},{mode:2});var Lo_;var xq9;var Cq=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.e(Cq,_.K);_.R=Cq.prototype;_.R.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.R.onDarkModeToggledAction=function(f){f!==this.isDarkTheme&&(this.isDarkTheme=f,this.setUrl())};
_.R.dataChanged=function(){var f=this;if(this.data){var H=this.setUrl();H&&_.bT({destination:window,iframe:this.iframe,origin:_.LWg(H.toString()),channelName:"yt-iframe",onMessage:function(v){(v=f.getCommunicationCommand(v.data))&&f.ytComponentBehavior.resolveCommand(v)},
onEstablished:function(){}})}};
_.R.setUrl=function(){if(this.data&&this.data.iframeUrl){var f=_.pN(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(f)return _.T1(this.iframe,f),f}};
_.R.getCommunicationCommand=function(f){var H;if((H=this.data)!=null&&H.onCommunicationCommandsMap){H=this.data.onCommunicationCommandsMap.find(function(M){return M.key===f});
if(H==null?0:H.value)return H==null?void 0:H.value;try{var v=$8C(_.yM(f)),t=this.data.onCommunicationCommandsMap.find(function(M){return M.key===(v==null?void 0:v.getMethodName())});
if(t==null?0:t.value)return t==null?void 0:t.value}catch(M){}}};
Cq.prototype.dataChanged=Cq.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Cq.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Cq.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Cq.prototype,"actionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Cq.prototype,"data",void 0);
_.E([_.F({value:!1}),_.N("design:type",Boolean)],Cq.prototype,"isDarkTheme",void 0);_.E([_.lJ("#iframe"),_.N("design:type",HTMLIFrameElement)],Cq.prototype,"iframe",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Cq.prototype,"dataChanged",null);_.E([_.GW({is:"yt-iframe-renderer",disableElementRegistration:!0})],Cq);
_.G(Cq,"yt-iframe-renderer",function(){if(xq9===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;Lo_===void 0&&(Lo_=document.createElement("template"));var t=Lo_;v.call(H,t.content.cloneNode(!0),f.content.firstChild);xq9=f}f=xq9;return f},{mode:2});_.EO=function(f){_.zO.call(this);this.callback=f;this.bezier=new lIH(0,0,.4,0,.2,1,1,1);this.delay=new _.MC(this.next,window,this);this.JSC$16865_animating=!1;_.jz(this,this.delay)};
_.e(_.EO,_.zO);_.EO.prototype.isAnimating=function(){return this.JSC$16865_animating};
_.EO.prototype.start=function(f,H,v){this.config={from:f,to:H,duration:v,startTime:(0,_.ta)()};this.JSC$16865_animating=!0;this.next()};
_.EO.prototype.stop=function(){this.delay.stop();this.JSC$16865_animating=!1;this.config=void 0};
_.EO.prototype.next=function(){if(this.config){var f=this.config,H=f.from,v=f.to,t=f.duration;f=f.startTime;var M=(0,_.ta)()-f;f=this.bezier;t=eUv(f,M/t);if(t==0)f=f.y0;else if(t==1)f=f.y3;else{M=jI(f.y0,f.y1,t);var h=jI(f.y1,f.y2,t);f=jI(f.y2,f.y3,t);M=jI(M,h,t);h=jI(h,f,t);f=jI(M,h,t)}f=_.FL(f,0,1);this.callback(H+(v-H)*f);f<1?this.delay.start():this.JSC$16865_animating=!1}};_.Np=new _.iN("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var B7H={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},FoC=function(f,H,v,t){_.zO.call(this);this.JSC$16876_miniAppId=f;this.localReleaseId=H;this.derivedDeviceInterface=v;this.isForeground=t;this.JSC$16876_playNonceResolver=new _.dZ;this.playPingTimerId=NaN;this.playPingIntervalMs=_.VQ("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.VQ("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.J("enable_displaying_ppn");this.JSC$16876_miniAppClientDataProvider=_.t8().resolve(_.Np);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;zWh(this);var M=setTimeout(function(){_.pb(new _.e$("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$16876_playNonceResolver.promise.then(function(){clearTimeout(M)})};
_.e(FoC,_.zO);var Kov=function(f,H){f.JSC$16876_playNonceResolver.resolve(H!=null?H:nP(8));f.enableDisplayingPpn&&rIh(f).then(function(v){f.JSC$16876_miniAppClientDataProvider.clientData.set("post_play_nonce",v)})},rIh=function(f){return _.Y(function(H){return H.nextAddress==1?H.yield(f.JSC$16876_playNonceResolver.promise,2):H.return(H.yieldResult)})},zWh=function(f){var H,v;
_.Y(function(t){if(t.nextAddress==1)return t.yield(f.JSC$16876_playNonceResolver.promise,2);H=t.yieldResult;v={miniAppInfo:{externalPostId:f.JSC$16876_miniAppId,localReleaseId:f.localReleaseId,postPlayNonce:H,derivedDeviceInterface:f.derivedDeviceInterface}};_.nQ(v);_.Bj(t)})},os9=function(f){f.state!==0?_.pb(new _.e$("[MiniAppPlayLogger] recordPlayStart failed with state "+B7H[f.state])):(f.state=1,cl(f,"ma_cl"),X8(f,"PLAY_EVENT_TYPE_PLAY_START"),Dqn(f))},nsH=function(f){f.isForeground=!1;
X8(f,"PLAY_EVENT_TYPE_PLAY_PAUSE")},p3Z=function(f){f.state!==1&&f.state!==2?_.pb(new _.e$("[MiniAppPlayLogger] recordPlayEnd failed with state "+B7H[f.state])):(f.state=3,window.clearInterval(f.playPingTimerId),f.playPingTimerId=NaN,g3E(),X8(f,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},QJb=function(f,H){f.state===2&&f.gameReady&&(f.firstClickRecorded?Date.now()-f.clickRecordedMs<f.playClickIntervalMs||(f.clickRecordedMs=Date.now(),X8(f,"PLAY_EVENT_TYPE_PLAY_CLICK")):H&&(cl(f,"ma_fua"),X8(f,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),f.firstClickRecorded=!0,f.clickRecordedMs=Date.now()))};
FoC.prototype.logError=function(f){var H=this,v;_.Y(function(t){if(t.nextAddress==1)return f.metadata.externalPostId=H.JSC$16876_miniAppId,v=f.metadata,t.yield(Promise.race([H.JSC$16876_playNonceResolver.promise,new Promise(function(M){setTimeout(function(){M("")},3E4)})]),2);
v.postPlayNonce=t.yieldResult;f.metadata.localReleaseId=H.localReleaseId;f.loggingError.level="WARNING";_.oO(f.loggingError,f.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:f.metadata});_.Bj(t)})};
var uuH=function(f,H,v,t){var M,h,y,m,W,I;_.Y(function(S){if(S.nextAddress==1)return S.yield(f.JSC$16876_playNonceResolver.promise,2);M=S.yieldResult;h={externalPostId:f.JSC$16876_miniAppId,localReleaseId:f.localReleaseId,postPlayNonce:M,sdkVersion:v,api:H};t!==void 0&&(h.networkRequestsMeasurement={networkRequests:_.Yl(t,1),cachedRequests:_.Yl(t,2),transferredBytes:_.Yl(t,3)},(y=t)==null?0:_.gP(y,bp,6))&&(h.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((m=_.V$(t,
bp,6))==null?void 0:BI(m,1))||"0",cacheHits:((W=_.V$(t,bp,6))==null?void 0:BI(W,2))||"0",cachedBytes:((I=_.V$(t,bp,6))==null?void 0:BI(I,3))||"0"});_.Kb("miniAppSdkUsage",h);_.Bj(S)})},Pih=function(f,H,v){var t,M,h,y,m,W,I,S,d,Z,l,L,r,n,Q,C;
_.Y(function(w){if(w.nextAddress==1)return w.yield(f.JSC$16876_playNonceResolver.promise,2);t=w.yieldResult;M={externalPostId:f.JSC$16876_miniAppId,localReleaseId:f.localReleaseId,postPlayNonce:t,sdkVersion:v,measurementWindow:{startTimestampMs:String(UU(H,1)),endTimestampMs:String(UU(H,2))},frameRate:{averageFrameTimeDeltaMs:es(H,3),averageFrameIdleTimeMs:es(H,4)}};_.gP(H,ip,5)&&(M.networkRequests={networkRequests:(h=vd(H))==null?void 0:_.Yl(h,1),cachedRequests:(y=vd(H))==null?void 0:_.Yl(y,2),transferredBytes:(m=
vd(H))==null?void 0:_.Yl(m,3),sameOriginStatusCodeToCounts:aQ_((W=vd(H))==null?void 0:UxR(W,4)),crossOriginStatusCodeToCounts:aQ_((I=vd(H))==null?void 0:UxR(I,5))},(S=vd(H))==null?0:_.gP(S,bp,6))&&(M.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((d=vd(H))==null?void 0:(Z=_.V$(d,bp,6))==null?void 0:BI(Z,1))||"0",cacheHits:((l=vd(H))==null?void 0:(L=_.V$(l,bp,6))==null?void 0:BI(L,2))||"0",cachedBytes:((r=vd(H))==null?void 0:(n=_.V$(r,bp,6))==null?void 0:BI(n,3))||"0"});_.gP(H,
ugZ,7)&&(M.gameCapture={averageFrameTimeDeltaMs:(Q=_.V$(H,ugZ,7))==null?void 0:es(Q,1),averageFrameIdleTimeMs:(C=_.V$(H,ugZ,7))==null?void 0:es(C,2)});_.Kb("miniAppPerformanceMetrics",M);_.Bj(w)})},G0M=function(f,H){var v,t;
return _.Y(function(M){if(M.nextAddress==1)return M.yield(f.JSC$16876_playNonceResolver.promise,2);v=M.yieldResult;t={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:f.JSC$16876_miniAppId,postPlayNonce:v,miniAppReleaseId:f.localReleaseId},derivedDeviceInterface:f.derivedDeviceInterface,adTriggerType:H,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.Kb("miniAppAdEvent",t);_.Bj(M)})};
FoC.prototype.disposeInternal=function(){_.zO.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var X8=function(f,H,v,t){v=v===void 0?{}:v;t=t===void 0?!1:t;var M,h,y,m;_.Y(function(W){if(W.nextAddress==1)return M=f.isForeground,h=f.beforeReady,W.yield(f.JSC$16876_playNonceResolver.promise,2);y=W.yieldResult;m={externalPostId:f.JSC$16876_miniAppId,localReleaseId:f.localReleaseId,derivedDeviceInterface:f.derivedDeviceInterface,postPlayNonce:y,type:H};v.sequenceGroup=y;m.playState=h?"PLAY_STATE_NOT_READY":M?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.Kb("miniAppPlayEvent",m,
v);t&&_.DK();_.Bj(W)})},cl=function(f,H){var v;
_.Y(function(t){if(t.nextAddress==1)return v=(0,_.ta)(),t.yield(f.JSC$16876_playNonceResolver.promise,2);_.u0(H,v);_.Bj(t)})},Dqn=function(f){isNaN(f.playPingTimerId)&&(f.playPingTimerId=_.Wh(function(){f.state!==1&&f.state!==2?_.pb(new _.e$("[MiniAppPlayLogger] reportPlayPing failed with state "+B7H[f.state])):X8(f,"PLAY_EVENT_TYPE_PLAY_PING")},f.playPingIntervalMs))},aQ_=function(f){return Array.from(f.entries()).map(function(H){var v=_.V(H);
H=v.next().value;v=v.next().value;return{key:H,value:v}})};var CiH=function(){},Eso=function(f,H){f.showMiniAppAdCommand=H.showMiniAppAdCommand;
f.isEmbeddedInWebview=H.isEmbeddedInWebview;f.playLogger=H.playLogger},cIM=function(f,H){var v;
return _.Y(function(t){if(t.nextAddress==1){if(!f.showMiniAppAdCommand||!f.isEmbeddedInWebview)return t.return(N7_(f,H));f.adResolver=new _.dZ;var M=new Bd;v=_.y$(M,3,H);Kp(f.showMiniAppAdCommand,IBT(v));return t.yield(f.adResolver.promise,2)}return t.return(t.yieldResult)})};
CiH.prototype.onAdFinished=function(f){f=IVb(f);var H;(H=this.adResolver)==null||H.resolve(f)};
var N7_=function(f,H){var v;return _.Y(function(t){if(t.nextAddress==1)t=t.yield((v=f.playLogger)==null?void 0:G0M(v,QBB(H)),2);else{var M=t.return;var h=new g_a;h=_.y$(h,1,2);t=M.call(t,h)}return t})};var X3_=new _.iN("INNERTUBE_MANAGER_TOKEN");var AIZ=function(){this.callbacks={}};
AIZ.prototype.initialize=function(f){var H=this;this.callbacks=f;window.youtubewebview?window.youtubewebview.onmessage=function(v){bzr(H,v)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(v){bzr(H,v)})};
var bzr=function(f,H){if(H.data)try{var v=$8C(H.data);if(_.ep(_.OU(v,1))!=null){var t=YTv(_.L8(v,2));switch(v.getMethodName()){case "yt-mini-app-load-audio-state":var M,h;(h=(M=f.callbacks).onAudioStateLoaded)==null||h.call(M,_.lT(t,J7(t,xW,1)));break;case "yt-mute-mini-app":var y,m;(m=(y=f.callbacks).onMuteMiniApp)==null||m.call(y);break;case "yt-unmute-mini-app":var W,I;(I=(W=f.callbacks).onUnmuteMiniApp)==null||I.call(W);break;case "yt-playable-exit":var S,d;(d=(S=f.callbacks).onExit)==null||d.call(S);
break;case "yt-post-play-nonce":var Z,l;(l=(Z=f.callbacks).onPostPlayNonceReceived)==null||l.call(Z,zX(t,2,xW));break;case "yt-confirm-exit-mini-app":var L,r;(r=(L=f.callbacks).confirmExitMiniApp)==null||r.call(L);break;case "yt-confirm-exit-mini-app-edu":var n,Q;(Q=(n=f.callbacks).confirmExitMiniAppEdu)==null||Q.call(n);break;case "yt-benchmarking-response":var C,w;(w=(C=f.callbacks).onNativeBenchmarkingMessageReceived)==null||w.call(C,zX(t,2,xW));break;case "yt-mini-app-load-3p-consent-state":var c,
A;(A=(c=f.callbacks).multiplayer3pAckStateLoaded)==null||A.call(c,_.lT(t,J7(t,xW,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var X,fg;(fg=(X=f.callbacks).exitMiniAppSeenStateLoaded)==null||fg.call(X,_.lT(t,J7(t,xW,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var gB,O5;(O5=(gB=f.callbacks).onNavigateToNewMiniApp)==null||O5.call(gB);break;case "yt-game-data-available":var s5,U5;(U5=(s5=f.callbacks).onGameDataAvailable)==null||U5.call(s5,zX(t,2,xW));break;case "yt-pause-mini-app":var lH,
E5;(E5=(lH=f.callbacks).onPauseMiniApp)==null||E5.call(lH);break;case "yt-resume-mini-app":var uH,Rn;(Rn=(uH=f.callbacks).onResumeMiniApp)==null||Rn.call(uH);break;case "yt-playable-ad-finished":var pr,gh;(gh=(pr=f.callbacks).onAdFinished)==null||gh.call(pr,zX(t,2,xW))}}else _.pb(Error("Th"))}catch(fr){_.oO(Error("Uh"))}else _.pb(Error("Vh"))};var aX3=function(f){this.rpcErrorCode=f};var AB=function(f,H,v){this.intervalMs=f;this.apiFunc=H;this.type=v;this.schedulerReady=!0};
AB.prototype.call=function(f){var H=this,v;return _.Y(function(t){if(t.nextAddress==1){if(H.type!==1&&f===H.cachedValue)return t.return();H.pendingApiRequestResolver||(H.pendingApiRequestResolver=new _.dZ);v=H.pendingApiRequestResolver.promise;H.cachedValue=f;return t.yield(iz_(H),2)}return t.return(v)})};
AB.prototype.flush=function(f){f=f===void 0?!1:f;var H=this;return _.Y(function(v){return H.cachedValue===void 0?v.return():v.yield(H.apiFunc(H.cachedValue,f),0)})};
var iz_=function(f){var H,v,t;return _.Y(function(M){switch(M.nextAddress){case 1:if(!f.schedulerReady||!f.pendingApiRequestResolver)return M.return();f.schedulerReady=!1;H=f.pendingApiRequestResolver;f.pendingApiRequestResolver=void 0;_.Zc(M,2);if(f.cachedValue===void 0){M.jumpTo(4);break}return M.yield(f.apiFunc(f.cachedValue),5);case 5:v=M.yieldResult,H.resolve(v);case 4:_.ch(M,3);break;case 2:t=_.xu(M),H.reject(t);case 3:setTimeout(function(){return _.Y(function(h){f.schedulerReady=!0;return h.yield(iz_(f),
0)})},f.intervalMs),_.Bj(M)}})};var CIR=window.location.origin+"/miniapp_cloudsaves",PI3=[400,401],k0M=_.VQ("cloud_save_game_data_rate_limit_ms",3E3),qKb=function(f){var H=this;this.JSC$16920_miniAppId=f;this.loadAttempts=0;this.cloudSaveIntervalMs=k0M;this.initialDownloadDataSucceeded=!1;this.JSC$16920_playNonceResolver=new _.dZ;this.scottyUploadRateLimiter=new AB(this.cloudSaveIntervalMs,function(v,t){return T7H(H,v,t)},2);
this.downloadDataPromise=w3T(this);this.downloadDataPromise.then(function(){H.initialDownloadDataSucceeded=!0}).catch(function(){})},fTr=function(f,H){H.then(function(v){return f.JSC$16920_playNonceResolver.resolve(v)})},H$a=function(f){return _.Y(function(H){return f.cachedData===void 0?H.return(f.downloadDataPromise):H.return(f.cachedData)})},voM=function(f,H){return _.Y(function(v){f.cachedData=H;
if(!f.initialDownloadDataSucceeded)throw Error("Wh");return v.yield(f.scottyUploadRateLimiter.call(H),0)})},tZZ=function(){return new Promise(function(f){setTimeout(f,1E3,"")})},MZh=function(f,H){var v,t;
return _.Y(function(M){if(M.nextAddress==1)return v=f.JSC$16920_miniAppId,M.yield(Promise.race([f.JSC$16920_playNonceResolver.promise,tZZ()]),2);t={"X-YouTube-MiniAppId":v,"X-YouTube-PostPlayNonce":M.yieldResult};"DELEGATED_SESSION_ID"in _.nc&&P0g(H,t);return M.return(t)})},T7H=function(f,H,v){v=v===void 0?!1:v;
return _.Y(function(t){return ufT()?_.J("enable_cloud_save_error_popup_after_retry")?t.return(new Promise(function(M,h){var y,m,W,I,S;return _.Y(function(d){switch(d.nextAddress){case 1:y=0,m=!0,I=W=null;case 2:if(!(m&&y++<2)){d.jumpTo(4);break}_.Zc(d,5);return d.yield(hMT(f,H,v),7);case 7:W=d.yieldResult;m=W.ok?!1:!PI3.includes(W.status);_.ch(d,2);break;case 5:I=S=_.xu(d);m=Gkr(I);d.jumpTo(2);break;case 4:W?W.ok?(bo(f,k0M),M()):(bo(f,f.cloudSaveIntervalMs*2),h(Error("Xh`"+String(W.status),{cause:{rpcErrorCode:W.status}}))):
(bo(f,f.cloudSaveIntervalMs*2),h(I||Error("Yh"))),_.Bj(d)}})})):t.return(new Promise(function(M,h){var y,m;
return _.Y(function(W){if(W.nextAddress==1){if(f.JSC$16920_miniAppId==="")return h(Error("Zh")),W.return();_.Zc(W,2);return W.yield(hMT(f,H,v),4)}if(W.nextAddress!=2)return y=W.yieldResult,y.ok?(bo(f,k0M),M()):(bo(f,f.cloudSaveIntervalMs*2),h(Error("Xh`"+String(y.status),{cause:{rpcErrorCode:y.status}}))),_.ch(W,0);m=_.xu(W);bo(f,f.cloudSaveIntervalMs*2);h(m);_.Bj(W)})})):t.return()})},hMT=function(f,H,v){v=v===void 0?!1:v;
var t,M,h;return _.Y(function(y){if(y.nextAddress==1)return t=_.QG((new TextEncoder).encode(H)),M=EB3(),y.yield(MZh(f,M),2);h=y.yieldResult;return y.return(fetch(M,{method:"POST",body:new Blob([t]),headers:h,keepalive:v}))})},w3T=function(f){var H,v;
return _.Y(function(t){if(t.nextAddress==1){if(!ufT())return t.return("");if(f.JSC$16920_miniAppId==="")throw Error("Zh");if(f.loadAttempts>2)return t.return(f.downloadDataPromise);_.Zc(t,2);return t.yield(RMH(f),4)}if(t.nextAddress!=2)return H=t.yieldResult,t.return(H);v=_.xu(t);if(Gkr(v)&&++f.loadAttempts<2)return t.return(w3T(f));throw v;})},RMH=function(f){var H,v,t,M,h;
return _.Y(function(y){switch(y.nextAddress){case 1:return _.Zc(y,2),H=EB3(),y.yield(MZh(f,H),4);case 4:return v=y.yieldResult,y.yield(fetch(H,{method:"GET",headers:v}),5);case 5:return t=y.yieldResult,t.ok?y.yield(t.text(),6):y.return(Promise.reject(Error("$h`"+String(t.status),{cause:new aX3(t.status)})));case 6:return M=y.yieldResult,y.return((new TextDecoder).decode(_.yM(M)));case 2:return h=_.xu(y),y.return(Promise.reject(h))}})},bo=function(f,H){f.cloudSaveIntervalMs=H;
f.scottyUploadRateLimiter.intervalMs=f.cloudSaveIntervalMs};
qKb.prototype.flush=function(){var f=this;return _.Y(function(H){return f.initialDownloadDataSucceeded?H.yield(f.scottyUploadRateLimiter.flush(!0),0):H.return()})};var VZ9=fv(q_(1),TA(1)),yv_=fv(q_(1),TA(3)),io=function(f){this.callbacks=f};
_.R=io.prototype;_.R.onAudioToggled=function(f,H){(H===void 0||H)&&_.WH("yt-mini-app-is-audio-enabled",f,2592E3)};
_.R.onPause=function(){this.onAudioToggled(!1,!1)};
_.R.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.R.returnNativeBenchmarkingMessage=function(){};
_.R.sendGameData=function(){};
_.R.sendStartGameFrameCapture=function(){};
var NcT=function(f,H,v){this.callbacks=f;var t=this;this.sdkVersion=new _.dZ;this.channel=new F8E(_.bT({destination:window,iframe:H,origin:(new URL(v.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var M=k9;var h=q_(5);var y=new eVv;y=_.rP(y,1,1E4);h=_.Lo(h,4,Dy9,y);M(t,h);t.onAudioToggled(t.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){t.sdkVersion.resolve("")},1E4)};
_.e(NcT,io);_.R=NcT.prototype;_.R.onAudioToggled=function(f,H){io.prototype.onAudioToggled.call(this,f,H===void 0?!0:H);H=k9;var v=q_(2),t=new lVb;f=_.O1(t,1,f);f=_.Lo(v,3,Dy9,f);H(this,f)};
_.R.onPause=function(){io.prototype.onPause.call(this);k9(this,q_(3))};
_.R.onResume=function(){io.prototype.onResume.call(this);k9(this,q_(4))};
_.R.returnNativeBenchmarkingMessage=function(f){var H=k9,v=q_(6);var t=TA(_.gP(f,C6,1)?1:2);f=_.gP(f,C6,1)?f:null;t=_.Lo(t,5,wS,f);H(this,fv(v,t))};
_.R.sendGameData=function(f){var H=k9,v=q_(7);f=_.Lo(v,5,Dy9,f);H(this,f)};
_.R.sendStartGameFrameCapture=function(){k9(this,q_(9))};
var Tt=function(f,H,v){var t,M,h;return _.Y(function(y){if(y.nextAddress==1)return t=f.callbacks,M=t.onSdkCalled,h=H,y.yield(f.sdkVersion.promise,2);M.call(t,h,y.yieldResult,v);_.Bj(y)})};
NcT.prototype.onMessage=function(){var f=this;return DKR(tc,function(H){var v,t,M,h,y,m,W,I,S,d,Z,l,L,r,n,Q,C,w,c,A,X,fg,gB,O5,s5,U5,lH,E5,uH,Rn,pr,gh,fr,sb,In,Kr,BA,TH,hN,Ho,J9,Ox,lC,vA,Rd,HA;return _.Y(function($g){switch($g.nextAddress){case 1:if(!CTb(H.data))return _.pb(Error("ai")),$g.return();v=_.x_(H.data,1);_.J("enable_iframe_message_get_type_via_fields")&&(t=H.data,v=M=_.x_(t,1));switch(v){case 8:if(H.data.hasMetadata()){var iC=f.sdkVersion,jp=iC.resolve;var zH=H.data.getMetadata();zH=_.L8(zH,
1);jp.call(iC,zH);clearTimeout(f.sdkVersionTimeoutId)}break;case 6:return $g.jumpTo(2);case 16:if(!_.Ip(H.data,pIg,14,MQ))return $g.return();h=_.Fg(H.data,pIg,14,MQ);(m=(y=f.callbacks).onGameFrameReceived)==null||m.call(y,h);return $g.return();case 17:if(!_.Ip(H.data,n_M,15,MQ))return $g.return();(I=(W=f.callbacks).onGameAudioReceived)==null||I.call(W,_.Fg(H.data,n_M,15,MQ));return $g.return();case 1:if(iC=_.Fg(H.data,BP_,2,MQ))switch(_.x_(iC,1)){case 1:f.callbacks.onFirstFrameReady();if(_.J("enable_network_request_logging_on_game_events")&&
_.gP(iC,ip,4)){Tt(f,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.V$(iC,ip,4));break}Tt(f,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(zH=(jp=f.callbacks).onGameReady)==null||zH.call(jp);if(_.J("enable_network_request_logging_on_game_events")&&_.gP(iC,ip,4)){Tt(f,"MINI_APP_SDK_API_GAME_READY",_.V$(iC,ip,4));break}Tt(f,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.Ip(iC,k3,3,zVT))f.callbacks.onResourceLoaded(_.Fg(iC,k3,3,zVT))}return $g.return();case 3:return $g.jumpTo(3);case 4:return $g.jumpTo(4);
case 2:return $g.jumpTo(5);case 9:return $g.jumpTo(6);case 10:return f.callbacks.onClick(),$g.return();case 5:return $g.jumpTo(7);case 11:if(!_.Ip(H.data,cw,9,MQ))return $g.return();S=_.Fg(H.data,cw,9,MQ);(Z=(d=f.callbacks).onBenchmarkingMessageReceived)==null||Z.call(d,S);iC=H.reply;jp=q_(1);zH=TA(1);var Fa=new cw;var lt=new Uint8Array(fTg(S,J7(S,dyT,6))|0);Fa=SN(Fa,5,dyT,_.QM(lt,!1));zH=_.Lo(zH,5,wS,Fa);iC.call(H,fv(jp,zH));return $g.return();case 12:return $g.jumpTo(8);case 13:return $g.jumpTo(9);
case 15:if(!_.J("enable_open_yt_content"))return H.reply(yv_),$g.return();if(!_.Ip(H.data,o_a,12,MQ))return H.reply(fv(q_(1),TA(2))),$g.return();iC=_.Fg(H.data,o_a,12,MQ);l=_.L8(iC,1);f.callbacks.onOpenYTContent(l);H.reply(VZ9);return $g.return();case 14:return $g.jumpTo(10);default:return $g.return()}$g.jumpTo(0);break;case 2:if(!_.Ip(H.data,Hd,5,MQ))return $g.return();jp=H.data;iC=J7(jp,MQ,5);jp=jp.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;L=zwT(jp,jp[_.Ob]|0,Hd,iC)||Hd[r9s]||(Hd[r9s]=
K_v(Hd));iC=_.VX(L,AH,1,_.yX());r=_.V(iC);n=r.next();case 12:if(n.done){$g.jumpTo(14);break}Q=n.value;C=new _.e$;C.level=_.x_(Q,2)===1?"WARNING":"ERROR";w=XXe(Q.getSource());return $g.yield(f.sdkVersion.promise,15);case 15:c={source:w,sdkVersion:$g.yieldResult};_.hW(_.OU(Q,6))!=null?(C.message=Q.getMessage(),C.stack=_.L8(Q,5),c.sdkErrorType=AUv(_.x_(Q,6)),_.hW(_.OU(Q,7))!=null&&(c.sdkApi=bw3(_.x_(Q,7)))):C.stack=void 0;X=A=void 0;(X=(A=f.callbacks).onError)==null||X.call(A,{loggingError:C,metadata:c});
n=r.next();$g.jumpTo(12);break;case 14:return $g.return();case 3:return _.Zc($g,16),iC=$g.yield,jp=f.callbacks,zH=jp.onSave,Fa=_.Fg(H.data,UyH,4,MQ),Fa=_.L8(Fa,1),iC.call($g,zH.call(jp,Fa),18);case 18:H.reply(VZ9);_.ch($g,17);break;case 16:return fg=_.xu($g),gB=D4,O5=fg,s5=f.callbacks,U5="MINI_APP_SDK_API_SAVE_DATA",$g.yield(f.sdkVersion.promise,19);case 19:gB(O5,s5,U5,$g.yieldResult),H.reply(yv_);case 17:return $g.yield(Tt(f,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return $g.return();case 4:return _.Zc($g,
21),$g.yield(f.callbacks.onLoad(),23);case 23:lH=$g.yieldResult;iC=H.reply;jp=q_(1);zH=TA(1);Fa=new UyH;Fa=_.rr(Fa,1,lH);zH=_.Lo(zH,3,wS,Fa);iC.call(H,fv(jp,zH));_.ch($g,22);break;case 21:return E5=_.xu($g),uH=D4,Rn=E5,pr=f.callbacks,gh="MINI_APP_SDK_API_LOAD_DATA",$g.yield(f.sdkVersion.promise,24);case 24:uH(Rn,pr,gh,$g.yieldResult),H.reply(yv_);case 22:return $g.yield(Tt(f,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return $g.return();case 5:_.Zc($g,26);f.callbacks.onSendHighScore(aN(_.Fg(H.data,
PTC,3,MQ).getValue()));H.reply(fv(q_(1),TA(1)));_.ch($g,27);break;case 26:return fr=_.xu($g),sb=D4,In=fr,Kr=f.callbacks,BA="MINI_APP_SDK_API_SEND_SCORE",$g.yield(f.sdkVersion.promise,28);case 28:sb(In,Kr,BA,$g.yieldResult),H.reply(yv_);case 27:return $g.yield(Tt(f,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return $g.return();case 6:if(!_.Ip(H.data,GXv,8,MQ)){$g.jumpTo(30);break}iC=$g.yield;jp=_.Fg(H.data,GXv,8,MQ);jp=_.x_(jp,1);return iC.call($g,Tt(f,bw3(jp)),30);case 30:return $g.return();case 7:return iC=
H.reply,jp=q_(1),zH=TA(1),Fa=f.callbacks.getLanguage(),zH=SN(zH,4,wS,Ux(Fa)),iC.call(H,fv(jp,zH)),$g.yield(Tt(f,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return $g.return();case 8:if(!_.Ip(H.data,aVZ,10,MQ))return $g.return();TH=_.Fg(H.data,aVZ,10,MQ);hN=f.callbacks;Ho=hN.onSdkPerformanceUpdate;return $g.yield(f.sdkVersion.promise,33);case 33:return Ho.call(hN,TH,$g.yieldResult),$g.return();case 9:iC=H.data;jp=J7(iC,MQ,11);if(_.ep(_.OU(iC,jp))==null)return H.reply(fv(q_(1),TA(2))),$g.return();
J9=zX(H.data,11,MQ);f.callbacks.onShareInviteCode(J9);H.reply(VZ9);return $g.yield(Tt(f,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return $g.return();case 10:if(_.Ip(H.data,JZh,13,MQ)){$g.jumpTo(35);break}return $g.yield(f.callbacks.onShowMiniAppAd(2),36);case 36:return Ox=$g.yieldResult,H.reply(fv(q_(1),rZa(Ox))),$g.yield(Tt(f,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return $g.return();case 35:iC=_.Fg(H.data,JZh,13,MQ);a:switch(_.x_(iC,1)){case 1:iC={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:iC={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:iC={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}lC=iC;vA=lC.adType;Rd=lC.sdkApi;iC=$g.yield;jp=f.callbacks;zH=jp.onShowMiniAppAd;Fa=_.Fg(H.data,JZh,13,MQ);Fa=_.L8(Fa,2);return iC.call($g,zH.call(jp,vA,Fa||void 0),38);case 38:return HA=$g.yieldResult,H.reply(fv(q_(1),rZa(HA))),$g.yield(Tt(f,Rd),39);case 39:return $g.return()}})})};
var k9=function(f,H){_.Y(function(v){f.channel.send(H);_.Bj(v)})},oc=function(f,H,v){this.callbacks=f;
var t=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;f=aME(H,(new URL(v.toString())).origin);this.gameSnacks=new X2B(f);this.gameSnacks.page.onReady(function(){t.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){t.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var M,h;(h=(M=t.callbacks).onGameReady)==null||h.call(M)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(M,h){try{t.callbacks.onSendHighScore(h)}catch(y){D4(y,t.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(M,h){var y;return _.Y(function(m){if(m.nextAddress==1)return _.Zc(m,2),m.yield(t.callbacks.onSave(t.decoder.decode(h)),4);if(m.nextAddress!=2)return _.ch(m,0);y=_.xu(m);D4(y,t.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return m.return()})});
this.gameSnacks.storage.onLoad(function(){var M,h;return _.Y(function(y){if(y.nextAddress==1)return _.Zc(y,2),y.yield(t.callbacks.onLoad(),4);if(y.nextAddress!=2)return M=y.yieldResult,y.return(t.encoder.encode(M));h=_.xu(y);D4(h,t.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return y.return(t.encoder.encode(""))})});
this.gameSnacks.init()};
_.e(oc,io);oc.prototype.onAudioToggled=function(f,H){io.prototype.onAudioToggled.call(this,f,H===void 0?!0:H);var v;(v=this.gameSnacks)==null||v.audio.update(f)};
oc.prototype.onPause=function(){io.prototype.onPause.call(this);var f;(f=this.gameSnacks)==null||f.game.pause()};
oc.prototype.onResume=function(){io.prototype.onResume.call(this);var f;(f=this.gameSnacks)==null||f.game.resume()};var YAh=iws,m9C=_.a(function(f){var H=f.data;var v=f.loadingProgress;var t=f.forPaused;f=_.V(_.gp("",void 0,"LYYTdd"));var M=f.next().value,h=f.next().value;f=_.V(_.gp(!1,void 0,"K0waae"));var y=f.next().value,m=f.next().value,W=[],I=function(){return"transform: scaleX("+(_.p4(v)||0)+")"},S=null,d=function(){return H()&&S!==null&&S!==void 0?S:S=H().showAnniversaryAnimation?6:YAh()};
_.K4(function(){var r;if(H().timeOutMessages&&((r=H().timeOutMessages)==null?0:r.length)){S=null;r=_.V(W);for(var n=r.next();!n.done;n=r.next())clearTimeout(n.value);W.length=0;kk5(H().timeOutMessages,W,h,m)}},"BNu9j");
var Z=function(){return!!H().persistentErrorMessageTitle},l=function(){return v!==void 0},L=function(){return H().title};
return _.O("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelWizHost"},_.O("div",{class:"miniAppSplashScreenViewModelWizLoadingScreen",role:"region",tabindex:0},_.O("div",{class:"miniAppSplashScreenViewModelWizBackgroundBase"}),_.O("div",{class:"miniAppSplashScreenViewModelWizBackgroundBlur",style:function(){var r,n=(r=H().backgroundImage)==null?void 0:r.sources,Q;return(n==null?0:n.length)?"background-image: url("+((Q=n[0])==null?void 0:Q.url)+")":""}}),_.O("div",{class:"miniAppSplashScreenViewModelWizBackgroundScrim"}),
_.O(_.g,{cond:function(){return!Z()&&!(t==null?0:t())},
then:function(){var r={};return _.O("div",{class:"miniAppSplashScreenViewModelWizLoadingScreenContent"},_.O("div",{class:"miniAppSplashScreenViewModelWizLoadingIcon"},_.O(_.j3,{className:"miniAppSplashScreenViewModelWizLoadingIconAnimation",animationName:function(){return"loading_animation_"+d()},
data:function(){var n="loading_animation_"+d();return{animationConfig:{name:n,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+n+".json",loop:!0,autoplay:!0}}}})),_.O("div",{class:"miniAppSplashScreenViewModelWizTimeoutMessageContainer"},_.O(_.g,{cond:L,
then:function(){return _.O("h3",{class:"miniAppSplashScreenViewModelWizTimeoutHeading"},L)}}),_.O("p",{class:_.S2("miniAppSplashScreenViewModelWizTimeoutMessage",(r.miniAppSplashScreenViewModelWizTimeoutMessageFadeOut=function(){return y()},r)),
"aria-live":"polite"},M),_.O(_.g,{cond:l,then:function(){return _.O("div",{class:"miniAppSplashScreenViewModelWizLoadingBarTrack"},_.O("div",{class:"miniAppSplashScreenViewModelWizLoadingBarSegment miniAppSplashScreenViewModelWizLoadingBarSegmentResourceAnimation",style:I}))}})))}}),_.O(_.g,{cond:Z,
then:function(){return _.O("div",{class:"miniAppSplashScreenViewModelWizPersistentErrorContent"},_.O("h3",{class:"miniAppSplashScreenViewModelWizPersistentErrorMessageTitle"},function(){return H().persistentErrorMessageTitle}),_.O(_.g,{cond:function(){return!!H().persistentErrorMessageDescription},
then:function(){return _.O("p",{class:"miniAppSplashScreenViewModelWizPersistentErrorMessageDescription"},function(){return H().persistentErrorMessageDescription})}}))}}),_.O(_.g,{cond:t,
then:function(){return _.O("div",{class:"miniAppSplashScreenViewModelWizPauseContent"},_.O("img",{class:"miniAppSplashScreenViewModelWizPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.O("h3",{class:"miniAppSplashScreenViewModelWizPauseMessage"},L))}})))},"qe");var $9M=new _.iN("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var WqC=fc;fc=function(f){function H(v){if(v){var t,M;(t=v.__spec)==null||(M=t.didUnmount)==null||M.call(t);for(t=0;t<v.childNodes.length;t++)H(v.childNodes[t])}}
WqC==null||WqC(f);ou(function(){for(var v=0;v<f.length;v++)H(f[v])})};var O$T=_.a(function(f){var H=f.data;var v=f.score;var t=f.formattedScore;var M=f.onScoreChanged;var h=f.isEmbeddedInWebview;var y=_.w8("yt-mini-app-score-button-view-model"),m=function(){var l;return _.U(H==null?void 0:(l=H())==null?void 0:l.buttonViewModel,_.af)},W=function(){var l;
return(v==null?void 0:v())||Number(H==null?void 0:(l=H())==null?void 0:l.lastScore)||0},I=function(){var l;
return(t==null?void 0:t())||((l=m())==null?void 0:l.title)||""},S,d=1;
if(f=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))f=Number(f),d=isNaN(f)?1:f/100;_.K4(function(){M==null||M(W());var l;var L=_.GK((l=m())==null?void 0:l.onTap);if(L){l=_.U(L,B4v);var r,n,Q;l=_.U(l==null?void 0:(r=l.panelLoadingStrategy)==null?void 0:(n=r.inlineContent)==null?void 0:(Q=n.dialogViewModel)==null?void 0:Q.customContent,STh)}else l=void 0;if(r=l)r.score=I()},"mwn8Jc");
f=_.d6(function(){var l,L,r=H==null?void 0:(l=H())==null?void 0:(L=l.loggingDirectives)==null?void 0:L.trackingParams;r&&_.WL(_.t8().resolve(_.z$),r);return!1});
_.Kc(function(){if(y.value){var l=y.value.querySelector("button"),L=m();l&&L&&TcN(l,L);vb("yt-share-playable-with-high-score",function(){var r=W().toString(),n=H==null?void 0:H().onShareHighScoreCommand,Q=H==null?void 0:H().highScoreShareClientParamIdentifier,C=h==null?void 0:h();n&&(C?(Q=new $IZ,r=_.rr(Q,2,r),Kp(n,r.JSC$12350_serializeBinary())):Q&&(_.t8().resolve($9M).clientParams.set(Q,{miniAppClientParams:{highScore:r}}),DhH(n,!1)))})}});
var Z=function(){var l=m();l&&(v==null?0:v())&&l.accessibilityText&&(l.accessibilityText=l.accessibilityText.replace(S,I()));S=I();return{numberValue:W(),numberText:I(),heightPx:36,fontSizeMultiplier:d,shouldAnimate:!(v==null||!v())&&!0}};
return _.O("yt-mini-app-score-button-view-model",{class:function(){var l={};return _.zV("miniAppScoreButtonViewModelHost",(l.miniAppScoreButtonViewModelIsVisible=W()!==0,l))},
el:y,"on:click":f},gXE(!1,function(){return _.O("span",{style:"display:none;"},W)}),_.O(_.Jj,{data:function(){var l;
return H==null?void 0:(l=H())==null?void 0:l.buttonViewModel}},{buttonViewModel:function(l){return _.O(_.Wp,{data:l.data,
animatedTextProps:Z})}}))},"re");var jyH=_.a(function(f){var H,v=(H=_.Oz("yt-mini-app-is-theater-mode-enabled"))!=null?H:!1,t=_.J("enable_playable_container_save_button"),M=_.J("enable_play_next_destination_page_in_toolbar");H={};return _.O("ytm-mini-app-top-bar-view-model",null,_.O("div",{class:_.S2("yt-mini-app-top-bar-view-model",(H["yt-mini-app-top-bar-view-model--mobile"]=!1,H["yt-mini-app-top-bar-view-model--desktop"]=!0,H))},_.O("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.O(_.g,{cond:function(){var h;return!!f.data().backButtonEdu&&
!((h=f.isExitMiniAppSeen)==null?0:h.call(f))},
then:function(){return _.O(_.Jj,{data:function(){return f.data().backButtonEdu}},{buttonViewModel:_.Wp})},
else:function(){return _.O(_.Jj,{data:function(){return f.data().backButton}},{buttonViewModel:_.Wp})}}),_.O(_.g,{cond:function(){return f.data().viewAllButton&&!0},
then:function(){return _.O(_.Jj,{data:function(){return f.data().viewAllButton}},{buttonViewModel:_.Wp})}}),_.O(_.g,{cond:function(){return f.data().title&&!0},
then:function(){return _.O("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return f.data().title})}})),_.O("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.O(_.g,{cond:function(){var h;
return(h=f.isDesktopPlayPage)==null?void 0:h.call(f)},
then:function(){return _.O(_.R8,null,_.O(goa,{highScoreButton:function(){return f.data().highScoreButton},
score:f.score,formattedScore:f.formattedScore,onScoreChanged:f.onScoreChanged,isEmbeddedInWebview:f.isEmbeddedInWebview}),_.O(ITr,{enableSaveButton:function(){return _.p4(t)},
saveButton:function(){return f.data().saveButton},
isSaved:f.isSaved,onSaveToggled:function(){return f.onSaveToggled}}),_.O(SAh,{menuButton:function(){return f.data().menuButton}}))},
else:function(){return _.O(_.g,{cond:function(){return!1},
then:function(){return _.O(_.Jj,{data:function(){return f.data().playPageButton}},{buttonViewModel:function(h){return _.O(_.Wp,{data:h.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.O(goa,{highScoreButton:function(){return f.data().highScoreButton},
score:f.score,formattedScore:f.formattedScore,onScoreChanged:f.onScoreChanged,isEmbeddedInWebview:f.isEmbeddedInWebview})}})}})),_.O("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.O(_.Jj,{data:function(){return f.data().muteButton}},{toggleButtonViewModel:function(h){var y=h.data;
return _.O(_.Fo,{data:function(){var m,W;return Object.assign({},y(),{isToggled:(W=(m=f.isAudioEnabled)==null?void 0:m.call(f))!=null?W:!0})},
onToggle:f.onAudioToggled,useOutlinedIcon:!0})}}),_.O(_.Jj,{data:function(){return f.data().theatreModeButton}},{toggleButtonViewModel:function(h){var y=h.data;
return _.O("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.O(_.Fo,{data:function(){return Object.assign({},y(),{isToggled:v})},
useOutlinedIcon:!0}))}}),_.O(d9r,{fullscreenButton:function(){return f.data().fullscreenButton}}),_.O(_.g,{cond:function(){return _.p4(M)&&f.data().viewAllButton&&!1},
then:function(){return _.O(_.Jj,{data:function(){return f.data().viewAllButton}},{buttonViewModel:_.Wp})}}),_.O(_.g,{cond:function(){var h;
return!((h=f.isDesktopPlayPage)==null?0:h.call(f))},
then:function(){return _.O(_.R8,null,_.O(ITr,{enableSaveButton:function(){return _.p4(t)},
saveButton:function(){return f.data().saveButton},
isSaved:f.isSaved,onSaveToggled:function(){return f.onSaveToggled}}),_.O(SAh,{menuButton:function(){return f.data().menuButton}}))}}))))},"se");
jyH.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var SAh=_.a(function(f){return _.O(_.Jj,{data:f.menuButton},{buttonViewModel:_.Wp})},"te"),ITr=_.a(function(f){var H=f.enableSaveButton;
var v=f.saveButton;var t=f.isSaved;var M=f.onSaveToggled;return _.O(_.g,{cond:function(){return H()&&!(v==null||!v())},
then:function(){return _.O(_.Jj,{data:function(){var h=_.U(v==null?void 0:v(),_.G3),y;return{toggleButtonViewModel:Object.assign({},h,{isToggled:(y=t==null?void 0:t())!=null?y:!(h==null||!h.isToggled)})}}},{toggleButtonViewModel:function(h){return _.O(_.Fo,{data:h.data,
onToggle:M})}})}})},"ue"),goa=_.a(function(f){var H=f.highScoreButton;
var v=f.score;var t=f.formattedScore;var M=f.onScoreChanged;var h=f.isEmbeddedInWebview;return _.O(_.Jj,{data:H},{miniAppScoreButtonViewModel:function(y){return _.O(O$T,{data:y.data,score:v,formattedScore:t,onScoreChanged:M,isEmbeddedInWebview:h})}})},"ve"),d9r=_.a(function(f){f=f.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.O(_.R8,null):_.O(_.Jj,{data:f},{buttonViewModel:_.Wp})},"we");_.syh=new _.iN("DESKTOP_CURRENT_PAGE");var Lqn=_.a(function(f){var H=f.data;var v=_.J("force_active_time_logging_webview"),t=!1,M=new AIZ,h=void 0,y=void 0,m=_.t8().resolve(X3_),W=new CiH,I=void 0,S=void 0,d=[],Z=void 0,l=void 0,L=!1,r=!1,n=!1,Q=!1,C=new _.dZ,w=_.t8().resolve($9M),c=_.t8().resolve(_.Np),A=_.t8().resolve(_.vh(ss)),X,fg=(X=_.t8().resolve(_.vh(_.syh)))==null?void 0:X.getCurrentPage(),gB=!1,O5=0,s5=function(bH){bH.preventDefault();return bH.returnValue=""},U5;
f=_.V(_.gp(!((U5=_.Oz("yt-mini-app-is-audio-enabled"))!=null&&!U5),void 0,"cGaEvf"));var lH=f.next().value,E5=f.next().value,uH;U5=_.V(_.gp(!((uH=_.Oz("exit-mini-app-seen-state"))==null||!uH),void 0,"DctXGe"));var Rn=U5.next().value,pr=U5.next().value;uH=_.V(_.gp(!1,void 0,"pU1jdd"));var gh=uH.next().value,fr=uH.next().value;uH=_.V(_.gp(void 0,void 0,"ldLqDf"));var sb=uH.next().value,In=uH.next().value;uH=_.V(_.gp(void 0,void 0,"mdofE"));var Kr=uH.next().value,BA=uH.next().value;uH=_.V(_.gp(!0,void 0,
"T1gxCf"));var TH=uH.next().value,hN=uH.next().value;uH=_.V(_.gp(!1,void 0,"Dp92Vb"));var Ho=uH.next().value,J9=uH.next().value;uH=_.V(_.gp(!1,void 0,"AsJEvf"));var Ox=uH.next().value,lC=uH.next().value;uH=_.V(_.gp(void 0,void 0,"c55ogf"));var vA=uH.next().value,Rd=uH.next().value;uH=_.V(_.gp(0,void 0,"UuaLqf"));var HA=uH.next().value,$g=uH.next().value,iC=_.TN("mini-app-container-view-model"),jp=function(){return H().isEmbeddedInWebview},zH=function(){return H().hasPlayNextShelf};
vb("yt-page-type-changed",function(bH){if(_.J("enable_is_mini_app_page_active_bugfix"))bH.detail.newPageSubtype==="mini_app"&&bH.detail.newPageType==="ytd-browse"||!TH()||Oq();else if(bH=_.Bfv()==="mini_app",bH!==TH())if(hN(bH),bH){var sx;bH=(sx=H().playableId)==null?void 0:sx.toString();bH!==void 0&&window.location.href.includes(bH)&&!r&&(Q=!0,Fa(),de.value&&UZ(de.value))}else bH||Oq()});
vb("yt-action",function(bH){bH.detail.actionName==="yt-engagement-panel-visible-changed"&&bH.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&bH.detail.args[2]==="PAmini_app_panel"&&Oq();_.J("enable_is_mini_app_page_active_bugfix")?bH.detail.actionName==="yt-history-load"&&!TH()&&(fg==null?0:fg.active)?(hN(!0),Fa(),de.value&&UZ(de.value)):bH.detail.actionName==="yt-history-load"&&TH()&&!H().isEmbeddedInWebview&&Eb():TH()&&bH.detail.actionName==="yt-history-load"&&(Q?Q=!1:H().isEmbeddedInWebview||
Eb())});
_.Dt(function(){lt()});
_.K4(function(){Fa()},"gpydpe");
var Fa=function(){var bH=H().playableId,sx=H().localReleaseId,p0=H().derivedDeviceInterface;if(r)_.pb(new _.e$("[MiniAppContainerViewModel] onEnter was called more than once"));else{r=!0;h=new FoC(bH,sx,p0,document.visibilityState==="visible");os9(h);y=new qKb(bH);Z$9(m,bH);Eso(W,{showMiniAppAdCommand:H().showMiniAppAdCommand,isEmbeddedInWebview:H().isEmbeddedInWebview,playLogger:h});LOE()&&(l=document.body.style.backgroundColor,_.K6(document.body,"background-color","black"));Q_();n0();C=new _.dZ;
if(H().isEmbeddedInWebview){if(bH=(new URLSearchParams(window.location.search)).get("postPlayNonce"))Kov(h,bH),gB=!0;M.initialize({onAudioStateLoaded:function(yG){lK(yG)},
onMuteMiniApp:function(){lK(!1)},
onUnmuteMiniApp:function(){lK(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(yG){gB||(Kov(h,yG),gB=!0)},
confirmExitMiniApp:function(){var yG,$O,XU;return _.Y(function(p9){if(p9.nextAddress==1)return H().confirmExitMiniAppCommand?p9.yield(Promise.race([C.promise,Promise.resolve(!1)]),2):p9.return();(yG=p9.yieldResult)?!H().confirmExitMiniAppCommandEdu||(XU=($O=Rn)==null?void 0:$O())!=null&&XU?FU(H().confirmExitMiniAppCommand):(FU(H().confirmExitMiniAppCommandEdu),_.WH("exit-mini-app-seen-state","true",2592E6)):FU(H().closeMiniAppCommand);_.Bj(p9)})},
onNativeBenchmarkingMessageReceived:function(yG){yG=spv(_.r65(yG));if(_.Ip(yG,_.FX,3,SUn)){var $O=_.Fg(yG,_.FX,3,SUn),XU=oBB();var p9=aN(XU.getSeconds())-aN($O.getSeconds());$O=_.Yl(XU,2)-_.Yl($O,2);p9<0&&$O>0?(p9+=1,$O-=1E9):p9>0&&$O<0&&(--p9,$O+=1E9);p9=(new C6).setSeconds(p9);p9=_.vv(p9,2,_.RF($O),0);_.eV(yG,1,p9)}var EV;(EV=S)==null||EV.returnNativeBenchmarkingMessage(yG)},
multiplayer3pAckStateLoaded:function(yG){Eb(yG)},
exitMiniAppSeenStateLoaded:function(yG){H().confirmExitMiniAppCommandEdu&&pr(yG)},
onNavigateToNewMiniApp:function(){FU(H().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(yG){yG=new URLSearchParams(yG);var $O=void 0;yG.has("invite_code")&&($O=new xyn,yG=yG.get("invite_code"),$O=_.rr($O,1,yG));if(yG=$O){var XU;(XU=S)==null||XU.sendGameData(yG)}},
onPauseMiniApp:function(){t=!0;di()},
onResumeMiniApp:function(){t=!0;zf()},
onAdFinished:function(yG){W.onAdFinished(yG)}});
H().showMultiplayer3pConsentDialogCommand||C.resolve(!0);FU(H().onContainerReadyCommand)}else Kov(h),C.resolve(!0);fTr(y,rIh(h));rIh(h).then(function(yG){yG={miniAppPlayData:{postPlayNonce:yG}};var $O,XU=($O=H().loggingDirectives)==null?void 0:$O.trackingParams;XU&&_.UV().stateChanged(XU,yG)});
bH=H().showSignInDialogCommand;!ufT()&&bH&&(_.WH("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),FU(bH));H().confirmExitMiniAppCommand&&A&&(bH=rUH(H().confirmExitMiniAppCommand))&&(A.customConfirmationCommand=bH)}},lt=function(){l&&_.K6(document.body,"background-color",l);
L=!1;Z&&Z.release();y.flush().catch(function(bH){_.pb(bH)});
m.flush().catch(function(bH){_.pb(bH)});
p3Z(h);iT();S=void 0;Jvo(w)},Oq=function(){hN(!1);
lt();fr(!1);Rd(void 0);In(void 0);BA(void 0);O5=0;$g(0);r=!1},di=function(){var bH;
(bH=S)==null||bH.onPause();Z&&Z.release();y.flush().catch(function(sx){_.pb(sx)});
m.flush().catch(function(sx){_.pb(sx)});
nsH(h);J9(!0)},zf=function(){var bH;
(bH=S)==null||bH.onResume();n0();bH=h;bH.isForeground=!0;X8(bH,"PLAY_EVENT_TYPE_PLAY_RESUME");J9(!1)},lK=function(bH){var sx;
(sx=S)==null||sx.onAudioToggled(bH);E5(bH)},Eb=function(bH){H().showMultiplayer3pConsentDialogCommand&&(H().isEmbeddedInWebview&&bH!==void 0&&C.resolve(bH),!bH&&_.Bfv()==="mini_app"&&FU(H().showMultiplayer3pConsentDialogCommand))},PA=function(){var bH,sx,p0,yG;
return _.Y(function($O){if($O.nextAddress==1){!H().isLivestream||H().disableVideoCapture||(bH=S)!=null&&bH.sendStartGameFrameCapture();sx=(new URL(window.location.href)).searchParams;if(sx.has("invite_code")){var XU=new xyn,p9=sx.get("invite_code");p0=_.rr(XU,1,p9);(yG=S)==null||yG.sendGameData(p0)}gh()||(fr(!0),XU=h,XU.state!==1?_.pb(new _.e$("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+B7H[XU.state])):(_.YZ("mini_app_ids_without_game_ready").includes(XU.JSC$16876_miniAppId)&&(XU.gameReady=
!0),XU.state=2,XU.beforeReady=!1,cl(XU,"ma_ffr"),X8(XU,"PLAY_EVENT_TYPE_PLAY_READY")));return $O.yield(C.promise,2)}FU(H().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();H().isEmbeddedInWebview||Eb();_.Bj($O)})},Xb=function(){var bH=h;
bH.gameReady=!0;cl(bH,"ma_gr")},YU=function(bH){var sx;
return _.Y(function(p0){if(p0.nextAddress==1)return _.Zc(p0,2),p0.yield(voM(y,bH),4);if(p0.nextAddress!=2)return _.ch(p0,0);sx=_.xu(p0);FU(H().showSavingErrorPopupCommand);throw sx;})},MR=function(){var bH,sx;
return _.Y(function(p0){if(p0.nextAddress==1)return _.Zc(p0,2),p0.yield(H$a(y),4);if(p0.nextAddress!=2)return bH=p0.yieldResult,p0.return(bH);sx=_.xu(p0);FU(H().showLoadingErrorDialogCommand);throw sx;})},mS=function(bH){h.logError(bH)},U0=function(bH,sx,p0){uuH(h,bH,sx,p0)},Jm=function(bH,sx){Pih(h,bH,sx)},Go=function(){!v&&H().isEmbeddedInWebview||_.M$();
QJb(h,!0);L||(window.addEventListener("beforeunload",s5,{capture:!0}),L=!0)},RW=function(bH){var sx,p0,yG,$O,XU,p9,EV;
return _.Y(function(jf){if(jf.nextAddress==1)return m&&(!I||I<bH)&&bH>0?jf.yield(lTM(m,bH),3):jf.jumpTo(0);sx=jf.yieldResult;p0=_.V(sx);yG=p0.next().value;$O=p0.next().value;XU=yG;p9=$O;((EV=XU)==null?0:EV.displayString)&&p9&&(In(p9),BA(XU.displayString));_.Bj(jf)})},zb=function(bH){var sx=H().onBenchmarkingMessageReceivedCommand;
if(sx){var p0=oBB();_.Lo(bH,3,SUn,p0);Kp(sx,Z8h(bH))}},a3=function(bH){var sx=H().onGameFrameReceivedCommand;
if(sx){var p0=new Bd;var yG=new $gn;var $O=UU(bH,1);yG=_.UP(yG,1,$O);bH=_.L8(bH,2);bH=_.rr(yG,2,bH);p0=_.eV(p0,2,bH);Kp(sx,IBT(p0))}},Xe=function(bH){var sx=H().onGameAudioDataReceivedCommand;
if(sx){var p0=new Bd;var yG=new ORv;bH=_.L8(bH,1);yG=_.rr(yG,1,bH);p0=_.eV(p0,4,yG);Kp(sx,IBT(p0))}},dh=function(){var bH=new URLSearchParams(window.location.search);
if(H().isEmbeddedInWebview&&bH&&bH.get("override_hl")==="true"&&bH.get("hl"))return bH.get("hl");bH=document.documentElement.lang;return bH!==""?bH:_.XG},gi=function(bH){var sx=H().onShareInviteCodeCommand;
if(sx)if(H().isEmbeddedInWebview){var p0=new $IZ;bH=_.rr(p0,1,bH);Kp(sx,OOr(bH))}else p0=H().inviteCodeShareClientParamIdentifier,w.clientParams.set(p0,{miniAppClientParams:{inviteCode:bH}}),FU(sx)},DM=function(bH){var sx,p0,yG;
return _.Y(function($O){if($O.nextAddress==1)return sx=H().onMiniAppOpenYtContentRequested,m&&_.J("enable_open_yt_content")&&sx?$O.yield(U9_(m,bH),3):$O.jumpTo(0);p0=$O.yieldResult;if(p0==="OK")if(H().isEmbeddedInWebview){var XU=new VxH;yG=SN(XU,2,xW,Ux(bH));Kp(sx,mga(yG))}else c.clientData.set("video_id",bH),FU(sx);_.Bj($O)})},L0=function(bH){O5+=_.Yl(bH,3);
bH=Math.min(Math.log(1+O5/15E6*9)/Math.log(10),.99);$g(bH);ev(bH)},ev=_.SI(function(bH){var sx=H().updateLoadingProgressCommand;
if(sx){var p0=new VxH;bH=SN(p0,3,xW,_.wh(bH));Kp(sx,mga(bH))}},100),Ub=function(bH){return cIM(W,bH)},n0=function(){var bH,sx;
((bH=_.YfN())==null?void 0:(sx=bH.wakeLock)==null?void 0:sx.request)!=null&&_.YfN().wakeLock.request("screen").then(function(p0){Z=p0}).catch(function(){})},de=_.w8("iframe");
_.K4(function(){H().isSupportedCountry&&(ufT()||_.J("enable_sign_in_promo")||!H().showSignInDialogCommand?de.value&&UZ(de.value):FU(H().onMiniAppReadyCommand))},"HPyXid");
var jv=function(){return _.O("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return gh()?0:-1},
el:de})},UZ=function(bH,sx){sx=sx===void 0?!1:sx;
var p0=hr();p0&&(sx||p0.toString()!==bH.getAttribute("src"))&&(S=cUb(H().source,{isAudioEnabled:lH,onFirstFrameReady:PA,onGameReady:Xb,onSave:YU,onLoad:MR,onError:mS,onSdkCalled:U0,onSdkPerformanceUpdate:Jm,onClick:Go,onSendHighScore:RW,onBenchmarkingMessageReceived:zb,getLanguage:dh,onShareInviteCode:gi,onResourceLoaded:L0,onOpenYTContent:DM,onShowMiniAppAd:Ub,onGameFrameReceived:a3,onGameAudioReceived:Xe},bH,p0),x6(bH,"load",function(){cl(h,"ma_il");x6(bH,"load",function(){UZ(bH,!0)})}),_.T1(bH,
p0))},hr=function(){var bH=H().url;
if(bH&&(bH=_.pN(bH),bH!==null)){if(H().source&&H().source==="MINI_APP_SOURCE_GAMESNACKS")bH=_.Il(bH,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.J("enable_origin_query_parameter_bugfix")){var sx=_.sH(_.LG_(bH.toString()));sx=new URLSearchParams(sx||"");sx.set("origin",window.location.origin);sx=sx.toString();bH=_.re(bH).toString();bH=_.FM(J9H.exec(bH)[0]+(sx.trim()?"#"+sx:""))}return bH}},a1=function(){var bH={};
bH=_.S2("yt-mini-app-container-view-model__loading-screen",(bH["yt-mini-app-container-view-model__loading-screen--fade-out"]=gh,bH));var sx=function(){return gh()?1:HA()};
return _.O("div",{class:bH},_.O(_.Jj,{data:function(){return H().splashScreen}},{miniAppSplashScreenViewModel:function(p0){return _.O(m9C,{data:p0.data,
loadingProgress:sx})}}))},oh=function(){var bH={};
return _.O("div",{class:_.S2("yt-mini-app-container-view-model__pause-interstitial",(bH["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!Ho()},bH["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=Ho,bH))},_.O(_.Jj,{data:function(){return H().splashScreen}},{miniAppSplashScreenViewModel:function(sx){return _.O(m9C,{data:sx.data,
forPaused:!0})}}))},Q_=function(){d=[];
d.push(_.r9(window,"visibilitychange",function(){n||t&&jp()||(document.visibilityState==="visible"?zf():di())}));
d.push(_.r9(window,"pagehide",function(){lt()}));
d.push(_.r9(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&iC.value.dispatchEvent(new Event("tap"))},0)}));
d.push(_.r9(iC.value,"pointerdown",function(){QJb(h,!1)},!0));
d.push(_.r9(iC.value,"pause",function(){n=!0;di()}));
d.push(_.r9(iC.value,"play",function(){n=!1;zf()}));
d.push(_.r9(iC.value,"exit",function(){lt()}));
var bH=navigator.keyboard,sx=bH&&bH.lock;d.push(_.r9(window,PYv,function(){lC(CY9());CY9()?(H().hasPlayNextShelf&&kA("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),IK("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),sx&&bH.lock(["Escape"])):(H().hasPlayNextShelf&&IK("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),kA("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),sx&&bH.unlock())}));
H().showMultiplayer3pConsentDialogCommand&&d.push(_.r9(window,"yt-playables-ack-3p-data-usage",function(){eMh(m)}));
H().confirmExitMiniAppCommandEdu&&d.push(_.r9(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.WH("exit-mini-app-seen-state","true",2592E6)}));
H().onGameAudioDataReceivedCommand&&d.push(_.r9(window,"message",function(p0){p0=p0.event_;var yG,$O=(yG=de.value)==null?void 0:yG.src;if($O&&p0.origin===(new URL($O)).origin&&p0.data&&p0.data.type==="GAME_AUDIO"&&p0.data.audio&&p0.data.audio.length>0)if(_.J("enable_sending_unwrapped_game_audio_as_serialized_metadata"))pXB(H().onGameAudioDataReceivedCommand,p0.data.audio);else{var XU=new FileReader;XU.onload=function(){var p9=new Bd;var EV=new ORv;EV=_.rr(EV,1,XU.result);p9=_.eV(p9,4,EV);Kp(H().onGameAudioDataReceivedCommand,
IBT(p9))};
XU.readAsDataURL(new Blob([p0.data.audio]))}}))},iT=function(){d.forEach(function(bH){BK(bH)});
window.removeEventListener("beforeunload",s5,{capture:!0})},FU=function(bH){bH&&DhH(bH,H().isEmbeddedInWebview||!1)},IK=function(bH,sx){bH=_.V(iC.value.getElementsByClassName(bH));
for(var p0=bH.next();!p0.done;p0=bH.next())p0.value.classList.add(sx)},kA=function(bH,sx){bH=_.V(iC.value.getElementsByClassName(bH));
for(var p0=bH.next();!p0.done;p0=bH.next())p0.value.classList.remove(sx)};
return function(){var bH={};bH=_.S2("yt-mini-app-container-view-model",(bH["yt-mini-app-container-view-model--desktop"]=!0,bH["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return H().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},bH["yt-mini-app-container-view-model--ios-web-view"]=LOE(),bH["yt-mini-app-container-view-model--no-top-bar"]=function(){return!H().topBar},bH["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return H().hasPlayNextShelf},bH["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return H().hasPlayNextShelf},bH["yt-mini-app-container-view-model--show-peek-below"]=function(){return!Ox()&&H().hasPlayNextShelf},bH));
var sx={};sx=_.S2("yt-mini-app-container-view-model__content",(sx["yt-mini-app-container-view-model__content--desktop-content"]=!0,sx["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return H().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},sx["yt-mini-app-container-view-model--desktop-play-page"]=function(){return H().hasPlayNextShelf},sx));
return _.O("mini-app-container-view-model",{el:iC},_.O("div",{class:bH},_.O(_.g,{cond:function(){return H().topBar&&!Ox()},
then:function(){return _.O(_.Jj,{data:function(){return H().topBar}},{miniAppTopBarViewModel:function(p0){return _.O(jyH,{data:p0.data,
isAudioEnabled:lH,onAudioToggled:function(yG){lK(yG)},
score:sb,formattedScore:Kr,onScoreChanged:function(yG){I=yG},
isEmbeddedInWebview:jp,isSaved:vA,onSaveToggled:function(yG){Rd(yG)},
isExitMiniAppSeen:Rn,isDesktopPlayPage:zH})}})}}),_.O("div",{class:sx},_.O(_.g,{cond:TH,
then:function(){return jv()}}),_.O(_.g,{cond:function(){return H().isLivestream},
then:function(){return oh()}}),_.O(_.g,{cond:function(){return!H().isEmbeddedInWebview},
then:function(){return a1()}}))))}()},"xe");
Lqn.idomCompat=!0;_.yn(Lqn,"mini-app-container-view-model",{props:{data:_.ki}});var x9M=_.a(function(f){var H=f.data;return _.O("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.O("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.d6(function(){var v=H().onTap;v&&_.XA(v)})},_.O(_.g,{cond:function(){return H().icon},
then:function(v){return _.O(_.JE,{icon:function(){return v().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.O("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return H().title})))},"ye");
x9M.idomCompat=!0;var BWM=_.a(function(f){var H=_.TN("div"),v=_.V(_.gp(void 0,void 0,"dg3xff")),t=v.next().value,M=v.next().value;v=_.V(_.gp(void 0,void 0,"AgHNfc"));var h=v.next().value,y=v.next().value;v=_.V(_.gp(void 0,void 0,"fuTKCc"));var m=v.next().value,W=v.next().value,I=function(){var Q=t();return Q!==void 0?Math.abs(Q):void 0},S=function(){var Q=I();
return Q===void 0||Q<=3},d=function(){var Q=I();
var C=h(),w=m();Q=Q!==void 0&&C!==void 0&&w!==void 0?C-w-Q:void 0;return Q===void 0||Q<=3},Z=function(Q){H.value&&H.value.scrollBy({top:0,
left:(_.a8("HTML_DIR")==="rtl"?-1:1)*Q*H.value.clientWidth,behavior:"smooth"})},l=function(){var Q;
M((Q=H.value)==null?void 0:Q.scrollLeft);var C;y((C=H.value)==null?void 0:C.scrollWidth);var w;W((w=H.value)==null?void 0:w.clientWidth)},L=function(){Z(-.5)},r=function(){Z(.5)};
v=_.d6(function(){l()});
_.ru(function(){l();if(H.value&&window.ResizeObserver){var Q=new ResizeObserver(l);Q.observe(H.value);_.Dt(function(){Q.disconnect()})}});
var n={};return _.O("yt-sponsorships-scrollable-shelf",{class:_.S2("ytdSponsorshipsScrollableShelfHost",f.className)},_.O("div",{class:_.S2("ytdSponsorshipsScrollableShelfContent",(n.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return f.data().previousButton&&f.data().nextButton&&!S()&&!d()},n.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return f.data().previousButton&&!S()&&d()},n.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return f.data().nextButton&&
S()&&!d()},n)),
el:H,"on:scroll":v},f.children),_.O(_.g,{cond:function(){return!S()},
then:function(){return _.O(_.Jj,{data:function(){return f.data().previousButton}},{buttonViewModel:function(Q){return _.O(_.Wp,{data:Q.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:L})}})}}),_.O(_.g,{cond:function(){return!d()},
then:function(){return _.O(_.Jj,{data:function(){return f.data().nextButton}},{buttonViewModel:function(Q){return _.O(_.Wp,{data:Q.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:r})}})}}))},"ze");
BWM.idomCompat=!0;var FqZ=_.a(function(f){var H=f.data;f={};return _.O("yt-sponsorships-hub",{class:_.S2("ytdSponsorshipsHubHost",(f.ytdSponsorshipsHubHostIndented=function(){return H().indented},f))},_.O("div",{class:"ytdSponsorshipsHubHeader"},_.O("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.O("div",{class:"ytdSponsorshipsHubAvatar"},_.O(_.Jj,{data:function(){return H().avatar}},{avatarViewModel:_.K5})),_.O(_.g,{cond:function(){return H().badgeImage},
then:function(v){return _.O("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.O("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.O("div",{class:"ytdSponsorshipsHubBadge"},_.O(_.Hn,{data:v,targetWidth:24,targetHeight:24,alt:""}))))}})),_.O("div",{class:"ytdSponsorshipsHubDetails"},_.O("div",{class:"ytdSponsorshipsHubTierName"},function(){return H().tierName}),_.O("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return H().membershipType}),_.O("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return H().membershipDurationOrExpiry})),_.O("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.O(_.Jj,{data:function(){return H().manageButton}},{buttonViewModel:function(v){return _.O(_.Wp,{data:v.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.O(_.Jj,{data:function(){return H().actionMenuButton}},{buttonViewModel:function(v){return _.O(_.Wp,{data:v.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.O("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return H().perksTitle}),_.O(BWM,{data:function(){return{previousButton:H().previousPerkButton,
nextButton:H().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.O("div",{class:"ytdSponsorshipsHubPerkCards"},_.O(_.Jj,{data:function(){return H().perkCards}},{sponsorshipsHubPerkCardViewModel:x9M}),_.O(_.g,{cond:function(){return H().viewAllPerksButton},
then:function(v){return _.O(zMg,{data:v})}}))))},"Ae");
FqZ.idomCompat=!0;var zMg=_.a(function(f){var H=f.data;return _.O("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.O(_.Jj,{data:function(){return H().button}},{buttonViewModel:_.Wp}),_.O("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.O("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return H().title}),_.O("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return H().subtitle})))},"Be");
zMg.idomCompat=!0;_.yn(FqZ,"yt-sponsorships-hub",{props:{data:_.ki}});_.rva=_.a(function(f){var H=f.data;return _.O("yt-dual-avatar-view-model",{class:_.S2("ytDualAvatarViewModelHost",f.className),style:_.ZE({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var v;return((v=H().badgeCutoutRadius)!=null?v:14)+"px"}})},_.O("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.O(_.Jj,{data:function(){return H().startAvatar}},{avatarViewModel:_.K5}),_.O(_.Jj,{data:function(){return H().endAvatar}},{avatarViewModel:_.K5})),_.O(_.Jj,{data:function(){return H().badge}},
{contentPreviewImageViewModel:function(v){return _.O("div",{class:"ytDualAvatarViewModelBadge"},_.O(_.M3,{data:v.data}))}}))},"Ce");
_.rva.idomCompat=!0;var D9b=_.a(function(f){var H=f.data;var v,t=!((v=_.t8().resolve(_.vh(_.TK)))==null||!v());f=_.sg(function(){var S,d,Z=t?(S=H().header)==null?void 0:S.backgroundColorDarkMode:(d=H().header)==null?void 0:d.backgroundColorLightMode;if(Z!==void 0)return _.cS(Z)},void 0,"TDdh7d");
v=_.sg(function(){var S,d;return t?(S=H().header)==null?void 0:S.backgroundImagePart1Dark:(d=H().header)==null?void 0:d.backgroundImagePart1Light},void 0,"X0peMe");
var M=_.sg(function(){var S,d;return t?(S=H().header)==null?void 0:S.backgroundImagePart2Dark:(d=H().header)==null?void 0:d.backgroundImagePart2Light},void 0,"an0Hzd"),h=_.sg(function(){return _.a8("HTML_DIR")==="rtl"},void 0,"BltEgb"),y=_.TN("yt-sponsorships-perks-list"),m=!1,W=function(){var S=y.value;
if(S&&!m){var d,Z=(d=S.parentElement)==null?void 0:d.parentElement;if(Z)for(S=S.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),d=0;d<S.length;++d){var l=S[d];if(l instanceof HTMLElement){Z.scrollTo({top:l.offsetTop+l.clientHeight/2-Z.clientHeight/2,behavior:"smooth"});m=!0;break}}}};
_.Kc(function(){var S=y.value;if(S&&window.ResizeObserver){var d=new ResizeObserver(W);d.observe(S);_.Dt(function(){d.disconnect()})}});
var I={};return _.O("yt-sponsorships-perks-list",{el:y,class:_.S2("ytdSponsorshipsPerksListHost",(I.ytdSponsorshipsPerksListHorizontalPadding=function(){return H().horizontalPaddingEnabled},I))},_.O("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.O("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.ZE({"background-color":f})},_.O("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.O(_.g,{cond:v,then:function(S){var d={};return _.O("div",{class:_.S2((d.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=t,d.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!t,d.ytdSponsorshipsPerksListFlipped=h,d))},_.O(_.Hn,{data:S,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.O("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.O(_.g,{cond:M,
then:function(S){var d={};return _.O("div",{class:_.S2((d.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=t,d.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!t,d.ytdSponsorshipsPerksListFlipped=h,d))},_.O(_.Hn,{data:S,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.O("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.O(_.Jj,{data:function(){var S;
return(S=H().header)==null?void 0:S.dualAvatar}},{dualAvatarViewModel:_.rva})))),_.O("div",{class:"ytdSponsorshipsPerksListBody"},_.O("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return H().title}),_.O(_.g,{cond:function(){return H().perks},
then:function(S){return _.O(_.eK,{each:S},function(d,Z){var l={};return _.O("div",{class:_.S2("ytdSponsorshipsPerksListPerkContainer",(l.ytdSponsorshipsPerksListSelectedPerk=function(){var L=Z(),r=H().selectedPerkIndex;return L===r},l))},_.O(_.g,{cond:function(){return Z()>0},
then:function(){return _.O("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.O("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.O(_.g,{cond:function(){return d.icon},
then:function(L){return _.O(_.JE,{icon:function(){return L().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.O("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.O("div",{class:"ytdSponsorshipsPerksListPerkTitle"},d.title),_.O("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.O(_.iq,{text:d.description})),_.O(_.g,{cond:function(){return d.instructions},
then:function(){var L,r;return _.O("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.O("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(L=d.instructions)==null?void 0:L.title),_.O("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.O(_.iq,{text:(r=d.instructions)==null?void 0:r.text})))}}))),_.O(_.g,{cond:function(){return d.emoji},
then:function(L){return _.O("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.O(_.eK,{each:function(){return L()}},function(r){return _.O(_.Hn,{data:r,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.O(Kqh,{data:d}))})}})))},"De");
D9b.idomCompat=!0;var Kqh=_.a(function(f){var H=f.data;var v=function(y,m){return y===m},t=function(){var y=H();
y=_.U(y==null?void 0:y.badgesShelf,Jpv);return y!==void 0&&y!==null?y:{previousButton:{},nextButton:{}}},M=_.w8("div"),h=function(){var y=M.value;
if(y){var m=y.parentElement;if(m){y=y.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var W=0;W<y.length;++W){var I=y[W];if(I instanceof HTMLElement){m.scrollTo({left:I.offsetLeft+I.clientWidth/2-m.clientWidth/2,behavior:"instant"});break}}}}};
_.Kc(function(){var y=M.value;if(y){var m=new ResizeObserver(h);m.observe(y);_.Dt(function(){m.disconnect()})}});
return _.O("div",null,_.O(_.g,{cond:function(){return H().badges},
then:function(y){return _.O(BWM,{data:t},_.O("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:M},_.O(_.eK,{each:function(){return y()}},function(m,W){var I={},S={},d={};
return _.O("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.O(_.g,{cond:function(){return W()>0},
then:function(){return _.O("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.O("div",{class:_.S2("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(I.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return v(W(),H().currentBadgeIndex)},I.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!v(W(),H().currentBadgeIndex)},I))},_.O("div",{class:_.S2("ytdSponsorshipsPerksListLoyaltyBadge",(S.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return v(W(),
H().currentBadgeIndex)},S.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!v(W(),H().currentBadgeIndex)},S))},_.O(_.g,{cond:function(){return m.image},
then:function(Z){var l={};return _.O("div",{class:_.S2((l.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return v(W(),H().currentBadgeIndex)},l.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!v(W(),H().currentBadgeIndex)},l))},_.O(_.Hn,{data:Z,
alt:""}))}})),_.O("div",{class:_.S2("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(d.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return v(W(),H().currentBadgeIndex)},d))},m.title)))})))}}))},"Ee");
Kqh.idomCompat=!0;_.yn(D9b,"yt-sponsorships-perks-list",{props:{data:_.ki}});_.yn(_.a(function(f){return _.O("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.O(_.g,{cond:function(){return f.data().image},
then:function(H){return _.O(_.Hn,{className:"ytwFantasyEmptyStateViewModelImage",data:H,ariaHidden:!0,alt:""})}}),_.O(_.iq,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return f.data().title}}),_.O(_.iq,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return f.data().subtitle}}),_.O(_.Jj,{data:function(){return f.data().primaryButton}},{buttonViewModel:function(H){return _.O(_.Wp,{data:H.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"Fe"),"ytw-fantasy-empty-state-view-model",{props:{data:_.ki}});var ooC;var noh=_.a(function(f){var H=f.data;var v=f.uniqueId;var t=f.overrides;f=_.sg(function(){var M,h=((M=H().timedAnimationData)==null?void 0:M.animationTiming)||[];return{uniqueId:v(),timings:h,experimentEnabled:h.length>0,enabled:h.length>0}},void 0,"hiuXI");
return _.O("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.O(Kl9,{settings:f},_.O(_.Jj,{data:function(){return H().buttonRenderer}},{buttonRenderer:function(M){return _.O(_.bv,{data:M.data,
buttonOverrides:t})}})))},"Ge");
noh.idomCompat=!0;_.yn(noh,"timed-animation-button-renderer",{props:{data:_.ki,uniqueId:_.ki,overrides:_.ki}});var ww=function(){var f=_.K.apply(this,arguments)||this;f.hideJoinButtonBeforeSubscribed=_.J("hide_join_button_before_subscribed");f.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return f};
_.e(ww,_.K);_.R=ww.prototype;_.R.hasShowDialogCommand=function(f){return!!_.U(f,B4v)};
_.R.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"}}}};
_.R.updateJoinButtonOverrides=function(){var f,H;(f=_.mF(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(H=f.polymerController)==null||H.set("overrides",this.joinButtonOverrides);if(f=_.mF(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))f.overrides=this.joinButtonOverrides};
_.R.handleButtonRefreshAction=function(f){if(f=_.U(f,BQb))this.set("data.membershipButton",f.membershipButton),this.notifyPath("data.membershipButton")};
_.R.onYtServiceRequestError=function(f){_.Xs(this.hostElement,f.detail.error.message)};
_.R.onKeydown=function(f){if(f.key==="Enter"){var H;(H=this.data)!=null&&H.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.R.handleUnsubscribeAction=function(){var f,H,v;((f=this.data)==null?void 0:(H=f.membershipButton)==null?void 0:(v=H.buttonRenderer)==null?void 0:v.style)==="STYLE_PRIMARY"&&_.mF(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.H7.Object.defineProperties(ww.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.subscriptionStateEntity)==null||!f.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var f,H=(f=this.data)==null?void 0:f.membershipButton,v;f=(H==null?void 0:H.buttonRenderer)||_.U(H==null?void 0:(v=H.timedAnimationButtonRenderer)==null?void 0:v.buttonRenderer,_.nv);return(f==null?void 0:f.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(f==null?void 0:f.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(f==null?void 0:f.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var f;if(this.hasShowDialogCommand((f=this.data)==null?void 0:f.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var f;if(this.hasShowDialogCommand((f=this.data)==null?void 0:f.navigationEndpoint))return"button"}}});
ww.prototype.onYtServiceRequestError=ww.prototype.onYtServiceRequestError;ww.prototype.updateJoinButtonOverrides=ww.prototype.updateJoinButtonOverrides;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],ww.prototype,"actionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ww.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],ww.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.B(_.um),_.N("design:type",Object)],ww.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],ww.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.zA),_.N("design:type",Object)],ww.prototype,"ironButtonState",void 0);_.E([_.F(),_.N("design:type",Object)],ww.prototype,"data",void 0);_.E([_.z("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.N("design:type",Object),_.N("design:paramtypes",[])],ww.prototype,"hideJoin",null);
_.E([_.F(),_.N("design:type",String)],ww.prototype,"subscribeKey",void 0);_.E([_.F({selectorArgs:["subscribeKey"],selector:Gze}),_.N("design:type",Object)],ww.prototype,"subscriptionStateEntity",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],ww.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.E([_.z("subscriptionStateEntity"),_.F({reflectToAttribute:!0}),_.N("design:type",Object),_.N("design:paramtypes",[])],ww.prototype,"subscribed",null);
_.E([_.z("subscribed","data.membershipButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],ww.prototype,"joinButtonOverrides",null);_.E([_.z("data.navigationEndpoint"),_.N("design:type",Object),_.N("design:paramtypes",[])],ww.prototype,"channelNameTabIndex",null);_.E([_.z("data.navigationEndpoint"),_.N("design:type",Object),_.N("design:paramtypes",[])],ww.prototype,"channelNameRole",null);
_.E([_.Zw("joinButtonOverrides"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ww.prototype,"updateJoinButtonOverrides",null);_.E([_.sE("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],ww.prototype,"onYtServiceRequestError",null);_.E([_.u({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],ww);
var pfn=_.$6()(ww,"ytd-video-owner-renderer",function(){if(ooC===void 0){var f=document.createElement("template");_.x(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);ooC=f}f=ooC;return f},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.yn(_.a(function(f){var H=f.data;var v;f=_.V(_.gp(!((v=_.Oz("yt-mini-app-is-theater-mode-enabled"))==null||!v),void 0,"CtFFDf"));var t=f.next().value,M=f.next().value;v=_.V(_.gp(!1,void 0,"pRgDfb"));var h=v.next().value,y=v.next().value;_.Kc(function(){var I=_.r9(window,PYv,function(){y(CY9())});
_.Dt(function(){BK(I)})});
var m;v=(m=_.t8().resolve(_.vh(hCC)))!=null?m:function(){return _.O("div",null)};
_.kF("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){M(!0);_.WH("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.kF("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){M(!1);_.WH("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
m={};f={};var W={};return _.O("mini-app-play-page-renderer",{class:_.S2("miniAppPlayPageRendererHost",(m.miniAppPlayPageRendererHostDetailsView=function(){return!t()},m))},_.O("div",{class:_.S2("miniAppPlayPageRendererGameContainer",(f.miniAppPlayPageRendererGameContainerDetailsView=function(){return!t()},f))},_.O(_.Jj,{data:function(){return H().containerViewModel}},{miniAppContainerViewModel:Lqn}),_.O(_.g,{cond:function(){return H().channel&&H().subscribeButton},
then:function(){var I={};return _.O("div",{class:_.S2("miniAppPlayPageRendererChannelContainer",(I.miniAppPlayPageRendererHideVisibility=function(){return h()},I))},_.O(_.Jj,{data:function(){return H().channel}},{videoOwnerRenderer:function(S){return _.O(pfn,{data:S.data})}}),_.O(_.Jj,{data:function(){return H().subscribeButton}},{subscribeButtonViewModel:function(S){return _.O(_.KX,{data:S.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.O(_.g,{cond:function(){return!t()&&H().description},
then:function(){var I={};return _.O("div",{class:_.S2("miniAppPlayPageRendererMiniAppDescriptionWrapper",(I.miniAppPlayPageRendererHideVisibility=function(){return h()},I))},_.O("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return H().description}))}})),_.O("div",{class:_.S2("miniAppPlayPageRendererPlayNextContainer",(W.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!t()},W.miniAppPlayPageRendererHideVisibility=function(){return h()},W))},_.O(_.Jj,{data:function(){return H().sectionList}},
{sectionListRenderer:v})))},"He"),"mini-app-play-page-renderer",{props:{data:_.ki}});var qp=function(){var f=_.K.apply(this,arguments)||this;f.isSearch=!1;f.isConstrainedList=!1;f.hasChipsBar=!1;f.inReplyPanel=!1;f.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"}};f.monitorScroll=!0;f.SCROLL_ANIMATION_DURATION_MS=300;f.nextContinuation={continuationType:"sectionListContinuation"};return f};
_.e(qp,_.K);_.R=qp.prototype;
_.R.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(f){switch(f.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:_.J("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.J("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.R.created=function(){var f=this;this.JSC$17016_scrollAnimation=new _.EO(function(H){f.hostElement.scrollTop=H})};
_.R.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.R.getItemsPath=function(){return"data.contents"};
_.R.replacePrimaryContent=function(f){this.set("data.contents",f)};
_.R.computeHasSortFilter=function(f){return!!f&&!!f.sortFilterSubMenuRenderer};
_.R.computeShouldScrollInPanel=function(f){var H;return!!(f==null?0:(H=f.scrollPaneStyle)==null?0:H.scrollable)};
_.R.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.WB(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.R.scrollToTop=function(){this.hostElement.scrollTop=0};
_.R.scrollToItemSection=function(f){if(f=this.getItemByIdentifier(f))f=this.getScrollPositionForItem(f),this.hostElement.scrollTop!==f&&this.JSC$17016_scrollAnimation.start(this.hostElement.scrollTop,f,this.SCROLL_ANIMATION_DURATION_MS)};
_.R.getItemByIdentifier=function(f){var H=this.contents.querySelectorAll("ytd-item-section-renderer");if(H&&H.length!==0){var v=Array.from(H).findIndex(function(t){return t.sectionIdentifier===f});
return H[v===-1?0:v]}};
_.R.getScrollPositionForItem=function(f){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===f)return 0;f=_.Cd(f).y+this.hostElement.scrollTop-_.Cd(this.hostElement).y;return Math.min(f,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.H7.Object.defineProperties(qp.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.targetId)==="browse-feedFEclips"}}});
qp.prototype.onScroll=qp.prototype.onScroll;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],qp.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],qp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.h3.YtLazyListBehavior),_.N("design:type",Object)],qp.prototype,"ytLazyListBehavior",void 0);_.E([_.B(_.N3.YtNextContinuationBehavior),_.N("design:type",Object)],qp.prototype,"ytNextContinuationBehavior",void 0);
_.E([_.B(_.lQa),_.N("design:type",Object)],qp.prototype,"ytBooleanLogicBehavior",void 0);_.E([_.B(_.E_),_.N("design:type",Object)],qp.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],qp.prototype,"data",void 0);_.E([_.F({value:2}),_.N("design:type",Number)],qp.prototype,"initialCount",void 0);_.E([_.F({value:!0}),_.N("design:type",Boolean)],qp.prototype,"autoFill",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.N("design:type",Boolean)],qp.prototype,"hasSortFilter",void 0);_.E([_.F({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.N("design:type",Boolean)],qp.prototype,"hideBottomSeparator",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.N("design:type",Boolean)],qp.prototype,"shouldScrollInPanel",void 0);
_.E([_.F(),_.N("design:type",Object)],qp.prototype,"isSearch",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],qp.prototype,"isConstrainedList",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],qp.prototype,"responsiveSizing",void 0);_.E([_.F(),_.N("design:type",Object)],qp.prototype,"hasChipsBar",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],qp.prototype,"pageSubtype",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],qp.prototype,"engagementPanel",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],qp.prototype,"liveChatEngagementPanel",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],qp.prototype,"inReplyPanel",void 0);_.E([_.lJ("#action-button"),_.N("design:type",HTMLElement)],qp.prototype,"actionButton",void 0);_.E([_.F(),_.N("design:type",Object)],qp.prototype,"scrollUpButtonData",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],qp.prototype,"engagementPanelDropdown",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],qp.prototype,"engagementPanelDialog",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],qp.prototype,"isClipList",null);_.E([_.lJ("#contents"),_.N("design:type",HTMLElement)],qp.prototype,"monitorScrollElement",void 0);_.E([_.lJ("#contents"),_.N("design:type",HTMLElement)],qp.prototype,"contents",void 0);
_.E([_.sE("scroll"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qp.prototype,"onScroll",null);_.E([_.u({is:"ytd-section-list-renderer",disableElementRegistration:!0})],qp);
var Qyv=_.$6()(qp,"ytd-section-list-renderer",function(){if(MRr===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);MRr=f}f=MRr;return f},{mode:1});var uqr;var aTg;var Px_;var GGC;var fe=function(){return _.K.apply(this,arguments)||this};
_.e(fe,_.K);fe.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
fe.prototype.onLikeButtonClick=function(f){f.stopPropagation();f.preventDefault()};
_.H7.Object.defineProperties(fe.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)!=null&&f.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)})}}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],fe.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],fe.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],fe.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],fe.prototype,"ytRendererStamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],fe.prototype,"data",void 0);
_.E([_.F({selectorArgs:["data.likeStatusEntityKey"],selector:am}),_.N("design:type",Object)],fe.prototype,"likeStatusEntity",void 0);_.E([_.z("data","likeStatusEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],fe.prototype,"likeButtonRenderer",null);_.E([_.u({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],fe);
_.G(fe,"ytd-slim-metadata-toggle-button-renderer",function(){if(GGC!==void 0)return GGC;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);
return GGC=f},{mode:1});var HY=function(){var f=_.K.apply(this,arguments)||this;f.minimizePipBreakages=_.J("web_pip_minimize_breakages");f.showEqualizer=_.J("web_enable_playlist_video_lockup_equalizer");f.watchColorUpdate=_.J("kevlar_watch_color_update");f.actionMap={};return f};
_.e(HY,_.K);_.R=HY.prototype;_.R.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"}}}};
_.R.computeEditableClass=function(f){return f&&f.menu?"editable":""};
_.R.computeSelected=function(f){return!(f==null||!f.selected)};
_.R.computeUseColorPalette=function(f){return!!((f==null?0:f.lightColorPalette)&&(f==null?0:f.darkColorPalette))};
_.R.computeLargerPlaylistThumbs=function(f,H){return _.J("web_enable_playlist_bigger_thumbnails")&&!H};
_.R.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.R.onYtServiceRequestSent=function(f,H){H.endpoint&&this.isHideEnclosingAction(H.endpoint)&&!this.selected&&b_n(_.EI(),this.data.videoId)};
_.R.isHideEnclosingAction=function(f){var H=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",f);f=this.get("likeEndpoint.status",f)==="INDIFFERENT";return H||f};
_.R.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.R.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.H7.Object.defineProperties(HY.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.J("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var f;return!!(this.withinMiniplayer&&((f=this.data)==null?0:f.actionButtons))}}});
HY.prototype.onYtServiceRequestSent=HY.prototype.onYtServiceRequestSent;HY.prototype.canReorderChanged=HY.prototype.canReorderChanged;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],HY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],HY.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],HY.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.A_),_.N("design:type",Object)],HY.prototype,"ytdLockupBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],HY.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],HY.prototype,"withinMiniplayer",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],HY.prototype,"minimizePipBreakages",void 0);_.E([_.F({computed:"computeSelected(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],HY.prototype,"selected",void 0);
_.E([_.F({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],HY.prototype,"useColorPalette",void 0);_.E([_.F({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.N("design:type",Boolean)],HY.prototype,"largerPlaylistThumbs",void 0);_.E([_.F(),_.N("design:type",Object)],HY.prototype,"showEqualizer",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],HY.prototype,"canReorder",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],HY.prototype,"touchPersistentDragHandle",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],HY.prototype,"handleIsHovered",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],HY.prototype,"watchColorUpdate",void 0);_.E([_.F(),_.N("design:type",String),_.N("design:paramtypes",[])],HY.prototype,"reorderIcon",null);
_.E([_.z("largerPlaylistThumbs"),_.N("design:type",Number),_.N("design:paramtypes",[])],HY.prototype,"thumbnailWidth",null);_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],HY.prototype,"showActionButtons",null);_.E([_.xV("canReorder"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HY.prototype,"canReorderChanged",null);
_.E([_.sE("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.ER]),_.N("design:returntype")],HY.prototype,"onYtServiceRequestSent",null);_.E([_.u({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],HY);
_.G(HY,"ytd-playlist-panel-video-renderer",function(){if(Px_!==void 0)return Px_;var f=document.createElement("template");_.x(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Px_=f},{mode:2});var vY=function(){return _.K.apply(this,arguments)||this};
_.e(vY,_.K);vY.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],vY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],vY.prototype,"data",void 0);_.E([_.u({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],vY);
_.G(vY,"ytd-playlist-panel-supported-items",function(){if(aTg!==void 0)return aTg;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return aTg=
f},{mode:1});GWH=!0;MOT("\\P{N}");var wXT;var CxZ=_.ZC("END_OF_PLAYLIST",void 0,"End of playlist"),EoT=_.ZC("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),t2=function(){var f=_.K.apply(this,arguments)||this;f.minimizePipBreakages=_.J("web_pip_minimize_breakages");f.updatedCoursePanel=_.J("move_three_dot_menu_to_playlist_panel_header_for_courses");f.hideHeaderText=!1;f.useColorPalette=!1;f.collapsed=!1;f.collapsedPreServerOverride="not_tracked";f.isHovered=!1;f.modernPanels=_.J("kevlar_watch_modern_panels");
f.expandLabel=_.ZC("MINIPLAYER_EXPAND_LABEL");f.collapseLabel=_.ZC("MINIPLAYER_COLLAPSE_LABEL");f.isFloating=!1;f.metaPanel=!1;f.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};f.currentIndex=void 0;return f};
_.e(t2,_.K);_.R=t2.prototype;
_.R.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"}}}};
_.R.created=function(){this.scrollThrottle=new _.Nl(this.onThrottledScroll,1E3,this)};
_.R.onMouseEnter=function(){this.isHovered=!0};
_.R.onMouseLeave=function(){this.isHovered=!1};
_.R.computeOverflowMenuData=function(f){return f&&f.menu?f.menu:null};
_.R.computeCollapsible=function(f){return!f};
_.R.computeHasPlaylistButtons=function(f){return!(!f||!f.playlistButtons)};
_.R.computeHasSeparateSaveButton=function(f){return!(!f||!f.saveButton)};
_.R.computeHasToolbarButton=function(f,H){return!(!f||!(H||f.saveButton||f.menu))};
_.R.computePlaylistType=function(f){if(f&&f.playlistId)return f.playlistId.substring(0,4)};
_.R.computeCanReorder=function(f){return f?f.playlistId&&f.playlistId.startsWith("TLPQ")?!0:!!f.isEditable&&!f.isInfinite:!1};
_.R.attached=function(){var f=this;try{_.t8().resolve(_.u3).setPlaylistComponent(this.hostElement)}catch(H){if(_.J("kevlar_park_on_playlist_token_killswitch"))throw H;_.PL().parkOrScheduleJob(function(){_.t8().resolve(_.u3).setPlaylistComponent(f.hostElement)},2,"ci")}_.VZ(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.R.detached=function(){_.yZ(this.hostElement)};
_.R.computeTrailingIcon=function(f,H,v){return v?H?"yt-icons:collapse":"yt-icons:close":H?"yt-icons:expand":_.J("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.R.computeIndexMessage=function(f,H){return HIs(f+1)+" / "+HIs(H)};
_.R.onRenderStamperFinished=function(){if(this.scrollForStampDom){var f=!0;this.isHovered&&(f=!1);if(this.collapsed||this.hidden)f=!1;f&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.R.collapseChanged=function(){var f=this;this.collapsed||(_.Vk(this.ytTaskEmitterBehavior.getTaskManager(),function(){f.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.R.hiddenChanged=function(){var f=this;this.hidden||_.Vk(this.ytTaskEmitterBehavior.getTaskManager(),function(){f.scrollToCurrentVideo()})};
_.R.setupReordering=function(){var f=_.mF(this.hostElement).querySelector("#items");Lrh?_.sAh(this.ytReorderableBehavior,f,f,"playlist-drag-handle"):_.sAh(this.ytReorderableBehavior,f,f)};
_.R.scrollToCurrentVideo=function(){var f=this;_.nN.addJob(function(){var H=_.mF(f.hostElement).querySelector("#items");if(H){H.style.setProperty("padding-bottom","");var v=_.mF(f.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(v){H=v.parentElement||_.Jh(document);var t=H||_.Jh(document);var M=_.Cd(v),h=_.Cd(t),y=_.WWh(t);if(t==_.Jh(document)){var m=M.x-t.scrollLeft;M=M.y-t.scrollTop}else m=M.x-h.x-y.left,M=M.y-h.y-y.top;v=yWZ(v);h=t.clientHeight-
v.height;y=t.scrollLeft;var W=t.scrollTop;y+=m-(t.clientWidth-v.width)/2;t=new _.al(y,W+(M-h/2));H.scrollLeft=t.x;H.scrollTop=t.y}}},8)};
_.R.dataChanged=function(){var f=this;_.jA_(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.qV(this,function(){_.Lb(f.ytTaskEmitterBehavior.getTaskManager(),function(){f.ytRendererBehavior.markDirty();f.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.R.onFullBleedPlayerChanged=function(){_.J("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.R.onFullscreenChanged=function(){_.J("web_watch_imax_theater_mode")||_.J("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.R.updateNowPlayingOverlay=function(){_.J("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.R.onPlaylistLockupNowPlaying=function(f,H){H&&(this.activeNowPlayingRenderer=H);this.updateNowPlayingOverlay()};
_.R.onScroll=function(){this.scrollThrottle.fire()};
_.R.onThrottledScroll=function(){var f=this;_.Lb(this.ytTaskEmitterBehavior.getTaskManager(),function(){f.ytRendererBehavior.markDirty()})};
_.R.onToggleExpanded=function(f){!this.collapsible||f&&(_.HB(f).tagName==="A"||_.w6(_.f2(f),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.R.setCollapsed=function(f){this.collapsible&&(this.collapsed=f,_.$E(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.R.handleCollapsedFromData=function(f){if(f){var H=f.playlistPanelCollapseState;H==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||H==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),H=H==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==H&&this.setCollapsed(H)):this.currentPlaylistId!==f.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(H=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==H&&this.setCollapsed(H),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=f.playlistId}};
_.R.handleDrop=function(f){var H=f.currDragItem;f=H.data.playlistSetVideoId;var v=_.Nr(H.parentNode.childNodes,H),t=void 0;v>0&&(t=H.parentNode.childNodes[v-1].data.playlistSetVideoId);H=_.EI();if(H.responsePlaylistData&&H.responsePlaylistData.contents){var M=mWR(f,H.responsePlaylistData);H.responsePlaylistData=(0,_.QA.unsafeClone)(H.responsePlaylistData);xrg(H.responsePlaylistData.contents,M,v);H.queueProxy?U3r(H.queueProxy,M,v,f,t):H.playlistProxy&&U3r(H.playlistProxy,M,v,f,t);_.NI(H,_.cL(H,H.response?
H.response.autoplayRenderer:void 0))}};
_.R.handleDarkModeChange=function(f){f!==this.isDarkTheme&&(this.isDarkTheme=f)};
_.R.colorPaletteChanged=function(){var f,H=((f=this.data)==null?void 0:f.contents)||[],v;f=_.V(H);for(H=f.next();!H.done;H=f.next()){H=H.value;var t=void 0;if((t=H.playlistPanelVideoRenderer)==null?0:t.selected){f=H.playlistPanelVideoRenderer;t=H=void 0;(v=this.isDarkTheme?(H=f)==null?void 0:H.darkColorPalette:(t=f)==null?void 0:t.lightColorPalette)&&_.r6(this.hostElement,v);break}}this.useColorPalette=!!v};
_.H7.Object.defineProperties(t2.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var f,H;return!((f=this.data)==null||!f.playlistId)&&!((H=this.data)==null||!H.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var f=_.t8().resolve(_.vh(_.u3)),H;if(((H=this.data)==null?0:H.contents)&&(f==null?0:f.hasAutoplayData())){var v;if(((v=this.playlistLoopStateEntity)==null?void 0:v.state)==="PLAYLIST_LOOP_STATE_ONE"){if(f=this.data.currentIndex,f!==void 0){var t,M;var h=(t=this.data.contents[f])==null?void 0:(M=t.playlistPanelVideoRenderer)==null?void 0:M.title}}else{var y,m=(y=_.U(f.getAutoplayEndpoint(),_.wI))==null?void 0:y.videoId,W,I;h=(W=this.data.contents.find(function(S){var d;
return((d=S.playlistPanelVideoRenderer)==null?void 0:d.videoId)===m}))==null?void 0:(I=W.playlistPanelVideoRenderer)==null?void 0:I.title}return h}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)!=null&&f.nextVideoLabel?this.nextVideoTitle?_.fG(this.data.nextVideoLabel)+":":CxZ:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var f;if(((f=this.data)==null?0:f.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.J("web_mix_long_byline_from_data"))return _.qO(EoT);var H;return(H=this.data)==null?void 0:H.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var f,H,v,t=(f=this.data)==null?void 0:(H=f.playlistButtons)==null?void 0:(v=H.menuRenderer)==null?void 0:v.topLevelButtons;if(t)for(f=_.V(t),H=f.next();!H.done;H=f.next())if(H=H.value,H.playlistLoopButtonRenderer)return H.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var f;return!!(this.collapsed&&((f=this.data)==null?0:f.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.J("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
t2.prototype.colorPaletteChanged=t2.prototype.colorPaletteChanged;t2.prototype.onPlaylistLockupNowPlaying=t2.prototype.onPlaylistLockupNowPlaying;t2.prototype.updateNowPlayingOverlay=t2.prototype.updateNowPlayingOverlay;t2.prototype.onFullscreenChanged=t2.prototype.onFullscreenChanged;t2.prototype.onFullBleedPlayerChanged=t2.prototype.onFullBleedPlayerChanged;t2.prototype.dataChanged=t2.prototype.dataChanged;t2.prototype.hiddenChanged=t2.prototype.hiddenChanged;t2.prototype.collapseChanged=t2.prototype.collapseChanged;
t2.prototype.onRenderStamperFinished=t2.prototype.onRenderStamperFinished;t2.prototype.onMouseLeave=t2.prototype.onMouseLeave;t2.prototype.onMouseEnter=t2.prototype.onMouseEnter;_.E([_.B(_.x3),_.N("design:type",Object)],t2.prototype,"ironResizableBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],t2.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],t2.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.B(SXb.YtPlaylistPanelBehavior),_.N("design:type",Object)],t2.prototype,"ytPlaylistPanelBehavior",void 0);_.E([_.B(_.Hp.YtTaskEmitterBehavior),_.N("design:type",Object)],t2.prototype,"ytTaskEmitterBehavior",void 0);_.E([_.B(_.Zah),_.N("design:type",Object)],t2.prototype,"ytReorderableBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],t2.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],t2.prototype,"ytdReduxBehavior",void 0);
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],t2.prototype,"actionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],t2.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],t2.prototype,"autoplayData",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],t2.prototype,"withinMiniplayer",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],t2.prototype,"minimizePipBreakages",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],t2.prototype,"updatedCoursePanel",void 0);_.E([_.F({computed:"setMenuData_(data)"}),_.N("design:type",Object)],t2.prototype,"menuRendererData",void 0);_.E([_.F({computed:"computeOverflowMenuData(data)"}),_.N("design:type",Object)],t2.prototype,"overflowMenuDataTopRow",void 0);_.E([_.F({computed:"computeOverflowMenuData(data)"}),_.N("design:type",Object)],t2.prototype,"overflowMenuData",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],t2.prototype,"hideHeaderText",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],t2.prototype,"useColorPalette",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.N("design:type",Boolean)],t2.prototype,"collapsible",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],t2.prototype,"collapsed",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],t2.prototype,"hidden",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.N("design:type",Boolean)],t2.prototype,"hasPlaylistButtons",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.N("design:type",Boolean)],t2.prototype,"hasSeparateSaveButton",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.N("design:type",Boolean)],t2.prototype,"hasToolbar",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.N("design:type",String)],t2.prototype,"playlistType",void 0);_.E([_.F(),_.N("design:type",Object)],t2.prototype,"isHovered",void 0);_.E([_.F({selectorArgs:["playlistLoopStateEntityKey"],selector:_.AiB}),_.N("design:type",Object)],t2.prototype,"playlistLoopStateEntity",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],t2.prototype,"modernPanels",void 0);_.E([_.F({value:56}),_.N("design:type",Number)],t2.prototype,"scrollMargin",void 0);_.E([_.F({computed:"computeCanReorder(data)"}),_.N("design:type",Boolean)],t2.prototype,"canReorder",void 0);_.E([_.F(),_.N("design:type",Object)],t2.prototype,"expandLabel",void 0);_.E([_.F(),_.N("design:type",Object)],t2.prototype,"collapseLabel",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],t2.prototype,"isFloating",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],t2.prototype,"metaPanel",void 0);_.E([_.F({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.N("design:type",String)],t2.prototype,"trailingIcon",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],t2.prototype,"isDarkTheme",void 0);
_.E([_.F({selector:_.a5}),_.N("design:type",Boolean)],t2.prototype,"miniplayerIsActive",void 0);_.E([_.F({selector:function(f){return f.watch.playerState}}),
_.N("design:type",Number)],t2.prototype,"playerState",void 0);_.E([_.F({selector:_.pV}),_.N("design:type",Boolean)],t2.prototype,"isFullscreen",void 0);_.E([_.F({selector:_.nV}),_.N("design:type",Boolean)],t2.prototype,"isTheaterMode",void 0);_.E([_.F(),_.N("design:type",Object)],t2.prototype,"activeNowPlayingRenderer",void 0);_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],t2.prototype,"moveThreeDotMenuToTopRow",null);
_.E([_.z("data","autoplayData","playlistLoopStateEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],t2.prototype,"nextVideoTitle",null);_.E([_.z("data","nextVideoTitle"),_.N("design:type",String),_.N("design:paramtypes",[])],t2.prototype,"nextVideoLabel",null);_.E([_.z("collapsed"),_.N("design:type",String),_.N("design:paramtypes",[])],t2.prototype,"buttonAriaLabel",null);
_.E([_.z("data","playlistId","longBylineText"),_.N("design:type",Object),_.N("design:paramtypes",[])],t2.prototype,"mixLongByLine",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],t2.prototype,"playlistLoopStateEntityKey",null);_.E([_.sE("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],t2.prototype,"onMouseEnter",null);
_.E([_.sE("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],t2.prototype,"onMouseLeave",null);_.E([_.F({reflectToAttribute:!0}),_.z("data","collapsed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],t2.prototype,"showNextVideoHeader",null);_.E([_.sE("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],t2.prototype,"onRenderStamperFinished",null);
_.E([_.Zw("collapsed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],t2.prototype,"collapseChanged",null);_.E([_.Zw("hidden"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],t2.prototype,"hiddenChanged",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],t2.prototype,"dataChanged",null);
_.E([_.z("isTheaterMode","isFullscreen"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],t2.prototype,"isFullBleedPlayer",null);_.E([_.Zw("isTheaterMode","isFullscreen"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],t2.prototype,"onFullBleedPlayerChanged",null);_.E([_.Zw("isFullscreen"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],t2.prototype,"onFullscreenChanged",null);
_.E([_.Zw("playerState","miniplayerIsActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],t2.prototype,"updateNowPlayingOverlay",null);_.E([_.sE("yt-playlist-lockup-now-playing-active"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],t2.prototype,"onPlaylistLockupNowPlaying",null);
_.E([_.Zw("data","isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],t2.prototype,"colorPaletteChanged",null);_.E([_.u({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],t2);
_.NWa=_.$6()(t2,"ytd-playlist-panel-renderer",function(){if(uqr===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);uqr=f}f=uqr;return f},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var cva;var Ma=function(){var f=_.K.apply(this,arguments)||this;f.modern=_.J("web_button_rework");return f};
_.e(Ma,_.K);Ma.prototype.computeShouldButtonBeVertical=function(f,H){return f||H};
Ma.prototype.onYtServiceRequestSent=function(f,H){(f=_.U(H.endpoint,_.np))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.lF("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:f.status})):this.handleLikeEndpoint(f))};
Ma.prototype.computelikeStatusEntityKey=function(f){return f==null?void 0:f.likeStatusEntityKey};
Ma.prototype.handleLikeEndpoint=function(f){f.status==="LIKE"?this.JSC$17041_ytdDislikeToggleButtonRenderer.toggle(!1):f.status==="DISLIKE"?this.JSC$17041_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$17041_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$17041_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.H7.Object.defineProperties(Ma.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var f;return h1H(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(f=this.likeStatusEntity)==null?void 0:f.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var f;if(this.data&&((f=this.data)==null||!f.hideDislikeButton)){var H;return h1H(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(H=this.likeStatusEntity)==null?void 0:H.likeStatus)}}}});
Ma.prototype.onYtServiceRequestSent=Ma.prototype.onYtServiceRequestSent;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Ma.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],Ma.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Ma.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ma.prototype,"vertical",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],Ma.prototype,"textTransform",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ma.prototype,"useShortsIcon",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ma.prototype,"underIconLabel",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Ma.prototype,"modern",void 0);_.E([_.F({value:"left"}),_.N("design:type",String)],Ma.prototype,"buttonTooltipPosition",void 0);
_.E([_.F(),_.N("design:type",Object)],Ma.prototype,"overrides",void 0);_.E([_.lJ("#like-button"),_.N("design:type",Object)],Ma.prototype,"JSC$17041_ytdLikeToggleButtonRenderer",void 0);_.E([_.lJ("#dislike-button"),_.N("design:type",Object)],Ma.prototype,"JSC$17041_ytdDislikeToggleButtonRenderer",void 0);_.E([_.z("data","likeStatusEntity.likeStatus","useShortsIcon"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ma.prototype,"likeButton",null);
_.E([_.z("data","likeStatusEntity.likeStatus","useShortsIcon"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ma.prototype,"dislikeButton",null);_.E([_.F({computed:"computelikeStatusEntityKey(data)"}),_.N("design:type",String)],Ma.prototype,"likeStatusEntityKey",void 0);_.E([_.F({selectorArgs:["likeStatusEntityKey"],selector:am}),_.N("design:type",Object)],Ma.prototype,"likeStatusEntity",void 0);
_.E([_.sE("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.ER]),_.N("design:returntype")],Ma.prototype,"onYtServiceRequestSent",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],Ma);
var Xf_=_.$6()(Ma,"ytd-like-button-renderer",function(){if(cva===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);cva=f}f=cva;return f},{mode:1});_.AvM={};
_.AvM.YtConditionalRendererBehavior=[_.k.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(f,H){var v=this,t,M;return _.Y(function(h){switch(h.nextAddress){case 1:if(!H)return v.hidden=!0,v.showSpinner=!1,h.return();if((t=f)==null?0:(M=t.visibilityCondition)==null?0:M.mode)switch(f.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return h.jumpTo(5);default:return h.jumpTo(6)}v.showSpinner=
!1;v.hidden=!0;return h.yield(v.shouldShow_(f),4);case 4:v.hidden=!h.yieldResult;h.jumpTo(0);break;case 5:return h.yield(v.shouldShow_(f),8);case 8:v.showSpinner=h.yieldResult;v.hidden=!1;h.jumpTo(0);break;case 6:return v.showSpinner=!1,h.yield(v.shouldShow_(f),9);case 9:v.hidden=!h.yieldResult,_.Bj(h)}})},
shouldShow_:function(f){return f&&f.supportedDatas&&f.supportedDatas.rendererVisibilityConditionData&&f.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(f.supportedDatas.rendererVisibilityConditionData.showIf):f&&f.visibilityCondition&&f.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(f.visibilityCondition.showIf):f&&f.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(f.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(f){switch(f){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(f){switch(f){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var f=_.mb(this.hostElement,"yt-get-mdx-status");return f.length==1&&f[0].connected},
isLocationPermissionGranted_:function(){var f;return _.Y(function(H){return H.nextAddress==1?navigator.permissions?H.yield(navigator.permissions.query({name:"geolocation"}),3):H.jumpTo(2):H.nextAddress!=2?(f=H.yieldResult,H.return(Promise.resolve(f.state==="granted"))):H.return(Promise.resolve(!1))})}}];var b$n=function(f,H){H=H===void 0?{}:H;var v=function(t){var M=document.createElement(f),h;var y=(h=M.polymerController)!=null?h:M;h$s(M,y,t,H);return M};
v.debugName=f+" (CoW wrapped)";return v}("yt-icon",{callbackProps:["onKeydown"]}),i$_=_.J("kevlar_use_wil_icons")?_.a(function(f){var H=f.icon;
var v=f.active;var t=f.className;var M=f.style;var h=f.dataSelected;var y=f.dataDisabled;var m=f.role;var W=f.themeOverride;var I=f.animateIcon;var S=f.ariaHidden;var d=f.ariaExpanded;var Z=f.ariaLabel;var l=f.tabindex;var L=f.id;var r=f.iconFilter;var n=f.onKeydown;var Q=function(){var c=H==null?void 0:H(),A=null,X=void 0;c&&(c=iqr(c),c=nbH(c),c.length&&(A=c[1],X=c[0]));return{iconName:A,iconSetName:X}},C=function(){return ktv(Q().iconName,v==null?void 0:v(),void 0,void 0,Q().iconSetName,_.t8().resolve(_.d9))},
w=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:r==null?void 0:r()}};
return _.O(_.g,{cond:I,then:function(){return _.O(b$n,{icon:H,active:v,className:t,style:M,dataSelected:h,dataDisabled:y,role:m,themeOverride:W,ariaHidden:S,ariaExpanded:d,ariaLabel:Z,tabindex:l,id:L,iconFilter:r,onKeydown:n})},
else:function(){return _.O(_.g,{cond:C,then:function(c){return _.O("span",{class:_.S2("ytIconWrapperHost",t),role:m,"aria-label":Z,"aria-hidden":S,tabindex:function(){return isNaN(Number(l==null?void 0:l()))?void 0:Number(l==null?void 0:l())},
id:L,style:M,"on:keydown":_.d6(function(A){return void(n==null?void 0:n(A))})},_.O(HDe,{data:c,
options:w}))}})}})},"Ie"):b$n;var kGa=function(f){var H=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];AVb();_.qJ("ytglobal.ytUtilActivityCallback_",function(){_.$E(f,"yt-user-activity")});
new t7(function(){return H.JSC$17057_onMouseMove});
document.addEventListener("scroll",function(){return H.onScroll});
window.addEventListener("resize",function(){return H.onResize})},TWg=function(f,H,v){H in f.eventJobIds||(v=_.Zb().addLowPriorityJob(function(){_.M$();
delete f.eventJobIds[H]},v),f.eventJobIds[H]=v)};
kGa.prototype.onScroll=function(f){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):f.target===document&&TWg(this,"scroll",200)};
kGa.prototype.onResize=function(){TWg(this,"resize",200)};
kGa.prototype.JSC$17057_onMouseMove=function(){TWg(this,"mousemove",100)};
_.v5=function(f){f.scrollEventsToIgnore+=1;f.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){f.scrollEventsToIgnore--},500))};var wfg=function(f){this.element=f;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
wfg.prototype.showFeedbackDialog=function(f,H,v,t){var M=qAr();if(!M)return!1;var h=SCE();h.productId=M;H&&(h.flow="submit",h.report={description:H});v&&(qAr()==="59"?h.callback=_.Cc(function(){_.Kb("userFeedbackEvent",{});v()}):h.callback=_.Cc(v));
h.bucket=t||_.a8("GOOGLE_FEEDBACK_BUCKET","Other");fZH(h);f=HEM(this,"GFEEDBACK",f);try{_.S$a(h,f)}catch(y){return _.Ge(y),!1}return!0};
wfg.prototype.showHelpDialog=function(f,H,v){var t=this,M=qAr();if(!M)return!1;var h={helpCenterPath:"/youtube",productData:HEM(this,"GUIDED_HELP",v)};fZH(h);var y=SCE();y.context=f||h.productData.context||"default";y.defaultHelpArticleId=H;y.enableSendFeedback=!0;(_.ES("gapi.load")||function(m,W){return W()})("client",function(){try{var m=El9(M,h);
if(_.J("web_always_load_chat_support")&&!t.chatSupportLoaded)try{m.JSC$9966_loadChatSupport(y),t.chatSupportLoaded=!0}catch(W){}m.startHelp(y)}catch(W){_.Ge(W)}})};
var qAr=function(){var f=_.a8("GOOGLE_FEEDBACK_PRODUCT_ID");f||_.Ge(Error("ei"));return f},fZH=function(f){f&&(f.locale=_.J("kevlar_help_use_locale")?_.a8("INNERTUBE_CONTEXT_HL","en"):_.a8("HTML_LANG","en"))},HEM=function(f,H,v){var t=f.productData;
delete t.origin;t.device=_.jE();var M;a:{if(M=document.createElement("canvas")){var h=M.getContext("experimental-webgl",{stencil:!0});if(h){var y=h.getExtension("WEBGL_debug_renderer_info");if(y){M=h.getParameter(y.UNMASKED_RENDERER_WEBGL);break a}}if(h=M.getContext("webgl")){M=h.getParameter(h.RENDERER);break a}}M=null}t.gpu=M;t.isSDC=!!_.a8("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(M=_.a8("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.QA.extend(t,M);_.gqR(H,t);_.Iib(t);(f=_.$E(f.element,"yt-get-autonav-pause-debug-state"))&&
f.length&&(t.autonav_pause_state=f[0]);f=_.Ld();t.browser_resolution=f.width+"\u00d7"+f.height+"@"+(window.devicePixelRatio||1)+"x";v&&_.QA.extend(t,v);return t};
wfg.prototype.resetProductData=function(){this.productData={}};var vNr=function(f){this.feedbackManager=new wfg(f)};
vNr.prototype.showFeedbackDialog=function(f,H,v,t){return this.feedbackManager.showFeedbackDialog(f,H,v,t)};
vNr.prototype.showHelpDialog=function(f,H,v){return this.feedbackManager.showHelpDialog(f,H,v)};var tLC=function(){this.baseUrl="";this.aTag=document.createElement("a")},UGn=function(f,H,v){v=v===void 0?{}:v;
v.pbj||(v.pbj=1);v=_.rjR(H,v);f.baseUrl&&v&&!_.Te(v)[1]&&!_.wu(v)&&(H=f.baseUrl,Yv(H,"/")&&(H=H.slice(0,-1)),_.VR(v,"/")&&(v=v.slice(1)),v=H+"/"+v);AD(f.aTag,_.Pv(v||""));return f.aTag.href};
tLC.prototype.fetchData=function(f){return _.y6R(f)};
tLC.prototype.postData=function(f,H){var v={method:"POST"};if(H){for(var t=_.V(Object.keys(H)),M=t.next();!M.done;M=t.next()){M=M.value;var h=H[M];_.vo(h)&&(H[M]=JSON.stringify(h))}v.postParams=H}return _.y6R(f,v)};
_.eNr=function(f,H,v,t,M){f=UGn(f,H,v);if(!f)throw t=Error("fi"),Object.assign(t,{params:H}),t;return _.y6R(f,M,t)};
tLC.prototype.requestDataForServiceEndpoint=function(f,H){if(_.U(f,_.nwB))return this.fetchData("/getAccountSwitcherEndpoint");H=H||{};var v=_.U(f,Xdg);v?H.se=v.base64EncodedServiceEndpoint:H.sej=JSON.stringify(f);(v=_.uy())&&_.J("enable_service_ajax_csn")&&(H.csn=v);H.theme=_.o9();_.U(f,DbR)&&_.a8("DELEGATION_CONTEXT")&&(H.delegation_context=JSON.stringify(_.a8("DELEGATION_CONTEXT")));v=null;for(var t in f)if(Yv(t,"Endpoint")||Yv(t,"Command")){v=t;break}if(!v){var M=Error("gi");Object.assign(M,{params:f});
_.B3H(M,"WARNING");return new _.IO(function(y,m){m(M)})}t={name:v};
var h;(v=(h=_.U(f,_.dj))==null?void 0:h.signal)&&(t.signal=v);(h=_.bZ(window.location.href))&&h.internalcountrycode&&(t.internalcountrycode=h.internalcountrycode);h="/service_ajax";_.J("debug_forward_web_query_parameters")&&(h=_.Njg(h,window.location.search));h=_.kk(h,t);f.clickTrackingParams&&_.vV(h,{itct:f.clickTrackingParams});return this.postData(h,H)};_.MLH=new _.iN("GFEEDBACK_TOKEN");var hy9;var Ry9;var VLZ;var y5r;var h2=function(){var f=_.K.apply(this,arguments)||this;f.compact=!1;f.dismissButtonDisabled=!1;return f};
_.e(h2,_.K);h2.prototype.computeHasIcon_=function(f){return!!f};
h2.prototype.isSignInIcon_=function(f){return f=="yt-icons:prompted_sign_in"};
h2.prototype.onDismissButtonClick=function(){var f;this.data.disableOnClick&&!this.dismissButtonDisabled&&(f=this.data.dismissButton)!=null&&f.buttonRenderer&&(this.dismissButtonDisabled=!0)};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],h2.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.AvM.YtConditionalRendererBehavior),_.N("design:type",Object)],h2.prototype,"ytConditionalRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],h2.prototype,"data",void 0);_.E([_.F({computed:"computeIcon_(data.icon)"}),_.N("design:type",Object)],h2.prototype,"icon_",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.N("design:type",Boolean)],h2.prototype,"hasIcon_",void 0);_.E([_.F({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.N("design:type",Boolean)],h2.prototype,"signInIcon_",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],h2.prototype,"compact",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],h2.prototype,"dismissButtonDisabled",void 0);
_.E([_.GW({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],h2);
_.G(h2,"yt-player-error-message-renderer",function(){if(y5r===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;VLZ===void 0&&(VLZ=document.createElement("template"));var t=VLZ;v.call(H,t.content.cloneNode(!0),f.content.firstChild);y5r=f}f=y5r;return f},{mode:2});var YQM;var mKZ;var Rz=function(){return _.K.apply(this,arguments)||this};
_.e(Rz,_.K);Rz.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Rz.prototype.computeIcon_=function(f){return f?"yt-icons:"+f.iconType.toLowerCase():"error_outline"};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Rz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Rz.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Rz.prototype,"data",void 0);_.E([_.F({computed:"computeIcon_(data.icon)"}),_.N("design:type",Object)],Rz.prototype,"icon_",void 0);_.E([_.GW({is:"yt-player-kav-renderer",disableElementRegistration:!0})],Rz);
_.G(Rz,"yt-player-kav-renderer",function(){if(mKZ===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;YQM===void 0&&(YQM=document.createElement("template"));var t=YQM;v.call(H,t.content.cloneNode(!0),f.content.firstChild);mKZ=f}f=mKZ;return f},{mode:2});var sg5=_.EH(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.yn(_.a(function(f){var H=_.TN("div"),v=_.V(_.gp(0,void 0,"yt0wE")),t=v.next().value,M=v.next().value;v=_.V(_.gp(null,void 0,"CnFp5"));var h=v.next().value,y=v.next().value;_.Kc(function(){ZIR(H.value,M,y);H.value.scrollIntoView()});
v=J6B.bind(null,f.data,t);vb("resize",function(){var m=h();if(t()===1&&m!==null){var W;(W=window.grecaptcha)==null||W.reset(m)}});
return _.O("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.O("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.O("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var m,W;return(m=f.data().accessibility)==null?void 0:(W=m.accessibilityData)==null?void 0:W.label}),_.O(_.iq,{text:v,
className:_.S2("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.O("div",{el:H,class:"ytwPlayerCaptchaViewModelGridItem"})))},"Je"),"yt-player-captcha-view-model",{props:{data:_.Rm}});var liR=!1;_.$Kg=_.a(function(f){var H=f.data;return _.O("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.O(_.g,{cond:function(){return H().icon},
then:function(v){return _.O("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.O(_.Hn,{data:v,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.O(_.g,{cond:function(){return H().title},
then:function(v){return _.O("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.O(_.iq,{text:v}))}}),_.O(_.g,{cond:function(){return H().description},
then:function(v){return _.O("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.O(_.iq,{text:v}))}}),_.O(_.Jj,{data:function(){return H().primaryButton}},{buttonViewModel:function(v){return _.O(_.Wp,{data:v.data,
className:"interstitialViewModelFlexItem"})}}),_.O(_.Jj,{data:function(){return H().secondaryButton}},{buttonViewModel:function(v){return _.O(_.Wp,{data:v.data,
className:"interstitialViewModelFlexItem"})}}))},"Ke");
_.$Kg.idomCompat=!0;var W8h=_.a(function(f){var H=f.data;_.ac();return _.O("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.O("div",{class:"playerInterstitialRendererScrim"},_.O(_.Jj,{data:function(){return H().content}},{interstitialViewModel:_.$Kg})))},"Le");
W8h.idomCompat=!0;_.yn(W8h,"yt-player-interstitial-renderer",{props:{data:_.ki}});var Vo=function(){var f=_.K.apply(this,arguments)||this;f.noBackground=!1;f.compact=!1;f.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return f};
_.e(Vo,_.K);Vo.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"}}}};
Vo.prototype.onUpdatePlayerErrorMessageCommand_=function(f){if(_.U(f,hYo)){var H;if(f=(H=_.U(f,hYo))==null?void 0:H.newPlayerErrorMessageRenderer)this.data=f}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Vo.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Vo.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Vo.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Vo.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],Vo.prototype,"status",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Vo.prototype,"noBackground",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Vo.prototype,"compact",void 0);_.E([_.GW({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],Vo);
var OEh=_.$6()(Vo,"yt-playability-error-supported-renderers",function(){if(Ry9===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;hy9===void 0&&(hy9=document.createElement("template"));var t=hy9;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Ry9=f}f=Ry9;return f},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var U0R=void 0,Lt5=void 0;var z1g=new BAv;var gNh=function(f){this.store=f;this.zIe=new _.rxg},hCH=function(f,H,v){var t,M;
if(!(M=((t=H.playabilityStatus)==null?void 0:t.status)!=="OK")){f=f.store;var h;M=H.offlineState&&((h=H.videoDetails)==null?0:h.videoId)?_.J("enable_pl_r_c_cd")?R4r(f.getState().entities,H.videoDetails.videoId):!!oPR(f.getState().entities,H.videoDetails.videoId):!1}if(M)return!0;M=oq_(H);if(M===1){if(_.J("ab_v_vid_sig")){var y,m=(y=H.videoDetails)==null?void 0:y.videoId;if(!m||!v||m!==v){var W;H=new _.e$("282054944_vid",{prQ:v,xhJ:(W=H.videoDetails)==null?void 0:W.videoId});_.oO(H)}}return!0}XGE=
0;var I,S;W=(m=H.auxiliaryUi)==null?void 0:(I=m.messageRenderers)==null?void 0:(S=I.bkaEnforcementMessageViewModel)==null?void 0:S.displayType;if(M!==3&&(W==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||W==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;W={reason:_.hd(_.ZC("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.J("ks_something_wrong_learn_more")?wzB("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.hd(_.ZC("LEARN_MORE",void 0,"Learn more")),navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"//support.google.com/youtube/?p=player_error1#zippy=%2Cupdate-your-browser",webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"//support.google.com/youtube/?p=player_error1#zippy=%2Cupdate-your-browser"}}}},subreason:_.hd("282054944")};IZH(H,{playerErrorMessageRenderer:W});return!1},RCE=function(f,H){if(YsT(H)){_.Jt(1,!0);
var v=(v=YsT(H))&&_.e13()?v:void 0;v?(IZH(H,{enforcementMessageViewModel:v}),f.zIe.increment("IN_PLAYER"),_.Jt(5)):(f.zIe.increment("SKIP_DISPLAY"),_.Jt(2))}},IZH=function(f,H){f.playabilityStatus=Object.assign({},f.playabilityStatus,{status:"ERROR",
errorScreen:H});f.videoDetails=void 0};
gNh.prototype.handleResponse=function(f,H){if(f.playabilityStatus){var v,t,M,h=(H==null?void 0:(v=H.innerTubeRequest)==null?void 0:v.videoId)||(H==null?void 0:(t=H.innerTubeRequest)==null?void 0:(M=t.playerRequest)==null?void 0:M.videoId);hCH(this,f,h)&&RCE(this,f)}};
gNh[bN]=[qi];var tRb=new _.iN("ADBLOCK_DETECTION_SERVICE_TOKEN");var Ew=function(f){this.mj0=f};
Ew.prototype.bindInnertubeChallengeFetcher=function(f){this.mj0.bicf(f)};
Ew.prototype.registerChallengeFetchedCallback=function(f){this.mj0.bcr(f)};
Ew.prototype.getLatestChallengeResponse=function(){return this.mj0.blc()};var SQZ;SQZ=_.EH(["https://static.doubleclick.net/instream/ad_status.js"]);_.dKH=_.gr(SQZ);var J5H;_.yo=function(f,H,v){var t=this;this.network=f;this.options=H;this.networkStatusManager=v;this.wc=null;if(H.useBotguardEverywhere){var M=new _.dZ;this.wc=M.promise;_.Mr.ytAtRC&&_.LT(_.nN,function(){var h,y;return _.Y(function(m){if(m.nextAddress==1){if(!_.Mr.ytAtRC)return m.return();h=jbg(null);return m.yield(t.av(h),2)}y=m.yieldResult;_.Mr.ytAtRC&&_.Mr.ytAtRC(JSON.stringify(y));_.Bj(m)})});
aiT().then(function(h){var y,m,W,I;return _.Y(function(S){if(S.nextAddress==1)return h.bindInnertubeChallengeFetcher(function(d){return t.av(jbg(d))}),S.yield(LZb(),2);
y=S.yieldResult;m=h.getLatestChallengeResponse();W=m.challenge;if(!W)throw Error("hi");I={challenge:W,yd:Cp(W),vm:y,bgChallenge:new Ps};M.resolve(I);h.registerChallengeFetchedCallback(function(d){d=d.challenge;if(!d)throw Error("ii");d={challenge:d,yd:Cp(d),vm:y,bgChallenge:new Ps};t.wc=Promise.resolve(d)});
_.Bj(S)})})}else H.preload&&sbh(this,new Promise(function(h){_.Lb(_.nN,function(){h(ZEh(t))},0)}))};
J5H=function(f){var H={preload:!0,useBotguardEverywhere:!0},v=!1;if(typeof H==="boolean")var t={preload:H};else typeof H==="undefined"?t={preload:!0}:(t=H,v=!!H.wBW);H=v?void 0:new _.Aa;_.yo.instance=new _.yo(f,t,H);return _.yo.instance};
_.yo.prototype.nOA=function(){var f=this;return _.Y(function(H){return H.nextAddress==1?H.yield(Promise.race([f.wc,null]),2):H.return(!!H.yieldResult)})};
_.yo.prototype.yV0=function(f,H,v){var t=this,M,h,y;return _.Y(function(m){t.wc===null&&sbh(t,ZEh(t));M=!1;h={};y=function(){var W,I,S;return _.Y(function(d){switch(d.nextAddress){case 1:return d.yield(t.wc,2);case 2:W=d.yieldResult;h.challenge=W.challenge;if(!W.vm){"c1a"in W.yd&&(h.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");d.jumpTo(3);break}I=Object.assign({},{c:W.challenge,e:f},H);_.Zc(d,4);M=!0;return d.yield(W.vm.snapshot({yQ:I}),6);case 6:(S=d.yieldResult)?h.webResponse=S:h.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.ch(d,3);break;case 4:_.xu(d),h.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(f==="ENGAGEMENT_TYPE_PLAYBACK"){var Z=W.yd,l={};if(Z.c6a){var L=Number(_.a8("DCLKSTAT",0));l.reportingStatus=String(Number(Z.c)^(isNaN(L)?0:L))}Z.c6b&&(l.broadSpectrumDetectionResult=String(Number(Z.c)^Number(_.a8("CATSTAT",0))));h.adblockReporting=l}return d.return(h)}})};
return m.return(Promise.race([y(),lZ9(v,function(){var W=Object.assign({},h);M&&(W.error="ATTESTATION_ERROR_VM_TIMEOUT");return W})]))})};
var jbg=function(f){var H={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};f&&(H.interpreterHash=f);return H},ZEh=function(f,H){H=H===void 0?0:H;
var v,t,M,h,y,m,W,I,S,d,Z,l;return _.Y(function(L){switch(L.nextAddress){case 1:v=jbg(KSh().afo);if(_.J("att_fet_ks"))return _.Zc(L,7),L.yield(f.av(v),9);_.Zc(L,4);return L.yield(UKC(f,v),6);case 6:y=L.yieldResult;M=y.jza;h=y.hwg;t=y;_.ch(L,3);break;case 4:return _.xu(L),_.pb(Error("ji`"+H)),eyM(f,864E5),L.return({challenge:"",yd:{},vm:void 0,bgChallenge:void 0});case 9:t=L.yieldResult;if(!t)throw Error("ki");if(!t.challenge)throw Error("li");M=t.challenge;h=Cp(M);if("c1a"in h&&(!t.bgChallenge||!t.bgChallenge.program))throw Error("mi");
_.ch(L,3);break;case 7:m=_.xu(L);_.pb(m);H++;if(H>=5)return _.pb(Error("ji`"+H)),eyM(f,864E5),L.return({challenge:"",yd:{},vm:void 0,bgChallenge:void 0});W=1E3*Math.pow(2,H-1)+Math.random()*1E3;return L.return(new Promise(function(r){_.Lb(_.nN,function(){r(ZEh(f,H))},W)}));
case 3:I=uRB(h);eyM(f,I*1E3);S=void 0;if(!("c1a"in h&&t.bgChallenge)){L.jumpTo(10);break}d=Qgr(t.bgChallenge);_.Zc(L,11);return L.yield(oOC(KSh(),d),13);case 13:_.ch(L,12);break;case 11:return Z=_.xu(L),_.pb(Z),L.return({challenge:M,yd:h,vm:S,bgChallenge:d});case 12:return _.Zc(L,14),S=new _.zU({challenge:d,uA0:{ia:"aGIf"}}),L.yield(S.vHj,16);case 16:_.ch(L,10);break;case 14:l=_.xu(L),_.pb(l),S=void 0;case 10:return L.return({challenge:M,yd:h,vm:S,bgChallenge:d})}})};
_.yo.prototype.av=function(f){var H=this,v;return _.Y(function(t){v=H.networkStatusManager;if(!v||v.isNetworkAvailable())return t.return(H.network.av(f));_.PV("att_pna",void 0,"attestation_challenge_fetch");return t.return(new Promise(function(M){v.listenOnce("publicytnetworkstatus-online",function(){H.network.av(f).then(M)})}))})};
var L8g=function(f){if(!f)throw Error("ki");if(!f.challenge)throw Error("li");var H=f.challenge,v=Cp(H);if("c1a"in v&&(!f.bgChallenge||!f.bgChallenge.program))throw Error("mi");return Object.assign({},f,{jza:H,hwg:v})},UKC=function(f,H){var v,t,M,h,y;
return _.Y(function(m){switch(m.nextAddress){case 1:v=void 0,t=0,M={};case 2:if(!(t<5)){m.jumpTo(4);break}if(!(t>0)){m.jumpTo(5);break}M.cLe=1E3*Math.pow(2,t-1)+Math.random()*1E3;return m.yield(new Promise(function(W){return function(I){_.Lb(_.nN,function(){I(void 0)},W.cLe)}}(M)),5);
case 5:return _.Zc(m,7),m.yield(f.av(H),9);case 9:return h=m.yieldResult,m.return(L8g(h));case 7:v=y=_.xu(m),y instanceof Error&&_.pb(y);case 8:t++;M={cLe:void 0};m.jumpTo(2);break;case 4:throw v;}})},sbh=function(f,H){f.wc=H},xKh=function(f){var H,v,t;
return _.Y(function(M){if(M.nextAddress==1)return M.yield(Promise.race([f.wc,null]),2);H=M.yieldResult;var h=ZEh(f);f.wc=h;(v=H)==null||(t=v.vm)==null||t.dispose();_.Bj(M)})},eyM=function(f,H){var v=Date.now()+H,t=function(){var M;
return _.Y(function(h){M=v-Date.now();return M<1E3?h.yield(xKh(f),0):(_.Lb(_.nN,t,Math.min(M,6E4)),h.jumpTo(0))})};
t()},lZ9=function(f,H){return new Promise(function(v){_.Lb(_.nN,function(){v(H())},f)})};var Bba=function(){};
Bba.prototype.processContext=function(f){var H=_.yo.instance;if(!H)return _.Xd();var v=c6R(f);return v?new cd(H.yV0(v,Crb(f),500).then(function(t){var M;(f==null?0:(M=f.innerTubeRequest)==null?0:M.context)||(f.innerTubeRequest.context={});M=f.innerTubeRequest.context;M.request||(M.request={});M.request.attestationResponseData=t})):_.Xd()};var zyh=function(f){this.innertubeTransportService=f};
zyh.prototype.av=function(f){_.PV("att_fsr",void 0,"attestation_challenge_fetch");return _.Q8(this.innertubeTransportService,f,_.tt(_.V5a)).then(function(H){_.PV("att_frr",void 0,"attestation_challenge_fetch");return H})};_.F8v=function(f){this.innertubeTransportService=f};var r5C=new _.iN("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var K8b=function(){},oNT=function(f,H,v,t,M){var h=_.a8("YPC_MB_URL");
_.FRr(h).then(function(){DKM(h,f,H,v,t,M)})},DKM=function(f,H,v,t,M,h){try{var y=payments.business.integration,m=payments.business.integration.Style.create().withMaterialDesignStyle(),W=y.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.J("enable_window_constrained_buy_flow_dialog")&&(W=W.usingPopupStyle("windowConstrained"));h&&(W=W.usingCloseCallback(h));var I=v?v:_.a8("YPC_GB_LANGUAGE"),S=_.a8("SESSION_INDEX");y.bootstrap.fromPaymentsUrl(f);y.bootstrap.asMashupMode(W).usingGaiaIndex(S).usingLocale(I).usingStyle(m).usingDefaultActivityStatusChangeHandler().inStandaloneContext(y.standaloneContextAuthId.forGaia()).purchaseManager(H,function(d){t&&t(d)}).load(void 0,M)}catch(d){throw M&&M(d),_.oO(d),d;
}};var nNg=new _.iN("PURCHASE_MANAGER_TOKEN");var p2M=function(){var f=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return f.videos},
getContinuationsPresent:function(){return f.continuationsPresent},
setVideos:function(H){f.videos=H},
getRecommendedVideos:function(){return f.recommendedVideos},
setRecommendedVideos:function(H){f.recommendedVideos=H}}};
p2M.prototype.addVideos=function(f){f&&(this.videos=f.filter(function(H){return!!_.A6R(H)}).map(function(H){var v=_.A6R(H);
a:{var t;if(H.playlistVideoRenderer&&((t=H.playlistVideoRenderer)==null?0:t.voteSortTiebreaker))var M=H.playlistVideoRenderer.voteSortTiebreaker;else{if(_.U(H,cs)){var h;if(t=(M=_.U(H,cs))==null?void 0:(h=M.playlistItemData)==null?void 0:h.voteSortTiebreaker){M=t;break a}}M=""}}return{itemId:v,videoId:_.kw5(H),voteCount:_.TO5(H),voteSortTiebreaker:M}}),this.continuationsPresent=!!_.U(f[f.length-1],_.bw))};
var Qbb=function(f,H){return f.videos.findIndex(function(v){return v.itemId===H})},u1h=function(f,H){return f.recommendedVideos.findIndex(function(v){return v.itemId===H})},aZC=function(f){f={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:f}}}}};_.t8().resolve(_.MJ).resolveCommand(f)};var PXb=function(){p2M.apply(this,arguments)};
_.e(PXb,p2M);
var Oyo=function(f,H,v,t){if(!f.parentElem)throw Error("ri");var M=Qbb(f,H);M===-1&&(M=u1h(f,H),M=M!==-1?M+f.videos.length:-1);if(M===-1)throw Error("si");var h=M>=f.videos.length?f.recommendedVideos[M-f.videos.length]:f.videos[M];h.voteCount=v;h.voteSortTiebreaker=Date.now().toString();M>=f.videos.length?f.recommendedVideos.splice(M-f.videos.length,1):f.videos.splice(M,1);var y=f.videos;for(var m=0,W=y.length-1;m<=W;){var I=Math.floor((m+W)/2);if(y[I].voteCount<h.voteCount)W=I-1;else if(y[I].voteCount>h.voteCount)m=
I+1;else{a:{var S=h.voteSortTiebreaker;var d=y[I].voteSortTiebreaker;if(S.length!==d.length)S=S.length>d.length;else{for(var Z=0;Z<S.length;Z++){var l=S.charCodeAt(Z),L=d.charCodeAt(Z);if(l>L){S=!0;break a}if(l<L)break}S=!1}}S?W=I-1:m=I+1}}y=m;if(y===-1)throw Error("ti");f.videos.splice(y,0,h);M!==y&&G2h(f,M,y,H,v,t)},G2h=function(f,H,v,t,M,h){var y,m=(y=f.parentElem)==null?void 0:y.children,W=Math.min(H,v),I=Math.max(H,v);
if(m)for(y=W;y<=I;y++)m[y].style.viewTransitionName="item-"+String(y);document.startViewTransition(function(){if(f.parentElem){var S=f.parentElem.children;if(!(!S||H<0||H>=S.length||v<0||v>=S.length)){var d=S[H];if(d){d.remove();f.showRefreshPill=v>=f.videos.length-1&&f.continuationsPresent;if(!f.showRefreshPill){S=S[v]||null;var Z;(Z=f.parentElem)==null||Z.insertBefore(d,S)}_.YE(f.parentElem,"yt-update-video-data-voting-animation",{toIdx:v,itemId:t,newVoteCount:M,voteStatus:h,hideItem:f.showRefreshPill})}}}}).finished.then(function(){if(m)for(var S=
W;S<=I;S++)m[S].style.viewTransitionName="";
if(f.showRefreshPill)aZC(_.ZC("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var d;if(d=S=(d=f.parentElem)==null?void 0:d.children[v])d=S.getBoundingClientRect(),S=d.bottom,d=!(d.top>=0&&S<=f.clientHeight);d&&(d=_.JX(H>v?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(H-v)),aZC(d))}})};var NbH=function(f,H){var v=this;f?this.innertubeTransportServicePromise=Promise.resolve(f):H&&(this.innertubeTransportServicePromise=H(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new AB(3E3,function(t){return CXa(v,t)},0);
this.validateMiniAppVideoIdRateLimiter=new AB(3E3,function(t){return ENC(v,t)},1)},Z$9=function(f,H){f.JSC$17170_miniAppId=H;
f.reportMiniAppValueRateLimiter=new AB(3E3,function(v){return CXa(f,v)},0);
f.validateMiniAppVideoIdRateLimiter=new AB(3E3,function(v){return ENC(f,v)},1)},lTM=function(f,H){var v;
return _.Y(function(t){if(t.nextAddress==1)return t.yield(f.reportMiniAppValueRateLimiter.call(H),2);v=t.yieldResult;return t.return([v,H])})},CXa=function(f,H){var v,t,M,h,y,m,W;
return _.Y(function(I){switch(I.nextAddress){case 1:return I.yield(f.innertubeTransportServicePromise,2);case 2:return v=I.yieldResult,t=_.tt(OXg),M=Date.now(),h={externalPostId:f.JSC$17170_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(M/1E3),nanos:Math.round(M%1E3*1E6)},intValue:""+H}},_.Zc(I,3),I.yield(_.Q8(v,h,t),5);case 5:y=I.yieldResult;_.ch(I,4);break;case 3:throw m=_.xu(I),m;case 4:if(y){if("error"in y&&y.error)throw y.error;if(y.errorMetadata)throw Error("ui`"+
y.errorMetadata.status);if(W=y.userStatResult)return I.return(W);throw Error("vi");}throw Error("wi");}})},eMh=function(f){var H,v,t,M,h;
_.Y(function(y){switch(y.nextAddress){case 1:return y.yield(f.innertubeTransportServicePromise,2);case 2:return H=y.yieldResult,v=_.tt(OXg),t={externalPostId:f.JSC$17170_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.Zc(y,3),y.yield(_.Q8(H,t,v),5);case 5:M=y.yieldResult;_.ch(y,4);break;case 3:throw h=_.xu(y),h;case 4:if(M==null)throw Error("wi");if("error"in M&&M.error)throw M.error;if(M.errorMetadata)throw Error("ui`"+M.errorMetadata.status);_.Bj(y)}})};
NbH.prototype.flush=function(){var f=this;return _.Y(function(H){return H.nextAddress==1?H.yield(f.reportMiniAppValueRateLimiter.flush(),2):H.yield(f.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var U9_=function(f,H){return _.Y(function(v){return v.nextAddress==1?v.yield(f.validateMiniAppVideoIdRateLimiter.call(H),2):v.return(v.yieldResult)})},ENC=function(f,H){var v,t,M,h,y,m;
return _.Y(function(W){switch(W.nextAddress){case 1:return W.yield(f.innertubeTransportServicePromise,2);case 2:return v=W.yieldResult,t=_.tt(hfn),M={videoId:H},_.Zc(W,3),W.yield(_.Q8(v,M,t),5);case 5:h=W.yieldResult;_.ch(W,4);break;case 3:throw y=_.xu(W),y;case 4:if(h){if("error"in h&&h.error)throw h.error;if(h.errorMetadata)throw Error("ui`"+h.errorMetadata.status);if(m=h.playabilityStatus)return W.return(m.status);throw Error("xi");}throw Error("wi");}})};
NbH[bN]=[_.vh(_.PS),_.vh(a1v)];var c5o=function(){this.clientData=new Map};
c5o.prototype.getData=function(f){return this.clientData.get(f)};var X2h=function(f){this.store=f};
X2h.prototype.handleResponse=function(f){(f=_.U(f.frameworkUpdates,kK))&&_.lA(f,this.store)};
X2h[bN]=[_.aj];var A5C=new _.iN("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var bEh={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 iEn=new _.iN("ICON_SET_TOKEN"),k2b=new _.iN("ICON_URL_PROVIDER_TOKEN"),TbT=new _.iN("PREFETCH_ICONS_TOKEN"),w2g=new _.iN("ICON_MAP_FN_TOKEN");var YA={},qQM=(YA.ACCESS_TIME="clock",YA.ACCOUNT_BOX="person_account",YA.ACCOUNT_BOX_CAIRO="person_account_cairo",YA.ACCOUNT_CIRCLE="person_circle",YA.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",YA.ACCOUNT_LINKED="account_link_success",YA.ACCOUNT_UNLINKED="account_link",YA.ADD_FRIEND="people",YA.ADD_MODERATOR="shield_add",YA.ADD_TO_LIBRARY="bookmark",YA.ADD_TO_PLAYLIST="add",YA.ADD_TO_QUEUE_TAIL="list_queue",YA.ADD_TO_REMOTE_QUEUE="list_music",YA.ADD_TO_WATCH_LATER="clock",YA.ADD_VIDEO_LINK="film_strip_add",
YA.ALERT_WARN_RED="alert_triangle",YA.ARROW_BACK="arrow_left",YA.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",YA.ARROW_DROP_DOWN="chevron_down",YA.ARROW_DROP_UP="chevron_up",YA.ARROW_FORWARD="arrow_right",YA.AUDIOTRACK="audio",YA.AUTO_AWESOME="sparkle",YA.AVATAR_ANONYMOUS="person_circle",YA.AVATAR_LOGGED_OUT="person_circle",YA.BACK="arrow_left",YA.BAR_CHART="bar_graph",YA.BLOCK="slash_circle_left",YA.BLOCK_USER="slash_circle_left",YA.BOOKMARK_BORDER="bookmark",YA.BREAKING_NEWS_ALT_1="article_alert",
YA.BROADCAST_CAIRO="podcast_cairo",YA.BUG_REPORT="bug",YA.CAMERA_ALT="camera",YA.CAMPAIGN="megaphone",YA.CANCEL="x_circle",YA.CAPTIONS="closed_caption",YA.CAST_OUTLINE="chromecast",YA.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",YA.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",YA.CHAT="message_bubble_left",YA.CHAT_BUBBLE="message_bubble_empty",YA.CHAT_SPARK="spark_message_bubble_left",YA.CHECK_BOX_OUTLINE_BLANK="box_empty",YA.CHECK_CIRCLE_OUTLINE="check_circle",YA.CHECK_CIRCLE_THICK="check_circle",YA.CLARIFY=
"article_clarify",YA.CLOSED_CAPTION_SELECTED="closed_caption",YA.CLOSE="x_mark",YA.CLOUD_UPLOAD="cloud_arrow_up",YA.COLLAPSE="chevron_up",YA.COLLAPSE_CAIRO="chevron_up_cairo",YA.COLLECTION="layers",YA.COLOR_LENS="palette",YA.COMMENT="message_bubble_right",YA.CONSENT_SHIELD="person_shield",YA.CONTENT_CUT="scissors",YA.CONTENT_CUT_CAIRO="scissors_cairo",YA.COURSE=_.J("web_enable_course_icon_update")?"creator_academy":"lightbulb",YA.COURSE_CAIRO=_.J("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",YA.CREATION_LIVE="radar_live",YA.CREATION_POST="box_pencil",YA.CREATION_UPLOAD="my_videos",YA.CREATION_UPLOAD_RED="upload",YA.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",YA.CREATOR_STUDIO="youtube_studio",YA.DASHBOARD="grid_asymmetrical",YA.DELETE="trash_can",YA.DELETE_SWEEP="trash_can",YA.DESKTOP="laptop",YA.DISLIKE="thumb_down",YA.DISLIKE_SELECTED="thumb_down",YA.DISMISSAL="x_mark",YA.DISMISS_QUEUE="list_remove",YA.DONE_ALL="check_double",YA.DOWN_ARROW="arrow_down",YA.DO_NOT_DISTURB=
"slash_circle_left",YA.DRAFT="paper_corner_folded",YA.DRAG_HANDLE="bars_2",YA.EDIT="pencil",YA.EMOJI="face_very_happy",YA.EMOJI_FLAGS="flag",YA.EMOJI_OBJECTS="lightbulb",YA.EMOJI_PEOPLE="face_very_happy",YA.EMOJI_RECENT="clock",YA.EMPTY_HEART="heart",YA.EMPTY_LIKE="thumb_up",YA.ERROR_BLACK="alert_circle",YA.ERROR_OUTLINE="alert_circle",YA.EXIT_APP="arrow_in",YA.EXIT_TO_APP="arrow_in",YA.EXPAND="chevron_down",YA.EXPAND_ALL="chevron_expand",YA.EXPAND_CAIRO="chevron_down_cairo",YA.EXPAND_LESS="chevron_up",
YA.EXPAND_MORE="chevron_down",YA.EXPLORE="compass",YA.EXPLORE_DESTINATION="compass",YA.EXTERNAL_LINK="open_new",YA.FAB_UPLOAD="upload",YA.FACE_HAPPY_OUTLINE="face_happy",YA.FACT_CHECK="article_check",YA.FASHION_LOGO="fashion",YA.FASHION_LOGO_CAIRO="fashion_cairo",YA.FAVORITE="heart",YA.FEEDBACK="message_bubble_alert",YA.FEEDBACK_CAIRO="message_bubble_alert_cairo",YA.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",YA.FILL_ARROW_SOLID_UP_16="arrow_solid_up",YA.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
YA.FILTER="menu_filter",YA.FIRST_PAGE="chevron_first",YA.FLAG="flag",YA.FULL_HEART="heart",YA.GAME_CONSOLE_DPAD="game_console_dpad",YA.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",YA.GAMING_LOGO="gaming",YA.GAMING_LOGO_CAIRO="gaming_cairo",YA.GO_TO_PAGE="arrow_right",YA.GROUPS="people_group",YA.HAPPY="face_happy",YA.HEALTH_AND_SAFETY="shield_plus",YA.HELP="question_circle",YA.HELP_CAIRO="question_circle_cairo",YA.HELP_OUTLINE="question_circle",YA.HIDE="slash_circle_left",YA.IMAGE="image",
YA.INFINITY_ICON="infinity",YA.INFO="info_circle",YA.INFO_OUTLINE="info_circle",YA.INSERT_CHART="bar_graph_box_vertical",YA.INSERT_CHART_OUTLINED="bar_graph_box_vertical",YA.INSERT_PHOTO="image",YA.KEEP="pin",YA.KEEP_OFF="pin_off",YA.KEYBOARD="keyboard",YA.KEYBOARD_ARROW_DOWN="chevron_down",YA.KEYBOARD_ARROW_UP="chevron_up",YA.KIDS_BLOCK="slash_circle_left",YA.LANGUAGE="globe",YA.LAST_PAGE="chevron_last",YA.LAUNCH="open_new",YA.LEARNING="lightbulb",YA.LEARNING_CAIRO="lightbulb_cairo",YA.LIBRARY_ADD=
Hse("library_add"),YA.LIBRARY_OUTLINE="library",YA.LIBRARY_REMOVE=Hse(),YA.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",YA.LIKES_PLAYLIST="thumb_up",YA.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",YA.LIKE="thumb_up",YA.LIKE_SELECTED="thumb_up",YA.LIVE="radar_live",YA.LIVE_CAIRO="radar_live_cairo",YA.LIVE_UNLISTED="link",YA.LOCATION_ON="location_point",YA.LOCATION_PIN="location_point",YA.LOOP="arrow_repeat",YA.LOOP_ACTIVE="arrow_repeat",YA.LOOP_ONE="arrow_repeat_1",YA.LOOP_ONE_ACTIVE="arrow_repeat_1",YA.MEH=
"face_meh",YA.MEMBERS_ONLY_MODE_OFF="message_bubble_left",YA.MESSAGE="message_bubble_left",YA.MICROPHONE_ON="mic",YA.MIX="youtube_mix",YA.MONETIZATION_ON="dollar_sign_circle",YA.MONEY_FILL="dollar_sign_container",YA.MONEY_FILL_JPY="yen_sign_container",YA.MONEY_HEART="dollar_sign_heart",YA.MORE_HORIZ="overflow_horizontal",YA.MORE_VERT="overflow_vertical",YA.MUSIC="audio",YA.MUSIC_CAIRO="audio_cairo",YA.MUSIC_NOTE_SYMBOL="music",YA.MUSIC_SHUFFLE="arrow_shuffle",YA.MY_CHANNEL="person_circle",YA.MY_LOCATION=
"location_point",YA.NEWS_STORY="news",YA.NEXT="chevron_right",YA.NOTIFICATIONS="bell",YA.NOTIFICATIONS_ACTIVE="bell_on",YA.NOTIFICATIONS_CAIRO="bell_cairo",YA.NOTIFICATIONS_DONE_CHECKMARK="check",YA.NOTIFICATIONS_INBOX="bell",YA.NOTIFICATIONS_NONE="bell",YA.NOTIFICATIONS_OFF="bell_off",YA.NOT_INTERESTED="slash_circle_left",YA.OFFICIAL_ARTIST_BADGE="audio",YA.OFFLINE_CLOUD="cloud_off",YA.OFFLINE_DOWNLOAD="download",YA.OFFLINE_DOWNLOAD_CAIRO="download_cairo",YA.OFFLINE_PAUSE="pause",YA.OPEN_IN_NEW=
"open_new",YA.OUTLINE_ADJUST="adjust",YA.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",YA.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",YA.OUTLINE_BAG="bag",YA.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",YA.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",YA.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",YA.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",YA.PAID="dollar_sign",YA.PAUSE_OUTLINED="pause",YA.PAYMENT="credit_card",YA.PERSON_RADAR_FILLED="person_radar",YA.PHONE_DOWNLOAD="mobile_download",
YA.PLAYABLES_LOGO="tic_tac_toe",YA.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",YA.PLAYLISTS="list_play_arrow",YA.PLAYLISTS_CAIRO="list_play_arrow_cairo",YA.PLAYLIST_ADD=Hse("list_add"),YA.PLAYLIST_ADD_CHECK=Hse("list_check"),YA.PLAYLIST_PLAY="list_play_arrow",YA.PLAY_ALL="play_arrow",YA.PLAY_CIRCLE="play_arrow_circle",YA.PLAY_OUTLINED="play_arrow_circle",YA.PRIVACY_INFO="shield",YA.PRIVACY_PRIVATE="lock",YA.PRIVACY_PUBLIC="earth",YA.PRIVACY_UNLISTED="link",YA.PROMOTE="megaphone",YA.PURCHASES="price_tag",
YA.PURCHASE_SUPER_CHAT="super_chat",YA.PURCHASE_SUPER_STICKER="super_sticker",YA.QUESTION_ANSWER="message_bubble_question",YA.QUEUE_PLAY_LAST="list_queue_last",YA.QUEUE_PLAY_NEXT="list_play_arrow",YA.REMIX_FILLED="youtube_shorts_remix",YA.REMOVE="bar_circle",YA.REMOVE_CIRCLE="bar_circle",YA.REMOVE_CIRCLE_OUTLINE="bar_circle",YA.REMOVE_DONE="check_double_off",YA.REMOVE_FROM_HISTORY="bar_circle",YA.REMOVE_FROM_PLAYLIST="bar_circle",YA.REMOVE_MODERATOR="shield_off",YA.REPLAY="arrow_circle",YA.REPLAY_10=
"skip_back_10",YA.REPORT_PROBLEM="alert_triangle",YA.SAD="face_sad",YA.SAVE_PLAYLIST="bookmark",YA.SCHEDULE="clock",YA.SCHOOL="creator_academy",YA.SCREEN_FULLSCREEN="screen_full",YA.SEARCH_HISTORY="arrow_time",YA.SELL="price_tag",YA.SETTINGS="gear",YA.SETTINGS_CAIRO="gear_cairo",YA.SETTINGS_LIGHT="gear",YA.SETTINGS_MATERIAL="gear",YA.SHARE_ARROW="share",YA.SHIELD_WITH_AVATAR="person_shield",YA.SHOPPING_BAG="bag",YA.SHOPPING_BAG_CAIRO="bag_cairo",YA.SHOPPING_CART="cart",YA.SHORTS_COMMENT="youtube_shorts_message_bubble_right",
YA.SHORTS_DISLIKE="youtube_shorts_thumb_down",YA.SHORTS_LIKE="youtube_shorts_thumb_up",YA.SHORTS_SHARE="youtube_shorts_share",YA.SHUFFLE="arrow_shuffle",YA.SLOW_MODE_OFF="message_bubble_left",YA.SOCIAL="people",YA.SORT="menu_sort",YA.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",YA.SPEED_1X="1x",YA.SPEED_1_POINT_2X="1_point_2x",YA.SPEED_1_POINT_5X="1_point_5x",YA.SPEED_1_POINT_8X="1_point_8x",YA.SPEED_2X="2x",YA.SPEED_POINT_2X="point_2x",YA.SPEED_POINT_8X="point_8x",YA.SPONSORSHIP_STAR="star_circle",
YA.STAFF_PICK="spotlight",YA.START_DVR="add",YA.STAR_BORDER="star",YA.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",YA.STICKER_EMOTICON="face_happy",YA.STOP_DVR="stop",YA.SUBSCRIBE="youtube_logo_icon",YA.SUBSCRIBE_PLUS="add_cairo",YA.SUBSCRIPTION_MANAGER="gear",YA.SUPERVISOR_ACCOUNT="people",YA.SUPER_CHAT_FOR_GOOD="hands_heart",YA.SWAP_HORIZ="arrow_swap_horizontal",YA.SWITCH_ACCOUNTS="person_account",YA.TAB_ACCOUNT="person",YA.TAB_ACTIVITY="bell",YA.TAB_BOOKMARK="bookmark",YA.TAB_EXPLORE="compass",
YA.TAB_HOME="home",YA.TAB_HOME_CAIRO="home_cairo",YA.TAB_INBOX="mail",YA.TAB_LIKED="thumb_up",YA.TAB_MUSIC_PREMIUM="youtube_music",YA.TAB_SHORTS="youtube_shorts",YA.TAB_SHORTS_CAIRO="youtube_shorts_cairo",YA.TAB_SUBSCRIPTIONS="subscriptions",YA.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",YA.TAB_TRENDING="fire",YA.TIMER="stopwatch",YA.TRAILER="youtube_originals",YA.TRENDING="fire",YA.TRENDING_CAIRO="fire_cairo",YA.TRENDING_UP="rating_up",YA.TROPHY="trophy",YA.TROPHY_CELEBRATIONS="fireworks",YA.TUNE=
"adjust",YA.UNBLOCK_USER="bar_circle",YA.UNLIMITED="youtube_logo_icon",YA.UNPLUGGED_LIVE_GUIDE="radar_live",YA.UNPLUGGED_SPORTS="eye_off",YA.UPLOADS="library",YA.UP_ARROW="arrow_up",YA.VERTICAL_ALIGN_BOTTOM="download",YA.VERY_HAPPY="face_very_happy",YA.VERY_SAD="face_very_sad",YA.VIDEOGAME_ASSET="gaming",YA.VIDEOS="play_arrow_circle",YA.VIDEO_CALL="video_camera_add",YA.VIDEO_LIBRARY_WHITE="library",YA.VIDEO_YOUTUBE="youtube_logo_icon",YA.VIEW_LIST="list_view",YA.VIEW_LIST_CAIRO="list_view_cairo",
YA.VISIBILITY="eye",YA.VISIBILITY_OFF="eye_off",YA.VOLUME_MUTE="volume_off",YA.VOLUME_UP="volume_on",YA.WALLPAPER="image",YA.WARNING="alert_triangle",YA.WATCH_HISTORY="arrow_time",YA.WATCH_HISTORY_CAIRO="arrow_time_cairo",YA.WATCH_LATER="clock",YA.WATCH_LATER_CAIRO="clock_cairo",YA.WATCH_RELATED_MIX="youtube_mix",YA.WHAT_TO_WATCH="home",YA.YOUTUBE_MUSIC_MONOCHROME="youtube_music",YA.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",YA.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",
YA.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",YA.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",YA.YT_OUTLINE_MUSIC_24="music",YA);var mM={},f_t=(mM.ACCESS_TIME="clock",mM.ACCOUNT_BOX="person_square",mM.ACCOUNT_BOX_CAIRO="person_square",mM.ACCOUNT_CIRCLE="person_circle",mM.ACCOUNT_CIRCLE_CAIRO="person_circle",mM.ACCOUNT_LINKED="account_link",mM.ACCOUNT_UNLINKED="account_link",mM.ADD_CIRCLE="add_circle",mM.ADD_CIRCLE_OUTLINE="add_circle",mM.ADD_FRIEND="person_child",mM.ADD_MODERATOR="shield_add",mM.ADD_TO_LIBRARY="bookmark",mM.ADD_TO_PLAYLIST="add",mM.ADD_TO_QUEUE_TAIL="queue",mM.ADD_TO_REMOTE_QUEUE="playlist_audio",mM.ADD_TO_WATCH_LATER=
"clock",mM.ADD_VIDEO_LINK="film_strip_add",mM.ADMIN_PANEL_SETTINGS="person_gear",mM.ALERT_WARN_RED="alert_triangle",mM.ALIGN_LEFT="text_align_left",mM.ARROWS_ALERT="arrow_split_alert",mM.ARROW_BACK="arrow_left",mM.ARROW_CIRCLE="arrow_counterclockwise",mM.ARROW_CIRCLE_PLAY="replay",mM.ARROW_CIRCLE_RIGHT="arrow_clockwise",mM.ARROW_DIAGONAL="arrow_up_left",mM.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",mM.ARROW_DROP_DOWN="triangle_down",mM.ARROW_DROP_UP="triangle_up",mM.ARROW_FORWARD="arrow_right",mM.ARROW_PAUSE=
"pause_history",mM.ARROW_UNDO="undo",mM.ARTICLE="text_page",mM.ARTICLE_ALERT="text_page_alert",mM.ARTICLE_CHECK="text_page_check",mM.ARTICLE_CLARIFY="text_page_info",mM.AUDIOTRACK="audio",mM.AUDIO_BADGE="audio_badge",mM.AUDIO_SURROUND="surround_sound",mM.AUTO_AWESOME="sparkles",mM.AVATAR_ANONYMOUS="person_circle",mM.AVATAR_LOGGED_OUT="person_circle",mM.BACK="arrow_left",mM.BAR_CHART="chart_bar",mM.BAR_CIRCLE="minus_circle",mM.BAR_HORIZONTAL="minus",mM.BLOCK="circle_slash",mM.BLOCK_USER="circle_slash",
mM.BOOKMARK_BORDER="bookmark",mM.BOX_OPEN_CHECK="quiz",mM.BOX_PENCIL="square_pencil",mM.BOX_STACK_3="square3_stack",mM.BREAKING_NEWS_ALT_1="text_page_alert",mM.BROADCAST="podcast",mM.BROADCAST_CAIRO="podcast",mM.BUG_REPORT="bug",mM.CAMERA_ALT="camera",mM.CAMPAIGN="megaphone",mM.CANCEL="x_circle",mM.CAPTIONS="closed_captions",mM.CAST_ICON="chromecast",mM.CAST_OUTLINE="chromecast",mM.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",mM.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",mM.CHAT="text_bubble",
mM.CHAT_BUBBLE="bubble",mM.CHECK_BOX="check_square",mM.CHECK_BOX_OUTLINE_BLANK="square",mM.CHECK_CIRCLE_FILLED="check_circle",mM.CHECK_CIRCLE_OUTLINE="check_circle",mM.CHECK_CIRCLE_THICK="check_circle",mM.CHECK_DOUBLE="check_done",mM.CHECK_DOUBLE_OFF="check_done_slash",mM.CHEVRON_LEFT="chevron_left",mM.CHEVRON_RIGHT="chevron_right",mM.CHEVRON_RIGHT_CAIRO="chevron_right",mM.CIRCLES_OVERLAP="account_link",mM.CLAPPERBOARD_CAIRO="clapperboard",mM.CLARIFY="text_page_info",mM.CLOCK_ARROWS="clock_split",
mM.CLOCK_ARROWS_ALERT="clock_split_alert",mM.CLOSED_CAPTION="closed_captions",mM.CLOSED_CAPTION_SELECTED="closed_captions",mM.CLOSE="x",mM.CLOUD_UPLOAD="cloud_arrow_up",mM.COLLAPSE="chevron_up",mM.COLLAPSE_CAIRO="chevron_up",mM.COLLECTION="square3d_stack",mM.COLOR_LENS="paint_palette",mM.COMMENT="text_bubble",mM.CONSENT_SHIELD="person_shield",mM.CONTENT_CUT="scissors",mM.CONTENT_CUT_CAIRO="scissors",mM.COURSE="graduation_cap",mM.COURSE_CAIRO="graduation_cap",mM.CREATION_LIVE="live",mM.CREATION_POST=
"square_pencil",mM.CREATION_UPLOAD="video",mM.CREATION_UPLOAD_RED="upload",mM.CREATOR_ACADEMY="graduation_cap",mM.CREATOR_STUDIO="youtube_studio",mM.DARK_THEME="theme",mM.DELETE="trash_can",mM.DELETE_SWEEP="trash_can",mM.DESKTOP="laptop",mM.DISLIKE="thumb_down",mM.DISLIKE_SELECTED="thumb_down",mM.DISMISSAL="x",mM.DISMISS_QUEUE="playlist_x",mM.DOGFOOD="pawprint",mM.DOLLAR_SIGN="dollar_sign_circle",mM.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",mM.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",mM.DOWN_ARROW=
"arrow_down",mM.DO_NOT_DISTURB="circle_slash",mM.DRAFT="document",mM.DRAG_HANDLE="equal",mM.EARTH="globe",mM.EDIT="pencil",mM.EMOJI="face_very_happy",mM.EMOJI_FLAGS="flag",mM.EMOJI_OBJECTS="lightbulb",mM.EMOJI_PEOPLE="face_very_happy",mM.EMOJI_RECENT="clock",mM.EMPTY_HEART="heart",mM.EMPTY_LIKE="thumb_up",mM.ERROR_BLACK="alert_circle",mM.ERROR_OUTLINE="alert_circle",mM.ERROR_WHITE="alert_circle",mM.EXIT_APP="arrow_in",mM.EXIT_TO_APP="arrow_in",mM.EXPAND="chevron_down",mM.EXPAND_ALL="chevron_expand",
mM.EXPAND_CAIRO="chevron_down",mM.EXPAND_LESS="chevron_up",mM.EXPAND_MORE="chevron_down",mM.EXPLORE="compass",mM.EXPLORE_DESTINATION="compass",mM.EXTERNAL_LINK="arrow_up_right",mM.EYE_OFF="eye_slash",mM.FAB_UPLOAD="upload",mM.FACE_HAPPY_OUTLINE="face_happy",mM.FACE_MEH="face_neutral",mM.FACT_CHECK="text_page_check",mM.FASHION_LOGO="fashion",mM.FASHION_LOGO_CAIRO="fashion",mM.FAVORITE="thumb_up",mM.FEEDBACK="alert_bubble",mM.FEEDBACK_CAIRO="alert_bubble",mM.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",
mM.FILL_ARROW_SOLID_UP_16="arrow_solid_up",mM.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",mM.FLAG_CAIRO="flag",mM.FLASH_OFF="flash_slash",mM.FLASH_ON="flash",mM.FULL_HEART="heart",mM.GAMING_LOGO="gaming",mM.GAMING_LOGO_CAIRO="gaming",mM.GO_TO_PAGE="arrow_right",mM.GROUPS="person3",mM.HAND_SWIPE_LEFT="gesture_swipe_left",mM.HAND_SWIPE_RIGHT="gesture_swipe_right",mM.HAPPY="face_happy",mM.HEALTH_AND_SAFETY="shield_health",mM.HEART_BOX="heart_cube",mM.HELP="help_circle",mM.HELP_CAIRO="help_circle",
mM.HELP_OUTLINE="help_circle",mM.HIDE="circle_slash",mM.INCOGNITO_CAIRO="incognito",mM.INFINITY_ICON="infinity",mM.INFO="info_circle",mM.INFO_OUTLINE="info_circle",mM.INSERT_CHART="chart_bar_square",mM.INSERT_CHART_OUTLINED="chart_bar_square",mM.INSERT_PHOTO="image",mM.KEEP="pin",mM.KEEP_OFF="pin_slash",mM.KEYBOARD="keyboard",mM.KEYBOARD_ARROW_DOWN="chevron_down",mM.KEYBOARD_ARROW_UP="chevron_up",mM.KIDS_BLOCK="circle_slash",mM.LANGUAGE="globe",mM.LAUNCH="arrow_up_right",mM.LEARNING="lightbulb",mM.LEARNING_CAIRO=
"lightbulb",mM.LIBRARY_ADD="bookmark",mM.LIBRARY_IMAGE="image_stack",mM.LIBRARY_MUSIC="audio_square_stack",mM.LIBRARY_OUTLINE="play_square_stack",mM.LIBRARY_REMOVE="bookmark",mM.LIBRARY_SAVED="check_square_stack",mM.LIKES_PLAYLIST="thumb_up",mM.LIKES_PLAYLIST_CAIRO="thumb_up",mM.LIKE="thumb_up",mM.LIKE_SELECTED="thumb_up",mM.LIST_QUEUE="queue",mM.LIVE_CAIRO="live",mM.LIVE_UNLISTED="link",mM.LOCATION_ON="location_pin",mM.LOCATION_PIN="location_pin",mM.LOCATION_POINT="location_pin",mM.LOOP="repeat",
mM.LOOP_ACTIVE="repeat",mM.LOOP_ONE="repeat1",mM.LOOP_ONE_ACTIVE="repeat1",mM.MEET="google_meet",mM.MEH="face_neutral",mM.MEMBERSHIPS="memberships",mM.MEMBERS_ONLY_MODE_OFF="text_bubble",mM.MENU_FILTER="filter",mM.MESSAGE="text_bubble",mM.MESSAGE_BUBBLE_GEAR="bubble_gear",mM.MESSAGE_BUBBLE_LEFT="text_bubble",mM.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",mM.MESSAGE_BUBBLE_OVERLAP="bubble_stack",mM.MESSAGE_BUBBLE_QUESTION="help_bubble",mM.MICROPHONE_ON="mic",mM.MONETIZATION_ON="dollar_sign_circle",
mM.MONEY_FILL="dollar_sign_rectangle",mM.MONEY_FILL_JPY="yen_sign_rectangle",mM.MONEY_HAND="dollar_sign_circle_hand",mM.MONEY_HEART="dollar_sign_heart",mM.MOON_Z="sleep_timer",mM.MORE_HORIZ="overflow_horizontal",mM.MORE_VERT="overflow_vertical",mM.MUSIC="audio",mM.MUSIC_CAIRO="audio",mM.MUSIC_EXPLICIT_BADGE="explicit",mM.MUSIC_NEW_RELEASE="audio_badge",mM.MUSIC_NOTE_SYMBOL="audio",mM.MUSIC_SCISSORS="audio_scissors",mM.MUSIC_SHUFFLE="shuffle",mM.MY_CHANNEL="person_circle",mM.MY_LOCATION="location_pin",
mM.MY_VIDEOS="video",mM.MY_VIDEOS_CAIRO="video",mM.NEWS_CAIRO="news",mM.NEWS_STORY="news",mM.NEXT="chevron_right",mM.NOTE_ADD="bubble_pencil",mM.NOTIFICATIONS="bell",mM.NOTIFICATIONS_ACTIVE="bell_waves",mM.NOTIFICATIONS_CAIRO="bell",mM.NOTIFICATIONS_DONE_CHECKMARK="check",mM.NOTIFICATIONS_INBOX="bell",mM.NOTIFICATIONS_NONE="bell",mM.NOTIFICATIONS_OFF="bell_slash",mM.NOT_INTERESTED="circle_slash",mM.OFFICIAL_ARTIST_BADGE="audio",mM.OFFLINE_CLOUD="cloud_slash",mM.OFFLINE_DOWNLOAD="download",mM.OFFLINE_DOWNLOAD_CAIRO=
"download",mM.OFFLINE_PAUSE="pause",mM.OPEN_IN_NEW="arrow_up_right",mM.OUTLINE_ADJUST="adjust",mM.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",mM.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",mM.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",mM.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",mM.OUTLINE_BAG="bag",mM.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",mM.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",mM.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",mM.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",mM.PAID=
"dollar_sign_circle",mM.PAUSE_OUTLINED="pause",mM.PAYMENT="credit_card",mM.PEOPLE="person_child",mM.PEOPLE_2="person2_rectangle",mM.PEOPLE_GROUP="person3",mM.PEOPLE_NOTE="bubble_asterisk",mM.PERSON_2="person2",mM.PERSON_ACCOUNT="person_square_stack",mM.PERSON_MINUS="person_x",mM.PERSON_MUSIC="person_audio",mM.PERSON_RADAR="person_waves",mM.PERSON_RADAR_FILLED="person_waves",mM.PERSON_SETTING="person_gear",mM.PHONE="phone",mM.PHONE_DOWNLOAD="mobile_arrow_down",mM.PICTURE_IN_PICTURE="picture_in_picture",
mM.PLAYABLES_LOGO="playables",mM.PLAYABLES_LOGO_CAIRO="playables",mM.PLAYLISTS="playlist",mM.PLAYLISTS_CAIRO="playlist",mM.PLAYLIST_ADD_CHECK="bookmark",mM.PLAY_ALL="play",mM.PLAY_ARROW="play",mM.PLAY_ARROW_CIRCLE="play_circle",mM.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",mM.PLAY_CIRCLE="play_circle",mM.PLAY_OUTLINED="play_circle",mM.PODCAST_ADD="podcast_add",mM.PODCAST_CHECK="podcast_check",mM.PRIVACY_INFO="shield_x",mM.PRIVACY_PRIVATE="lock",mM.PRIVACY_PUBLIC="globe",mM.PRIVACY_UNLISTED=
"link",mM.PROMOTE="megaphone",mM.PURCHASES="price_tag",mM.PURCHASE_SUPER_CHAT="super_chat",mM.PURCHASE_SUPER_STICKER="super_sticker",mM.QUESTION_ANSWER="help_bubble",mM.QUESTION_CIRCLE="help_circle",mM.QUEUE_PLAY_LAST="queue_last",mM.QUEUE_PLAY_NEXT="playlist",mM.QUOTATION_MARK="quote",mM.RADAR_LIVE="live",mM.REMOVE="minus_circle",mM.REMOVE_CIRCLE="minus_circle",mM.REMOVE_CIRCLE_OUTLINE="minus_circle",mM.REMOVE_FROM_HISTORY="minus_circle",mM.REMOVE_FROM_PLAYLIST="minus_circle",mM.REMOVE_MODERATOR=
"shield_slash",mM.REPLAY="arrow_counterclockwise",mM.REPLAY_10="skip10_back",mM.REPLAY_ARROW="replay",mM.REPORT_PROBLEM="alert_triangle",mM.RSS_OFF="rss_slash",mM.SAD="face_sad",mM.SAVE_PLAYLIST="bookmark",mM.SCHEDULE="clock",mM.SCHOOL="graduation_cap",mM.SCREEN_DEFAULT="player_default",mM.SCREEN_FULLSCREEN="player_full_enter",mM.SCREEN_LIGHT="ambient_mode",mM.SCREEN_ROTATION="rotate_portrait",mM.SCREEN_SWITCH="player_switch",mM.SCREEN_THEATRE="player_theater",mM.SEARCH_CAIRO="search",mM.SEARCH_HISTORY=
"history",mM.SELL="price_tag",mM.SETTINGS="gear",mM.SETTINGS_CAIRO="gear",mM.SETTINGS_LIGHT="gear",mM.SETTINGS_MATERIAL="gear",mM.SETTINGS_REMOTE="remote_waves",mM.SHARE="share",mM.SHARE_ARROW="share",mM.SHARE_CAIRO="share",mM.SHIELD="shield_x",mM.SHIELD_OFF="shield_slash",mM.SHIELD_WITH_AVATAR="person_shield",mM.SHOPPING_BAG="bag",mM.SHOPPING_BAG_CAIRO="bag",mM.SHOPPING_CART="cart",mM.SHORTS_COMMENT="text_bubble",mM.SHORTS_DISLIKE="thumb_down",mM.SHORTS_LIKE="thumb_up",mM.SHORTS_SHARE="share",mM.SKIP_FORWARD_30=
"skip30_forward",mM.SLASH_CIRCLE_RIGHT="circle_slash",mM.SLOW_MODE="bubble_slow",mM.SLOW_MODE_OFF="text_bubble",mM.SOCIAL="person_child",mM.SPARKLE="sparkles",mM.SPARK_IMAGE="image_spark",mM.SPARK_RADAR="spark_waves",mM.SPARK_VIDEO="video_spark",mM.SPEAKER_GROUP="speaker_stack",mM.SPEAKER_OFF="speaker_slash",mM.SPEED_1X="n1x",mM.SPEED_1_POINT_2X="n1point2x",mM.SPEED_1_POINT_5X="n1point5x",mM.SPEED_1_POINT_8X="n1point8x",mM.SPEED_2X="n2x",mM.SPONSORSHIP_STAR="star_circle",mM.SPORTS="basketball",mM.SPOTLIGHT=
"spotlight",mM.STAFF_PICK="spotlight",mM.START_DVR="add",mM.STAR_BORDER="star",mM.STAR_CIRCLE_RIBBON="memberships_gift",mM.STAR_HALF="star_half_filled",mM.STAR_SHOOTING="hype",mM.STICKER="sticker",mM.STICKER_EMOTICON="face_happy",mM.STOP_DVR="stop",mM.SUBSCRIBE="youtube",mM.SUBSCRIBE_PLUS="add",mM.SUBSCRIPTION_MANAGER="gear",mM.SUPERSTAR="super_star",mM.SUPERVISOR_ACCOUNT="person_child",mM.SUPER_CHAT_FOR_GOOD="hands_heart",mM.SWAP_HORIZ="arrow_swap_horizontal",mM.SWITCH_ACCOUNTS="person_square_stack",
mM.TAB_ACCOUNT="person",mM.TAB_ACTIVITY="bell",mM.TAB_BOOKMARK="bookmark",mM.TAB_EXPLORE="compass",mM.TAB_HOME="home",mM.TAB_HOME_CAIRO="home",mM.TAB_INBOX="mail",mM.TAB_LIKED="thumb_up",mM.TAB_MUSIC_PREMIUM="youtube_music",mM.TAB_SHORTS="shorts",mM.TAB_SHORTS_CAIRO="shorts",mM.TAB_SUBSCRIPTIONS="subscriptions",mM.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",mM.TAB_TRENDING="trending",mM.TARGET="target",mM.TARGET_ADD="target_add",mM.TEMPLATE_ADD="template_add",mM.TEXT="font",mM.TIMER="stopwatch",mM.TRENDING_CAIRO=
"trending",mM.TRENDING_UP="arrow_trend_up",mM.TROPHY_CAIRO="trophy",mM.TROPHY_CELEBRATIONS="fireworks",mM.TROPHY_STAR="star_trophy",mM.TUNE="adjust",mM.TV_OFF="tv_slash",mM.UNBLOCK_USER="minus_circle",mM.UNFAVORITE="thumb_down",mM.UNLIMITED="youtube",mM.UNPLUGGED_LIVE_GUIDE="live",mM.UNPLUGGED_SPORTS="eye_slash",mM.UPLOADS="play_square_stack",mM.UP_ARROW="arrow_up",mM.VERTICAL_ALIGN_BOTTOM="chevron_down_end",mM.VERTICAL_ALIGN_TOP="chevron_up_end",mM.VERY_HAPPY="face_very_happy",mM.VERY_SAD="face_very_sad",
mM.VIDEOS="play_circle",mM.VIDEO_CALL="video_camera_add",mM.VIDEO_LIBRARY_WHITE="play_square_stack",mM.VIDEO_QUALITY_4K="n4k",mM.VIDEO_QUALITY_8K="n8k",mM.VIDEO_YOUTUBE="youtube",mM.VIEW_LIST_CAIRO="view_list",mM.VIEW_MODULE="view_column3_row2",mM.VISIBILITY="eye",mM.VISIBILITY_OFF="eye_slash",mM.VOLUME_DOWN="volume_min",mM.VOLUME_MUTE="volume_mute",mM.VOLUME_OFF="volume_mute",mM.VOLUME_STABLE="stable_volume",mM.VOLUME_UP="volume_max",mM.WALLPAPER="image",mM.WARNING="alert_triangle",mM.WATCH_HISTORY=
"history",mM.WATCH_HISTORY_CAIRO="history",mM.WATCH_LATER="clock",mM.WATCH_LATER_CAIRO="clock",mM.WATCH_RELATED_MIX="mix",mM.WHAT_TO_WATCH="home",mM.YOUTUBE_LINKED_TV="tv_mobile",mM.YOUTUBE_MUSIC_MONOCHROME="youtube_music",mM.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",mM.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",mM.YOUTUBE_SHORTS_ARROW_UP="arrow_up",mM.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",mM.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",mM.YOUTUBE_SHORTS_OUTLINE_24="shorts",
mM);var HgA={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,8,16],[1,8,18],[1,8,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,
36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,
2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,4,24]],football:[[0,4,24],[1,
4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,
24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,
3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],
library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,
1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,
3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,4,16],[1,4,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,
6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,13,24],[1,13,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,
1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,
1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,12,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,
2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,9,16],[1,9,18],[1,9,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,6,12],[0,6,13],[0,6,16],[0,6,24],[0,6,48],[1,6,13],[1,6,16],[1,6,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,
1,24]],person_add:[[1,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,
24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,2,24]],presentation_remove:[[1,
1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,
2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,
48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,14,24],[1,14,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,2,24]],shadow_soft:[[0,2,24]],
shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],
shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],
skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,16],[0,9,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,
2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],star_circle:[[0,6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],
[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,4,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,
1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,
2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,3,24],[1,3,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],
[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],
uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_stitch:[[1,2,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],
x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[1,8,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,
1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,
5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,1,24],[1,1,24]]};var vvW={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],
arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,
10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,9,18],[0,9,24],[1,9,18],[1,9,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],
card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,
1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,2,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,
2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,
3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,11,24],
[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,1,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],
eyedropper:[[1,2,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,
4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,18],[1,9,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,
1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,
1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,
2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,
24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,
1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],
live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,4,24]],menu:[[1,1,24]],mic:[[0,13,18],[0,13,24],[0,13,48],
[1,13,18],[1,13,24],[1,13,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,3,24],[1,3,18],[1,3,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,
1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],
overflow_vertical:[[1,12,24],[1,12,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,9,18],[1,9,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,2,24],[1,2,18],[1,2,24]],person_add:[[0,7,24],[1,7,18],[1,7,
24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],[1,2,18],[1,2,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],[1,3,24]],piano:[[1,
1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,
1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,4,12],[1,4,18],[1,4,24],[1,4,48]],playlist_add:[[1,2,18],[1,2,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],
playlist_x:[[1,2,18],[1,2,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],
queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,1,24],[1,1,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,
2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,14,24],[1,14,18],[1,14,24],[1,14,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,
24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,3,24],[1,3,18],[1,3,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,2,24],[1,2,36]],skip5_back:[[1,
1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,24],[1,9,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,
2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,1,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,5,24],[1,5,24]],
star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,4,24],[0,4,36],[1,4,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,
1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,
1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,3,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,10,24],
[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,
1,24]],video_link:[[1,5,18],[1,5,24]],video_spark:[[1,1,24]],video_stitch:[[1,2,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,
2,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,8,24],[1,8,18],[1,8,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var tEt={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"},$A=function(f){this.iconUrlProvider=f};
$A.prototype.resolveIcon=function(f,H){var v=tEt[f.iconName.toUpperCase()];v&&(f.iconName=v);var t=f.iconName;t=t.replace(/-/g,"_");f=Object.assign({},f,{iconName:this.mapIconTypeToStandardName(t,!!v)||t.toLowerCase()});if(_.J("enable_web_delhi_icons")||v){var M;return qCB(vvW,f,((M=this.iconUrlProvider)==null?void 0:M.getYtStandardUrl)||tCe,H)}var h;return qCB(HgA,f,((h=this.iconUrlProvider)==null?void 0:h.getYtStandardUrl)||vyT,H)};
$A.prototype.mapIconTypeToStandardName=function(f,H){return _.J("enable_web_delhi_icons")||H?f_t[f.toUpperCase()]:qQM[f.toUpperCase()]};
$A[bN]=[_.vh(k2b)];var MEx=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),hTW=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),RTb=function(f){this.urlProvider=this.iconUrlProvider=f};
_.e(RTb,$A);
RTb.prototype.resolveIcon=function(f,H){f.iconName==="youtube_logo"&&(f.iconName="yt-logo-updated");if(f.iconName==="youtube_premium_logo"||f.iconName==="youtube_red_logo")f.iconName="yt-logo-red-updated";var v=Object.assign({},f);f.iconName==="menu"&&(_.J("enable_web_delhi_icons")||(v.iconName="bars_3"),v.iconStyle="youtube_outline");f.iconSetName==="socialNetworksRound"&&(f.iconName==="mail"&&(v.iconName="email"),f.iconName==="embed"&&(v.iconSize=60));f.iconName==="more"&&(v.iconName="overflow_horizontal");
f.iconName==="fullscreen"&&(v.iconName="screen_full");f.iconName==="premium_standalone"&&(v.iconName="premium_standalone_cairo");_.J("enable_connect_icon_update_web")&&f.iconName==="account_linked"&&(v.iconName="circles_overlap_check",v.iconStyle="youtube_fill");_.J("enable_connect_icon_update_web")&&f.iconName==="account_unlinked"&&(v.iconName="circles_overlap",v.iconStyle="youtube_outline");MEx.has(f.iconName)&&(v.iconStyle="youtube_fill");_.J("enable_web_delhi_icons")&&(f.iconName==="playlist_add"&&
(v.iconName="bookmark"),f.iconName==="offline_pin"&&(v.iconName="arrow_down_circle",v.iconStyle="youtube_fill"),hTW.has(f.iconName)&&(v.iconName+="_updated"));f=Object.assign({},v,{iconName:($A.prototype.mapIconTypeToStandardName.call(this,v.iconName)||v.iconName).toLowerCase()});var t;return(f=qCB(bEh,f,((t=this.urlProvider)==null?void 0:t.getUrl)||MCb,H))?f:$A.prototype.resolveIcon.call(this,v,H)};
RTb[bN]=[_.vh(k2b)];_.VE5=1;var WY=function(f,H){this.JSC$17201_commandHandler=f;this.innertubeTransportService=H};
_.e(WY,ae);WY.prototype.resolveCommand=function(f,H){var v=this,t,M,h;return _.Y(function(y){return(t=_.U(f,Z6M))?y.return(yNp(v,t,(M=H)==null?void 0:(h=M.form)==null?void 0:h.element)):y.return()})};
var yNp=function(f,H,v){H={profileCardContext:H.profileCardContext,profileOwnerExternalChannelId:H.profileOwnerExternalChannelId};var t=_.tt(EIb);return _.Q8(f.innertubeTransportService,H,t).then(function(M){if(!M)throw new _.e$("GetProfileCard failed");if(M=M.popupCommand){f.JSC$17201_commandHandler.resolveCommand(M,{form:{element:v}});_.y8(_.UV(),66557);M=M==null?void 0:M.clickTrackingParams;var h=_.Qe();M&&h&&_.UV().graftServerVe(M,h)}})};
WY[bN]=[_.MJ,_.PS];var O2=function(){};
_.e(O2,ae);O2.prototype.resolveCommand=function(f){var H,v;return _.Y(function(t){H=_.U(f,zKH);if(!H)return t.return();v=Number(H.enableDelayedPacfLoggingTvMs);if(isNaN(v)){var M=Wc();SYb(M,H,0)}else SYb(Wc(),H,v);_.Bj(t)})};_.gG=function(){};
_.e(_.gG,ae);
_.gG.prototype.resolveCommand=function(f,H){var v=this,t,M,h,y,m,W,I;return _.Y(function(S){t=_.U(f,FPo);h=(M=H.form)==null?void 0:M.element;m=(y=h)==null?void 0:y.closest("ytd-enforcement-message-view-model");if(!t||!m)return S.return();v.allowAdsAction||(W=t.fundingChoiceInstructionPageUrl,v.allowAdsAction=new XM9(window,_.pN(W)));var d=v.allowAdsAction;d.wallElement=m;d.allowAdsPopup.style.setProperty("display","flex","important");var Z=d.scrollManager;Z.originalBodyOverflow=Z.JSC$9990_domHelper.JSC$9317_document_.body.style.overflow;Z.JSC$9990_domHelper.JSC$9317_document_.body.style.overflow=
"hidden";d.wallElement.style.setProperty("display","none","important");t7_(d.accessibilityManager,d.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((I=v.allowAdsAction.allowAdsPopup)&&I instanceof HTMLElement)for(d=_.V(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),Z=d.next();!Z.done;Z=d.next()){var l=_.V(Z.value);Z=l.next().value;l=l.next().value;I.style.setProperty(Z,l)}_.Bj(S)})};
_.gG.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var Iz=function(){};
_.e(Iz,ae);Iz.prototype.resolveCommand=function(f){var H;return _.Y(function(v){H=_.U(f,HOh);if(!H)return v.return();CoN(f);_.Bj(v)})};var So=function(f){this.JSC$17216_commandHandler=f};
_.e(So,ae);
So.prototype.resolveCommand=function(f){var H=this,v,t,M,h,y,m,W,I;return _.Y(function(S){if(S.nextAddress==1){v=_.U(f,F4H);if((t=v)==null||!t.text||!navigator.clipboard)return S.return();_.Zc(S,2);return S.yield(navigator.clipboard.writeText(v.text),4)}if(S.nextAddress!=2){if(!v.successActions||v.successActions.length===0)return S.return();M=_.V(v.successActions);for(h=M.next();!h.done;h=M.next())y=h.value,H.JSC$17216_commandHandler.resolveCommand(y);return _.ch(S,0)}_.xu(S);if(!v.failureActions||v.failureActions.length===
0)return S.return();m=_.V(v.failureActions);for(W=m.next();!W.done;W=m.next())I=W.value,H.JSC$17216_commandHandler.resolveCommand(I);_.Bj(S)})};
So[bN]=[_.MJ];var dG=function(f){this.JSC$17220_commandHandler=f};
_.e(dG,ae);
dG.prototype.resolveCommand=function(f,H){var v=this,t,M,h,y,m,W,I,S,d,Z;return _.Y(function(l){switch(l.nextAddress){case 1:t=_.U(f,yGn);if(!t)return l.return();_.Zc(l,2);if(!t.imageBytes&&!t.imageUrl)throw Error("yi");if(!t.imageUrl){if(t.imageBytes){h=t.imageBytes;y=h.replace(/-/g,"+").replace(/_/g,"/");var L=VCv(y);M=_.E4(L)}l.jumpTo(4);break}return l.yield(fetch(t.imageUrl),5);case 5:return m=l.yieldResult,l.yield(m.blob(),6);case 6:W=l.yieldResult,M=_.E4(W);case 4:d=(I=H)==null?void 0:(S=I.form)==
null?void 0:S.element;Z=document.createElement("a");AD(Z,M);d.appendChild(Z);Z.download="";Z.click();d.removeChild(Z);URL.revokeObjectURL(_.QO(M));t.successCommand&&v.JSC$17220_commandHandler.resolveCommand(t.successCommand);_.ch(l,0);break;case 2:_.xu(l),t.errorCommand&&v.JSC$17220_commandHandler.resolveCommand(t.errorCommand),_.Bj(l)}})};
dG[bN]=[_.MJ];var jo=function(f){this.store=f};
_.e(jo,ae);jo.prototype.resolveCommand=function(f){var H=this,v,t,M;return _.Y(function(h){t=(v=_.U(f,_.u4H))==null?void 0:v.entityBatchUpdate;if(!t)return h.jumpTo(0);M=Object.assign({},t,{mutations:[].concat(_.pS(t.mutations||[]))});return h.yield(_.lA(M,H.store),0)})};var Y5A=function(f){this.JSC$17227_commandHandler=f;this.feedbackDialogMap=new Map};
Y5A.prototype.openDialog=function(f,H){(f=this.feedbackDialogMap.get(f))&&this.JSC$17227_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:f}},H)};
Y5A[bN]=[_.MJ];var s2=new _.iN("FEEDBACK_CONTROLLER_TOKEN");var Z$=new _.iN("APP_STORE_TOKEN");var J2=function(f,H){this.store=f;this.controller=H};
_.e(J2,ae);J2.prototype.resolveCommand=function(f,H){var v=this,t,M,h,y,m,W,I,S,d,Z,l,L,r,n,Q,C,w,c;return _.Y(function(A){if(A.nextAddress==1){t=_.U(f,_.B1);if(h=(M=t)==null?void 0:M.contentId)for(m=_.V(((y=t)==null?void 0:y.actions)||[]),W=m.next();!W.done;W=m.next())I=W.value,mrG(v,I,h);Z=(S=H)==null?void 0:(d=S.form)==null?void 0:d.element;return A.yield(_.WV(Z,[f,{impression:(l=H)==null?void 0:l.disableClickTracking}]).catch(function(){}),2)}L=A.yieldResult;
((r=L)==null?0:(n=r.data)==null?0:(Q=n.feedbackResponses)==null?0:Q.length)&&(w=(C=L.data.feedbackResponses[0])==null?void 0:C.followUpDialog)&&h&&(c=v.controller)!=null&&c.feedbackDialogMap.set(h,w);_.Bj(A)})};
var mrG=function(f,H,v){var t=_.U(H,_.Ir);if(t){t=_.V(t.commands||[]);for(var M=t.next();!M.done;M=t.next())mrG(f,M.value,v)}_.U(H,_.sp)&&f.store.dispatch(_.lF("commandEntity",h6H(v),{key:v,command:H}));_.U(H,xtZ)&&f.store.dispatch(_.lF("commandEntity",h6H(v),{key:v,command:H}))};
J2[bN]=[Z$,s2];var lB=function(f){this.controller=f};
_.e(lB,ae);lB.prototype.resolveCommand=function(f,H){var v=this,t,M,h,y;return _.Y(function(m){t=_.U(f,_.N$);h=(M=t)==null?void 0:M.targetId;if(((y=t)==null?void 0:y.signal)!=="TELL_US_WHY"||!h)return m.return();v.controller.openDialog(h,H);_.Bj(m)})};
lB[bN]=[s2];var U2=function(f){this.store=f};
_.e(U2,ae);U2.prototype.resolveCommand=function(f,H){var v=this,t,M,h,y,m,W,I;return _.Y(function(S){t=_.U(f,XuR);h=(M=t)==null?void 0:M.contentId;W=(y=H)==null?void 0:(m=y.form)==null?void 0:m.element;I=_.WV(W,[f]);h&&v.undo(h);return S.yield(I,0)})};
U2.prototype.undo=function(f){this.store.dispatch(_.lF("commandEntity",h6H(f),{key:f,command:void 0}))};
U2[bN]=[Z$];var eo=function(f){this.JSC$17242_commandHandler=f};
_.e(eo,ae);eo.prototype.resolveCommand=function(f){var H=this,v,t,M,h,y,m,W,I;return _.Y(function(S){v=_.U(f,fBv);t=v.flowStateKey;M=v.validationFailureCommand;h=v.submitValidFormCommand;y=StT(_.XX,[t||""]);m=_.U(y,v4C);((W=m)==null?0:W.isValid)&&h&&H.JSC$17242_commandHandler.resolveCommand(h);((I=m)==null?0:I.isValid)||!M||H.JSC$17242_commandHandler.resolveCommand(M);_.Bj(S)})};
eo[bN]=[_.MJ];var Le=function(f){this.innertubeTransportService=f};
_.e(Le,ae);Le.prototype.resolveCommand=function(f,H){var v=this,t;return _.Y(function(M){return M.yield(_.AE(v.innertubeTransportService,f,(t=H)==null?void 0:t.form).then(function(h){var y,m;H==null||(y=H.commandController)==null||(m=y.onSuccess)==null||m.call(y,f,h)},function(h){var y,m;
H==null||(y=H.commandController)==null||(m=y.onServerError)==null||m.call(y,f,h)}),0)})};
Le[bN]=[_.PS];var xA=function(){};
_.e(xA,ae);xA.prototype.resolveCommand=function(f){var H,v,t,M;return _.Y(function(h){if(H=_.U(f,_.sMg)){if(v=H.gtmId)t=_.a8("GL",""),_.F9(v,t);(M=H.gtmData)&&_.r4(M)}_.Bj(h)})};var BY=function(f,H){this.innertubeTransportService=f;this.JSC$17253_actionRouter=H};
_.e(BY,ae);BY.prototype.resolveCommand=function(f){var H=this,v,t;return _.Y(function(M){v=_.U(f,w4h);if(!v)return M.return();t=v.command;if(!t)return M.return();H.JSC$17253_actionRouter.triggerAction("yt-insert-rich-section-action",v);return M.yield(_.AE(H.innertubeTransportService,t,{disableCache:!0}),0)})};
BY[bN]=[_.PS,T3];YGv.bind(null,PO);var $rw=YGv.bind(null,DHr);$Fv.bind(null,PO);var WsW=$Fv.bind(null,DHr);OsN.bind(null,PO);var Og5=OsN.bind(null,DHr);var zc=function(){};
_.e(zc,ae);
zc.prototype.resolveCommand=function(f){var H,v,t,M,h,y,m,W,I,S;return _.Y(function(d){H=_.U(f,QSC);if(!H)return d.return();t=((v=H.operations)==null?void 0:v.operations)||[];M=_.V(t);for(h=M.next();!h.done;h=M.next())if(y=h.value,y.insertItemSectionContent){var Z=y.insertItemSectionContent,l=Z.contents||[];Z.insertByPositionInSection?$rw(Z.insertByPositionInSection.sectionTargetId,l,Z.insertByPositionInSection.position):Z.insertByRelativePositionInSection&&Z.insertByRelativePositionInSection.sectionTargetId&&Z.insertByRelativePositionInSection.itemTargetId&&
WsW(Z.insertByRelativePositionInSection.sectionTargetId,Z.insertByRelativePositionInSection.itemTargetId,l,Z.insertByRelativePositionInSection.relativePosition)}else y.replaceSection?(Z=y.replaceSection,l={},Z.replaceByTargetId?l=Z.replaceByTargetId:Z.replaceByGroupId&&(l={targetId:Z.replaceByGroupId.groupId,newContent:Z.replaceByGroupId.newContent,undoKey:""}),l.newContent&&pza(l.targetId,{continuationItems:[l.newContent]})):y.removeItem?(Z=y.removeItem,Z.removeByTargetId&&Z.sectionTargetId&&Og5(Z.sectionTargetId,
Z.removeByTargetId.targetIds||[])):y.removeSection&&(y.removeSection.removeByTargetId?(m=void 0,gvx(((m=y.removeSection)==null?void 0:m.removeByTargetId.targetIds)||[])):y.removeSection.removeByGroupId&&(W=void 0,gvx(((W=y.removeSection)==null?void 0:W.removeByGroupId.groupIds)||[])));S=((I=H.operations)==null?void 0:I.scrollConfig)||{};I_x(S);_.Bj(d)})};
var gvx=function(f){f=_.V(f);for(var H=f.next();!H.done;H=f.next())pza(H.value,{continuationItems:[]})},I_x=function(f){if(f.scrollToItem){var H=f.scrollToItem.item||{},v=H.itemTargetId;
H=H.sectionTargetId;if(v&&H){var t=document.querySelector("[data-target-id="+H+"]"),M=t==null?void 0:t.querySelector("[data-target-id="+v+"]");t&&M&&setTimeout(function(){var h=M.offsetTop-t.offsetTop,y;if(((y=f.scrollToItem)==null?void 0:y.scrollPosition)==="SCROLL_POSITION_CENTER")h-=t.offsetHeight/2,h+=M.offsetHeight/2;else{var m;((m=f.scrollToItem)==null?void 0:m.scrollPosition)==="SCROLL_POSITION_END"&&(h-=t.offsetHeight,h+=M.offsetHeight)}t.scroll({top:h,behavior:"smooth"})},100)}}};var FN=new _.iN("CLIENT_NAME_TOKEN");var S55=new _.iN("DEFAULT_STORE_EXPIRATION_TOKEN");var MRg=new _.iN("CLIENT_LOCATION_SERVICE_TOKEN");var rG=function(f,H,v){this.clientName=f||_.a8("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=H||_.QS.getInstance();this.JSC$17281_commandHandler=v||_.jW.instance};
_.e(rG,ae);rG.prototype.resolveCommand=function(f){var H=this,v,t;return _.Y(function(M){t=(v=_.U(f,cAv))==null?void 0:v.onComplete;H.clientLocationService.clearLocationPlayabilityToken(H.clientName);t&&H.JSC$17281_commandHandler.resolveCommand(t);_.Bj(M)})};
rG[bN]=[FN,MRg,_.MJ];var Ke=function(f){this.innertubeTransportService=f};
_.e(Ke,ae);Ke.prototype.resolveCommand=function(f,H){var v=this,t,M,h,y;return _.Y(function(m){h=(t=H)==null?void 0:(M=t.form)==null?void 0:M.element;return m.yield(_.AE(v.innertubeTransportService,f,(y=H)==null?void 0:y.form).then(function(W){LYv(h,new CustomEvent("yt-service-request-completed"),{data:W},_.a8("openPopupConfig"))}),0)})};
Ke[bN]=[_.PS];var D$=function(){};
_.e(D$,ae);D$.prototype.resolveCommand=function(f){var H,v;return _.Y(function(t){H=_.U(f,Rzb);v=document.querySelector("mini-app-container-view-model");if(!H||!v)return t.return();H.isPlaying?v.dispatchEvent(new Event("play")):v.dispatchEvent(new Event("pause"));_.Bj(t)})};var oz=function(){};
_.e(oz,ae);oz.prototype.resolveCommand=function(f){var H,v,t,M,h,y,m;return _.Y(function(W){H=_.U(f,OWr);if((v=H)==null||!v.paramKeys)return W.return();t=H.paramKeys;M=_.Ax(window.location.href);h=_.V(t);for(y=h.next();!y.done;y=h.next())m=y.value,M.JSC$10022_queryData_.remove(m);window.history.replaceState(window.history.state,document.title,M.toString());_.Bj(W)})};var drw=function(){this.dropdownMap=new Map};_.j3i=new _.iN("DROPDOWN_CONTROLLER_TOKEN");var ne=function(f){this.controller=f};
_.e(ne,ae);ne.prototype.resolveCommand=function(f){var H=this,v,t,M,h;return _.Y(function(y){v=_.U(f,ApM);if(!v)return y.return();t=v;M=t.dropdownId;h=t.selectedOptionIndex;if(M===void 0||h===void 0)return y.return();var m=H.controller.dropdownMap.get(M);m&&m(h);_.Bj(y)})};
ne[bN]=[_.j3i];var pe=function(f){this.controller=f};
_.e(pe,ae);pe.prototype.resolveCommand=function(f){var H=this,v;return _.Y(function(t){return(v=_.U(f,hub))?t.yield(H.controller.closeDialog(),0):t.return()})};
pe[bN]=[_.FF];var Qo=function(f){this.controller=f};
_.e(Qo,ae);Qo.prototype.resolveCommand=function(f){var H=this,v,t;return _.Y(function(M){v=_.U(f,Cev);if(!v)return M.return();var h,y=v.panelIdentifier||((h=v.identifier)==null?void 0:h.tag);if(!y)throw Error("zi");return(t=y)?M.yield(H.controller.hidePanel(t),0):M.jumpTo(0)})};
Qo[bN]=[_.B5];var uB=function(f,H){this.innertubeTransportService=f;this.controller=H};
_.e(uB,ae);uB.prototype.resolveCommand=function(f){var H=this,v,t,M,h;return _.Y(function(y){if(y.nextAddress==1)return v=_.U(f,Ear),(t=v)!=null&&t.panelId?y.yield(H.controller.getReloadContinuation(v.panelId),2):y.return();if(y.nextAddress!=3)return(M=y.yieldResult)?y.yield(_.AE(H.innertubeTransportService,f,{continuation:M}),3):y.return();h=y.yieldResult;return y.yield(H.controller.updatePanel(v.panelId,h.content,!1),0)})};
uB[bN]=[_.PS,_.B5];var az=function(f,H,v){this.innertubeTransportService=f;this.JSC$17317_screenManager=H;this.JSC$17317_commandHandler=v};
_.e(az,ae);
az.prototype.resolveCommand=function(f){var H=this,v,t,M,h,y,m;return _.Y(function(W){if(W.nextAddress==1){v=_.U(f,_.D_b);if(!v)return W.return();if(v.commands)for(t=_.V(v.commands),M=t.next();!M.done;M=t.next())h=M.value,H.JSC$17317_commandHandler.resolveCommand(h,{disableClickTracking:!0});y=_.zK(f.clickTrackingParams);_.y8(H.JSC$17317_screenManager,21760,y,{layer:7,parentLayer:0});return W.yield(_.AE(H.innertubeTransportService,f),2)}m=W.yieldResult;if(!m)return W.return();H.JSC$17317_screenManager.graftServerVe(m.trackingParams,y,
7);_.Bj(W)})};
az[bN]=[_.PS,_.z$,_.MJ];var PY=new _.iN("PANEL_LOADING_STRATEGY_TOKEN");var Gc=function(f,H){this.controller=f;this.panelLoadingStrategy=H};
_.e(Gc,ae);
Gc.prototype.resolveCommand=function(f,H){var v=this,t,M,h;return _.Y(function(y){t=_.U(f,B4v);if((M=t)==null||!M.panelLoadingStrategy)return y.return();h=function(m){var W,I,S,d,Z,l,L,r,n,Q;return _.Y(function(C){I=_.U((W=m.dialogViewModel)==null?void 0:W.header,bMh);S={viewModel:m.dialogViewModel};d={};if(L=_.J("web_enable_dialog_header_label")?(Z=I)==null?void 0:(l=Z.headline)==null?void 0:l.content:void 0)d.ariaLabel=L;t.dismissOnBackgroundTap===!1&&(d.isModal=!0);return m.dialogViewModel?C.yield(v.controller.openDialog(S,
(Q=(r=H)==null?void 0:(n=r.form)==null?void 0:n.element)!=null?Q:document.body,d),0):C.return()})};
return y.yield(v.panelLoadingStrategy.execute({command:f,data:t.panelLoadingStrategy,renderFn:h,createScreenConfig:{layer:4}}),0)})};
Gc[bN]=[_.FF,PY];var Ce=function(f,H,v){this.innertubeTransportService=f;this.controller=H;this.JSC$17337_screenManager=v};
_.e(Ce,ae);
Ce.prototype.resolveCommand=function(f,H){var v=this,t,M,h,y,m,W,I,S,d,Z,l,L;return _.Y(function(r){switch(r.nextAddress){case 1:t=_.U(f,_.UH);if(!t)return r.return();var n,Q=t.panelIdentifier||((n=t.identifier)==null?void 0:n.tag);if(!Q)throw Error("zi");M=Q;return r.yield(v.controller.isVisible(M,!0),2);case 2:if((h=r.yieldResult)&&t.blockIfPanelOpen)return r.return();W=(m=(y=v.controller).getPanelContent)==null?void 0:m.call(y,M);if(!(n=W))if(t){var C;n=((C=t.globalConfiguration)==null?void 0:
C.initialState)||t.engagementPanel;if(C=!n)C=!!(t==null?0:(Q=t.engagementPanelPresentationConfigs)==null?0:Q.engagementPanelPopupPresentationConfig);C&&(n=_.gy_(t.panelIdentifier,t.identifier))}else n=void 0;I=n;S=t.engagementPanelPresentationConfigs;d=t.engagementPanelExtras;return r.yield(v.controller.showPanel(M,I,S,d,(Z=H)==null?void 0:(l=Z.form)==null?void 0:l.element),3);case 3:if(!t.globalConfiguration){r.jumpTo(0);break}_.y8(v.JSC$17337_screenManager,32633);return r.yield(_.AE(v.innertubeTransportService,
f),5);case 5:return L=r.yieldResult,v.JSC$17337_screenManager.graftServerVe(L.trackingParams),r.yield(v.controller.updatePanel(M,L.content,!0,d,void 0,L.updatePanelContinuationData),0)}})};
Ce[bN]=[_.PS,_.B5,_.z$];var E2=function(f,H){this.controller=f;this.panelLoadingStrategy=H};
_.e(E2,ae);E2.prototype.resolveCommand=function(f,H){var v=this,t,M,h,y,m,W;return _.Y(function(I){t=_.U(f,_.U7);if((M=t)==null||!M.panelLoadingStrategy)return I.return();m=s30(v.controller,(h=H)==null?void 0:(y=h.form)==null?void 0:y.element);W=function(S){return _.Y(function(d){return S.sheetViewModel?d.yield(v.controller.openSheet({viewModel:S.sheetViewModel},m),0):d.return()})};
return I.yield(v.panelLoadingStrategy.execute({command:f,data:t.panelLoadingStrategy,renderFn:W,createScreenConfig:{layer:0}}),0)})};
E2[bN]=[_.zQ,PY];var Na=function(f,H){this.controller=f;this.JSC$17345_commandHandler=H};
_.e(Na,ae);Na.prototype.resolveCommand=function(f,H){var v=this,t,M,h;return _.Y(function(y){if(y.nextAddress==1){t=_.U(f,Aqh);var m=_.U(t.showCommand,_.UH),W,I,S=(I=m==null?void 0:m.panelIdentifier)!=null?I:m==null?void 0:(W=m.identifier)==null?void 0:W.tag;if(!S)throw Error("Ai");M=S;return y.yield(v.controller.isVisible(M),2)}return(h=y.yieldResult)?y.yield(v.controller.hidePanel(M),0):y.yield(v.JSC$17345_commandHandler.resolveCommand(t.showCommand,H),0)})};
Na[bN]=[_.B5,_.MJ];var cY=function(f,H,v){this.innertubeTransportService=f;this.controller=H;this.JSC$17348_screenManager=v};
_.e(cY,ae);
cY.prototype.resolveCommand=function(f){var H=this,v,t,M,h,y,m,W,I,S,d,Z,l,L,r,n,Q,C,w,c,A,X,fg;return _.Y(function(gB){switch(gB.nextAddress){case 1:return t=v=_.U(f,b3Z),M=t.targetPanelIdentifier,h=t.contentSourcePanelIdentifier,y=t.globalConfiguration,((m=M)==null?0:m.tag)&&((W=h)==null?0:W.tag)?y?gB.yield(H.controller.showPanel(M.tag,_.gy_(M.tag,M),void 0,void 0,void 0),5):gB.yield((Z=(d=H.controller).getPanel)==null?void 0:Z.call(d,h.tag),4):gB.return();case 4:l=gB.yieldResult;I=(L=l)==null?
void 0:(n=(r=L).getPanelContent)==null?void 0:n.call(r);gB.jumpTo(3);break;case 5:return gB.yield(_.AE(H.innertubeTransportService,f),6);case 6:Q=gB.yieldResult,((C=Q)==null?0:C.trackingParams)&&H.JSC$17348_screenManager.graftServerVe(Q.trackingParams),I=(w=Q)==null?void 0:w.content,S=(c=Q)==null?void 0:c.updatePanelContinuationData;case 3:if(X=(A=I)==null?void 0:A.engagementPanelSectionListRenderer)return gB.yield(H.controller.showPanel(M.tag,void 0,void 0,void 0,void 0,{content:X.content,secondaryHeaderContent:(fg=
X.header)!=null?fg:{},targetId:X.targetId},S),0);gB.jumpTo(0)}})};
cY[bN]=[_.PS,_.B5,_.z$];var Zgw=function(){};
_.e(Zgw,ae);Zgw.prototype.resolveCommand=function(f){var H,v,t;return _.Y(function(M){if(M.nextAddress==1)return(H=_.U(f,HK9))?M.yield(_.Wx(),2):M.return();v=M.yieldResult;if(!v)return M.return();var h=v,y=(t=H)==null?void 0:t.languageCode,m;(h==null?0:(m=h.isReady)==null?0:m.call(h))&&(y=I9v(h,y))&&h.setAudioTrack(y);_.Bj(M)})};var XN=function(){};
_.e(XN,ae);var JNt=function(f){var H;return _.Y(function(v){H=_.a8("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;f.JSC$17359_mainAppPlayer=new Tl(H);document.addEventListener("yt-page-data-updated",f.JSC$17359_pauseOnNavigation.bind(f));_.Bj(v)})};
XN.prototype.JSC$17359_pauseOnNavigation=function(){var f=this,H,v;return _.Y(function(t){if(t.nextAddress==1)return H=f.JSC$17359_mainAppPlayer,t.yield(H.api,2);v=t.yieldResult;v.pauseVideo();_.Bj(t)})};
var l_A=function(f,H,v){var t;return _.Y(function(M){t=f.JSC$17359_mainAppPlayer;return M.yield(t.loadVideoWithPlayerVars({videoId:H,audio_only:"1",player_params:v}),0)})};
XN.prototype.pauseVideo=function(){var f=this,H,v;return _.Y(function(t){if(t.nextAddress==1)return H=f.JSC$17359_mainAppPlayer,t.yield(H.api,2);v=t.yieldResult;v.pauseVideo();_.Bj(t)})};
XN.prototype.playVideo=function(){var f=this,H,v;return _.Y(function(t){if(t.nextAddress==1)return H=f.JSC$17359_mainAppPlayer,t.yield(H.api,2);v=t.yieldResult;v.playVideo();_.Bj(t)})};
var Urx=function(f){var H,v;return _.Y(function(t){if(t.nextAddress==1)return H=f.JSC$17359_mainAppPlayer,t.yield(H.api,2);v=t.yieldResult;v.mute();_.Bj(t)})},eTb=function(f){var H,v;
return _.Y(function(t){if(t.nextAddress==1)return H=f.JSC$17359_mainAppPlayer,t.yield(H.api,2);v=t.yieldResult;v.unMute();_.Bj(t)})},Lsb=function(f,H){return _.Y(function(v){switch(v.nextAddress){case 1:switch(H){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return v.jumpTo(2);
case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return v.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return v.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return v.jumpTo(5)}v.jumpTo(0);break;case 2:return v.yield(f.playVideo(),7);case 7:v.jumpTo(0);break;case 3:return v.yield(f.pauseVideo(),8);case 8:v.jumpTo(0);break;case 4:return v.yield(Urx(f),9);case 9:v.jumpTo(0);break;case 5:return v.yield(eTb(f),10);case 10:v.jumpTo(0)}})};
XN.prototype.resolveCommand=function(f){var H=this,v,t,M,h,y,m,W,I,S,d,Z;return _.Y(function(l){return l.nextAddress==1?(v=_.U(f,HZa),((t=v)==null?0:t.newPlaybackParams)||((M=v)==null?0:M.controlAction)?H.JSC$17359_mainAppPlayer?l.jumpTo(2):l.yield(JNt(H),2):l.return()):((h=v)==null?0:h.newPlaybackParams)?(W=(y=v)==null?void 0:(m=y.newPlaybackParams)==null?void 0:m.externalVideoId,Z=(d=(I=v)==null?void 0:(S=I.newPlaybackParams)==null?void 0:S.playerParams)!=null?d:"",W?l.yield(l_A(H,W,Z),0):l.return()):
l.yield(Lsb(H,v.controlAction),0)})};var A2=function(f){this.JSC$17366_commandHandler=f};
_.e(A2,ae);
A2.prototype.resolveCommand=function(f){var H=this,v,t,M,h,y,m;return _.Y(function(W){if(W.nextAddress==1)return(v=_.U(f,vag))?W.yield(_.Wx(),2):W.return();t=W.yieldResult;if(!t)return W.return();var I=t,S=(M=v)==null?void 0:M.languageCode,d=(h=v)==null?void 0:h.isAutoTranslated;I.getVideoData&&_.dFR(I).length&&((S=s4g(I,S,d))?I.setOption("captions","track",S):(I.setOption("captions","stickyLoading",{}),I.setOption("captions","track",{})));y=t.isSubtitlesOn()?_.ZC("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.ZC("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");m=_.ht(y);H.JSC$17366_commandHandler.resolveCommand(m);_.Bj(W)})};
A2[bN]=[_.MJ];var bB=function(f,H){this.shortsPlayerPromise=f;this.JSC$17370_commandHandler=H};
_.e(bB,ae);
bB.prototype.resolveCommand=function(f){var H=this,v,t,M,h,y,m,W,I;return _.Y(function(S){if(S.nextAddress==1)return(v=_.U(f,Z39))?S.yield(H.shortsPlayerPromise,2):S.return();t=S.yieldResult;var d=ZsB(t);d!=null&&d.length||(t.loadModule("captions"),d=ZsB(t));M=d;if((h=M)==null||!h.length)return y=_.ZC("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),m=_.ht(y),H.JSC$17370_commandHandler.resolveCommand(m),S.return();t.toggleSubtitles();W=t.isSubtitlesOn()?_.ZC("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.ZC("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");I=_.ht(W);H.JSC$17370_commandHandler.resolveCommand(I);_.Bj(S)})};
bB[bN]=[_.yor,_.MJ];var iB=function(f){this.JSC$17373_actionRouter=f;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(H,v){H.triggerAction("yt-dismiss-shopping-timely-shelf-action",v)}]])};
_.e(iB,ae);iB.prototype.resolveCommand=function(f){var H=this,v,t,M;return _.Y(function(h){v=_.U(f,Rur);if((t=v)==null||!t.overlayId)return h.return();M=H.dismissPlayerOverlayActions.get(v.overlayId);if(!M)throw Error("Bi`"+v.overlayId);M(H.JSC$17373_actionRouter,v);_.Bj(h)})};
iB[bN]=[T3];var Tc=function(f){this.JSC$17377_playerPromise=f};
_.e(Tc,ae);Tc.prototype.resolveCommand=function(f){var H=this,v,t,M,h;return _.Y(function(y){if(y.nextAddress==1)return(v=_.U(f,cqC))?y.yield(H.JSC$17377_playerPromise,2):y.return();t=y.yieldResult;M=t.getVideoData().video_id;v.videoId===M&&(h=Number(v.offsetFromVideoStartMilliseconds),h>=0&&t.seekTo(h/1E3));_.Bj(y)})};
Tc[bN]=[_.V4];var xr0=_.SB("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),wG=function(f){this.store=f};
_.e(wG,ae);
var BB0=function(f){var H,v,t,M;return _.Y(function(h){if(h.nextAddress==1)return H=_.a8("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,v=_.a8("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,t=H||v,f.JSC$17381_mainAppPlayer=new Tl(t),h.yield(f.JSC$17381_mainAppPlayer.api,2);M=h.yieldResult;M.addEventListener("onStateChange",f.JSC$17381_playerStateChangeListener.bind(f));document.addEventListener("yt-page-data-updated",f.JSC$17381_pauseOnNavigation.bind(f));window.addEventListener("state-navigatestart",
f.JSC$17381_pauseOnNavigation.bind(f));_.Bj(h)})};
wG.prototype.JSC$17381_playerStateChangeListener=function(f){switch(f){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"}zTG(this)};
var zTG=function(f){f.store.dispatch(_.lF("sfvAudioItemCurrentlyPlayingEntity",xr0,{key:xr0,externalVideoId:f.externalVideoId,sfvAudioItemPlaybackState:f.playbackState,nowPlayingEntityValue:f.nowPlayingEntityValue}))};
wG.prototype.JSC$17381_pauseOnNavigation=function(){var f=this,H,v,t,M;return _.Y(function(h){if(h.nextAddress==1){if(!f.JSC$17381_mainAppPlayer){var y=new _.e$("Error: mainAppPlayer is unavailable",f.JSC$17381_mainAppPlayer);_.oO(y);return h.return()}return h.yield(f.JSC$17381_mainAppPlayer.api,2)}H=h.yieldResult;t=(v=H)==null?void 0:v.getPlayerState();t!==1||(M=H)!=null&&M.pauseVideo();_.Bj(h)})};
wG.prototype.playVideo=function(f,H,v){var t=this,M,h;return _.Y(function(y){if(y.nextAddress==1)return y.yield((M=t.JSC$17381_mainAppPlayer)==null?void 0:M.api,2);h=y.yieldResult;if(!t.JSC$17381_mainAppPlayer||!h){var m=new _.e$("Error: mainAppPlayer is unavailable",t.JSC$17381_mainAppPlayer);_.oO(m);return y.return()}return y.yield(t.JSC$17381_mainAppPlayer.loadVideoWithPlayerVars({videoId:t.externalVideoId,audio_only:"1",start:f/1E3,end:f/1E3+H,player_params:v}),0)})};
wG.prototype.pauseVideo=function(){var f=this,H,v;return _.Y(function(t){if(t.nextAddress==1){if(!f.JSC$17381_mainAppPlayer){var M=new _.e$("Error: mainAppPlayer is unavailable",f.JSC$17381_mainAppPlayer);_.oO(M);return t.return()}return t.yield(f.JSC$17381_mainAppPlayer.api,2)}H=t.yieldResult;(v=H)==null||v.pauseVideo();_.Bj(t)})};
wG.prototype.resolveCommand=function(f){var H=this,v,t,M,h,y,m,W,I,S,d,Z,l,L,r,n,Q,C,w,c;return _.Y(function(A){if(A.nextAddress==1)return v=_.U(f,SpM),M=(t=v)==null?void 0:t.nowPlayingEntityValue,y=(h=v)==null?void 0:h.externalVideoId,d=Number((S=(m=v)==null?void 0:(W=m.defaultStartPoints)==null?void 0:(I=W[0])==null?void 0:I.offsetMs)!=null?S:"0"),Q=Number((n=(Z=v)==null?void 0:(l=Z.defaultStartPoints)==null?void 0:(L=l[0])==null?void 0:(r=L.duration)==null?void 0:r.seconds)!=null?n:"15"),c=(w=
(C=v)==null?void 0:C.playerParams)!=null?w:"",M&&y?H.JSC$17381_mainAppPlayer?A.jumpTo(2):A.yield(BB0(H),2):A.return();if(A.nextAddress!=6){if(H.nowPlayingEntityValue&&M===H.nowPlayingEntityValue)return H.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?A.yield(H.pauseVideo(),0):A.yield(H.playVideo(d,Q,c),0);H.externalVideoId=y;H.nowPlayingEntityValue=M;H.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return A.yield(H.playVideo(d,Q,c),6)}zTG(H);return A.jumpTo(0)})};
wG[bN]=[qi];var Fsb=function(f){this.JSC$17399_commandHandler=f};
_.e(Fsb,ae);Fsb.prototype.resolveCommand=function(f,H){var v=this,t,M,h;return _.Y(function(y){if(y.nextAddress==1)return(t=_.U(f,thZ))?y.yield(_.Wx(),2):y.return();M=y.yieldResult;if(!M)return y.return();(h=JuH(M))&&v.JSC$17399_commandHandler.resolveCommand(h,H);_.Bj(y)})};
Fsb[bN]=[_.MJ];var qa=function(f){this.JSC$17405_commandHandler=f};
_.e(qa,ae);qa.prototype.resolveCommand=function(f,H){var v=this,t,M,h,y,m;return _.Y(function(W){if(W.nextAddress==1)return(t=_.U(f,Mhn))?W.yield(_.Wx(),2):W.return();M=W.yieldResult;if(!M)return W.return();(h=xFH(M))?v.JSC$17405_commandHandler.resolveCommand(h,H):(y=_.ZC("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),m=_.ht(y),v.JSC$17405_commandHandler.resolveCommand(m));_.Bj(W)})};
qa[bN]=[_.MJ];var fi=function(f){this.JSC$17408_playerPromise=f};
_.e(fi,ae);fi.prototype.resolveCommand=function(f){var H=this,v,t,M,h,y;return _.Y(function(m){if(m.nextAddress==1){v=_.U(f,Xtv);if(!v)return m.return();t=v.overlayRenderer;return t?(M=_.U(t,y$M))?m.yield(H.JSC$17408_playerPromise,3):m.jumpTo(0):m.return()}h=m.yieldResult;h.renderChapterSeekingAnimation(1,_.fG(M.text),(y=M.icon)==null?void 0:y.iconType);_.Bj(m)})};
fi[bN]=[_.V4];var H0=function(f){this.store=f};
_.e(H0,ae);
H0.prototype.resolveCommand=function(f){var H=this,v,t,M;return _.Y(function(h){if(h.nextAddress==1){v=_.U(f,vJn);if(!v)return h.return();t="";(M=H.store.getState().collabInviteLink)&&v.id===M.playlistId?t=M.inviteLinkURL:v.shortUrl&&(t=v.shortUrl);return t?h.yield(navigator.clipboard.writeText(t),3):h.jumpTo(0)}var y={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.ZC("COPY_LINK_SUCCESS_TOAST")}}}}};_.t8().resolve(_.MJ).resolveCommand(y);_.Bj(h)})};
H0[bN]=[Z$];var v0=function(f,H){this.innertubeTransportService=f;this.JSC$17418_commandHandler=H};
_.e(v0,ae);v0.prototype.resolveCommand=function(f,H){var v=this,t,M,h,y,m,W,I,S,d,Z;return _.Y(function(l){if(l.nextAddress==1)return(t=_.U(f,_.uP))?l.yield(_.AE(v.innertubeTransportService,f,(M=H)==null?void 0:M.form),2):l.return();(h=l.yieldResult)&&h.errorMetadata&&(y=h,m=_.ht(y.error.message),v.JSC$17418_commandHandler.resolveCommand(m));W=h;if((I=W)==null?0:I.actions)for(S=_.V(W.actions),d=S.next();!d.done;d=S.next())Z=d.value,v.JSC$17418_commandHandler.resolveCommand(Z);_.Bj(l)})};
v0[bN]=[_.PS,_.MJ];var tR=function(){};
_.e(tR,ae);tR.prototype.resolveCommand=function(f){var H;return _.Y(function(v){H=_.U(f,XU_);if(!H)return v.return();(new YWn(H)).show();_.Bj(v)})};_.MG=new _.iN("PLAYLIST_EDIT_CONTROLLER_TOKEN");var hR=function(f,H,v,t){this.store=f;this.innertubeTransportService=H;this.controller=v;this.JSC$17426_commandHandler=t};
_.e(hR,ae);
hR.prototype.resolveCommand=function(f,H){var v=this,t,M,h,y,m,W,I,S,d,Z,l,L,r,n,Q,C,w,c,A,X,fg,gB,O5,s5,U5,lH;return _.Y(function(E5){if(E5.nextAddress==1){t=_.U(f,_.Kv);if(!t)return E5.return();if(t.clientActions){M=_.V(t.clientActions);for(h=M.next();!h.done;h=M.next())y=h.value,v.JSC$17426_commandHandler.resolveCommand(y);var uH,Rn=H==null?void 0:(uH=H.form)==null?void 0:uH.element;Rn&&_.YE(Rn,"yt-dismissible-item-action",t.clientActions)}return E5.yield(_.AE(v.innertubeTransportService,f,(m=
H)==null?void 0:m.form),2)}if(W=E5.yieldResult)W.errorMetadata?(I=W,S=_.ht(I.error.message),v.JSC$17426_commandHandler.resolveCommand(S),"error"in W&&((d=H)==null?0:(Z=d.commandController)==null?0:Z.onServerError)&&((l=H)==null||(L=l.commandController)==null||L.onServerError(f,W))):(r=H)==null||(n=r.commandController)==null||(C=(Q=n).onSuccess)==null||C.call(Q,f,W);w=W;((c=w)==null?0:c.collaborationInviteLink)&&t.playlistId&&(_.J("web_enable_invite_collaborators_link")||_.J("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
v.store.dispatch(_.yq({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:t.playlistId,inviteLinkUrl:w.collaborationInviteLink}}));((A=w)==null?0:A.redirectEndpoint)&&v.JSC$17426_commandHandler.resolveCommand(w.redirectEndpoint);((X=w)==null?0:(fg=X.newHeader)==null?0:fg.playlistHeaderRenderer)?rNt(v.controller,w.newHeader.playlistHeaderRenderer):((gB=w)==null?0:(O5=gB.newHeader)==null?0:O5.musicEditablePlaylistDetailHeaderRenderer)&&rNt(v.controller,w.newHeader.musicEditablePlaylistDetailHeaderRenderer);
v.controller.playlistVideoListElement&&((s5=w)==null?0:(U5=s5.playlistEditResults)==null?0:(lH=U5[0])==null?0:lH.playlistEditVideoAddedResultData)&&((Rn=v.controller.playlistVideoListElement)==null||Rn.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:w.playlistEditResults[0].playlistEditVideoAddedResultData})));_.Bj(E5)})};
hR[bN]=[Z$,_.PS,_.MG,_.MJ];var RR=function(f,H){this.controller=f;this.JSC$17436_commandHandler=H};
_.e(RR,ae);RR.prototype.resolveCommand=function(f,H){var v=this,t,M,h;return _.Y(function(y){t=_.U(f,tdM);v.controller.showRefreshPill&&((M=t)==null?0:M.command)&&(v.JSC$17436_commandHandler.resolveCommand((h=t)==null?void 0:h.command,H),v.controller.showRefreshPill=!1);_.Bj(y)})};
RR[bN]=[_.V9,_.MJ];var VV=function(f,H){this.store=f;this.JSC$17440_commandHandler=H||_.jW.instance};
_.e(VV,ae);VV.prototype.resolveCommand=function(f,H){var v=this,t,M,h,y,m,W,I,S,d,Z;return _.Y(function(l){t=_.U(f,Svo);M=v.store.getState().radioButtonGroup;if((h=t)==null?0:h.command)v.JSC$17440_commandHandler.resolveCommand((y=t)==null?void 0:y.command,H);else if(M&&((m=t)==null?void 0:m.formId)===M.currentFormId)for(W=Object.values(M.commandsMap),I=_.V(W),S=I.next();!S.done;S=I.next())d=S.value,(Z=_.GK(d))&&v.JSC$17440_commandHandler.resolveCommand(Z,H);_.Bj(l)})};
VV[bN]=[_.aj];var yV=new _.iN("USER_PREFS");var YG=function(f){this.JSC$17445_prefCookie=f};
_.e(YG,ae);YG.prototype.resolveCommand=function(f){var H=this,v;return _.Y(function(t){(v=_.U(f,uJh))&&typeof v.useListView==="boolean"&&(_.eG(0,155,v.useListView),H.JSC$17445_prefCookie.save());_.Bj(t)})};
YG[bN]=[yV];var mT=function(f){this.JSC$17449_prefCookie=f};
_.e(mT,ae);mT.prototype.resolveCommand=function(f){var H=this,v,t,M,h,y;return _.Y(function(m){v=_.U(f,bhh);if((t=v)==null||!t.gl)return m.return();M=v.gl;h={persist_gl:"1",gl:M};H.JSC$17449_prefCookie.set("gl",M);H.JSC$17449_prefCookie.save();y=Dx_(h);_.iY(y);_.Bj(m)})};
mT[bN]=[yV];var $G=function(f){this.JSC$17453_prefCookie=f};
_.e($G,ae);$G.prototype.resolveCommand=function(f){var H=this,v,t;return _.Y(function(M){v=_.U(f,hQC);if(!v)return M.return();t=!1;v.flagNum&&typeof v.value==="boolean"?(_.eG(0,v.flagNum,v.value),t=!0):v.key&&typeof v.stringValue==="string"&&(H.JSC$17453_prefCookie.set(v.key,v.stringValue),t=!0);t&&H.JSC$17453_prefCookie.save();_.Bj(M)})};
$G[bN]=[yV];var W0=new _.iN("PREF_STORAGE_PROMISE_TOKEN");var Ol=function(f){this.JSC$17457_prefStoragePromise=f};
_.e(Ol,ae);Ol.prototype.resolveCommand=function(f){var H=this,v,t;return _.Y(function(M){if(M.nextAddress==1)return(v=_.U(f,Vdr))?M.yield(H.JSC$17457_prefStoragePromise,2):M.return();t=M.yieldResult;return t===void 0||v.key===void 0||v.value===void 0?M.return():M.yield(t.set(v.key,v.value),0)})};
Ol[bN]=[W0];var Ksh=function(f){this.innertubeTransportService=f};
_.e(Ksh,ae);Ksh.prototype.resolveCommand=function(f,H){var v=this,t,M;return _.Y(function(h){(t=_.U(f,_.PPh))&&t&&t.isFirstRequest&&(_.QZ("search_overview_answer"),_.u0("so_rq",void 0,"search_overview_answer"));return h.yield(_.AE(v.innertubeTransportService,f,(M=H)==null?void 0:M.form),0)})};
Ksh[bN]=[_.PS];var DrA=function(){};
_.e(DrA,ae);
DrA.prototype.resolveCommand=function(f){var H,v,t,M,h,y,m,W,I;return _.Y(function(S){H=_.U(f,Ngb);if((v=H)==null?0:v.sectionIdentifier){if(H.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(M=(t=document.getElementsByTagName(H.sectionIdentifier))==null?void 0:t.item(0))M.scrollIntoView({behavior:"smooth"}),(h=aIR(M))&&h.focus({preventScroll:!0});return S.return()}y=document.querySelector("[section-identifier="+H.sectionIdentifier+"]");m=document.querySelector("[section-identifier="+H.referenceSectionIdentifier+
"]");if(!y)return S.return();W=H.verticalScrollOffsetDp?H.verticalScrollOffsetDp:0;m&&(W-=m.offsetTop);window.scrollTo({top:y.offsetTop+W,behavior:"smooth"});(I=aIR(y))&&I.focus({preventScroll:!0})}_.Bj(S)})};var gl=function(f){this.JSC$17469_commandHandler=f};
_.e(gl,ae);
gl.prototype.resolveCommand=function(f){var H=this,v,t,M,h,y,m,W;return _.Y(function(I){if(I.nextAddress==1){v=_.U(f,YIh);if(!v||!v.imageBytes||!navigator.clipboard)return I.return();if(v.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.oO(Error("Di")),I.return();_.Zc(I,2);M=(t=v)==null?void 0:t.imageBytes;h=M.replace(/-/g,"+").replace(/_/g,"/");y=VCv(h);m={};W=[new ClipboardItem((m[y.type]=y,m))];return I.yield(navigator.clipboard.write(W),4)}if(I.nextAddress!=2)return v.successCommand&&
H.JSC$17469_commandHandler.resolveCommand(v.successCommand),_.ch(I,0);_.xu(I);v.errorCommand&&H.JSC$17469_commandHandler.resolveCommand(v.errorCommand);_.Bj(I)})};
gl[bN]=[_.MJ];var IR=function(f,H){this.innertubeTransportService=f;this.JSC$17473_commandHandler=H};
_.e(IR,ae);IR.prototype.resolveCommand=function(f,H){var v=this,t,M,h,y,m;return _.Y(function(W){if(W.nextAddress==1)return(t=_.U(f,mIH))?W.yield(_.AE(v.innertubeTransportService,f,(M=H)==null?void 0:M.form),2):W.return();(h=W.yieldResult)&&h.errorMetadata&&t.onFailureCommand&&v.JSC$17473_commandHandler.resolveCommand(t.onFailureCommand);y=h;((m=y)==null?0:m.shareCommand)&&v.JSC$17473_commandHandler.resolveCommand(y.shareCommand,H);_.Bj(W)})};
IR[bN]=[_.PS,_.MJ];var Sm=function(){};
_.e(Sm,ae);Sm.prototype.resolveCommand=function(f){var H,v;return _.Y(function(t){H=_.U(f,fYa);if(!H||!navigator.share)return t.return();v={url:H.url};try{return t.return(navigator.share(v))}catch(M){}_.Bj(t)})};var dl=function(){};
_.e(dl,ae);dl.prototype.resolveCommand=function(){return _.Y(function(f){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.Bj(f)})};var jm=function(f){this.JSC$17483_navigationConfirmationService=f};
_.e(jm,ae);jm.prototype.resolveCommand=function(){var f=this;return _.Y(function(H){f.JSC$17483_navigationConfirmationService.cancelPendingNavigation();_.Bj(H)})};
jm[bN]=[ss];var sl=function(f){this.JSC$17486_screenManager=f};
_.e(sl,ae);sl.prototype.resolveCommand=function(f,H){var v=this,t,M,h,y,m,W,I;return _.Y(function(S){M=(t=H.form)==null?void 0:t.event;y=(h=H.form)==null?void 0:h.element;if(!M)throw new _.e$("Event not passed in when resolving command");m=_.V(M.composedPath());for(W=m.next();!W.done;W=m.next())if(I=W.value,I.tagName==="YT-COPY-LINK-RENDERER")return I.copyUrlToClipboard(),y&&_.NY(v.JSC$17486_screenManager,y),S.return();_.Bj(S)})};
sl[bN]=[_.z$];var ZA=function(){this.JSC$17490_miniAppClientDataProvider=_.t8().resolve(_.Np)};
_.e(ZA,ae);ZA.prototype.resolveCommand=function(){var f=this,H,v;return _.Y(function(t){if(f.JSC$17490_miniAppClientDataProvider.clientData.has("video_id")){var M=f.JSC$17490_miniAppClientDataProvider,h=M.clientData.get("video_id");h&&M.clientData.delete("video_id");H="https://youtube.com/watch?v="+h;v=_.Pv(H);if(v===void 0)throw Error("Ei`"+H);_.we(window,v)}_.Bj(t)})};var JR=function(){};
_.e(JR,ae);JR.prototype.resolveCommand=function(){return _.Y(function(f){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.Bj(f)})};var lR=function(){};
_.e(lR,ae);lR.prototype.resolveCommand=function(){var f;return _.Y(function(H){if(H.nextAddress==1)return H.yield(_.sER(window.document.documentElement),2);(f=document.querySelector("mini-app-container-view-model iframe"))&&f.focus();_.Bj(H)})};var Ul=function(f){this.JSC$17497_navigationConfirmationService=f};
_.e(Ul,ae);
Ul.prototype.resolveCommand=function(){var f=this;return _.Y(function(H){var v=f.JSC$17497_navigationConfirmationService,t=_.t8().resolve(_.eD),M;if(((M=v.navigateParams)==null?void 0:M.data)!==void 0){var h;_.O7h(t,v.navigateParams.endpoint,v.navigateParams.data,(h=v.navigateParams.navigationType)!=null?h:1,v.navigateParams.tempData,v.navigateParams.isMiniplayer,void 0,!0);v.navigateParams=void 0;v.customConfirmationCommand=void 0}else v.navigateParams&&(t.navigate(v.navigateParams.endpoint,v.navigateParams.reload,
v.navigateParams.params,v.navigateParams.tempData,v.navigateParams.requestType,v.navigateParams.createScreenConfig,!0),v.navigateParams=void 0,v.customConfirmationCommand=void 0);_.Bj(H)})};
Ul[bN]=[ss];var em=function(){};
_.e(em,ae);em.prototype.resolveCommand=function(){return _.Y(function(f){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.Bj(f)})};var Li=function(f){this.JSC$17502_prefStorage=f};
_.e(Li,ae);Li.prototype.resolveCommand=function(){var f=this,H,v;return _.Y(function(t){switch(t.nextAddress){case 1:return t.yield(f.JSC$17502_prefStorage,2);case 2:return(H=t.yieldResult)?t.yield(H.set("sfvle",!1),3):t.return();case 3:return t.yield(H.set("sfvles",!0),4);case 4:v=_.Uj(),_.eG(0,203,!1),_.eG(0,204,!0),v.save(),_.Bj(t)}})};
Li[bN]=[W0];var xG=function(f){this.JSC$17505_prefStorage=f};
_.e(xG,ae);xG.prototype.resolveCommand=function(){var f=this,H,v;return _.Y(function(t){switch(t.nextAddress){case 1:return t.yield(f.JSC$17505_prefStorage,2);case 2:return(H=t.yieldResult)?t.yield(H.set("sfvle",!0),3):t.return();case 3:return t.yield(H.set("sfvles",!0),4);case 4:v=_.Uj(),_.eG(0,203,!0),_.eG(0,204,!0),v.save(),_.Bj(t)}})};
xG[bN]=[W0];_.ov0=new _.iN("SNACKBAR_CONTROLLER_TOKEN");_.nv5=new _.iN("SHOULD_SHOW_PIVOT_BAR_TOKEN");var B0=function(f){this.controller=f};
_.e(B0,ae);B0.prototype.resolveCommand=function(f){var H=this,v;return _.Y(function(t){v=_.U(f,xBa);if(!v)return t.return();var M=H.controller;M.closeSnackbarFn&&M.closeSnackbarFn();_.Bj(t)})};
B0[bN]=[_.ov0];var zd=function(f,H){this.controller=f;this.sheetController=H};
_.e(zd,ae);zd.prototype.resolveCommand=function(f,H){var v=this,t,M,h,y,m,W;return _.Y(function(I){t=_.U(f,zPv);if(!t)return I.return();y=s30(v.sheetController,(M=H)==null?void 0:(h=M.form)==null?void 0:h.element);m=_.U(t.content,Eio);if(!m)return I.return();var S=v.controller,d=m,Z=(W=t.animationStyle)!=null?W:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(S.showSnackbarFn)S.showSnackbarFn({snackbarViewModel:d,animationStyle:Z,durationMs:t.durationSeconds*1E3,target:y});else throw Error("oj");_.Bj(I)})};
zd[bN]=[_.ov0,_.zQ];var Ft=function(){};
_.e(Ft,ae);Ft.prototype.resolveCommand=function(f){var H;return _.Y(function(v){H=_.U(f,RQv);if(!H||typeof H.key!=="string"||typeof H.value!=="string")return v.return();window.localStorage.setItem(H.key,H.value);_.Bj(v)})};var rl=function(f){this.store=f};
_.e(rl,ae);rl.prototype.resolveCommand=function(f){var H=this,v;return _.Y(function(t){v=_.U(f,clR);if(!v||!v.stepId||!v.token)return t.return();H.store.dispatch(m3b({stepId:v.stepId,token:v.token,isSelected:!1}));_.Bj(t)})};
rl[bN]=[Z$];var Ki=function(f,H,v){this.innertubeTransportService=f;this.store=H;this.JSC$17524_screenManager=v};
_.e(Ki,ae);
Ki.prototype.resolveCommand=function(f){var H=this,v,t,M,h,y,m,W,I,S,d,Z,l,L,r,n,Q,C,w,c,A,X,fg,gB;return _.Y(function(O5){v=_.U(f,q$g);if(!v||(t=v.stepIds)==null||!t.length)return O5.return();M=H.store.getState().talkToRecs;h=[];y=[];m=_.V(v.stepIds);for(W=m.next();!W.done;W=m.next())for(I=W.value,S=void 0,(d=(S=M.stepStates[I])==null?void 0:S.userQuery)&&y.push({userQuery:d.userQuery,userQueryToken:d.token}),Z=void 0,l=(Z=M.stepStates[I])==null?void 0:Z.selectionStates,L=_.V(Object.entries(l)),r=
L.next();!r.done;r=L.next())n=r.value,Q=_.V(n),C=Q.next().value,w=Q.next().value,c=C,A=w,A.isSelected&&h.push(c);X={selectedChipTokens:h,userQueries:y,submittedStepIds:v.stepIds};fg={browseTalk2recsFormData:X};v.browseEndpoint?(gB=f,_.pu(gB,_.ec,v.browseEndpoint)):v.command&&(gB=v.command);return gB?O5.yield(_.AE(H.innertubeTransportService,gB,{formData:fg,disableCache:!0}).then(function(s5){(s5==null?0:s5.trackingParams)&&H.JSC$17524_screenManager.graftServerVe(s5==null?void 0:s5.trackingParams)}),
0):O5.return()})};
Ki[bN]=[_.PS,Z$,_.z$];var DA=function(f){this.store=f};
_.e(DA,ae);DA.prototype.resolveCommand=function(f){var H=this,v;return _.Y(function(t){v=_.U(f,N1b);if(!v||!v.stepId||!v.token)return t.return();H.store.dispatch(m3b({stepId:v.stepId,token:v.token,isSelected:!0}));_.Bj(t)})};
DA[bN]=[Z$];var oR=function(f){this.store=f};
_.e(oR,ae);oR.prototype.resolveCommand=function(f,H){var v=this,t,M,h,y,m;return _.Y(function(W){t=_.U(f,feH);if(!t||!t.stepId||!t.userQueryToken)return W.return();m=(y=(M=H)==null?void 0:(h=M.form)==null?void 0:h.userQuery)!=null?y:"";v.store.dispatch(_.yq({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:t.stepId,userQueryToken:t.userQueryToken,userQuery:m}}));_.Bj(W)})};
oR[bN]=[Z$];_.pR0=new _.iN("TIMELY_ACTIONS_CONTROLLER_TOKEN");var ni=function(f){this.controller=f};
_.e(ni,ae);ni.prototype.resolveCommand=function(f){var H=this,v,t,M,h;return _.Y(function(y){v=_.U(f,Gsv);if(!v)return y.return();t=v;M=t.id;h=t.isVisible;if(M===void 0||h===void 0)return y.return();var m;(m=H.controller.timelyActionsMap.get(M))==null||m(M,h);_.Bj(y)})};
ni[bN]=[_.pR0];var Q3r=function(){this.timelyActionsMap=new Map};var pi=function(f){this.JSC$17551_commandHandler=f};
_.e(pi,ae);pi.prototype.resolveCommand=function(f){var H=this,v,t,M,h,y;return _.Y(function(m){v=_.U(f,_.jA);if(!v)return m.return();h=(t=v.item)==null?void 0:(M=t.notificationTextRenderer)==null?void 0:M.successResponseText;if(!h)return m.return();y=_.MS(h);H.JSC$17551_commandHandler.resolveCommand(y);_.Bj(m)})};
pi[bN]=[_.MJ];var QV=function(f,H){this.innertubeTransportService=f;this.JSC$17556_playerApiPromise=H};
_.e(QV,ae);
QV.prototype.resolveCommand=function(f){var H=this,v,t,M,h,y,m,W,I,S;return _.Y(function(d){if(d.nextAddress==1)return d.yield(H.JSC$17556_playerApiPromise,2);v=d.yieldResult;t=v.getOption("captions","track");M=Object.assign({},_.U(f,_.BKn));(y=(h=v.getVideoData())==null?void 0:h.video_id)?M.externalVideoId=y:_.Nw(Error("Fi"));if((m=t)==null?0:m.languageCode)M.languageCode=t.languageCode;if((W=t)==null?0:W.kind)M.kind=t.kind;if((I=t)==null?0:I.name)M.name=t.name;S=Object.assign({},f,{getTranscriptEndpoint:M});return d.yield(_.AE(H.innertubeTransportService,
S),0)})};
QV[bN]=[_.PS,_.V4];var uR=function(){};
_.e(uR,ae);uR.prototype.resolveCommand=function(f){var H,v,t,M,h,y,m,W;return _.Y(function(I){H=_.U(f,IY9);if((v=H)==null||!v.paramKeyValuePairs)return I.return();t=window.location.href;M=_.V(H.paramKeyValuePairs);for(h=M.next();!h.done;h=M.next())y=h.value,y.key&&y.value&&(m={},t=_.iZ(t,(m[y.key]=y.value,m)));W=_.t8().resolve(_.SU);_.It(W,t);_.Bj(I)})};var aR=function(f,H){this.JSC$17563_commandHandler=f;this.innertubeTransportService=H};
_.e(aR,ae);
aR.prototype.resolveCommand=function(f,H){var v=this,t,M,h,y,m,W,I,S,d,Z,l,L,r,n,Q,C,w;return _.Y(function(c){switch(c.nextAddress){case 1:return(h=(t=H)==null?void 0:(M=t.form)==null?void 0:M.element)&&_.Qp(h),y=_.Uj().get("hl"),m="",_.Zc(c,2),c.yield(rur(y),4);case 4:m=c.yieldResult;_.ch(c,3);break;case 2:return _.xu(c),h&&_.uw(h),_.oO(Error("Hi"),"ERROR"),c.return();case 3:W=_.U(f,SLM);if(!W)return h&&_.uw(h),c.return();(d=(I=W.commerceActionConfig)==null?void 0:(S=I.commandLifeCycleConfig)==null?
void 0:S.onStartCommand)&&v.JSC$17563_commandHandler.resolveCommand(d);return c.yield(_.AE(v.innertubeTransportService,f,{client_data:{paymentsClientToken:{token:m}}}),5);case 5:(Z=c.yieldResult)?(h&&_.uw(h),((n=Z)==null?0:n.command)&&v.JSC$17563_commandHandler.resolveCommand(Z.command),(w=(Q=W.commerceActionConfig)==null?void 0:(C=Q.commandLifeCycleConfig)==null?void 0:C.onSuccessCommand)&&v.JSC$17563_commandHandler.resolveCommand(w)):(h&&_.uw(h),_.oO(Error("Ii")),(r=(l=W.commerceActionConfig)==
null?void 0:(L=l.commandLifeCycleConfig)==null?void 0:L.onFailureCommand)&&v.JSC$17563_commandHandler.resolveCommand(r)),_.Bj(c)}})};
aR[bN]=[_.MJ,_.PS];var P0=function(f,H,v){this.store=f;this.JSC$17579_commandHandler=H;this.innertubeTransportService=v};
_.e(P0,ae);
P0.prototype.resolveCommand=function(f,H){var v=this,t,M,h,y,m,W,I,S,d;return _.Y(function(Z){t=_.U(f,d89);M=t.googlePaymentPayload;t.onStartCommand&&v.JSC$17579_commandHandler.resolveCommand(t.onStartCommand);h=M.encryptedPurchaseParams;y=M.ypcLogWalletAnalyticDataEndpoint;m=t.serializedTransactionFlowLoggingParams;W=M.serializedPaymentsClientParams;I=t.ypcCujContext;d=oye(v.innertubeTransportService,(S=H)==null?void 0:S.form,h,y,m,W,I);return Z.return(d.then(function(l){KR3(H==null?void 0:H.form,
!1);var L=v.store,r=v.JSC$17579_commandHandler,n=l.integratorData;n==null||n===""||l.error!=null?(String(l.error)==="-1"&&t.onDismissCommand?r.resolveCommand(t.onDismissCommand):String(l.error)!=="-1"&&t.onFailureCommand&&r.resolveCommand(t.onFailureCommand),String(l.error)!=="-1"&&String(l.error)!=="132"&&_.oO(Error("Ji"),"ERROR")):(t.googlePaymentEntityKey&&L.dispatch(_.lF("commerceAcquisitionClientPayloadEntity",t.googlePaymentEntityKey,{key:t.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:n,
fundsGuaranteeCallbackClientData:l.integratorClientCallbackData}}})),t.onSuccessCommand&&r.resolveCommand(t.onSuccessCommand));_.gj()},function(l){KR3(H==null?void 0:H.form,!1);
_.oO(l,"ERROR");t.onFailureCommand&&v.JSC$17579_commandHandler.resolveCommand(t.onFailureCommand)}))})};
P0[bN]=[qi,_.MJ,_.PS];var Gd=function(f,H){this.JSC$17583_commandHandler=f;this.purchaseManager=H};
_.e(Gd,ae);
Gd.prototype.resolveCommand=function(f){var H=this,v,t,M,h,y,m,W,I,S;return _.Y(function(d){v=_.U(f,jMa);((t=v)==null?0:(M=t.commandLifeCycleConfig)==null?0:M.onStartCommand)&&H.JSC$17583_commandHandler.resolveCommand(v.commandLifeCycleConfig.onStartCommand);if(!((h=v)==null?0:(y=h.googlePaymentPurchaseManagerPayload)==null?0:y.securePayloadBytes))return _.oO(Error("Ki"),"ERROR"),d.return();m=gzZ(_.yM(v.googlePaymentPurchaseManagerPayload.securePayloadBytes));W=_.Uj().get("hl");I=_.bE();oNT(m.serialize(),
W,function(Z){I.resolve(Z)},function(Z){I.reject(Z)},I.resolve);
S=I.promise;return d.return(S.then(function(Z){if(Z)if(Z==null?0:Z.errorCode){_.oO(Error("Li`"+Z.errorCode),"ERROR");var l,L;((l=v)==null?0:(L=l.commandLifeCycleConfig)==null?0:L.onFailureCommand)&&H.JSC$17583_commandHandler.resolveCommand(v.commandLifeCycleConfig.onFailureCommand)}else if(Z==null?0:Z.isCancelled){var r,n;((r=v)==null?0:(n=r.commandLifeCycleConfig)==null?0:n.onCancelCommand)&&H.JSC$17583_commandHandler.resolveCommand(v.commandLifeCycleConfig.onCancelCommand)}else{var Q,C;((Q=v)==
null?0:(C=Q.commandLifeCycleConfig)==null?0:C.onSuccessCommand)&&H.JSC$17583_commandHandler.resolveCommand(v.commandLifeCycleConfig.onSuccessCommand)}},function(Z){_.oO(Z,"ERROR");
var l,L;((l=v)==null?0:(L=l.commandLifeCycleConfig)==null?0:L.onFailureCommand)&&H.JSC$17583_commandHandler.resolveCommand(v.commandLifeCycleConfig.onFailureCommand)}))})};
Gd[bN]=[_.MJ,nNg];var ueF=function(f,H){this.JSC$17591_commandHandler=f;this.commandAllowlistOverride=H;var v;this.commandAllowlist=(v=this.commandAllowlistOverride)!=null?v:iE};
ueF.prototype.handleResponse=function(f,H,v){var t,M=H==null?void 0:(t=H.config)==null?void 0:t.command;if(!M||this.commandAllowlist.some(function(h){return!!_.U(M,h)})){H=void 0;
v!==void 0&&(H={form:{element:v}});f.onResponseReceivedCommand&&this.JSC$17591_commandHandler.resolveCommand(f.onResponseReceivedCommand,H);f.onResponseReceivedAction&&this.JSC$17591_commandHandler.resolveCommand(f.onResponseReceivedAction,H);f.onResponseReceivedEndpoint&&this.JSC$17591_commandHandler.resolveCommand(f.onResponseReceivedEndpoint,H);f.command&&this.JSC$17591_commandHandler.resolveCommand(f.command,H);if(f.onResponseReceivedCommands)for(v=_.V(f.onResponseReceivedCommands),t=v.next();!t.done;t=
v.next())this.JSC$17591_commandHandler.resolveCommand(t.value,H);if(f.onResponseReceivedActions)for(v=_.V(f.onResponseReceivedActions),t=v.next();!t.done;t=v.next())this.JSC$17591_commandHandler.resolveCommand(t.value,H);if(f.onResponseReceivedEndpoints)for(v=_.V(f.onResponseReceivedEndpoints),t=v.next();!t.done;t=v.next())this.JSC$17591_commandHandler.resolveCommand(t.value,H);if(f.actions)for(f=_.V(f.actions),v=f.next();!v.done;v=f.next())this.JSC$17591_commandHandler.resolveCommand(v.value,H)}};
ueF[bN]=[_.MJ,_.vh(a35)];var a_G=new _.iN("INNERTUBE_TOKEN_SERVICE");var PHG=new _.iN("SCHEDULER_TOKEN");var GbW=function(f){this.scheduler=f;f={};this.tokenMap=(f.app={},f.user={},f)};
GbW.prototype.handleResponse=function(f,H){if(!H)throw Error("Mi");var v;if(f=(v=f.responseContext)==null?void 0:v.innertubeTokenJar){if(f.appTokens){var t,M,h;v=(t=H.innerTubeRequest.context)==null?void 0:(M=t.request)==null?void 0:(h=M.innertubeTokenJar)==null?void 0:h.appTokens;CHb(this,f.appTokens,this.tokenMap.app,v)}if(f.userTokens){var y,m,W;H=(y=H.innerTubeRequest.context)==null?void 0:(m=y.request)==null?void 0:(W=m.innertubeTokenJar)==null?void 0:W.userTokens;CHb(this,f.userTokens,this.tokenMap.user,
H)}}};
GbW.prototype.processContext=function(f){f.request||(f.request={});var H=Object.keys(this.tokenMap.app).length,v=Object.keys(this.tokenMap.user).length;if(H||v)f.request.innertubeTokenJar={},H&&(f.request.innertubeTokenJar.appTokens=[].concat(_.pS(Object.values(this.tokenMap.app).flat()))),v&&(f.request.innertubeTokenJar.userTokens=[].concat(_.pS(Object.values(this.tokenMap.user).flat())))};
var CHb=function(f,H,v,t){H=_.V(H);for(var M=H.next(),h={};!M.done;h={token$jscomp$139:void 0},M=H.next()){h.token$jscomp$139=M.value;if(h.token$jscomp$139.type===void 0)throw new _.e$("InnerTube token has no type",h.token$jscomp$139);if(h.token$jscomp$139.clearTokens)v[h.token$jscomp$139.type]=[];else if(h.token$jscomp$139.value!==void 0){v[h.token$jscomp$139.type]||(v[h.token$jscomp$139.type]=[]);if(t!==void 0&&t.length){M=_.V(t);for(var y=M.next(),m={};!y.done;m={requestToken:void 0},y=M.next())m.requestToken=
y.value,y=v[h.token$jscomp$139.type].findIndex(function(W){return function(I){return I===W.requestToken||(0,_.QA.equals)(I,W.requestToken)}}(m)),y>-1&&v[h.token$jscomp$139.type].splice(y,1)}v[h.token$jscomp$139.type].push(h.token$jscomp$139);
h.token$jscomp$139.maxAgeSeconds&&Number(h.token$jscomp$139.maxAgeSeconds)>0&&f.scheduler.addLowPriorityJob(function(W){return function(){var I=v[W.token$jscomp$139.type].indexOf(W.token$jscomp$139);I>-1&&v[W.token$jscomp$139.type].splice(I,1)}}(h),Number(h.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.e$("InnerTube token has no value",h.token$jscomp$139);
}};
GbW[bN]=[PHG];var EvF=new _.iN("LOCAL_INNERTUBE_ROUTER_TOKEN"),NBb=new _.iN("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var Ci=function(f){this.serviceMap=f};
Ci.prototype.shouldPreferLocalResponse=function(f,H){return(f=cNh(this,f))?f.shouldPreferLocalResponse(H):!1};
Ci.prototype.localInnertubeResponse=function(f,H){var v=this,t;return _.Y(function(M){return(t=cNh(v,f))?M.return(t.localInnertubeResponse(H)):M.return(Promise.reject(Error("Ni")))})};
Ci.prototype.canProvideFallbackResponse=function(f,H){return(f=cNh(this,f))?f.canProvideFallbackResponse(H):!1};
Ci.prototype.localFallbackInnertubeResponse=function(f,H){var v=this,t;return _.Y(function(M){return(t=cNh(v,f))?M.return(t.localFallbackInnertubeResponse(H)):M.return(Promise.reject(Error("Ni")))})};
var cNh=function(f,H){H=_.gH(H);return H?(f=f.serviceMap[H])?f:null:null};
Ci[bN]=[NBb];var I0=function(){};
I0.prototype.shouldPreferLocalResponse=function(){return!1};
I0.prototype.localInnertubeResponse=function(){return _.Y(function(f){return f.return(Promise.reject(Error("Oi")))})};
I0.prototype.canProvideFallbackResponse=function(){return!0};
I0.prototype.localFallbackInnertubeResponse=function(){var f,H,v;return _.Y(function(t){f=Ic("CLOSE_POPUP");H={openPopupAction:pZ5()};v={actions:[f,H]};return t.return(v)})};var nn_=function(f,H){this.JSC$17641_upliftPromise=f;this.store=H};
_.R=nn_.prototype;_.R.shouldPreferLocalResponse=function(f){var H=f.videoId,v;if(v=H)v=R4r(this.store.getState().entities,f.videoId);return v&&V0E(this.store.getState().entities,H)?u0g(this.store.getState().entities,f.playlistId):!1};
_.R.localInnertubeResponse=function(f){var H=this,v;return _.Y(function(t){return(v=H.getPlayerResponse(f))?t.return(Promise.resolve(v)):t.return(Promise.reject(Error("Pi")))})};
_.R.canProvideFallbackResponse=function(f){return!!f.videoId};
_.R.localFallbackInnertubeResponse=function(f){var H=this,v;return _.Y(function(t){if(t.nextAddress==1)return t.yield(H.JSC$17641_upliftPromise,2);v=H.getPlayerResponse(f);var M;v?M=t.return(Promise.resolve(v)):M=FG(H.store.getState().entities,f.videoId)?t.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.hd(_.ZC("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:qr5()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
t.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.hd(_.ZC("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:wzB()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return M})};
_.R.getPlayerResponse=function(f){return oPR(this.store.getState().entities,f.videoId)};var gs=function(f,H){this.localPlayerService=f;this.localWatchNextService=H};
gs.prototype.shouldPreferLocalResponse=function(f){var H=f.playerRequest;f=f.watchNextRequest;return!!(H&&this.localPlayerService.shouldPreferLocalResponse(H)&&f&&this.localWatchNextService.shouldPreferLocalResponse(f))};
gs.prototype.localInnertubeResponse=function(f){var H=this,v,t,M,h;return _.Y(function(y){if(y.nextAddress==1){v=f.playerRequest;t=f.watchNextRequest;if(!v||!t)throw new _.e$("Missing streaming request",f);return y.yield(H.localPlayerService.localInnertubeResponse(v),2)}if(y.nextAddress!=3)return M=y.yieldResult,y.yield(H.localWatchNextService.localInnertubeResponse(t),3);h=y.yieldResult;return y.return({playerResponse:M,watchNextResponse:h})})};
gs.prototype.canProvideFallbackResponse=function(f){var H=f.playerRequest;f=f.watchNextRequest;return!!(H&&this.localPlayerService.canProvideFallbackResponse(H)&&f&&this.localWatchNextService.canProvideFallbackResponse(f))};
gs.prototype.localFallbackInnertubeResponse=function(f){var H=this,v,t,M,h;return _.Y(function(y){if(y.nextAddress==1)return v=f.playerRequest,t=f.watchNextRequest,v&&t?y.yield(H.localPlayerService.localFallbackInnertubeResponse(v),2):y.return(Promise.reject(new _.e$("Missing streaming request",f)));if(y.nextAddress!=3)return M=y.yieldResult,y.yield(H.localWatchNextService.localFallbackInnertubeResponse(t),3);h=y.yieldResult;return y.return({playerResponse:M,watchNextResponse:h})})};var $f=function(f){this.JSC$17651_persistentStorePromiseAccessor=f};
$f.prototype.shouldPreferLocalResponse=function(){return!1};
$f.prototype.localInnertubeResponse=function(){return _.Y(function(f){return f.return(Promise.reject(Error("Qi")))})};
$f.prototype.canProvideFallbackResponse=function(){return!0};
$f.prototype.localFallbackInnertubeResponse=function(){var f=this,H,v;return _.Y(function(t){return t.nextAddress==1?t.yield(f.JSC$17651_persistentStorePromiseAccessor(),2):t.nextAddress!=3?(H=t.yieldResult)?t.yield(H.get("service:guide:fallback"),3):t.return(Promise.reject(Error("Ri"))):(v=t.yieldResult)&&_.T7(v)?t.return(a9B(_.T7(v))):t.return(Promise.reject(Error("Si")))})};var S4=function(){};
S4.prototype.shouldPreferLocalResponse=function(){return!1};
S4.prototype.localInnertubeResponse=function(){return _.Y(function(f){return f.return(Promise.reject(Error("Ti")))})};
S4.prototype.canProvideFallbackResponse=function(){return!0};
S4.prototype.localFallbackInnertubeResponse=function(){var f,H,v;return _.Y(function(t){f=Ic("CLOSE_POPUP");H={openPopupAction:pZ5()};v={actions:[f,H]};return t.return(v)})};var mm=function(){this.urlMap=XRW;this.fallbackCommand=_.j0};
mm.prototype.shouldPreferLocalResponse=function(f){return(f=f.url)?!!ANF(this,f):!1};
mm.prototype.localInnertubeResponse=function(f){var H=this,v;return _.Y(function(t){return(v=f.url)?t.return(bgx(f,ANF(H,v))):t.return(Promise.reject(Error("Ui")))})};
mm.prototype.canProvideFallbackResponse=function(){return!0};
mm.prototype.localFallbackInnertubeResponse=function(f){var H=this,v,t,M,h,y,m,W;return _.Y(function(I){v=f.url;if(!v)return I.return(bgx(f,H.fallbackCommand));if(t=ANF(H,v))return I.return(bgx(f,t));M=void 0;h=_.gH(v);h==="/watch"&&(y=_.c_(v,"v"))&&(W=(m=_.c_(v,"list"))!=null?m:void 0,M=_.MO(y,W));M||(M=H.fallbackCommand);return I.return(bgx(f,M))})};
var ANF=function(f,H){if(H)return f.urlMap[_.Ag(H)]},bgx=function(f,H){H&&f.parentTrackingParams&&(H.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:f.parentTrackingParams}},H.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:H})};var W1=function(f,H,v){this.JSC$17661_upliftPromise=f;this.store=H;this.JSC$17661_persistentStorePromiseAccessor=v};
W1.prototype.shouldPreferLocalResponse=function(){return!1};
W1.prototype.localInnertubeResponse=function(){return _.Y(function(f){return f.return(Promise.reject(Error("Vi")))})};
W1.prototype.canProvideFallbackResponse=function(){return!0};
W1.prototype.localFallbackInnertubeResponse=function(){var f=this;return _.Y(function(H){return H.return(ig0(f))})};
var ig0=function(f){var H,v;return _.Y(function(t){if(t.nextAddress==1)return t.yield(kd(f.JSC$17661_upliftPromise,f.store),2);H=t.yieldResult;v={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[Q4B(H)]}}}};return t.return(kb0(f,v))})},kb0=function(f,H){var v,t;
return _.Y(function(M){if(M.nextAddress==1)return M.yield(f.JSC$17661_persistentStorePromiseAccessor(),2);if(M.nextAddress!=3)return v=M.yieldResult,M.yield(wy(v),3);t=M.yieldResult;return M.return({responseContext:{},contents:H,topbar:t})})};var yk=function(f,H,v){this.JSC$17668_upliftPromise=f;this.store=H;this.JSC$17668_persistentStorePromiseAccessor=v};
yk.prototype.shouldPreferLocalResponse=function(f){var H=f.videoId;return H&&R4r(this.store.getState().entities,H)&&V0E(this.store.getState().entities,H)?u0g(this.store.getState().entities,f.playlistId):!1};
yk.prototype.localInnertubeResponse=function(f){var H=this,v,t;return _.Y(function(M){if(M.nextAddress==1)return(v=f.videoId)?M.yield(H.JSC$17668_upliftPromise,2):M.return(Promise.reject(Error("Wi")));if(M.nextAddress!=3)return M.yield(TBt(H,f,v),3);t=M.yieldResult;return M.return(wRw(H,t,v))})};
yk.prototype.canProvideFallbackResponse=function(f){return f.videoId?!0:!1};
yk.prototype.localFallbackInnertubeResponse=function(f){var H=this,v,t,M,h;return _.Y(function(y){switch(y.nextAddress){case 1:return(v=f.videoId)?y.yield(H.JSC$17668_upliftPromise,2):y.return(Promise.reject(Error("Wi")));case 2:return y.yield(TBt(H,f,v),3);case 3:t=y.yieldResult;if(FG(H.store.getState().entities,v)){y.jumpTo(4);break}return y.yield(kd(H.JSC$17668_upliftPromise,H.store),5);case 5:return M=y.yieldResult,y.return(q5r(t,M));case 4:return R4r(H.store.getState().entities,v)&&V0E(H.store.getState().entities,
v)?y.return(wRw(H,t,v)):(h={title:_.hd(_.ZC("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:qr5()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},y.return(q5r(t,h)))}})};
var TBt=function(f,H,v){var t,M,h,y,m;return _.Y(function(W){if(W.nextAddress==1)return t=H.playlistId,M=_.MO(v,t),W.yield(f.JSC$17668_persistentStorePromiseAccessor(),2);if(W.nextAddress!=3)return h=W.yieldResult,W.yield(wy(h),3);y=W.yieldResult;m={responseContext:{},currentVideoEndpoint:M,topbar:y};return W.return(m)})},wRw=function(f,H,v){if(f=FG(f.store.getState().entities,v)){var t;
v=f.videoEntity;var M,h={title:R5(v.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.Vq((t=v.localizedStrings)==null?void 0:t.viewCount),viewCount:_.Vq((M=v.localizedStrings)==null?void 0:M.viewCount)}}};v.publishedTimestampMillis&&(h.dateText=_.Vq(UBb(new Date(Number(v.publishedTimestampMillis)))));t={videoPrimaryInfoRenderer:h};M=f.videoEntity;f=f.channelEntity;f={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:R5(_.ZC("SHOW_MORE",void 0,"Show more")),
showLessText:R5(_.ZC("SHOW_LESS",void 0,"Show less")),description:M.formattedDescription,owner:{videoOwnerRenderer:{title:R5(f.title),thumbnail:f.avatar}}}};H.contents={twoColumnWatchNextResults:{results:{results:{contents:[t,f]}}}}}return H},q5r=function(f,H){f.contents={singleColumnWatchNextResults:{results:{results:{contents:[Q4B(H)]}}}};
return f};var OH=function(f,H,v){this.JSC$17673_upliftPromise=f;this.store=H;this.JSC$17673_persistentStorePromiseAccessor=v};
OH.prototype.shouldPreferLocalResponse=function(){return!1};
OH.prototype.localInnertubeResponse=function(){return _.Y(function(f){return f.return(Promise.reject(Error("Xi")))})};
OH.prototype.canProvideFallbackResponse=function(){return!0};
OH.prototype.localFallbackInnertubeResponse=function(){var f=this,H,v,t,M;return _.Y(function(h){switch(h.nextAddress){case 1:return h.yield(f.JSC$17673_persistentStorePromiseAccessor(),2);case 2:return H=h.yieldResult,h.yield(wy(H),3);case 3:return v=h.yieldResult,t={responseContext:{},topbar:v},h.yield(f.JSC$17673_upliftPromise,4);case 4:return h.yield(kd(f.JSC$17673_upliftPromise,f.store),5);case 5:return M=h.yieldResult,t.watchStatus={backgroundPromoRenderer:M},h.return(t)}})};_.fhA=new _.iN("ENDPOINT_MAP");var HrG=function(){var f=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return f.sequenceMap}}},Ylb=function(f,H,v){var t,M=(t=H.config)==null?void 0:t.sequenceStrategy;
if(!M)return v();f.sequenceMap.has(M.sequenceKey)||f.sequenceMap.set(M.sequenceKey,[]);f=f.sequenceMap.get(M.sequenceKey);switch(M.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return vgx(f,H,v);case "REQUEST_SEQUENCE_TYPE_REPLACE":return tvW(f,H,v);default:throw new _.e$("Request could not be sequenced",H);}},vgx=function(f,H,v){var t,M,h;
return _.Y(function(y){f.length>0?(M=f[f.length-1],t=M.responsePromise.then(function(){return v()})):t=v();
h={request:H,responsePromise:t};f.push(h);MvW(f,h);return y.return(h.responsePromise)})},tvW=function(f,H,v){v=v();
if(f.length>0)for(var t=_.V(f),M=t.next();!M.done;M=t.next())M.value.responsePromise=v;var h={request:H,responsePromise:v};f.push(h);MvW(f,h);return Promise.resolve().then(function(){return f.indexOf(h)>0?h.responsePromise.then(function(y){return Object.assign({},y,{sequenceMetaData:{skipProcessing:!0}})}):h.responsePromise})},MvW=function(f,H){H.responsePromise.then(function(){var v=f.indexOf(H);
v>-1&&f.splice(v,1)})};var hZi=new _.iN("REQUEST_SEQUENCING");var El=function(){};
_.e(El,$i);El.prototype.getApiPaths=function(){return[]};
El.prototype.getExtension=function(f){return _.U(f,jH9)};
El.prototype.JSC$13090_buildRequest=function(f,H){f.recaptchaToken=H.recaptchaToken};
El.prototype.getApiUrl=function(){return"/das_captcha"};var NG=function(){};
_.e(NG,$i);NG.prototype.getApiPaths=function(){return gIg};
NG.prototype.getExtension=function(f){return _.U(f,b6o)};
NG.prototype.JSC$13090_buildRequest=function(f,H,v){v=v===void 0?{}:v;H.createBackstagePostParams&&(f.createBackstagePostParams=H.createBackstagePostParams);v.comment_text&&(f.commentText=v.comment_text);if(v.attached_video_id)f.videoAttachment={videoId:v.attached_video_id};else if(v.image_poll_options)f.pollAttachmentData={options:v.image_poll_options};else if(v.poll_options)f.pollAttachment={choices:v.poll_options};else if(v.quiz_options)f.quizAttachmentData={options:v.quiz_options};else if(v.image_blob_id)f.imageAttachment=
{encryptedBlobId:v.image_blob_id},v.source_video_id&&(f.imageAttachment.sourceExternalVideoId=v.source_video_id),v.image_preview_coordinates&&(f.imageAttachment.previewCoordinates=JSON.parse(v.image_preview_coordinates));else if(v.images_data)f.imagesAttachment={imagesData:v.images_data};else if(v.clip_external_video_id!==void 0||v.clip_offset_ms!==void 0||v.clip_duration_ms!==void 0){var t,M,h,y,m;f.clipAttachment={externalVideoId:(h=v.clip_external_video_id)!=null?h:"",offsetMs:(y=(t=v.clip_offset_ms)==
null?void 0:t.toString())!=null?y:"",durationMs:(m=(M=v.clip_duration_ms)==null?void 0:M.toString())!=null?m:""}}else v.shared_post_id&&(f.sharedPostAttachment={postId:v.shared_post_id});v.tagged_video_id&&(f.postCreationData={taggedVideoId:v.tagged_video_id});v.access_restrictions&&(typeof v.access_restrictions==="number"&&(H=v.access_restrictions,f.accessRestrictions={restriction:H!==1&&H===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof v.access_restrictions==="string"&&
(f.accessRestrictionsParams=v.access_restrictions));v.scheduled_publish_time_sec&&(f.scheduledPublishTimeSec=v.scheduled_publish_time_sec.toString())};var c0=function(){};
_.e(c0,$i);c0.prototype.getApiPaths=function(){return J_g};
c0.prototype.getExtension=function(f){return _.U(f,gWr)};
c0.prototype.JSC$13090_buildRequest=function(f,H,v){v=v===void 0?{}:v;H.decorateMessageParams&&(f.params=H.decorateMessageParams);v.text&&(f.text=v.text)};var Xt=function(){};
_.e(Xt,$i);Xt.prototype.getApiPaths=function(){return CmT};
Xt.prototype.getExtension=function(f){return _.U(f,i6a)};
Xt.prototype.JSC$13090_buildRequest=function(f,H,v){v=v===void 0?{}:v;v.video_id&&(f.videoId=v.video_id)};var AR=function(){};
_.e(AR,$i);AR.prototype.getApiPaths=function(){return A_h};
AR.prototype.getExtension=function(f){return _.U(f,_.dj)};
AR.prototype.JSC$13090_buildRequest=function(f,H,v){v.suggestions_query&&(f.input=v.suggestions_query)};var bR=function(){};
_.e(bR,$i);bR.prototype.getApiPaths=function(){return x2b};
bR.prototype.getExtension=function(f){return _.U(f,k_9)};
bR.prototype.JSC$13090_buildRequest=function(f,H,v){v.comment_text!==void 0&&(f.commentText=v.comment_text);v.scheduled_publish_time_sec&&(f.scheduledPublishTimeSec=v.scheduled_publish_time_sec.toString());f.updateBackstagePostParams=H.updateBackstagePostParams};var iR=function(){};
_.e(iR,$i);iR.prototype.getApiPaths=function(){return Ni};
iR.prototype.getExtension=function(f){return _.U(f,_.GI)};
iR.prototype.JSC$13090_buildRequest=function(f,H,v){v.formData&&(f.formData=v.formData);H.token?f.continuation=H.token:H.continuationTokenKey&&(v=_.vS().getState(),H=_.dL(v.entities,"continuationTokenEntity",H.continuationTokenKey))&&(f.continuation=String(H.continuationToken))};
var RZb=function(){};
_.e(RZb,$i);_.R=RZb.prototype;_.R.getApiPaths=function(){return Ni};
_.R.getExtension=function(f){return _.U(f,_.ec)};
_.R.isNavigationCommand=function(){return!0};
_.R.JSC$13097_getStoreKey=function(f){if((f=this.getExtension(f))&&f.browseId){var H={browseId:f.browseId};f.browseEndpointContextSupportedConfigs&&(H.browseEndpointContextSupportedConfigs=JSON.stringify(f.browseEndpointContextSupportedConfigs));f.params&&(H.params=f.params);f.query&&(H.query=f.query);return _.TP("browse",H)}};
_.R.JSC$13090_buildRequest=function(f,H,v){H.browseId&&(f.browseId=H.browseId);H.params&&(f.params=H.params);H.query&&(f.query=H.query);v.formData?f.formData=v.formData:H.formData&&(f.formData=H.formData);H.browseId==="FEsubscriptions"&&_.Uj().getFlag(155)&&(f.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");H.browseId==="SPaccount_playback"&&(v=_.Uj(),f.formData||(f.formData={}),f.formData.accountSettingsFormData={flagCaptionsDefaultOff:v.getFlag(65),flagAutoCaptionsDefaultOn:v.getFlag(66),
flagDisableInlinePreview:v.getFlag(186),flagAudioDescriptionDefaultOn:v.getFlag(198)});if(H.browseId==="FEwhat_to_watch"){v=_.Uj();var t=v.getFlag(196);v.getFlag(197)&&(f.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:t}}})}H.browseId==="FEwhat_to_watch"&&(H=_.Uj().getFlag(186),f.inlineSettingStatus=H?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.R.getRequestConfig=function(f,H){H=H===void 0?{}:H;var v={};if(f=this.JSC$13097_getStoreKey(f,H))v.storeStrategy={storeKey:f,disableCache:H.disableCache};_.J("web_log_browse_ticks_ks")||(v.requestTick="br_s",v.responseTick="br_r");return v};var kG=function(){};
_.e(kG,$i);kG.prototype.getApiPaths=function(){return y_h};
kG.prototype.getExtension=function(f){return _.U(f,eQM)};
kG.prototype.JSC$13090_buildRequest=function(f,H,v){f.legacyYoutubeChannelUsername=v.legacyYouTubeChannelUsername||"";f.legacyYoutubeChannelPassword=v.legacyYouTubeChannelPassword||""};var Td=function(){};
_.e(Td,$i);Td.prototype.getApiPaths=function(){return Ifv};
Td.prototype.getExtension=function(f){return _.U(f,MgZ)};
Td.prototype.JSC$13090_buildRequest=function(f,H,v){v.recaptcha_response_token&&(f.recaptchaResponseToken=v.recaptcha_response_token);v.channel_id&&(f.channelId=v.channel_id)};var wl=function(){};
_.e(wl,$i);wl.prototype.getApiPaths=function(){return BYT};
wl.prototype.getExtension=function(f){return _.U(f,mch)};
wl.prototype.JSC$13090_buildRequest=function(f,H,v){H.externalChannelId&&(f.externalChannelId=H.externalChannelId);v.handle&&(f.handleUpdate={handle:v.handle},H.handleEditSource&&(f.handleUpdate.handleEditSource=H.handleEditSource))};var qG=function(){};
_.e(qG,$i);qG.prototype.getApiPaths=function(){return Knr};
qG.prototype.getExtension=function(f){return _.U(f,Dch)};
qG.prototype.JSC$13090_buildRequest=function(f,H,v){H.request&&(f.channelId=H.request.channelId);var t;if(v==null?0:(t=v.uploadDefaults)==null?0:t.emojiReactionSet)f.uploadDefaultsRequest||(f.uploadDefaultsRequest={}),f.uploadDefaultsRequest.emojiReactionSet=v.uploadDefaults.emojiReactionSet};var fj=function(){};
_.e(fj,$i);fj.prototype.getApiPaths=function(){return n8g};
fj.prototype.getExtension=function(f){return _.U(f,h8Z)};
fj.prototype.JSC$13090_buildRequest=function(f,H,v){H.externalChannelId&&(f.externalChannelId=H.externalChannelId);H.channelHandleEntityKey&&(f.channelHandleEntityKey=H.channelHandleEntityKey);H.handleEditSource&&(f.handleEditSource=H.handleEditSource);v.handle?f.handle=v.handle:v.name&&(f.name=v.name)};var Hq=function(){};
_.e(Hq,$i);Hq.prototype.getApiPaths=function(){return $Wh};
Hq.prototype.getExtension=function(f){return _.U(f,ivh)};
Hq.prototype.JSC$13090_buildRequest=function(f,H){H.actions?f.actions=H.actions:H.action&&(f.actions=[H.action])};var vq=function(){};
_.e(vq,$i);vq.prototype.getApiPaths=function(){return WyM};
vq.prototype.getExtension=function(f){return _.U(f,_.GI)};
vq.prototype.JSC$13090_buildRequest=function(f,H){H.token&&(f.continuation=H.token)};var tb=function(){};
_.e(tb,$i);tb.prototype.getApiPaths=function(){return Pmv};
tb.prototype.getExtension=function(f){return _.U(f,_.GI)};
tb.prototype.JSC$13090_buildRequest=function(f,H){f.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";H.token&&(f.fetchCommentsParams={continuation:H.token})};var Ms=function(){};
_.e(Ms,$i);Ms.prototype.getApiPaths=function(){return dWZ};
Ms.prototype.getExtension=function(f){return _.U(f,bvM)};
Ms.prototype.JSC$13090_buildRequest=function(f,H,v){v=v===void 0?{}:v;H.createReplyParams&&(f.createReplyParams=H.createReplyParams);H.commentText&&(f.commentText=_.fG(H.commentText));v.comment_text&&(f.commentText=v.comment_text);v.image_blob_id&&(f.imageAttachment={encryptedBlobId:v.image_blob_id});v.botguard_response&&(f.botguardResponse=v.botguard_response)};
_.H7.Object.defineProperties(Ms.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var hb=function(){};
_.e(hb,$i);hb.prototype.getApiPaths=function(){return jiv};
hb.prototype.getExtension=function(f){return _.U(f,_.Aco)};
hb.prototype.JSC$13090_buildRequest=function(f,H,v){v=v===void 0?{}:v;H.createCommentParams&&(f.createCommentParams=H.createCommentParams);H.commentText&&(f.commentText=_.fG(H.commentText));H.videoPositionMention&&(f.videoPositionMention=H.videoPositionMention);H.sources&&(f.sources=H.sources);v.comment_text&&(f.commentText=v.comment_text);v.attached_video_id?f.videoAttachment={videoId:v.attached_video_id}:v.poll_options?f.pollAttachment={choices:v.poll_options}:v.image_blob_id?f.imageAttachment=
{encryptedBlobId:v.image_blob_id}:v.shared_post_id&&(f.sharedPostAttachment={postId:v.shared_post_id});v.access_restrictions&&typeof v.access_restrictions==="number"&&(H=v.access_restrictions,f.accessRestrictions={restriction:H!==1&&H===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});v.botguard_response&&(f.botguardResponse=v.botguard_response)};
_.H7.Object.defineProperties(hb.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var RT=function(){};
_.e(RT,$i);RT.prototype.getApiPaths=function(){return zf9};
RT.prototype.getExtension=function(f){return _.U(f,TCh)};
RT.prototype.JSC$13090_buildRequest=function(f,H,v){H.commentText&&(f.replyText=_.fG(H.commentText));v.comment_text&&(f.replyText=v.comment_text);f.updateReplyParams=H.updateReplyParams};
_.H7.Object.defineProperties(RT.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Vv=function(){};
_.e(Vv,$i);Vv.prototype.getApiPaths=function(){return Fno};
Vv.prototype.getExtension=function(f){return _.U(f,k3h)};
Vv.prototype.JSC$13090_buildRequest=function(f,H,v){H.commentText&&(f.commentText=_.fG(H.commentText));v.comment_text&&(f.commentText=v.comment_text);f.updateCommentParams=H.updateCommentParams};
_.H7.Object.defineProperties(Vv.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var yv=function(){};
_.e(yv,$i);yv.prototype.getApiPaths=function(){return r3o};
yv.prototype.getExtension=function(f){return _.U(f,z8g)};
yv.prototype.JSC$13090_buildRequest=function(f,H){H.settings&&(f.settings=H.settings)};var YS=function(){};
_.e(YS,$i);YS.prototype.getApiPaths=function(){return DWH};
YS.prototype.getExtension=function(f){return _.U(f,R8n)};
YS.prototype.JSC$13090_buildRequest=function(f,H){H.channelCreationToken&&(f.channelCreationToken=H.channelCreationToken);H.source&&(f.source=H.source)};var mY=function(){};
_.e(mY,$i);mY.prototype.getApiPaths=function(){return Shv};
mY.prototype.getExtension=function(f){return _.U(f,YBT)};
mY.prototype.JSC$13090_buildRequest=function(f,H,v){v=v===void 0?{}:v;if(v.name&&(v.given_name||v.family_name))f=new _.e$("channel creation cannot set both GAIA and YouTube names",H),_.oO(f);else{if(H.zeroStepChannelCreationParams){if(!v.comment_text){f=new _.e$("zero_step_create_comment_params but no zero_step_texts",H);_.oO(f);return}f.zeroStepChannelCreationParams=H.zeroStepChannelCreationParams;f.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(f.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
v.comment_text,v.botguard_response&&(f.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=v.botguard_response))}f.channelCreationToken=H.channelCreationToken;v.given_name&&(f.givenName=v.given_name);v.family_name&&(f.familyName=v.family_name);H.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(f.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(v.name||v.handle||v.avatar_url||v.encryptedBlobId||v.isNameChanged!==void 0||v.isHandleChanged!==void 0||v.isDefaultProfilePhoto!==
void 0||v.obakeImageSource)f.overrideChannelCreationParams={},v.name&&(f.overrideChannelCreationParams.name=v.name),v.handle&&(f.overrideChannelCreationParams.handle=v.handle),v.avatar_url&&(f.overrideChannelCreationParams.avatarUrl=v.avatar_url),v.encryptedBlobId&&(f.overrideChannelCreationParams.blobEncryptionId=v.encryptedBlobId),v.enableIdentityForAllChannelCreationDialog&&(v.encryptedBlobId?f.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
v.isDefaultProfilePhoto!==void 0&&(f.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=v.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),v.isNameChanged!==void 0&&(f.overrideChannelCreationParams.identityForAllChannelCreationNameTag=v.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),v.isHandleChanged!==
void 0&&(f.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=v.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),v.obakeImageSource&&(f.overrideChannelCreationParams.obakeImageSourceType=v.obakeImageSource))}};var $S=function(){};
_.e($S,$i);$S.prototype.getApiPaths=function(f){return(f=this.getExtension(f))&&f.status==="DISLIKE"?Ly9:f&&f.status==="INDIFFERENT"?m2T:wGh};
$S.prototype.getExtension=function(f){return _.U(f,_.np)};
$S.prototype.JSC$13090_buildRequest=function(f,H){H.target&&(f.target=H.target);if(H=this.getParams(H))f.params=H};
$S.prototype.getParams=function(f){switch(f==null?void 0:f.status){case "DISLIKE":return f.dislikeParams;case "INDIFFERENT":return f.removeLikeParams;default:return f==null?void 0:f.likeParams}};var Wq=function(){};
_.e(Wq,$i);Wq.prototype.getApiPaths=function(){return ZXa};
Wq.prototype.getExtension=function(f){return _.U(f,t0_)};
Wq.prototype.JSC$13090_buildRequest=function(f,H){H.settingItemId&&(f.settingItemId=H.settingItemId);H.stringValue!=null&&H.stringValue!==void 0?f.newValue={stringValue:H.stringValue}:H.intValue?f.newValue={intValue:H.intValue}:H.boolValue!==null&&H.boolValue!==void 0?f.newValue={boolValue:H.boolValue}:(f=new _.e$("Unknown value type for SetSettingEndpoint.",H),_.oO(f))};var Om=function(){};
_.e(Om,$i);Om.prototype.getApiPaths=function(){return U2T};
Om.prototype.getExtension=function(f){return _.U(f,ePT)||void 0};
Om.prototype.JSC$13090_buildRequest=function(f,H,v){v=v===void 0?{}:v;H.channelIds&&(f.channelIds=H.channelIds);H.siloName&&(f.siloName=H.siloName);H.params&&(f.params=H.params);v.botguardResponse&&(f.botguardResponse=v.botguardResponse);v.feature&&(f.clientFeature=v.feature)};
_.H7.Object.defineProperties(Om.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var IT=function(){};
_.e(IT,$i);IT.prototype.getApiPaths=function(){return LnT};
IT.prototype.getExtension=function(f){return _.U(f,M0h)||void 0};
IT.prototype.JSC$13090_buildRequest=function(f,H){H.channelIds&&(f.channelIds=H.channelIds);H.siloName&&(f.siloName=H.siloName);H.params&&(f.params=H.params)};
_.H7.Object.defineProperties(IT.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Sb=function(f){this.shareClientParamsProvider=f};
_.e(Sb,$i);Sb.prototype.getApiPaths=function(){return Eqe};
Sb.prototype.getExtension=function(f){return _.U(f,K49)||_.U(f,_.D_b)||_.U(f,rH9)};
Sb.prototype.JSC$13090_buildRequest=function(f,H){H.serializedShareEntity&&(f.serializedSharedEntity=H.serializedShareEntity);if(H.clientParamIdentifier){var v;if((v=this.shareClientParamsProvider)==null?0:v.clientParams.has(H.clientParamIdentifier)){v=this.shareClientParamsProvider;H=H.clientParamIdentifier;var t=v.clientParams.get(H);t&&v.clientParams.delete(H);f.clientParams=t}}};
Sb[bN]=[$9M];var da=function(){};
_.e(da,$i);da.prototype.getApiPaths=function(){return hB_};
da.prototype.getExtension=function(f){return _.U(f,nJ9)};
da.prototype.JSC$13090_buildRequest=function(f,H){H.params&&(f.params=H.params)};var jb=function(){};
_.e(jb,$i);jb.prototype.getApiPaths=function(){return xWT};
jb.prototype.getExtension=function(f){return _.U(f,K6a)};
jb.prototype.JSC$13090_buildRequest=function(f,H){H.dismissal&&(f.items=[H.dismissal])};
_.H7.Object.defineProperties(jb.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var sm=function(){};
_.e(sm,$i);sm.prototype.getApiPaths=function(){return klH};
sm.prototype.getExtension=function(f){return _.U(f,_.B1)||void 0};
sm.prototype.JSC$13090_buildRequest=function(f,H,v){f.feedbackTokens=[];H.feedbackToken&&f.feedbackTokens.push(H.feedbackToken);if(H=H.cpn||v.cpn)f.feedbackContext={cpn:H};f.isFeedbackTokenUnencrypted=!!v.is_feedback_token_unencrypted;f.shouldMerge=!1;v.extra_feedback_tokens&&(f.shouldMerge=!0,f.feedbackTokens=f.feedbackTokens.concat(v.extra_feedback_tokens))};
_.H7.Object.defineProperties(sm.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ZL=function(){};
_.e(ZL,$i);ZL.prototype.getApiPaths=function(){return klH};
ZL.prototype.getExtension=function(f){return _.U(f,_.dj)};
ZL.prototype.JSC$13090_buildRequest=function(f,H,v){v.feedback_tokens&&(f.feedbackTokens=v.feedback_tokens,f.shouldMerge=!0)};
_.H7.Object.defineProperties(ZL.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Jb=function(){};
_.e(Jb,$i);Jb.prototype.getApiPaths=function(){return klH};
Jb.prototype.getExtension=function(f){return _.U(f,XuR)};
Jb.prototype.JSC$13090_buildRequest=function(f,H){H.undoToken&&(f.feedbackTokens=[H.undoToken]);H.isUndoTokenUnencrypted&&(f.isFeedbackTokenUnencrypted=H.isUndoTokenUnencrypted)};
_.H7.Object.defineProperties(Jb.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var lO=function(){};
_.e(lO,$i);lO.prototype.getApiPaths=function(){return p5b};
lO.prototype.getExtension=function(f){return _.U(f,zQ_)};
lO.prototype.JSC$13090_buildRequest=function(f,H){H.nextEndpoint&&_.U(H.nextEndpoint,_.X7)?f.nextEndpoint={urlEndpoint:_.U(H.nextEndpoint,_.X7)}:H.nextEndpoint&&_.U(H.nextEndpoint,_.wI)&&(f.nextEndpoint={watchEndpoint:_.U(H.nextEndpoint,_.wI)});H.setRacy&&(f.setRacy=H.setRacy);H.setControvercy&&(f.setControvercy=H.setControvercy)};var Um=function(f){this.JSC$17854_storeWithEntities=f};
_.e(Um,$i);Um.prototype.getApiPaths=function(){return zBr};
Um.prototype.getExtension=function(f){return _.U(f,qvn)};
Um.prototype.JSC$13090_buildRequest=function(f,H){H.flowId&&(f.flowId=H.flowId);H.targetId&&(f.targetId=H.targetId);H.continuation&&(f.continuation=H.continuation);var v=H.flowStateEntityKey;if(H.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&v&&this.JSC$17854_storeWithEntities){var t;if(H=(t=this.JSC$17854_storeWithEntities.getState())==null?void 0:t.entities)if(t=_.OF(v).entityType,t=_.dL(H,t,v))f.flowState=t,f.flowStateEntityKey=v}};
_.H7.Object.defineProperties(Um.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
Um[bN]=[qi];var Vv0=function(){};
_.e(Vv0,$i);_.R=Vv0.prototype;_.R.getApiPaths=function(){return imh};
_.R.JSC$13097_getStoreKey=function(){return _.TP("guide")};
_.R.getRequestConfig=function(){var f=this.JSC$13097_getStoreKey(),H;f&&(H={storeStrategy:{storeKey:f}});return H};
_.R.isNavigationCommand=function(){return!0};
_.R.getExtension=function(f){return _.U(f,_.dj)};
_.R.JSC$13090_buildRequest=function(f){f.fetchLiveState=!0};var eb=function(){};
_.e(eb,$i);eb.prototype.getApiPaths=function(){return YhT};
eb.prototype.getExtension=function(f){return _.U(f,NCr)};
eb.prototype.JSC$13090_buildRequest=function(){};var Lj=function(){};
_.e(Lj,$i);Lj.prototype.getApiPaths=function(){return mWM};
Lj.prototype.getExtension=function(f){return _.U(f,cco)};
Lj.prototype.JSC$13090_buildRequest=function(){};var xS=function(){};
_.e(xS,$i);xS.prototype.getApiPaths=function(){return M5T};
xS.prototype.getExtension=function(f){return _.U(f,_.GI)};
xS.prototype.JSC$13090_buildRequest=function(f,H){H.token&&(f.continuation=H.token);var v,t;f==null||(v=f.context)==null||(t=v.user)==null||delete t.onBehalfOfUser};
xS.prototype.getRequestConfig=function(f){var H={},v;if(((v=this.getExtension(f))==null?void 0:v.sessionIndex)!==void 0){var t;H={authStrategy:{sessionIndex:(t=this.getExtension(f))==null?void 0:t.sessionIndex}}}return H};var Bq=function(){};
_.e(Bq,$i);Bq.prototype.JSC$13090_getRequest=function(f){var H=this.getExtension(f),v=f="";if(H==null?0:H.popup)f="true";if(H==null?0:H.disableSignout)v="true";H={};return{input:"/getAccountSwitcherEndpoint",requestShell:k1("/getAccountSwitcherEndpoint","GET",(H["X-YouTube-Delegation-Context"]=_.a8("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),H["X-YouTube-Account-Switcher-Popup"]=f,H["X-YouTube-Account-Switcher-Disable-Signout"]=v,H)),innerTubeRequest:{}}};
Bq.prototype.getApiPaths=function(){return[]};
Bq.prototype.getExtension=function(f){return _.U(f,_.nwB)};
Bq.prototype.JSC$13090_buildRequest=function(){};var zv=function(){};
_.e(zv,$i);zv.prototype.JSC$13090_getRequest=function(f){var H="/cross_account_channel_transfer";(f=this.getExtension(f))&&(H=srv(H,{target_session:f.targetSessionIndex,source_rapt:f.sourceRapt,rapt:f.targetRapt}));return{input:H,requestShell:k1(H,"GET"),innerTubeRequest:{}}};
zv.prototype.getApiPaths=function(){return[]};
zv.prototype.getExtension=function(f){return _.U(f,eKZ)};
zv.prototype.JSC$13090_buildRequest=function(){};var Fv=function(){};
_.e(Fv,$i);Fv.prototype.getApiPaths=function(){return Fya};
Fv.prototype.isNavigationCommand=function(){return!0};
Fv.prototype.getExtension=function(f){return _.U(f,_.dj)};
Fv.prototype.JSC$13090_buildRequest=function(f){var H=_.Uj().get("gsml","");H&&(f.safetyModeLockerObfuscatedGaiaId=H);f.userInterfaceTheme=_.o9(!0);_.nG()?f.deviceTheme="DEVICE_THEME_SELECTED":_.zfN()?f.deviceTheme="DEVICE_THEME_SUPPORTED":f.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var ra=function(){};
_.e(ra,$i);ra.prototype.getApiPaths=function(){return M5T};
ra.prototype.getExtension=function(f){return _.U(f,LPo)};
ra.prototype.JSC$13090_buildRequest=function(f,H){if(H&&H.requestType&&(f.requestType=H.requestType,H.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||H.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var v=H.nextUrl;v&&(_.JXs(v)||fl(v))&&(f.nextNavendpoint={urlEndpoint:{url:v}})}H&&H.channelSwitcherQuery&&(f.channelSwitcherQuery=H.channelSwitcherQuery);H&&H.triggerChannelCreation&&(f.triggerChannelCreation=H.triggerChannelCreation);var t;if(H==null?0:(t=H.contentOwnerConfig)==
null?0:t.externalContentOwnerId)f.contentOwnerConfig=H.contentOwnerConfig;f.callCircumstance=H&&H.requestType&&H.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var M,h;H=f==null?void 0:(M=f.context)==null?void 0:(h=M.user)==null?void 0:h.onBehalfOfUser;if(H!==void 0){f.obfuscatedSelectedGaiaId=H;var y,m;f==null||(y=f.context)==null||(m=y.user)==null||delete m.onBehalfOfUser}var W,I;if(M=f==null?void 0:(W=f.context)==null?void 0:(I=W.user)==null?
void 0:I.serializedDelegationContext)f.selectedSerializedDelegationContext=M};var Kj=function(){};
_.e(Kj,$i);Kj.prototype.getApiPaths=function(){return RBH};
Kj.prototype.getExtension=function(f){return _.U(f,o3H)};
Kj.prototype.JSC$13090_buildRequest=function(f,H){H.params&&(f.params=H.params)};var DL=function(){};
_.e(DL,$i);DL.prototype.getApiPaths=function(){return Iun};
DL.prototype.getExtension=function(f){return _.U(f,_.bKo)};
DL.prototype.JSC$13090_buildRequest=function(f,H){if(H=H.createBroadcastRequest)f.useMasks=H.useMasks,f.broadcastType=H.broadcastType,f.broadcastSource=H.broadcastSource,f.broadcastMetadata=H.broadcastMetadata,f.broadcastMetadataMask=H.broadcastMetadataMask,f.videoMetadata=H.videoMetadata,f.videoMetadataMask=H.videoMetadataMask,f.liveChatSettingsUpdate=H.liveChatSettingsUpdate,f.liveChatSettingsUpdateMask=H.liveChatSettingsUpdateMask,f.cloneVideoId=H.cloneVideoId,f.cloneWithOverrides=H.cloneWithOverrides,
f.targetEntity=H.targetEntity,f.scheduledRedirectMetadata=H.scheduledRedirectMetadata};var oT=function(){};
_.e(oT,$i);oT.prototype.getApiPaths=function(){return sih};
oT.prototype.getExtension=function(f){return _.U(f,Pbv)};
oT.prototype.JSC$13090_buildRequest=function(f,H,v){v=v===void 0?{}:v;H.params&&(f.params=H.params);v.questionText&&(f.questionText=v.questionText);v.optionText&&v.optionText.length>0&&(f.optionText=v.optionText)};var nj=function(){};
_.e(nj,$i);nj.prototype.getApiPaths=function(){return luh};
nj.prototype.getExtension=function(f){return _.U(f,uQa)};
nj.prototype.JSC$13090_buildRequest=function(f,H){H.params&&(f.params=H.params)};var pj=function(){};
_.e(pj,$i);pj.prototype.getApiPaths=function(){return nIv};
pj.prototype.getExtension=function(f){return _.U(f,o4_)};
pj.prototype.JSC$13090_buildRequest=function(f,H){H.params&&(f.params=H.params)};var Qv=function(){};
_.e(Qv,$i);Qv.prototype.getApiPaths=function(){return Qig};
Qv.prototype.getExtension=function(f){return _.U(f,n4r)};
Qv.prototype.JSC$13090_buildRequest=function(f,H,v){H.params&&(f.params=H.params);H.continuation&&(f.continuation=H.continuation);v.currentPlayerState&&v.currentPlayerState.playerOffsetMs&&(f.currentPlayerState={playerOffsetMs:v.currentPlayerState.playerOffsetMs.toString()})};var uO=function(){};
_.e(uO,$i);uO.prototype.getApiPaths=function(){return uiM};
uO.prototype.getExtension=function(f){return _.U(f,Dgn)};
uO.prototype.JSC$13090_buildRequest=function(f,H,v){H.params&&(f.params=H.params);v.continuation&&(f.continuation=v.continuation);"hidden"in v&&(f.webClientInfo={isDocumentHidden:v.hidden});v.isInvalidationTimeoutRequest&&(f.isInvalidationTimeoutRequest=v.isInvalidationTimeoutRequest);v.invalidationPayload&&(H=Kca(_.yM(Hh(v.invalidationPayload))),f.invalidationPayloadLastPublishAtUsec=BI(H,2));v.reloadActionPanel&&(f.reloadActionPanel=v.reloadActionPanel);v.fullReload&&(f.fullReload=v.fullReload);
v.currentPlayerState&&(f.currentPlayerState=v.currentPlayerState)};var aT=function(){};
_.e(aT,$i);aT.prototype.getApiPaths=function(){return qh_};
aT.prototype.getExtension=function(f){return _.U(f,aB_)};
aT.prototype.JSC$13090_buildRequest=function(f,H){f.params=H.params};var Pq=function(){};
_.e(Pq,$i);Pq.prototype.getApiPaths=function(){return pGh};
Pq.prototype.getExtension=function(f){return _.U(f,kAh)};
Pq.prototype.JSC$13090_buildRequest=function(f,H){H.params&&(f.params=H.params)};var Gv=function(){};
_.e(Gv,$i);Gv.prototype.getApiPaths=function(){return auv};
Gv.prototype.getExtension=function(f){return _.U(f,TSb)};
Gv.prototype.JSC$13090_buildRequest=function(f,H){H.params&&(f.params=H.params)};var Cj=function(){};
_.e(Cj,$i);Cj.prototype.getApiPaths=function(){return ffv};
Cj.prototype.getExtension=function(f){return _.U(f,GCg)};
Cj.prototype.JSC$13090_buildRequest=function(f,H){H.params&&(f.params=H.params)};var Em=function(){};
_.e(Em,$i);Em.prototype.getApiPaths=function(){return v8o};
Em.prototype.getExtension=function(f){return _.U(f,Cbr)};
Em.prototype.JSC$13090_buildRequest=function(f,H){H.params&&(f.params=H.params)};var Ns=function(){};
_.e(Ns,$i);Ns.prototype.getApiPaths=function(){return $29};
Ns.prototype.getExtension=function(f){return _.U(f,QqZ)};
Ns.prototype.JSC$13090_buildRequest=function(f,H){H.params&&(f.params=H.params)};var cq=function(){};
_.e(cq,$i);cq.prototype.getApiPaths=function(){return jtT};
cq.prototype.getExtension=function(f){return _.U(f,_.E4H)};
cq.prototype.JSC$13090_buildRequest=function(f,H,v){v=v===void 0?{}:v;H.params&&(f.params=H.params);v.client_message_id&&(f.clientMessageId=v.client_message_id);v.recaptcha_token&&(f.recaptchaToken=v.recaptcha_token);v.rich_message&&v.rich_message.text_segments?(H=v.rich_message.text_segments.map(function(t){var M={};t.text&&(M.text=t.text);t.emoji_id&&(M.emojiId=t.emoji_id);return M}),f.richMessage={textSegments:H}):v.message&&(f.message=v.message);
v.currentPlayerState&&(f.currentPlayerState=v.currentPlayerState)};var Xv=function(){};
_.e(Xv,$i);Xv.prototype.getApiPaths=function(){return stC};
Xv.prototype.getExtension=function(f){return _.U(f,N_a)};
Xv.prototype.JSC$13090_buildRequest=function(f,H){H.params&&(f.params=H.params)};var Ab=function(){};
_.e(Ab,$i);Ab.prototype.getApiPaths=function(){return ef9};
Ab.prototype.getExtension=function(f){return _.U(f,XDT)};
Ab.prototype.JSC$13090_buildRequest=function(f,H,v){H.isUserInitiated&&(f.isUserInitiated=H.isUserInitiated);H.initiationSource&&(f.initiationSource=H.initiationSource);v.locationInfo&&(f.context.client.locationInfo=v.locationInfo)};var bO=function(){};
_.e(bO,$i);bO.prototype.getApiPaths=function(){return HXg};
bO.prototype.getExtension=function(f){return _.U(f,iKv)};
bO.prototype.JSC$13090_buildRequest=function(f,H,v){H.metadataUpdateRequest&&(H=H.metadataUpdateRequest,f.encryptedVideoId=H.encryptedVideoId,H.liveChat&&(H=H.liveChat,f.liveChat||(f.liveChat={}),H.performAsExternalChannelId&&(f.liveChat.performAsExternalChannelId=H.performAsExternalChannelId),H.source&&(f.liveChat.source=H.source)));var t;if(v==null?0:(t=v.liveChat)==null?0:t.liveChatSettings)f.liveChat||(f.liveChat={}),v=v.liveChat.liveChatSettings,f.liveChat.newLiveChatSettings=v,f.liveChat.newLiveChatSettingsMask||
(f.liveChat.newLiveChatSettingsMask={}),v.emojiReactionSet&&(f.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var iO=function(){};
_.e(iO,$i);iO.prototype.getApiPaths=function(){return o8C};
iO.prototype.getExtension=function(f){return _.U(f,_.h4M)};
iO.prototype.JSC$13090_buildRequest=function(f,H,v){v.continuation?f.continuation=v.continuation:H.videoId&&(f.videoId=H.videoId);v.clientParams&&(f.clientParams=v.clientParams)};var kS=function(){};
_.e(kS,$i);kS.prototype.getApiPaths=function(){return Pmv};
kS.prototype.getExtension=function(f){return _.U(f,_.rC)};
kS.prototype.JSC$13090_buildRequest=function(f,H){f.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";f.fetchCommentsParams={};H.videoId&&(f.fetchCommentsParams.encryptedVideoId=H.videoId);H.postId&&(f.fetchCommentsParams.postId=H.postId);H.externalChannelId&&(f.fetchCommentsParams.externalChannelId=H.externalChannelId);H.linkedCommentId&&(f.fetchCommentsParams.linkedCommentId=H.linkedCommentId);(0,_.QA.isEmpty)(f.fetchCommentsParams)&&delete f.fetchCommentsParams};var Mb=function(){};
_.e(Mb,$i);Mb.prototype.getApiPaths=function(){return Ni};
Mb.prototype.JSC$13090_buildRequest=function(f){f.browseId="FEnotifications_inbox"};
Mb.prototype.getExtension=function(f){return _.U(f,_.dj)};var hF=function(){};
_.e(hF,$i);hF.prototype.getApiPaths=function(){return Pmv};
hF.prototype.JSC$13090_buildRequest=function(f,H){H.signal==="GET_NOTIFICATIONS_MENU"&&(f.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");H.ctoken&&(f.ctoken=H.ctoken)};
var y90=function(){};
_.e(y90,hF);y90.prototype.getExtension=function(f){return _.U(f,_.dj)};
var Yb5=function(){};
_.e(Yb5,hF);Yb5.prototype.getExtension=function(f){return _.U(f,L6Z)};var R6=function(){};
_.e(R6,$i);R6.prototype.getApiPaths=function(){return XGv};
R6.prototype.getExtension=function(f){return _.U(f,_.dj)};
R6.prototype.JSC$13090_buildRequest=function(){};var V6=function(){};
_.e(V6,$i);V6.prototype.getApiPaths=function(){return tUa};
V6.prototype.getExtension=function(f){return _.U(f,f7C)||void 0};
V6.prototype.JSC$13090_buildRequest=function(f,H){H.params&&(f.params=H.params);H.secondaryParams&&(f.secondaryParams=H.secondaryParams)};var y6=function(){};
_.e(y6,$i);y6.prototype.getApiPaths=function(){return MUT};
y6.prototype.getExtension=function(f){return _.U(f,n3g)};
y6.prototype.JSC$13090_buildRequest=function(f,H){H.undo&&(f.undo=H.undo);H.serializedOptOut&&(f.serializedOptOut=H.serializedOptOut);H.serializedRecordInteractionsRequest&&(f.serializedRecordInteractionsRequest=H.serializedRecordInteractionsRequest)};var Yw=function(){};
_.e(Yw,$i);Yw.prototype.getApiPaths=function(){return VU_};
Yw.prototype.getExtension=function(f){return _.U(f,pwn)};
Yw.prototype.JSC$13090_buildRequest=function(f,H){H.serializedInteractionsRequest&&(f.serializedRecordNotificationInteractionsRequest=H.serializedInteractionsRequest)};var mi=function(){};
_.e(mi,$i);mi.prototype.getApiPaths=function(){return NOv};
mi.prototype.getExtension=function(f){return _.U(f,Ewb)};
mi.prototype.JSC$13090_buildRequest=function(f,H,v){H=H===void 0?{}:H;v=v===void 0?{}:v;H.videoId?f.videoId=H.videoId:H.playlistId&&(f.playlistId=H.playlistId);var t,M=(t=H.offlineWebClientEligibility)!=null?t:v.offlineWebClientEligibility;M&&(f.offlineWebClientEligibility=M);var h;if(t=(h=H.preferredFormatType)!=null?h:v.preferredFormatType)f.preferredFormatType=t;var y;if(h=(y=H.lastOfflineQualitySettingsSavedMs)!=null?y:v.lastOfflineQualitySettingsSavedMs)f.lastOfflineQualitySettingsSavedMs=h;
H.params&&(f.params=H.params)};var $w=function(){};
_.e($w,$i);$w.prototype.getApiPaths=function(){return kW};
$w.prototype.getExtension=function(f){return _.U(f,_.GI)};
$w.prototype.JSC$13090_buildRequest=function(f,H,v){v=v===void 0?{}:v;H.token&&(f.continuation=H.token);v.formData&&(f.formData=v.formData)};var WW=function(){};
_.e(WW,$i);WW.prototype.getApiPaths=function(){return kW};
WW.prototype.getExtension=function(f){return _.U(f,Ear)};
WW.prototype.JSC$13090_buildRequest=function(f,H,v){v=v===void 0?{}:v;f.continuation=v.continuation};var Ou=function(){};
_.e(Ou,$i);Ou.prototype.getApiPaths=function(){return kW};
Ou.prototype.getExtension=function(f){return _.U(f,_.UH)};
Ou.prototype.JSC$13090_buildRequest=function(f,H){var v,t=H.panelIdentifier||((v=H.identifier)==null?void 0:v.tag);t&&(f.panelId=t);var M;if((M=H.globalConfiguration)==null?0:M.params){var h;f.params=(h=H.globalConfiguration)==null?void 0:h.params}};
_.H7.Object.defineProperties(Ou.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var gJ=function(){};
_.e(gJ,$i);gJ.prototype.getApiPaths=function(){return kW};
gJ.prototype.getExtension=function(f){return _.U(f,B4v)};
gJ.prototype.JSC$13090_buildRequest=function(f,H){H.panelLoadingStrategy&&Eyv(f,H.panelLoadingStrategy)};var I6=function(){};
_.e(I6,$i);I6.prototype.getApiPaths=function(){return kW};
I6.prototype.getExtension=function(f){return _.U(f,AH_)};
I6.prototype.JSC$13090_buildRequest=function(f,H){H.loadingStrategy&&Eyv(f,H.loadingStrategy)};var Sn=function(){};
_.e(Sn,$i);Sn.prototype.getApiPaths=function(){return kW};
Sn.prototype.getExtension=function(f){return _.U(f,_.U7)};
Sn.prototype.JSC$13090_buildRequest=function(f,H){H.panelLoadingStrategy&&Eyv(f,H.panelLoadingStrategy)};var dJ=function(){};
_.e(dJ,$i);dJ.prototype.getApiPaths=function(){return kW};
dJ.prototype.getExtension=function(f){return _.U(f,b3Z)};
dJ.prototype.JSC$13090_buildRequest=function(f,H){var v,t=(v=H.contentSourcePanelIdentifier)==null?void 0:v.tag;t&&(f.panelId=t);var M;if((M=H.globalConfiguration)==null?0:M.params){var h;f.params=(h=H.globalConfiguration)==null?void 0:h.params}};var jn=function(){};
_.e(jn,$i);jn.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
jn.prototype.getExtension=function(f){return _.U(f,i3o)};
jn.prototype.JSC$13090_buildRequest=function(f,H){H.params&&(f.params=H.params)};var su=function(){};
_.e(su,$i);su.prototype.getApiPaths=function(){return D2o};
su.prototype.getExtension=function(f){return _.U(f,ww_)};
su.prototype.JSC$13090_buildRequest=function(f,H){H.externalChannelId&&(f.externalChannelId=H.externalChannelId);H.superChatAction&&(f.superChatAction=H.superChatAction);H.superStickersAction&&(f.superStickersAction=H.superStickersAction)};var Z3=function(){};
_.e(Z3,$i);Z3.prototype.getApiPaths=function(){return r_M};
Z3.prototype.getExtension=function(f){return _.U(f,EWo)||_.U(f,cFR)};
Z3.prototype.JSC$13090_buildRequest=function(f,H){H.videoIds?f.videoIds=H.videoIds:H.videoId&&(f.videoIds=[H.videoId]);H.playlistId&&(f.playlistId=H.playlistId);H.params&&(f.params=H.params);f.excludeWatchLater=!1};var JF=function(){};
_.e(JF,$i);JF.prototype.getApiPaths=function(){return Zma};
JF.prototype.getExtension=function(f){return _.U(f,_.uP)};
JF.prototype.JSC$13090_buildRequest=function(f,H,v){v.create_playlist_title?f.title=v.create_playlist_title:H.title&&(f.title=H.title);if(v.create_playlist_privacy_status&&typeof v.create_playlist_privacy_status==="number"){a:{var t=v.create_playlist_privacy_status;if(t!==0){if(t===1){t="PUBLIC";break a}if(t===2){t="UNLISTED";break a}}t="PRIVATE"}f.privacyStatus=t}else H.privacyStatus&&(f.privacyStatus=H.privacyStatus);v.create_playlist_description&&(f.description=v.create_playlist_description);H.videoIds&&
(f.videoIds=H.videoIds);H.params&&(f.params=H.params);H.sourcePlaylistId&&(f.sourcePlaylistId=H.sourcePlaylistId)};var lQ=function(){};
_.e(lQ,$i);lQ.prototype.getApiPaths=function(){return UWa};
lQ.prototype.getExtension=function(f){return _.U(f,wdh)};
lQ.prototype.JSC$13090_buildRequest=function(f,H){f.playlistId=H.playlistId};var Uu=function(){};
_.e(Uu,$i);Uu.prototype.getApiPaths=function(){return Glr};
Uu.prototype.getExtension=function(f){return _.U(f,zRg)};
Uu.prototype.JSC$13090_buildRequest=function(f,H){H.playlistId&&(f.playlistId=H.playlistId);H.params&&(f.params=H.params)};var en=function(){};
_.e(en,$i);en.prototype.getApiPaths=function(){return Rfn};
en.prototype.getExtension=function(f){return _.U(f,_.Kv)||void 0};
en.prototype.JSC$13090_buildRequest=function(f,H){H.actions&&(f.actions=H.actions);H.params&&(f.params=H.params);H.playlistId&&(f.playlistId=H.playlistId)};var LD=function(){};
_.e(LD,$i);_.R=LD.prototype;_.R.getApiPaths=function(){return y3h};
_.R.getExtension=function(f){return _.U(f,_.zD)};
_.R.JSC$13090_buildRequest=function(f,H){H.videoId&&(f.playerRequest={videoId:H.videoId},H.playerParams&&(f.playerRequest.params=H.playerParams),H.racyCheckOk&&(f.playerRequest.racyCheckOk=!!H.racyCheckOk),H.contentCheckOk&&(f.playerRequest.contentCheckOk=!!H.contentCheckOk));H.params&&(f.params=H.params);H.inputType&&(f.inputType=H.inputType);f.disablePlayerResponse=!0};
_.R.getRequestConfig=function(f){var H;(f=this.JSC$13097_getStoreKey(f))&&(H={storeStrategy:{storeKey:f}});_.J("web_log_reels_ticks")&&(H=H||{},H.requestTick="r_wrs",H.responseTick="r_wrr");return H};
_.R.JSC$13097_getStoreKey=function(f){f=this.getExtension(f);if(_.J("shorts_controller_retrieve_seedless_sequence_v2")){if((f==null?void 0:f.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.TP("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if(_.J("web_shorts_prefetch_service_enabled")&&f!=null&&f.videoId){var H={videoId:f.videoId};f.params&&(H.params=f.params);return _.TP("reel_item_watch",H)}};var xw=function(){};
_.e(xw,$i);_.R=xw.prototype;_.R.getApiPaths=function(){return YsZ};
_.R.getExtension=function(f){return _.U(f,_.zD)};
_.R.JSC$13090_buildRequest=function(f,H,v){v=v===void 0?{}:v;f.sequenceParams=H.sequenceParams;var t;((t=v)==null?0:t.contentPlaybackContext)&&_.J("web_shorts_prefetch_service_enabled")&&(f.playbackContext={contentPlaybackContext:v.contentPlaybackContext})};
_.R.JSC$13097_getStoreKey=function(f){if(_.J("web_enable_delay_shorts_sequence_call")||_.J("shorts_controller_retrieve_seedless_sequence_v2"))if(f=this.getExtension(f),f==null?0:f.sequenceParams)return _.TP("reel_watch_sequence",{sequenceParams:f.sequenceParams})};
_.R.getRequestConfig=function(f){f=this.JSC$13097_getStoreKey(f);var H;f&&(H={storeStrategy:{storeKey:f}});_.J("reel_watch_sequence_request_log_ticks")&&(H=H||{},H.requestTick="r_wsrs",H.responseTick="r_wsrr",H.processorTick="r_wsrp");return H};
var BW=function(){};
_.e(BW,$i);BW.prototype.getApiPaths=function(){return YsZ};
BW.prototype.getExtension=function(f){return _.U(f,_.GI)};
BW.prototype.JSC$13090_buildRequest=function(f,H,v){v=v===void 0?{}:v;H.token&&(f.continuation=H.token);var t;((t=v)==null?0:t.contentPlaybackContext)&&_.J("web_shorts_prefetch_service_enabled")&&(f.playbackContext={contentPlaybackContext:v.contentPlaybackContext})};
BW.prototype.getRequestConfig=function(f){f=this.JSC$13097_getStoreKey(f);var H;f&&(H={storeStrategy:{storeKey:f}});_.J("reel_watch_sequence_request_log_ticks")&&(H=H||{},H.requestTick="r_wsrs",H.responseTick="r_wsrr",H.processorTick="r_wsrp");return H};var z8=function(){};
_.e(z8,$i);z8.prototype.getApiPaths=function(){return B$C};
z8.prototype.getExtension=function(f){return _.U(f,_.wC9)};
z8.prototype.JSC$13090_buildRequest=function(f,H,v){v=v===void 0?{}:v;H.flagAction&&(f.action=H.flagAction);H.flagRequestType&&(f.flagRequestType=H.flagRequestType);H.additionalDetailCheckboxChecked&&(f.additionalDetailCheckboxChecked=H.additionalDetailCheckboxChecked);H.legalCheckboxChecked&&(f.legalCheckboxChecked=H.legalCheckboxChecked);H={};v.flag_issue_type!==void 0&&(H.issue=v.flag_issue_type);v.flag_affiliation!==void 0&&(H.affiliation=v.flag_affiliation);v.flag_full_name&&(H.fullName=v.flag_full_name);
Object.keys(H).length&&(f.legalReportDetails=H);if(v.flag_description||v.text)f.userComments=v.flag_description||v.text;H={};v.minutes!==void 0&&v.seconds!==void 0&&(H.minutes=v.minutes,H.seconds=v.seconds);v.vss_id&&(H.vssId=v.vss_id);Object.keys(H).length&&(f.videoReportDetails=H);H={};v.video_ids&&(H.videoIds=v.video_ids);v.impersonated_channel_url&&(H.impersonatedChannelUrl=v.impersonated_channel_url);Object.keys(H).length&&(f.channelAbuseReportDetails=H)};
_.H7.Object.defineProperties(z8.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var FK=function(){};
_.e(FK,$i);FK.prototype.getApiPaths=function(){return oIC};
FK.prototype.getExtension=function(f){return _.U(f,Ugg)};
FK.prototype.JSC$13090_buildRequest=function(f,H){H.blockedForKidsContent&&(f.blockedForKidsContent=H.blockedForKidsContent)};var rJ=function(){};
_.e(rJ,$i);rJ.prototype.getApiPaths=function(){return Wnb};
rJ.prototype.getExtension=function(f){return _.U(f,NJN)};
rJ.prototype.JSC$13090_buildRequest=function(f,H,v){f.params=H.params;v.impersonated_channel_url&&(f.impersonatedChannelUrl=v.impersonated_channel_url)};var KD=function(){};
_.e(KD,$i);KD.prototype.getApiPaths=function(){return T$H};
KD.prototype.getExtension=function(f){return _.U(f,_.ezb)};
KD.prototype.JSC$13090_buildRequest=function(f,H){H.items&&(f.items=H.items);H.kidGaiaId&&(f.kidGaiaId=H.kidGaiaId)};var D3=function(){};
_.e(D3,$i);D3.prototype.getApiPaths=function(){return Kyh};
D3.prototype.getExtension=function(f){return _.U(f,_.PPh)};
D3.prototype.JSC$13090_buildRequest=function(f,H){H.params&&(f.params=H.params);H.targetId&&(f.targetId=H.targetId)};var o6=function(){};
_.e(o6,$i);o6.prototype.getApiPaths=function(){return Sso};
o6.prototype.getExtension=function(f){return _.U(f,x7r)};
o6.prototype.JSC$13090_buildRequest=function(f,H){H.externalVideoId&&(f.externalVideoId=H.externalVideoId);H.query&&(f.query=H.query);H.sourceTimelines&&(f.sourceTimelines=H.sourceTimelines)};var nD=function(){};
_.e(nD,$i);nD.prototype.getApiPaths=function(){return d2a};
nD.prototype.getExtension=function(f){return _.U(f,_.GI)||void 0};
nD.prototype.JSC$13090_buildRequest=function(f,H){H.token&&(f.continuation=H.token)};
_.mTF=function(){};
_.e(_.mTF,$i);_.R=_.mTF.prototype;_.R.getApiPaths=function(){return d2a};
_.R.getExtension=function(f){return _.U(f,_.LG)||void 0};
_.R.isNavigationCommand=function(){return!0};
_.R.JSC$13097_getStoreKey=function(f,H){H=H===void 0?{}:H;if(!H.disableCache&&(f=this.getExtension(f))&&f.query)return H={query:f.query},f.params&&(H.params=f.params),_.TP("search",H)};
_.R.JSC$13090_buildRequest=function(f,H,v){H.query&&(f.query=H.query);H.params&&(f.params=H.params);if(!_.J("web_forward_suggest_stats_killswitch")){var t=_.U(H,JHh);t&&(f.suggestStats=t)}var M;!_.J("kevlar_searchbox_stats_killswitch")&&((M=v.tempData)==null?0:M.gs_l)&&!_.U(H,JHh)&&(f.webSearchboxStatsUrl="/search?oq="+(v.tempData.oq||"")+"&gs_l="+v.tempData.gs_l);var h;if((h=v.tempData)==null?0:h.entityMid)H=f.suggestionSearchParams||{},H.entityMid=v.tempData.entityMid,f.suggestionSearchParams=H;
if(_.J("enable_desktop_vdcbg_components")||_.J("enable_inline_muted_playback_on_web_search"))v=_.Uj().getFlag(186),f.inlineSettingStatus=v?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON"};
_.R.getRequestConfig=function(f,H){H=H===void 0?{}:H;f=this.JSC$13097_getStoreKey(f,H);var v;f&&(v={storeStrategy:{storeKey:f}});_.J("web_log_search_ticks_ks")||(v=v||{},v.requestTick="sr_s",v.responseTick="sr_r");return v};var pD=function(){};
_.e(pD,$i);pD.prototype.getApiPaths=function(){return N$b};
pD.prototype.getExtension=function(f){return _.U(f,mIH)};
pD.prototype.JSC$13090_buildRequest=function(f,H){H.serializedGetSharingProviderDataParams&&(f.serializedGetSharingProviderDataParams=H.serializedGetSharingProviderDataParams)};var Q6=function(){};
_.e(Q6,$i);Q6.prototype.getApiPaths=function(){return c_o};
Q6.prototype.getExtension=function(f){return _.U(f,AkZ)};
Q6.prototype.JSC$13090_buildRequest=function(f,H){H.endpoint&&(f.endpoint=H.endpoint);H.action&&(f.action=H.action)};var uQ=function(){};
_.e(uQ,$i);uQ.prototype.getApiPaths=function(){return eBr};
uQ.prototype.getExtension=function(f){return _.U(f,qpn)};
uQ.prototype.JSC$13090_buildRequest=function(f,H){f.videoId=H.videoId;H.scheduledRedirectMetadataSourceVideoId&&(f.scheduledRedirectMetadata={sourceVideoId:H.scheduledRedirectMetadataSourceVideoId})};var a6=function(){};
_.e(a6,$i);a6.prototype.getApiPaths=function(){return J39};
a6.prototype.getExtension=function(f){return _.U(f,_.wHn)};
a6.prototype.JSC$13090_buildRequest=function(f,H){f.params=H.params;f.correctionText=H.correctionText};var PW=function(){};
_.e(PW,$i);PW.prototype.getApiPaths=function(){return GwE};
PW.prototype.getExtension=function(f){return _.U(f,_.BKn)};
PW.prototype.JSC$13090_buildRequest=function(f,H){H.params&&(f.params=H.params);f.searchQuery=H.searchQuery;f.languageCode=H.languageCode;f.kind=H.kind;f.name=H.name;f.externalVideoId=H.externalVideoId};var G8=function(){};
_.e(G8,$i);G8.prototype.getApiPaths=function(){return uFg};
G8.prototype.getExtension=function(f){return _.U(f,WJ_)};
G8.prototype.JSC$13090_buildRequest=function(f,H){H.params&&(f.params=H.params)};var CD=function(f){this.JSC$18125_storeWithEntities=f};
_.e(CD,$i);CD.prototype.getApiPaths=function(){return Omg};
CD.prototype.getExtension=function(f){return _.U(f,gpb)||_.U(f,SLM)};
CD.prototype.JSC$13090_buildRequest=function(f,H,v){v.client_data&&(f.clientData=v.client_data);if(H.commerceActionConfig){var t=H.commerceActionConfig;H=t.actionId;t=t.commerceActionParams;H&&(f.actionId=H);t&&(f.commerceActionParams=t)}else{var M=H.actionId,h=H.commerceActionParams;v=H.entityKeys;M&&(f.actionId=M);h&&(f.commerceActionParams=h);var y;H=(t=this.JSC$18125_storeWithEntities)==null?void 0:(y=t.getState())==null?void 0:y.entities;if(v&&H){t=[];y=_.V(v);for(v=y.next();!v.done;v=y.next())if(M=
v.value,v=_.OF(M).entityType,M=_.dL(H,v,M))h={},t.push((h[v]=M,h));f.entityMutationPayloads=t}}};
CD.prototype.getRequestConfig=function(f){var H,v=(H=_.U(f,gpb))==null?void 0:H.requestSequenceType;if(v&&f.clickTrackingParams&&v!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:f.clickTrackingParams,sequenceType:v}}};
CD[bN]=[qi];var Eu=function(){};
_.e(Eu,$i);Eu.prototype.getApiPaths=function(){return afr};
Eu.prototype.getExtension=function(f){return _.U(f,_.npg)};
Eu.prototype.JSC$13090_buildRequest=function(f,H){H.feedbackData&&(f.feedbackData=H.feedbackData);H.params&&(f.itemParams=H.params)};
_.H7.Object.defineProperties(Eu.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Nb=function(){};
_.e(Nb,$i);Nb.prototype.getApiPaths=function(){return P5C};
Nb.prototype.getExtension=function(f){return _.U(f,pp_)};
Nb.prototype.JSC$13090_buildRequest=function(f,H,v){v.payments_payload&&(f.paymentsPayload=v.payments_payload);v.offer_params&&(f.offerParams=v.offer_params);H.transactionParams&&(f.transactionParams=H.transactionParams)};var cW=function(){};
_.e(cW,$i);cW.prototype.getApiPaths=function(){return GQH};
cW.prototype.getExtension=function(f){return _.U(f,_.QMv)};
cW.prototype.JSC$13090_buildRequest=function(f,H,v){v=v===void 0?{}:v;H.buybucketParams&&(f.buybucketData={params:H.buybucketParams},H.stickerParams?f.buybucketData.stickerParams=H.stickerParams:(v.rich_chat_message?f.buybucketData.richChatMessage=v.rich_chat_message:v.chat_message_text&&(f.buybucketData.chatMessageText=v.chat_message_text),v.purchase_price_micros&&(f.buybucketData.purchasePriceMicros=v.purchase_price_micros.toString())));H.donationAmountMicros&&(f.tipAmountMicros=H.donationAmountMicros,
H.tipParams&&(f.tipParams=H.tipParams));H.offerParams&&(f.offerParams=H.offerParams);H.productData&&(f.productData=H.productData);H.transactionParams&&(f.transactionParams=H.transactionParams)};var XK=function(){};
_.e(XK,$i);XK.prototype.getApiPaths=function(){return C5h};
XK.prototype.getExtension=function(f){return _.U(f,PMM)};
XK.prototype.JSC$13090_buildRequest=function(f,H){H.updateFopParams&&(f.updateFopParams=H.updateFopParams)};var AF=function(){};
_.e(AF,$i);AF.prototype.getApiPaths=function(){return E8H};
AF.prototype.getExtension=function(f){return _.U(f,_.iF)};
AF.prototype.JSC$13090_buildRequest=function(f,H){H.couponCode&&(f.couponCode=H.couponCode);H.params&&(f.itemParams=H.params)};var bQ=function(){};
_.e(bQ,$i);bQ.prototype.getApiPaths=function(){return NYg};
bQ.prototype.getExtension=function(f){return _.U(f,_.Ish)};
bQ.prototype.JSC$13090_buildRequest=function(f,H,v){v=v===void 0?{}:v;H.params&&(f.params=H.params);v.ctk&&(f.clientToken=v.ctk)};var iQ=function(f){this.JSC$18160_storeWithEntities=f};
_.e(iQ,$i);iQ.prototype.getApiPaths=function(){return c3a};
iQ.prototype.getExtension=function(f){return _.U(f,_.Cv)};
iQ.prototype.JSC$13090_buildRequest=function(f,H,v){v.purchase_price_micros&&(f.productData={pdgData:{purchasePriceMicros:v.purchase_price_micros.toString()}},v.rich_chat_message&&(f.productData.pdgData.richChatMessage=v.rich_chat_message),v.currency_code&&(f.productData.pdgData.currencyCode=v.currency_code));H.transactionParams&&(f.transactionParams=H.transactionParams);H.clientLocationContext&&(f.clientLocationContext=H.clientLocationContext);v.payments_payload&&(f.paymentsPayload=v.payments_payload);
v.funds_guarantee_callback_client_data&&(f.fundsGuaranteeCallbackClientData=v.funds_guarantee_callback_client_data);var t,M;v=(t=this.JSC$18160_storeWithEntities)==null?void 0:(M=t.getState())==null?void 0:M.entities;if(H.entityKeys&&v){t=[];H=_.V(H.entityKeys);for(M=H.next();!M.done;M=H.next()){var h=M.value;M=_.OF(h).entityType;if(h=_.dL(v,M,h)){var y={};t.push((y[M]=h,y))}}f.entityMutationPayloads=t}};
iQ[bN]=[qi];var kw=function(){};
_.e(kw,$i);kw.prototype.getApiPaths=function(){return X5a};
kw.prototype.getExtension=function(f){return _.U(f,uoo)};
kw.prototype.JSC$13090_buildRequest=function(f,H,v){v=v===void 0?{}:v;v.backend_analytics&&(f.serializedBackendAnalyticsEvent=v.backend_analytics);H.offerParams&&(f.offerParams=H.offerParams)};var T8=function(){};
_.e(T8,$i);T8.prototype.getApiPaths=function(){return E8H};
T8.prototype.getExtension=function(f){return _.U(f,x5B)};
T8.prototype.JSC$13090_buildRequest=function(f,H){H.params&&(f.itemParams=H.params)};var wJ=function(){};
_.e(wJ,$i);wJ.prototype.getApiPaths=function(){return A3M};
wJ.prototype.getExtension=function(f){return _.U(f,_.J$v)};
wJ.prototype.JSC$13090_buildRequest=function(f,H,v){v.resume_time_ms&&(f.resumeTimeMs=v.resume_time_ms);H.pauseParams&&(f.pauseParams=H.pauseParams)};var qb=function(){};
_.e(qb,$i);qb.prototype.getApiPaths=function(){return bXr};
qb.prototype.getExtension=function(f){return _.U(f,_.aso)};
qb.prototype.JSC$13090_buildRequest=function(f,H,v){v=v===void 0?{}:v;v.c&&(f.redeemCode=v.c);v.rd&&(f.riskData=v.rd);v.ctk&&(f.clientToken=v.ctk)};var fa=function(){};
_.e(fa,$i);fa.prototype.getApiPaths=function(){return iX_};
fa.prototype.getExtension=function(f){return _.U(f,_.lsr)};
fa.prototype.JSC$13090_buildRequest=function(f,H){H.resumeParams&&(f.resumeParams=H.resumeParams)};var H$=function(f,H){this.clientName=f;this.defaultExpirationDelayMs=H};
H$.prototype.put=function(f,H){var v=this,t;return _.Y(function(M){t=Object.assign({},H.data);t.key=f;t.clientName=v.clientName;t.expireTimestampMs===void 0&&(t.expireTimestampMs=(Math.round((0,_.ta)())+v.defaultExpirationDelayMs).toString());return M.return(v.putInternal(f,t))})};
H$[bN]=[FN,S55];var $Th=function(){H$.apply(this,arguments);this.JSC$18190_responseStore=new Map};
_.e($Th,H$);_.R=$Th.prototype;_.R.get=function(f){var H=this;return _.Y(function(v){return v.return(Os(H,f))})};
_.R.putInternal=function(f,H){var v=this,t,M,h;return _.Y(function(y){t=v.defaultExpirationDelayMs;H.expireTimestampMs&&(t=Number(H.expireTimestampMs)-Math.round((0,_.ta)()),M=_.VQ("mweb_override_response_store_expiration_ms"),M>0&&M<t&&(t=M));h=setTimeout(function(){v.remove(f)},t);
v.JSC$18190_responseStore.set(f,{entryData:H,timer:h});_.Bj(y)})};
_.R.remove=function(f){var H=this;return _.Y(function(v){W_F(H,f);_.Bj(v)})};
_.R.removeAll=function(){var f=this;return _.Y(function(H){f.JSC$18190_responseStore.forEach(function(v){clearTimeout(v.timer)});
f.JSC$18190_responseStore.clear();_.Bj(H)})};
_.R.has=function(f){return!!this.JSC$18190_responseStore.get(f)};
_.R.getKeys=function(){return this.JSC$18190_responseStore.keys()};
var Os=function(f,H){if(f=f.JSC$18190_responseStore.get(H))return new _.W5(f.entryData)},W_F=function(f,H){var v=f.JSC$18190_responseStore.get(H);
v&&(clearTimeout(v.timer),f.JSC$18190_responseStore.delete(H))};var NEB;var Aus=function(f,H,v){H$.call(this,f,H);this.token=v};
_.e(Aus,H$);_.R=Aus.prototype;_.R.get=function(f){var H=this,v,t;return _.Y(function(M){return M.nextAddress==1?M.yield(XZH(H.token),2):M.nextAddress!=3?(v=M.yieldResult,M.yield(v.get("ResponseStore",[f,H.clientName]),3)):(t=M.yieldResult)?M.return(new _.W5(t)):M.return(void 0)})};
_.R.putInternal=function(f,H){var v=this,t;return _.Y(function(M){if(M.nextAddress==1)return M.yield(XZH(v.token),2);t=M.yieldResult;return M.yield(t.put("ResponseStore",H),0)})};
_.R.remove=function(f){var H=this,v;return _.Y(function(t){if(t.nextAddress==1)return t.yield(XZH(H.token),2);v=t.yieldResult;return t.return(v.delete("ResponseStore",[f,H.clientName]))})};
_.R.removeAll=function(){var f=this,H;return _.Y(function(v){if(v.nextAddress==1)return v.yield(XZH(f.token),2);H=v.yieldResult;return v.yield(mV_(H,IDBKeyRange.only(f.clientName)),0)})};
_.R.has=function(){throw Error("Yi");};_.v$=new _.iN("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var Ort=function(f){var H;this.stateTagsData=(H=f.responseContext)==null?void 0:H.stateTags},ggr=function(f){var H;
return((H=f.stateTagsData)==null?void 0:H.stateTagsModified)||[]};var IhW;IhW=function(f){this.JSC$18203_responseStore=f};
_.uL=function(f,H,v){if(!_.J("state_tags_killswitch")){var t=new Ort(H);if(ggr(t).length>0){var M=f.JSC$18203_responseStore.getKeys();M=_.V(M);for(var h=M.next();!h.done;h=M.next()){h=h.value;var y=Os(f.JSC$18203_responseStore,h);if(y){var m=_.T7(y);a:{var W=void 0;y=ggr(t);m=((W=(new Ort(m)).stateTagsData)==null?void 0:W.relevantStateTags)||[];W=_.V(m);for(m=W.next();!m.done;m=W.next())if(m=m.value,m.stateTag!=null&&y.includes(m.stateTag)&&m.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){y=
!0;break a}y=!1}y&&W_F(f.JSC$18203_responseStore,h)}}}}var I;t=(I=H.responseContext)==null?void 0:I.maxAgeSeconds;v&&t&&Number(t)>0&&(H=Y$(H,t),f.JSC$18203_responseStore.put(v,new _.W5(H)))};
IhW.prototype.handleResponse=function(f,H){if(!H)throw Error("Zi");var v,t;H=(v=H.config)==null?void 0:(t=v.storeStrategy)==null?void 0:t.storeKey;_.uL(this,f,H)};
IhW[bN]=[_.$8];_.faN=new _.iN("STORE_RESPONSE_PROCESSOR_TOKEN");var Sbr=function(f){this.JSC$18206_responseStore=f};
Sbr.prototype.handleResponse=function(f,H){if(H.input.match(_.tt(YsZ))){var v;if(f==null?0:(v=f.entries)==null?0:v.length)for(f=_.V(f.entries),H=f.next();!H.done;H=f.next()){v=H.value.command;var t=void 0;H=(t=_.U(v,_.zD))==null?void 0:t.unserializedPrefetchData;if(!v||!H)break;t=(new LD).JSC$13097_getStoreKey(v);var M=_.U(H,UQT),h=void 0,y=void 0,m=void 0,W=_.VQ("web_shorts_prefetch_service_ttl_seconds")>0?_.VQ("web_shorts_prefetch_service_ttl_seconds"):Number((m=(h=M)==null?void 0:(y=h.responseContext)==
null?void 0:y.maxAgeSeconds)!=null?m:3600);t&&W>0&&(M=Y$(M,W),this.JSC$18206_responseStore.put(t,new _.W5(M)));v=(new SD).JSC$13097_getStoreKey(v);H=_.U(H,VA_);h=M=t=void 0;y=_.VQ("web_shorts_prefetch_service_ttl_seconds")>0?_.VQ("web_shorts_prefetch_service_ttl_seconds"):Number((h=(t=H)==null?void 0:(M=t.responseContext)==null?void 0:M.maxAgeSeconds)!=null?h:3600);v&&y>0&&(H=Y$(H,y),this.JSC$18206_responseStore.put(v,new _.W5(H)))}}};
Sbr[bN]=[_.$8];var dTt=function(f){this.innertubeTransportService=f};
dTt.prototype.submitForm=function(f,H,v,t,M){var h=this,y,m,W;return _.Y(function(I){y={submitId:f,formData:H,submitBehavior:v,params:t};m=_.tt(lfg);W=_.Q8(h.innertubeTransportService,y,m,M);return I.return(W)})};
dTt[bN]=[_.PS];var ti=function(){this.scheduler=_.Zb()},jni;
ti.prototype.pause=function(){throw Error("$i");};
ti.prototype.resume=function(){throw Error("$i");};
ti.prototype.queue=function(f){var H=this,v=_.bE(),t=_.Lb(this.scheduler,function(){try{var M;if(_.jW.instance)var h=_.jW.instance;else{var y=new _.e$("Error: Unexpected uninitialized CommandHandler.");_.oO(y);h=void 0}(M=h)==null||M.resolveCommand(f.command);v.resolve()}catch(m){v.reject(m)}});
v.promise.thenCatch(function(M){M instanceof _.pp&&H.scheduler.cancelJob(t)});
return v.promise};
ti.prototype.queueAll=function(f){var H=new Map;f=_.V(f);for(var v=f.next();!v.done;v=f.next())v=v.value,H.set(v.id,this.queue(v));return H};var ZrW=function(f,H){var v=this;this.taskModel=f;this.onTaskCancelledCallback=H;this.resolver=_.bE();f=f.proto.prefetchConfig;if(!f)throw Error("aj");if(!f.prefetchAction)throw Error("bj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(t){t instanceof _.pp&&(snF(v,v.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),v.onTaskCancelledCallback(v.taskModel.id,v.jobId),v.tick("pcc"));
throw t;});
this.timerName=this.taskModel.id;_.QZ(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
ZrW.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 snF=function(f,H){_.nQ({prefetchInfo:{cancellationReason:H}},f.timerName)};
ZrW.prototype.tick=function(f){_.u0(f,void 0,this.timerName)};var hi=function(){var f=this;this.scheduler=_.Zb();this.maxInflightTasks=_.VQ("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.VQ("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new aIo;this.onTaskCancelled=function(H,v){v&&f.scheduler.cancelJob(v);J9h(f,H);M1(f,3)}},lhi=function(){hi.instance||(hi.instance=new hi);
return hi.instance};
hi.prototype.pause=function(){this.prefetchCoordinatorState=0};
hi.prototype.resume=function(){M1(this,0)};
hi.prototype.queue=function(f){f=UTx(this,f);M1(this,1);return f};
hi.prototype.queueAll=function(f){var H=new Map;f=_.V(f);for(var v=f.next();!v.done;v=f.next())v=v.value,H.set(v.id,UTx(this,v));M1(this,1);return H};
var UTx=function(f,H){var v=f.allPrefetchTasks.get(H.id);if(v)return v.cancellablePromise;try{var t=new ZrW(H,f.onTaskCancelled)}catch(h){return _.DI(h)}v=t;v.tick("pcq");var M={prefetchInfo:{taskId:v.taskModel.id,isPrefetch:!0,fetchAction:v.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:v.taskModel.command.clickTrackingParams}};v.taskModel.csn&&(M.clientScreenNonce=v.taskModel.csn);_.nQ(M,v.timerName);f.allPrefetchTasks.set(H.id,t);f.drainingHeap.insert(-t.getPriority(),t);return t.cancellablePromise},
M1=function(f,H){f.prefetchCoordinatorState===H&&(f.prefetchCoordinatorState=2,eZ0(f))},eZ0=function(f){for(var H={};f.prefetchCoordinatorState!==0;H={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(f.inflightPrefetchTasks.size>=f.maxInflightTasks){f.prefetchCoordinatorState=3;break}H.prefetchTask$jscomp$1=f.drainingHeap.remove();if(!H.prefetchTask$jscomp$1){f.prefetchCoordinatorState=1;break}H.taskId$jscomp$3=H.prefetchTask$jscomp$1.taskModel.id;if(f.allPrefetchTasks.has(H.taskId$jscomp$3)){var v=-1;f.coordinatorTimeoutMs>0&&(v=_.Lb(f.scheduler,function(t){return function(){RA(f,t.taskId$jscomp$3,Error("cj"))}}(H),f.coordinatorTimeoutMs));
f.inflightPrefetchTasks.set(H.taskId$jscomp$3,v);if(!f.JSC$18226_commandHandler){if(!_.jW.instance){RA(f,H.taskId$jscomp$3,Error("dj"));continue}f.JSC$18226_commandHandler=_.jW.instance}a:switch(H.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":v=1;break a;default:v=0}H.prefetchTask$jscomp$1.jobId=f.scheduler.addJob(function(t){return function(){t.prefetchTask$jscomp$1.tick("pcr");try{f.JSC$18226_commandHandler.resolveCommand(t.prefetchTask$jscomp$1.taskModel.command)||
RA(f,t.taskId$jscomp$3,Error("ej"))}catch(M){RA(f,t.taskId$jscomp$3,M)}}}(H),v,0)}}},L_x=function(f,H){(H=J9h(f,H))!=null&&(H.resolver.resolve(),H.tick("pce"));
M1(f,3)},RA=function(f,H,v){(H=J9h(f,H,v))!=null&&(H.resolver.reject(v),H.tick("pcc"),snF(H,"CANCELLATION_REASON_ERROR"),Math.random()<=_.VQ("prefetch_coordinator_error_logging_sampling_rate")&&(v=new _.e$("Prefetch Command failed.",H.taskModel.id,v.message),_.oO(v)));
M1(f,3)},J9h=function(f,H,v){var t=f.allPrefetchTasks.get(H);
t?((v=f.inflightPrefetchTasks.get(H))&&v!==-1&&f.scheduler.cancelJob(v),f.inflightPrefetchTasks.delete(H),f.allPrefetchTasks.delete(H)):_.pb(new _.e$("Unexpected missing prefetch task when deleting task.",H,v==null?void 0:v.message));return t};var xTi=function(f,H,v,t,M){this.id=f;this.triggerOn=H;this.cancelOn=v;this.command=t;this.proto=M};
_.H7.Object.defineProperties(xTi.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var Bhb=function(){this.JSC$18231_prefetchCoordinator=lhi();jni||(jni=new ti);this.defaultCoordinator=jni},zZG;
Bhb.getInstance=function(){zZG||(zZG=new Bhb);return zZG};
Bhb.prototype.get=function(f){switch(f){case 0:return this.JSC$18231_prefetchCoordinator;default:return this.defaultCoordinator}};var Vi=function(){this.coordinatorSupplier=Bhb.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},K_5=function(f){var H=_.uy()||void 0,v=Object.keys(F_p)[0];
if(v){var t=f.taskIdByTriggerId.get(v);if(t!=null){f.taskIdByTriggerId.delete(v);v=[];t=_.V(t);for(var M=t.next();!M.done;M=t.next())if(M=f.tasks.get(M.value))H!=="UNDEFINED_CSN"&&(M.csn=H),v.push(M);v=kJr(v);H=[];v=_.V(v);for(t=v.next();!t.done;t=v.next()){M=_.V(t.value);t=M.next().value;M=M.next().value;t=f.coordinatorSupplier.get(t).queueAll(M);t=_.V(t);var h=t.next();for(M={};!h.done;M={taskId$jscomp$9:void 0},h=t.next()){var y=_.V(h.value);h=y.next().value;y=y.next().value;M.taskId$jscomp$9=
h;h=y;H.push(M.taskId$jscomp$9);f.queuedPromisesByTask.set(M.taskId$jscomp$9,_.Ze(h,function(m){return function(){r9W(f,m.taskId$jscomp$9)}}(M)))}}}}else _.pb(new _.e$("Unexpected malformed TriggerEvent."))};
Vi.prototype.trigger=function(f,H){var v=this,t=this.tasks.get(f);if(!t||this.queuedPromisesByTask.has(f))return!1;DT5(this,f,t.triggerOn);H!=="UNDEFINED_CSN"&&(t.csn=H);H=this.coordinatorSupplier.get(t.taskType).queue(t);this.queuedPromisesByTask.set(f,_.Ze(H,function(){r9W(v,f)}));
return!0};
Vi.prototype.cancel=function(f){var H=this.queuedPromisesByTask.get(f);if(H)H.cancel();else return r9W(this,f)};
var r9W=function(f,H){f.queuedPromisesByTask.delete(H);var v=f.tasks.get(H);if(!v)return!1;f.tasks.delete(H);DT5(f,H,v.triggerOn);(v=isR(v.cancelOn))&&(f=f.taskIdByCancelId.get(v))&&f.delete(H);return!0},DT5=function(f,H,v){(v=Object.keys(v)[0])&&(f=f.taskIdByTriggerId.get(v))&&f.delete(H)};var F_p={taskRegistered:{}},yi=function(){Vi.instance||(Vi.instance=new Vi);this.JSC$18240_taskManager=Vi.instance};
_.e(yi,ae);
yi.prototype.resolveCommand=function(f){var H=this,v,t;return _.Y(function(M){v=_.U(f,LHh);if((t=v)==null||!t.tasks){var h=new _.e$("RegisterTasksCommand is missing tasks.");_.oO(h);return M.return()}h=H.JSC$18240_taskManager;for(var y=_.V(v.tasks),m=y.next();!m.done;m=y.next())if(m=m.value,m=m.id&&m.triggerOn&&m.cancelOn&&m.command?new xTi(m.id,m.triggerOn,m.cancelOn,m.command,m):void 0,m){var W=Object.keys(m.triggerOn)[0];if(W){var I=isR(m.cancelOn);I?(h.tasks.set(m.id,m),h.taskIdByTriggerId.has(W)||h.taskIdByTriggerId.set(W,
new Set),h.taskIdByTriggerId.get(W).add(m.id),h.taskIdByCancelId.has(I)||h.taskIdByCancelId.set(I,new Set),h.taskIdByCancelId.get(I).add(m.id)):_.pb(new _.e$("Unexpected malformed cancelOn field."))}else _.pb(new _.e$("Unexpected malformed triggerOn field."))}else _.pb(new _.e$("Unexpected malformed Task proto."));K_5(H.JSC$18240_taskManager);_.Bj(M)})};var og5={},ngb=(og5.rendered={priority:_.J("web_adaptive_early_init")?8:0,callback:function(){var f={};f.numCpu=navigator.hardwareConcurrency;var H={};H.ramGb=_.Mr.navigator.deviceMemory;var v={staticContext:{}};H.ramGb&&TEv(H.ramGb)&&(v.staticContext.memoryTotalKbytes=(H.ramGb*1048576).toString());f.numCpu&&TEv(f.numCpu)&&(v.staticContext.cpuCores=f.numCpu);if(_.J("web_enable_adaptive_appl_signal")){f={};H=_.Gi("rses_dpj");var t=_.Gi("rsef_dpj");H&&H>0&&t&&t>0&&(H=Math.ceil(t-H),H>0&&(f.loadLatency=
H));f.loadLatency&&TEv(f.loadLatency)&&(v.appL=f.loadLatency.toString())}_.Kb("applicationStarted",v)}},og5);var pox=new _.iN("WINDOW_ON_ERROR"),Qnb=new _.iN("ERROR_WEIGHT_MAPS"),uap=new _.iN("INIT_ERROR");var ah5={},PC5=(ah5.initialized={priority:10,callback:function(f){f.injector.resolve(uap)()}},ah5);var GH0=function(){},CCw=function(){var f=_.ES("meta_logger_impl");
f||(f=new GH0,_.qJ("meta_logger_impl",f));return f},Egh=function(){CCw().csiSubscriptionKey=IwH("meta_logging_csi_event",function(f){var H=f.timerName;
if(f=f.timelineData){_.QZ(H,{startTime:f.startTime},H);f.infos&&_.nQ(f.infos,H);for(var v=_.V(Object.keys(f.ticks)),t=v.next();!t.done;t=v.next())t=t.value,_.u0(t,f.ticks[t],H)}})};
GH0.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&jK_(this.csiSubscriptionKey)};var Nhr={},c9w=(Nhr.initialized={priority:10,callback:function(){Egh()}},Nhr);var Xoh=function(f,H){this.innertubeClientName=f;this.JSC$18256_prefCookie=H};
Xoh.prototype.record=function(){if(_.J("web_li_record_binary_eval_tick")){var f=_.Gi("rsef_dpj");var H=_.Gi("rses_dpj");f=f!==void 0&&H!==void 0?Math.round(f-H):void 0;if(f!==void 0&&f>0){H=_.Oz(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var v=this.poolSize;if(!(H.valuesSeen>=1E9)){if(H.valuesSample.length<v)H.valuesSample.push(f);else{var t=Math.floor(Math.random()*(H.valuesSeen+1));t<v&&(H.valuesSample[t]=f)}H.valuesSeen+=1}_.WH(this.storagePrefix+"-"+this.innertubeClientName,
H,2592E3);f=H.valuesSample;H=wZ3(f);f=f.length<this.poolSize?void 0:H<400?1:H<1700?2:3;f!==void 0&&(this.JSC$18256_prefCookie.set(this.cookiePrefix+this.innertubeClientName,f),this.JSC$18256_prefCookie.save())}}else _.g4(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18256_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18256_prefCookie.save()};
Xoh[bN]=[FN,yV];var A9W=function(){Xoh.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.e(A9W,Xoh);var brw=new _.iN("PAGE_LOAD_TIME_TOKEN");var irp=function(f){this.signal=f;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;f.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.Lb(_.nN,this.disableLoggingAndSendPayload,1E4)};
irp.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.nN.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),kHi(this))};
var kHi=function(f){var H=_.Qe();if(H){var v={webClientComponentsData:{components:Array.from(f.ids,function(t){return{id:t}})}};
f.ids.clear();_.UV().visualElementStateChanged(H,v)}};var ThW=ODH({a11y:H_v});_.woi=I3B(ThW)(ThW.a11y,{ephemeralActionSelector:function(f){return f.ephemeralAction||null}});var qbF=ODH({continuation:tlh});var frF=I3B(qbF)(qbF.continuation,{continuationCommandSelector:function(f){return f.continuationCommand}});var H0W=new _.iN("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var Ye=function(f,H){this.JSC$18285_storeWithEntities=f;this.JSC$18285_commandHandler=H;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
Ye.prototype.start=function(){this.JSC$18285_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
Ye.prototype.observeDownloadingEntities=function(){var f=_.HOB(this.JSC$18285_storeWithEntities.getState().entities).map(function(t){return vPR(t)});
if(f.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var H={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:fWT()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.hd(_.ZC("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18285_commandHandler.resolveCommand(H)}this.downloadingEntities=f}else if(this.downloadingEntities.length){var v=f7H(this.JSC$18285_storeWithEntities.getState().entities).map(function(t){return vPR(t)});
this.downloadingEntities.filter(function(t){return v.includes(t)}).length&&(f={openPopupAction:ny5()},this.JSC$18285_commandHandler.resolveCommand(f));
this.downloadingEntities=[]}};
Ye[bN]=[qi,_.MJ];var v5x;_.mG=function(f,H,v,t,M,h,y,m){this.JSC$18288_playerApiPromise=f;this.JSC$18288_commandHandler=H;this.JSC$18288_screenManager=v;this.offlineWebClientEligibility=t;this.JSC$18288_prefStorage=M;this.JSC$18288_actionRouter=h;this.entityTypeMap=y;this.JSC$18288_persistentStorePromiseAccessor=m;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
v5x=function(){var f=_.t8().resolve(_.mG),H;_.Y(function(v){if(v.nextAddress==1)return f.downloadFailureListenerBound?v.return():v.yield(f.JSC$18288_playerApiPromise,2);H=v.yieldResult;H.addEventListener("onOfflineOperationFailure",function(t){if(t.failureReason&&t.entityKey&&t.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(t.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var M=_.OF(t.entityKey).entityId;M&&f.JSC$18288_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
M)}else if(_.J("kevlar_woffle")){M=f.JSC$18288_commandHandler;var h=M.resolveCommand;t=t.failureReason;var y=_.ZC("TRANSFER_FAILED",void 0,"Download failed");t==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(y=_.ZC("STORAGE_FULL",void 0,"Storage full"));h.call(M,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.hd(y),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
f.downloadFailureListenerBound=!0;_.Bj(v)})};
_.mG.prototype.deleteVideo=function(f,H){var v=this,t,M,h;return _.Y(function(y){if(y.nextAddress==1)return y.yield(v.JSC$18288_playerApiPromise,2);t=y.yieldResult;h={offlineLoggingData:{offlineDeleteReason:(M=H)!=null?M:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return y.yield(t.queueOfflineAction(f,v.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",h),0)})};
_.mG.prototype.pauseVideoDownload=function(f){var H=this,v;return _.Y(function(t){if(t.nextAddress==1)return t.yield(H.JSC$18288_playerApiPromise,2);v=t.yieldResult;v.pauseVideoDownload(f);_.Bj(t)})};
_.mG.prototype.resumeVideoDownload=function(f){var H=this,v;return _.Y(function(t){if(t.nextAddress==1)return t.yield(H.JSC$18288_playerApiPromise,2);v=t.yieldResult;return t.yield(v.resumeVideoDownload(f),0)})};
_.mG[bN]=[_.V4,_.MJ,_.z$,H0W,W0,T3,wig,Ij];var tph=new _.iN("DOWNLOAD_STATE_STORE_TOKEN");var MpF=function(f,H){this.JSC$18308_persistentStorePromiseAccessor=f;this.store=H;this.upliftCompletionResolver=new _.dZ},VpF=function(){var f=_.t8().resolve(hwx),H;
_.Y(function(v){switch(v.nextAddress){case 1:if(f.upliftImplPromise)return v.return(f.upliftImplPromise);_.Zc(v,2);f.upliftImplPromise=Rwx(f);return v.yield(f.upliftImplPromise,4);case 4:f.upliftCompletionResolver.resolve();_.ch(v,3);break;case 2:throw H=_.xu(v),f.upliftCompletionResolver.reject(H),H;case 3:return v.return(f.upliftImplPromise)}})},Rwx=function(f){var H,v,t;
return _.Y(function(M){switch(M.nextAddress){case 1:return _.P6("LOGGED_IN")?M.yield(f.JSC$18308_persistentStorePromiseAccessor(),2):M.return();case 2:H=M.yieldResult;if(!H)return _.u0("vdeur"),M.return();_.u0("vdeus");_.Zc(M,3);return M.yield(yWw(H),5);case 5:v=M.yieldResult;f.store.dispatch(PP_(v));H.observe(function(h){G33(f.store,h)});
_.ch(M,4);break;case 3:throw t=_.xu(M),_.u0("vdeur"),t;case 4:_.u0("vdeuc"),_.Bj(M)}})},yWw=function(f){var H;
return _.Y(function(v){if(v.nextAddress==1)return v.yield(Mir(f),2);H=v.yieldResult;return v.return(H.reduce(function(t,M){if(!M.data||!M.key||!M.entityType)return t;t[M.entityType]||(t[M.entityType]={});t[M.entityType][M.key]=M.data;return t},{}))})};
MpF[bN]=[Ij,_.aj];var hwx;hwx=new _.iN("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.$e=new _.iN("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var W$=function(f,H){this.JSC$18311_persistentStorePromiseAccessor=f;this.transportService=H};
W$.prototype.refresh=function(){var f=this,H,v,t,M;return _.Y(function(h){if(h.nextAddress==1)return _.P6("LOGGED_IN")?h.yield(f.JSC$18311_persistentStorePromiseAccessor(),2):h.return();if(h.nextAddress!=3)return(H=h.yieldResult)?h.yield(GJr(H),3):h.return();if((v=h.yieldResult)&&!(Number(v.data.refreshTimestampMs||0)<(0,_.ta)()))return h.return();t={browseId:"SPaccount_downloads"};M=_.tt(Ni);_.Q8(f.transportService,t,M).then(function(y){var m;if(H&&(y==null?void 0:(m=y.responseContext)==null?void 0:
m.maxAgeSeconds)!==0){var W;m=(y==null?void 0:(W=y.responseContext)==null?void 0:W.maxAgeSeconds)||604800;W=String(Math.floor((0,_.ta)())+m*1E3);H.put("service:downloads_settings:fallback",new _.W5({innertubeResponse:y,refreshTimestampMs:W}))}});
_.Bj(h)})};
W$[bN]=[_.v$,_.PS];var OX=function(f,H){this.JSC$18315_playerPromise=f;this.store=H;this.started=!1};
OX.prototype.start=function(){var f=this,H;return _.Y(function(v){if(v.nextAddress==1)return f.started?v.return():v.yield(f.JSC$18315_playerPromise,2);H=v.yieldResult;H.addEventListener("onOrchestrationBecameLeader",f.updateIsLeader.bind(f,!0));H.addEventListener("onOrchestrationLostLeader",f.updateIsLeader.bind(f,!1));if(H.isOrchestrationLeader)f.updateIsLeader(H.isOrchestrationLeader());else{var t=new _.e$("Function isOrchestrationLeader is undefined",{"player.isReady":H.isReady(),"player.playVideo":H.playVideo?
"defined":"undefined"});_.oO(t);f.updateIsLeader(!1)}f.started=!0;_.Bj(v)})};
OX.prototype.updateIsLeader=function(f){this.store.dispatch(_.yq({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:f}}))};
OX[bN]=[_.V4,_.aj];var Yxi=function(f,H){this.networkStatusManager=f;this.JSC$18318_prefStoragePromise=H;this.redirectsToPreload=["https://youtube.com"]},mxG=function(){var f=_.t8().resolve(Yxi),H,v,t,M,h,y;
_.Y(function(m){switch(m.nextAddress){case 1:return m.yield(f.JSC$18318_prefStoragePromise,2);case 2:H=m.yieldResult;if(!(v=H)){m.jumpTo(3);break}return m.yield(H.get("yt-redirect-prefetch-id"),4);case 4:v=m.yieldResult;case 3:if(v||!f.networkStatusManager.isNetworkAvailable())return m.return();t={cache:"reload",redirect:"manual"};M=_.V(f.redirectsToPreload);h=M.next();case 5:if(h.done){if(!H){m.jumpTo(0);break}return m.yield(H.set("yt-redirect-prefetch-id",!0,86400),0)}y=h.value;_.Zc(m,8);return m.yield(_.Mr.fetch(y,
t),10);case 10:_.ch(m,6);break;case 8:_.xu(m);case 6:h=M.next(),m.jumpTo(5)}})};var gd=function(f){f?(this.container=f,this.containerWasInjected=!0):this.containerWasInjected=!1};
gd.prototype.openDialog=function(f,H,v){var t=this,M;return _.Y(function(h){(M=t.container)==null||M.openDialog(f,H,v);_.Bj(h)})};
gd.prototype.closeDialog=function(){var f=this,H;return _.Y(function(v){(H=f.container)==null||H.closeDialog();_.Bj(v)})};
gd.prototype.isDialogOpen=function(){var f=this,H,v;return _.Y(function(t){return t.return((v=(H=f.container)==null?void 0:H.isDialogOpen())!=null?v:!1)})};
gd[bN]=[_.vh(QwT)];_.$xb=new _.iN("POPUP_CONTROLLER_TOKEN");var WWi=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
WWi.prototype.registerPanel=function(f,H){if(f){this.panelMap.set(f,H);var v=this.pendingPanelResolvers.get(f);v&&(v.resolve(H),this.pendingPanelResolvers.delete(f))}};
WWi.prototype.getPanel=function(f){var H=this,v;return _.Y(function(t){return(v=H.panelMap.get(f))?t.return(v):t.return(O0W(H,f))})};
var O0W=function(f,H){var v,t;return _.Y(function(M){if(v=f.pendingPanelResolvers.get(H))return M.return(v.promise);t=new _.dZ;f.pendingPanelResolvers.set(H,t);return M.return(t.promise)})},g5b=function(f){WWi.call(this);
var H=this;this.popupController=f;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return H.panelMap.size}}};
_.e(g5b,WWi);_.R=g5b.prototype;_.R.getReloadContinuation=function(f){var H=this,v;return _.Y(function(t){if(t.nextAddress==1)return t.yield(H.getPanel(f),2);v=t.yieldResult;return t.return(v.getReloadContinuation())})};
_.R.showPanel=function(f,H,v,t,M,h,y){var m=this,W,I,S,d;return _.Y(function(Z){if(Z.nextAddress==1){y&&m.updatePanelContinuationDatas.set(f,y);if((W=v)==null?0:(I=W.engagementPanelPopupPresentationConfig)==null?0:I.popupType){S=v.engagementPanelPopupPresentationConfig.popupType;M===void 0&&(M=document.body);var l=Z.return,L=m.popupController,r=L.openPopup;a:switch(S){case "PANEL_POPUP_TYPE_DIALOG":var n="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":n="DROPDOWN";break a;default:throw Error("gj`"+
S);}return l.call(Z,r.call(L,f,H,n,M))}return Z.yield(m.getPanel(f),2)}d=Z.yieldResult;(H||h)&&d.updatePanel(H,!1,t,h);d.showPanel(t);_.Bj(Z)})};
_.R.hidePanel=function(f){var H=this,v;return _.Y(function(t){if(t.nextAddress==1)return t.yield(H.getPanel(f),2);v=t.yieldResult;v.hidePanel();H.popupController.closePopup(f);_.Bj(t)})};
_.R.isVisible=function(f,H){var v=this,t;return _.Y(function(M){if(M.nextAddress==1)return H&&!v.panelMap.has(f)?M.return(!1):M.yield(v.getPanel(f),2);t=M.yieldResult;return M.return(t.isVisible())})};
_.R.updatePanel=function(f,H,v,t,M,h){v=v===void 0?!1:v;var y=this,m;return _.Y(function(W){if(W.nextAddress==1){if(!H&&!M)return W.return();h&&y.updatePanelContinuationDatas.set(f,h);return W.yield(y.getPanel(f),2)}m=W.yieldResult;m.updatePanel(H,v,t,M);_.Bj(W)})};
_.R.registerPanelContent=function(f,H){f&&this.panelContentMap.set(f,H)};
_.R.unregisterPanelContent=function(f){this.panelContentMap.delete(f)};
_.R.getPanelContent=function(f){return this.panelContentMap.get(f)};
_.R.getUpdatePanelContinuationData=function(f){return this.updatePanelContinuationDatas.get(f)};
g5b[bN]=[_.$xb];var IA=function(f,H){this.innertubeTransportService=f;this.JSC$18334_screenManager=H},Irh=function(f){var H;
return!((H=f.panelLoadingStrategy)==null||!H.requestTemplate)};
IA.prototype.makeRequest=function(f){var H=this,v,t;return _.Y(function(M){switch(M.nextAddress){case 1:if(!Irh(H)){M.jumpTo(2);break}_.Zc(M,3);return M.yield(_.AE(H.innertubeTransportService,f),5);case 5:return v=M.yieldResult,v?M.return(v.content):(_.oO(Error("hj")),M.return(void 0));case 3:t=_.xu(M),_.oO(t);case 2:return M.return(void 0)}})};
IA.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
IA.prototype.execute=function(f){var H=this,v,t,M,h,y,m,W,I,S,d;return _.Y(function(Z){if(Z.nextAddress==1){v=f;t=v.data;M=v.fallbackVe;h=v.parentVe;y=v.createScreenConfig;m=v.renderFn;W=v.command;H.panelLoadingStrategy=t;var l,L,r=((l=H.panelLoadingStrategy)==null?0:l.screenVe)?(L=H.panelLoadingStrategy)==null?void 0:L.screenVe:M;r&&_.y8(H.JSC$18334_screenManager,r,h,y);return(I=H.getContent())?Z.yield(m(I),2):Z.jumpTo(2)}return Z.nextAddress!=4?Irh(H)?Z.yield(H.makeRequest(W),4):Z.return():(d=S=
Z.yieldResult)?Z.yield(m(d),0):Z.return()})};
IA[bN]=[_.PS,_.z$];var SS=function(){};
SS.prototype.getContainer=function(){return _.M6()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
SS.prototype.openSheet=function(f,H){var v=this,t,M,h,y,m,W;return _.Y(function(I){switch(I.nextAddress){case 1:return t={stack:[],error:void 0,hasError:!1},_.Zc(I,2,3),M=f4,I.yield(v.isSheetOpen(),5);case 5:h=I.yieldResult;aaH(t,ZNE(M));if(h){if(_.J("web_close_sheet_if_same_target_killswitch")&&H&&v.currentTarget===H)return(y=v.getContainer())==null||y.closeSheet(),I.return();v.pendingData={data:f,target:s30(v,H)};return I.return()}f.viewModel&&(f={viewModel:f.viewModel});(m=v.getContainer())==null||
m.openSheet(f,H);v.currentTarget=H;case 3:_.lk(I);PjE(t);_.ea(I,0);break;case 2:W=_.xu(I),t.error=W,t.hasError=!0,I.jumpTo(3)}})};
SS.prototype.closeSheet=function(){var f=this,H;return _.Y(function(v){if(v.nextAddress==1)return v.yield((H=f.getContainer())==null?void 0:H.closeSheet(),2);if(v.nextAddress!=4)return f.currentTarget=void 0,f.pendingData?v.yield(f.openSheet(f.pendingData.data,f.pendingData.target),4):v.jumpTo(0);f.pendingData=void 0;_.Bj(v)})};
SS.prototype.isSheetOpen=function(){var f=this,H,v;return _.Y(function(t){return t.return((v=(H=f.getContainer())==null?void 0:H.isSheetOpen())!=null?v:!1)})};
var s30=function(f,H){if(!_.J("web_parent_target_for_sheets"))return H;var v,t;return(t=(v=f.getContainer())==null?void 0:v.getParentTarget(H))!=null?t:H};var fA=window.documentPictureInPicture;var SfR=_.EH(["dark"]),dob=_.EH(["system-icons"]),jZR=_.EH(["typography"]),sZH=_.EH(["lang"]),Zys=_.EH(["style"]),WK5=_.EH(["dir"]),OyR=_.EH(["rounded-container"]),gr3=_.EH(["style"]),lgb=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],dd=function(f){this.JSC$18346_clientRoot=f;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
dd.prototype.openWindow=function(f){var H=this,v,t;return _.Y(function(M){if(M.nextAddress==1)return window.documentPictureInPicture&&_.Kg()&&!H.currentPipWindow?M.yield((v=fA?fA:null)==null?void 0:v.requestWindow(f),2):M.return(!1);if(M.nextAddress!=3){t=M.yieldResult;if(!t)return M.return(!1);t.addEventListener("pagehide",function(){Sxx(H)});
t.addEventListener("resize",H.handlePipWindowResize);H.pipWindowResizeDelay=new _.MC(function(){H.currentPipWindow&&_.mb(H.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.eF(H.currentPipWindow.innerWidth,H.currentPipWindow.innerHeight)])},t);
Jyr(t);er_(t);return M.yield($og(t),3)}if(!yyH())return M.return(!1);H.currentPipWindow=t;H.JSC$18346_eventForwarder=Uor(t,H.JSC$18346_clientRoot);H.pipWindowResizeDelay.start();return M.return(!0)})};
dd.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var Sxx=function(f){if(f.currentPipWindow){var H,v;(H=fA?fA:null)==null||(v=H.window)==null||v.close();f.currentPipWindow.removeEventListener("resize",f.handlePipWindowResize);var t;(t=f.pipWindowResizeDelay)==null||t.dispose();f.pipWindowResizeDelay=void 0;var M;(M=f.JSC$18346_eventForwarder)==null||M.stop();f.JSC$18346_eventForwarder=void 0;H=_.V(f.onCloseCallbacks);for(v=H.next();!v.done;v=H.next())v=v.value,v();f.onCloseCallbacks=[];f.currentPipWindow=null}};
dd.prototype.getWindow=function(){return this.currentPipWindow};
var dxx=function(f,H){var v;(v=f.onCloseCallbacks)==null||v.push(H)};
dd.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.Kg()};
_.H7.Object.defineProperties(dd.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
dd[bN]=[vL_];var jFw=new _.iN("PICTURE_IN_PICTURE_CONTROLLER");var LKE=function(f,H){this.lengthY=this.lengthX=0;this.lengthX=H.x-f.x;this.lengthY=H.y-f.y};var sFw=function(){},rNt=function(f,H){var v;
(v=f.headerElement)==null||v.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:H}))};var Z0x=function(){};
Z0x.prototype.openPopup=function(f,H,v,t){var M=this,h;return _.Y(function(y){if(!M.container)return y.return();h={openPopupAction:{popup:H,popupType:v,uniqueId:f}};return y.return(M.container.handleOpenPopupAction(h,t))})};
Z0x.prototype.closePopup=function(f){this.container&&this.container.closePopup(f)};var JWx=function(){this.openTunnels=new Map},KGg=function(f,H,v){if(KKg(v)){var t=_.c_(v,"gclid");
v={handleEvent:function(m){H&&!H.closed&&typeof H.postMessage==="function"&&m&&m.origin&&m.source===H&&m.data&&m.data.action==="gcl_setup"&&H.postMessage(Object.assign({},{action:"gcl_transfer"},t&&{gclid:t},{gadSource:2}),m.origin)}};
for(var M=_.V(f.openTunnels),h=M.next();!h.done;h=M.next()){var y=_.V(h.value);h=y.next().value;y=y.next().value;if(h.closed)try{window.removeEventListener("message",y),f.openTunnels.delete(h)}catch(m){_.oO(m)}}H&&f.openTunnels.size<15&&(f.openTunnels.set(H,v),window.addEventListener("message",v))}};var lr5=function(){this.clientParams=new Map},Jvo=function(f){for(var H=_.V(f.clientParams.keys()),v=H.next();!v.done;v=H.next())v=v.value,v.startsWith("yt-mini-app-share")&&f.clientParams.delete(v)};var ew0=function(f){_.zO.call(this);this.JSC$18368_shortsController=f;UxG(this);this.addOnDisposeCallback(this.removeAudioTrackEventListener.bind(this))};
_.e(ew0,_.zO);var UxG=function(f){var H,v;(H=f.JSC$18368_shortsController)==null||(v=H.playerApi)==null||v.then(function(t){t&&(t.addEventListener("onPlaybackAudioChange",function(){LW5(f,t)}),LW5(f,t))})};
ew0.prototype.removeAudioTrackEventListener=function(){var f=this,H,v;(H=this.JSC$18368_shortsController)==null||(v=H.playerApi)==null||v.then(function(t){t&&t.removeEventListener("onPlaybackAudioChange",function(){LW5(f,t)})})};
var LW5=function(f,H){H=(H==null?void 0:H.getAvailableAudioTracks().length)>1&&(H==null?void 0:H.getAudioTrack())||void 0;if((f=f.JSC$18368_shortsController)!=null){var v=_.SB("/youtube/app/player_audio_track_entity_key","stringEntity",2);if(H){var t,M=(t=_.s7(_.Pn,v)())==null?void 0:t.value;t=H.getLanguageInfo().getName();M!==t&&f.store.dispatch(_.lF("stringEntity",v,{key:v,value:t.toString()}))}else f.store.dispatch(_.lF("stringEntity",v,{key:v,value:"ALTERNATE_AUDIO_TRACK_UNAVAILABLE"}))}};var Bii=function(f){_.zO.call(this);this.JSC$18371_shortsController=f;xxG(this);this.addOnDisposeCallback(this.removeCaptionTrackEventListener.bind(this))};
_.e(Bii,_.zO);var xxG=function(f){f.JSC$18371_shortsController.playerApi.then(function(H){H&&(H.addEventListener("captionschanged",function(){zww(f,H)}),zww(f,H))})};
Bii.prototype.removeCaptionTrackEventListener=function(){var f=this;this.JSC$18371_shortsController.playerApi.then(function(H){H&&H.removeEventListener("captionschanged",function(){zww(f,H)})})};
var zww=function(f,H){H=H==null?void 0:H.getOption("captions","track");f=f.JSC$18371_shortsController;var v=_.SB("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(H){var t,M=(t=_.s7(_.Pn,v)())==null?void 0:t.value,h;t=typeof(H==null?void 0:H.translationLanguage)==="object"&&((h=H.translationLanguage)==null?void 0:h.languageName)||H.displayName||"";M!==t&&f.store.dispatch(_.lF("stringEntity",v,{key:v,value:t.toString()}))}else f.store.dispatch(_.lF("stringEntity",v,{key:v,value:"CAPTIONS_UNAVAILABLE"}))};var FWA=function(f,H){_.zO.call(this);var v=this;this.JSC$18374_shortsController=f;this.storeWithShorts=H;f=_.sI(this.storeWithShorts,_.qMT,function(t){if(t){var M,h=(M=v.JSC$18374_shortsController.getRoot())==null?void 0:M.getPlayer(),y;(M=(y=v.JSC$18374_shortsController.alternativePlayerContainerElement)==null?void 0:y.getPlayerContainer())&&(h==null||h.appendTo(M))}else{var m;y=(m=v.JSC$18374_shortsController.alternativePlayerContainerElement)==null?void 0:m.getPlayerContainer().querySelector("#player");
M=v.JSC$18374_shortsController.activeIndex;(m=(h=v.JSC$18374_shortsController.getRoot())==null?void 0:h.querySelector('ytd-reel-video-renderer[id="'+M+'"] #player-container'))&&(y==null||y.appendTo(m,void 0,!0))}});
this.addOnDisposeCallback(f)};
_.e(FWA,_.zO);var jS=function(f,H,v,t,M){var h=this;this.storeWithShorts=f;this.ephemeralResponseStore=H;this.store=v;this.innertubeTransportService=t;this.innertubeTransportLoader=M;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.uE(_.Mi);this.isShortsPipActive=_.uE(_.hY);this.nextReelVe=_.$$(56921);this.prevReelVe=_.$$(56922);this.backButtonVe=_.$$(22156);this.TEST_ONLY={getActiveModules:function(){return h.activeModules}}},rWW=function(f){f.unsubscribeFromStore=
_.sI(f.storeWithShorts,_.wmB,function(H){f.initOrDisposeActiveModules(H);
!H&&f.storeWithShorts.getState().shorts.isFullscreen&&(_.Rr(document.documentElement),f.storeWithShorts.dispatch(_.Mla(!1)))});
f.initOrDisposeActiveModules(_.wmB(f.storeWithShorts.getState()))},h3M,R3H,KWp;
jS.prototype.initOrDisposeActiveModules=function(f){f?this.activeModules.push.apply(this.activeModules,[new FWA(this,this.storeWithShorts)].concat(_.pS(_.J("web_shorts_audio_track_picker")?[new ew0(this)]:[]),_.pS(_.J("enable_web_shorts_captions_language_command")?[new Bii(this)]:[]))):(_.hx(this.activeModules),this.activeModules.length=0)};
jS.prototype.registerRootElement=function(f){this.rootElement=f;rWW(this)};
jS.prototype.getRoot=function(){return this.rootElement};
jS.prototype.setActiveIndex=function(f){this.activeIndex=f};
_.qJg=function(f,H){var v,t,M,h,y,m,W;return _.Y(function(I){switch(I.nextAddress){case 1:return v=new LD,(t=v.JSC$13097_getStoreKey(H))&&f.ephemeralResponseStore.has(t)?I.yield(f.ephemeralResponseStore.get(t),7):I.yield(KWp(f,H),4);case 4:M=I.yieldResult;if(!t){I.jumpTo(3);break}h=Y$(M,3600);return I.yield(f.ephemeralResponseStore.put(t,new _.W5(h)),3);case 7:M=(y=I.yieldResult)==null?void 0:_.T7(y);case 3:return((m=M)==null?0:m.replacementEndpoint)&&(W=_.U(M.replacementEndpoint,_.zD))&&M.sequenceContinuation&&
(W.sequenceParams=M.sequenceContinuation),I.return(M)}})};
h3M=function(f,H){H=(new xw).JSC$13097_getStoreKey(H);return!!H&&f.ephemeralResponseStore.has(H)};
R3H=function(f,H,v){var t,M,h,y,m;_.Y(function(W){if(W.nextAddress==1){t=new xw;M=t.JSC$13097_getStoreKey(H);if(!M)return W.return();if(v.reelWatchSequenceResponse)return h=Y$(v.reelWatchSequenceResponse,3600),f.ephemeralResponseStore.put(M,new _.W5(h)),W.jumpTo(0);if(!f.ephemeralResponseStore.has(M))return W.jumpTo(0);m=v;return W.yield(f.ephemeralResponseStore.get(M),4)}m.reelWatchSequenceResponse=(y=W.yieldResult)==null?void 0:_.T7(y);_.Bj(W)})};
KWp=function(f,H){var v=v===void 0?{}:v;var t,M,h;return _.Y(function(y){switch(y.nextAddress){case 1:if(f.innertubeTransportService){t=f.innertubeTransportService;y.jumpTo(2);break}if(!f.innertubeTransportLoader){_.Ge(Error("jj"));y.jumpTo(2);break}return y.yield(f.innertubeTransportLoader(),4);case 4:t=y.yieldResult;case 2:return y.yield((M=t)==null?void 0:_.AE(M,H,v),5);case 5:return h=y.yieldResult,y.return(h)}})};
_.H7.Object.defineProperties(jS.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
jS[bN]=[N2_,_.$8,qi,_.vh(_.PS),_.vh(a1v)];_.DxW=new _.iN("STORAGE_MANAGER_TOKEN");var P9E=["touchmove","scroll"];var o5x=!1;var Gr_={onSpanEnd:function(f){f.parentId==null&&(o5x||(pNg(),setInterval(pNg,6E5),o5x=!0),QZe(f,"web_tracing_action"))}};var n5G=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},pA0;
n5G.prototype.enqueue=function(f,H){H===1?this.currentPersistentToast=f:this.queue.push(f);this.openToast()};
n5G.prototype.openToast=function(){var f;(f=this.currentToast)!=null&&f.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.sX=new _.iN("TOAST_MANAGER_TOKEN");var QFx=new _.iN("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var ubW=new _.iN("VIEW_TRANSITION_COORDINATOR_TOKEN");var art=function(f){this.config=f;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;f=_.V(f.transitionConfigs);for(var H=f.next();!H.done;H=f.next())H=_.V(H.value).next().value,this.transitionTasksMap.set(H,[])};
art.prototype.registerElement=function(f,H,v){v=v===void 0?!1:v;for(var t=_.V(Object.keys(H)),M=t.next(),h={};!M.done;h={viewTransitionName:void 0},M=t.next()){M=M.value;h.viewTransitionName=H[M];var y=this.elementTasksMap.get(f),m=void 0;if((m=y)==null?0:m.has(M)){_.nb(new _.e$("Element already registered for transition",f.tagName,M));break}y=y||new Map;y.set(M,{beforeTransition:function(W){return function(){f.style.viewTransitionName=W.viewTransitionName}}(h),
afterTransition:function(){f.style.viewTransitionName&&(f.style.viewTransitionName="")},
runOnce:v});this.elementTasksMap.set(f,y)}};
_.uF=function(f,H){var v=f.elementTasksMap.get(H);v&&(v.clear(),v.size===0&&f.elementTasksMap.delete(H))};
art[bN]=[QFx];var PtW;_.Ghx=_.a(function(f){return _.O("basic-content-view-model",{class:_.S2("ytBasicContentViewModelHost",_.vK(f.className))},_.O(_.g,{cond:function(){return f.data().headline},
then:function(H){return _.O("div",{class:"ytBasicContentViewModelHeadline"},_.O(_.iq,{text:H}))}}),_.O(_.eK,{each:function(){return f.data().paragraphs||[]},
keyBy:"INDEX"},function(H){return _.O("div",{class:"ytBasicContentViewModelParagraph"},_.O(_.g,{cond:function(){var v=H();return!!(v.header||v.customHeader||v.headline)},
then:function(){return _.O(PtW,{paragraph:H})}}),_.O(_.g,{cond:function(){return H().asset||H().text},
then:function(){return _.O("div",{class:"ytBasicContentViewModelParagraphContent"},_.O(_.g,{cond:function(){return H().asset},
then:function(v){return _.O("div",{class:"ytBasicContentViewModelParagraphAsset"},_.O(_.Jj,{data:v},{contentPreviewImageViewModel:_.M3}))}}),_.O(_.g,{cond:function(){return H().text},
then:function(v){return _.O("div",{class:"ytBasicContentViewModelParagraphText"},_.O(_.iq,{text:v}))}}))}}))}))},"Me");
PtW=_.a(function(f){var H=f.paragraph;return _.O(_.R8,null,_.O(_.g,{cond:function(){return H().headline},
then:function(v){return _.O(_.iq,{text:v,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.O(_.Jj,{data:function(){return H().header||H().customHeader}},{sectionHeaderViewModel:function(v){return _.O(_.$b,{data:v.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Ne");var E5p=_.a(function(f){var H=_.TN("yt-expandable-metadata-header-view-model"),v=_.d6(function(t){if(!_.r3(_.Fs(t),H.value,["A".toString(),"BUTTON".toString()])){var M;(M=f.expandedCallback)==null||M.call(f,!1)}});
return _.O("yt-expandable-metadata-header-view-model",{el:H,class:"ytExpandableMetadataHeaderViewModelHost"},_.O(_.g,{cond:function(){return f.expanded()},
then:function(){return _.O("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":v},_.O("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.O(_.g,{cond:function(){return f.data().expandedTitleImage},
then:function(t){return _.O("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.O(_.Hn,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:t}))}}),_.O("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.O("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.O(_.iq,{text:function(){return f.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.O(_.iq,{text:function(){return f.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.O(_.iq,{text:function(){return f.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.O("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.O(_.Jj,{data:function(){return f.data().infoButton}},{buttonViewModel:_.Wp}),_.O(_.Jj,{data:function(){return f.data().collapseButton}},{buttonViewModel:function(t){return _.O(_.Wp,{data:t.data,
onClick:function(){var M;(M=f.expandedCallback)==null||M.call(f,!1)}})}})))},
else:function(){return _.O(CtG,Object.assign({},f))}}))},"Oe"),NiW=_.a(function(f){return _.O("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.O(_.g,{cond:function(){return f.data().collapsedLabelImage},
then:function(H){return _.O("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.O(_.Hn,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:H,alt:""}))}}),_.O(_.iq,{text:function(){return f.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Pe"),CtG=_.a(function(f){return _.O("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.d6(function(){var H;return void((H=f.expandedCallback)==null?void 0:H.call(f,!0))})},_.O("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.O(_.g,{cond:function(){return f.data().collapsedImage},
then:function(H){return _.O("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.O(_.Hn,{width:16,height:16,data:H,alt:""}))}}),_.O(_.g,{cond:function(){return f.data().showLeadingCollapsedLabel},
then:function(){return _.O(NiW,Object.assign({},f))}}),_.O("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.O(_.iq,{text:function(){return f.data().collapsedTitle}}))),_.O("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.O(_.g,{cond:function(){return!f.data().showLeadingCollapsedLabel},
then:function(){return _.O(NiW,Object.assign({},f))}}),_.O(_.Jj,{data:function(){return f.data().infoButton}},{buttonViewModel:_.Wp}),_.O(_.Jj,{data:function(){return f.data().expandButton}},{buttonViewModel:function(H){return _.O(_.Wp,{data:H.data,
onClick:function(){var v;(v=f.expandedCallback)==null||v.call(f,!0)}})}})))},"Qe");_.cWG=_.a(function(f){var H=_.V(_.sR(function(){return f.data().initiallyExpanded})),v=H.next().value,t=H.next().value,M,h=(M=_.t8().resolve(_.vh(_.TK)))==null?void 0:M(),y=function(){var m=f.data().colorData;
if(m)return h?m==null?void 0:m.darkColorPalette:m==null?void 0:m.lightColorPalette};
return _.O("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.ZE({"background-color":function(){var m=y();return(m==null?0:m.section2Color)?_.cS(m.section2Color):""}})},_.O(_.Jj,{data:function(){return f.data().header}},{expandableMetadataHeaderViewModel:function(m){return _.O(E5p,{data:m.data,
expanded:function(){return!!v()},
expandedCallback:function(W){t(W)}})}}),_.O(_.g,{cond:function(){return v()},
then:function(){return _.O("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.O(_.Jj,{data:function(){return f.data().expandedContent}},{horizontalShelfViewModel:function(m){return _.O(_.u4,{data:m.data,
includeMargin:!0,forceNarrowLayout:!0,palette:y})},
videoSummaryContentViewModel:function(m){return _.O(nQb,{data:m.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(m){return _.O(_.YM,{data:m.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(m){return _.O(_.Ghx,{data:m.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.O(_.Jj,{data:function(){return f.data().expandedBottomButtons}},{buttonViewModel:function(m){return _.O("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.O(_.Wp,{data:m.data}))}}))}}))},"Re");var XAw=_.a(function(f){var H=f.text;var v=f.marqueeSpacing;var t=f.scrollDelay;var M=f.scrollDuration;var h=f.enableMarqueeScroll;f=f.large;var y=_.V(_.gp(!1,void 0,"kfNqfd")),m=y.next().value,W=y.next().value,I=_.V(_.gp(0,void 0,"bYgZbf"));y=I.next().value;var S=I.next().value,d=_.TN("marquee-scroll");I=_.TN("div");var Z=_.TN("span"),l=_.t8().resolve(_.qE);_.K4(function(){if(h()){var n=Z.value.getBoundingClientRect().width,Q=d.value.getBoundingClientRect().width;if(n>Q){var C=(l==="ltr"?-1:1)*(n+
(v?v():16));Promise.resolve().then(function(){W(!0);S(C)})}}},"giRlme");
var L={},r={};return _.O("marquee-scroll",{class:_.S2("ytMarqueeScrollHost",(L.ytMarqueeScrollHostLarge=f,L)),el:d},_.O("div",{id:"marquee-scroll-inner-container",class:_.S2("ytMarqueeScrollInnerContainer",(r.ytMarqueeScrollAnimationEnabled=function(){return m()},r)),
el:I,style:_.ZE({gap:v?(0,_.KB)(v):"16px","animation-duration":M?FBv(M):"16s","animation-delay":t?FBv(t):"3s","--marquee-translate":(0,_.KB)(y)})},_.O("span",{el:Z,dir:"auto"},_.O(_.iq,{text:H,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.O(_.g,{cond:m,then:function(){return _.O("span",{"aria-hidden":"true",dir:"auto"},_.O(_.iq,{text:H,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Se");_.AWb=_.a(function(f){var H=f.data;var v=f.overlayDensity;f=_.d6(function(){H().onTapCommand&&_.XA(H().onTapCommand);return!1});
var t=_.Xge(),M=function(){return(v==null?void 0:v())===1?22:16},h={};
return _.O("reel-sound-metadata-view-model",{class:_.S2("ytReelSoundMetadataViewModelHost",(h.ytReelSoundMetadataViewModelHostLarge=function(){return(v==null?void 0:v())===1},h)),
"on:click":f,tabindex:0,role:"button","on:keydown":t},_.O("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.O(_.g,{cond:function(){return H().musicIcon},
then:function(y){return _.O(_.Hn,{data:y,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:M})}}),_.O("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.O(XAw,{text:function(){return H().soundMetadata},
enableMarqueeScroll:function(){return!!H().enableMarqueeScroll},
large:function(){return(v==null?void 0:v())===1}}))))},"Te");var b0t,i0h,Z0,qxb,HoW,wAx,MVb,tVw;b0t=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];i0h=_.VQ("wil_icon_max_concurrent_fetches",Infinity);
Z0=function(f,H,v){var t=this;this.iconSet=f;this.appDirection=H;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.Mr.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.J("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.J("wil_icon_network_first");this.renderWhenIdle=_.J("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.J("wil_icon_load_immediately");this.isPurging=!1;f=function(){t.cacheStorageAvailable&&(t.cacheStorageAsync=_.Mr.caches.open("yt-icons").then(function(h){return t.cacheStorageSync=h}).catch(function(){t.cacheStorageAvailable=!1}))};
v=(v==null?void 0:v())||{};v=_.V(Object.entries(v));for(H=v.next();!H.done;H=v.next()){var M=_.V(H.value);H=M.next().value;M=M.next().value;M=sS(M);khW(M);this.iconCache[H]=M.cloneNode(!0)}this.isPurging=Ti5(this);this.isPurging instanceof Promise?this.isPurging.then(f):f()};
_.qmR=function(f,H){var v=f.resolveIcon(H);return v?f.renderingMode===1?wAx(f,v,f.renderingMode):(H=f.iconCache[v.url])?(H=H.cloneNode(!0),qxb(f,H),wAx(f,v,f.renderingMode,H)):_.fMr(f,v).then(function(t){var M=t?0:1;qxb(f,t);return wAx(f,v,M,t)}):(_.nb(new _.e$("Icon not found",{iconShape:H})),function(){})};
qxb=function(f,H){if(H){f.counter+=1;f="_yt"+f.counter;H=[H].concat(_.pS(H.getElementsByTagName("*")));H=_.V(H);for(var v=H.next();!v.done;v=H.next())if(v=v.value,v.tagName==="style"&&v.textContent)v.textContent=HoW(v.textContent,f,!0);else for(var t=_.V(v.attributes),M=t.next();!M.done;M=t.next()){M=M.value;M.name==="id"&&(M.value+=f);["mask","fill","clip-path"].includes(M.name)&&(M.value=HoW(M.value,f));if(M.name==="style"){var h=v.style;try{h.cssText=HoW(h.cssText,f,!0)}catch(S){var y=void 0,m=
void 0,W=void 0,I=void 0;Ji({error:((y=S)==null?void 0:(W=(m=y).toString)==null?void 0:W.call(m))||"",el:v.outerHTML,style:!!h,cssText:(I=h)==null?void 0:I.cssText})}}M.name==="xlink:href"&&(M.value=M.value.replace(/#(.*)/,"#$1"+f))}}};
HoW=function(f,H,v){var t=/url\(["']?#(.*?)["']?\)/;(v===void 0?0:v)&&(t=/url\(["']?#(.*?)["']?\)/g);return f.replace(t,"url(#$1"+H+")")};
wAx=function(f,H,v,t){return function(M,h){var y=Object.assign({},{iconColor:"currentcolor",iconWidth:H.size+"px",iconHeight:H.size+"px",iconDisplay:"block"},h);h=_.lS("DIV");var m=y.iconColor,W=y.iconFilter;y="width: "+y.iconWidth+"; height: "+y.iconHeight+"; display: "+y.iconDisplay+";";W&&(y+=" filter: "+W+";");v===0&&(y+=" fill: "+m+";");v===1&&(W=H.url,y+=" -webkit-mask: url("+W+") no-repeat center / cover; mask: url("+(W+") no-repeat center / cover; background-color: ")+m);H.allowMirroring&&
f.appDirection==="rtl"&&(y+=" transform: scale(-1, 1); transform-origin: center center;");h.setAttribute("style",y);v===0&&t&&h.appendChild(t);M.appendChild(h)}};
_.fMr=function(f,H){var v,t,M;return _.Y(function(h){v=function(y){return iD(y)};
t=H.url;if(!vUr(t))throw Error("mj");M=tVw(f,t);return h.return(M.then(function(y){return y.clone().text()}).then(function(y){var m=v(y);
y=H.size;var W=_.lS("DIV");_.Me(W,m);m=_.U1(W.firstElementChild!==void 0?W.firstElementChild:_.CCZ(W.firstChild,!0));y=khW(m,y);f.iconCache[t]=y.cloneNode(!0);delete f.responsePromises[t];return y}).catch(function(){}))})};
MVb=function(f){var H,v=(H=f.requestAninmationFrameResolver)==null?void 0:H.promise;v||(f.requestAninmationFrameResolver=new _.dZ,v=f.requestAninmationFrameResolver.promise,_.Mr.requestAnimationFrame(function(){var t;(t=f.requestAninmationFrameResolver)==null||t.resolve();f.requestAninmationFrameResolver=null}));
return v};
tVw=function(f,H){var v,t;return _.Y(function(M){if(M.nextAddress==1)return f.waitForAnimationFrame?M.yield(MVb(f),2):M.jumpTo(2);v=f.responsePromises[H];v||(t=function(){var h,y,m;return _.Y(function(W){switch(W.nextAddress){case 1:if(!f.cacheStorageAvailable){h=void 0;W.jumpTo(2);break}if(y=f.cacheStorageSync){W.jumpTo(3);break}return W.yield(f.cacheStorageAsync,4);case 4:y=W.yieldResult;case 3:h=y;case 2:return m=h,f.isNetworkFirstStrategy?W.return(f.fetchAndUpdateCache(H,m).catch(f.getCacheStorageResponse.bind(f,
H,m))):W.return(f.getCacheStorageResponse(H,m).catch(f.fetchAndUpdateCache.bind(f,H,m)))}})},v=f.renderWhenIdle?new Promise(function(h,y){_.Lb(_.nN,function(){t().then(h).catch(y)},10)}):t(),f.responsePromises[H]=v);
return M.return(v.catch(function(h){delete f.responsePromises[H];Ji({error:(h==null?0:h.toString)?h.toString():"",url:H});throw h;}))})};
Z0.prototype.fetchAndUpdateCache=function(f,H){var v=this;return _.Y(function(t){return t.return(hqb(v,f).then(function(M){Rq5(v,f,M,H);return M}))})};
var hqb=function(f,H){var v;return _.Y(function(t){if(f.numFetches<i0h)return f.numFetches+=1,t.return(VVb(f,H).finally(function(){--f.numFetches;if(Object.keys(f.queuedResponseResolvers).length){var M=Object.keys(f.queuedResponseResolvers)[0],h=f.queuedResponseResolvers[M];delete f.queuedResponseResolvers[M];h.resolve(hqb(f,M))}}));
v=new _.dZ;f.queuedResponseResolvers[H]=v;return t.return(v.promise)})},VVb=function(f,H,v){v=v===void 0?2:v;
var t;return _.Y(function(M){t={credentials:"same-origin",priority:"low"};return M.return(_.Mr.fetch(H,t).then(function(h){return h.ok?h:Promise.reject(Error("nj`"+h.status+"`"+h.statusText))}).catch(function(h){if(v>0)return VVb(f,H,v-1);
throw h;}))})},Rq5=function(f,H,v,t){_.Y(function(M){return t?M.return(new Promise(function(h){_.Lb(_.nN,function(){var y,m;
return _.Y(function(W){switch(W.nextAddress){case 1:if(!f.isNetworkFirstStrategy){y=void 0;W.jumpTo(2);break}return W.yield(t.match(H).catch(function(){}),3);
case 3:y=W.yieldResult;case 2:if(m=y){W.jumpTo(4);break}return W.yield(t.put(H,v.clone()).catch(function(I){Ji({error:(I==null?0:I.toString)?I.toString():"",url:H})}),4);
case 4:h(),_.Bj(W)}})},50)})):M.return()})};
Z0.prototype.getCacheStorageResponse=function(f,H){return _.Y(function(v){return H?v.return(H.match(f).then(function(t){return t&&t.ok?t:Promise.reject()})):v.return(Promise.reject())})};
var khW=function(f,H){H===void 0||f.getAttribute("viewBox")||f.setAttribute("viewBox","0 0 "+H+" "+H);f.setAttribute("focusable","false");f.setAttribute("aria-hidden","true");try{f.style.pointerEvents="none",f.style.display="inherit",f.style.width="100%",f.style.height="100%"}catch(M){var v;Ji({error:((v=M)==null?0:v.toString)?M.toString():""});try{f.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(h){var t;Ji({error:((t=h)==null?0:t.toString)?h.toString():
""})}}return f},vUr=function(f){for(var H=_.V(b0t),v=H.next();!v.done;v=H.next())if(f.startsWith(v.value)&&f.endsWith(".svg"))return!0;
return!1};
Z0.prototype.resolveIcon=function(f){return this.iconSet.resolveIcon(f)};
var Ji=function(f){_.pb(new _.e$("Error in IconManager",f))},Ti5=function(f){if(_.J("wil_icons_cache_purge_killswitch"))return!1;
try{var H=_.Mr.localStorage}catch(h){return!1}if(!H||!f.cacheStorageAvailable)return!1;var v=function(h){try{var y;(y=H)==null||y.setItem("yt-icons-last-purged",h.toString())}catch(W){var m;Ji({error:((m=W)==null?0:m.toString)?W.toString():""})}},t=Number(H.getItem("yt-icons-last-purged"));
if(!t)return t=new Date,t=t.setDate(t.getDate()-Math.floor(Math.random()*90+1)),v(t),!1;if(function(h,y){h=new Date(h);y=new Date(y);return y.getMonth()-h.getMonth()+12*(y.getFullYear()-h.getFullYear())}(t,Date.now())<3)return!1;
try{return _.Mr.caches.delete("yt-icons").then(function(h){h&&v(Date.now());return h}).catch(function(){return!1}).finally(function(){f.isPurging=!1})}catch(h){var M;
Ji({error:((M=h)==null?0:M.toString)?h.toString():""});return!1}};
Z0[bN]=[iEn,_.qE,_.vh(w2g)];_.lu=function(f,H){this.iconManager=f;this.iconsToFetch=H};
_.lu[bN]=[_.d9,_.vh(TbT)];var yD0=function(){};var Y4F=function(f,H,v){this.requestKey=f;this.tk7=H;this.gBm=v;this.gix=function(){return new XMLHttpRequest};
this.ngk=void 0;this.xiA=[]};
Y4F.prototype.getLatestChallengeResponse=function(){return this.gBm};
var ATo=function(f,H,v){var t,M,h,y;return _.Y(function(m){if(m.nextAddress==1){_.QZ("attestation_challenge_fetch");_.u0("att_fs",void 0,"attestation_challenge_fetch");if(!f.ngk)throw new _.lz(9,"Missing fetcher");return m.yield(f.ngk(H,v),2)}t=m.yieldResult;h=(M=t)==null?void 0:M.bgChallenge;if(!h)throw new _.lz(15,"Missing field");f.gBm=t;f.xiA.forEach(function(W){W(t)});
y=Qgr(h);_.u0("att_fc",void 0,"attestation_challenge_fetch");pQ("attestation_challenge_fetch");return m.return(y)})},IPg=function(f,H){var v,t,M,h,y;
return _.Y(function(m){switch(m.nextAddress){case 1:v=new IN(100,3E5,.25,2),t=void 0;case 2:if(!(v.currBackoffCount_<10)){m.jumpTo(4);break}_.Zc(m,5);if(!(v.currBackoffCount_>0)){m.jumpTo(7);break}return m.yield(ErN(v.getValue()),7);case 7:return m.yield(mAW(f,H),9);case 9:return M=m.yieldResult,m.return(M);case 5:h=_.xu(m);h instanceof _.lz?t=h:(y=h instanceof Error?h.message:"Unknown",t=new _.lz(9,y));tan(v);m.jumpTo(2);break;case 4:if(t)throw t;throw new _.lz(9,"Unknown error");}})},mAW=function(f,
H){H=pQM(Qlb(new nOZ,H),f.requestKey);
var v=new _.dZ,t=f.gix();t.open("POST",f.tk7);t.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");t.setRequestHeader("Content-Type","application/json+protobuf");t.onload=function(){if(_.pVT(t)){var M=cxZ(t.responseText);v.resolve(M)}else v.reject(new _.lz(_.X6T(_.mp(t)),t.statusText))};
t.onerror=function(){v.reject(new _.lz(_.X6T(_.mp(t)),t.statusText))};
t.send(H.serialize());return v.promise};var WLi=function(f){this.networkStatusManager=f;this.isDownloaded=C2_===void 0?function(){return!1}:C2_;
this.isReady=!1;this.bla=$A0(this)},$A0=function(f){var H;
return _.Y(function(v){if(v.nextAddress==1)return v.yield(LZb(),2);if(v.nextAddress!=3)return H=v.yieldResult,v.yield(Rqg(H),3);f.bb=v.yieldResult;cyR(f.bb).then(function(){f.isReady=!0});
return v.return(f.bb)})},OoF=function(f,H,v){f.bb?(f=f.bb.lvx({yQ:v,
glk:!0,rMv:!0}),H.serviceIntegrityDimensions={poToken:f}):_.oO(Error("pj"))};
WLi.prototype.processContext=function(f){var H=this;if(!f.input.match(_.tt(hfn)))return _.Xd();var v=f.innerTubeRequest,t=v.videoId;return!t||this.isDownloaded(v)||this.networkStatusManager&&!this.bb&&!this.networkStatusManager.isNetworkAvailable()?_.Xd():this.bb?this.isReady?(OoF(this,v,t),_.Xd()):new cd(cyR(this.bb).then(function(){OoF(H,v,t)})):new cd(this.bla.then(function(M){return _.Y(function(h){if(h.nextAddress==1)return h.yield(cyR(M),2);
OoF(H,v,t);_.Bj(h)})}))};var gUi=new _.iN("WEB_PO_CONTEXT_PROCESSOR");var IM5=function(f,H){var v=this;this.bFK=0;var t;this.dS0=(t=H==null?void 0:H.dS0)!=null?t:window;this.networkStatusManagerPromise=H==null?void 0:H.networkStatusManagerPromise;var M;this.requestKey=(M=H==null?void 0:H.requestKey)!=null?M:_.yQ("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var h;this.flu=(h=H==null?void 0:H.flu)!=null?h:function(W){return new FJ(W)};
var y;t=(y=H==null?void 0:H.dmI)!=null?y:function(W,I,S){return new Y4F(W,I,S)};
this.bgChallenge=Qgr(f.bgChallenge);this.ttlSeconds=uRB(Cp(f.challenge||""));this.kp=t(this.requestKey,_.J("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.Mr.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",f);NDs(this.kp);var m;this.fpF=(m=H==null?void 0:H.fpF)!=null?m:function(W){_.r9(v.dS0.document,"visibilitychange",function(){v.dS0.document.visibilityState===
"visible"&&W()})}},dAb=function(f){if(!f.vm){var H={maxAttempts:5,
nED:f.ttlSeconds*1E3};XNN(f.dS0);f.vm=f.flu({kp:f.kp,uA0:{disable:_.J("html5_web_po_disable_remote_logging"),ia:"aGIf",n8I:rX3("html5_web_po_experiment_ids"),wSw:_.J("wpo_dis_lfdms")?0:1E3,oHN:function(t){var M=hhH.get(t);M||(M=new Mun(t),M=new s1(M),hhH.set(t,M));return M}},
w45:H,oVI:f.bgChallenge,jdW:AyR});f.bFK=Date.now();Chh(f.vm,function(){f.bFK=Date.now()});
FZ_(f.vm,function(){return _.Y(function(t){return t.return(S4F(f))})});
var v=f.kGW.bind(f);f.networkStatusManagerPromise&&f.ttlSeconds>0&&f.networkStatusManagerPromise.then(function(t){t.listen("publicytnetworkstatus-online",v)});
f.fpF(v)}};
IM5.prototype.kGW=function(){if(Date.now()>this.bFK+this.ttlSeconds*1E3){var f;(f=this.vm)==null||Gfv(f)}};
var S4F=function(f){if(f.jVv)return f.jVv;if(!f.vm)throw Error("qj");f.jVv=new oS({vm:f.vm,kp:f.kp,gbT:!0,onError:AyR});return f.jVv},iyr=function(f,H){f=new IM5(f,H);
dAb(f);S4F(f)};var j1W=_.woi.ephemeralActionSelector,UX=function(f,H){this.store=f;this.queue=[];H==null||H.addEventListener("yt-navigate-start",this.reset.bind(this))};
UX.prototype.enqueue=function(f){var H=f.command,v=f.durationMs,t=f.elementToFocus;var M=f.label;var h=f.elementToFocus;f.command?M=_.ZC("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:M,shortcut:_.ZC("SHIFT_PLUS_ENTER")}):h&&(f=M+". "+_.ZC("SHIFT_PLUS_ENTER")+" for more information.",M=_.ZC("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:M,shortcut:_.ZC("SHIFT_PLUS_ENTER")},f));v={announcement:M,durationMs:v!=null?v:8E3};H?v.command=H:t&&(t.classList.add("ephemeral-action-focusable-element"),v.selector=t.tagName+
".ephemeral-action-focusable-element");this.queue.push(v);s1i(this)};
UX.prototype.activate=function(f){var H=j1W(this.store.getState());if(H){if(H==null?0:H.command)_.Cu(H.command),this.store.dispatch(f1_(null));if(H==null?0:H.selector)H=document.querySelector(H.selector),_.c8s(H);f.preventDefault()}};
var s1i=function(f){if(!j1W(f.store.getState())&&f.queue.length){var H=f.queue.shift();H&&(f.previousAnnouncement===H.announcement&&(H.announcement+="\u00a0"),f.store.dispatch(f1_(H)),f.previousAnnouncement=H.announcement,f.timeoutId=setTimeout(function(){if(H.selector){var v;(v=document.querySelector(H.selector))==null||v.classList.remove("ephemeral-action-focusable-element")}f.store.dispatch(f1_(null));s1i(f)},H.durationMs))}};
UX.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(f1_(null));this.queue.length=0;this.timeoutId=void 0};
UX[bN]=[_.aj,_.vh(_.eD)];_.eS=new _.iN("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var Zob=window.AbortController||diE;var JDp=new _.iN("AUTH_SERVICE_TOKEN");var wNv=_.EH(["about:blank"]),TD_;var La=new _.iN("API_IFRAME_TOKEN"),lMp=new _.iN("FETCH_FN_TOKEN"),UAb=new _.iN("PARSE_FN_TOKEN"),eqr=new _.iN("WINDOW_REQUEST_TOKEN"),LL5=new _.iN("TEXT_DECODER_TOKEN");var Axv;Axv=new _.iN("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.xAW=new _.iN("MISC_UI_SHARED_FLAGS_TOKEN");var BeW=function(){};
BeW.prototype.getFlag=function(f){if(f.configType!==2)throw Error("rj");return zqx(f)};
var zqx=function(f){switch(f.flagType){case "bool":return _.J(f.flagName);case "int":return _.GH(_.VQ(f.flagName));case "double":return _.VQ(f.flagName);case "string":return _.yQ(f.flagName);case "int32_list":return rX3(f.flagName);case "int64_list":return rX3(f.flagName).map(function(H){return _.GH(H)});
case "string_list":return _.YZ(f.flagName);default:throw Error("sj");}};var xe=function(f,H,v){H=H===void 0?{}:H;zC.call(this,v===void 0?"uninitialized":v);this.env=f;this.transitions=[{from:"uninitialized",to:"initialized",action:this.init},{from:"initialized",to:"rendering",action:this.initialRender},{from:"rendering",to:"rendered",action:this.afterRenderImmediate},{from:"rendered",to:"after-render-deferred",action:this.afterRenderDeferred}];H.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=H.shouldWaitOnAsyncImmediate)};
_.e(xe,zC);xe.prototype.init=function(f){var H=this,v;return _.Y(function(t){if(t.nextAddress==1)return H.processPluginOptions.shouldWaitOnAsyncImmediate?t.yield(f(H.env),2):(f(H.env),t.jumpTo(2));if(t.nextAddress!=4)return H.jobSet?t.yield(H.jobSet.completedResolver.promise,4):t.jumpTo(4);v=_.PL();v.parkOrScheduleJob(function(){H.transition("rendering")},10,"ci");
_.Bj(t)})};
xe.prototype.initialRender=function(f){var H=this,v;return _.Y(function(t){if(t.nextAddress==1)return H.processPluginOptions.shouldWaitOnAsyncImmediate?t.yield(f(H.env),2):(f(H.env),t.jumpTo(2));if(t.nextAddress!=4)return H.jobSet?t.yield(H.jobSet.completedResolver.promise,4):t.jumpTo(4);v=_.PL();v.parkOrScheduleJob(function(){H.transition("rendered")},10,"cr");
_.Bj(t)})};
xe.prototype.afterRenderImmediate=function(f){var H=this,v;return _.Y(function(t){if(t.nextAddress==1)return H.processPluginOptions.shouldWaitOnAsyncImmediate?t.yield(f(H.env),2):(f(H.env),t.jumpTo(2));if(t.nextAddress!=4)return H.jobSet?t.yield(H.jobSet.completedResolver.promise,4):t.jumpTo(4);v=_.PL();v.parkOrScheduleJob(function(){H.transition("after-render-deferred")},10,"carml");
_.Bj(t)})};
xe.prototype.afterRenderDeferred=function(f){var H=this;return _.Y(function(v){f(H.env);_.Bj(v)})};var FLp;_.pc("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});FLp={};_.rDA=(FLp.CSI=hD_(),FLp.ECATCHER=M_5(),FLp);var KLA={},DAr=(KLA.rendered={priority:0,callback:function(f){rMh(f.injector.resolve(xF))}},KLA);var kaN=new _.iN("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),oUG=new _.iN("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var nUx=function(f){this.callbackFnMap=f;this.configMap={}};
nUx.prototype.handleResponse=function(f){var H;if(f=(H=f.responseContext)==null?void 0:H.serviceTrackingParams)for(H=_.V(f),f=H.next();!f.done;f=H.next()){f=f.value;var v=f.params,t=f.service;if(v&&t){this.configMap[t]||(this.configMap[t]=new DU9);f=this.configMap[t];var M=void 0,h=(M=this.callbackFnMap)==null?void 0:M[t];v=_.V(v);for(t=v.next();!t.done;t=v.next())M=t.value,t=M.key,M=M.value,t&&M&&(f.set(t,M),h&&h(t,M))}}};
nUx[bN]=[_.vh(oUG)];var pvx=!1,mPv=0,RDR=null,YnT=null;var Q1x=new _.iN("NETWORK_SLI_TOKEN");var uMA=function(f,H,v,t,M){this.networkSli=f;this.fetchFn=H;this.parseFn=v;this.requestFn=t;this.JSC$18481_textDecoder=M};
uMA.prototype.fetch=function(f,H,v){var t=this,M,h,y;return _.Y(function(m){M=aMp(t,f,H);y=(h=t.fetchFn)!=null?h:fetch;return m.return(y(M).then(function(W){return t.handleResponse(W,v)}).catch(function(W){_.pb(W);
if((v==null?0:v.expectJsonStrict)&&W instanceof Jp&&W.errorType===1)return Promise.reject(W)}))})};
var yRh=function(f,H,v,t){var M,h,y,m,W,I,S;return _.Y(function(d){switch(d.nextAddress){case 1:return M=aMp(f,H,v),_.Zc(d,2),d.yield(fetch(M),4);case 4:h=d.yieldResult;_.ch(d,3);break;case 2:throw _.xu(d),new Jp(2,"Failed to parse streaming response",M.url);case 3:if(!h.redirected&&!h.ok)throw(y=f.networkSli)==null||y.failure(),new _.e$("Streaming fetch request not ok",M.url);if(!h.body)throw new _.e$("No response body in streaming response",M.url);m={};if(_.J("web_streaming_fast"))return W=h.body.getReader(),
d.return(PDx(f,W,m,t));I=h.body.pipeThrough(new TextDecoderStream).getReader();S=new _.vw;return d.return(G1W(f,I,S,Ubs,m,t))}})},aMp=function(f,H,v){if(f.networkSli){var t=_.gH(_.tX(H,"key"))||"/UNKNOWN_PATH";
f.networkSli.start(t)}t=v;_.J("wug_networking_gzip_request")&&(t=EVb(v));var M;return new ((M=f.requestFn)!=null?M:window.Request)(H,t)},PDx=function(f,H,v,t){var M,h,y,m,W,I,S,d,Z,l,L;
return _.Y(function(r){switch(r.nextAddress){case 1:M=f.JSC$18481_textDecoder?new f.JSC$18481_textDecoder("utf-8"):new TextDecoder("utf-8"),h="",y=function(n){n=n.trim();n.length!==0&&n!=="]"&&n!=="["?(n.startsWith("[")&&(n=n.substring(1)),n.endsWith("]")&&(n=n.slice(0,-1)),n.endsWith(",")&&(n=n.slice(0,-1)),n=n.trim()):n=void 0;if(n)try{var Q=JSON.parse(n);Ubs(v,Q);t==null||t(v,Q)}catch(C){throw new Jp(1,"Failed to parse streaming response",n);}},_.Zc(r,2,3);
case 5:return r.yield(H.read(),8);case 8:m=r.yieldResult;W=m.value;if(I=m.done)return h.length>0&&y(h),S=void 0,(S=f.networkSli)==null||S.success(),r.return(v);h+=M.decode(W,{stream:!0});d=h.split("\n");h=d.pop()||"";Z=_.V(d);for(l=Z.next();!l.done;l=Z.next())L=l.value,y(L);r.jumpTo(5);break;case 3:_.lk(r);H.releaseLock();_.ea(r,0);break;case 2:throw _.xu(r),new Jp(1,"Failed to parse streaming response");}})},G1W=function(f,H,v,t,M,h){var y,m,W,I,S,d,Z,l,L;
return _.Y(function(r){if(r.nextAddress==1)return r.yield(H.read(),2);y=r.yieldResult;m=y.value;if(W=y.done)return(I=f.networkSli)==null||I.success(),r.return(M);try{S=v.parse(m)}catch(n){throw new Jp(1,"Failed to parse streaming response",m);}if(S!=null)for(d=_.V(S),Z=d.next();!Z.done;Z=d.next())l=Z.value,t(M,l),L=void 0,(L=h)==null||L(M,l);return r.return(G1W(f,H,v,t,M,h))})};
uMA.prototype.handleResponse=function(f,H){var v,t=(v=this.parseFn)!=null?v:JSON.parse;v=f.text().then(function(M){if((H==null?0:H.jspbResponseCtor)&&f.ok)return nU5(H.jspbResponseCtor,M);M=M.replace(")]}'","");if((H==null?0:H.expectJsonStrict)&&M)try{var h=t(M)}catch(m){throw new Jp(1,"JSON parsing failed after fetch");}var y;return(y=h)!=null?y:t(M)});
f.redirected||f.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),v=v.then(function(M){_.pb(new _.e$("Error: API fetch failed",f.status,f.url,M));return Object.assign({},M,{errorMetadata:{status:f.status}})}));
return v};
uMA[bN]=[_.vh(Q1x),_.vh(lMp),_.vh(UAb),_.vh(eqr),_.vh(LL5)];var CDi=new _.iN("NETWORK_MANAGER_TOKEN");var EUW=[1,2,4,8,16,30],cDx=function(f){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=f.maxTimeMs;this.maxFrameCount=f.maxFrameCount===void 0?Math.ceil(60*f.maxTimeMs/1E3):f.maxFrameCount;f=_.V(EUW);for(var H=f.next();!H.done;H=f.next())this.brokenFrameSummarizers.push(new Ne5(H.value/60*1E3))},Xvw=function(f){var H=f.frameCountInternal>=f.maxFrameCount;
return f.elapsedTimeMs>=f.maxTimeMs||H};
cDx.prototype.summarize=function(){for(var f=[],H=_.V(this.brokenFrameSummarizers),v=H.next();!v.done;v=H.next())v=v.value,v=v.brokenFrameCount!==0?{severityMs:Math.round(v.targetFrameTimeMs),eventCount:v.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(v.averageDurationBetweenEventsMs)}:void 0,v&&f.push(v);return{summaries:f,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.H7.Object.defineProperties(cDx.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 Ne5=function(f){this.targetFrameTimeMs=f;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.H7.Object.defineProperties(Ne5.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var ADF=function(){};
ADF.prototype.start=function(f,H){var v=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var t=new cDx({maxTimeMs:f});this.monitor=t;this.lastSummaryInternal=void 0;this.metadataToLog=H;return new Promise(function(M){var h=function(y){if(y===void 0)v.stop(),M(void 0);else if(v.monitor!==t)y=Object.assign({},t.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),M(y);else{var m=v.monitor;if(!Xvw(m)){m.frameCountInternal++;if(m.prevTime===
void 0)m.startTime=y;else for(var W=y-m.prevTime,I=_.V(m.brokenFrameSummarizers),S=I.next();!S.done;S=I.next()){S=S.value;var d=S.currTimeMs;S.currTimeMs+=W;W>S.targetFrameTimeMs+2&&(S.brokenFrameCount++,S.timeOfFirstBrokenFrameMs===void 0&&(S.timeOfFirstBrokenFrameMs=d),S.timeOfLastBrokenFrameMs=d)}m.prevTime=y}Xvw(v.monitor)?M(v.stop()):_.nN.addJob(h,5,0)}};
_.nN.addJob(h,5,0)})};
ADF.prototype.stop=function(f){if(!this.monitor)return this.lastSummaryInternal;var H=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(H.monitoringDurationMs){f=f!=null?f:this.metadataToLog;var v={droppedFramesSummary:H,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};f&&(v[f.type]=f.data);_.Kb("manualSmoothnessMeasurement",v)}this.monitor=void 0;this.lastSummaryInternal=H;this.metadataToLog=void 0;return H};_.bob=new _.iN("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var iow;iow=function(f){this.JSC$18504_expiringStorage=new xZ(f)};
_.k1W=function(f){if(_.$PB()&&(f=_.s5E(_.ld()+"::"+f)))return new iow(f)};
iow.prototype.set=function(f,H,v){v=v!==void 0?Date.now()+v:void 0;this.JSC$18504_expiringStorage.set(f,H,v)};
iow.prototype.get=function(f){return this.JSC$18504_expiringStorage.get(f)};
iow.prototype.remove=function(f){this.JSC$18504_expiringStorage.remove(f)};var Teh=new _.iN("SESSION_STORAGE");_.B$=function(){};
_.B$.getInstance=function(){var f=_.ES("ytglobal.storage_");f||(f=new _.B$,_.qJ("ytglobal.storage_",f));return f};
_.B$.prototype.estimate=function(){var f,H,v;return _.Y(function(t){f=navigator;return((H=f.storage)==null?0:H.estimate)?t.return(f.storage.estimate()):((v=f.webkitTemporaryStorage)==null?0:v.queryUsageAndQuota)?t.return(WBR()):t.return()})};
_.qJ("ytglobal.storageClass_",_.B$);var s_v=0;var xPv=!1;var wvb=_.EH(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),q4i=_.EH(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var XRW={"/":_.j0,"/?feature=ytca":_.j0,"/feed/downloads":_.knB};var fc0=frF.continuationCommandSelector,Yf=function(f,H,v){this.JSC$18520_upliftPromise=f;this.store=H;this.JSC$18520_persistentStorePromiseAccessor=v};
Yf.prototype.shouldPreferLocalResponse=function(f){return f.browseId==="FEdownloads"||f.browseId==="FEsmart_downloads"&&_.J("kevlar_modern_downloads_page")?!0:!1};
Yf.prototype.localInnertubeResponse=function(f){var H=this;return _.Y(function(v){return f.browseId==="FEdownloads"?_.J("kevlar_modern_downloads_page")?v.return(HSF(H)):v.return(vuw(H)):f.browseId==="FEsmart_downloads"&&_.J("kevlar_modern_downloads_page")?v.return(taF(H)):v.return(Promise.reject(Error("uj")))})};
Yf.prototype.canProvideFallbackResponse=function(){return!0};
Yf.prototype.localFallbackInnertubeResponse=function(f){var H=this,v,t,M;return _.Y(function(h){switch(h.nextAddress){case 1:return h.yield(H.JSC$18520_persistentStorePromiseAccessor(),2);case 2:v=h.yieldResult;if(f.browseId!=="SPaccount_downloads"||!v){h.jumpTo(3);break}return h.yield(GJr(v),4);case 4:if(t=h.yieldResult)return h.return(_.T7(t));case 3:return f.browseId==="FEwhat_to_watch"?h.return(Max(H)):(M=_.J("web_offline_continuation_automatic_retry")||_.J("web_offline_continuation_retry_button"))&&
f.continuation?h.return(hSr(H)):h.return(RSF(H))}})};
var Max=function(f){var H;return _.Y(function(v){if(v.nextAddress==1)return v.yield(f.JSC$18520_upliftPromise,2);H=_.DI_(f.store.getState().entities);return H.length?v.return(Vat(f,H)):v.return(RSF(f))})},vuw=function(f){var H,v;
return _.Y(function(t){if(t.nextAddress==1)return t.yield(f.JSC$18520_upliftPromise,2);if(t.nextAddress!=3)return H=yf0([{offlineItemSectionRenderer:{}}]),t.yield(YqG(f,H),3);v=t.yieldResult;v.onResponseReceivedActions=[Ic("REFRESH_DOWNLOADS")];return t.return(v)})},HSF=function(f){var H,v,t,M,h,y,m,W,I,S,d,Z,l,L,r,n;
return _.Y(function(Q){if(Q.nextAddress==1)return Q.yield(f.JSC$18520_upliftPromise,2);if(Q.nextAddress!=3)return H=f.store.getState(),v=H.entities,t=_.o5(v),M=_.nY(v),h=_.mBb(H),y=_.Yzr(H),m=_.$BN(H),W=_.pLR(v),I=_.Ba(t),S=_.pY(v),d=_.P3_(v),Z=_.OMR(H),l=_.GZ(H),L={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.$D_(t,M,W,d,h,y,I,S,m,Z,l),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},r="",_.J("kevlar_modern_downloads_skip_downloads_title")||
(r=_.ZC("DOWNLOADS",void 0,"Downloads")),Q.yield(mep(f,L,r),3);n=Q.yieldResult;n.onResponseReceivedActions=[Ic("REFRESH_DOWNLOADS")];return Q.return(n)})},taF=function(f){var H,v,t,M,h,y,m,W,I;
return _.Y(function(S){if(S.nextAddress==1)return S.yield(f.JSC$18520_upliftPromise,2);if(S.nextAddress!=3)return H=f.store.getState(),v=H.entities,t=_.o5(v),M=_.Ba(t),h=_.pY(v),y={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.OCT(t),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},m=_.ZC("SMART_DOWNLOADS",void 0,"Smart downloads"),W=YYB(M,h),S.yield(mep(f,y,m,W),3);I=S.yieldResult;I.onResponseReceivedActions=
[Ic("REFRESH_DOWNLOADS")];return S.return(I)})},RSF=function(f){var H,v;
return _.Y(function(t){if(t.nextAddress==1)return t.yield(kd(f.JSC$18520_upliftPromise,f.store),2);H=t.yieldResult;v=yf0([Q4B(H)]);return t.return(YqG(f,v))})},hSr=function(f){var H,v,t,M;
return _.Y(function(h){if(h.nextAddress==1)return H={},v=fc0(f.store.getState()),_.pu(H,_.GI,v),h.yield(kd(f.JSC$18520_upliftPromise,f.store,H,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);t=h.yieldResult;M={};_.pu(M,_.oRr,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:t}}}],targetId:"browse-feedFEwhat_to_watch"});return h.return({responseContext:{},onResponseReceivedActions:[M]})})},yf0=function(f){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:f}}}}]}}},Vat=function(f,H){var v,t;
return _.Y(function(M){var h={contents:SO(H)};v=h&&h.contents?h:{};_.J("kevlar_modern_downloads_page")&&(v=Object.assign({},_.gYR(H),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));t={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:v}}}]}};return M.return(YqG(f,t))})},YqG=function(f,H){var v,t;
return _.Y(function(M){if(M.nextAddress==1)return M.yield(f.JSC$18520_persistentStorePromiseAccessor(),2);if(M.nextAddress!=3)return v=M.yieldResult,M.yield(wy(v),3);t=M.yieldResult;return M.return({responseContext:{},contents:H,topbar:t})})},mep=function(f,H,v,t){var M,h;
return _.Y(function(y){if(y.nextAddress==1)return y.yield(f.JSC$18520_persistentStorePromiseAccessor(),2);if(y.nextAddress!=3)return M=y.yieldResult,y.yield(wy(M),3);h=y.yieldResult;var m=y.return;var W=v;var I=t;W=W===void 0?"":W;I=I===void 0?"":I;W={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:W}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.ZC("SETTINGS",void 0,"Settings"),accessibilityText:_.ZC("SETTINGS",void 0,"Settings"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",
type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",isFullWidth:!0,iconName:"SETTINGS",onTap:{innertubeCommand:_.td("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:I}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:W};
return m.call(y,{responseContext:{},contents:H,topbar:h,header:{pageHeaderRenderer:W}})})};var $ep=function(){this.moduleRegistry={};this.fetchCount=0};
$ep.prototype.isFetching=function(){return this.fetchCount>0};
var nA=function(f,H){f.moduleRegistry[H.toString()]={asyncId:H,isFetching:!1};return f};
$ep.prototype.JSC$18531_loadModules=function(){for(var f=this,H=new Map,v=[],t=_.V(_.NA.apply(0,arguments)),M=t.next();!M.done;M=t.next()){M=M.value;var h=this.moduleRegistry[M];h?h.resolver?H.set(M,h.resolver):(h.resolver=new _.dZ,H.set(M,h.resolver),v.push(h.asyncId),h.isFetching=!0):(h=new _.dZ,H.set(M,h),h.resolve(void 0))}v.length&&(this.fetchCount+=1,_.Ze(_.ya.getMultipleAsync.apply(_.ya,_.pS(v)).then(function(y){for(var m=0;m<v.length;m++){var W=y[m],I=f.moduleRegistry[v[m].toString()];I.isFetching=
!1;I.resolver.resolve(W)}}).catch(function(y){for(var m=_.V(v),W=m.next();!W.done;W=m.next()){W=W.value;
var I=f.moduleRegistry[W.toString()];I.resolver=void 0;I.isFetching=!1;H.get(W.toString()).reject(y)}}),function(){--f.fetchCount}));
return Promise.all([].concat(_.pS(H.values())).map(function(y){return y.promise}))};_.pA=new _.iN("MODULE_REGISTRY_TOKEN");var WhA={},OSx=(WhA.rendered={priority:0,callback:function(f){a:{var H=void 0;try{var v;b:{if(_.IjN()){var t=_.j5r(_.ld()+"::pom");if(t){var M=new BH(t);break b}}M=void 0}var h=(v=M)==null?void 0:v.get("role_text");if(!h)break a;H={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:h}]}}}}}}catch(W){}H&&f.injector.resolve(_.MJ).resolveCommand(H)}try{var y=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(y){var m=JSON.parse(y);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
m&&f.injector.resolve(_.MJ).resolveCommand(m)}}catch(W){}}},WhA);var guF,IcW={},Sqw=(IcW.initialized={priority:10,callback:function(){guF=j4()}},IcW.rendering={callback:function(f){var H;
return _.Y(function(v){if(v.nextAddress==1)return v.yield(guF,2);H=v.yieldResult;if(!H.endpoint)throw Error("wj`"+_.Mr.location.href);lL(f,H);_.Bj(v)})}},IcW);var det={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.pS(_.J("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(f){var H=f.stack;if(H.includes("chrome://")||H.includes("chrome-extension://")||f.message.includes("chrome-extension://")||H.includes("moz-extension://")||H.includes("local.adguard.org")||H.includes("auctioneer3.50million.club")||H.includes("youtubedownloader")||H.includes("youtube_home_page")||H.includes("is_youtube_video_no_longer_available")||
H.includes("switchScreenSizeHack")||H.includes("yt_main_big_banner.js")||H.includes("YouTubeCenter.js")||H.includes("/mytube.js")||H.includes("JSON.parseWrapper")||H.includes("/inj_js/common.js")||H.includes("firebug-lite")||H.includes(".repl.co/")||H.includes("linkfix")||H.includes("playAfterAd")||f.message.includes("Access is denied for this document")&&H.includes("<anonymous>")||f.fileName==="user-script"||f.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
H.includes("<anonymous>"))return!0;if(H.includes("https://www.youtube.com"))return!1;f=H.split("\n");if(!f.length)return!1;if(f.length<=3&&H.includes("s.onloadeddata"))return!0;H=0;for(var v=_.V(f),t=v.next();!t.done;t=v.next())t=t.value,(t.includes("https://")||t.includes("http://"))&&H++;return H/f.length>.95},
weight:0},{callback:function(f){return f.message==="Unknown Error"&&f.name.indexOf("NS_")===0},
weight:100},{callback:function(f){if(!_.My)return!1;var H=f.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||f.message.includes("available to complete this operation"),v=f.stack.includes("webcomponents")&&f.message==="Object doesn't support this action";f=f.message.includes("object that does not implement interface Element");return H||v||f},
weight:0},{callback:function(f){return f.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(f){return f.message==="Operation is not supported"&&(f.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(f){return f.stack.includes("eval code (eval (code:1:1)")||f.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(f){return f.message.includes("Permission denied")&&f.stack.includes("this.domHandler")?!0:f.name.includes("TypeError")&&f.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(f){if(!f.stack)return!1;var H=f.stack.trim().split("\n");H.length&&H[0].endsWith("Error: "+f.message)&&H.shift();H.length&&H[H.length-1].includes("at window.onerror (")&&H.pop();if(!H.length)return!0;if(f.message==="Script error.")return H[0].includes("www.youtube.com")||H.length>=2&&H[0].startsWith("at new")&&H[1].startsWith("at window.onerror");if(f.message==="Unexpected token")return!0;f=_.V(H);for(H=f.next();!H.done;H=f.next())if(H=H.value,!(H.includes("<anonymous>")||
H.startsWith("load@")||H.startsWith("global code@")||H.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(f){return f.message==="Cannot read property 'experiments'"&&f.stack.includes("/s/player/")},
weight:500},{callback:function(f){return f.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(f){return f.stack.includes("/embed.js")?(f.params&&f.params&&(f.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.J("use_error_suppression"))var f=_.a8("SUPPRESS_CLIENT_ERRORS",!1);else{if(f=_.Y_)f=/Chrome\/(\d+)/.exec(_.jE()),f=(f?parseFloat(f[1]):NaN)>=66;f=!(f||_.yB&&_.VB(65)||_.ud&&_.VB(12.1)||TE&&_.VB(79))}return f},
weight:500}]};var jdt={},sdW=(jdt.initialized={priority:10,callback:function(f){f.injector.addProvider({provide:vL_,useValue:f.root});f.injector.addProvider({provide:pox,useValue:OTb});f.injector.addProvider({provide:Qnb,useValue:det});var H={};f.injector.addProvider((H.provide=uap,H.useFactory=function(v,t){return function(){HyE(v,t)}},H[bN]=[pox,
Qnb],H));f.injector.addProvider({provide:dY,useClass:dY})}},jdt);var ZSh={},Jfh=(ZSh.initialized={priority:3,callback:function(){var f;if(f=$OR()){f=f.replace("/",".");var H=_.Uj();H.set("tz",f);H.save();f=!0}else f=!1;f||(f=_.Uj(),f.set("utco",-Math.floor((new Date).getTimezoneOffset())),f.save())}},ZSh);var lci={},UeG=(lci.initialized={priority:10,callback:function(f){f.injector.resolve(dY).start();f=_.kz();var H=_.P6("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.P6("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.P6("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.P6("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.MN(_.XDr(),{mainAppWeb:Object.assign({},f,{pageType:H})});_.MN(bR5(),{mainAppWeb:Object.assign({},f,{pageType:H})});
_.MN(iRR(),{mainAppWeb:f});_.MN(kCH(),{mainAppWeb:f});EFH(function(){_.hQ(iRR(),"FAILURE");_.hQ(kCH(),"FAILURE")});
CWN();Env();hOg()}},lci);var eSG={},Lh0=(eSG.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.u0("dl"),_.PL().processSignal("pcl");else{var f=function(){_.u0("dl");_.PL().processSignal("pcl");window.removeEventListener("load",f)};
window.addEventListener("load",f)}}},eSG);var xei={},BUi=(xei.rendering={priority:0,callback:function(){var f=_.PL();f.parkOrScheduleJob(function(){f.processSignal("eocs")},10,"eor",5E3)}},xei);var zS5=function(){};
_.e(zS5,ae);
zS5.prototype.resolveCommand=function(f,H){var v,t,M,h,y,m,W,I;return _.Y(function(S){M=(v=_.U(f,_.eRo))==null?void 0:(t=v.dialog)==null?void 0:t.commentReplyDialogRenderer;if(!M)throw new _.e$("No dialog in createCommentReplyDialogEndpoint");y=(h=H.form)==null?void 0:h.event;if(!y)throw new _.e$("Event not passed in when resolving command");m=_.V(y.composedPath());for(W=m.next();!W.done;W=m.next())if(I=W.value,I.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||I.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return I.showReplyDialog(M),S.return();
_.Bj(S)})};var zz=function(f){this.pageRequestService=f;this.JSC$18546_prefetchCoordinator=lhi()};
_.e(zz,ae);zz.prototype.resolveCommand=function(f){var H=this,v,t,M,h;return _.Y(function(y){if(y.nextAddress==1){v=_.U(f,MAZ);if((t=v)==null||!t.taskId)throw Error("xj");M=v.taskId;_.Zc(y,2);return y.yield(_.tQ9(H.pageRequestService,f,{},"").then(function(m){if(!m)throw Error("yj");},function(m){throw Error("zj`"+m);
}),4)}if(y.nextAddress!=2)return L_x(H.JSC$18546_prefetchCoordinator,M),_.ch(y,0);
h=_.xu(y);RA(H.JSC$18546_prefetchCoordinator,M,h);_.Bj(y)})};
zz[bN]=[ds];var FO=function(f){this.innertubeTransportService=f};
_.e(FO,ae);FO.prototype.resolveCommand=function(f){var H=this,v,t;return _.Y(function(M){v=_.U(f,t0_);if(v.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||v.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")t=v.boolValue?2:1,_.wC.getInstance().setState(t,!0,!0);return M.yield(_.AE(H.innertubeTransportService,f),0)})};
FO[bN]=[_.PS];var rd={},Fhx=(rd.addToPlaylistEndpoint=va(Ke),rd.addToToastAction=va(pi),rd.adsControlFlowOpportunityReceivedCommand=va(O2),rd.audioTrackSelectActionCommand=va(Zgw),rd.backgroundAudioPlaybackCommand=va(XN),rd.captionLanguageSelectActionCommand=va(A2),rd.captionPickerEndpoint=va(bB),rd.changeMiniAppPlayStateCommand=va(D$),rd.changeTimelyActionVisibilityCommand=va(ni),rd.channelCreationFormEndpoint=va(Le),rd.clearLocationCommand=va(rG),rd.clearUrlParamCommand=va(oz),rd.copyLinkCommand=va(H0),rd.copyTextEndpoint=
va(So),rd.createCommentReplyDialogEndpoint=b3T(zS5),rd.createPlaylistServiceEndpoint=va(v0),rd.dismissDialogEndpoint=va(pe),rd.dismissPlayerOverlayCommand=va(iB),rd.entityUpdateCommand=va(jo),rd.feedbackEndpoint=va(J2),rd.getAnswerCommand=va(Ksh),rd.getPaymentsClientTokenCommand=va(aR),rd.getTranscriptEndpoint=va(QV),rd.googlePaymentBillingCommand=va(P0),rd.googlePaymentPurchaseManagerCommand=va(Gd),rd.hideEngagementPanelEndpoint=va(Qo),rd.hideSnackbarCommand=va(B0),rd.insertRichSectionCommand=va(BY),
rd.listMutationCommand=va(zc),rd.logGtmCommand=va(xA),rd.notifyDropdownOptionSelectedCommand=va(ne),rd.openAdAllowlistInstructionCommand=va(_.gG),rd.openOnePickAddVideoModalCommand=va(tR),rd.persistSubscriptionsDisplayPreferencesCommand=va(YG),rd.pingingEndpoint=va(Iz),rd.playlistEditEndpoint=va(hR),rd.playlistVotingRefreshPopupCommand=va(RR),rd.profileCardCommand=va(WY),rd.refreshPanelEndpoint=va(uB),rd.saveImageToDeviceEndpoint=va(dG),rd.scrollToSectionEndpoint=b3T(DrA),rd.seekToVideoTimestampCommand=
va(Tc),rd.selectCountryCommand=va(mT),rd.setCookieCommand=va($G),rd.setLocalStorageCommand=va(Ft),rd.setPrefStorageEntryCommand=va(Ol),rd.setSettingEndpoint=va(FO),rd.sfvAudioItemPlaybackCommand=va(wG),rd.shareImageCommand=va(gl),rd.sharingProviderDataCommand=va(IR),rd.showAudioTrackPickerActionCommand=va(Fsb),rd.showCaptionLanguageSelectActionCommand=va(qa),rd.showDialogCommand=va(Gc),rd.showEngagementPanelEndpoint=va(Ce),rd.showSheetCommand=va(E2),rd.showSnackbarCommand=va(zd),rd.showTransientPlayerScrimOverlayCommand=
va(fi),rd.submitFormWithValidationFlowCommand=va(eo),rd.talkToRecsDeselectCommand=va(rl),rd.talkToRecsNextCommand=va(Ki),rd.talkToRecsSelectCommand=va(DA),rd.talkToRecsUpdateTextCommand=va(oR),rd.toggleEngagementPanelCommand=va(Na),rd.undoFeedbackEndpoint=va(U2),rd.updateEngagementPanelContentCommand=va(cY),rd.updateUrlParamCommand=va(uR),rd.verifyCommand=va(Le),rd.webNativeShareCommand=va(Sm),rd.webSubmitFormCommand=va(VV),rd.ACK_PLAYABLES_3P_DATA_CONSENT=va(dl),rd.CANCEL_NAVIGATION=va(jm),rd.COPY_SHARE_URL=
va(sl),rd.MINI_APP_EXIT_DIALOG_SEEN=va(JR),rd.MINI_APP_OPEN_URL=va(ZA),rd.REQUEST_MINI_APP_FULLSCREEN=va(lR),rd.RESUME_NAVIGATION=va(Ul),rd.SHARE_PLAYABLE_WITH_HIGH_SCORE=va(em),rd.TELL_US_WHY=va(lB),rd);_.J("web_enable_prefetching_videos_on_home")&&(Fhx.prefetchWatchCommand=va(zz),Fhx.registerTasksCommand=va(yi));_.J("enable_share_panel_navigation_logging_fix_on_web")&&(Fhx.shareEntityServiceEndpoint=va(az));var $vh=Object.assign({},Fhx);var rft={},Kh5=(rft.initialized={priority:10,callback:bUE},rft);var Deh={},ou5=(Deh.initialized={callback:function(f){var H={},v={};d1v().install((H.document_disposed={callback:function(){_.J("finalize_all_timelines")?g3E():or();V_v("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.zcT();var t=f.injector.resolve(dY);t.intervalId!==void 0&&(t.intervalId&&_.nN.cancelJob(t.intervalId),t.intervalId=void 0,--t.currentPartitionIndex,t=Nd_(t),t>0&&k$H({mainAppWeb:_.kz(),survivalSli:{partitionMinute:t,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));CMC(Ep);NQ!=null&&
NQ.flush();$z&&$z.snapshotAndFlush();t=_.V(hhH.values());for(var M=t.next();!M.done;M=t.next())M.value.snapshotAndFlush()}},H),(v.flush_logs={callback:function(){_.DK()}},v))}},Deh);var nur={},pjA=(nur.rendered={priority:0,callback:function(){var f=new LvZ;f.increment("STARTED");if(_.a8("LOGGED_IN")&&!_.a8("IS_DBSC",!1)&&_.a8("SERVER_VERSION")!=="test"&&_.a8("SERVER_VERSION")!=="dev"&&!Mv_()&&!tv9()){f.increment("EXECUTING");var H=document.createElement("iframe");H.style.display="none";_.fcg(H,2,_.Co("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.a8("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(H);f.increment("DONE")}}},
nur);var QdW={},uPi=(QdW.rendered={callback:function(){lhi().resume()}},QdW);var acF={acknowledgeChannelTouStrikeCommand:FE(da),addToPlaylistServiceEndpoint:FE(Z3),addToPlaylistEndpoint:FE(Z3),addUpcomingEventReminderEndpoint:FE(Kj),browseEndpoint:FE(RZb),channelCreationFormEndpoint:FE(YS),channelCreationServiceEndpoint:FE(mY),claimLegacyYoutubeChannelEndpoint:FE(kG),clearSearchHistoryEndpoint:FE(eb),clearWatchHistoryEndpoint:FE(Lj),commerceActionCommand:rZ(CD),createBackstagePostEndpoint:FE(NG),createBroadcastCommand:FE(DL),createCommentEndpoint:FE(hb),createCommentReplyEndpoint:FE(Ms),
createLiveChatPollEndpoint:FE(oT),createPlaylistServiceEndpoint:FE(JF),crossAccountChannelTransferEndpoint:FE(zv),deleteLiveChatMessageCommand:FE(nj),deletePlaylistEndpoint:FE(lQ),deleteVideoEndpoint:FE(uQ),dismissalEndpoint:FE(jb),feedbackEndpoint:FE(sm),flagEndpoint:FE(z8),getAccountSwitcherEndpoint:FE(Bq),verifyCommand:FE(El),getAccountsListInnertubeEndpoint:FE(ra),getCommentsFromInboxCommand:FE(kS),getDownloadActionCommand:FE(mi),getFlowCommand:rZ(Um),getKidsBlocklistPickerCommand:FE(FK),getNotificationMenuEndpoint:FE(Yb5),
getPaymentInstrumentsParamsCommand:FE(bQ),getPaymentsClientTokenCommand:rZ(CD),getPdgBuyFlowCommand:FE(jn),getReportFormEndpoint:FE(rJ),getSearchInVideoCommand:FE(o6),getAnswerCommand:FE(D3),getSurveyCommand:FE(Q6),getTranscriptEndpoint:FE(PW),getPostVideoPreviewEndpoint:FE(Xt),decorateMessageEndpoint:FE(c0),likeEndpoint:FE($S),liveChatActionEndpoint:FE(aT),liveChatEndpoint:FE(uO),liveChatItemContextMenuEndpoint:FE(pj),liveChatPurchaseMessageEndpoint:FE(Pq),liveChatReplayEndpoint:FE(Qv),manageLiveChatUserEndpoint:FE(Cj),
metadataUpdateCommand:FE(bO),moderateLiveChatEndpoint:FE(Em),modifyChannelNotificationPreferenceEndpoint:FE(V6),notificationOptOutEndpoint:FE(y6),openSuperStickerBuyFlowCommand:FE(Gv),performCommentActionEndpoint:FE(Hq),playlistEditEndpoint:FE(en),playlistEditorEndpoint:FE(Uu),recordNotificationInteractionsEndpoint:FE(Yw),reelWatchEndpoint:FE(LD),refreshPanelEndpoint:FE(WW),removeUpcomingEventReminderEndpoint:FE(Ns),resolveLocationCommand:FE(Ab),revealBusinessEmailCommand:FE(Td),searchEndpoint:FE(_.mTF),
sendLiveChatMessageEndpoint:FE(cq),sendLiveChatVoteEndpoint:FE(Xv),setSettingEndpoint:FE(Wq),shareEntityServiceEndpoint:rZ(Sb),sharingProviderDataCommand:FE(pD),showEngagementPanelEndpoint:FE(Ou),showMoreDrawerCommand:FE(I6),showSheetCommand:FE(Sn),showDialogCommand:FE(gJ),subscribeEndpoint:FE(Om),transcriptSubmitCaptionCorrectionCommand:FE(a6),undoFeedbackEndpoint:FE(Jb),unsubscribeEndpoint:FE(IT),updateBackstagePostEndpoint:FE(bR),updateCommentEndpoint:FE(Vv),updateCommentReplyEndpoint:FE(RT),updateCommentsSettingsEndpoint:FE(yv),
updateCreatorChannelInnertubeCommand:FE(qG),updateKidsBlacklistEndpoint:FE(KD),updateEngagementPanelContentCommand:FE(dJ),updatePdgFeatureEnablementCommand:FE(su),updatedMetadataEndpoint:FE(iO),validateChannelHandleCommand:FE(fj),updateChannelPageSettingsEndpoint:FE(wl),verifyAgeEndpoint:FE(lO),watchEndpoint:rZ(SD),whitelistEditEndpoint:FE(G8),ypcCancelRecurrenceEndpoint:FE(Eu),ypcCompleteTransactionEndpoint:FE(Nb),ypcFixInstrumentEndpoint:FE(XK),ypcGetCartEndpoint:FE(cW),ypcGetOffersEndpoint:FE(AF),
ypcHandleTransactionEndpoint:rZ(iQ),ypcLogWalletAnalyticDataEndpoint:FE(kw),ypcOffersEndpoint:FE(T8),ypcPauseSubscriptionCommand:FE(wJ),ypcRedeemCodeEndpoint:FE(qb),ypcResumeSubscriptionCommand:FE(fa),ypcUpdateFopEndpoint:FE(XK)},Ka={},PkF=(Ka.GET_ACCOUNT_MENU=FE(Fv),Ka.GET_NOTIFICATIONS_MENU=FE(y90),Ka.GET_NOTIFICATIONS_INBOX=FE(Mb),Ka.GET_UNSEEN_NOTIFICATION_COUNT=FE(R6),Ka.GET_USER_MENTION_SUGGESTIONS=FE(AR),Ka.LOAD_GUIDE=FE(Vv0),Ka.SUBMIT_FEEDBACK=FE(ZL),Ka),D0={},Gow=(D0.CONTINUATION_REQUEST_TYPE_BROWSE=
FE(iR),D0.CONTINUATION_REQUEST_TYPE_SEARCH=FE(nD),D0.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=FE(jD),D0.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=FE(xS),D0.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=FE(tb),D0.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=FE(vq),D0.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=FE(BW),D0.CONTINUATION_REQUEST_TYPE_GET_PANEL=FE($w),D0),Ckt={player:rZ(SD),watchNext:FE(d4)},Eu0={player:rZ(SD),reelItemWatch:FE(LD),reelWatchSequence:FE(xw)},NUp={watchEndpoint:rZ(sz)},cfF=
{commandEndpointMap:acF,signalEndpointMap:PkF,continuationEndpointMap:Gow,watchEndpointMap:Ckt,reelWatchEndpointMap:Eu0,streamingEndpointMap:NUp};var Xjt,AfW,bSW;_.iSW=((AfW=(Xjt=window).matchMedia)==null?void 0:(bSW=AfW.call(Xjt,"(prefers-reduced-motion: reduce)"))==null?void 0:bSW.matches)||!document.startViewTransition;var koi={},TUp={disableAllTransitions:_.iSW,ignoredErrors:(koi.DOCUMENT_HIDDEN=!0,koi.WINDOW_SIZE_CHANGED=!0,koi.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,koi),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 wjw=_.EH("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n          }\n      ".split(",")),qqA=function(f){this.viewTransitionCoordinator=f;this.isBrowseTransitionEnabled=_.yQ("web_page_transition_type")==="slide";this.isLockupToWatchTransitionEnabled=_.J("web_thumbnail_to_watch_transition");
this.isLockupThumbnailRegistrationEnabled=_.J("web_thumbnail_to_watch_transition_register_thumbnail");this.isLearningJourneyTransitionEnabled=_.J("enable_plj_landing_page");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;this.registerRootElement();if(this.isAnyTransitionEnabled){f=_.VQ("web_page_transition_exit_ms");var H=_.VQ("web_page_transition_wait_ms"),
v=_.VQ("web_page_transition_enter_ms"),t=_.VQ("web_page_transition_watch_exit_ms"),M=_.VQ("web_page_transition_watch_wait_ms"),h=_.VQ("web_page_transition_watch_enter_ms");if(!isNaN(f)||!isNaN(H)||!isNaN(v))if(f=Bre(wjw,f,H,v,t,M,h))H=document.createElement("style"),H.textContent=hS_(f),document.head.appendChild(H)}};
qqA.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var f={};this.viewTransitionCoordinator.registerElement(document.documentElement,(f.slide="root-slide",f["lockup-to-watch"]="root-lockup-to-watch",f["learning-journey"]="root-learning-journey",f))}};
_.Os9=function(f,H){f.isLockupToWatchTransitionEnabled&&f.isLockupThumbnailRegistrationEnabled&&(f.registeredLockupThumbnail?f.lockupThumbnailRegisteredFromWatchEndpoint?_.pb(new _.e$("Lockup thumbnail registration order is incorrect.")):_.pb(new _.e$("Lockup thumbnail already registered.")):(f.registeredLockupThumbnail=H,_.fR5(f,H)))};
_.fR5=function(f,H){var v={};f.viewTransitionCoordinator.registerElement(H,(v["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",v),!0)};
qqA[bN]=[ubW];var iUg={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 T1R=["videoPrimaryInfoRenderer","title"],wuH=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var Hdt;Hdt=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.vO5=_.a(function(f){f=_.tV(f,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var H=f.data,v=f.playlistData,t=f.expanded,M=f.onExpandClick,h=f.isReadyToResume,y=function(){var S;return!((S=v())==null||!S.contents)},m=function(){var S=v();
return S&&S.totalVideos&&S.currentIndex!==void 0?S.currentIndex+1+" / "+S.totalVideos:""};
f=_.d6(function(){_.oA(_.t8().resolve(_.o0));return!1});
var W=_.d6(function(){y()&&M&&M()}),I={};
return _.O("ytd-miniplayer-info-bar",{class:_.S2("ytdMiniplayerInfoBarHost",(I.ytdMiniplayerInfoBarHasPlaylistData=y,I)),"on:click":W},_.O("div",{class:"ytdMiniplayerInfoBarContent"},_.O("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":f},_.O(_.iq,{text:function(){var S=H();var d=v();if(d==null?0:d.contents){var Z;S=(Z=_.Omv(d))==null?void 0:Z.title}else S=S==null?void 0:S.miniplayerTitle;return qnN(S)},
noEndpoints:!0,ellipsisTruncate:!0})),_.O("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.O(_.g,{cond:h,then:function(){return _.O(HJo,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:Hdt})}}),_.O("h1",null,_.O(_.iq,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var S=H();var d=v();S=h()?{simpleText:_.ZC("CONTINUE_WATCHING",void 0,"Continue watching")}:(d==null?0:d.contents)?d.titleText:S==null?void 0:S.miniplayerSubtitle;return qnN(S)},
noEndpoints:!0,ellipsisTruncate:!0})),_.O(_.g,{cond:function(){return!!m()&&!h()},
then:function(){return _.O("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.O("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.O("span",null,m))}}))),_.O(_.g,{cond:y,
then:function(){return _.O("div",{class:"ytdMiniplayerInfoBarExpand"},_.O(_.$p,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(S){M&&(M(),S.stopPropagation())}}},
iconName:function(){return t()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"Ue");var tFt;tFt=_.a(function(f){return _.O("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.O(_.$p,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:f.onTap}},
iconName:"yt-icons:close"}))},"Ve");
_.MFt=_.a(function(f){f=_.tV(f,{playabilityStatus:void 0,isDisabled:!1});var H=f.size,v=f.playabilityStatus,t=f.isDisabled,M=_.TN("div");f=_.V(_.gp(void 0,void 0,"bJr0Se"));var h=f.next().value,y=f.next().value;f=_.uE(_.hY);var m=!1,W=function(){return H().height<=0};
_.K4(function(){var Z=H(),l=W(),L=h();L&&!l&&L.setInternalSize(Z.width,Z.height)},"OUOyKb");
_.ru(function(){var Z,l,L;return _.Y(function(r){if(r.nextAddress==1){Z=_.t8().resolve(_.o0);l=Z.getPlayerElement();if(!Z.isMiniplayerActive()||!l||!M.value)return r.return();l.appendTo(M.value);return r.yield(l.getPlayerPromise(),2)}L=r.yieldResult;L.setSizeStyle(!1,!0);y(L);_.Bj(r)})});
_.Dt(function(){I()});
_.K4(function(){var Z=h();if(Z)if(t()){var l=Z.getPlayerState();(m=l===-1||l===1||l===3)&&Z.pauseVideo()}else I()},"KKHe5");
var I=function(){if(m){m=!1;var Z;(Z=h())==null||Z.playVideo()}},S=_.d6(function(){_.oA(_.t8().resolve(_.o0))}),d={};
return _.O("ytd-miniplayer-player-container",{class:_.S2("ytdMiniplayerPlayerContainerHost",(d.ytdMiniplayerPlayerContainerHidden=W,d.ytdMiniplayerPlayerContainerHostShortsPip=f,d)),style:_.ZE({width:function(){return H().width+"px"},
height:function(){return H().height+"px"}})},_.O("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:M}),_.O(_.g,{cond:function(){return!!v()&&!_.zre(v())},
then:function(){return _.O(OEh,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var Z;return((Z=v())==null?void 0:Z.errorScreen)||null},
status:function(){var Z;return((Z=v())==null?void 0:Z.status)||null}})}}),_.O(_.g,{cond:t,
then:function(){return _.O("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":S},_.O(tFt,{onTap:function(){_.t8().resolve(_.o0).close()}}))}}))},"We");_.hgW=_.a(function(f){var H=f.toastData;var v=_.TN("ytd-miniplayer-toast");f=_.V(_.sR(function(){return!!H()}));
var t=f.next().value,M=f.next().value;f=_.V(_.gp(!1,void 0,"xkrBze"));var h=f.next().value,y=f.next().value,m=function(){var S;return _.fG((S=H())==null?void 0:S.data.title)};
_.Kc(function(){_.p3.requestAvailability();H()&&M(!1)});
var W,I;_.K4(function(){t()&&(_.YE(v.value,"iron-announce",{text:H().label+" "+m()}),W&&_.nN.cancelJob(W),W=_.nN.addLowPriorityJob(function(){y(!0)},2500))},"OTdL1e");
_.K4(function(){h()&&(I&&_.nN.cancelJob(I),I=_.nN.addLowPriorityJob(function(){M(!1);y(!1)},300))},"yybqib");
f={};return _.O("ytd-miniplayer-toast",{el:v,class:_.S2("ytdMiniplayerToastHost",(f.ytdMiniplayerToastOpening=function(){return t()},f.ytdMiniplayerToastClosing=function(){return h()},f))},_.O(_.g,{cond:function(){var S;
return(S=H())==null?void 0:S.data},
then:function(S){return _.O(mf_,{className:"ytdMiniplayerToastThumbnail",data:S,width:78})}}),_.O("div",{class:"ytdMiniplayerToastInfo"},_.O("div",{class:"ytdMiniplayerToastLabel"},function(){var S;
return(S=H())==null?void 0:S.label}),_.O("div",{class:"ytdMiniplayerToastTitle"},m)))},"Xe");var Yd5;var WD3=null;var VFW=_.a(function(f){var H=f.progressState;var v=f.multiMarkersPlayerBarRenderer;var t=f.progressBarWidth;var M=function(){return SdB(v())},h=function(){return sLb(H())},y=function(){return t()*(H().playedTime/H().videoDuration)};
return _.O("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.O(_.eK,{each:M},function(m,W){return _.O(Rgp,{modifiedProps:h,chapters:M,index:W,playedProgressWidth:y,backgroundGradientPosition:function(){var I=h(),S=M(),d=W(),Z=y();return(I.playedTime-KA(_.U(S[d],rs)))/I.playedTime*Z}})}))},"Ye"),Rgp=_.a(function(f){var H=f.modifiedProps;
var v=f.chapters;var t=f.index;var M=f.playedProgressWidth;var h=f.backgroundGradientPosition;f={};f=_.S2("ytChapteredProgressBarChapteredPlayerBarChapter",(f.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return y().isScrubbing},f.ytChapteredProgressBarHoveredMacroMarker=function(){return y().scrubberHovering},f.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return y().videoPosition==="seen"},f));
var y=function(){return Znr(H(),v(),t())},m=function(){var W=H();
var I=v(),S=t();if(Znr(W,I,S).videoPosition!=="active")W=0;else{var d=KA(_.U(I[S],rs));W=(W.playedTime-d)/((KA(_.U(I[S+1],rs))||W.videoDuration)-d)}return W};
return _.O("div",{class:f,style:_.ZE({width:function(){var W=H(),I=v(),S=t(),d=_.U(I[S],rs);I=_.U(I[S+1],rs);return(I?KA(I)-KA(d):W.videoDuration-KA(d))/W.videoDuration*100+"%"},
"background-color":function(){a:{var W=y();switch(W.videoPosition){case "pending":W=W.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":W=W.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:W=""}}return W},
"background-size":function(){return(J03(y())?M():"")+"px"},
"background-position-x":function(){return(J03(y())?h():"")+"px"}})},_.O("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var W=H(),I=v(),S=t();if(Znr(W,I,S).videoPosition==="seen")var d=0;else d=KA(_.U(I[S],rs)),I=KA(_.U(I[S+1],rs))||W.videoDuration,W=W.videoDuration*W.percentLoaded,d=I<=W?1:d>=W?0:(W-d)/(I-d);return"width: "+d*100+"%"}}),_.O("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.ZE({width:function(){return m()*100+"%"},
"background-size":function(){return(J03(y(),m())?M():"")+"px"},
"background-position-x":function(){return(J03(y(),m())?h():"")+"px"}})}))},"Ze");var yT5=function(f,H){H=H===void 0?tfT:H;var v,t=[],M,h=!1;return function(){var y=_.NA.apply(0,arguments);if(h&&v===this&&H(y,t))return M;M=f.apply(this,y);h=!0;v=this;t=y;return M}}(function(f){var H=f.heatMarkers,v=f.minHeightDp===void 0?0:f.minHeightDp,t=f.maxHeightDp===void 0?60:f.maxHeightDp;
var M=M===void 0?!1:M;var h=1E3/H.length;f=[];f.push({x:0,y:100});for(var y=0;y<H.length;y++){var m=void 0,W=((m=_.U(H[y],V3M))==null?void 0:m.heatMarkerIntensityScoreNormalized)||0;m=(y+.5)*h;W=100-_.FL(W*100,v/321*100,t/321*100);y!==0||M||f.push({x:0,y:W});f.push({x:m,y:W});y===H.length-1&&f.push({x:1E3,y:W})}f.push({x:1E3,y:100});H="";for(v=0;v<f.length;v++)M=f[v],v===0?M="M "+M.x.toFixed(1)+","+M.y.toFixed(1):(t=xos(f[v-1],f[v-2],M),h=xos(M,f[v-1],f[v+1],!0),M=" C "+(t.x.toFixed(1)+","+t.y.toFixed(1)+
" "+h.x.toFixed(1)+","+h.y.toFixed(1)+" "+M.x.toFixed(1)+","+M.y.toFixed(1))),H+=M;return H});var YZr=_.a(function(f){var H=f.progressBarProps;var v=f.config;var t={};f=_.S2("ytHeatSeekerHost",(t.ytHeatSeekerHighContrast=f.highContrast,t));var M=function(){return M9b(v().chapterData)};
return _.O("yt-progress-bar-heatseeker",{class:f,style:function(){var h;return"height: 320px; display: "+(H().isDragging&&((h=M())==null?0:h.heatMarkers)?"block":"none")}},_.O(_.g,{cond:M,
then:function(h){return _.O(_.g,{cond:function(){return h().heatMarkers},
then:function(){return _.O("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.O("path",{d:function(){return yT5(h())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"$e");var mdx=_.a(function(f){var H=f.progressBarProps;var v=f.config;f={};f=_.S2("ytProgressBarLineProgressBarLine",(f.ytProgressBarLineProgressBarLineRounded=function(){return v().rounded},f.ytProgressBarLineProgressBarLineBottomInset=function(){return v().position===2},f));
return _.O("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.O("div",{class:f},_.O("div",{class:"ytProgressBarLineProgressBarBackground"}),_.O("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+H().percentLoaded*100+"%"}}),_.O("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var t=H();return"width: "+(t.videoDuration?_.FL(t.hoveredTime/t.videoDuration,0,1):0)*100+"%"}}),_.O("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+HnB(H())*100+"%"}})))},"af");
mdx.idomCompat=!0;var $d5=_.a(function(f){var H=f.progressBarProps;var v=f.playheadData;var t=f.interpolateDotPosition;var M=f.hidePlayhead;f={};var h=_.S2("ytProgressBarPlayheadProgressBarPlayheadDot",(f.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return H().isDragging},f.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!H().isDragging&&M()},f));
return _.O("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.ZE({"margin-left":function(){return vj5(H())*100+"%"},
transform:function(){return"translateX(-"+(t()?vj5(H())*12:6)+"px)"}})},_.O(_.g,{cond:function(){var y;
return(y=_.vK(v)())==null?void 0:y.playheadImage},
then:function(y){var m={};return _.O("div",{class:_.S2("ytProgressBarPlayheadProgressBarPlayheadCustom",(m.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return H().isDragging},m.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!H().isDragging&&M()},m)),
style:_.ZE({"transform-origin":function(){return(t()?vj5(H())*20:10)+"px center"}})},_.O(_.Hn,{data:y,
alt:"","aria-hidden":"true"}))},
else:function(){return _.O("div",{class:h,style:_.ZE({"transform-origin":function(){return(t()?vj5(H())*12:6)+"px center"}})})}}))},"bf");
$d5.idomCompat=!0;var na=function(f,H,v,t,M,h){this.getProgressBarRect=f;this.updateProgressBarRect=H;this.getFilmstripYPosition=v;this.setFineScrubbingDraggedTime=t;this.updateFilmStripDraggedYDistance=M;this.resetFilmStripYOffset=h;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.Nl(this.onThrottledSeek,100,this)},WSF=function(f,H,v){return function(t){f.handleClick(t,H(),v())}},IRr=function(f,H){return function(v){Odr(f,
v,gOF(v),H())}},SZx=function(f,H){return function(v){Odr(f,v,{x:v.clientX,
y:v.clientY},H())}},jl0=function(f,H,v){return function(t){var M=H(),h=v();
ddW(f,t,gOF(t),M,h,!0);if(h.onTouchMove)h.onTouchMove(M)}},Zdi=function(f,H,v){return function(t){sl5(f,t,H(),v())}},JTt=function(f,H){return function(){f.handleMouseLeave(H())}},lRF=function(f,H,v){return function(){var t=H(),M=v();
pa(f,t,M);if(M.onTouchEnd)M.onTouchEnd(t)}},UdF=function(f,H,v){return function(){var t=H(),M=v();
pa(f,t,M);if(M.onTouchEnd)M.onTouchEnd(t)}},egr=function(f,H,v){return function(){pa(f,H(),v())}},LSr=function(f){return function(H){if(H.keyCode===39||H.keyCode===38){var v,t;
(v=f())==null||(t=v.playerApi)==null||t.seekBy(5,void 0,void 0,72)}else if(H.keyCode===37||H.keyCode===40){var M,h;(M=f())==null||(h=M.playerApi)==null||h.seekBy(-5,void 0,void 0,71)}}},xdb=function(f,H,v){return function(t){!v().disableScrubbing&&f.startPosition&&sl5(f,t,H(),v())}},Brb=function(f,H,v){return function(){if(!v().disableScrubbing)if(f.startPosition){var t=H(),M=v();
pa(f,H(),v());if(M.onTouchEnd)M.onTouchEnd(t)}else H().setState({isDragging:!1})}},gOF=function(f){f=f.touches[0];
return{x:f.clientX,y:f.clientY}},sl5=function(f,H,v,t){if(H.buttons!==1){if(H.movementX||H.movementY)H.preventDefault(),H.stopPropagation(),f=zg5(f,v,H.clientX),v.setState({isHovering:!0,
hoveredTime:f*v.videoDuration})}else FS5(v),ddW(f,H,{x:H.clientX,y:H.clientY},v,t,!1)};
na.prototype.handleMouseLeave=function(f){FS5(f)};
var FS5=function(f){f.isHovering&&f.setState({isHovering:!1,hoveredTime:0})},Odr=function(f,H,v,t){f.startPosition||(f.startPosition=v,f.updateProgressBarRect(),f.controlsWereVisibleBeforeDragging=t.controlsVisible,H.stopPropagation(),_.J("medium_progress_bar_modification")||H.preventDefault())},ddW=function(f,H,v,t,M,h){if(f.startPosition)if(h&&M.isInlinePlayback&&f.startPosition&&!f.hasDraggedTheMinimumDistance&&Math.abs(v.y-f.startPosition.y)>Math.abs(v.x-f.startPosition.x))pa(f,t,M);
else if(H.preventDefault(),H.stopPropagation(),t.videoDuration&&(f.startPosition&&!f.hasDraggedTheMinimumDistance&&(f.hasDraggedTheMinimumDistance=Math.abs(v.x-f.startPosition.x)>=1),M.enableFineScrubbing&&(f.startPosition&&(f.isDraggedForFineScrubbing=-(v.y-f.startPosition.y)>=60),!f.startPosition||v.y>=f.startPosition.y||(t.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:lG5(t.draggedTime,t,M.chapterData)}),f.setFineScrubbingDraggedTime(t.draggedTime),f.updateFilmStripDraggedYDistance(f.startPosition.y,
v.y,t))),f.hasDraggedTheMinimumDistance)){H=zg5(f,t,v.x);if(f.isDraggedForFineScrubbing){var y;(y=t.playerApi)==null||y.pauseVideo();t.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:t.draggedTime,filmStripXDistance:lG5(H*t.videoDuration,t,M.chapterData)})}M.enableFineScrubbing&&(!M.enableFineScrubbing||f.getFilmstripYPosition(t)<68)||t.setState({draggedTime:H*t.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:f.controlsWereVisibleBeforeDragging});var m;(m=
M.cancelAutohideControlsFn)==null||m.call(M)}},pa=function(f,H,v){var t=v.enableFineScrubbing&&H.fineScrubbingActiveState!=="off";
if(H.isDragging||t){t={isDragging:!1,playedTime:H.draggedTime,controlsVisible:f.controlsWereVisibleBeforeDragging};v.enableFineScrubbing&&H.fineScrubbingActiveState!=="on"&&(f.resetFilmStripYOffset(),t.fineScrubbingActiveState="off");var M=M===void 0?WD3:M;var h=_.uy(0);if(h&&M){var y=Math.round(H.playedTime*1E3),m=Math.round(H.draggedTime*1E3);y>2147483647||m>2147483647||_.wj(h,M,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(y),endMediaTimeMs:String(m),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}H.setState(t);
f.seekThrottle.fire(H.draggedTime,H,7);_.J("mweb_new_progress_bar_play_on_seek")&&f.resumeVideo(H);v.unmuteOnSeek&&(v=H.playerApi,H.volumeMuted&&(v==null||v.unMute()))}else H.setState({controlsVisible:!H.controlsVisible}),(h=v.triggerAutohideControlsAfterDelayFn)==null||h.call(v);f.startPosition=null;f.hasDraggedTheMinimumDistance=!1;f.isDraggedForFineScrubbing=!1;f.controlsWereVisibleBeforeDragging=!1};
na.prototype.handleClick=function(f,H,v){this.updateProgressBarRect();f.stopPropagation();f=zg5(this,H,f.clientX)*H.videoDuration;H.setState({playedTime:f});if(H.playerState!==2){var t;(t=v.triggerAutohideControlsAfterDelayFn)==null||t.call(v)}this.seekThrottle.fire(f,H,7)};
var zg5=function(f,H,v){f=f.getProgressBarRect(H);return _.FL(0,(v-f.left)/f.width,1)};
na.prototype.resumeVideo=function(f){if(f.draggedTime<f.videoDuration){var H;(H=f.playerApi)==null||H.playVideo()}};
na.prototype.onThrottledSeek=function(f,H,v){if(H=H.playerApi){var t;if((t=H.getVideoData())==null?0:t.isLive)t=this.getProgressState(H),f+=(t==null?void 0:t.seekableStart)||0;H.seekTo(f,void 0,void 0,void 0,v)}};
na.prototype.getProgressState=function(f){var H=f==null?void 0:f.getPresentingPlayerType();return f==null?void 0:f.getProgressState(H)};var DdW,KSr,oOt,pQG,rTG,Qlx,uUx,aRW,PhG;DdW=_.a(function(f){var H=f.progressBarProps;var v=f.config;var t=f.progressBarWidthPx;var M=f.chapterData;var h=BRr(H,function(){return v().isShortsPage}),y=function(){return!H().isHovering&&!v().isShortsPage};
f={};var m=_.S2("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(f.ytPlayerStoryboardHostMwebShorts=function(){return v().isShortsPage&&!1},f));
return _.O("yt-player-storyboard",null,_.O(_.g,{cond:function(){return H().isDragging||H().isHovering},
then:function(){return _.O(_.g,{cond:h,then:function(W){return _.O(_.g,{cond:y,then:function(){return _.O("div",{class:m,"aria-hidden":"true"},_.O(rTG,{props:H,config:v,isBigboard:!0,chapterData:M}))},
else:function(){return _.O(KSr,{props:H,frame:W,config:v,progressBarWidthPx:t,chapterData:M})}})}})}}))},"cf");
_.nOw=_.a(function(f){var H=f.progressBarProps;var v=BRr(H,f.isShortsPage);return _.O("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.O(_.g,{cond:function(){return H().isDragging||H().isHovering},
then:function(){return _.O(_.g,{cond:v,then:function(t){return _.O(oOt,{frame:t,props:H,isBigboard:!0})}})}}))},"df");
KSr=_.a(function(f){var H=f.props;var v=f.frame;var t=f.config;var M=f.progressBarWidthPx;f=f.chapterData;var h={};h=_.S2("ytPlayerStoryboardHost",(h.ytPlayerStoryboardHostMwebShorts=function(){return t().isShortsPage&&!1},h.ytPlayerStoryboardHostInlinePlayer=function(){return t().isInlinePlayer},h.ytPlayerStoryboardHostFadeIn=function(){return t().useFadeInAnimation},h));
return _.O("div",{class:h,"aria-hidden":"true",style:function(){var y=H(),m=U4H(v()),W=M();y=ee3(y)/y.videoDuration;var I=W*y,S=m/2+6;m=W-(m/2+6);return"left: "+(I<=S?S/W*100:I>=m?m/W*100:y*100)+"%"}},_.O(_.g,{cond:function(){var y=H();
return!(t().isShortsPage&&y.videoDuration<15)},
then:function(){return _.O(oOt,{frame:v,props:H,isBigboard:!1})}}),_.O(rTG,{props:H,
config:t,isBigboard:!1,chapterData:f}))},"ef");
oOt=_.a(function(f){var H=f.frame;var v=f.props;var t=f.isBigboard;var M=function(){var m,W;return(W=(m=v().playerApi)==null?void 0:m.getVideoContentRect())!=null?W:{width:0,height:0}},h=function(){return U4H(H())},y=function(){var m=H();
return m?m.height/m.rows:0};
f={};f=_.S2((f.ytPlayerStoryboardBigboardImageWrapper=t,f.ytPlayerStoryboardStoryboardImageWrapper=function(){return!t()},f));
return _.O("div",{class:f,style:function(){return"width: "+(t()?M().width:h())+"px; height: "+(t()?M().height:y())+"px;"}},_.O(pQG,{frame:H,
storyboardWidth:h,storyboardHeight:y,storyboardScale:function(){return(t()?M().width:h())/h()}}))},"ff");
pQG=_.a(function(f){var H=f.frame;var v=f.storyboardWidth;var t=f.storyboardHeight;var M=f.storyboardScale;var h=function(){var y=H().row,m=H().column,W=v(),I=t(),S=M();return{left:-m*W*S,top:-y*I*S}};
return _.O("img",{src:function(){return H().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+h().left+"px; top: "+h().top+"px; width: "+H().width*M()+"px; height: "+H().height*M()+"px;"}})},"gf");
rTG=_.a(function(f){var H=f.props;var v=f.config;var t=f.isBigboard;var M=f.chapterData;f={};f=_.S2("ytPlayerStoryboardMetadata",(f.ytPlayerStoryboardMetadataBigboard=t,f));return _.O("div",{class:f},_.O(_.g,{cond:t,then:function(){return _.O(_.R8,null,_.O(Qlx,{props:H,config:v}),_.O(_.g,{cond:function(){a:{var h=H();var y=v(),m=M(),W;if((y==null?0:y.activeChapter)&&((W=_.U(y==null?void 0:y.activeChapter,rs))==null?0:W.title))h=!0;else{y=_.V(he3(m));for(y=y.next();!y.done;y=y.next()){h=(y=_.U(y.value,
YLM))&&LDR(h,y);break a}h=!1}}return h},
then:function(){return _.O(uUx,{props:H,config:v,isBigboard:!0,chapterData:M})}}))},
else:function(){return _.O(_.R8,null,_.O(uUx,{props:H,config:v,isBigboard:!0,chapterData:M}),_.O(Qlx,{props:H,config:v}))}}))},"hf");
Qlx=_.a(function(f){var H=f.props;var v=f.config;f={};f=_.S2("ytPlayerStoryboardTimestamp",(f.ytPlayerStoryboardTimestampShorts=function(){return v().isShortsPage},f.ytPlayerStoryboardTimestampIsHovering=function(){return H().isHovering||v().isShortsPage&&!0},f));
return _.O("div",{class:f},_.O(_.R8,null,function(){return _.x4R(ee3(H()))}))},"jf");
uUx=_.a(function(f){var H=f.props;var v=f.config;var t=f.isBigboard;var M=f.chapterData;f={};t=_.S2("ytPlayerStoryboardTitle",(f.ytPlayerStoryboardTitleBigboard=t,f));return _.O("div",{class:t},_.O(_.g,{cond:function(){return!v().isShortsPage},
then:function(){return _.O(aRW,{props:H,activeChapter:function(){return v().activeChapter},
chapterData:M})}}))},"kf");
aRW=_.a(function(f){var H=f.props;var v=f.activeChapter;var t=f.chapterData;return _.O(_.R8,null,_.O(_.eK,{each:function(){return he3(t())},
keyBy:"INDEX"},function(M){return _.O(_.R8,null,_.O(_.g,{cond:function(){return _.U(M(),YLM)&&LDR(H(),_.U(M(),YLM))},
then:function(){return _.O(PhG,{timedMarker:function(){return _.U(M(),YLM)}})}}))}),_.O(_.g,{cond:function(){var M;
return v()&&((M=_.U(v(),rs))==null?void 0:M.title)},
then:function(M){return _.O(_.iq,{text:M,noPreWrap:!0})}}))},"lf");
PhG=_.a(function(f){var H=f.timedMarker;return _.O(_.R8,null,_.O("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.O(_.JE,{icon:function(){return H().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.O(_.iq,{text:function(){return H().label},
noPreWrap:!0}))},"mf");_.Gfp=_.a(function(f){var H=f.progressBarProps;var v=f.playheadData;var t=f.config;f=_.TN("yt-progress-bar");var M=_.TN("div"),h=_.TN("div"),y=_.V(_.gp({width:0,left:0},void 0,"NcXsUb")),m=y.next().value,W=y.next().value,I=function(){h.value&&W(h.value.getBoundingClientRect())},S=function(){m().width<=0&&I();
return m()};
vb("resize",I);var d=new na(S,function(){},function(){return 0},function(){},function(){},function(){}),Z=function(){return H()};
y=_.V(_.gp(!1,void 0,"ZsF6Xc"));var l=y.next().value,L=y.next().value;y=_.d6(function(){L(!0);t().position===2?setTimeout(function(){I()},100):I()});
var r=_.d6(function(){L(!1);JTt(d,Z)()}),n=_.d6(function(uH){t().doSeekOnClick&&WSF(d,Z,t)(uH);
return!1}),Q=_.d6(function(uH){IRr(d,Z)(uH);
return!1}),C=_.d6(function(uH){SZx(d,Z)(uH);
return!1}),w=_.d6(function(uH){jl0(d,Z,t)(uH);
return!1}),c=_.d6(function(uH){Zdi(d,Z,t)(uH);
return!1}),A=_.d6(function(){lRF(d,Z,t)();
return!1}),X=_.d6(function(){UdF(d,Z,t)();
return!1}),fg=_.d6(function(){egr(d,Z,t)();
return!1}),gB=_.d6(function(uH){LSr(Z)(uH);
return!1});
vb("mousemove",xdb(d,Z,t));vb("mouseup",Brb(d,Z,t));_.Kc(function(){Ong(M.value);L(!1);I();Brb(d,Z,t)()});
var O5={};O5=_.S2("ytPlayerProgressBarHost",function(){return t().className},(O5.ytPlayerProgressBarHostReadOnly=function(){return t().disableScrubbing},O5.ytPlayerProgressBarHostHidden=function(){return t().hideProgressBar&&!l()},O5.ytPlayerProgressBarHostLowerPlayer=function(){return t().position===0},O5.ytPlayerProgressBarHostBottomEdge=function(){return t().position===1},O5.ytPlayerProgressBarHostBottomInset=function(){return t().position===2},O5.ytPlayerProgressBarHostCustom=function(){return t().position===
3},O5));
var s5={},U5=_.S2("ytPlayerProgressBarBackground",(s5.ytPlayerProgressBarBackgroundHide=function(){return t().position===2&&!l()&&!H().isDragging},s5));
s5={};s5=_.S2("ytPlayerProgressBarDragContainer",(s5.ytPlayerProgressBarDragContainerBottomEdge=function(){return t().position===1},s5));
var lH={};lH=_.S2("ytPlayerProgressBarProgressBar",(lH.ytPlayerProgressBarProgressBarInset=function(){return t().position===2},lH.ytPlayerProgressBarProgressBarInsetMinimized=function(){return t().position===2&&!l()&&!H().isDragging},lH));
var E5=function(){return Math.floor(HnB(H())*100)};
return _.O("yt-progress-bar",{el:f,class:O5},_.O(_.g,{cond:function(){return t().position===2},
then:function(){return _.O("div",{class:U5})}}),_.O("div",{el:M,
"on:click":n,"on:touchstart":Q,"on:touchmove":w,"on:mouseenter":y,"on:mousedown":C,"on:mouseleave":r,"on:mousemove":c,"on:mouseup":X,"on:touchend":A,"on:touchcancel":fg,"on:keydown":gB,class:s5,role:"slider","aria-valuenow":E5,"aria-valuetext":function(){return E5()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return H().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.ZC("SEEK_SLIDER")},_.O("div",{el:h,class:lH},_.O(YZr,{progressBarProps:H,config:t,highContrast:function(){return!!t().isInlinePlayback}}),_.O(_.g,{cond:function(){return t().chapterData&&Ree(t().chapterData)},
then:function(){return _.O(VFW,{progressState:H,multiMarkersPlayerBarRenderer:function(){return t().chapterData},
progressBarWidth:function(){return m().width}})},
else:function(){return _.O(mdx,{progressBarProps:H,config:t})}}),_.O($d5,{progressBarProps:H,
playheadData:v,interpolateDotPosition:function(){return t().position!==2},
hidePlayhead:function(){return t().playheadDotBehavior===1&&!l()}}))),_.O(DdW,{progressBarProps:H,
config:function(){return{activeChapter:jLR(H(),t().chapterData),getProgressBarWidthPx:function(){return S().width},
isShortsPage:!!t().isShortsPage,isInlinePlayer:!!t().isInlinePlayback,useFadeInAnimation:!!t().isInlinePlayback}},
progressBarWidthPx:function(){return m().width},
chapterData:function(){return t().chapterData}}))},"nf");
_.Gfp.idomCompat=!0;Object.assign({},_.V9N(),{setState:function(){},
domMeasurements:{},appApi:_.fGs(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var Chr;
_.EOb=_.a(function(){var f,H=(f=_.Db(zeH().playerApi))!=null?f:void 0;f=_.V(_.gp(!1,void 0,"HLFBmb"));var v=f.next().value,t=f.next().value;f=_.V(_.gp(!1,void 0,"lHH9bc"));var M=f.next().value,h=f.next().value;f=_.V(_.gp(!1,void 0,"zsY7yd"));var y=f.next().value,m=f.next().value;f=_.V(_.gp(!1,void 0,"KeHQgc"));var W=f.next().value,I=f.next().value;f=_.V(_.gp(0,void 0,"gLLCj"));var S=f.next().value,d=f.next().value;f=_.V(_.gp(0,void 0,"s3RYkf"));var Z=f.next().value,l=f.next().value;f=_.V(_.gp(!1,void 0,
"Dn608e"));var L=f.next().value,r=f.next().value;f=_.V(_.gp(0,void 0,"AnkH1b"));var n=f.next().value,Q=f.next().value;f=_.V(_.gp(0,void 0,"QYNL0b"));var C=f.next().value,w=f.next().value;f=_.V(_.gp("",void 0,"Yzw45d"));var c=f.next().value,A=f.next().value;f=_.V(_.gp(-1,void 0,"iiVI0c"));var X=f.next().value,fg=f.next().value,gB=_.sg(function(){var O5={controlsVisible:v(),isOverlayHidden:M(),shouldWaitToHideControls:y(),isDragging:W(),isHovering:L(),videoDuration:n(),playedTime:C(),videoId:c(),draggedTime:Z(),
hoveredTime:S(),playerState:X()};return Object.assign({},_.V9N(),O5,{domMeasurements:{},setState:function(s5){s5.controlsVisible!==void 0&&t(s5.controlsVisible);s5.isOverlayHidden!==void 0&&h(s5.isOverlayHidden);s5.shouldWaitToHideControls!==void 0&&m(s5.shouldWaitToHideControls);s5.isDragging!==void 0&&I(s5.isDragging);s5.isHovering!==void 0&&r(s5.isHovering);s5.draggedTime!==void 0&&l(s5.draggedTime);s5.hoveredTime!==void 0&&d(s5.hoveredTime);s5.videoDuration!==void 0&&Q(s5.videoDuration);s5.playedTime!==
void 0&&w(s5.playedTime);s5.videoId!==void 0&&A(s5.videoId);s5.playerState!==void 0&&fg(s5.playerState)},
appApi:_.fGs(),playerApi:H})},void 0,"ZW7y9");
_.ru(function(){H==null||H.addEventListener("onVideoProgress",$4r(gB));H==null||H.addEventListener("onVideoDataChange",m4R(gB));H==null||H.addEventListener("onStateChange",y0e(gB))});
_.Dt(function(){if(H==null?0:H.isReady())H==null||H.removeEventListener("onVideoProgress",$4r(gB)),H==null||H.removeEventListener("onVideoDataChange",m4R(gB)),H==null||H.removeEventListener("onStateChange",y0e(gB))});
return _.O("desktop-shorts-player-controls",null,_.O(Chr,{playerControlsProps:gB}))},"of");
Chr=_.a(function(f){var H=f.playerControlsProps;return _.O("div",{class:"desktopShortsPlayerControlsWizHost"},_.O(_.Gfp,{progressBarProps:H,config:function(){return{isShortsPage:!0,hideProgressBar:H().videoDuration<30&&H().playerState!==2&&!H().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"pf");_.Nrb=_.a(function(f){function H(O5){O5!==0||d()?O5>50&&(d()||!l())?(Z(!1),L(!0)):O5<=50&&(d()||l())&&(Z(!1),L(!1)):Z(!0)}
function v(O5,s5){var U5;return _.Y(function(lH){if(lH.nextAddress==1)return lH.yield(_.Wx(),2);U5=lH.yieldResult;s5&&U5?(U5.unMute(!0),O5&&(r0v(O5,U5.getVolume()),n(U5.getVolume()))):U5&&(U5.mute(!0),O5&&r0v(O5,0));_.Bj(lH)})}
function t(O5){var s5,U5;return _.Y(function(lH){if(lH.nextAddress==1)return lH.yield(_.Wx(),2);s5=lH.yieldResult;U5=50;s5&&(U5=s5.getVolume(),s5.isMuted()?r0v(O5,0):r0v(O5,U5));n(U5);_.Bj(lH)})}
var M=f.orientation;f=_.TN("desktop-shorts-volume-controls");var h=_.TN("button"),y=_.w8("input"),m=_.V(_.gp(!1,void 0,"F6vt0d")),W=m.next().value,I=m.next().value,S=_.V(_.gp(!1,void 0,"S5PCqb"));m=S.next().value;S=S.next().value;var d=m,Z=S;S=_.V(_.gp(!0,void 0,"Tgy4e"));m=S.next().value;S=S.next().value;var l=m,L=S;m=_.V(_.gp(50,void 0,"Dq3efd"));var r=m.next().value,n=m.next().value;m=_.sg(function(){var O5=d();return _.J("web_shorts_keyboard_enable_mute_shortcut")?O5?_.ZC("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.ZC("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):O5?_.ZC("UNMUTE_VOLUME",void 0,"Unmute"):_.ZC("MUTE_VOLUME",void 0,"Mute")},void 0,"zjOD8c");
S=_.sg(function(){var O5=d(),s5=l();return{sources:[{clientResource:{imageName:O5?_.J("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":s5?_.J("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.J("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"bIZ5A");
var Q=_.sg(function(){var O5=r();return d()?O5+"% volume muted":O5+"% volume"},void 0,"kvkmyc"),C=_.sg(function(){return M()==="vertical_down"},void 0,"zaNsZ");
_.Kc(function(){function O5(){I(!0)}
function s5(){I(!1)}
y&&y.value&&(y.value.addEventListener("focus",O5),y.value.addEventListener("focusout",s5),t(y.value).then(function(){H(Number(KD_(y.value)))}));
h&&h.value&&(h.value.addEventListener("focus",O5),h.value.addEventListener("focusout",s5));_.Dt(function(){var U5;y==null||(U5=y.value)==null||U5.removeEventListener("focus",O5);var lH;y==null||(lH=y.value)==null||lH.removeEventListener("focusout",s5);var E5;h==null||(E5=h.value)==null||E5.removeEventListener("focus",O5);var uH;h==null||(uH=h.value)==null||uH.removeEventListener("focusout",s5)})});
var w=_.d6(function(){if(y&&y.value){var O5=Number(KD_(y.value));FDb(O5);n(O5);y.value.style.setProperty("--gradient-percent",O5+"%");H(O5)}return!1}),c=_.d6(function(){I(!0)}),A=_.d6(function(){y&&y.value&&(v(y.value,d()),Z(!d()));
return!1}),X={},fg={},gB={};
return _.O("desktop-shorts-volume-controls",{"on:pointerleave":_.d6(function(){I(!1)}),
class:_.S2("ytdDesktopShortsVolumeControlsHost",(X.ytdDesktopShortsVolumeControlsHostVertical=C,X.ytdDesktopShortsVolumeControlsHostExpanded=W,X)),el:f},_.O(_.g,{cond:function(){return!C()},
then:function(){var O5={};return _.O("div",{class:_.S2("ytdDesktopShortsVolumeControlsBackgroundScrim",(O5.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=W,O5))})}}),_.O("div",{class:_.S2((fg.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=C,fg))},_.O("button",{"aria-label":m,
title:m,el:h,"on:click":A,"on:pointerenter":c,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},S?_.O(_.Hn,{data:S,alt:m,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.O("div",{class:_.S2("ytdDesktopShortsVolumeControlsSliderContainer",(gB.ytdDesktopShortsVolumeControlsSliderContainerExpanded=W,gB.ytdDesktopShortsVolumeControlsSliderContainerVertical=C,gB.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=C,gB.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return W()&&C()},gB))},_.O("input",{"aria-label":_.ZC("VOLUME"),
title:_.ZC("VOLUME"),el:y,"on:input":w,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":r,"aria-valuetext":Q,"aria-valuemin":0,"aria-valuemax":100})))},"qf");_.cT5=_.a(function(f){var H=f.data;return _.O("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.O(_.VU,{command:function(){return H().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.O(_.g,{cond:function(){return H().iconName},
then:function(v){return _.O(_.JE,{icon:v})}}),_.O("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return H().text}),_.O(_.g,{cond:function(){return H().showEndChevron},
then:function(){return _.O(_.JE,{icon:"CHEVRON_RIGHT"})}})))},"rf");var XQt=_.a(function(f){var H=f.data;var v=f.overlayDensity;f={};return _.O("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.O(_.Jj,{data:function(){return H().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(t){var M=t.data;
return _.O(_.Dj,{data:function(){return(v==null?void 0:v())===1?Object.assign({},M(),{avatar:{avatarViewModel:Object.assign({},_.U(M().avatar,_.pT),{avatarImageSize:"AVATAR_SIZE_48"})}}):M()}})}}),_.O(_.Jj,{data:function(){return H().avatarStackViewModel}},{avatarStackViewModel:function(t){return _.O(_.oY,{data:t.data})}}),_.O(_.iq,{className:_.S2("ytReelChannelBarViewModelChannelName",(f.ytReelChannelBarViewModelChannelNameLarge=function(){return(v==null?void 0:v())===1},f)),
text:function(){return H().channelName},
linkInheritColor:!0,userInput:!0}),_.O("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.O(_.Jj,{data:function(){return H().subscribeButtonViewModel}},{subscribeButtonViewModel:function(t){var M=t.data;
return _.O(_.KX,{data:function(){return(v==null?void 0:v())===1?Object.assign({},M(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},M().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):M()},
isOverlay:!1})},
buttonViewModel:_.Wp})),_.O("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.O(_.Jj,{data:function(){var t,M;return(M=_.U((t=H())==null?void 0:t.sponsorButtonViewModel,lkg))==null?void 0:M.sponsorButton}},{buttonViewModel:function(t){return _.O(_.Wp,{data:t.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"sf");var ATA=_.a(function(f){var H=function(){var t;return(f==null?void 0:(t=f.overlayDensity)==null?void 0:t.call(f))===1?22:16},v={};
return _.O("yt-reel-multi-format-link-view-model",{class:_.S2("ytReelMultiFormatLinkViewModelHost",(v.ytReelMultiFormatLinkViewModelHostTall=!0,v.ytReelMultiFormatLinkViewModelHostLarge=function(){var t;return((t=f.overlayDensity)==null?void 0:t.call(f))===1},v))},_.O(_.VU,{ariaLabel:function(){return f.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return f.data().command}},_.O("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.O(_.g,{cond:function(){return f.data().icon},
then:function(t){return _.O(_.Hn,{data:t,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:H})}}),_.O(_.iq,{text:function(){return f.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"tf");
ATA.idomCompat=!0;var bdG=_.a(function(f){var H=f.data;var v=f.overlayDensity;var t=_.TN("yt-shorts-suggested-action-view-model");f=_.V(_.gp(!1,void 0,"xDqzhe"));var M=f.next().value,h=f.next().value;f=_.V(_.gp(!1,void 0,"LI9CFd"));var y=f.next().value,m=f.next().value,W=function(){return H().isMultiLineSa},I=_.s7(GvE,function(){var c,A;
return(A=(c=H().toggleableContent)==null?void 0:c.entityKey)!=null?A:""}),S=function(){var c,A,X;
return(X=H().toggleableContent)!=null&&X.entityKey?(A=(c=I())==null?void 0:c.value)!=null?A:!1:!1},d=function(){var c,A,X,fg,gB,O5,s5,U5,lH,E5,uH;
return H().toggleableContent?S()?(c=H().toggleableContent)==null?void 0:c.toggledData:(A=H().toggleableContent)==null?void 0:A.untoggledData:{primaryText:(U5=(X=H().defaultContent)==null?void 0:X.primaryText)!=null?U5:H().text,secondaryText:(fg=H().defaultContent)==null?void 0:fg.secondaryText,onTapCommand:(lH=(gB=H().defaultContent)==null?void 0:gB.onTapCommand)!=null?lH:H().onTapCommand,icon:(E5=(O5=H().defaultContent)==null?void 0:O5.icon)!=null?E5:H().icon,image:(uH=(s5=H().defaultContent)==null?
void 0:s5.image)!=null?uH:H().image}},Z=function(){return W()?H().trailingTapTarget:void 0},l=function(c,A){return function(){return M()?A:c}},L=function(){return{leadingSection:l("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(v==null?void 0:v())===1?l("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):l("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:l("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:l("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
f={};f=_.S2((f.ytShortsSuggestedActionViewModelStaticHost=function(){return!W()},f.ytShortsSuggestedActionViewModelDynamicHost=W,f.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return W()&&y()},f.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return W()&&!y()},f));
_.Kc(function(){if(W()){var c=0,A;if((A=H().animationParams)==null?0:A.shouldExpand){var X,fg;c=((fg=(X=H().animationParams)==null?void 0:X.expansionDelaySecs)!=null?fg:0)*1E3}var gB,O5=((gB=H().animationParams)==null?0:gB.shouldExpand)?setTimeout(function(){h(!0)},c):void 0,s5,U5;
c=((s5=H().animationParams)==null?0:s5.visibilityDelaySecs)?((U5=H().animationParams)==null?NaN:U5.visibilityDelaySecs)*1E3:0;var lH=setTimeout(function(){m(!0)},c);
_.Dt(function(){O5&&clearTimeout(O5);clearTimeout(lH)})}});
var r=function(c){_.XA(c,Object.assign({},{form:{element:t.value}}))},n=_.d6(function(){var c,A=(c=d())==null?void 0:c.onTapCommand;
A&&r(A)}),Q=_.d6(function(){var c,A;
if(c=(A=Z())==null?void 0:A.onTapCommand)return r(c),!1}),C=_.ZE({"vertical-align":"bottom",
"border-radius":function(){var c;return W()?((c=H().defaultContent)==null?0:c.isCircleImage)?"50%":"4px":"0px"},
width:function(){var c,A,X;return W()&&((c=H().defaultContent)==null?0:c.imageSize)?((X=(A=H().defaultContent)==null?void 0:A.imageSize)!=null?X:24)+"px":null},
height:function(){var c,A,X;return W()&&((c=H().defaultContent)==null?0:c.imageSize)?((X=(A=H().defaultContent)==null?void 0:A.imageSize)!=null?X:24)+"px":null}}),w={};
return _.O("yt-shorts-suggested-action-view-model",{class:f,el:t},_.O("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.O("button",{class:_.S2(function(){return W()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var c;
return(c=H().useFullRoundedBorder)!=null&&c?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!Z()&&W()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":W()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var c;
return(c=H().disableFixedHeight)!=null&&c?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(w.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(v==null?void 0:v())===1},w)),
"on:click":n},_.O(_.yU,{model:{color:4}}),_.O("div",{class:_.S2(function(){return W()?L().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.O(_.g,{cond:function(){var c;
return(c=d())==null?void 0:c.image},
then:function(c){return _.O(_.Hn,{data:c,alt:"",className:function(){return W()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:C})}}),_.O(_.g,{cond:function(){var c,A;
return(c=d())==null?void 0:(A=c.icon)==null?void 0:A.iconType},
then:function(c){return _.O(_.JE,{icon:c,active:S,className:function(){return W()?M()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.O("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.O(_.g,{cond:function(){var c;
return(c=d())==null?void 0:c.primaryText},
then:function(c){return _.O("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.O(_.iq,{text:c}))}}),_.O(_.g,{cond:function(){var c;
return(c=d())==null?void 0:c.secondaryText},
then:function(c){return _.O("div",{class:function(){return L().secondaryText()}},_.O(_.iq,{text:c}))}}))),_.O(_.g,{cond:Z,
then:function(c){return _.O("div",{class:function(){return L().trailingSection()},
"aria-label":function(){var A;return(A=c().a11yLabel)!=null?A:""},
"on:click":Q,role:"button",tabindex:0},_.O(_.yU,{model:{color:4}}),_.O(_.JE,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"uf");var id0=_.a(function(f){var H=f.data;var v=f.overlayDensity;var t=_.TN("yt-shorts-video-title-view-model");f=_.d6(function(y){if(_.r3(_.Fs(y),t.value,["A".toString()]))return!1;(y=H().truncatedTextOnTapCommand)&&_.XA(y);return!1});
var M={},h={};return _.O("yt-shorts-video-title-view-model",{el:t,class:_.S2("ytShortsVideoTitleViewModelHost",(M.ytShortsVideoTitleViewModelHostClickable=function(){return!!H().truncatedTextOnTapCommand},M)),
"on:click":f},_.O("h2",{class:_.S2("ytShortsVideoTitleViewModelShortsVideoTitle",(h.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(v==null?void 0:v())===1},h))},_.O(_.iq,{text:function(){return H().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"vf");_.kfx=_.a(function(f){var H=f.data;var v=f.overlayDensity;return _.O("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.O(_.Jj,{data:function(){return H().metadataItems}},{badgeViewModel:function(t){return _.O("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.O(_.to,{data:t.data}))},
playerDisclosureViewModel:function(t){return _.O("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.O(_.cT5,{data:t.data}))},
shortsSuggestedActionViewModel:function(t){return _.O("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.O(bdG,{data:t.data,overlayDensity:v}))},
reelChannelBarViewModel:function(t){return _.O("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.O(XQt,{data:t.data,overlayDensity:v}))},
reelMultiFormatLinkViewModel:function(t){return _.O("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.O(ATA,{data:t.data,overlayDensity:v}))},
shortsVideoTitleViewModel:function(t){return _.O("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.O(id0,{data:t.data,overlayDensity:v}))},
reelSoundMetadataViewModel:function(t){return _.O("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.O(_.AWb,{data:t.data,overlayDensity:v}))},
toggleButtonViewModel:function(t){return _.O("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.O(_.Fo,{data:t.data}))}}))},"wf");var Trx=_.a(function(f){var H=_.tV(f,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),v=H.size,t=H.onTap,M=H.disabled,h=H.tooltipText;return _.O("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.O(_.$p,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:v(),disabled:M(),tooltipText:h(),onTap:t}},
iconName:f.iconType}))},"xf"),wQi=_.a(function(f){function H(S){S.stopPropagation();
S.code==="ArrowUp"?(S.preventDefault(),nj_(m.value)):S.code==="ArrowDown"?(S.preventDefault(),peE(m.value)):S.code==="KeyM"?D4N():(S.code==="KeyK"||S.code==="Space")&&oj5(W())}
var v=_.tV(f,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});f=v.previousButtonDisabled;var t=v.nextButtonDisabled,M=v.data,h=v.playabilityStatus,y=v.previewThumbnail,m=_.TN("ytd-shorts-miniplayer-overlay"),W=_.uE(_.wLE),I;_.ru(function(){(I=_.Gf(m.value))&&I.addEventListener("keydown",H)});
_.Dt(function(){var S;(S=I)==null||S.removeEventListener("keydown",H)});
v=function(){var S,d,Z;return(S=M())==null?void 0:(d=S.reelPlayerOverlayRenderer)==null?void 0:(Z=d.likeButton)==null?void 0:Z.likeButtonRenderer};
return _.O("ytd-shorts-miniplayer-overlay",{el:m,class:"ytdShortsMiniplayerOverlayHost"},_.O("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.ZE({"background-image":function(){var S=y();return S?'url("'+_.m3(S.thumbnails)+'")':""}})}),_.O("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.O("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.O(Trx,{iconType:function(){var S=W();
return S===2||S===-1||S===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){oj5(W())},
tooltipText:function(){var S=W();return S===1||S===3?_.ZC("PLAYER_LABEL_PAUSE"):_.ZC("PLAYER_LABEL_PLAY")}}),_.O(_.Nrb,{orientation:"horizontal_right"})),_.O("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.O(Trx,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:f,onTap:function(){nj_(m.value)},
tooltipText:_.ZC("PREVIOUS_VIDEO_LABEL")}),_.O(Trx,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:t,onTap:function(){peE(m.value)},
tooltipText:_.ZC("NEXT_VIDEO_LABEL")}),_.J("web_shorts_pip_like_button")?_.O("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.O(Xf_,{buttonTooltipPosition:"left",data:v,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.O("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.O(_.g,{cond:function(){var S,d;return _.U((S=M())==null?void 0:(d=S.reelPlayerOverlayRenderer)==null?void 0:d.metapanel,
_.jfb)},
then:function(S){return _.O("div",{class:_.S2("ytdShortsMiniplayerOverlayInteractive")},_.O(_.kfx,{data:S}))}})),_.O("div",{class:_.S2("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var S;return!((S=M())==null||!S.adsOverlay)||h()&&!BDR(h())}},_.O("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.O(_.EOb,null)))),_.O(_.g,{cond:function(){var S=M(),d,Z;
S=_.U(S==null?void 0:(d=S.adsOverlay)==null?void 0:(Z=d.fulfillmentContent)==null?void 0:Z.fulfilledLayout,o09);return _.U(S==null?void 0:S.renderingContent,PsZ)},
then:function(S){return _.O("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.O(DDo,{data:S}))}}))},"yf");var QLN=_.a(function(){var f=_.V(_.gp(new _.eF(NaN,NaN),void 0,"HSMFk")),H=f.next().value,v=f.next().value;f=_.V(_.gp(!1,void 0,"uaAxwf"));var t=f.next().value,M=f.next().value,h=_.V(_.gp(!1,void 0,"nVSwef"));f=h.next().value;var y=h.next().value,m=_.t8().resolve(_.o0).miniplayerPropSignalMap[0],W=m.data,I=m.shortsData,S=m.nextButtonDisabled,d=m.shortsPreviewThumbnail,Z=m.previousButtonDisabled,l=m.externalPlaylistData;h=m.toastData;var L=m.playabilityStatus,r=m.isDisabled,n=m.playerVe,Q=m.closeVe;
m=_.uE(_.hY);_.kF("yt-pip-window-resized",function(A){v(A)});
_.kF("yt-activate-pip-miniplayer",function(){return _.Y(function(A){y(!0);_.Bj(A)})});
var C=function(){var A;return!((A=l())==null||!A.contents)&&t()},w=function(){var A=H(),X=!!W(),fg=C();
A=A.clone();X&&(A.height-=76);fg&&(A.height-=285);return A},c=function(){M(!t())};
_.K4(function(){var A=n(),X=_.uy(11),fg=_.Qe(11);X&&fg&&A&&(_.Xl(X,fg,A),fg=Q())&&(_.AX(X,A,[fg]),_.i0(X,[fg]))},"HPkp0c");
return _.O("ytd-pip-container",{class:"ytdPipContainerHost"},_.O(_.g,{cond:f,then:function(){return _.O(_.MFt,{isDisabled:r,playabilityStatus:L,size:w})}}),_.O(_.g,{cond:W,
then:function(){return _.O(_.vO5,{data:W,expanded:t,onExpandClick:c,playlistData:l})}}),_.O(_.g,{cond:C,
then:function(){return _.O("div",{class:"ytdPipContainerPlaylistPanel"},_.O(_.NWa,{data:l,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.O(_.g,{cond:m,
then:function(){return _.O(wQi,{data:I,nextButtonDisabled:S,previousButtonDisabled:Z,playabilityStatus:L,previewThumbnail:d})}}),_.O("div",{class:"ytdPipContainerToast"},_.O(_.hgW,{toastData:h})))},"zf");var Qi=function(f,H){var v=this;this.pipController=f;this.JSC$18682_clientRoot=H;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=kxe();this.watchPipEnabled=_.J("web_watch_pip");this.shortsPipEnabled=_.J("web_shorts_pip");this.JSC$18682_watchWhileEnabled=_.J("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;_.sI(_.vS(),AGe,function(t){v.isSingleOptionSurveyActive=t});
this.JSC$18682_onPlayerPlayVideo=this.JSC$18682_onPlayerPlayVideo.bind(this);this.onPlayerCloseMiniplayer=this.onPlayerCloseMiniplayer.bind(this);this.onPlayerExpandMiniplayer=this.onPlayerExpandMiniplayer.bind(this);this.onPlayerStateChange=this.onPlayerStateChange.bind(this);this.handleMediaSessionPipActivation=this.handleMediaSessionPipActivation.bind(this);_.b$(_.A7.getInstance(),this.miniplayerServiceActionMap,this.JSC$18682_clientRoot);f.pictureInPictureSupported()&&_.Kb("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},hxb,yxb,MzW,Y1p,mj0,Igh;
Qi.prototype.handleMediaSessionPipActivation=function(){var f=this,H;return _.Y(function(v){_.S0().mediaSessionPipActivation=!0;H=_.t8().resolve(_.fT);return H.isOnWatch()&&f.watchPipEnabled?(_.S0().watchPipActivation=!0,_.qZ0(f,H.data),v.jumpTo(0)):H.isOnShorts()&&f.shortsPipEnabled?(_.S0().shortsPipActivation=!0,_.fPw(f),v.jumpTo(0)):f.isMiniplayerActive()&&f.watchPipEnabled&&!f.watchWhileMode?v.yield(H9F(f),0):v.jumpTo(0)})};
var H9F=function(f){var H,v,t,M;return _.Y(function(h){if(h.nextAddress==1)return H=!f.miniplayerToPipMode,v=f.playerElement,t=f.miniplayerData,M=f.watchResponse,h.yield(f.deactivate(),2);if(h.nextAddress!=3)return H?(_.S0().mediaSessionPipActivation=!0,_.S0().watchPipActivation=!0):_.S0().miniplayerButtonActivation=!0,h.yield(f.activate(v,t,M),3);f.miniplayerToPipMode=H;_.Bj(h)})};
Qi.prototype.onDownloadedVideoDeleted=function(f){var H,v=_.U((H=this.miniplayerData)==null?void 0:H.watchEndpoint,_.wI),t,M;v&&((t=this.watchResponse)==null?void 0:(M=t.playerResponse)==null?void 0:M.offlineState)!==void 0&&(H=v.videoId)&&f&&H===f&&this.close()};
Qi.prototype.onShowMiniplayerCommand=function(f){var H=this,v,t,M,h,y,m,W,I,S,d,Z;return _.Y(function(l){switch(l.nextAddress){case 1:return v=_.U(f,yqh),M=(t=v)==null?void 0:t.miniplayerCommand,h=_.U(M,_.wI),M&&h&&!H.active?l.yield(_.xP.getInstance(),2):l.return();case 2:return y=l.yieldResult,l.yield((m=y)==null?void 0:m.get("yt-miniplayer-shown-video-id"),3);case 3:W=l.yieldResult;I=h.videoId;if(!I||W===I)return l.return();S=_.t8().resolve(_.fT);if(S.isOnWatch())return _.pb(Error("Ij")),l.return();
d={channelItem:{externalId:btoa(I)}};H.readyToResumeVe=_.$$(121253,void 0,void 0,d);_.S0().showMiniplayerCommandActivation=!0;return l.yield(_.SfM(H,M,!0),4);case 4:return H.active&&(_.uu(H,{readyToResumeVe:H.readyToResumeVe,isReadyToResume:!0}),H.isReadyToResume=!0),l.yield((Z=y)==null?void 0:Z.set("yt-miniplayer-shown-video-id",h.videoId),5);case 5:H.readyToResumeVe=void 0,_.Bj(l)}})};
Qi.prototype.init=function(f){this.miniplayerEl?_.pb(new _.e$("MiniplayerService already initialized.")):this.miniplayerEl=f};
Qi.prototype.isInitialized=function(){var f=!!this.miniplayerEl;f||_.pb(new _.e$("MiniplayerService used before initialized."));return f};
_.qZ0=function(f,H){if(f.isInitialized()){var v=_.zB(H.response,!1,H.playerResponse),t=_.t8().resolve(_.fT).getPlayerFromWatch();_.S0().currentEndpoint=v.watchEndpoint||null;f.activate(t,v,H)}};
_.fPw=function(f){if(f.isInitialized()){var H=_.t8().resolve(_.fT).getPlayerFromShorts();f.activate(H)}};
hxb=function(f,H){var v;(v=!f.isInitialized())||(v=_.t8().resolve(_.fT).isOnWatch()&&f.watchPipMode,v=!(f.isMiniplayerActive()&&(_.S0().userActivation||_.S0().lockupActivation||v)));if(v)return!1;vli(f,H)?_.oA(f):Igh(f,H);return f.watchPipMode?!_.t8().resolve(_.fT).isOnWatch():!0};
Qi.prototype.isMiniplayerActive=function(){return this.active};
var vli=function(f,H){var v;H=(v=_.U(H,_.wI))==null?void 0:v.videoId;var t,M;f=(M=_.U((t=f.miniplayerData)==null?void 0:t.watchEndpoint,_.wI))==null?void 0:M.videoId;return H!=null&&H===f};
Qi.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.YE(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.mb(this.miniplayerEl,"yt-navigate-home-action"))};
_.SfM=function(f,H,v,t){v=v===void 0?!1:v;var M,h,y;return _.Y(function(m){switch(m.nextAddress){case 1:if(f.active){m.jumpTo(2);break}M=_.t8().resolve(_.fT);if(y=(h=f.playerElement)!=null?h:M.getPlayerFromWatch()){m.jumpTo(3);break}return m.yield(_.t8().resolve(_.V4),4);case 4:y=M.getPlayerFromWatch();case 3:if(!y){_.pb(Error("Kj"));m.jumpTo(2);break}return m.yield(f.activate(y,t),2);case 2:return f.active?m.yield(Igh(f,H,v),0):m.return()}})};
Qi.prototype.activate=function(f,H,v){var t=this,M,h,y,m,W,I,S,d,Z;return _.Y(function(l){switch(l.nextAddress){case 1:if(!t.isInitialized())return l.return();if(!f)return _.pb(Error("Kj")),l.return();if(_.Z5n()||t.isMiniplayerActive())var L=!0;else L=_.S0().watchPipActivation||_.S0().watchWhileActivation,_.t8().resolve(_.fT).isOnWatch()&&!L?(_.pb(new _.e$("miniplayer activated on watch page")),L=!0):L=_.S0().watchWhileActivation?t.userDeactivatedWatchWhile||!!document.pictureInPictureElement||yyH():
!1;if(L)return sYv(),l.return();M=_.S0().mediaSessionPipActivation;h=_.S0().shortsPipActivation;y=_.S0().watchPipActivation;W=(m=_.S0().watchWhileActivation)||y;I=y||h;if(!t.pictureInPictureEnabled()||!I){l.jumpTo(2);break}return l.yield(tz0(t,M),3);case 3:if(!l.yieldResult)return _.pb(Error("Jj")),sYv(),l.return();case 2:return t.setActive(!0),t.watchResponse=v,t.playerElement=f,t.updateMiniplayerData(H),l.yield(MzW(t,f),4);case 4:if(!t.active)return _.pb(new _.e$("miniplayer deactivated during activation")),
t.removePlayerListeners(),l.return();L=_.t8().resolve(_.u3);L.addEventListener("yt-navigate",_.jr(t,t.onPlaylistNavigate));L.addEventListener("yt-playlist-data-updated",_.jr(t,t.JSC$18682_onPlaylistDataUpdated));t.JSC$18682_onPlaylistDataUpdated();sYv();t.JSC$18682_watchWhileEnabled&&_.hdr(t,m);t.pictureInPictureEnabled()&&t.shortsPipEnabled&&(t.shortsPipMode=h,_.vS().dispatch(h2_(t.shortsPipMode)));t.pictureInPictureEnabled()&&t.watchPipEnabled&&(t.watchPipMode=y,_.mo3(t.handleMediaSessionPipActivation));
t.player&&(S=t.player.getPlayerState(),d=S===1,_.vS().dispatch(O_h(S)),_.$E(t.miniplayerEl,"yt-miniplayer-play-state-changed",[d]),_.S0().isVideoPlaying=d);_.$E(t.miniplayerEl,"yt-miniplayer-endpoint-changed");Rdh(t);_.VzW(t);if(t.shortsPipMode||t.watchPipMode)l=l.yield(_.mb(t.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{L=l.yield;var r=_.mb(t.miniplayerEl,"yt-activate-miniplayer",[W])[0];l=L.call(l,r,6)}return l;case 6:if(t.watchResponse&&!_.J("miniplayer_copy_screen_on_activation_killswitch")){L=
t.getScreenLayer();r=_.uy(0);var n=Kce(0);r&&n&&(_.P7(r,n,L),L===0&&Fcb(void 0,0))}yxb(t);Y1p(t,!0);(Z=t.getPlayerElement())==null||Z.focusOnPlayer();_.Bj(l)}})};
Qi.prototype.updateMiniplayerData=function(f){this.miniplayerData=f;_.uu(this,{data:f})};
_.VzW=function(f){var H,v,t=((H=f.miniplayerData)==null?void 0:(v=H.miniplayerRenderer)==null?void 0:v.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";H=f.watchWhileMode||f.watchPipMode?t&&!_.t8().resolve(_.fT).isOnWatch():t;_.uu(f,{isDisabled:H});var M,h;v=_.U((M=f.miniplayerData)==null?void 0:(h=M.miniplayerRenderer)==null?void 0:h.minimizedEndpoint,_.Up);H&&v&&_.t8().resolve(_.zQ).openSheet({openPopupActionCommand:{openPopupAction:v}},f.miniplayerEl)};
yxb=function(f){if(f.watchResponse&&!mj0(f)){var H,v=(H=f.watchResponse.playerResponse)==null?void 0:H.trackingParams;v&&(_.uu(f,{expandVe:_.$$(35989),closeVe:_.$$(34699),readyToResumeCloseVe:_.$$(131070),repositionVe:_.$$(226204),resizeVe:_.$$(226205)}),_.uu(f,{playerVe:_.zK(v)}))}};
MzW=function(f,H){return _.Y(function(v){if(v.nextAddress==1)return H.preparePlayer(),v.yield(H.getPlayerPromise(),2);f.player=v.yieldResult;f.player&&(f.player.addEventListener("onPlayVideo",f.JSC$18682_onPlayerPlayVideo),f.player.addEventListener("onCloseMiniplayer",f.onPlayerCloseMiniplayer),f.player.addEventListener("onExpandMiniplayer",f.onPlayerExpandMiniplayer),f.player.addEventListener("onStateChange",f.onPlayerStateChange));_.Bj(v)})};
_.R=Qi.prototype;_.R.JSC$18682_onPlayerPlayVideo=function(f){var H=f.sessionData&&"autonav"in f.sessionData,v;f.sessionData&&f.sessionData.itct&&(v=f.sessionData.itct);var t=f.watchEndpoint;H=t&&H?_.HaH(t,v):_.MO(f.videoId,f.listId||void 0,v);f.sessionData&&_.vV(_.U(H.commandMetadata,_.jG).url,f.sessionData);Igh(this,H)};
_.R.onPlayerExpandMiniplayer=function(){_.oA(this)};
_.R.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.R.onPlayerStateChange=function(){if(this.player){var f=this.player.getPlayerState(),H=f===1;_.vS().dispatch(O_h(f));_.vS().dispatch(_.S_o(f));_.$E(this.miniplayerEl,"yt-miniplayer-play-state-changed",[H]);_.S0().isVideoPlaying=H;if(f===0){H=!_.wC.getInstance().isAutoplaySetExplicitly();var v,t,M,h,y,m,W=(v=this.watchResponse.response)==null?void 0:(t=v.contents)==null?void 0:(M=t.twoColumnWatchNextResults)==null?void 0:(h=M.autoplay)==null?void 0:(y=h.autoplay)==null?void 0:(m=y.autoplayExplicitChoiceDialogRenderer)==
null?void 0:m.confirmDialogRenderer;H&&W&&this.player.setAutonavState(1)}f===0&&this.watchWhileMode&&this.deactivate()}};
_.R.onPlaylistNavigate=function(f,H){var v=this,t,M,h,y,m,W,I;return _.Y(function(S){if(S.nextAddress==1){if(!_.U(H.endpoint,_.wI))return S.return();_.S0().currentEndpoint=H.endpoint;_.$E(v.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.t8().resolve(_.fT).isOnWatch()&&(v.watchWhileMode||v.watchPipMode))return S.return();f.stopPropagation();(h=(M=_.U((t=H.endpoint)==null?void 0:t.commandMetadata,_.jG))==null?void 0:M.url)&&H.tempData&&!_.QA.isEmpty(H.tempData)&&_.vV(h,H.tempData);y={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};m=new j$C(function(){return v.getPlayerElement()},y,{layer:v.getScreenLayer()});
W=function(d){m.processChunk({endpoint:H.endpoint,data:d})};
$jA(v);v.miniplayerFetchRequest=Wvi(v,H.endpoint,W);_.Zc(S,2);return S.yield(v.miniplayerFetchRequest,4)}if(S.nextAddress!=2)return I=S.yieldResult,O9G(v,I),_.ch(S,0);_.xu(S);_.Bj(S)})};
_.R.JSC$18682_onPlaylistDataUpdated=function(){var f=_.t8().resolve(_.u3).getPlaylistData();this.hasPlaylistData=!!f;_.uu(this,{externalPlaylistData:f||{}})};
_.R.close=function(f){if(this.isInitialized())if(f){if(!((this.watchWhileMode||this.watchPipMode)&&_.t8().resolve(_.fT).isOnWatch()||this.shortsPipMode)){var H;(H=this.getPlayerElement())==null||H.stop()}this.deactivate()}else _.EI().closeMiniplayer(this.miniplayerEl)};
_.R.deactivate=function(f){var H=this,v,t,M,h;return _.Y(function(y){if(y.nextAddress==1){if(!H.isInitialized()||!H.active)return y.return();H.setActive(!1);$jA(H);(v=!!f&&vli(H,f))&&H.isSingleOptionSurveyActive&&_.mb(H.miniplayerEl,"yt-show-watch-page-survey",[H.isSingleOptionSurveyActive]);return y.yield(glb(H),2)}if(y.nextAddress!=3){Y1p(H,!1);H.isReadyToResume=!1;H.watchResponse=void 0;H.updateMiniplayerData(void 0);H.shortsPipMode&&(H.shortsPipMode=!1,_.vS().dispatch(h2_(H.shortsPipMode)),Sxx(H.pipController),
(t=H.player)==null||t.setInternalSize(NaN,NaN));H.watchPipMode&&(H.watchPipMode=!1,Sxx(H.pipController));(M=H.watchWhileMode)&&_.hdr(H,!1);H.removePlayerListeners();var m=_.t8().resolve(_.u3);m.removeEventListener("yt-navigate",_.jr(H,H.onPlaylistNavigate));m.removeEventListener("yt-playlist-data-updated",_.jr(H,H.JSC$18682_onPlaylistDataUpdated));_.S0().currentEndpoint=null;_.$E(H.miniplayerEl,"yt-miniplayer-endpoint-changed");H.playerElement=null;sYv();if(H.shortsPipMode||H.watchPipMode)y=y.jumpTo(3);
else{m=y.yield;var W=_.mb(H.miniplayerEl,"yt-deactivate-miniplayer",[v,M])[0];y=m.call(y,W,3)}return y}(h=H.player)==null||h.setInternalSize(NaN,NaN);H.player=null;_.Bj(y)})};
var glb=function(f){var H;return _.Y(function(v){H=_.t8().resolve(_.fT);return f.shortsPipMode?v.yield(H.movePlayerToShorts(f.playerElement),0):v.yield(H.movePlayerToWatch(f.playerElement),0)})};
Qi.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$18682_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
Qi.prototype.setActive=function(f){this.active=f;this.isSingleOptionSurveyActive?_.mb(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.mb(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.vS().dispatch(_.yq({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.hdr=function(f,H){f.watchWhileMode=H;_.uu(f,{watchWhile:H})};
Y1p=function(f,H){if(!mj0(f))if(f.shortsPipMode||f.watchPipMode){var v;(v=f.player)==null||v.setDocumentPictureInPicture(H)}else{var t;(t=f.player)==null||t.setMinimized(H)}};
mj0=function(f){return f.watchWhileMode&&_.J("kevlar_watch_while_counterfactual")};
_.oA=function(f){var H;return _.Y(function(v){switch(v.nextAddress){case 1:if(!f.isInitialized())return v.return();_.Zc(v,2);return v.yield(f.miniplayerFetchRequest,4);case 4:_.ch(v,3);break;case 2:_.xu(v);case 3:f.watchResponse&&f.miniplayerData&&f.miniplayerData.watchEndpoint?(H={url:f.watchResponse.url,endpoint:f.miniplayerData.watchEndpoint,data:f.watchResponse,miniplayer:!0},_.YE(f.miniplayerEl,"yt-navigate-cache",H)):f.miniplayerData&&f.miniplayerData.watchEndpoint&&_.YE(f.miniplayerEl,"yt-navigate",
{endpoint:f.miniplayerData.watchEndpoint}),_.Bj(v)}})};
Igh=function(f,H,v){var t,M,h,y;return _.Y(function(m){if(m.nextAddress==1){if(vli(f,H))return m.return();_.S0().currentEndpoint=H;_.$E(f.miniplayerEl,"yt-miniplayer-endpoint-changed");_.$E(f.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.S0().isVideoPlaying=!1;t={clientParams:{miniplayer:!0,autoSaveToQueue:!v}};M=new j$C(function(){return f.getPlayerElement()},t,{layer:f.getScreenLayer(),
parentLayer:0},void 0,f.readyToResumeVe);h=function(W){var I,S,d=Object.assign({},(I=W.playerResponse)==null?void 0:(S=I.playerConfig)==null?void 0:S.playbackStartConfig,{startPaused:!0}),Z;v&&((Z=W.playerResponse)==null?0:Z.playerConfig)&&(W.playerResponse.playerConfig.playbackStartConfig=d);M.processChunk({endpoint:H,data:W})};
$jA(f);f.miniplayerFetchRequest=Wvi(f,H,h);_.Zc(m,2);return m.yield(f.miniplayerFetchRequest,4)}if(m.nextAddress!=2)return y=m.yieldResult,O9G(f,y),_.ch(m,0);_.xu(m);_.Bj(m)})};
Qi.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var $jA=function(f){f.miniplayerFetchRequest&&(f.miniplayerFetchRequest.cancel&&f.miniplayerFetchRequest.cancel("Active request obsolete"),f.miniplayerFetchRequest=null)},Wvi=function(f,H,v){var t=_.lq.instance,M,h=(M=_.U(H.commandMetadata,_.jG))==null?void 0:M.url,y;
M=!h||_.J("disable_miniplayer_tempdata")?{}:(y=dLN(h))!=null?y:{};return Qk(t,H,M,window.location.href,"watch",function(m,W){v(W)},function(m){return m!==f.miniplayerFetchRequest})},O9G=function(f,H){var v;
_.Y(function(t){if(!H)return t.return();f.watchResponse=H;yxb(f);Rdh(f);v=_.zB(H.response,!1,H.playerResponse);if(f.isMiniplayerActive()){H.response&&(f.playerElement.watchNextData=H.response);var M=_.QA.getValueByKeys.apply(_.QA,[H].concat(_.pS(z2Z)));_.QA.getValueByKeys.apply(_.QA,[H].concat(_.pS(oMa)))&&M&&_.t8().resolve(_.u3).setAutoplayRenderer(M);if(M)if(_.J("kevlar_is_pupi_enabled")){var h,y,m,W,I,S=((h=H.response)==null?0:(y=h.playerOverlays)==null?0:(m=y.playerOverlayRenderer)==null?0:(W=
m.autonavToggle)==null?0:(I=W.autoplaySwitchButtonRenderer)==null?0:I.enabled)?2:1;_.wC.getInstance().setState(S,!1,!1)}else h=rqR()?2:1,(S=f.player)==null||S.setAutonavState(h);f.updateMiniplayerData(v);_.VzW(f)}_.Bj(t)})},Rdh=function(f){var H,v,t=(H=f.watchResponse)==null?void 0:(v=H.playerResponse)==null?void 0:v.playabilityStatus,M;
H=t==null?void 0:(M=t.miniplayer)==null?void 0:M.miniplayerRenderer;(H==null?void 0:H.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&H.minimizedEndpoint&&_.WV(f.miniplayerEl,[H.minimizedEndpoint]);_.uu(f,{playabilityStatus:t})};
Qi.prototype.openToast=function(f,H){_.uu(this,{toastData:{data:f,label:H}})};
_.uu=function(f,H){(0,f.miniplayerPropSignalMap[1])(H)};
Qi.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var f;return this.playerElement?this.playerElement:(f=_.mF(this.miniplayerEl).querySelector("#player-container"))==null?void 0:f.firstElementChild};
Qi.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var tz0=function(f,H){H=H===void 0?!1:H;var v,t,M,h,y,m,W;return _.Y(function(I){if(I.nextAddress==1){v=navigator.userActivation.isActive||H;if(!v||!f.pictureInPictureSupported())return I.return(!1);t=IP5(f);M=t.width;h=t.height;return I.yield(f.pipController.openWindow({width:M,height:h}),2)}y=I.yieldResult;m=f.pipController.getWindow();if(!m||!y)return I.return(!1);m.document.body.style.overflow="hidden";W=upv(m);dxx(f.pipController,function(){S1w(f);W()});
return I.return(!0)})},IP5=function(f){var H=_.S0().shortsPipActivation,v,t;
f=H?.5625:(t=(v=f.player)==null?void 0:v.getVideoAspectRatio())!=null?t:16/9;v=Math.min(window.innerWidth,window.innerHeight)/2;H=H?0:76;return f>1?new _.eF(v,H+v/f):new _.eF(v*f,H+v)},S1w=function(f){var H;
_.Y(function(v){H=_.t8().resolve(_.fT);return H.isOnWatch()&&f.watchPipMode||H.isOnShorts()&&f.shortsPipMode?v.yield(f.deactivate(),0):f.miniplayerToPipMode?v.yield(H9F(f),0):f.watchPipMode?v.yield(_.oA(f),0):v.jumpTo(0)})};
Qi.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.H7.Object.defineProperties(Qi.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Qi[bN]=[jFw,vL_];var dji="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(" "),
jNG="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(" "),sNA="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
Z9W="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var Jxh=null;var lPF={},Ujx=(lPF.initialized={priority:10,callback:function(f){var H=_.t8();H.addProvider({provide:Axv,useClass:BeW});H.addProvider({provide:_.xAW,useFactory:function(){return new b9g}});
H.addProvider({provide:FN,useValue:_.a8("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});H.addProvider({provide:S55,useValue:5184E6});H.addProvider({provide:PHG,useValue:_.Zb()});H.addProvider({provide:brw,useClass:v9g});H.addProvider({provide:Gg,useClass:Gg});H.addProvider({provide:_.V4,useFactory:function(){return R2b.promise}});
H.addProvider({provide:_.yor,useFactory:function(){return _.Vlv.promise}});
H.addProvider({provide:w$b,useValue:function(){var W;return((W=_.vx())==null?void 0:W.getPlayer())||null}});
var v={};H.addProvider((v.provide=_.v$,v.useFactory=function(W,I){return function(){return bsg(W,I)}},v[bN]=[FN,
S55],v));v={};H.addProvider((v.provide=_.$8,v.useClass=$Th,v[bN]=[FN,S55],v));v={};H.addProvider((v.provide=_.faN,v.useClass=IhW,v[bN]=[_.$8],v));H.addProvider({provide:Z$,useFactory:_.vS});H.addProvider({provide:qi,useFactory:_.vS});H.addProvider({provide:tph,useFactory:_.vS});H.addProvider({provide:N2_,useFactory:_.vS});H.addProvider({provide:_.aj,useFactory:_.vS});H.addProvider({provide:Ij,useValue:_.Zq});H.addProvider({provide:JDp,useClass:lng});H.addProvider({provide:A5C,useClass:X2h});H.addProvider({provide:CD,
useClass:CD});H.addProvider({provide:SD,useClass:SD});H.addProvider({provide:d4,useClass:d4});H.addProvider({provide:sz,useClass:sz});H.addProvider({provide:iQ,useClass:iQ});H.addProvider({provide:Um,useClass:Um});H.addProvider({provide:Sb,useClass:Sb});H.addProvider({provide:_.fhA,useValue:cfF});H.addProvider({provide:_.z$,useFactory:_.UV});H.addProvider({provide:yV,useFactory:_.Uj});v={};H.addProvider((v.provide=aST,v.useFactory=function(W){return function(I){var S=S===void 0?{}:S;var d,Z,l=(Z=
_.U((d=I.endpoint)==null?void 0:d.commandMetadata,_.jG))==null?void 0:Z.rootVe;if(l){var L,r;if(d=I.previousCsn||((r=_.U((L=I.endpoint)==null?void 0:L.commandMetadata,udo))==null?void 0:r.parentCsn)){var n=n===void 0?{}:n;if(d!==_.uy(n.layer)||l!==Kce(n.layer))QQN(d,n.cttAuthInfo,n.layer||0),Fcb(d,n.layer||0),L=n.layer||0,_.pc(rAb(L===void 0?0:L),l);S.parentCsn=d}I.endpoint&&d?tY9(W,I.endpoint,S):_.y8(W,l,void 0,S);var Q;((Q=I.response)==null?0:Q.trackingParams)&&W.graftServerVe(I.response.trackingParams);
var C;((C=I.playerResponse)==null?0:C.trackingParams)&&W.graftServerVe(I.playerResponse.trackingParams);var w;((w=I.reelWatchSequenceResponse)==null?0:w.trackingParams)&&W.graftServerVe(I.reelWatchSequenceResponse.trackingParams)}}},v[bN]=[_.z$],v));
v={};H.addProvider((v.provide=hwx,v.useClass=MpF,v[bN]=[Ij,_.aj],v));v={};H.addProvider((v.provide=OX,v.useClass=OX,v[bN]=[_.V4,_.aj],v));v={};H.addProvider((v.provide=Ye,v.useClass=Ye,v[bN]=[qi,_.MJ],v));H.addProvider({provide:_.$xb,useClass:Z0x});v={};H.addProvider((v.provide=_.B5,v.useClass=g5b,v[bN]=[_.$xb],v));H.addProvider({provide:_.zQ,useClass:SS});H.addProvider({provide:_.ov0,useClass:yD0});H.addProvider({provide:_.FF,useClass:gd});v={};H.addProvider((v.provide=_.MG,v.useClass=sFw,v[bN]=
[_.MG],v));H.addProvider({provide:_.V9,useClass:PXb});H.addProvider({provide:Le,useClass:Le});H.addProvider({provide:XN,useClass:XN});H.addProvider({provide:Ke,useClass:Ke});v={};H.addProvider((v.provide=WY,v.useClass=WY,v[bN]=[_.MJ,_.PS],v));H.addProvider({provide:PY,useClass:IA});v={};H.addProvider((v.provide=E2,v.useClass=E2,v[bN]=[_.zQ,PY],v));_.J("web_enable_feedback_endpoint_resolver")&&(v={},H.addProvider((v.provide=J2,v.useClass=J2,v[bN]=[Z$,s2],v)),H.addProvider({provide:s2,useClass:Y5A}));
_.J("web_enable_feedback_endpoint_resolver_batch_2")&&(v={},H.addProvider((v.provide=U2,v.useClass=U2,v[bN]=[Z$],v)),v={},H.addProvider((v.provide=lB,v.useClass=lB,v[bN]=[s2],v)));v={};H.addProvider((v.provide=Gc,v.useClass=Gc,v[bN]=[_.FF,PY],v));v={};H.addProvider((v.provide=pe,v.useClass=pe,v[bN]=[_.FF],v));v={};H.addProvider((v.provide=Ce,v.useClass=Ce,v[bN]=[_.PS,_.B5],v));v={};H.addProvider((v.provide=az,v.useClass=az,v[bN]=[_.PS,_.z$],v));H.addProvider({provide:gl,useClass:gl});v={};H.addProvider((v.provide=
VV,v.useClass=VV,v[bN]=[Z$],v));H.addProvider({provide:zd,useClass:zd});H.addProvider({provide:B0,useClass:B0});v={};H.addProvider((v.provide=rl,v.useClass=rl,v[bN]=[Z$],v));v={};H.addProvider((v.provide=Ki,v.useClass=Ki,v[bN]=[_.PS,Z$],v));v={};H.addProvider((v.provide=DA,v.useClass=DA,v[bN]=[Z$],v));v={};H.addProvider((v.provide=oR,v.useClass=oR,v[bN]=[Z$],v));v={};H.addProvider((v.provide=Qo,v.useClass=Qo,v[bN]=[_.B5],v));v={};H.addProvider((v.provide=sl,v.useClass=sl,v[bN]=[_.z$],v));v={};H.addProvider((v.provide=
Li,v.useClass=Li,v[bN]=[W0],v));v={};H.addProvider((v.provide=xG,v.useClass=xG,v[bN]=[W0],v));H.addProvider({provide:lR,useClass:lR});H.addProvider({provide:Ul,useClass:Ul});H.addProvider({provide:jm,useClass:jm});v={};H.addProvider((v.provide=Na,v.useClass=Na,v[bN]=[_.B5,_.MJ],v));H.addProvider({provide:zc,useClass:zc});v={};H.addProvider((v.provide=uB,v.useClass=uB,v[bN]=[_.PS,_.B5],v));H.addProvider({provide:D$,useClass:D$});v={};H.addProvider((v.provide=hR,v.useClass=hR,v[bN]=[Z$,_.PS,_.MG],v));
v={};H.addProvider((v.provide=v0,v.useClass=v0,v[bN]=[_.PS,_.MJ],v));H.addProvider({provide:X9v,useValue:RXB});H.addProvider({provide:w9M,useValue:SlT});H.addProvider({provide:tR,useClass:tR});v={};H.addProvider((v.provide=H0,v.useClass=H0,v[bN]=[Z$],v));v={};H.addProvider((v.provide=RR,v.useClass=RR,v[bN]=[_.V9,_.MJ],v));v={};H.addProvider((v.provide=eo,v.useClass=eo,v[bN]=[_.MJ],v));H.addProvider({provide:jo,useFactory:function(){return new jo(_.vS())}});
H.addProvider({provide:MRg,useFactory:_.QS.getInstance});v={};H.addProvider((v.provide=rG,v.useClass=rG,v[bN]=[FN,MRg,_.MJ],v));H.addProvider({provide:xA,useClass:xA});H.addProvider({provide:O2,useClass:O2});H.addProvider({provide:Iz,useClass:Iz});H.addProvider({provide:_.gG,useClass:_.gG});H.addProvider({provide:QV,useClass:QV});v={};H.addProvider((v.provide=wG,v.useClass=wG,v[bN]=[qi],v));v={};H.addProvider((v.provide=qa,v.useClass=qa,v[bN]=[_.MJ],v));_.J("web_enable_prefetching_videos_on_home")&&
(H.addProvider({provide:yi,useClass:yi}),H.addProvider({provide:zz,useClass:zz}));v={};H.addProvider((v.provide=pi,v.useClass=pi,v[bN]=[_.MJ],v));H.addProvider({provide:So,useClass:So});v={};H.addProvider((v.provide=IR,v.useClass=IR,v[bN]=[_.PS,_.MJ],v));v={};H.addProvider((v.provide=dG,v.useClass=dG,v[bN]=[_.MJ],v));H.addProvider({provide:FO,useClass:FO});H.addProvider({provide:bB,useClass:bB});v={};H.addProvider((v.provide=A2,v.useClass=A2,v[bN]=[qi,_.MJ],v));H.addProvider({provide:iB,useClass:iB});
v={};H.addProvider((v.provide=P0,v.useClass=P0,v[bN]=[qi,_.MJ,_.PS],v));v={};H.addProvider((v.provide=Gd,v.useClass=Gd,v[bN]=[_.MJ],v));v={};H.addProvider((v.provide=aR,v.useClass=aR,v[bN]=[_.MJ,_.PS],v));v={};H.addProvider((v.provide=fi,v.useClass=fi,v[bN]=[_.V4],v));v={};H.addProvider((v.provide=Tc,v.useClass=Tc,v[bN]=[_.V4],v));H.addProvider({provide:$G,useClass:$G});H.addProvider({provide:Ol,useClass:Ol});H.addProvider({provide:Ft,useClass:Ft});H.addProvider({provide:Sm,useClass:Sm});H.addProvider({provide:mT,
useClass:mT});H.addProvider({provide:oz,useClass:oz});H.addProvider({provide:YG,useClass:YG});_.J("kevlar_enable_mss_lazy_load")&&H.addProvider({provide:_.pA,useClass:$ep});H.addProvider({provide:_.Z5,useClass:jS});H.addProvider({provide:T3,useFactory:function(){return _.A7.getInstance()}});
H.addProvider({provide:H0W,useFactory:Vib});H.addProvider({provide:W0,useFactory:function(){return _.xP.getInstance()}});
H.addProvider({provide:wig,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});v={};H.addProvider((v.provide=_.mG,v.useClass=_.mG,v[bN]=[_.V4,_.MJ,_.z$,H0W,W0,T3,wig,Ij],v));H.addProvider({provide:_.SU,useClass:Pun});H.addProvider({provide:_.j3i,useClass:drw});v={};H.addProvider((v.provide=ne,v.useClass=ne,v[bN]=[_.j3i],v));v={};H.addProvider((v.provide=_.$e,v.useFactory=function(W){return W.upliftCompletionResolver.promise},v[bN]=[hwx],v));
v=_.P6("IS_SHELL_LOAD")?"aa":"eocs";var t=_.P6("IS_SHELL_LOAD")?3:2;_.PL().parkOrScheduleJob(function(){VpF()},t,v);
_.PL().parkOrScheduleJob(function(){_.t8().resolve(OX).start()},2,"eocs");
_.PL().parkOrScheduleJob(function(){v5x()},2,"eocs");
_.PL().parkOrScheduleJob(function(){_.t8().resolve(Ye).start()},2,"eocs");
_.J("kevlar_debug_data_app_registration_ks")||U1r();H.addProvider({provide:_.xK,useValue:new kGa(f.root)});H.addProvider({provide:ck,useValue:new PFe});H.addProvider({provide:_.MLH,useValue:new vNr(f.root)});H.addProvider({provide:_.a9,useValue:new tLC});H.addProvider({provide:_.eD,useClass:Zf});H.addProvider({provide:jFw,useClass:dd});_.J("kevlar_network_sli_killswitch")||H.addProvider({provide:Q1x,useValue:Ex9});H.addProvider({provide:La,useFactory:qfs});_.J("web_bind_fetch")&&(v={},H.addProvider((v.provide=
lMp,v.useFactory=fS_,v[bN]=[_.vh(La)],v)));_.J("web_bind_parse")&&(v={},H.addProvider((v.provide=UAb,v.useFactory=HUN,v[bN]=[_.vh(La)],v)));_.J("web_bind_window_request")&&(v={},H.addProvider((v.provide=eqr,v.useFactory=vnT,v[bN]=[_.vh(La)],v)));_.J("web_bind_text_decoder")&&(v={},H.addProvider((v.provide=LL5,v.useFactory=t_e,v[bN]=[_.vh(La)],v)));v={};H.addProvider((v.provide=NBb,v.useFactory=puR,v[bN]=[_.$e,Z$,_.v$],v));v={};H.addProvider((v.provide=EvF,v.useClass=Ci,v[bN]=[NBb],v));H.addProvider({provide:hZi,
useClass:HrG});H.addProvider({provide:a_G,useClass:GbW});v=[].concat(_.pS(iE));_.J("web_continuation_response_processing")&&v.push(_.GI);v.push(gpb);_.J("enable_share_panel_navigation_logging_fix_on_web")&&v.push(_.D_b);H.addProvider({provide:a35,useValue:v});H.addProvider({provide:VRR,useClass:ueF});H.addProvider({provide:CDi,useClass:uMA});v={};H.addProvider((v.provide=tRb,v.useClass=gNh,v[bN]=[qi],v));_.nN.addLowPriorityJob(function(){BOB()});
v={};H.addProvider((v.provide=A1h,v.useFactory=function(W){return function(I){var S,d=(S=_.U(I.commandMetadata,_.jG))==null?void 0:S.url;if(!d)throw new _.e$("No URL for PBJ Command",I);d=srv(d,{pbj:"1"});S=P0g(d,{})||{};S=Object.assign({},S,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.a8("STS").toString()});I=_.S$({command:JSON.stringify(I),session_token:_.a8("XSRF_TOKEN")});return W.fetch(d,{method:"POST",headers:S,body:I})}},v[bN]=[CDi],v));
v=[];v.push(H.resolve(a_G));t={};t=(t.client_location=_.QS.getInstance(),t.consistency=_.D2R(),t.entities=H.resolve(A5C),t.response_received_commands=H.resolve(VRR),t.store=H.resolve(_.faN),t.tokens=H.resolve(a_G),t);_.J("web_service_params_response_processor")&&(H.addProvider({provide:oUG,useFactory:function(){var W={};return W.CSI=hD_(),W.ECATCHER=M_5(),W}}),H.addProvider({provide:kaN,
useClass:nUx}),t.service_params=H.resolve(kaN));if(_.J("web_shorts_prefetch_service_enabled")){var M=new Sbr(H.resolve(_.$8));t.shorts_prefetch=M}t.adblock_detection=H.resolve(tRb);H.addProvider({provide:_.Aa,useClass:_.Aa});M=H.resolve(_.fhA);var h=[];_.J("PremiumClientSharedConfig__enable_att_context_processor")&&(H.addProvider({provide:r5C,useClass:Bba}),h.push(H.resolve(r5C)));if(_.J("owl_pl_await")){var y={};H.addProvider((y.provide=gUi,y.useFactory=function(W){return new WLi(W)},y[bN]=[_.Aa],
y));
h.push(H.resolve(gUi))}Mmn(M,H.resolve(CDi),H.resolve(JDp),t,H.resolve(_.$8),v,h,H.resolve(EvF),H.resolve(hZi));H.addProvider({provide:_.PS,useValue:_.cn.instance});_.J("start_client_gcf")&&H.addProvider({provide:xF,useValue:BTr()});H.addProvider({provide:Yxi,useFactory:function(){return new Yxi(_.t8().resolve(_.Aa),_.xP.getInstance())}});
_.PL().parkOrScheduleJob(function(){mxG()},1,"eocs");
v={};H.addProvider((v.provide=W$,v.useClass=W$,v[bN]=[_.v$,_.PS],v));H.addProvider({provide:_.DxW,useFactory:_.B$.getInstance});_.PL().parkOrScheduleJob(function(){_.t8().resolve(W$).refresh()},0,"eocs");
bk9(cfF.watchEndpointMap||{},M.reelWatchEndpointMap||{},f.injector.resolve(_.PS));H.addProvider({provide:ds,useValue:_.lq.instance});_.J("kevlar_signal_collection_killswitch")||(v={},H.addProvider((v.provide=A9W,v.useClass=A9W,v[bN]=[FN,yV],v)),_.PL().parkOrScheduleJob(function(){_.t8().resolve(A9W).record()},1,"eocs"));
_.J("web_debug_handler_registration_killswitch")||_.PL().parkOrScheduleJob(function(){JiR("DOWNLOAD_PES",RrN);_.J("offline_client_state_export_ks")||JiR("OFFLINE_CLIENT_STATE",tis)},0,"eocs");
_.J("kevlar_prevent_polymer_dynamic_font_load")&&_.PL().parkOrScheduleJob(function(){var W=[_.gr(wvb),_.gr(q4i)];W=_.V(W);for(var I=W.next();!I.done;I=W.next()){I=I.value;var S=document.createElement("link");_.V1(S,I,"stylesheet");document.head.appendChild(S)}},1,"eocs");
v=f.injector.resolve(_.PS);_.F8v.instance=new _.F8v(v);PrN(J5H(new zyh(v)));v={};f.injector.addProvider((v.provide=tM,v.useFactory=function(W){(W=W==null?void 0:W.getCurrentPage())?W=W.visibilityObserver:(Jxh||(Jxh=afg()),W=Jxh);return W},v[bN]=[_.vh(_.fT)],v.skipCache=!0,v));
H.addProvider({provide:_.o0,useClass:Qi});H.addProvider({provide:ss,useClass:Aih});f.injector.addProvider({provide:C4b,useValue:i$_});H.addProvider({provide:rOa,useValue:vqg});H.addProvider({provide:_.TK,useValue:OIR});f=H.addProvider;pA0||(pA0=new n5G);f.call(H,{provide:_.sX,useValue:pA0});H.addProvider({provide:_.qE,useValue:_.a8("HTML_DIR")==="rtl"?"rtl":"ltr"});H.addProvider({provide:iEn,useClass:RTb});H.addProvider({provide:_.d9,useClass:Z0});_.t8().addProvider({provide:TbT,useValue:_.J("enable_web_delhi_icons")?
jNG.concat(Z9W):dji.concat(sNA)});H.addProvider({provide:_.lu,useClass:_.lu});H.addProvider({provide:_.bob,useValue:new ADF});H.addProvider({provide:X3_,useClass:NbH});H.addProvider({provide:dl,useClass:dl});H.addProvider({provide:ZA,useClass:ZA});f={};H.addProvider((f.provide=cY,f.useClass=cY,f[bN]=[_.PS,_.B5],f));H.addProvider({provide:uR,useClass:uR});H.addProvider({provide:$9M,useClass:lr5});H.addProvider({provide:em,useClass:em});H.addProvider({provide:FRT,useValue:gyh});H.addProvider({provide:_.Np,
useClass:c5o});_.J("enable_payments_purchase_manager")&&H.addProvider({provide:nNg,useClass:K8b});H.addProvider({provide:Teh,useFactory:function(){return function(W){return _.k1W(W)}}});
H.addProvider({provide:_.pR0,useClass:Q3r});f={};H.addProvider((f.provide=ni,f.useClass=ni,f[bN]=[_.pR0],f));H.addProvider({provide:JR,useClass:JR});H.addProvider({provide:hCC,useValue:Qyv});H.addProvider({provide:V8_,useValue:_.cWG});H.addProvider({provide:D1g,useClass:JWx});H.addProvider({provide:QFx,useValue:TUp});f={};H.addProvider((f.provide=ubW,f.useClass=art,f[bN]=[QFx],f));f={};H.addProvider((f.provide=_.jX,f.useClass=qqA,f[bN]=[ubW],f));f={};H.addProvider((f.provide=_.eS,f.useClass=UX,f[bN]=
[_.aj,_.eD],f));if(_.J("web_explore_hub_on_hover")||_.J("web_client_explore_hub_on_hover"))f={},H.addProvider((f.provide=BY,f.useClass=BY,f[bN]=[_.PS,T3],f));if(_.J("web_enable_renderer_logger")){var m=new Zob;lNH(function(){m.abort()});
H.addProvider({provide:i73,useValue:new irp(m.signal)})}H.addProvider({provide:cBT,useValue:cbR});f={};H.addProvider((f.provide=DXv,f.useClass=dTt,f[bN]=[_.PS],f))}},lPF);var edW={},Lvw=(edW.initialized={priority:10,callback:function(){if(!pvx){AVb();V_v("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.Wh(_.l0(V_v,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.J("log_heartbeat_with_lifecycles")){var f={};fX.instance||(fX.instance=new fX);fX.instance.install((f.document_visible={callback:ylN,priority:10},f.document_hidden={callback:ylN,priority:10},f))}else _.vk(document,"visibilitychange",ylN);pvx=!0}(f=_.uy())&&f!=="UNDEFINED_CSN"&&B_3(f)}},edW);var xjG={},BAp=(xjG.initialized={callback:function(f){var H=_.$$(232091),v=f.injector.resolve(_.z$);_.YP(v,H);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?aG_()&&_.$P(v,H):(f=f.injector.resolve(Teh)("refresh_detector"))&&(f.get("first_tab_load")?_.$P(v,H):f.set("first_tab_load","1"))}},xjG);var zdp={},Fvt=(zdp.initialized={priority:10,callback:A0R},zdp);var rx5={},Kvt=(rx5.initialized={priority:0,callback:function(){var f=new ed_,H="other";_.Y_?H="chrome":_.yB?H="firefox":_.ud?H="safari":TE&&(H="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(v){f.increment(_.J8(),v,H)}).catch(function(){f.increment(_.J8(),!1,H)}):f.increment(_.J8(),!1,H)}},rx5);var Dj5={},olx=(Dj5.rendering={priority:8,callback:bnv},Dj5);var nlr={},p_i=(nlr.rendering={priority:10,callback:Y9s},nlr.rendered={callback:y4v},nlr),QNF={},uHw=(QNF.rendering={callback:Y9s},QNF.rendered={callback:y4v},QNF);var aPW=!1,PS5={},GOh=(PS5.initialized={priority:10,callback:function(){aPW||(IF5({didPatch:function(f){f.el&&j_E(f.el,f.props)},
didUnmount:function(f){SnR(f.el)}}),aPW=!0)}},PS5);var CSG=/^\/shorts\/?$/;_.pc("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:{}}}}}}});_.J("kevlar_enable_mss")&&(_.blR(new d6h),z7E());
(function(){var f=document.querySelector("ytd-app");if(!f)throw Error("Lj");f=new xe({root:f,injector:_.t8()});f.install(Lvw);var H={};f.install((H.initialized={priority:10,callback:FaT},H));_.J("wp_lat_b")&&(H={},f.install((H.initialized={priority:10,callback:function(){krR()}},H)));
H={};f.install((H.rendered={priority:0,callback:xvE},H));H={};f.install((H.rendered={priority:0,callback:function(){_.nN.addLowPriorityJob(function(){_.VE5>1&&(sYE(),eOB())},4E4)}},H));
f.install(Lh0);f.install(BAp);f.install(GOh);rlv();f.install(ou5);f.install(sdW);f.install(UeG);f.install(PC5);f.install(c9w);f.install(Kh5);f.install(Ujx);_.J("kevlar_enable_mss_lazy_load")&&f.install(Fvt);f.install(Jfh);f.install(Kvt);if(!_.P6("IS_SHELL_LOAD")||_.J("kevlar_fetch_initial_data_promise_client")||_.J("sw_nav_preload_pbj")){var v=_.gH(window.location.href);H=v&&v==="/watch";v=v&&v.match(CSG);H?f.install(uHw):v?f.install(olx):f.install(p_i)}else f.install(Sqw);f.install(BUi);_.J("web_enable_prefetching_videos_on_home")&&
f.install(uPi);_.J("start_client_gcf")&&f.install(DAr);f.install(ngb);(new LvZ).increment("INSTALLED");f.install(pjA);f.install(OSx);f.transition("initialized");C9H()})();
_.I9=[[["d3Nka2luZCNyeHJ2d3lqbW4=","dXZhbHVlI2kzb2N6ZzdvczNq"],"eEFEX1BMQUNFTUVOVF9LSU5EX1BBVVNFI3YwanhxYWVoMXJk"]];_.gZ=["azJvc2J6b3F4Z2xvYmFsQ2FsbGJhY2tzI2Y3NA==","bmZmb25BYm5vcm1hbGl0eURldGVjdGVkI3ZyamI1cjc0eA==","a2lwIzgzdnhxdjV2aDF3am9uQWRT","aW92djFyYXdfcGxheWVyX3Jlc3BvbnNlIzlmdXl3ZXY=","ZXh4MGE0cTRyZW5kZXJpbmdDb250ZW50I2dmdGo="];_.Xz="azJvc2J6b3F4Z2xvYmFsQ2FsbGJhY2tzI2Y3NA== bmZmb25BYm5vcm1hbGl0eURldGVjdGVkI3ZyamI1cjc0eA== a2lwIzgzdnhxdjV2aDF3am9uQWRT aW92djFyYXdfcGxheWVyX3Jlc3BvbnNlIzlmdXl3ZXY= X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzI2d6dGNpdnRpNDF2eHdlYl9wbGF5bGlzdA== X2VmIzNsc2h4cDNzcG91d2FiX3Nh ZXh4MGE0cTRyZW5kZXJpbmdDb250ZW50I2dmdGo=".split(" ");
_._ModuleManager_initialize=function(f,H){if(!_.DP){if(!_.oN)return;_.blR(_.oN())}_.DP.setAllModuleInfoString(f,H)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5:2,3/sy6/sy7/sy8/sy9/NSzT5/syb/syc/kevlar_main_module:1,4,5,6,7,8,9/sye:2/syd:5,b,e/syf:f/syg/syh:6/syi/h8y2qb:4,g,h,i,j/syj/JzFVk:e,i,j,l/syk:8/xwEKAe:3,9,h,j,n/syl:f/sym:1,c,f,h,l,n/syn:q/nmfa2d:j,p,r/syo:7,q/syp:i,j,r,t/CF909:p,u/Tm0L3c:u/L3n37:g,i,j,p,t/iuT5Oc',['sy2','sy3','sy8','sye','syb','sy5','syk','syj','syg','syd','syc','sy1','sym','sy7','sy6','syo','syn','syi','syh','syl','syf','syp','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module','NSzT5']);
}catch(e){_._DumpException(e)}
try{
_.Ca=function(f,H,v,t,M){var h={};H&&(h[H]=v);t?h.errorType=t:M&&(h.errorReason=M);_.Kb(f,h);_.DK()};
_.EX=function(f){var H=_.PL();return _.GgZ(H,f,1)};
_.p2({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 f=this.query;f&&(this.full||f[0]==="("||(f="("+f+")"),this._mq=window.matchMedia(f),this._add(),this.queryHandler(this._mq))},
queryHandler:function(f){this._setQueryMatches(f.matches)}});var q1p;var ftA;var H40=function(){};
_.R=H40.prototype;_.R.addOwnKeyBinding=function(){};
_.R.removeOwnKeyBindings=function(){};
_.R.keyboardEventMatchesKeys=function(){};
_.R._collectKeyBindings=function(){};
_.R._prepKeyBindings=function(){};
_.R._addKeyBinding=function(){};
_.R._resetKeyEventListeners=function(){};
_.R._listenKeyEventListeners=function(){};
_.R._unlistenKeyEventListeners=function(){};
_.R._onKeyBindingEvent=function(){};
_.R._triggerKeyHandler=function(){};
_.R._tapHandler=function(){};
_.R._focusChanged=function(){};
_.R._detectKeyboardFocus=function(){};
_.R._userActivate=function(){};
_.R._upHandler=function(){};
_.R._spaceKeyDownHandler=function(){};
_.R._spaceKeyUpHandler=function(){};
_.R._asyncClick=function(){};
_.R._pressedChanged=function(){};
_.R._ariaActiveAttributeChanged=function(){};
_.R._activeChanged=function(){};
_.R._controlStateChanged=function(){};
_.R._changedButtonState=function(){};
_.R._focusBlurHandler=function(){};
_.R._disabledChanged=function(){};
_.R._changedControlState=function(){};
_.R._downHandler=function(){};
_.R.ensureRipple=function(){};
_.R.getRipple=function(){};
_.R.hasRipple=function(){};
_.R._noinkChanged=function(){};
_.R._focusedChanged=function(){};
_.R._createRipple=function(){};
_.R.registered=function(){};
_.R._invalidChanged=function(){};
_.R.hasValidator=function(){};
_.R.validate=function(){};
_.R._getValidity=function(){};
_.R._requiredChanged=function(){};
_.R._valueChanged=function(){};
_.R._checkedChanged=function(){};
_.R._buttonStateChanged=function(){};
_.R._setPressed=function(){};
_.R._setPointerDown=function(){};
_.R._setReceivedFocusFromKeyboard=function(){};
_.R._setFocused=function(){};
H40=_.p2({is:"tp-yt-paper-radio-button",_template:function(){if(ftA!==void 0)return ftA;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;q1p===void 0&&(q1p=document.createElement("template"));var t=q1p;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return ftA=f},
behaviors:[_.M4_],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(){_.qV(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var f=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),H=Math.floor(3*f);H%2!==f%2&&H++;this.updateStyles({"--paper-radio-button-ink-size":H+"px"})}})}});var vmW;var t7W;_.p2({_template:function(){if(t7W!==void 0)return t7W;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;vmW===void 0&&(vmW=document.createElement("template"));var t=vmW;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return t7W=f},
is:"tp-yt-paper-radio-group",behaviors:[_.dlo],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(f){var H=this._valueToItem(f);if(!H||!H.hasAttribute("disabled")){if(this.selected){H=this._valueToItem(this.selected);if(this.selected==f)if(this.allowEmptySelection)f="";else{H&&(H.checked=!0);return}H&&
(H.checked=!1)}_.TW.select.apply(this,[f]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(f){this._focusPrevious();f.preventDefault();this._activateFocusedItem()},
_onDownKey:function(f){this._focusNext();f.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(f){_.S7M._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(f){_.S7M._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.TW._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.L3._resetTabindices.apply(this,arguments);this.items.forEach(function(f){f.removeAttribute("aria-selected")},this)}});var M70;_.DE("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var N1=function(){return _.K.apply(this,arguments)||this};
_.e(N1,_.K);_.R=N1.prototype;_.R.computeHasPrimaryIcon=function(f){return!(!f.icon&&!f.thumbnail)};
_.R.computeHasSecondary=function(f){return!(!f.secondaryIcon&&!f.secondaryNotificationText)};
_.R.computeHideSecondaryString=function(f){return!_.J("disable_hide_empty_secondary_string")&&!f.secondaryNotificationText};
_.R.computeCompactLinkStyle=function(f){return f?f.toLowerCase().replace(/_/g,"-"):""};
_.R.computeHasFitHeight=function(f){return f==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.R.isActiveEndpoint=function(f){return(f=this.get("commandMetadata.webCommandMetadata.url",f))?_.gH(window.location.href)!=="/account_transfer_channel"&&_.gH(window.location.href)!=="/gaia_link"&&_.gH(window.location.href)!=="/channel_switcher"||f!=="/account"?_.gH(window.location.href)===f:!0:!1};
_.R.onTap=function(){var f;((f=this.data)==null?0:f.serviceEndpoint)&&_.WV(this.hostElement,[this.data.serviceEndpoint])};
N1.prototype.onTap=N1.prototype.onTap;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],N1.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],N1.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.N("design:type",Boolean)],N1.prototype,"active",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.N("design:type",String)],N1.prototype,"compactLinkStyle",void 0);
_.E([_.F({computed:"computeIcon_(data.icon)"}),_.N("design:type",Object)],N1.prototype,"icon",void 0);_.E([_.F({computed:"computeIcon_(data.secondaryIcon)"}),_.N("design:type",Object)],N1.prototype,"secondaryIcon",void 0);_.E([_.F({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],N1.prototype,"hasSecondary",void 0);_.E([_.F({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],N1.prototype,"hideSecondaryString",void 0);
_.E([_.sE("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],N1.prototype,"onTap",null);_.E([_.u({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],N1);
_.G(N1,"ytd-compact-link-renderer",function(){if(M70!==void 0)return M70;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return M70=f},{mode:1});var hii;_.DE("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var c$=function(){var f=_.K.apply(this,arguments)||this;f.role="link";f.tabindex="0";f.actionMap=_.J("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 f};
_.e(c$,_.K);_.R=c$.prototype;_.R.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.o9()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.R.getCurrentTheme=function(){return _.nG()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.o9()};
_.R.onThemeSelected=function(f,H){var v=f||H?f:_.Dn(),t=(v&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!v&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.FnR(_.gH(window.location.href));_.eG(0,165,f);_.eG(0,174,H);this.prefs.save();t&&_.mb(this.hostElement,"yt-dark-mode-toggled-action",[v]);_.mb(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.R.onTap=function(){this.data.serviceEndpoint&&_.WV(this.hostElement,[this.data.serviceEndpoint])};
_.R.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.R.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.R.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
c$.prototype.onTap=c$.prototype.onTap;c$.prototype.dataChanged=c$.prototype.dataChanged;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],c$.prototype,"actionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],c$.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.N_),_.N("design:type",Object)],c$.prototype,"paperItemBehaviors",void 0);_.E([_.F(),_.N("design:type",Object)],c$.prototype,"data",void 0);_.E([_.F({value:function(){return _.Uj()}}),
_.N("design:type",_.TM)],c$.prototype,"prefs",void 0);_.E([_.F(),_.N("design:type",Object)],c$.prototype,"label",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],c$.prototype,"role",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],c$.prototype,"tabindex",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],c$.prototype,"dataChanged",null);
_.E([_.sE("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],c$.prototype,"onTap",null);_.E([_.u({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],c$);
_.$6()(c$,"ytd-toggle-theme-compact-link-renderer",function(){if(hii===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);hii=f}f=hii;return f},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var V7W,ymx;_.XO=function(f){return!!f.getOptions("captions")};
_.Rip=function(f){return(f=f.getOption("captions","track"))?!!f.displayName:!1};
_.Ai=function(f,H){_.lw(H,f,function(){return V7W[H]},function(v){V7W[H]=v;
if(!_.J("mweb_player_ve_show_ks")){var t=_.uy(0);t&&v&&_.b0(t,v)}})};
_.bu=function(f){(f=V7W[f])&&_.$P(_.UV(),f)};
V7W={};var YgG;/*

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
*/
_.p2({_template:function(){if(YgG!==void 0)return YgG;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;ymx===void 0&&(ymx=document.createElement("template"));var t=ymx;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return YgG=f},
is:"tp-yt-paper-checkbox",behaviors:[_.M4_],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.qV(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var f=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),H="px",v=f.match(/[A-Za-z]+$/);v!==null&&(H=v[0]);f=parseFloat(f);v=8/3*f;H==="px"&&(v=Math.floor(v),v%2!==f%2&&v++);this.updateStyles({"--paper-checkbox-ink-size":v+
H})}})},
_computeCheckboxClass:function(f,H){var v="";f&&(v+="checked ");H&&(v+="invalid");return v},
_computeCheckmarkClass:function(f){return f?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.vfr._createRipple.call(this)}});var mkb=new _.Ak("radioButtonSurveyOptionRenderer"),$kh=new _.Ak("checkboxSurveyOptionRenderer");var W7p;var O4F;var gm5=0,iu=function(){var f=_.K.call(this)||this;f.selected=!1;f.isOverlay=!1;f.inputId="toggle-option-"+gm5;gm5++;return f};
_.e(iu,_.K);iu.prototype.onTap=function(){_.YE(this.hostElement,"ytd-toggle-option-clicked")};
_.E([_.F(),_.N("design:type",String)],iu.prototype,"label",void 0);_.E([_.F(),_.N("design:type",String)],iu.prototype,"inputId",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],iu.prototype,"selected",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],iu.prototype,"isOverlay",void 0);_.E([_.u({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.N("design:paramtypes",[])],iu);
_.G(iu,"ytd-toggle-option-renderer",function(){if(O4F!==void 0)return O4F;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return O4F=f},{mode:1});var ke=function(){var f=_.K.apply(this,arguments)||this;f.isToggleOption=!1;f.isOverlay=!1;return f};
_.e(ke,_.K);ke.prototype.onTap=function(f){f.preventDefault();this.data&&(f=!this.data.checked,this.set("data.checked",f),_.YE(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:f,value:this.data.value}))};
_.H7.Object.defineProperties(ke.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
ke.prototype.onTap=ke.prototype.onTap;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ke.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],ke.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],ke.prototype,"isToggleOption",void 0);_.E([_.F(),_.N("design:type",Object)],ke.prototype,"isOverlay",void 0);_.E([_.z("data.responseText"),_.N("design:type",String),_.N("design:paramtypes",[])],ke.prototype,"label",null);
_.E([_.sE("ytd-toggle-option-clicked"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],ke.prototype,"onTap",null);_.E([_.u({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],ke);
_.G(ke,"ytd-checkbox-survey-option-renderer",function(){if(W7p!==void 0)return W7p;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return W7p=f},{mode:1});var Itx;var Sg5;var Tz=function(){var f=_.K.apply(this,arguments)||this;f.checked=!1;f.isToggleOption=!1;return f};
_.e(Tz,_.K);Tz.prototype.onTap=function(){this.data&&(this.checked?_.mb(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.mb(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
Tz.prototype.onTap=Tz.prototype.onTap;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Tz.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Tz.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],Tz.prototype,"checked",void 0);_.E([_.F(),_.N("design:type",Object)],Tz.prototype,"isToggleOption",void 0);_.E([_.sE("ytd-toggle-option-clicked"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Tz.prototype,"onTap",null);
_.E([_.u({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],Tz);
_.G(Tz,"ytd-radio-button-survey-option-renderer",function(){if(Sg5!==void 0)return Sg5;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Sg5=f},{mode:1});var wd=function(){var f=_.K.apply(this,arguments)||this;f.disableAnimation=!1;f.isToggleOption=!0;f.followUpSurveyCommand=null;f.selectedRatingEndpoint=null;f.isSlimlineSurveyFollowUp=!1;f.isShortsStyle=!1;f.styleOverrideAttribute=!0;f.isDarkMode=!1;f.isSubmitted=!1;f.roundedContainer=!0;f.improveShortsResponseRate=_.J("web_improve_shorts_response_rate");f.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 f};
_.e(wd,_.K);_.R=wd.prototype;
_.R.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"}}}}};
_.R.attached=function(){var f=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(v){var t;if((t=v[0])!=null&&t.isIntersecting){_.JV().reportShown(f.hostElement);var M;(M=f.intersectionObserver)==null||M.unobserve(f.hostElement)}},{rootMargin:"0px",
threshold:.6});var H;(H=this.intersectionObserver)==null||H.observe(this.hostElement)};
_.R.onDarkModeToggledAction=function(f){this.isDarkMode=f};
_.R.dataChanged=function(){var f;if(((f=this.data)==null?void 0:f.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var H;((H=this.data)==null?void 0:H.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var v,t,M,h;this.darkColorPalette=(v=this.data)==null?void 0:(t=v.inlineContent)==null?void 0:(M=t.compactVideoRenderer)==null?void 0:(h=M.thumbnail)==null?
void 0:h.darkColorPalette;var y,m,W,I;this.lightColorPalette=(y=this.data)==null?void 0:(m=y.inlineContent)==null?void 0:(W=m.compactVideoRenderer)==null?void 0:(I=W.thumbnail)==null?void 0:I.lightColorPalette;var S,d;if(((S=this.data)==null?0:(d=S.inlineContent)==null?0:d.compactVideoRenderer)&&this.isShortsStyle){var Z,l,L,r;f=_.m3((Z=this.data)==null?void 0:(l=Z.inlineContent)==null?void 0:(L=l.compactVideoRenderer)==null?void 0:(r=L.thumbnail)==null?void 0:r.thumbnails);_.Sr(this.hostElement,
{"--yt-background-url":"url("+f+")"})}};
_.R.handleRequestCompletion=function(){this.hostElement.hidden&&_.YE(this.hostElement,"yt-dismissible-item-dismissed")};
_.R.onPopupClosed=function(f){var H;((H=f.detail)==null?void 0:H.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.mb(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.R.handleInlineSurveyRatingSelect=function(f,H){var v=this;this.selectedRatingEndpoint=f;this.followUpSurveyCommand=H;this.expanded=!!f;this.getOptionRenderers().forEach(function(t,M){v.notifyPath("followUpSurveyCommand.followUpOptions."+M+".checkboxSurveyOptionRenderer.checked");v.set("followUpSurveyCommand.followUpOptions."+M+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),f=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.mb(this.hostElement,"yt-reel-non-video-content-dismissal-command",[f]))};
_.R.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.mb(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var f,H=(f=this.data)==null?void 0:f.dismissalEndpoint;H&&this.ytComponentBehavior.resolveCommand(H)}};
_.R.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.mb(this.hostElement,"yt-close-popup-action"))};
_.R.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var f=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{f=this.getOptionRenderers().filter(function(t){return t.checked});
if(f.length===0)return;f=f.map(function(t){return t.responseEndpoint})}var H=[];
f.forEach(function(t,M){M!==0&&(t=_.U(t,_.B1))&&t.feedbackToken&&H.push(t.feedbackToken)});
if(f=f[0]){var v={};H.length>0&&(v.extra_feedback_tokens=H);this.ytComponentBehavior.resolveCommand(f,{form:v})}}};
_.R.getOptionRenderers=function(){var f=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(H){f.isSingleSelect=!!_.U(H,mkb);return f.isSingleSelect?_.U(H,mkb):_.U(H,$kh)}):[]};
_.R.handleInlineSurveyOptionSelect=function(f){f=this.optionSelector.indexOf(f);f!==-1&&this.optionSelector.selectIndex(f)};
_.R.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.R.maybeGetBackgroundColor=function(f){return this.isDarkMode?f.section2Color:f.section3Color};
_.R.colorPaletteChanged=function(){var f=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;f=f&&this.maybeGetBackgroundColor(f);this.dismissibleEl.style.backgroundColor=!f||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.NS(f)};
_.H7.Object.defineProperties(wd.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
wd.prototype.colorPaletteChanged=wd.prototype.colorPaletteChanged;wd.prototype.onPopupClosed=wd.prototype.onPopupClosed;wd.prototype.handleRequestCompletion=wd.prototype.handleRequestCompletion;wd.prototype.dataChanged=wd.prototype.dataChanged;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],wd.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],wd.prototype,"actionHandlerBehavior",void 0);
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],wd.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],wd.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.PG),_.N("design:type",Object)],wd.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.lJ("#follow-up-survey-options"),_.N("design:type",Object)],wd.prototype,"optionSelector",void 0);_.E([_.F(),_.N("design:type",Object)],wd.prototype,"data",void 0);
_.E([_.F(),_.N("design:type",Object)],wd.prototype,"disableAnimation",void 0);_.E([_.F(),_.N("design:type",Object)],wd.prototype,"isToggleOption",void 0);_.E([_.F(),_.N("design:type",Object)],wd.prototype,"followUpSurveyCommand",void 0);_.E([_.F(),_.N("design:type",Object)],wd.prototype,"selectedRatingEndpoint",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],wd.prototype,"expanded",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],wd.prototype,"isSlimlineSurveyFollowUp",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],wd.prototype,"isShortsStyle",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],wd.prototype,"styleOverrideAttribute",void 0);_.E([_.F(),_.N("design:type",Boolean)],wd.prototype,"isSingleSelect",void 0);_.E([_.F(),_.N("design:type",Object)],wd.prototype,"isDarkMode",void 0);
_.E([_.F(),_.N("design:type",Object)],wd.prototype,"lightColorPalette",void 0);_.E([_.F(),_.N("design:type",Object)],wd.prototype,"darkColorPalette",void 0);_.E([_.z("selectedRatingEndpoint","isShortsStyle"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],wd.prototype,"isOptionSelected",null);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],wd.prototype,"roundedContainer",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],wd.prototype,"improveShortsResponseRate",void 0);_.E([_.lJ("#dismissible"),_.N("design:type",HTMLElement)],wd.prototype,"dismissibleEl",void 0);_.E([_.lJ("#dismiss-button yt-icon-button"),_.N("design:type",HTMLElement)],wd.prototype,"dismissButtonEl",void 0);_.E([_.lJ("#inline-survey-header yt-icon-button"),_.N("design:type",HTMLElement)],wd.prototype,"inlineHeaderDismissButtonEl",void 0);
_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wd.prototype,"dataChanged",null);_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wd.prototype,"handleRequestCompletion",null);_.E([_.sE("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],wd.prototype,"onPopupClosed",null);
_.E([_.Zw("darkColorPalette","lightColorPalette","isDarkMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wd.prototype,"colorPaletteChanged",null);_.E([_.u({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],wd);
_.G(wd,"ytd-inline-survey-renderer",function(){if(Itx!==void 0)return Itx;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Itx=f},{mode:1});var dk0=["en-CA","en","es-MX","fr-CA"];_.jhw=_.a(function(f){var H=_.tV(f,{isOverlay:!1,isModern:!1}),v=H.captionIconType,t=H.onClick;f=H.ariaLabel;var M=H.ariaPressed,h=H.isOverlay,y=H.isModern;H=_.TN("button",function(I){_.Ai(I,127299)});
var m=_.d6(function(I){_.bu(127299);t==null||t(I);return!1}),W={};
return _.O("ytm-closed-captioning-button",{class:_.S2("ytmClosedCaptioningButtonHost",(W.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return v()===-1&&h()},W.ytmClosedCaptioningButtonIconDisabled=function(){return v()===-1&&!h()},W))},_.O("button",{el:H,
class:"ytmClosedCaptioningButtonButton",title:f,"aria-label":f,"aria-pressed":M,"on:click":m},_.O(_.JE,{icon:function(){var I="",S=y();var d=S?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";S=S?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var Z=_.Uj().get("hl");d=!Z||dk0.includes(Z)?d:S;S=v();switch(S){case -1:case 0:I=d;break;case 1:I=d+"_FILLED";break;default:_.bC(S)}return I}})))},"Bf");
_.jhw.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.yx=function(f){return function(H,v){var t=f||v.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(H,v,{get:function(){var M;return this.$?this.$[t]:(M=_.JJ(this))==null?void 0:M.querySelector("#"+t)},
enumerable:!0,configurable:!0})}};_.Yh=function(f){f=f===void 0?!1:f;_.zO.call(this);this.pubSub_=new _.dH(f);_.jz(this,this.pubSub_)};
_.f8(_.Yh,_.zO);_.Yh.prototype.subscribe=function(f,H,v){return this.isDisposed()?0:this.pubSub_.subscribe(f,H,v)};
_.Yh.prototype.unsubscribe=function(f,H,v){return this.isDisposed()?!1:this.pubSub_.unsubscribe(f,H,v)};
_.Yh.prototype.unsubscribeByKey=function(f){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(f)};
_.Yh.prototype.publish=function(f,H){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var V_5=function(){_.Ca("ypcRedeemFlowStarted")},Wu=function(f){_.Ca("ypcRedeemFlowFailed",void 0,void 0,void 0,f)},ylW=function(f,H,v){H&&v&&(f.videos.forEach(function(t){t.videoId===H&&(t.itemId=v)}),f.recommendedVideos.forEach(function(t){t.videoId===H&&(t.itemId=v)}))};var Ynw;var mP5;/*

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
*/
_.p2({_template:function(){if(mP5!==void 0)return mP5;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;Ynw===void 0&&(Ynw=document.createElement("template"));var t=Ynw;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return mP5=f},
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(f,H){var v=this._resolveSrc(f);v!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",f===""||H?this._setLoading(!1):(this._resolvedSrc=v,this.$.img.src=this._resolvedSrc,this.$.sizedImgDiv.style.backgroundImage='url("'+this._resolvedSrc+'")',this._setLoading(!0)),this._setLoaded(!1),this._setError(!1))},
_placeholderChanged:function(){this.$.placeholder.style.backgroundImage=this.placeholder?'url("'+this.placeholder+'")':""},
_transformChanged:function(){var f=this.$.sizedImgDiv.style,H=this.$.placeholder.style;f.backgroundSize=H.backgroundSize=this.sizing;f.backgroundPosition=H.backgroundPosition=this.sizing?this.position:"";f.backgroundRepeat=H.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(f){f=_.yI(f,this.$.baseURIAnchor.href);f.length>=2&&f[0]==="/"&&f[1]!=="/"&&(f=(location.origin||location.protocol+"//"+location.host)+f);return f}});var $Pi;var WBG;_.p2({_template:function(){if(WBG!==void 0)return WBG;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;$Pi===void 0&&($Pi=document.createElement("template"));var t=$Pi;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return WBG=f},
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(f){return f?"false":"true"},
_headingChanged:function(f){var H=this.getAttribute("heading"),v=this.getAttribute("aria-label");typeof v==="string"&&v!==H||this.setAttribute("aria-label",f)},
_computeHeadingClass:function(f){return f?" over-image":""},
_computeAnimated:function(f){return f}});var OUb=new _.Ak("addRendererToItemSectionAction");var gnA;var On=function(){return _.K.apply(this,arguments)||this};
_.e(On,_.K);On.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],On.prototype,"rendererBehavior",void 0);_.E([_.B(_.PG),_.N("design:type",Object)],On.prototype,"dismissibleItemBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],On.prototype,"rendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],On.prototype,"data",void 0);_.E([_.u({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],On);
_.G(On,"ytd-comment-history-entry-renderer",function(){if(gnA!==void 0)return gnA;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return gnA=f},{mode:1});var IS5;_.DE("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.DE("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var g1=function(){return _.K.apply(this,arguments)||this};
_.e(g1,_.K);_.R=g1.prototype;_.R.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R.onKeyUp=function(f){if(f.keyCode===13)this.onTap()};
_.R.onTap=function(){this.data.recordClickEndpoint&&_.t8().resolve(_.MJ).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var f=this.data.navigationEndpoint;f&&_.U(f,_.rC)&&_.t8().resolve(_.MJ).resolveCommand(f,{form:{element:this.hostElement}})};
_.R.readChanged=function(){var f;_.WB(this.hostElement,"unread",!((f=this.data)==null?0:f.read))};
_.R.dataChanged=function(){this.data&&_.WB(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.R.computeThumbnailSize=function(){var f;return((f=this.data)==null?0:f.highPriorityNotification)?32:48};
_.R.getEndpointURL=function(f){return f&&!_.U(f,_.rC)?this.componentBehavior.computeHref_(f):null};
_.R.getEndpointData=function(f){return f&&!_.U(f,_.rC)?f:null};
g1.prototype.computeThumbnailSize=g1.prototype.computeThumbnailSize;g1.prototype.dataChanged=g1.prototype.dataChanged;g1.prototype.readChanged=g1.prototype.readChanged;g1.prototype.onKeyUp=g1.prototype.onKeyUp;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],g1.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],g1.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],g1.prototype,"componentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],g1.prototype,"data",void 0);_.E([_.F({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.N("design:type",Number)],g1.prototype,"thumbnailSize",void 0);_.E([_.sE("keyup"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],g1.prototype,"onKeyUp",null);
_.E([_.Zw("data.read"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],g1.prototype,"readChanged",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],g1.prototype,"dataChanged",null);_.E([_.Zw("data.highPriorityNotification"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],g1.prototype,"computeThumbnailSize",null);
_.E([_.u({is:"ytd-notification-renderer",disableElementRegistration:!0})],g1);
_.G(g1,"ytd-notification-renderer",function(){if(IS5!==void 0)return IS5;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return IS5=f},{mode:1});var SnG;var I_=function(){return _.K.apply(this,arguments)||this};
_.e(I_,_.K);I_.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"}}}};
I_.prototype.computeActionButtonClass=function(f){return!f.actionButtons||f.actionButtons.length<=1?"single-button":f.description?"vertical-buttons":"horizontal-buttons"};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],I_.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],I_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],I_.prototype,"data",void 0);_.E([_.u({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],I_);
_.G(I_,"ytd-playlist-show-metadata-renderer",function(){if(SnG!==void 0)return SnG;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return SnG=f},{mode:1});var dPt;_.DE("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var S_=function(){return _.K.apply(this,arguments)||this};
_.e(S_,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],S_.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],S_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],S_.prototype,"data",void 0);_.E([_.u({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],S_);
_.G(S_,"ytd-purchase-item-renderer",function(){if(dPt!==void 0)return dPt;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return dPt=f},{mode:1});var j_p;var s_5={};s_5.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(f){if(f)return f.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(f){if(f==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.DE("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var d1=function(){return _.K.apply(this,arguments)||this};
_.e(d1,_.K);d1.prototype.onYtNavigate=function(f){var H=this.openPopupBehavior.getNavigationEndpointPopupAction(f.detail.endpoint);H&&(f.stopPropagation(),this.openPopupBehavior.openPopup(H))};
d1.prototype.onYtNavigate=d1.prototype.onYtNavigate;_.E([_.B(s_5.YtSimpleTextSectionBehavior),_.N("design:type",Object)],d1.prototype,"ytSimpleTextSectionBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],d1.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.fm),_.N("design:type",Object)],d1.prototype,"openPopupBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],d1.prototype,"data",void 0);
_.E([_.sE("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],d1.prototype,"onYtNavigate",null);_.E([_.u({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],d1);
_.G(d1,"ytd-simple-text-section-renderer",function(){if(j_p!==void 0)return j_p;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return j_p=f},{mode:1});var ZUi;_.DE("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var j_=function(){return _.K.apply(this,arguments)||this};
_.e(j_,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],j_.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],j_.prototype,"data",void 0);_.E([_.u({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],j_);
_.G(j_,"ytd-unlimited-page-feature-info-renderer",function(){if(ZUi!==void 0)return ZUi;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return ZUi=f},{mode:1});var JlF;var lSW;var sn=function(){return _.K.apply(this,arguments)||this};
_.e(sn,_.K);sn.prototype.dataChanged=function(){if(this.data){var f=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);f&&(f=_.YK(f,screen.width),this.hostElement.style.backgroundImage="url("+f+")")}};
sn.prototype.dataChanged=sn.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],sn.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],sn.prototype,"data",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sn.prototype,"dataChanged",null);_.E([_.u({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],sn);
_.G(sn,"ytd-post-redemption-section-renderer",function(){if(lSW!==void 0)return lSW;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return lSW=f},{mode:1});var UPA;var ZS=function(){return _.K.apply(this,arguments)||this};
_.e(ZS,_.K);ZS.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ZS.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],ZS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],ZS.prototype,"data",void 0);_.E([_.u({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],ZS);
_.G(ZS,"ytd-ypc-post-redemption-renderer",function(){if(UPA!==void 0)return UPA;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return UPA=f},{mode:1});_.DE("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var Jl=function(){var f=_.K.apply(this,arguments)||this;f.MIN_CODE_LENGTH=12;f.MAX_CODE_LENGTH=24;return f};
_.e(Jl,_.K);_.R=Jl.prototype;_.R.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.R.created=function(){this.riskService=new _.BEb;this.loadPaymentThenable=_.FRr(_.a8("YPC_MB_URL"))};
_.R.ready=function(){var f=this;this.code.addEventListener("keypress",function(H){f.onCodeInputKeypress(H)})};
_.R.dataChanged=function(){var f=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(H){H=_.V(H);for(var v=H.next();!v.done;v=H.next())v=v.value,v.type==="attributes"&&v.attributeName==="dark"&&f.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.R.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var f=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+f+")")}};
_.R.computeRedeemButton=function(f){(f=this.get("redeemButton.buttonRenderer",f))&&(f=Object.assign({},f,{serviceEndpoint:void 0}));return f};
_.R.onRedeemButtonTap=function(f){f.stopPropagation();V_5();this.redeemCode()};
_.R.redeemCode=function(){var f=this;this.isLoading=!0;var H=this.riskService.init();_.sB([H,this.loadPaymentThenable]).then(function(){var v=f.data.redeemButton.buttonRenderer.serviceEndpoint,t=_.zXe(),M=payments.business.integration.ClientTokenFactory.createClientToken(_.U(v,_.aso).countryCode,t);t={c:f.code.value.trim(),rd:window.btoa(t),ctk:M};v&&_.t8().resolve(_.MJ).resolveCommand(v,{form:Object.assign({},t,{element:f.hostElement})})},function(){f.showGenericError();
Wu("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.Ge(Error("uo"))})};
_.R.onYtServiceRequestCompleted=function(f){f.stopPropagation();this.isLoading=!1;var H,v;this.errorMessage=(H=f.detail)==null?void 0:(v=H.data)==null?void 0:v.errorMessage;var t,M;this.postRedemptionRenderer=(t=f.detail)==null?void 0:(M=t.data)==null?void 0:M.renderer;var h,y;if(f=(h=f.detail)==null?void 0:(y=h.data)==null?void 0:y.redirectEndpoint)this.isLoading=!0,_.YE(this.hostElement,"yt-navigate",{endpoint:f});this.errorMessage?Wu("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
f)&&_.Ca("ypcRedeemFlowSucceeded")};
_.R.onYtServiceRequestError=function(f){f.stopPropagation();this.isLoading=!1;if(f=this.get("detail.error.message",f))this.errorMessage=_.qO(f);Wu("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.R.onInvokeInstrumentManagerActionCompleted=function(f){f.stopPropagation();this.redeemCode()};
_.R.onInvokeInstrumentManagerActionError=function(f){f.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",f)){case "instrumentManagerLoadError":this.showGenericError();Wu("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();Wu("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.Ca("ypcRedeemFlowCancelled")}};
_.R.onInput=function(){var f=this;_.iJ(this,"onInput",function(){var H=f.code.value.trim();f.redeemButtonDisabled=H.length<f.MIN_CODE_LENGTH||H.length>f.MAX_CODE_LENGTH},200)};
_.R.onCodeInputKeypress=function(f){f.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(V_5(),this.redeemCode())};
_.R.computeImageUrl=function(f){return f?_.YK(f.thumbnails,600):null};
_.R.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
Jl.prototype.onInvokeInstrumentManagerActionError=Jl.prototype.onInvokeInstrumentManagerActionError;Jl.prototype.onInvokeInstrumentManagerActionCompleted=Jl.prototype.onInvokeInstrumentManagerActionCompleted;Jl.prototype.onYtServiceRequestError=Jl.prototype.onYtServiceRequestError;Jl.prototype.onYtServiceRequestCompleted=Jl.prototype.onYtServiceRequestCompleted;Jl.prototype.dataChanged=Jl.prototype.dataChanged;
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Jl.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Jl.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Jl.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Jl.prototype,"isLoading",void 0);_.E([_.F(),_.N("design:type",Boolean)],Jl.prototype,"redeemButtonDisabled",void 0);
_.E([_.F(),_.N("design:type",Object)],Jl.prototype,"errorMessage",void 0);_.E([_.F(),_.N("design:type",Object)],Jl.prototype,"postRedemptionRenderer",void 0);_.E([_.F(),_.N("design:type",Object)],Jl.prototype,"observer",void 0);_.E([_.lJ("#code"),_.N("design:type",HTMLInputElement)],Jl.prototype,"code",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Jl.prototype,"dataChanged",null);
_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Jl.prototype,"onYtServiceRequestCompleted",null);_.E([_.sE("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Jl.prototype,"onYtServiceRequestError",null);
_.E([_.sE("yt-invoke-instrument-manager-action-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Jl.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.E([_.sE("yt-invoke-instrument-manager-action-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Jl.prototype,"onInvokeInstrumentManagerActionError",null);_.E([_.u({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],Jl);
_.G(Jl,"ytd-redeem-code-renderer",function(){if(JlF!==void 0)return JlF;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return JlF=f},{mode:1});var eDh;_.DE("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var lW=function(){var f=_.K.apply(this,arguments)||this;f.businessEmailDisplayState="HIDE_SECTION";return f};
_.e(lW,_.K);_.R=lW.prototype;_.R.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}}}}}};
_.R.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"};
_.R.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.R.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.c7(_.u0r),this.businessEmailDisplayState="CAPTCHA"))};
_.R.onYtServiceRequestCompleted=function(f){var H;if((H=f.detail.data)==null?0:H.businessEmail)this.businessEmail=f.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var v;if((v=f.detail.data)==null?0:v.errorMessage)this.businessEmailErrorMessage=f.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.R.computeEmailHref=function(f){return"mailto:"+f};
_.R.computeSafeUrl=function(f){if(f)return _.Co(f)};
_.R.onBusinessEmailCaptchaSubmit=function(){var f;(f=this.data)!=null&&f.onBusinessEmailRevealClickCommand&&(f=this.JSC$21667_captchaTextarea.value)&&(f={recaptcha_response_token:f,channel_id:this.data.channelId},_.t8().resolve(_.MJ).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},f,{element:this.hostElement})}))};
_.R.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.H7.Object.defineProperties(lW.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 f,H;return!((f=this.data)==null||!f.primaryLinks)&&!((H=this.data)==null?0:H.links)&&this.data.primaryLinks.every(function(v){return v.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var f,H;return!((f=this.data)==null||!f.primaryLinks)&&!((H=this.data)==null?0:H.links)&&!this.shouldShowNewLinks}}});
lW.prototype.onYtServiceRequestCompleted=lW.prototype.onYtServiceRequestCompleted;lW.prototype.dataChanged=lW.prototype.dataChanged;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],lW.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],lW.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],lW.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.lJ("#g-recaptcha-response"),_.N("design:type",HTMLTextAreaElement)],lW.prototype,"JSC$21667_captchaTextarea",void 0);_.E([_.F(),_.N("design:type",Object)],lW.prototype,"data",void 0);_.E([_.F(),_.N("design:type",String)],lW.prototype,"businessEmailDisplayState",void 0);_.E([_.F(),_.N("design:type",String)],lW.prototype,"businessEmail",void 0);_.E([_.F(),_.N("design:type",String)],lW.prototype,"businessEmailErrorMessage",void 0);
_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],lW.prototype,"hideDetailsSection",null);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lW.prototype,"dataChanged",null);_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],lW.prototype,"shouldShowNewLinks",null);_.E([_.z("data","shouldShowLinks"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],lW.prototype,"shouldShowLegacyLinks",null);
_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],lW.prototype,"onYtServiceRequestCompleted",null);_.E([_.u({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],lW);
_.G(lW,"ytd-channel-about-metadata-renderer",function(){if(eDh!==void 0)return eDh;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return eDh=f},{mode:1});var LBp;_.DE("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var Un=function(){return _.K.apply(this,arguments)||this};
_.e(Un,_.K);Un.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]]"}}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Un.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Un.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Un.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Number)],Un.prototype,"lockupContainerType",void 0);_.E([_.F(),_.N("design:type",String)],Un.prototype,"thumbnailFixedWidth",void 0);
_.E([_.u({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],Un);
_.G(Un,"ytd-channel-featured-content-renderer",function(){if(LBp!==void 0)return LBp;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return LBp=f},{mode:1});var xP5;_.DE("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var e_=function(){var f=_.K.apply(this,arguments)||this;f.roundContainer=!0;f.amsterdamEnabled=_.J("enable_desktop_amsterdam_info_panels");return f};
_.e(e_,_.K);_.R=e_.prototype;_.R.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.R.dataChanged=function(){this.imageWidth=this.imageHeight=24;var f=this.data;f.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!f.style&&f.image&&f.image.thumbnails.length&&(f=f.image.thumbnails[0],this.imageWidth=f.width||0,this.imageHeight=f.height||0)};
_.R.computeSource=function(f){return f.secondarySource?_.fG(f.secondarySource):_.fG(f.source)};
_.R.computeClarifyStyle=function(f){return f?f.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.R.isLargeStyle=function(f){return f==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.R.computeBackgroundStyle=function(f){return f?f.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.R.computeHasActionButton=function(f){return!!f.actionButton};
_.R.computeHasBottomSection=function(f){return!!f.ctaHasBottomSection};
_.R.computeIsSourceMissing=function(f){return f.ctaHasBottomSection===!1?!0:f&&this.computeSource(f)?!1:!0};
_.R.computeSecondaryEndpoint=function(f){return f.secondaryEndpoint||f.endpoint};
e_.prototype.dataChanged=e_.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],e_.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],e_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],e_.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Number)],e_.prototype,"imageWidth",void 0);_.E([_.F(),_.N("design:type",Number)],e_.prototype,"imageHeight",void 0);
_.E([_.F({computed:"computeSecondaryEndpoint(data)"}),_.N("design:type",Object)],e_.prototype,"secondaryEndpoint",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.N("design:type",Boolean)],e_.prototype,"hasActionButton",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.N("design:type",Boolean)],e_.prototype,"hasBottomSection",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.N("design:type",Boolean)],e_.prototype,"missingSource",void 0);_.E([_.F({computed:"computeIcon_(data.icon)"}),_.N("design:type",String)],e_.prototype,"icon",void 0);_.E([_.F({computed:"computeIcon_(data.secondaryIcon)"}),_.N("design:type",String)],e_.prototype,"secondaryIcon",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.N("design:type",String)],e_.prototype,"clarifyStyle",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.N("design:type",String)],e_.prototype,"backgroundStyle",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],e_.prototype,"roundContainer",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],e_.prototype,"amsterdamEnabled",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],e_.prototype,"dataChanged",null);
_.E([_.u({is:"ytd-clarification-renderer",disableElementRegistration:!0})],e_);
_.G(e_,"ytd-clarification-renderer",function(){if(xP5!==void 0)return xP5;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return xP5=f},{mode:1});var B15;var zDA;var LU=function(){var f=_.K.apply(this,arguments)||this;f.amsterdamEnabled=_.J("enable_desktop_amsterdam_info_panels");return f};
_.e(LU,_.K);_.R=LU.prototype;_.R.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.R.computeIcon=function(f){return f?"yt-icons:"+f.toLowerCase():null};
_.R.computeUseContacts=function(f){return!!f.contacts&&f.contacts.length>0};
_.R.computePhoneContact=function(f){var H,v;return(H=f.contacts)==null?void 0:(v=H.find(function(t){var M;return(t==null?void 0:(M=t.icon)==null?void 0:M.iconType)==="PHONE"}))==null?void 0:v.actionText};
_.R.computeSmsContact=function(f){var H,v;return(H=f.contacts)==null?void 0:(v=H.find(function(t){var M;return(t==null?void 0:(M=t.icon)==null?void 0:M.iconType)==="SMS"}))==null?void 0:v.actionText};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],LU.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],LU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],LU.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],LU.prototype,"amsterdamEnabled",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.N("design:type",Boolean)],LU.prototype,"useContacts",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.N("design:type",String)],LU.prototype,"phoneContact",void 0);_.E([_.u({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],LU);
_.G(LU,"ytd-single-action-emergency-support-renderer",function(){if(zDA!==void 0)return zDA;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return zDA=f},{mode:1});_.DE("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var xn=function(){var f=_.K.apply(this,arguments)||this;f.roundedContainer=!0;f.amsterdamEnabled=_.J("enable_desktop_amsterdam_info_panels");return f};
_.e(xn,_.K);xn.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"}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],xn.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],xn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],xn.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],xn.prototype,"roundedContainer",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],xn.prototype,"amsterdamEnabled",void 0);
_.E([_.u({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],xn);
_.G(xn,"ytd-emergency-onebox-renderer",function(){if(B15!==void 0)return B15;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return B15=f},{mode:1});var FBp;_.DE("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var Bu=function(){return _.K.apply(this,arguments)||this};
_.e(Bu,_.K);Bu.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"}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Bu.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Bu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Bu.prototype,"data",void 0);_.E([_.u({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],Bu);
_.G(Bu,"ytd-exploratory-results-renderer",function(){if(FBp!==void 0)return FBp;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return FBp=f},{mode:1});var rl5;_.DE("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var zx=function(){var f=_.K.apply(this,arguments)||this;f.messageData=null;return f};
_.e(zx,_.K);_.R=zx.prototype;_.R.onServiceRequestCompleted=function(f,H){f=H.actions||[];H=0;for(var v=f.length;H<v;H++){var t=f[H],M=void 0,h=void 0;if((M=_.U(t,_.sp))==null?0:(h=M.item)==null?0:h.messageRenderer)this.messageData=_.U(t,_.sp).item.messageRenderer}};
_.R.dataChanged=function(){var f=this.data;this.hostElement.hidden=!1;_.WB(this.hostElement,"is-channel",f&&!f.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.R.computeThumbnailWidth=function(f){return f?126:56};
_.R.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.R.onSubmitTap=function(){var f=this.data,H=this.selectedResponseIndex;f!==void 0&&H!==void 0&&(f=f.responses[H],f.responseData&&_.t8().resolve(_.MJ).resolveCommand(f.responseData,{form:{element:this.hostElement}}))};
_.R.onDismissTap=function(){this.hostElement.hidden=!0;var f=this.data;f!==void 0&&f.dismissalEndpoint&&_.t8().resolve(_.MJ).resolveCommand(f.dismissalEndpoint,{form:{element:this.hostElement}})};
_.R.updateSelectedResponseIndexFromBinding=function(f){this.selectedResponseIndex=f.detail.value};
zx.prototype.onSelectedResponseIndexChange=zx.prototype.onSelectedResponseIndexChange;zx.prototype.dataChanged=zx.prototype.dataChanged;zx.prototype.onServiceRequestCompleted=zx.prototype.onServiceRequestCompleted;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],zx.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],zx.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],zx.prototype,"messageData",void 0);
_.E([_.F(),_.N("design:type",Number)],zx.prototype,"selectedResponseIndex",void 0);_.E([_.lJ("#submit-button"),_.N("design:type",HTMLButtonElement)],zx.prototype,"submitButton",void 0);_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.TI]),_.N("design:returntype")],zx.prototype,"onServiceRequestCompleted",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zx.prototype,"dataChanged",null);
_.E([_.Zw("selectedResponseIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zx.prototype,"onSelectedResponseIndexChange",null);_.E([_.u({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],zx);
_.G(zx,"ytd-feedback-elicitation-single-question-renderer",function(){if(rl5!==void 0)return rl5;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return rl5=f},{mode:1});var KBw;var F6=function(){return _.K.apply(this,arguments)||this};
_.e(F6,_.K);F6.prototype.computeThumbnailWidth=function(f){return f?602:428};
F6.prototype.updateWideFromBinding=function(f){this.wide=f.detail.value};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],F6.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],F6.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Boolean)],F6.prototype,"wide",void 0);_.E([_.u({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],F6);
_.G(F6,"ytd-newspaper-hero-video-renderer",function(){if(KBw!==void 0)return KBw;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return KBw=f},{mode:1});var DPr;var r1=function(){return _.K.apply(this,arguments)||this};
_.e(r1,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],r1.prototype,"rendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],r1.prototype,"data",void 0);_.E([_.u({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],r1);
_.G(r1,"ytd-newspaper-mini-video-renderer",function(){if(DPr!==void 0)return DPr;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return DPr=f},{mode:1});var oni;_.DE("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var KU=function(){return _.K.apply(this,arguments)||this};
_.e(KU,_.K);KU.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"}}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],KU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],KU.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],KU.prototype,"data",void 0);_.E([_.u({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],KU);
_.G(KU,"ytd-newspaper-renderer",function(){if(oni!==void 0)return oni;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return oni=f},{mode:1});var nnr;_.DE("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var DS=function(){var f=_.K.apply(this,arguments)||this;f.isSegment=!1;f.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};f.nextContinuation={continuationType:"playlistVideoListContinuation"};return f};
_.e(DS,_.K);_.R=DS.prototype;_.R.attached=function(){_.t8();var f;(f=_.t8().resolve(_.vh(_.MG)))!=null&&(f.playlistVideoListElement=this.hostElement)};
_.R.detached=function(){var f;(f=_.t8().resolve(_.vh(_.MG)))!=null&&(f.playlistVideoListElement=void 0);f=_.t8().resolve(_.vh(_.V9));_.J("web_enable_voting_animation")&&f&&(f.parentElem=void 0,f.videos=[],f.continuationsPresent=!1,f.showRefreshPill=!1)};
_.R.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"}}}}}};
_.R.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.R.dataChanged=function(){var f=_.t8().resolve(_.vh(_.V9));if(_.J("web_enable_voting_animation")&&this.data&&f){var H=_.mF(this.hostElement).querySelector("#contents");H&&(f.parentElem=H);f.addVideos(this.data.contents)}_.jA_(this.ytReorderableBehavior)};
_.R.onRendererstamperFinished=function(){this.canReorder&&_.sAh(this.ytReorderableBehavior,_.mF(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.R.onPlaylistReloading=function(){this.isReloading=!0};
_.R.onUpdateSetVideoId=function(f){if(f.detail&&this.data&&this.data.contents){var H=f.detail;f=this.data.contents.findIndex(function(M){var h;return((h=M.playlistVideoRenderer)==null?void 0:h.videoId)===H.videoId});
if(!(f<0)&&H.setVideoId&&(this.set("data.contents."+f+".playlistVideoRenderer.setVideoId",H.setVideoId),_.J("web_enable_voting_animation"))){var v;if(f=_.U((v=this.data.contents[f].playlistVideoRenderer)==null?void 0:v.engagementBar,_.bIE)){var t;(t=f.actions)==null||t.forEach(function(M){if(M=_.U(M,_.iIg))M.itemId=H.setVideoId})}(v=_.t8().resolve(_.vh(_.V9)))&&ylW(v,H.videoId,H.setVideoId)}}};
_.R.computeContentsClass=function(f){return f?"reloading":""};
_.R.computeIsSortable=function(f,H){return f&&H>0&&!this.isSegment&&!_.J("shorts_in_playlists_web")};
_.R.computeIsEditable=function(f){return f};
_.R.computeCanReorder=function(f){return f};
_.R.handlePlaylistRemoveVideosAction=function(f){if(this.get("playlistRemoveVideosAction.setVideoIds",f)&&this.data&&this.data.contents){f=_.U(f,_.aea).setVideoIds;for(var H=this.data.contents.length-1;H>=0;){var v=this.data.contents[H].playlistVideoRenderer;v&&v.setVideoId&&f.includes(v.setVideoId)&&this.splice("data.contents",H,1);H--}_.mb(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.R.updateIndices=function(){if(this.data&&this.data.contents)for(var f=0;f<this.data.contents.length;f++)this.set("data.contents."+f+".playlistVideoRenderer.index",_.qO(String(f+1)))};
_.R.handleDrop=function(f){f=f.currDragItem;var H=_.Nr(f.parentNode.childNodes,f),v=this.data.contents.splice(Number(_.fG(f.data.index))-1,1)[0];this.data.contents.splice(H,0,v);H=H?this.get("contents."+(H-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();f=this.buildReorderServiceEndpoint(f.data.setVideoId,H);this.ytComponentBehavior.resolveCommand(f)};
_.R.buildReorderServiceEndpoint=function(f,H){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",f),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",H),this.data.onReorderEndpoint):null};
_.R.handleUpdatePlaylistAction=function(f){var H;(f=_.U((H=_.U(f,_.Pz_))==null?void 0:H.updatedRenderer,_.Ypb))&&this.canReorder!==f.canReorder&&this.set("data.canReorder",f.canReorder);f&&f.contents&&(this.set("data.contents",f.contents),this.isReloading=!1);f&&f.continuations&&this.set("data.continuations",f.continuations)};
_.R.handleAddRendererToItemSectionAction=function(f){var H,v=(H=_.U(f,OUb))==null?void 0:H.renderer,t;v&&((t=_.U(f,OUb))==null?void 0:t.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,v),f=_.t8().resolve(_.vh(_.V9)),_.J("web_enable_voting_animation")&&f&&(v&&(H=_.A6R(v))&&f.recommendedVideos.push({itemId:H,videoId:_.kw5(v),voteCount:_.TO5(v),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.R.isVotingEnabledOnPlaylist=function(f){if(!f)return!1;f=_.V(f);for(f=f.next();!f.done;f=f.next()){var H=void 0;return!!_.U((H=f.value.playlistVideoRenderer)==null?void 0:H.engagementBar,_.bIE)}return!1};
_.R.onAppendContinuationItemsActionFinished=function(){var f;this.isVotingEnabledOnPlaylist((f=this.data)==null?void 0:f.contents)&&(this.updateIndices(),f=_.t8().resolve(_.vh(_.V9)),_.J("web_enable_voting_animation")&&f&&this.data&&f.addVideos(this.data.contents))};
_.R.updateVideoData=function(f){if(f.detail&&this.data&&this.data.contents){var H=f.detail;f=H.toIdx;var v=H.itemId,t=H.newVoteCount,M=H.voteStatus;H=H.hideItem;var h,y,m=(h=this.data)==null?void 0:(y=h.contents)==null?void 0:y.findIndex(function(d){return _.A6R(d)===v});
if(!(m<0)){h=this.data.contents[m];var W;if((W=h.playlistVideoRenderer)==null?0:W.voteCount)h.playlistVideoRenderer.voteCount=t;var I;if(W=_.U((I=h.playlistVideoRenderer)==null?void 0:I.engagementBar,_.bIE)){var S;(S=W.actions)==null||S.forEach(function(d){(d=_.U(d,_.iIg))&&d.initialState&&(d.initialState.votes=t,d.initialState.status=M)})}this.data.contents.splice(m,1);
H||this.data.contents.splice(f,0,h);this.updateIndices()}}};
DS.prototype.updateVideoData=DS.prototype.updateVideoData;DS.prototype.onAppendContinuationItemsActionFinished=DS.prototype.onAppendContinuationItemsActionFinished;DS.prototype.onUpdateSetVideoId=DS.prototype.onUpdateSetVideoId;DS.prototype.onPlaylistReloading=DS.prototype.onPlaylistReloading;DS.prototype.onRendererstamperFinished=DS.prototype.onRendererstamperFinished;DS.prototype.dataChanged=DS.prototype.dataChanged;
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],DS.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],DS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],DS.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.N3.YtNextContinuationBehavior),_.N("design:type",Object)],DS.prototype,"ytNextContinuationBehavior",void 0);
_.E([_.B(_.Zah),_.N("design:type",Object)],DS.prototype,"ytReorderableBehavior",void 0);_.E([_.B(_.E_),_.N("design:type",Object)],DS.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],DS.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],DS.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Boolean)],DS.prototype,"isReloading",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],DS.prototype,"isSegment",void 0);_.E([_.F({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.N("design:type",Boolean)],DS.prototype,"isSortable",void 0);_.E([_.F({computed:"computeIsEditable(data.isEditable)"}),_.N("design:type",Boolean)],DS.prototype,"isEditable",void 0);_.E([_.F({computed:"computeCanReorder(data.canReorder)"}),_.N("design:type",Boolean)],DS.prototype,"canReorder",void 0);
_.E([_.F({value:101}),_.N("design:type",Number)],DS.prototype,"scrollMargin",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DS.prototype,"dataChanged",null);_.E([_.sE("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DS.prototype,"onRendererstamperFinished",null);
_.E([_.sE("yt-playlist-reloading"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DS.prototype,"onPlaylistReloading",null);_.E([_.sE("yt-update-set-video-id"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],DS.prototype,"onUpdateSetVideoId",null);
_.E([_.sE("yt-append-continuation-items-action-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DS.prototype,"onAppendContinuationItemsActionFinished",null);_.E([_.sE("yt-update-video-data-voting-animation"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],DS.prototype,"updateVideoData",null);_.E([_.u({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],DS);
_.G(DS,"ytd-playlist-video-list-renderer",function(){if(nnr!==void 0)return nnr;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return nnr=f},{mode:_.WK("kevlar_poly_si_batch_j047")?1:2});var puG;var o_=function(){return _.K.apply(this,arguments)||this};
_.e(o_,_.K);o_.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"}}}}};
o_.prototype.onTextWrapperTap=function(f){var H=this.data&&this.data.navigationEndpoint;H&&!_.w6(_.f2(f),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.YE(this.hostElement,"yt-navigate",{endpoint:H})};
o_.prototype.dataChanged=function(){var f=this.get("data.offerButton.buttonRenderer.serviceEndpoint");f&&f.commandMetadata&&_.U(f.commandMetadata,_.eA)&&_.U(f.commandMetadata,_.eA).fireAutomatically&&_.t8().resolve(_.MJ).resolveCommand(f,{form:{element:this.hostElement}})};
o_.prototype.dataChanged=o_.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],o_.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],o_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.A_),_.N("design:type",Object)],o_.prototype,"ytdLockupBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],o_.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,value:function(){return _.J("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],o_.prototype,"useBiggerThumbs",void 0);_.E([_.F({reflectToAttribute:!0,value:function(){return _.yQ("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],o_.prototype,"biggerThumbsStyle",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],o_.prototype,"leftAligned",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],o_.prototype,"dataChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-movie-renderer"})],o_);
_.G(o_,"ytd-movie-renderer",function(){if(puG!==void 0)return puG;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return puG=f},{mode:1});var Q_r;var nU=function(){var f=_.K.apply(this,arguments)||this;f.rounded=!0;f.pageAttachedTo=void 0;f.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return f};
_.e(nU,_.K);nU.prototype.attached=function(){this.pageAttachedTo=_.t8().resolve(_.fT).getCurrentPage();_.YE(this.hostElement,"yt-player-attached",this.player)};
nU.prototype.detached=function(){var f;if((f=this.pageAttachedTo)==null?0:f.hostElement)_.YE(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
nU.prototype.dataChanged=function(){var f;if((f=this.data)==null?0:f.videoId)f={video_id:this.data.videoId,autoplay:!0},!_.J("miniplayer_stop_channel_video_autoplay_killswitch")&&_.t8().resolve(_.o0).isMiniplayerActive()&&(f.pause_at_start=!0,f.autoplay=!1),this.player.loadVideoWithPlayerVars(f)};
nU.prototype.handleSignalActionPausePlayer=function(){_.tj().pause()};
nU.prototype.dataChanged=nU.prototype.dataChanged;_.E([_.F(),_.N("design:type",Object)],nU.prototype,"data",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],nU.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],nU.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],nU.prototype,"rounded",void 0);_.E([_.lJ("#player"),_.N("design:type",Object)],nU.prototype,"player",void 0);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nU.prototype,"dataChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],nU);
_.G(nU,"ytd-channel-video-player-renderer",function(){if(Q_r!==void 0)return Q_r;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Q_r=f},{mode:1});var u6W;var aSw;var PWr;var pU=function(){var f=_.K.apply(this,arguments)||this;f.playing=!1;f.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.h9(f);f.active=!1;return f};
_.e(pU,_.K);_.R=pU.prototype;_.R.detached=function(){this.stop()};
_.R.play=function(){var f=this,H,v,t,M,h;return _.Y(function(y){if(y.nextAddress==1)return f.active=!0,H=f.get("data.inlinePlaybackEndpoint.watchEndpoint"),v=H.videoId||f.data.videoId,t=H.startTimeSeconds||0,M=H.playerParams||null,_.J("kevlar_player_update_killswitch")?y.yield(f.playerEl.update({args:{video_id:v,startSeconds:t,player_params:M}}),2):(f.playerEl.loadVideoWithPlayerVars({video_id:v,startSeconds:t,player_params:M,autoplay:!0}),y.jumpTo(2));if(y.nextAddress!=4)return y.yield(f.playerEl.getPlayerPromise(),
4);h=y.yieldResult;h.unloadModule("annotations_module");h.addEventListener("onStateChange",function(m){f.onPlayerStateChange(m)});
_.Bj(y)})};
_.R.onPlayerStateChange=function(f){if(this.active)switch(this.playing=f===1,f){case 1:_.YE(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.YE(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.R.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.R.resize=function(){var f=this,H;return _.Y(function(v){if(v.nextAddress==1)return v.yield(f.playerEl.getPlayerPromise(),2);H=v.yieldResult;H.setSize(NaN,NaN);_.Bj(v)})};
_.E([_.F(),_.N("design:type",Object)],pU.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],pU.prototype,"playing",void 0);_.E([_.F(),_.N("design:type",Object)],pU.prototype,"playerId",void 0);_.E([_.lJ("#player"),_.N("design:type",Object)],pU.prototype,"playerEl",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],pU);
_.G(pU,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(PWr!==void 0)return PWr;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return PWr=f},{mode:1});var Gx0;var CWW;var Ql=function(){var f=_.K.apply(this,arguments)||this;f.width=0;return f};
_.e(Ql,_.K);_.R=Ql.prototype;_.R.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.jr(this,this.onEnded));this.mp4El.addEventListener("error",_.jr(this,this.onError))};
_.R.detached=function(){this.videoEl.removeEventListener("ended",_.jr(this,this.onEnded));this.mp4El.removeEventListener("error",_.jr(this,this.onError))};
_.R.play=function(){var f=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var H=this.videoEl.play();H?H.then(function(){f.handleVideoStartPlaying()}).catch(function(){_.YE(f.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.YE(this.hostElement,"yt-video-thumbnail-not-playing")};
_.R.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.R.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.R.dataChanged=function(){var f;if((f=this.data)==null?0:f.thumbnailPlaceholder)f=_.YK(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+f+")";this.stop();this.autoplay&&this.play()};
_.R.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.R.onEnded=function(){this.stop();_.YE(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.R.onError=function(){_.YE(this.hostElement,"yt-video-thumbnail-error")};
_.R.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.R.getVideoThumbnail=function(f){if(f&&f.length)return f[0]};
Ql.prototype.dataChanged=Ql.prototype.dataChanged;_.E([_.F(),_.N("design:type",Object)],Ql.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ql.prototype,"animatePlaceholderOnEntrance",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ql.prototype,"autoplay",void 0);_.E([_.F({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.N("design:type",Object)],Ql.prototype,"videoThumbnail",void 0);
_.E([_.F(),_.N("design:type",Boolean)],Ql.prototype,"loop",void 0);_.E([_.F(),_.N("design:type",Boolean)],Ql.prototype,"isVideoPlaying",void 0);_.E([_.F(),_.N("design:type",Object)],Ql.prototype,"width",void 0);_.E([_.lJ("#mp4"),_.N("design:type",HTMLElement)],Ql.prototype,"mp4El",void 0);_.E([_.lJ("#placeholder"),_.N("design:type",HTMLElement)],Ql.prototype,"placeholderEl",void 0);_.E([_.lJ("#video"),_.N("design:type",HTMLVideoElement)],Ql.prototype,"videoEl",void 0);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ql.prototype,"dataChanged",null);_.E([_.GW({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],Ql);
_.G(Ql,"yt-video-as-thumbnail-details",function(){if(CWW===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;Gx0===void 0&&(Gx0=document.createElement("template"));var t=Gx0;v.call(H,t.content.cloneNode(!0),f.content.firstChild);CWW=f}f=CWW;return f},{mode:2});var uW=function(){var f=_.K.apply(this,arguments)||this;f.disableGridStateAware=!1;f.animationEnabled=_.J("enable_web_ketchup_hero_animation");f.transitioningOut=!1;f.narrow=!1;f.narrower=!1;f.isCarouselInFeed=!1;f.videoTimeoutJobId=0;f.panelTimeoutJobId=0;f.panelTimeoutJobStartMs=0;f.actionMap={"yt-window-resized":"onWindowResized"};return f};
_.e(uW,_.K);_.R=uW.prototype;_.R.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.R.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var f;this.player&&((f=this.data)==null?0:f.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.R.attached=function(){this.onWindowResized()};
_.R.detached=function(){this.clearTimeouts()};
_.R.onWindowResized=function(){this.updateSize()};
_.R.computePanelLayout=function(f){return f&&f.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.R.playVideo=function(){var f;this.video&&((f=this.data)==null?0:f.videoThumbnail)&&this.video.play();var H;this.player&&((H=this.data)==null?0:H.inlinePlaybackRenderer)&&this.player.play()};
_.R.stopVideo=function(){var f;this.video&&((f=this.data)==null?0:f.videoThumbnail)&&this.video.stop();var H;this.player&&((H=this.data)==null?0:H.inlinePlaybackRenderer)&&this.player.stop()};
_.R.transitionOut=function(){var f=this;this.transitioningOut=!0;return new Promise(function(H){var v=function(){_.mF(f.hostElement).querySelector("#action-button").removeEventListener("animationend",v);_.nN.cancelJob(t);H();f.transitioningOut=!1};
var t=_.Lb(_.nN,v,1E3);_.mF(f.hostElement).querySelector("#action-button").addEventListener("animationend",v);f.player&&(f.player.playing=!1)})};
_.R.computeMetadataOrder=function(f){return f&&f.metadataOrder&&f.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?f.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.R.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.R.computeAvatarSize=function(f){return f&&f.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.R.onContentClick=function(f){if(!_.w6(_.f2(f),this.hostElement,["A".toString(),"BUTTON".toString()])){var H;if((H=this.data)==null?0:H.navigationEndpoint){var v;this.componentBehavior.resolveCommand((v=this.data)==null?void 0:v.navigationEndpoint)}}};
_.R.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.R.setBackgroundImage=function(f){if(f=this.getBackgroundImageUrl(f))_.mF(this.hostElement).querySelector("#hero").style.backgroundImage="url("+f+")"};
_.R.setScrimLayer=function(f){var H=this.getScrimLayerColorStops(f);f=((f==null?void 0:f.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(f=180);_.a8("HTML_DIR")==="rtl"&&(f=-f);H&&(_.mF(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+f+"deg, "+H+")")};
_.R.isNarrower=function(){return this.hostElement.clientWidth<uW.NARROW_VERSION_SIZE};
_.R.getScrimLayerColorStops=function(){var f,H=(f=this.data)==null?void 0:f.scrimColorValues;if(!H)return null;if(H.length===1)return f=_.cS(H[0]),f+" 0%, "+f+" 100%";if(H.length===3){var v=[0,72,98];return H.map(function(t,M){return _.cS(t)+" "+v[M]+"%"}).join(",")}return null};
_.R.getBackgroundImageUrl=function(f){return f&&f.largeFormFactorBackgroundThumbnail?_.YK((f.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||f.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.R.onPlaying=function(){this.startVideoTimeout()};
_.R.onEnded=function(){this.rotate()};
_.R.startPanelTimeout=function(){var f=this;if(!this.panelTimeoutJobId){var H=this.get("data.minPanelDisplayDurationMs");H&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.Lb(_.nN,function(){f.rotate()},H))}};
_.R.startVideoTimeout=function(){var f=this;if(!this.videoTimeoutJobId){_.nN.cancelJob(this.panelTimeoutJobId);var H=Date.now()-this.panelTimeoutJobStartMs;H=Math.max(0,this.get("data.minPanelDisplayDurationMs")-H);H=Math.max(this.get("data.minVideoPlayDurationMs")||0,H);this.videoTimeoutJobId=_.Lb(_.nN,function(){f.rotate()},H)}};
_.R.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.nN.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.nN.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.R.rotate=function(){this.clearTimeouts();_.YE(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.H7.Object.defineProperties(uW.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.mF(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.mF(this.hostElement).querySelector("#video")}}});
_.H7.Object.defineProperties(uW,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
uW.prototype.onEnded=uW.prototype.onEnded;uW.prototype.onPlaying=uW.prototype.onPlaying;uW.prototype.dataChanged=uW.prototype.dataChanged;_.E([_.B(_.Cm),_.N("design:type",Object)],uW.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],uW.prototype,"componentBehavior",void 0);_.E([_.B(_.NW.YtdGuideStateAwareBehavior),_.N("design:type",Object)],uW.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.B(_.lQa),_.N("design:type",Object)],uW.prototype,"ytBooleanLogicBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],uW.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],uW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],uW.prototype,"ytRendererBehavior",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],uW.prototype,"disableGridStateAware",void 0);_.E([_.F(),_.N("design:type",Object)],uW.prototype,"data",void 0);_.E([_.F({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.N("design:type",String)],uW.prototype,"panelLayout",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],uW.prototype,"animationEnabled",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],uW.prototype,"transitioningOut",void 0);
_.E([_.F({computed:"computeMetadataOrder(data)"}),_.N("design:type",Boolean)],uW.prototype,"metadataOrder",void 0);_.E([_.F({computed:"computeByline(data)"}),_.N("design:type",Object)],uW.prototype,"byline",void 0);_.E([_.F({computed:"computeAvatarSize(data)"}),_.N("design:type",Number)],uW.prototype,"avatarSize",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],uW.prototype,"narrow",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],uW.prototype,"narrower",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],uW.prototype,"layoutStyle",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],uW.prototype,"isCarouselInFeed",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uW.prototype,"dataChanged",null);_.E([_.sE("yt-default-promo-panel-renderer-playing"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uW.prototype,"onPlaying",null);
_.E([_.sE("yt-default-promo-panel-renderer-ended"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uW.prototype,"onEnded",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],uW);
_.G(uW,"ytd-default-promo-panel-renderer",function(){if(aSw!==void 0)return aSw;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return aSw=f},{mode:1});_.DE("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var a_=function(){var f=_.K.apply(this,arguments)||this;f.narrower=!1;f.dotMenuVisible=!1;f.paginationThumbnailsVisible=!1;f.active=!0;f.disableGridStateAware=!1;f.actionMap={"yt-window-resized":"onWindowResized"};return f};
_.e(a_,_.K);_.R=a_.prototype;_.R.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]]"}}}}}};
_.R.attached=function(){document.addEventListener("yt-page-type-changed",_.jr(this,this.onPageTypeChange));this.currentPageSubtype=_.lY(location.pathname);this.onWindowResized()};
_.R.detached=function(){this.jobId&&_.nN.cancelJob(this.jobId);this.updateSizeJobId&&_.nN.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.jr(this,this.onPageTypeChange))};
_.R.onPageTypeChange=function(f){this.active=f.detail.newPageSubtype===this.currentPageSubtype};
_.R.onWindowResized=function(){this.updateSize()};
_.R.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.R.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.R.setCarouselItem=function(f){f>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.nN.cancelJob(this.jobId);var H=this.getCurrentPanelElement();H&&H.stopVideo();this.currentItemIndex=f%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(H||(H=this.getCurrentPanelElement()),H.playVideo()):this.startRotationJob()};
_.R.scrollThumbnails=function(f){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var H=this.getCurrentPaginationElement();if(H){var v=_.mF(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?v.style.transform="translateX(0)":(H=H.offsetWidth+8,v.style.transform="translateX(-"+H*(f-Math.ceil(Math.floor(this.overlay.offsetWidth/H)/2)+1)+"px)")}}};
_.R.onDataChanged=function(){var f=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.Vk(_.nN,function(){var H;(H=f.getCurrentPanelElement())==null||H.updateSize();f.updateSize()}))};
_.R.getCurrentPanelElement=function(){return _.mF(_.mF(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.R.getCurrentPaginationElement=function(){return _.mF(_.mF(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.R.getNavigationClass=function(f,H){return f===H?"selected":""};
_.R.getNavigationDurationStyle=function(f){return"animation-duration:"+(this.get("data.carouselItems."+f+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.R.onNavigationTap=function(f){var H=this,v=f.model.index;v!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){H.setCarouselItem(v)}),this.autorotateActive=!1)};
_.R.onVideoThumbnailEnded=function(){var f=this;if(this.shouldRotate()){var H=this.getCurrentPaginationElement();H&&(H.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){H.classList.remove("finished");f.setNextCarouselItem()}))}};
_.R.onVideoThumbnailError=function(){this.startRotationJob()};
_.R.onVideoNotPlaying=function(){this.startRotationJob()};
_.R.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.R.startRotationJob=function(){var f=this;_.nN.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.nN.addLowPriorityJob(function(){f.getCurrentPanelElement().transitionOut().then(function(){f.setNextCarouselItem()})},this.rotationTimeout))};
_.R.computeDotMenuVisible=function(f,H){return!!f&&!!f.carouselItems&&f.carouselItems.length>1&&!f.paginationThumbnails||!!H};
_.R.computePaginationThumbnailsVisible=function(f,H){var v,t;return((t=f==null?void 0:(v=f.paginationThumbnails)==null?void 0:v.length)!=null?t:0)>1&&!H};
_.R.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.R.computePaginatorAlignment=function(f){return(f==null?void 0:f.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.R.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.R.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.R.isNarrower=function(f){return(f!=null?f:0)<uW.NARROW_VERSION_SIZE};
a_.prototype.activeChanged=a_.prototype.activeChanged;a_.prototype.onVideoNotPlaying=a_.prototype.onVideoNotPlaying;a_.prototype.onVideoThumbnailError=a_.prototype.onVideoThumbnailError;a_.prototype.onVideoThumbnailEnded=a_.prototype.onVideoThumbnailEnded;a_.prototype.onDataChanged=a_.prototype.onDataChanged;_.E([_.B(_.Cm),_.N("design:type",Object)],a_.prototype,"ytdGridStateAwareBehavior",void 0);
_.E([_.B(_.NW.YtdGuideStateAwareBehavior),_.N("design:type",Object)],a_.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],a_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],a_.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],a_.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],a_.prototype,"currentItem",void 0);
_.E([_.F(),_.N("design:type",Number)],a_.prototype,"currentItemIndex",void 0);_.E([_.F(),_.N("design:type",Number)],a_.prototype,"rotationTimeout",void 0);_.E([_.F(),_.N("design:type",Number)],a_.prototype,"loopCount",void 0);_.E([_.F({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.N("design:type",String)],a_.prototype,"paginatorAlignment",void 0);_.E([_.F(),_.N("design:type",Number)],a_.prototype,"jobId",void 0);
_.E([_.F(),_.N("design:type",Number)],a_.prototype,"updateSizeJobId",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],a_.prototype,"isCarouselInFeed",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],a_.prototype,"narrower",void 0);_.E([_.F({computed:"computeDotMenuVisible(data, narrower)"}),_.N("design:type",Object)],a_.prototype,"dotMenuVisible",void 0);
_.E([_.F({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.N("design:type",Object)],a_.prototype,"paginationThumbnailsVisible",void 0);_.E([_.F({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.N("design:type",String)],a_.prototype,"layoutType",void 0);_.E([_.F({value:!0,reflectToAttribute:!0}),_.N("design:type",Boolean)],a_.prototype,"autorotateActive",void 0);_.E([_.F(),_.N("design:type",Object)],a_.prototype,"active",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],a_.prototype,"disableGridStateAware",void 0);_.E([_.lJ("#overlay"),_.N("design:type",HTMLElement)],a_.prototype,"overlay",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],a_.prototype,"onDataChanged",null);
_.E([_.sE("yt-video-thumbnail-ended"),_.sE("yt-default-promo-panel-renderer-rotate"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],a_.prototype,"onVideoThumbnailEnded",null);_.E([_.sE("yt-video-thumbnail-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],a_.prototype,"onVideoThumbnailError",null);
_.E([_.sE("yt-video-thumbnail-not-playing"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],a_.prototype,"onVideoNotPlaying",null);_.E([_.xV("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],a_.prototype,"activeChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],a_);
_.G(a_,"ytd-carousel-item-renderer",function(){if(u6W!==void 0)return u6W;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return u6W=f},{mode:2});var En5;var N1h;var clG;var XuG;var Pu=function(){var f=_.K.apply(this,arguments)||this;f.originalQuery=null;f.originalEndpoint=null;return f};
_.e(Pu,_.K);Pu.prototype.computeShowOriginalQueryWithoutEndpoint_=function(f,H){return!(!f||H)};
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Pu.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Pu.prototype,"correctedText",void 0);_.E([_.F(),_.N("design:type",Object)],Pu.prototype,"correctedQuery",void 0);_.E([_.F(),_.N("design:type",Object)],Pu.prototype,"correctedEndpoint",void 0);_.E([_.F(),_.N("design:type",Object)],Pu.prototype,"originalText",void 0);_.E([_.F(),_.N("design:type",Object)],Pu.prototype,"originalQuery",void 0);
_.E([_.F(),_.N("design:type",Object)],Pu.prototype,"originalEndpoint",void 0);_.E([_.F({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.N("design:type",Boolean)],Pu.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.E([_.GW({is:"yt-search-query-correction",disableElementRegistration:!0})],Pu);
_.G(Pu,"yt-search-query-correction",function(){if(XuG===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;clG===void 0&&(clG=document.createElement("template"));var t=clG;v.call(H,t.content.cloneNode(!0),f.content.firstChild);XuG=f}f=XuG;return f},{mode:2});_.DE("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var Gx=function(){return _.K.apply(this,arguments)||this};
_.e(Gx,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Gx.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Gx.prototype,"data",void 0);_.E([_.GW({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],Gx);
_.G(Gx,"yt-did-you-mean-renderer",function(){if(N1h===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;En5===void 0&&(En5=document.createElement("template"));var t=En5;v.call(H,t.content.cloneNode(!0),f.content.firstChild);N1h=f}f=N1h;return f},{mode:2});var AlA;var bUp;_.DE("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var CU=function(){return _.K.apply(this,arguments)||this};
_.e(CU,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],CU.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],CU.prototype,"data",void 0);_.E([_.GW({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],CU);
_.G(CU,"yt-including-results-for-renderer",function(){if(bUp===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;AlA===void 0&&(AlA=document.createElement("template"));var t=AlA;v.call(H,t.content.cloneNode(!0),f.content.firstChild);bUp=f}f=bUp;return f},{mode:2});var iU0;var kxb;_.DE("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var En=function(){return _.K.apply(this,arguments)||this};
_.e(En,_.K);En.prototype.computeExtraClasses_=function(f,H){var v="";f&&(v+=" "+f.toLowerCase().replace(/_/g,"-"));H&&(v+=" "+H.toLowerCase().replace(/_/g,"-"));return v};
En.prototype.computeUrlImg_=function(){var f=this.data;f.image&&(_.mF(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.YK(f.image.thumbnails,Number.MAX_VALUE)+")")};
En.prototype.computeUrlImg_=En.prototype.computeUrlImg_;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],En.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],En.prototype,"data",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],En.prototype,"computeUrlImg_",null);_.E([_.GW({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],En);
_.G(En,"yt-music-pass-feature-info-renderer",function(){if(kxb===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;iU0===void 0&&(iU0=document.createElement("template"));var t=iU0;v.call(H,t.content.cloneNode(!0),f.content.firstChild);kxb=f}f=kxb;return f},{mode:2});var T1A;var wut;_.DE("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var NP=function(){return _.K.apply(this,arguments)||this};
_.e(NP,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],NP.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],NP.prototype,"data",void 0);_.E([_.GW({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],NP);
_.G(NP,"yt-no-results-found-showing-results-for-renderer",function(){if(wut===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;T1A===void 0&&(T1A=document.createElement("template"));var t=T1A;v.call(H,t.content.cloneNode(!0),f.content.firstChild);wut=f}f=wut;return f},{mode:2});var qnW;var fGW;_.DE("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var cu=function(){return _.K.apply(this,arguments)||this};
_.e(cu,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],cu.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],cu.prototype,"data",void 0);_.E([_.GW({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],cu);
_.G(cu,"yt-results-without-quotes-renderer",function(){if(fGW===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;qnW===void 0&&(qnW=document.createElement("template"));var t=qnW;v.call(H,t.content.cloneNode(!0),f.content.firstChild);fGW=f}f=fGW;return f},{mode:2});var Hni;var vjx;_.DE("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var X6=function(){return _.K.apply(this,arguments)||this};
_.e(X6,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],X6.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],X6.prototype,"data",void 0);_.E([_.GW({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],X6);
_.G(X6,"yt-search-no-results-renderer",function(){if(vjx===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;Hni===void 0&&(Hni=document.createElement("template"));var t=Hni;v.call(H,t.content.cloneNode(!0),f.content.firstChild);vjx=f}f=vjx;return f},{mode:2});var t9b;var M9h;_.DE("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var Al=function(){return _.K.apply(this,arguments)||this};
_.e(Al,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Al.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Al.prototype,"data",void 0);_.E([_.GW({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],Al);
_.G(Al,"yt-showing-results-for-renderer",function(){if(M9h===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;t9b===void 0&&(t9b=document.createElement("template"));var t=t9b;v.call(H,t.content.cloneNode(!0),f.content.firstChild);M9h=f}f=M9h;return f},{mode:2});var heF;var Reb;var V9W;var y0b;var bW=function(){var f=_.K.apply(this,arguments)||this;f.answerExpanded=!1;return f};
_.e(bW,_.K);bW.prototype.toggleAnswer_=function(f){var H=_.HB(f);H&&H.classList.contains("yt-simple-endpoint")||(f.preventDefault(),f.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
bW.prototype.toggleAnswer_=bW.prototype.toggleAnswer_;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],bW.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],bW.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],bW.prototype,"answerExpanded",void 0);_.E([_.sE("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],bW.prototype,"toggleAnswer_",null);
_.E([_.GW({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],bW);
_.G(bW,"yt-generic-faq-question-renderer",function(){if(y0b===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;V9W===void 0&&(V9W=document.createElement("template"));var t=V9W;v.call(H,t.content.cloneNode(!0),f.content.firstChild);y0b=f}f=y0b;return f},{mode:2});_.DE("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var iW=function(){return _.K.apply(this,arguments)||this};
_.e(iW,_.K);iW.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],iW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],iW.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],iW.prototype,"data",void 0);_.E([_.GW({is:"yt-faq-section-renderer",disableElementRegistration:!0})],iW);
_.G(iW,"yt-faq-section-renderer",function(){if(Reb===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;heF===void 0&&(heF=document.createElement("template"));var t=heF;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Reb=f}f=Reb;return f},{mode:2});var Ydx;var m4A;_.DE("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var kn=function(){return _.K.apply(this,arguments)||this};
_.e(kn,_.K);
kn.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"}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],kn.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],kn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],kn.prototype,"data",void 0);_.E([_.GW({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],kn);
_.G(kn,"yt-offer-item-expanded-renderer",function(){if(m4A===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;Ydx===void 0&&(Ydx=document.createElement("template"));var t=Ydx;v.call(H,t.content.cloneNode(!0),f.content.firstChild);m4A=f}f=m4A;return f},{mode:2});var $4x;var WDF;_.DE("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var Tx=function(){return _.K.apply(this,arguments)||this};
_.e(Tx,_.K);
Tx.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}},"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"}}}}};
Tx.prototype.computeFullWidthMode=function(f){return!(!f||!f.fullWidthMode)};
Tx.prototype.computeBorderlessMode=function(f){return!(!f||!f.borderlessMode)};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Tx.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Tx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Tx.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.N("design:type",Boolean)],Tx.prototype,"fullWidthMode",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.N("design:type",Boolean)],Tx.prototype,"borderlessMode",void 0);_.E([_.GW({is:"yt-offer-item-renderer",disableElementRegistration:!0})],Tx);
_.G(Tx,"yt-offer-item-renderer",function(){if(WDF===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;$4x===void 0&&($4x=document.createElement("template"));var t=$4x;v.call(H,t.content.cloneNode(!0),f.content.firstChild);WDF=f}f=WDF;return f},{mode:2});var On0;var gjr;_.DE("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var w1=function(){return _.K.apply(this,arguments)||this};
_.e(w1,_.K);w1.prototype.computeAriaLevel_=function(f){return this.getLevelID_(f)};
w1.prototype.getLevelID_=function(f){return(f=f.match(/[0-9]+$/))&&f.length==1?f[0]:"1"};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],w1.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],w1.prototype,"data",void 0);_.E([_.F({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.N("design:type",String)],w1.prototype,"ariaLevel",void 0);_.E([_.F({value:"heading",reflectToAttribute:!0}),_.N("design:type",String)],w1.prototype,"role",void 0);
_.E([_.F({value:-1,reflectToAttribute:!0}),_.N("design:type",Number)],w1.prototype,"tabindex",void 0);_.E([_.GW({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],w1);
_.G(w1,"yt-subscription-product-header-renderer",function(){if(gjr===void 0){var f=document.createElement("template");_.x(f,"\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");f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;On0===void 0&&(On0=document.createElement("template"));var t=On0;v.call(H,t.content.cloneNode(!0),f.content.firstChild);gjr=f}f=gjr;return f},{mode:2});var IGx;var Sdi;_.DE("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var qP=function(){return _.K.apply(this,arguments)||this};
_.e(qP,_.K);qP.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.menu":{id:"menu",mapping:_.om("menuRenderer"),events:!0}}};
qP.prototype.onStampFinished_=function(){_.mF(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
qP.prototype.onStampFinished_=qP.prototype.onStampFinished_;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],qP.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],qP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],qP.prototype,"data",void 0);_.E([_.sE("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qP.prototype,"onStampFinished_",null);
_.E([_.GW({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],qP);
_.G(qP,"yt-subscription-product-renderer",function(){if(Sdi===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;IGx===void 0&&(IGx=document.createElement("template"));var t=IGx;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Sdi=f}f=Sdi;return f},{mode:2});var d4b;var jLG;_.DE("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var fn=function(){return _.K.apply(this,arguments)||this};
_.e(fn,_.K);fn.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
fn.prototype.imageScrimColorValuesChanged_=function(){var f,H=(f=this.data)==null?void 0:f.imageScrimColorValues;_.mF(this.hostElement).querySelector("#scrim").style.backgroundColor=H?_.cS(H[0]):"transparent"};
fn.prototype.imageScrimColorValuesChanged_=fn.prototype.imageScrimColorValuesChanged_;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],fn.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],fn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],fn.prototype,"data",void 0);
_.E([_.Zw("data.imageScrimColorValues"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fn.prototype,"imageScrimColorValuesChanged_",null);_.E([_.GW({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],fn);
_.G(fn,"yt-subscription-product-upsell-offer-renderer",function(){if(jLG===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;d4b===void 0&&(d4b=document.createElement("template"));var t=d4b;v.call(H,t.content.cloneNode(!0),f.content.firstChild);jLG=f}f=jLG;return f},{mode:2});var sLh;var Znx;var J0F;var lGx;var U4t;var eeF;var He=function(){return _.K.apply(this,arguments)||this};
_.e(He,_.K);He.prototype.onYtServiceRequestError_=function(f){_.Xs(this.hostElement,f.detail.error.message)};
He.prototype.onYtServiceRequestError_=He.prototype.onYtServiceRequestError_;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],He.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],He.prototype,"data",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],He.prototype,"collapsible",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],He.prototype,"isManageRed",void 0);
_.E([_.sE("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],He.prototype,"onYtServiceRequestError_",null);_.E([_.GW({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],He);
_.G(He,"yt-single-ypc-offer-renderer",function(){if(eeF===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;U4t===void 0&&(U4t=document.createElement("template"));var t=U4t;v.call(H,t.content.cloneNode(!0),f.content.firstChild);eeF=f}f=eeF;return f},{mode:2});var ve=function(){return _.K.apply(this,arguments)||this};
_.e(ve,_.K);ve.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],ve.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ve.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],ve.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],ve.prototype,"isManageRed",void 0);_.E([_.GW({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],ve);
_.G(ve,"yt-single-ypc-offer-list-renderer",function(){if(lGx===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;J0F===void 0&&(J0F=document.createElement("template"));var t=J0F;v.call(H,t.content.cloneNode(!0),f.content.firstChild);lGx=f}f=lGx;return f},{mode:2});var LDA;var x4G;_.DE("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var t0=function(){return _.K.apply(this,arguments)||this};
_.e(t0,_.K);t0.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],t0.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],t0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],t0.prototype,"data",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],t0.prototype,"isManageRed",void 0);_.E([_.GW({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],t0);
_.G(t0,"yt-ypc-offers-list-renderer",function(){if(x4G===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;LDA===void 0&&(LDA=document.createElement("template"));var t=LDA;v.call(H,t.content.cloneNode(!0),f.content.firstChild);x4G=f}f=x4G;return f},{mode:2});_.DE("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var M4=function(){return _.K.apply(this,arguments)||this};
_.e(M4,_.K);
M4.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}}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],M4.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],M4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],M4.prototype,"data",void 0);_.E([_.GW({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],M4);
_.G(M4,"yt-unlimited-manage-subscription-page-renderer",function(){if(Znx===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;sLh===void 0&&(sLh=document.createElement("template"));var t=sLh;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Znx=f}f=Znx;return f},{mode:2});var BRx;var zet;var h0=function(){return _.K.apply(this,arguments)||this};
_.e(h0,_.K);_.R=h0.prototype;_.R.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.R.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.R.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.R.onKeypress_=function(f){f.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.R.handleHeaderTap_=function(f){f.preventDefault();f.stopPropagation();this.expandOffers_()};
_.R.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.R.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
h0.prototype.dataChanged_=h0.prototype.dataChanged_;_.E([_.B(_.dS),_.N("design:type",Object)],h0.prototype,"ironA11yKeysBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],h0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],h0.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],h0.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],h0.prototype,"offersVisible_",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],h0.prototype,"dataChanged_",null);_.E([_.GW({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],h0);
_.G(h0,"yt-collapsible-ypc-offer-renderer",function(){if(zet===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;BRx===void 0&&(BRx=document.createElement("template"));var t=BRx;v.call(H,t.content.cloneNode(!0),f.content.firstChild);zet=f}f=zet;return f},{mode:2});var FDh;var r05;_.DE("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var RL=function(){return _.K.apply(this,arguments)||this};
_.e(RL,_.K);_.R=RL.prototype;_.R.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.R.dataChanged_=function(){if(this.data.backgroundImage){var f=_.YK(this.data.backgroundImage.thumbnails,screen.width),H=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=H?"linear-gradient(180deg, "+H+"), url("+f+")":"url("+f+")";this.data.gtmId&&_.F9(this.data.gtmId,_.a8("GL",""))}};
_.R.onYtServiceRequestError_=function(f){_.Xs(this.hostElement,f.detail.error.message)};
_.R.getScrimLayerColorStops_=function(){var f,H,v=(f=this.data.unlimitedHeaderV2Data)==null?void 0:(H=f.unlimitedHeaderV2Data)==null?void 0:H.scrimLayerColors;if(!v)return null;var t=100/v.length;return v.map(function(M,h){h*=t;return _.cS(M)+" "+h+"%"}).join(",")};
_.R.computeLogoWithPadding=function(f){var H,v,t;return(f=(H=f.unlimitedLogoImage)==null?void 0:(v=H.thumbnails)==null?void 0:(t=v[0])==null?void 0:t.height)&&f%31===0?!0:!1};
RL.prototype.onYtServiceRequestError_=RL.prototype.onYtServiceRequestError_;RL.prototype.dataChanged_=RL.prototype.dataChanged_;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],RL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],RL.prototype,"ytRendererBehavior",void 0);_.E([_.F({computed:"computeLogoWithPadding(data)"}),_.N("design:type",Boolean)],RL.prototype,"logoWithPadding",void 0);
_.E([_.F(),_.N("design:type",Object)],RL.prototype,"data",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RL.prototype,"dataChanged_",null);_.E([_.sE("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],RL.prototype,"onYtServiceRequestError_",null);_.E([_.GW({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],RL);
_.G(RL,"yt-unlimited-page-header-renderer",function(){if(r05===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;FDh===void 0&&(FDh=document.createElement("template"));var t=FDh;v.call(H,t.content.cloneNode(!0),f.content.firstChild);r05=f}f=r05;return f},{mode:2});var KDr;var D4W;_.DE("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var V0=function(){return _.K.apply(this,arguments)||this};
_.e(V0,_.K);V0.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],V0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],V0.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],V0.prototype,"data",void 0);_.E([_.GW({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],V0);
_.G(V0,"yt-unlimited-user-notification-renderer",function(){if(D4W===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;KDr===void 0&&(KDr=document.createElement("template"));var t=KDr;v.call(H,t.content.cloneNode(!0),f.content.firstChild);D4W=f}f=D4W;return f},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.HPh=_.a(function(f){var H=_.tV(f,{numberOfChips:5}).numberOfChips;return _.O("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.O(_.eK,{each:function(){return Array(H==null?void 0:H())}},function(){return _.O("div",{class:"ytGhostChipShelfChip"})}))},"eh");_.v1W=_.a(function(f){var H=function(){var h;return((h=f.data)==null?void 0:h.call(f).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},v=_.g3(),t=_.t8().resolve(_.qE);
_.ru(function(){requestAnimationFrame(function(){var h;(h=v.lottieEl)==null||h.addEventListener("DOMLoaded",function(){var y;(y=f.onLottieLoaded)==null||y.call(f)})})});
var M={};return _.O("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var h;return((h=f.data)==null?void 0:h.call(f).targetId)||""}},_.O(_.j3,{className:_.S2((M.ytChatLoadingViewModelRtl=t==="rtl",M)),
animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:H()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||H()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:H()}}},
animationRef:v}))},"fh");
}catch(e){_._DumpException(e)}
try{
var i4p,kLF,wMW,qgx,fpW,Hc0,vkx,tKw,mwi,$L,YSh,hpW,yrb,VKi,Rpp,MKG,$wG,WZw,Och,gkw,WP,IpF,SSb,s8i,gM,dw0,dM,OD,Iw,j85,S1,Zci,Jrx,lp5,Uwh,epA,LZh,xw5,zpW,FZr,rrA,KZx,Dwp,ok5,nki,p6w,Q8t,u3t,PZb,CZb,NuF,crb,X6w,Arh,ket,Tur,w60,qSx,fyp,HlF,vZw,M$A,y8x,V$G,hvi,YkW,RvA,mJh,gZi,Olw,$JW,Wpt,sD,Iyx,Sk0,j2A,ev0,LpG,xJh,BHb,zv5,Fpb,r80,KpW,DJx,oZb,ph0,Q2W,um0,J8G;
_.YL=function(f){var H=new _.e$("Error accessing DB");return _.NYv().then(function(v){return new Promise(function(t,M){try{var h=v.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(f);h.onsuccess=function(){var y=h.result;t(y?y.value:null)};
h.onerror=function(){H.params={key:f,source:"onerror"};M(H)}}catch(y){H.params={key:f,
thrownError:String(y)},M(H)}})},function(){return null})};
_.b40=function(f,H){var v=_.k1N(H);v!=="javascript:"&&v!=="data:"&&f.setAttribute("href",H)};
i4p=function(f,H){return _.dL(f.entities,"flowStateEntity",H)};
kLF=function(f,H){return _.dL(f.entities,"contextNoteUserRatingEntityPayload",H)};
_.Tph=function(f,H){if(f&&H){var v=_.rSe();v().set(f,H);_.KlN(v())}};
wMW=function(f){return _.Gb(f,function(H){return H.languageCode==="en"})};
qgx=function(f){var H=ml;if(_.Rip(f))f.setOption("captions","stickyLoading",{}),f.setOption("captions","track",{});else{var v=_.Gb(_.dFR(f),function(t){return t.displayName===H});
f.setOption("captions","track",v)}};
fpW=function(f){if(!f)return 0;var H=f.getPresentingPlayerType(),v=f.getVideoData();return v&&v.isLive?(f=f.getProgressState(H),f.seekableEnd-f.seekableStart):f.getDuration(H)};
Hc0=function(f,H){for(var v=_.V(Object.keys(f)),t=v.next();!t.done;t=v.next())if(t=t.value,f[t]!==H[t])return!1;return!0};
vkx=function(){return document.getElementById("player-control-overlay")};
tKw=function(f){f!==-1&&!_.J("player_controls_log_creation_killswitch")&&vkx()&&(_.u0("pcu_cs",f),_.u0("pcu_ce"))};
mwi=function(f,H){var v=_.vK(f,{}),t=MKG("top",H),M=MKG("bottom",H),h=MKG("left",H),y=MKG("right",H);return _.ZE({top:function(){return $L(v().position,t)},
bottom:function(){return $L(v().position,M)},
left:function(){return $L(v().position,h)},
right:function(){return $L(v().position,y)},
position:function(){return $L(v().positionType,hpW)},
height:function(){return $L(v().height,WP)},
width:function(){return $L(v().width,WP)},
"min-width":function(){return $L(v().minWidth,WP)},
"min-height":function(){return $L(v().minHeight,WP)},
"max-width":function(){return $L(v().maxWidth,WP)},
"max-height":function(){return $L(v().maxHeight,WP)},
"aspect-ratio":function(){return $L(v().aspectRatio,String)},
"margin-top":function(){return $L(v().margin,t)},
"margin-bottom":function(){return $L(v().margin,M)},
"margin-left":function(){return $L(v().margin,h)},
"margin-right":function(){return $L(v().margin,y)},
"padding-top":function(){return $L(v().padding,t)},
"padding-bottom":function(){return $L(v().padding,M)},
"padding-left":function(){return $L(v().padding,h)},
"padding-right":function(){return $L(v().padding,y)},
"flex-direction":function(){return $L(v().flexDirection,Rpp)},
"justify-content":function(){return $L(v().justifyContent,VKi)},
"align-items":function(){return $L(v().alignItems,yrb)},
"flex-grow":function(){return $L(v().flexGrow,String)},
"flex-shrink":function(){return $L(v().flexShrink,String)},
"flex-basis":function(){return $L(v().flexBasis,WP)},
"align-self":function(){return $L(v().alignSelf,yrb)},
"flex-wrap":function(){return $L(v().flexWrap,YSh)},
"align-content":function(){return $L(v().alignContent,yrb)}})};
$L=function(f,H){return f!==void 0?H(f):void 0};
YSh=function(f){switch(f){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
hpW=function(f){switch(f){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
yrb=function(f){switch(f){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"}};
VKi=function(f){switch(f){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"}};
Rpp=function(f){switch(f){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"}};
MKG=function(f,H){var v=H==="rtl";switch(f){case "top":var t=$wG;break;case "bottom":t=WZw;break;case "left":t=Och;break;default:t=gkw}return function(M){return $L(t(M,v),WP)}};
$wG=function(f){var H=f.top;var v=f.vertical;f=f.all;var t;return(t=H!=null?H:v)!=null?t:f};
WZw=function(f){var H=f.bottom;var v=f.vertical;f=f.all;var t;return(t=H!=null?H:v)!=null?t:f};
Och=function(f,H){var v=f.left;var t=f.end;var M=f.start;var h=f.horizontal;f=f.all;var y,m;return(m=(y=v!=null?v:H?t:M)!=null?y:h)!=null?m:f};
gkw=function(f,H){var v=f.right;var t=f.end;var M=f.start;var h=f.horizontal;f=f.all;var y,m;return(m=(y=v!=null?v:H?M:t)!=null?y:h)!=null?m:f};
WP=function(f){var H=f.value;switch(f.unit){case "YPC_DIMENSION_UNIT_POINT":return H+"px";case "YPC_DIMENSION_UNIT_FRACTION":return H+"%";default:return""+H}};
IpF=function(f){switch(f){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"}};
SSb=function(f){var H=f!=null?f:{};f=H.fontRole;var v=H.fontSize;H=H.fontWeight;if(f!==null&&v!==null)switch(f){case "YPC_FONT_ROLE_DISPLAY":switch(v){case "YPC_FONT_SIZE_L":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(v){case "YPC_FONT_SIZE_L":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return H===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(v){case "YPC_FONT_SIZE_XL":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
s8i=function(f,H,v){function t(d){return Object.values(d).map(function(Z){var l=Z.productId;Z=Z.pricingOptionIndex;return OD(M(l).pricingOptions,Z).pricingOptionId})}
function M(d){return W().get(d)}
function h(d){d=t(d);v(d)}
function y(d,Z){return Array.from(gM(d.pricingOptions)).filter(function(l){l=_.V(l);l.next();l=l.next().value;return Iw(l.pricingGroupAttributes,Z)}).map(function(l){return _.V(l).next().value})}
var m=S1([f,H],function(d,Z){var l=d==null?void 0:d.selectedPricingOptions;d={};var L=!0;if(l&&Z.length)for(var r=_.V(Z),n=r.next();!n.done;n=r.next()){n=n.value;var Q=dw0(n.pricingOptions,function(c){a:{c=c.pricingOptionId;for(var A=_.V(l),X=A.next();!X.done;X=A.next())if(X.value===c){c=!0;break a}c=!1}return c});
if(Q>=0){L=!1;var C=OD(n.pricingOptions,Q),w=void 0;d[n.groupId]={productId:n.productId,pricingOptionIndex:Q,pricingGroupAttributes:(w=C)==null?void 0:w.pricingGroupAttributes}}}L&&Z.length&&(L=OD(Z[0].pricingOptions,0),d[Z[0].groupId]={productId:Z[0].productId,pricingOptionIndex:0,pricingGroupAttributes:L==null?void 0:L.pricingGroupAttributes});return d}),W=S1([H],function(d){return new Map(d.map(function(Z){return[Z.productId,
Z]}))}),I=S1([H],function(d){var Z=new Map;
d=_.V(d);for(var l=d.next();!l.done;l=d.next()){var L=l.value;l=L.groupId;var r=L.productId;L=_.V(gM(L.pricingOptions));for(var n=L.next();!n.done;n=L.next()){var Q=_.V(n.value);n=Q.next().value;Q=Q.next().value;Z.set(Q.pricingOptionId,{groupId:l,productId:r,index:n,pricingOption:Q,pricingGroupAttributes:Q.pricingGroupAttributes})}}return Z}),S=S1([H],function(d){var Z=new Map;
d=_.V(d);for(var l=d.next();!l.done;l=d.next()){var L=l.value;l=L.groupId;var r=L.productId,n=void 0;L=_.V(gM((n=L.pricingGroups)!=null?n:[]));for(n=L.next();!n.done;n=L.next()){var Q=_.V(n.value);n=Q.next().value;Q=Q.next().value;Z.set(Q.pricingGroupId,{groupId:l,productId:r,index:n,pricingGroup:Q,pricingGroupAttributes:Q.pricingGroupAttributes})}}return Z});
return{getProductById:M,isProductSelected:function(d){var Z=M(d);if(!Z)return!1;var l;return((l=m()[Z.groupId])==null?void 0:l.productId)===d},
getSelectedPricingOptions:function(){return Object.values(m()).map(function(d){var Z=d.productId;d=d.pricingOptionIndex;return OD(M(Z).pricingOptions,d)})},
getSelectedPricingGroupAttributesByGroupId:function(d){var Z;return(d=(Z=m()[d])==null?void 0:Z.pricingGroupAttributes)?Array.from(d):void 0},
getSelectedProductByGroupId:function(d){var Z;return(d=(Z=m()[d])==null?void 0:Z.productId)?M(d):void 0},
onProductSelected:function(d){var Z=M(d);if(Z){var l=m(),L;if(((L=l[Z.groupId])==null?void 0:L.productId)!==d){var r=(L=(r=l[Z.groupId])==null?void 0:r.productId)?M(L):void 0;var n;L=(n=l[Z.groupId])==null?void 0:n.pricingGroupAttributes;var Q;n=(Q=l[Z.groupId])==null?void 0:Q.pricingOptionIndex;if(r&&L&&n!==void 0){Q=y(r,L).indexOf(n);if(Q===-1)throw Error("Mj`"+n+"`"+r.productId);n=y(Z,L);Q=Q<n.length?n[Q]:n.length>0?n[0]:0}else Q=0;dM(Z.pricingOptions)<=Q&&(Q=0);n=OD(Z.pricingOptions,Q);var C;
r={};h(Object.assign({},l,(r[Z.groupId]={productId:d,pricingOptionIndex:Q,pricingGroupAttributes:(C=n==null?void 0:n.pricingGroupAttributes)!=null?C:[]},r)))}}},
onPricingOptionSelected:function(d){var Z=I().get(d);if(Z){d=Z.groupId;var l=Z.productId;Z=Z.index;var L=m(),r,n;if(((r=L[d])==null?void 0:r.productId)!==l||((n=L[d])==null?void 0:n.pricingOptionIndex)!==Z){var Q,C;r={};h(Object.assign({},L,(r[d]={productId:l,pricingOptionIndex:Z,pricingGroupAttributes:(C=(Q=L[d])==null?void 0:Q.pricingGroupAttributes)!=null?C:[]},r)))}}},
onPricingGroupSelected:function(d){var Z=S().get(d);if(Z){d=Z.groupId;var l=Z.productId,L=Z.pricingGroup.pricingGroupAttributes,r=M(l);if(r){Z=m();var n=Z[d].pricingGroupAttributes,Q;if(((Q=Z[d])==null?void 0:Q.productId)!==l||!Iw(j85(n,dM(L)),L)){Q=Array.from(L);for(L=dM(L);L<dM(n);L++){var C="",w=!1,c=Array.from(Q);c.push(OD(n,L));for(var A=_.V(r.pricingGroups),X=A.next();!X.done;X=A.next())if(X=X.value,Iw(X.pricingGroupAttributes,c)){Q.push(OD(n,L));w=!0;break}else C===""&&dM(X.pricingGroupAttributes)===
c.length&&Iw(j85(X.pricingGroupAttributes,Q.length),Q)&&(C=OD(X.pricingGroupAttributes,L));w||Q.push(C)}C=Z[d].pricingOptionIndex;L=[];w=new Map;c=0;r=_.V(gM(r.pricingOptions));for(A=r.next();!A.done;A=r.next())X=_.V(A.value),A=X.next().value,X=X.next().value,Iw(X.pricingGroupAttributes,Q)&&L.push(A),Iw(X.pricingGroupAttributes,n)&&w.set(A,c++);L.length===0?n=0:(n=w.get(C),n=n!==void 0&&n<L.length?L[n]:L[0]);r={};h(Object.assign({},Z,(r[d]={productId:l,pricingOptionIndex:n,pricingGroupAttributes:Q},
r)))}}}},
onClearGroupSelected:function(d){var Z=m();Z[d]&&(Z=Object.fromEntries(Object.entries(Z).filter(function(l){return _.V(l).next().value!==d})),h(Z))}}};
gM=function(f){return function v(){var t,M,h,y,m;return _.v1(v,function(W){switch(W.nextAddress){case 1:_.Uq(W,2),t=0,M=_.V(f),h=M.next();case 4:if(h.done){W.jumpTo(2);break}y=h.value;m=_.tQ;return W.yield([t++,y],7);case 7:m(W.yieldResult);h=M.next();W.jumpTo(4);break;case 2:_.lk(W),_.ea(W,0)}})}()};
dw0=function(f,H){f=_.V(gM(f));for(var v=f.next();!v.done;v=f.next()){var t=_.V(v.value);v=t.next().value;t=t.next().value;if(H(t))return v}return-1};
dM=function(f){var H=0;for(f=f[Symbol.iterator]();!f.next().done;)++H;return H};
OD=function(f,H){f=_.V(gM(f));for(var v=f.next();!v.done;v=f.next()){var t=_.V(v.value);v=t.next().value;t=t.next().value;if(v===H)return t}};
Iw=function(f,H){if(!f&&!H)return!0;if(!f||!H)return!1;f=Array.from(f);H=Array.from(H);if(f.length!==H.length)return!1;for(var v=0;v<f.length;v++)if(f[v]!==H[v])return!1;return!0};
j85=function(f,H){H=H===void 0?Infinity:H;var v=[];f=_.V(gM(f));for(var t=f.next();!t.done;t=f.next()){var M=_.V(t.value);t=M.next().value;M=M.next().value;if(t>=H)break;t>=0&&v.push(M)}return v};
S1=function(f,H){var v,t;return function(){for(var M=f.map(function(y){return y()}),h=0;h<M.length;h++)if(!v||M[h]!==v[h]){v=M;
t=H.apply(null,_.pS(M));break}return t}};
Zci=function(f,H,v){var t=[];f=_.V(f);for(var M=f.next();!M.done;M=f.next()){M=M.value;var h=void 0;((h=H)==null?0:h.length)&&!Iw(M.pricingGroupAttributes,H)||t.push({pricingOption:M,isSelected:v.includes(M.pricingOptionId)})}return t};
Jrx=function(f,H){return _.dL(f.entities,"pdpStateEntity",H)};
lp5=function(f){var H,v;return!!(f.productId&&f.groupId&&((H=f.pricingOptions)==null?0:H.length)&&f.pricingOptions.every(function(t){return t.pricingOptionId})&&((v=f.pricingGroups)==null||!v.length||Array.isArray(f.pricingGroups)&&f.pricingGroups.every(function(t){return t.pricingGroupId&&t.pricingGroupAttributes&&t.pricingGroupAttributes.length>0})))};
Uwh=function(f,H,v){return s8i(f,S1([H],function(t){return t.filter(lp5)}),v)};
epA=function(f){var H=void 0,v;for(v in f)if(f.hasOwnProperty(v)){H=v;break}return H};
LZh=function(f,H){return H.length===0?[f]:[f.slice(0,H[0]),f.slice(H[0])].filter(function(v){return v.length>0})};
xw5=function(f){switch(f){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""}};
zpW=function(f,H,v,t){t=Object.assign({},t);_.pu(t,BuG,{selectedOptionId:f,primaryButtonOverride:v});_.fu().dispatch(_.lF("flowStateEntity",H,t))};
FZr=function(f){switch(f){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"}};
rrA=function(f){switch(f){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"}};
KZx=function(f,H){H.includes(f)?H=H.filter(function(v){return v!==f}):H.push(f);
return[].concat(_.pS(H))};
Dwp=function(f,H){return _.dL(f.entities,"contextNoteFeedEntityPayload",H)};
ok5=function(f,H){switch(f){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return H==null?void 0:H.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return H==null?void 0:H.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return H==null?void 0:H.ratingNotHelpfulText}};
nki=function(f,H){return{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",accessibilityText:f.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:f.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:f.deleteDialogTitle}]},dialogMessages:[{runs:[{text:f.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:f.deleteActionText}]},command:{performCommentActionEndpoint:{action:H}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:f.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
p6w=function(f,H,v){var t;if(f&&((t=H())==null?0:t.includes(f))){var M;v((M=H())==null?void 0:M.filter(function(h){return h!==h}))}else v([].concat(_.pS(H()||[]),[f]))};
Q8t=function(f){f.style.height="auto";f.style.height=f.scrollHeight+"px"};
u3t=function(f){return[f.syncStep,f.asyncStep].filter(function(H){return H!==void 0})};
PZb=function(f){var H,v,t;if(f=(H=f.structuredContextNoteFormSchema)==null?void 0:(v=H.fieldSchemas)==null?void 0:(t=v.noteBody)==null?void 0:t.validationSchema)for(H=_.V(u3t(f)),v=H.next();!v.done;v=H.next()){v=v.value.rules;if(!v)break;v=_.V(v);for(v=v.next();!v.done;v=v.next())return _.U(v.value,_.apt)}};
CZb=function(f){if(f){f=_.V(u3t(f));for(var H=f.next();!H.done;H=f.next()){H=H.value.rules;if(!H)break;H=_.V(H);for(H=H.next();!H.done;H=H.next())return _.U(H.value,Ge5)}}};
NuF=function(f){if(f){f=_.V(u3t(f));for(var H=f.next();!H.done;H=f.next()){H=H.value.rules;if(!H)break;H=_.V(H);for(H=H.next();!H.done;H=H.next())return _.U(H.value,Ek0)}}};
crb=function(f){f=/^https?:\/\//.test(f)?f:"http://"+f;try{var H=_.Ax(f)}catch(v){return!1}if(H.toString()!==f)return!1;f=H.JSC$10022_domain_.split(".");return f.length>1&&f.every(function(v){return!!v})};
X6w=function(f,H,v,t){var M;t=(M=t.structuredContextNoteData)==null?void 0:M.createCommentEndpoint;if(M=_.U(t,_.Aco))return M.commentText=_.qO(f),M.videoPositionMention=H,M.sources=v,t};
Arh=function(f){return f==null?void 0:f.stringValue};
_.bcW=function(f){return f.talkToRecs};
ket=function(f,H,v){f=f.map(function(t,M){return{listItemViewModel:{title:t.title,subtitle:t.subtitle,leadingImage:t.leadingImage,trailingImage:M===H?ici:void 0,rendererContext:{commandContext:{onTap:t.onTap}}}}});
return Object.assign({},v&&{header:{panelHeaderViewModel:{title:v}}},{content:{listViewModel:{listItems:f}}})};
Tur=function(f,H){if(f&&H)switch(H){case "SELECTION_TYPE_BOOL":return f.boolValue;case "SELECTION_TYPE_INT":return f.intValue;case "SELECTION_TYPE_STRING":return f.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return f.privacyStatusValue}};
w60=function(f){var H;f=(H=f.options)==null?void 0:H.findIndex(function(v){return v.isSelected});
return f===void 0?-1:f};
qSx=function(f,H,v){var t=function(){return f().label},M={},h=_.S2("ytDropdownViewModelLabel",(M.ytDropdownViewModelLabelError=H,M));
return _.O(_.g,{cond:function(){return f().label&&!(v()===-1&&f().label&&!f().placeholderText)},
then:function(){return _.O("div",{class:h},_.O(_.iq,{text:t}))}})};
fyp=function(f,H){var v={};v=_.S2("ytDropdownViewModelTitle",(v.ytDropdownViewModelTitlePlaceholder=function(){return H()===-1},v));
return _.O("div",{class:v},_.O(_.iq,{text:function(){var t=f();var M=H();if(M===-1)t=t.placeholderText?t.placeholderText:t.label;else{var h,y;t=(h=t.options)==null?void 0:(y=h[M])==null?void 0:y.title}return t}}))};
HlF=function(f,H){var v=function(){return f().hint};
return _.O(_.R8,null,_.O(_.g,{cond:function(){return v()&&!H()},
then:function(){return _.O("div",{class:_.S2("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.O(_.iq,{text:v,className:"ytDropdownViewModelSupportText"}))}}),_.O(_.g,{cond:H,
then:function(){return _.O("div",{id:"dropdown-view-model-error",role:"alert",class:_.S2("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.O(_.JE,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.O(_.iq,{text:H,className:"ytDropdownViewModelSupportText"}))}}))};
vZw=function(f,H){var v=_.t8().resolve(_.j3i);_.Kc(function(){var t=f().id;t&&v!=null&&v.dropdownMap.set(t,H)})};
M$A=function(f){f=_.U(f.scheduleButton,t$h);f=_.U(f==null?void 0:f.primaryButton,_.af);f=_.U(f==null?void 0:f.onTap,_.PK);var H,v,t=((v=_.U(f,_.Ir))==null?void 0:v.commands)||[f];v=_.V(t);for(f=v.next();!f.done&&!(H=_.U(f.value,_.bKo));f=v.next());var M;H=(M=H)==null?void 0:M.createBroadcastRequest;if(!H)throw Error("Tj");return H};
y8x=function(f,H,v){v=v===void 0?{}:v;var t,M;return _.Y(function(h){if(t=hvi(H))return h.return(t);(M=RvA(f,H,v))&&V$G(H,M);return h.return(M)})};
V$G=function(f,H){var v=YkW(f);v&&H.then(function(t){_.t8().resolve(_.$8).put(v,new _.W5({innertubeResponse:t}))})};
hvi=function(f){if(f=YkW(f)){var H=_.t8().resolve(_.$8);if(H.has(f))return H.get(f).then(function(v){return v==null?void 0:_.T7(v)})}return null};
YkW=function(f){var H=_.U(f.endpoint,_.wI);if(H!=null&&H.videoId)return H={videoId:H.videoId},_.J("web_imp_player_mute_params")&&(H.mutedAtStart=f.startPlaybackInMutedState),_.TP("inline_playback",H)};
RvA=function(f,H,v){f=_.AE(f,H.endpoint,mJh(H,v)).then(function(t){return t});
return Promise.resolve(f)};
mJh=function(f,H){H=_.J("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!f.startPlaybackInMutedState},H):Object.assign({},{vis:5,autonav:"1"},H);var v;H={contentPlaybackContext:_.KG(H,(v=_.U(f.endpoint.commandMetadata,_.jG))==null?void 0:v.url,window.location.href)};_.J("web_imp_player_mute_params")&&(H.overrideMutedAtStart=!f.startPlaybackInMutedState);return H};
gZi=function(f,H){var v=window.MutationObserver;v&&(j1=new v(function(t,M){t=_.V(t);for(var h=t.next();!h.done;h=t.next()){h=h.value;var y;if(y=h.type==="childList"&&h.target)a:{y=f;h=$JW(h.target);y=$JW(y);for(var m=null,W=0;W<h.length;W++)if(y.includes(h[W])){if(W===0){y=!1;break a}m=h[W];break}m?(h=Wpt(h,m),y=Wpt(y,m),y=h<y):y=!1}if(y){H();M.disconnect();break}}}),(v=Olw())&&j1.observe(v,{childList:!0,
subtree:!0}))};
Olw=function(){var f=document.getElementsByTagName("ytd-rich-grid-renderer");if(f.length>0)return f[0];f=document.getElementsByTagName("ytd-section-list-renderer");return f.length>0?f[0]:null};
$JW=function(f){for(var H=[];f;)H.push(f),f=f.parentElement;return H};
Wpt=function(f,H){var v=Array.from(H.children);H=f.indexOf(H);return H>0?v.indexOf(f[H-1]):-1};
sD=function(f,H,v){v=v===void 0?{}:v;return _.ZC(f,v,H)};
Iyx=function(f){switch(f){case "MUSIC":return!0;default:return!1}};
Sk0=function(f){return f==null?void 0:f.filter(function(H){return H.premiereTrailerBadgeRenderer})};
j2A=function(f){var H,v=f==null?void 0:(H=f.find(function(d){return d.thumbnailOverlayTimeStatusRenderer}))==null?void 0:H.thumbnailOverlayTimeStatusRenderer,t,M;
if((v==null?0:(t=v.icon)==null?0:t.iconType)&&Iyx(v==null?void 0:(M=v.icon)==null?void 0:M.iconType)){var h;return{icon:v==null?void 0:(h=v.icon)==null?void 0:h.iconType}}var y,m;var W=(f=(y=f==null?void 0:(W=f.find(function(d){return d.thumbnailBottomOverlayViewModel}))==null?void 0:W.thumbnailBottomOverlayViewModel)==null?void 0:(m=y.badges)==null?void 0:m.find(function(d){var Z,l;
return((Z=_.U(d,dJp))==null?void 0:(l=Z.inlinePlaybackBadgeData)==null?void 0:l.replicateAsTimestamp)===!0}))?_.U(f,dJp):void 0;
if(W==null?0:W.icon){var I,S;if((W=(I=_.Uae(W==null?void 0:W.icon))==null?void 0:(S=I.clientResource)==null?void 0:S.imageName)&&Iyx(W))return{icon:W}}return{}};
ev0=function(f,H){var v=s2x,t=_.V(_.gp(ZlW(new J8G(function(){},v,H)),void 0,"PAnyd")),M=t.next().value,h=t.next().value,y=new J8G(function(m){h(m)},v,H);
_.K4(function(){Promise.resolve().then(function(){var m,W=(m=f())!=null?m:{};y.playerControlsData=W;_.J("player_controls_skip_double_signal_old")&&(y.lastSeenPlayerApi=_.Db(W.playerApi));_.J("player_controls_skip_double_signal_old")||(y.lastSeenPlayerApi=_.Db(W.playerApi));ly5(y)});
_.Dt(function(){UJx(y)})},"HikUP");
_.Dt(function(){UJx(y)});
return function(){return M()}};
LpG=function(f){return function(H){var v=f(),t={playerState:H};if(H===1){var M;(M=v.playerApi)==null||M.loadModule("captions")}if(H===0){var h;(h=v.playerApi)==null||h.unloadModule("captions")}H!==-1&&v.setState(t)}};
xJh=function(f){return function(H){f().setState({playbackRate:H})}};
BHb=function(f){return function(H){var v=f(),t=v.playerApi,M=t==null?void 0:t.getVideoData(),h=(M==null?void 0:M.isLive)||!1;M=M==null?void 0:M.video_id;h={videoDuration:fpW(t||void 0),isLive:h,videoId:M};h.videoId!==v.videoId&&(h=Object.assign({},_.V9N(t),h));if(H==null?0:H.playertype)h.playerType=H.playertype;if(t){h.captionsAvailable=_.XO(t);H=h;var y;M=(y=t.getStoryboardLevel(t.getNumberOfStoryboardLevels()-1))==null?void 0:y.intervalMs;H.storyboardInterval=M?M/1E3:void 0;h.captionsAvailable&&
(h.captionsEnabled=_.Rip(t))}h.volumeMuted=!(t==null||!t.isMuted());v.setState(h)}};
zv5=function(f){return function(H){var v=f(),t=v.playerApi;if(t){var M=t.getPresentingPlayerType();H={playedTime:H||0,percentLoaded:t.getVideoLoadedFraction(),playerType:M};v.playerState===0&&(H.playedTime=v.videoDuration);v.isLive&&(M=t.getProgressState(M),H.playedTime-=M.seekableStart,H.videoDuration=fpW(t));if(v.playerType===1)t=!1;else{var h;if((h=v.uxConfig)==null?0:h.showCuedOverlay){var y;t=!((y=v.playerApi)==null?0:y.getPlayerStateObject(v.playerType).isDomPaused)}else t=!0}t&&delete H.playedTime;
v.setState(H)}}};
Fpb=function(f){return function(){var H=f(),v,t,M,h={volume:(M=(v=H.playerApi)==null?void 0:v.getVolume())!=null?M:0,volumeMuted:!((t=H.playerApi)==null||!t.isMuted())};H.setState(h)}};
r80=function(f){return function(){var H=f(),v=H.playerApi;if(v){var t={captionsAvailable:_.XO(v)};t.captionsAvailable&&(t.captionsEnabled=_.Rip(v));H.setState(t)}}};
KpW=function(f){return function(){var H=f();if(H.playerApi&&!(H.volumeMuted||H.controlsVisible&&H.isProbablyAScreenreaderUser)){H.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var v;(v=document.querySelector(".player-control-play-pause-icon"))==null||v.focus()}}};
DJx=function(f){return{appApi:Object.assign({},_.fGs(),{showCaptionsToggleToast:function(H){var v,t;(t=(v=f()).showCaptionsToggleToast)==null||t.call(v,H)},
openInMiniplayer:function(){var H,v;(v=(H=f()).openInMiniplayer)==null||v.call(H)}})}};
oZb=function(f,H){var v,t,M;return!!(f==null?0:(v=f.playerResponse)==null?0:(t=v.playerConfig)==null?0:(M=t.inlinePlaybackConfig)==null?0:M.showScrubbingControls)&&!(H==null?0:H.hideScrubbingControls)};
_.nZb=function(f){var H=!f.miniplayerIsActive;return[5,2,0].includes(f.miniplayerPlaybackState)||H};
ph0={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};Q2W=function(f,H){var v,t,M,h,y;_.Y(function(m){if(!H.length)return m.return([]);v=[];t=_.V(H);for(M=t.next();!M.done;M=t.next())h=M.value,(y=f.resolveIcon(h))&&!f.iconCache[y.url]&&v.push(_.fMr(f,y).then(function(){}).catch(function(){}));
return m.return(Promise.all(v))})};
um0=function(f,H){var v=[];H=(new Set(H)).values();H=_.V(H);for(var t=H.next();!t.done;t=H.next()){t=t.value;for(var M=_.V(Object.values(ph0)),h=M.next();!h.done;h=M.next())v.push({iconName:t,iconStyle:h.value})}Q2W(f.iconManager,v)};
_.ayA=function(f,H,v){var t=v!=null?v:f.iconsToFetch;t!=null&&t.length?H!==void 0&&H>=0?_.Lb(_.nN,function(){um0(f,t)},H):um0(f,t):Promise.resolve()};
J8G=function(f,H,v){var t=this;this.renderFn=f;this.listeners=H;this.context=v;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var M;this.lastSeenPlayerApi=_.Db((M=this.playerControlsData)==null?void 0:M.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.V9N(),void 0);_.J("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){ZlW(t).setState({playerState:-1});t.resetRecentlyNavigatedJobId&&_.nN.cancelJob(t.resetRecentlyNavigatedJobId);
t.recentlyNavigated=!0;t.resetRecentlyNavigatedJobId=_.nN.addJob(function(){t.recentlyNavigated=!1},8,1E4)})};
J8G.prototype.setState=function(f){if(!_.J("mweb_player_skip_no_op_state_changes")||!Hc0(f,this.state))if(this.state=Object.assign({},this.state,f),!_.J("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)f=-1,_.J("player_controls_log_creation_killswitch")||vkx()||(f=(0,_.ta)()),_.u0("pcu_s"),_.u0("pcu_se"),_.u0("pcu_rs"),this.renderFn(ZlW(this)),_.u0("pcu_re"),tKw(f),_.nN.addJob(function(){_.u0("pcu_ap")},8)};
var ZlW=function(f){var H;var v=_.Db((H=f.playerControlsData)==null?void 0:H.playerApi);return Object.assign({},f.state,{setState:f.boundSetState,domMeasurements:{progressBarLineRect:f.progressBarLineRect},playerApi:v,appApi:f.context.appApi,playerContainer:f.context.playerContainer,playerControlContainer:f.context.playerControlContainer,uxConfig:f.context.uxConfig})},ly5=function(f){f.listeners.forEach(function(H){f.eventListenerCleanupFunctions.push(H.register(function(){return ZlW(f)},function(){return f.getData()}))})},
UJx=function(f){f.eventListenerCleanupFunctions.forEach(function(H){H()});
f.eventListenerCleanupFunctions.length=0};
J8G.prototype.getData=function(){return this.playerControlsData};
var PdA=new _.Ak("crowdsourcedContextUserRatingFormFlowState");var GE5=new _.Ak("noteViewModel");var Zm=new _.Ak("abuseReportFlowState");var CdG=new _.Ak("feedbackFormFlowState");var EZG=new _.Ak("inputBoxViewModel");var NHF=new _.Ak("flowNextStepCommand");var c8W=new _.Ak("flowPrevStepCommand");var XhW=new _.Ak("updateFlowCommand");_.A8p=new _.Ak("flowStepRenderer");_.apt=new _.Ak("lengthValidationRule");var Ge5=new _.Ak("regexValidationRule");var Ek0=new _.Ak("selectedValidationRule");var blA=new _.Ak("talkToRecsViewModel");var ilW=new _.Ak("creatorGoalSetUpFlowDropdownItemViewModel");var kEW=new _.Ak("creatorGoalSetUpFlowDropdownViewModel");var dJp=new _.Ak("thumbnailBadgeViewModel");var THr=new _.Ak("checkboxGroupViewModel");_.JS=new _.Ak("radioButtonGroupViewModel");var whp=new _.Ak("radioButtonItemViewModel");var t$h=new _.Ak("panelFooterViewModel");var qki=new _.Ak("ypcCancelRecurrenceCommand");var fUh=new _.Ak("cancellationFlowState");var BuG=new _.Ak("premiumPurchaseFlowState");var HNA=new _.Ak("surveyAnswerCardRenderer");var vXG=new _.Ak("showMoreButtonRenderer");var tkr;var Mkw,hmW=function(){if(Mkw!==void 0)return Mkw;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;tkr===void 0&&(tkr=document.createElement("template"));var t=tkr;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return Mkw=f};var lf=function(){var f=_.K.apply(this,arguments)||this;f.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";f.goalDescription="";f.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";f.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";f.startButtonId="start-button";f.exampleButtonId="example-button";return f};
_.e(lf,_.K);_.R=lf.prototype;_.R.getGoalDropdownItems=function(){var f,H;return(H=_.U((f=this.data)==null?void 0:f.purchaseTargetDropdown,kEW))==null?void 0:H.dropdownItems};
_.R.getTimerDropdownItems=function(){var f,H;return(H=_.U((f=this.data)==null?void 0:f.timerDropdown,kEW))==null?void 0:H.dropdownItems};
_.R.getColorDropdownItems=function(){var f,H;return(H=_.U((f=this.data)==null?void 0:f.colorDropdown,kEW))==null?void 0:H.dropdownItems};
_.R.getDropdownItemText=function(f){var H;return(H=_.U(f,ilW))==null?void 0:H.itemLabel};
_.R.getDropdownItemValue=function(f){f=_.U(f,ilW);return(f==null?void 0:f.timeLimit)||(f==null?void 0:f.purchaseTarget)||(f==null?void 0:f.eligiblePurchaseType)};
_.R.updateFlowState=function(f){_.mb(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:f}])};
_.R.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.R.updateGoalValue=function(f){this.goal=f.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.R.onTextValueChanged=function(f){this.goalDescription=f.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.R.updateTimerValue=function(f){this.timer=f.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.R.updateTierValue=function(f){this.tier=f.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.R.getButtonViewModel=function(f){f=(f==null?void 0:f.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var H,v=_.U((H=this.data)==null?void 0:H.startGoalButton,_.af);return Object.assign({},v,{state:f})};
_.H7.Object.defineProperties(lf,{template:{configurable:!0,enumerable:!0,get:function(){return hmW()}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],lf.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],lf.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],lf.prototype,"goal",void 0);_.E([_.F(),_.N("design:type",Object)],lf.prototype,"goalDescription",void 0);_.E([_.F(),_.N("design:type",Object)],lf.prototype,"timer",void 0);_.E([_.F(),_.N("design:type",Object)],lf.prototype,"tier",void 0);
_.E([_.F(),_.N("design:type",Object)],lf.prototype,"startButtonId",void 0);_.E([_.F(),_.N("design:type",Object)],lf.prototype,"exampleButtonId",void 0);_.E([_.GW({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],lf);_.G(lf,"yt-creator-goal-set-up-flow-view-model",function(){return hmW()},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var RmG;var Vkx;var yaG;var Y0p=function(){return _.K.apply(this,arguments)||this};
_.e(Y0p,_.K);_.E([_.F(),_.N("design:type",Object)],Y0p.prototype,"data",void 0);_.E([_.GW({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],Y0p);
_.G(Y0p,"yt-survey-answer-card-renderer",function(){if(yaG===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;Vkx===void 0&&(Vkx=document.createElement("template"));var t=Vkx;v.call(H,t.content.cloneNode(!0),f.content.firstChild);yaG=f}f=yaG;return f},{mode:2});var mRi;var $RW;var UD=function(){return _.K.apply(this,arguments)||this};
_.e(UD,_.K);_.R=UD.prototype;_.R.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.R.selectedItemChanged=function(f){_.mb(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[f.feedbackToken||""]}])};
_.R.surveyAnswerCardRendererClicked=function(f){if(f.target&&_.U(f.model.item,HNA)){var H=f.target;f=_.U(f.model.item,HNA);f.onTapCommand?_.Oj(H,[f.onTapCommand],H):this.data.onTapCommand&&_.Oj(H,[this.data.onTapCommand],H);this.selectedItemChanged(f)}};
_.R.checkIsCancellationStyle=function(f){return f==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.R.updateSelectedItemFromBinding=function(f){this.selectedItem=f.detail.value};
UD.prototype.onSelectedItemChanged=UD.prototype.onSelectedItemChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],UD.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],UD.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],UD.prototype,"selectedItem",void 0);_.E([_.F({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.N("design:type",Boolean)],UD.prototype,"isCancellationStyle",void 0);
_.E([_.Zw("selectedItem"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UD.prototype,"onSelectedItemChanged",null);_.E([_.GW({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],UD);
_.G(UD,"yt-survey-flow-step-renderer",function(){if($RW===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;mRi===void 0&&(mRi=document.createElement("template"));var t=mRi;v.call(H,t.content.cloneNode(!0),f.content.firstChild);$RW=f}f=$RW;return f},{mode:2});var e1=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return f};
_.e(e1,_.K);e1.prototype.handleSurveyFlowStepOptionChanged=function(f){this.ytdReduxBehavior.dispatch(_.yq({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:f}));_.mb(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:f}}])};
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],e1.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],e1.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],e1.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],e1);
_.G(e1,"ytd-survey-flow-step-renderer",function(){if(RmG!==void 0)return RmG;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return RmG=f},{mode:1});_.IUx=_.a(function(f){var H=f.data;var v=f.hideDivider;var t=f.isChannelInfoCard;f={};return _.O("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.O("div",{class:_.S2("yt-profile-identity-info-view-model-wiz__frame",(f["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=function(){return!H().channelBanner},f))},_.O(W$G,{profileIdentityInfoData:H}),_.O("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},_.O("div",
{class:"yt-profile-identity-info-view-model-wiz__avatar"},_.O(_.Jj,{data:function(){return H().avatar}},{avatarViewModel:_.K5})),_.O(ONp,{profileIdentityInfoData:H})),_.O(_.g,{cond:function(){return H().channelDescription},
then:function(M){var h={};return _.O("div",{class:_.S2((h["yt-profile-identity-info-view-model-wiz__channel-description-alternate"]=function(){return!(t==null||!t())},h["yt-profile-identity-info-view-model-wiz__channel-description"]=function(){return!(t==null?0:t())},h))},M)}}),_.O(gXp,{profileIdentityInfoData:H}),_.O(_.g,{cond:function(){return!(v==null?0:v())},
then:function(){return _.O("div",{class:"yt-profile-identity-info-view-model-wiz__divider"})}})))},"Cf");
_.IUx.idomCompat=!0;var gXp=_.a(function(f){var H=f.profileIdentityInfoData;return _.O("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},_.O(_.eK,{each:function(){return H().subscribeButton?[H().subscribeButton,H().channelAccess]:[H().channelAccess]}},function(v){return _.O("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.O("div",{class:"yt-profile-identity-info-view-model-wiz--button"},_.O(_.Jj,{data:function(){return v}},{buttonViewModel:_.Wp,
subscribeButtonViewModel:_.KX})))}))},"Df"),ONp=_.a(function(f){var H=f.profileIdentityInfoData;
return _.O("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},_.O("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},_.O(S0x,{profileIdentityInfoData:H}),_.O(_.Jj,{data:function(){return H().threeDotMenu}},{buttonViewModel:_.Wp})),_.O(dRG,{profileIdentityInfoData:H}))},"Ef"),S0x=_.a(function(f){var H=f.profileIdentityInfoData;
return _.O("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.O("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},function(){return H().channelDisplayName}),_.O(_.g,{cond:function(){return H().verifiedOrOacBadge},
then:function(v){return _.O("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.O(_.Hn,{data:function(){return{thumbnails:[{url:v().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"Ff"),W$G=_.a(function(f){var H=f.profileIdentityInfoData;
return _.O("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},_.O(_.Jj,{data:function(){var v=H().channelBanner;if(v)return{imageBannerViewModel:{image:v.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(v){return _.O("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},_.O(_.Pr,{data:v.data,
isPositionRelative:!0}))}}))},"Gf"),dRG=_.a(function(f){var H=f.profileIdentityInfoData;
return _.O("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.O("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.O("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},function(){return H().channelHandle}),_.O(_.g,{cond:function(){return H().channelPronouns&&H().channelHandle},
then:function(){return _.O("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022")}}),_.O("div",{dir:"auto",
class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},function(){return H().channelPronouns})),_.O("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.O("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},function(){return H().leftOfBulletInfo}),_.O(_.g,{cond:function(){return H().leftOfBulletInfo&&H().rightOfBulletInfo},
then:function(){return _.O("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022")}}),_.O("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},function(){return H().rightOfBulletInfo})))},"Hf");var jPF;var L7=function(){return _.K.apply(this,arguments)||this};
_.e(L7,_.K);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],L7.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],L7.prototype,"data",void 0);_.E([_.u({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],L7);
_.G(L7,"ytd-channel-history-renderer",function(){if(jPF!==void 0)return jPF;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return jPF=f},{mode:1});var sP5;var ZNp=function(){return _.K.apply(this,arguments)||this};
_.e(ZNp,_.K);_.E([_.F(),_.N("design:type",Object)],ZNp.prototype,"data",void 0);_.E([_.u({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],ZNp);
_.G(ZNp,"ytd-feature-enablement-info-renderer",function(){if(sP5!==void 0)return sP5;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return sP5=f},{mode:1});var JaW;var lUi;var xL=function(){var f=_.K.apply(this,arguments)||this;f.textBoxMaxLength=_.J("enable_tvod_campaign_code_integration")?15:12;return f};
_.e(xL,_.K);_.R=xL.prototype;_.R.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.R.onSubmit=function(){var f=this.data.serviceEndpoint,H=_.U(f,_.iF);H&&f&&(H.couponCode=this.userInput,_.t8().resolve(_.MJ).resolveCommand(f,{form:{element:this.hostElement}}))};
_.R.validate=function(){var f=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=f&&!this.data.errorMessage;this.showErrorMessage=f&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.J("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.R.computeStyle=function(f){return f};
_.R.computeShowValidationBelowInput=function(f){return f!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.R.updateUserInputFromBinding=function(f){this.userInput=f.currentTarget.value};
_.R.updateShowErrorMessageFromBinding=function(f){this.showErrorMessage=f.detail.value};
_.H7.Object.defineProperties(xL.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
xL.prototype.dataChanged=xL.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],xL.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],xL.prototype,"data",void 0);_.E([_.F(),_.N("design:type",String)],xL.prototype,"userInput",void 0);_.E([_.F(),_.N("design:type",Boolean)],xL.prototype,"disableApplyButton",void 0);_.E([_.F(),_.N("design:type",Boolean)],xL.prototype,"hideApplyButton",void 0);
_.E([_.F(),_.N("design:type",Boolean)],xL.prototype,"hideErrorMessage",void 0);_.E([_.F(),_.N("design:type",Boolean)],xL.prototype,"showTick",void 0);_.E([_.F(),_.N("design:type",Boolean)],xL.prototype,"showErrorMessage",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],xL.prototype,"couponStyle",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.N("design:type",Boolean)],xL.prototype,"showValidationBelowInput",void 0);_.E([_.F(),_.N("design:type",Object)],xL.prototype,"textBoxMaxLength",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xL.prototype,"dataChanged",null);
_.E([_.z("showTick","showErrorMessage","userInput"),_.N("design:type",String),_.N("design:paramtypes",[])],xL.prototype,"validationState",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],xL);
_.G(xL,"ytd-ypc-coupon-renderer",function(){if(lUi!==void 0)return lUi;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return lUi=f},{mode:1});var BP=function(){return _.K.apply(this,arguments)||this};
_.e(BP,_.K);BP.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"}}}};
BP.prototype.computeStyle=function(f){return f};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],BP.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],BP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],BP.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],BP.prototype,"buttonStyle",void 0);_.E([_.u({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],BP);
_.G(BP,"ytd-flow-bottom-bar-renderer",function(){if(JaW!==void 0)return JaW;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return JaW=f},{mode:1});var URA;var emW;var L$5;var zY=function(){return _.K.apply(this,arguments)||this};
_.e(zY,_.K);zY.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
zY.prototype.focus=function(f){this.title&&_.kX(this.title,f)};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],zY.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],zY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],zY.prototype,"data",void 0);_.E([_.lJ("#title"),_.N("design:type",HTMLElement)],zY.prototype,"title",void 0);_.E([_.u({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],zY);
_.G(zY,"ytd-flow-top-bar-renderer",function(){if(L$5!==void 0)return L$5;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return L$5=f},{mode:1});var xRW;var Bkx;var zmi;var Fr=function(){return _.K.apply(this,arguments)||this};
_.e(Fr,_.K);Fr.prototype.freeTextValueChanged=function(){_.mb(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
Fr.prototype.updateFreeTextValueFromBinding=function(f){this.freeTextValue=f.detail.value};
_.H7.Object.defineProperties(Fr.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var f,H,v=(H=(f=this.data)==null?void 0:f.responseMaxLength)!=null?H:500,t;return((t=this.freeTextValue)!=null?t:"").length>=v?"maxed-out":""}}});
Fr.prototype.freeTextValueChanged=Fr.prototype.freeTextValueChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Fr.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Fr.prototype,"data",void 0);_.E([_.F(),_.N("design:type",String)],Fr.prototype,"freeTextValue",void 0);_.E([_.lJ("#user-input"),_.N("design:type",HTMLTextAreaElement)],Fr.prototype,"input",void 0);
_.E([_.z("freeTextValue"),_.N("design:type",Object),_.N("design:paramtypes",[])],Fr.prototype,"characterLimitClass",null);_.E([_.Zw("freeTextValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fr.prototype,"freeTextValueChanged",null);_.E([_.GW({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],Fr);
_.G(Fr,"yt-free-text-input-flow-step-renderer",function(){if(zmi===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;Bkx===void 0&&(Bkx=document.createElement("template"));var t=Bkx;v.call(H,t.content.cloneNode(!0),f.content.firstChild);zmi=f}f=zmi;return f},{mode:2});var rM=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return f};
_.e(rM,_.K);rM.prototype.handleFreeTextFlowStepInputChanged=function(f){_.mb(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:f}}])};
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],rM.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],rM.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],rM.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],rM);
_.G(rM,"ytd-free-text-input-flow-step-renderer",function(){if(xRW!==void 0)return xRW;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return xRW=f},{mode:1});var F$t;var rap;var K$G=function(){return _.K.apply(this,arguments)||this};
_.e(K$G,_.K);_.E([_.F(),_.N("design:type",Object)],K$G.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],K$G);
_.G(K$G,"ytd-metadata-line-renderer",function(){if(rap!==void 0)return rap;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return rap=f},{mode:1});var K7=function(){return _.K.apply(this,arguments)||this};
_.e(K7,_.K);K7.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],K7.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],K7.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],K7.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],K7.prototype,"isMasthead",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],K7);
_.G(K7,"ytd-media-product-renderer",function(){if(F$t!==void 0)return F$t;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return F$t=f},{mode:1});var DRA;var Dm=function(){return _.K.apply(this,arguments)||this};
_.e(Dm,_.K);Dm.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
Dm.prototype.onBillboardImageLoaded=function(){_.YE(this.hostElement,"yt-refit")};
Dm.prototype.onBillboardImageLoaded=Dm.prototype.onBillboardImageLoaded;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Dm.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Dm.prototype,"data",void 0);_.E([_.lJ("#billboardImage"),_.N("design:type",Object)],Dm.prototype,"billboardImage",void 0);_.E([_.sE("yt-img-shadow-loaded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Dm.prototype,"onBillboardImageLoaded",null);
_.E([_.u({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],Dm);
_.G(Dm,"ytd-billboard-masthead-renderer",function(){if(DRA!==void 0)return DRA;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return DRA=f},{mode:1});var oXb;var ow=function(){var f=_.K.apply(this,arguments)||this;f.smallSize=!1;return f};
_.e(ow,_.K);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],ow.prototype,"ytComponentBehaviorType",void 0);_.E([_.F(),_.N("design:type",Object)],ow.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],ow.prototype,"smallSize",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],ow);
_.G(ow,"ytd-bullet-formatted-string",function(){if(oXb!==void 0)return oXb;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return oXb=f},{mode:1});var nXF;var n7=function(){return _.K.apply(this,arguments)||this};
_.e(n7,_.K);n7.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],n7.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],n7.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],n7.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],n7);
_.G(n7,"ytd-offer-detail-renderer",function(){if(nXF!==void 0)return nXF;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return nXF=f},{mode:1});var p8x;var p7=function(){return _.K.apply(this,arguments)||this};
_.e(p7,_.K);p7.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"}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],p7.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],p7.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],p7.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],p7);
_.G(p7,"ytd-offer-detail-step-renderer",function(){if(p8x!==void 0)return p8x;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return p8x=f},{mode:1});var QPW;var Qr=function(){var f=_.K.apply(this,arguments)||this;f.isInOfferModule=!1;return f};
_.e(Qr,_.K);_.R=Qr.prototype;_.R.computeHasEndpoint=function(){var f;return!((f=this.data)==null||!f.onClickCommand)};
_.R.dataChanged=function(){var f;if((f=this.data)==null?0:f.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")};
_.R.detached=function(){var f;if((f=this.data)==null?0:f.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.R.handleClickEvent=function(){var f;if((f=this.data)==null?0:f.onClickCommand){var H;this.componentBehavior.resolveCommand((H=this.data)==null?void 0:H.onClickCommand)}};
_.R.onContentKeyDown=function(f){f.key==="Enter"?this.handleClickEvent(f):f.key===" "&&f.preventDefault()};
_.R.onContentKeyUp=function(f){f.key===" "&&this.handleClickEvent(f)};
Qr.prototype.dataChanged=Qr.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Qr.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Qr.prototype,"componentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Qr.prototype,"data",void 0);_.E([_.F({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Qr.prototype,"hasEndpoint",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Qr.prototype,"isInOfferModule",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qr.prototype,"dataChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],Qr);
_.G(Qr,"ytd-channel-masthead-renderer",function(){if(QPW!==void 0)return QPW;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return QPW=f},{mode:1});var uBW;var uf=function(){var f=_.K.apply(this,arguments)||this;f.thumbnailObjectFit="CONTAIN";f.thumbnailObjectPosition="LEFT";f.isExpanded=!1;return f};
_.e(uf,_.K);_.R=uf.prototype;_.R.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.R.dataChanged=function(){this.resetStates()};
_.R.computeisTapOnOfferInfoContainerEnabled=function(){var f;return((f=this.data)==null?void 0:f.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.R.onExpandBtnClick=function(){var f,H=_.U((f=this.data)==null?void 0:f.showMoreButtonRenderer,vXG);H&&_.WL(_.UV(),H.trackingParams);this.isExpanded=!this.isExpanded};
_.R.onOfferInfoClick=function(f){this.isTapOnOfferInfoContainerEnabled&&(_.w6(_.f2(f)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.qY(_.f2(f)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.R.onBottomBarClick=function(){this.executeTapCommand()};
_.R.executeTapCommand=function(){var f,H=(f=this.data)==null?void 0:f.tapCommand;H&&this.ytComponentBehavior.resolveCommand(H)};
_.R.resetStates=function(){this.isExpanded=!1};
_.H7.Object.defineProperties(uf.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var f=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),H,v,t;return((H=this.data)==null?void 0:H.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&f&&!!((v=this.data)==null?0:(t=v.benefits)==null?0:t.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var f,H,v;return((H=_.U((f=this.data)==null?void 0:f.showMoreButtonRenderer,vXG))==null?void 0:H.showMoreButtonTitle)||((v=this.data)==null?void 0:v.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var f,H,v;return((H=_.U((f=this.data)==null?void 0:f.showMoreButtonRenderer,vXG))==null?void 0:H.showLessButtonTitle)||((v=this.data)==null?void 0:v.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var f;return(f=this.showLessButtonTitle)!=null?f:""}var H;return(H=this.showMoreButtonTitle)!=null?H:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var f,H,v;return((f=this.data)==null?void 0:f.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((H=this.data)==null?0:H.footerTitle)||((v=this.data)==null?0:v.footerSubtitle))}}});
uf.prototype.dataChanged=uf.prototype.dataChanged;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],uf.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],uf.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],uf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",String)],uf.prototype,"thumbnailObjectFit",void 0);
_.E([_.F(),_.N("design:type",String)],uf.prototype,"thumbnailObjectPosition",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.N("design:type",Boolean)],uf.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.E([_.F(),_.N("design:type",Object)],uf.prototype,"isExpanded",void 0);_.E([_.F(),_.N("design:type",Object)],uf.prototype,"data",void 0);_.E([_.F({computed:"computeIcon_(data.footerIcon)"}),_.N("design:type",String)],uf.prototype,"icon",void 0);
_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uf.prototype,"dataChanged",null);_.E([_.z("data.thumbnail"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],uf.prototype,"hasThumbnail",null);_.E([_.z("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],uf.prototype,"enableExpandButton",null);
_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],uf.prototype,"enableOfferContentIcon",null);_.E([_.z("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.N("design:type",Object),_.N("design:paramtypes",[])],uf.prototype,"showMoreButtonTitle",null);_.E([_.z("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.N("design:type",Object),_.N("design:paramtypes",[])],uf.prototype,"showLessButtonTitle",null);
_.E([_.z("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.N("design:type",String),_.N("design:paramtypes",[])],uf.prototype,"expandedBtnText",null);_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],uf.prototype,"enableBottomBar",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],uf);
_.G(uf,"ytd-offer-card-renderer",function(){if(uBW!==void 0)return uBW;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return uBW=f},{mode:1});var aUw;var aw=function(){return _.K.apply(this,arguments)||this};
_.e(aw,_.K);aw.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"}}}};
aw.prototype.onClick=function(f){if(!_.w6(f.composedPath()||[],this.hostElement,["A".toString()])){var H,v;if((f=(v=_.U((H=this.data)==null?void 0:H.actionButton,_.nv))==null?void 0:v.command)&&!this.ytComponentBehavior.resolveCommand(f)){var t;(t=_.UV())==null||t.clickCommand(f);_.t8().resolve(_.MJ).resolveCommand(f,{form:{element:this.hostElement}})}}};
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],aw.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],aw.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],aw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],aw.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],aw);
_.G(aw,"ytd-offer-content-renderer",function(){if(aUw!==void 0)return aUw;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return aUw=f},{mode:1});var P7x;var PP=function(){return _.K.apply(this,arguments)||this};
_.e(PP,_.K);PP.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.H7.Object.defineProperties(PP.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var f,H;return!((f=this.data)==null||!f.title)||!((H=this.data)==null||!H.description)}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],PP.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],PP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],PP.prototype,"data",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],PP.prototype,"hasHeaderData",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],PP);
_.G(PP,"ytd-offer-section-renderer",function(){if(P7x!==void 0)return P7x;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return P7x=f},{mode:1});var Gjr;var GY=function(){return _.K.apply(this,arguments)||this};
_.e(GY,_.K);
GY.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"}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],GY.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],GY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],GY.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],GY);
_.G(GY,"ytd-offer-selection-step-renderer",function(){if(Gjr!==void 0)return Gjr;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Gjr=f},{mode:1});var C7w;var C7=function(){return _.K.apply(this,arguments)||this};
_.e(C7,_.K);C7.prototype.computeStyle=function(f){return f};
C7.prototype.computeImageWidth=function(f){return f==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.E([_.F({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.N("design:type",String)],C7.prototype,"containerStyle",void 0);_.E([_.F({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.N("design:type",String)],C7.prototype,"imageWidth",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],C7.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],C7.prototype,"data",void 0);
_.E([_.u({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],C7);
_.G(C7,"ytd-confirmation-masthead-renderer",function(){if(C7w!==void 0)return C7w;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return C7w=f},{mode:1});var EXb;var ED=function(){return _.K.apply(this,arguments)||this};
_.e(ED,_.K);ED.prototype.computeStyle=function(f){return f};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ED.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],ED.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.N("design:type",String)],ED.prototype,"containerStyle",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],ED);
_.G(ED,"ytd-purchase-complete-detail-renderer",function(){if(EXb!==void 0)return EXb;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return EXb=f},{mode:1});var NkW;var NX=function(){var f=_.K.apply(this,arguments)||this;f.scriptsAppended=!1;return f};
_.e(NX,_.K);NX.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"}}}};
NX.prototype.onDataChanged=function(){var f=this.get("data.gtmId");f&&(_.F9(f,_.a8("GL","")),this.setupConversionTracking())};
NX.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var f=document.createElement("noscript");f.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(f);this.scriptsAppended=!0}};
NX.prototype.onDataChanged=NX.prototype.onDataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],NX.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],NX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],NX.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],NX.prototype,"scriptsAppended",void 0);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NX.prototype,"onDataChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],NX);
_.G(NX,"ytd-purchase-complete-step-renderer",function(){if(NkW!==void 0)return NkW;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return NkW=f},{mode:1});var ca0;var cP=function(){var f=_.K.apply(this,arguments)||this;f.darkerDarkTheme=_.J("web_darker_dark_theme");return f};
_.e(cP,_.K);cP.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],cP.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],cP.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],cP.prototype,"darkerDarkTheme",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],cP);
_.G(cP,"ytd-ypc-transaction-error-message-renderer",function(){if(ca0!==void 0)return ca0;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return ca0=f},{mode:1});var X85;var Aa5;var Xr=function(){var f=_.K.apply(this,arguments)||this;f.handlePhoneVerificationSuccess=function(H){if(f.isValidPhoneVerificationCompletionMessageEvent(H)){var v;((v=f.data)==null?0:v.nextStepCommand)&&f.ytComponentBehavior.resolveCommand(f.data.nextStepCommand)}};
return f};
_.e(Xr,_.K);Xr.prototype.isValidPhoneVerificationCompletionMessageEvent=function(f){if(f.data!=="yt-phone-verification-complete")return!1;f=_.wu(f.origin);return f!==null&&f.includes("youtube.com")};
Xr.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
Xr.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Xr.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Xr.prototype,"data",void 0);_.E([_.GW({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],Xr);
_.G(Xr,"yt-feature-enablement-soft-entry-renderer",function(){if(Aa5===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;X85===void 0&&(X85=document.createElement("template"));var t=X85;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Aa5=f}f=Aa5;return f},{mode:1});var bNp;var iNt;var kjw;var Tkx;var w8F=function(){return _.K.apply(this,arguments)||this};
_.e(w8F,_.K);_.E([_.F(),_.N("design:type",Object)],w8F.prototype,"data",void 0);_.E([_.GW({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],w8F);
_.G(w8F,"yt-benefits-item-renderer",function(){if(Tkx===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;kjw===void 0&&(kjw=document.createElement("template"));var t=kjw;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Tkx=f}f=Tkx;return f},{mode:2});var q0h;var fKx;var AS=function(){return _.K.apply(this,arguments)||this};
_.e(AS,_.K);AS.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
AS.prototype.computeisWithoutPadding=function(){var f;return((f=this.data)==null?void 0:f.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],AS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],AS.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.N("design:type",Boolean)],AS.prototype,"isWithoutPadding",void 0);_.E([_.GW({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],AS);
_.G(AS,"yt-benefits-section-renderer",function(){if(fKx===void 0){var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;q0h===void 0&&(q0h=document.createElement("template"));var t=q0h;v.call(H,t.content.cloneNode(!0),f.content.firstChild);fKx=f}f=fKx;return f},{mode:2});var bf=function(){return _.K.apply(this,arguments)||this};
_.e(bf,_.K);bf.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
bf.prototype.computeisUsingLargeWidth=function(){var f;return((f=this.data)==null?void 0:f.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],bf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],bf.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.N("design:type",Boolean)],bf.prototype,"isUsingLargeWidth",void 0);_.E([_.GW({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],bf);
_.G(bf,"yt-benefits-flow-step-renderer",function(){if(iNt===void 0){var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;bNp===void 0&&(bNp=document.createElement("template"));var t=bNp;v.call(H,t.content.cloneNode(!0),f.content.firstChild);iNt=f}f=iNt;return f},{mode:2});var HbW;var vFw;var kL=function(){return _.K.apply(this,arguments)||this};
_.e(kL,_.K);kL.prototype.checkIsUsingLargeWidth=function(){var f;return((f=this.data)==null?void 0:f.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.E([_.F(),_.N("design:type",Object)],kL.prototype,"data",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],kL.prototype,"ytRendererBehavior",void 0);_.E([_.F({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.N("design:type",Boolean)],kL.prototype,"isUsingLargeWidth",void 0);_.E([_.GW({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],kL);
_.G(kL,"yt-confirmation-flow-step-renderer",function(){if(vFw===void 0){var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;HbW===void 0&&(HbW=document.createElement("template"));var t=HbW;v.call(H,t.content.cloneNode(!0),f.content.firstChild);vFw=f}f=vFw;return f},{mode:2});var tNG;var MNx;var hlW=function(){return _.K.apply(this,arguments)||this};
_.e(hlW,_.K);_.E([_.F(),_.N("design:type",Object)],hlW.prototype,"data",void 0);_.E([_.GW({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],hlW);
_.G(hlW,"yt-info-flow-step-renderer",function(){if(MNx===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;tNG===void 0&&(tNG=document.createElement("template"));var t=tNG;v.call(H,t.content.cloneNode(!0),f.content.firstChild);MNx=f}f=MNx;return f},{mode:2});var RlW;var VNA;var y7W=function(){return _.K.apply(this,arguments)||this};
_.e(y7W,_.K);_.E([_.F(),_.N("design:type",Object)],y7W.prototype,"data",void 0);_.E([_.GW({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],y7W);
_.G(y7W,"yt-info-list-flow-step-renderer",function(){if(VNA===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;RlW===void 0&&(RlW=document.createElement("template"));var t=RlW;v.call(H,t.content.cloneNode(!0),f.content.firstChild);VNA=f}f=VNA;return f},{mode:2});var YPw=_.a(function(f){var H=f.data;return _.O("styled-text-view-model",{class:_.S2("ytStyledTextViewModelHost",function(){return SSb(H().fontAttributes)},function(){return IpF(H().color)})},_.O(_.iq,{text:function(){return H().text},
ariaLabel:function(){var v,t,M;return(M=(v=H().accessibility)==null?void 0:(t=v.accessibilityData)==null?void 0:t.label)!=null?M:""}}))},"If");
YPw.idomCompat=!0;var m$W=_.a(function(f){var H=function(){var M,h,y,m;return(m=(y=(M=f.alt)==null?void 0:M.call(f))!=null?y:(h=f.data().accessibilityData)==null?void 0:h.label)!=null?m:""},v=function(){return f.data().imageWidth},t=function(){return f.data().imageHeight};
return _.O("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.O(_.g,{cond:function(){var M=f.data();if(M){var h,y,m;var W=((h=_.t8().resolve(_.vh(_.TK)))==null?0:h())?(y=M.imageDark)!=null?y:M.imageLight:(m=M.imageLight)!=null?m:M.imageDark}else W=void 0;return W},
then:function(M){return _.O(_.Hn,Object.assign({},f,{data:M,alt:H,targetWidth:v,targetHeight:t,preserveHeight:!0,preserveWidth:!0}))}}))},"Jf");
m$W.idomCompat=!0;var TY=_.a(function(f){var H=f.data;f=_.vK(function(){return H().slots},[]);
var v=_.vK(function(){return H().layoutProperties},{}),t=_.t8().resolve(_.qE);
return _.O("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:mwi(v,t)},_.O(_.eK,{each:f,keyBy:"INDEX"},function(M){return _.O("div",{class:"ytContainerLayoutViewModelSlot",style:mwi(function(){return M().layoutProperties},t)},_.O(_.Jj,{data:function(){return M().contents}},{containerLayoutViewModel:TY,
badgeViewModel:_.to,buttonViewModel:_.Wp,styledTextViewModel:YPw,contentPreviewImageViewModel:function(h){return _.O(_.M3,{data:h.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(h){return _.O(m$W,{data:h.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Kf");
TY.idomCompat=!0;var $$5=_.a(function(f){var H=f.data;var v=f.stateFns;var t=function(){var I=H(),S=I.productId;return!(!I.clearGroupId&&!S)},M=function(){var I=H(),S=I.clearGroupId;
return(I=I.productId)?v().isProductSelected(I):S?v().getSelectedProductByGroupId(S)==null:!1},h=function(){var I=H(),S=I.clearGroupId;
if(I=I.productId)v().onProductSelected(I);else if(S)v().onClearGroupSelected(S)},y=function(){var I=H(),S=I.clearGroupId;
if(I=I.productId){var d;return"group:"+(((d=v().getProductById(I))==null?void 0:d.groupId)||"")}return S?"group:"+S:""},m=_.vK(function(){return H().header},[]),W=_.vK(function(){return H().body},[]);
return _.O("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.O(_.g,{cond:function(){return m().length>0||t()},
then:function(){return _.O("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.O("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.O(_.Jj,{data:m},{containerLayoutViewModel:function(I){return _.O("div",{class:"ytPdpCardSectionViewModelContentItem"},_.O(TY,{data:I.data}))},
styledTextViewModel:function(I){return _.O("div",{class:"ytPdpCardSectionViewModelContentItem"},_.O(YPw,{data:I.data}))}})),_.O(_.g,{cond:t,
then:function(){return _.O("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.O(_.nB,{checked:M,name:y,onChange:h}))}}))}}),_.O(_.g,{cond:function(){return W().length>0},
then:function(){return _.O("div",null,_.O(_.Jj,{data:W},{containerLayoutViewModel:function(I){return _.O("div",{class:"ytPdpCardSectionViewModelContentItem"},_.O(TY,{data:I.data}))}}))}}))},"Lf");
$$5.idomCompat=!0;var WUA=_.a(function(f){var H=f.data;var v=f.stateFns;return _.O("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.O(_.g,{cond:function(){return H().banner},
then:function(t){return _.O("div",{class:"ytPdpCardViewModelBanner"},_.O(_.iq,{text:t}))}}),_.O(_.Jj,{data:function(){return H().sections}},{pdpCardSectionViewModel:function(t){t=t.data;
var M={};return _.O("div",{class:_.S2("ytPdpCardViewModelSectionContainer",(M.ytPdpCardViewModelShowDividers=function(){return H().showDividers},M))},_.O($$5,{data:t,
stateFns:v}))}}))},"Mf");
WUA.idomCompat=!0;var Obr=_.a(function(f){var H=f.data;var v=f.isOverlay;f={};return _.O("pdp-masthead-view-model",{class:_.S2("ytPdpMastheadViewModelHost",(f.ytPdpMastheadViewModelIsOverlay=v,f))},_.O(_.Jj,{data:function(){return H().image}},{contentPreviewImageViewModel:_.M3,
themedImageViewModel:function(t){return _.O(m$W,{data:t.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.O(_.g,{cond:function(){return H().title},
then:function(t){return _.O("h1",{class:"ytPdpMastheadViewModelHeading"},_.O(_.iq,{text:t,isOverlay:v}))}}),_.O(_.eK,{each:function(){var t;
return(t=H().finePrint)!=null?t:[]}},function(t){return _.O("div",{class:"ytPdpMastheadViewModelFinePrint"},_.O(_.iq,{text:t,
isOverlay:v}))}))},"Nf");
Obr.idomCompat=!0;var gFr=_.a(function(f){var H=f.data;var v=f.stateFns;var t=function(){return"pdp-pricing-group-selector-"+H().pricingGroupAttributeIds},M=_.vK(function(){return H().pricingGroupSelectorSectionHeader});
return _.O("pdp-pricing-group-selector-view-model",null,_.O(_.g,{cond:function(){return!!M()},
then:function(){return _.O(_.Jj,{data:M},{sectionHeaderViewModel:function(h){h=h.data;var y={};return _.O("div",{class:_.S2("ytPdpPricingGroupSelectorViewModelSectionHeader",(y.ytPdpPricingGroupSelectorViewModelFullBleed=!0,y.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,y))},_.O(_.$b,{data:h}))}})}}),_.O("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.O(_.eK,{each:function(){var h=v().getSelectedProductByGroupId(H().groupId);
if(!h)return _.nb(Error("Nj`"+H().groupId)),[];var y,m=(y=H().pricingGroupAttributeIds)!=null?y:[],W;if((W=h.pricingGroups)==null||!W.length||!m.length)return[];y=h.pricingGroups.filter(function(Z){return m.length?Z.pricingGroupAttributes.every(function(l){return m.includes(l)}):!1});
h=[];if(m.length>0){y=[].concat(_.pS(y));W=_.V(m);for(var I=W.next(),S={};!I.done;S={targetAttrId:void 0},I=W.next())S.targetAttrId=I.value,I=y.findIndex(function(Z){return function(l){return l.pricingGroupAttributes.includes(Z.targetAttrId)}}(S)),I!==-1&&(h.push(y[I]),y.splice(I,1))}var d=v().getSelectedPricingGroupAttributesByGroupId(H().groupId);
return h.map(function(Z){var l=!1;d&&Z.pricingGroupAttributes&&(l=Iw(Z.pricingGroupAttributes,d));return{pricingGroup:Z,isSelected:l}})},
keyBy:function(h){return h.pricingGroup.pricingGroupId}},function(h){return _.O("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.O("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.O(_.Jj,{data:function(){return h().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:TY})),_.O("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.O(_.nB,{checked:function(){return h().isSelected},
name:t,onClick:function(){v().onPricingGroupSelected(h().pricingGroup.pricingGroupId)}})))})))},"Of");
gFr.idomCompat=!0;var IK5=_.a(function(f){var H=f.data;var v=f.stateFns;var t=function(){var y=v().getSelectedPricingOptions().map(function(I){return I.pricingOptionId}),m=v().getSelectedProductByGroupId(H().groupId);
if(!m)return _.nb(Error("Oj`"+H().groupId)),[];var W=v().getSelectedPricingGroupAttributesByGroupId(H().groupId);return Zci(m.pricingOptions,W,y)},M=_.vK(function(){return H().pricingOptionSelectorSectionHeader}),h=function(){return t().length>1};
return _.O("pdp-pricing-option-selector-view-model",null,_.O(_.g,{cond:function(){return!!M()&&h()},
then:function(){return _.O(_.Jj,{data:M},{sectionHeaderViewModel:function(y){y=y.data;var m={};return _.O("div",{class:_.S2("ytPdpPricingOptionSelectorViewModelSectionHeader",(m.ytPdpPricingOptionSelectorViewModelFullBleed=!0,m.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,m))},_.O(_.$b,{data:y}))}})}}),_.O(_.g,{cond:h,
then:function(){return _.O("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.O(_.eK,{each:t,keyBy:"INDEX"},function(y){return _.O("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.O("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.O(_.Jj,{data:function(){return y().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:TY})),_.O("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.O(_.nB,{checked:function(){return y().isSelected},
onClick:function(){v().onPricingOptionSelected(y().pricingOption.pricingOptionId);var m=y().pricingOption.onSelectPricingOption;if(m=_.GK(m)){var W;(W=_.t8().resolve(_.MJ))==null||W.resolveCommand(m)}}})))}))}}))},"Pf");
IK5.idomCompat=!0;var SPw=_.a(function(f){var H=f.data;var v=f.stateFns;return _.O("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.O(_.Jj,{data:function(){var t,M;return(M=(t=v().getSelectedPricingOptions()[0])==null?void 0:t.primaryButton)!=null?M:H().emptyStateButton}},{buttonViewModel:_.Wp}))},"Qf");
SPw.idomCompat=!0;var d$W=_.a(function(f){var H=f.stateFns;return _.O("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.O(_.Jj,{data:function(){return H().getSelectedPricingOptions().flatMap(function(v){return v.summaryLines}).filter(function(v){return!!v})}},{containerLayoutViewModel:function(v){return _.O("div",{class:"ytPdpSummaryViewModelLineItem"},_.O(TY,{data:v.data}))}}))},"Rf");
d$W.idomCompat=!0;var jOW=_.a(function(f){function H(n){var Q=y();_.HK(_.z7("pdpStateEntity",Q,{key:Q,selectedPricingOptions:n}))}
var v=f.data;var t=f.internalScrolling;var M=f.stateFnsForTesting;var h=_.vK(function(){return v().allProducts},[]),y=_.vK(function(){return v().pdpStateEntityKey},""),m=_.s7(Jrx,y),W=_.sg(function(){_.p4(!0);
var n;return(n=M==null?void 0:M())!=null?n:Uwh(m,h,H)},void 0,"pjJzrd"),I=_.vK(function(){return v().body},[]),S=_.vK(function(){return v().columnBreakHints},[]),d=function(){return v().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},Z=function(){return d()||v().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},l=_.sg(function(){var n=_.CT(v().background),Q;
if(n==null?0:(Q=n.sources)==null?0:Q.length){var C=C===void 0?!0:C;n=_.xaN(void 0,n.sources,void 0,C,C?1E3:void 0,C?void 0:1E3)}else n=null;return n},void 0,"GO4GAe");
f=_.ZE({"--pdp-view-model-background":function(){return l()?"url("+l()+")":void 0}});
var L={};t=_.S2("ytPdpViewModelHost",(L.ytPdpViewModelHasBackground=function(){return Z()||!!l()},L.ytPdpViewModelHasDarkBackground=Z,L.ytPdpViewModelHasScrim=d,L.ytPdpViewModelInternalScrolling=_.vK(t,!1),L));
var r=function(n){var Q={};return _.S2("ytPdpViewModelItem",(Q.ytPdpViewModelFullBleed=function(){return epA(n())==="dividerViewModel"||epA(n())==="sectionHeaderViewModel"},Q.ytPdpViewModelNoVerticalPadding=function(){return epA(n())==="sectionHeaderViewModel"},Q))};
_.Kc(function(){var n=v().onStartCommand;if(n&&(n=_.GK(n))){var Q;(Q=_.t8().resolve(_.MJ))==null||Q.resolveCommand(n)}});
return _.O("pdp-view-model",{class:t,style:f},_.O("div",{class:"ytPdpViewModelColumnContainer"},_.O(_.eK,{each:function(){return LZh(I(),S())},
keyBy:"INDEX"},function(n){return _.O("div",{class:"ytPdpViewModelColumn"},_.O(_.Jj,{data:n},{containerLayoutViewModel:function(Q,C){Q=Q.data;return _.O("div",{class:r(function(){return n()[C()]})},_.O(TY,{data:Q}))},
dividerViewModel:function(Q,C){Q=Q.data;return _.O("div",{class:r(function(){return n()[C()]})},_.O(_.B1g,{data:Q}))},
pdpCardViewModel:function(Q,C){Q=Q.data;return _.O("div",{class:r(function(){return n()[C()]})},_.O(WUA,{data:Q,
stateFns:W}))},
pdpMastheadViewModel:function(Q,C){Q=Q.data;return _.O("div",{class:r(function(){return n()[C()]})},_.O(Obr,{data:Q,
isOverlay:Z}))},
pdpPricingGroupSelectorViewModel:function(Q,C){Q=Q.data;return _.O("div",{class:r(function(){return n()[C()]})},_.O(gFr,{data:Q,
stateFns:W}))},
pdpPricingOptionSelectorViewModel:function(Q,C){Q=Q.data;return _.O("div",{class:r(function(){return n()[C()]})},_.O(IK5,{data:Q,
stateFns:W}))},
pdpPrimaryButtonViewModel:function(Q,C){Q=Q.data;return _.O("div",{class:r(function(){return n()[C()]})},_.O(SPw,{data:Q,
stateFns:W}))},
pdpSummaryViewModel:function(Q,C){Q=Q.data;return _.O("div",{class:r(function(){return n()[C()]})},_.O(d$W,{data:Q,
stateFns:W}))},
sectionHeaderViewModel:function(Q,C){Q=Q.data;return _.O("div",{class:r(function(){return n()[C()]})},_.O(_.$b,{data:Q}))}}))})))},"Sf");
jOW.idomCompat=!0;_.yn(jOW,"pdp-view-model",{props:{data:_.ki,stateFnsForTesting:_.Rm,internalScrolling:_.Rm}});var sOw=_.a(function(f){var H=f.data;var v=f.className;var t=_.s7(_.XX,function(){return H().flowStateEntityKey});
return _.O("ytm-premium-purchase-button-renderer",{class:_.S2("ytPremiumPurchaseButtonRendererHost",v)},_.O(_.Jj,{data:function(){var M;return(M=_.U(t(),BuG))==null?void 0:M.primaryButtonOverride}},{buttonRenderer:function(M){return _.O(_.bv,{data:M.data,
className:v})},
buttonViewModel:function(M){return _.O(_.Wp,{data:M.data,className:v})}}))},"Tf");
sOw.idomCompat=!0;var Zbb=_.a(function(f){var H=f.data;f=f.className;var v=function(){return xw5(H().style)},t=_.S2("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",v),M=_.S2("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",v);
return _.O("yt-flow-bottom-bar-renderer",{class:_.S2("yt-flow-bottom-bar-renderer",f,v)},_.O(_.Jj,{data:function(){return H().secondaryButton}},{buttonRenderer:function(h){return _.O(_.bv,{data:h.data,
className:M})},
buttonViewModel:function(h){return _.O(_.Wp,{data:h.data,className:M})},
premiumPurchaseButtonRenderer:function(h){return _.O(sOw,{data:h.data,className:M})}}),_.O(_.Jj,{data:function(){return H().primaryButton}},{buttonRenderer:function(h){return _.O(_.bv,{data:h.data,
className:t})},
buttonViewModel:function(h){return _.O(_.Wp,{data:h.data,className:t})},
premiumPurchaseButtonRenderer:function(h){return _.O(sOw,{data:h.data,className:t})}}))},"Uf");
Zbb.idomCompat=!0;_.yn(Zbb,"yt-flow-bottom-bar-renderer",{props:{data:_.ki,className:_.ki}});var J7x=_.a(function(f){var H=_.S2(f.className,"ytOfferSummaryRendererHost");return _.O("yt-offer-summary-renderer",{class:H},_.O("div",{class:"ytOfferSummaryRendererTextContainer"},_.O("div",{class:"ytOfferSummaryRendererEyebrowText"},_.O(_.iq,{text:function(){return f.data().eyebrowText}})),_.O("div",{class:"ytOfferSummaryRendererTitle"},_.O(_.iq,{text:function(){return f.data().title}})),_.O("div",{class:"ytOfferSummaryRendererSubtitle"},_.O(_.iq,{text:function(){return f.data().subtitle}})),_.O("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.O(_.eK,{each:function(){var v;
return(v=f.data().featureListData)!=null?v:[]}},function(v){var t;
return _.O("div",{class:"ytOfferSummaryRendererFeatureList"},_.O(_.JE,{icon:(t=v.icon)==null?void 0:t.iconType,active:function(){return v.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(v.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.O("div",{class:"ytOfferSummaryRendererFeatureListText"},_.O(_.iq,{text:v.text,
className:function(){return v.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.O("div",{class:"ytOfferSummaryRendererDescription"},_.O(_.iq,{text:function(){return f.data().description}}))))},"Vf");_.yn(_.a(function(f){var H={};H=_.S2("ytOfferSummaryFlowStepRendererHost",(H.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=f.shouldDisableHeaderTopMargin,H));return _.O("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:H},_.O("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.O("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.O(_.iq,{text:function(){return f.data().header}})),_.O("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.O(_.iq,{text:function(){return f.data().subtitle}}))),_.O("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.O(_.Jj,{data:function(){return f.data().offerSummary}},{offerSummaryRenderer:function(v){return _.O(J7x,{data:v.data,
className:f.flowClassName})}})))},"Wf"),"yt-offer-summary-flow-step-renderer",{props:{data:_.Rm,
flowClassName:_.Rm,flowStateEntityKey:_.Rm,shouldDisableHeaderTopMargin:_.Rm}});var lKi=_.a(function(f){var H=f.data;var v=f.className;var t=f.flowStateEntityKey;var M=f.selectionStepStyle;f=_.d6(function(W){var I=H(),S=t==null?void 0:t();W.target&&(W.stopPropagation(),W=S||"",S=_.XX(_.fu().getState(),W),I=Object.assign({},S,{premiumPurchaseFlowState:{selectedOptionId:I.optionId,primaryButtonOverride:I.primaryButtonOverride}}),_.fu().dispatch(_.lF("flowStateEntity",W,I)));return!1});
var h=function(){return(t==null?void 0:t())||""},y=_.s7(_.XX,h);
_.Kc(function(){var W=H(),I=h(),S=y();W.defaultSelected&&I!==""&&W.primaryButtonOverride&&zpW(W.optionId||"",I,W.primaryButtonOverride,S)});
var m={};return _.O("ytm-option-item-renderer",{"on:click":f,class:_.S2(v,"ytm-option-item-renderer",(m["ytm-option-item-renderer--lp2-style"]=function(){return(M==null?void 0:M())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},m))},_.O("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.O("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var W=H(),I=h(),S=y();S=_.U(S,BuG);return(S?(S==null?void 0:S.selectedOptionId)||"":W.defaultSelected&&I!==""?(W==null?void 0:W.optionId)||"":"")===H().optionId},
name:("input"+_.BC(_.r5)).toString()})),_.O("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.O(_.Jj,{data:function(){return H().titleBadge}},{badgeViewModel:function(W){return _.O(_.to,{data:W.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.O(_.g,{cond:function(){return H().eyebrowText},
then:function(){return _.O("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.O(_.iq,{text:function(){return H().eyebrowText}}))}}),_.O("div",{class:"ytm-option-item-renderer__option-item-title"},_.O(_.iq,{text:function(){return H().title}})),_.O("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.O(_.iq,{text:function(){return H().subtitle}})),_.O(_.g,{cond:function(){return H().featureListData},
then:function(){return _.O("div",{class:"ytm-option-item-renderer__feature-list-data"},_.O(_.eK,{each:function(){return H().featureListData||[]}},function(W){var I,S=(I=W.icon)==null?void 0:I.iconType;
a:switch(W.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":I="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":I="ytm-option-item-renderer__feature-list-icon-small";break a;default:I="ytm-option-item-renderer__feature-list-icon-default"}return _.O("div",{class:"ytm-option-item-renderer__feature-list"},_.O(_.JE,{icon:S,className:I,active:function(){return W.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.O("div",{class:"ytm-option-item-renderer__feature-list-text"},_.O(_.iq,{text:W.text,
className:function(){return W.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.O("div",{class:"ytm-option-item-renderer__option-item-description"},_.O(_.iq,{text:function(){return H().description}}))))},"Xf");var U$p=_.a(function(f){var H=f.data;var v=f.flowClassName;var t=f.flowStateEntityKey;var M=f.selectionStepStyle;return _.O("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.O("div",{class:"yt-option-section-renderer__option-section-header-section"},_.O("div",{class:"yt-option-section-renderer__option-section-header"},_.O(_.iq,{text:function(){return H().title}}),_.O(_.Jj,{data:function(){return H().titleBadge}},{badgeViewModel:function(h){return _.O(_.to,
{data:h.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.O(_.g,{cond:function(){return H().subtitle},
then:function(){return _.O("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.O(_.iq,{text:function(){return H().subtitle}}))}}),_.O(_.g,{cond:function(){return H().featureListData},
then:function(h){return _.O("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.O(_.eK,{each:h},function(y){var m;return _.O("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.O(_.JE,{icon:(m=y.icon)==null?void 0:m.iconType,active:function(){return y.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(y.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-green";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-small";default:return"yt-option-section-renderer__option-section-feature-item-icon-default"}}}),_.O("div",{class:"yt-option-section-renderer__option-section-feature-item-text"},_.O(_.iq,{text:y.text,
className:function(){return y.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"yt-option-section-renderer__option-section-feature-item-text-secondary":""}})))}))}}),_.O(_.g,{cond:function(){return H().secondaryTitle},
then:function(){return _.O("div",{class:"yt-option-section-renderer__option-section-secondary-title"},_.O(_.iq,{text:function(){return H().secondaryTitle}}))}}),_.O(_.eK,{each:function(){return H().sectionDisclaimers||[]}},function(h){return _.O("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.O(_.iq,{text:h}))})),_.O(_.Jj,{data:function(){return H().optionItems}},{optionItemRenderer:function(h){return _.O("div",{class:"yt-option-section-renderer__option-item"},_.O(lKi,{data:h.data,
className:v,flowStateEntityKey:t,selectionStepStyle:M}))}}),_.O(_.g,{cond:function(){return H().offerText},
then:function(){return _.O("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.O(_.iq,{text:function(){return H().offerText}}))}}))},"Yf");
U$p.idomCompat=!0;var elG=_.a(function(f){var H=f.data;var v=f.flowClassName;var t=f.flowStateEntityKey;f=f.isDesktop;var M=function(){var I;return(I=H().flowStateEntityKey)!=null?I:t==null?void 0:t()},h=function(){return(M==null?void 0:M())||""},y=function(){return H().style},m=_.s7(_.XX,h);
_.Kc(function(){var I=H(),S=h(),d=m();!_.U(d,BuG)&&I.noPreselect&&S!==""&&I.defaultButtonOverride&&zpW("default",S,I.defaultButtonOverride,d)});
var W={};return _.O("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.S2("ytm-option-selection-flow-step-renderer",(W["ytm-option-selection-flow-step-renderer--desktop"]=f,W["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return H().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},W))},_.O("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header-container ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.O("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.O(_.iq,{text:function(){return H().header}})),_.O("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.O(_.iq,{text:function(){return H().subtitle}}))),_.O(_.Jj,{data:function(){return H().optionItems||[]}},{optionItemRenderer:function(I){return _.O("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.O(lKi,{data:I.data,
className:v,flowStateEntityKey:M,selectionStepStyle:y}))},
optionSectionRenderer:function(I){return _.O("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.O(U$p,{data:I.data,flowClassName:v,flowStateEntityKey:M,selectionStepStyle:y}))}}))},"Zf");
elG.idomCompat=!0;_.yn(elG,"yt-option-selection-flow-step-renderer",{props:{data:_.ki,flowClassName:_.ki,flowStateEntityKey:_.ki,isDesktop:_.ki}});_.wM=_.a(function(f){var H=_.tV(f,{type:1,disablePadding:!1,disablePrimaryButton:!1}),v=H.data,t=H.type;f=H.disablePadding;var M=H.disablePrimaryButton,h=H.onClickPrimaryButton,y=function(){return v().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},m=function(){return{disabled:M(),
state:M()?"disabled":"active"}},W=function(){return v().leadingLabel||v().trailingLabel};
H={};return _.O("yt-panel-footer-view-model",{class:_.S2("yt-panel-footer-view-model-wiz",(H["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return v().shouldHideDivider},H["yt-panel-footer-view-model-wiz--disable-padding"]=f,H))},_.O(_.g,{cond:W,
then:function(){var I={},S={};return _.O("div",{class:_.S2("yt-panel-footer-view-model-wiz__text-row",(I["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var d=v();return!(!d.leadingLabel&&!d.trailingLabel||!d.primaryButton&&!d.secondaryButton)},I))},_.O(_.iq,{text:function(){return v().leadingLabel},
className:_.S2((S["yt-panel-footer-view-model-wiz--text-padding"]=W,S))}),_.O(_.iq,{text:function(){return v().trailingLabel}}))}}),_.O(_.g,{cond:y,
then:function(){var I={};return _.O("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.O("div",{class:_.S2("yt-panel-footer-view-model-wiz__primary-button",(I["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return v().secondaryButton},I))},_.O(_.Jj,{data:function(){return v().primaryButton}},{buttonViewModel:function(S){return _.O(_.Wp,{data:S.data,
buttonOverrides:m,onClick:h})}})),_.O(_.Jj,{data:function(){return v().secondaryButton}},{buttonViewModel:_.Wp}))}}),_.O(_.g,{cond:function(){return!y()},
then:function(){var I={},S={},d={};return _.O("div",{class:_.S2("yt-panel-footer-view-model-wiz__button-row",(I["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===t()},I))},_.O("div",{class:_.S2("yt-panel-footer-view-model-wiz__button-row--left-button",(S["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===t()},S["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!v().secondaryButton||0===t()},S["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===t()},S))},_.O(_.Jj,{data:function(){return v().secondaryButton}},{buttonViewModel:_.Wp})),_.O("div",{class:_.S2("yt-panel-footer-view-model-wiz__primary-button",(d["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===t()||1===t()},d["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===t()},d))},_.O(_.Jj,{data:function(){return v().primaryButton}},{buttonViewModel:function(Z){return _.O(_.Wp,{data:Z.data,
buttonOverrides:m,onClick:h})}})))}}))},"$f");
_.wM.idomCompat=!0;_.LUi=_.a(function(f){f=_.tV(f,{disablePadding:!1});var H=f.data,v=f.disablePadding;f=_.BMR(function(){return H().formId});
var t=f.submitForm,M=f.isValid,h=f.isSubmitting;return _.O("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.O(_.Jj,{data:function(){return H().panelFooter}},{panelFooterViewModel:function(y){return _.O(_.wM,{data:y.data,
onClickPrimaryButton:function(){t()},
disablePrimaryButton:function(){return!M()||h()},
disablePadding:v})}}))},"ag");_.yn(_.LUi,"yt-form-footer-view-model",{props:{data:_.ki,disablePadding:_.ki}});var x$A=_.a(function(f){var H=_.J("enable_user_rating_web");return _.O("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.O("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.O(_.g,{cond:function(){var v;return(v=f.data())==null?void 0:v.image},
then:function(v){return _.O(_.Hn,{data:v,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.O("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.O(_.iq,{text:function(){var v;
return(v=f.data())==null?void 0:v.title}})),_.O("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.O(_.iq,{text:function(){var v;
return(v=f.data())==null?void 0:v.subtitle}})),_.O(_.g,{cond:function(){return!H},
then:function(){return _.O(_.Jj,{data:function(){var v;return(v=f.data())==null?void 0:v.viewTipsButton}},{buttonViewModel:function(v){return _.O(_.Wp,{data:v.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"bg");_.yn(x$A,"yt-contributor-zero-state-view-model",{props:{data:_.ki}});var B8x=_.a(function(f){var H=function(){var v;return(v=f.data())==null?void 0:v.image};
return _.O("yt-featured-content-item-view-model",{class:_.S2("ytFeaturedContentItemViewModelHost")},_.O("div",{class:_.S2(function(){return H()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.O("div",{class:function(){return H()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.O(_.g,{cond:H,
then:function(){return _.O("div",{class:"ytFeaturedContentItemViewModelImage"},_.O(_.Jj,{data:function(){return f.data().image}},{themedImageViewModel:function(v){return _.O(m$W,{data:v.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.O(_.g,{cond:function(){var v;
return!H()&&((v=f.data())==null?void 0:v.iconName)},
then:function(){return _.O("div",{class:"ytFeaturedContentItemViewModelIcon"},_.O(_.JE,{icon:function(){return f.data().iconName}}))}}),_.O("div",{class:"ytFeaturedContentItemViewModelContent"},_.O(_.g,{cond:function(){var v;
return(v=f.data())==null?void 0:v.title},
then:function(){return _.O("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.O(_.iq,{text:function(){return f.data().title}}))}}),_.O(_.g,{cond:function(){var v;
return(v=f.data())==null?void 0:v.body},
then:function(){return _.O("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.O(_.iq,{text:function(){return f.data().body}}))}})))))},"cg");var zli=_.a(function(f){var H=function(){var M;return FZr((M=f.data())==null?void 0:M.titleFontSize)},v=function(){var M;
return rrA((M=f.data())==null?void 0:M.descriptionFontSize)},t=function(){var M;
return((M=f.data())==null?void 0:M.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.O("yt-landing-page-view-model",{class:_.S2("ytLandingPageViewModelHost",f.className)},_.O("div",{class:"ytLandingPageViewModelHeader"},_.O(_.g,{cond:function(){var M;return(M=f.data())==null?void 0:M.bannerImage},
then:function(M){return _.O("div",{class:"ytLandingPageViewModelHeaderImage"},_.O(_.Jj,{data:function(){return M()}},{imageBannerViewModel:function(h){return _.O(_.Pr,{data:h.data,
isPositionRelative:!0})}}))}}),_.O(_.g,{cond:function(){var M;
return(M=f.data())==null?void 0:M.bannerAnimation},
then:function(M){return _.O(_.j3,{data:function(){var h=M();if(h==null?0:h.url){var y;h={path:(y=h==null?void 0:h.url)!=null?y:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(h==null?0:h.payload){var m;h={animationData:JSON.parse((m=h==null?void 0:h.payload)!=null?m:""),autoplay:!0,loop:!0,renderer:"svg"}}else h=void 0;return{animationConfig:h}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.O("div",{class:"ytLandingPageViewModelHeaderTitle"},_.O(_.g,{cond:function(){var M;
return(M=f.data())==null?void 0:M.title},
then:function(M){return _.O("div",{class:_.S2("ytLandingPageViewModelHeaderTitleContent",H)},_.O(_.iq,{text:function(){return M()}}))}}),_.O(_.g,{cond:function(){var M;
return(M=f.data())==null?void 0:M.description},
then:function(M){var h={};return _.O(_.iq,{className:_.S2("ytLandingPageViewModelHeaderTitleDescription",v,(h.ytLandingPageViewModelHeaderTitleDescriptionMargin=t,h)),text:function(){return M()}})}}))),_.O(_.g,{cond:function(){var M,h;
return(M=f.data())==null?void 0:(h=M.featuredContentList)==null?void 0:h.length},
then:function(){return _.O("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.O(_.Jj,{data:function(){return f.data().featuredContentList}},{featuredContentItemViewModel:function(M){return _.O(B8x,{data:M.data})}}))}}),_.O(_.g,{cond:function(){var M,h;
return(M=f.data())==null?void 0:(h=M.expandableContentList)==null?void 0:h.length},
then:function(){return _.O("div",{class:"ytLandingPageViewModelFaqSection"},_.O(_.Jj,{data:function(){return f.data().expandableContentList}},{faqEntryViewModel:function(M){return _.O("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.O(_.mPg,{data:M.data}))}}))}}),_.O("div",{class:"ytLandingPageViewModelFooter"},_.O(_.g,{cond:function(){var M;
return(M=f.data())==null?void 0:M.legalCopy},
then:function(M){return _.O("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.O(_.iq,{text:function(){return M()}}))}}),_.O(_.g,{cond:function(){var M;
return(M=f.data())==null?void 0:M.actions},
then:function(M){return _.O("div",null,_.O(_.Jj,{data:function(){return M()}},{flexibleActionsViewModel:function(h){return _.O(_.ot,{data:h.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"dg");_.yn(_.a(function(f){return _.O("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.O("div",{class:"ytLpSectionGroupViewModelContainer"},_.O(_.Jj,{data:function(){return f.data().sections}},{landingPageViewModel:function(H){return _.O(zli,{data:H.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"eg"),"yt-lp-section-group-view-model",{props:{data:_.ki}});var FUG=_.a(function(f){var H=f.data;var v=f.selectedKey;var t=f.onSelected;var M=f.groupName;var h=function(){return H().text},y=function(){return H().attributedText},m=function(){return H().subtext},W=function(){return H().attributedSubtext},I=_.O("div",{class:"ytRadioButtonItemViewModelLabel"},_.O(_.g,{cond:h,
then:function(){return _.O("div",null,h)}}),_.O(_.g,{cond:y,
then:function(){return _.O(_.iq,{text:y})}}),_.O(_.g,{cond:m,
then:function(){return _.O("div",{class:"ytRadioButtonItemViewModelSubText"},m)}}),_.O(_.g,{cond:W,
then:function(){return _.O("div",{class:"ytRadioButtonItemViewModelSubText"},_.O(_.iq,{text:W}))}})),S=function(){if(y()){var Z;
return(Z=y())==null?void 0:Z.content}return h()},d=function(){if(W()){var Z;
return(Z=W())==null?void 0:Z.content}return m()};
f={};return _.O("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.O(_.nB,{name:M,checked:function(){return!(v==null||!v()||H().key!==(v==null?void 0:v()))},
onChange:function(Z){t==null||t(Z.target,H(),M==null?void 0:M())},
labelRenderable:function(){return I},
ariaLabel:function(){return d()?S()+", "+d():S()},
className:_.S2((f.ytRadioButtonItemViewModelSubTitle=function(){return!!H().subtext},f))}))},"fg");_.r7b=_.a(function(f){var H=f.data;var v=f.onSelected;var t=f.selectedKey;var M=f.groupName;var h=function(){return(M==null?void 0:M())||H().key};
return _.O("yt-radio-button-group-view-model",{class:"ytRadioButtonGroupViewModelHost"},_.O("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.O(_.Jj,{data:function(){return H().radioButtons}},{radioButtonItemViewModel:function(y){return _.O(FUG,{data:y.data,
onSelected:v,selectedKey:t,groupName:h})}})))},"gg");var KUF=_.a(function(f){_.Kc(function(){if(f.controlledMode()&&f.data().defaultSelected)_.oO(Error("Pj"));else{var h;!f.controlledMode()&&((h=f.selected)==null?0:h.call(f))&&_.oO(Error("Qj"))}});
var H=_.V(_.sR(function(){if(!f.controlledMode())return f.data().defaultSelected})),v=H.next().value,t=H.next().value,M=function(){if(!f.controlledMode())return v();
var h;return(h=f.selected)==null?void 0:h.call(f)};
return _.O("yt-checkbox-item-view-model",{class:_.S2("ytCheckboxItemViewModelHost")},_.O(_.pB,{data:function(){var h=f.data(),y=M();return{title:h.text,subtitle:h.subtext,superlabel:h.superlabel,isSelected:!!y,isDisabled:h.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!f.controlledMode()&&t(!v());var h,y;(y=f.onTap)==null||y.call(f,!!M(),f.data(),(h=f.groupName)==null?void 0:h.call(f))}}))},"hg");var D$i=_.a(function(f){var H=f.data;var v=f.controlledMode;var t=f.selectedKeys;var M=f.onItemTap;var h=f.groupName;var y=function(){return(h==null?void 0:h())||H().key};
_.Kc(function(){v()&&H().defaultSelectedKeys?_.oO(Error("Rj")):!v()&&(t==null?0:t())&&_.oO(Error("Sj"))});
f=_.V(_.sR(function(){if(!v())return H().defaultSelectedKeys}));
var m=f.next().value,W=f.next().value,I=function(S,d,Z){S=[];!v()&&d.key&&(S=KZx(d.key,m()||[]),W(S));M==null||M(d,S,Z)};
return _.O("yt-checkbox-group-view-model",{class:_.S2("ytCheckboxGroupViewModelHost")},_.O("fieldset",{class:_.S2("ytCheckboxGroupViewModelFieldset")},_.O(_.Jj,{data:function(){return H().checkboxes}},{checkboxItemViewModel:function(S){var d=S.data;
return _.O(KUF,{data:d,controlledMode:!0,selected:function(){var Z=v()?(t==null?void 0:t())||[]:m()||[],l=d().key;return l?Z.includes(l):!1},
onTap:I,groupName:y})}})))},"ig");var qX=_.a(function(f){var H=_.s7(Dwp,_.vK(function(){var m;return(m=f.data())==null?void 0:m.noteFeedEntityKey},"")),v=_.s7(kLF,_.vK(function(){var m;
return(m=f.data())==null?void 0:m.userRatingEntityKey},"")),t=_.J("enable_user_rating_web"),M=function(){var m,W,I;
return((m=H())==null?0:m.contributorNote)?(W=H())==null?void 0:W.contributorNote:(I=f.data())==null?void 0:I.existingNote},h=function(){var m,W;
return!!v()&&!!ok5((m=v())==null?void 0:m.helpfulnessValue,(W=f.data())==null?void 0:W.noteData)};
if(t){var y={};return _.O("yt-note-view-model",{class:_.S2("ytNoteViewModelHostUserRating",(y.ytNoteViewModelHostUserRatingPublishedNote=function(){var m,W,I,S;return((m=f.data())==null?void 0:(W=m.noteData)==null?void 0:W.isPublished)&&!((I=f.data())==null?0:(S=I.noteData)==null?0:S.isUserRatingForm)},y))},_.O("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.O("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.O(_.g,{cond:function(){var m,W;
return(m=f.data())==null?void 0:(W=m.noteData)==null?void 0:W.isPinned},
then:function(){return _.O(_.JE,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.O(_.g,{cond:function(){var m,W;return(m=f.data())==null?void 0:(W=m.noteData)==null?void 0:W.isPublished},
then:function(){return _.O(_.JE,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.O(_.Jj,{data:function(){var m;
return(m=f.data())==null?void 0:m.metadata}},{contentMetadataViewModel:_.ho}),_.O("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var m,W;
return(W=_.U((m=f.data())==null?void 0:m.metadata,_.Pqa))==null?void 0:W.delimiter}),_.O(_.iq,{text:function(){var m;
return(m=M())==null?void 0:m.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.O(_.g,{cond:function(){var m,W;return!((m=f.data())==null?0:(W=m.noteData)==null?0:W.isUserRatingForm)},
then:function(){return _.O(_.Jj,{data:function(){var m,W,I,S,d,Z,l,L=!!((m=f.data())==null?0:(W=m.noteData)==null?0:W.isPinned);m=h();W=(I=f.data())==null?void 0:I.noteData;I=(S=H())==null?void 0:(d=S.contributorNote)==null?void 0:d.deleteAction;S=(Z=f.data())==null?void 0:Z.overflowButtonNoteWithRatingOnTapOverride;Z=(l=f.data())==null?void 0:l.overflowButton;return L?nki(W,I):m?{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:S}}:Z}},{buttonViewModel:function(m){return _.O(_.Wp,{data:m.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.O("div",{class:"ytNoteViewModelNoteContent"},_.O(_.iq,{text:function(){var m;
return(m=M())==null?void 0:m.text}})),_.O(_.g,{cond:function(){var m,W,I,S;
return!((m=f.data())==null?0:(W=m.noteData)==null?0:W.isPinned)&&!((I=f.data())==null?0:(S=I.noteData)==null?0:S.isUserRatingForm)},
then:function(){return _.O(_.g,{cond:h,then:function(){return _.O("div",{class:"ytNoteViewModelUserRatingContainer"},_.O(_.iq,{text:function(){var m,W;return ok5((m=v())==null?void 0:m.helpfulnessValue,(W=f.data())==null?void 0:W.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.O(_.Jj,{data:function(){var m;return(m=f.data())==null?void 0:m.userRatingButton}},{buttonViewModel:function(m){return _.O(_.Wp,{data:m.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.O(_.g,{cond:function(){var m,W,I,S;
return!((m=f.data())==null?0:(W=m.noteData)==null?0:W.ignoreDivider)&&!((I=f.data())==null?0:(S=I.noteData)==null?0:S.isUserRatingForm)},
then:function(){return _.O("div",{class:"ytNoteViewModelDivider"},_.O(_.Jj,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(m){return _.O(_.B1g,{data:m.data})}}))}}))}return _.O("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.O("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.O("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.O(_.g,{cond:function(){var m,W;return(m=f.data())==null?void 0:(W=m.noteData)==null?void 0:W.isPinned},
then:function(){return _.O(_.JE,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.O(_.g,{cond:function(){var m,W;return(m=f.data())==null?void 0:(W=m.noteData)==null?void 0:W.isPublished},
then:function(){return _.O(_.JE,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.O(_.g,{cond:function(){return t},
then:function(){return _.O(_.Jj,{data:function(){var m;return(m=f.data())==null?void 0:m.metadata}},{contentMetadataViewModel:function(m){return _.O(_.ho,{data:m.data})}})}}),_.O(_.iq,{text:function(){var m,W;
return(m=f.data())==null?void 0:(W=m.noteData)==null?void 0:W.headerText}}),_.O("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.O(_.iq,{text:function(){var m,W;
return(m=f.data())==null?void 0:(W=m.noteData)==null?void 0:W.delimiter}})),_.O(_.iq,{text:function(){var m,W;
return(m=H())==null?void 0:(W=m.contributorNote)==null?void 0:W.publishedTimeText}})),_.O(_.Jj,{data:function(){var m,W,I;
return nki((m=f.data())==null?void 0:m.noteData,(W=H())==null?void 0:(I=W.contributorNote)==null?void 0:I.deleteAction)}},{buttonViewModel:function(m){return _.O(_.Wp,{data:m.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.O("div",{class:"ytNoteViewModelNoteContent"},_.O(_.iq,{text:function(){var m,W;
return(m=H())==null?void 0:(W=m.contributorNote)==null?void 0:W.text}})))},"jg");
qX.idomCompat=!0;_.yn(_.a(function(f){var H=_.s7(_.XX,_.vK(function(){var n;return(n=f.data())==null?void 0:n.flowStateEntityKey},"")),v=_.V(_.sR(function(){var n;
return(n=_.U(f.data().helpfulnessValue,_.JS))==null?void 0:n.defaultSelectedKey})),t=v.next().value,M=v.next().value;
v=_.V(_.sR(function(){var n,Q,C;return(C=_.U((n=_.U(f.data().helpfulnessValue,_.JS))==null?void 0:(Q=n.radioButtons)==null?void 0:Q.find(function(w){var c;return((c=_.U(w,whp))==null?void 0:c.key)===t()}),whp))==null?void 0:C.value}));
var h=v.next().value,y=v.next().value,m=function(n,Q){M(Q.key);y(Q.value)},W=function(){var n,Q;
return((n=h())==null?void 0:n.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((Q=h())==null?void 0:Q.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},I=function(){var n,Q;
return((n=h())==null?void 0:n.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((Q=h())==null?void 0:Q.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"};
v=_.V(_.sR(function(){var n;return(n=_.U(f.data().helpfulReasons,THr))==null?void 0:n.defaultSelectedKeys}));
var S=v.next().value,d=v.next().value,Z=function(n){p6w(n.key,S,d)};
v=_.V(_.sR(function(){var n;return(n=_.U(f.data().notHelpfulReasons,THr))==null?void 0:n.defaultSelectedKeys}));
var l=v.next().value,L=v.next().value,r=function(n){p6w(n.key,l,L)};
return _.O("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.O(_.Jj,{data:function(){var n=_.U(H(),PdA);if(n){var Q;var C={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:n==null?void 0:(Q=n.note)==null?void 0:Q.headerText}]}],delimiter:"\u2022"}},existingNote:n.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else C=void 0;return C}},{noteViewModel:function(n){return _.O("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.O(qX,{data:n.data}))}}),_.O(_.Jj,{data:function(){var n;
return(n=f.data())==null?void 0:n.helpfulnessValue}},{radioButtonGroupViewModel:function(n){return _.O("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.O(_.r7b,{data:n.data,
onSelected:m,selectedKey:t}))}}),_.O(_.g,{cond:W,
then:function(){return _.O("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.O("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.O(_.iq,{text:function(){var n;return(n=f.data())==null?void 0:n.helpfulReasonQuestion}})),_.O(_.Jj,{data:function(){var n;
return(n=f.data())==null?void 0:n.helpfulReasons}},{checkboxGroupViewModel:function(n){return _.O(D$i,{data:n.data,
onItemTap:Z,selectedKeys:S,controlledMode:!0})}}))}}),_.O(_.g,{cond:I,
then:function(){return _.O("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.O("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.O(_.iq,{text:function(){var n;return(n=f.data())==null?void 0:n.notHelpfulReasonQuestion}})),_.O(_.Jj,{data:function(){var n;
return(n=f.data())==null?void 0:n.notHelpfulReasons}},{checkboxGroupViewModel:function(n){return _.O(D$i,{data:n.data,
onItemTap:r,selectedKeys:l,controlledMode:!0})}}))}}),_.O(_.g,{cond:function(){return!W()&&!I()},
then:function(){return _.O(_.Jj,{data:function(){var n;return(n=f.data())==null?void 0:n.helpfulNoteFeatures}},{alertBannerViewModel:function(n){return _.O("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.O(_.nnh,{data:n.data}))}})}}))},"kg"),"yt-note-user-rating-view-model",{props:{data:_.ki}});_.yn(qX,"yt-note-view-model",{props:{data:_.ki}});_.yn(_.a(function(f){var H=_.s7(Dwp,_.vK(function(){var v;return(v=f.data())==null?void 0:v.noteFeedEntityKey},""));
return _.O("yt-notes-wrapper-view-model",{class:_.S2("ytNotesWrapperViewModelHost")},_.O(_.g,{cond:function(){var v,t,M;return!((v=f.data())==null||!v.existingNotes)||!((t=f.data())==null||!t.currentNote)&&!((M=H())==null||!M.contributorNote)},
then:function(){return _.O(_.R8,null,_.O(_.Jj,{data:function(){var v,t,M,h;return((t=_.U((v=f.data())==null?void 0:v.currentNote,GE5))==null?0:(M=t.noteData)==null?0:M.isPublished)?(h=f.data())==null?void 0:h.currentNote:void 0}},{noteViewModel:function(v){return _.O(qX,{data:v.data})}}),_.O(_.Jj,{data:function(){var v;
return(v=f.data())==null?void 0:v.existingNotes}},{noteViewModel:function(v){var t=v.data;
return _.O(_.g,{cond:function(){var M,h;return(M=t())==null?void 0:(h=M.noteData)==null?void 0:h.isPublished},
then:function(){return _.O(qX,{data:t})}})}}),_.O(_.Jj,{data:function(){var v,t,M,h;
return((t=_.U((v=f.data())==null?void 0:v.currentNote,GE5))==null?0:(M=t.noteData)==null?0:M.isPublished)?void 0:(h=f.data())==null?void 0:h.currentNote}},{noteViewModel:function(v){return _.O(qX,{data:v.data})}}),_.O(_.Jj,{data:function(){var v;
return(v=f.data())==null?void 0:v.existingNotes}},{noteViewModel:function(v){var t=v.data;
return _.O(_.g,{cond:function(){var M,h;return!((M=t())==null?0:(h=M.noteData)==null?0:h.isPublished)},
then:function(){return _.O(qX,{data:t})}})}}))},
else:function(){return _.O(_.Jj,{data:function(){var v;return(v=f.data())==null?void 0:v.zeroStateData}},{contributorZeroStateViewModel:x$A})}}))},"lg"),"yt-notes-wrapper-view-model",{props:{data:_.ki}});var fJ=_.a(function(f){var H=_.tV(f,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),v=H.label,t=H.text,M=H.placeholder,h=H.hint;f=H.rows;var y=H.overflowStyle,m=H.outline,W=H.disabled,I=H.disableNewLines,S=H.characterLimit,d=H.validation,Z=H.onInput,l=_.TN("textarea");H=_.V(_.sR(function(){return t()}));
var L=H.next().value,r=H.next().value;H=_.V(_.gp(!1,void 0,"fXvinf"));var n=H.next().value,Q=H.next().value,C=function(){Q(!0)},w=function(){Q(!1)};
_.Kc(function(){var E5=l.value,uH=y(),Rn=L();uH==="expand-vertically"&&Rn&&Q8t(E5);l.value.addEventListener("focusin",C);l.value.addEventListener("focusout",w)});
_.Dt(function(){l.value.removeEventListener("focusin",C);l.value.removeEventListener("focusout",w)});
var c=function(){var E5;return(E5=d())==null?void 0:E5.validate(L())},A=function(){return S()&&!c()&&L().length>S().maxChars},X=function(){return!!c()||A()};
H=_.d6(function(E5){if(!E5.currentTarget)return!1;E5=E5.currentTarget;r(E5.value);y()==="expand-vertically"&&Q8t(E5);Z==null||Z(E5.value);return!0});
var fg=_.d6(function(E5){I()&&E5.key==="Enter"&&E5.preventDefault();return!1}),gB=_.d6(function(){l.value.focus()}),O5=function(){return M()||v()},s5={},U5={},lH={};
return _.O("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.O("div",{class:_.S2("ytStandardsTextareaShapeTextareaContainer",(s5.ytStandardsTextareaShapeTextareaContainerOutline=m,s5.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=W,s5.ytStandardsTextareaShapeTextareaContainerOutlineError=X,s5)),"on:click":gB},_.O("label",{class:_.S2("ytStandardsTextareaShapeLabel",(U5.ytStandardsTextareaShapeLabelFocused=n,U5.ytStandardsTextareaShapeLabelDisabled=W,U5.ytStandardsTextareaShapeLabelError=
function(){return X()&&!W()},U5.ytStandardsTextareaShapeLabelHidden=function(){return!n()&&!L()&&!!O5()},U5))},v),_.O("div",{class:_.S2("ytStandardsTextareaShapePlaceholder",(lH.ytStandardsTextareaShapePlaceholderVisible=function(){return!n()&&!L()},lH)),
"aria-hidden":"true"},O5),_.O("textarea",{el:l,class:"ytStandardsTextareaShapeTextarea",rows:f,disabled:W,placeholder:O5,"on:input":H,"on:keydown":fg},L)),_.O(_.g,{cond:function(){return h()&&!X()},
then:function(){var E5={};return _.O("div",{class:_.S2("ytStandardsTextareaShapeHint",(E5.ytStandardsTextareaShapeHintDisabled=W,E5))},_.O("div",{class:"ytStandardsTextareaShapeHintHintMessage"},h))}}),_.O(_.g,{cond:c,
then:function(){return _.O(oFA,{disabled:W},_.O("div",{class:"ytStandardsTextareaShapeErrorMessage"},c))}}),_.O(_.g,{cond:S,
then:function(E5){return _.O(_.g,{cond:A,then:function(){return _.O(oFA,{disabled:W},_.O("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return E5().errorMessage}),_.O("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return L().length+"/"+E5().maxChars}))}})}}))},"mg");
fJ.idomCompat={callbacks:{onInput:!0}};var oFA=_.a(function(f){var H={};return _.O("div",{class:_.S2("ytStandardsTextareaShapeError",(H.ytStandardsTextareaShapeErrorDisabled=f.disabled,H)),role:"alert"},_.O(_.JE,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),f.children)},"ng");_.nFW=_.a(function(f){var H=f.data;return _.O("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.O(fJ,{text:f.text,label:function(){var v;return(v=H().contentProperties)==null?void 0:v.labelText},
placeholder:function(){var v;return(v=H().contentProperties)==null?void 0:v.placeholderText},
hint:function(){var v;return(v=H().contentProperties)==null?void 0:v.hintText},
outline:function(){var v;return!((v=H().displayProperties)==null?0:v.hideBorder)},
overflowStyle:function(){var v;return((v=H().displayProperties)==null?0:v.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:f.disabled,disableNewLines:function(){var v;return(v=H().displayProperties)==null?void 0:v.disableNewLines},
onInput:f.onInput,characterLimit:f.characterLimit,validation:f.validation,rows:function(){var v;return(v=H().displayProperties)==null?void 0:v.rows}}))},"og");_.pkb=_.a(function(f){var H=f.data;return _.O("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.O(fJ,{text:f.text,label:function(){var v;return(v=H().contentProperties)==null?void 0:v.labelText},
placeholder:function(){var v;return(v=H().contentProperties)==null?void 0:v.placeholderText},
hint:function(){var v;return(v=H().contentProperties)==null?void 0:v.hintText},
outline:function(){var v;return!((v=H().displayProperties)==null?0:v.hideBorder)},
overflowStyle:function(){var v;return((v=H().displayProperties)==null?0:v.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var v;return(v=H().displayProperties)==null?void 0:v.disableNewLines},
onInput:f.onInput,characterLimit:f.characterLimit,validation:f.validation,rows:function(){var v;return(v=H().displayProperties)==null?void 0:v.rows}}))},"pg");var QOt=_.a(function(f){var H=_.V(_.sR(function(){var O5,s5;return((O5=f.data().structuredContextNoteFormSchema)==null?0:(s5=O5.initialValues)==null?0:s5.noteBody)?f.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),v=H.next().value,t=H.next().value;
H=_.V(_.sR(function(){f.data();return!1}));
var M=H.next().value,h=H.next().value;H=_.V(_.sR(function(){f.data();return!1}));
var y=H.next().value,m=H.next().value;H=_.V(_.sR(function(){var O5,s5;return((O5=f.data().structuredContextNoteFormSchema)==null?0:(s5=O5.initialValues)==null?0:s5.timestamp)?f.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var W=H.next().value,I=H.next().value;H=_.V(_.sR(function(){f.data();return!1}));
var S=H.next().value,d=H.next().value;H=_.V(_.sR(function(){var O5,s5;return((O5=f.data().structuredContextNoteFormSchema)==null?0:(s5=O5.initialValues)==null?0:s5.sources)?[f.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var Z=H.next().value,l=H.next().value;H=_.V(_.sR(function(){f.data();return!1}));
var L=H.next().value,r=H.next().value;H=_.V(_.sR(function(){return!1}));
var n=H.next().value,Q=H.next().value;_.Kc(function(){var O5;_.Tph((O5=f.data().structuredContextNoteFormSchema)==null?void 0:O5.id,{isSubmitting:n,onSubmit:function(){Q(!0);var s5=X6w(v(),W(),Z(),f.data()),U5=_.t8().resolve(_.MJ);s5&&U5&&U5.resolveCommand(s5,{commandController:{onSuccess:function(){Q(!1)}}})},
isValid:function(){return M()&&!y()&&!S()&&!L()}})});
var C=function(O5){if(O5!==void 0&&(t(O5),!M()&&O5.length>0&&h(!0),M())){var s5=PZb(f.data());if(s5){var U5=s5.minLength;s5=s5.maxLength;U5&&O5.length<U5?m(!0):s5&&O5.length>s5?m(!0):m(!1)}}},w=function(O5){if(O5!==void 0){I(O5);
if(O5.length>0){var s5,U5,lH,E5,uH=CZb((s5=f.data())==null?void 0:(U5=s5.structuredContextNoteFormSchema)==null?void 0:(lH=U5.fieldSchemas)==null?void 0:(E5=lH.timestamp)==null?void 0:E5.validationSchema);if(uH&&(s5=uH.regex)&&!(new RegExp(s5)).test(O5)){d(!0);return}}d(!1)}},c=function(O5){if(O5!==void 0){var s5=O5.split(/[ \n]/).map(function(U5){return U5.trim()});
l(s5);if(O5.length>0)for(O5=_.V(s5),s5=O5.next();!s5.done;s5=O5.next())if(!crb(s5.value)){r(!0);return}r(!1)}},A=function(){return{validate:function(O5){if(M()){var s5=PZb(f.data());
if(s5){var U5=s5.minLength;s5=s5.translations;if(U5&&O5.length<U5)return s5==null?void 0:s5.minLengthErrorMessage}}}}},X=function(){var O5=PZb(f.data()),s5=O5==null?void 0:O5.maxLength,U5;
O5=O5==null?void 0:(U5=O5.translations)==null?void 0:U5.maxLengthErrorMessage;if(s5&&O5)return{maxChars:s5,errorMessage:O5}},fg=function(){return{validate:function(O5){if(O5){var s5,U5,lH,E5,uH=CZb((s5=f.data())==null?void 0:(U5=s5.structuredContextNoteFormSchema)==null?void 0:(lH=U5.fieldSchemas)==null?void 0:(E5=lH.timestamp)==null?void 0:E5.validationSchema);
if(uH&&(s5=uH.regex,uH=uH.translations,s5&&!(new RegExp(s5)).test(O5)))return uH==null?void 0:uH.regexErrorMessage}}}},gB=function(){return{validate:function(O5){if(O5){var s5,U5,lH,E5,uH=NuF((s5=f.data())==null?void 0:(U5=s5.structuredContextNoteFormSchema)==null?void 0:(lH=U5.fieldSchemas)==null?void 0:(E5=lH.sources)==null?void 0:E5.validationSchema);
if(uH&&(s5=uH.translations,s5==null?0:s5.selectedErrorMessage))for(O5=O5.split(/[ \n]/).map(function(Rn){return Rn.trim()}),O5=_.V(O5),U5=O5.next();!U5.done;U5=O5.next())if(!crb(U5.value))return O5=void 0,(O5=s5)==null?void 0:O5.selectedErrorMessage}}}};
return _.O("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.O("div",{class:"ytStructuredContextNoteViewModelTextField"},_.O(_.Jj,{data:function(){var O5;return(O5=f.data())==null?void 0:O5.noteContents}},{textFormFieldViewModel:function(O5){return _.O(_.pkb,{data:O5.data,
onInput:C,validation:A,characterLimit:X})},
textFieldViewModel:function(O5){return _.O(_.nFW,{data:O5.data,onInput:C,validation:A,characterLimit:X})}})),_.O("div",{class:"ytStructuredContextNoteViewModelTextField"},_.O(_.Jj,{data:function(){var O5;
return(O5=f.data())==null?void 0:O5.noteTimestamp}},{textFormFieldViewModel:function(O5){return _.O(_.pkb,{data:O5.data,
onInput:w,validation:fg})},
textFieldViewModel:function(O5){return _.O(_.nFW,{data:O5.data,onInput:w,validation:fg})}})),_.O("div",{class:"ytStructuredContextNoteViewModelTextField"},_.O(_.Jj,{data:function(){var O5;
return(O5=f.data())==null?void 0:O5.noteSources}},{textFormFieldViewModel:function(O5){return _.O(_.pkb,{data:O5.data,
onInput:c,validation:gB})},
textFieldViewModel:function(O5){return _.O(_.nFW,{data:O5.data,onInput:c,validation:gB})}})))},"qg");
QOt.idomCompat=!0;_.yn(QOt,"yt-structured-context-note-view-model",{props:{data:_.ki}});var u70=_.a(function(f){var H=_.V(_.sR(function(){var h;if((h=f.controlled)==null?0:h.call(f))return[];var y;return(((y=f.data())==null?void 0:y.chips)||[]).map(function(m){m=_.U(m,_.Pd);if(m==null?0:m.selected)return Arh(m.chipValue)}).filter(function(m){return m!==void 0})})),v=H.next().value,t=H.next().value,M=function(h){var y=Arh(h.chipValue);
if(y!==void 0){var m;if((m=f.controlled)==null?0:m.call(f))return void f.controlled().onTap(y);h=v().includes(y)?[].concat(_.pS(v().filter(function(I){return I!==y}))):[].concat(_.pS(v()),[y]);
t(h);var W;if((W=f.uncontrolled)==null?0:W.call(f))f.uncontrolled().onUpdate(h)}};
return _.O("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.O(_.eK,{each:function(){return f.data().chips||[]}},function(h){return _.O("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.O(_.LBv,{data:function(){return _.U(h,_.Pd)},
selected:function(){var y;if(y=_.U(h,_.Pd)){var m=Arh(y.chipValue);if(m!==void 0){var W;y=((W=f.controlled)==null?0:W.call(f))?f.controlled().selectedValues.includes(m):v().includes(m)}else y=void 0}else y=!1;return y},
callback:M}))}))},"rg");var aKp=_.a(function(f){var H=f.data;var v=function(){var m;return((m=H())==null?void 0:m.flowStateKey)||""},t=_.s7(_.XX,v),M=function(){var m;
return(m=_.U(t(),CdG))==null?void 0:m.chips},h=function(m){if(m!==void 0){var W=M()||[];
W=W.find(function(I){return I===m})?W.filter(function(I){return I!==m}):[].concat(_.pS(W),[m]);
W=Object.assign({},t(),{feedbackFormFlowState:Object.assign({},_.U(t(),CdG),{chips:W})});_.HK(_.lF("flowStateEntity",v(),W))}},y=function(){var m;
return _.U((m=H())==null?void 0:m.inputBox,EZG)};
f=_.SI(function(m){var W=y();W=!(W==null?0:W.maxChars)||m.length<=W.maxChars;m=Object.assign({},t(),{feedbackFormFlowState:Object.assign({},_.U(t(),CdG),{detail:m}),abuseReportFlowState:Object.assign({},_.U(t(),Zm),{navigationEnabled:W})});_.HK(_.lF("flowStateEntity",v(),m))},150);
return _.O("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.O("div",{class:"ytFeedbackFormViewModelChips"},_.O(_.Jj,{data:function(){var m;return(m=H())==null?void 0:m.chipSelection}},{chipSelectionFormFieldViewModel:function(m){return _.O(u70,{data:m.data,
controlled:function(){return{selectedValues:M()||[],onTap:h}}})}})),_.O("div",{class:"ytFeedbackFormViewModelInputBox"},_.O(fJ,{text:function(){var m;
return(m=_.U(t(),CdG))==null?void 0:m.detail},
placeholder:function(){var m;return((m=y())==null?void 0:m.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var m=y();if(m&&m.maxChars)return{maxChars:m.maxChars,errorMessage:m.maxCharsExceededErrorMessage||""}},
onInput:f})),_.O("div",{class:"ytFeedbackFormViewModelFooterText"},_.O(_.iq,{text:function(){return H().footerText}})))},"sg");
aKp.idomCompat=!0;_.yn(aKp,"yt-feedback-form-view-model",{props:{data:_.ki}});var P$F=_.a(function(f){var H=f.data;var v=function(){return H().flowStateKey||""},t=_.s7(i4p,v),M=function(){return _.U(t(),Zm)},h=function(){if(_.J("enable_gff_accessibility_fix")){var y=!0,m;
if((m=M())==null?0:m.navigationEnabled){var W;_.XA((W=M())==null?void 0:W.navigationCommand);y=!1}m=Object.assign({},t(),{abuseReportFlowState:Object.assign({},M(),{isReportFormDirty:y})});_.HK(_.lF("flowStateEntity",v(),m))}else _.XA((y=M())==null?void 0:y.navigationCommand)};
return _.O("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.O("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.O(_.Jj,{data:function(){return H().cancelButton}},{buttonViewModel:function(y){return _.O(_.Wp,{data:y.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:h})}}),_.O(_.Jj,{data:function(){var y;
if(H().navButton){var m=Object;var W=m.assign,I=_.U(H().navButton,_.af),S=((y=M())==null?0:y.navigationEnabled)||_.J("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",d,Z;y=_.U((d=M())==null?void 0:d.navigationCommand,_.PK);d=(Z=_.U(y,_.X7))==null?void 0:Z.url;m={buttonViewModel:W.call(m,{},I,{state:S,iconName:d?"OPEN_IN_NEW":""})}}else m=void 0;return m}},{buttonViewModel:function(y){return _.O(_.Wp,{data:y.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:h})}})))},"tg");
P$F.idomCompat=!0;_.yn(P$F,"yt-report-form-bottom-bar-view-model",{props:{data:_.ki}});var GNb=_.a(function(f){var H=f.nextStep;return _.O("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.O("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.O(_.JE,{icon:function(){return H().iconName||""}})),_.O("div",null,_.O(_.iq,{text:function(){return H().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"ug"),C$x=_.a(function(f){var H=f.data;
var v,t=(v=_.t8().resolve(_.vh(_.TK)))==null?void 0:v(),M=_.s7(_.XX,function(){return H().flowStateKey||""});
return _.O("yt-report-form-confirmation-page-view-model",{class:function(){var h;return((h=_.U(M(),Zm))==null?void 0:h.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.O("div",{class:function(){var h;
return((h=_.U(M(),Zm))==null?void 0:h.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.O(_.Hn,{data:function(){return t&&H().imageDark?H().imageDark:H().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.O("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.O("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return H().confirmationHeader}),_.O("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.O(_.iq,{text:function(){return H().confirmationText}})),_.O("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.O(_.iq,{text:function(){return H().lawEnforcementText}})),
_.O("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return H().whatToExpectHeader}),_.O(_.g,{cond:function(){return H().nextSteps},
then:function(h){return _.O("div",null,_.O(_.eK,{each:h},function(y){return _.O(GNb,{nextStep:y})}))}}),_.O(_.g,{cond:function(){return H().legalReportText},
then:function(h){return _.O("div",null,_.O(_.iq,{text:h,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"vg");
C$x.idomCompat=!0;_.yn(C$x,"yt-report-form-confirmation-page-view-model",{props:{data:_.ki}});var EFh=_.a(function(f){var H=f.data;var v=function(){var h;return((h=_.U(H().inputBox,EZG))==null?void 0:h.maxChars)||500},t=function(){return H().flowStateKey||""},M=_.s7(_.XX,t);
f=_.SI(function(h){h=Object.assign({},M(),{flowFormState:{isValid:h.length<=v()},abuseReportFlowState:{userComments:h,navigationEnabled:!(h.length>v()),isReportFormDirty:!0}});_.fu().dispatch(_.z7("flowStateEntity",t(),h))},150);
_.Kc(function(){var h=Object.assign({},M(),{flowFormState:{isValid:!0}});_.fu().dispatch(_.z7("flowStateEntity",t(),h))});
return _.O("yt-report-form-details-page-view-model",{class:function(){var h;return((h=_.U(M(),Zm))==null?void 0:h.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.O("h1",{class:function(){var h;
return((h=_.U(M(),Zm))==null?void 0:h.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return H().detailsPageHeader}),_.O("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.O(_.iq,{text:function(){return H().bodyText}})),_.O("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.O(fJ,{label:function(){var h;
return((h=_.U(H().inputBox,EZG))==null?void 0:h.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var h;return{errorMessage:((h=_.U(H().inputBox,EZG))==null?void 0:h.maxCharsExceededErrorMessage)||"",maxChars:v()}},
onInput:f})))},"wg");
EFh.idomCompat=!0;_.yn(EFh,"yt-report-form-details-page-view-model",{props:{data:_.ki}});var N8A=_.a(function(f){var H=f.data;var v=_.w8("div"),t=function(){return H().flowStateKey||""},M=_.s7(_.XX,t),h=function(){return _.U(M(),Zm)};
_.K4(function(){var y,m;if(((y=h())==null?0:y.isReportFormDirty)&&((m=h())==null||!m.navigationEnabled)&&_.J("enable_gff_accessibility_fix")){var W;if(((W=h())==null?void 0:W.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var I;(I=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||I.scrollIntoView()}else{var S;(S=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||S.scrollIntoView()}}},"VvP2Ne");
return _.O("yt-report-form-reason-select-page-view-model",{class:function(){var y;return((y=h())==null?void 0:y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.O("h1",{class:function(){var y;
return((y=h())==null?void 0:y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return H().pageHeader}),_.O("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.O(_.iq,{text:function(){return H().bodyText}})),_.O("div",{class:function(){var y;
return((y=h())==null?void 0:y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.O(_.g,{cond:function(){var y,m;
return((y=h())==null?void 0:y.isReportFormDirty)&&!((m=h())==null?0:m.navigationEnabled)&&_.J("enable_gff_accessibility_fix")},
then:function(){return _.O("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:v},_.O(_.JE,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.O("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return H().emptyReasonSelectErrorMessage}))}}),_.O(_.r7b,{data:function(){return _.U(H().radioButtonGroup,_.JS)},
onSelected:function(y,m){y=Object.assign({},M(),{abuseReportFlowState:Object.assign({},h(),{reasonKey:m.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:m.command})});_.HK(_.lF("flowStateEntity",t(),y))},
selectedKey:function(){var y;return(y=h())==null?void 0:y.reasonKey},
groupName:"report-form-reason-select-page"})))},"xg");
N8A.idomCompat=!0;_.yn(N8A,"yt-report-form-reason-select-page-view-model",{props:{data:_.ki}});var c7i=_.a(function(f){var H=f.data;var v,t=(v=_.t8().resolve(_.vh(_.TK)))==null?void 0:v();return _.O("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.O("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.O(_.Hn,{data:function(){return t&&H().imageDark?H().imageDark:H().image},
alt:""})),_.O("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.O("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return H().header}),_.O(_.iq,{text:function(){return H().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"yg");
c7i.idomCompat=!0;_.yn(c7i,"yt-report-form-sign-in-page-view-model",{props:{data:_.ki}});_.yn(_.a(function(f){var H=f.data;var v=_.uE(_.bcW),t=function(){return H().titleSuperscript},M=function(){return H().answersShelf},h=function(){return H().videoShelf},y=function(){var X;
return(X=H().textInputPlaceholder)==null?void 0:X.content},m=function(){return H().showOpenTextInput&&!_.J("web_hide_explore_hub_until_user_navigates_back_to_home")},W=function(){var X;
return(X=H().textInputValue)==null?void 0:X.content},I=function(){return H().isMultiTurnFlow?H().resetButtonViewModel:void 0},S=!1;
f=_.V(_.gp(!1,void 0,"Ma3kC"));var d=f.next().value,Z=f.next().value;f=_.V(_.gp("",void 0,"gZZxVc"));var l=f.next().value,L=f.next().value,r=function(){return{state:d()?"active":"disabled"}};
_.ru(function(){if(m()){W()&&L(W());var X;if(!I()&&((X=v())==null?0:X.stepStates)){var fg;X=Object.keys((fg=v())==null?void 0:fg.stepStates);fg=X[X.length-1];var gB,O5;(fg=(gB=v().stepStates[fg])==null?void 0:(O5=gB.userQuery)==null?void 0:O5.userQuery)&&L(fg)}}});
var n=function(X){var fg=H().onUpdateText;fg&&_.XA(fg,{form:{userQuery:X}});L(X)},Q=_.SI(function(X){n(X.target.value.trim())},150),C=_.d6(function(X){var fg;
Z(!((fg=X.target.value)==null||!fg.trim())||S);Q(X);return!1}),w=_.d6(function(X){if(X.key==="Enter"&&d()){n(X.target.value.trim());
X=void 0;var fg=_.U(H().nextButtonViewModel,_.af),gB,O5;if(fg==null?0:(gB=fg.loggingDirectives)==null?0:(O5=gB.clientVeSpec)==null?0:O5.uiType){var s5,U5;X=_.$$((s5=fg.loggingDirectives)==null?void 0:(U5=s5.clientVeSpec)==null?void 0:U5.uiType)}(gB=H().onNextStepCommand)&&_.XA(gB,{forceClickLogging:!0,clickedVisualElement:X})}return!1}),c=function(X,fg){S=fg;
Z(fg);if(H().isMultiTurnFlow&&fg){var gB;n((gB=X==null?void 0:X.text)!=null?gB:"")}if(_.J("web_hide_explore_hub_until_user_navigates_back_to_home")){var O5,s5,U5;(U5=(s5=(O5=A.value)==null?void 0:O5.closest("ytd-flow-step-renderer"))==null?void 0:s5.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||U5.click()}},A=_.TN("yt-talk-to-recs-view-model");
f={};return _.O("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:A},_.O("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.O(_.Jj,{data:function(){return H().topCornerButton}},{buttonViewModel:_.Wp})),_.O("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.O("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.O(_.iq,{text:function(){return H().title}}),_.O(_.g,{cond:t,
then:function(){return _.O("sup",{class:"ytwTalkToRecsSuperScript"},_.O(_.iq,{text:t}))}})),_.O("div",{class:"ytwTalkToRecsSubtitle"},_.O(_.iq,{text:function(){return H().subtitle}})),_.O("div",{class:"ytwTalkToRecsResultsShelf"},_.O(_.g,{cond:M,
then:function(){return _.O(_.Jj,{data:M},{chipsShelfViewModel:function(X){return _.O("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.O(_.DH,{data:X.data,callback:c,selectionBehavior:1}))}})}}),_.O(_.g,{cond:h,
then:function(){return _.O(_.Jj,{data:h},{horizontalShelfViewModel:function(X){return _.O("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.O(_.u4,{data:X.data,includeMargin:!0,thumbnailAspectRatio:0}))}})}})),_.O("div",{class:_.S2("ytwTalkToRecsRefinementContainer",(f.ytwTalkToRecsBottomMargin=function(){return H().isMultiTurnFlow},f))},_.O(_.g,{cond:m,
then:function(){return _.O("div",{class:"ytwTalkToRecsUserInputBox"},_.O("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:y,value:l,"on:input":C,"on:keyup":w,maxlength:200}))}}),_.O(_.Jj,{data:function(){return H().isMultiTurnFlow?H().nextButtonViewModel:void 0}},{buttonViewModel:function(X){return _.O("div",{class:"ytwTalkToRecsFlowControlButtons"},_.O(_.Wp,{data:X.data,
buttonOverrides:r}))}}),_.O(_.Jj,{data:I},{buttonViewModel:function(X){return _.O("div",{class:"ytwTalkToRecsFlowControlButtons"},_.O(_.Wp,{data:X.data,
onClick:function(){var fg=_.U(H().resetButtonViewModel,_.af);n(l());(fg=fg==null?void 0:fg.onTap)&&_.XA(fg)}}))}}))))},"zg"),"yt-talk-to-recs-view-model",{props:{data:_.ki}});var ici={sources:[{clientResource:{imageName:"CHECK"}}]};_.Xkh=_.a(function(f){var H=_.TN("div");f=_.tV(f,{error:void 0});var v=f.data,t=f.error,M=f.onSelected;f=_.V(_.sR(function(){return w60(v())}));
var h=f.next().value,y=f.next().value;vZw(v,function(Z){y(Z);var l,L,r=Tur((l=v().options)==null?void 0:(L=l[Z])==null?void 0:L.value,v().type);M==null||M(r);H.value.focus()});
f=_.d6(function(){if(!v().disabled){var Z=v(),l=h(),L=H.value;Z.options&&(Z=ket(Z.options,l,Z.label),_.t8().resolve(_.zQ).openSheet({viewModel:Z},L))}});
var m=_.AL3(),W=function(){return!!t()},I=function(){return!!v().disabled},S={},d={};
return _.O("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.O("div",{class:_.S2("ytDropdownViewModelDropdownContainer",(S.ytDropdownViewModelDropdownContainerErrorBorder=W,S.ytDropdownViewModelDropdownContainerDisabled=I,S)),"on:click":f,el:H,role:"combobox",tabindex:0,"on:keydown":m,"aria-invalid":W,"aria-disabled":I,"aria-describedby":function(){return W()?"dropdown-view-model-error":void 0}},_.O("div",{class:"ytDropdownViewModelText"},qSx(v,W,h),fyp(v,h)),_.O("div",{class:_.S2("ytDropdownViewModelChevronDown",
(d.ytDropdownViewModelChevronDownDisabled=I,d))},_.O(_.JE,{icon:"CHEVRON_DOWN"}))),HlF(v,t))},"Ag");_.yn(_.a(function(f){var H=f.data;var v=function(M){var h=M$A(H());h.videoMetadata||(h.videoMetadata={});h.videoMetadata.sponsorshipsMetadata||(h.videoMetadata.sponsorshipsMetadata={});h.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(M)},t=function(M){var h=M$A(H());
h.scheduledRedirectMetadata||(h.scheduledRedirectMetadata={});h.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(M)};
return _.O("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.O("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.O("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.O(_.iq,{text:function(){return H().title}}),_.O(_.JE,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.O(_.iq,{text:function(){return H().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.O(_.Jj,{data:function(){return H().tierChoices}},{dropdownViewModel:function(M){return _.O("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.O(_.Xkh,{data:M.data,
onSelected:v}))}}),_.O(_.Jj,{data:function(){return H().startTimeChoices}},{dropdownViewModel:function(M){return _.O("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.O(_.Xkh,{data:M.data,
onSelected:t}))}}),_.O(_.iq,{text:function(){return H().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.O("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.O(_.Jj,{data:function(){return H().scheduleButton}},{panelFooterViewModel:_.wM})))},"Bg"),"ytfz-schedule-fanzone-view-model",{props:{data:_.ki}});_.yn(_.a(function(f){var H=f.data;f=f.className===void 0?"":f.className;var v=_.s7(i4p,function(){return H().flowStateEntityKey||""}),t={};
t=_.S2("ytFlowBottomBarViewModelFlowBottomBarButtons",(t.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},t));
var M={},h=_.S2("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",t,(M.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},M.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},M));
M={};var y=_.S2("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",t,(M.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},M.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},M));
t={};t=_.S2("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(t.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},t.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},t.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
t));
f=_.S2("ytFlowBottomBarViewModelHost",f);return _.O("yt-flow-bottom-bar-view-model",{class:f},_.O(_.g,{cond:function(){var m;return(m=H())==null?void 0:m.textSection},
then:function(m){return _.O("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.O(_.iq,{text:m}))}}),_.O("div",{class:t},_.O(_.Jj,{data:function(){return H().secondaryButton}},{buttonViewModel:function(m){return _.O(_.Wp,{data:m.data,
className:y})}}),_.O(_.Jj,{data:function(){return H().primaryButton}},{buttonViewModel:function(m){return _.O(_.Wp,{data:m.data,
className:h,buttonOverrides:function(){var W;return{disabled:!((W=v())==null||!W.primaryButtonDisabled)}}})}})))},"Cg"),"yt-flow-bottom-bar-view-model",{props:{data:_.ki,
className:_.Rm}});var A7t="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),Hg=function(){var f=_.K.apply(this,arguments)||this;f.enableScrollingFix=!0;f.bottomBar=!1;f.hideBottomBar=!1;f.fitContent=!1;return f};
_.e(Hg,_.K);_.R=Hg.prototype;_.R.ready=function(){_.J("enable_pdp_icon_prefetch")&&_.ayA(_.t8().resolve(_.lu),0,A7t)};
_.R.focus=function(f){this.topBar?_.kX(this.topBar,f):this.paperDialog.focus(f)};
_.R.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$19057_scroller&&(this.JSC$19057_scroller.dialogElement=this.paperDialog,this.JSC$19057_scroller.attached&&typeof this.JSC$19057_scroller.attached==="function"&&this.JSC$19057_scroller.attached())};
_.R.onDataChanged=function(){var f;this.fitContent=!((f=this.data)==null||!f.fitContent);var H;this.bottomBar=!((H=this.data)==null||!H.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.R.onProgressChanged=function(){var f,H,v=((H=(f=this.data)==null?void 0:f.progress)!=null?H:0)*100;this.progressElement.style.width=v+"%"};
_.R.isProgressHidden=function(){var f;return!((f=this.data)==null?0:f.progress)};
_.R.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(f){return _.J("enable_wiz_next_lp2_msof")&&f&&!f.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.H7.Object.defineProperties(Hg.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var f;return _.J("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.U((f=this.data)==null?void 0:f.content,blA)}}});
Hg.prototype.onProgressChanged=Hg.prototype.onProgressChanged;Hg.prototype.onDataChanged=Hg.prototype.onDataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Hg.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Hg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Hg.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Hg.prototype,"enableScrollingFix",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Hg.prototype,"bottomBar",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Hg.prototype,"hideBottomBar",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Hg.prototype,"containsExploreHub",null);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Hg.prototype,"fitContent",void 0);_.E([_.lJ("#progress"),_.N("design:type",HTMLElement)],Hg.prototype,"progressElement",void 0);
_.E([_.lJ("#scroller"),_.N("design:type",Object)],Hg.prototype,"JSC$19057_scroller",void 0);_.E([_.lJ("ytd-flow-top-bar-renderer"),_.N("design:type",HTMLElement)],Hg.prototype,"topBar",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Hg.prototype,"onDataChanged",null);_.E([_.Zw("data.progress"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Hg.prototype,"onProgressChanged",null);
_.E([_.u({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],Hg);
_.G(Hg,"ytd-flow-step-renderer",function(){if(emW!==void 0)return emW;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return emW=f},{mode:1});var bbA=function(f){this.resolveCommand=f;this.steps={}},ibp=function(f,H){H=_.V(H||[]);
for(var v=H.next();!v.done;v=H.next()){v=v.value;var t=Object.values(v)[0],M=void 0;if((M=t)==null?0:M.stepId)f.steps[t.stepId]=v}},wk0=function(f,H){var v,t,M,h,y;
return _.Y(function(m){if((v=f.state)==null||!v.currentStepId)return m.return(void 0);t=kNG(f);if(!t)return m.return(T8b(f));if(M=_.U(t,_.A8p)){var W;((W=M.screenLoggingData)==null?0:W.screenVeType)&&_.y8(_.UV(),M.screenLoggingData.screenVeType);((h=M)==null?0:h.onStepStartCommand)&&f.resolveCommand((y=M)==null?void 0:y.onStepStartCommand,{})}if(M&&H){W=M;var I,S,d,Z;((I=H.flowLoggingData)==null?0:I.eventNamespace)&&((S=W.flowEventData)==null?0:S.eventType)&&((d=W.flowEventData)==null?0:d.eventMetadata)&&
((Z=H.flowLoggingData)==null?0:Z.flowType)&&(I=_.jc(H.flowLoggingData.eventNamespace,W.flowEventData.eventType,W.flowEventData.eventMetadata),_.s6(_.Zn(),I,H.flowLoggingData.flowType));H.steps&&!H.steps.includes(t)&&H.steps.push(t)}return m.return(t)})};
bbA.prototype.back=function(){var f;(f=this.state)!=null&&f.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
bbA.prototype.handleUpdateFlowCommand=function(f){f.steps&&ibp(this,f.steps);f.entityUpdateCommand&&this.resolveCommand(f.entityUpdateCommand,{});f.flowContinuationCommand&&(f=f.flowContinuationCommand)&&(this.getFlowContinuationCommand=f);this.awaitFlowContinuation&&(this.awaitFlowContinuation(kNG(this)),this.awaitFlowContinuation=void 0)};
bbA.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var T8b=function(f){return _.Y(function(H){return f.getFlowContinuationCommand?H.return(new Promise(function(v){f.awaitFlowContinuation=v;f.getFlowContinuationCommand&&f.resolveCommand(f.getFlowContinuationCommand,{flow_state:f.state})})):H.return(Promise.resolve(void 0))})},kNG=function(f){var H;
if((H=f.state)!=null&&H.currentStepId)return f.steps[f.state.currentStepId]};var vg=function(){var f=_.K.apply(this,arguments)||this;f.flowState=new bbA(function(H,v){v=v===void 0?{}:v;_.jW.instance.resolveCommand(H,{form:{form:v,element:f.hostElement}})});
f.initialState=!0;f.isLoading=!1;f.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"};f.containsTalkToRecs=!1;return f};
_.e(vg,_.K);_.R=vg.prototype;_.R.onPopupClosed=function(f){f&&this.hostElement!==f.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.R.configureRendererStamper=function(){return{"data.topBar":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.R.focus=function(f){var H=this;_.bJ(function(){var v=_.mF(H.hostElement).querySelector("ytd-flow-step-renderer");(v==null?0:v.topBar)?v.focus(f):H.topBar&&_.kX(H.topBar,f)},1)};
_.R.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.R.computeTopBarHidden=function(f){var H;return!((H=_.U(f,_.A8p))==null||!H.topBarOverride)};
_.R.dataChanged=function(){var f=this,H,v;return _.Y(function(t){if(t.nextAddress==1){((H=f.data)==null?0:H.steps)&&ibp(f.flowState,f.data.steps);if((v=f.data)==null?0:v.flowContinuationCommand){var M=f.flowState,h=f.data.flowContinuationCommand;h&&(M.getFlowContinuationCommand=h)}return t.yield(wk0(f.flowState,f.data),2)}f.currentFlowStep=t.yieldResult;_.Bj(t)})};
_.R.flowChanged=function(){var f=this,H;return _.Y(function(v){if(v.nextAddress==1){if(!f.flow)return v.return();f.flowState.state=f.flow;f.isLoading=!0;return v.yield(wk0(f.flowState,f.data),2)}H=v.yieldResult;if(!H||f.flow.isLoading)return v.return();f.currentFlowStep=H;f.initialState=!1;f.isLoading=!1;f.autofocusAndRefit();f.updateContainsTalkToRecs();_.Bj(v)})};
_.R.updateContainsTalkToRecs=function(){var f,H=(f=_.U(this.currentFlowStep,_.A8p))==null?void 0:f.content;this.containsTalkToRecs=!!H&&!!_.U(H,blA)};
_.R.autofocusAndRefit=function(){var f=this,H=_.t8().resolve(_.vh(_.RM)),v=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),t=document.querySelector("yt-report-form-confirmation-page-view-model"),M=document.querySelector("yt-report-form-details-page-view-model"),h=document.querySelector("yt-report-form-reason-select-page-view-model"),y=document.querySelector("yt-contributor-zero-state-view-model"),
m=document.querySelector("yt-structured-context-note-view-model"),W=document.querySelector("yt-note-view-model");(!v&&H&&H.isKeyBoardInUse()||t||!v&&M||!v&&h||y||m||W)&&_.Tj(this.hostElement);_.qV(this,function(){_.YE(f.hostElement,"yt-refit")})};
_.R.handleUpdateFlowCommand=function(f){this.data&&(f=_.U(f,XhW),f.targetId===this.data.targetId&&(f.flowContinuationCommand&&(this.data.flowContinuationCommand=f.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(f),this.autofocusAndRefit()))};
_.R.handleFlowNextStepCommand=function(f){this.data&&this.flow&&this.flow.key&&(f=_.U(f,NHF),f.targetId===this.data.targetId&&(f=f.stepId||"",this.ytdReduxBehavior.dispatch(_.z7("flowStateEntity",this.flow.key,{currentStepId:f,stepIdStack:(this.flow.stepIdStack||[]).concat(f)}))))};
_.R.handleFlowPrevStepCommand=function(f){if(this.data&&this.flow&&this.flow.key&&(f=_.U(f,c8W),f.targetId===this.data.targetId)){var H=[].concat(_.pS(this.flow.stepIdStack||[]));H.length>1?(H.pop(),this.ytdReduxBehavior.dispatch(_.z7("flowStateEntity",this.flow.key,{currentStepId:H[H.length-1],stepIdStack:H}))):f.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(f.onFirstStepCommand)}};
_.R.handleYpcCancelRecurrenceCommand=function(f){if(this.data&&this.flow&&this.flow.key&&(f=_.U(f,qki),f.targetId===this.data.targetId&&f.endpointCommand)){var H=_.U(this.flow,fUh);H&&_.U(f.endpointCommand,_.npg)&&(_.U(f.endpointCommand,_.npg).feedbackData=H.surveyFeedback);this.ytComponentBehavior.resolveCommand(f.endpointCommand)}};
_.R.handlePartialUpdateFlowStateEntity=function(f){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.z7("flowStateEntity",this.flow.key,f,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
vg.prototype.flowChanged=vg.prototype.flowChanged;vg.prototype.dataChanged=vg.prototype.dataChanged;vg.prototype.onPopupClosed=vg.prototype.onPopupClosed;_.E([_.B(_.um),_.N("design:type",Object)],vg.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],vg.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],vg.prototype,"ytComponentBehavior",void 0);
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],vg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],vg.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],vg.prototype,"initialState",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],vg.prototype,"isLoading",void 0);_.E([_.F(),_.N("design:type",Object)],vg.prototype,"data",void 0);
_.E([_.F(),_.N("design:type",Object)],vg.prototype,"currentFlowStep",void 0);_.E([_.sE("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],vg.prototype,"onPopupClosed",null);_.E([_.F({selectorArgs:["data.flowStateEntityKey"],selector:i4p}),_.N("design:type",Object)],vg.prototype,"flow",void 0);_.E([_.lJ("ytd-flow-top-bar-renderer"),_.N("design:type",HTMLElement)],vg.prototype,"topBar",void 0);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],vg.prototype,"dataChanged",null);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],vg.prototype,"containsTalkToRecs",void 0);_.E([_.xV("flow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],vg.prototype,"flowChanged",null);_.E([_.u({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],vg);
_.qPx=_.$6()(vg,"ytd-flow-root-renderer",function(){if(URA!==void 0)return URA;var f=document.createElement("template");_.x(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return URA=f},{mode:_.WK("kevlar_poly_si_batch_j025")?1:2});var fxb;var j1=null;_.yn(_.a(function(f){return _.O("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.O("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.O(_.iq,{text:function(){return f.data().text}}),_.O("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Dg"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.ki}});var H1F=_.a(function(f){var H=f.playerControlsProps;var v=f.isShortsPage;return _.O("yt-bigboard",null,_.O(_.g,{cond:function(){return H().isDragging},
then:function(){return _.O("div",{class:"ytBigboardStoryboardHost"},_.O(_.nOw,{progressBarProps:H,isShortsPage:v}))}}))},"Eg");
H1F.idomCompat=!0;_.tL={ACCOUNT_LABEL:sD("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:sD("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:sD("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:sD("AD_BADGE_HINT"),AD_BADGE_TEXT:sD("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:sD("ALL_CHANNELS_LABEL"),AMBIENT_MODE:sD("AMBIENT_MODE"),AMBIENT_MODE_OFF:sD("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:sD("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:sD("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:sD("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:sD("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:sD("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:sD("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:sD("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:sD("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:sD("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:sD("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:sD("AUTO_ZOOM","Auto zoom"),BACK:sD("BACK"),CANCEL:sD("CANCEL"),CHANNEL_SWITCHER_LABEL:sD("CHANNEL_SWITCHER_LABEL"),CLOSE:sD("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:sD("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:sD("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:sD("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:sD("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:sD("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:sD("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:sD("COMMENT_MODAL_CONTENT"),CONFIRM_OK:sD("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:sD("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:sD("COPIED_TO_CLIPBOARD"),COPY:sD("COPY"),COPY_DEBUG_INFO:sD("COPY_DEBUG_INFO"),COPY_EMBED_CODE:sD("COPY_EMBED_CODE"),
COPY_LINK_LABEL:sD("COPY_LINK_LABEL"),COPY_VIDEO_URL:sD("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:sD("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:sD("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:sD("DELETE_FROM_DOWNLOADS"),DIALOG:sD("DIALOG"),DONE:sD("DONE"),DOWNLOAD:sD("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:sD("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:sD("FLAG_CONFIRM"),FLAG_CONTENT:sD("FLAG_CONTENT"),FLAG_LABEL:sD("FLAG_LABEL"),FLAG_TITLE:sD("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:sD("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:sD("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:sD("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:sD("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:sD("HIDE_SEARCH_FILTERS_LABEL"),HOME:sD("HOME","Home"),INVALID_RESPONSE_RECEIVED:sD("INVALID_RESPONSE_RECEIVED"),LIBRARY:sD("LIBRARY","Library"),LISTENING:sD("LISTENING"),LOADING:sD("LOADING"),LONG_PRESS_MIC_TO_SPEAK:sD("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:sD("LOOP"),MENU_DESKTOP:sD("MENU_DESKTOP"),
MENU_EXIT:sD("MENU_EXIT"),MENU_FEEDBACK:sD("MENU_FEEDBACK"),MENU_HELP:sD("MENU_HELP"),MENU_IMPRESSUM:sD("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:sD("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:sD("MENU_SETTINGS"),MENU_SIGN_IN:sD("MENU_SIGN_IN"),MENU_TITLE:sD("MENU_TITLE"),MENU_YOUR_DATA:sD("MENU_YOUR_DATA"),MORE_INFO:sD("MORE_INFO"),MORE_OPTIONS:sD("MORE_OPTIONS"),MUTE_VOLUME:sD("MUTE_VOLUME"),NEW_PLAYLIST:sD("NEW_PLAYLIST"),NEXT_VIDEO:sD("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:sD("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:sD("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:sD("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:sD("NOT_FOUND_TITLE"),NO_DOWNLOADS:sD("NO_DOWNLOADS"),NO_MIC_INPUT:sD("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:sD("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:sD("OOPS_MESSAGE"),OPEN_APP:sD("OPEN_APP"),OPEN_YOUTUBE:sD("OPEN_YOUTUBE"),PAUSE:sD("PAUSE"),PLAY:sD("PLAY"),PLAYER_CAPTION:sD("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:sD("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:sD("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:sD("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:sD("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:sD("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:sD("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:sD("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:sD("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:sD("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:sD("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:sD("PLAYER_MINIMIZE"),PLAYER_NEXT:sD("PLAYER_NEXT"),PLAYER_PAUSE:sD("PLAYER_PAUSE"),PLAYER_PLAY:sD("PLAYER_PLAY"),
PLAYER_PREVIOUS:sD("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:sD("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:sD("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:sD("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:sD("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:sD("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:sD("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:sD("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:sD("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:sD("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:sD("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:sD("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:sD("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:sD("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:sD("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:sD("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:sD("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:sD("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:sD("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:sD("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:sD("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:sD("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:sD("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:sD("PLAY_ALL"),PLEASE_FIX_ERRORS:sD("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:sD("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:sD("PREVIOUS_VIDEO"),PRIVACY_POLICY:sD("PRIVACY_POLICY"),RELOAD:sD("RELOAD"),REQUIRED_LABEL:sD("REQUIRED_LABEL"),SAVE_PLAYLIST:sD("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:sD("SCRUB_SLIDE_USER_EDU"),SEARCH:sD("SEARCH","Search"),
SEARCH_APPEND_LABEL:sD("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:sD("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:sD("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:sD("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:sD("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:sD("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:sD("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:sD("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:sD("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:sD("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:sD("SEEK_SLIDER"),SETTINGS_LABEL:sD("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:sD("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:sD("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:sD("SHOW_LESS"),SHOW_MORE:sD("SHOW_MORE"),SHOW_PLAYER_CONTROLS:sD("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:sD("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:sD("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:sD("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:sD("SIGN_IN_ON_WEB"),STABLE_VOLUME:sD("STABLE_VOLUME"),STABLE_VOLUME_OFF:sD("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:sD("STABLE_VOLUME_ON"),STATS_FOR_NERDS:sD("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:sD("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:sD("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:sD("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:sD("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:sD("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:sD("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:sD("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:sD("TIMESTAMP_SECONDS"),TOGGLE_OFF:sD("TOGGLE_OFF"),TOGGLE_ON:sD("TOGGLE_ON"),TRENDING:sD("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:sD("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:sD("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:sD("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:sD("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:sD("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:sD("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:sD("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:sD("VIDEO_LINK_LABEL")};var v7p=_.a(function(f){var H=f.playerApi;f=_.TN("button",function(t){_.Ai(t,36843)});
var v=sD("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.O("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.O("button",{el:f,class:"ytPlayerControlsJumpForwardButtonButton",title:v,"aria-label":v,"on:click":_.d6(function(){_.bu(36843);H&&H().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.O("span",null,_.O(_.JE,{icon:"FAST_FORWARD"}))))},"Fg");var t6F=_.a(function(f){var H=f.appApi;f=_.TN("button",function(t){_.Ai(t,62946)});
var v=sD("OPEN_IN_MINIPLAYER");return _.O("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.O("button",{el:f,class:"ytMiniplayerButtonButton",title:v,"aria-label":v,"on:click":_.d6(function(){_.bu(62946);var t,M;(M=(t=H()).openInMiniplayer)==null||M.call(t);return!1})},_.O(_.JE,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Gg");var M6p=_.a(function(f){var H=f.playerApi;f=_.TN("button",function(h){_.Ai(h,142812)});
var v=_.V(_.gp(!1,void 0,"I3VCyb")),t=v.next().value,M=v.next().value;v=function(){return sD("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(t()?1:2)})};
return _.O("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.O("button",{el:f,class:"ytPlaybackSpeedButtonButton",title:v,"aria-label":v,"on:click":_.d6(function(){_.bu(142812);if(H){var h=H(),y=t();h.setPlaybackRate(y?1:2);M(!t())}return!1})},_.O("span",null,_.O(_.JE,{icon:function(){return t()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Hg");var hLA=_.a(function(f){var H=f.title;var v=f.ariaLabel;var t=f.icon;var M=f.command;var h=f.veType;f=_.TN("button",function(y){h&&_.Ai(y,h())});
return _.O("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.O("button",{el:f,class:"ytdThumbnailOverlayButtonButton",title:H,"aria-label":v,"on:click":_.d6(function(){h&&_.bu(h());M&&_.t8().resolve(_.MJ).resolveCommand(M())})},_.O(_.JE,{icon:t})))},"Ig");var ml="";var RL0=_.a(function(f){var H=f.playerControlsProps,v=f.onClickFn;f=_.sg(function(){var h=H(),y=-1;h.captionsAvailable&&(y=h.captionsEnabled?1:0);return y},void 0,"WecR8e");
var t=_.sg(function(){var h=H();return h.captionsAvailable?_.ZC(h.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.ZC("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),M=_.sg(function(){var h=H();
h=h.captionsAvailable?h.captionsEnabled:void 0;return h},void 0,"Q17ly");
return _.O("yt-closed-captions-toggle-button",null,_.O(_.jhw,{captionIconType:f,ariaLabel:t,ariaPressed:M,onClick:function(h){var y=H();if(y.captionsAvailable){var m=y.playerApi;if(m){var W=y.playerApi;if(W){var I=ml;if(I){W=W.getOption("captions","track");var S;ml=(S=W?W.displayName:null)!=null?S:I}else _.XO(W)?(I=_.dFR(W),ml=I.length?(S=wMW(I))?S.displayName:I[0].displayName:""):ml=""}qgx(m);_.J("mweb_disable_set_state_captions_killswitch")&&y.setState({captionsEnabled:!y.captionsEnabled})}}var d,
Z;(Z=(d=y.appApi).showCaptionsToggleToast)==null||Z.call(d,y);v==null||v(h)},
isOverlay:!0}))},"Jg");var V6i=_.a(function(f){var H=f.data;return _.O("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.O(_.u5,{data:function(){return{type:17,text:_.EtR(H().label)}}}))},"Kg");var yMW=_.a(function(f){var H=_.S2("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return f.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return f.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return f.size()==="small"?f.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
f.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.O("animated-seek-arrows",{class:_.S2("ytPlayerControlsAnimatedSeekArrowsHost")},_.O("span",{class:H}),_.O("span",{class:H}),_.O("span",{class:H}))},"Lg");
yMW.idomCompat=!0;var YoF=_.a(function(){var f=_.ZC("PLAYER_SECONDS",{seconds_placeholder:"30"}),H=_.V(_.gp(!1,void 0,"Yj8msb")),v=H.next().value,t=H.next().value,M=_.V(_.gp(!1,void 0,"r9Z50e"));H=M.next().value;var h=M.next().value;M={};var y=_.S2("jumpForwardOverlayOverlay",(M.jumpForwardOverlayOverlayHidden=H,M));_.Kc(function(){var m=null,W=null,I=function(){m!==null&&_.Zb().cancelJob(m);W!==null&&_.Zb().cancelJob(W);h(!0);t(!0);_.OR(_.Zb(),function(){h(!1)});
m=_.OR(_.Zb(),function(){h(!0);W=_.OR(_.Zb(),function(){t(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",I);_.Dt(function(){window.removeEventListener("jump-forward-clicked",I)})});
return _.O("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.O(_.g,{cond:v,then:function(){return _.O("div",{class:y},_.O(yMW,{direction:1,size:"large"}),_.O("div",null,f))}}))},"Mg");var mVW=_.tL.MUTE_VOLUME,$Vw=_.tL.UNMUTE_VOLUME,WuA=_.a(function(f){var H=f.muteIconType;var v=f.onClick;var t=f.useOutlineIcon;var M=f.useDelhiIcons;f=_.TN("button",function(m){_.Ai(m,28662)});
var h=function(){var m=H(),W=t==null?void 0:t(),I=M==null?void 0:M(),S="",d="";switch(m){case -1:case 0:S=W?"VOLUME_OFF":I?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";d=$Vw;break;case 1:S=W?"VOLUME_UP_OUTLINE":I?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";d=mVW;break;case 2:S=W?"VOLUME_DOWN_OUTLINE":I?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";d=mVW;break;default:_.bC(m)}return{iconName:S,ariaLabel:d}},y=function(){return h().ariaLabel};
return _.O("ytm-mute-button",{class:"ytmMuteButtonHost"},_.O("button",{el:f,class:"ytmMuteButtonButton",title:y,"aria-label":y,"on:click":_.d6(function(m){_.bu(28662);v==null||v(m);return!1})},_.O("span",null,_.O(_.JE,{icon:function(){return h().iconName}}))))},"Ng");var O1W=_.a(function(f){var H=f.volumeProps;var v=f.onClickFn;var t=f.useOutlineIcon;var M=f.useDelhiIcons;return _.O("yt-mute-toggle-button",null,_.O(WuA,{muteIconType:function(){var h=H();return h.volumeMuted||h.volume===0?0:h.volume>50?1:2},
onClick:function(h){var y=H().playerApi;y&&(y.isMuted()?y.unMute():y.mute(!1));v==null||v(h)},
useOutlineIcon:function(){return!(t==null||!t())},
useDelhiIcons:function(){return!(M==null||!M())}}))},"Og");
O1W.idomCompat=!0;var g7t=_.a(function(f){var H=f.data;var v=_.TN("ytm-paid-content-overlay-renderer");return _.O("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:v,"on:animationend":_.d6(function(){v.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.O(_.VU,{command:function(){return H().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.O(_.g,{cond:function(){var t;return(t=H().icon)==null?void 0:t.iconType},
then:function(){return _.O("span",null,_.O(_.JE,{icon:function(){var t;return(t=H().icon)==null?void 0:t.iconType}}))}}),_.O("div",{class:"ytmPaidContentOverlayText"},_.O(_.iq,{text:function(){return H().text}})),_.O(_.g,{cond:function(){return H().navigationEndpoint},
then:function(){return _.O(_.JE,{icon:"CHEVRON_RIGHT"})}})))},"Pg");
g7t.idomCompat=!0;var s2x=[].concat(_.pS([{register:function(f){var H=Fpb(f),v;(v=f().playerApi)==null||v.addEventListener("onVolumeChange",H);return function(){}}},
{register:function(f){var H=r80(f);f=f().playerApi;f==null||f.addEventListener("captionschanged",H);f==null||f.addEventListener("captionssettingschanged",H);f==null||f.addEventListener("onCaptionsTrackListChanged",H);return function(){}}},
{register:function(f){if(!_.J("mweb_screenreader_accessible_player"))return function(){};
var H=KpW(f),v=document.querySelector("video");v==null||v.addEventListener("touchend",H);return function(){v==null||v.removeEventListener("touchend",H)}}},
{register:function(f){if(!_.J("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var H=KpW(f),v=document.querySelector("video");v==null||v.addEventListener("focus",H);return function(){v==null||v.removeEventListener("focus",H)}}}]),[{register:function(f){var H=LpG(f),v;
(v=f().playerApi)==null||v.addEventListener("onStateChange",H);return function(){}}},
{register:function(f){var H=xJh(f),v;(v=f().playerApi)==null||v.addEventListener("onPlaybackRateChange",H);return function(){}}},
{register:function(f){var H=BHb(f),v;(v=f().playerApi)==null||v.addEventListener("onVideoDataChange",H);return function(){}}},
{register:function(f){var H=zv5(f),v,t;(v=f())==null||(t=v.playerApi)==null||t.addEventListener("onVideoProgress",H);return function(){}}}]);var Ix5=_.a(function(f){var H=f.data;var v=function(){return _.ZC("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+H().playbackRate})};
return _.O(_.g,{cond:function(){return H().playbackRate&&H().playbackRate!==1},
then:function(){return _.O("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.O("div",{class:"ytPlaybackRateOverlayOverlay"},_.O(yMW,{direction:1,size:"small"}),_.O("div",{class:"ytPlaybackRateOverlayLabel"},v)))}})},"Qg");var SoW=_.a(function(f){var H=f.data;return _.O("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.O(_.g,{cond:function(){var v,t=(v=H())==null?void 0:v.playerResponse,M;return t==null?void 0:(M=t.paidContentOverlay)==null?void 0:M.paidContentOverlayRenderer},
then:function(v){return _.O(g7t,{data:v})}}))},"Sg"),dVW=_.a(function(f){var H=f.props;
var v=f.data;var t=f.options;var M=function(){var I,S,d,Z;return(I=v())==null?void 0:(S=I.playerResponse)==null?void 0:(d=S.playerConfig)==null?void 0:(Z=d.inlinePlaybackConfig)==null?void 0:Z.showAudioControls},h=function(){var I,S;
if(M()&&((I=t())==null?void 0:(S=I.additionalButton)==null?void 0:S.button)!==void 0){var d,Z,l;I=(d=v())==null?void 0:(Z=d.playerApi)==null?void 0:(l=Z.getSize())==null?void 0:l.height;if(!(I===void 0||I<180)){var L,r;return(L=t())==null?void 0:(r=L.additionalButton)==null?void 0:r.button}}},y=function(){var I,S;
return(I=t())==null?void 0:(S=I.additionalButton)==null?void 0:S.thumbnailOverlayButtonRenderers},m=function(){var I,S;
return(I=t())==null?void 0:(S=I.additionalButton)==null?void 0:S.thumbnailOverlayButtonViewModels},W=function(){var I=[_.O(O1W,{volumeProps:H}),
_.O(RL0,{playerControlsProps:H})];h()===1&&I.push(_.O(v7p,{playerApi:function(){return H().playerApi}}));
h()===2&&I.push(_.O(t6F,{appApi:function(){return H().appApi}}));
h()===3&&I.push(_.O(M6p,{playerApi:function(){return H().playerApi}}));
var S=y();if(h()===4&&S){S=_.V(S);for(var d=S.next(),Z={};!d.done;Z={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$50:void 0,command$jscomp$587:void 0},d=S.next()){d=d.value;Z.tooltip$jscomp$2=d.tooltip;var l=void 0,L=void 0;Z.ariaLabel$jscomp$20=((l=d.accessibility)==null?void 0:(L=l.accessibilityData)==null?void 0:L.label)||Z.tooltip$jscomp$2;l=void 0;Z.icon$jscomp$50=(l=d.icon)==null?void 0:l.iconType;Z.command$jscomp$587=d.command;Z.tooltip$jscomp$2&&Z.ariaLabel$jscomp$20&&Z.icon$jscomp$50&&
I.push(_.O(hLA,{title:function(r){return function(){return r.tooltip$jscomp$2}}(Z),
ariaLabel:function(r){return function(){return r.ariaLabel$jscomp$20}}(Z),
icon:function(r){return function(){return r.icon$jscomp$50}}(Z),
command:function(r){return function(){return r.command$jscomp$587}}(Z)}))}}S=m();
if(h()===4&&S)for(S=_.V(S),d=S.next(),Z={};!d.done;Z={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$51:void 0,command$jscomp$588:void 0},d=S.next())d=d.value,Z.tooltip$jscomp$3=d.title,Z.ariaLabel$jscomp$21=d.accessibilityText||Z.tooltip$jscomp$3,Z.icon$jscomp$51=d.iconName,Z.command$jscomp$588=_.GK(d.onTap),Z.tooltip$jscomp$3&&Z.ariaLabel$jscomp$21&&Z.icon$jscomp$51&&I.push(_.O(hLA,{title:function(r){return function(){return r.tooltip$jscomp$3}}(Z),
ariaLabel:function(r){return function(){return r.ariaLabel$jscomp$21}}(Z),
icon:function(r){return function(){return r.icon$jscomp$51}}(Z),
command:function(r){return function(){return r.command$jscomp$588}}(Z)}));
return I};
return _.O(_.g,{cond:M,then:function(){return _.O("div",{class:"ytInlinePlayerControlsTopRightControls"},_.O(_.eK,{each:W},function(I){return _.O("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.O("div",{class:"ytInlinePlayerControlsButtonIcon"},I))}))}})},"Tg"),Z1G=_.a(function(f){var H=f.props;
var v=f.data;var t=f.options;f={};f=_.S2("ytInlinePlayerControlsBottomRightControls",(f.ytInlinePlayerControlsBottomRightControlsHidden=function(){var M;return oZb(v(),t())&&((M=t())==null?void 0:M.insetProgressBar)&&(H().isHovering||H().isDragging)},f));
return _.O("div",{class:f},_.O(jVr,{data:v}),_.O(_.g,{cond:function(){var M;return!((M=t())==null?0:M.hideTimeDisplay)},
then:function(){return _.O(sVA,{props:H,data:v})}}))},"Ug"),jVr=_.a(function(f){var H=f.data;
return _.O(_.Jj,{data:function(){var v;return Sk0((v=H())==null?void 0:v.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:V6i})},"Vg"),sVA=_.a(function(f){var H=f.props;
var v=f.data;return _.O(_.g,{cond:function(){return H().isLive},
then:function(){return _.O(JM5,null)},
else:function(){return _.O(lxG,{props:H,data:v})}})},"Wg"),lxG=_.a(function(f){var H=f.props;
var v=f.data;var t=_.sg(function(){var M;return j2A((M=v())==null?void 0:M.thumbnailOverlays)},void 0,"kUmuA");
return _.O("div",{class:_.S2("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.tL.PLAYER_TIME_ELAPSED+" "+_.x4R(H().playedTime)}},_.O(_.u5,{data:function(){var M=_.x4R(H().videoDuration-H().playedTime);
return Object.assign({},{type:17,text:M},t())}}))},"Xg"),JM5=_.a(function(){var f=_.S2("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge");
return _.O("div",{class:f},_.O(_.u5,{data:{type:18,text:_.tL.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"Yg"),UVF=_.a(function(f){var H=f.props;
var v=f.data;var t=f.options;return _.O(_.Gfp,{progressBarProps:H,config:function(){var M,h=_.U((M=v())==null?void 0:M.multiMarkersPlayerBar,_.R5M),y;M=((y=t())==null?0:y.insetProgressBar)?2:1;var m;y=(m=t())==null?void 0:m.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:M,chapterData:h,isInlinePlayback:!0,doSeekOnClick:y,playheadDotBehavior:y?1:0}}})},"Zg");_.yn(_.a(function(f){var H=f.data;var v=f.appApi;var t=f.options;var M=ev0(H,DJx(v));f={};v={};return _.O("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.O("div",{class:_.S2("ytInlinePlayerControlsDarkenedOverlay",(f.ytInlinePlayerControlsDarkenedOverlayShow=function(){return M().isHovering},f))}),_.O(YoF,null),_.O(Ix5,{data:M}),_.O(SoW,{data:H}),_.O(H1F,{playerControlsProps:M,
isShortsPage:!1}),_.O("div",{class:_.S2((v.ytInlinePlayerControlsControlsHidden=function(){return M().isDragging},v))},_.O(dVW,{props:M,
data:H,options:t}),_.O(Z1G,{props:M,data:H,options:t})),_.O(_.g,{cond:function(){return oZb(H(),t())},
then:function(){return _.O(UVF,{props:M,data:H,options:t})}}))},"Rg"),"yt-inline-player-controls",{props:{data:_.ki,
appApi:_.Rm,options:_.ki}});var MM=function(){var f=_.K.apply(this,arguments)||this;f.opts=null;f.playerControlsData=null;f.playerControlsAppApi={openInMiniplayer:function(){f.openInMiniplayer()}};
f.playerControlsOptions={};f.noAnimation=!1;f.playbackIntentTriggered=!1;f.positionData=null;f.hidden=!0;f.active=!1;f.playing=!1;f.videoPreviewDataIndex=0;f.JSC$19113_playerPromise=null;f.player=null;f.enableAudioControls=!1;f.hasBeenUnmuted=!1;f.captionsHaveBeenTurnedOff=!1;f.JSC$19113_playerEvents=new Map;f.videoPreviewFetchRequest=null;f.scheduledPreviewEndJobId=null;f.JSC$19113_preventProgressSaveTimer=null;f.watchEndpointStartTimeUpdaterInterval=null;f.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};f.windowOnBlurFn=function(){f.deactivate()};
return f};
_.e(MM,_.K);_.R=MM.prototype;
_.R.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.J("web_enable_rich_item_on_focus_effect")?{id:"endorsement",mapping:{}}:{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",
thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.R.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19113_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19113_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19113_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19113_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.jr(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.jr(this,this.onScroll))};
_.R.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.jr(this,this.onScroll))};
_.R.onPageTypeChange=function(){this.deactivate()};
_.R.onWindowResized=function(){this.deactivate()};
_.R.onCaptionsChanged=function(f){f=!!f.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!f);this.setCaptionSize()};
_.R.setCaptionSize=function(){var f;if(this.active&&!this.captionsHaveBeenTurnedOff&&((f=this.player)==null?0:f.getCaptionWindowContainerId())){var H;(H=this.player)==null||H.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.R.currentPageAllowed=function(){return!this.isWatchPage};
_.R.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var f=this.positionData,H=f.initialTopPosition,v=f.initialHorizontalPosition;_.Sr(this.hostElement,{"--ytd-video-preview-translate-left":f.finalHorizontalPosition-v+"px","--ytd-video-preview-translate-top":f.finalTopPosition-H+"px","--ytd-video-preview-original-top-position":H+"px","--ytd-video-preview-original-horizontal-position":v+"px",
"--ytd-video-preview-initial-scale":"scale("+f.initialScale+")","--ytd-video-preview-width":f.videoPreviewWidth+"px","--ytd-video-preview-height":f.videoPreviewHeight+"px"});return!0};
_.R.handleOpenVideoPreviewAction=function(f){var H=this,v;return _.Y(function(t){if(!H.currentPageAllowed())return t.return(0);H.opts=f;return(v=H.alignVideoPreviewForAnimation(f.thumbnail))?t.return(H.activate()):t.return(0)})};
_.R.onMouseLeave=function(f){this.shouldDeactivateOnMouseLeave(f)&&this.deactivate()};
_.R.onScroll=function(){var f,H;((f=this.opts)==null?0:f.isAutoplay)&&((H=this.opts)==null?0:H.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.R.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.nN.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.R.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.R.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",MM.JSC$19112_DEFAULT_CLICK_LOCATION_BEHAVIOR,MM.JSC$19112_CLICK_LOCATION_ID_MAP)};
_.R.shouldDeactivateOnMouseLeave=function(f){f=f.relatedTarget;if(!f)return!0;var H;return(H=this.opts)!=null&&H.mediaRenderer?!_.$V(this.opts.mediaRenderer).contains(f):!0};
_.R.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.R.onPlaybackStart=function(){var f=this;if(this.player&&this.playbackIntentTriggered&&this.currentPageAllowed()){this.playing=!0;this.allowUnmuting()&&this.hasBeenUnmuted&&(this.player.unMute(),this.player.syncVolume());this.player.isSubtitlesOn()?this.captionsHaveBeenTurnedOff||!this.allowCaptions()?this.player.toggleSubtitles():this.setCaptionSize():!this.captionsHaveBeenTurnedOff&&this.allowCaptions()&&this.player.toggleSubtitles();this.resetPreventProgressSaveTimer();this.JSC$19113_preventProgressSaveTimer=
_.OR(_.nN,function(){f.resetPreventProgressSaveTimer()},1E4);
var H;if((H=this.opts)==null?0:H.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.OR(_.nN,function(){f.hasMultipleVideoPreviews()?f.startPlaybackForNextVideo():f.deactivate()},this.opts.videoPreviewDurationMs);
var v;this.player.setGlobalCrop(((v=this.opts)==null?0:v.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.R.getRoundedCornersSize=function(){var f;if((f=this.opts)==null?0:f.roundedCornersSize){var H;return(H=this.opts)==null?void 0:H.roundedCornersSize}var v;if((v=this.opts)==null?0:v.enableRounding){var t;if(((t=this.opts)==null?void 0:t.thumbnailSize)==="small")return 1;var M;if(((M=this.opts)==null?void 0:M.thumbnailSize)==="medium")return 2;var h;if(((h=this.opts)==null?void 0:h.thumbnailSize)==="large")return 3}return _.J("web_imp_inset_progress_bar")?3:0};
_.R.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.R.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.R.onMediaContainerClick=function(f){this.isShortcutClick(f)||(this.navigateToWatch(f),f.preventDefault(),f.stopPropagation())};
_.R.activate=function(){var f=this,H,v,t,M,h,y,m,W,I;return _.Y(function(S){switch(S.nextAddress){case 1:if(!f.currentPageAllowed())return S.return(0);v=(H=f.videoPreviewData)==null?void 0:H.inlinePlaybackEndpoint;t=_.cn.instance;if(!v||!t)return S.return(0);f.playbackIntentTriggered=!0;((M=f.opts)==null?0:M.mediaRenderer)&&((h=f.opts)==null||!h.isAutoplay)&&gZi(f.opts.mediaRenderer,function(){f.deactivate()});
_.qV(f,function(){f.revealPreviewUi()});
y={};_.J("enable_unknown_lact_fix_on_html5")&&(_.t8().resolve(_.xK),y.lact=_.h7());f.videoPreviewFetchRequest=y8x(t,f.getInlinePlaybackRequestData(f.videoPreviewData),y);_.Zc(S,2);return S.yield(f.videoPreviewFetchRequest,4);case 4:m=S.yieldResult;if(((W=m)==null?void 0:(I=W.playabilityStatus)==null?void 0:I.status)==="OK")return S.return(f.handlePlayerResponse(m));throw Error("Uj");case 2:_.xu(S),f.deactivate();case 3:return S.return(1)}})};
_.R.getInlinePlaybackRequestData=function(f){var H,v=_.J("web_imp_player_mute_params")?((H=this.opts)==null?void 0:H.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:f.inlinePlaybackEndpoint,startPlaybackInMutedState:v}};
_.R.handlePlayerResponse=function(f){var H=this,v,t,M,h,y,m,W,I,S,d;return _.Y(function(Z){if(Z.nextAddress==1){v=H.getInlinePlaybackVideoId();if(!(((t=f)==null?0:(M=t.videoDetails)==null?0:M.videoId)&&H.currentPageAllowed()&&H.playbackIntentTriggered&&H.opts&&v))return H.deactivate(),Z.return(0);if(f.videoDetails.videoId!==v)return Z.return(0);H.enableAudioControls=!!((h=f.playerConfig)==null?0:(y=h.inlinePlaybackConfig)==null?0:y.showAudioControls);f.trackingParams=H.getInlinePlaybackTrackingParams();
if(!H.inlinePlayer)return Z.return(0);m={};if(I=_.U((W=H.videoPreviewData)==null?void 0:W.inlinePlaybackEndpoint,_.wI))m.watch_endpoint=I;if(H.videoPreviewData){var l,L=(l=_.U(H.videoPreviewData.inlinePlaybackEndpoint,_.wI))==null?void 0:l.startTimeSeconds;L!==void 0&&(f.playerConfig||(f.playerConfig={}),f.playerConfig.playbackStartConfig||(f.playerConfig.playbackStartConfig={}),f.playerConfig.playbackStartConfig.startPosition||(f.playerConfig.playbackStartConfig.startPosition={}),f.playerConfig.playbackStartConfig.startSeconds=
L,f.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(L*1E3))}H.inlinePlayer.loadVideoWithPlayerResponse(f,m);if(H.JSC$19113_playerPromise)return Z.jumpTo(2);H.JSC$19113_playerPromise=H.inlinePlayer.getPlayerPromise();return Z.yield(H.JSC$19113_playerPromise,3)}Z.nextAddress!=2&&(S=Z.yieldResult,S.setInlinePreview(!0),S.setSizeStyle(!1,!0),H.ytPlayerListenerBehavior.listenToPlayerEvents(S,H.JSC$19113_playerEvents),H.player=S,_.YE(H.hostElement,"player-api-ready"));((d=H.opts)==
null?0:d.showPlayerControls)&&H.videoPreviewData&&H.player&&(H.playerControlsData={playerResponse:f,isInlinePlayback:!0,thumbnailOverlays:H.videoPreviewData.thumbnailOverlays,playerApi:H.player},H.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!H.unroundCornersForPlayback,additionalButton:H.getAdditionalButtonType(H.videoPreviewData.thumbnailOverlays)});return Z.return(2)})};
_.R.revealPreviewUi=function(){var f=this;this.playbackIntentTriggered&&_.GXE(this,function(){f.hasThumbnailPositionChangedSinceTriggered()||(f.updateActiveState(!0),f.noAnimation=!1)})};
_.R.hasThumbnailPositionChangedSinceTriggered=function(){var f=this.positionData,H=this.getThumbnailPositionData();return(f==null?void 0:f.initialTopPosition)!==(H==null?void 0:H.initialTopPosition)||(f==null?void 0:f.initialHorizontalPosition)!==(H==null?void 0:H.initialHorizontalPosition)};
_.R.getThumbnailPositionData=function(){var f,H;if((H=this.opts)==null||!H.thumbnail)return null;H=this.opts.thumbnail;var v=((f=this.opts)==null?0:f.cropPlayerToFillThumbnailHorizontally)?!1:!0;var t=H.getBoundingClientRect();f=t.width;H=t.height;var M=t.top+window.scrollY;t=t.left+window.scrollX;var h=v?Math.ceil(f):f;v=v?Math.ceil(H):H;var y=f/h;f={initialScale:y,initialTopPosition:M-12*y,finalTopPosition:M-12-(v-H)/2,initialHorizontalPosition:t-(12+(h-f)/2),finalHorizontalPosition:t-12-(h-f)/
2,videoPreviewWidth:h,videoPreviewHeight:v};return f};
_.R.updateActiveState=function(f){this.active=f;this.ytdReduxBehavior.dispatch(_.yq({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:f}))};
_.R.stopPlayer=function(f){f=f.resetWatchEndpointStartTime===void 0?!1:f.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(f)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.nN.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.R.deactivate=function(f){f=f===void 0?{}:f;f=f.resetWatchEndpointStartTime===void 0?!1:f.resetWatchEndpointStartTime;j1&&(j1.disconnect(),j1=null);this.stopPlayer({resetWatchEndpointStartTime:f});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.R.isValidThumbnailOverlayButton=function(f,H){f=f.thumbnailOverlayButtonRenderer;var v;return!!f&&!!f.tooltip&&!((v=f.icon)==null||!v.iconType)&&H.includes(f.icon.iconType)};
_.R.isValidThumbnailOverlayButtonViewModel=function(f,H){var v;f=_.U((v=f.thumbnailOverlayButtonViewModel)==null?void 0:v.overlayButton,_.af);return!!f&&!!f.title&&!!f.iconName&&H.includes(f.iconName)};
_.R.getAdditionalButtonType=function(f){var H=this;if(_.J("web_imp_fastforward_button"))return{button:1};if(_.J("web_imp_miniplayer_button"))return{button:2};if(_.J("web_imp_playback_speed_button"))return{button:3};var v=["BOX_STACK_3"],t=(f||[]).filter(function(h){return H.isValidThumbnailOverlayButton(h,v)}).map(function(h){return h.thumbnailOverlayButtonRenderer});
if(t.length)return{button:4,thumbnailOverlayButtonRenderers:t};var M=["BOX_STACK_3"];f=(f||[]).filter(function(h){return H.isValidThumbnailOverlayButtonViewModel(h,M)}).map(function(h){return _.U(h.thumbnailOverlayButtonViewModel.overlayButton,_.af)});
if(f.length)return{button:4,thumbnailOverlayButtonViewModels:f}};
_.R.allowCaptions=function(){var f;return!((f=this.opts)==null?0:f.forceCaptionsOff)};
_.R.allowUnmuting=function(){var f;return this.enableAudioControls&&!((f=this.opts)==null?0:f.forceMutedVolume)};
_.R.beginStartTimeUpdater=function(){var f=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.Wh(function(){f.updateWatchEndpointStartTime()},1E3)};
_.R.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.R.resetPreventProgressSaveTimer=function(){this.JSC$19113_preventProgressSaveTimer!==null&&(_.nN.cancelJob(this.JSC$19113_preventProgressSaveTimer),this.JSC$19113_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.R.updateWatchEndpointStartTime=function(f){var H=this.videoPreviewData;if(this.player&&H!=null&&H.inlinePlaybackEndpoint&&!this.JSC$19113_preventProgressSaveTimer){f=f?0:Math.floor(this.player.getCurrentTime());var v=_.U(H.navigationEndpoint,_.wI);v&&(v.startTimeSeconds=f);if(H=_.U(H.inlinePlaybackEndpoint,_.wI))H.startTimeSeconds=f}};
_.R.isShortcutClick=function(f){return!!f&&(f.ctrlKey||f.shiftKey||f.metaKey)};
_.R.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.R.openInMiniplayer=function(){var f=this,H,v;return _.Y(function(t){if(t.nextAddress==1){v=(H=f.videoPreviewData)==null?void 0:H.navigationEndpoint;if(!v)return t.return();_.S0().lockupActivation=!0;return t.yield(_.SfM(_.t8().resolve(_.o0),v),2)}_.S0().userActivation=!0;_.Bj(t)})};
_.R.navigateToWatch=function(f){var H,v=(H=this.videoPreviewData)==null?void 0:H.navigationEndpoint;if(v){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(v,f,!0);else{var t;_.J("web_thumbnail_to_watch_transition")&&((t=this.opts)==null?0:t.thumbnail)&&_.Os9(_.t8().resolve(_.jX),this.opts.thumbnail);_.YE(this.hostElement,"yt-navigate",{endpoint:v})}this.deactivate()}};
_.R.getInlinePlaybackVideoId=function(){var f,H;return(H=_.U((f=this.videoPreviewData)==null?void 0:f.inlinePlaybackEndpoint,_.wI))==null?void 0:H.videoId};
_.R.getInlinePlaybackTrackingParams=function(){var f,H;return(f=this.videoPreviewData)==null?void 0:(H=f.inlinePlaybackEndpoint)==null?void 0:H.clickTrackingParams};
_.R.hasMultipleVideoPreviews=function(){var f;return!!(((f=this.opts)==null?0:f.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.R.startPlaybackForNextVideo=function(){var f;(f=this.opts)!=null&&f.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())};
_.H7.Object.defineProperties(MM.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.opts)==null?0:f.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.opts)==null||!f.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 f;if(Array.isArray((f=this.opts)==null?void 0:f.videoPreviewData)){var H;return(H=this.opts)==null?void 0:H.videoPreviewData[this.videoPreviewDataIndex]}var v;return(v=this.opts)==null?void 0:v.videoPreviewData}}});
MM.prototype.onIsAdsVideoChange=MM.prototype.onIsAdsVideoChange;MM.prototype.onInlinePreviewIsEnabledChange=MM.prototype.onInlinePreviewIsEnabledChange;MM.prototype.optsChanged=MM.prototype.optsChanged;MM.prototype.onMouseLeave=MM.prototype.onMouseLeave;MM.JSC$19112_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);MM.JSC$19112_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],MM.prototype,"actionHandlerBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],MM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.im.YtPlayerListenerBehavior),_.N("design:type",_.kI)],MM.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],MM.prototype,"componentBehavior",void 0);
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],MM.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],MM.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.M2.YtSparklesClickLocationBehavior),_.N("design:type",Object)],MM.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],MM.prototype,"opts",void 0);_.E([_.F(),_.N("design:type",Object)],MM.prototype,"playerControlsData",void 0);
_.E([_.F(),_.N("design:type",Object)],MM.prototype,"playerControlsAppApi",void 0);_.E([_.F(),_.N("design:type",Object)],MM.prototype,"playerControlsOptions",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],MM.prototype,"noAnimation",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],MM.prototype,"hidden",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],MM.prototype,"active",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],MM.prototype,"playing",void 0);_.E([_.F({selector:_.ToN}),_.N("design:type",Boolean)],MM.prototype,"inlinePreviewIsEnabled",void 0);_.E([_.F(),_.N("design:type",String)],MM.prototype,"pagePath",void 0);_.E([_.F({selector:_.bO3}),_.N("design:type",Boolean)],MM.prototype,"isWatchPage",void 0);_.E([_.z("videoPreviewData"),_.N("design:type",Object),_.N("design:paramtypes",[])],MM.prototype,"thumbnailData",null);
_.E([_.z("opts","active"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],MM.prototype,"hidePlayerControls",null);_.E([_.z("opts"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],MM.prototype,"isAdsVideo",null);_.E([_.z("opts"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],MM.prototype,"roundedCornersSmall",null);
_.E([_.z("opts"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],MM.prototype,"roundedCornersMedium",null);_.E([_.z("opts"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],MM.prototype,"roundedCornersLarge",null);_.E([_.z("opts"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],MM.prototype,"unroundCornersForPlayback",null);
_.E([_.z("opts","videoPreviewDataIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],MM.prototype,"videoPreviewData",null);_.E([_.F(),_.N("design:type",Object)],MM.prototype,"videoPreviewDataIndex",void 0);_.E([_.lJ("#inline-player"),_.N("design:type",Object)],MM.prototype,"inlinePlayer",void 0);_.E([_.sE("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[MouseEvent]),_.N("design:returntype")],MM.prototype,"onMouseLeave",null);
_.E([_.xV("opts"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],MM.prototype,"optsChanged",null);_.E([_.xV("inlinePreviewIsEnabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],MM.prototype,"onInlinePreviewIsEnabledChange",null);_.E([_.Zw("isAdsVideo"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],MM.prototype,"onIsAdsVideoChange",null);
_.E([_.u({is:"ytd-video-preview",disableElementRegistration:!0})],MM);
_.G(MM,"ytd-video-preview",function(){if(fxb!==void 0)return fxb;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return fxb=f},{mode:2});
}catch(e){_._DumpException(e)}
try{
var dKh,jb5,sbi;dKh=function(f){return _.J("kevlar_watch_cinematics_invisible")||f.fullscreen&&_.J("kevlar_watch_cinematics_invisible_in_fullscreen")||f.theater&&!f.fullscreen&&_.J("kevlar_watch_cinematics_invisible_in_theater")};
jb5=function(){var f=document.createElement("canvas"),H=f.getContext("2d");if(!H)throw Error("yo");_.K6(f,{position:"absolute",width:"100%",height:"100%"});return{element:f,context:H}};
sbi=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.J("kevlar_watch_cinematics_css_blur")};
_.ZEr=function(f,H,v){return Math.abs(f-H)<=(v||1E-6)};
_.J5h=function(f,H){return f==H?!0:f&&H?f.width==H.width&&f.height==H.height:!1};_.lZW=new _.Ak("notificationActionRenderer");var UKt=function(f){var H=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.dZ;this.element.addEventListener("load",function(){H.loaded=!0;H.resolver.resolve(H.element)});
this.element.addEventListener("error",function(){H.failed=!0});
this.element.src=f};var eyG=function(f,H){this.image=f;this.frame=H};
eyG.prototype.drawToCanvas=function(f,H){var v=this.frame.width/this.frame.columns,t=this.frame.height/this.frame.rows,M=H.offsetX,h=H.offsetY;dKh(H)?(f.fillStyle=H.fullscreen?"#000":"#0f0f0f",f.fillRect(M,h,(H==null?void 0:H.width)||v,(H==null?void 0:H.height)||t)):f.drawImage(this.image,this.frame.column*v,this.frame.row*t,v,t,M,h,(H==null?void 0:H.width)||v,(H==null?void 0:H.height)||t)};
var L85=function(f){this.color=f};
L85.prototype.drawToCanvas=function(f,H){var v=H.offsetX,t=H.offsetY,M=H.width,h=H.height;f.fillStyle=dKh(H)?H.fullscreen?"#000":"#0f0f0f":this.color;f.fillRect(v,t,M,h)};var fz=function(f,H){_.Yh.call(this);this.playerApi=H;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.eF(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();xKr(this,f);Bbb(this);this.update()};
_.e(fz,_.Yh);fz.prototype.addEventListeners=function(){var f=this,H=function(){f.update()},v=function(M){f.paused||(M.type==="newdata"&&(f.mosaics.clear(),zyr(f),H3(f)),Bbb(f),f.update())},t=function(){f.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",H);this.playerApi.addEventListener("onVideoDataChange",v);this.playerApi.addEventListener("onStateChange",t);this.addOnDisposeCallback(function(){f.playerApi.removeEventListener("onVideoProgress",H);f.playerApi.removeEventListener("onVideoDataChange",v);f.playerApi.removeEventListener("onStateChange",t)})};
var xKr=function(f,H){f.cinematicContainerRenderer!==H&&(f.cinematicContainerRenderer=H,zyr(f),H3(f),f.colorStoreUpdateJobId=_.nN.addLowPriorityJob(function(){var v;if((v=f.cinematicContainerRenderer.colorStore)!=null&&v.sampledColors){v=Infinity;for(var t=_.V(f.cinematicContainerRenderer.colorStore.sampledColors),M=t.next();!M.done;M=t.next()){M=M.value;var h=Number(M.key);h!==0&&h<v&&(v=h);h=_.cS(M.value);f.colorStore.set(M.key,h)}f.colorStoreTimeInterval=v}}))},zyr=function(f){f.colorStoreUpdateJobId&&
(_.nN.cancelJob(f.colorStoreUpdateJobId),f.colorStoreUpdateJobId=void 0);
f.colorStore.clear();f.currentStoryboardColor=void 0},F8p=function(f,H){var v;
return(v=f.getStoryboardFrame(H))==null?void 0:v.url};
fz.prototype.onPlayerStateChange=function(){this.update()};
fz.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var Bbb=function(f){var H=f.getStoryboardFrame(0);H&&(H=new _.eF(H.width/H.columns,H.height/H.rows),_.J5h(f.currentStoryboardSize,H)||(f.currentStoryboardSize=H,f.publish("STORYBOARD_SIZE_CHANGED",f.currentStoryboardSize)))},r5t=function(f,H){f.currentStoryboardIndex=H;
f.pendingStoryboardIndex=NaN;H=f.getStoryboardFrame(f.currentStoryboardIndex);f.currentStoryboard=new eyG(f.mosaics.get(H.url).element,H);f.publish("STORYBOARD_CHANGED",f.currentStoryboard);f.lastUpdateTime=(0,_.ta)()};
fz.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var H3=function(f){f.currentStoryboardIndex=NaN;f.pendingStoryboardIndex=NaN;f.currentStoryboard&&(f.currentStoryboard=void 0,f.publish("STORYBOARD_CHANGED",void 0));f.lastUpdateTime=NaN};
fz.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)H3(this);else{var f=this.playerApi.getPlayerState(1);if(f===-1||f===5||f===0)H3(this);else if(isNaN(this.lastUpdateTime)||!((0,_.ta)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(f=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){f=""+Math.round(f*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var H=this.colorStore.get(f);H?H!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=H,this.currentStoryboard=new L85(H),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.ta)()):(_.pb(new _.e$("Could not find color for timestamp: "+f,this.cinematicContainerRenderer)),H3(this))}else H3(this);else K8x(this,f)}};
var K8x=function(f,H){var v=f.getStoryboardFrameIndex(H);if(v!==f.currentStoryboardIndex&&v!==f.pendingStoryboardIndex){H=F8p(f,v);var t=f.mosaics.get(H);t?t.loaded&&r5t(f,v):(f.pendingStoryboardIndex=v,v=new UKt(H),f.mosaics.set(H,v),v.resolver.promise.then(function(){if(!f.isDisposed()&&!f.paused&&!isNaN(f.pendingStoryboardIndex)){var M=F8p(f,f.pendingStoryboardIndex);if(M){var h;(h=f.mosaics.get(M))!=null&&h.loaded&&r5t(f,f.pendingStoryboardIndex)}else H3(f)}}))}};
fz.prototype.getStoryboardFrameIndex=function(f){var H=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(f,H)};
fz.prototype.getStoryboardFrame=function(f){var H=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,v,t;return((t=(v=this.playerApi).getStoryboardFrame)==null?void 0:t.call(v,f,H))||null};
fz.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var tI=function(f,H,v,t){t=t===void 0?!1:t;_.zO.call(this);this.cinematicContainerRenderer=H;this.playerApi=v;this.theater=this.fullscreen=!1;var M;this.ambientLightThemeEnabled=!t&&!!(H==null?0:(M=H.config)==null?0:M.enableInLightTheme);this.ambientFullscreenEnabled=t&&_.J("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=t&&_.J("web_cinematic_theater_mode");this.container=document.createElement("div");f.appendChild(this.container);var h;if(_.J("web_cinematic_theater_mode")||_.J("web_cinematic_fullscreen")||
(H==null?0:(h=H.config)==null?0:h.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);DKG(this);f=this.ambientV2Container||this.container;this.backCanvas=jb5();this.frontCanvas=jb5();f.appendChild(this.backCanvas.element);f.appendChild(this.frontCanvas.element);this.storyboardManager=new fz(H,this.playerApi);_.jz(this,this.storyboardManager);this.addEventListeners();oNx(this)?nN5(this,100+v3(this)*3*2,100+v3(this)*3*2):p2G(this);
Qbx(this,this.storyboardManager.currentStoryboard)};
_.e(tI,_.zO);var DKG=function(f){f.ambientV2Container?u1i(f):(_.K6(f.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+aZt(f)+", "+PXx(f)+")"}),sbi()&&_.K6(f.container,"filter","blur("+_.VQ("cinematic_watch_css_filter_blur_strength",40)+"px)"))},u1i=function(f){if(f.ambientV2Container){var H=f.playerApi.getVideoAspectRatio();
_.K6(f.container,{"aspect-ratio":""+H,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.K6(f.ambientV2Container,{"aspect-ratio":""+H,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+aZt(f)+", "+PXx(f)+")"});sbi()&&_.K6(f.ambientV2Container,"filter","blur("+_.VQ("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
tI.prototype.setFullscreen=function(f,H){this.fullscreen=f;this.theater=!!H;DKG(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),f=this.storyboardManager.currentStoryboard,G2r(this),f&&CXb(this,f)};
tI.prototype.addEventListeners=function(){var f=this,H=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(M){Qbx(f,M)}),v=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){p2G(f)});
this.addOnDisposeCallback(function(){f.storyboardManager.unsubscribeByKey(H);f.storyboardManager.unsubscribeByKey(v)});
if(this.ambientV2Container){var t=function(){u1i(f)};
this.playerApi.addEventListener("onVideoDataChange",t);this.addOnDisposeCallback(function(){f.playerApi.removeEventListener("onVideoDataChange",t)})}};
var p2G=function(f){if(!oNx(f)){var H=f.storyboardManager.currentStoryboardSize;isNaN(H.width)||isNaN(H.height)||nN5(f,Number(H.width)+v3(f)*3*2,Number(H.height)+v3(f)*3*2)}},nN5=function(f,H,v){f.backCanvas.element.width=H;
f.backCanvas.element.height=v;f.frontCanvas.element.width=H;f.frontCanvas.element.height=v},oNx=function(f){return f.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},Qbx=function(f,H,v){v=v===void 0?!1:v;
var t=f.frontCanvas.element.getAnimations()[0];t?(t.pause(),f.backCanvas.context.globalAlpha=Number(getComputedStyle(f.frontCanvas.element).opacity),f.frontCanvas.element.style.opacity="0",t.finish()):f.backCanvas.context.globalAlpha=1;f.backCanvas.context.drawImage(f.frontCanvas.element,0,0,f.backCanvas.element.width,f.backCanvas.element.height);G2r(f);H&&CXb(f,H);H=H?f.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.VQ("cinematic_watch_fade_out_duration",500);t=_.VQ("cinematic_watch_transition_frame_rate")/
1E3;var M={};t&&(M={easing:"steps("+Math.round(H*t)+")"});(v===void 0?0:v)||f.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:H,iterations:1},M));f.frontCanvas.element.style.opacity="1"},G2r=function(f){var H=f.ambientLightThemeEnabled||f.ambientTheaterModeEnabled,v=f.ambientLightThemeEnabled||f.ambientFullscreenEnabled;
f.frontCanvas.context.fillStyle=f.theater&&H||f.fullscreen&&v?"#000":"#0f0f0f";sbi()||(f.frontCanvas.context.filter="blur(0)");f.frontCanvas.context.fillRect(0,0,f.frontCanvas.element.width,f.frontCanvas.element.height)},CXb=function(f,H){sbi()||(f.frontCanvas.context.filter="blur("+v3(f)+"px)");
f.frontCanvas.context.globalAlpha=f.fullscreen&&f.ambientFullscreenEnabled||f.theater&&f.ambientTheaterModeEnabled?_.VQ("cinematic_watch_effect_letterbox_opacity",.4):_.VQ("cinematic_watch_effect_opacity",.4);var v={offsetX:v3(f)*3,offsetY:v3(f)*3,theater:f.theater,fullscreen:f.fullscreen};oNx(f)&&(v.width=100,v.height=100);H.drawToCanvas(f.frontCanvas.context,v);f.frontCanvas.context.globalAlpha=1},v3=function(f){var H;
return(H=f.cinematicContainerRenderer.config.blurStrength)!=null?H:5},aZt=function(f){var H,v;
if((f.fullscreen||f.theater)&&((H=f.cinematicContainerRenderer.config)==null?0:(v=H.watchFullscreenConfig)==null?0:v.colorSourceWidthMultiplier))return f.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var t;return(t=f.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?t:f.cinematicContainerRenderer.config.colorSourceSizeMultiplier},PXx=function(f){var H,v;
if((f.fullscreen||f.theater)&&((H=f.cinematicContainerRenderer.config)==null?0:(v=H.watchFullscreenConfig)==null?0:v.colorSourceHeightMultiplier))return f.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var t;return(t=f.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?t:f.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
tI.prototype.disposeInternal=function(){_.zO.prototype.disposeInternal.call(this);this.container.remove()};
tI.prototype.clear=function(){Qbx(this,void 0,!0)};
tI.prototype.pause=function(){this.storyboardManager.pause()};var ENt;ENt=_.IH(function(){var f,H,v=!((H=(f=document.createElement("canvas")).getContext)==null||!H.call(f,"2d")),t;f=!((t=CSS)==null||!t.supports("filter: blur(0)"));t=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var M;return v&&f&&t&&!((M=CSS)==null||!M.supports("aspect-ratio: 1 / 1"))});
_.Mq=function(f,H){_.Yh.call(this);this.container=f;this.playerApi=H;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=Nbh(this);this.update()};
_.e(_.Mq,_.Yh);_.c5A=function(f){var H=document.documentElement.hasAttribute("dark");f.isDarkModeEnabled=H;f.update()};
_.X2i=function(f,H){f.settingEnabled=H;f.update()};
_.Mq.prototype.setFullscreen=function(f,H){this.fullscreen=f;this.theater=!!H;this.update()};
_.A5t=function(f,H){f.cinematicContainerRenderer=H;f.cinematicContainerRenderer&&(f.cinematicsVe=_.$$(f.isShorts()?227858:159022),_.YP(_.UV(),f.cinematicsVe),f.loggingClientData={watchCinematicContainerData:{presentationStyle:f.cinematicContainerRenderer.presentationStyle}});f.update()};
_.Mq.prototype.isShorts=function(){var f,H;return((f=this.cinematicContainerRenderer)==null?void 0:(H=f.config)==null?void 0:H.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.Mq.prototype.isAllowed=function(){var f;if(f=ENt()){var H,v,t;f=((v=this.cinematicContainerRenderer)==null?void 0:v.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((t=this.cinematicContainerRenderer)==null||!t.colorStore)||((H=this.cinematicContainerRenderer)==null?void 0:H.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(f)if(_.J("web_cinematics_pausing")){var M,h;f=this.isDarkModeEnabled||!!((M=this.cinematicContainerRenderer)==
null?0:(h=M.config)==null?0:h.enableInLightTheme)}else{var y,m;M=!!((y=this.cinematicContainerRenderer)==null?0:(m=y.config)==null?0:m.enableInLightTheme)&&(_.a8("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);f=this.isDarkModeEnabled||M}if(y=f){var W,I;y=!((I=(W=this.prefersReducedMotionQuery)==null?void 0:W.matches)!=null&&I)}return y};
_.bEr=function(f){(f=f.currentCinematicEffect)!=null&&(f=f.storyboardManager,f.paused=!1,Bbb(f),f.update())};
_.Mq.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var Nbh=function(f){if(!_.J("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var H=window.matchMedia("(prefers-reduced-motion: reduce)"),v=function(){f.update()};
H.addListener(v);f.addOnDisposeCallback(function(){H.removeListener(v)});
return H}};
_.Mq.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var f=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new tI(this.container,f,this.playerApi,this.isDarkModeEnabled),_.jz(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var H=this.currentCinematicEffect;H.cinematicContainerRenderer!==
f&&(H.cinematicContainerRenderer=f,xKr(H.storyboardManager,f),DKG(H));f=_.Uj();_.eG(0,194,!0);f.save();f=_.uy();this.cinematicsVe&&f&&_.i0(f,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(f=_.uy(),this.cinematicsVe&&f&&_.kE(f,[this.cinematicsVe],!1,this.loggingClientData),_.Mj(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.H7.Object.defineProperties(_.Mq.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var b$F;var i$W;_.p2({_template:function(){if(i$W!==void 0)return i$W;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=
f.content,v=H.insertBefore;b$F===void 0&&(b$F=document.createElement("template"));var t=b$F;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return i$W=f},
is:"tp-yt-iron-pages",behaviors:[_.x3,_.TW],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var wyb;_.q9r=function(){if(_.J("kevlar_home_skeleton")&&!wyb){var f=document.querySelector("#home-page-skeleton");f&&(_.u0("hgcr"),_.U1(f),wyb=!0)}};
wyb=!1;_.Fp=new _.Ak("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var njr,QLW,up5,aGr,P8x,Gap,C8h,EjA,c0h,XeG,inx,TR0,wep,kaW,A0G,bn5,Htp;_.ojx=function(f,H,v){H=H===void 0?5:H;if(H!==0){var t=typeof f==="function"?f():document.querySelector(f);t?(v==null?0:v.enableSmartFocus)?_.c8s(t):t.focus():setTimeout(function(){_.ojx(f,H-1,v)},500)}};
njr=function(f){return String.raw.apply(String,[{raw:f}].concat(_.pS(_.NA.apply(1,arguments).map(function(H){return H instanceof Array?H.join(""):H}))))};
QLW=function(f){var H=_.NA.apply(1,arguments),v=H.length;if(!Array.isArray(f)||!Array.isArray(f.raw)||f.length!==f.raw.length||!_.RTa&&f===f.raw||!(_.RTa&&!_.VEg||_.Ko(f))||v+1!==f.length)throw new TypeError("$");return new pep(Object.freeze({strings:Object.freeze(f),args:Object.freeze(H)}))};
up5=function(f){return _.gDH(_.O5g(f&16777215))<.5};
aGr=function(f,H,v){var t=v.minimumRowsOfVideosBetweenSections===void 0?1:v.minimumRowsOfVideosBetweenSections;return f<(v.minimumRowsOfVideosAtStart===void 0?2:v.minimumRowsOfVideosAtStart)||H!==null&&f-H<=t?!1:!0};
P8x=function(f,H){var v=0,t=0;f=_.V(f);for(var M=f.next();!M.done;M=f.next()){var h=M.value;if(h.richItemRenderer)h.richItemRenderer.rowIndex=t,h.richItemRenderer.colIndex=v++,v===H&&(v=0,t++);else if(h.richGroupRenderer&&h.richGroupRenderer.numColumns!==void 0)h.richGroupRenderer.rowIndex=t,h.richGroupRenderer.colIndex=v,v+=h.richGroupRenderer.numColumns,v===H&&(v=0,t++);else if(h.richSectionRenderer){var y=M=void 0;if(h=_.U((M=h)==null?void 0:(y=M.richSectionRenderer)==null?void 0:y.content,_.ZZh))h.rowIndex=
t++}}};
Gap=function(f,H){var v=H.contentElement;H=H.rendererToTagNameMap;if(v&&H&&H.size!==0){for(var t=new Map,M=_.V(v.children),h=M.next();!h.done;h=M.next()){h=h.value;var y=h.tagName.toLowerCase(),m=t.get(y);m||(m=[],t.set(y,m));m.push(h)}if(t.size!==0)for(M=Math.min(f.length,v.children.length),h=new Map,y=0;y<M;y++){m=Object.keys(f[y])[0];m=H.get(m);if(!m)break;var W=h.get(m);W===void 0&&(W=0,h.set(m,W));var I=t.get(m);if(!I||W>=I.length)break;h.set(m,W+1);m=I[W];W=v.children[y];W!==m&&(_.RNb=!0,_.Vmg.set(m,
!0),v.insertBefore(m,W),_.Vmg.delete(m),_.RNb=!1)}}};
C8h=function(f,H,v,t,M,h,y){t=t===void 0?{}:t;if(!f||!f.length)return{orderedContent:[]};f=f.slice();var m=[],W=[];M=null;for(var I=0,S=function(w){W.sort(function(X,fg){return fg.skippedOnRow-X.skippedOnRow});
for(var c,A=(c=W.shift())==null?void 0:c.content;A;)!A.richSectionRenderer&&w||m.push(A),c=void 0,A=(c=W.shift())==null?void 0:c.content},d=void 0,Z=void 0,l=new Set;f.length>0||W.length>0;){for(var L=[],r=H;r>0;){var n=void 0,Q=void 0,C=(Q=W[0]&&W[0].skippedOnRow<I?(n=W.shift())==null?void 0:n.content:void 0)!=null?Q:f.shift();
if(!C)break;if(C.richItemRenderer)n=C.richItemRenderer.targetId,Q=void 0,n&&((Q=y)==null?0:Q.has(n))&&(Q=y.get(n),!d||Q&&Q.timestamp>d.timestamp)&&(d=Q,Z&&l.add(Z),Z=n),L.push(C),r--;else if(C.richGroupRenderer&&C.richGroupRenderer.numColumns!==void 0)C.richGroupRenderer.numColumns<=r?(L.push(C),r-=C.richGroupRenderer.numColumns):r===H&&C.richGroupRenderer.numColumns>H?(L.push({richGroupRenderer:Object.assign({},C.richGroupRenderer,{numColumns:H})}),r=0):W.push({content:C,skippedOnRow:I});else if(C.richSectionRenderer)if(aGr(I,
M,t)&&r===H){m.push(C);M=I;I++;continue}else W.push({content:C,skippedOnRow:I});else if(C.continuationItemRenderer){S(!0);m.push(C);r=0;break}if(r===0)m.push.apply(m,_.pS(L));else if(!v&&f.length===0){S(!1);m.push.apply(m,_.pS(L));r=0;break}}I++;d&&(m.push(d.content),I++);Z=d=void 0}P8x(m,H);h&&Gap(m,h);return{orderedContent:m,pinnedContentNotShownTargetIds:l}};
EjA=function(){return _.NA.apply(0,arguments).flat().filter(function(f){return f}).join(";")};
c0h=function(){return QLW(NRr,EjA.apply(null,_.pS(_.NA.apply(0,arguments))))};
XeG=function(f){switch(f){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
inx=function(f,H){if(H){var v=_.vS().getState().entities.flowStateEntity,t=A0G(f),M=[H];t&&t!==H&&M.push(t);var h=!0,y;if(v&&f.flowStateEntityKey&&((y=v[f.flowStateEntityKey])==null?void 0:y.primaryButtonDisabled)!==void 0){var m;h=!((m=v[f.flowStateEntityKey])==null||!m.primaryButtonDisabled)}bn5(f,t!=null?t:H,M,h)}};
TR0=function(f){return _.sI(_.vS(),function(H){return H.entities.flowStateEntity},function(H,v){if(f.flowStateEntityKey){var t,M=H==null?void 0:(t=H[f.flowStateEntityKey])==null?void 0:t.currentStepId,h;
v=v==null?void 0:(h=v[f.flowStateEntityKey])==null?void 0:h.currentStepId;h=_.vS().getState().talkToRecs;if(M&&M!==v){var y;H=(H==null?void 0:(y=H[f.flowStateEntityKey])==null?void 0:y.stepIdStack)||Object.keys(h.stepStates);y=!kaW(h==null?void 0:h.stepStates[M]);bn5(f,M,H,y)}}})};
wep=function(f){return _.sI(_.vS(),_.bcW,function(H){var v=A0G(f);if(v){var t=Object.keys(H.stepStates);H=!kaW(H==null?void 0:H.stepStates[v]);bn5(f,v,t,H)}})};
kaW=function(f){var H=Object.keys((f==null?void 0:f.selectionStates)||{}).reduce(function(h,y){return h||(f==null?void 0:f.selectionStates[y].isSelected)},!1),v,t,M=!!(f==null?0:(v=f.userQuery)==null?0:(t=v.userQuery)==null?0:t.trim());
return H||M};
A0G=function(f){if(f.flowStateEntityKey){var H,v,t=(H=_.vS().getState().entities.flowStateEntity)==null?void 0:(v=H[f.flowStateEntityKey])==null?void 0:v.currentStepId;if(t)return t}};
bn5=function(f,H,v,t){_.vS().dispatch(_.lF("flowStateEntity",f.flowStateEntityKey,{currentStepId:H,stepIdStack:v,key:f.flowStateEntityKey,primaryButtonDisabled:t}))};
_.qdF=function(f,H){return _.dL(f.entities,"youchatPendingResponseEntity",H)};
_.faW=function(f){return function(H){_.HK(_.lF("youchatPendingResponseEntity",f,{entityKey:f,isPendingResponse:H}))}};
Htp=function(f){f==null||f.addEventListener("DOMLoaded",function(){f.goToAndPlay(f.totalFrames-48,!0)})};
_.tr=function(f){this.__isSoyCss=!0;this.css=njr.apply(null,[f.strings].concat(_.pS(f.args)))};
_.tr.prototype.toString=function(){return this.css};
var pep=function(){_.tr.apply(this,arguments)};
_.e(pep,_.tr);var NRr=_.EH(["",""]);var v2F;var tRh;_.p2({_template:function(){if(tRh!==void 0)return tRh;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);
var H=f.content,v=H.insertBefore;v2F===void 0&&(v2F=document.createElement("template"));var t=v2F;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return tRh=f},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var MR0=new _.Ak("talkToRecsFlowRenderer");var hCt=new _.Ak("flowRootRenderer");var RCp=new _.Ak("learningJourneyQuizViewModel");var VRG=new _.Ak("chipsShelfViewModel");var y45=new _.Ak("responsiveContainerConfiguration");var Y9W=new _.Ak("horizontalShelfViewModel");_.mZh=new _.Ak("engagementPanelSectionListRenderer");var $Zw=new _.Ak("conversationResourceViewModel");var WfW=function(){this.horizontal=!1},Otx=function(f,H){f.horizontal=H};
WfW.prototype.position=function(f,H,v,t){t=t===void 0?1:t;f=this.delta(f)*t+H;t=Math.max(H,v);return f>=Math.min(H,v)&&f<=t?f:v};
WfW.prototype.axis=function(f){f=this.direction(f);return f==="up"||f==="down"?"Y":"X"};var y0=function(f,H,v){H=H===void 0?_.xi():H;this.target=f;this.manager=H;this.touchAction=v;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
y0.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(_.pS(this.events)));for(var f=_.V(this.events),H=f.next();!H.done;H=f.next())this.listen(H.value)}};
y0.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.pS(this.events)));for(var f=_.V(this.events),H=f.next();!H.done;H=f.next())this.unlisten(H.value)}};
y0.prototype.listen=function(f){this.eventMap[f]&&this.target.addEventListener(f,this.eventMap[f])};
y0.prototype.unlisten=function(f){this.eventMap[f]&&this.target.removeEventListener(f,this.eventMap[f])};var Yj=function(){WfW.apply(this,arguments)};
_.e(Yj,WfW);Yj.prototype.direction=function(f){var H=f.detail;f=H.deltaY;H=H.deltaX;return f&&!this.horizontal?f>0?"down":"up":H&&this.horizontal?H>0?"right":"left":"none"};
Yj.prototype.distance=function(f){return Math.abs(this.delta(f))};
Yj.prototype.delta=function(f){var H=this.direction(f),v=f.detail;f=v.deltaX;v=v.deltaY;return H==="up"||H==="down"?v||0:f||0};
Yj.prototype.velocity=function(f){var H=this.direction(f),v=f.detail;f=v.velocityX;v=v.velocityY;return Math.abs(H==="up"||H==="down"?v||0:f||0)};_.mD=function(f,H,v,t,M,h){M=M===void 0?new Yj:M;h=h===void 0?_.xi():h;y0.call(this,H,h,t);var y=this;this.element=f;this.target=H;this.config=v;this.input=M;this.manager=h;this.events=["panstart","panmove","panend"];this.onPanStart=function(){y.config.draggingClass&&y.element.classList.add(y.config.draggingClass);y.config.startAction&&y.config.startAction()};
this.onPanMove=function(m){var W=g2G(y,m);if(W){y.move(m,W);W.fade&&y.fade(m,W);var I=y.input.direction(m);W.moveAction&&W.moveAction(Ia5(y,m,W),I)}};
this.onPanEnd=function(m){var W,I,S,d,Z,l;return _.Y(function(L){if(L.nextAddress==1){y.animationRequestId&&cancelAnimationFrame(y.animationRequestId);y.animationRequestId=void 0;W=g2G(y,m);if(!W)return L.return();I=W;S=I.triggerAction;d=I.fade;Z=I.disableFinish;l=I.translateBack;var r=y.input.velocity(m),n=y.input.distance(m),Q=y.threshold(W);return r>.3&&n>10||n>Q?Z?L.jumpTo(6):d?L.yield(S9h(y,m),6):L.yield(dZr(y,m,W),6):l?L.yield(y.translateBack(m),3):L.jumpTo(3)}L.nextAddress!=3&&S&&S();y.config.draggingClass&&
y.element.classList.remove(y.config.draggingClass);y.reset();_.Bj(L)})};
f=Object.keys(v.triggers);this.directions=new Set(f);Otx(this.input,this.directions.has("right")||this.directions.has("left"))};
_.e(_.mD,y0);_.mD.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var g2G=function(f,H){H=f.input.direction(H);return f.config.triggers[H]};
_.mD.prototype.move=function(f,H){var v=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var t=v.input.axis(f),M=v.input.position(f,v.config.startPosition,H.endPosition,H.moveRatio||1);v.element.style.transform="translate"+t+"("+M+"px)";v.animationRequestId=void 0}))};
var Ia5=function(f,H,v){var t=v.moveRatio||1;v=Math.abs(f.config.startPosition-v.endPosition);return Math.min(f.input.distance(H)*t,v)/v};
_.mD.prototype.fade=function(f,H){var v=H.endOpacity;f=Ia5(this,f,H);f>0&&(this.element.style.opacity=""+(((v||0)-1)*f+1))};
_.mD.prototype.threshold=function(f){return f.threshold?f.threshold:Math.abs(f.endPosition-this.config.startPosition)/3};
var dZr=function(f,H,v){var t,M,h,y,m,W,I;return _.Y(function(S){if(S.nextAddress==1)return t=f.input.delta(H)+f.config.startPosition,M=f.input.axis(H),h=v,y=h.endPosition,m=h.transitionEndPosition,I=(W=m)!=null?W:y,S.yield(f.element.animate([{transform:"translate"+M+"("+t+"px)"},{transform:"translate"+M+"("+I+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);f.element.style.transform="translate"+M+"("+I+"px)";_.Bj(S)})};
_.mD.prototype.translateBack=function(f){var H=this,v,t;return _.Y(function(M){if(M.nextAddress==1){if(!H.element.style.transform)return M.return();v=H.input.axis(f);t=H.config.startPosition;return M.yield(H.element.animate([{transform:H.element.style.transform},{transform:"translate"+v+"("+t+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}H.element.style.transform="translate"+v+"("+t+"px)";_.Bj(M)})};
var S9h=function(f,H){var v,t,M,h;return _.Y(function(y){if(y.nextAddress==1)return v=f.input.delta(H)+f.config.startPosition,t=f.input.axis(H),M=v+70,h=f.element.style.opacity===""?1:f.element.style.opacity,y.yield(f.element.animate([{transform:"translate"+t+"("+v+"px)",opacity:h},{transform:"translate"+t+"("+M+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);f.element.style.transform="translate"+t+"("+M+"px)";f.element.style.opacity="0";_.Bj(y)})};var We=function(){var f=_.er.apply(this,arguments)||this;f._noAccessors=!0;f.scrollRate=3;f.autoScrollAnimationStart=0;f.autoScrollPaused=!1;f.autoScrollRafId=0;return f};
_.e(We,_.er);_.R=We.prototype;_.R.created=function(){var f=this;this.boundAutoScrollHandler=function(H){f.autoScroll(H)}};
_.R.detached=function(){this.hostElement.removeEventListener("mouseout",_.jr(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.jr(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.jr(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.R.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.jr(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.jr(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.jr(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.jr(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.jr(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.jr(this,this.endAutoScroll)),this.endAutoScroll())};
_.R.autoScroll=function(f){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=f);var H;if(H=!this.autoScrollPaused&&this.scrollTarget)H=this.scrollTarget,H=H.scrollHeight-H.scrollTop!==H.clientHeight;H&&(H=1E3/this.scrollRate,f-=this.autoScrollAnimationStart,f>H&&(this.scrollTarget.scrollTop+=Math.ceil(f/H),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.R.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.R.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
We.prototype.autoScrollEnabledChanged=We.prototype.autoScrollEnabledChanged;_.E([_.F(),_.N("design:type",Object)],We.prototype,"scrollRate",void 0);_.E([_.F(),_.N("design:type",Object)],We.prototype,"scrollTarget",void 0);_.E([_.F(),_.N("design:type",Boolean)],We.prototype,"autoScrollEnabled",void 0);_.E([_.Zw("autoScrollEnabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],We.prototype,"autoScrollEnabledChanged",null);_.E([_.L2()],We);_.jGA=[We.prototype];var sGW;var Od=function(){var f=_.K.apply(this,arguments)||this;f.buttonUpdate=_.J("web_button_rework");f.dismissButtonOverrides=_.J("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;f.forceDarkTheme=!1;f.forceLightTheme=!1;f.dynamicTextHeight=94;f.hasOverflowButton=!1;f.isInfeedModernization=!1;return f};
_.e(Od,_.K);_.R=Od.prototype;_.R.computeUrlImg=function(f){if(f)return _.m3(f.thumbnails)};
_.R.getLogoHeight=function(f){return this.logoWithPadding(f)?"31":"24"};
_.R.getLogoClassName=function(f){return this.logoWithPadding(f)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.R.logoWithPadding=function(f){var H,v;return(f=(H=f.thumbnails)==null?void 0:(v=H[0])==null?void 0:v.height)&&f%31===0?!0:!1};
_.R.sendImpressionEndpoints=function(f){f.impressionEndpoints&&_.WV(this.hostElement,f.impressionEndpoints)};
_.R.observeBasicPalette=function(){var f,H,v=(f=this.data)==null?void 0:(H=f.colorData)==null?void 0:H.basicColorPaletteData;v?_.r6(this.hostElement,v):_.r6(this.hostElement,{})};
_.R.observeDataChanged=function(){var f;this.dynamicTextHeight=((f=this.data)==null?0:f.supplementalText)?74:94;var H;this.hasSupplementalText=!((H=this.data)==null||!H.supplementalText);if(_.J("web_button_rework")){var v,t,M,h;f=(v=this.data)==null?void 0:(t=v.actionButton)==null?void 0:(M=t.buttonRenderer)==null?void 0:(h=M.colorData)==null?void 0:h.basicColorPaletteData;var y,m,W;if(!((y=this.data)==null?0:(m=y.actionButton)==null?0:(W=m.buttonRenderer)==null?0:W.style)&&f){this.computeIsInfeedModernization(this.data)||
(f.borderColor=f.foregroundTitleColor);var I,S;this.set("data.actionButton.buttonRenderer",_.QA.unsafeClone((I=this.data)==null?void 0:(S=I.actionButton)==null?void 0:S.buttonRenderer))}}};
_.R.observeDataForCounterfactual=function(){if(_.J("kevlar_banner_cf_extra_logging")){var f;((f=this.data)==null?0:f.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.R.computeSupplementalStyle=function(){var f;if((f=this.data)!=null&&f.supplementalText){var H,v,t;if((H=this.data)==null?0:(v=H.colorData)==null?0:(t=v.basicColorPaletteData)==null?0:t.foregroundActivatedColor)return f=_.NS(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+f+"; --yt-endpoint-hover-color:"+f+"; --yt-endpoint-visited-color:"+f+"; --yt-formatted-string-bold-font-weight:700;"}};
_.R.computeForcedDarkTheme=function(){var f,H,v,t=(f=this.data)==null?void 0:(H=f.actionButton)==null?void 0:(v=H.buttonRenderer)==null?void 0:v.style,M,h,y;f=up5(((M=this.data)==null?void 0:(h=M.colorData)==null?void 0:(y=h.basicColorPaletteData)==null?void 0:y.backgroundColor)||0);return t&&f};
_.R.computeForcedLightTheme=function(){var f,H,v,t=(f=this.data)==null?void 0:(H=f.actionButton)==null?void 0:(v=H.buttonRenderer)==null?void 0:v.style,M,h,y;f=!up5(((M=this.data)==null?void 0:(h=M.colorData)==null?void 0:(y=h.basicColorPaletteData)==null?void 0:y.backgroundColor)||0);return t&&f};
_.R.computeHasOverflowButton=function(f){return!!f.overflowButton};
_.R.computeHasTitle=function(f){return!!f.title};
_.R.computeTitleMaxFontSize=function(f){return this.computeHasOverflowButton(f)?28:64};
_.R.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.R.computeIsInfeedModernization=function(){var f,H,v,t,M=(f=this.data)==null?void 0:(H=f.actionButton)==null?void 0:(v=H.buttonRenderer)==null?void 0:(t=v.colorData)==null?void 0:t.basicColorPaletteData;return(M==null?void 0:M.backgroundColor)===452984831||(M==null?void 0:M.backgroundColor)===218103808};
Od.prototype.observeDataForCounterfactual=Od.prototype.observeDataForCounterfactual;Od.prototype.observeDataChanged=Od.prototype.observeDataChanged;Od.prototype.observeBasicPalette=Od.prototype.observeBasicPalette;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Od.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.PG),_.N("design:type",Object)],Od.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.B(_.NW.YtdGuideStateAwareBehavior),_.N("design:type",Object)],Od.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Od.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Od.prototype,"buttonUpdate",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Od.prototype,"hasSupplementalText",void 0);_.E([_.F(),_.N("design:type",Object)],Od.prototype,"dismissButtonOverrides",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.N("design:type",Boolean)],Od.prototype,"hasTitle",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.N("design:type",Object)],Od.prototype,"forceDarkTheme",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.N("design:type",Object)],Od.prototype,"forceLightTheme",void 0);_.E([_.F(),_.N("design:type",Object)],Od.prototype,"dynamicTextHeight",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.N("design:type",Object)],Od.prototype,"hasOverflowButton",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.N("design:type",Object)],Od.prototype,"isInfeedModernization",void 0);_.E([_.Zw("data.colorData.basicColorPaletteData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Od.prototype,"observeBasicPalette",null);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Od.prototype,"observeDataChanged",null);_.E([_.Zw("data.isVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Od.prototype,"observeDataForCounterfactual",null);_.E([_.u({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],Od);
_.G(Od,"ytd-banner-promo-renderer",function(){if(sGW!==void 0)return sGW;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return sGW=f},{mode:1});var ZtA;var J4i;var laW;var gR=function(){return _.K.apply(this,arguments)||this};
_.e(gR,_.K);_.E([_.F(),_.N("design:type",Object)],gR.prototype,"data",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],gR.prototype,"ytRendererBehavior",void 0);_.E([_.u({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],gR);
_.G(gR,"ytd-hashtag-grid-tile-renderer",function(){if(laW!==void 0)return laW;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return laW=f},{mode:1});var IL=function(){return _.K.apply(this,arguments)||this};
_.e(IL,_.K);IL.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
IL.prototype.updateRichGridTrendingHashtagsVisibility=function(){var f,H;if(((f=this.data)==null||!f.isExpanded)&&(H=this.data)!=null&&H.tiles){f=this.data.tiles.length;H=f>this.richGridItemsPerRow?this.richGridItemsPerRow+1:f;var v=Math.ceil(f/H);this.fullyVisibleRows=f%H===1&&v===2?1:Math.min(v,2);this.isShowMoreVisible=this.fullyVisibleRows<v}};
IL.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
IL.prototype.updateRichGridTrendingHashtagsVisibility=IL.prototype.updateRichGridTrendingHashtagsVisibility;_.E([_.F(),_.N("design:type",Object)],IL.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Number)],IL.prototype,"fullyVisibleRows",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],IL.prototype,"isShowMoreVisible",void 0);_.E([_.F({selector:_.uA,value:0}),_.N("design:type",Number)],IL.prototype,"richGridItemsPerRow",void 0);
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],IL.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],IL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],IL.prototype,"ytdReduxBehavior",void 0);_.E([_.Zw("data","richGridItemsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IL.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.E([_.u({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],IL);
_.G(IL,"ytd-hashtag-grid-shelf-renderer",function(){if(J4i!==void 0)return J4i;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return J4i=f},{mode:1});var UZF;var eCp;var S9=function(){var f=_.K.apply(this,arguments)||this;f.visibleVideos=[];f.hiddenVideos=[];f.modern=_.J("web_modern_buttons");f.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.e(S9,_.K);_.R=S9.prototype;_.R.attached=function(){var f=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",f);this.onDarkModeToggledAction(f)};
_.R.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"}}}};
_.R.dataChanged=function(){var f=this;this.requestElementsPerRow();var H,v;this.currentColorPalette=this.isDarkTheme?(H=this.data)==null?void 0:H.darkColorData:(v=this.data)==null?void 0:v.lightColorData;var t;if((t=this.currentColorPalette)==null?0:t.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.qV(this,function(){f.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.R.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.R.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.R.computeIsFirstFeedItem=function(f){return f};
_.R.onDarkModeToggledAction=function(f){f!==this.isDarkTheme&&this.set("isDarkTheme",f);this.data&&(this.currentColorPalette=f?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.R.getCurrentLogo=function(f,H){if(f)return H?f.darkLogoImage:f.lightLogoImage};
_.R.computeTitleStyle=function(f){var H;if((H=this.data)!=null&&H.title&&f&&f.textPrimary!==void 0)return"color:"+_.NS(f.textPrimary)+";"};
_.R.computeSubtitleStyle=function(f){var H;if((H=this.data)!=null&&H.subtitle&&f&&f.textSecondary!==void 0)return"color:"+_.NS(f.textSecondary)+";"};
_.R.computeDismissIconStyle=function(f){if(this.data&&this.data.dismissButton&&f&&f.textPrimary!==void 0)return"--yt-button-color:"+_.NS(f.textPrimary)+";"};
_.R.computeOverflowButtonStyle=function(f){if(this.data&&this.data.overflowButton&&f&&f.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.NS(f.textPrimary)+";--yt-spec-icon-active-other:"+_.NS(f.textPrimary)+";"};
_.R.computeBackgroundStyle=function(f){if(f&&this.data){var H="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var v=_.m3((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);v&&(H+='background-image:url("'+v+'");')}f.backgroundColor!==void 0&&(H+="background-color:"+_.cS(f.backgroundColor)+";");return H}};
_.R.computeButton=function(){var f,H=Object.assign({},_.U((f=this.data)==null?void 0:f.showMoreButton,_.nv));if(this.modern&&H){H.style="STYLE_MONO_OUTLINE";var v;if(f=(v=this.currentColorPalette)==null?void 0:v.textPrimary)H.colorData={basicColorPaletteData:{foregroundTitleColor:f,borderColor:f}}}return H};
_.R.shouldShowBottomButton=function(f,H){return!(f==null?0:f.header)&&!(f==null||!f.primaryButton)&&H<3};
_.R.checkExpanded=function(f){this.isExpanded=f&&f.content?this.hiddenVideos.length===0:!0};
_.R.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.R.getLogoHeight=function(f){return this.logoWithPadding(f)?"26":"20"};
_.R.getLogoImageId=function(f){return this.logoWithPadding(f)?"logo-image-with-padding":"logo-image"};
_.R.computeHasSectionHeader=function(f){return!!f.header};
_.R.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var f;if((f=this.data.primaryButton)==null?0:f.buttonRenderer)this.currentColorPalette.primaryButtonColorData?(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorPalette.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",Object.assign({},this.data.primaryButton.buttonRenderer));var H;((H=this.data.dismissButton)==null?0:H.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var v,t;((v=this.data)==null?0:(t=v.primaryButton)==null?0:t.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.R.setVisibleVideos=function(f){if(this.data&&this.data.content)if(this.data.content.length){var H=this.data.content.length;this.data.header?f?(this.visibleVideos=this.data.content.slice(0,Math.min(H,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(H,this.slimItemsPerRow),H)):(this.visibleVideos=this.data.content.slice(0,Math.min(H,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(H,this.elementsPerRow),H)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(H,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(H,this.elementsPerRow),H)):(this.visibleVideos=this.data.content.slice(0,Math.min(H,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(H,this.elementsPerRow-1),H))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.R.setHasMovieRenderer=function(){var f;if((f=this.data)!=null&&f.content){var H;this.hasMovieRenderer=!!_.U((H=this.data)==null?void 0:H.content[0],_.H3n)}else this.hasMovieRenderer=!1};
_.R.requestElementsPerRow=function(){_.YE(this.hostElement,"yt-request-elements-per-row")};
_.R.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var f=_.V(this.hiddenMediaRenderers),H=f.next();!H.done;H=f.next())H.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(f=_.mF(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&f.focus()}};
_.R.updateTitleSpec=function(){var f;(f=this.data)!=null&&f.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.R.logoWithPadding=function(f){var H,v,t;return(f=(H=this.getCurrentLogo(f,this.isDarkTheme))==null?void 0:(v=H.thumbnails)==null?void 0:(t=v[0])==null?void 0:t.height)&&f%31===0?!0:!1};
_.R.onUpdateElementsPerRowAction=function(f,H,v){f&&this.elementsPerRow!==f&&(this.elementsPerRow=f);v&&this.slimItemsPerRow!==v&&(this.slimItemsPerRow=v)};
S9.prototype.slimItemsPerRowChanged=S9.prototype.slimItemsPerRowChanged;S9.prototype.elementsPerRowChanged=S9.prototype.elementsPerRowChanged;S9.prototype.dataChanged=S9.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],S9.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],S9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.PG),_.N("design:type",Object)],S9.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],S9.prototype,"actionHandlerBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],S9.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],S9.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],S9.prototype,"currentColorPalette",void 0);_.E([_.F(),_.N("design:type",Array)],S9.prototype,"visibleVideos",void 0);_.E([_.F(),_.N("design:type",Array)],S9.prototype,"hiddenVideos",void 0);
_.E([_.F(),_.N("design:type",Object)],S9.prototype,"primaryButton",void 0);_.E([_.F({reflectToAttribute:!0,value:3}),_.N("design:type",Number)],S9.prototype,"elementsPerRow",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],S9.prototype,"isDarkTheme",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],S9.prototype,"isExpanded",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],S9.prototype,"largeTitle",void 0);
_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],S9.prototype,"hasMovieRenderer",void 0);_.E([_.F(),_.N("design:type",Number)],S9.prototype,"slimItemsPerRow",void 0);_.E([_.F(),_.N("design:type",Boolean)],S9.prototype,"showLightVideoMetadata",void 0);_.E([_.F(),_.N("design:type",Boolean)],S9.prototype,"showDarkVideoMetadata",void 0);_.E([_.F(),_.N("design:type",Number)],S9.prototype,"videoMetadataColor",void 0);
_.E([_.F({reflectToAttribute:!0,selector:_.Qq}),_.N("design:type",Boolean)],S9.prototype,"miniMode",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.N("design:type",Boolean)],S9.prototype,"isFirstFeedItem",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.N("design:type",Boolean)],S9.prototype,"hasSectionHeader",void 0);
_.E([_.F({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],S9.prototype,"roundedContainer",void 0);_.E([_.UE("#visible-video-container ytd-rich-grid-media"),_.N("design:type",Array)],S9.prototype,"visibleMediaRenderers",void 0);_.E([_.UE("#hidden-video-container ytd-rich-grid-media"),_.N("design:type",Array)],S9.prototype,"hiddenMediaRenderers",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],S9.prototype,"modern",void 0);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S9.prototype,"dataChanged",null);_.E([_.Zw("elementsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S9.prototype,"elementsPerRowChanged",null);_.E([_.Zw("slimItemsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S9.prototype,"slimItemsPerRowChanged",null);
_.E([_.u({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],S9);
_.G(S9,"ytd-brand-video-shelf-renderer",function(){if(eCp!==void 0)return eCp;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return eCp=f},{mode:1});var Lft;var dR=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.e(dR,_.K);_.R=dR.prototype;_.R.attached=function(){var f=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",f);this.onDarkModeToggledAction(f)};
_.R.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"}}}};
_.R.dataChanged=function(){this.requestElementsPerRow();var f,H;this.currentColorPalette=this.isDarkTheme?(f=this.data)==null?void 0:f.darkColorData:(H=this.data)==null?void 0:H.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.R.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.R.computeIsFirstFeedItem=function(f){return f};
_.R.onDarkModeToggledAction=function(f){f!==this.isDarkTheme&&this.set("isDarkTheme",f);this.data&&(this.currentColorPalette=f?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(f),this.updateButtonPalette())};
_.R.shouldShowThumbnailInMetadata=function(f){return f<=1};
_.R.computeVideoMetadataColor=function(){if(this.data){var f;if((f=this.currentColorPalette)==null?0:f.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.R.computeTitleStyle=function(f){var H;if((H=this.data)!=null&&H.title&&f&&f.textPrimary!==void 0)return"color:"+_.NS(f.textPrimary)+";"};
_.R.computeSubtitleStyle=function(f){var H;if((H=this.data)!=null&&H.subtitle&&f&&f.textSecondary!==void 0)return"color:"+_.NS(f.textSecondary)+";"};
_.R.computeOverflowButtonStyle=function(f){if(this.data&&this.data.overflowButton&&f.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.NS(f.textPrimary)+";--yt-spec-icon-active-other:"+_.NS(f.textPrimary)+";"};
_.R.computeBackgroundStyle=function(f){if(f&&this.data){var H="";f.backgroundColor!==void 0&&(H+="background-color:"+_.cS(f.backgroundColor)+";");return H}};
_.R.computeHasOverflowButton=function(f){return!!f.overflowButton};
_.R.updateButtonPalette=function(){if(this.data){var f;if((f=this.data.primaryButton)==null?0:f.buttonRenderer){var H;if((H=this.currentColorPalette)==null?0:H.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var v;((v=this.currentColorPalette)==null?0:v.primaryButtonStyleType)?(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0):this.data.primaryButton.buttonRenderer.style="STYLE_MONO_TONAL"}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}}};
_.R.requestElementsPerRow=function(){_.YE(this.hostElement,"yt-request-elements-per-row")};
_.R.updateTitleSpec=function(){var f;(f=this.data)!=null&&f.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")};
_.R.onUpdateElementsPerRowAction=function(f){f&&this.elementsPerRow!==f&&(this.elementsPerRow=f)};
dR.prototype.elementsPerRowChanged=dR.prototype.elementsPerRowChanged;dR.prototype.dataChanged=dR.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],dR.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],dR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.PG),_.N("design:type",Object)],dR.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],dR.prototype,"actionHandlerBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],dR.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],dR.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],dR.prototype,"currentColorPalette",void 0);_.E([_.F(),_.N("design:type",Object)],dR.prototype,"primaryButton",void 0);
_.E([_.F({reflectToAttribute:!0,value:3}),_.N("design:type",Number)],dR.prototype,"elementsPerRow",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],dR.prototype,"isDarkTheme",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],dR.prototype,"titleSize",void 0);_.E([_.F(),_.N("design:type",Number)],dR.prototype,"videoMetadataColor",void 0);_.E([_.F({reflectToAttribute:!0,selector:_.Qq}),_.N("design:type",Boolean)],dR.prototype,"miniMode",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.N("design:type",Boolean)],dR.prototype,"isFirstFeedItem",void 0);_.E([_.F({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],dR.prototype,"roundedContainer",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.N("design:type",Boolean)],dR.prototype,"hasOverflowButton",void 0);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dR.prototype,"dataChanged",null);_.E([_.Zw("elementsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dR.prototype,"elementsPerRowChanged",null);_.E([_.u({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],dR);
_.G(dR,"ytd-brand-video-singleton-renderer",function(){if(Lft!==void 0)return Lft;var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Lft=f},{mode:_.WK("kevlar_poly_si_batch_j070")?1:2});var xZG;var BVp=_.a(function(f){var H=f.data;return _.O(_.Hn,{data:function(){return H().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(H().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var v=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":v=88;break a;default:v=88}return v},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return H().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Sj"),FfF=_.a(function(f){var H=f.metadataRow;
var v=f.delimiter;return _.O(_.eK,{each:function(){return H().textParts||[]},
keyBy:"INDEX"},function(t,M){return _.O(_.R8,null,_.O(_.iq,{text:t,noWrap:!0,userInput:!0}),_.O(zCx,{delimiter:v,max:function(){return H().textParts.length},
index:M}))})},"Tj"),zCx=_.a(function(f){var H=f.delimiter;
var v=f.max;var t=f.index;return _.O(_.g,{cond:function(){return(H==null?void 0:H())&&v()-1>t()},
then:function(){return _.O("span",null,H)}})},"Uj"),r45=_.a(function(f){var H=f.data;
f={};return _.O("yt-profile-page-header-information-view-model",{class:_.S2("profile-page-header-information-view-model-wiz",(f["profile-page-header-information-view-model-wiz--mobile"]=!1,f))},_.O(_.g,{cond:function(){return H().onTap},
then:function(){return _.O(_.VU,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.GK(H().onTap)}},_.O(_.Jj,{data:function(){return H().thumbnail}},{profilePageHeaderThumbnailViewModel:BVp}))},
else:function(){return _.O("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.O(_.Jj,{data:function(){return H().thumbnail}},{profilePageHeaderThumbnailViewModel:BVp}))}}),_.O("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.O(_.g,{cond:function(){return H().onTap},
then:function(){return _.O(_.Jj,{data:function(){return H().title}},{profilePageHeaderTitleViewModel:function(v){var t=v.data;
return _.O(_.VU,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.GK(t().onTap)}},_.O(_.iq,{text:function(){return t().title}}))}})},
else:function(){return _.O(_.Jj,{data:function(){return H().title}},{profilePageHeaderTitleViewModel:function(v){var t=v.data;
return _.O(_.iq,{text:function(){return t().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.O(_.Jj,{data:function(){return H().metadata}},{profilePageHeaderMetadataViewModel:function(v){var t=v.data;
return _.O(_.g,{cond:function(){return t().metadataRows},
then:function(M){return _.O("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.O(_.eK,{each:M,keyBy:"INDEX"},function(h,y){return _.O(_.R8,null,_.O(FfF,{metadataRow:h,delimiter:" \u2022 "}),_.O(zCx,{delimiter:" \u2022 ",max:function(){return M().length},
index:y}))}))}})}})))},"Vj");
r45.idomCompat=!0;_.yn(r45,"yt-profile-page-header-information-view-model",{props:{data:_.ki}});var j9=function(){return _.K.apply(this,arguments)||this};
_.e(j9,_.K);j9.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],j9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],j9.prototype,"data",void 0);_.E([_.u({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],j9);
_.G(j9,"ytd-effect-pivot-header-view-model",function(){if(xZG!==void 0)return xZG;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return xZG=
f},{mode:1});var Kfw;var sd=function(){return _.K.apply(this,arguments)||this};
_.e(sd,_.K);sd.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],sd.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],sd.prototype,"data",void 0);_.E([_.u({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],sd);
_.G(sd,"ytd-source-pivot-header-renderer",function(){if(Kfw!==void 0)return Kfw;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Kfw=f},{mode:1});_.DZF=_.a(function(f){var H=f.data;var v=function(){var t;return _.DO((t=H())==null?void 0:t.rendererContext)};
f={};return _.O("content-list-item-view-model",{el:_.tE(_.nT(function(){return H().rendererContext})),
class:_.S2("ytContentListItemViewModelHost",(f.ytContentListItemViewModelTappable=v,f)),role:function(){return v()?"listitem":void 0},
tabindex:function(){return v()?0:void 0}},_.O("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.O("div",{class:"ytContentListItemViewModelImageContainer"},_.O(_.g,{cond:function(){return H().image},
then:function(t){return _.O(_.Hn,{data:t,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.O(_.Jj,{data:function(){var t;
return(t=H())==null?void 0:t.avatar}},{avatarViewModel:_.K5})),_.O("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.O("div",{class:_.S2("ytContentListItemViewModelTitle",function(){a:{switch(H().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var t="ytContentListItemViewModelProminentTitle";
break a}t=void 0}return t})},_.O(_.iq,{text:function(){return H().title}})),_.O("div",{class:"ytContentListItemViewModelMetadata"},_.O(_.Jj,{data:function(){return H().metadata}},{contentMetadataViewModel:function(t){return _.O(_.ho,{data:t.data,
layout:1})}})))),_.O("div",{class:"ytContentListItemViewModelActionButton"},_.O(_.Jj,{data:function(){var t;
return(t=H())==null?void 0:t.actionButton}},{buttonViewModel:_.Wp,
toggleButtonViewModel:_.Fo})))},"Wj");_.yn(_.a(function(f){var H=function(){return f.data().background},v=function(){return f.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},t=function(){return f.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"};
return _.O("yt-card-view-model",{class:_.S2("ytCardViewModelHost",f.className)},_.O(_.Re,{contentId:function(){return f.data().contentId}},function(){return _.O("div",{class:_.S2("ytCardViewModelCardViewModelInner",function(){return XeG(f.data().cardStyle)},function(){var M;
a:{switch((M=f.data().cardState)==null?void 0:M.selectionState){case "CARD_SELECTION_STATE_SELECTED":M="ytCardViewModelSelected";break a}M=void 0}return M})},_.O(_.Jj,{data:H},{cinematicContainerViewModel:function(M){return _.O(_.ZnT,{data:M.data})}}),_.O("div",{class:"ytCardViewModelContentWrapper"},_.O(_.g,{cond:function(){return!v()},
then:function(){var M={};return _.O("div",{class:"ytCardViewModelTopContent"},_.O(_.Jj,{data:function(){return f.data().topContent}},{contentListItemViewModel:function(h){return _.O(_.DZF,{data:h.data})}}),_.O("div",{class:_.S2("ytCardViewModelInlineTrailingAction",(M.ytCardViewModelInlineCenterTrailingAction=t,M))},_.O(_.Jj,{data:function(){return f.data().trailingAction}},{buttonViewModel:function(h){return _.O(_.Wp,{data:h.data})}})))}}),_.O("div",{class:"ytCardViewModelBodyContent"},_.O(_.Jj,
{data:function(){return f.data().bodyContent}},{contentListItemViewModel:function(M){return _.O(_.DZF,{data:M.data})}}))),_.O(_.g,{cond:function(){return v()},
then:function(){return _.O("div",{class:"ytCardViewModelOverlayTrailingAction"},_.O(_.Jj,{data:function(){return f.data().trailingAction}},{buttonViewModel:function(M){return _.O(_.Wp,{data:M.data})}}))}}))}))},"Xj"),"yt-card-view-model",{props:{data:_.ki,
className:_.ki}});_.yn(_.a(function(f){var H=function(){return _.U(f.data().flowRoot,hCt)};
_.Kc(function(){var v=H(),t=function(){},M=function(){};
if(v){var h,y,m,W=((m=_.U((h=H())==null?void 0:(y=h.steps)==null?void 0:y[0],_.A8p))==null?void 0:m.stepId)||"";inx(v,W);t=TR0(v);M=wep(v)}_.Dt(function(){var I=H();I&&_.vS().dispatch(_.lF("flowStateEntity",I.flowStateEntityKey));t();t=function(){};
M();M=function(){}})});
return _.O("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.O(_.Re,{contentId:function(){return f.data().contentId}},function(){return _.O("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.O(_.g,{cond:H,
then:function(v){return _.O(_.qPx,{data:v})}}))}))},"Yj"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.ki}});_.yn(_.a(function(){return _.O("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.O("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.O("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.O(_.HPh,null)),_.O(_.xHZ,{data:{rows:1},isExploreHub:!0}))},"Zj"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.yn(_.a(function(f){var H=f.data;var v=f.standardUnitMinWidth;f=_.V((0,_.rC_)(H));var t=f.next().value,M=f.next().value,h=function(){var m,W=(m=t())==null?void 0:m.contents;return W==null||W.length===0},y=function(){M(Object.assign({},t(),{contents:[]}))};
return _.O("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.tE(_.MV({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var m=_.U(H().chipsShelf,VRG);if(m!=null&&m!=null&&m.autoselectChipOnVisible){var W,I,S=_.U(m==null?void 0:(W=m.contents)==null?void 0:W[(I=m.autoselectedChipIndex)!=null?I:0],_.Pd);S&&S.tapCommand&&_.XA(S.tapCommand)}}}))},_.O(_.Re,{contentId:function(){return H().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.O("div",null,_.O("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.O(_.Jj,{data:function(){return H().header}},{sectionHeaderViewModel:function(m){return _.O(_.$b,{data:m.data,
disableHorizontalPadding:!0})}})),_.O("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.O(_.Jj,{data:function(){return H().chipsShelf}},{chipsShelfViewModel:function(m){return _.O(_.DH,{data:m.data,
callback:y,selectionBehavior:1})}})),_.O("div",null,_.O(_.g,{cond:h,
then:function(){return _.O("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.O(_.xHZ,{data:{rows:1},isExploreHub:!0}))}}),_.O(_.Jj,{data:function(){var m;
return(m=t())==null?void 0:m.contents}},{richShelfRenderer:function(m){return _.O(_.DFC,{data:m.data,
isInnerShelf:!0,standardUnitMinWidth:v})}})))}))},"$j"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.ki,
standardUnitMinWidth:_.ki}});var ZG=function(){return _.K.apply(this,arguments)||this};
_.e(ZG,_.K);
ZG.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},messageRenderer:"ytd-message-renderer",
alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
ZG.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.E([_.B(_.um),_.N("design:type",Object)],ZG.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],ZG.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.E_),_.N("design:type",Object)],ZG.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ZG.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],ZG.prototype,"data",void 0);
_.E([_.F(),_.N("design:type",Number)],ZG.prototype,"standardUnitMinWidth",void 0);_.E([_.u({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],ZG);
_.G(ZG,"ytd-rich-section-renderer",function(){if(UZF!==void 0)return UZF;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return UZF=f},{mode:_.WK("kevlar_poly_si_batch_j029")?
1:2});_.yn(_.IUx,"yt-profile-identity-info-view-model",{props:{data:_.ki,hideDivider:_.ki,isChannelInfoCard:_.ki}});_.yn(_.zeC,"yt-page-header-view-model",{props:{data:_.ki,noPadding:_.ki,enableBanner:_.ki,cinematicContainerTopbarOffset:_.ki,allowCinematicContainerOverflow:_.ki,displayAsSidebar:_.ki,displayAsPanel:_.ki,alwaysUseMediumTextDescription:_.ki}});_.yn(_.a(function(f){var H=f.data;var v=function(){var M;return(M=H().numColumns)!=null?M:2},t=function(){return v()>1?3:2};
f={};return _.O("ytd-rich-grid-group",{class:_.S2("ytdRichGridGroupHost",(f.ytdRichGridGroupHostFirstColumn=function(){return H().colIndex===0},f)),
style:_.ZE({"--ytd-rich-grid-group-num-columns":v,"--ytd-rich-grid-items-per-group":t})},_.O("div",{class:"ytdRichGridGroupContents"},_.O(_.Jj,{data:function(){var M;return(M=H().contents)==null?void 0:M.slice(0,t())}},{richItemRenderer:function(M){return _.O(_.ruT,{data:M.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"ak"),"ytd-rich-grid-group",{props:{data:_.ki}});var J0=function(){var f=_.K.apply(this,arguments)||this;f.resizeOnObserverInit=!1;f.isInlinePreviewDisabled=_.J("web_disable_inline_preview");f.disableStickyFilterBar=!1;f.transparentBackgroundChipsBar=!1;f.hideChipsBar=!1;f.isWatchDefaultLayout=!0;f.continuationShowButton=!1;f.rowReducedHorizontalMargin=!1;f.useCompactList=!1;f.manualDownloadsPresent=!1;f.smartDownloadsPresent=!1;f.isOnline=!1;f.shouldRenderDownloadsBanner=!1;f.shouldRenderDownloadsBannerUpsell=!1;f.hasOptedIntoSmartDownloads=!1;
f.elementsPerRow=4;f.typographyBump=!1;f.showGnomeContents=!1;f.showExploreHubContents=!1;f.slimItemsPerRow=1;f.pageLoadingFromNavigation=!1;f.loggingRefactor=_.J("kevlar_rich_grid_logging_fix");f.resizeObserver=null;f.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"};
f.rendererToTagNameMap=new Map(Object.entries(f.contentMapping()).map(function(H){var v=_.V(H);H=v.next().value;v=v.next().value;return[H,v.component]}));
f.insertedContent=new Map;return f};
_.e(J0,_.K);_.R=J0.prototype;_.R.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var f=_.V(_.mF(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),H=f.next();!H.done;H=f.next())H.value.useCompactList=this.useCompactList};
_.R.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var f=_.V(_.mF(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),H=f.next();!H.done;H=f.next())H=H.value,H.sizing=this.sizing,H.typographyBump=this.typographyBump};
_.R.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.R.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]]"}}}};
_.R.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}}};
_.R.attached=function(){document.addEventListener("yt-page-type-changed",_.jr(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$21858_throttledOnResize=new _.Nl(this.resizeObserved,_.VQ("rich_grid_resize_delay_ms",50),this)};
_.R.detached=function(){var f;(f=this.resizeObserver)==null||f.disconnect();document.removeEventListener("yt-page-type-changed",_.jr(this,this.onPageChange))};
_.R.insertRichSection=function(f){var H=f.richItemTargetId;f=f.richSectionRendererToInsert;H&&f&&(this.insertedContent.set(H,{content:f,timestamp:Date.now()}),this.reflowContent())};
_.R.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.R.computeIsInlinePreviewEnabled=function(f,H,v){return _.J("web_disable_inline_preview")?!1:!v&&_.nZb({miniplayerIsActive:f,miniplayerPlaybackState:H})};
_.R.computeSizing=function(){var f=_.Cce(this.data);if(f||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return f?this.useCompactList?"COMPACT":f:this.miniMode?"COMPACT":_.J("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.R.updateItemMinAndMaxWidth=function(){var f=_.VQ("rich_grid_max_item_width",500);f>0&&_.Sr(this.hostElement,{"--ytd-rich-grid-item-max-width":f+"px"});var H;f=this.getRichItemMinWidth((H=this.hostElement)==null?void 0:H.clientWidth);f>0&&_.Sr(this.hostElement,{"--ytd-rich-grid-item-min-width":f+"px"})};
_.R.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.R.resizeObserved=function(){_.$E(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.R.navigateBackToHome=function(){_.J("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.J("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var f=_.t8().resolve(_.fT).isOnWatch(),H,v=((H=_.lY(location.pathname))==null?void 0:H.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(v)||f)&&this.gnomeContents&&_.J("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);f&&this.exploreHubContents&&_.J("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.vS().dispatch(_.yq({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.R.onPageChange=function(){var f=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.J("disable_chip_select_on_nav")||_.$E(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.nN.addJob(function(){f.pageLoadingFromNavigation=!1;_.J("disable_chip_select_on_nav")&&_.J("h5_reset_cache_and_filter_before_update_masthead")&&f.resetCacheAndIsFilteredFeed();f.setMasthead();f.maybeSetBigYoodle();f.forceRefreshAndLog();f.terminateVideoPreview();_.J("web_hide_gnome_until_user_navigates_back_to_home")&&
(f.dataChanged(),_.qV(f,function(){if(f.showGnomeContents){var H=Array.from(_.mF(f.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(t){t=_.mF(t).querySelector("ytd-rich-shelf-renderer");return!!t&&t.isGnomeShelf()});
if(H){H=H.offsetTop-f.contentsElement.offsetTop;var v=_.t8().resolve(_.fT).getCurrentPage();v&&v.getPageScrollingElement().scrollTo({top:H,behavior:"smooth"})}}}));
_.J("web_hide_explore_hub_until_user_navigates_back_to_home")&&(f.dataChanged(),_.qV(f,function(){if(f.showExploreHubContents&&!_.J("web_explore_hub_no_scroll")){var H=Array.from(_.mF(f.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(t){return!!t.querySelector("ytd-talk-to-recs-flow-renderer")});
if(H){H=H.offsetTop-f.contentsElement.offsetTop;var v=_.t8().resolve(_.fT).getCurrentPage();v&&v.getPageScrollingElement().scrollTo({top:H,behavior:"smooth"})}}}))},8)):((_.J("web_hide_gnome_until_user_navigates_back_to_home")||_.J("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.R.dataChanged=function(){var f=this;_.$E(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.qV(this,function(){f.updateRichItemGridPositions();f.contentsElement&&_.Sr(f.hostElement,{"--ytd-rich-grid-content-offset-top":f.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.R.initResizeObserver=function(){var f=this;if(window.ResizeObserver){var H;(H=this.resizeObserver)==null||H.disconnect();var v=!1;this.resizeObserver=new ResizeObserver(function(){if(v){var t;(t=f.resizeObserver)==null||t.disconnect();var M;(M=f.JSC$21858_throttledOnResize)==null||M.fire();requestAnimationFrame(function(){var y;(y=f.JSC$21858_throttledOnResize)==null||y.fire();f.initResizeObserver()})}else if(v=!0,f.resizeOnObserverInit){var h;
(h=f.JSC$21858_throttledOnResize)==null||h.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.R.contentLengthChanged=function(){if(_.J("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.$E(this.hostElement,"ytd-rich-item-index-update-action")};
_.R.updateElementsPerRow=function(){_.$E(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.yq({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.yq({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.R.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.R.onRichShelfRendererCollapse=function(f){if(this.shownItems){var H=f.detail;f=this.shownItems.findIndex(function(t){var M,h;return((h=_.U(t==null?void 0:(M=t.richSectionRenderer)==null?void 0:M.content,_.ZZh))==null?void 0:h.trackingParams)===H});
var v=f+1;f<0||v>=this.contentsElement.children.length||!this.shownItems[v].richItemRenderer||this.contentsElement.children[v].scrollIntoView({behavior:"smooth",block:"start"})}};
_.R.onSoftReloadPage=function(){this.scrollUpToTop()};
_.R.handleRerenderDownloadsData=function(){_.J("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.R.handlePlaylistRemoveVideosAction=function(f){var H;if(((H=_.U(f,_.aea))==null?0:H.setVideoIds)&&this.data&&this.data.contents){f=_.U(f,_.aea).setVideoIds;for(H=this.data.contents.length-1;H>=0;){var v=_.U(this.data.contents[H],_.Lv);(v=v&&_.U(v.content,_.of))&&v.setVideoId&&f.includes(v.setVideoId)&&this.splice("data.contents",H,1);H--}this.updateIndices()}};
_.R.updateIndices=function(){if(this.data&&this.data.contents)for(var f=0;f<this.data.contents.length;f++)this.set("data.contents."+f+".richItemRenderer.index",_.qO(String(f+1)))};
_.R.hasTopRowInlinePlayableVideoWithEndorsement=function(f){var H;return!((H=f.slice(0,this.getItemsPerRow()))==null||!H.some(function(v){var t;v=_.U(v==null?void 0:(t=v.richItemRenderer)==null?void 0:t.content,_.QD);var M;return(v==null?void 0:v.inlinePlaybackEndpoint)&&(v==null?void 0:(M=v.thumbnailOverlays)==null?void 0:M.some(function(h){return h.thumbnailOverlayEndorsementRenderer}))}))};
_.R.refreshGridLayoutNew=function(f,H,v,t){var M=t.postsPerRow;var h=t.slimItemsPerRow;var y=t.gameCardsPerRow;t=t.miniGameCardsPerRow;var m;if((m=this.data)==null||!m.contents||!this.containerWidth)return!1;var W;if((W=this.data.responsiveContainerConfiguration)==null?0:W.responsiveSize){var I=_.jCe(this.data.responsiveContainerConfiguration,this.containerWidth),S;m=_.GV(Object.assign({},I,{standardUnitMinWidth:(S=this.data)==null?void 0:S.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&I.isCompactList)}else m=_.GV({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(I=this.data)==null?void 0:I.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=m.typographyBump;S=!1;if(f||this.elementsPerRow!==m.numItems||this.postsPerRow!==M||this.slimItemsPerRow!==h||this.gameCardsPerRow!==
y||this.miniGameCardsPerRow!==t||this.gutter!==m.gutter)S=this.elementsPerRow!==m.numItems,this.elementsPerRow=m.numItems,this.postsPerRow=M,this.slimItemsPerRow=h,this.gameCardsPerRow=y,this.miniGameCardsPerRow=t,this.gutter=m.gutter,this.itemWidth=m.itemWidth,this.reflowContent(H),_.Sr(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":m.gutter+"px","--ytd-rich-grid-posts-per-row":""+this.postsPerRow,"--ytd-rich-grid-slim-items-per-row":""+this.slimItemsPerRow,
"--ytd-rich-grid-game-cards-per-row":""+this.gameCardsPerRow,"--ytd-rich-grid-mini-game-cards-per-row":""+this.miniGameCardsPerRow}),this.updateElementsPerRow(),this.updateMiniMode(v);this.ytdReduxBehavior.dispatch(_.yq({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:m.maxContainerWidth}));return S};
_.R.refreshGridLayout=function(f,H){var v,t=(v=this.hostElement)==null?void 0:v.clientWidth;this.containerWidth=this.adjustRichGridWidth(t,!0);var M;if((M=this.data)==null||!M.contents||!this.containerWidth)return f&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.J("rg_pending_reflow_ks")&&(f=!0,this.pendingForceReflow=!1);v=this.getRichItemMinWidth(t);var h=this.isShortsPanel?146:194,y=this.getMiniGameCardMinWidth(),m=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
t=v=this.calcElementsPerRow(v,m);(M=v<=3&&this.miniModeAllowed())&&(v=this.calcElementsPerRow(240,4));var W=this.calcMaxSlimElementsPerRow(v,m,this.isDefaultGrid);m=this.calcElementsPerRow(h,W);var I=this.calcElementsPerRow(this.isCompactGrid?h:154,W);h=this.calcElementsPerRow(this.isCompactGrid?h:y,W);y=!1;if(this.sizing)return this.refreshGridLayoutNew(f,H,M,{postsPerRow:t,slimItemsPerRow:m,gameCardsPerRow:I,miniGameCardsPerRow:h});if(f||this.elementsPerRow!==v||this.postsPerRow!==t||this.slimItemsPerRow!==
m||this.gameCardsPerRow!==I||this.miniGameCardsPerRow!==h)y=this.elementsPerRow!==v,this.elementsPerRow=v,this.postsPerRow=t,this.slimItemsPerRow=m,this.gameCardsPerRow=I,this.miniGameCardsPerRow=h,this.reflowContent(H),this.updateElementsPerRow(),_.Sr(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)&&_.Sr(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(M);_.$E(this.hostElement,"yt-rich-grid-layout-refreshed");return y};
_.R.getRichItemMinWidth=function(f){var H=_.VQ("rich_grid_min_item_width",310);if(!_.J("kevlar_disable_min_width_override")){var v,t;H=(t=(v=this.data)==null?void 0:v.minItemWidth)!=null?t:H}return H+_.nHH(f)};
_.R.calcMaxSlimElementsPerRow=function(f,H,v){return(v===void 0?0:v)?f===1?2:f%2===0?_.J("web_shorts_2_by_3_reduce_items_per_row")&&f>=4?f/2*3-1:f/2*3:_.J("web_shorts_2_by_3_reduce_items_per_row")&&f>=3?f+1:f+2:H*2};
_.R.adjustRichGridWidth=function(f,H){var v=_.J("disable_rich_grid_guide_compensation");if(!this.isWatch&&!v){v=_.t8().resolve(_.vh(_.Eh));var t=v==null?void 0:v.guideElement;if(!(!v||v.getData()||t!=null&&t.opened||v.getMiniGuideVisible()))if(v.canFitPersistentGuide(f)&&v.getGuideExpandsAutomatically()){var M,h,y=Number((M=window.getComputedStyle(this.hostElement))==null?void 0:(h=M.getPropertyValue("--app-drawer-width"))==null?void 0:h.replace("px",""));f-=y||0}else if(v.canFitMiniGuide(f)){var m;
M=Number((y=window.getComputedStyle(this.hostElement))==null?void 0:(m=y.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:m.replace("px",""));f-=M||0}}f>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(f-=H?32:48));return f};
_.R.calcElementsPerRow=function(f,H){var v=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),t=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((v+t)/(f+t))||1,H)};
_.R.reflowContent=function(f){var H=this;if(!this.isReflowing){this.isReflowing=!0;var v,t,M=!!((v=this.data)==null?0:(t=v.contents)==null?0:t.some(function(l){return _.U(l,_.bw)}));
v=this.getItemsPerRow();var h;t=(h=this.data)==null?void 0:h.reflowOptions;f&&(_.u0("rgr_s"),_.qV(this,function(){_.u0("rgr_nrf")}));
f={};(h=_.mF(this.hostElement).querySelector("#contents"))&&(f={contentElement:h,rendererToTagNameMap:this.rendererToTagNameMap});h=(h=this.data.contents)?h.slice():[];var y=(_.J("web_hide_gnome_behind_feed_filter_chip")||_.J("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,m=_.J("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,W=-1,I=-1;if(this.isHomePage&&m){for(m=0;m<h.length;m++){var S=void 0,d=void 0;_.U((S=h[m])==null?void 0:
(d=S.richSectionRenderer)==null?void 0:d.content,MR0)&&(I=m)}I>-1&&(this.exploreHubContents=h.splice(I,1))}if(this.isHomePage&&y){for(I=0;I<h.length;I++)d=S=void 0,(m=_.U((S=h[I])==null?void 0:(d=S.richSectionRenderer)==null?void 0:d.content,_.ZZh))&&y&&(d=S=void 0,m=_.U((S=m)==null?void 0:(d=S.contents)==null?void 0:d[0],_.Lv),S=void 0,_.U((S=m)==null?void 0:S.content,_.ZRC)&&(W=I));W>-1&&(this.gnomeContents=h.splice(W,1))}M=C8h(h,v,M,t,this.getRichGridStyle(),f,this.insertedContent);var Z=M.orderedContent;
if(M=M.pinnedContentNotShownTargetIds)for(M=_.V(M),v=M.next();!v.done;v=M.next())this.insertedContent.delete(v.value);M=function(){H.shownItems=Z;H.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(Z),_.qV(this,M)):M()}};
_.R.getFirstRowItems=function(f){for(var H=[],v=0;v<f.length;v++){var t=void 0,M=void 0,h=void 0,y=void 0,m=void 0,W=void 0;if(((t=f[v])==null?void 0:(M=t.richItemRenderer)==null?void 0:M.rowIndex)===0||((h=f[v])==null?void 0:(y=h.richGroupRenderer)==null?void 0:y.rowIndex)===0||((m=f[v])==null?void 0:(W=m.richSectionRenderer)==null?void 0:W.rowIndex)===0)H.push(f[v]);else break}return H};
_.R.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.R.resetInsertedContentIfNeeded=function(){(_.J("web_explore_hub_on_hover")||_.J("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.R.handleChipCloudChipSelectAction=function(f,H){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed();_.J("web_hide_gnome_behind_feed_filter_chip")&&(H?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.R.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.J("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.R.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();_.J("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.R.terminateVideoPreview=function(){_.$E(this.hostElement,"yt-terminate-video-preview-action")};
_.R.updateRichItemGridPositions=function(){var f={gridData:{gridColumnCount:this.elementsPerRow}},H;if((H=this.data)==null?0:H.trackingParams)this.loggingRefactor?_.UV().stateChanged(this.data.trackingParams,f):(H=_.uy())&&_.q6(H,_.zK(this.data.trackingParams),f);_.$E(this.hostElement,"ytd-rich-item-index-update-action")};
_.R.miniModeAllowed=function(){return this.isChannelPage};
_.R.getMiniGameCardMinWidth=function(){return 154};
_.R.updateMiniMode=function(f){this.miniMode=this.miniModeAllowed()&&f;this.ytdReduxBehavior.dispatch(_.yq({type:"SET_RICH_GRID_MINI_MODE",payload:f}))};
_.R.isCurrentPage=function(){return location.pathname===this.pagePath};
_.R.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var f=_.t8().resolve(_.fT).getCurrentPage();f&&f.setScrollTop(0)}};
_.R.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.R.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.R.maybeSetBigYoodle=function(){var f,H=(f=this.data)==null?void 0:f.bigYoodle;this.bigYoodleData!==H&&(this.bigYoodleData=H)};
_.R.setMasthead=function(){var f;((f=this.data)==null?0:f.masthead)?this.mastheadData=this.data.masthead:_.J("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.R.getRichGridStyle=function(){var f,H;return(H=(f=this.data)==null?void 0:f.style)!=null?H:"RICH_GRID_STYLE_UNKNOWN"};
_.R.onIsShortsGridChange=function(){var f=this.ytdReduxBehavior,H=f.dispatch,v=this.getRichGridStyle();H.call(f,_.yq({type:"SET_RICH_GRID_STYLE",payload:v}))};
_.H7.Object.defineProperties(J0.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var f;return(((f=this.data)==null?void 0:f.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var f;return(((f=this.data)==null?void 0:f.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var f=_.t8().resolve(_.fT).getCurrentPage(),H,v,t;return(((H=this.data)==null?void 0:H.targetId)==="browse-feedFEsfv_audio_pivot"||_.J("web_enable_channel_pivot_panel")&&((v=this.data)==null?void 0:v.targetId)==="browse-feedFEsfv_channel_pivot"||_.J("web_enable_effect_pivot_panel")&&((t=this.data)==null?void 0:t.targetId)==="browse-feedFEsfv_effect_pivot")&&(f==null?void 0:f.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.J("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 f;return!((f=this.data)==null?0:f.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var f;return((f=_.t8().resolve(_.fT).getCurrentPage())==null?void 0:f.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var f;return((f=_.t8().resolve(_.fT).getCurrentPage())==null?void 0:f.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnHome:{configurable:!0,enumerable:!0,get:function(){var f;return this.hideChipsBar||(((f=this.data)==null?void 0:f.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.J("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var f;return(((f=this.data)==null?void 0:f.targetId)||"")==="watch-next-feed"&&!_.J("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var f,H,v;return((f=this.data)==null?0:f.enableContentSpecificAspectRatio)||((H=this.data)==null?0:(v=H.responsiveContainerConfiguration)==null?0:v.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.VQ("web_continuation_handler_margin",0):0}}});
J0.prototype.onIsShortsGridChange=J0.prototype.onIsShortsGridChange;J0.prototype.onReloadContinuationFinish=J0.prototype.onReloadContinuationFinish;J0.prototype.reflowContent=J0.prototype.reflowContent;J0.prototype.handleRerenderDownloadsData=J0.prototype.handleRerenderDownloadsData;J0.prototype.onRichShelfRendererCollapse=J0.prototype.onRichShelfRendererCollapse;J0.prototype.onRequestElementsPerRow=J0.prototype.onRequestElementsPerRow;J0.prototype.contentLengthChanged=J0.prototype.contentLengthChanged;
J0.prototype.dataChanged=J0.prototype.dataChanged;J0.prototype.onSizingChange=J0.prototype.onSizingChange;J0.prototype.onUseCompactListChange=J0.prototype.onUseCompactListChange;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],J0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],J0.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.x3),_.N("design:type",Object)],J0.prototype,"ironResizableBehavior",void 0);
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],J0.prototype,"actionHandlerBehavior",void 0);_.E([_.B(_.E_),_.N("design:type",Object)],J0.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],J0.prototype,"componentBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],J0.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],J0.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0,selector:_.Qq}),_.N("design:type",Boolean)],J0.prototype,"miniMode",void 0);_.E([_.F({value:[]}),_.N("design:type",Array)],J0.prototype,"shownItems",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],J0.prototype,"isReflowing",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],J0.prototype,"isFilteredFeed",void 0);_.E([_.F({selector:_.XLs}),_.N("design:type",Boolean)],J0.prototype,"guideIsExpanded",void 0);
_.E([_.F({selectorArgs:["entitySelectorType"],selector:function(f,H){if(_.J("kevlar_modern_downloads_page")&&H&&H!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(H){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":H=f.entities;var v=_.o5(H),t=_.nY(H),M=_.mBb(f),h=_.Yzr(f),y=_.$BN(f),m=_.pLR(H),W=_.Ba(v),I=_.pY(H);return _.$D_(v,t,m,_.P3_(H),M,h,W,I,y,_.OMR(f),_.GZ(f));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return f=_.o5(f.entities),_.OCT(f);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return f=
_.DI_(f.entities),_.gYR(f);default:_.pb(new _.e$("Error: entitySelectorType defined but not matched in selector.",f,H))}}}),
_.N("design:type",Object)],J0.prototype,"entityDrivenRichGridData",void 0);_.E([_.F(),_.N("design:type",Object)],J0.prototype,"resizeOnObserverInit",void 0);_.E([_.F(),_.N("design:type",Object)],J0.prototype,"bigYoodleData",void 0);_.E([_.F(),_.N("design:type",Object)],J0.prototype,"mastheadData",void 0);_.E([_.F(),_.N("design:type",Boolean)],J0.prototype,"isInlinePreviewDisabled",void 0);_.E([_.F(),_.N("design:type",Object)],J0.prototype,"disableStickyFilterBar",void 0);
_.E([_.F(),_.N("design:type",Object)],J0.prototype,"transparentBackgroundChipsBar",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],J0.prototype,"hideChipsBar",void 0);_.E([_.F(),_.N("design:type",Object)],J0.prototype,"isWatchDefaultLayout",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],J0.prototype,"continuationShowButton",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],J0.prototype,"rowReducedHorizontalMargin",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],J0.prototype,"useCompactList",void 0);_.E([_.F({selector:function(f){return _.nY(f.entities).length>0}}),
_.N("design:type",Object)],J0.prototype,"manualDownloadsPresent",void 0);_.E([_.F({selector:function(f){return _.o5(f.entities).length>0}}),
_.N("design:type",Object)],J0.prototype,"smartDownloadsPresent",void 0);_.E([_.F({selector:_.GZ}),_.N("design:type",Object)],J0.prototype,"isOnline",void 0);_.E([_.F({selector:_.Yzr}),_.N("design:type",Object)],J0.prototype,"shouldRenderDownloadsBanner",void 0);_.E([_.F({selector:_.OMR}),_.N("design:type",Object)],J0.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.E([_.F({selector:_.mBb}),_.N("design:type",Object)],J0.prototype,"hasOptedIntoSmartDownloads",void 0);
_.E([_.Zw("useCompactList"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],J0.prototype,"onUseCompactListChange",null);_.E([_.Zw("sizing","typographyBump"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],J0.prototype,"onSizingChange",null);_.E([_.F({selector:_.wLE}),_.N("design:type",Number)],J0.prototype,"miniplayerPlaybackState",void 0);_.E([_.F({selector:_.a5}),_.N("design:type",Boolean)],J0.prototype,"miniplayerIsActive",void 0);
_.E([_.F({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.N("design:type",Boolean)],J0.prototype,"isInlinePreviewEnabled",void 0);_.E([_.F({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.N("design:type",String)],J0.prototype,"sizing",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],J0.prototype,"elementsPerRow",void 0);
_.E([_.F(),_.N("design:type",Object)],J0.prototype,"typographyBump",void 0);_.E([_.F(),_.N("design:type",Number)],J0.prototype,"itemWidth",void 0);_.E([_.lJ("#header"),_.N("design:type",HTMLElement)],J0.prototype,"headerElement",void 0);_.E([_.lJ("#contents"),_.N("design:type",HTMLElement)],J0.prototype,"contentsElement",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],J0.prototype,"dataChanged",null);
_.E([_.xV("data.contents.length"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],J0.prototype,"contentLengthChanged",null);_.E([_.sE("yt-request-elements-per-row"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],J0.prototype,"onRequestElementsPerRow",null);
_.E([_.sE("yt-rich-shelf-renderer-collapse"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],J0.prototype,"onRichShelfRendererCollapse",null);_.E([_.xV("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],J0.prototype,"handleRerenderDownloadsData",null);
_.E([_.z("data"),_.N("design:type",String),_.N("design:paramtypes",[])],J0.prototype,"entitySelectorType",null);_.E([_.F({reflectToAttribute:!0}),_.z("data.targetId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],J0.prototype,"isSub",null);_.E([_.F({reflectToAttribute:!0}),_.z("data.targetId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],J0.prototype,"isWatch",null);
_.E([_.F({reflectToAttribute:!0}),_.z("data.targetId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],J0.prototype,"isShortsPanel",null);_.E([_.F({reflectToAttribute:!0}),_.z("isWatch"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],J0.prototype,"reducedTopMargin",null);_.E([_.F({reflectToAttribute:!0}),_.z("data","isWatch","isWatchDefaultLayout"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],J0.prototype,"noTopMargin",null);
_.E([_.F({reflectToAttribute:!0}),_.z("isInlinePreviewEnabled","shownItems"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],J0.prototype,"topRowEndorsement",null);_.E([_.z("data.header"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],J0.prototype,"hideHeader",null);_.E([_.sE("yt-rich-grid-reflow"),_.N("design:type",Function),_.N("design:paramtypes",[Boolean]),_.N("design:returntype")],J0.prototype,"reflowContent",null);
_.E([_.sE("yt-reload-continuation-finish"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],J0.prototype,"onReloadContinuationFinish",null);_.E([_.z("data"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],J0.prototype,"isSlimGrid",null);_.E([_.z("data"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],J0.prototype,"isShortsGrid",null);
_.E([_.z("data","isSlimGrid","isShortsGrid"),_.F(),_.N("design:type",Boolean),_.N("design:paramtypes",[])],J0.prototype,"noRichItemGutterMargins",null);_.E([_.z("data"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],J0.prototype,"isShortsGridSlim",null);_.E([_.z("data"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],J0.prototype,"isCompactGrid",null);
_.E([_.z("data"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],J0.prototype,"isDefaultGrid",null);_.E([_.z("data.targetId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],J0.prototype,"hideChipsBarOnHome",null);_.E([_.z("data.targetId"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],J0.prototype,"hideChipsBarOnWatch",null);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],J0.prototype,"onIsShortsGridChange",null);_.E([_.z("data.enableContentSpecificAspectRatio"),_.F(),_.N("design:type",Boolean),_.N("design:paramtypes",[])],J0.prototype,"force16By9ThumbnailAspectRatio",null);_.E([_.z("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],J0.prototype,"continuationTriggerOffset",null);_.E([_.u({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],J0);
_.G(J0,"ytd-rich-grid-renderer",function(){if(ZtA!==void 0)return ZtA;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return ZtA=f},{mode:2});var o2G=_.a(function(f){var H=f.thumbsUp,v=f.thumbsDown,t=f.rightAlignThumbs;f=_.V(_.gp(!1,void 0,"FjNDrf"));var M=f.next().value,h=f.next().value;f=_.V(_.gp(!1,void 0,"Tphjfb"));var y=f.next().value,m=f.next().value;f={};return _.O("div",{class:_.S2("ytwThumbsUpDownThumbs",(f.ytwThumbsUpDownRightAlign=function(){return t==null?void 0:t()},f))},_.O(_.Fo,{data:H,
onToggle:function(W){h(W);y()&&m(!1)},
buttonShapeOverrides:function(){return{toggled:M()}}}),_.O(_.Fo,{data:v,
onToggle:function(W){m(W);M()&&h(!1)},
buttonShapeOverrides:function(){return{toggled:y()}}}))},"bk");
o2G.idomCompat=!0;var py0=_.a(function(f){var H=function(){return f.data().pendingStateEntityKey||""},v=_.s7(_.qdF,H),t=function(){var m;
if(!(m=f.disabled())){var W;m=!((W=v())==null||!W.isPendingResponse)}return m},M=_.V(_.gp(c0h(""),void 0,"aC8eBe")),h=M.next().value,y=M.next().value;
_.ru(function(){requestAnimationFrame(function(){var m=f.data().onShowAnimationMs||0;m=m>0?c0h("--chip-animation-duration: "+m+"ms;"):c0h("");y(m)})});
return _.O("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:h},_.O(_.eK,{each:function(){return f.data().chipData||[]},
keyBy:"REFERENCE"},function(m){return _.O(n2x,{data:m,disabled:t,pendingStateKey:H,onError:f.onError})}))},"ck"),n2x=_.a(function(f){var H=_.w8("button"),v=_.V(_.gp(!0,void 0,"NaMiCd")),t=v.next().value,M=v.next().value,h=function(){return f.data().text.content},y=_.d6(function(m){var W,I,S,d,Z,l,L,r;
return _.Y(function(n){switch(n.nextAddress){case 1:m.stopPropagation();if(f.disabled())return n.return();I=String(Math.floor(((W=_.O7())==null?void 0:W.getCurrentTime())||0)*1E3);S="youchat-"+Date.now();d=function(){_.Cu(f.data().onClick||{});var Q={continuationCommand:{token:f.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},C={inputComposerFormData:{clientMessageId:S,playerOffsetMs:I}};return new Promise(function(w,c){_.Cu(Q,{form:{formData:C},commandController:{onSuccess:function(A,
X){w(X)},
onServerError:function(A,X){c(X.error)}}})})};
Z=_.faW(f.pendingStateKey());Z(!0);_.ojx("#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");M(!1);_.Zc(n,2);return n.yield(d(),4);case 4:_.ch(n,3);break;case 2:l=_.xu(n),(r=(L=f).onError)==null||r.call(L,l);case 3:Z(!1),_.Bj(n)}})});
return _.O(_.g,{cond:t,then:function(){return _.O("div",{class:"ytwYouChatChipsDataChipWrapper"},_.O("button",{el:H,class:"ytwYouChatChipsDataChip","data-disabled":f.disabled,"on:click":y,tabindex:0},h))}})},"dk");var QGA=_.a(function(f){var H=f.data;var v=f.initiallyExpanded;var t=function(){var I;return(I=H().conversationResourceData)==null?void 0:I.learningGuideData};
f=_.V(_.sR(function(){var I;return(I=v==null?void 0:v())!=null?I:!1}));
var M=f.next().value,h=f.next().value,y=function(){h(!0)},m=_.sg(function(){var I,S;
return(S=(I=t())==null?void 0:I.sections)!=null?S:[]},void 0,"xl8NRc"),W=_.sg(function(){return m().length>4},void 0,"oAM7of");
f=_.sg(function(){var I;return!M()&&W()&&(I=t())!=null&&I.expandButton?m().slice(0,4):m()},void 0,"uzQ9rc");
return _.O("yt-conversation-resource-view-model",{class:_.S2("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.O(_.Jj,{data:f},{expandableMetadataViewModel:_.cWG}),_.O(_.g,{cond:function(){return W()&&!M()},
then:function(){return _.O("div",{id:"showMoreButton"},_.O(_.Jj,{data:function(){var I;return(I=t())==null?void 0:I.expandButton}},{buttonViewModel:function(I){return _.O(_.Wp,{data:I.data,
onClick:y})}}))}}))},"ek");var ucF=_.a(function(f){var H=function(){var X;return(X=f.data().text)==null?void 0:X.content},v=function(){var X,fg;
return(X=f.data().webData)==null?void 0:(fg=X.textResult)==null?void 0:fg.content},t=_.t8().resolve(_.qE),M=_.g3(),h=function(){return f.data().chatResponseStyle},y=function(){return!f.data().transparentBackground},m=function(){return f.data().rightAlignThumbs},W=function(){return f.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||f.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},I=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:W()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:f.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},S=function(){var X;
return f.data().webData||((X=f.data().text)==null?void 0:X.content)||f.data().videoResultsData||f.data().conversationResourceViewModel||f.data().quiz},d=function(){return!!f.data().sectionHeader||S()},Z=function(){var X;
return(X=f.data().videoResultsData)==null?void 0:X.videoShelf},l=function(){var X;
return _.U(((X=f.data().videoResultsData)==null?void 0:X.videoShelf)||{},Y9W)},L=function(){var X;
return(X=f.data().webData)==null?void 0:X.sourcesShelf},r=function(){var X;
return _.U(((X=f.data().webData)==null?void 0:X.sourcesShelf)||{},Y9W)},n=function(){return _.U(f.data().conversationResourceViewModel||{},$Zw)},Q=function(){return _.U(f.data().quiz||{},RCp)},C=function(){return h()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||h()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:f.data().thumbsDownViewModel&&f.data().thumbsUpViewModel},w=function(){return _.U(f.data().thumbsUpViewModel,_.G3)},c=function(){return _.U(f.data().thumbsDownViewModel,_.G3)};
_.ru(function(){requestAnimationFrame(function(){var X;(X=f.shouldAnimateIcon)!=null&&X.call(f)&&Htp(M.lottieEl)})});
var A={};return _.O("you-chat-item-view-model",{class:_.S2("ytwYouChatItemViewModelYouChatItemViewModel",(A.ytwYouChatItemViewModelColumnLayout=function(){return W()},A)),
"data-target-id":function(){return f.data().id||""}},_.O(_.g,{cond:function(){return f.data().removeIcon?!1:d()},
then:function(){var X={};return _.O("div",{"aria-hidden":"true"},_.O(_.j3,{className:_.S2("ytwYouChatItemViewModelIcon",(X.ytwYouChatItemViewModelRtl=t==="rtl",X.ytwYouChatItemViewModelHidden=function(){return!(f.data().hideIcon||h()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||h()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:d())},X)),
animationName:"YOUCHAT_ICON",data:I,animationRef:M}))}}),_.O(_.g,{cond:d,
then:function(){var X={};return _.O("div",{class:_.S2("ytwYouChatItemViewModelHost",(X.ytwYouChatItemViewModelHostNoPadding=function(){return!!f.data().sectionHeader&&!S()},X.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return h()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},X.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return h()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},X.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return h()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
X.ytwYouChatItemViewModelGradientBackground=y,X)),
role:"alert"},_.O(_.g,{cond:H,then:function(fg){return _.O(_.Gm,{text:fg,wrapCodeBlocks:!0})}}),_.O(_.Jj,{data:function(){return f.data().sectionHeader}},{sectionHeaderViewModel:function(fg){var gB={};
return _.O(_.$b,{data:fg.data,className:_.S2("ytwYouChatItemViewModelSectionHeader",(gB.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!f.data().sectionHeader&&!S()},gB))})}}),_.O(_.g,{cond:v,
then:function(fg){return _.O(_.Gm,{text:fg,wrapCodeBlocks:!0})}}),_.O(_.g,{cond:Z,
then:function(){return _.O("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.O(_.u4,{data:l,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.O(_.g,{cond:L,
then:function(){return _.O("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.O(_.u4,{data:r,hasPeek:!0,disableArrows:!1}))}}),_.O(_.g,{cond:n,
then:function(){return _.O(QGA,{data:n})}}),_.O(_.g,{cond:Q,
then:function(){return _.O(_.Rea,{data:Q})}}),_.O(_.g,{cond:C,
then:function(){return _.O(o2G,{thumbsUp:w,thumbsDown:c,rightAlignThumbs:m})}}))}}),_.O(_.g,{cond:function(){return f.data().chipsData},
then:function(X){return _.O(py0,{data:X,disabled:f.pending,onError:f.onError})}}))},"fk");
ucF.idomCompat={callbacks:{onError:!0,onSend:!0}};var aat=_.a(function(f){var H=function(){return f.data().choiceSelectedText},v=function(){return f.data().hasGradientBackground},t={};
return _.O("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.O(_.g,{cond:H,then:function(){return _.O("div",{class:"ytYouChatUserTurnChoiceSelected"},_.O(_.iq,{text:H}))}}),_.O("div",{class:_.S2("ytYouChatUserTurnUserMessage",(t.ytYouChatUserTurnGradientContainer=v,t.ytYouChatUserTurnDefaultContainer=function(){return!v()},t))},function(){return f.data().text}))},"gk");var Pjp=_.a(function(f){var H=_.V((0,_.otr)(f.data)).next().value;return _.O("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return f.data().targetId||""}},_.O(_.Jj,{data:function(){return f.data().header}},{chipBarViewModel:_.xPg}),_.O(_.Jj,{data:function(){return H().contents}},{accordionViewModel:_.m4o,
alertBannerViewModel:_.nnh,chatLoadingViewModel:_.v1W,chatUserTurnViewModel:aat,learningJourneyLoaderViewModel:_.vjb,lockupViewModel:function(v){return _.O(_.YM,{data:v.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:f.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
videoOverviewViewModel:_.sLH,youChatItemViewModel:function(v){return _.O(ucF,{data:v.data,pending:!1})}}))},"hk");_.yn(_.a(function(f){var H=_.V((0,_.otr)(f.data)).next().value,v=_.TN("yt-section-list-renderer"),t=_.V(_.gp(void 0,void 0,"rQpPgc")),M=t.next().value,h=t.next().value,y=function(){var m;return _.U((m=f.data().sectionListLayoutConfiguration)==null?void 0:m.layoutConfiguration,y45)};
_.Kc(function(){var m,W=(m=v.value)==null?void 0:m.clientWidth;if(y()){m=y();var I=m.responsiveSize;W=W<528?"CONTAINER_SIZE_NARROW":W<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var S=_.V(m.responsiveMap||[]);for(var d=S.next();!d.done;d=S.next())if(d=d.value,d.containerSize===W){S=d.containerType;break b}S=void 0}if(S&&I){b:{if(S==="CONTAINER_TYPE_VERTICAL_LIST")if(I==="RESPONSIVE_SIZE_STANDARD"){if(W!=="CONTAINER_SIZE_NARROW"){d="50%";break b}}else{d=W==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}d=void 0}m={responsiveSize:I,containerSize:W,containerType:S,force16By9ThumbnailAspectRatio:!m.enableContentSpecificAspectRatio,contentPreviewWidth:d,fullbleed:(S==="CONTAINER_TYPE_VERTICAL_LIST"||S==="CONTAINER_TYPE_GRID")&&W==="CONTAINER_SIZE_NARROW"&&!1}}else m=void 0}else m=void 0;h(m)});
return _.O("yt-section-list-renderer",{class:_.S2("ytSectionListRendererHost",f.className),el:v,"data-target-id":function(){return f.data().targetId||""}},_.O(_.Jj,{data:function(){return H().contents}},{itemSectionRenderer:function(m){return _.O(Pjp,{data:m.data,
containerLayoutConfig:M})}}))},"ik"),"yt-section-list-renderer",{props:{data:_.ki,
className:_.Rm}});var GSx;var Cj5;var E2p=function(){return _.K.apply(this,arguments)||this};
_.e(E2p,_.K);_.E([_.F(),_.N("design:type",Object)],E2p.prototype,"data",void 0);_.E([_.GW({is:"yt-alert-renderer",disableElementRegistration:!0})],E2p);
_.G(E2p,"yt-alert-renderer",function(){if(Cj5===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;GSx===void 0&&(GSx=document.createElement("template"));var t=GSx;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Cj5=f}f=Cj5;return f},{mode:2});
}catch(e){_._DumpException(e)}
try{
var Axp;Axp=function(f,H,v,t){v||(f?t&&(t.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||t.WINDOW_SIZE_CHANGED&&(H.width!==window.innerWidth||H.height!==window.innerHeight)||t.SAFARI_ABORTED_BY_NEW_TRANSITION&&f instanceof DOMException&&f.name==="AbortError"&&f.message.includes("Old view transition aborted by new view transition"))||_.oO(f):_.oO(Error("lj")))};
_.b95=function(f,H){H=H===void 0?{}:H;var v,t,M,h,y,m,W,I,S,d,Z,l,L;return _.Y(function(r){switch(r.nextAddress){case 1:v=H;t=v.shouldWrap===void 0?!0:v.shouldWrap;M=v.skipTransitionTimeoutMs===void 0?300:v.skipTransitionTimeoutMs;h=v.beforeTransition;y=v.afterTransition;if(!t||!document.startViewTransition||document.visibilityState==="hidden")return r.return(f());m={width:window.innerWidth,height:window.innerHeight};W=!1;(I=h)==null||I();_.Zc(r,2);S=document.startViewTransition(f);d=setTimeout(function(){S.skipTransition();
W=!0},M);
return r.yield(S.ready,4);case 4:return clearTimeout(d),r.yield(S.finished,5);case 5:clearTimeout(d);(Z=y)==null||Z();_.ch(r,0);break;case 2:l=_.xu(r),(L=y)==null||L(),Axp(l,m,W,H.ignoredErrors),_.Bj(r)}})};
_.aA=function(){for(var f=Array(36),H=0,v,t=0;t<36;t++)t==8||t==13||t==18||t==23?f[t]="-":t==14?f[t]="4":(H<=2&&(H=33554432+Math.random()*16777216|0),v=H&15,H>>=4,f[t]=_.LVa[t==19?v&3|8:v]);return f.join("")};/*

Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var i9t=_.EH(['<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>']),
kOx=_.WOZ(i9t);kOx.setAttribute("style","display: none;");document.head.appendChild(kOx.content);_.P$=_.ONE(function(f){var H=_.lS("DIV");f&&(H.className=f);H.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";f=_.lS("DIV");_.hwb(f,"200px","200px");H.appendChild(f);document.body.appendChild(H);f=H.offsetWidth-H.clientWidth;_.U1(H);return f});var TAr;var w_w;var Gz=function(){var f=_.K.apply(this,arguments)||this;f.icon=null;return f};
_.e(Gz,_.K);Gz.prototype.dismiss=function(){_.YE(this.hostElement,"yt-live-chat-error-message-dismiss")};
Gz.prototype.computeIcon=function(f){return f&&f.iconType?"yt-icons:"+f.iconType.toLowerCase():"yt-icons:close"};
_.E([_.F(),_.N("design:type",Object)],Gz.prototype,"data",void 0);_.E([_.F({computed:"computeIcon(data.icon)"}),_.N("design:type",Object)],Gz.prototype,"icon",void 0);_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],Gz);
_.G(Gz,"yt-live-chat-error-message-renderer",function(){if(w_w===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;TAr===void 0&&(TAr=document.createElement("template"));var t=TAr;v.call(H,t.content.cloneNode(!0),f.content.firstChild);w_w=f}f=w_w;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var wRq,q5M,fhv,HrO,vg4,tvD,Vvo,$T1,W_1,OrD,ggM,xs,IhL,SbM,B3,dTD,jne,sn1,ZrL,J91,lhe,UT4,eZo,L_A,xTe,BhM,zZO,F_V,r9L,K_U,DTU,ogU,ngM,poA,QnM,z0,uaV,ahU,PCU,Eg1,NhM,c9q,Xo1,A9L,brq,GHo,CCq,kHe,ThD,woe,qb1,fr1,irV,mT1,v5A;wRq=function(f){var H=_.TN("__slot-el");_.Kc(function(){for(var v=_.V(f.slotContent),t=v.next();!t.done;t=v.next())H.value.appendChild(t.value)});
return _.O("__slot-el",{el:H,skip:!0})};
q5M=function(f){return _.Vn==="yt-animated-rolling-number"?(f.isInert=!0,_.Vn="",!0):_.W1N==="yt-animated-rolling-number"?(f.isInert=!0,_.W1N="",!0):!1};
fhv=function(f,H){return _.dL(f.entities,"liveReactionsDataEntity",H)};
HrO=function(f,H){f=_.dL(f.entities,"booleanEntity",H);return!(!f||!f.value)};
vg4=function(f,H){var v=_.uy();v&&f&&_.Xl(v,_.zK(f),H)};
tvD=function(f,H){return _.dL(f.entities,"timedMarkersListSyncEntity",H)};
_.MvL=function(f){return f.watch.isWatchActive};
_.hZe=function(f){return _.nV(f)||_.pV(f)||_.SuH(f)};
_.RZM=function(f){return!_.hZe(f)};
_.Lz=function(f){return f.watch.watchScrollTop};
Vvo=function(f){return f.watch.isLiveChatCollapsed};
_.y9o=function(){_.J("web_watch_log_theater_mode")&&_.ohb("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.YbU=function(f,H,v){if(!f.includes("START_TIME_PLACEHOLDER")||!f.includes("END_TIME_PLACEHOLDER"))return f;var t=new Date(0),M=new Date(0);t.setUTCMilliseconds(H);M.setUTCMilliseconds(v);return f.replace("START_TIME_PLACEHOLDER",_.iA(t,7)).replace("END_TIME_PLACEHOLDER",_.iA(M,7))};
$T1=function(){var f={propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]};f=f===void 0?mT1:f;_.Y6.add("yt-animated-rolling-number");var H;(H=f).propNames!=null||(H.propNames=[]);var v=new Set(f.propNames),t=_.tmT();H=function(){var m=t.call(this)||this;m.props={};m.isUpdating=!1;m.hasAttached=!1;m.isInert=!1;m.updateQueued=!1;m.initialClasses=[];q5M(m);return m};
_.e(H,t);H.prototype.forwardKebabCaseProp=function(m,W){m=_.ly(m);if(v.has(m)||m==="children")this.props[m]=W};
H.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var m=_.V(this.initialClasses),W=m.next();!W.done;W=m.next())(W=W.value)&&this.classList.add(W);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
H.prototype.handleSlottedContent=function(){for(var m=new Map,W=_.V(this.children),I=W.next();!I.done;I=W.next()){I=I.value;var S=void 0,d=(S=I.getAttribute("slot"))!=null?S:"children";(S=m.get(d))?S.push(I):m.set(d,[I]);if(!I.getAttribute("key")){var Z=void 0,l=void 0;I.setAttribute("key",d+"_"+((l=(Z=S)==null?void 0:Z.length)!=null?l:0))}}m=_.V(m);for(W=m.next();!W.done;W=m.next())I=_.V(W.value),W=I.next().value,I=I.next().value,this.forwardKebabCaseProp(W,_.O(wRq,{slotContent:I}))};
H.prototype.connectedCallback=function(){var m=this;if(!q5M(this)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var W=_.V(this.attributes),I=W.next();!I.done;I=W.next())I=I.value,this.forwardKebabCaseProp(I.name,_.fAg(I));this.handleSlottedContent();f.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){m.afterFirstPatch()});
this.hasAttached=!0}};
H.prototype.attributeChangedCallback=function(m,W,I){this.isInert||this.isUpdating||this.isConnected||m!=="class"||this.initialClasses.push.apply(this.initialClasses,_.pS(I.split(" ")))};
H.prototype.disconnectedCallback=function(){_.DCe(this)};
H.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var m,W;_.T3e(this,_.O(_.e_b,Object.assign({},this.props,{idomKey:(W=(m=this.__incrementalDOMData)==null?void 0:m.key)!=null?W:"yt-animated-rolling-number"})),!0)}catch(S){var I=S instanceof Error?S:new _.e$("Wiz rendering error");I.args||(I.args=[]);I.args.push("Error in deprecated web component wrapper");I.args.push("yt-animated-rolling-number");_.oO(I);throw S;}finally{this.updateQueued=this.isUpdating=!1}}};
H.prototype.enqueueUpdate=function(){var m=this;return _.Y(function(W){if(f.synchronous)return m.update(),W.return();if(m.updateQueued)return W.return();m.updateQueued=!0;return W.return(Promise.resolve().then(function(){m.update()}))})};
H.prototype.notifyPath=function(){f.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.H7.Object.defineProperties(H,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var M=_.V(f.propNames),h=M.next(),y={};!h.done;y={prop$jscomp$107:void 0},h=M.next())y.prop$jscomp$107=h.value,Object.defineProperty(H.prototype,y.prop$jscomp$107,{set:function(m){return function(W){this.isInert||W===this.props[m.prop$jscomp$107]||(this.props[m.prop$jscomp$107]=W,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(y)});
customElements.define("yt-animated-rolling-number",H)};
W_1=function(f,H){return _.dL(f.entities,"booleanEntity",H)};
OrD=function(){return function(f){_.HK(_.lF("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:f}))}};
ggM=function(f){switch(f){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}};
xs=function(f,H,v){var t=_.GK(v);f&&H&&t&&f.getPlayerPromise().then(function(M){_.Pu3(t)&&_.DK();(new _.L_(M)).executeCommand(t,H);_.J("continue_playback_on_desktop_companion_click")||M.pauseVideo()})};
IhL=function(f){var H=_.vx(),v;if(v=_.ES("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var t;v=(t=v())==null?void 0:t.layoutId}else v=null;xs(H,v,f)};
SbM=function(f){var H=_.vx(),v;if(v=_.ES("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var t;v=(t=v())==null?void 0:t.layoutId}else v=null;xs(H,v,f)};
B3=function(f,H){var v=f<0?"-":"";f=Math.abs(f);var t=Math.floor(f/3600),M=Math.floor(f)%3600,h=Math.floor(M/60);M=Math.floor(M)%60;var y="";(H===void 0?0:H)&&(y="."+Math.round((f-Math.floor(f))*10));return t>0?v+t+":"+(h<10?"0"+h:""+h)+":"+(M<10?"0"+M:""+M)+y:v+h+":"+(M<10?"0"+M:""+M)+y};
dTD=function(f){var H=f.match(/[^0-9:\.]/g);if(H&&H.length>0)return null;f=f.split(":");if(f.length===0||f.length>3)return null;H=1;for(var v=0;f.length>0;){var t=f.pop();if(t===void 0)break;var M=Number(t);if(t===""||isNaN(M))return null;v+=M*H;H*=60}return v};
jne=function(f,H,v,t){f=Math.max(v,f);H=Math.min(H,t-v);f+H>t?(v=t,f=v-H):v=f+H;return{start:f,end:v}};
sn1=function(f,H,v,t,M,h){f<v?f=v:f+M>t&&(f=t-M);H>t&&(H=t);H=Math.min(f+h,Math.max(f+M,H));return{start:f,end:H}};
ZrL=function(f,H,v,t,M,h){H>t?H=t:H-M<v&&(H=v+M);f<v&&(f=v);f=Math.min(H-M,Math.max(H-h,f));return{start:f,end:H}};
J91=function(f){return _.J("web_transcript_cue_id_killswitch")?String(f):"ytd-transcript-renderer_"+f};
lhe=function(f){return _.J("web_transcript_cue_id_killswitch")?!0:f.startsWith("ytd-transcript-renderer")};
UT4=function(f){var H=_.vx(),v;if(v=_.ES("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var t;v=(t=v())==null?void 0:t.layoutId}else v=null;xs(H,v,f)};
eZo=function(f){f.style.height="auto";f.style.height=Math.min(f.scrollHeight||20,80)+"px"};
L_A=function(f,H,v){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:H,hasGradientBackground:v}}],insertByPositionInSection:{sectionTargetId:f,position:"INSERTION_POSITION_LAST"}}}]}}}};
xTe=function(f){var H=_.vx(),v;v=(v=_.ES("yt.www.ads.eventcache.getLastCompanionData"))?(v=v())&&v.layoutId:null;xs(H,v,f)};
BhM=function(f){var H=_.vx(),v;v=(v=_.ES("yt.www.ads.eventcache.getLastCompanionData"))?(v=v())&&v.layoutId:null;xs(H,v,f)};
zZO=function(f,H){H=H===void 0?!1:H;if(f.simpleText)f=[{text:f.simpleText}];else{var v;f=((v=f.runs)!=null?v:[]).map(function(t){return Object.assign({},t)})}if(H)for(H=_.V(f),v=H.next();!v.done;v=H.next())v.value.bold=!0;
return f};
F_V=function(f){var H=f.startEndTimeTemplate,v=f.startTimeUtcMillis;f=f.endTimeUtcMillis;if(H&&v&&f)return _.qO(_.YbU(_.fG(H),Number(v),Number(f)))};
r9L=function(f,H){var v,t,M=f==null?void 0:(v=f.viewCount)==null?void 0:(t=v.videoViewCountRenderer)==null?void 0:t.shortViewCount;if(!H&&M)return M;var h,y;return f==null?void 0:(h=f.viewCount)==null?void 0:(y=h.videoViewCountRenderer)==null?void 0:y.viewCount};
K_U=function(f,H){var v=f==null?void 0:f.relativeDateText;return!H&&v?[v,!0]:[f==null?void 0:f.dateText,!1]};
DTU=function(f,H,v,t,M){t=t===void 0?!0:t;M=M===void 0?"":M;var h=r9L(f,H),y=_.V(K_U(f,H)),m=y.next().value;y=y.next().value;H=H?f==null?void 0:f.sponsorsOnlyFirstTimeLongText:f==null?void 0:f.sponsorsOnlyFirstTimeShortText;var W=[];v&&h&&W.push(h);!v&&y||!m||W.push(m);f=[].concat(_.pS(W),[H,f==null?void 0:f.stationName,f==null?void 0:f.rating,f?F_V(f):void 0,f==null?void 0:f.upNextProgramText,f==null?void 0:f.superTitleLink]).filter(function(I){return!!I});
v={runs:[]};for(h=0;h<f.length;h++)v.runs.push.apply(v.runs,_.pS(zZO(f[h],t))),h<f.length-1&&v.runs.push({text:" "+M+" ",bold:t});return v};
ogU=function(f){if(f)return{runs:[{text:f,bold:!0}]}};
ngM=function(f){return f.filter(function(H){return!_.U(H,_.z3)})};
poA=function(f){var H,v,t,M;if(f=f==null?void 0:(H=f.contents)==null?void 0:(v=H.twoColumnWatchNextResults)==null?void 0:(t=v.results)==null?void 0:(M=t.results)==null?void 0:M.contents){var h,y;return(y=(h=f.find(function(m){return!!m.videoPrimaryInfoRenderer}))==null?void 0:h.videoPrimaryInfoRenderer)==null?void 0:y.updatedMetadataEndpoint}};
QnM=function(f,H){var v;return(v=f.sourceConfigs)==null?void 0:v.find(function(t){return t.videoId===H})};
z0=function(f){return f==="End of video"||f==="End of playlist"};
uaV=function(f){var H,v,t,M;return(H=f.getWatchNextResponse())==null?void 0:(v=H.contents)==null?void 0:(t=v.twoColumnWatchNextResults)==null?void 0:(M=t.playlist)==null?void 0:M.playlist};
ahU=function(f){var H,v,t,M,h,y;return(H=uaV(f))==null?void 0:(v=H.playlistButtons)==null?void 0:(t=v.menuRenderer)==null?void 0:(M=t.topLevelButtons)==null?void 0:(h=M[0])==null?void 0:(y=h.playlistLoopButtonRenderer)==null?void 0:y.playlistLoopStateEntityKey};
PCU=function(f){var H=_.t8().resolve(_.u3),v;return(H=(v=_.U(H.getAutoplayEndpoint(),_.wI))==null?void 0:v.playlistId)&&H===f};
Eg1=function(f,H,v,t,M){function h(){_.nN.cancelJob(Fu);var y=GHo(H,v/f.getPlaybackRate()),m=y.hours,W=y.minutes;y=(y.seconds*1E3||6E4)/f.getPlaybackRate();f.setVideoTimeLeft(CCq(m,W));t&&f.getPlayerState()!==0&&f.setSleepTimerTimeLeft(CCq(m,W,!0));(m>0||W>0)&&!M&&(Fu=_.LT(_.nN,h,y))}
_.nN.cancelJob(Fu);Fu=_.LT(_.nN,h)};
NhM=function(f,H,v){function t(){_.nN.cancelJob(r7);var M=GHo(H,v),h=M.hours;M=M.minutes;var y=6E4/f.getPlaybackRate();if(h>0||M>0)f.setSleepTimerTimeLeft(CCq(h,M,!0)),r7=_.LT(_.nN,t,y)}
_.nN.cancelJob(r7);r7=_.LT(_.nN,t)};
c9q=function(f,H){var v=f.getVolume()/(H/500),t=function(M){_.nN.cancelJob(Kz);var h=Math.floor(M-v);f.setVolume(h,!1);h>0&&(Kz=_.LT(_.nN,function(){t(h)},500))};
_.nN.cancelJob(Kz);Kz=_.LT(_.nN,function(){t(f.getVolume())})};
Xo1=function(f,H){_.nN.cancelJob(Kz);H&&f.syncVolume()};
A9L=function(){var f={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.ZC("SLEEP_TIMER_DISRUPTED")}}}}};_.t8().resolve(_.MJ).resolveCommand(f)};
brq=function(f){return(f.getDuration()-f.getProgressState().current)*1E3};
GHo=function(f,H){f=f+H-(0,_.ta)();if(f<=0)return{hours:0,minutes:0,seconds:0};var v=new irV(0,0,0,0,0,0,f);f=v.getHours();H=v.getMinutes();v=v.getSeconds();v!==0&&H++;H!==0&&H%60===0&&(f++,H=0);return{hours:f,minutes:H,seconds:v}};
CCq=function(f,H,v){return f>0&&H>0?v?_.ZC("TIME_LEFT_HOURS_MINUTES",{hours:f.toString(),minutes:H.toString()}):_.ZC("TIME_HOURS_MINUTES",{hours:f.toString(),minutes:H.toString()}):f>0?v?_.JX("TIME_LEFT_HOURS",f):_.JX("TIME_HOURS",f):v?_.ZC("TIME_LEFT_MINUTES",{minutes:H.toString()}):_.ZC("TIME_MINUTES",{minutes:H.toString()})};
kHe=function(f,H){if(f.timelyActions)return f.timelyActions.find(function(v){var t;return((t=_.U(v,DQ))==null?void 0:t.cueRangeId)===H})};
ThD=function(f){var H=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.tk(f);f.keyMap_.forEach(function(v,t){_.cR(H,t)||this.remove(t)},f)};
wRq.componentType=_.BM;woe=function(f,H){f.reloadContinuationItemsCommandMatcher=H};
_.oJ=function(f,H){f.insertBefore(H,f.childNodes[0]||null)};
qb1=function(f){if(f>=48&&f<=57||f>=96&&f<=106||f>=65&&f<=90||_.Rp&&f==0)return!0;switch(f){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 _.hZ;default:return!1}};
fr1=function(f){if(f.altKey&&!f.ctrlKey||f.metaKey||f.keyCode>=112&&f.keyCode<=123)return!1;if(qb1(f.keyCode))return!0;switch(f.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!_.hZ;default:return f.keyCode<166||f.keyCode>183}};
irV=function(f,H,v,t,M,h,y){this.date=typeof f==="number"?new Date(f,H||0,v||1,t||0,M||0,h||0,y||0):new Date(f&&f.getTime?f.getTime():_.qN())};
_.f8(irV,_.ZN);_.R=irV.prototype;_.R.getHours=function(){return this.date.getHours()};
_.R.getMinutes=function(){return this.date.getMinutes()};
_.R.getSeconds=function(){return this.date.getSeconds()};
_.R.getMilliseconds=function(){return this.date.getMilliseconds()};
_.R.getUTCDay=function(){return this.date.getUTCDay()};
_.R.getUTCHours=function(){return this.date.getUTCHours()};
_.R.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.R.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.R.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.R.setHours=function(f){this.date.setHours(f)};
_.R.setMinutes=function(f){this.date.setMinutes(f)};
_.R.setSeconds=function(f){this.date.setSeconds(f)};
_.R.setMilliseconds=function(f){this.date.setMilliseconds(f)};
_.R.setUTCHours=function(f){this.date.setUTCHours(f)};
_.R.setUTCMinutes=function(f){this.date.setUTCMinutes(f)};
_.R.setUTCSeconds=function(f){this.date.setUTCSeconds(f)};
_.R.setUTCMilliseconds=function(f){this.date.setUTCMilliseconds(f)};
_.R.add=function(f){_.ZN.prototype.add.call(this,f);f.hours&&this.setUTCHours(this.date.getUTCHours()+f.hours);f.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+f.minutes);f.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+f.seconds)};
_.R.JSC$11310_toIsoString=function(f){var H=_.ZN.prototype.JSC$11310_toIsoString.call(this,f);return f?H+"T"+_.wP(this.getHours(),2)+":"+_.wP(this.getMinutes(),2)+":"+_.wP(this.getSeconds(),2):H+"T"+_.wP(this.getHours(),2)+_.wP(this.getMinutes(),2)+_.wP(this.getSeconds(),2)};
_.R.equals=function(f){return this.getTime()==f.getTime()};
_.R.toString=function(){return this.JSC$11310_toIsoString()};
_.R.clone=function(){var f=new irV(this.date);f.firstDayOfWeek_=this.firstDayOfWeek_;f.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return f};
_.H0D=function(f){return _.yq({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:f}})};
mT1={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};v5A=new _.Ak("imageTileRenderer");var tp1=new _.Ak("adGridCardCollectionViewModel");var Mp1=new _.Ak("carouselTitleViewModel");var hw4=new _.Ak("ctaCarouselItemViewModel");var RwA=new _.Ak("textFieldViewModel");_.Vp1=new _.Ak("engagementPanelHeaderShowNavigationButtonCommand");var yWq=new _.Ak("hideEngagementPanelScrimAction");var Yxe=new _.Ak("setActivePanelItemAction");var mxO=new _.Ak("showEngagementPanelScrimAction");var $xM=new _.Ak("updateEngagementPanelAction");var WWe=new _.Ak("updateSearchInVideoResultsAction");var O0D=new _.Ak("transcriptCueGroupRenderer");var g5M=new _.Ak("transcriptCueRenderer");var Ir1=new _.Ak("transcriptFooterRenderer");var SxA=new _.Ak("engagementPanelAdSubtitleRenderer");var dxA=new _.Ak("videoDescriptionFantasySectionViewModel");var jFq=new _.Ak("deleteClipEngagementPanelCommand");var sFq=new _.Ak("loopCommand");var Z04=new _.Ak("changeCreatorEndscreenVisibilityCommand");var JWA=new _.Ak("liveChatCallForQuestionsRenderer");var lrU=new _.Ak("updateTimedMarkersSyncObserverCommand");var DQ=new _.Ak("timelyActionViewModel");var UxO=new _.Ak("timelyActionsOverlayViewModel");var ewo=new _.Ak("repeatChapterCommand");var LWU=new _.Ak("watchPlayerOverflowMenuCommand");var xxO=new _.Ak("compositeVideoOverlayRenderer");var Bie=new _.Ak("sortFilterSubMenuRenderer");var zwq=new _.Ak("switchListItemViewModel");var FWv=new _.Ak("inputComposerViewModel");var rWL=new _.Ak("transcriptEditSegmentCommand");var KWV=new _.Ak("transcriptUpdateSegmentTextCommand");var DxL=new _.Ak("transcriptSearchBoxRenderer");var o54=new _.Ak("transcriptSegmentListRenderer");var n5O=new _.Ak("transcriptSegmentRenderer");_.pAo=new _.Ak("updateDateTextAction");var QF4=new _.Ak("updateTitleAction");var ubD=new _.Ak("updateViewershipAction");var arD=new _.Ak("carouselLockupRenderer");var nz=new _.Ak("expandableVideoDescriptionBodyRenderer");var PtL=new _.Ak("videoDescriptionHeaderRenderer");var GhA=new _.Ak("videoDescriptionYouchatSectionViewModel");_.pz=_.VQ("kevlar_watch_page_horizontal_margin",24);_.CtO=_.VQ("kevlar_watch_page_columns_top_padding",24);_.E5V=426+_.pz*2;_.QN=_.VQ("kevlar_watch_two_column_width_threshold",1E3);_.NiL=_.pz*2;_.cWO=_.VQ("kevlar_watch_secondary_width",402);_.XAq=_.VQ("kevlar_watch_max_player_width",1280);_.AWM=_.VQ("kevlar_watch_flexy_metadata_height",136);_.b0D=_.NiL+310+_.pz;_.i01=_.NiL+360+_.pz;var khL={PAUSE_CHAT:18};var TiU;var wAA;var ui=function(){return _.K.apply(this,arguments)||this};
_.e(ui,_.K);ui.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
ui.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var f=_.U(this.data.button,_.af);f&&(f.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.H7.Object.defineProperties(ui,{template:{configurable:!0,enumerable:!0,get:function(){if(wAA===void 0){var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;TiU===void 0&&(TiU=document.createElement("template"));var t=TiU;v.call(H,t.content.cloneNode(!0),f.content.firstChild);wAA=f}f=wAA;return f}}});
_.E([_.B(_.PH),_.N("design:type",Object)],ui.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],ui.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F({selectorArgs:["data.enabledEntityKey"],selector:HrO,observer:"onEnabledChange"}),_.N("design:type",Boolean)],ui.prototype,"enabled",void 0);_.E([_.F(),_.N("design:type",Object)],ui.prototype,"data",void 0);_.E([_.GW({is:"yt-disableable-button-view-model",noInjection:!0})],ui);var qxM;var fMM;var HoL=["transVert01","transVert02","transVert03"],vUM="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),aJ=function(){var f=_.K.apply(this,arguments)||this;f.emojiManager=_.N8;f.isDarkTheme=document.documentElement.hasAttribute("dark");f.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};f.reactionBuckets=[];f.noEmojiIdentifier="NO_EMOJI";return f};
_.e(aJ,_.K);_.R=aJ.prototype;_.R.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.R.desktopFountainEmojiSizePxChanged=function(){_.Sr(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.R.createUserReactionAnimation=function(f){this.createEmojiAnimation(f,!0)};
_.R.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var f;((f=this.data)==null?0:f.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.lF("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.pS(this.emojiContainer.children)).forEach(function(H){H.remove()})};
_.R.detached=function(){this.cleanupFountain()};
_.R.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var f;this.reactionBuckets=_.QA.unsafeClone((f=this.emojiFountainData)==null?void 0:f.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.R.processEmojiBucket=function(f){var H=this;if(this.reactionBuckets&&!(f>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var v=this.reactionBuckets[f];this.generateEmojiAnimations(v);if(f<this.reactionBuckets.length-1){var t;if(v==null?0:(t=v.duration)==null?0:t.seconds)this.emojiBucketTimerId=setTimeout(function(){H.processEmojiBucket(f+1)},Number(v.duration.seconds)*1E3)}}};
_.R.generateEmojiAnimations=function(f){var H=this,v=this.getRandomEmojiIdFromBucketWithOverride(f);if(v&&v!==this.noEmojiIdentifier){var t=0;f.targetEps?(t=this.linearInterpolateBounded(1,20,100,12,f.emojiSizeIndex||0),this.createEmojiAnimation(v,!1,f.emojiAnimationMs,t),t=this.getEmojiDelayMsFromTargetEps(f.targetEps)):(this.createEmojiAnimation(v),t=this.getEmojiDelayMsFromDistribution(f.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){H.generateEmojiAnimations(f)},t)}};
_.R.getRandomEmojiIdFromBucketWithOverride=function(f){if(!(f&&f.reactionsData&&f.reactionsData.length&&f.totalReactions))return this.noEmojiIdentifier;for(var H=f.totalReactions,v=1,t=_.V(f.reactionsData),M=t.next();!M.done;M=t.next())M=M.value,(M.reactionWeightOverride||M.reactionWeightOverride===0)&&M.reactionCount&&(H-=M.reactionCount,v-=M.reactionWeightOverride);t=!0;v<0&&(t=!1,H=f.totalReactions,v=1);if(t&&v>0&&H===0)if(v===1){M=0;for(var h=_.V(f.reactionsData),y=h.next();!y.done;y=h.next())y=
y.value,y.reactionCount&&y.reactionCount>0&&M++;M=1/M;h=_.V(f.reactionsData);for(y=h.next();!y.done;y=h.next())y.value.reactionWeightOverride=M}else for(M=1/(1-v),h=_.V(f.reactionsData),y=h.next();!y.done;y=h.next())y=y.value,y.reactionWeightOverride&&(y.reactionWeightOverride*=M);M=Math.random();h=0;y=_.V(f.reactionsData);for(var m=y.next();!m.done;m=y.next())if(m=m.value,m.reactionCount&&(h=(m.reactionWeightOverride||m.reactionWeightOverride===0)&&t?h+m.reactionWeightOverride:h+v*m.reactionCount/
H,h>M&&(m.reactionCount--,f.totalReactions--,m=this.reactionItemToEmojiString(m),m!==this.noEmojiIdentifier)))return m;return this.noEmojiIdentifier};
_.R.reactionItemToEmojiString=function(f){if(f.unicodeEmojiId)return f.unicodeEmojiId;if(f.emoteId)return f.emoteId;if(f.videoReactionType)switch(f.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.R.createEmojiAnimation=function(f,H,v,t){H=H===void 0?!1:H;this.lastEmojiRequestedForTesting=f;var M=f.startsWith("yt-icons:"),h=_.CW(this.emojiManager,f);if(h||M){var y=document.createElement("emoji");y.classList.add("yt-emoji-fountain-view-model");y.classList.add(HoL[Math.floor(Math.random()*HoL.length)]);var m=document.createElement("div");m.classList.add("yt-emoji-fountain-view-model");m.classList.add("horizontal-container");m.classList.add(vUM[Math.floor(Math.random()*vUM.length)]);H?(v=document.createElement("div"),
v.classList.add("user-reaction-bubble"),v.classList.add("yt-emoji-fountain-view-model"),m.appendChild(v)):(v&&(y.style.animationDuration=v+"ms",m.style.animationDuration=v+"ms"),t&&(y.style.width=t+"px",y.style.height=t+"px"));M?(M=document.createElement("yt-icon"),M.polymerController.icon=f,t&&(M.style.width=t+"px",M.style.height=t+"px"),f=M):f=this.emojiManager.createEmoji(h,!1);f.classList.add("yt-emoji-fountain-view-model");m.appendChild(f);y.appendChild(m);this.emojiContainer.appendChild(y);
y.addEventListener("animationend",function(){y.remove()});
var W,I;if((W=this.data)==null?0:(I=W.loggingDirectives)==null?0:I.trackingParams)H=H?_.$$(183501):_.$$(183500),vg4(this.data.loggingDirectives.trackingParams,H),_.JbH(H);setTimeout(function(){y&&y.remove()},2E3)}};
_.R.getEmojiDelayMsFromDistribution=function(f){return Math.random()*(f||1)*1E3};
_.R.getEmojiDelayMsFromTargetEps=function(f){return Math.random()*2*(1/f)*1E3};
_.R.linearInterpolateBounded=function(f,H,v,t,M){M=Math.min(Math.max(M,f),v);return(H*(v-M)+t*(M-f))/(v-f)};
aJ.prototype.onEmojiFountainDataEntityUpdate=aJ.prototype.onEmojiFountainDataEntityUpdate;aJ.prototype.desktopFountainEmojiSizePxChanged=aJ.prototype.desktopFountainEmojiSizePxChanged;aJ.prototype.isActiveChanged=aJ.prototype.isActiveChanged;_.E([_.F(),_.N("design:type",_.G$)],aJ.prototype,"emojiManager",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],aJ.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.PH),_.N("design:type",Object)],aJ.prototype,"ytLiveChatReduxBehavior",void 0);
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],aJ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],aJ.prototype,"data",void 0);_.E([_.F({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(f,H){return _.dL(f.entities,"emojiFountainDataEntity",H)}}),
_.N("design:type",Object)],aJ.prototype,"emojiFountainData",void 0);_.E([_.F(),_.N("design:type",Boolean)],aJ.prototype,"isActive",void 0);_.E([_.Zw("isActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aJ.prototype,"isActiveChanged",null);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],aJ.prototype,"isDarkTheme",void 0);_.E([_.F(),_.N("design:type",String)],aJ.prototype,"lastEmojiRequestedForTesting",void 0);
_.E([_.F({value:function(){return _.VQ("desktop_fountain_emoji_size_px",20)}}),
_.N("design:type",Number)],aJ.prototype,"desktopFountainEmojiSizePx",void 0);_.E([_.Zw("desktopFountainEmojiSizePx"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aJ.prototype,"desktopFountainEmojiSizePxChanged",null);_.E([_.lJ("#emoji-container"),_.N("design:type",HTMLElement)],aJ.prototype,"emojiContainer",void 0);
_.E([_.Zw("emojiFountainData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aJ.prototype,"onEmojiFountainDataEntityUpdate",null);_.E([_.GW({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],aJ);
_.G(aJ,"yt-emoji-fountain-view-model",function(){if(fMM===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;qxM===void 0&&(qxM=document.createElement("template"));var t=qxM;v.call(H,t.content.cloneNode(!0),f.content.firstChild);fMM=f}f=fMM;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var tVq;var MVM;var P3=function(){return _.K.apply(this,arguments)||this};
_.e(P3,_.K);P3.prototype.onChoiceChanged=function(){this.data&&_.Sr(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
P3.prototype.onChoiceChanged=P3.prototype.onChoiceChanged;_.E([_.F(),_.N("design:type",Object)],P3.prototype,"data",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],P3.prototype,"onChoiceChanged",null);_.E([_.u({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],P3);
_.G(P3,"yt-live-chat-banner-poll-choice",function(){if(MVM===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;tVq===void 0&&(tVq=document.createElement("template"));var t=tVq;v.call(H,t.content.cloneNode(!0),f.content.firstChild);MVM=f}f=MVM;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var hqM;var RqU;var G0=function(){var f=_.K.apply(this,arguments)||this;f.modern=_.J("web_button_rework_with_live");f.small=!1;return f};
_.e(G0,_.K);G0.prototype.computeIsSmall=function(){var f;return((f=this.buttonOverrides)==null?void 0:f.size)==="S"};
G0.prototype.computeId=function(){return this.data&&this.data.targetId};
_.E([_.B(_.GF.YtLiveChatTooltipTargetingBehavior),_.N("design:type",Object)],G0.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.F({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.N("design:type",String)],G0.prototype,"id",void 0);_.E([_.F(),_.N("design:type",Object)],G0.prototype,"buttonOverrides",void 0);_.E([_.F(),_.N("design:type",Object)],G0.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],G0.prototype,"modern",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.N("design:type",Object)],G0.prototype,"small",void 0);_.E([_.u({disableElementRegistration:!0,is:"yt-live-chat-button"})],G0);
_.G(G0,"yt-live-chat-button",function(){if(RqU===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;hqM===void 0&&(hqM=document.createElement("template"));var t=hqM;v.call(H,t.content.cloneNode(!0),f.content.firstChild);RqU=f}f=RqU;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var VVM;var yDo;var Cz=function(){var f=_.K.apply(this,arguments)||this;f.inCollapsedBanner=!1;f.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};f.questionButtonOverrides={style:"mono",type:"filled"};return f};
_.e(Cz,_.K);_.R=Cz.prototype;_.R.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]]"}}}}}};
_.R.onContextMenuButtonClick=function(f){this.ytLiveChatItemBehavior.showContextMenu(f)};
_.R.onYtRendererstamperFinished=function(){this.menuButton=_.mF(this.hostElement).querySelector("#menu-button")};
_.R.dataChanged=function(){var f,H;if((H=_.U((f=this.data)==null?void 0:f.overflowMenuButton,_.nv))==null?0:H.command)this.data.contextMenuEndpoint=_.U(this.data.overflowMenuButton,_.nv).command};
_.R.onButtonClick=function(){var f,H=_.U((f=this.data)==null?void 0:f.askQuestionButton,_.nv);if(H){if(H.trackingParams&&(f=_.zK(H.trackingParams))){var v=_.uy();v&&_.Ti(v,f)}_.YE(this.hostElement,"innertube-command",H.command)}};
Cz.prototype.onYtRendererstamperFinished=Cz.prototype.onYtRendererstamperFinished;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Cz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.PH),_.N("design:type",Object)],Cz.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.B(_.cp.YtLiveChatItemBehavior),_.N("design:type",_.Xo)],Cz.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.F({observer:"dataChanged"}),_.N("design:type",Object)],Cz.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Cz.prototype,"inCollapsedBanner",void 0);_.E([_.F(),_.N("design:type",Object)],Cz.prototype,"buttonOverrides",void 0);_.E([_.F(),_.N("design:type",Object)],Cz.prototype,"questionButtonOverrides",void 0);_.E([_.sE("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Cz.prototype,"onYtRendererstamperFinished",null);
_.E([_.u({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],Cz);
_.G(Cz,"yt-live-chat-call-for-questions-renderer",function(){if(yDo===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;VVM===void 0&&(VVM=document.createElement("template"));var t=VVM;v.call(H,t.content.cloneNode(!0),f.content.firstChild);yDo=f}f=yDo;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var Y41={};Y41.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 f=this;window.requestAnimationFrame(function(){f.restoreFocusNode_||(f.restoreFocusNode_=document.activeElement);var H=_.QcH(f.hostElement);H.length&&H[H.length-1].focus()})},
isAttachedChanged_:function(f,H){f?this.focusChild_():H&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(f){this.hidden||_.f2(f).indexOf(this.hostElement)!==-1||(f.stopPropagation(),this.focusChild_())}};var mAL;var $Ao;var EK=function(){return _.K.apply(this,arguments)||this};
_.e(EK,_.K);EK.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
EK.prototype.onClick=function(f){f.target!==this.confirmButton&&f.target!==this.cancelButton&&(this.hidden=!0)};
_.E([_.lJ("#confirm_button"),_.N("design:type",Object)],EK.prototype,"confirmButton",void 0);_.E([_.lJ("#cancel_button"),_.N("design:type",Object)],EK.prototype,"cancelButton",void 0);_.E([_.F(),_.N("design:type",WLe)],EK.prototype,"data",void 0);_.E([_.F({value:!0,reflectToAttribute:!0}),_.N("design:type",Boolean)],EK.prototype,"hidden",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],EK.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.B(Y41.YtLiveChatDialogBehavior),_.N("design:type",Object)],EK.prototype,"ytLiveChatDialogBehavior",void 0);_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],EK);
var WLe=_.G(EK,"yt-live-chat-dialog-renderer",function(){if($Ao===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;mAL===void 0&&(mAL=document.createElement("template"));var t=mAL;v.call(H,t.content.cloneNode(!0),f.content.firstChild);$Ao=f}f=$Ao;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var Oo1;var gUe,IMU=function(){if(gUe!==void 0)return gUe;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;Oo1===void 0&&(Oo1=document.createElement("template"));var t=Oo1;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return gUe=f};var S41;var dAM;var Nq=function(){var f=_.K.apply(this,arguments)||this;f.tooltip=null;f.data=null;f.id="";f.active=!1;f.icon="";f.disabled=!1;f.showTooltip=!1;f.useToggledActiveState=!0;f.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return f};
_.e(Nq,_.K);_.R=Nq.prototype;
_.R.dataChanged=function(){var f;((f=this.data)==null?0:f.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,_.gX)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var H;if((H=this.data)==null?0:H.disabled)this.disabled=!0};
_.R.computeId=function(f){return f};
_.R.computeIcon=function(f,H){if(!f)return"";if(this.useToggledActiveState)return"yt-icons:"+f.toLowerCase();var v,t;return H&&((v=this.data)==null?0:(t=v.toggledIcon)==null?0:t.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+f.toLowerCase()};
_.R.logPDGEntryPoint=function(){_.Wn5(_.jc("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")};
_.R.immediatelyShowTooltip=function(){var f=_.mF(this.hostElement).querySelector("#tooltip");f.animationDelay=0;f.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};f.show()};
_.R.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.R.onClick=function(f){var H;((H=this.data)==null?0:H.disabled)?this.showTooltip&&this.immediatelyShowTooltip():(this.active=!this.active,this.tooltip&&(this.tooltip.hide(),this.maybeUpdateTooltipText()),this.active&&this.data&&(this.ytRendererBehavior.logExplicitClick(this.data),this.id==="product-picker"&&(this.logPDGEntryPoint(),f.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.YE(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.R.computeShowTooltip=function(f,H){return!!(f&&f.tooltip&&H)};
_.R.maybeUpdateTooltipText=function(){var f=this,H;if((H=this.data)==null?0:H.tooltip){var v=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.gX)(f.tooltip).textContent=v},250)}};
_.R.handleLiveChatActions=function(f){var H=this;f.length&&(this.id!=="creator"&&this.id!=="product-picker"||f.forEach(function(v){(v=H.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",v))&&v.durationSec===v.fullDurationSec&&H.startBubble(H.colorFromDecimal(v.startBackgroundColor))}))};
_.R.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.R.startBubble=function(f){_.Sr(this.hostElement,{"--yt-live-chat-monetization-button-glow":f});this.hostElement.setAttribute("bubble","")};
_.R.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.R.colorFromDecimal=function(f){typeof f==="string"&&(f=Number(f));return"rgba("+[f>>16&255,f>>8&255,f&255,(f>>24&255)/255].join()+")"};
Nq.prototype.onAnimationEnd=Nq.prototype.onAnimationEnd;Nq.prototype.disabledChanged=Nq.prototype.disabledChanged;Nq.prototype.dataChanged=Nq.prototype.dataChanged;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Nq.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Nq.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.GF.YtLiveChatTooltipTargetingBehavior),_.N("design:type",Object)],Nq.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Nq.prototype,"data",void 0);_.E([_.F({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.N("design:type",Object)],Nq.prototype,"id",void 0);_.E([_.F({notify:!0,reflectToAttribute:!0}),_.N("design:type",Object)],Nq.prototype,"active",void 0);
_.E([_.F({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.N("design:type",Object)],Nq.prototype,"icon",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Nq.prototype,"disabled",void 0);_.E([_.F({computed:"computeShowTooltip(data, disabled)"}),_.N("design:type",Object)],Nq.prototype,"showTooltip",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Nq.prototype,"useToggledActiveState",void 0);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Nq.prototype,"dataChanged",null);_.E([_.Zw("disabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Nq.prototype,"disabledChanged",null);_.E([_.sE("animationend"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Nq.prototype,"onAnimationEnd",null);
_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],Nq);
_.G(Nq,"yt-live-chat-icon-toggle-button-renderer",function(){if(dAM===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;S41===void 0&&(S41=document.createElement("template"));var t=S41;v.call(H,t.content.cloneNode(!0),f.content.firstChild);dAM=f}f=dAM;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var j1D;var s1e;var c3=function(){return _.K.apply(this,arguments)||this};
_.e(c3,_.K);c3.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.E([_.F(),_.N("design:type",Object)],c3.prototype,"data",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],c3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.u({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],c3);
_.G(c3,"yt-live-chat-message-input-prompt-header-renderer",function(){if(s1e===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;j1D===void 0&&(j1D=document.createElement("template"));var t=j1D;v.call(H,t.content.cloneNode(!0),f.content.firstChild);s1e=f}f=s1e;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var ZoM;var JDV;var lMV;var UAM;var eqM;var LLU;var xAD=function(){return _.K.apply(this,arguments)||this};
_.e(xAD,_.K);_.E([_.F(),_.N("design:type",Object)],xAD.prototype,"data",void 0);_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],xAD);
_.G(xAD,"yt-live-chat-message-subtext-renderer",function(){if(LLU===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;eqM===void 0&&(eqM=document.createElement("template"));var t=eqM;v.call(H,t.content.cloneNode(!0),f.content.firstChild);LLU=f}f=LLU;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var Xu=function(){var f=_.K.apply(this,arguments)||this;f.subtextOnBottom=!1;f.buttonOverrides={style:"mono",type:"tonal"};return f};
_.e(Xu,_.K);Xu.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"}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Xu.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Xu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Xu.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Xu.prototype,"subtextOnBottom",void 0);_.E([_.F(),_.N("design:type",Object)],Xu.prototype,"buttonOverrides",void 0);
_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],Xu);
_.G(Xu,"yt-live-chat-message-renderer",function(){if(UAM===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;lMV===void 0&&(lMV=document.createElement("template"));var t=lMV;v.call(H,t.content.cloneNode(!0),f.content.firstChild);UAM=f}f=UAM;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var BeL;var zq4;var AI=function(){var f=_.K.apply(this,arguments)||this;f.isRemovable=!1;f.hasPrefilledText=!1;f.isInputDirty=!1;f.overCharacterLimit=!1;f.underCharacterLimit=!1;f.showErrorMessage=!1;return f};
_.e(AI,_.K);_.R=AI.prototype;_.R.computeId=function(){return this.data.id};
_.R.computeInputData=function(){return this.data.inputData};
_.R.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.R.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.R.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.R.getLiveChatRichMessageInput=function(){return _.mF(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.R.clearInput=function(){_.mF(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.R.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.R.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.R.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.R.handleTextInputCharCountChanged=function(f){f=f.detail&&f.detail.characterCount;f!==void 0&&(this.characterCount=f,f!==0&&(this.isInputDirty=!0))};
_.R.onInputFocusOut=function(){this.isInputDirty=!0};
_.R.onClickCloseButton=function(){_.YE(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
AI.prototype.handleTextInputCharCountChanged=AI.prototype.handleTextInputCharCountChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],AI.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],AI.prototype,"data",void 0);_.E([_.F({computed:"computeId(data.id)"}),_.N("design:type",String)],AI.prototype,"id",void 0);_.E([_.F({computed:"computeInputData(data.inputData)"}),_.N("design:type",Object)],AI.prototype,"inputData",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.N("design:type",Object)],AI.prototype,"isRemovable",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.N("design:type",Object)],AI.prototype,"hasPrefilledText",void 0);_.E([_.F({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.N("design:type",Number)],AI.prototype,"charactersRemaining",void 0);
_.E([_.F(),_.N("design:type",Number)],AI.prototype,"characterCount",void 0);_.E([_.F(),_.N("design:type",Object)],AI.prototype,"isInputDirty",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.N("design:type",Object)],AI.prototype,"overCharacterLimit",void 0);_.E([_.F({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.N("design:type",Object)],AI.prototype,"underCharacterLimit",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.N("design:type",Object)],AI.prototype,"showErrorMessage",void 0);_.E([_.sE("yt-live-chat-text-input-field-renderer-character-count-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],AI.prototype,"handleTextInputCharCountChanged",null);
_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],AI);
_.G(AI,"yt-live-chat-poll-editor-input",function(){if(zq4===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;BeL===void 0&&(BeL=document.createElement("template"));var t=BeL;v.call(H,t.content.cloneNode(!0),f.content.firstChild);zq4=f}f=zq4;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var FLV;var rDv;var KLv={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},bi=function(){var f=_.K.apply(this,arguments)||this;f.modern=_.J("web_button_rework_with_live");f.closeButtonOverrides={iconPosition:"icon-only"};f.startButtonOverrides={style:"mono",type:"filled"};f.addOptionButtonOverrides={style:"mono",type:"text"};return f};
_.e(bi,_.K);_.R=bi.prototype;
_.R.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"}}}}};
_.R.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var f;_.U((f=this.data)==null?void 0:f.startButton,_.nv)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.R.computeId=function(){return this.data&&this.data.id||""};
_.R.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.R.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.R.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.R.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.R.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var f=0;f<this.pollEditorInfoWithDefaults.minPollOptions;f++)this.addPollOptionData()};
_.R.getIsValidPoll=function(){var f=this;if(!this.pollEditorInfoWithDefaults)return!1;var H=this.pollEditorInfoWithDefaults,v=H.minPollOptionChars,t=H.maxPollOptionChars,M=H.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>H.maxPollQuestionChars)return!1;H=_.mF(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(H).every(function(h,y){h=h.characterCount;!h&&M[y]&&(h=f.ytRendererBehavior.getSimpleString(M[y]).length);return h!==void 0&&h>=v&&h<=t})};
_.R.isValidPollChanged=function(){var f;_.U((f=this.data)==null?void 0:f.startButton,_.nv)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.R.addPollOptionData=function(){var f=this.pollEditorInfoWithDefaults,H=f.maxPollOptionChars,v=f.optionPlaceholderText,t=f.customOptionPlaceholderText,M=f.pollOptionData;this.currentNumPollOptions>=f.maxPollOptions||(f={liveChatPollOptionInput:{inputData:{placeholder:t[this.currentNumPollOptions]||v,maxCharacterLimit:H},maxCharacterLimit:H,minCharacterLimit:f.minPollOptionChars,hasPrefilledText:!!t[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=f.minPollOptions}},M.charCountErrorText&&
(f.liveChatPollOptionInput.charCountErrorText=M.charCountErrorText),M.charsRemainingAltLabel&&(f.liveChatPollOptionInput.charsRemainingAltLabel=M.charsRemainingAltLabel),M.removeOptionAltText&&(f.liveChatPollOptionInput.removeOptionAltText=M.removeOptionAltText),this.push("pollOptionsData",f),M=Array.from(_.mF(_.mF(this.hostElement).querySelector("#poll-options")).children),M.forEach(function(h,y){h.polymerController.set("data.id",y)}),_.mF(M[M.length-1]).querySelector("#input").focus())};
_.R.getPollOptionInputValues=function(){var f=this,H=[],v=_.mF(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),t=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(v).forEach(function(M,h){var y=null;M=M.getLiveChatRichMessageInput();var m;(M==null?0:(m=M.textSegments)==null?0:m.length)?y=_.CV(M):t[h]&&(y=f.formattedStringToLiveChatRichMessageInput(t[h]));H.push(y)});
return H};
_.R.requestCreateAndStartPoll=function(f){var H=this.getPollOptionInputValues();if(!H.some(function(t){return!t})){H={optionText:H};
var v=_.mF(_.mF(this.hostElement).querySelector("#poll-question")).firstChild;v&&v.liveChatRichMessageInput&&(H.questionText=_.CV(v.liveChatRichMessageInput));_.WV(this.hostElement,[f,H])}};
_.R.selectedChanged=function(){if(this.selected){var f=_.mF(_.mF(this.hostElement).querySelector("#start-button")).firstElementChild;if(f){var H;(H=_.mF(f).querySelector("#button")||_.$V(f).querySelector("button"))==null||H.focus()}}};
_.R.handleTextInputChanged=function(f){var H;((H=f.target)==null?void 0:H.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=f.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.R.handleStartButtonAction=function(f){f.detail.actionName==="yt-service-request"&&(f.stopPropagation(),(f=f.detail.args[1])&&this.requestCreateAndStartPoll(f))};
_.R.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.R.handleServiceRequestCompleted=function(f){this.createPollRequestInFlight=!1;(f=f.detail&&f.detail.data)&&f.success&&(_.YE(this.hostElement,"picker-cancelled"),_.mb(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.R.onCloseClick=function(){_.YE(this.hostElement,"picker-cancelled");_.mb(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.R.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.R.handlePollEditorInputClosed=function(f){var H=this.pollOptionsData.findIndex(function(v){return v.liveChatPollOptionInput.id===f.detail.id});
this.splice("pollOptionsData",H,1);this.isValidPoll=this.getIsValidPoll()};
_.R.onPickerCancelled=function(){this.reset()};
_.R.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var f=_.mF(_.mF(this.hostElement).querySelector("#poll-question")).firstChild;f&&f.setLiveChatRichMessageInput(null);if(f=_.mF(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){f=_.V(Array.from(f));for(var H=f.next();!H.done;H=f.next())H.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.R.formattedStringToLiveChatRichMessageInput=function(f){return f.simpleText?{text_segments:[f.simpleText]}:{text_segments:f.runs}};
_.H7.Object.defineProperties(bi.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(KLv,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
bi.prototype.onPickerCancelled=bi.prototype.onPickerCancelled;bi.prototype.handlePollEditorInputClosed=bi.prototype.handlePollEditorInputClosed;bi.prototype.handleServiceRequestCompleted=bi.prototype.handleServiceRequestCompleted;bi.prototype.handleServiceRequestSent=bi.prototype.handleServiceRequestSent;bi.prototype.handleTextInputChanged=bi.prototype.handleTextInputChanged;bi.prototype.selectedChanged=bi.prototype.selectedChanged;bi.prototype.isValidPollChanged=bi.prototype.isValidPollChanged;
bi.prototype.shouldInitializePollChanged=bi.prototype.shouldInitializePollChanged;bi.prototype.dataChanged=bi.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],bi.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],bi.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],bi.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],bi.prototype,"modern",void 0);
_.E([_.F(),_.N("design:type",Object)],bi.prototype,"closeButtonOverrides",void 0);_.E([_.F(),_.N("design:type",Object)],bi.prototype,"startButtonOverrides",void 0);_.E([_.F(),_.N("design:type",Object)],bi.prototype,"addOptionButtonOverrides",void 0);_.E([_.F({computed:"computeId(data.id)",reflectToAttribute:!0}),_.N("design:type",String)],bi.prototype,"id",void 0);_.E([_.F({value:function(){return[]}}),
_.N("design:type",Array)],bi.prototype,"pollOptionsData",void 0);_.E([_.z("pollEditorInfoWithDefaults"),_.N("design:type",Object),_.N("design:paramtypes",[])],bi.prototype,"pollQuestionData",null);_.E([_.F({value:0}),_.N("design:type",Number)],bi.prototype,"pollQuestionCharacterCount",void 0);_.E([_.z("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.N("design:type",Object),_.N("design:paramtypes",[])],bi.prototype,"pollQuestionCharactersRemaining",null);
_.E([_.F({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.N("design:type",Boolean)],bi.prototype,"overQuestionCharacterLimit",void 0);_.E([_.z("data.pollEditorInfo"),_.N("design:type",Object),_.N("design:paramtypes",[])],bi.prototype,"pollEditorInfoWithDefaults",null);_.E([_.F({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.N("design:type",Number)],bi.prototype,"currentNumPollOptions",void 0);
_.E([_.F({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.N("design:type",Boolean)],bi.prototype,"hasMaxNumPollOptions",void 0);_.E([_.z("pollEditorInfoWithDefaults","pollOptionsData"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],bi.prototype,"shouldInitializePoll",null);_.E([_.F(),_.N("design:type",Object)],bi.prototype,"isValidPoll",void 0);
_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],bi.prototype,"createPollRequestInFlight",void 0);_.E([_.F(),_.N("design:type",Object)],bi.prototype,"selected",void 0);_.E([_.F({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.N("design:type",Boolean)],bi.prototype,"showQuestionErrorMessage",void 0);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bi.prototype,"dataChanged",null);_.E([_.Zw("shouldInitializePoll"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bi.prototype,"shouldInitializePollChanged",null);_.E([_.Zw("isValidPoll"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bi.prototype,"isValidPollChanged",null);
_.E([_.Zw("selected"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bi.prototype,"selectedChanged",null);_.E([_.sE("yt-live-chat-text-input-field-renderer-character-count-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],bi.prototype,"handleTextInputChanged",null);
_.E([_.sE("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bi.prototype,"handleServiceRequestSent",null);_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],bi.prototype,"handleServiceRequestCompleted",null);
_.E([_.sE("yt-live-chat-poll-editor-input-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],bi.prototype,"handlePollEditorInputClosed",null);_.E([_.sE("picker-cancelled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bi.prototype,"onPickerCancelled",null);_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],bi);
_.G(bi,"yt-live-chat-poll-editor-panel-renderer",function(){if(rDv===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;FLV===void 0&&(FLV=document.createElement("template"));var t=FLV;v.call(H,t.content.cloneNode(!0),f.content.firstChild);rDv=f}f=rDv;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var DAM;var oUO;var ii=function(){return _.K.apply(this,arguments)||this};
_.e(ii,_.K);ii.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
ii.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.H7.Object.defineProperties(ii.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var f,H;return(f=this.data)==null?void 0:(H=f.title)==null?void 0:H.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var f;return _.GK((f=this.data)==null?void 0:f.onTapCommand)}}});
_.E([_.B(_.S3.YtEndpointBehavior),_.N("design:type",Object)],ii.prototype,"ytEndpointBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ii.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],ii.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],ii.prototype,"itemId",null);
_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ii.prototype,"hasPromotion",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],ii.prototype,"innertubeCommand",null);_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],ii);
_.G(ii,"yt-live-chat-product-picker-panel-item-view-model",function(){if(oUO===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;DAM===void 0&&(DAM=document.createElement("template"));var t=DAM;v.call(H,t.content.cloneNode(!0),f.content.firstChild);oUO=f}f=oUO;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var nU4;var pvA;var ks=function(){var f=_.K.apply(this,arguments)||this;f.id="product-picker";f.selected=!1;f.closeButtonId="close-button";f.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return f};
_.e(ks,_.K);_.R=ks.prototype;_.R.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.R.observeSelected=function(){this.selected&&this.hostElement.focus();var f=_.mF(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");f.length&&f[0].focus()};
_.R.onCloseBuyFlow=function(){_.YE(this.hostElement,"picker-cancelled")};
_.R.onCloseClick=function(){_.YE(this.hostElement,"picker-cancelled");var f;((f=this.data)==null?0:f.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.U(this.data.closeButton,_.af))};
_.R.onCloseEngageWithAudienceEditorPanels=function(){_.YE(this.hostElement,"picker-cancelled")};
ks.prototype.observeSelected=ks.prototype.observeSelected;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],ks.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ks.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],ks.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],ks.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],ks.prototype,"id",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],ks.prototype,"selected",void 0);_.E([_.F(),_.N("design:type",Object)],ks.prototype,"closeButtonId",void 0);_.E([_.Zw("selected"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ks.prototype,"observeSelected",null);
_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],ks);
_.G(ks,"yt-live-chat-product-picker-panel-view-model",function(){if(pvA===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;nU4===void 0&&(nU4=document.createElement("template"));var t=nU4;v.call(H,t.content.cloneNode(!0),f.content.firstChild);pvA=f}f=pvA;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var Q14;var uMv;var T0=function(){var f=_.K.apply(this,arguments)||this;f.iconId="";f.icon="";f.disabled=!1;f.systemIcons=_.J("kevlar_system_icons");return f};
_.e(T0,_.K);_.R=T0.prototype;_.R.computeIconId=function(f){return f&&f.icon&&f.icon.iconType?f.icon.iconType.toLowerCase():""};
_.R.computeIcon=function(f){return f&&f.icon&&f.icon.iconType?(f=f.icon.iconType.toLowerCase(),(f.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+f):""};
_.R.computeDisabled=function(f){return!!f};
_.R.computeCommand=function(f,H){return H?void 0:f};
_.R.computeTooltip=function(f,H){return H&&f?f:""};
_.R.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.H7.Object.defineProperties(T0.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var f="",H,v,t;if((H=this.data)==null?0:(v=H.text)==null?0:(t=v.runs)==null?0:t.length)f=this.data.text.runs[0].text||"";else{var M,h;if((M=this.data)==null?0:(h=M.text)==null?0:h.simpleText)f=this.data.text.simpleText}var y,m,W;if((y=this.data)==null?0:(m=y.subtext)==null?0:(W=m.runs)==null?0:W.length)f&&(f+=". "),f+=this.data.subtext.runs[0].text||"";else{var I,S;if((I=this.data)==null?0:(S=I.subtext)==
null?0:S.simpleText)f&&(f+=". "),f+=this.data.subtext.simpleText}return f}}});
_.E([_.B(_.S3.YtEndpointBehavior),_.N("design:type",Object)],T0.prototype,"ytEndpointBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],T0.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],T0.prototype,"data",void 0);_.E([_.F({computed:"computeIconId(data)",reflectToAttribute:!0}),_.N("design:type",Object)],T0.prototype,"iconId",void 0);
_.E([_.F({computed:"computeIcon(data)",reflectToAttribute:!0}),_.N("design:type",Object)],T0.prototype,"icon",void 0);_.E([_.F({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.N("design:type",Object)],T0.prototype,"disabled",void 0);_.E([_.F({computed:"computeCommand(data.command, disabled)"}),_.N("design:type",Object)],T0.prototype,"command",void 0);_.E([_.F({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.N("design:type",String)],T0.prototype,"tooltip",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],T0.prototype,"systemIcons",void 0);_.E([_.z("data.text","data.subtext"),_.F(),_.N("design:type",String),_.N("design:paramtypes",[])],T0.prototype,"ariaLabel",null);_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],T0);
_.G(T0,"yt-live-chat-product-button-renderer",function(){if(uMv===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;Q14===void 0&&(Q14=document.createElement("template"));var t=Q14;v.call(H,t.content.cloneNode(!0),f.content.firstChild);uMv=f}f=uMv;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var aMV;var PDA;var w7=function(){var f=_.K.apply(this,arguments)||this;f.selected=!1;f.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 f};
_.e(w7,_.K);_.R=w7.prototype;_.R.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"}}}};
_.R.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.R.computeId=function(f){return f.id||""};
_.R.onCloseClick=function(){_.YE(this.hostElement,"picker-cancelled")};
_.R.observeSelected=function(){this.selected&&this.hostElement.focus();var f=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");f.length&&f[0].focus()};
_.R.onCloseBuyFlow=function(){_.YE(this.hostElement,"picker-cancelled")};
_.R.onCloseEngageWithAudienceEditorPanels=function(){_.YE(this.hostElement,"picker-cancelled")};
w7.prototype.observeSelected=w7.prototype.observeSelected;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],w7.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],w7.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],w7.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],w7.prototype,"data",void 0);
_.E([_.F({computed:"computeId(data)",reflectToAttribute:!0}),_.N("design:type",String)],w7.prototype,"id",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],w7.prototype,"selected",void 0);_.E([_.Zw("selected"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],w7.prototype,"observeSelected",null);_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],w7);
_.G(w7,"yt-live-chat-product-picker-renderer",function(){if(PDA===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;aMV===void 0&&(aMV=document.createElement("template"));var t=aMV;v.call(H,t.content.cloneNode(!0),f.content.firstChild);PDA=f}f=PDA;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var G1L;var CDe;var EUL;var NeU;var qq=function(){return _.K.apply(this,arguments)||this};
_.e(qq,_.K);qq.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()};
qq.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
qq.prototype.created=function(){this.ids={background:_.aA(),maskOne:_.aA(),maskTwo:_.aA(),gradient:_.aA(),largeBackground:_.aA(),largeGradientOne:_.aA(),largeGradientTwo:_.aA(),largeGradientPath:_.aA()}};
qq.prototype.maybeLoadAnimationBackground=qq.prototype.maybeLoadAnimationBackground;_.E([_.F({value:!1}),_.N("design:type",Boolean)],qq.prototype,"useLargeBackground",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],qq.prototype,"useAnimationBackground",void 0);_.E([_.F({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.N("design:type",Boolean)],qq.prototype,"useRegularBackground",void 0);
_.E([_.F(),_.N("design:type",Object)],qq.prototype,"ids",void 0);_.E([_.F(),_.N("design:type",Object)],qq.prototype,"lottieAnimation",void 0);_.E([_.lJ("#animation-background"),_.N("design:type",HTMLDivElement)],qq.prototype,"animationBackground",void 0);_.E([_.Zw("useAnimationBackground"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qq.prototype,"maybeLoadAnimationBackground",null);
_.E([_.GW({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],qq);
_.G(qq,"yt-live-interactivity-component-background",function(){if(NeU===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;EUL===void 0&&(EUL=document.createElement("template"));var t=EUL;v.call(H,t.content.cloneNode(!0),f.content.firstChild);NeU=f}f=NeU;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var f$=function(){var f=_.K.apply(this,arguments)||this;f.characterCount=0;f.showInputErrorMessage=!1;f.startQnaRequestInFlight=!1;f.modern=_.J("web_button_rework_with_live");f.buttonOverrides={style:"mono",type:"filled"};f.closeButtonOverrides={iconPosition:"icon-only"};f.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return f};
_.e(f$,_.K);_.R=f$.prototype;
_.R.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]]"}}}}}};
_.R.onCharacterCountChanged=function(f){var H,v,t,M,h=(v=_.U(this==null?void 0:(H=this.data)==null?void 0:H.creatorCallForQuestions,JWA))==null?void 0:(t=v.inputField)==null?void 0:(M=t.liveChatTextInputFieldRenderer)==null?void 0:M.maxCharacterLimit,y,m;h!=null&&(f==null?void 0:(y=f.detail)==null?void 0:y.characterCount)!=null&&_.U(this==null?void 0:(m=this.data)==null?void 0:m.startButton,_.nv)&&(H=f.detail.characterCount>h,this.set("data.startButton.buttonRenderer.isDisabled",f.detail.characterCount===
0||H),this.showInputErrorMessage=H)};
_.R.onCloseClick=function(){_.YE(this.hostElement,"picker-cancelled");_.mb(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.R.onPickerCancelled=function(){var f=_.mF(this.hostElement).querySelector("#qna-creator-text-input-field");f&&f.setLiveChatRichMessageInput(null)};
_.R.handleOpenQnaStartPanel=function(){var f=_.mF(this.hostElement).querySelector("#qna-creator-text-input-field");f&&f.focus()};
_.R.handleStartButtonAction=function(f){var H=this;if(f.detail.actionName==="yt-service-request"&&(f.stopPropagation(),f=f.detail.args[1])){var v=_.mF(this.hostElement).querySelector("#qna-creator-text-input-field"),t;(v==null?0:(t=v.liveChatRichMessageInput)==null?0:t.textSegments)&&v.liveChatRichMessageInput.textSegments.length!==0&&(t={rich_message:_.CV(v.liveChatRichMessageInput)},_.WV(this.hostElement,[f,t]).then(function(){_.YE(H.hostElement,"picker-cancelled")}))}};
_.R.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.R.handleServiceRequestCompleted=function(f){var H;f=f==null?void 0:(H=f.detail)==null?void 0:H.data;(f==null?0:f.actions)&&f.actions.length>0?this.startQnaRequestInFlight=!1:_.mb(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.R.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
f$.prototype.handleServiceRequestError=f$.prototype.handleServiceRequestError;f$.prototype.handleServiceRequestCompleted=f$.prototype.handleServiceRequestCompleted;f$.prototype.handleServiceRequestSent=f$.prototype.handleServiceRequestSent;f$.prototype.onPickerCancelled=f$.prototype.onPickerCancelled;f$.prototype.onCharacterCountChanged=f$.prototype.onCharacterCountChanged;_.E([_.F(),_.N("design:type",Object)],f$.prototype,"characterCount",void 0);
_.E([_.F(),_.N("design:type",Object)],f$.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],f$.prototype,"showInputErrorMessage",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],f$.prototype,"startQnaRequestInFlight",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],f$.prototype,"modern",void 0);_.E([_.F(),_.N("design:type",Object)],f$.prototype,"buttonOverrides",void 0);
_.E([_.F(),_.N("design:type",Object)],f$.prototype,"closeButtonOverrides",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],f$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.PH),_.N("design:type",Object)],f$.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.B(_.cp.YtLiveChatItemBehavior),_.N("design:type",_.Xo)],f$.prototype,"ytLiveChatItemBehavior",void 0);
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],f$.prototype,"ytActionHandlerBehavior",void 0);_.E([_.sE("yt-live-chat-text-input-field-renderer-character-count-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],f$.prototype,"onCharacterCountChanged",null);_.E([_.sE("picker-cancelled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],f$.prototype,"onPickerCancelled",null);
_.E([_.sE("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],f$.prototype,"handleServiceRequestSent",null);_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],f$.prototype,"handleServiceRequestCompleted",null);
_.E([_.sE("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],f$.prototype,"handleServiceRequestError",null);_.E([_.u({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],f$);
_.G(f$,"yt-live-chat-qna-start-panel-renderer",function(){if(CDe===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;G1L===void 0&&(G1L=document.createElement("template"));var t=G1L;v.call(H,t.content.cloneNode(!0),f.content.firstChild);CDe=f}f=CDe;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var cD4;var Xvq;var Hf=function(){return _.K.apply(this,arguments)||this};
_.e(Hf,_.K);Hf.prototype.dismiss=function(){_.YE(this.hostElement,"yt-live-chat-error-message-dismiss")};
Hf.prototype.edit=function(){_.YE(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.E([_.F(),_.N("design:type",Object)],Hf.prototype,"data",void 0);_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],Hf);
_.G(Hf,"yt-live-chat-text-actions-error-message-renderer",function(){if(Xvq===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;cD4===void 0&&(cD4=document.createElement("template"));var t=cD4;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Xvq=f}f=Xvq;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var AD1;var boM;var ioq;var k1D;var vf=function(){var f=_.K.apply(this,arguments)||this;f.isDarkTheme=document.documentElement.hasAttribute("dark");f.newnessDotEligible=!1;return f};
_.e(vf,_.K);vf.prototype.sendReaction=function(){var f,H,v=((f=this.data)==null?void 0:f.emojiId)||((H=this.data)==null?void 0:H.emoteId),t;v&&((t=this.data)==null?0:t.shouldTriggerAnimation)&&_.mb(this.hostElement,"yt-create-user-reaction-animation",[v]);var M;(f=_.GK((M=this.data)==null?void 0:M.onTap))&&_.sV(f,this.hostElement);this.showNewnessDot&&_.mb(this.hostElement,"yt-hide-newness-dot")};
vf.prototype.onClick=function(f){(!f||f.clientX||f.clientY)&&this.sendReaction()};
vf.prototype.onKeyDown=function(f){f.key!=="Enter"&&f.key!==" "||f.repeat||this.sendReaction()};
_.H7.Object.defineProperties(vf.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var f,H;return!!(((f=this.data)==null?0:f.emojiId)||((H=this.data)==null?0:H.emoteId))}}});
_.E([_.F(),_.N("design:type",Object)],vf.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],vf.prototype,"isDarkTheme",void 0);_.E([_.F(),_.N("design:type",Object)],vf.prototype,"newnessDotEligible",void 0);_.E([_.z("data.maybeShowNewnessDot"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],vf.prototype,"showNewnessDot",null);_.E([_.z("data.emojiId","data.emoteId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],vf.prototype,"useYtImage",null);
_.E([_.GW({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],vf);
_.G(vf,"yt-reaction-control-panel-button-view-model",function(){if(k1D===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;ioq===void 0&&(ioq=document.createElement("template"));var t=ioq;v.call(H,t.content.cloneNode(!0),f.content.firstChild);k1D=f}f=k1D;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var Te1;var wvM;var tv=function(){var f=_.K.apply(this,arguments)||this;f.reactionControlPanelExpanded=!1;f.isDarkTheme=document.documentElement.hasAttribute("dark");f.newnessDotEligible=!1;return f};
_.e(tv,_.K);_.R=tv.prototype;_.R.expandedButtonsChanged=function(){var f,H;_.Sr(this.hostElement,{"--expanded-buttons-height":((H=(f=this.expandedButtonsData)==null?void 0:f.length)!=null?H:0)*36+"px"})};
_.R.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}}};
_.R.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.R.onMouseLeave=function(){var f=this;this.collapseTimer=setTimeout(function(){f.reactionControlPanelExpanded=!1},500)};
_.R.onFocusIn=function(){this.onMouseEnter()};
_.R.onFocusOut=function(){this.onMouseLeave()};
_.R.onCollapsedButtonFocusIn=function(){var f=this;setTimeout(function(){var H;(H=f.expandedButtons.querySelector("button"))==null||H.focus()},100)};
_.R.onCollapsedButtonFocusOut=function(f){f.stopPropagation()};
_.H7.Object.defineProperties(tv.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var f,H;return _.QA.unsafeClone((f=this.liveReactionsData)==null?void 0:f.emojiButtonData)||((H=this.data)==null?void 0:H.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var f;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((f=this.data)==null||!f.maybeShowNewnessDot)}}});
tv.prototype.expandedButtonsChanged=tv.prototype.expandedButtonsChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],tv.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],tv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.PH),_.N("design:type",Object)],tv.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],tv.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],tv.prototype,"reactionControlPanelExpanded",void 0);_.E([_.F({selectorArgs:["data.liveReactionsDataEntityKey"],selector:fhv}),_.N("design:type",Object)],tv.prototype,"liveReactionsData",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],tv.prototype,"isDarkTheme",void 0);_.E([_.F(),_.N("design:type",Object)],tv.prototype,"newnessDotEligible",void 0);
_.E([_.z("liveReactionsData","data.expandedButtons"),_.N("design:type",Object),_.N("design:paramtypes",[])],tv.prototype,"expandedButtonsData",null);_.E([_.z("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.F({reflectToAttribute:!0}),_.N("design:type",Object),_.N("design:paramtypes",[])],tv.prototype,"showNewnessDot",null);_.E([_.lJ("#expanded-buttons"),_.N("design:type",HTMLElement)],tv.prototype,"expandedButtons",void 0);
_.E([_.Zw("expandedButtonsData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tv.prototype,"expandedButtonsChanged",null);_.E([_.GW({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],tv);
_.G(tv,"yt-reaction-control-panel-view-model",function(){if(wvM===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;Te1===void 0&&(Te1=document.createElement("template"));var t=Te1;v.call(H,t.content.cloneNode(!0),f.content.firstChild);wvM=f}f=wvM;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var M9=new _.P8("yt-live-chat"),q4e=Date.parse("2024-7-24"),hv=function(){var f=_.K.apply(this,arguments)||this;f.emojiManager=_.N8;f.newnessDotEligible=!1;f.newnessDotImpressionCounted=!1;f.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return f};
_.e(hv,_.K);_.R=hv.prototype;_.R.emojiCustomizationEnabledChanged=function(){var f;((f=this.data)==null?0:f.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((f=M9.getCreationTime("emoji-customization-count"))&&f<q4e&&M9.set("emoji-customization-count","0"),f=Number(M9.get("emoji-customization-count"))||0,f<3&&(this.newnessDotEligible=!0,M9.set("emoji-customization-count",(f+1).toString())),this.newnessDotImpressionCounted=!0)};
_.R.hideNewnessDot=function(){this.newnessDotEligible=!1;M9.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.R.handleReactionsMute=function(f){var H=_.uy(),v=_.$$(206221),t={checkboxData:{state:f?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};H&&_.Ti(H,v,t);this.reactionsMuted=f};
_.R.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.R.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}}};
_.H7.Object.defineProperties(hv.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var f;return(!((f=this.liveReactionsData)==null||!f.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
hv.prototype.liveReactionsSettingChanged=hv.prototype.liveReactionsSettingChanged;hv.prototype.emojiCustomizationEnabledChanged=hv.prototype.emojiCustomizationEnabledChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],hv.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],hv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.PH),_.N("design:type",Object)],hv.prototype,"ytLiveChatReduxBehavior",void 0);
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],hv.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],hv.prototype,"data",void 0);_.E([_.F(),_.N("design:type",_.G$)],hv.prototype,"emojiManager",void 0);_.E([_.F(),_.N("design:type",Object)],hv.prototype,"newnessDotEligible",void 0);_.E([_.F(),_.N("design:type",Object)],hv.prototype,"newnessDotImpressionCounted",void 0);
_.E([_.F({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:HrO}),_.N("design:type",Boolean)],hv.prototype,"liveReactionsSetting",void 0);_.E([_.F({selectorArgs:["data.liveReactionsDataEntityKey"],selector:fhv}),_.N("design:type",Object)],hv.prototype,"liveReactionsData",void 0);_.E([_.F({value:function(){var f=_.J("enable_lwe_web_mute"),H=M9.get("allow-reactions");return H===void 0?!1:!H&&f}}),
_.N("design:type",Boolean)],hv.prototype,"reactionsMuted",void 0);_.E([_.F({reflectToAttribute:!0}),_.z("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],hv.prototype,"liveReactionsEnabled",null);_.E([_.Zw("data.emojiCustomizationEnabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hv.prototype,"emojiCustomizationEnabledChanged",null);
_.E([_.Zw("liveReactionsEnabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hv.prototype,"liveReactionsSettingChanged",null);_.E([_.GW({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],hv);
_.G(hv,"yt-reaction-control-panel-overlay-view-model",function(){if(boM===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;AD1===void 0&&(AD1=document.createElement("template"));var t=AD1;v.call(H,t.content.cloneNode(!0),f.content.firstChild);boM=f}f=boM;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var fco={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(f){var H=this.$.pickers.selected;if(H){_.mF(this.hostElement).removeAttribute(H+"-open");var v="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(v="#picker-buttons",H==="emoji"&&_.mF(this.hostElement).querySelector("#emoji-picker-button")&&(v="#emoji-picker-button"));if(v=_.mF(this.hostElement).querySelector(v).querySelector("#"+H))v.active=!1}v=f;H==f&&(v=null);H!=
f&&_.mF(this.hostElement).setAttribute(f+"-open","");this.$.pickers.selected=v;_.mb(this.hostElement,"yt-live-chat-picker-changed",[v])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var Ry=function(){var f=_.K.apply(this,arguments)||this;f.numSentMessages=0;f.timeoutDurationMs=0;f.timeoutMs=0;f.lastTimeoutTimeMs=0;f.pendingMessageId="";f.hasFiredInitialFocusActions=!1;f.isBeforeFocusEnabled=!0;f.id="";f.characterCount=0;f.maxCharacterLimit=0;f.remainingCharacterCount=0;f.inputExpanded=!1;f.buttonOverrides={iconPosition:"icon-only"};f.inReplyPanel=!1;f.countdownRatio=0;f.isTooltipVisible=!1;f.tooltipTimeout=1E4;f.systemIcons=_.J("kevlar_system_icons");f.tallerEmojiPicker=_.J("live_chat_taller_emoji_picker");
f.sendReplyMessageInFlight=!1;f.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"};f.onResize=function(){f.maybeToggleCharacterCount()};
return f};
_.e(Ry,_.K);_.R=Ry.prototype;
_.R.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"}}}};
_.R.attached=function(){window.addEventListener("resize",this.onResize)};
_.R.detached=function(){window.removeEventListener("resize",this.onResize)};
_.R.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.R.sendMessage=function(){var f=this,H,v,t,M;return _.Y(function(h){if(f.sendDisabled)return h.return();f.isTooltipVisible&&_.mb(f.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(f.data.sendButton&&f.data.sendButton.buttonRenderer){f.input.completeEmojis();H=f.data.sendButton.buttonRenderer.serviceEndpoint;if(!H)return h.return();t=((v=_.U(H,_.E4H))==null?void 0:v.clientIdPrefix)||"";M={client_message_id:t+String(f.numSentMessages++),rich_message:_.CV(f.input.liveChatRichMessageInput)};
f.pendingMessageId=M.client_message_id;f.inReplyPanel&&(f.sendReplyMessageInFlight=!0);_.WV(f.hostElement,[H,M]);f.input.setLiveChatRichMessageInput(null)}_.Bj(h)})};
_.R.handleSendButtonAction=function(f){f.detail.actionName==="yt-service-request"&&(f.stopPropagation(),this.sendMessage())};
_.R.onSendCompleted=function(f,H){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(f=this.get("timeoutDurationUsec",H.data))&&this.handleTimeout(Number(f)/1E3);this.errorMessage=this.get("errorMessage",H.data);this.pendingMessageId=""};
_.R.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.mb(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.R.handlePickerButtonToggle=function(f){f=f.detail.targetId;this.ytPickerBehavior.togglePicker_(f);if(f==="emoji")this.input.focus();else if(f==="qna-start-panel"){var H,v;(H=_.mF(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(v=H.querySelector("#qna-creator-text-input-field"))==null||v.focus()}};
_.R.onComponentReplaced=function(f){var H,v;f.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((H=f.replacement.liveChatMessageInputRenderer)==null?0:(v=H.headerRenderer)==null?0:v.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.R.onEmojiSelect=function(f){this.input.focus();this.input.insertEmoji(f.detail)};
_.R.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.R.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.mb(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.mb(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.R.onOpenPopupAction=function(f,H){var v=this;H===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.mb(v.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.R.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.R.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.R.focusChanged=function(){this.maybeToggleCharacterCount()};
_.R.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var f=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",f>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.R.computeId=function(){return this.data&&this.data.targetId||""};
_.R.computeSendDisabled=function(f,H,v,t){f=!!(!f||H&&f>H||t);(H=_.mF(this.hostElement).querySelector("#send-button"))&&H.children.length&&(H.children[0].disabled=f);return f};
_.R.handleTimeout=function(f){this.timeoutDurationMs=this.timeoutMs=f;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.R.updateTimeout=function(f){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(f-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=f,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.R.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.R.onErrorMessageEdit=function(f){this.input.setLiveChatRichMessageInput(f.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.R.errorMessageChanged=function(){var f=this;_.bJ(function(){_.mb(f.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.R.computeAuthorNameColor=function(f){var H;if(_.J("live_chat_author_name_color_usernames")&&(f==null?0:(H=f.authorName)==null?0:H.simpleText))return _.DnT(_.obH(f.authorName.simpleText));if(_.J("live_chat_seed_color_usernames")&&(f==null?0:f.authorSeedColorArgb))return _.DnT(_.g9(f.authorSeedColorArgb));if(_.J("live_chat_colored_usernames"))return"#cc0000";var v;return _.J("live_chat_simple_color_usernames")&&(f==null?0:(v=f.authorName)==null?0:v.simpleText)&&(f==null?0:f.authorUsernameColorLight)&&
(f==null?0:f.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.g9(f.authorUsernameColorDark):_.g9(f.authorUsernameColorLight):""};
_.R.onIsTooltipVisibleChanged=function(){var f=_.mF(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){f.hidden=!1;f.setAttribute("role","alert")},0):(f.hidden=!0,f.removeAttribute("role"))};
_.R.onFocusedChanged=function(f){this.inputFocused=f.detail.value};
_.H7.Object.defineProperties(Ry.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 f;return!((f=this.data)==null||!f.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var f,H;return((f=this.data)==null?void 0:(H=f.pickers)==null?void 0:H.find(function(v){return v.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var f=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return f?this.ytRendererBehavior.getSimpleString(f):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
Ry.prototype.onIsTooltipVisibleChanged=Ry.prototype.onIsTooltipVisibleChanged;Ry.prototype.errorMessageChanged=Ry.prototype.errorMessageChanged;Ry.prototype.onErrorMessageEdit=Ry.prototype.onErrorMessageEdit;Ry.prototype.onErrorMessageDismiss=Ry.prototype.onErrorMessageDismiss;Ry.prototype.focusChanged=Ry.prototype.focusChanged;Ry.prototype.characterCountChanged=Ry.prototype.characterCountChanged;Ry.prototype.onEmojiSelect=Ry.prototype.onEmojiSelect;Ry.prototype.handlePickerButtonToggle=Ry.prototype.handlePickerButtonToggle;
Ry.prototype.onSendError=Ry.prototype.onSendError;Ry.prototype.onSendCompleted=Ry.prototype.onSendCompleted;Ry.prototype.sendMessage=Ry.prototype.sendMessage;Ry.prototype.dataChanged=Ry.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Ry.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Ry.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.B(fco.YtPickerBehavior),_.N("design:type",Object)],Ry.prototype,"ytPickerBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Ry.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.GF.YtLiveChatTooltipTargetingBehavior),_.N("design:type",Object)],Ry.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Ry.prototype,"hasFiredInitialFocusActions",void 0);
_.E([_.F(),_.N("design:type",Object)],Ry.prototype,"isBeforeFocusEnabled",void 0);_.E([_.F(),_.N("design:type",Object)],Ry.prototype,"data",void 0);_.E([_.F({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.N("design:type",Object)],Ry.prototype,"id",void 0);_.E([_.F(),_.N("design:type",Object)],Ry.prototype,"characterCount",void 0);_.E([_.F(),_.N("design:type",Object)],Ry.prototype,"maxCharacterLimit",void 0);
_.E([_.F(),_.N("design:type",Object)],Ry.prototype,"remainingCharacterCount",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Ry.prototype,"inputExpanded",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ry.prototype,"inputFocused",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],Ry.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.E([_.F(),_.N("design:type",_.iM)],Ry.prototype,"participantsManager",void 0);
_.E([_.F(),_.N("design:type",Object)],Ry.prototype,"buttonOverrides",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Ry.prototype,"inReplyPanel",void 0);_.E([_.z("characterCount, maxCharacterLimit, countdownActive"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ry.prototype,"sendDisabled",null);_.E([_.F(),_.N("design:type",Object)],Ry.prototype,"countdownRatio",void 0);
_.E([_.z("countdownRatio"),_.N("design:type",Number),_.N("design:paramtypes",[])],Ry.prototype,"countdownStrokeDashOffset",null);_.E([_.z("countdownRatio"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ry.prototype,"countdownActive",null);_.E([_.z("data.interactionMessage"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ry.prototype,"hasInteractionMessage",null);
_.E([_.z("data.emojiPickerButton"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ry.prototype,"hasEmojiPickerButton",null);_.E([_.z("data, characterCount"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ry.prototype,"showAvatar",null);_.E([_.z("data.pickers"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ry.prototype,"hasProductPickerPanelViewModel",null);
_.E([_.F(),_.N("design:type",Object)],Ry.prototype,"errorMessage",void 0);_.E([_.F(),_.N("design:type",Object)],Ry.prototype,"genericErrorMessage",void 0);_.E([_.F(),_.N("design:type",Object)],Ry.prototype,"isTooltipVisible",void 0);_.E([_.F(),_.N("design:type",Object)],Ry.prototype,"tooltipTimeout",void 0);_.E([_.z("data.onInitialFocusCommand"),_.N("design:type",String),_.N("design:paramtypes",[])],Ry.prototype,"tooltipMessage",null);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Ry.prototype,"systemIcons",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Ry.prototype,"tallerEmojiPicker",void 0);_.E([_.z("data"),_.N("design:type",String),_.N("design:paramtypes",[])],Ry.prototype,"authorNameColor",null);_.E([_.F(),_.N("design:type",Object)],Ry.prototype,"sendReplyMessageInFlight",void 0);_.E([_.lJ("#input"),_.N("design:type",_.oGb)],Ry.prototype,"input",void 0);
_.E([_.lJ("#count"),_.N("design:type",HTMLElement)],Ry.prototype,"count",void 0);_.E([_.lJ("#input-container"),_.N("design:type",HTMLElement)],Ry.prototype,"inputContainer",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ry.prototype,"dataChanged",null);_.E([_.sE("yt-live-chat-send-message"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],Ry.prototype,"sendMessage",null);
_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[Event,_.TI]),_.N("design:returntype")],Ry.prototype,"onSendCompleted",null);_.E([_.sE("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ry.prototype,"onSendError",null);
_.E([_.sE("yt-live-chat-icon-toggle-button-renderer-toggle"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ry.prototype,"handlePickerButtonToggle",null);_.E([_.sE("yt-emoji-select"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ry.prototype,"onEmojiSelect",null);
_.E([_.Zw("characterCount"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ry.prototype,"characterCountChanged",null);_.E([_.Zw("inputFocused"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ry.prototype,"focusChanged",null);_.E([_.sE("yt-live-chat-error-message-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ry.prototype,"onErrorMessageDismiss",null);
_.E([_.sE("yt-live-chat-error-message-edit"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ry.prototype,"onErrorMessageEdit",null);_.E([_.Zw("errorMessage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ry.prototype,"errorMessageChanged",null);_.E([_.Zw("isTooltipVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ry.prototype,"onIsTooltipVisibleChanged",null);
_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],Ry);
_.G(Ry,"yt-live-chat-message-input-renderer",function(){if(JDV===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;ZoM===void 0&&(ZoM=document.createElement("template"));var t=ZoM;v.call(H,t.content.cloneNode(!0),f.content.firstChild);JDV=f}f=JDV;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var HS1;var vuq;var V2=function(){var f=_.K.apply(this,arguments)||this;f.systemIcons=_.J("kevlar_system_icons");f.firedOnClickCommand=!1;f.inReplyPanel=!1;return f};
_.e(V2,_.K);
V2.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"}}}};
V2.prototype.onButtonToggle=function(f){f.target.disabled||this.ytPickerBehavior.togglePicker_(f.detail.targetId)};
V2.prototype.onClick=function(){var f=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.mb(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return f.firedOnClickCommand=!1},5E3))};
_.H7.Object.defineProperties(V2.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var f,H;return((f=this.data)==null?void 0:(H=f.panels)==null?void 0:H.find(function(v){return v.liveChatProductPickerPanelViewModel}))!==void 0}}});
V2.prototype.onButtonToggle=V2.prototype.onButtonToggle;_.E([_.B(fco.YtPickerBehavior),_.N("design:type",Object)],V2.prototype,"ytPickerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],V2.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],V2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],V2.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],V2.prototype,"systemIcons",void 0);_.E([_.F({reflectToAttribute:!1}),_.N("design:type",Object)],V2.prototype,"firedOnClickCommand",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],V2.prototype,"inReplyPanel",void 0);_.E([_.z("data.pickers"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],V2.prototype,"hasProductPickerPanelViewModel",null);
_.E([_.sE("yt-live-chat-icon-toggle-button-renderer-toggle"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],V2.prototype,"onButtonToggle",null);_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],V2);
_.G(V2,"yt-live-chat-restricted-participation-renderer",function(){if(vuq===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;HS1===void 0&&(HS1=document.createElement("template"));var t=HS1;v.call(H,t.content.cloneNode(!0),f.content.firstChild);vuq=f}f=vuq;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var y2=function(){var f=_.K.apply(this,arguments)||this;f.genericErrorMessage=_.qO("Error, try again.");f.inReplyPanel=!1;f.hideBorder=!1;return f};
_.e(y2,_.K);y2.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}}}}}};
_.H7.Object.defineProperties(y2,{template:{configurable:!0,enumerable:!0,get:function(){return IMU()}}});
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],y2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],y2.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],y2.prototype,"genericErrorMessage",void 0);_.E([_.F(),_.N("design:type",Object)],y2.prototype,"inReplyPanel",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],y2.prototype,"hideBorder",void 0);
_.E([_.GW({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],y2);_.G(y2,"yt-live-chat-engagement-panel-input-renderer",function(){return IMU()},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var ta1,Ma4;ta1=_.$$(115994);Ma4=_.$$(115993);_.Yo=function(f,H,v){var t=this;var M=v.dragDownAction;this.layer=0;this.JSC$22504_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return t.dragDownAction()}}}};
this.JSC$22504_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return t.dragDownAction()}}}};
this.fullscreen=!1;var h=_.UV();_.mE(h,ta1,this.layer);_.mE(h,Ma4,this.layer);this.dragDownAction=function(){M();_.NY(h,{visualElement:t.fullscreen?ta1:Ma4})};
this.gesture=new _.mD(f,H,this.JSC$22504_watchConfig,"pandown");this.attach()};
_.Yo.prototype.attach=function(){this.gesture.attach()};
_.Yo.prototype.detach=function(){this.gesture.detach()};
_.Yo.prototype.update=function(f){this.fullscreen=f;this.gesture.config=f?this.JSC$22504_watchFullScreenConfig:this.JSC$22504_watchConfig};var hSM={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(f){if(f&&f.length==1&&Array.isArray(f[0].loggingUrls)){f=_.QA.unsafeClone(f[0]);var H=this.macros||{},v=this.getAdModuleClient_();if(!v)return _.gj();f.loggingUrls.forEach(function(t){if(t.baseUrl){var M=t.baseUrl;var h=H;h=h===void 0?{}:h;M=v.getOptions().includes("replaceUrlMacros")?_.wmh(v,"replaceUrlMacros",{url:M,additionalMapping:h}):M;t.baseUrl=M}},this);
f=[f]}return _.WV(this.hostElement,f)},
getAdModuleClient_:function(){var f=_.vx(this);return f?(f=f.getPlayer())?new _.L_(f):null:null}}]};var RS1;var mq=function(){var f=_.K.apply(this,arguments)||this;f.isCollapsed=!1;f.modernPanels=_.J("kevlar_watch_modern_panels");f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return f};
_.e(mq,_.K);_.R=mq.prototype;_.R.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.R.onDonateTap=function(){var f=this.get("data.donateButton.buttonRenderer.command");if(f){var H=_.uy(),v=this.get("data.donateButton.buttonRenderer.trackingParams");H&&v&&_.Ti(H,_.zK(v));this.ytOpenPopupBehavior.openPopup(f)}};
_.R.onShowMore=function(){this.isCollapsed=!1;var f=_.uy(),H=this.get("data.expandButton.buttonRenderer.trackingParams");f&&H&&_.Ti(f,_.zK(H))};
_.R.onShowLess=function(){this.isCollapsed=!0};
_.R.dataChanged=function(){_.Sr(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.R.onDarkModeToggledAction=function(f){this.isDarkTheme=f};
_.R.handleUpdate=function(f){if(f=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",f))this.set("data.startLabel",f.startLabel),this.set("data.endLabel",f.endLabel),this.set("data.progress",f.progress),this.set("data.amountRaisedLabel",f.amountRaisedLabel),this.dataChanged()};
_.R.handleOpenPopupAction=function(f){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",f)&&_.mb(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.R.computeHeaderBackgroundUrl=function(f,H){if(f)return H?f.headerBackgroundDarkUrl:f.headerBackgroundUrl};
_.R.isProgressBarVisible=function(f){return!(!f||f.progress===void 0)};
_.R.headerBackgroundClass=function(){return _.a8("HTML_DIR")==="rtl"?"flip":""};
mq.prototype.dataChanged=mq.prototype.dataChanged;_.E([_.B(_.IM.YtOpenPopupBehavior),_.N("design:type",Object)],mq.prototype,"ytOpenPopupBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],mq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],mq.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],mq.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],mq.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],mq.prototype,"isCollapsed",void 0);_.E([_.F({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.N("design:type",String)],mq.prototype,"headerBackgroundUrl",void 0);_.E([_.F(),_.N("design:type",Boolean)],mq.prototype,"isDarkTheme",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],mq.prototype,"modernPanels",void 0);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mq.prototype,"dataChanged",null);_.E([_.u({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],mq);
_.G(mq,"ytd-donation-shelf-renderer",function(){if(RS1!==void 0)return RS1;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return RS1=f},{mode:1});var VaD;var yfo=function(){return _.K.apply(this,arguments)||this};
_.e(yfo,_.K);_.E([_.F(),_.N("design:type",Object)],yfo.prototype,"data",void 0);_.E([_.u({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],yfo);
_.G(yfo,"ytd-donation-unavailable-renderer",function(){if(VaD!==void 0)return VaD;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return VaD=f},{mode:1});var YqO;var $o=function(){return _.K.apply(this,arguments)||this};
_.e($o,_.K);$o.prototype.computeIconType=function(f){return f?"yt-icons:"+f.toLowerCase():null};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],$o.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],$o.prototype,"data",void 0);_.E([_.u({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],$o);
_.G($o,"ytd-limited-state-message-renderer",function(){if(YqO!==void 0)return YqO;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return YqO=f},{mode:1});var meV;var Wf=function(){return _.K.apply(this,arguments)||this};
_.e(Wf,_.K);Wf.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
Wf.prototype.onTap=function(f){var H=this.data&&this.data.endpoint;H&&!_.w6(_.f2(f),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.YE(this.hostElement,"yt-navigate",{endpoint:H})};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Wf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Wf.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Wf.prototype,"data",void 0);_.E([_.u({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],Wf);
_.G(Wf,"ytd-autotagging-metadata-renderer",function(){if(meV!==void 0)return meV;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return meV=f},{mode:1});var $eV;var OA=function(){return _.K.apply(this,arguments)||this};
_.e(OA,_.K);OA.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],OA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],OA.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],OA.prototype,"data",void 0);_.E([_.u({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],OA);
_.G(OA,"ytd-autotagging-metadata-row-renderer",function(){if($eV!==void 0)return $eV;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return $eV=f},{mode:1});var Whv;var OS4;var gW=function(){var f=_.K.apply(this,arguments)||this;f.engagementPanelContent=!1;return f};
_.e(gW,_.K);gW.prototype.computeHasDividerLine=function(f,H){return f&&!H};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],gW.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],gW.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.N("design:type",Boolean)],gW.prototype,"hasDividerLine",void 0);_.E([_.F(),_.N("design:type",Object)],gW.prototype,"engagementPanelContent",void 0);
_.E([_.u({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],gW);
_.G(gW,"ytd-metadata-row-header-renderer",function(){if(OS4!==void 0)return OS4;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return OS4=f},{mode:1});var gu1;var Iy=function(){return _.K.apply(this,arguments)||this};
_.e(Iy,_.K);Iy.prototype.computeHasDividerLine=function(f){return f};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Iy.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Iy.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.N("design:type",Boolean)],Iy.prototype,"hasDividerLine",void 0);_.E([_.u({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],Iy);
_.G(Iy,"ytd-metadata-row-renderer",function(){if(gu1!==void 0)return gu1;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return gu1=f},{mode:1});var IcD;var SZ=function(){return _.K.apply(this,arguments)||this};
_.e(SZ,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],SZ.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],SZ.prototype,"data",void 0);_.E([_.u({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],SZ);
_.G(SZ,"ytd-metadata-with-image-row-renderer",function(){if(IcD!==void 0)return IcD;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return IcD=f},{mode:1});var Sqq;var dW=function(){var f=_.K.apply(this,arguments)||this;f.rounded=!0;f.fixie=!1;f.fullWidth=!1;return f};
_.e(dW,_.K);_.R=dW.prototype;_.R.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R.onDataChanged=function(){var f=this;this.data&&!this.endpointHref&&(this.endpointLink.classList.add("button-mode"),this.endpointLink.setAttribute("tabindex","0"),this.endpointLink.setAttribute("role","button"),this.endpointLink.addEventListener("keypress",function(H){f.onEndpointLinkKeyPress(H)}))};
_.R.onEndpointLinkKeyPress=function(f){f.target===this.endpointLink&&f.keyCode===13&&_.YE(this.hostElement,"click")};
_.R.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var f;if((f=this.data)==null?0:f.endpoint)_.Oj(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.R.onYtNavigate=function(f){this.endpointHref||(f.stopPropagation(),f.preventDefault())};
_.R.onInformationButtonContainerClick=function(f){f.target.id!=="information-button-container"&&(f.stopPropagation(),f.preventDefault())};
_.R.computeStyle=function(f){return f};
_.R.computeIsThumbnailStyle=function(f){return f==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.R.computeThumbnailWidth=function(f){switch(f){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}};
_.R.computeThumbnailObjectFit=function(f){switch(f){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.H7.Object.defineProperties(dW.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?0:f.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
dW.prototype.onYtNavigate=dW.prototype.onYtNavigate;dW.prototype.onClick=dW.prototype.onClick;dW.prototype.onDataChanged=dW.prototype.onDataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],dW.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],dW.prototype,"componentBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],dW.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],dW.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],dW.prototype,"componentStyle",void 0);_.E([_.F({computed:"computeIsThumbnailStyle(data.style)"}),_.N("design:type",Boolean)],dW.prototype,"isThumbnailStyle",void 0);_.E([_.F({computed:"computeThumbnailObjectFit(data.style)"}),_.N("design:type",String)],dW.prototype,"thumbnailObjectFit",void 0);
_.E([_.F({computed:"computeThumbnailWidth(data.style)"}),_.N("design:type",Number)],dW.prototype,"thumbnailWidth",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],dW.prototype,"rounded",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],dW.prototype,"fixie",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],dW.prototype,"fullWidth",void 0);_.E([_.lJ("#endpoint-link"),_.N("design:type",HTMLAnchorElement)],dW.prototype,"endpointLink",void 0);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dW.prototype,"onDataChanged",null);_.E([_.z("data.endpoint"),_.N("design:type",Object),_.N("design:paramtypes",[])],dW.prototype,"endpointHref",null);_.E([_.sE("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],dW.prototype,"onClick",null);
_.E([_.sE("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],dW.prototype,"onYtNavigate",null);_.E([_.u({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],dW);
_.G(dW,"ytd-rich-metadata-renderer",function(){if(Sqq!==void 0)return Sqq;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Sqq=f},{mode:_.WK("kevlar_poly_si_batch_j075")?1:2});var deD;var jZ=function(){var f=_.K.apply(this,arguments)||this;f.fixie=!1;f.fullWidth=!1;return f};
_.e(jZ,_.K);jZ.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
jZ.prototype.computeHasDividerLine=function(f){return f};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],jZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],jZ.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.N("design:type",Boolean)],jZ.prototype,"hasDividerLine",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],jZ.prototype,"fixie",void 0);_.E([_.F(),_.N("design:type",Object)],jZ.prototype,"fullWidth",void 0);
_.E([_.u({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],jZ);
_.G(jZ,"ytd-rich-metadata-row-renderer",function(){if(deD!==void 0)return deD;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return deD=f},{mode:1});var sA=function(){var f=_.K.apply(this,arguments)||this;f.engagementPanelContent=!1;f.fixie=!1;f.fullWidth=!1;return f};
_.e(sA,_.K);
sA.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"}}}};
sA.prototype.computeCollapsibleItems=function(f,H,v){return f===void 0||H===void 0||v===void 0||v?[]:f.slice(H)};
sA.prototype.computeAlwaysShownItems=function(f,H){return f&&f.length?f.slice(0,H):[]};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],sA.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],sA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],sA.prototype,"data",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],sA.prototype,"collapsed",void 0);
_.E([_.F({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.N("design:type",Array)],sA.prototype,"alwaysShownItems",void 0);_.E([_.F({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.N("design:type",Array)],sA.prototype,"collapsibleItems",void 0);_.E([_.F(),_.N("design:type",Object)],sA.prototype,"engagementPanelContent",void 0);_.E([_.F(),_.N("design:type",Object)],sA.prototype,"fixie",void 0);
_.E([_.F(),_.N("design:type",Object)],sA.prototype,"fullWidth",void 0);_.E([_.u({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],sA);
_.G(sA,"ytd-metadata-row-container-renderer",function(){if(Whv!==void 0)return Whv;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Whv=f},{mode:1});var jdD;var ZT=function(){var f=_.K.apply(this,arguments)||this;f.currentPageUrl="";f.baseUrl="";f.isHiddenByUser=null;f.hidden=!1;f.showAboveScrim=!1;f.watchNextGrid=_.J("kevlar_watch_grid");f.modernButtons=_.J("web_modern_buttons");f.roundedContainer=!0;f.noBorder=!1;f.roundBackground=!_.J("live_chat_round_background_killswitch");f.overflowHideChat=_.J("live_chat_overflow_hide_chat");f.forceDarkTheme=!1;f.theaterWatchWhile=!1;f.isListeningForPlayerProgress=!1;f.JSC$22540_playerEvents=new Map;f.isFrameReady=
!1;f.player=null;f.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 f};
_.e(ZT,_.K);_.R=ZT.prototype;_.R.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.$E(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.R.created=function(){var f=this;this.handleIframeEventListener=function(H){f.handleIframeEvent(H)};
this.handleKeyboardEventListener=function(H){f.handleKeyboardEvent(H)};
this.JSC$22540_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22540_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22540_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22540_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22540_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.R.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()};
_.R.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};
_.R.computeBaseUrl=function(f){var H="/live_chat";this.isChatReplay()&&(H="/live_chat_replay");return _.wm(_.TU(_.kR(_.Ax(f),H),null),"").toString()};
_.R.dataChanged=function(){_.J("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.R.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var f=this.url;if(this.isChatReplay()&&this.player){var H=Math.floor(this.player.getProgressState().current*1E3);f=_.iS(_.Ax(f),"playerOffsetMs",H.toString()).toString()}H=this.chatframe;try{var v=f==="about:blank"?_.yNv:_.Co(f),t=H.contentDocument.location,M=_.cv(v);M!==void 0&&t.replace(M)}catch(h){H.src=f}}};
_.R.collapsedChanged=function(){_.YE(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.R.handleIframeEvent=function(f){if(f&&this.baseUrl.startsWith(f.origin)&&f.source===this.chatframe.contentWindow&&_.vo(f.data))if(f.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(f);else if(f.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(f.data["yt-show-feedback-dialog"]){var H=_.t8().resolve(_.vh(_.MLH));if(H){var v=f.ports,t;v&&v.length&&(t=function(){v[0].postMessage({})});
f=f.data["yt-show-feedback-dialog"];H.showFeedbackDialog(f.customProductData,f.feedbackContent,t,f.bucket)}}else if(f.data["yt-show-survey"])_.YE(this.hostElement,"yt-show-survey",f.data["yt-show-survey"]);else if(f.data["yt-purchase-membership"])_.t8().resolve(_.MJ).resolveCommand(f.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(f.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(f.data["yt-tunnel-out-live-service-request"]);else if(f.data["yt-user-activity"])_.M$();
else if(f.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(f.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(f.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(f.data["yt-open-popup"]);else if(f.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(f.data["yt-log-flow-logging-event-command"]);else if(f.data["yt-hide-live-chat"])this.onShowHideChat();else f.data["yt-report-moderation-state-log"]&&
this.player&&(H={cpn:this.player.getVideoData().cpn},_.Kb("liveChatBeingModerated",H))};
_.R.attachLiveChatResponseVeTrackingParams=function(f){f=_.zK(f);var H=_.uy(),v=_.ES("liveChatRenderer.trackingParams",this.data);H&&v&&_.Xl(H,_.zK(v),f)};
_.R.handleBuyflowMessages=function(f){var H=f.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,v=f.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,t=f.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.DFH(_.iw(_.qS),H.replace(/-/g,"+").replace(/_/g,"/"),function(M){f.ports[0].postMessage({success:!0,buyFlowResponse:M})},void 0,function(M){f.ports[0].postMessage({success:!1,
error:M&&M.message||"Buyflow rejected without error."})},_.Uj().get("hl"),void 0,function(){f.ports[0].postMessage({closed:!0})},v,t)};
_.R.setupPlayerProgressRelay=function(){var f=this;if(!this.isListeningForPlayerProgress){var H=_.tj();H!=null&&H.getPlayerPromise&&(H.getPlayerPromise().then(function(v){f.playerApiReady(v)}),this.isListeningForPlayerProgress=!0)}};
_.R.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.R.playerApiReady=function(f){this.setPlayer(f)};
_.R.playerProgressHandler=function(){if(this.player){var f=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":f.current})}};
_.R.playerAdStartHandler=function(f){this.postToContentWindow({"yt-player-ad-start":f})};
_.R.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.R.playerStateChangeHandler=function(f){this.postToContentWindow({"yt-player-state-change":f})};
_.R.setPlayer=function(f){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22540_playerEvents);f&&(this.player=f,this.ytPlayerListenerBehavior.listenToPlayerEvents(f,this.JSC$22540_playerEvents),_.YE(this.hostElement,"player-api-ready"))};
_.R.liveChatPageUrl=function(f,H,v,t){return!v||H?"about:blank":v.liveChatRenderer?(H=_.Ax(this.currentPageUrl).JSC$10022_queryData_,ThD(H),f=_.Ax(f),H.add("continuation",v.liveChatRenderer.continuations[0].reloadContinuationData.continuation),v=_.o9()==="USER_INTERFACE_THEME_DARK",(t||v)&&H.add("dark_theme","true"),_.TU(f,H),t=_.Ax(f.toString()),v=t.JSC$10022_queryData_,"SESSION_INDEX"in _.nc&&(v.add("authuser",_.a8("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.nc&&v.add("pageId",_.a8("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.nc&&v.add("sdc",_.a8("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),t.toString()):""};
_.R.isCollapsed=function(f,H){return H!==null?H:this.isChatReplay()||f&&f.conversationBarRenderer&&f.conversationBarRenderer.availabilityMessage?!0:f?f.liveChatRenderer?f.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.J("live_chat_hide_premiere_replay_message")||f.conversationBarRenderer&&f.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.R.isHidden=function(f,H,v){var t=H&&H.conversationBarRenderer&&H.conversationBarRenderer.availabilityMessage,M=H&&H.liveChatRenderer&&H.liveChatRenderer.showHideButton,h=H&&H.liveChatRenderer&&H.liveChatRenderer.showButton;return v&&f&&!t&&!h||!v&&f&&!t&&!M?!0:H&&H.liveChatRenderer&&H.liveChatRenderer.initialDisplayState?H.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.R.computeButtonOverride=function(f,H){if(f&&H)return{type:"outline"}};
_.R.setCollapsedState=function(f){_.U(f,_.zz9)&&(this.isHiddenByUser=!!_.U(f,_.zz9).collapsed,!this.isHiddenByUser&&_.J("enable_teaser_framework_web_client")&&_.mb(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.R.forwardReduxActionToIframe=function(f){this.postToContentWindow({"yt-live-chat-forward-redux-action":f})};
_.R.onLoopRangeChange=function(f){this.showAboveScrim=!(f==null||!f.postId)};
_.R.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.R.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.R.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.R.sendDarkThemePostMessage=function(f){this.postToContentWindow({"yt-live-chat-set-dark-theme":f})};
_.R.onLiveChatBuyFlowCallback=function(f){this.postToContentWindow({"yt-live-chat-buy-flow-callback":f})};
_.R.handleKeyboardEvent=function(f){(0,_.QA.containsValue)(khL,f.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:f.type,keyCode:f.keyCode}})};
_.R.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.R.postToContentWindow=function(f){if(this.isFrameReady)try{var H=window.location.protocol+"//"+window.location.host,v;(v=this.chatframe)!=null&&v.contentWindow?this.chatframe.contentWindow.postMessage(f,H):_.pb(new _.e$("Tried posting a message to an iframe with no content window",f))}catch(t){_.oO(t)}};
_.R.shouldHideChatFrame=function(f){return f&&_.J("hide_live_chat_button_when_collapsed")};
_.H7.Object.defineProperties(ZT.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.J("live_chat_overflow_hide_chat")||_.J("web_watch_chat_hide_button_killswitch"))return _.J("live_chat_overflow_hide_chat");var f,H,v,t;return!!((f=this.data)==null?0:(H=f.liveChatRenderer)==null?0:(v=H.header)==null?0:(t=v.liveChatHeaderRenderer)==null?0:t.collapseButton)}}});
ZT.prototype.collapsedChanged=ZT.prototype.collapsedChanged;ZT.prototype.urlChanged=ZT.prototype.urlChanged;ZT.prototype.dataChanged=ZT.prototype.dataChanged;ZT.prototype.onShowHideChat=ZT.prototype.onShowHideChat;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],ZT.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ZT.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],ZT.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.im.YtPlayerListenerBehavior),_.N("design:type",_.kI)],ZT.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.B(_.IM.YtOpenPopupBehavior),_.N("design:type",Object)],ZT.prototype,"ytOpenPopupBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],ZT.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],ZT.prototype,"currentPageUrl",void 0);
_.E([_.F({computed:"computeBaseUrl(currentPageUrl,data)"}),_.N("design:type",Object)],ZT.prototype,"baseUrl",void 0);_.E([_.F({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.N("design:type",String)],ZT.prototype,"url",void 0);_.E([_.F(),_.N("design:type",Object)],ZT.prototype,"isHiddenByUser",void 0);_.E([_.F({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.N("design:type",Object)],ZT.prototype,"hidden",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.N("design:type",Boolean)],ZT.prototype,"collapsed",void 0);_.E([_.F({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.N("design:type",Boolean)],ZT.prototype,"hideChatFrame",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],ZT.prototype,"showAboveScrim",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],ZT.prototype,"watchNextGrid",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],ZT.prototype,"modernButtons",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],ZT.prototype,"roundedContainer",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],ZT.prototype,"noBorder",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],ZT.prototype,"roundBackground",void 0);
_.E([_.F({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.N("design:type",Object)],ZT.prototype,"toggleButtonOverride",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],ZT.prototype,"overflowHideChat",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],ZT.prototype,"forceDarkTheme",void 0);_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ZT.prototype,"enableShowWithoutHideChatButton",null);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],ZT.prototype,"theaterWatchWhile",void 0);_.E([_.lJ("#chatframe"),_.N("design:type",HTMLIFrameElement)],ZT.prototype,"chatframe",void 0);_.E([_.sE("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ZT.prototype,"onShowHideChat",null);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ZT.prototype,"dataChanged",null);
_.E([_.Zw("url"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ZT.prototype,"urlChanged",null);_.E([_.Zw("collapsed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ZT.prototype,"collapsedChanged",null);_.E([_.u({is:"ytd-live-chat-frame",disableElementRegistration:!0})],ZT);
_.G(ZT,"ytd-live-chat-frame",function(){if(jdD!==void 0)return jdD;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return jdD=f},{mode:1});var sdD;var Jv=function(){var f=_.K.apply(this,arguments)||this;f.modern=_.J("web_modern_buttons");f.buttonOverrides={style:"call-to-action",type:"filled"};return f};
_.e(Jv,_.K);Jv.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=_.NS(this.data.backgroundColor)))};
Jv.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var f=this.getFormattedStringLoggingDirectives(this.data.headline);f&&this.rendererBehavior.logExplicitClick(f)}};
Jv.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var f=this.getFormattedStringLoggingDirectives(this.data.description);f&&this.rendererBehavior.logExplicitClick(f)}};
Jv.prototype.getFormattedStringLoggingDirectives=function(f){return f&&f.runs&&f.runs.length>0&&f.runs[0]&&f.runs[0].loggingDirectives?f.runs[0].loggingDirectives:null};
Jv.prototype.dataChanged=Jv.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Jv.prototype,"rendererBehavior",void 0);_.E([_.B(hSM.YtMacroReplacementBehavior),_.N("design:type",Object)],Jv.prototype,"macroReplacementBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Jv.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],Jv.prototype,"navigationEndpoint",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Jv.prototype,"enableColors",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Jv.prototype,"modern",void 0);_.E([_.F(),_.N("design:type",Object)],Jv.prototype,"buttonOverrides",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Jv.prototype,"dataChanged",null);_.E([_.u({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],Jv);
_.G(Jv,"ytd-action-basic-immersive-content-renderer",function(){if(sdD!==void 0)return sdD;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return sdD=f},{mode:1});var ZS1;var Jf1;var lx=function(){return _.K.apply(this,arguments)||this};
_.e(lx,_.K);lx.prototype.dataChanged=function(){var f;((f=this.data)==null?void 0:f.backgroundColor)!==void 0&&_.Sr(this.hostElement,{"--bgu-color":_.NS(this.data.backgroundColor)})};
lx.prototype.onImageTileClick=function(){var f;((f=this.data)==null?0:f.navigationEndpoint)&&_.YE(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var H;((H=this.data)==null?0:H.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.H7.Object.defineProperties(lx.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var f;if(((f=this.data)==null?void 0:f.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 f;return((f=this.data)==null?void 0:f.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var f,H,v;if(((f=this.data)==null?void 0:(H=f.detailsLine)==null?void 0:H.texts)!=null&&((v=this.data)==null?void 0:v.detailsLine.texts.length)>0){var t;return(t=this.data)==null?void 0:t.detailsLine.texts.map(function(M){return M.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var f,H,v;if(((f=this.data)==null?void 0:(H=f.optionalDetailsLine)==null?void 0:H.texts)!=null&&((v=this.data)==null?void 0:v.optionalDetailsLine.texts.length)>0){var t;return(t=this.data)==null?void 0:t.optionalDetailsLine.texts.map(function(M){return M.text}).join("")}return null}}});
lx.prototype.dataChanged=lx.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],lx.prototype,"rendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],lx.prototype,"componentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],lx.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.z("data.backgroundColor"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],lx.prototype,"hasBackgroundColor",null);
_.E([_.z("data.objectFit"),_.N("design:type",Object),_.N("design:paramtypes",[])],lx.prototype,"getObjectFit",null);_.E([_.F({reflectToAttribute:!0}),_.z("data.tileRenderingStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],lx.prototype,"hasTileMetadata",null);_.E([_.z("data.detailsLine"),_.N("design:type",Object),_.N("design:paramtypes",[])],lx.prototype,"getSecondaryDetails",null);
_.E([_.z("data.optionalDetailsLine"),_.N("design:type",Object),_.N("design:paramtypes",[])],lx.prototype,"getOptionalDetails",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lx.prototype,"dataChanged",null);_.E([_.u({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],lx);
_.G(lx,"ytd-image-tile-renderer",function(){if(Jf1!==void 0)return Jf1;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Jf1=f},{mode:1});var lce;var UA=function(){return _.K.apply(this,arguments)||this};
_.e(UA,_.K);UA.prototype.getOpenLinkIcon=function(){return _.J("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
UA.prototype.onSitelinkTap=function(){_.YE(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.J("kevlar_command_handler_migration_killswitch"))_.Oj(this.hostElement,this.data.clickCommands,this.hostElement);else for(var f=_.V(this.data.clickCommands),H=f.next();!H.done;H=f.next())this.ytComponentBehavior.resolveCommand(H.value)};
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],UA.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],UA.prototype,"rendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],UA.prototype,"data",void 0);_.E([_.u({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],UA);
_.G(UA,"ytd-sitelink-renderer",function(){if(lce!==void 0)return lce;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return lce=f},{mode:1});var eZ=function(){var f=_.K.apply(this,arguments)||this;f.paddingFix=_.J("enable_ads_web_ep_buenos_aires_and_padding_fix");return f};
_.e(eZ,_.K);eZ.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"}}}};
eZ.prototype.dataChanged=function(){var f=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(H){H.clickTrackingParams&&delete H.clickTrackingParams;f.ytMacroReplacementBehavior.sendServiceRequestAction([H])})};
eZ.prototype.shouldHideFooter=function(f){return!(f&&_.J("use_ads_engagement_panel_desktop_footer_cta"))};
_.H7.Object.defineProperties(eZ.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var f,H;return((f=this.data)==null?void 0:f.imageTileRenderers)===void 0||((H=this.data)==null?void 0:H.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(v){var t;return(t=_.U(v,v5A))==null?void 0:t.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var f,H;return((f=this.data)==null?void 0:f.imageTileRenderers)===void 0||((H=this.data)==null?void 0:H.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(v){var t;return((t=_.U(v,v5A))==null?void 0:t.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
eZ.prototype.dataChanged=eZ.prototype.dataChanged;_.E([_.B(hSM.YtMacroReplacementBehavior),_.N("design:type",Object)],eZ.prototype,"ytMacroReplacementBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],eZ.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],eZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],eZ.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],eZ.prototype,"paddingFix",void 0);_.E([_.F({reflectToAttribute:!0}),_.z("data.imageTileRenderers"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],eZ.prototype,"removeBorderFromImageTiles",null);_.E([_.F({reflectToAttribute:!0}),_.z("data.imageTileRenderers"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],eZ.prototype,"useFooteredMetadataRenderingStyle",null);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],eZ.prototype,"dataChanged",null);_.E([_.u({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],eZ);
_.G(eZ,"ytd-action-engagement-panel-content-renderer",function(){if(ZS1!==void 0)return ZS1;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return ZS1=f},{mode:1});var UeO;var eSO=_.a(function(f){var H=f.data;var v=f.customCommandResolver;return _.O("ad-grid-card-image-full-metadata-view-model",{class:function(){var t;return((t=H().interaction)==null?0:t.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.tE(_.MV({visibilityCallback:function(t){var M,h=(M=H().interaction)==null?void 0:M.onFirstVisible;t&&h&&_.XA(h)},
showOption:_.f_}),_.as(function(){return H().interaction},v)),
"aria-label":function(){var t,M;return(t=H().interaction)==null?void 0:(M=t.accessibility)==null?void 0:M.label}},_.O("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.O(_.Jj,{data:function(){return H().adImage}},{adImageViewModel:function(t){return _.O(_.I$,{data:t.data,
customCommandResolver:v})}})),_.O("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.O(_.g,{cond:function(){return H().headline},
then:function(t){return _.O(_.iq,{text:t,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.O(_.g,{cond:function(){return H().detailsLine},
then:function(t){return _.O("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.O(_.Jj,{data:t},{adDetailsLineViewModel:function(M){return _.O(_.yc,{data:M.data,customCommandResolver:v,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.O(_.g,{cond:function(){return H().secondaryDetailsLine},
then:function(t){return _.O("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.O(_.Jj,{data:t},{adDetailsLineViewModel:function(M){return _.O(_.yc,{data:M.data,customCommandResolver:v,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"sk");var Lho=_.a(function(f){var H=f.data;var v=f.customCommandResolver;return _.O("ad-grid-card-image-view-model",{class:function(){var t;return((t=H().interaction)==null?0:t.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.tE(_.MV({visibilityCallback:function(t){var M,h=(M=H().interaction)==null?void 0:M.onFirstVisible;t&&h&&_.XA(h)},
showOption:_.f_}),_.as(function(){return H().interaction},v)),
"aria-label":function(){var t,M;return(t=H().interaction)==null?void 0:(M=t.accessibility)==null?void 0:M.label}},_.O(_.Jj,{data:function(){return H().adImage}},{adImageViewModel:function(t){return _.O(_.I$,{data:t.data,
customCommandResolver:v})}}),_.O("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.O(_.Jj,{data:function(){return H().adCardBadge}},{adCardBadgeViewModel:_.JwT})))},"tk");var xee=_.a(function(f){var H=f.data;var v=f.customCommandResolver;return _.O("ad-grid-card-text-view-model",{class:function(){var t;return((t=H().interaction)==null?0:t.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.tE(_.MV({visibilityCallback:function(t){var M,h=(M=H().interaction)==null?void 0:M.onFirstVisible;t&&h&&_.XA(h)},
showOption:_.f_}),_.as(function(){return H().interaction},v)),
"aria-label":function(){var t,M;return(t=H().interaction)==null?void 0:(M=t.accessibility)==null?void 0:M.label}},_.O("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.O(_.g,{cond:function(){return H().title},
then:function(t){return _.O(_.iq,{text:t,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.O("div",{class:function(){return _.J("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.O(_.eK,{each:function(){var t;
return((t=H())==null?void 0:t.descriptions)||[]},
keyBy:"INDEX"},function(t){return _.O(_.iq,{text:t,className:function(){return _.J("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.O("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.O(_.Jj,{data:function(){return H().moreInfoButton}},{adButtonViewModel:function(t){return _.O(_.vO,{data:t.data,
customCommandResolver:v})}})))},"uk");var BUe=_.a(function(f){var H=f.data;var v=f.customCommandResolver;var t=f.adGridCardCollectionStyle;return _.O("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.tE(_.MV({visibilityCallback:function(M){var h,y=(h=H().interaction)==null?void 0:h.onFirstVisible;M&&y&&_.XA(y)},
showOption:_.f_})),style:function(){return"grid-template-columns: repeat("+ggM(t?t():H().style)+", minmax(0, 1fr));"}},_.O(_.Jj,{data:function(){var M;
return(M=H())==null?void 0:M.gridCards}},{adGridCardImageViewModel:function(M){return _.O(Lho,{data:M.data,
customCommandResolver:v})},
adGridCardImageFullMetadataViewModel:function(M){return _.O(eSO,{data:M.data,customCommandResolver:v})},
adGridCardTextViewModel:function(M){return _.O(xee,{data:M.data,customCommandResolver:v})}}))},"vk");_.yn(_.a(function(f){var H=f.data;return _.O("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.tE(_.MV({visibilityCallback:function(v){var t,M=(t=H().interaction)==null?void 0:t.onFirstVisible;v&&M&&_.XA(M)},
showOption:_.f_}),_.as(function(){return H().interaction},IhL))},_.O("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.O(_.g,{cond:_.W0_("(min-width: "+((0,_.P$)()+_.QN)+"px)"),
then:function(){return _.O(_.Jj,{data:function(){return H().adGridCardCollection}},{adGridCardCollectionViewModel:function(v){return _.O(BUe,{data:v.data,
customCommandResolver:IhL})}})},
else:function(){return _.O(_.Jj,{data:function(){return H().adGridCardCollection}},{adGridCardCollectionViewModel:function(v){return _.O(BUe,{data:v.data,
customCommandResolver:IhL,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.O("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.O(_.Jj,{data:function(){return H().adButton}},{adButtonViewModel:function(v){return _.O(_.vO,{data:v.data,
customCommandResolver:IhL})}})))},"wk"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.ki}});_.yn(_.a(function(f){var H=f.data;return _.O("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.tE(_.MV({visibilityCallback:function(v){var t,M=(t=H().interaction)==null?void 0:t.onFirstVisible;v&&M&&_.XA(M)},
showOption:_.f_}),_.as(function(){return H().interaction},SbM))},_.O("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.O(_.Jj,{data:function(){if(_.W0_("(min-width: "+((0,_.P$)()+_.QN)+"px)")())var v=H().adGridCardCollection;
else{v=Object.assign({},_.U(H().adGridCardCollection,tp1));var t;v.gridCards!==void 0&&((t=v.gridCards)==null?void 0:t.length)>1?v.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":v.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";v={adGridCardCollectionViewModel:v}}return v}},{adGridCardCollectionViewModel:function(v){return _.O(BUe,{data:v.data,
customCommandResolver:SbM})}})),_.O("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.O(_.Jj,{data:function(){return H().adButton}},{adButtonViewModel:function(v){return _.O(_.vO,{data:v.data,
customCommandResolver:SbM})}})))},"xk"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.ki}});var L$=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return f};
_.e(L$,_.K);_.R=L$.prototype;_.R.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"}}}};
_.R.attached=function(){this.getDataFromPlayerAndRender()};
_.R.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.R.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.R.getDataFromPlayerAndRender=function(){var f=this,H=_.vx(this.hostElement);H&&H.getPlayerPromise().then(function(v){f.getCachedDataAndListen(v)})};
_.R.getCachedDataAndListen=function(f){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(f,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(f,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=f)};
_.R.resolveCachedActions=function(){var f=_.ES("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(f=f&&f())&&!_.QA.isEmpty(f)&&this.sendUpdateEngagementPanelAction(f);(f=(f=_.ES("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&f())&&!_.QA.isEmpty(f)&&this.sendChangeEngagementPanelVisibilityAction(f);(f=(f=_.ES("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&f())&&!_.QA.isEmpty(f)&&this.sendScrollToEngagementPanelCommand(f)};
_.R.sendUpdateEngagementPanelAction=function(f){var H;_.mb(this.hostElement,"yt-update-engagement-panel-action",[(H=_.QA.get(f,"action"))!=null?H:f])};
_.R.sendChangeEngagementPanelVisibilityAction=function(f){_.mb(this.hostElement,"yt-change-engagement-panel-visibility-action",[f])};
_.R.sendScrollToEngagementPanelCommand=function(f){_.mb(this.hostElement,"yt-scroll-to-engagement-panel-command",[f])};
_.R.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.J("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.pb(Error("Io"))};
L$.prototype.dataChanged=L$.prototype.dataChanged;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],L$.prototype,"actionHandlerBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],L$.prototype,"componentBehavior",void 0);_.E([_.B(_.im.YtPlayerListenerBehavior),_.N("design:type",_.kI)],L$.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],L$.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],L$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],L$.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],L$.prototype,"player",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],L$.prototype,"dataChanged",null);_.E([_.u({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],L$);
_.G(L$,"ytd-ads-engagement-panel-content-renderer",function(){if(UeO!==void 0)return UeO;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);
return UeO=f},{mode:1});var zSU;var xo=function(){var f=_.K.apply(this,arguments)||this;f.player=null;f.JSC$22577_playerEvents=new Map;f.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return f};
_.e(xo,_.K);_.R=xo.prototype;_.R.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]]"}}}}}};
_.R.created=function(){this.player=null;this.JSC$22577_playerEvents=new Map;this.JSC$22577_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$22577_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22577_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22577_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.R.attached=function(){var f=this,H=_.vx();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));H&&H.getPlayerPromise().then(function(v){f.setPlayer(v);f.set("isPageLoad",!1)})};
_.R.setPlayer=function(f){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22577_playerEvents);this.set("player",f);f&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(f,this.JSC$22577_playerEvents),f.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.R.onLoopRangeChange=function(f){var H=_.t8().resolve(_.vh(_.fT));if((!H||H.isOnWatch())&&this.hostElement.clientHeight){var v;!f&&((v=this.data)==null?0:v.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.R.onVideoProgress=function(f){var H,v,t=((H=this.player)==null?void 0:(v=H.getPresentingPlayerType)==null?void 0:v.call(H))===2;this.isAdPlaying!==t&&this.set("isAdPlaying",t);var M;if(!t&&(M=this.player)!=null&&M.getLoopRange()){v=this.player.getLoopRange();H=v.startTimeMs;v=v.endTimeMs;t=this.player.getProgressState(1).seekableStart;var h;H<t*1E3&&((h=this.data)==null?0:h.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
f=v<f*1E3;var y;((y=this.player)==null?0:y.getLoopRange())&&f&&this.player.seekTo(H/1E3)}};
_.R.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.R.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.R.onYtDeleteClipEngagementPanelCommand=function(f){_.U(f,jFq).command&&this.ytComponentBehavior.resolveCommand(_.U(f,jFq).command)};
_.H7.Object.defineProperties(xo.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.voteCount)||_.qO("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],xo.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],xo.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],xo.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],xo.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.im.YtPlayerListenerBehavior),_.N("design:type",_.kI)],xo.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],xo.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],xo.prototype,"isAdPlaying",void 0);_.E([_.F({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],xo.prototype,"isPageLoad",void 0);_.E([_.F({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],xo.prototype,"isDarkTheme",void 0);
_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],xo.prototype,"voteCount",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],xo.prototype,"channelEndpoint",null);_.E([_.z("channelEndpoint"),_.N("design:type",Object),_.N("design:paramtypes",[])],xo.prototype,"channelHref",null);_.E([_.u({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],xo);
_.G(xo,"ytd-clip-attribution-renderer",function(){if(zSU!==void 0)return zSU;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return zSU=f},{mode:1});var FhA;var Bf=function(){var f=_.K.apply(this,arguments)||this;f.player=null;f.JSC$22582_playerEvents=new Map;return f};
_.e(Bf,_.K);_.R=Bf.prototype;_.R.created=function(){this.player=null;this.JSC$22582_playerEvents=new Map;this.JSC$22582_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22582_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22582_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.R.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.R.attached=function(){var f=this,H=_.vx();H&&H.getPlayerPromise().then(function(v){f.setPlayer(v);f.set("isPageLoad",!1)})};
_.R.setPlayer=function(f){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22582_playerEvents);this.set("player",f);if(f){this.ytPlayerListenerBehavior.listenToPlayerEvents(f,this.JSC$22582_playerEvents);var H;(f==null?void 0:(H=f.getPresentingPlayerType)==null?void 0:H.call(f))===2&&this.playerAdStartHandler()}};
_.R.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.R.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.R.onVideoProgress=function(){var f,H,v=((f=this.player)==null?void 0:(H=f.getPresentingPlayerType)==null?void 0:H.call(f))===2;this.isAdPlaying!==v&&this.set("isAdPlaying",v)};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Bf.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Bf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.im.YtPlayerListenerBehavior),_.N("design:type",_.kI)],Bf.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Bf.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Bf.prototype,"isAdPlaying",void 0);
_.E([_.F({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],Bf.prototype,"isPageLoad",void 0);_.E([_.u({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],Bf);
_.G(Bf,"ytd-clip-section-footer-renderer",function(){if(FhA!==void 0)return FhA;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return FhA=f},{mode:1});var rfD;var KhU;var zG=function(){return _.K.apply(this,arguments)||this};
_.e(zG,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],zG.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],zG.prototype,"data",void 0);_.E([_.u({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],zG);
_.G(zG,"ytd-clip-ad-state-renderer",function(){if(KhU!==void 0)return KhU;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return KhU=f},{mode:1});var De1;var Fq=function(){var f=_.K.apply(this,arguments)||this;f.value="";f.valid=!1;f.userChangedValue=!1;f.disabled=!1;f.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return f};
_.e(Fq,_.K);_.R=Fq.prototype;_.R.detached=function(){this.userChangedValue=!1};
_.R.handleKeyDown=function(f){if(_.hZ)var H=13;else _.gss&&_.Rp?H=13:H=13;f.keyCode===H&&f.preventDefault()};
_.R.handleInput=function(){var f=_.mF(this.hostElement).querySelector("#title");if(f){var H=(f.value||"").replace(/\r|\n/g," ");this.set("value",H);f.value=H;this.valid=f.validate();this.userChangedValue=!0}};
_.R.handleBlur=function(){this.valid=_.mF(this.hostElement).querySelector("#title").validate()};
_.R.onValueChanged=function(){_.YE(this.hostElement,"title-changed",{title:this.value})};
_.R.onValidChanged=function(){_.YE(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.R.setInput=function(f,H){var v=_.mF(this.hostElement).querySelector("#title");v&&(v.value=f,this.handleInput(),H&&(v.invalid=!1,this.valid=!0))};
_.R.onClipCreationDisable=function(){this.set("disabled",!0)};
_.R.onClipCreationEnable=function(){this.set("disabled",!1)};
_.R.onClipCreationVisibilityChange=function(f){var H=this;f.visible?requestAnimationFrame(function(){var v;((v=_.mF(H.hostElement).querySelector("#title"))==null?void 0:v.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
Fq.prototype.onValidChanged=Fq.prototype.onValidChanged;Fq.prototype.onValueChanged=Fq.prototype.onValueChanged;Fq.prototype.handleBlur=Fq.prototype.handleBlur;Fq.prototype.handleInput=Fq.prototype.handleInput;Fq.prototype.handleKeyDown=Fq.prototype.handleKeyDown;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Fq.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Fq.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],Fq.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],Fq.prototype,"value",void 0);_.E([_.F(),_.N("design:type",Object)],Fq.prototype,"valid",void 0);_.E([_.F(),_.N("design:type",Object)],Fq.prototype,"userChangedValue",void 0);_.E([_.F(),_.N("design:type",Object)],Fq.prototype,"disabled",void 0);_.E([_.sE("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],Fq.prototype,"handleKeyDown",null);
_.E([_.sE("input"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fq.prototype,"handleInput",null);_.E([_.sE("blur"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fq.prototype,"handleBlur",null);_.E([_.Zw("value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fq.prototype,"onValueChanged",null);
_.E([_.Zw("valid"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fq.prototype,"onValidChanged",null);_.E([_.u({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],Fq);
_.G(Fq,"ytd-clip-creation-text-input-renderer",function(){if(De1!==void 0)return De1;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return De1=f},{mode:1});var ouU;var nuM;var pjv;var QdL;var uPe;var rW=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};f.pendingStoryboardImages_={};f.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];f.tickLabelInterval=30;f.mediumTickInterval=5;f.largeTickInterval=15;f.aboveRulerHeight=32;f.rulerHeight=50;f.smallTickHeight=4;f.mediumTickHeight=8;f.largeTickHeight=16;f.mediaListeners_=
{};return f};
_.e(rW,_.K);_.R=rW.prototype;_.R.attached=function(){var f=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(H){H=_.V(["screen and (min-resolution: "+H+")","screen and (max-resolution: "+H+")"]);for(var v=H.next();!v.done;v=H.next()){v=v.value;var t=window.matchMedia(v);t&&(f.mediaListeners_[v]=f.updatePixelRatio_.bind(f),t.addEventListener?t.addEventListener("change",f.mediaListeners_[v]):t.addListener?t.addListener(f.mediaListeners_[v]):delete f.mediaListeners_[v])}})};
_.R.detached=function(){this.setPlayer(null);for(var f=_.V(Object.keys(this.mediaListeners_)),H=f.next();!H.done;H=f.next()){var v=H.value;H=this.mediaListeners_[v];(v=window.matchMedia(v))&&(v.removeEventListener?v.removeEventListener("change",H):v.removeListener&&v.removeListener(H))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.R.onVisibilityChangedAction_=function(f){var H=this;f.visible&&!this.player_&&(f=_.vx())&&f.getPlayerPromise().then(function(v){H.setPlayer(v)})};
_.R.setPlayer=function(f){f&&this.set("player_",f)};
_.R.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.R.setUpCanvas_=function(){var f=this.rulerWidth,H=this.devicePixelRatio_,v=this.visible;this.set("canvasReady_",!1);if(v&&H!==0){v=this.aboveRulerHeight+this.rulerHeight;var t=_.mF(this.hostElement).querySelector("#ticks");t.width=f*H;t.height=v*H;t.style.width=f+"px";t.style.height=v+"px";t.getContext("2d").scale(H,H);this.set("canvasReady_",!0)}};
_.R.drawRuler_=function(f,H,v,t,M,h,y,m,W,I,S,d){f&&v&&H&&(f=_.mF(this.hostElement).querySelector("#ticks"),H=f.getContext("2d"),H.clearRect(0,0,f.width,f.height),H.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),H.lineWidth=2,H.beginPath(),H.moveTo(0,this.aboveRulerHeight),H.lineTo(f.width,this.aboveRulerHeight),H.moveTo(0,f.height),H.lineTo(f.width,f.height),H.stroke(),this.drawRulerTicks_(f,h,M,t),this.drawStoryboardImages_(f,v,h,M,t),H.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
H.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(y-h,t,!1),this.rulerHeight),v=this.timeToPixels_(m-h,t,!1),H.fillRect(v,this.aboveRulerHeight,f.width-v,this.rulerHeight),this.drawSpeedLines_(f,h,d))};
_.R.drawRulerTicks_=function(f,H,v,t){var M=f.getContext("2d");M.save();M.lineWidth=1;for(var h=Math.floor(Math.max(0,H-this.tickLabelInterval));h<H+v;h++){M.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var y=(h-H)*t;M.beginPath();M.moveTo(y,f.height);var m=this.smallTickHeight;h%this.largeTickInterval===0?m=this.largeTickHeight:h%this.mediumTickInterval===0&&(m=this.mediumTickHeight);M.lineTo(y,f.height-m);M.stroke();h%this.tickLabelInterval===0&&(M.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),M.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),M.fillText(B3(h),y+4,12),M.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),M.moveTo(y,0),M.lineTo(y,this.aboveRulerHeight),M.stroke())}M.restore()};
_.R.percentToHex_=function(f){f=Math.round(f*255).toString(16);f.length<2&&(f="0"+f);return f};
_.R.drawSpeedLines_=function(f,H,v){var t=f.getContext("2d");t.save();var M=Math.min(25,Math.abs(v)-15)/25,h=f.width*.3*M,y=f.width*-.3,m=f.width*1.3,W=this.aboveRulerHeight;f=f.height;var I=Math.round(4*M),S=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");S.length<7&&(S="#"+S.substring(1,4).repeat(2));var d=this.percentToHex_(.5+M/2);d=S+d;S+="00";if(M>0)for(M=0;M<I;M++){var Z=y+Math.random()*(m-y),l=W+Math.random()*(f-W),L=h+H%h,r=t.createLinearGradient(Z,l,Z+L,l);
v<0?(r.addColorStop(0,d),r.addColorStop(.4,d),r.addColorStop(.9,S)):(r.addColorStop(.1,S),r.addColorStop(.6,d),r.addColorStop(1,d));t.strokeStyle=r;t.lineWidth=1;t.beginPath();t.moveTo(Z,l);t.lineTo(Z+L,l);t.stroke()}t.restore()};
_.R.getStoryboardForTime_=function(f,H,v){v===void 0&&(v=H.getNumberOfStoryboardLevels()-1);f=H.getStoryboardFrameIndex(f,v);return H.getStoryboardFrame(f,v)};
_.R.drawStoryboardImages_=function(f,H,v,t,M){if(!this.disabled){f=f.getContext("2d");var h=this.getStoryboardForTime_(0,H);if(h){var y=h.width/h.columns;h=h.height/h.rows;var m=y/h,W=this.rulerHeight*m;W=this.tickLabelInterval*(m<this.tickLabelInterval*M/this.rulerHeight?1/Math.floor(this.tickLabelInterval*M/W):Math.round(W/(this.tickLabelInterval*M)));var I=W*M,S=this.rulerHeight,d=I/this.rulerHeight,Z=Math.floor(Math.max(0,v-W));for(Z-=Z%W;Z<v+t;Z+=W){var l=this.getStoryboardForTime_(Z,H),L=this.getPreloadedStoryboard_(l.url);
if(L){var r=(Z-v)*M,n=this.aboveRulerHeight,Q=l.column*y,C=l.row*h;if(m<d){var w=S/(I/m);l=y;w*=h;C+=(h-w)/2}else l=I/(S*m)*y,w=h,Q+=(y-l)/2;f.drawImage(L,Q,C,l,w,r,n,I,S)}else this.fetchStoryboardImage_(l)}}}};
_.R.getPreloadedStoryboard_=function(f){return this.storyboardImages_.find(function(H){if(H.src==f)return!0;var v=H.src.indexOf(f);return v!=-1&&v==H.src.length-f.length})};
_.R.fetchStoryboardImage_=function(f){var H=this,v=this.getPreloadedStoryboard_(f.url),t=this.pendingStoryboardImages_[f.url];v||t!==void 0||(v=new Promise(function(M){var h=new Image(f.width,f.height);h.src=f.url;h.onload=function(){M(h)};
h.onerror=function(){M(null)}}),this.pendingStoryboardImages_[f.url]=v,v.then(function(M){M&&H.push("storyboardImages_",M);
return M}).finally(function(){delete H.pendingStoryboardImages_[f.url]}))};
_.R.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.R.timeToPixels_=function(f,H,v){f*=H;return v===void 0||v?f+"px":f};
_.R.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
rW.prototype.drawRuler_=rW.prototype.drawRuler_;rW.prototype.setUpCanvas_=rW.prototype.setUpCanvas_;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],rW.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],rW.prototype,"ytRendererBehavior",void 0);_.E([_.F({value:0}),_.N("design:type",Number)],rW.prototype,"start",void 0);_.E([_.F({value:30}),_.N("design:type",Number)],rW.prototype,"end",void 0);
_.E([_.F({value:!1}),_.N("design:type",Boolean)],rW.prototype,"visible",void 0);_.E([_.F(),_.N("design:type",Object)],rW.prototype,"player_",void 0);_.E([_.F(),_.N("design:type",Number)],rW.prototype,"tickSpacing",void 0);_.E([_.F(),_.N("design:type",Number)],rW.prototype,"windowSizeSec",void 0);_.E([_.F({value:0}),_.N("design:type",Number)],rW.prototype,"rulerWidth",void 0);_.E([_.F({value:0}),_.N("design:type",Number)],rW.prototype,"rulerShift",void 0);
_.E([_.F({value:!1}),_.N("design:type",Boolean)],rW.prototype,"canvasReady_",void 0);_.E([_.F({value:function(){return[]}}),
_.N("design:type",Array)],rW.prototype,"storyboardImages_",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],rW.prototype,"disabled",void 0);_.E([_.F({value:0}),_.N("design:type",Number)],rW.prototype,"forceRender_",void 0);_.E([_.F({value:1}),_.N("design:type",Number)],rW.prototype,"devicePixelRatio_",void 0);_.E([_.F({value:0}),_.N("design:type",Number)],rW.prototype,"windowSpeed",void 0);
_.E([_.Zw("visible","devicePixelRatio_","rulerWidth"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rW.prototype,"setUpCanvas_",null);
_.E([_.Zw("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.N("design:type",Function),_.N("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.N("design:returntype")],rW.prototype,"drawRuler_",null);_.E([_.GW({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],rW);
_.G(rW,"yt-clip-creation-scrubber-canvas",function(){if(uPe===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);uPe=f}f=uPe;return f},
{mode:2});var ac1;var Pk1;var K$=function(){var f=_.K.apply(this,arguments)||this;f.start=0;f.end=30;f.visible=!1;f.draggingLeft_=!1;f.draggingRight_=!1;f.draggingRuler_=!1;f.draggingWindow_=!1;f.seekableStart=0;f.seekableEnd=0;f.rulerWidth_=0;f.rulerShift_=0;f.windowSlideSpeed=0;f.disabled=!1;f.initialized=!1;f.durationAccessibilityLabel="";f.activeLoopRange_=!1;f.rulerDragMouseStart_=0;f.rulerDragRulerStart_=0;f.rulerDragStartTime_=0;f.rulerDragEndTime_=0;f.dragMouseLastX_=0;f.scrollInterval_=null;f.scrubberVe_=null;f.boundHandlers_=
{};f.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return f};
_.e(K$,_.K);_.R=K$.prototype;
_.R.created=function(){var f=this;this.JSC$22595_playerEvents=new Map;this.JSC$22595_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$22595_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$22595_playerEvents.set("onStateChange",this.onStateChange_);var H={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(H).forEach(function(v){f.boundHandlers_[v]=H[v].bind(f)})};
_.R.attached=function(){this.activeLoopRange_=!1;_.mF(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.mF(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.$$(156731)};
_.R.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.mF(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.mF(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.R.onVisibilityChangedAction_=function(f){var H=this;f.visible&&!this.player_&&(f=_.vx())&&f.getPlayerPromise().then(function(v){H.setPlayer(v)})};
_.R.setPlayer=function(f){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22595_playerEvents);f&&(this.set("player_",f),this.ytPlayerListenerBehavior.listenToPlayerEvents(f,this.JSC$22595_playerEvents))};
_.R.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.R.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.R.beginHandleDrag_=function(f){this.disabled||(f.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=f.clientX,f.target===_.mF(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():f.target===_.mF(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.R.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.R.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.R.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.R.beginRulerDrag_=function(f){this.disabled||(f.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=f.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.R.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.R.beginWindowScroll_=function(){var f=this;this.scrollInterval_=setInterval(function(){var H=f.windowSlideSpeed;if(H=_.ZEr(f.start,f.boundedRulerStartLimit_())?H-.1:_.ZEr(f.end,f.boundedRulerEndLimit_())?H+.1:0){var v=f.capRulerOffset_(f.rulerShift_+H);v==f.rulerShift_?H=0:(f.set("rulerShift_",v),_.YE(f.hostElement,"set-fixed-length-range",{start:f.start+H,duration:f.end-f.start}))}f.set("windowSlideSpeed",H)},33)};
_.R.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.R.endDrag_=function(){this.logClick();var f=void 0;this.draggingRight_?f=this.end-1:this.draggingLeft_&&(f=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,f);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))};
_.R.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.R.updateRulerSize_=function(){this.set("rulerWidth_",_.mF(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.R.handleMouseDrag_=function(f){f.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(f):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(f):this.draggingWindow_&&this.handleWindowDrag_(f))};
_.R.handleRulerDrag_=function(f){f=this.pixelsToTime_(f.clientX-this.rulerDragMouseStart_);f=this.capRulerOffset_(this.rulerDragRulerStart_-f);this.set("rulerShift_",f);var H=this.rulerDragStartTime_-(this.rulerDragRulerStart_-f);_.YE(this.hostElement,"set-fixed-length-range",{start:H,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-f)-H})};
_.R.handleWindowDrag_=function(f){var H=f.clientX-this.dragMouseLastX_;this.dragMouseLastX_=f.clientX;f=this.pixelsToTime_(H);_.YE(this.hostElement,"set-fixed-length-range",{start:this.start+f,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.R.capRulerOffset_=function(f){var H=this.seekableStart-this.pixelsToTime_(16),v=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(H,f),v)};
_.R.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.R.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.R.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.R.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.R.handleWindowHandleDrag_=function(f){var H=f.clientX-this.dragMouseLastX_;this.dragMouseLastX_=f.clientX;f=this.pixelsToTime_(H);if(this.draggingLeft_){var v=this.start+f;var t=this.end}else this.draggingRight_&&(v=this.start,t=this.end+f);_.YE(this.hostElement,"set-range",{start:v,end:t,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.R.onVideoProgress_=function(f){this.disabled||(f=this.timeToPixels_(f-this.rulerShift_,this.tickSpacing_),_.mF(this.hostElement).querySelector("#playhead").style.transform="translateX("+f+")")};
_.R.onClipCreationDisable_=function(){this.endDrag_()};
_.R.timeToPixels_=function(f,H,v){f*=H;return v===void 0||v?f+"px":f};
_.R.pixelsToTime_=function(f){return f/this.tickSpacing_};
_.R.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.R.centerRuler_=function(f,H,v){this.set("rulerShift_",this.capRulerOffset_(f+(H-f)/2-v/2))};
_.R.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.R.updateLoopRange_=function(f,H,v,t,M,h,y){f&&(H&&t&&!v?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(f.pauseVideo(),f.seekTo(M,!1,void 0,void 0,50)):this.draggingRight_?(f.pauseVideo(),f.seekTo(h-.1,!1,void 0,void 0,50)):(y!==void 0?f.seekTo(y,!0,void 0,void 0,50):(H=f.getCurrentTime(),H<M||H>h?f.seekTo(M,!0,void 0,void 0,50):f.seekTo(H,!0,void 0,void 0,50)),f.playVideo()),f.setLoopRange({startTimeMs:M*1E3,endTimeMs:h*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(f.getCurrentTime())):
this.activeLoopRange_&&(f.setLoopRange(null),this.activeLoopRange_=!1))};
_.R.updateHandles_=function(){_.mF(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.mF(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.R.updateRuler_=function(){var f=this.end,H=this.start,v=this.draggableStartLimit_(),t=this.draggableEndLimit_();(H<v-.001||f>t+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.R.computeDurationLabel_=function(f,H){return f?f.replace("$clip_length",parseFloat(H).toFixed(1)):""};
_.R.computeDuration_=function(f,H){return this.isValidTime_(f)&&this.isValidTime_(H)&&f<H?H-f:0};
_.R.isValidTime_=function(f){return isNaN(parseFloat(f))||f<0?!1:this.player_?f>=this.seekableStart&&f<=this.seekableEnd:!0};
_.R.computeWindowSizeSec_=function(f,H,v){return Math.min((f||12E4)/1E3,v-H)};
_.R.computeTickSpacing_=function(f,H){return H?H/f:1};
_.R.onDragStateChanged_=function(){_.YE(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.R.centerRangeOnTime_=function(f){var H=this.duration;f=jne(f-H/2,H,this.seekableStart,this.seekableEnd);_.YE(this.hostElement,"set-fixed-length-range",{start:f.start,duration:f.end-f.start})};
_.R.nearlyLessThan_=function(f,H,v){return f+(v===void 0?1E-6:v)<H};
_.R.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var f=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(f,this.start)||this.nearlyLessThan_(this.end,f))&&this.centerRangeOnTime_(f)}};
_.R.onStateChange_=function(f){this.visible&&!this.disabled&&f==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.R.computeDragState_=function(f,H,v,t){return f?"left":H?"right":v?"ruler":t?"window":"none"};
_.R.logClick=function(){var f=_.uy(),H=_.Qe();f&&H&&this.scrubberVe_&&(_.J("combine_ve_grafts")?_.YP(_.UV(),this.scrubberVe_,H):_.Xl(f,H,this.scrubberVe_),_.Ti(f,this.scrubberVe_))};
K$.prototype.onDragStateChanged_=K$.prototype.onDragStateChanged_;K$.prototype.updateRuler_=K$.prototype.updateRuler_;K$.prototype.updateHandles_=K$.prototype.updateHandles_;K$.prototype.onUpdateLoopRange=K$.prototype.onUpdateLoopRange;K$.prototype.onInitializedChanged_=K$.prototype.onInitializedChanged_;K$.prototype.onVisibleChanged_=K$.prototype.onVisibleChanged_;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],K$.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.B(_.im.YtPlayerListenerBehavior),_.N("design:type",Object)],K$.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],K$.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],K$.prototype,"start",void 0);_.E([_.F(),_.N("design:type",Object)],K$.prototype,"end",void 0);_.E([_.F({computed:"computeDuration_(start, end)"}),_.N("design:type",Number)],K$.prototype,"duration",void 0);
_.E([_.F(),_.N("design:type",String)],K$.prototype,"lengthTemplate",void 0);_.E([_.F({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.N("design:type",String)],K$.prototype,"durationLabel",void 0);_.E([_.F(),_.N("design:type",Object)],K$.prototype,"visible",void 0);_.E([_.F(),_.N("design:type",Object)],K$.prototype,"player_",void 0);_.E([_.F(),_.N("design:type",Object)],K$.prototype,"draggingLeft_",void 0);_.E([_.F(),_.N("design:type",Object)],K$.prototype,"draggingRight_",void 0);
_.E([_.F(),_.N("design:type",Object)],K$.prototype,"draggingRuler_",void 0);_.E([_.F({value:!1}),_.N("design:type",Object)],K$.prototype,"draggingWindow_",void 0);_.E([_.F({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.N("design:type",Number)],K$.prototype,"tickSpacing_",void 0);_.E([_.F(),_.N("design:type",Object)],K$.prototype,"seekableStart",void 0);_.E([_.F(),_.N("design:type",Object)],K$.prototype,"seekableEnd",void 0);
_.E([_.F(),_.N("design:type",Number)],K$.prototype,"windowSizeMs",void 0);_.E([_.F({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.N("design:type",Number)],K$.prototype,"windowSizeSec_",void 0);_.E([_.F(),_.N("design:type",Object)],K$.prototype,"rulerWidth_",void 0);_.E([_.F(),_.N("design:type",Object)],K$.prototype,"rulerShift_",void 0);_.E([_.F(),_.N("design:type",Object)],K$.prototype,"windowSlideSpeed",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],K$.prototype,"disabled",void 0);_.E([_.F(),_.N("design:type",Object)],K$.prototype,"initialized",void 0);_.E([_.F(),_.N("design:type",Object)],K$.prototype,"durationAccessibilityLabel",void 0);_.E([_.F({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.N("design:type",String)],K$.prototype,"dragState",void 0);
_.E([_.Zw("visible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],K$.prototype,"onVisibleChanged_",null);_.E([_.Zw("initialized"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],K$.prototype,"onInitializedChanged_",null);_.E([_.Zw("player_","visible","disabled","initialized","start","end"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],K$.prototype,"onUpdateLoopRange",null);
_.E([_.Zw("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],K$.prototype,"updateHandles_",null);_.E([_.Zw("start","end"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],K$.prototype,"updateRuler_",null);
_.E([_.Zw("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],K$.prototype,"onDragStateChanged_",null);_.E([_.GW({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],K$);
_.G(K$,"yt-clip-creation-scrubber-view",function(){if(Pk1===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;ac1===void 0&&(ac1=document.createElement("template"));var t=ac1;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Pk1=f}f=Pk1;return f},{mode:2});var DT=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};f.startHighlightTimeout=0;f.endHighlightTimeout=0;return f};
_.e(DT,_.K);_.R=DT.prototype;_.R.attached=function(){var f=this;this.startInput.addEventListener("input",function(H){return f.handleStartInput_(H)});
this.endInput.addEventListener("input",function(H){return f.handleEndInput_(H)});
this.startInput.addEventListener("focusout",function(H){return f.handleStartBlur_(H)});
this.endInput.addEventListener("focusout",function(H){return f.handleEndBlur_(H)})};
_.R.setPlayer=function(f){this.set("player_",f)};
_.R.onSetFixedLengthRange_=function(f){var H=f.detail;f=H.start;var v=H.duration,t=H.startLimit;H=H.endLimit;t||(t=this.seekableStart_);H||(H=this.seekableEnd_);f=jne(f,v,t,H);this.start=f.start;this.end=f.end};
_.R.onSetRange_=function(f){var H=f.detail;f=H.start;var v=H.end,t=H.startLimit;H=H.endLimit;t||(t=this.seekableStart_);H||(H=this.seekableEnd_);if(f=sn1(f,v,t,H,this.minLengthSec,this.maxLengthSec))this.start=f.start,this.end=f.end};
_.R.updateInputs_=function(){var f=this.end,H=this.start;this.startInput.focused||(this.startInput.value=B3(H,!0));this.endInput.focused||(this.endInput.value=B3(f,!0))};
_.R.handleStartInput_=function(f){f=dTD(f.target.value);if(f===null)this.set("startValid",!1);else{var H=this.end,v=sn1(f,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);v?(this.set("endWillUpdate",v.end!==H),this.set("startValid",v.start===f)):this.set("startValid",!1)}};
_.R.handleEndInput_=function(f){f=dTD(f.target.value);if(f===null)this.set("endValid",!1);else{var H=this.start,v=ZrL(this.start,f,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);v?(this.set("startWillUpdate",v.start!==H),this.set("endValid",v.end===f)):this.set("endValid",!1)}};
_.R.handleStartBlur_=function(f){f=dTD(f.target.value);f===null?this.startInput.value=B3(this.start,!0):this.forceUpdateInputs_(sn1(f,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.R.handleEndBlur_=function(f){f=dTD(f.target.value);f===null?this.endInput.value=B3(this.end,!0):this.forceUpdateInputs_(ZrL(this.start,f,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.R.forceUpdateInputs_=function(f){f&&(this.start=f.start,this.end=f.end);this.startInput.value=B3(this.start,!0);this.endInput.value=B3(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.R.initializeClipRange_=function(){var f=this.seekableEnd_,H=this.seekableStart_,v=this.visible_,t=this.player_;if(!t||!v||H===null||!f)this.set("initialized",!1);else if(!this.initialized){var M=t.getCurrentTime(),h=this.getDefaultLengthSec_();v=t.getVideoData();var y=t.getPlayerState()==1,m=v.isLive;h=Math.min(h,f-H);M=Math.max(0,M);f=m?ZrL(M-h,M,H,f,this.minLengthSec,this.maxLengthSec):y?jne(M-h/2,h,H,f):jne(M,h,H,f);this.start=f.start;this.end=f.end;this.set("initialized",!0);v.isLive&&t.seekTo(f.start);
this.startInput.value=B3(this.start,!0);this.endInput.value=B3(this.end,!0)}};
_.R.onStartChanged_=function(){var f=this;_.YE(this.hostElement,"start-changed",{start:this.start});var H;isNaN((H=this.oldStart)!=null?H:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){f.set("highlightStart",!1);f.startHighlightTimeout=0;f.oldStart=f.start},3E3))};
_.R.onEndChanged_=function(){var f=this;_.YE(this.hostElement,"end-changed",{end:this.end});var H;isNaN((H=this.oldEnd)!=null?H:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){f.set("highlightEnd",!1);f.endHighlightTimeout=0;f.oldEnd=f.end},3E3))};
_.R.onVisibilityChangedAction_=function(f){var H=this;this.set("visible_",f.visible);this.visible_&&!this.player_&&(f=_.vx())&&f.getPlayerPromise().then(function(v){H.setPlayer(v)})};
_.R.computeMinLengthSec_=function(f){return f/1E3||5};
_.R.computeMaxLengthSec_=function(f){return f/1E3||60};
_.R.computeDefaultLengthSec_=function(f){return f/1E3};
_.R.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.R.computeSeekableStart_=function(f,H){return f&&H?f.getProgressState(1).seekableStart:0};
_.R.computeSeekableEnd_=function(f,H){return f&&H?f.getProgressState(1).seekableEnd:0};
_.R.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.R.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.R.onDragState_=function(f){this.set("highlightStart",f.detail.startChanging);this.set("highlightEnd",f.detail.endChanging)};
DT.prototype.onDragState_=DT.prototype.onDragState_;DT.prototype.onEndChanged_=DT.prototype.onEndChanged_;DT.prototype.onStartChanged_=DT.prototype.onStartChanged_;DT.prototype.initializeClipRange_=DT.prototype.initializeClipRange_;DT.prototype.updateInputs_=DT.prototype.updateInputs_;DT.prototype.onSetRange_=DT.prototype.onSetRange_;DT.prototype.onSetFixedLengthRange_=DT.prototype.onSetFixedLengthRange_;
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],DT.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],DT.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],DT.prototype,"data",void 0);_.E([_.F({value:0}),_.N("design:type",Number)],DT.prototype,"start",void 0);_.E([_.F({value:!0}),_.N("design:type",Boolean)],DT.prototype,"startValid",void 0);
_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],DT.prototype,"startWillUpdate",void 0);_.E([_.F({value:30}),_.N("design:type",Number)],DT.prototype,"end",void 0);_.E([_.F({value:!0}),_.N("design:type",Boolean)],DT.prototype,"endValid",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],DT.prototype,"endWillUpdate",void 0);_.E([_.F({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.N("design:type",Number)],DT.prototype,"minLengthSec",void 0);
_.E([_.F({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.N("design:type",Number)],DT.prototype,"maxLengthSec",void 0);_.E([_.F({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.N("design:type",Number)],DT.prototype,"defaultLengthSec",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],DT.prototype,"visible_",void 0);_.E([_.F(),_.N("design:type",Object)],DT.prototype,"player_",void 0);
_.E([_.F({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.N("design:type",Number)],DT.prototype,"seekableStart_",void 0);_.E([_.F({computed:"computeSeekableEnd_(player_, visible_)"}),_.N("design:type",Number)],DT.prototype,"seekableEnd_",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],DT.prototype,"initialized",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],DT.prototype,"disabled",void 0);
_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],DT.prototype,"highlightStart",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],DT.prototype,"highlightEnd",void 0);_.E([_.lJ("#start"),_.N("design:type",HTMLInputElement)],DT.prototype,"startInput",void 0);_.E([_.lJ("#end"),_.N("design:type",HTMLInputElement)],DT.prototype,"endInput",void 0);
_.E([_.sE("set-fixed-length-range"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],DT.prototype,"onSetFixedLengthRange_",null);_.E([_.sE("set-range"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],DT.prototype,"onSetRange_",null);_.E([_.Zw("start","end"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DT.prototype,"updateInputs_",null);
_.E([_.Zw("player_","visible_","seekableStart_","seekableEnd_"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DT.prototype,"initializeClipRange_",null);_.E([_.Zw("start"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DT.prototype,"onStartChanged_",null);_.E([_.Zw("end"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DT.prototype,"onEndChanged_",null);
_.E([_.sE("clips-drag-state"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],DT.prototype,"onDragState_",null);_.E([_.GW({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],DT);
_.G(DT,"yt-clip-creation-scrubber-renderer",function(){if(QdL===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;pjv===void 0&&(pjv=document.createElement("template"));var t=pjv;v.call(H,t.content.cloneNode(!0),f.content.firstChild);QdL=f}f=QdL;return f},{mode:2});var oy=function(){var f=_.K.apply(this,arguments)||this;f.player_=null;f.JSC$22609_playerEvents=new Map;f.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return f};
_.e(oy,_.K);_.R=oy.prototype;_.R.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"}}}};
_.R.created=function(){this.JSC$22609_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$22609_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$22609_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$22609_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.R.detached=function(){this.setPlayer(null)};
_.R.onVisibilityChangedAction_=function(f){var H=this,v;if((v=this.data)==null?0:v.externalVideoId){var t;this.videoId=(t=this.data)==null?void 0:t.externalVideoId}this.getPlayer().then(function(M){if(f.visible)H.returnTime=M.getCurrentTime(),H.isAtLiveHead=M.getProgressState().isAtLiveHead;else{var h=H.returnTime;H.isAtLiveHead&&(h=Number.POSITIVE_INFINITY);M.seekTo(h,void 0,void 0,void 0,51)}})};
_.R.getPlayer=function(){var f=this;if(!this.player_){var H=_.vx();if(H)return H.getPlayerPromise().then(function(v){f.setPlayer(v);return v})}return Promise.resolve(this.player_)};
_.R.setPlayer=function(f){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22609_playerEvents);if(f){this.player_=f;var H;((H=this.data)==null?0:H.externalVideoId)||this.set("videoId",f.getVideoData().video_id||"");var v;(f==null?void 0:(v=f.getPresentingPlayerType)==null?void 0:v.call(f))===2&&(this.set("isAdPlaying",!0),_.mb(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(f,this.JSC$22609_playerEvents)}};
_.R.ready=function(){_.mF(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.R.onTitleChanged_=function(f){this.set("titleValue",f.detail.title)};
_.R.onStartChanged_=function(f){this.set("start",f.detail.start)};
_.R.onEndChanged_=function(f){this.set("end",f.detail.end)};
_.R.onTitleValidChanged_=function(f){this.set("titleValid",f.detail.valid)};
_.R.onStartValidChanged_=function(f){this.set("startValid",f.detail.valid)};
_.R.onEndValidChanged_=function(f){this.set("endValid",f.detail.valid)};
_.R.onVideoDataChange_=function(){var f;if((f=this.data)==null||!f.externalVideoId){var H;this.set("videoId",((H=this.player_)==null?void 0:H.getVideoData().video_id)||"")}};
_.R.computeFormValid_=function(f,H,v,t){return!!(f&&H&&v&&t)};
_.R.computeCancelButton_=function(f,H,v){return f&&_.U(f,_.nv)?{buttonRenderer:Object.assign({},_.U(f,_.nv),{isDisabled:H||v})}:null};
_.R.computeSubmitButton_=function(f,H,v){return f&&_.U(f,_.nv)?{buttonRenderer:Object.assign({},_.U(f,_.nv),{command:void 0,isDisabled:!this.formValid||H||v})}:null};
_.R.computeSubmitCommand_=function(f){return f||null};
_.R.onSubmit_=function(f){var H=this;f.stopPropagation();f.preventDefault();this.submitCommand_&&(f={},f.comment_text=this.titleValue,f.clip_external_video_id=this.videoId,f.clip_offset_ms=parseInt(this.start*1E3,10),f.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.WV(this.hostElement,[this.submitCommand_,f]).then(function(){H.set("isLoading_",!1)},function(){H.set("isLoading_",!1)}))};
_.R.playerAdStartHandler_=function(){_.mb(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.R.playerAdEndHandler_=function(){_.mb(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.R.onVideoProgress_=function(){var f=this;this.getPlayer().then(function(H){var v,t=(H==null?void 0:(v=H.getPresentingPlayerType)==null?void 0:v.call(H))===2;f.isAdPlaying!==t&&(t?f.playerAdStartHandler_():f.playerAdEndHandler_())})};
oy.prototype.onEndValidChanged_=oy.prototype.onEndValidChanged_;oy.prototype.onStartValidChanged_=oy.prototype.onStartValidChanged_;oy.prototype.onTitleValidChanged_=oy.prototype.onTitleValidChanged_;oy.prototype.onEndChanged_=oy.prototype.onEndChanged_;oy.prototype.onStartChanged_=oy.prototype.onStartChanged_;oy.prototype.onTitleChanged_=oy.prototype.onTitleChanged_;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],oy.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.B(_.im.YtPlayerListenerBehavior),_.N("design:type",Object)],oy.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],oy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],oy.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],oy.prototype,"data",void 0);_.E([_.F({value:""}),_.N("design:type",String)],oy.prototype,"titleValue",void 0);
_.E([_.F({value:!1}),_.N("design:type",Boolean)],oy.prototype,"titleValid",void 0);_.E([_.F({value:0}),_.N("design:type",Number)],oy.prototype,"start",void 0);_.E([_.F({value:!0}),_.N("design:type",Boolean)],oy.prototype,"startValid",void 0);_.E([_.F({value:0}),_.N("design:type",Number)],oy.prototype,"end",void 0);_.E([_.F({value:!0}),_.N("design:type",Boolean)],oy.prototype,"endValid",void 0);_.E([_.F({value:""}),_.N("design:type",String)],oy.prototype,"videoId",void 0);
_.E([_.F({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.N("design:type",Boolean)],oy.prototype,"formValid",void 0);_.E([_.F({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.N("design:type",Object)],oy.prototype,"submitButton_",void 0);_.E([_.F({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.N("design:type",Object)],oy.prototype,"submitCommand_",void 0);
_.E([_.F({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.N("design:type",Object)],oy.prototype,"cancelButton_",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],oy.prototype,"isLoading_",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],oy.prototype,"isAdPlaying",void 0);_.E([_.F({value:0}),_.N("design:type",Number)],oy.prototype,"returnTime",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],oy.prototype,"isAtLiveHead",void 0);
_.E([_.sE("title-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],oy.prototype,"onTitleChanged_",null);_.E([_.sE("start-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],oy.prototype,"onStartChanged_",null);_.E([_.sE("end-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],oy.prototype,"onEndChanged_",null);
_.E([_.sE("title-valid-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],oy.prototype,"onTitleValidChanged_",null);_.E([_.sE("start-valid-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],oy.prototype,"onStartValidChanged_",null);_.E([_.sE("end-valid-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],oy.prototype,"onEndValidChanged_",null);
_.E([_.GW({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],oy);
_.G(oy,"yt-clip-creation-renderer",function(){if(nuM===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;ouU===void 0&&(ouU=document.createElement("template"));var t=ouU;v.call(H,t.content.cloneNode(!0),f.content.firstChild);nuM=f}f=nuM;return f},{mode:2});var n$=function(){return _.K.apply(this,arguments)||this};
_.e(n$,_.K);n$.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"}}}};
n$.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(f){return f.hasOwnProperty("clipCreationRenderer")})&&_.mb(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
n$.prototype.onPanelContentVisibleChanged=n$.prototype.onPanelContentVisibleChanged;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],n$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],n$.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.cH.YtVisibilityBehavior),_.N("design:type",Object)],n$.prototype,"ytVisibilityBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],n$.prototype,"ytdReduxBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],n$.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],n$.prototype,"panelContentVisible",void 0);_.E([_.Zw("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],n$.prototype,"onPanelContentVisibleChanged",null);_.E([_.u({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],n$);
_.G(n$,"ytd-clip-section-renderer",function(){if(rfD!==void 0)return rfD;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return rfD=f},{mode:1});var Goq;var p$=function(){return _.K.apply(this,arguments)||this};
_.e(p$,_.K);_.R=p$.prototype;
_.R.onKeyDown=function(f){if(this.snippetElements.length!==0&&(f=f.keyCode,f===38||f===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);f===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.FL(this.highlightedIndex,-1,this.snippetElements.length);f=this.snippetElements.length;var H=this.highlightedIndex%f;this.highlightedIndex=H*f<0?H+f:H;f=this.snippetElements[this.highlightedIndex];this.highlightSnippet(f);this.ensureVisible(f)}};
_.R.onKeyUp=function(f){var H=this;fr1(f)&&(f.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.nN.cancelJob(this.inputTimerId),this.inputTimerId=_.nN.addLowPriorityJob(function(){H.typedValue&&(H.fetchSnippets(H.typedValue),H.logInputGesture(H.data))},1E3))};
_.R.onClick=function(f){(f=_.H09(f.target,null,"snippet-item"))&&this.selectSnippet(f)};
_.R.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.R.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.R.ready=function(){var f=this;this.inputElement.addEventListener("focus",function(){f.snippetsWrapper.style.removeProperty("display")})};
_.R.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.R.getSourceTimelines=function(){if(!this.data)return[];var f=[];if(this.data.searchInVideoSources)for(var H=_.V(this.data.searchInVideoSources),v=H.next();!v.done;v=H.next())v=v.value,v==="SEARCH_IN_VIDEO_SOURCE_ASR"?f.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):v==="SEARCH_IN_VIDEO_SOURCE_OCR"&&f.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return f};
_.R.fetchSnippets=function(f){var H=_.mb(this.hostElement,"yt-get-current-video-id-action")[0],v=this.getSourceTimelines();f={getSearchInVideoCommand:{externalVideoId:H,query:f!=null?f:"",sourceTimelines:v},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.t8().resolve(_.MJ).resolveCommand(f,{form:{element:this.hostElement}})};
_.R.filterSnippets=function(f,H){var v=this;if(H){this.filteredSnippets=(0,_.QA.unsafeClone)(f);var t=RegExp(_.ih3(H),"i");this.filteredSnippets=this.filteredSnippets.filter(function(y){return t.test(v.ytRendererBehavior.getSimpleString(y.snippet))});
f=_.V(this.filteredSnippets);for(var M=f.next();!M.done;M=f.next()){M=M.value;var h=this.ytRendererBehavior.getSimpleString(M.snippet);M.snippet={runs:[{text:h.substring(0,h.toLowerCase().indexOf(H))},{text:h.substring(h.toLowerCase().indexOf(H),h.toLowerCase().indexOf(H)+H.length),bold:!0},{text:h.substring(h.toLowerCase().indexOf(H)+H.length,h.length)}]}}}else this.filteredSnippets=f};
_.R.onUpdateSearchInVideoResults=function(f){if(!(this.snippets.length>0)){var H,v,t;if((t=(H=_.U(f,WWe))==null?void 0:(v=H.results)==null?void 0:v.length)!=null&&t){var M;this.filteredSnippets=this.snippets=((M=_.U(f,WWe))==null?void 0:M.results).map(function(h){var y,m,W;return{startMs:h==null?void 0:(y=h.searchInVideoResultRenderer)==null?void 0:y.startMs,startTimeText:h==null?void 0:(m=h.searchInVideoResultRenderer)==null?void 0:m.startTimeText,snippet:h==null?void 0:(W=h.searchInVideoResultRenderer)==
null?void 0:W.snippet}})}}};
_.R.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};
_.R.highlightSnippet=function(f){f.classList.add("highlighted")};
_.R.removeSnippetHighlight=function(f){f.classList.remove("highlighted")};
_.R.selectSnippet=function(f){this.typedValue=String(f.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(f);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.R.ensureVisible=function(f){var H=this.snippetsWrapper.scrollTop,v=H+this.snippetsWrapper.clientHeight,t=f.offsetTop-this.snippetsWrapper.offsetTop;f=t+f.clientHeight;t<H?this.snippetsWrapper.scrollTop-=H-t:f>v&&(this.snippetsWrapper.scrollTop+=f-v)};
_.R.seekPlayer=function(f){var H,v;return _.Y(function(t){if(t.nextAddress==1){if(!f)return t.jumpTo(0);H=Number(f.dataset.startOffset);return t.yield(_.tj().getPlayerPromise(),3)}v=t.yieldResult;v.seekTo(H/1E3,!0);v.wakeUpControls();_.Bj(t)})};
_.R.logInputGesture=function(f){var H=_.uy();H&&(f==null?0:f.trackingParams)&&_.wj(H,_.zK(f.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.R.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.bM("typed-value-changed",this.typedValue))};
_.R.updateTypedValueFromBinding=function(f){this.typedValue=f.currentTarget.value};
p$.prototype.typedValueChangedForBinding=p$.prototype.typedValueChangedForBinding;p$.prototype.dataChanged=p$.prototype.dataChanged;p$.prototype.panelContentVisibleChanged=p$.prototype.panelContentVisibleChanged;p$.prototype.onClick=p$.prototype.onClick;p$.prototype.onKeyUp=p$.prototype.onKeyUp;p$.prototype.onKeyDown=p$.prototype.onKeyDown;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],p$.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],p$.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],p$.prototype,"data",void 0);_.E([_.F({value:[]}),_.N("design:type",Array)],p$.prototype,"snippets",void 0);_.E([_.F({value:[]}),_.N("design:type",Array)],p$.prototype,"filteredSnippets",void 0);_.E([_.F({value:[]}),_.N("design:type",Array)],p$.prototype,"snippetElements",void 0);
_.E([_.lJ("#siv-input"),_.N("design:type",HTMLElement)],p$.prototype,"inputElement",void 0);_.E([_.lJ("#siv-snippets-wrapper"),_.N("design:type",HTMLElement)],p$.prototype,"snippetsWrapper",void 0);_.E([_.F(),_.N("design:type",String)],p$.prototype,"typedValue",void 0);_.E([_.F({value:-1}),_.N("design:type",Number)],p$.prototype,"highlightedIndex",void 0);_.E([_.sE("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[_.WU]),_.N("design:returntype")],p$.prototype,"onKeyDown",null);
_.E([_.sE("keyup"),_.N("design:type",Function),_.N("design:paramtypes",[_.WU]),_.N("design:returntype")],p$.prototype,"onKeyUp",null);_.E([_.sE("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],p$.prototype,"onClick",null);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],p$.prototype,"panelContentVisible",void 0);
_.E([_.Zw("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],p$.prototype,"panelContentVisibleChanged",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],p$.prototype,"dataChanged",null);_.E([_.Zw("typedValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],p$.prototype,"typedValueChangedForBinding",null);
_.E([_.u({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],p$);
_.G(p$,"ytd-search-in-video-renderer",function(){if(Goq!==void 0)return Goq;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Goq=f},{mode:1});var CkD;var Q2=function(){return _.K.apply(this,arguments)||this};
_.e(Q2,_.K);Q2.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
Q2.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]]"}}}}}};
Q2.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var f,H,v,t,M=(H=_.U((f=this.data)==null?void 0:f.onClickCommand,_.jA))==null?void 0:(v=H.item)==null?void 0:(t=v.notificationTextRenderer)==null?void 0:t.successResponseText;M&&_.ZFg(this.hostElement,M)}};
_.H7.Object.defineProperties(Q2.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var f,H,v,t;return this.isProductPlaceholder&&((f=this.data)==null?void 0:(H=f.hiddenProductOptions)==null?void 0:H.showDropCountdown)&&!!((v=this.data)==null?0:(t=v.hiddenProductOptions)==null?0:t.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var f;return!this.isProductPlaceholder&&!((f=this.data)==null?0:f.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var f,H;return!((f=this.data)==null?0:f.priceReplacementText)&&!((H=this.data)==null||!H.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Q2.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Q2.prototype,"componentBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Q2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Q2.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0}),_.z("isProductPlaceholder"),_.N("design:type",Object),_.N("design:paramtypes",[])],Q2.prototype,"useCenterLayoutContainer",null);_.E([_.F({computed:"computeButtonOverride(data)"}),_.N("design:type",Object)],Q2.prototype,"buttonOverride",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Q2.prototype,"isProductPlaceholder",null);
_.E([_.z("isProductPlaceholder"),_.N("design:type",Object),_.N("design:paramtypes",[])],Q2.prototype,"showDropCountdown",null);_.E([_.z("isProductPlaceholder","data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Q2.prototype,"showBrandName",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Q2.prototype,"showPriceReplacementText",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Q2.prototype,"showPrice",null);
_.E([_.z("isProductPlaceholder"),_.N("design:type",Object),_.N("design:paramtypes",[])],Q2.prototype,"showMetadata",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],Q2);
_.G(Q2,"ytd-product-list-item-renderer",function(){if(CkD!==void 0)return CkD;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return CkD=f},{mode:1});var Euo;var ux=function(){return _.K.apply(this,arguments)||this};
_.e(ux,_.K);ux.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
ux.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
ux.prototype.panelContentVisibleChanged=function(){var f=this,H;return _.Y(function(v){if(v.nextAddress==1)return f.playerApi?v.jumpTo(2):v.yield(_.tj().getPlayerPromise(),3);v.nextAddress!=2&&(f.playerApi=v.yieldResult);(H=f.playerApi)==null||H.productsInVideoVisibilityUpdated(!!f.panelContentVisible);_.Bj(v)})};
ux.prototype.panelContentVisibleChanged=ux.prototype.panelContentVisibleChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ux.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],ux.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],ux.prototype,"panelContentVisible",void 0);_.E([_.F(),_.N("design:type",Object)],ux.prototype,"data",void 0);
_.E([_.Zw("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],ux.prototype,"panelContentVisibleChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],ux);
_.G(ux,"ytd-product-list-renderer",function(){if(Euo!==void 0)return Euo;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Euo=f},{mode:1});var NUV;var ay=function(){var f=_.K.apply(this,arguments)||this;f.hideTimestamps=!!_.Oz("hide-transcript-timestamps");f.currentCueIndex=-1;f.flatCues=[];f.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};f.TEST_ONLY={getFlatCues:function(){return f.flatCues}};
return f};
_.e(ay,_.K);_.R=ay.prototype;_.R.hideTimestampsChanged=function(){_.WH("hide-transcript-timestamps",this.hideTimestamps)};
_.R.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.R.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.R.dataChanged=function(){var f;if((f=this.data)!=null&&f.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;f=_.V(this.data.cueGroups);for(var H=f.next();!H.done;H=f.next()){H=_.V(_.U(H.value,O0D).cues);for(var v=H.next();!v.done;v=H.next())this.flatCues.push(Number(_.U(v.value,g5M).startOffsetMs))}}};
_.R.onYtPlayerTimeChanged=function(f){if(!(f<0)){for(var H=this.currentCueIndex,v=H;;){var t=v>=0?this.flatCues[v]/1E3:-1;if(f+.5<t)--v;else if(t=v+1<this.flatCues.length?this.flatCues[v+1]/1E3:Infinity,f+.5>t)v+=1;else break}v!==H&&(H>=0&&((f=this.getCueElement(H))&&f.classList.remove("active"),(H=this.getCueGroupElement(H))&&H.classList.remove("active")),(H=this.getCueElement(v))&&H.classList.add("active"),(H=this.getCueGroupElement(v))&&H.classList.add("active"),this.currentCueIndex=v,this.isHovered||
this.scrollElementToTop(v))}};
_.R.scrollElementToTop=function(f){f=this.getCueElement(f>=3?f-3:0);this.hostElement.scrollTop=Math.min(f.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.R.getCueElement=function(f){return _.mF(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[f]+'"]')};
_.R.getCueGroupElement=function(f){return(f=this.getCueElement(f))&&f.parentElement?f.parentElement.parentElement:null};
_.R.onTap=function(f){var H=_.HB(f);f.target.classList.contains("cue")&&this.seekCueElement(H)};
_.R.onKeyPress=function(f){f.keyCode==13&&(f=_.H09(f.target,null,"cue"))&&this.seekCueElement(f)};
_.R.seekCueElement=function(f){f=Number(f.getAttribute("start-offset"));_.mb(this.hostElement,"yt-transcript-player-seek",[f/1E3])};
_.R.onMouseEnter=function(){this.isHovered=!0};
_.R.onMouseLeave=function(){this.isHovered=!1};
ay.prototype.onMouseLeave=ay.prototype.onMouseLeave;ay.prototype.onMouseEnter=ay.prototype.onMouseEnter;ay.prototype.onKeyPress=ay.prototype.onKeyPress;ay.prototype.onTap=ay.prototype.onTap;ay.prototype.dataChanged=ay.prototype.dataChanged;ay.prototype.hideTimestampsChanged=ay.prototype.hideTimestampsChanged;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],ay.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ay.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],ay.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],ay.prototype,"hideTimestamps",void 0);_.E([_.F(),_.N("design:type",Boolean)],ay.prototype,"isHovered",void 0);_.E([_.Zw("hideTimestamps"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ay.prototype,"hideTimestampsChanged",null);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ay.prototype,"dataChanged",null);_.E([_.sE("tap"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],ay.prototype,"onTap",null);_.E([_.sE("keypress"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],ay.prototype,"onKeyPress",null);
_.E([_.sE("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ay.prototype,"onMouseEnter",null);_.E([_.sE("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ay.prototype,"onMouseLeave",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],ay);
_.G(ay,"ytd-transcript-body-renderer",function(){if(NUV!==void 0)return NUV;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return NUV=f},{mode:1});var cf1;var Pf=function(){var f=_.K.apply(this,arguments)||this;f.darkerPanels=_.J("web_watch_darker_panels");return f};
_.e(Pf,_.K);Pf.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Pf.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Pf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Pf.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Pf.prototype,"darkerPanels",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],Pf);
_.G(Pf,"ytd-transcript-footer-renderer",function(){if(cf1!==void 0)return cf1;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return cf1=f},{mode:1});var XjD;var AfL;var GG=function(){var f=_.K.apply(this,arguments)||this;f.systemIcons=_.J("kevlar_system_icons");f.showClearButton=!1;return f};
_.e(GG,_.K);_.R=GG.prototype;_.R.handleInput=function(f){var H=this;f.target.value.length?_.iJ(this,"ytdTranscriptSearchBoxSearch",function(){H.emitSearchEvent(f)},500):(_.uwT(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=f.target.value.length>0};
_.R.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.R.handleClick=function(){var f,H=(f=this.data)==null?void 0:f.trackingParams;H&&_.WL(_.UV(),H)};
_.R.handleClear=function(){_.uwT(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var f,H,v=(H=_.U((f=this.data)==null?void 0:f.clearButton,_.nv))==null?void 0:H.trackingParams;v&&_.WL(_.UV(),v);this.clear()};
_.R.emitSearchEvent=function(f){_.YE(this.hostElement,"yt-transcript-search-box-search",{query:f.target.value});var H,v;(f=(v=_.U((H=this.data)==null?void 0:H.searchButton,_.nv))==null?void 0:v.trackingParams)&&_.WL(_.UV(),f)};
_.R.emitClearEvent=function(){_.YE(this.hostElement,"yt-transcript-search-box-clear")};
_.H7.Object.defineProperties(GG.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.mF(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],GG.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],GG.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],GG.prototype,"systemIcons",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],GG);
_.G(GG,"ytd-transcript-search-box-renderer",function(){if(AfL!==void 0)return AfL;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return AfL=f},{mode:1});var bSL;var iSD;var C$=function(){return _.K.apply(this,arguments)||this};
_.e(C$,_.K);C$.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var f,H;this.sectionHeaderAriaLabel=(f=this.data)==null?void 0:(H=f.accessibility)==null?void 0:H.accessibilityData.label}};
C$.prototype.fireSelectedEvent=function(f){_.YE(this.hostElement,"ytd-transcript-section-header",{startMs:f})};
C$.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
C$.prototype.handleKeyPress=function(f){this.data&&f.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.H7.Object.defineProperties(C$.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var f,H;return(H=(f=this.data)==null?void 0:f.enableTappableTranscriptHeader)!=null?H:!1}}});
C$.prototype.dataChanged=C$.prototype.dataChanged;_.E([_.F(),_.N("design:type",Object)],C$.prototype,"data",void 0);_.E([_.F(),_.N("design:type",String)],C$.prototype,"sectionHeaderAriaLabel",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],C$.prototype,"enableTappableTranscriptHeader",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],C$.prototype,"dataChanged",null);
_.E([_.u({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],C$);
_.G(C$,"ytd-transcript-section-header-renderer",function(){if(iSD!==void 0)return iSD;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return iSD=f},{mode:1});var koe;var TUV;var EA=function(){var f=_.K.apply(this,arguments)||this;f.isEditMode=!1;f.touchCaptionsEnabled=!1;f.deleteCaptionCorrectionPopupCommand=null;f.voteCaptionCorrectionPopupCommand=null;f.roundedContainer=!0;f.mouseOver=!1;f.textChanged=!1;f.messages={suggest_correction:_.ZC("suggest_correction",void 0,"Edit caption"),suggested_caption:_.ZC("suggested_caption",void 0,"Suggested caption"),submit_correction:_.ZC("submit_correction",void 0,"Submit for review"),cancel_correction:_.ZC("cancel_correction",
void 0,"Cancel"),replay_segment:_.ZC("replay_segment",void 0,"Re-play segment"),delete_correction:_.ZC("delete_correction",void 0,"Delete correction")};f.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return f};
_.e(EA,_.K);_.R=EA.prototype;_.R.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)};
_.R.handleDelete=function(f){if(this.deleteCaptionCorrectionPopupCommand){var H=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);H&&this.ytdOpenPopupBehavior.openPopup(H);f.stopPropagation()}};
_.R.handleSubmit=function(f){if(this.data&&this.data.submitCaptionCorrectionCommand&&(f.stopPropagation(),this.textChanged)){var H;f=(H=_.U(this.data.submitCaptionCorrectionCommand,_.wHn))==null?void 0:H.params;H=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:f,correctionText:String(this.ironTextAreaElement.value),originalText:_.fG(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(H);this.isEditMode=!1}};
_.R.handleUpdateSegmentText=function(f){(f=_.U(f,KWV))&&f.targetId&&this.data&&f.targetId===this.data.targetId&&(f.userCorrection&&(this.editedText=f.userCorrection),f.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.fG(this.data.snippet)),f.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=f.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=f.voteCaptionCorrectionPopupCommand?
f.voteCaptionCorrectionPopupCommand:null,f.accessibility&&(this.segmentAriaLabel=f.accessibility.accessibilityData.label))};
_.R.handleCancel=function(f){this.isEditMode=!1;f.stopPropagation();this.logClientVe(159409)};
_.R.handleEditSegmentCommand=function(f){(f=_.U(f,rWL))&&f.targetId&&this.data&&f.targetId===this.data.targetId&&this.handleEdit()};
_.R.handleEditButtonClick=function(f){this.data&&(this.handleEdit(),f.stopPropagation())};
_.R.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var f;(f=this.ironTextAreaElement.textarea)==null||f.focus();this.logClientVe(159407)}};
_.R.handleMouseEnter=function(){this.mouseOver=!0};
_.R.handleMouseLeave=function(){this.mouseOver=!1};
_.R.handleReplay=function(f){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),f.stopPropagation(),this.logClientVe(159408))};
_.R.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()))};
_.R.handleKeypress=function(f){this.data&&(this.isEditMode?f.stopPropagation():this.isEnterPress(f)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(f)&&this.logClientVe(138758))};
_.R.handleTextboxClick=function(f){f.stopPropagation()};
_.R.handleTextboxKeydown=function(f){this.isControlEnterPress(f)?this.handleSubmit(f):f.key==="Escape"&&this.handleCancel(f)};
_.R.handleTextboxKeyup=function(){this.textChanged=_.fG(this.latestText)!==String(this.ironTextAreaElement.value)};
_.R.fireSelectedEvent=function(f){_.YE(this.hostElement,"yt-transcript-segment-selected",{startMs:f})};
_.R.fireReplayEvent=function(f,H){_.YE(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(f-100,0),endMs:H})};
_.R.fireEditEvent=function(f,H){_.YE(this.hostElement,"yt-transcript-segment-edit",{startMs:f,endMs:H})};
_.R.isEnterPress=function(f){return f.key==="Enter"||f.code==="Enter"||f.code==="NumpadEnter"||f.keyCode===13?!0:!1};
_.R.isControlEnterPress=function(f){var H=f.key==="Enter"||f.code==="Enter"||f.code==="NumpadEnter"||f.keyCode===13;return(f.ctrlKey||f.metaKey)&&H};
_.R.isCopyPress=function(f){var H=f.ctrlKey;return f.key==="c"&&H};
_.R.logClick=function(){var f,H=(f=this.data)==null?void 0:f.trackingParams;H&&_.WL(_.UV(),H)};
_.R.logClientVe=function(f){_.$P(_.UV(),_.$$(f))};
_.H7.Object.defineProperties(EA.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}}});
EA.prototype.handleMouseLeave=EA.prototype.handleMouseLeave;EA.prototype.handleMouseEnter=EA.prototype.handleMouseEnter;EA.prototype.dataChanged=EA.prototype.dataChanged;_.E([_.B(_.dt.YtActionHandlerBehavior),_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],EA.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.fm),_.N("design:type",Object)],EA.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],EA.prototype,"ytRendererBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],EA.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],EA.prototype,"isEditMode",void 0);_.E([_.F(),_.N("design:type",Object)],EA.prototype,"touchCaptionsEnabled",void 0);_.E([_.F(),_.N("design:type",Object)],EA.prototype,"editedText",void 0);_.E([_.F(),_.N("design:type",Object)],EA.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.E([_.F(),_.N("design:type",Object)],EA.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.E([_.F(),_.N("design:type",String)],EA.prototype,"segmentAriaLabel",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],EA.prototype,"roundedContainer",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],EA.prototype,"mouseOver",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],EA.prototype,"textChanged",void 0);_.E([_.F(),_.N("design:type",Object)],EA.prototype,"messages",void 0);
_.E([_.lJ("#suggestion"),_.N("design:type",Object)],EA.prototype,"ironTextAreaElement",void 0);_.E([_.z("data","editedText"),_.N("design:type",Object),_.N("design:paramtypes",[])],EA.prototype,"latestText",null);_.E([_.z("touchCaptionsEnabled","isEditMode"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],EA.prototype,"enableEditButton",null);
_.E([_.z("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],EA.prototype,"enableUndoButton",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EA.prototype,"dataChanged",null);_.E([_.sE("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EA.prototype,"handleMouseEnter",null);
_.E([_.sE("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EA.prototype,"handleMouseLeave",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],EA);
_.G(EA,"ytd-transcript-segment-renderer",function(){if(TUV!==void 0)return TUV;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return TUV=f},{mode:1});var N9=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};f.isError=!1;f.darkerPanels=_.J("web_watch_darker_panels");f.useParentMaxHeight=_.J("web_watch_transscript_use_parent_max_height");f.segmentOffsets=[];f.segmentIndex=-1;return f};
_.e(N9,_.K);_.R=N9.prototype;_.R.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"}}}}};
_.R.segmentsChanged=function(){this.updateOffsets()};
_.R.onYtPlayerTimeChanged=function(f){for(var H=this.segmentIndex,v=H;;){if(v>=0){var t=this.segmentOffsets[v].start;var M=this.segmentOffsets[v].isAutoScrollable}else t=-1,M=!0;var h=f+.5;if(!M){t=v+1<this.segmentOffsets.length?this.segmentOffsets[v+1].start:Infinity;if(h>=t){v+=1;continue}v=-1;break}if(h<t)t=v-1>=0&&this.segmentOffsets[v-1].isAutoScrollable,M=v===0||t?1:2,v-=M;else if(M=v+1<this.segmentOffsets.length&&this.segmentOffsets[v+1].isAutoScrollable?1:2,t=v+M<this.segmentOffsets.length?
this.segmentOffsets[v+M].start:Infinity,h>t)v+=M;else{if(v<0)break;v<this.segmentOffsets.length&&h>this.segmentOffsets[v].end&&(v=-1);break}}if(H!==v){if(H>=0){var y;(y=this.getSegmentElement(H))==null||y.classList.remove("active")}this.segmentIndex=v;if(!(v<0)){var m;(m=this.getSegmentElement(v))==null||m.classList.add("active");this.isHovered||this.scrollElementToTop(v)}}};
_.R.handleSegmentEdit=function(f){f.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=f.target,_.mb(this.hostElement,"yt-transcript-player-edit",[f.detail.startMs/1E3,f.detail.endMs/1E3]))};
_.R.handleSegmentSelected=function(f){_.mb(this.hostElement,"yt-transcript-player-seek",[f.detail.startMs/1E3])};
_.R.handleSegmentReplay=function(f){_.mb(this.hostElement,"yt-transcript-player-replay",[f.detail.startMs/1E3,f.detail.endMs/1E3])};
_.R.handleSectionHeaderSelected=function(f){_.mb(this.hostElement,"yt-transcript-player-seek",[f.detail.startMs/1E3])};
_.R.onMouseEnter=function(){this.isHovered=!0};
_.R.onMouseLeave=function(){this.isHovered=!1};
_.R.onRetryButtonClick=function(){_.YE(this.hostElement,"transcript-retry-button-click")};
_.R.getSegmentElement=function(f){return _.mF(this.hostElement).querySelector(":nth-child("+(f+1)+")")};
_.R.scrollElementToTop=function(f){f=this.getSegmentElement(f>=2?f-2:0);this.hostElement.scrollTop=Math.min(f.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.R.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(f){var H,v=(H=f.transcriptSegmentRenderer)!=null?H:f.transcriptSectionHeaderRenderer;return{start:Number(v.startMs)/1E3,end:Number(v.endMs)/1E3,isAutoScrollable:f.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.R.clearHighlightedSegments=function(){var f=_.mF(this.hostElement);f=_.V(f.querySelectorAll("ytd-transcript-segment-renderer"));for(var H=f.next();!H.done;H=f.next())H.value.classList.remove("active")};
_.H7.Object.defineProperties(N9.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var f,H;return((f=this.data)==null?void 0:f.searchResultSegments)||((H=this.data)==null?void 0:H.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
N9.prototype.onMouseLeave=N9.prototype.onMouseLeave;N9.prototype.onMouseEnter=N9.prototype.onMouseEnter;N9.prototype.handleSectionHeaderSelected=N9.prototype.handleSectionHeaderSelected;N9.prototype.handleSegmentReplay=N9.prototype.handleSegmentReplay;N9.prototype.handleSegmentSelected=N9.prototype.handleSegmentSelected;N9.prototype.handleSegmentEdit=N9.prototype.handleSegmentEdit;N9.prototype.segmentsChanged=N9.prototype.segmentsChanged;
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],N9.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],N9.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],N9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],N9.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],N9.prototype,"isError",void 0);
_.E([_.F(),_.N("design:type",Object)],N9.prototype,"noResultLabel",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],N9.prototype,"darkerPanels",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],N9.prototype,"useParentMaxHeight",void 0);_.E([_.z("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],N9.prototype,"segments",null);
_.E([_.z("segments","noResultLabel"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],N9.prototype,"displayNoResults",null);_.E([_.Zw("segments"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],N9.prototype,"segmentsChanged",null);_.E([_.sE("yt-transcript-segment-edit"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],N9.prototype,"handleSegmentEdit",null);
_.E([_.sE("yt-transcript-segment-selected"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],N9.prototype,"handleSegmentSelected",null);_.E([_.sE("yt-transcript-segment-replay"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],N9.prototype,"handleSegmentReplay",null);
_.E([_.sE("ytd-transcript-section-header"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],N9.prototype,"handleSectionHeaderSelected",null);_.E([_.sE("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],N9.prototype,"onMouseEnter",null);_.E([_.sE("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],N9.prototype,"onMouseLeave",null);
_.E([_.u({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],N9);
_.G(N9,"ytd-transcript-segment-list-renderer",function(){if(koe!==void 0)return koe;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return koe=f},{mode:1});var cf=function(){var f=_.K.apply(this,arguments)||this;f.hideTimestamps=!!_.Oz("hide-transcript-timestamps");f.isLoadingTranscripts=!1;f.darkerPanels=_.J("web_watch_darker_panels");f.isError=!1;f.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return f};
_.e(cf,_.K);_.R=cf.prototype;_.R.headerChanged=function(){var f,H;this.baseGetTranscriptsCommand=(H=_.U((f=this.data)==null?void 0:f.header,DxL))==null?void 0:H.onTextChangeCommand};
_.R.bodyChanged=function(){var f=this.getBodyRenderer();f&&(f.initialSegments&&(this.initialTranscriptsRenderer=f),f.noResultLabel&&(this.noResultLabel=f.noResultLabel),f.retryLabel&&(this.retryLabel=f.retryLabel))};
_.R.detached=function(){this.clearSearchBoxText()};
_.R.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.R.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"}}}};
_.R.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.R.fireSearch=function(f){var H=this;if(f){var v=f.detail.query;if(this.baseGetTranscriptsCommand){var t;f=(t=_.U(this.baseGetTranscriptsCommand,_.BKn))==null?void 0:t.params;var M;t=_.U((M=this.data)==null?void 0:M.footer,Ir1);var h;if((M=(h=_.U(t==null?void 0:t.languageMenu,Bie))==null?void 0:h.subMenuItems)&&M.length>0&&(h=M.find(function(W){return W.selected}))){var y,m;
f=(y=h.continuation)==null?void 0:(m=y.reloadContinuationData)==null?void 0:m.continuation}y=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:f,searchQuery:v}});this.ytComponentBehavior.resolveCommand(y,{commandController:{onServerError:function(){H.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});woe(this.ytContinuationHandlerBehavior,function(){return v===H.getCurrentSearchBoxText()})}}};
_.R.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.R.onRetryButtonClick=function(){this.isError=!1;var f={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:f}))};
_.R.hideTimestampsChanged=function(){_.WH("hide-transcript-timestamps",this.hideTimestamps)};
_.R.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.R.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.R.handleSignalActionCopyTranscript=function(){var f=this,H=this.getBodyRenderer();H&&(H=((H==null?void 0:H.searchResultSegments)||(H==null?void 0:H.initialSegments)||[]).map(function(v){return _.U(v,n5O)}).filter(function(v){return!!v}).map(function(v){return{snippet:v.snippet||{runs:[{text:""}]},
startTimeText:v.startTimeText||{simpleText:""}}}).map(function(v){var t=(v.snippet.runs||[]).reduce(function(M,h){return M+h.text},"");
return f.hideTimestamps?t:v.startTimeText.simpleText+" "+t}).join("\n"),this.copyToClipboard(H))};
_.R.copyToClipboard=function(f){navigator.clipboard&&navigator.clipboard.writeText(f)};
_.R.getCurrentSearchBoxText=function(){var f;return(f=this.searchBox)==null?void 0:f.value};
_.R.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.R.getBodyRenderer=function(){var f;return _.U((f=this.data)==null?void 0:f.body,o54)};
_.R.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.H7.Object.defineProperties(cf.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.mF(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
cf.prototype.hideTimestampsChanged=cf.prototype.hideTimestampsChanged;cf.prototype.searchCleared=cf.prototype.searchCleared;cf.prototype.fireSearch=cf.prototype.fireSearch;cf.prototype.onReloadContinuationFinish=cf.prototype.onReloadContinuationFinish;cf.prototype.bodyChanged=cf.prototype.bodyChanged;cf.prototype.headerChanged=cf.prototype.headerChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],cf.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],cf.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],cf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.E_),_.N("design:type",Object)],cf.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],cf.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],cf.prototype,"hideTimestamps",void 0);
_.E([_.F(),_.N("design:type",Object)],cf.prototype,"isLoadingTranscripts",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],cf.prototype,"darkerPanels",void 0);_.E([_.F(),_.N("design:type",Object)],cf.prototype,"isError",void 0);_.E([_.Zw("data.header"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cf.prototype,"headerChanged",null);
_.E([_.xV("data.body"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cf.prototype,"bodyChanged",null);_.E([_.sE("yt-reload-continuation-finish"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cf.prototype,"onReloadContinuationFinish",null);_.E([_.sE("yt-transcript-search-box-search"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],cf.prototype,"fireSearch",null);
_.E([_.sE("yt-transcript-search-box-clear"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cf.prototype,"searchCleared",null);_.E([_.Zw("hideTimestamps"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cf.prototype,"hideTimestampsChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],cf);
_.G(cf,"ytd-transcript-search-panel-renderer",function(){if(bSL!==void 0)return bSL;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return bSL=f},{mode:1});var Xq=function(){var f=_.K.apply(this,arguments)||this;f.player=null;f.playerPollJobId=0;return f};
_.e(Xq,_.K);_.R=Xq.prototype;_.R.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.R.onLoadReloadContinuation=function(f){_.J("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:f.target.data.continuation}}):(f={clickTrackingParams:f.target.data.clickTrackingParams,getTranscriptEndpoint:{params:f.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.t8().resolve(_.MJ).resolveCommand(f,{form:{element:this.hostElement}}))};
_.R.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"}}}};
_.R.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.R.attached=function(){this.updatePlayerListening()};
_.R.detached=function(){this.updatePlayerListening()};
_.R.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.R.startPlayerListening=function(){var f=this,H;return _.Y(function(v){if(v.nextAddress==1)return(H=_.vx())?v.yield(H.getPlayerPromise(),2):v.return();f.player=v.yieldResult;f.playerPollJobId=_.nN.addLowPriorityJob(function(){f.getPlayerVideoProgress()},1E3);
f.player.addEventListener("onCueRangeEnter",function(t){f.onCueRangeEnter(t)});
f.player.addEventListener("onCueRangeExit",function(t){f.onCueRangeExit(t)});
f.player.addEventListener("onStateChange",function(t){f.onPlayerStateChange(t)});
f.player.addEventListener("SEEK_TO",function(t){f.onPlayerSeek(t)});
_.Bj(v)})};
_.R.getPlayerVideoProgress=function(){var f=this;_.nN.cancelJob(this.playerPollJobId);if(this.player){var H=this.player.getCurrentTime();_.mb(this.hostElement,"yt-player-time-changed",[H])}this.playerPollJobId=_.nN.addLowPriorityJob(function(){f.getPlayerVideoProgress()},1E3)};
_.R.stopPlayerListening=function(){this.player=null;_.nN.cancelJob(this.playerPollJobId)};
_.R.onPlayerStateChange=function(f){f===2&&this.removePendingCue()};
_.R.onPlayerSeek=function(f){var H;if(H=this.pendingReplayCueId)H=this.pendingReplayCueId,H=f===(_.J("web_transcript_cue_id_killswitch")?Number(H):Number(H.split("_")[1]));H||this.removePendingCue()};
_.R.onCueRangeEnter=function(f){lhe(f)&&(this.pendingReplayCueId=f)};
_.R.onCueRangeExit=function(f){lhe(f)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.R.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.R.onYtTranscriptPlayerSeek=function(f){this.player&&this.player.seekTo(f,!0)};
_.R.onYtTranscriptPlayerReplay=function(f,H){this.player&&(this.player.addCueRange(J91(f),f,H),this.player.seekTo(f,!0),this.player.playVideo())};
_.R.onYtTranscriptPlayerEdit=function(f,H){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(J91(f),f,H),this.player.seekTo(f,!0))};
Xq.prototype.onLoadReloadContinuation=Xq.prototype.onLoadReloadContinuation;Xq.prototype.panelContentVisibleChanged=Xq.prototype.panelContentVisibleChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Xq.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Xq.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Xq.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Xq.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Xq.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Xq.prototype,"panelContentVisible",void 0);_.E([_.Zw("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xq.prototype,"panelContentVisibleChanged",null);
_.E([_.sE("yt-load-reload-continuation"),_.N("design:type",Function),_.N("design:paramtypes",[Object]),_.N("design:returntype")],Xq.prototype,"onLoadReloadContinuation",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],Xq);
_.G(Xq,"ytd-transcript-renderer",function(){if(XjD!==void 0)return XjD;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return XjD=f},{mode:1});var wjq;var qqv;var Av=function(){return _.K.apply(this,arguments)||this};
_.e(Av,_.K);Av.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.YE(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.Oj(this.hostElement,[this.data.clickCommand],this.hostElement))};
Av.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.P$)()+_.QN)+"px)"};
Av.prototype.updateShouldHideFromBinding=function(f){this.shouldHide=f.detail.value};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Av.prototype,"rendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Av.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Boolean)],Av.prototype,"shouldHide",void 0);_.E([_.u({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],Av);
_.G(Av,"ytd-ad-engagement-panel-banner-renderer",function(){if(qqv!==void 0)return qqv;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return qqv=f},{mode:_.WK("kevlar_poly_si_batch_j070")?1:2});var fRU;var bx=function(){var f=_.K.apply(this,arguments)||this;f.modernPanels=_.J("kevlar_watch_modern_panels");f.buttonUpdate=_.J("web_modern_buttons");f.adsSemanticText=_.J("enable_ads_web_ep_buenos_aires_and_padding_fix");return f};
_.e(bx,_.K);bx.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.E([_.F(),_.N("design:type",Object)],bx.prototype,"data",void 0);_.E([_.F({computed:"computeHideDefaultAdBadge(data)"}),_.N("design:type",Boolean)],bx.prototype,"hideDefaultAdBadge",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],bx.prototype,"modernPanels",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],bx.prototype,"buttonUpdate",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],bx.prototype,"adsSemanticText",void 0);
_.E([_.u({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],bx);
_.G(bx,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(fRU!==void 0)return fRU;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return fRU=f},{mode:1});var HdD;var ix=function(){var f=_.K.apply(this,arguments)||this;f.darkerPanels=_.J("web_watch_darker_panels");f.enableSqueezebackPanels=_.J("web_shorts_enable_squeezeback_panels");f.enableAnchoredPanel=_.J("desktop_shorts_v2_anchored_panel");f.modernPanels=_.J("kevlar_watch_modern_panels");f.headerClickListener=function(H){f.onHeaderClick(H)};
f.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return f};
_.e(ix,_.K);_.R=ix.prototype;_.R.computeAdsInfoButton=function(){if(_.J("web_modern_buttons")){var f,H;return(H=_.U((f=this.data)==null?void 0:f.subtitleComplex,SxA))==null?void 0:H.adInfoRenderer}};
_.R.updateHeaderClickListener=function(){var f,H,v;((f=this.data)==null?0:f.navigationEndpoint)||((H=this.data)==null?0:H.onClickCommand)||_.U((v=this.data)==null?void 0:v.visibilityButton,_.pv)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.R.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}}}}}};
_.R.collapsedChanged=function(){var f;(f=this.data)!=null&&f.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.J("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.R.focus=function(f){var H=this;this.titleElement&&_.nN.addJob(function(){_.kX(H.titleElement,f)},0,500)};
_.R.computeTitleAriaLabel=function(f){var H=[];if(f.title){var v,t;H.push(this.ytRendererBehavior.getSimpleString(f.title)||((v=f.title.accessibility)==null?void 0:(t=v.accessibilityData)==null?void 0:t.label))}f.contextualInfo&&H.push(this.ytRendererBehavior.getSimpleString(f.contextualInfo));return H.join(" ")};
_.R.onHeaderClick=function(f){this.shouldTriggerHeaderClick(f)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.YE(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.Oj(this.hostElement,[this.data.onClickCommand],this.hostElement)):(f=this.getVisibilityToggleButton())&&f.click())};
_.R.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var f=_.U(this.data.visibilityButton,_.nv)||_.U(this.data.visibilityButton,_.pv);f&&this.ytRendererBehavior.logExplicitClick(f)}};
_.R.getVisibilityToggleButton=function(){var f=_.mF(this.hostElement).querySelector("#visibility-button").firstElementChild;return(f==null?void 0:f.is)==="ytd-toggle-button-renderer"?f:null};
_.R.shouldTriggerHeaderClick=function(f){return!_.w6(_.f2(f),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.R.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(f){f=_.U(f,_.Vp1);this.targetId&&(f==null?void 0:f.targetId)===this.targetId&&(f=f.navigationButton)&&this.set("data.navigationButton",f)};
_.H7.Object.defineProperties(ix.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.J("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var f;return!!(((f=this.entity)==null?0:f.isActionButtonHidden)||this.hideActionButton)}}});
ix.prototype.collapsedChanged=ix.prototype.collapsedChanged;ix.prototype.updateHeaderClickListener=ix.prototype.updateHeaderClickListener;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],ix.prototype,"actionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ix.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],ix.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.B(_.um),_.N("design:type",Object)],ix.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],ix.prototype,"data",void 0);_.E([_.F(),_.N("design:type",String)],ix.prototype,"targetId",void 0);_.E([_.F(),_.N("design:type",Boolean)],ix.prototype,"collapsed",void 0);_.E([_.F(),_.N("design:type",Boolean)],ix.prototype,"hideActionButton",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],ix.prototype,"shortsPanel",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],ix.prototype,"liveChatEngagementPanel",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],ix.prototype,"learningChatEngagementPanel",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],ix.prototype,"darkerPanels",void 0);_.E([_.lJ("#title"),_.N("design:type",HTMLElement)],ix.prototype,"titleElement",void 0);_.E([_.lJ("#header"),_.N("design:type",HTMLElement)],ix.prototype,"headerElement",void 0);
_.E([_.F({computed:"computeAdsInfoButton(data)"}),_.N("design:type",Object)],ix.prototype,"adsInfoButton",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],ix.prototype,"enableSqueezebackPanels",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],ix.prototype,"enableAnchoredPanel",void 0);_.E([_.F({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(f,H){return _.dL(f.entities,"engagementPanelTitleHeaderEntity",H)}}),
_.N("design:type",Object)],ix.prototype,"entity",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],ix.prototype,"modernPanels",void 0);_.E([_.F({reflectToAttribute:!0}),_.z("targetId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ix.prototype,"adsSemanticText",null);_.E([_.Zw("data","data.navigationEndpoint","data.onClickCommand"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ix.prototype,"updateHeaderClickListener",null);
_.E([_.xV("collapsed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ix.prototype,"collapsedChanged",null);_.E([_.z("entity","hideActionButton"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ix.prototype,"isActionButtonHidden",null);_.E([_.u({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],ix);
_.G(ix,"ytd-engagement-panel-title-header-renderer",function(){if(HdD!==void 0)return HdD;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return HdD=f},{mode:1});var vOU;var ko=function(){return _.K.apply(this,arguments)||this};
_.e(ko,_.K);ko.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ko.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],ko.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],ko.prototype,"data",void 0);_.E([_.u({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],ko);
_.G(ko,"ytd-macro-markers-info-item-renderer",function(){if(vOU!==void 0)return vOU;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return vOU=f},{mode:1});var tFD;var RgV=function(f,H,v,t,M,h){_.zO.call(this);var y=this;this.JSC$22711_containerElement=f;this.hostElement=H;this.supportedSyncItems=v;this.syncEntityKey=t;this.options=M;this.renderLazyListItems=h;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;MFD(this);hgL(this);this.JSC$22711_scrollAnimation=new _.EO(function(m){f.scrollTop=m});
_.jz(this,this.JSC$22711_scrollAnimation);this.addOnDisposeCallback(function(){y.exitBrowsingMode(!1);y.activeItem&&y.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.e(RgV,_.zO);var MFD=function(f){var H=_.sI(_.t8().resolve(_.aj),function(v){return v.entities.markersEngagementPanelSyncEntity||{}},function(v,t){var M;
v[f.syncEntityKey]!==t[f.syncEntityKey]&&((M=v[f.syncEntityKey])==null?void 0:M.activeItemIndex)!==void 0&&f.updatePanelActiveItem(v[f.syncEntityKey].activeItemIndex)});
f.unsubscribeFromTimedMarkersListSyncEntity=H;f.addOnDisposeCallback(H);VFL(f)},VFL=function(f){var H=_.t8().resolve(_.aj);
H=_.QTe(H.getState(),f.syncEntityKey);(H==null?void 0:H.activeItemIndex)!==void 0&&(H=f.getItemByIndex(H.activeItemIndex))&&f.setActiveItem(H)},hgL=function(f){var H=new _.Nl(f.onScroll,50,f);
_.jz(f,H);var v=function(){H.fire()};
f.JSC$22711_containerElement.addEventListener("scroll",v);f.addOnDisposeCallback(function(){f.JSC$22711_containerElement.removeEventListener("scroll",v)})};
_.R=RgV.prototype;
_.R.updatePanelActiveItem=function(f){var H=this.getItemByIndex(f);if(H){if(this.setActiveItem(H),this.contentVisible)if(this.browsingMode){var v;((v=this.options)==null?void 0:v.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(f=yTU(this),H.offsetTop<this.JSC$22711_containerElement.clientHeight+this.JSC$22711_containerElement.scrollTop&&f&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));YZM(this)}else this.scrollToItem(H)}else _.pb(new _.e$("Could not find "+this.supportedSyncItems+
" sync child to set active.",f,this.JSC$22711_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.R.getItemByIndex=function(f){var H;(H=this.renderLazyListItems)==null||H.call(this,f);H=this.JSC$22711_containerElement.querySelectorAll(this.supportedSyncItems);if(H.length>f)return H[f]};
_.R.setActiveItem=function(f){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));f.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=f};
_.R.scrollToItem=function(f){f=this.getScrollPositionForItem(f);this.JSC$22711_containerElement.scrollTop!==f&&this.JSC$22711_scrollAnimation.start(this.JSC$22711_containerElement.scrollTop,f,300)};
_.R.getScrollPositionForItem=function(f){if(this.JSC$22711_containerElement.querySelectorAll(this.supportedSyncItems)[0]===f)return 0;var H,v=((H=this.options)==null?0:H.percentOffset)?this.JSC$22711_containerElement.clientHeight*this.options.percentOffset:0;f=_.Cd(f).y+this.JSC$22711_containerElement.scrollTop-(_.Cd(this.JSC$22711_containerElement).y+v);return Math.max(0,Math.min(f,this.JSC$22711_containerElement.scrollHeight-this.JSC$22711_containerElement.offsetHeight))};
_.R.onScroll=function(){this.activeItemBelowSyncPosition=yTU(this);if(this.activeItem&&!this.JSC$22711_scrollAnimation.isAnimating()&&Math.abs(this.JSC$22711_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var f;switch((f=this.options)==null?void 0:f.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!md4(this));YZM(this);break;default:this.enterBrowsingMode(!0)}}};
_.R.enterBrowsingMode=function(f){var H=this,v,t;return _.Y(function(M){if(M.nextAddress==1){if(H.browsingMode)return M.return();H.browsingMode=!0;f&&H.hostElement.classList.add("browsing-mode");H.playerExitBrowsingModeListener=function(){H.exitBrowsingMode(!1)};
return M.yield(_.Wx(),2)}v=M.yieldResult;(t=v)==null||t.addEventListener("SEEK_TO",H.playerExitBrowsingModeListener);_.Bj(M)})};
_.R.exitBrowsingMode=function(f){f=f===void 0?!0:f;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),f&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.R.removePlayerSeekListener=function(){var f=this,H,v;return _.Y(function(t){if(t.nextAddress==1)return f.playerExitBrowsingModeListener?t.yield(_.Wx(),3):t.jumpTo(0);H=t.yieldResult;(v=H)==null||v.removeEventListener("SEEK_TO",f.playerExitBrowsingModeListener);f.playerExitBrowsingModeListener=void 0;_.Bj(t)})};
var YZM=function(f){var H;((H=f.options)==null?void 0:H.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(md4(f)?f.hostElement.classList.remove("browsing-mode"):f.activeItem&&f.hostElement.classList.add("browsing-mode"))},yTU=function(f){if(!f.activeItem)return!1;
var H,v=((H=f.options)==null?0:H.percentOffset)?f.JSC$22711_containerElement.clientHeight*f.options.percentOffset:0;return f.activeItem.offsetTop>=f.JSC$22711_containerElement.scrollTop+v},md4=function(f){if(!f.activeItem)return!1;
var H=f.activeItem.offsetTop+14<=f.JSC$22711_containerElement.scrollTop+f.JSC$22711_containerElement.clientHeight;return f.activeItem.offsetTop+f.activeItem.clientHeight-14>=f.JSC$22711_containerElement.scrollTop&&H};
RgV.prototype.panelContentVisibleChanged=function(f){(this.contentVisible=f)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var $dU=function(f,H){f.syncEntityKey=H;var v;(v=f.unsubscribeFromTimedMarkersListSyncEntity)==null||v.call(f);MFD(f)},WS1=function(f,H){f.options=H};var TG=function(){var f=_.K.apply(this,arguments)||this;f.browsingMode=!1;f.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return f};
_.e(TG,_.K);_.R=TG.prototype;_.R.activeItemChanged=function(){if(!_.J("synced_panel_scrolling_controller")){var f;((f=this.syncEntity)==null?void 0:f.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.R.created=function(){var f=this;_.J("synced_panel_scrolling_controller")||(this.JSC$22715_scrollAnimation=new _.EO(function(H){f.contents.scrollTop=H}),this.boundExitBrowsingMode=function(){f.exitBrowsingMode(!1)})};
_.R.detached=function(){if(_.J("synced_panel_scrolling_controller")){var f;(f=this.scrollController)==null||f.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.R.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"}}}};
_.R.dataChanged=function(){var f=this;_.J("synced_panel_scrolling_controller")?_.qV(this,function(){if(f.scrollController){var H;(H=f.scrollController)==null||H.exitBrowsingMode(!1);var v,t,M;(t=f.scrollController)==null||$dU(t,(M=(v=f.data)==null?void 0:v.syncModelEntityKey)!=null?M:"default-macro-markers-list-renderer-entity-key");var h,y,m;(m=f.scrollController)==null||WS1(m,{percentOffset:(h=f.data)==null?void 0:h.selectedItemAlignmentPercentOffset,floatingPillType:(y=f.data)==null?void 0:y.floatingPillType})}else{var W,
I,S,d;f.scrollController=new RgV(f.contents,f.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(d=(W=f.data)==null?void 0:W.syncModelEntityKey)!=null?d:"default-macro-markers-list-renderer-entity-key",{percentOffset:(I=f.data)==null?void 0:I.selectedItemAlignmentPercentOffset,floatingPillType:(S=f.data)==null?void 0:S.floatingPillType},function(Z){f.renderLazyListItems(Z)})}f.scrollController.panelContentVisibleChanged(!!f.panelContentVisible)}):this.exitBrowsingMode()};
_.R.computeButtonShape=function(){var f=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){f.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.R.computeSyncEnabled=function(f){return!(f==null||!f.syncButtonLabel)};
_.R.renderLazyListItems=function(f){for(var H=this.contents.children,v=0,t=0;t<H.length;t++){var M=void 0;(M=H[t].ytLazyListBehavior)==null||M.fillRemainingListItems();var h=void 0,y=void 0;M=_.U((h=this.data)==null?void 0:(y=h.contents)==null?void 0:y[t],_.nWg);y=h=void 0;if((h=M)==null?0:(y=h.contents)==null?0:y.length)v+=M.contents.length;if(v>=f)break}};
_.R.getItemByIndex=function(f){this.renderLazyListItems(f);var H=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(H.length>f)return H[f]};
_.R.setActiveItem=function(f){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);f.active!==void 0&&(f.active=!0);this.currentActiveItem=f};
_.R.handleSetActivePanelItemAction=function(f){if((f=_.U(f,Yxe))&&this.panelTargetId===f.panelTargetId){f=f.itemIndex;if(_.J("synced_panel_scrolling_controller")){var H,v;var t=(v=(H=this.data)==null?void 0:H.syncModelEntityKey)!=null?v:"default-macro-markers-list-renderer-entity-key"}else{var M;t=(M=this.data)==null?void 0:M.syncModelEntityKey}if(t){var h;((h=this.syncEntity)==null?void 0:h.activeItemIndex)!==f&&this.ytdReduxBehavior.dispatch(_.lF("markersEngagementPanelSyncEntity",t,{key:t,activeItemIndex:f}))}else this.updatePanelActiveItem(f)}};
_.R.updatePanelActiveItem=function(f){var H=this.getItemByIndex(f);H?(this.setActiveItem(H),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(H)):_.pb(new _.e$("Could not find ytd-macro-markers-list-renderer sync child to set active.",f,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.R.scrollToItem=function(f){f=this.getScrollPositionForItem(f);this.contents.scrollTop!==f&&this.JSC$22715_scrollAnimation.start(this.contents.scrollTop,f,300)};
_.R.getScrollPositionForItem=function(f){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===f)return 0;f=_.Cd(f).y+this.contents.scrollTop-_.Cd(this.contents).y-this.getStickyHeaderHeight(f);return Math.min(f,this.contents.scrollHeight-this.contents.offsetHeight)};
_.R.getStickyHeaderHeight=function(f){if(f.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var H,v,t;return(t=(H=f.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(v=H.header)==null?void 0:v.offsetHeight)!=null?t:0}return 0};
_.R.onScroll=function(){_.J("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$22715_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.R.enterBrowsingMode=function(){var f=this;return _.Y(function(H){if(H.nextAddress==1){if(f.browsingMode)return H.return();f.browsingMode=!0;return H.yield(_.tj().getPlayerPromise(),2)}f.player=H.yieldResult;f.player.addEventListener("SEEK_TO",f.boundExitBrowsingMode);_.Bj(H)})};
_.R.exitBrowsingMode=function(f){this.browsingMode&&(this.browsingMode=!1,(f===void 0||f)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.R.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.R.onSyncClick=function(){if(_.J("synced_panel_scrolling_controller")){var f;(f=this.scrollController)==null||f.exitBrowsingMode()}else this.exitBrowsingMode()};
_.R.panelContentVisibleChanged=function(){if(_.J("synced_panel_scrolling_controller")){var f;(f=this.scrollController)==null||f.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
TG.prototype.panelContentVisibleChanged=TG.prototype.panelContentVisibleChanged;TG.prototype.dataChanged=TG.prototype.dataChanged;TG.prototype.activeItemChanged=TG.prototype.activeItemChanged;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],TG.prototype,"actionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],TG.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],TG.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],TG.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],TG.prototype,"data",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],TG.prototype,"useCustomColors",void 0);_.E([_.F({computed:"computeSyncEnabled(data)"}),_.N("design:type",Boolean)],TG.prototype,"syncEnabled",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],TG.prototype,"panelTargetId",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],TG.prototype,"panelContentVisible",void 0);_.E([_.lJ("#contents"),_.N("design:type",HTMLElement)],TG.prototype,"contents",void 0);_.E([_.lJ("#sync-container"),_.N("design:type",HTMLElement)],TG.prototype,"syncContainer",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],TG.prototype,"browsingMode",void 0);
_.E([_.F({selectorArgs:["data.syncModelEntityKey"],selector:_.QTe}),_.N("design:type",Object)],TG.prototype,"syncEntity",void 0);_.E([_.Zw("syncEntity.activeItemIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TG.prototype,"activeItemChanged",null);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TG.prototype,"dataChanged",null);
_.E([_.Zw("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TG.prototype,"panelContentVisibleChanged",null);_.E([_.u({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],TG);
_.G(TG,"ytd-macro-markers-list-renderer",function(){if(tFD!==void 0)return tFD;var f=document.createElement("template");_.x(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" hidden="[[!syncEnabled]]" class="style-scope ytd-macro-markers-list-renderer">\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return tFD=f},{mode:1});var OdM;var wW=function(){return _.K.apply(this,arguments)||this};
_.e(wW,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],wW.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],wW.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],wW.prototype,"data",void 0);_.E([_.u({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],wW);
_.G(wW,"ytd-error-corrections-section-item-renderer",function(){if(OdM!==void 0)return OdM;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return OdM=f},{mode:1});var gO1;var q9=function(){return _.K.apply(this,arguments)||this};
_.e(q9,_.K);q9.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],q9.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],q9.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],q9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],q9.prototype,"data",void 0);_.E([_.u({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],q9);
_.G(q9,"ytd-error-corrections-section-renderer",function(){if(gO1!==void 0)return gO1;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return gO1=f},{mode:1});var IRM;var fE=function(){return _.K.apply(this,arguments)||this};
_.e(fE,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],fE.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],fE.prototype,"componentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],fE.prototype,"data",void 0);_.E([_.u({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],fE);
_.G(fE,"ytd-topic-link-renderer",function(){if(IRM!==void 0)return IRM;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return IRM=f},{mode:1});var SZ4;var H2=function(){var f=_.K.apply(this,arguments)||this;f.modern=_.J("kevlar_modern_sd_v2");f.modernLockupV2=_.J("modernize_structured_description_playlist_lockups_v2");f.modernTypography=_.J("web_modern_typography");return f};
_.e(H2,_.K);H2.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"}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],H2.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],H2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],H2.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],H2.prototype,"modern",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],H2.prototype,"modernLockupV2",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],H2.prototype,"modernTypography",void 0);_.E([_.u({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],H2);
_.G(H2,"ytd-video-description-course-section-renderer",function(){if(SZ4!==void 0)return SZ4;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return SZ4=f},{mode:1});var ddL;var v2=function(){var f=_.K.apply(this,arguments)||this;f.modern=_.J("kevlar_modern_sd_v2");f.modernTypography=_.J("web_modern_typography");return f};
_.e(v2,_.K);v2.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"}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],v2.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],v2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],v2.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],v2.prototype,"modern",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],v2.prototype,"modernTypography",void 0);
_.E([_.u({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],v2);
_.G(v2,"ytd-video-description-files-section-renderer",function(){if(ddL!==void 0)return ddL;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return ddL=f},{mode:1});var jlo;var t5=function(){return _.K.apply(this,arguments)||this};
_.e(t5,_.K);t5.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"}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],t5.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],t5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],t5.prototype,"data",void 0);_.E([_.u({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],t5);
_.G(t5,"ytd-video-description-gaming-section-renderer",function(){if(jlo!==void 0)return jlo;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return jlo=f},{mode:1});var slU;var MK=function(){var f=_.K.apply(this,arguments)||this;f.isExpanded=!1;return f};
_.e(MK,_.K);MK.prototype.computeHasDefaultMetadataEndpoint=function(f){var H;f=f==null?void 0:(H=f.defaultMetadata)==null?void 0:H.runs;return!(!f||f.length!==1||!f[0].navigationEndpoint)};
MK.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.H7.Object.defineProperties(MK.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],MK.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],MK.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],MK.prototype,"isExpanded",void 0);_.E([_.F({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],MK.prototype,"hasDefaultMetadataEndpoint",void 0);
_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],MK.prototype,"isExpandable",null);_.E([_.z("data","isExpandable","isExpanded"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],MK.prototype,"showExpandedMetadata",null);_.E([_.u({is:"ytd-info-row-renderer",disableElementRegistration:!0})],MK);
_.G(MK,"ytd-info-row-renderer",function(){if(slU!==void 0)return slU;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return slU=f},{mode:1});var Zde;var h5=function(){var f=_.K.apply(this,arguments)||this;f.currentIndex=0;f.supportComponentResize=!0;f.modern=_.J("kevlar_modern_sd_v2");f.JSC$22741_lastScrollContainerWidth=NaN;return f};
_.e(h5,_.K);_.R=h5.prototype;
_.R.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"}}}};
_.R.getItemsPath=function(){return"videoLockups"};
_.R.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.R.onIronResize=function(){this.updateVideoLockupStyles()};
_.R.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.R.updateVideoLockupStyles=function(){var f;this.JSC$22741_scrollContainer!==void 0&&(f=this.videoLockups)!=null&&f.length&&(f=this.JSC$22741_scrollContainer.clientWidth,f!==this.JSC$22741_lastScrollContainerWidth&&(this.JSC$22741_lastScrollContainerWidth=f,_.Sr(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(f*.8,415)+"px"}),_.YE(this.hostElement,"iron-resize")))};
_.H7.Object.defineProperties(h5.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var f=[],H;if((H=this.data)==null||!H.carouselLockups)return f;H=_.V(this.data.carouselLockups);for(var v=H.next();!v.done;v=H.next()){v=v.value;var t=void 0;((t=_.U(v,arD))==null?0:t.videoLockup)&&f.push(_.U(v,arD).videoLockup)}return f}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.videoLockups)==null||!f.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var f=[],H;if((H=this.data)==null||!H.carouselLockups)return f;var v;return(v=_.U(this.data.carouselLockups[this.scrollCount],arD))==null?void 0:v.infoRows}}});
h5.prototype.dataChanged=h5.prototype.dataChanged;h5.prototype.onIronResize=h5.prototype.onIronResize;h5.prototype.hiddenChanged=h5.prototype.hiddenChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],h5.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],h5.prototype,"componentBehavior",void 0);_.E([_.B(_.Rt.YtdHorizontalListBehavior),_.N("design:type",Object)],h5.prototype,"ytdHorizontalListBehavior",void 0);
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],h5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],h5.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],h5.prototype,"inlineStructuredDescription",void 0);_.E([_.F({value:2}),_.N("design:type",Number)],h5.prototype,"initialCount",void 0);_.E([_.F(),_.N("design:type",Object)],h5.prototype,"currentIndex",void 0);
_.E([_.F(),_.N("design:type",Number)],h5.prototype,"scrollCount",void 0);_.E([_.F(),_.N("design:type",Object)],h5.prototype,"supportComponentResize",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],h5.prototype,"contentHidden",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],h5.prototype,"modern",void 0);_.E([_.lJ("#scroll-container"),_.N("design:type",HTMLDivElement)],h5.prototype,"JSC$22741_scrollContainer",void 0);
_.E([_.Zw("contentHidden"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],h5.prototype,"hiddenChanged",null);_.E([_.z("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],h5.prototype,"videoLockups",null);_.E([_.z("videoLockups"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],h5.prototype,"hasVideoLockups",null);
_.E([_.sE("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],h5.prototype,"onIronResize",null);_.E([_.z("data","scrollCount"),_.N("design:type",Object),_.N("design:paramtypes",[])],h5.prototype,"infoRows",null);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],h5.prototype,"dataChanged",null);_.E([_.u({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],h5);
_.G(h5,"ytd-video-description-music-section-renderer",function(){if(Zde!==void 0)return Zde;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Zde=f},{mode:_.WK("kevlar_poly_si_batch_j081")?1:2});var JTD;var Rb=function(){var f=_.K.apply(this,arguments)||this;f.modern=_.J("kevlar_modern_sd_v2");f.modernTypography=_.J("web_modern_typography");return f};
_.e(Rb,_.K);Rb.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Rb.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Rb.prototype,"ytRendererBehavior",void 0);_.E([_.F({}),_.N("design:type",Object)],Rb.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Rb.prototype,"modern",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Rb.prototype,"modernTypography",void 0);
_.E([_.u({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],Rb);
_.G(Rb,"ytd-video-description-transcript-section-renderer",function(){if(JTD!==void 0)return JTD;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return JTD=f},{mode:1});var lR1;_.yn(_.a(function(f){var H=_.s7(_.LC5,function(){return f.data().firstProviderLinkStatusEntityKey}),v=_.s7(_.LC5,function(){return f.data().secondProviderLinkStatusEntityKey}),t=function(){var M,h;
return((M=H())==null?void 0:M.linked)||((h=v())==null?void 0:h.linked)};
return _.O("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.O(_.iq,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return f.data().sectionTitle}}),_.O(_.iq,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return t()?f.data().connectedMessage:f.data().notConnectedMessage}}),_.O(_.g,{cond:t,
then:function(){return _.O(_.Jj,{data:function(){return f.data().connectedButton}},{buttonViewModel:function(M){return _.O(_.Wp,{data:M.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.O(_.g,{cond:function(){return!t()},
then:function(){return _.O(_.Jj,{data:function(){return f.data().notConnectedButton}},{buttonViewModel:function(M){return _.O(_.Wp,{data:M.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"yk"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.ki}});_.yn(_.a(function(f){var H=f.data;return _.O("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.O("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.O(_.iq,{text:function(){return H().sectionTitle}})),_.O("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.O(_.iq,{text:function(){return H().bodyHeader}})),_.O("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.O(_.iq,{text:function(){return H().bodyText}})),_.O(_.g,{cond:function(){return H().attributionText},
then:function(){return _.O("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.O(_.iq,{text:function(){return H().attributionText}}))}}))},"zk"),"how-this-was-made-section-view-model",{props:{data:_.ki}});_.yn(_.a(function(f){return _.O("yt-video-description-youchat-section-view-model",{class:_.S2("ytVideoDescriptionYouchatSectionViewModelHost")},_.O("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.O(_.iq,{text:function(){return f.data().sectionTitle}})),_.O("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.O(_.iq,{text:function(){return f.data().subHeaderText}})),_.O("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.O(_.Wp,{data:function(){return _.U(f.data().primaryButton,
_.af)}})))},"Ak"),"yt-video-description-youchat-section-view-model",{props:{data:_.ki}});var Vh=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return f};
_.e(Vh,_.K);_.R=Vh.prototype;
_.R.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}}}}}};
_.R.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.R.dataChanged=function(){var f,H;this.hasDescriptionOnly=!(((f=this.data)==null?void 0:(H=f.items)==null?void 0:H.length)!==1||!_.U(this.data.items[0],nz))};
_.R.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.R.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.R.autoFocusDescription=function(){var f;((f=_.t8().resolve(_.vh(_.RM)))==null?0:f.isKeyBoardInUse())&&this.description&&_.Tj(this.description)};
_.R.resize=function(){if(_.J("kevlar_disable_sd_resize"))this.JSC$22750_cardList&&_.YE(this.JSC$22750_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.YE(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.YE(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.R.scrollToSection=function(f){if(f=this.getSectionElement(f))_.mb(this.hostElement,"yt-scroll-to-watch-element",[f]),f.focus()};
_.R.getSectionElement=function(f){switch(f){case "infocards-item-section":var H;return(H=this.infocardsSection)!=null?H:null;case "transcript-item-section":var v;return(v=this.transcriptSection)!=null?v:null;case "how-this-was-made-section-item-section":var t;return(t=this.howThisWasMadeSection)!=null?t:null;case "files-item-section":var M;return(M=this.filesSection)!=null?M:null;default:return null}};
_.R.handleSetActiveItemAction=function(f){var H=_.U(f,Yxe),v=H&&(H==null?void 0:H.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$22750_cardList;if(H&&v){f=this.currentActiveChapter;var t=this.currentActiveProblem;H=v==null?void 0:v.getItemByIndex(H.itemIndex);var M=v=!0;H&&(H.active=!0,H.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(v=f!==H,M=!1,this.currentActiveChapter=H):(H==null?void 0:H.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(v=!1,M=t!==H,this.currentActiveProblem=H));f&&v&&(f.active=!1);t&&M&&(t.active=!1)}};
_.H7.Object.defineProperties(Vh.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.J("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
Vh.prototype.onYtExpanderMoreTapped=Vh.prototype.onYtExpanderMoreTapped;Vh.prototype.onHiddenChanged=Vh.prototype.onHiddenChanged;Vh.prototype.dataChanged=Vh.prototype.dataChanged;Vh.prototype.panelContentVisibleChanged=Vh.prototype.panelContentVisibleChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Vh.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Vh.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Vh.prototype,"actionHandlerBehavior",void 0);_.E([_.B(_.x3),_.N("design:type",Object)],Vh.prototype,"ironResizableBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Vh.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Boolean)],Vh.prototype,"panelContentVisible",void 0);_.E([_.F(),_.N("design:type",Boolean)],Vh.prototype,"hasDescriptionOnly",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Vh.prototype,"inlineStructuredDescription",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Vh.prototype,"hidden",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Vh.prototype,"shortsPanel",void 0);_.E([_.F(),_.N("design:type",Object)],Vh.prototype,"videoSummary",void 0);_.E([_.F(),_.N("design:type",Object)],Vh.prototype,"merchShelf",void 0);
_.E([_.z("videoSummary"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Vh.prototype,"showVideoSummary",null);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Vh.prototype,"engagementPanel",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Vh.prototype,"watchWhileSdp",void 0);_.E([_.lJ("ytd-expandable-video-description-body-renderer"),_.N("design:type",Object)],Vh.prototype,"description",void 0);
_.E([_.lJ("ytd-horizontal-card-list-renderer"),_.N("design:type",Object)],Vh.prototype,"JSC$22750_cardList",void 0);_.E([_.lJ("ytd-horizontal-card-list-renderer[center-items]"),_.N("design:type",Object)],Vh.prototype,"problemWalkthroughCardList",void 0);_.E([_.lJ("ytd-shelf-renderer"),_.N("design:type",Object)],Vh.prototype,"shelfSection",void 0);_.E([_.lJ("ytd-video-description-music-section-renderer"),_.N("design:type",Object)],Vh.prototype,"musicMetadataSection",void 0);
_.E([_.lJ("ytd-video-description-infocards-section-renderer"),_.N("design:type",Object)],Vh.prototype,"infocardsSection",void 0);_.E([_.lJ("ytd-video-description-transcript-section-renderer"),_.N("design:type",Object)],Vh.prototype,"transcriptSection",void 0);_.E([_.lJ("how-this-was-made-section-view-model"),_.N("design:type",Object)],Vh.prototype,"howThisWasMadeSection",void 0);_.E([_.lJ("ytd-video-description-files-section-renderer"),_.N("design:type",Object)],Vh.prototype,"filesSection",void 0);
_.E([_.Zw("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vh.prototype,"panelContentVisibleChanged",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vh.prototype,"dataChanged",null);_.E([_.Zw("hidden"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vh.prototype,"onHiddenChanged",null);
_.E([_.sE("yt-expander-more-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vh.prototype,"onYtExpanderMoreTapped",null);_.E([_.u({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],Vh);
_.G(Vh,"ytd-structured-description-content-renderer",function(){if(lR1!==void 0)return lR1;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return lR1=f},{mode:2});var Ud1;var egM;var yh=function(){return _.K.apply(this,arguments)||this};
_.e(yh,_.K);yh.prototype.computeAriaLabel=function(f){var H,v;return(f==null?void 0:(H=f.accessibility)==null?void 0:(v=H.accessibilityData)==null?void 0:v.label)||_.ZC("LOADING",void 0,"Loading")};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],yh.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],yh.prototype,"data",void 0);_.E([_.F({computed:"computeAriaLabel(data)"}),_.N("design:type",String)],yh.prototype,"ariaLabel",void 0);_.E([_.GW({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],yh);
_.G(yh,"yt-content-loading-renderer",function(){if(egM===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;Ud1===void 0&&(Ud1=document.createElement("template"));var t=Ud1;v.call(H,t.content.cloneNode(!0),f.content.firstChild);egM=f}f=egM;return f},{mode:_.WK("kevlar_poly_si_batch_j043")?1:2});_.yn(_.a(function(f){var H=_.V(_.gp(!1,void 0,"QkPiwb")),v=H.next().value,t=H.next().value;H=_.V(_.gp(!1,void 0,"AFECB"));var M=H.next().value,h=H.next().value;_.Kc(function(){var W=_.U(f.data().collaboratePlaylistCollaborationSetting,zwq);W&&t(W.switchedOnByDefault);var I=_.U(f.data().allowNewCollaboratorsPlaylistCollaborationSetting,zwq);I&&h(I.switchedOnByDefault);if(!W&&!I||!W&&f.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")t(!0),h(!0)});
var y=function(W){t(W);h(W);var I=f.data().playlistCollaborationEntityKey||"";var S=_.fu().getState();(S=_.dL(S.entities,"playlistCollaborationEntity",I))&&(S==null?void 0:S.isCollaborative)===W||_.fu().dispatch(_.lF("playlistCollaborationEntity",I,Object.assign({},S,{isCollaborative:W})))},m=function(W){h(W)};
return _.O("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.O("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.O(_.Jj,{data:function(){return f.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(W){return _.O(_.Eng,{data:W.data,
onSwitch:y})}})),_.O(_.g,{cond:v,
then:function(){return _.O(_.R8,null,_.O("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.O(_.Jj,{data:function(){return f.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(W){return _.O(_.Eng,{data:W.data,
onSwitch:m,overrideDisabled:!1})}})),_.O(_.g,{cond:M,
then:function(){return _.O("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.O(_.Jj,{data:function(){return f.data().copyLinkButton}},{buttonViewModel:_.Wp}))}}),_.O("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.O(_.Jj,{data:function(){return f.data().playlistCollaborators}},{contentListItemViewModel:_.DZF})))}}))},"Bk"),"playlist-collaboration-view-model",{props:{data:_.ki}});var LSM=_.a(function(f){var H=f.data;var v=f.customCommandResolver;return _.O(_.R8,null,_.O("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.O(_.Jj,{data:function(){return H().adAvatar}},{adAvatarViewModel:function(t){return _.O(_.U5o,{data:t.data,
customCommandResolver:v})}})),_.O("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.O(_.g,{cond:function(){return H().headline},
then:function(t){return _.O(_.iq,{text:t,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.O("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.O(_.Jj,{data:function(){return H().adBadge}},{adBadgeViewModel:function(t){return _.O(_.Vc,{data:t.data,
hasDot:function(){return H().primaryDetailsLine!==void 0},
customCommandResolver:v,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.O(_.Jj,{data:function(){return H().primaryDetailsLine}},{adDetailsLineViewModel:function(t){return _.O(_.yc,{data:t.data,
customCommandResolver:v,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Ck"),xdM=_.a(function(f){var H=f.data;
var v=f.customCommandResolver;return _.O("ad-avatar-lockup-view-model",{class:function(){var t;return((t=H().interaction)==null?0:t.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.tE(_.MV({visibilityCallback:function(t){var M,h=(M=H().interaction)==null?void 0:M.onFirstVisible;t&&h&&_.XA(h)},
showOption:_.f_}),_.as(function(){return H().interaction},v)),
"aria-label":function(){var t,M;return(t=H().interaction)==null?void 0:(M=t.accessibility)==null?void 0:M.label}},_.O(_.B6,null,_.O(_.Lc,{when:function(){return H().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.O(LSM,{data:H,
customCommandResolver:v})}),_.O(_.xk,null,function(){return null})))},"Dk");_.yn(_.a(function(f){var H=f.data;var v=f.panelContentVisibility;f=_.MV({visibilityCallback:function(h){var y,m=(y=H().interaction)==null?void 0:y.onFirstVisible;h&&m&&_.XA(m)},
showOption:_.f_});var t=_.as(function(){return H().interaction},UT4);
_.QL(function(){var h,y;if(y=_.ES("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var m;y=(m=y())==null?void 0:m.onLayoutVisibleCallback}else y=null;(h=y)==null||h()});
var M=function(){return v()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.O("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.tE(f,t)},_.O("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.O("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.O(_.g,{cond:_.W0_("(min-width: "+((0,_.P$)()+_.QN)+"px) or (max-width: 600px)"),then:function(){return _.O(_.Jj,{data:function(){return H().adImage}},{adImageViewModel:function(h){return _.O(_.I$,{data:h.data,
targetHeight:80,customCommandResolver:UT4})}})}})),_.O("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.O("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.O(_.Jj,{data:function(){return H().adAvatarLockup}},{adAvatarLockupViewModel:function(h){return _.O(xdM,{data:h.data,
customCommandResolver:UT4})}})),_.O(_.g,{cond:M,
then:function(){return _.O(_.Jj,{data:function(){return H().adButton}},{adButtonViewModel:function(h){return _.O(_.vO,{data:h.data,
customCommandResolver:UT4})}})},
else:function(){return _.O(_.Jj,{data:function(){return H().menu}},{buttonViewModel:_.Wp})}}),_.O("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.O(_.Jj,{data:function(){var h=_.U(H().toggleButton,_.G3);
return{toggleButtonViewModel:Object.assign({},h,{isTogglingDisabled:!0,isToggled:M()})}}},{toggleButtonViewModel:_.Fo})))))},"Ek"),"panel-ad-header-image-lockup-view-model",{props:{data:_.ki,
panelContentVisibility:_.ki}});_.yn(_.a(function(f){var H=function(){return _.U(f.data().inputComposerViewModel,FWv)},v=function(){var L;
return((L=H())==null?void 0:L.youchatPendingResponseEntityKey)||""},t=_.s7(_.qdF,v),M=function(){var L;
return!((L=t())==null||!L.isPendingResponse)},h=_.V(_.gp(!0,void 0,"DR0q1d")),y=h.next().value,m=h.next().value,W=function(){return H().sectionTargetId||"youchat_messages_section"};
h=_.w8("yt-chat-input-view-model");var I=_.TN("textarea"),S=_.s7(W_1,"chat_input_view_model_state"),d=OrD(),Z=function(){var L;return!((L=S())==null||!L.value)};
_.Kc(function(){var L;if(!Z()&&((L=H())==null?0:L.welcomeFeatureContinuation)){var r;((r=H())==null?0:r.setPendingResponseOnWelcome)&&_.faW(v())(!0);L={continuationCommand:{token:H().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var n;r=String(Math.floor(((n=_.O7())==null?void 0:n.getCurrentTime())||0)*1E3);n={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:r}};_.Cu(L,{form:{formData:n}});d(!0)}var Q=W(),C;(C=_.t8().resolve(_.vh(_.eD)))==null||
C.addEventListener("yt-navigate-start",function(){_.ZO.remove(Q);d(!1)},{once:!0})});
var l=function(){var L=I.value.value;I.value.value="";eZo(I.value);var r,n=((r=H())==null?void 0:r.enableGradientColorBg)||!1;r=L_A(W(),L,n);_.Cu(r);var Q=_.faW(v()),C;_.XA(((C=H())==null?void 0:C.onSubmitCommand)||{});Q(!0);var w;C=String(Math.floor(((w=_.O7())==null?void 0:w.getCurrentTime())||0)*1E3);var c;w={continuationCommand:{token:(c=H())==null?void 0:c.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};L={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:L,
playerOffsetMs:C}};_.Cu(w,{form:{formData:L},commandController:{onSuccess:function(){Q(!1)},
onServerError:function(){var A=W();_.Cu({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:A}}]}}});Q(!1)}}})};
return _.O("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:h},_.O("div",{class:"chatInputViewModelChatInputWrapper"},_.O("form",{class:"chatInputViewModelChatInputForm"},_.O("textarea",{class:"chatInputViewModelChatInput",el:I,"on:keydown":_.d6(function(L){var r=M()||!1;eZo(I.value);r||L.key!=="Enter"||L.shiftKey||(L.preventDefault(),l());return!1}),
"on:keyup":_.d6(function(){m(I.value.value.length===0);return!1}),
placeholder:function(){var L,r;var n=_.U((r=H())==null?void 0:r.inputFormField,RwA);return n==null?void 0:(L=n.contentProperties)==null?void 0:L.placeholderText},
rows:1}),_.O(_.Wp,{data:function(){return _.U(f.data().sendButton,_.af)},
onClick:function(L){L.preventDefault();l();m(I.value.value.length===0)},
buttonOverrides:function(){return{disabled:y()||M()}}})),_.O(_.iq,{className:"chatInputViewModelChatDisclaimer",
text:function(){var L;return(L=_.U(f.data().disclaimer,_.pdb))==null?void 0:L.text}})))},"Fk"),"yt-chat-input-view-model",{props:{data:_.ki}});var BrM=["engagement-panel-clip-create","engagement-panel-clip-view"],zgU=0,YN=function(){var f=_.K.apply(this,arguments)||this;var H;f.headerData=(H=f.data)==null?void 0:H.header;f.darkerPanels=_.J("web_watch_darker_panels");f.matchContentTheme=_.J("web_watch_panel_content_match_theme");f.disableAutoFill=!1;f.isFullscreen=!1;f.isTheaterMode=!1;f.modernPanels=_.J("kevlar_watch_modern_panels");f.liveChatReplyPanel=!1;f.enableAnchoredPanel=_.J("desktop_shorts_v2_anchored_panel");f.disableBackdropFilter=
_.J("web_disable_backdrop_filter");f.trackEngagementPanelVisibility=_.J("web_watch_track_engagement_panel_visibility");f.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 f};
_.e(YN,_.K);_.R=YN.prototype;
_.R.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(f){var H;return(f==null?void 0:(H=f.webComponentHint)==null?void 0:H.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},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"}}}};
_.R.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var f;if((f=this.hostElement.parentElement)==null?0:f.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.R.detached=function(){this.updateTheaterDisablement()};
_.R.showPanel=function(){var f=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.nN.addJob(function(){f.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.R.maybeScrollToItemSection=function(f){var H=this,v,t=f==null?void 0:(v=f.sectionListEngagementPanelExtras)==null?void 0:v.scrollToItemSectionIdentifier;t&&_.nN.addJob(function(){var M;(M=H.sectionListRendererElement)==null||M.scrollToItemSection(t)},8)};
_.R.hidePanel=function(){var f=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.nN.addJob(function(){f.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.R.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.R.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.R.updatePanel=function(f,H,v,t){var M=this;if((f=f==null?void 0:f.engagementPanelSectionListRenderer)||t){if(f){t=f.header;var h=f.content,y=f.footer;(f=f.targetId)&&this.set("data.targetId",f);t&&this.set("data.header",t);h&&this.set("data.content",h);y&&this.set("data.footer",y)}else t&&(f=t.content,h=t.secondaryHeaderContent,(t=t.targetId)&&this.set("data.targetId",t),f&&this.set("data.content",f),h&&(this.secondaryHeaderData=h));this.updateChildVisibilityProperties();if(H){var m;_.J("kevlar_update_panel_focus_scroll_killswitch")||
(m={preventScroll:!0});this.focus(m)}_.qV(this,function(){_.YE(M.hostElement,"yt-refit");M.maybeScrollToItemSection(v)})}};
_.R.computeHeaderData=function(){var f,H=(0,_.QA.unsafeClone)((f=this.data)==null?void 0:f.header);if(H){f=new _.Ak(Object.keys(H)[0]);var v=_.U(H,f),t=_.U(this.secondaryHeaderData,f);t&&_.pu(H,f,Object.assign({},t,v))}return H};
_.R.getReloadContinuation=function(){var f,H,v,t=_.V(((f=this.data)==null?void 0:(H=f.content)==null?void 0:(v=H.sectionListRenderer)==null?void 0:v.continuations)||[]);for(f=t.next();!f.done;f=t.next())if(f=f.value,f.reloadContinuationData)return f.reloadContinuationData.continuation};
_.R.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var f;((f=this.data)==null?0:f.targetId)&&(f=this.contentElement.firstElementChild)&&f.setAttribute("panel-target-id",this.data.targetId)};
_.R.forwardPopupClosedToFlowRootRenderer=function(){var f=_.mF(this.hostElement).querySelector("ytd-flow-root-renderer");if(f)f.onPopupClosed()};
_.R.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var f;if(!BrM.includes((f=this.theaterDisablementPanelIdentifier)!=null?f:""))if(f=_.J("web_watch_imax_theater_mode")&&this.isTheaterMode,f=_.J("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||f,_.J("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||f){var H;this.visibility=(H=this.data)==null?void 0:H.visibility;var v;this.trackEngagementPanelVisibility&&((v=this.data)==null?void 0:v.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var t,M,h,y;this.contentEmpty=!!(((t=this.data)==null?0:(M=t.content)==null?0:M.structuredDescriptionContentRenderer)&&Object.keys((h=this.data)==null?void 0:(y=h.content)==null?void 0:
y.structuredDescriptionContentRenderer).length===0);(H=_.t8().resolve(_.B5))&&H.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.R.isTheaterModeChanged=function(){_.J("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.R.isFullscreenChanged=function(){_.J("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.R.focus=function(f){if(this.header)this.header.focus(f);else{var H;(H=_.mF(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||H.focus(f)}};
_.R.visibilityChanged=function(){if(!_.J("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var f=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",H=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",v=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",t=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",M=t||!this.lastVisibility,h,y,m,W=((h=this.data)==null?void 0:(y=h.identifier)==null?void 0:
y.tag)||((m=this.data)==null?void 0:m.panelIdentifier);if(f&&M){var I;((I=this.data)==null?0:I.onShowCommands)&&_.Oj(this.hostElement,this.data.onShowCommands,this.hostElement);W&&_.vS().dispatch(_.yq({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:W}}))}else if(H&&v){var S;((S=this.data)==null?0:S.onHideCommands)&&_.Oj(this.hostElement,this.data.onHideCommands,this.hostElement);W&&_.vS().dispatch(_.yq({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:W}}))}f&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*zgU++));_.J("kevlar_watch_focus_on_engagement_panels")&&f&&t&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.R.notifyVisibilityChanged=function(f){var H;_.$E(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,f,(H=this.data)==null?void 0:H.targetId])};
_.R.updateTheaterDisablement=function(){if(!_.J("kevlar_watch_theater_disablement_killswitch")){var f=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&BrM.includes(f)&&!_.J("watch_next_grid_ignore_disallowed_panels")){var H=_.nV(_.vS().getState()),v=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";f!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():v?(this.originalTheaterState===void 0&&(this.originalTheaterState=H,this.theaterDisablementPanelIdentifier=
f),H&&_.mb(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.R.clearTheaterDisablement=function(){_.mb(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.R.updateChildVisibilityProperties=function(){this.hostElement||_.J("kevlar_panel_property_init_killswitch")||this._enableProperties();var f=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=f);var H,v=(H=this.headerElement)==null?void 0:H.firstElementChild;if(v&&!this.adHeaderImageLockupViewModel){H=f==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";v.collapsed=H;v=_.mF(v).querySelector("#visibility-button");if(!v)return;(v=v.firstElementChild)&&
v.polymerController.is==="ytd-toggle-button-renderer"&&v.polymerController.data.isToggled!==H&&v.polymerController.set("data.isToggled",H)}var t;if(H=(t=this.contentElement)==null?void 0:t.firstElementChild)if(f&&f!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")H.removeAttribute("panel-content-visible");else{H.setAttribute("panel-content-visible","");var M;(M=H.markDirty)==null||M.call(H)}};
_.R.onYtChangeEngagementPanelVisibilityAction=function(f){var H=this,v,t=(v=this.data)==null?void 0:v.targetId,M,h,y;v=((M=this.data)==null?void 0:(h=M.identifier)==null?void 0:h.tag)||((y=this.data)==null?void 0:y.panelIdentifier);var m=_.U(f,_.nRr),W;f=t&&(m==null?void 0:m.targetId)===t||v&&(m==null?void 0:(W=m.panelIdentifier)==null?void 0:W.tag)===v;this.dialog&&f&&(m==null?void 0:m.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(t==="engagement-panel-comments-section"?_.mb(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.mb(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",v]));!_.J("kevlar_use_engagement_panel_management_component")&&f&&(t=m.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!t?_.nN.addJob(function(){H.visibility=m.visibility},2,this.hideDelayMs):this.visibility=m.visibility,m.visibility&&this.notifyVisibilityChanged(m.visibility))};
_.R.onYtScrollToEngagementPanelCommand=function(f){var H,v=(H=this.data)==null?void 0:H.targetId,t,M,h;H=((t=this.data)==null?void 0:(M=t.identifier)==null?void 0:M.tag)||((h=this.data)==null?void 0:h.panelIdentifier);f=_.U(f,_.Aer);var y;(v&&(f==null?void 0:f.targetId)===v||H&&(f==null?void 0:(y=f.panelIdentifier)==null?void 0:y.tag)===H)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.mb(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.R.attachVEs=function(f){var H,v;(f==null?0:(H=f.content)==null?0:(v=H.productListRenderer)==null?0:v.trackingParams)&&_.UV().graftServerVe(f.content.productListRenderer.trackingParams);var t,M;(f==null?0:(t=f.content)==null?0:(M=t.transcriptRenderer)==null?0:M.trackingParams)&&_.UV().graftServerVe(f.content.transcriptRenderer.trackingParams)};
_.R.onYtUpdateEngagementPanelAction=function(f){var H,v=(H=this.data)==null?void 0:H.targetId;f=_.U(f,$xM);v&&(f==null?void 0:f.targetId)===v&&(this.updatePanel({engagementPanelSectionListRenderer:{header:f==null?void 0:f.header,content:f==null?void 0:f.content}},!1),this.attachVEs(f))};
_.R.onYtShowEngagementPanelScrimAction=function(f){var H,v=(H=this.data)==null?void 0:H.targetId;f=_.U(f,mxO);v&&(f==null?void 0:f.engagementPanelTargetId)===v&&(this.scrimmed=!0)};
_.R.onYtHideEngagementPanelScrimAction=function(f){var H,v=(H=this.data)==null?void 0:H.targetId;f=_.U(f,yWq);v&&(f==null?void 0:f.engagementPanelTargetId)===v&&(this.scrimmed=!1)};
_.R.getIdentifier=function(){var f,H,v;return((f=this.data)==null?void 0:f.panelIdentifier)||((H=this.data)==null?void 0:(v=H.identifier)==null?void 0:v.tag)};
_.R.getSurface=function(){var f,H;return(f=this.data)==null?void 0:(H=f.identifier)==null?void 0:H.surface};
_.H7.Object.defineProperties(YN.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var f=this.getIdentifier();return f==="engagement-panel-youchat"||f==="PAyouchat"}}});
YN.prototype.visibilityChanged=YN.prototype.visibilityChanged;YN.prototype.isFullscreenChanged=YN.prototype.isFullscreenChanged;YN.prototype.isTheaterModeChanged=YN.prototype.isTheaterModeChanged;YN.prototype.dataChanged=YN.prototype.dataChanged;YN.prototype.forwardPopupClosedToFlowRootRenderer=YN.prototype.forwardPopupClosedToFlowRootRenderer;YN.prototype.onYtRendererstamperFinished=YN.prototype.onYtRendererstamperFinished;
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],YN.prototype,"actionHandlerBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],YN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],YN.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.lv.YtEventForwardingBehavior),_.N("design:type",Object)],YN.prototype,"ytEventForwardingBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],YN.prototype,"data",void 0);
_.E([_.F({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.N("design:type",Object)],YN.prototype,"headerData",void 0);_.E([_.F(),_.N("design:type",Object)],YN.prototype,"secondaryHeaderData",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],YN.prototype,"visibility",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],YN.prototype,"contentEmpty",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],YN.prototype,"scrimmed",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],YN.prototype,"dialog",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],YN.prototype,"dropdown",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],YN.prototype,"darkerPanels",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],YN.prototype,"matchContentTheme",void 0);_.E([_.F(),_.N("design:type",Object)],YN.prototype,"disableAutoFill",void 0);
_.E([_.F({reflectToAttribute:!0,value:_.J("optimal_reading_width_comments_ep")}),_.N("design:type",Boolean)],YN.prototype,"optimalReadingWidthComments",void 0);_.E([_.F(),_.N("design:type",Number)],YN.prototype,"hideDelayMs",void 0);_.E([_.F({selector:_.pV,reflectToAttribute:!0}),_.N("design:type",Object)],YN.prototype,"isFullscreen",void 0);_.E([_.F({selector:_.nV,reflectToAttribute:!0}),_.N("design:type",Object)],YN.prototype,"isTheaterMode",void 0);
_.E([_.F(),_.N("design:type",Number)],YN.prototype,"showDelayMs",void 0);_.E([_.F({reflectToAttribute:!0}),_.z("data.targetId"),_.N("design:type",Object),_.N("design:paramtypes",[])],YN.prototype,"targetId",null);_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],YN.prototype,"webSize",null);_.E([_.F(),_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],YN.prototype,"hideFooterBorder",null);
_.E([_.F(),_.N("design:type",Object)],YN.prototype,"isWatch",void 0);_.E([_.F(),_.N("design:type",Object)],YN.prototype,"originalTheaterState",void 0);_.E([_.F(),_.N("design:type",Object)],YN.prototype,"theaterDisablementPanelIdentifier",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],YN.prototype,"modernPanels",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],YN.prototype,"isWatchWhilePanel",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],YN.prototype,"shortsPanel",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],YN.prototype,"liveChatEngagementPanel",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],YN.prototype,"learningChatEngagementPanel",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],YN.prototype,"liveChatReplyPanel",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],YN.prototype,"enableAnchoredPanel",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],YN.prototype,"disableBackdropFilter",void 0);_.E([_.F(),_.N("design:type",Object)],YN.prototype,"trackEngagementPanelVisibility",void 0);_.E([_.lJ("#header"),_.N("design:type",HTMLElement)],YN.prototype,"headerElement",void 0);_.E([_.lJ("#header > *"),_.N("design:type",HTMLElement)],YN.prototype,"header",void 0);
_.E([_.lJ("ytd-section-list-renderer"),_.N("design:type",Object)],YN.prototype,"sectionListRendererElement",void 0);_.E([_.lJ("panel-ad-header-image-lockup-view-model"),_.N("design:type",HTMLElement)],YN.prototype,"adHeaderImageLockupViewModel",void 0);_.E([_.lJ("#content"),_.N("design:type",HTMLElement)],YN.prototype,"contentElement",void 0);
_.E([_.sE("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YN.prototype,"onYtRendererstamperFinished",null);_.E([_.sE("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YN.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.E([_.xV("data","isFullscreen","isTheaterMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YN.prototype,"dataChanged",null);
_.E([_.Zw("isTheaterMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YN.prototype,"isTheaterModeChanged",null);_.E([_.Zw("isFullscreen"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YN.prototype,"isFullscreenChanged",null);_.E([_.Zw("visibility"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YN.prototype,"visibilityChanged",null);
_.E([_.u({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],YN);
_.G(YN,"ytd-engagement-panel-section-list-renderer",function(){if(wjq!==void 0)return wjq;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return wjq=f},{mode:_.WK("kevlar_poly_si_batch_j028")?1:2});var FSU;var m8=function(){var f=_.K.apply(this,arguments)||this;f.lastRenderedPanelIds=new Set;f.visiblePanels=[];f.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return f};
_.e(m8,_.K);_.R=m8.prototype;_.R.dataChanged=function(){if(this.data){for(var f=[],H=_.V(this.data),v=H.next();!v.done;v=H.next()){v=v.value;var t=void 0,M=void 0,h=(t=v)==null?void 0:(M=t.engagementPanelSectionListRenderer)==null?void 0:M.visibility;M=t=void 0;((t=v)==null?0:(M=t.engagementPanelSectionListRenderer)==null?0:M.targetId)&&h!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&f.push(v)}this.visiblePanels=f}else this.visiblePanels=[]};
_.R.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}}};
_.R.withoutVisiblePanelById=function(f){return this.visiblePanels.filter(function(H){var v;return((v=H.engagementPanelSectionListRenderer)==null?void 0:v.targetId)!==f})};
_.R.onYtChangeEngagementPanelVisibilityAction=function(f){var H=this,v=_.U(f,_.nRr);if(this.data&&(v==null?0:v.targetId)&&(v==null?0:v.visibility)){var t,M=(t=this.data.find(function(y){var m;return((m=y.engagementPanelSectionListRenderer)==null?void 0:m.targetId)===v.targetId}))==null?void 0:t.engagementPanelSectionListRenderer;
if(M){var h=this.withoutVisiblePanelById(v.targetId);v.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(f=this.data.find(function(y){var m;return((m=y.engagementPanelSectionListRenderer)==null?void 0:m.targetId)===v.targetId}))&&(h=[f].concat(_.pS(h)));
this.hideDelayMs&&v.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&h.length===0?_.nN.addJob(function(){M.visibility=v.visibility;H.visiblePanels=h},10,this.hideDelayMs):(M.visibility=v.visibility,this.visiblePanels=h);
_.$E(this.hostElement,"yt-engagement-panels-visible-changed",[h])}}};
_.R.onRendererstamperFinished=function(){var f=new Set(this.visiblePanels.map(function(H){var v;return(v=H.engagementPanelSectionListRenderer)==null?void 0:v.targetId}));
this.handlePanelVisibilityChange(f,this.lastRenderedPanelIds);this.lastRenderedPanelIds=f};
_.R.handlePanelVisibilityChange=function(f,H){f=f===void 0?new Set:f;H=H===void 0?new Set:H;if(this.data)for(var v=_.V(this.data),t=v.next();!t.done;t=v.next()){t=t.value;var M=void 0,h=void 0,y=(M=t)==null?void 0:(h=M.engagementPanelSectionListRenderer)==null?void 0:h.targetId;if(y&&(M=H.has(y),h=f.has(y),y=void 0,!M&&h?(h=M=void 0,y=(M=t)==null?void 0:(h=M.engagementPanelSectionListRenderer)==null?void 0:h.onShowCommands):M&&!h&&(h=M=void 0,y=(M=t)==null?void 0:(h=M.engagementPanelSectionListRenderer)==
null?void 0:h.onHideCommands),y))for(t=_.V(y),y=t.next();!y.done;y=t.next())this.ytComponentBehavior.resolveCommand(y.value)}};
m8.prototype.onRendererstamperFinished=m8.prototype.onRendererstamperFinished;m8.prototype.dataChanged=m8.prototype.dataChanged;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],m8.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],m8.prototype,"actionHandlerBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],m8.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],m8.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],m8.prototype,"lastRenderedPanelIds",void 0);_.E([_.F(),_.N("design:type",Number)],m8.prototype,"hideDelayMs",void 0);_.E([_.F(),_.N("design:type",Array)],m8.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Array)],m8.prototype,"visiblePanels",void 0);_.E([_.F(),_.N("design:type",Boolean)],m8.prototype,"isWatchWhilePanel",void 0);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],m8.prototype,"dataChanged",null);_.E([_.sE("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],m8.prototype,"onRendererstamperFinished",null);_.E([_.u({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],m8);
_.G(m8,"ytd-watch-engagement-panels",function(){if(FSU!==void 0)return FSU;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return FSU=f},{mode:1});var rTO;var $N=function(){return _.K.apply(this,arguments)||this};
_.e($N,_.K);$N.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.Me(_.mF(this.hostElement).querySelector("#text"),_.Ih_(_.jnh,this.data.companionLegalText))};
$N.prototype.computeAutoScrollEnabled=function(f,H){return f&&!H};
$N.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
$N.prototype.onToggleTap=function(){this.expanded=!this.expanded};
$N.prototype.expandedChanged=$N.prototype.expandedChanged;$N.prototype.dataChanged=$N.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],$N.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.jGA),_.N("design:type",Object)],$N.prototype,"ytdAutoScrollBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],$N.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],$N.prototype,"expanded",void 0);
_.E([_.F({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.N("design:type",Boolean)],$N.prototype,"autoScrollEnabled",void 0);_.E([_.F(),_.N("design:type",String)],$N.prototype,"expanderIcon",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$N.prototype,"dataChanged",null);
_.E([_.Zw("expanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$N.prototype,"expandedChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],$N);
_.G($N,"ytd-companion-legal-text-renderer",function(){if(rTO!==void 0)return rTO;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return rTO=f},{mode:1});var KSM;var W2=function(){var f=_.K.apply(this,arguments)||this;f.buttonUpdate=_.J("web_modern_buttons");f.kevlarWatchGrid=_.J("kevlar_watch_grid");f.centerAlignDescription=_.J("action_companion_center_align_description");f.truncateDomain=_.J("action_companion_truncate_domain");return f};
_.e(W2,_.K);_.R=W2.prototype;_.R.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.R.getOnLayoutVisibleCallback=function(){var f=_.ES("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.onLayoutVisibleCallback:null};
_.R.getLayoutId=function(){var f=_.ES("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.layoutId:null};
_.R.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",W2.JSC$22796_DEFAULT_AD_BADGE_RENDERER);var f=this.getOnLayoutVisibleCallback();f&&f()}};
_.R.getButtonRenderer=function(f){return f.actionButton&&_.U(f.actionButton,_.nv)?(delete _.U(f.actionButton,_.nv).navigationEndpoint,_.U(f.actionButton,_.nv)):{}};
_.R.onClick=function(f){var H=this;if((!_.J("web_modern_buttons")||!_.w6(_.f2(f),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){f=_.vx();var v=this.getLayoutId();f&&v&&_.J("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?f.getPlayerPromise().then(function(t){(new _.L_(t)).executeCommand(H.data.navigationEndpoint,v)}):_.J("kevlar_companion_resolve_command_killswitch")?_.YE(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.mb(this.hostElement,"yt-companion-ad-clicked",["action-companion",v])}};
_.H7.Object.defineProperties(W2.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var f,H,v;return((f=this.data)==null?0:(H=f.detailsLine)==null?0:(v=H.adRating)==null?0:v.ratingText)?this.data.detailsLine.adRating.ratingText:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
iconType:{configurable:!0,enumerable:!0,get:function(){var f,H,v,t;return((f=this.data)==null?0:(H=f.detailsLine)==null?0:(v=H.adRating)==null?0:(t=v.ratingIcon)==null?0:t.iconType)?_.SW(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var f,H,v,t;return((f=this.data)==null?0:(H=f.detailsLine)==null?0:(v=H.texts)==null?0:(t=v[0])==null?0:t.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 f,H;return((f=this.data)==null?0:(H=f.description)==null?0:H.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var f=_.ES("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var f=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return f?f.indexOf("/default_banner")!==-1:!0}}});
W2.prototype.onClick=W2.prototype.onClick;W2.prototype.dataChanged=W2.prototype.dataChanged;W2.JSC$22796_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.ZC("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],W2.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],W2.prototype,"rendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],W2.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],W2.prototype,"buttonUpdate",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],W2.prototype,"kevlarWatchGrid",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],W2.prototype,"centerAlignDescription",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],W2.prototype,"truncateDomain",void 0);
_.E([_.F({computed:"computeButtonOverride(buttonUpdate)"}),_.N("design:type",Object)],W2.prototype,"buttonOverride",void 0);_.E([_.z("data.detailsLine.adRating.ratingText"),_.N("design:type",Object),_.N("design:paramtypes",[])],W2.prototype,"getRating",null);_.E([_.z("getRating"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],W2.prototype,"computeRatingHidden",null);
_.E([_.z("data.detailsLine.adRating.ratingIcon.iconType"),_.N("design:type",Object),_.N("design:paramtypes",[])],W2.prototype,"iconType",null);_.E([_.z("data.detailsLine.texts.0.text"),_.N("design:type",Object),_.N("design:paramtypes",[])],W2.prototype,"getDetailsLine",null);_.E([_.z("getDetailsLine"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],W2.prototype,"computeDetailsLineHidden",null);
_.E([_.z("data.description.text"),_.N("design:type",Object),_.N("design:paramtypes",[])],W2.prototype,"getDescriptionText",null);_.E([_.z("getDescriptionText"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],W2.prototype,"computeDescriptionTextHidden",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],W2.prototype,"interactionLoggingClientData",null);
_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],W2.prototype,"hideBanner",null);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],W2.prototype,"dataChanged",null);_.E([_.sE("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],W2.prototype,"onClick",null);_.E([_.u({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],W2);
_.G(W2,"ytd-action-companion-ad-renderer",function(){if(KSM!==void 0)return KSM;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return KSM=f},{mode:_.WK("kevlar_poly_si_batch_j067")?1:2});var DdL;var oOD;var OQ=function(){var f=_.K.apply(this,arguments)||this;f.buttonUpdate=_.J("web_modern_buttons");f.hideLegacyBanner=_.J("enable_dsa_one_click_ata_translators_infeed_elements");f.adInfoButtonStyle="mono";f.adInfoButtonType="text";f.noDotAdBadge=!0;return f};
_.e(OQ,_.K);_.R=OQ.prototype;_.R.getOnLayoutVisibleCallback=function(){var f=_.ES("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.onLayoutVisibleCallback:null};
_.R.getLayoutId=function(){var f=_.ES("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.layoutId:null};
_.R.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 f=this.data.image.thumbnail.thumbnails[0];this.imageSrc=f.url?_.Co(f.url):void 0;this.imageWidth=f.width||0;this.imageHeight=f.height||0}this.data.clickthroughEndpoint&&_.U(this.data.clickthroughEndpoint,_.X7)&&(f=_.U(this.data.clickthroughEndpoint,_.X7).url,_.J("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
f||"":f?(f=_.Co(f),this.clickThroughUrl=_.QO(f)):this.clickThroughUrl=void 0);(f=this.getOnLayoutVisibleCallback())&&f()}};
_.R.onClick=function(f){_.w6(_.f2(f),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(f)};
_.R.handleClick=function(){var f=this;this.data&&this.data.clickthroughEndpoint&&(_.YE(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(H){f.macroReplacementBehavior.sendServiceRequestAction([H])}),_.mb(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.R.onLoad=function(){_.$E(this.hostElement,"yt-refit-popups-action")};
_.H7.Object.defineProperties(OQ.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var f=_.ES("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var f=_.ES("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.interactionLoggingClientData:null}}});
OQ.prototype.onLoad=OQ.prototype.onLoad;OQ.prototype.onClick=OQ.prototype.onClick;OQ.prototype.dataChanged=OQ.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],OQ.prototype,"rendererBehavior",void 0);_.E([_.B(hSM.YtMacroReplacementBehavior),_.N("design:type",Object)],OQ.prototype,"macroReplacementBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],OQ.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],OQ.prototype,"buttonUpdate",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],OQ.prototype,"hideLegacyBanner",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],OQ.prototype,"adInfoButtonStyle",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],OQ.prototype,"adInfoButtonType",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],OQ.prototype,"macros",null);
_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],OQ.prototype,"interactionLoggingClientData",null);_.E([_.F(),_.N("design:type",String)],OQ.prototype,"clickThroughUrl",void 0);_.E([_.F(),_.N("design:type",_.o1)],OQ.prototype,"imageSrc",void 0);_.E([_.F(),_.N("design:type",Number)],OQ.prototype,"imageWidth",void 0);_.E([_.F(),_.N("design:type",Number)],OQ.prototype,"imageHeight",void 0);_.E([_.F(),_.N("design:type",Object)],OQ.prototype,"noDotAdBadge",void 0);
_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],OQ.prototype,"dataChanged",null);_.E([_.sE("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],OQ.prototype,"onClick",null);_.E([_.sE("load"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],OQ.prototype,"onLoad",null);_.E([_.u({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],OQ);
_.G(OQ,"ytd-image-companion-renderer",function(){if(oOD!==void 0)return oOD;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return oOD=f},{mode:_.WK("kevlar_poly_si_batch_j067")?1:2});var nOq;var gb=function(){return _.K.apply(this,arguments)||this};
_.e(gb,_.K);_.R=gb.prototype;_.R.dataChanged=function(){this.set("data.adBadge",gb.JSC$22805_DEFAULT_AD_BADGE_RENDERER);if(this.data){var f=this.getOnLayoutVisibleCallback();f&&f()}};
_.R.getOnLayoutVisibleCallback=function(){var f=_.ES("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.onLayoutVisibleCallback:null};
_.R.getLayoutId=function(){var f=_.ES("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.layoutId:null};
_.R.onCompanionClicked=function(f){this.data&&(f.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.mb(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.R.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var f=_.vx(),H=this.getLayoutId(),v=this.data.clickToAdvSiteEndpoint;f&&H&&_.J("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?f.getPlayerPromise().then(function(t){(new _.L_(t)).executeCommand(v,H)}):_.YE(this.hostElement,"yt-navigate",{endpoint:v})}};
_.R.sendTrackingPings=function(f){if(f&&f.length!==0&&f[0].loggingUrls&&(f=f[0].loggingUrls.map(this.getBaseUrl)))for(var H=0;H<f.length;H++)_.c8(f[H])};
_.R.getBaseUrl=function(f){return f.baseUrl||""};
_.H7.Object.defineProperties(gb.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var f=_.ES("yt.www.ads.eventcache.getLastCompanionData");return f?(f=f())&&f.interactionLoggingClientData:null}}});
gb.prototype.onCompanionClicked=gb.prototype.onCompanionClicked;gb.prototype.dataChanged=gb.prototype.dataChanged;gb.JSC$22805_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.ZC("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],gb.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],gb.prototype,"data",void 0);_.E([_.lJ("#title"),_.N("design:type",HTMLElement)],gb.prototype,"shopTitle",void 0);
_.E([_.xV("data.impressionEndpoints"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],gb.prototype,"dataChanged",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],gb.prototype,"interactionLoggingClientData",null);_.E([_.sE("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],gb.prototype,"onCompanionClicked",null);
_.E([_.u({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],gb);
_.G(gb,"ytd-shopping-companion-renderer",function(){if(nOq!==void 0)return nOq;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return nOq=f},{mode:1});_.yn(_.a(function(f){var H=f.data;f=_.MV({visibilityCallback:function(t){var M,h=(M=H().interaction)==null?void 0:M.onFirstVisible;t&&h&&_.XA(h)},
showOption:_.f_});var v=_.as(function(){return H().interaction},xTe);
_.QL(function(){var t,M;M=(M=_.ES("yt.www.ads.eventcache.getLastCompanionData"))?(M=M())&&M.onLayoutVisibleCallback:null;(t=M)==null||t()});
return _.O("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.d6(function(t){_.$E(t.currentTarget,"yt-refit-popups-action")}),
el:_.tE(f,v),"aria-label":function(){var t,M;return(t=H().interaction)==null?void 0:(M=t.accessibility)==null?void 0:M.label}},_.O("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.O(_.Jj,{data:function(){return H().adImage}},{adImageViewModel:function(t){return _.O(_.I$,{data:t.data,
targetHeight:80,customCommandResolver:xTe})}})),_.O("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.O("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.O(_.Jj,{data:function(){return H().adBadge}},{adBadgeViewModel:function(t){return _.O(_.Vc,{data:t.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.O("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.O(_.Jj,{data:function(){return H().menu}},{buttonViewModel:_.Wp}))))},"Gk"),"banner-image-layout-view-model",{props:{data:_.ki}});_.yn(_.a(function(f){var H=f.data;f=_.MV({visibilityCallback:function(t){var M,h=(M=H().interaction)==null?void 0:M.onFirstVisible;t&&h&&_.XA(h)},
showOption:_.f_});var v=_.as(function(){return H().interaction},BhM);
_.QL(function(){var t,M;M=(M=_.ES("yt.www.ads.eventcache.getLastCompanionData"))?(M=M())&&M.onLayoutVisibleCallback:null;(t=M)==null||t()});
return _.O("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.tE(f,v)},_.O("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.O(_.Jj,{data:function(){return H().adImage}},{adImageViewModel:function(t){return _.O(_.I$,{data:t.data,
targetHeight:80,customCommandResolver:BhM})}})),_.O("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.O("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.O(_.Jj,{data:function(){return H().adAvatarLockup}},{adAvatarLockupViewModel:function(t){return _.O(xdM,{data:t.data,
customCommandResolver:BhM})}})),_.O(_.Jj,{data:function(){return H().adButton}},{adButtonViewModel:function(t){return _.O(_.vO,{data:t.data,
customCommandResolver:BhM})}}),_.O("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.O(_.Jj,{data:function(){return H().menu}},{buttonViewModel:_.Wp}))))},"Hk"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.ki}});var pQO={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"},Ib=function(){var f=_.K.apply(this,arguments)||this;f.updateCompanionDataJobId=0;f.contentVideoId=null;f.player=null;f.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return f};
_.e(Ib,_.K);_.R=Ib.prototype;_.R.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:pQO}}};
_.R.attached=function(){var f=this,H=_.vx();H&&H.getPlayerPromise().then(function(v){f.getCachedDataAndListen(v)})};
_.R.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.R.updateRendererStamper=function(){var f={};if(this.data)for(var H in pQO)if(this.data[H]){f[H]=this.data[H];break}if(this.oneofRenderer!=void 0||Object.keys(f).length)this.oneofRenderer=f};
_.R.getCachedDataAndListen=function(f){var H=this.retrieveCachedCompanionData();H&&Object.keys(H).length&&this.receiveCompanionData(H);this.ytPlayerListenerBehavior.listenToPlayerEvent(f,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=f};
_.R.retrieveCachedCompanionData=function(){return _.Mr.yt&&_.Mr.yt.www&&_.Mr.yt.www.ads&&_.Mr.yt.www.ads.eventcache&&_.Mr.yt.www.ads.eventcache.getLastCompanionData?_.Mr.yt.www.ads.eventcache.getLastCompanionData():null};
_.R.receiveCompanionData=function(f){f&&Object.keys(f).length?(this.contentVideoId=f.contentVideoId,this.setCompanionData(f)):this.setCompanionData(f)};
_.R.setCompanionData=function(f){this.cancelPendingCompanionAdJobs();if(f){this.updateCompanionDataJobId=0;for(var H in pQO)pQO.hasOwnProperty(H)&&(this.data[H]=void 0);f.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",f.shoppingCompanionCarouselRenderer):f.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",f.imageCompanionAdRenderer):f.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",f.actionCompanionAdRenderer),_.$E(this.hostElement,
"yt-hide-unlimited-offer-module"),_.$E(this.hostElement,"yt-hide-tvfilm-offer-module")):f.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",f.bannerImageLayoutViewModel):f.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",f.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.R.dataChanged=function(){var f=this,H=_.vx();H?H.getPlayerPromise().then(function(v){f.contentVideoId&&v.getVideoUrl().includes("v="+f.contentVideoId)||(f.cancelPendingCompanionAdJobs(),f.updateRendererStamper())}):_.Nw(Error("Jo"))};
_.R.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.nN.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.R.handleCompanionAdClicked=function(f,H){this.player.onAdUxClicked(f,H);this.player.pauseVideo()};
Ib.prototype.dataChanged=Ib.prototype.dataChanged;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Ib.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Ib.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Ib.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Ib.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.B(_.im.YtPlayerListenerBehavior),_.N("design:type",_.kI)],Ib.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Ib.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],Ib.prototype,"oneofRenderer",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ib.prototype,"dataChanged",null);_.E([_.u({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],Ib);
_.G(Ib,"ytd-companion-slot-renderer",function(){if(DdL!==void 0)return DdL;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return DdL=f},{mode:_.WK("kevlar_poly_si_batch_j067")?
1:2});var Ql4;var SL=function(){return _.K.apply(this,arguments)||this};
_.e(SL,_.K);SL.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
SL.prototype.dataChanged=SL.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],SL.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],SL.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],SL.prototype,"companionSlotData",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SL.prototype,"dataChanged",null);
_.E([_.u({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],SL);
_.G(SL,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(Ql4!==void 0)return Ql4;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Ql4=f},{mode:1});var uUA;var db=function(){var f=_.K.apply(this,arguments)||this;f.skinnyMode=!1;f.COMPACT_EVENT_COUNT=4;f.onShelfToggleButtonTap=function(){f.logTap(f.data);f.showingMore=!f.showingMore};
f.onShelfToggleButtonFocus=function(){f.showingMore||(f.logTap(f.data),f.showingMore=!0,_.qV(f,function(){var H=f.COMPACT_EVENT_COUNT-1,v;(v=_.mF(f.hostElement).querySelector("#event-"+H))==null||v.focus()}))};
return f};
_.e(db,_.K);_.R=db.prototype;_.R.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.R.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.R.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.jr(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.jr(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.jr(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.jr(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.jr(this.infoTooltip,this.infoTooltip.hide))};
_.R.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.jr(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.jr(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.jr(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.jr(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.jr(this.infoTooltip,this.infoTooltip.hide))};
_.R.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)};
_.R.onShowingMoreChanged=function(){var f;this.showingMoreChanged((f=this.showingMore)!=null?f:!1)};
_.R.showingMoreChanged=function(f){var H=this.get("data.events")||[];this.set("restEvents",H.slice(1,f?H.length:this.COMPACT_EVENT_COUNT).map(function(v){return v.ticketEventRenderer}));
H.slice(0,f?H.length:this.COMPACT_EVENT_COUNT).forEach(function(v){var t=_.uy();v=v.ticketEventRenderer.trackingParams;_.Qe()&&t&&v&&(v=_.zK(v),t&&_.b0(t,v))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.R.computeAriaLabel=function(f){return f.subtitle1+", "+f.subtitle2};
_.R.logTap=function(f){_.Qe()&&this.ytRendererBehavior.logExplicitClick(f)};
_.R.isKeyboardAction=function(f){return this.get("detail.x",f)===0&&this.get("detail.y",f)===0};
_.R.onFirstEventTap=function(f){f.target&&this.handleTap(f.target,this.firstEvent,this.isKeyboardAction(f))};
_.R.onTicketLinkTap=function(f){f.target&&this.handleTap(f.target,f.model.item,this.isKeyboardAction(f))};
_.R.handleTap=function(f,H,v){if(H.buttonCommand)if(H.hasMultipleOffers)Object.assign(_.U(H.buttonCommand,_.Up),{properties:{source:v?"keyboard":"tap"}}),this.logTap(H),this.popupPositionTarget=f,_.Oj(this.hostElement,[H.buttonCommand],this.hostElement);else{var t;if((t=_.U(H.buttonCommand,_.X7))==null?0:t.url)this.logTap(H),_.we(window,_.U(H.buttonCommand,_.X7).url)}};
db.prototype.onShowingMoreChanged=db.prototype.onShowingMoreChanged;db.prototype.dataChanged=db.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],db.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],db.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],db.prototype,"firstEvent",void 0);_.E([_.F(),_.N("design:type",Object)],db.prototype,"restEvents",void 0);_.E([_.F(),_.N("design:type",String)],db.prototype,"imageUrl",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],db.prototype,"showingMore",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],db.prototype,"canShowMore",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],db.prototype,"skinnyMode",void 0);_.E([_.F(),_.N("design:type",HTMLElement)],db.prototype,"popupPositionTarget",void 0);_.E([_.lJ("#banner-info-tooltip"),_.N("design:type",Object)],db.prototype,"infoTooltip",void 0);
_.E([_.lJ("#info-container"),_.N("design:type",HTMLElement)],db.prototype,"infoContainer",void 0);_.E([_.lJ("#shelf-toggler"),_.N("design:type",HTMLElement)],db.prototype,"shelfToggleButton",void 0);_.E([_.lJ("#separator"),_.N("design:type",HTMLDivElement)],db.prototype,"separator",void 0);_.E([_.F(),_.N("design:type",String)],db.prototype,"shelfTogglerLabelText",void 0);_.E([_.F(),_.N("design:type",String)],db.prototype,"shelfTogglerIcon",void 0);
_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],db.prototype,"dataChanged",null);_.E([_.xV("showingMore"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],db.prototype,"onShowingMoreChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],db);
_.G(db,"ytd-ticket-shelf-renderer",function(){if(uUA!==void 0)return uUA;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return uUA=f},{mode:1});var aRL;var PhO;var jL=function(){return _.K.apply(this,arguments)||this};
_.e(jL,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],jL.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],jL.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],jL);
_.G(jL,"ytd-comments-entry-point-message-renderer",function(){if(PhO!==void 0)return PhO;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return PhO=f},{mode:1});var GfV;var sQ=function(){return _.K.apply(this,arguments)||this};
_.e(sQ,_.K);_.H7.Object.defineProperties(sQ.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.teaserAvatar)}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],sQ.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],sQ.prototype,"data",void 0);_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],sQ.prototype,"hasAvatar",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],sQ);
_.G(sQ,"ytd-comments-entry-point-teaser-renderer",function(){if(GfV!==void 0)return GfV;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return GfV=f},{mode:1});var ChM;var ZZ=function(){return _.K.apply(this,arguments)||this};
_.e(ZZ,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ZZ.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],ZZ.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],ZZ);
_.G(ZZ,"ytd-comments-simplebox-renderer",function(){if(ChM!==void 0)return ChM;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return ChM=f},{mode:1});var J5=function(){var f=_.K.apply(this,arguments)||this;f.fullHeight=!_.J("comment_teaser_full_height_kill_switch")&&_.J("kevlar_watch_grid");return f};
_.e(J5,_.K);J5.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"}}}};
J5.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
J5.prototype.onTap=function(){var f=this.tapCommand;f&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(f))};
J5.prototype.onKeyUp=function(f){if(f.keyCode===13)this.onTap()};
_.H7.Object.defineProperties(J5.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null?0:f.onTap)return this.data.onTap;var H,v;if(((H=this.data)==null?0:H.teaserContent)||((v=this.data)==null?0:v.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)!=null&&f.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
J5.prototype.onKeyUp=J5.prototype.onKeyUp;J5.prototype.onTap=J5.prototype.onTap;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],J5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],J5.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],J5.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],J5.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],J5.prototype,"fullHeight",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],J5.prototype,"tapCommand",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],J5.prototype,"simpleboxPlaceholder",null);_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],J5.prototype,"hasSimpleboxPlaceholder",null);
_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],J5.prototype,"simpleboxAvatar",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],J5.prototype,"teaserContent",null);_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],J5.prototype,"hasTeaserContent",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],J5.prototype,"teaserAvatar",null);
_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],J5.prototype,"hasTeaserAvatar",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],J5.prototype,"messageText",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],J5.prototype,"contentRenderer",null);_.E([_.z("data"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],J5.prototype,"hasContents",null);
_.E([_.z("data"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],J5.prototype,"hasContentRenderer",null);_.E([_.sE("click"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],J5.prototype,"onTap",null);_.E([_.sE("keypress"),_.N("design:type",Function),_.N("design:paramtypes",[_.WU]),_.N("design:returntype")],J5.prototype,"onKeyUp",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],J5);
_.G(J5,"ytd-comments-entry-point-header-renderer",function(){if(aRL!==void 0)return aRL;var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return aRL=f},{mode:1});var EOM;_.J("web_enable_sink_animated_rolling_character_and_number")?_.yn(_.LzT,"yt-animated-rolling-number",{props:{numberText:_.ki,numberValue:_.ki,heightPx:_.ki,fontSizeMultiplier:_.ki,shouldAnimate:_.ki,forceRollUp:_.ki}}):$T1();var NrM=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),cTU={numberText:"",heightPx:2*NrM,shouldAnimate:!1},lX=function(){var f=_.K.apply(this,arguments)||this;f.usingAnimatedComponents=!0;f.wasDetailed=!1;f.JSC$22843_browserSupportsAnimation=_.J("web_supports_animations_api");f.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};f.detailed=!1;f.shouldAnimate=!1;f.viewCountProps=cTU;f.dateTextProps=
cTU;f.metadataBadgesInDescription=_.J("web_metadata_badges_in_description");return f};
_.e(lX,_.K);_.R=lX.prototype;_.R.resetAnimationState=function(){this.shouldAnimate=!1};
_.R.updateDynamicMetadata=function(){if(this.JSC$22843_browserSupportsAnimation){if(!this.detailed){var f,H,v,t;var M=(f=this.videoPrimaryInfoRenderer)==null?void 0:(H=f.viewCount)==null?void 0:(v=H.videoViewCountRenderer)==null?void 0:(t=v.extraShortViewCount)==null?void 0:t.simpleText;var h,y,m,W;var I=(h=this.videoPrimaryInfoRenderer)==null?void 0:(y=h.viewCount)==null?void 0:(m=y.videoViewCountRenderer)==null?void 0:(W=m.shortViewCount)==null?void 0:W.simpleText}if(!I){var S,d,Z,l;M=(S=this.videoPrimaryInfoRenderer)==
null?void 0:(d=S.viewCount)==null?void 0:(Z=d.videoViewCountRenderer)==null?void 0:(l=Z.unlabeledViewCountValue)==null?void 0:l.simpleText;var L,r,n,Q;I=(L=this.videoPrimaryInfoRenderer)==null?void 0:(r=L.viewCount)==null?void 0:(n=r.videoViewCountRenderer)==null?void 0:(Q=n.viewCount)==null?void 0:Q.simpleText}var C,w,c;f=Number((C=this.videoPrimaryInfoRenderer)==null?void 0:(w=C.viewCount)==null?void 0:(c=w.videoViewCountRenderer)==null?void 0:c.originalViewCount);var A,X;C=(A=this.videoPrimaryInfoRenderer)==
null?void 0:(X=A.relativeDateText)==null?void 0:X.simpleText;var fg;A=!((fg=this.videoPrimaryInfoRenderer)==null||!fg.relativeDateText);if(M&&I&&f&&(C||!A)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;fg=I.split(new RegExp("("+M+")"));M=ogU(fg[0]);var gB;I={numberText:(gB=fg[1])!=null?gB:"",numberValue:f,heightPx:2*NrM,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var O5;gB=((O5=fg[2])!=null?O5:"")+"  ";this.setViewCount(I,M,ogU(gB));
if(!this.detailed&&A){M=C.split(/(\d+)/);O5=ogU(M[0]);var s5;gB={numberText:(s5=M[1])!=null?s5:"",heightPx:2*NrM,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var U5;s5=((U5=M[2])!=null?U5:"")+"  ";this.setDateText(gB,O5,ogU(s5))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.R.setViewCount=function(f,H,v){_.fG(H)!==_.fG(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=H);this.viewCountProps.numberText!==(f==null?void 0:f.numberText)&&(this.viewCountProps=f||cTU);_.fG(v)!==_.fG(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=v)};
_.R.setDateText=function(f,H,v){_.fG(H)!==_.fG(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=H);this.dateTextProps.numberText!==(f==null?void 0:f.numberText)&&(this.dateTextProps=f||cTU);_.fG(v)!==_.fG(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=v)};
_.R.onYtUpdateViewershipAction=function(f){this.videoPrimaryInfoRenderer&&(_.U(f,ubD).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.U(f,ubD).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.U(f,ubD).viewCount)))};
_.R.onYtUpdateDateTextAction=function(f){if(this.videoPrimaryInfoRenderer){f=_.U(f,_.pAo).dateText;this.shouldAnimate=!0;var H;((H=this.videoPrimaryInfoRenderer)==null?0:H.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",f):this.set("videoPrimaryInfoRenderer.dateText",f)}};
_.H7.Object.defineProperties(lX.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return DTU(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.fG(DTU(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.fG(this.viewCountPreNumberText),this.viewCountProps.numberText,_.fG(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.fG(this.dateTextPreNumberText),this.dateTextProps.numberText,_.fG(this.dateTextPostNumberText)].join("")}}});
lX.prototype.updateDynamicMetadata=lX.prototype.updateDynamicMetadata;lX.prototype.resetAnimationState=lX.prototype.resetAnimationState;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],lX.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],lX.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],lX.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],lX.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],lX.prototype,"videoPrimaryInfoRenderer",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],lX.prototype,"detailed",void 0);_.E([_.F(),_.N("design:type",Object)],lX.prototype,"shouldAnimate",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],lX.prototype,"viewCountPreNumberText",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],lX.prototype,"viewCountProps",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],lX.prototype,"viewCountPostNumberText",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],lX.prototype,"dateTextPreNumberText",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],lX.prototype,"dateTextProps",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],lX.prototype,"dateTextPostNumberText",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],lX.prototype,"metadataBadgesInDescription",void 0);_.E([_.z("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.N("design:type",Object),_.N("design:paramtypes",[])],lX.prototype,"infoText",null);
_.E([_.z("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.N("design:type",String),_.N("design:paramtypes",[])],lX.prototype,"descriptionInfoTooltipText",null);_.E([_.z("detailed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],lX.prototype,"showDescriptionInfoTooltip",null);
_.E([_.z("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.N("design:type",String),_.N("design:paramtypes",[])],lX.prototype,"animatedViewCountAccessibilityLabel",null);_.E([_.z("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.N("design:type",String),_.N("design:paramtypes",[])],lX.prototype,"animatedDateTextAccessibilityLabel",null);
_.E([_.Zw("videoPrimaryInfoRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lX.prototype,"resetAnimationState",null);_.E([_.Zw("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lX.prototype,"updateDynamicMetadata",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-watch-info-text"})],lX);
_.G(lX,"ytd-watch-info-text",function(){if(EOM!==void 0)return EOM;var f=document.createElement("template");_.x(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return EOM=f},{mode:1});var XQD;var ATv="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var bdO=_.a(function(f){var H=f.data;var v=f.setTapCommand;_.K4(function(){var t=_.GK(H().onTap);v(t)},"X4onJd");
return _.O("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.O(_.Jj,{data:function(){return H().avatar}},{avatarViewModel:_.K5}),_.O("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.O("span",null,function(){return H().simpleboxText})))},"Ik");var ido=_.a(function(f){return _.O("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.O(_.g,{cond:function(){return _.U(f.data().avatar,_.pT)},
then:function(H){return _.O(_.K5,{data:H,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.O("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.O(_.iq,{text:function(){return f.data().teaserText}})))},"Jk");var kf4=_.a(function(f){var H=f.data;var v=f.setTapCommand;_.K4(function(){var t=_.GK(H().onTap);v(t)},"PmAol");
return _.O("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.O(_.Jj,{data:function(){return H().teasers}},{commentsEntryPointTeaserViewModel:ido}))},"Kk");var Tr4=_.a(function(f){var H=f.data;var v=f.setTapCommand;_.K4(function(){var t=_.GK(H().onTap);v(t)},"Nh3Hjd");
return _.O("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.O(_.iq,{text:function(){return H().messageText}}))},"Lk");var wQe=_.a(function(f){var H=f.data;var v=f.setTapCommand;var t=f.isDisabled;_.K4(function(){var M=(t==null?0:t())?void 0:_.GK(H().onTap);v(M)},"omeiWe");
return _.O("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.O(_.JE,{icon:function(){return H().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.O(_.g,{cond:function(){return H().image},
then:function(M){return _.O(_.Hn,{data:M,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.O(_.iq,{text:function(){return H().text},
className:function(){return H().image||H().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.O(_.Jj,{data:function(){return H().button}},{buttonViewModel:function(M){return _.O(_.Wp,{data:M.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:t==null?void 0:t()}}})}}))},"Mk");var qZo=_.a(function(f){var H=f.data;var v=f.itemIndex;var t=f.selectedIndex;var M=f.indexUpdatedCallback;var h=f.observer;f=f.title;var y=_.TN("yt-carousel-item-view-model",function(d){h&&h().observe(d)}),m=function(d){v()===t()&&M(d)},W=_.uE(Vvo),I=_.uE(_.dbs),S=function(){var d,Z,l;
return((d=H())==null?void 0:d.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!W()||((Z=H())==null?void 0:Z.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&I().includes("PAposts_by_host")||((l=H())==null?void 0:l.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&I().includes("PAyouchat")};
return _.O("yt-carousel-item-view-model",{el:y,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":f},_.O(_.Jj,{data:function(){var d,Z;return(Z=(d=_.U(H().carouselItem,hw4))==null?void 0:d.textCarousel)!=null?Z:H().carouselItem}},{textCarouselItemViewModel:function(d){return _.O(wQe,{data:d.data,
setTapCommand:m,isDisabled:S})},
commentTeaserCarouselItemViewModel:function(d){return _.O(kf4,{data:d.data,setTapCommand:m})},
commentInputBoxCarouselItemViewModel:function(d){return _.O(bdO,{data:d.data,setTapCommand:m})},
commentsEntryPointMessageViewModel:function(d){return _.O(Tr4,{data:d.data,setTapCommand:m})}}))},"Nk");var fPq=_.a(function(f){var H=f.numDots;var v=f.activeIndex;return _.O("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.O(_.eK,{each:function(){return Array.from({length:H()})},
keyBy:"INDEX"},function(t,M){return _.O("div",{class:function(){var h={};return _.zV("ytCarouselDotsShapeDot",(h.ytCarouselDotsShapeDotActive=M===v(),h))}})}))},"Ok");var H91=_.a(function(f){var H=f.data;var v=f.handleCarouselNavigation;var t=f.numItems;var M=f.selectedIndex;var h=function(){return{disabled:M()===0}},y=function(){return{disabled:M()===t()-1}};
return _.O("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.O("div",null,_.O("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return H().title}),_.O(_.g,{cond:function(){return H().subtitle},
then:function(m){return _.O("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return H().subtitleAccessibilityText}},m)}})),_.O(_.g,{cond:function(){return t()>1},
then:function(){return _.O("div",{class:"ytCarouselTitleViewModelNavigation"},_.O(fPq,{numDots:t,activeIndex:M}),_.O(_.g,{cond:function(){return H().previousButton},
then:function(m){return _.O(_.Jj,{data:m},{buttonViewModel:function(W){return _.O(_.Wp,{data:W.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return v(-1)},
buttonOverrides:h})}})}}),_.O(_.g,{cond:function(){return H().nextButton},
then:function(m){return _.O(_.Jj,{data:m},{buttonViewModel:function(W){return _.O(_.Wp,{data:W.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return v(1)},
buttonOverrides:y})}})}}))}}))},"Pk");_.yn(_.a(function(f){var H=f.data;var v,t=_.TN("yt-video-metadata-carousel-view-model"),M=_.TN("div",function(A){var X=function(){var fg=A.offsetWidth*r(),gB=24*(r()-1);Z(fg+gB)};
X();window.ResizeObserver&&(v=new ResizeObserver(X),v.observe(A))}),h=_.a8("HTML_DIR")==="rtl",y=!1,m=0,W=0;
f=_.V(_.gp(0,void 0,"fCZdg"));var I=f.next().value,S=f.next().value;f=_.V(_.gp(0,void 0,"FQiAle"));var d=f.next().value,Z=f.next().value;f=_.V(_.gp(!1,void 0,"O4owzd"));var l=f.next().value,L=f.next().value,r=function(){var A,X,fg;return(fg=(A=H())==null?void 0:(X=A.carouselTitles)==null?void 0:X.length)!=null?fg:0},n=function(){M.value&&M.value.scrollLeft!==m&&S((h?M.value.scrollLeft<m:M.value.scrollLeft>m)?Math.min(I()+1,r()-1):Math.max(I()-1,0))},Q;
window.IntersectionObserver&&(Q=new IntersectionObserver(function(A){A=_.V(A);for(var X=A.next();!X.done;X=A.next())if(X.value.isIntersecting){if(y){y=!1;break}n()}else S(W)},{threshold:.2}));
_.K4(function(){if(M.value){var A=(h?-1:1)*(d()/r()+12)*(l()&&Q?W:I());typeof M.value.scrollTo==="function"?M.value.scrollTo({left:A,behavior:"smooth"}):M.value.scrollLeft=A;m=A;W=l()&&Q?W:I()}},"oi9Jzd");
var C,w=function(A){C=A};
_.Dt(function(){var A;(A=v)==null||A.disconnect();var X;(X=Q)==null||X.disconnect()});
var c=function(A){A=I()+A;A>=0&&A<r()&&(y=!0,S(A))};
return _.O("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:t,"on:click":_.d6(function(A){if(_.r3(_.Fs(A),t.value,["BUTTON".toString()])||!C)return!1;_.t8().resolve(_.MJ).resolveCommand(C,{forceClickLogging:!0});return!1}),
"on:touchstart":_.d6(function(){L(!0);return!1}),
"on:touchend":_.d6(function(){Q||n();L(!1);return!1}),
hidden:function(){var A,X;return!((A=H())==null?0:(X=A.carouselItems)==null?0:X.length)}},_.O("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.O(_.g,{cond:function(){return H().carouselTitles},
then:function(A){return _.O(_.Jj,{data:function(){return A()[l()&&Q?W:I()]}},{carouselTitleViewModel:function(X){return _.O(H91,{data:X.data,
handleCarouselNavigation:c,numItems:r,selectedIndex:I})}})}})),_.O("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:M},_.O("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+d()+"px;"}},_.O(_.g,{cond:function(){return H().carouselItems},
then:function(A){return _.O(_.eK,{each:A},function(X,fg){return _.O(_.Jj,{data:function(){return X}},{carouselItemViewModel:function(gB){return _.O(qZo,{data:gB.data,
itemIndex:fg,selectedIndex:I,indexUpdatedCallback:w,observer:Q,title:function(){a:{var O5=fg();var s5,U5=(s5=H())==null?void 0:s5.carouselTitles;if(U5&&(O5=U5[O5])){var lH;O5=(lH=_.U(O5,Mp1))==null?void 0:lH.title;break a}O5=void 0}return O5}})}})})}}))))},"Qk"),"yt-video-metadata-carousel-view-model",{props:{data:_.ki}});var vle=_.J("web_action_buttons_update_owner_width")?32:12,UQ=function(){var f=_.K.apply(this,arguments)||this;f.isHovering=!1;f.enableColorSampling=_.J("web_delhi_colorful_sd");f.metadataBadgesInDescription=_.J("web_metadata_badges_in_description");f.descriptionCollapsed=!0;f.useFadedScrimDescription=_.J("kevlar_enable_faded_scrim_on_description");f.skinnyMode=!1;f.playlist=!1;f.isDark=document.documentElement.hasAttribute("dark");f.disableVideoOwnerOnTap=_.J("swatchie_video_owner_on_tap_ks");f.swatcherooDelayLoad=
_.J("swatcheroo_enable_ghost_cards");f.primaryMenuWidth=0;f.videoId="";f.titleHeadlineXs=_.J("web_watch_typography_title_headline_xs");f.titleHeadlineS=_.J("web_watch_typography_title_headline_s");f.titleHeadlineM=_.J("web_watch_typography_title_headline_m");f.titleHashtagBlackLinkified=_.J("web_title_hashtag_black_linkified");f.titleHashtagGreyLinkified=_.J("web_title_hashtag_grey_linkified");f.actionButtonsUpdateOwnerWidth=_.J("web_action_buttons_update_owner_width");f.shouldForceIconOnly=!1;f.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};f.isFullscreen=!1;f.isTheaterMode=!1;return f};
_.e(UQ,_.K);_.R=UQ.prototype;_.R.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.R.updateOwnerAndDescriptionPosition=function(){_.J("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.oJ(this.bottomRowElement,this.ownerElement)):(_.oJ(this.bottomRowElement,this.descriptionElement),_.oJ(this.topRowElement,this.ownerElement)))};
_.R.titleOnTap=function(f){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.w6(_.f2(f)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var H;((H=window.getSelection())==null?0:H.toString().length)||this.handleExpandDescriptionCommands()}};
_.R.videoOwnerOnTap=function(f){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.w6(_.f2(f)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.R.detached=function(){var f=this,H;return _.Y(function(v){(H=f.resizeObserver)==null||H.disconnect();_.Bj(v)})};
_.R.maybeAttachResizeObserver=function(){var f=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.Nl(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){f.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.R.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var f=this.hostElement.clientWidth,H=Math.max(this.largerItemWrap?400:350,f/2-vle);if(_.J("web_action_buttons_update_owner_width")){var v;H=(((v=document.getElementById("owner"))==null?void 0:v.clientWidth)||0)+vle}this.actionsOnSeparateLine=this.primaryMenuWidth>f-H?!0:!1}};
_.R.stripAttributedDescription=function(f){return{content:f.content.replace(/[\r\n]{2,}/g,"\n")}};
_.R.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.J("web_modern_buttons"),forceIconButton:!_.J("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:_.J("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"}}}};
_.R.videoPrimaryInfoRendererChanged=function(){var f;if((f=this.videoPrimaryInfoRenderer)==null?0:f.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.R.videoSecondaryInfoRendererChanged=function(){var f,H;(H=(f=this.descriptionInlineExpander).collapse)==null||H.call(f);this.descriptionExpandClientVe=_.$$(110509);this.descriptionCollapseClientVe=_.$$(110510);f=_.uy();H=_.Qe();f&&H&&(_.J("combine_ve_grafts")?(_.YP(_.UV(),this.descriptionExpandClientVe,H),_.YP(_.UV(),this.descriptionCollapseClientVe,H)):_.AX(f,H,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.R.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.R.updateTopLevelIconsOnly=function(){var f=this;_.J("top_level_update_killswitch")||this.menu&&_.nN.addLowPriorityJob(function(){f.menu.topLevelIconsOnly=f.skinnyMode},_.VQ("swathceroo_delay_flexible_menu_update",100))};
_.R.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.J("web_action_buttons_minimize_subscribe")};
_.R.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.R.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.R.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.R.onYtTextInlineExpanderExpandedChanged=function(){if(!_.J("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var f,H;(H=(f=this.structuredDescriptionContentRendererElement).resize)==null||H.call(f)}};
_.R.onRenderStamperFinished=function(f){(f==null?void 0:f.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.R.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.R.onYtExpanderLessTapped=function(){var f,H=(f=this.videoSecondaryInfoRenderer)==null?void 0:f.showLessCommand;H&&this.ytComponentBehavior.resolveCommand(H)};
_.R.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.R.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.R.onDescriptionClick=function(f){if(!_.w6(_.f2(f)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var H;((H=window.getSelection())==null?0:H.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.J("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.R.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.R.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.R.logCollapseClick=function(){var f=_.uy();f&&this.descriptionCollapseClientVe&&_.Ti(f,this.descriptionCollapseClientVe)};
_.R.logExpandClick=function(){var f=_.uy();f&&this.descriptionExpandClientVe&&_.Ti(f,this.descriptionExpandClientVe)};
_.R.collapseDescription=function(){this.descriptionCollapsed=!0};
_.R.scrollToTopOfContainer=function(){_.mb(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.R.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.R.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.R.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.R.resize=function(){if(this.descriptionInlineExpander){var f,H;(H=(f=this.descriptionInlineExpander).resize)==null||H.call(f)}else _.pb(new _.e$("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var v;(v=this.menu)==null||v.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.R.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var f,H,v,t,M=_.J("web_action_buttons_update_owner_width")?(v=(f=_.mF(this.menu).querySelector("#button-shape"))==null?void 0:f.clientWidth)!=null?v:0:(t=(H=_.mF(this.menu).querySelector("#button"))==null?void 0:H.clientWidth)!=null?t:0,h,y;f=((y=(h=_.mF(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:h.clientWidth)!=null?y:0)+8+M;var m,W;M=(W=(m=_.mF(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:m.children.length)!=null?W:2;f<=8*M||(this.primaryMenuWidth=f)}};
_.R.onYtUpdateTitleAction=function(f){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.U(f,QF4).title)};
_.R.onYtUpdateDescriptionAction=function(f){if(f=_.U(f,_.t3n)){var H,v=!((H=this.videoSecondaryInfoRenderer)==null||!H.attributedDescription);f.isEmpty||!f.description&&!f.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):f.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",f.attributedDescription):f.description&&(v?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.Qz(f.description)):this.set("videoSecondaryInfoRenderer.description",f.description))}};
_.R.onYtDarkModeToggledAction=function(f){this.isDark=f};
_.R.registerPanel=function(){if(!_.J("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var f=_.J("web_watch_imax_theater_mode")&&this.isTheaterMode;f=_.J("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||f;var H=_.t8().resolve(_.B5);H&&!f&&H.registerPanel("engagement-panel-structured-description",this)}};
_.R.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.R.parseColorSamplingData=function(){var f;if(_.J("web_delhi_colorful_sd")&&((f=this.structuredDescriptionContentRenderer)==null?0:f.items)&&(f=this.structuredDescriptionContentRenderer.items.find(function(M){return!!_.U(M,nz)}))){var H,v;
this.hoverColor={lightTheme:(H=_.U(f,nz))==null?void 0:H.lightThemeColorPalette,darkTheme:(v=_.U(f,nz))==null?void 0:v.darkThemeColorPalette};var t;this.hoverText=(t=_.U(f,nz))==null?void 0:t.colorSampledDescriptionBodyText}};
_.R.updateHoverColor=function(){if(_.J("web_delhi_colorful_sd")){var f=this.hoverColor,H={},v;f=(v=this.isDark?f==null?void 0:f.darkTheme:f==null?void 0:f.lightTheme)!=null?v:{};v=_.V(ATv);for(var t=v.next();!t.done;t=v.next()){t=t.value;var M=f[t];H["--yt-saturated-"+_.Jg(t)]=M?_.cS(M):"initial"}_.Sr(this.hostElement,H)}};
_.R.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.R.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.R.showPanel=function(f){this.expandDescription();var H=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;H.resize();var v,t=f==null?void 0:(v=f.sectionListEngagementPanelExtras)==null?void 0:v.scrollToItemSectionIdentifier;t?_.nN.addJob(function(){H==null||H.scrollToSection(t)},8):this.scrollToTopOfContainer()};
_.R.isVisible=function(){return!this.descriptionCollapsed};
_.R.getReloadContinuation=function(){};
_.R.hidePanel=function(){};
_.R.updatePanel=function(){};
_.H7.Object.defineProperties(UQ.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var f;return _.J("web_delhi_colorful_sd")&&(f=this.structuredDescriptionContentRenderer)!=null&&f.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(H){return!_.U(H,nz)&&!_.U(H,PtL)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.structuredDescriptionContentRendererComputed)!=null&&f.items){var H;f=_.V((H=this.structuredDescriptionContentRendererComputed)==null?void 0:H.items);for(H=f.next();!H.done;H=f.next())if(H=_.U(H.value,_.q3o))return H}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.videoPrimaryInfoRenderer)==null?0:f.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var f,H,v;return!!((f=this.videoSecondaryInfoRenderer)==null?0:(H=f.owner)==null?0:(v=H.videoOwnerRenderer)==null?0:v.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var f,H;if((f=this.videoSecondaryInfoRenderer)==null?0:(H=f.attributedDescription)==null?0:H.content){var v,t;return(t=this.stripAttributedDescription((v=this.videoSecondaryInfoRenderer)==null?void 0:v.attributedDescription))!=null?t:{runs:[]}}}if(_.J("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var M,h,y,m;return(m=(y=(M=this.videoSecondaryInfoRenderer)==
null?void 0:M.description)!=null?y:(h=this.videoSecondaryInfoRenderer)==null?void 0:h.attributedDescription)!=null?m:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var f,H;return(H=(f=this.videoSecondaryInfoRenderer)==null?void 0:f.headerRuns)!=null?H:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.commentsEntryPointHeaderRenderer)==null||!f.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.videoMetadataCarousel)==null||!f.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.VQ("swatchie_desc_lines",3):this.hasTeaserCarousel?_.VQ("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var f,H,v=Object.assign({},(f=this.videoSecondaryInfoRenderer)==null?void 0:(H=f.metadataRowContainer)==null?void 0:H.metadataRowContainerRenderer);if(v&&v.rows&&v.collapsedItemCount!==void 0&&!(v.rows.length<=v.collapsedItemCount))return v.rows=v.rows.slice(v.collapsedItemCount),v.collapsedItemCount=0,v}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var f,H,v=Object.assign({},(f=this.videoSecondaryInfoRenderer)==null?void 0:(H=f.metadataRowContainer)==null?void 0:H.metadataRowContainerRenderer);if(v&&v.rows&&v.collapsedItemCount!==void 0)return v.rows=v.rows.slice(0,v.collapsedItemCount),v.collapsedItemCount=v.rows.length,v}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var f,H;return!!((f=this.structuredDescriptionContentRendererComputed)==null?0:(H=f.items)==null?0:H.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRendererComputed)return null;var f;return(f=this.videoSecondaryInfoRenderer)==null?void 0:f.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var f,H,v;return((f=this.videoSecondaryInfoRenderer)==null?0:(H=f.owner)==null?0:(v=H.videoOwnerRenderer)==null?0:v.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var f,H,v,t;return!!((f=this.videoPrimaryInfoRenderer)==null?0:(H=f.videoActions)==null?0:(v=H.menuRenderer)==null?0:(t=v.flexibleItems)==null?0:t.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.w9(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.w9(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var f=this;if(_.J("web_title_hashtag_grey_delinkified")){var H,v=_.QA.unsafeClone((H=this.videoPrimaryInfoRenderer)==null?void 0:H.title);(H=v==null?void 0:v.runs)&&H.forEach(function(t){if(t==null?0:t.navigationEndpoint)t.textColor=4284506208,f.isDark&&(t.textColor=4289374890)});
return v}return(v=this.videoPrimaryInfoRenderer)==null?void 0:v.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.J("web_title_hashtag_black_delinkified")||_.J("web_title_hashtag_grey_delinkified")}}});
UQ.prototype.updateHoverColor=UQ.prototype.updateHoverColor;UQ.prototype.parseColorSamplingData=UQ.prototype.parseColorSamplingData;UQ.prototype.resetDescriptionState=UQ.prototype.resetDescriptionState;UQ.prototype.registerPanel=UQ.prototype.registerPanel;UQ.prototype.onYtExpanderLessTapped=UQ.prototype.onYtExpanderLessTapped;UQ.prototype.onYtExpanderMoreTapped=UQ.prototype.onYtExpanderMoreTapped;UQ.prototype.onRenderStamperFinished=UQ.prototype.onRenderStamperFinished;
UQ.prototype.onYtTextInlineExpanderExpandedChanged=UQ.prototype.onYtTextInlineExpanderExpandedChanged;UQ.prototype.onYtTextInlineExpanderCollapseClicked=UQ.prototype.onYtTextInlineExpanderCollapseClicked;UQ.prototype.onYtTextInlineExpanderExpandClicked=UQ.prototype.onYtTextInlineExpanderExpandClicked;UQ.prototype.moveActionsElement=UQ.prototype.moveActionsElement;UQ.prototype.updateShouldForceIconOnly=UQ.prototype.updateShouldForceIconOnly;UQ.prototype.updateTopLevelIconsOnly=UQ.prototype.updateTopLevelIconsOnly;
UQ.prototype.structuredDescriptionContentRendererChanged=UQ.prototype.structuredDescriptionContentRendererChanged;UQ.prototype.videoSecondaryInfoRendererChanged=UQ.prototype.videoSecondaryInfoRendererChanged;UQ.prototype.videoPrimaryInfoRendererChanged=UQ.prototype.videoPrimaryInfoRendererChanged;UQ.prototype.maybeUpdateActionsOnSeparateLine=UQ.prototype.maybeUpdateActionsOnSeparateLine;UQ.prototype.updateOwnerAndDescriptionPosition=UQ.prototype.updateOwnerAndDescriptionPosition;
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],UQ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],UQ.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],UQ.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],UQ.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.B(_.um),_.N("design:type",Object)],UQ.prototype,"ytdReduxBehavior",void 0);_.E([_.lJ("#above-the-fold"),_.N("design:type",HTMLElement)],UQ.prototype,"aboveTheFoldContainer",void 0);_.E([_.lJ("#menu ytd-menu-renderer"),_.N("design:type",Object)],UQ.prototype,"menu",void 0);_.E([_.lJ("#description-inline-expander"),_.N("design:type",Object)],UQ.prototype,"descriptionInlineExpander",void 0);
_.E([_.lJ("#faded-structured-description"),_.N("design:type",Object)],UQ.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.E([_.lJ("#structured-description"),_.N("design:type",Object)],UQ.prototype,"structuredDescriptionContentRendererElement",void 0);_.E([_.lJ("#title"),_.N("design:type",HTMLElement)],UQ.prototype,"titleElement",void 0);_.E([_.lJ("#description"),_.N("design:type",HTMLElement)],UQ.prototype,"descriptionElement",void 0);
_.E([_.lJ("#description-interaction"),_.N("design:type",Object)],UQ.prototype,"descriptionInteraction",void 0);_.E([_.lJ("#owner"),_.N("design:type",HTMLElement)],UQ.prototype,"ownerElement",void 0);_.E([_.lJ("#top-row"),_.N("design:type",HTMLElement)],UQ.prototype,"topRowElement",void 0);_.E([_.lJ("#bottom-row"),_.N("design:type",HTMLElement)],UQ.prototype,"bottomRowElement",void 0);_.E([_.lJ("#actions"),_.N("design:type",HTMLElement)],UQ.prototype,"actionsElement",void 0);
_.E([_.lJ("#bottom-actions"),_.N("design:type",HTMLElement)],UQ.prototype,"bottomActionsElement",void 0);_.E([_.lJ("#ytd-watch-info-text"),_.N("design:type",Object)],UQ.prototype,"watchInfoTextElement",void 0);_.E([_.F(),_.N("design:type",Object)],UQ.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],UQ.prototype,"videoPrimaryInfoRenderer",void 0);_.E([_.F(),_.N("design:type",Object)],UQ.prototype,"videoSecondaryInfoRenderer",void 0);
_.E([_.F(),_.N("design:type",Object)],UQ.prototype,"commentsEntryPointHeaderRenderer",void 0);_.E([_.F(),_.N("design:type",Object)],UQ.prototype,"videoMetadataCarousel",void 0);_.E([_.F(),_.N("design:type",Object)],UQ.prototype,"structuredDescriptionContentRenderer",void 0);_.E([_.z("structuredDescriptionContentRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],UQ.prototype,"structuredDescriptionContentRendererComputed",null);
_.E([_.F(),_.N("design:type",Object)],UQ.prototype,"videoSummary",void 0);_.E([_.F(),_.N("design:type",Object)],UQ.prototype,"merchShelf",void 0);_.E([_.F(),_.N("design:type",Object)],UQ.prototype,"infoPanelBelowMetadata",void 0);_.E([_.F(),_.N("design:type",Object)],UQ.prototype,"hoverColor",void 0);_.E([_.F(),_.N("design:type",Object)],UQ.prototype,"hoverText",void 0);_.E([_.F(),_.N("design:type",Object)],UQ.prototype,"isHovering",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],UQ.prototype,"enableColorSampling",void 0);_.E([_.z("structuredDescriptionContentRendererComputed"),_.N("design:type",Object),_.N("design:paramtypes",[])],UQ.prototype,"productShelf",null);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],UQ.prototype,"metadataBadgesInDescription",void 0);_.E([_.z("videoPrimaryInfoRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],UQ.prototype,"shouldHideBadges",null);
_.E([_.z("productShelf","descriptionCollapsed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],UQ.prototype,"shouldShowProductShelf",null);_.E([_.F(),_.N("design:type",Boolean)],UQ.prototype,"isWatchFlexy",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],UQ.prototype,"descriptionCollapsed",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],UQ.prototype,"useFadedScrimDescription",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],UQ.prototype,"skinnyMode",void 0);_.E([_.F({reflectToAttribute:!0}),_.z("videoSecondaryInfoRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],UQ.prototype,"largerItemWrap",null);_.E([_.F(),_.N("design:type",Object)],UQ.prototype,"playlist",void 0);_.E([_.F(),_.N("design:type",Object)],UQ.prototype,"clarifyBox",void 0);_.E([_.F(),_.N("design:type",Object)],UQ.prototype,"playerAds",void 0);
_.E([_.F(),_.N("design:type",Boolean)],UQ.prototype,"isDark",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],UQ.prototype,"actionsOnSeparateLine",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],UQ.prototype,"disableVideoOwnerOnTap",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],UQ.prototype,"swatcherooDelayLoad",void 0);_.E([_.F(),_.N("design:type",Boolean)],UQ.prototype,"suppressTopLevelMetadataRows",void 0);
_.E([_.F(),_.N("design:type",Object)],UQ.prototype,"primaryMenuWidth",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],UQ.prototype,"videoId",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],UQ.prototype,"titleHeadlineXs",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],UQ.prototype,"titleHeadlineS",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],UQ.prototype,"titleHeadlineM",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],UQ.prototype,"titleHashtagBlackLinkified",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],UQ.prototype,"titleHashtagGreyLinkified",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],UQ.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.E([_.F(),_.N("design:type",Object)],UQ.prototype,"shouldForceIconOnly",void 0);
_.E([_.xV("skinnyMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UQ.prototype,"updateOwnerAndDescriptionPosition",null);_.E([_.xV("skinnyMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UQ.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.E([_.z("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.N("design:type",Object),_.N("design:paramtypes",[])],UQ.prototype,"descriptionText",null);_.E([_.z("videoSecondaryInfoRenderer.headerRuns"),_.N("design:type",Array),_.N("design:paramtypes",[])],UQ.prototype,"headerRuns",null);
_.E([_.F({value:!1}),_.z("commentsEntryPointHeaderRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],UQ.prototype,"hasTeaser",null);_.E([_.F({value:!1,reflectToAttribute:!0}),_.z("videoMetadataCarousel"),_.N("design:type",Object),_.N("design:paramtypes",[])],UQ.prototype,"hasTeaserCarousel",null);_.E([_.F({value:3}),_.z("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.N("design:type",Object),_.N("design:paramtypes",[])],UQ.prototype,"descriptionMaxLines",null);
_.E([_.z("videoSecondaryInfoRenderer.metadataRowContainer"),_.N("design:type",Object),_.N("design:paramtypes",[])],UQ.prototype,"collapsibleMetadataRows",null);_.E([_.z("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.N("design:type",Object),_.N("design:paramtypes",[])],UQ.prototype,"alwaysVisibleMetadataRows",null);
_.E([_.z("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],UQ.prototype,"hasInlineStructuredDescription",null);_.E([_.z("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],UQ.prototype,"showInlineStructuredDescription",null);
_.E([_.z("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],UQ.prototype,"descriptionExpandCommand",null);_.E([_.z("videoSecondaryInfoRenderer.owner"),_.N("design:type",Object),_.N("design:paramtypes",[])],UQ.prototype,"videoOwnerCommand",null);_.E([_.F({reflectToAttribute:!0}),_.z("videoPrimaryInfoRenderer.videoActions"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],UQ.prototype,"flexMenuEnabled",null);
_.E([_.F({selector:_.pV,reflectToAttribute:!0}),_.N("design:type",Object)],UQ.prototype,"isFullscreen",void 0);_.E([_.F({selector:_.nV,reflectToAttribute:!0}),_.N("design:type",Object)],UQ.prototype,"isTheaterMode",void 0);_.E([_.z("descriptionText","useFadedScrimDescription"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],UQ.prototype,"showAttributedStringDescription",null);
_.E([_.z("descriptionText","useFadedScrimDescription"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],UQ.prototype,"showFormattedStringDescription",null);_.E([_.z("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],UQ.prototype,"showFadedStructuredDescription",null);
_.E([_.xV("videoPrimaryInfoRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UQ.prototype,"videoPrimaryInfoRendererChanged",null);_.E([_.z("videoPrimaryInfoRenderer.title"),_.N("design:type",Object),_.N("design:paramtypes",[])],UQ.prototype,"videoTitle",null);_.E([_.z("videoPrimaryInfoRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],UQ.prototype,"noEndpoints",null);
_.E([_.xV("videoSecondaryInfoRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UQ.prototype,"videoSecondaryInfoRendererChanged",null);_.E([_.Zw("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UQ.prototype,"structuredDescriptionContentRendererChanged",null);
_.E([_.Zw("skinnyMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UQ.prototype,"updateTopLevelIconsOnly",null);_.E([_.Zw("skinnyMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UQ.prototype,"updateShouldForceIconOnly",null);_.E([_.Zw("skinnyMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UQ.prototype,"moveActionsElement",null);
_.E([_.sE("yt-text-inline-expander-expand-clicked"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UQ.prototype,"onYtTextInlineExpanderExpandClicked",null);_.E([_.sE("yt-text-inline-expander-collapse-clicked"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UQ.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.E([_.sE("yt-text-inline-expander-expanded-changed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UQ.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.E([_.sE("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],UQ.prototype,"onRenderStamperFinished",null);
_.E([_.sE("yt-expander-more-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UQ.prototype,"onYtExpanderMoreTapped",null);_.E([_.sE("yt-expander-less-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UQ.prototype,"onYtExpanderLessTapped",null);
_.E([_.Zw("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UQ.prototype,"registerPanel",null);_.E([_.Zw("videoSecondaryInfoRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UQ.prototype,"resetDescriptionState",null);
_.E([_.Zw("structuredDescriptionContentRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UQ.prototype,"parseColorSamplingData",null);_.E([_.Zw("hoverColor","isDark"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UQ.prototype,"updateHoverColor",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-watch-metadata"})],UQ);
_.G(UQ,"ytd-watch-metadata",function(){if(XQD!==void 0)return XQD;var f=document.createElement("template");_.x(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata"> </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRendererComputed]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRendererComputed]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return XQD=f},{mode:2});_.mjo=function(f){_.zO.call(this);this.JSC$22868_watchApi=f;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;tzo(this);MzD(this);hdM(this);Rd1(this);VzL(this);yxM(this);Y1V(this)};
_.e(_.mjo,_.zO);var hdM=function(f){var H=function(){_.J("kevlar_is_pupi_enabled")||eL(f)};
f.JSC$22868_watchApi.getRoot().addEventListener("yt-player-updated",H);f.addOnDisposeCallback(function(){f.JSC$22868_watchApi.getRoot().removeEventListener("yt-player-updated",H)})},VzL=function(f){if(_.J("kevlar_endscreen_auto_theater_mode")){var H=f.JSC$22868_watchApi.subscribeToActiveChanged(function(){$jv(f)},!1);
f.addOnDisposeCallback(H)}},tzo=function(f){var H,v,t,M,h;
_.Y(function(y){if(y.nextAddress==1)return y.yield(f.JSC$22868_watchApi.playerApi,2);H=y.yieldResult;v=function(m){m=!!m;LE(f)&&(m=m?2:1,_.wC.getInstance().setState(m,!0,!1))};
t=function(m){m&&_.RZM(_.vS().getState())&&(_.mb(f.JSC$22868_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),f.temporaryTheaterMode=!0)};
M=function(m){_.J("kevlar_player_update_autonav_on_new_data")&&m.type==="newdata"&&(_.J("kevlar_is_pupi_enabled")||eL(f))};
h=function(m){f.onPlayerStateChange(m)};
_.J("kevlar_endscreen_auto_theater_mode")&&H.addEventListener("onAutonavCancelled",t);H.addEventListener("onAutonavChangeRequest",v);H.addEventListener("onVideoDataChange",M);H.addEventListener("onStateChange",h);f.addOnDisposeCallback(function(){H.removeEventListener("onAutonavChangeRequest",v);H.removeEventListener("onVideoDataChange",M);H.removeEventListener("onStateChange",h);_.J("kevlar_endscreen_auto_theater_mode")&&H.removeEventListener("onAutonavCancelled",t)});
_.Bj(y)})},MzD=function(f){f.JSC$22868_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){f.autonavCancelledBySignal=!0;
_.J("kevlar_is_pupi_enabled")||eL(f)});
f.JSC$22868_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(H,v,t){v&&eL(f,t)});
f.JSC$22868_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){LE(f)&&_.wC.getInstance().setState(2,!0,!0)});
f.JSC$22868_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){LE(f)&&_.wC.getInstance().setState(1,!0,!0)});
f.addOnDisposeCallback(function(){f.JSC$22868_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");f.JSC$22868_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");f.JSC$22868_watchApi.unregisterActionHandler("yt-enable-autoplay-command");f.JSC$22868_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},Rd1=function(f){var H=f.JSC$22868_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Y1V(f)}),v=f.JSC$22868_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){yxM(f)});
f.addOnDisposeCallback(function(){f.JSC$22868_watchApi.unsubscribeByKey(H);f.JSC$22868_watchApi.unsubscribeByKey(v)})},Y1V=function(f){f.autonavCancelledBySignal=!1;
_.J("kevlar_is_pupi_enabled")||eL(f)},yxM=function(f){var H=f.JSC$22868_watchApi.getWatchNextResponse(),v,t;
var M=(H=(t=_.U(H==null?void 0:(M=H.playerOverlays)==null?void 0:(v=M.playerOverlayRenderer)==null?void 0:v.autonavToggle,_.h5M))==null?void 0:t.enabled)?2:1;_.J("kevlar_is_pupi_enabled")?_.wC.getInstance().setState(M,!1,!1):eL(f);_.J("web_persist_server_autonav_state_on_client")&&typeof H==="boolean"&&_.KAr(M===2)},LE=function(f){if(f.autonavCancelledBySignal)return!1;
var H,v,t,M;return!!((H=f.JSC$22868_watchApi.getWatchNextResponse())==null?0:(v=H.contents)==null?0:(t=v.twoColumnWatchNextResults)==null?0:(M=t.autoplay)==null?0:M.autoplay)};
_.mjo.prototype.onPlayerStateChange=function(f){if(f===0){f=!_.wC.getInstance().isAutoplaySetExplicitly();var H=this.JSC$22868_watchApi.getWatchNextResponse(),v,t,M,h;H=_.U(H==null?void 0:(v=H.contents)==null?void 0:(t=v.twoColumnWatchNextResults)==null?void 0:(M=t.autoplay)==null?void 0:(h=M.autoplay)==null?void 0:h.autoplayExplicitChoiceDialogRenderer,_.L5_);LE(this)&&f&&H&&_.jW.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:H},popupType:"DIALOG"}})}else $jv(this)};
var $jv=function(f){f.temporaryTheaterMode&&(f.temporaryTheaterMode=!1,_.mb(f.JSC$22868_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},eL=function(f,H){H=H===void 0?!1:H;
var v;_.Y(function(t){if(t.nextAddress==1)return t.yield(f.JSC$22868_watchApi.playerApi,2);v=t.yieldResult;LE(f)?v.setAutonavState(_.wC.getInstance().getState(),H):v.setAutonavState(1,H);_.Bj(t)})};var Wve={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"};_.glM=function(f){_.zO.call(this);var H=this;this.JSC$22873_watchApi=f;var v=this.JSC$22873_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){O9O(H)});
this.addOnDisposeCallback(function(){H.JSC$22873_watchApi.unsubscribeByKey(v)});
O9O(this)};
_.e(_.glM,_.zO);var O9O=function(f){var H=f.JSC$22873_watchApi.getPlayerResponse(),v=f.JSC$22873_watchApi.getWatchNextResponse();if(!_.zre(H==null?void 0:H.playabilityStatus,v==null?void 0:v.playerOverlays)){var t;var M=H==null?void 0:(t=H.playabilityStatus)==null?void 0:t.errorScreen}f.JSC$22873_watchApi.provideRenderingData("ERROR_SCREEN",M)};var IPU=_.a(function(f){var H=f.data;f=_.J("web_watch_video_details_hide_subtitle");var v=_.J("web_watch_video_details_single_line_title"),t=_.d6(function(){var m=H().onTap;m&&_.t8().resolve(_.MJ).resolveCommand(m)}),M={},h={},y={};
return _.O("yt-player-overlay-video-details-renderer",{class:_.S2("ytPlayerOverlayVideoDetailsRendererHost",(M.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.J("web_watch_video_details_transparent_background"),M)),"on:click":t,role:"button"},_.O("h2",{class:_.S2("ytPlayerOverlayVideoDetailsRendererTitle",(h.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return v},h))},_.O(_.iq,{text:function(){return H().title}})),_.O("div",{class:_.S2("ytPlayerOverlayVideoDetailsRendererSubtitle",
(y.ytPlayerOverlayVideoDetailsRendererHideSubtitle=f,y))},_.O(_.iq,{text:function(){return H().subtitle}})))},"Rk");var xN={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},S1q=_.a(function(f){var H=f.data;var v=_.uE(_.pV),t=_.J("web_watch_action_bar_resize_buttons"),M=_.J("web_watch_video_action_dsdvb"),h=_.J("delhi_modern_web_player_icons")&&!_.J("enable_web_delhi_icons");f=_.J("delhi_modern_web_player_disable_frosted_glass");var y=function(){return t&&!v()?{size:"M"}:void 0},m={};
return _.O("yt-player-quick-action-buttons",{class:_.S2("ytPlayerQuickActionButtonsHost",(m.ytPlayerQuickActionButtonsHostTheaterMode=function(){return!v()},m.ytPlayerQuickActionButtonsHostDisableBackdropFilter=f,m))},_.O(_.eK,{each:function(){var W=H();
if(h){W=JSON.parse(JSON.stringify(W));for(var I=_.V(W),S=I.next();!S.done;S=I.next()){var d=S.value,Z=void 0;S=_.U((Z=_.U(d,_.Fd))==null?void 0:Z.toggleButtonViewModel,_.G3);var l=void 0;Z=_.U((l=_.U(d,_.z3))==null?void 0:l.toggleButtonViewModel,_.G3);l=_.U(d,_.af);d=_.U(d,_.G3);if(S)Z=_.U(S.defaultButtonViewModel,_.af),S=_.U(S.toggledButtonViewModel,_.af),Z&&Z.iconName&&(Z.iconName=xN[Z.iconName]),S&&S.iconName&&(S.iconName=xN[S.iconName]);else if(Z)S=_.U(Z.defaultButtonViewModel,_.af),Z=_.U(Z.toggledButtonViewModel,
_.af),S&&S.iconName&&(S.iconName=xN[S.iconName]),Z&&Z.iconName&&(Z.iconName=xN[Z.iconName]);else if(l)l.iconName&&(l.iconName=xN[l.iconName]);else if(d){S=_.U(d.defaultButtonViewModel,_.af);Z=_.U(d.toggledButtonViewModel,_.af);d=void 0;if((d=S)==null?0:d.iconName)S.iconName=xN[S.iconName];S=void 0;if((S=Z)==null?0:S.iconName)Z.iconName=xN[Z.iconName]}}}M&&(W=ngM(W));return W}},function(W){return _.O(_.Jj,{data:function(){return W}},{buttonViewModel:function(I){return _.O(_.Wp,{data:I.data,
buttonOverrides:y})},
likeButtonViewModel:function(I){return _.O(_.pX,{data:I.data,buttonShapeOverrideables:y})},
dislikeButtonViewModel:function(I){return _.O(_.nX,{data:I.data,buttonShapeOverrideables:y})},
toggleButtonViewModel:function(I){return _.O(_.Fo,{data:I.data,buttonShapeOverrides:y})}})}))},"Sk");_.jNO=function(f){_.zO.call(this);var H=this;this.JSC$22877_watchApi=f;f=_.V(_.gp({},void 0,"n9wCVe"));this.quickActionsViewModel=f.next().value;this.setQuickActionsViewModel=f.next().value;f=_.V(_.gp({},void 0,"JD2YUd"));this.playerOverlayVideoDetailsRenderer=f.next().value;this.setPlayerOverlayVideoDetailsRenderer=f.next().value;var v=this.JSC$22877_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){dje(H)});
this.addOnDisposeCallback(function(){H.JSC$22877_watchApi.unsubscribeByKey(v)});
dje(this)};
_.e(_.jNO,_.zO);
var dje=function(f){var H,v,t,M,h,y,m,W,I,S,d,Z,l,L;_.Y(function(r){if(r.nextAddress==1)return r.yield(f.JSC$22877_watchApi.playerApi,2);H=r.yieldResult;v=f.JSC$22877_watchApi.getWatchNextResponse();h=(t=v)==null?void 0:(M=t.playerOverlays)==null?void 0:M.playerOverlayRenderer;m=_.U((y=h)==null?void 0:y.fullscreenQuickActionsBar,_.RYb);(I=(W=f).setQuickActionsViewModel)==null||I.call(W,m||{});m&&sNv(f,H);Z=(S=h)==null?void 0:(d=S.videoDetails)==null?void 0:d.playerOverlayVideoDetailsRenderer;(L=(l=
f).setPlayerOverlayVideoDetailsRenderer)==null||L.call(l,Z||{});Z&&Z9L(f,H);_.Bj(r)})},sNv=function(f,H){if(!f.quickActionButtonsContainer)if(H.setFullscreenQuickActions){f.quickActionButtonsContainer=document.createElement("div");
H.setFullscreenQuickActions(f.quickActionButtonsContainer);var v=function(){return f.quickActionsViewModel().quickActionButtons||[]},t=_.F3(f.quickActionButtonsContainer,function(){return _.O(S1q,{data:v})},"Tk");
f.addOnDisposeCallback(function(){H.setFullscreenQuickActions(void 0);t()})}else _.pb(new _.e$("setFullscreenQuickActions not defined",{playerApi:Object.keys(H),
isReady:H.isReady(),appState:H.getAppState()}))},Z9L=function(f,H){if(!f.playerOverlayVideoDetailsRendererContainer)if(H.setPlayerOverlayVideoDetailsRenderer){f.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
H.setPlayerOverlayVideoDetailsRenderer(f.playerOverlayVideoDetailsRendererContainer);var v=_.F3(f.playerOverlayVideoDetailsRendererContainer,function(){return _.O(IPU,{data:f.playerOverlayVideoDetailsRenderer})},"Uk");
f.addOnDisposeCallback(function(){H.setPlayerOverlayVideoDetailsRenderer(void 0);v()})}else _.pb(new _.e$("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(H),
isReady:H.isReady(),appState:H.getAppState()}))};_.B2=function(f){_.zO.call(this);var H=this;this.JSC$22883_watchApi=f;this.JSC$22883_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;f=_.sI(_.vS(),_.pV,function(v){H.onFullscreenChanged(v)});
this.addOnDisposeCallback(f);f=_.sI(_.vS(),_.Lz,function(v){H.onWatchScroll(v)});
this.addOnDisposeCallback(f);_.J("kevlar_watch_while_v2")&&(f=_.sI(_.vS(),_.a5,function(v){Jx1(H,v)}),this.addOnDisposeCallback(f));
lP1(this);Uj4(this);edL();this.onWatchScroll(_.Lz(_.vS().getState()));_.P6("START_IN_FULL_WINDOW_MODE")&&this.JSC$22883_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.e(_.B2,_.zO);var lP1=function(f){f.JSC$22883_watchApi.registerActionHandler("yt-fullscreen-change-action",function(H){var v=f.JSC$22883_watchApi.isActive();H&&!v||_.vS().dispatch(_.yq({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!H}}))});
f.addOnDisposeCallback(function(){f.JSC$22883_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},Uj4=function(f){var H,v;
_.Y(function(t){if(t.nextAddress==1)return t.yield(f.JSC$22883_watchApi.playerApi,2);H=t.yieldResult;v=function(){f.onFullerscreenEduClicked()};
H.addEventListener("onFullerscreenEduClicked",v);f.addOnDisposeCallback(function(){H.removeEventListener("onFullerscreenEduClicked",v)});
_.Bj(t)})};
_.B2.prototype.onFullscreenChanged=function(f){var H=this,v;return _.Y(function(t){if(t.nextAddress==1)return H.isFullscreen=!!_.M6(),t.yield(H.JSC$22883_watchApi.playerApi,2);v=t.yieldResult;H.JSC$22883_miniplayerActive||v.setFauxFullscreen(H.isFullscreen);if(f&&(H.JSC$22883_watchApi.focusOnPlayer(),!H.fullerscreenEduButtonShownThisPlayback)){H.fullerscreenEduButtonShownThisPlayback=!0;var M=_.Oz("yt-fullerscreen-edu-button-shown-count")||0;_.WH("yt-fullerscreen-edu-button-shown-count",M+1,31536E3);
H.updateFullerscreenEduButtonSubtleModeState()}_.Bj(t)})};
var Jx1=function(f,H){var v;_.Y(function(t){if(t.nextAddress==1)return f.JSC$22883_miniplayerActive=H,t.yield(f.JSC$22883_watchApi.playerApi,2);v=t.yieldResult;v.setFauxFullscreen(!f.JSC$22883_miniplayerActive&&f.isFullscreen);_.Bj(t)})};
_.B2.prototype.onWatchScroll=function(f){var H=this,v,t;return _.Y(function(M){if(M.nextAddress==1)return _.J("external_fullscreen_with_edu")?M.yield(H.JSC$22883_watchApi.playerApi,2):M.return();v=M.yieldResult;t=f<=0;H.shouldShowFullerscreenEdu!==t&&(H.shouldShowFullerscreenEdu=t,v.updateFullerscreenEduButtonVisibility(!H.shouldShowFullerscreenEdu));_.Bj(M)})};
_.B2.prototype.onFullerscreenEduClicked=function(){this.JSC$22883_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var f=_.Oz("yt-fullerscreen-edu-button-click-count")||0;_.WH("yt-fullerscreen-edu-button-click-count",f+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.B2.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var f=this,H,v,t,M,h,y;return _.Y(function(m){if(m.nextAddress==1)return H=_.Oz("yt-fullerscreen-edu-button-click-count")||0,v=_.Oz("yt-fullerscreen-edu-button-shown-count")||0,t=_.VQ("external_fullscreen_button_click_threshold"),M=_.VQ("external_fullscreen_button_shown_threshold"),h=H>=t||v>=M,m.yield(f.JSC$22883_watchApi.playerApi,2);y=m.yieldResult;y.updateFullerscreenEduButtonSubtleModeState(h);_.Bj(m)})};
_.B2.prototype.disposeInternal=function(){_.zO.prototype.disposeInternal.call(this);var f=_.M6();_.J("kevlar_exit_fullscreen_leaving_watch")&&f&&_.Rr(f)};
var edL=function(){if(_.J("web_watch_add_viewport_meta_tag")){var f=document.querySelector("meta[name=viewport]"),H=document.head;H&&!f&&(f=document.createElement("meta"),f.name="viewport",f.content="width=device-width, initial-scale=1.0, viewport-fit=cover",H.appendChild(f))}};_.z2=function(f){_.zO.call(this);var H=this;this.JSC$22887_watchApi=f;this.jobId=0;this.pendingRequestId=void 0;var v=this.JSC$22887_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Lvq(H)});
this.addOnDisposeCallback(function(){H.JSC$22887_watchApi.unsubscribeByKey(v)});
Lvq(this)};
_.e(_.z2,_.zO);var xjO=function(f){_.nN.cancelJob(f.jobId);f.pendingRequestId=void 0},Lvq=function(f){xjO(f);
var H=poA(f.JSC$22887_watchApi.getWatchNextResponse());if(H){var v=250,t,M=(t=_.U(H,_.h4M))==null?void 0:t.initialDelayMs;_.J("web_watch_updated_metadata_server_initial_delay")&&M&&(v=M);f.jobId=_.nN.addLowPriorityJob(function(){return f.fetchUpdatedMetadata(H)},v)}};
_.z2.prototype.fetchUpdatedMetadata=function(f,H){var v=this,t,M,h,y,m,W,I,S,d,Z,l,L,r,n,Q;return _.Y(function(C){switch(C.nextAddress){case 1:H&&(t={continuation:H});if(!_.J("web_get_updated_metadata_fantasy_panel_continuation_params")){C.jumpTo(2);break}M=_.t8().resolve(_.B5);h="PAsports_fantasy";return C.yield(M.isVisible(h,!0),3);case 3:C.yieldResult&&(I=(m=(y=M).getUpdatePanelContinuationData)==null?void 0:(W=m.call(y,h))==null?void 0:W.updatePanelContinuationRequest)&&(t||(t={}),t.clientParams=
{panelContinuationParams:{panelContinuation:I}});case 2:S=_.t8().resolve(_.PS);if(!S)return _.oO(Error("Ko")),C.return();d={};v.pendingRequestId=d;return C.yield(_.AE(S,f,t),4);case 4:Z=C.yieldResult;if(d!==v.pendingRequestId)return C.return();r=(l=Z)==null?void 0:(L=l.continuation)==null?void 0:L.timedContinuationData;((n=r)==null?0:n.continuation)&&((Q=r)==null?0:Q.timeoutMs)&&(v.jobId=_.nN.addLowPriorityJob(function(){return v.fetchUpdatedMetadata(f,r.continuation)},r.timeoutMs));
_.Bj(C)}})};
_.z2.prototype.disposeInternal=function(){_.zO.prototype.disposeInternal.call(this);xjO(this)};var BAV=_.a(function(f){var H=_.d6(function(){var t=f.data().videoId;if(f.active())t=_.MO(t),_.t8().resolve(_.MJ).resolveCommand(t);else{var M=f.playerApi(),h=M.getAvailableAudioTracks(),y,m,W=(y=f.sourceVideoConfig().audioTracks)==null?void 0:(m=y.find(function(I){return I.isDefaultForSource}))==null?void 0:m.id;
if(h=h.find(function(I){return I.getLanguageInfo().getId()===W}))M.setAudioTrack(h,!0),M.setCompositeParam({activeVideoId:t}),f.setActiveSourceId(t)}}),v={};
return _.O("ytw-composite-source-video-overlay",{class:_.S2("ytwCompositeSourceVideoOverlayHost",(v.ytwCompositeSourceVideoOverlayActive=f.active,v.ytwCompositeSourceVideoOverlayInteracting=f.interacting,v)),style:_.ZE({left:function(){var t;return((t=f.data().topLeftCornerX)!=null?t:0)*100+"%"},
top:function(){var t;return((t=f.data().topLeftCornerY)!=null?t:0)*100+"%"},
width:function(){var t;return((t=f.data().width)!=null?t:0)*100+"%"},
height:function(){var t;return((t=f.data().height)!=null?t:0)*100+"%"}}),
"on:click":H},_.O("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Vk");var zdV=_.a(function(f){var H=_.V(_.sR(function(){var y,m=(y=f.data().sources)==null?void 0:y.find(function(W){return W.isActive});
if(m)return m.videoId})),v=H.next().value,t=H.next().value;
H=_.V(_.gp(!1,void 0,"WI4BUb"));var M=H.next().value,h=H.next().value;return _.O("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.d6(function(){h(!0)}),
"on:mouseout":_.d6(function(){h(!1)})},_.O(_.g,{cond:function(){return f.data().sources},
then:function(y){return _.O(_.eK,{each:y},function(m){return _.O(BAV,{data:m,active:function(){return m.videoId===v()},
setActiveSourceId:t,interacting:M,playerApi:f.playerApi,sourceVideoConfig:function(){return QnM(f.compositeVideoConfig(),m.videoId)}})})}}))},"Wk");_.KvD=function(f){_.zO.call(this);this.JSC$22903_watchApi=f;f=_.V(_.gp({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=f.next().value;this.setCompositeVideoOverlayRenderer=f.next().value;f=_.V(_.gp({},void 0,"OlaJpc"));this.compositeVideoConfig=f.next().value;this.setCompositeVideoConfig=f.next().value;FvD(this);rxU(this)};
_.e(_.KvD,_.zO);var FvD=function(f){var H=f.JSC$22903_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){rxU(f)});
f.addOnDisposeCallback(function(){f.JSC$22903_watchApi.unsubscribeByKey(H)})},DjU=function(f){var H;
return _.Y(function(v){if(v.nextAddress==1)return v.yield(f.JSC$22903_watchApi.playerApi,2);H=v.yieldResult;H.setCompositeVideoOverlayRendererComponent(f.container);_.Bj(v)})},ol4=function(f){var H;
return _.Y(function(v){if(v.nextAddress==1)return v.yield(f.JSC$22903_watchApi.playerApi,2);H=v.yieldResult;H.setCompositeVideoOverlayRendererComponent(void 0);_.Bj(v)})},nlM=function(f){var H,v;
return _.Y(function(t){if(t.nextAddress==1)return t.yield(f.JSC$22903_watchApi.playerApi,2);H=t.yieldResult;f.container=document.createElement("div");v=_.F3(f.container,function(){return _.O(zdV,{data:f.compositeVideoOverlayRenderer,compositeVideoConfig:f.compositeVideoConfig,playerApi:H})},"Xk");
f.addOnDisposeCallback(v);_.Bj(t)})},rxU=function(f){var H,v,t,M,h,y,m,W;
_.Y(function(I){return I.nextAddress==1?(H=f.JSC$22903_watchApi.getPlayerResponse(),h=_.U((v=H)==null?void 0:(t=v.overlay)==null?void 0:(M=t.playerControlsOverlayRenderer)==null?void 0:M.compositeVideoOverlay,xxO),W=(y=H)==null?void 0:(m=y.playerConfig)==null?void 0:m.compositeVideoConfig,h&&f.setCompositeVideoOverlayRenderer(h),W&&f.setCompositeVideoConfig(W),h&&W?f.container?I.jumpTo(6):I.yield(nlM(f),6):p_e(f)?I.yield(ol4(f),0):I.jumpTo(0)):p_e(f)?I.jumpTo(0):I.yield(DjU(f),0)})},p_e=function(f){var H;
return!((H=f.container)==null||!H.parentElement)};
_.KvD.prototype.disposeInternal=function(){p_e(this)&&ol4(this);_.zO.prototype.disposeInternal.call(this)};_.GO1=function(f){_.zO.call(this);var H=this;this.JSC$22909_watchApi=f;var v=this.JSC$22909_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var t=H.JSC$22909_watchApi.getPlayerResponse();if(t){var M,h;if(t=_.U((M=t.endscreen)==null?void 0:(h=M.endscreenRenderer)==null?void 0:h.hideButton,_.G3)){var y;(y=H.setEndscreenHideButton)==null||y.call(H,t);QN1(H)}}});
this.addOnDisposeCallback(function(){H.JSC$22909_watchApi.unsubscribeByKey(v)});
f=_.V(_.gp({},void 0,"ER3tqb"));this.endscreenHideButton=f.next().value;this.setEndscreenHideButton=f.next().value;uHq(this);aPD(this);PSU(this)};
_.e(_.GO1,_.zO);
var QN1=function(f){var H,v;_.Y(function(t){if(t.nextAddress==1)return f.creatorEndscreenHideButtonContainer?t.return():t.yield(f.JSC$22909_watchApi.playerApi,2);H=t.yieldResult;f.creatorEndscreenHideButtonContainer=document.createElement("div");_.kl(f.creatorEndscreenHideButtonContainer,!1);H.setCreatorEndscreenHideButton(f.creatorEndscreenHideButtonContainer);v=_.F3(f.creatorEndscreenHideButtonContainer,function(){return _.O(_.Fo,{data:f.endscreenHideButton,useOutlinedIcon:!0})},"Yk");
f.addOnDisposeCallback(function(){v();var M;(M=H)==null||M.setCreatorEndscreenHideButton(void 0)});
_.Bj(t)})},uHq=function(f){var H,v;
_.Y(function(t){if(t.nextAddress==1)return t.yield(f.JSC$22909_watchApi.playerApi,2);H=t.yieldResult;v=function(){f.creatorEndscreenHideButtonContainer&&_.kl(f.creatorEndscreenHideButtonContainer,!0)};
H.addEventListener("endscreenelementshown",v);f.addOnDisposeCallback(function(){var M;(M=H)==null||M.removeEventListener("endscreenelementshown",v)});
_.Bj(t)})},aPD=function(f){var H=function(){f.creatorEndscreenHideButtonContainer&&_.kl(f.creatorEndscreenHideButtonContainer,!1)},v=f.JSC$22909_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",H),t=f.JSC$22909_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",H);
f.addOnDisposeCallback(function(){f.JSC$22909_watchApi.unsubscribeByKey(v);f.JSC$22909_watchApi.unsubscribeByKey(t)})},PSU=function(f){f.JSC$22909_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(H){var v=_.U(H,Z04);
f.JSC$22909_watchApi.playerApi.then(function(t){t==null||t.setCreatorEndscreenVisibility(!!v.hide)})});
f.addOnDisposeCallback(function(){f.JSC$22909_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.ElD=function(f){_.zO.call(this);this.JSC$22915_watchApi=f;CSO(this)};
_.e(_.ElD,_.zO);var CSO=function(f){var H,v;_.Y(function(t){if(t.nextAddress==1)return t.yield(f.JSC$22915_watchApi.playerApi,2);H=t.yieldResult;v=function(M){_.vS().dispatch(_.yq({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:M}}))};
H.addEventListener("onRetroModeChanged",v);f.addOnDisposeCallback(function(){H.removeEventListener("onRetroModeChanged",v)});
_.Bj(t)})};var r7=0,Fu=0,Kz=0;var NAU;NAU=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.F1=function(f){_.zO.call(this);this.JSC$22928_watchApi=f;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;cxq(this)};
_.e(_.F1,_.zO);
var cxq=function(f){var H,v,t;_.Y(function(M){if(M.nextAddress==1)return M.yield(f.JSC$22928_watchApi.playerApi,2);H=M.yieldResult;if(f.isDisposed())return M.return();f.sessionStorage=_.k1W("yt-sleep-timer");f.sessionStorage||_.pb(new _.e$("SessionStorage for Sleep Timer is undefined."));((v=f.sessionStorage)==null?void 0:v.get("yt-sleep-timer"))==="true"&&(A9L(),(t=f.sessionStorage)==null||t.remove("yt-sleep-timer"),H.syncVolume());X_L(f,H);AxV(f,H);b9U(f,H);_.Bj(M)})},X_L=function(f,H){var v=function(I){f.onSleepTimerSettingsChanged(I,
H)},t=function(I){f.onPlayerStateChange(I,H)},M=function(){f.onLoopChange(H)},h=function(){f.onCloseMiniplayer(H)},y=function(){Eg1(H,(0,_.ta)(),brq(H),f.selectedOption==="End of video",H.getPlayerState()!==1)},m=function(){f.onSeekComplete(H)},W=function(){_.nN.cancelJob(Fu);
var I=H.getCurrentTime()>=H.getDuration(),S=f.selectedOption==="End of video"||f.selectedOption==="End of playlist"&&!PCU(f.playlistId);I&&S&&i9D(f,H)};
H.addEventListener("onSleepTimerSettingsChanged",v);H.addEventListener("onLoopChange",M);H.addEventListener("onLoopRangeChange",M);H.addEventListener("onStateChange",t);H.addEventListener("onCloseMiniplayer",h);H.addEventListener("onSleepTimerFeatureAvailable",y);H.addEventListener("SEEK_COMPLETE",m);H.addEventListener("onAdStart",W);f.addOnDisposeCallback(function(){H.removeEventListener("onSleepTimerSettingsChanged",v);H.removeEventListener("onLoopChange",M);H.removeEventListener("onLoopRangeChange",
M);H.removeEventListener("onStateChange",t);H.removeEventListener("onCloseMiniplayer",h);H.removeEventListener("onSleepTimerFeatureAvailable",y);H.removeEventListener("SEEK_COMPLETE",m);H.removeEventListener("onAdStart",W)})},AxV=function(f,H){var v=f.JSC$22928_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var t=H.getVideoData().video_id,M,h=(M=uaV(f.JSC$22928_watchApi))==null?void 0:M.playlistId;
f.pauseAutonavPlayback&&(H.pauseVideo(),H.syncVolume(),f.pauseAutonavPlayback=!1);if(f.selectedOption==="End of video"&&t!==f.videoId)rb(f,H);else{if(f.selectedOption==="End of playlist"){M=PCU(f.playlistId);if(h!==f.playlistId){rb(f,H);break a}M?M&&kOA(f,H):TAM(f,H)}f.videoId=t;f.playlistId=h}}});
f.addOnDisposeCallback(function(){f.JSC$22928_watchApi.unsubscribeByKey(v)})},b9U=function(f,H){var v=_.t8().resolve(_.aj),t=_.sI(v,_.iO_,function(h){h&&f.selectedOption!=="Off"&&rb(f,H)}),M=f.JSC$22928_watchApi.subscribeToActiveChanged(function(h){var y,m;
return _.Y(function(W){if(W.nextAddress==1)return W.yield(_.S0().navigationFinishPromise,2);y=!_.Z5n();m=_.t8().resolve(_.o0).isMiniplayerActive();h||!z0(f.selectedOption)||m||y||rb(f,H);_.Bj(W)})},!1);
v=_.sI(v,function(h){return h.entities.playlistLoopStateEntity||{}},function(h){h=h===void 0?{}:h;
var y=ahU(f.JSC$22928_watchApi);if(y){var m;((m=h[y])==null?void 0:m.state)==="PLAYLIST_LOOP_STATE_ALL"&&z0(f.selectedOption)&&rb(f,H)}});
f.addOnDisposeCallback(t);f.addOnDisposeCallback(v);f.addOnDisposeCallback(M)};
_.F1.prototype.onSleepTimerSettingsChanged=function(f,H){switch(f){case "Off":this.selectedOption!=="Off"&&rb(this,H);break;case "End of video":case "End of playlist":w_q(this,f,H);break;default:w_q(this,f,H,NAU.get(f))}};
_.F1.prototype.onLoopChange=function(f){(f.getLoopVideo()||f.getLoopRange())&&z0(this.selectedOption)&&rb(this,f)};
_.F1.prototype.onCloseMiniplayer=function(f){z0(this.selectedOption)&&rb(this,f)};
var w_q=function(f,H,v,t){q1V(f,v);f.selectedOption=H;f.videoId=v.getVideoData().video_id;f.playlistId="";var M;(M=f.sessionStorage)==null||M.set("yt-sleep-timer","true");f.adjustmentsCount++;Eg1(v,(0,_.ta)(),brq(v),f.selectedOption==="End of video");if(f.selectedOption==="End of video")TAM(f,v),ftv(f,v);else if(f.selectedOption==="End of playlist"){ftv(f,v);var h,y;f.playlistId=(y=(h=uaV(f.JSC$22928_watchApi))==null?void 0:h.playlistId)!=null?y:"";PCU(f.playlistId)||TAM(f,v)}else t&&(f.presetFadeSchedulerId=
_.LT(_.nN,function(){c9q(v,15E3)},t-15E3),f.presetPauseSchedulerId=_.LT(_.nN,function(){i9D(f,v)},t),NhM(v,(0,_.ta)(),t))},i9D=function(f,H){if(f.JSC$22928_watchApi.isActive()){var v={dismissDialogEndpoint:{}};
var t={commandExecutorCommand:{commands:[v,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};v={buttonViewModel:{title:_.ZC("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:v}}};t={buttonViewModel:{title:_.ZC("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:t}}};var M={dialogHeaderViewModel:{headline:{content:_.ZC("SLEEP_TIMER_ENDED_TITLE")}}},
h={basicContentViewModel:{paragraphs:[{text:{content:_.ZC("SLEEP_TIMER_ENDED_TEXT")}}]}};v={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:M,content:h,footer:{panelFooterViewModel:{primaryButton:v,secondaryButton:t,shouldHideDivider:!0}}}}}}};_.t8().resolve(_.MJ).resolveCommand(v,{form:{element:f}})}else A9L();H4o(f,!1);vmD(f,H);H.pauseVideo();_.wC.getInstance().getState()===2&&H.getPlayerState()===5&&(f.pauseAutonavPlayback=!0)},rb=function(f,H){H4o(f,!0);
vmD(f,H);A9L()},vmD=function(f,H){q1V(f,H);
f.selectedOption="Off";f.videoId="";f.playlistId="";f.adjustmentsCount=0;var v;(v=f.sessionStorage)==null||v.remove("yt-sleep-timer");_.nN.cancelJob(r7);H.resetSleepTimerMenuSettings()},H4o=function(f,H){H={timer_length_adjustment_times_during_session:f.adjustmentsCount-1,
is_session_cancelled:H};switch(f.selectedOption){case "Off":H.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":H.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":H.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:H.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",H.option_duration_in_minutes=NAU.get(f.selectedOption)/6E4}_.Kb("sleepTimerSessionFinishEvent",H)};
_.F1.prototype.onPlayerStateChange=function(f,H){f===1?Eg1(H,(0,_.ta)(),brq(H),this.selectedOption==="End of video"):f===0?(_.nN.cancelJob(Fu),H.setVideoTimeLeft(CCq(0,0))):f===2&&_.nN.cancelJob(Fu);this.selectedOption==="End of video"?f===0?i9D(this,H):f===2&&Xo1(H):this.selectedOption!=="End of playlist"||PCU(this.playlistId)||(f===0?i9D(this,H):f===2&&Xo1(H))};
_.F1.prototype.onSeekComplete=function(f){f.getPlayerState()===2&&Eg1(f,(0,_.ta)(),brq(f),this.selectedOption==="End of video",!0)};
_.F1.prototype.onCueRangeEnter=function(f,H){f==="sleep-timer-fade-audio"&&c9q(H,(H.getDuration()-H.getProgressState().current)*1E3)};
_.F1.prototype.onCueRangeExit=function(f,H){f==="sleep-timer-fade-audio"&&H.getPlayerState()!==0&&Xo1(H,!0)};
var TAM=function(f,H){H.addCueRange("sleep-timer-fade-audio",H.getDuration()-15,H.getDuration());H.addEventListener("onCueRangeEnter",function(v){f.onCueRangeEnter(v,H)});
H.addEventListener("onCueRangeExit",function(v){f.onCueRangeExit(v,H)})},kOA=function(f,H){H.removeCueRange("sleep-timer-fade-audio");
H.removeEventListener("onCueRangeEnter",function(v){f.onCueRangeEnter(v,H)});
H.removeEventListener("onCueRangeExit",function(v){f.onCueRangeExit(v,H)})},q1V=function(f,H){z0(f.selectedOption)?kOA(f,H):(_.nN.cancelJob(f.presetPauseSchedulerId),_.nN.cancelJob(f.presetFadeSchedulerId),f.presetPauseSchedulerId=0,f.presetFadeSchedulerId=0);
Xo1(H,!0)},ftv=function(f,H){H.setLoop(!1);
H.setLoopVideo(!1);H.setLoopRange(null);(f=ahU(f.JSC$22928_watchApi))&&_.t8().resolve(_.aj).dispatch(_.lF("playlistLoopStateEntity",f,{key:f,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.RiV=function(f){_.zO.call(this);this.JSC$22931_watchApi=f;t7L(this);M7o(this);hie(this);f=f.getRoot();if(f.is==="ytd-watch-flexy"||f.is==="ytd-watch-grid")f.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.y9o();_.J("web_watch_log_theater_mode_cookie_state")&&_.sk.get("wide","0")==="1"&&_.ohb("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.e(_.RiV,_.zO);var t7L=function(f){var H,v;_.Y(function(t){if(t.nextAddress==1)return t.yield(f.JSC$22931_watchApi.playerApi,2);H=t.yieldResult;v=function(M){V7L(f,!!M)};
H.addEventListener("SIZE_CLICKED",v);f.addOnDisposeCallback(function(){H.removeEventListener("SIZE_CLICKED",v)});
_.Bj(t)})},M7o=function(f){f.JSC$22931_watchApi.registerActionHandler("yt-toggle-theater-mode",function(H,v){V7L(f,H,v===void 0?!0:v)});
f.addOnDisposeCallback(function(){f.JSC$22931_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.RiV.prototype.getState=function(){return _.nV(_.vS().getState())};
var V7L=function(f,H,v){v=v===void 0?!0:v;var t,M,h,y=_.J("enable_player_resize_transition")&&!!f.JSC$22931_watchApi.getWatchNextResponse()&&!((t=f.JSC$22931_watchApi.getWatchNextResponse())==null?0:(M=t.contents)==null?0:(h=M.twoColumnWatchNextResults)==null?0:h.conversationBar);_.b95(function(){_.vS().dispatch(_.yq({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:H}}));_.J("theater_mode_scroll_to_top_killswitch")||f.JSC$22931_watchApi.scrollWatchTo(0,!1);_.M6()&&_.J("external_fullscreen")&&_.Rr(document.documentElement);
hie(f);v&&_.Zy("wide",H?"1":"0",-1);_.mb(f.JSC$22931_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);f.JSC$22931_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:H});H&&_.y9o()},{shouldWrap:y})},hie=function(f){var H;
_.Y(function(v){if(v.nextAddress==1)return v.yield(f.JSC$22931_watchApi.playerApi,2);H=v.yieldResult;H.setSizeStyle(!0,f.getState());_.Bj(v)})};var mkM=function(f){_.zO.call(this);var H=this;this.playerApi=f;this.timeToPanelSyncKeyMap={};var v;if(f==null?0:(v=f.isReady)==null?0:v.call(f)){v=_.sI(_.t8().resolve(_.aj),function(M){return M.entities.timedMarkersListSyncEntity||{}},function(M,h){M=M===void 0?{}:M;
h=h===void 0?{}:h;for(var y=_.V(Object.keys(h)),m=y.next();!m.done;m=y.next())m=m.value,M[m]!==h[m]&&ymA(H,h[m]);h=_.V(Object.keys(M));for(y=h.next();!y.done;y=h.next())y=y.value,m=M[y],H.timeToPanelSyncKeyMap[y]&&YgO(H,m)});
this.addOnDisposeCallback(v);var t=function(M){H.onCueRangeEnter(M)};
f.addEventListener("onCueRangeEnter",t);this.addOnDisposeCallback(function(){var M;(M=f.removeEventListener)==null||M.call(f,"onCueRangeEnter",t)})}};
_.e(mkM,_.zO);
var YgO=function(f,H){var v,t;if((v=f.playerApi)==null?0:(t=v.isReady)==null?0:t.call(v)){var M;if((v=H==null?void 0:(M=H.timedListData)==null?void 0:M.sections)&&H!=null&&H.key)for(M=_.V(v),v=M.next();!v.done;v=M.next())if(v=v.value,v.timedSyncDataList&&v.sectionId)for(t=0;t<v.timedSyncDataList.length;t++){var h=v.timedSyncDataList[t];h.syncItemId&&f.playerApi.addCueRange(v.sectionId+"_"+H.key+"_"+h.syncItemId,Number(h.videoTimeMs)/1E3,t===v.timedSyncDataList.length-1?0x8000000000000:Number(v.timedSyncDataList[t+
1].videoTimeMs)/1E3)}}},ymA=function(f,H){var v,t;
if((v=f.playerApi)==null?0:(t=v.isReady)==null?0:t.call(v)){var M;if((v=H==null?void 0:(M=H.timedListData)==null?void 0:M.sections)&&H!=null&&H.key)for(M=_.V(v),v=M.next();!v.done;v=M.next())if(v=v.value,v.timedSyncDataList&&v.sectionId){t=_.V(v.timedSyncDataList);for(var h=t.next();!h.done;h=t.next())h=h.value,h.syncItemId&&f.playerApi.removeCueRange(v.sectionId+"_"+H.key+"_"+h.syncItemId)}}};
mkM.prototype.onCueRangeEnter=function(f){for(var H=_.V(Object.keys(this.timeToPanelSyncKeyMap)),v=H.next();!v.done;v=H.next()){v=v.value;var t=_.V(f.split("_"+v+"_")),M=t.next().value;t=t.next().value;if(M&&t){f=_.t8().resolve(_.aj);H=this.timeToPanelSyncKeyMap[v];var h=_.QTe(f.getState(),H);v=$k1(v,M,t);if(v===-1)break;v={activeSyncId:t,activeItemIndex:v,activeSectionInfo:{sectionIdentifier:M}};h?f.dispatch(_.z7("markersEngagementPanelSyncEntity",H,v)):f.dispatch(_.lF("markersEngagementPanelSyncEntity",
H,Object.assign({},{key:H},v)));break}}};
var $k1=function(f,H,v){var t=_.t8().resolve(_.aj),M,h;f=(M=tvD(t.getState(),f))==null?void 0:(h=M.timedListData)==null?void 0:h.sections;if(!f)return-1;M=0;h=_.V(f);for(f=h.next();!f.done;f=h.next()){f=f.value;t=f.timedSyncDataList||[];if(f.sectionId===H)return H=t.findIndex(function(y){return y.syncItemId===v}),H===-1?H:M+H;
M+=t.length}return-1};_.gmU=function(f){_.zO.call(this);var H=this;this.JSC$22944_watchApi=f;this.unresolvedCommands=[];this.JSC$22944_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(v){W7V(H,v)});
this.addOnDisposeCallback(function(){H.JSC$22944_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
O41(this)};
_.e(_.gmU,_.zO);var O41=function(f){var H;_.Y(function(v){if(v.nextAddress==1)return v.yield(f.JSC$22944_watchApi.playerApi,2);H=v.yieldResult;if(f.isDisposed())return v.return();f.timedSyncObserver=new mkM(H);f.unresolvedCommands.length&&(f.unresolvedCommands.forEach(function(t){return W7V(f,t)}),f.unresolvedCommands=[]);
_.jz(f,f.timedSyncObserver);_.Bj(v)})},W7V=function(f,H){if(f.timedSyncObserver){var v=_.U(H,lrU);
if(v&&v.timedSyncEntityKey&&v.panelSyncEntityKey){f=f.timedSyncObserver;H=v.timedSyncEntityKey;var t=v.panelSyncEntityKey;v=!!v.isEnabled;v=v===void 0?!0:v;var M=_.t8().resolve(_.aj);M=tvD(M.getState(),H);v?f.timeToPanelSyncKeyMap[H]||(f.timeToPanelSyncKeyMap[H]=t,YgO(f,M)):(delete f.timeToPanelSyncKeyMap[H],ymA(f,M))}}else f.unresolvedCommands.push(H)};var ItA=_.a(function(f){var H=f.data,v=f.maybeLogSmartSkipClientData,t=null,M=null,h=_.J("web_enable_auto_focus_for_timely_action_button"),y=function(){t=document.activeElement},m=function(){H().smartSkipMetadata&&(t=document.activeElement,_.ojx(function(){return M}))},W=function(S){if(H().smartSkipMetadata&&(!S||S.key!=="Enter")){t&&t.isConnected&&(_.ojx(function(){return t}),t=null);
var d;(d=M)==null||d.blur()}};
f=_.d6(function(){v==null||v(!0,H());return!1});
var I=_.tE(_.nT(function(){return H().rendererContext},{onTap:function(S,d){d({disableClickTracking:!0})}}),_.MV({visibilityCallback:function(S){if(h)S?M&&H().smartSkipMetadata&&(m(),document.addEventListener("focusin",y)):(document.removeEventListener("focusin",y),W());
else if(S){S=_.KT(H().rendererContext);var d=Number(H().maxVisibleDurationMilliseconds),Z,l=(Z=_.U(H().rendererContext,_.dC))==null?void 0:Z.label;S&&d&&l&&(Z={label:l,command:S,durationMs:d},_.t8().resolve(_.eS).enqueue(Z))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.ru(function(){if(h){var S;if((M=(S=I.value)==null?void 0:S.querySelector("button"))&&H().smartSkipMetadata){var d;(d=I.value)==null||d.addEventListener("keydown",W)}}});
_.Dt(function(){h&&(M&&H().smartSkipMetadata&&M.removeEventListener("keydown",W),document.removeEventListener("focusin",y),W())});
return _.O("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:I,"on:click":f},_.O(_.Jj,{data:function(){return H().content}},{buttonViewModel:_.Wp}))},"Zk");var SgU=_.a(function(f){var H=f.data,v=f.playerApi,t=_.t8().resolve(_.pR0);f=_.V(_.sR(function(){H()}));
var M=f.next().value,h=f.next().value,y=function(){return kHe(H(),M())},m=function(I,S){var d,Z,l=(d=_.U(S==null?void 0:S.rendererContext,_.eW))==null?void 0:(Z=d.loggingDirectives)==null?void 0:Z.trackingParams;
if((S=S==null?void 0:S.smartSkipMetadata)&&S.loggingData&&(Z=S.loggingData,S=Z.algorithmId,d=Z.startMilliseconds,Z=Z.endMilliseconds,S&&d!==void 0&&Z!==void 0)){var L,r;I={smartSkipData:Object.assign({},{versionName:S,startMediaTimeMs:d,endMediaTimeMs:Z},I&&{userInteractionMediaTimeMs:(Math.floor(((L=_.vx())==null?void 0:(r=L.getPlayer())==null?void 0:r.getCurrentTime())||0)*1E3).toString()})};L=_.uy();var n;l&&(n=_.zK(l));L&&n&&_.q6(L,n,I)}},W=function(I,S){var d=kHe(H(),I);
if(d){var Z=_.U(d,DQ),l;if(l=S)l=v(),d=_.U(d,DQ),l=d!=null&&d.smartSkipMetadata?!(l==null?0:l.isSameMarkerTypeVisible((d==null?void 0:d.smartSkipMetadata.markerKey)||"")):!0;if(l){var L,r;(Z==null?0:(L=Z.smartSkipMetadata)==null?0:(r=L.loggingData)==null?0:r.isCounterfactual)||(m(!1,Z),h(I))}else S||M()!==I||h(void 0)}};
_.K4(function(){var I=H().timelyActions;if(I){I=_.V(I);for(var S=I.next();!S.done;S=I.next()){S=_.U(S.value,DQ);var d=void 0;(d=S)!=null&&d.cueRangeId&&t.timelyActionsMap.set(S.cueRangeId,W)}_.Dt(function(){t.timelyActionsMap.clear()})}},"Z1Qwtc");
return _.O("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.O(_.Jj,{data:y},{timelyActionViewModel:function(I){return _.O(ItA,{data:I.data,maybeLogSmartSkipClientData:function(){m(!0,_.U(y(),DQ))}})}}))},"$k");_.jhq=function(f){_.zO.call(this);this.JSC$22956_watchApi=f;f=_.V(_.gp({},void 0,"UN7k5e"));this.timelyActionsOverlay=f.next().value;this.setTimelyActionsOverlay=f.next().value;dko(this)};
_.e(_.jhq,_.zO);var dko=function(f){var H,v,t,M;_.Y(function(h){if(h.nextAddress==1)return shv(f),Z4D(f),f.timelyActionsContainer=document.createElement("div"),h.yield(f.JSC$22956_watchApi.playerApi,2);H=h.yieldResult;(t=(v=H).insertTimelyActionUi)==null||t.call(v,f.timelyActionsContainer);M=_.F3(f.timelyActionsContainer,function(){return _.O(SgU,{data:f.timelyActionsOverlay,playerApi:H})},"al");
f.addOnDisposeCallback(M);_.Bj(h)})},Z4D=function(f){var H=f.JSC$22956_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){shv(f)});
f.addOnDisposeCallback(function(){f.JSC$22956_watchApi.unsubscribeByKey(H)})},shv=function(f){var H=f.JSC$22956_watchApi.getWatchNextResponse();
if(H){var v,t;if(H=_.U((v=H.playerOverlays)==null?void 0:(t=v.playerOverlayRenderer)==null?void 0:t.timelyActionsOverlayViewModel,UxO)){var M;(M=f.setTimelyActionsOverlay)==null||M.call(f,H)}}};_.lt1=function(f){_.zO.call(this);this.JSC$22960_watchApi=f;JmD(this)};
_.e(_.lt1,_.zO);var JmD=function(f){var H,v;_.Y(function(t){if(t.nextAddress==1)return t.yield(f.JSC$22960_watchApi.playerApi,2);H=t.yieldResult;v=function(M){_.jW.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.U(M,_.lZW)},popupType:"TOAST"}})};
H.addEventListener("onYtShowToast",v);f.addOnDisposeCallback(function(){H.removeEventListener("onYtShowToast",v)});
_.Bj(t)})};var Uke,xko,K7A,eio,L7D,rmq,zi1,F7A,Dkv,omq;Uke=!1;_.Bpo=function(f){_.zO.call(this);this.JSC$22963_watchApi=f;this.fullscreen=this.theater=!1;eio(this);L7D(this);xko(this)};
_.e(_.Bpo,_.zO);xko=function(f){var H,v,t;_.Y(function(M){if(M.nextAddress==1)return M.yield(f.JSC$22963_watchApi.playerApi,2);H=M.yieldResult;if(f.isDisposed())return M.return();v=f.JSC$22963_watchApi.getElement("CINEMATICS");if(!v)return M.return();f.JSC$22963_cinematicController=new _.Mq(v,H);_.jz(f,f.JSC$22963_cinematicController);_.c5A(f.JSC$22963_cinematicController);zi1(f,_.Lnr());t=f.JSC$22963_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(h){F7A(f,h)});
f.addOnDisposeCallback(function(){f.JSC$22963_watchApi.unsubscribeByKey(t)});
rmq(f);F7A(f,f.JSC$22963_cinematicController.isAllowed());_.J("web_cinematic_manager_redux_killswitch")?_.KE(f,f.fullscreen,f.theater):K7A(f);Dkv(f);_.Bj(M)})};
K7A=function(f){f.fullscreen=_.pV(_.vS().getState());f.theater=_.nV(_.vS().getState());_.KE(f,f.fullscreen,f.theater);var H=_.sI(_.vS(),_.pV,function(t){f.fullscreen=t;_.KE(f,f.fullscreen,f.theater)}),v=_.sI(_.vS(),_.nV,function(t){f.theater=t;
_.KE(f,f.fullscreen,f.theater)});
f.addOnDisposeCallback(H);f.addOnDisposeCallback(v)};
eio=function(f){var H=f.JSC$22963_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){rmq(f)});
f.addOnDisposeCallback(function(){f.JSC$22963_watchApi.unsubscribeByKey(H)})};
L7D=function(f){var H,v;_.Y(function(t){if(t.nextAddress==1)return t.yield(f.JSC$22963_watchApi.playerApi,2);H=t.yieldResult;v=function(M){zi1(f,M)};
H.addEventListener("cinematicSettingsToggleChange",v);f.addOnDisposeCallback(function(){H.removeEventListener("cinematicSettingsToggleChange",v)});
_.Bj(t)})};
rmq=function(f){var H=f.JSC$22963_watchApi.getWatchNextResponse(),v;H=_.U(H==null?void 0:(v=H.pageVisualEffects)==null?void 0:v[0],_.Fp);var t;(t=f.JSC$22963_cinematicController)==null||_.A5t(t,H)};
zi1=function(f,H){var v;(v=f.JSC$22963_cinematicController)==null||_.X2i(v,H);omq(f)};
F7A=function(f,H){var v;_.Y(function(t){if(t.nextAddress==1)return _.J("kevlar_watch_cinematics_invisible")&&(H=!1),t.yield(f.JSC$22963_watchApi.playerApi,2);v=t.yieldResult;v.updateCinematicSettings(H);omq(f);_.Bj(t)})};
Dkv=function(f){var H=_.Uj();if(_.J("kevlar_measure_ambient_mode_idle")&&!H.getFlag(192)&&!Uke){Uke=!0;var v=_.Lb(_.nN,function(){_.t8().resolve(_.bob).start(1E4)},5E3);
f.addOnDisposeCallback(function(){_.nN.cancelJob(v);_.t8().resolve(_.bob).stop()})}};
_.KE=function(f,H,v){f.fullscreen=H;f.theater=v;var t;(t=f.JSC$22963_cinematicController)==null||t.setFullscreen(f.fullscreen,f.theater);if(_.J("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(f.theater||f.fullscreen){var M;(M=f.JSC$22963_cinematicController)==null||_.bEr(M)}else if((f=f.JSC$22963_cinematicController)!=null){var h;(h=f.currentCinematicEffect)==null||h.pause()}};
omq=function(f){if(_.J("web_cinematic_theater_mode")||_.J("web_cinematic_fullscreen")){var H;f.JSC$22963_watchApi.getRoot().toggleCinematicsActive(!((H=f.JSC$22963_cinematicController)==null||!H.isEnabled()))}};_.uTD=function(f){_.zO.call(this);var H=this;this.JSC$22966_watchApi=f;this.commentsReady=!1;this.setCommentsJobId=0;f=_.sI(_.vS(),_.Lz,function(){nmM(H)});
this.addOnDisposeCallback(f);var v=this.JSC$22966_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){pMD(H)}),t=this.JSC$22966_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){pMD(H)});
this.addOnDisposeCallback(function(){H.JSC$22966_watchApi.unsubscribeByKey(v);H.JSC$22966_watchApi.unsubscribeByKey(t)});
var M=function(){_.J("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&Qh4(H,"false")};
this.JSC$22966_watchApi.getRoot().addEventListener("yt-page-data-will-update",M);this.addOnDisposeCallback(function(){H.JSC$22966_watchApi.getRoot().removeEventListener("yt-page-data-will-update",M)});
pMD(this)};
_.e(_.uTD,_.zO);var pMD=function(f){f.commentsReady=!1;_.nN.cancelJob(f.setCommentsJobId);f.setCommentsJobId=_.Lb(_.nN,function(){nmM(f)},1E3)},nmM=function(f){if(!f.commentsReady){_.u0("cmi");
_.nN.cancelJob(f.setCommentsJobId);var H,v,t,M,h=(H=f.JSC$22966_watchApi.getWatchNextResponse())==null?void 0:(v=H.contents)==null?void 0:(t=v.twoColumnWatchNextResults)==null?void 0:(M=t.results)==null?void 0:M.results.contents;H=void 0;if(h&&h.length)for(h=_.V(h),v=h.next();!v.done;v=h.next())if(v=v.value,M=t=void 0,((t=v)==null?void 0:(M=t.itemSectionRenderer)==null?void 0:M.sectionIdentifier)==="comment-item-section"){_.J("web_watch_provide_undefined_comments")?H=v.itemSectionRenderer:f.JSC$22966_watchApi.provideRenderingData("COMMENTS",
v.itemSectionRenderer);Qh4(f,"true");break}_.J("web_watch_provide_undefined_comments")&&f.JSC$22966_watchApi.provideRenderingData("COMMENTS",H);f.commentsReady=!0;f.JSC$22966_watchApi.dispatchEvent("yt-watch-comments-ready")}},Qh4=function(f,H){var v;
(v=f.JSC$22966_watchApi.getElement("COMMENTS"))==null||v.setAttribute("canScheduleJobs",H)};_.pE=function(f){_.zO.call(this);var H=this;this.JSC$22969_watchApi=f;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.J("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.J("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.J("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.VQ("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)ato(this);
else{var v=this.JSC$22969_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){DZ(H);ob(H)}),t=this.JSC$22969_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){nE(H);
ob(H)});
this.JSC$22969_watchApi.getRoot().is==="ytd-watch-grid"&&_.J("swatcheroo_pbs_load_grid")&&(PgD(this),GLo(this));this.addOnDisposeCallback(function(){H.JSC$22969_watchApi.unsubscribeByKey(v);H.JSC$22969_watchApi.unsubscribeByKey(t);_.nN.cancelJob(H.provideRichGridJobId)});
DZ(this);nE(this)}};
_.e(_.pE,_.zO);var ato=function(f){var H=f.JSC$22969_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){f.providePlayerJobId=_.Vk(_.nN,function(){DZ(f);ob(f)},f.provideAllDataDelayMs)}),v=f.JSC$22969_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){f.provideWatchNextJobId=_.Vk(_.nN,function(){nE(f);
ob(f)},f.provideAllDataDelayMs)}),t=f.JSC$22969_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){f.provideWatchNextJobId=_.Vk(_.nN,function(){nE(f);
ob(f)},f.provideAllDataDelayMs)});
f.JSC$22969_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Lb(_.nN,function(){DZ(f);nE(f);ob(f)},100)});
f.JSC$22969_watchApi.addPageDisposeJob(function(){_.nN.cancelJob(f.provideWatchNextJobId);_.nN.cancelJob(f.providePlayerJobId)});
f.addOnDisposeCallback(function(){f.JSC$22969_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");f.JSC$22969_watchApi.unsubscribeByKey(H);f.JSC$22969_watchApi.unsubscribeByKey(v);f.JSC$22969_watchApi.unsubscribeByKey(t);_.nN.cancelJob(f.providePlayerJobId);_.nN.cancelJob(f.provideWatchNextJobId)});
DZ(f);nE(f)},DZ=function(f){var H=f.JSC$22969_watchApi.getPlayerResponse(),v,t,M=(t=H==null?void 0:(v=H.playabilityStatus)==null?void 0:v.messageRenderers)!=null?t:[],h,y;
H=(y=H==null?void 0:(h=H.playabilityStatus)==null?void 0:h.messages)!=null?y:[];h=_.V(H);for(y=h.next();!y.done;y=h.next())M.push({alertRenderer:{text:_.qO(y.value),type:"WARNING"}});f.JSC$22969_watchApi.provideRenderingData("ALERTS",M)},nE=function(f){var H=[],v,t,M,h=f.JSC$22969_watchApi.getWatchNextResponse(),y,m,W,I,S=h==null?void 0:(y=h.contents)==null?void 0:(m=y.twoColumnWatchNextResults)==null?void 0:(W=m.results)==null?void 0:(I=W.results)==null?void 0:I.contents;
if(S)for(y=_.V(S),m=y.next();!m.done;m=y.next())if(m=m.value,m.videoPrimaryInfoRenderer)var d=m;else if(m.videoSecondaryInfoRenderer){var Z=m;I=W=void 0;m=Object.assign({},(W=m.videoSecondaryInfoRenderer)==null?void 0:(I=W.metadataRowContainer)==null?void 0:I.metadataRowContainerRenderer);if(m.rows&&m.collapsedItemCount!==void 0){m.rows=m.rows.slice(0,m.collapsedItemCount).filter(function(vA){return!!vA.richMetadataRowRenderer});
m.collapsedItemCount=m.rows.length;var l={metadataRowContainerRenderer:m}}}else if(m.merchandiseShelfRenderer)var L=m;else if(m.ticketShelfRenderer)var r=m;else if(m.expandableMetadataRenderer)var n=m;else if(m.itemSectionRenderer)if(W=m.itemSectionRenderer.contents,I=void 0,f.directlyProvideComments&&((I=m.itemSectionRenderer)==null?void 0:I.sectionIdentifier)==="comment-item-section")_.u0("cmi"),f.JSC$22969_watchApi.provideRenderingData("COMMENTS",m.itemSectionRenderer);else if(W)for(m=_.V(W),W=
m.next();!W.done;W=m.next())if(W=W.value,W.commentsEntryPointHeaderRenderer)var Q=W;else if(W.clarificationRenderer||W.infoPanelContainerRenderer||W.infoPanelContentRenderer||W.emergencyOneboxRenderer){H.push(W);var C=C||!!Z}else W.limitedStateMessageRenderer?t=W:W.videoMetadataCarouselViewModel&&(M=W);if(_.J("web_watch_merch_in_sd_when_ticket_shelf_present")&&L&&r){var w=L;L=void 0}if(f.provideWatchNextSecondaryResults){var c,A,X;f.JSC$22969_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
h==null?void 0:(c=h.contents)==null?void 0:(A=c.twoColumnWatchNextResults)==null?void 0:(X=A.secondaryResults)==null?void 0:X.secondaryResults)}if(f.JSC$22969_watchApi.getRoot().is==="ytd-watch-grid"){var fg,gB;f.JSC$22969_watchApi.provideRenderingData("LIVE_CHAT",h==null?void 0:(fg=h.contents)==null?void 0:(gB=fg.twoColumnWatchNextResults)==null?void 0:gB.conversationBar)}var O5,s5,U5,lH;(c=h==null?void 0:(O5=h.contents)==null?void 0:(s5=O5.twoColumnWatchNextResults)==null?void 0:(U5=s5.secondaryResults)==
null?void 0:(lH=U5.secondaryResults)==null?void 0:lH.offerModule)&&(c.donationShelfRenderer||c.donationUnavailableRenderer)&&f.JSC$22969_watchApi.getRoot().is!=="ytd-watch-grid"&&(v=c);O5=f.JSC$22969_watchApi.getPlayerResponse();if(!O5||!_.zre(O5.playabilityStatus,h==null?void 0:h.playerOverlays)){var E5;if(h==null?0:(E5=h.contents)==null?0:E5.singleColumnWatchNextResults){var uH,Rn;var pr=h==null?void 0:(uH=h.contents.singleColumnWatchNextResults.results)==null?void 0:(Rn=uH.results)==null?void 0:
Rn.contents}else{var gh,fr,sb,In;E5=!!(S==null?0:(gh=S[0])==null?0:(fr=gh.itemSectionRenderer)==null?0:(sb=fr.contents)==null?0:(In=sb[0])==null?0:In.backgroundPromoRenderer);var Kr,BA;gh=!!(h==null?0:(Kr=h.contents)==null?0:(BA=Kr.twoColumnWatchNextResults)==null?0:BA.secondaryResults);E5&&!gh&&(pr=S)}}S=H[0];Kr=H[1];C&&H.length===1&&(Kr=S,S=void 0);f.JSC$22969_watchApi.provideRenderingData("PRIMARY_INFO",d);f.JSC$22969_watchApi.provideRenderingData("SECONDARY_INFO",Z);f.JSC$22969_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
Q);f.JSC$22969_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",M);f.JSC$22969_watchApi.provideRenderingData("CLARIFICATION",S);f.JSC$22969_watchApi.provideRenderingData("RICH_METADATA",l);f.JSC$22969_watchApi.provideRenderingData("MERCH_SHELF",L);_.J("web_watch_merch_in_sd_when_ticket_shelf_present")&&f.JSC$22969_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",w);f.JSC$22969_watchApi.provideRenderingData("TICKET_SHELF",r);f.JSC$22969_watchApi.provideRenderingData("LIMITED_STATE",t);f.JSC$22969_watchApi.getRoot().is!==
"ytd-watch-grid"&&f.JSC$22969_watchApi.provideRenderingData("DONATION_SHELF",v);f.JSC$22969_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",pr);f.JSC$22969_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",Kr);f.JSC$22969_watchApi.provideRenderingData("EXPANDABLE_METADATA",n);if(f.swatcherooProvideAllDataOnScheduledJob){var TH,hN,Ho,J9,Ox,lC;d=h==null?void 0:(TH=h.contents)==null?void 0:(hN=TH.twoColumnWatchNextResults)==null?void 0:(Ho=hN.secondaryResults)==null?void 0:(J9=Ho.secondaryResults)==
null?void 0:(Ox=J9.results)==null?void 0:(lC=Ox[0])==null?void 0:lC.richGridRenderer;f.JSC$22969_watchApi.provideRenderingData("RICH_GRID_RENDERER",d)}};
_.pE.prototype.hasCompanionAds=function(f){var H,v;return(v=f==null?void 0:(H=f.adPlacements)==null?void 0:H.some(function(t){var M,h,y,m;return(t==null?void 0:(M=t.adPlacementRenderer)==null?void 0:(h=M.renderer)==null?void 0:h.actionCompanionAdRenderer)||(t==null?void 0:(y=t.adPlacementRenderer)==null?void 0:(m=y.renderer)==null?void 0:m.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?v:!1};
var ob=function(f){if(!_.J("swaterdoo_ps_wn_handle_ks")){f.swatcherooProvideAllDataOnScheduledJob||GLo(f,3E3);var H=f.JSC$22969_watchApi.getPlayerResponse(),v,t,M,h,y,m=(v=f.JSC$22969_watchApi.getWatchNextResponse())==null?void 0:(t=v.contents)==null?void 0:(M=t.twoColumnWatchNextResults)==null?void 0:(h=M.secondaryResults)==null?void 0:(y=h.secondaryResults)==null?void 0:y.offerModule;H=f.hasCompanionAds(H);var W,I;v=(m==null?void 0:(W=m.tvfilmOfferModuleRenderer)==null?void 0:W.clientShouldSuppressIfCompanionAdDisplayed)||
(m==null?void 0:(I=m.unlimitedOfferModuleRenderer)==null?void 0:I.suppressIfCompanionAds);W=H&&v;f.JSC$22969_watchApi.getRoot().is==="ytd-watch-grid"&&f.JSC$22969_watchApi.provideRenderingData("OFFER_MODULE",W?void 0:m)}},GLo=function(f,H){_.J("swatcheroo_pbs_load_grid")&&(f.provideRichGridJobId&&_.nN.cancelJob(f.provideRichGridJobId),f.provideRichGridJobId=_.Vk(_.nN,function(){f.provideRichGridJobId=0;
var v,t,M,h,y,m,W,I=(v=f.JSC$22969_watchApi.getWatchNextResponse())==null?void 0:(t=v.contents)==null?void 0:(M=t.twoColumnWatchNextResults)==null?void 0:(h=M.secondaryResults)==null?void 0:(y=h.secondaryResults)==null?void 0:(m=y.results)==null?void 0:(W=m[0])==null?void 0:W.richGridRenderer;I&&f.JSC$22969_watchApi.provideRenderingData("RICH_GRID_RENDERER",I)},H))},PgD=function(f){var H,v;
_.Y(function(t){if(t.nextAddress==1)return t.yield(f.JSC$22969_watchApi.playerApi,2);H=t.yieldResult;v=function(){f.onPlaybackStart()};
H.addEventListener("onPlaybackStartExternal",v);f.addOnDisposeCallback(function(){H.removeEventListener("onPlaybackStartExternal",v)});
_.Bj(t)})};
_.pE.prototype.onPlaybackStart=function(){GLo(this)};_.EmD=function(f){_.zO.call(this);var H=this;this.JSC$22979_watchApi=f;f.playerApi.then(function(v){H.player=v});
this.gestures=new _.Yo(this.JSC$22979_watchApi.getRoot(),f.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.MvL(_.vS().getState())&&_.Lz(_.vS().getState())<=0)if(_.pV(_.vS().getState())){var v;(v=H.player)==null||v.toggleFullscreen()}else _.mb(H.JSC$22979_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
Cgo(this)};
_.e(_.EmD,_.zO);var Cgo=function(f){var H=_.sI(_.vS(),_.pV,function(v){f.onFullscreenChanged(v)});
f.addOnDisposeCallback(H);H=_.sI(_.vS(),_.Lz,function(v){f.gestures&&(v>0?f.gestures.detach():f.gestures.attach())});
f.addOnDisposeCallback(H)};
_.EmD.prototype.onFullscreenChanged=function(f){this.gestures&&this.gestures.update(f)};_.cm1=function(f){_.zO.call(this);var H=this;this.JSC$22982_watchApi=f;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(f.subscribeToActiveChanged(function(v){H.onActiveChanged(v)}));
NpO(this)};
_.e(_.cm1,_.zO);var XMD=function(f){if(_.J("swatcheroo_page_dispose_all_watch_data"))f.pageDisposalDataTypes=Object.values(Wve).filter(function(v){return v!=="PLAYLIST"});
else if(_.J("swatcheroo_page_dispose_rich_grid")){var H;(H=f.pageDisposalDataTypes)==null||H.push("RICH_GRID_RENDERER")}},NpO=function(f){_.J("swatcheroo_enable_ghost_cards")&&(XMD(f),f.JSC$22982_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.nN.cancelJob(f.clearDataJobId);
f.clearDataJobId=0}),f.runPageDisposeJob=function(){var H=_.t8().resolve(_.fT).getDestinationPageType()==="watch";
f.clearDataJobId=_.Vk(_.nN,f.runClearDataJob,H?0:_.VQ("web_watch_delay_page_dispose_ms",1E4))},f.runClearDataJob=function(){Amo(f)},f.runOnYtNavigateAwayFinish=function(){f.clearDataJobId&&(_.nN.cancelJob(f.clearDataJobId),f.clearDataJobId=0,Amo(f))},document.addEventListener("yt-navigate-finish",f.runOnYtNavigateAwayFinish),f.JSC$22982_watchApi.addPageDisposeJob(f.runPageDisposeJob),f.addOnDisposeCallback(function(){f.JSC$22982_watchApi.removePageDisposeJob(f.runPageDisposeJob);
f.JSC$22982_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",f.runOnYtNavigateAwayFinish)}))},Amo=function(f){f.pageDisposalDataTypes.forEach(function(H){f.JSC$22982_watchApi.provideRenderingData(H,void 0)});
f.clearDataJobId=0};
_.cm1.prototype.onActiveChanged=function(f){f&&((f=document.querySelector("#watch-page-skeleton"))&&_.U1(f),b4o(this),document.body.removeAttribute("no-y-overflow"),_.P6("IS_SHELL_LOAD")&&_.q9r())};
var b4o=function(f){_.Y(function(H){if(H.nextAddress==1)return H.yield(f.JSC$22982_watchApi.playerApi,2);_.ac();_.Bj(H)})};var i4V;i4V=_.J("kevlar_watch_while_counterfactual")?0:.25;_.Qh=function(f){_.zO.call(this);this.JSC$22985_watchApi=f;this.JSC$22985_watchWhileEnabled=_.J("kevlar_watch_while_v2");this.pipEnabled=_.J("web_enable_pip_on_miniplayer");kL1(this);Tp1(this);wML(this)};
_.e(_.Qh,_.zO);var kL1=function(f){f.JSC$22985_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){qg4(f)});
f.addOnDisposeCallback(function(){f.JSC$22985_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},Tp1=function(f){var H,v;
_.Y(function(t){if(t.nextAddress==1)return t.yield(f.JSC$22985_watchApi.playerApi,2);H=t.yieldResult;v=function(){qg4(f)};
H.addEventListener("onCollapseMiniplayer",v);f.addOnDisposeCallback(function(){H.removeEventListener("onCollapseMiniplayer",v)});
_.Bj(t)})},wML=function(f){var H=f.JSC$22985_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&H&&f.JSC$22985_watchWhileEnabled&&(f.playerIntersectionObserver=new IntersectionObserver(function(v){f.handleIntersect(v)},{threshold:[i4V]}),f.playerIntersectionObserver.observe(H),f.addOnDisposeCallback(function(){var v;
(v=f.playerIntersectionObserver)==null||v.disconnect()}))},qg4=function(f){var H,v,t;
_.Y(function(M){if(M.nextAddress==1){H=_.t8().resolve(_.fT);v=H.data;t=_.zB(v.response,!1,v.playerResponse);_.S0().miniplayerButtonActivation=!0;if(f.pipEnabled)return _.S0().watchPipActivation=!0,M.jumpTo(2);_.t8().resolve(_.o0).collapse();return M.yield(_.S0().navigationFinishPromise,2)}if(M.nextAddress!=4)return _.S0().currentEndpoint=t.watchEndpoint||null,M.yield(_.t8().resolve(_.o0).activate(f.JSC$22985_watchApi.getElement("PLAYER"),t,v),4);_.S0().userActivation=!0;_.Bj(M)})};
_.Qh.prototype.handleIntersect=function(f){fpD(this,f[f.length-1])};
var fpD=function(f,H){f.watchWhileJobId&&_.nN.cancelJob(f.watchWhileJobId);f.watchWhileJobId=_.nN.addLowPriorityJob(function(){var v,t;return _.Y(function(M){if(M.nextAddress==1)return f.watchWhileJobId=void 0,v=_.t8().resolve(_.o0),H.intersectionRatio>i4V?v.isMiniplayerActive()?M.yield(v.deactivate(),0):M.jumpTo(0):(t=!v.isMiniplayerActive())?M.yield(Hco(f),5):M.jumpTo(4);M.nextAddress!=4&&(t=M.yieldResult);if(!t)return M.jumpTo(0);_.S0().watchWhileActivation=!0;return M.yield(vk4(f),0)})},100)},
Hco=function(f){return _.Y(function(H){return H.nextAddress==1?_.J("kevlar_watch_while_paused")?H.return(!0):H.yield(f.isPlayerPlaying(),2):H.return(H.yieldResult)})};
_.Qh.prototype.isPlayerPlaying=function(){var f=this,H;return _.Y(function(v){if(v.nextAddress==1)return v.yield(f.JSC$22985_watchApi.playerApi,2);H=v.yieldResult;return v.return(H.getPlayerStateObject().isPlaying)})};
var vk4=function(f){var H,v;return _.Y(function(t){H=_.t8().resolve(_.fT).data;v=_.zB(H.response,!1,H.playerResponse);_.S0().currentEndpoint=v.watchEndpoint||null;return t.yield(_.t8().resolve(_.o0).activate(f.JSC$22985_watchApi.getElement("PLAYER"),v,H),0)})};_.hpL=function(f){_.zO.call(this);this.JSC$22989_watchApi=f;tKq(this);MKO(this)};
_.e(_.hpL,_.zO);var MKO=function(f){var H,v;_.Y(function(t){if(t.nextAddress==1)return t.yield(f.JSC$22989_watchApi.playerApi,2);H=t.yieldResult;v=function(M){var h;M.sessionData&&M.sessionData.itct&&(h=M.sessionData.itct);var y=M.watchEndpoint;if(y&&M.sessionData&&M.sessionData.autonav)y=_.HaH(y,h);else{var m;y=_.MO(M.videoId,(m=M.listId)!=null?m:void 0,h)}h={endpoint:y};M.sessionData&&(h.tempData=M.sessionData);f.JSC$22989_watchApi.dispatchEvent("yt-navigate",h)};
H.addEventListener("onPlayVideo",v);f.addOnDisposeCallback(function(){H.removeEventListener("onPlayVideo",v)});
_.Bj(t)})},tKq=function(f){var H=function(v){f.onYtNavigate(v)};
f.JSC$22989_watchApi.getRoot().addEventListener("yt-navigate",H);f.addOnDisposeCallback(function(){f.JSC$22989_watchApi.getRoot().removeEventListener("yt-navigate",H)})};
_.hpL.prototype.onYtNavigate=function(f){var H=this,v,t,M,h,y,m,W,I,S;return _.Y(function(d){if(d.nextAddress==1){if(!((v=f.detail)==null?0:(t=v.endpoint)==null?0:t.watchEndpoint))return d.return();M=f.detail.endpoint.watchEndpoint;h=H.JSC$22989_watchApi.getWatchNextResponse();m=_.U((y=h)==null?void 0:y.currentVideoEndpoint,_.wI);if(!m)return d.return();if(M.videoId!==m.videoId||M.playlistId&&M.playlistId!==m.playlistId||typeof M.startTimeSeconds!=="number")return d.jumpTo(0);f.stopPropagation();
(W=_.J("kevlar_watch_while_v2")&&!_.J("kevlar_watch_while_counterfactual"))&&_.t8().resolve(_.o0).isMiniplayerActive()||H.JSC$22989_watchApi.scrollWatchTo(0,!0);return d.yield(H.JSC$22989_watchApi.playerApi,3)}I=d.yieldResult;S=M.startTimeSeconds;I.seekTo(S,void 0,void 0,void 0,84);I.wakeUpControls();S<I.getDuration()&&I.playVideo();_.Bj(d)})};_.VKe=function(f){_.zO.call(this);var H=this;this.JSC$22992_watchApi=f;var v=this.JSC$22992_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){RpV(H)});
this.addOnDisposeCallback(function(){H.JSC$22992_watchApi.unsubscribeByKey(v)});
RpV(this)};
_.e(_.VKe,_.zO);var RpV=function(f){var H=f.JSC$22992_watchApi.getWatchNextResponse();if(H){var v,t=[].concat(_.pS((v=H==null?void 0:H.engagementPanels)!=null?v:[]));t.unshift.apply(t,_.pS(yrM(H)));f.JSC$22992_watchApi.provideRenderingData("ENGAGEMENT_PANELS",t)}},YS1=function(f){var H,v,t,M=(H=f.engagementPanels)==null?void 0:(v=H.find(function(l){var L;
return((L=l.engagementPanelSectionListRenderer)==null?void 0:L.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(t=v.engagementPanelSectionListRenderer.content)==null?void 0:t.structuredDescriptionContentRenderer,h;
if(_.U(M==null?void 0:(h=M.items)==null?void 0:h.find(function(l){return!!_.U(l,GhA)}),GhA))return!0;
var y,m,W,I;if(f=(((y=f.contents)==null?void 0:(m=y.twoColumnWatchNextResults)==null?void 0:(W=m.results)==null?void 0:(I=W.results)==null?void 0:I.contents)||[]).find(function(l){return l.videoPrimaryInfoRenderer})){var S,d,Z;
return(((S=f.videoPrimaryInfoRenderer)==null?void 0:(d=S.videoActions)==null?void 0:(Z=d.menuRenderer)==null?void 0:Z.flexibleItems)||[]).some(function(l){l=_.U(l,_.BCh);if(!l)return!1;var L,r;l=(L=l.topLevelButton)==null?void 0:(r=L.buttonViewModel)==null?void 0:r.onTap;if(!l)return!1;L=_.GK(l);if(!L)return!1;var n;return((n=_.U(L,_.UH))==null?void 0:n.panelIdentifier)==="PAyouchat"})}return!1},yrM=function(f){var H=[];
if(!_.J("web_watch_inject_placeholder_fantasy_panel_killswitch")){var v,t,M,h=(v=f.engagementPanels)==null?void 0:(t=v.find(function(m){var W;return((W=m.engagementPanelSectionListRenderer)==null?void 0:W.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(M=t.engagementPanelSectionListRenderer.content)==null?void 0:M.structuredDescriptionContentRenderer,y;
_.U(h==null?void 0:(y=h.items)==null?void 0:y.find(function(m){return!!_.U(m,dxA)}),dxA)&&(v=_.gy_("PAsports_fantasy"),v.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",H.push(v))}YS1(f)&&(f=_.gy_("PAyouchat"),f.engagementPanelSectionListRenderer.targetId="PAyouchat",f.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",H.push(f));
return H};_.$wO=function(f){_.zO.call(this);this.JSC$22995_watchApi=f;mwe(this)};
_.e(_.$wO,_.zO);var mwe=function(f){f.JSC$22995_watchApi.registerActionHandler("yt-loop-command",function(H){WZq(f,H)});
f.JSC$22995_watchApi.registerActionHandler("yt-repeat-chapter-command",function(H){Oc1(f,H)});
f.addOnDisposeCallback(function(){f.JSC$22995_watchApi.unregisterActionHandler("yt-loop-command");f.JSC$22995_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},WZq=function(f,H){var v;
_.Y(function(t){if(t.nextAddress==1)return t.yield(f.JSC$22995_watchApi.playerApi,2);v=t.yieldResult;_.U(H,sFq).loop?(v.setLoopRange({startTimeMs:Number(_.U(H,sFq).startTimeMs),endTimeMs:Number(_.U(H,sFq).endTimeMs),postId:_.U(H,sFq).postId,type:"clips"}),v.playVideo()):v.setLoopRange(null);_.Bj(t)})},Oc1=function(f,H){var v,t;
_.Y(function(M){if(M.nextAddress==1)return M.yield(f.JSC$22995_watchApi.playerApi,2);v=M.yieldResult;t=_.U(H,ewo).repeat;t==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(v.setLoopRange({startTimeMs:Number(_.U(H,ewo).startTimeMs),endTimeMs:Number(_.U(H,ewo).endTimeMs),type:"repeatChapter"}),v.playVideo()):t==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&v.setLoopRange(null);_.Bj(M)})};_.Ip1=function(f){_.zO.call(this);this.JSC$23000_watchApi=f;gkq(this)};
_.e(_.Ip1,_.zO);var gkq=function(f){f.JSC$23000_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(H){SSM(f,H)});
f.addOnDisposeCallback(function(){f.JSC$23000_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},SSM=function(f,H){var v,t,M,h,y,m,W,I,S,d,Z;
_.Y(function(l){if(l.nextAddress==1)return l.yield(f.JSC$23000_watchApi.playerApi,2);v=l.yieldResult;if(h=(M=(t=_.U(H,LWU))==null?void 0:t.highlightedMenuItemKey)!=null?M:"")(m=(y=v).highlightSettingsMenuItem)==null||m.call(y,h);if(S=(I=(W=_.U(H,LWU))==null?void 0:W.openMenuItemKey)!=null?I:"")(Z=(d=v).openSettingsMenuItem)==null||Z.call(d,S);_.Bj(l)})};var dwo=_.SB("/youtube/app/watch/player_state","playerStateEntity");_.s8e=function(f){_.zO.call(this);this.JSC$23003_watchApi=f;j8U(this)};
_.e(_.s8e,_.zO);var Zce=function(f){switch(f){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"}},j8U=function(f){var H,v;
_.Y(function(t){if(t.nextAddress==1)return t.yield(f.JSC$23003_watchApi.playerApi,2);H=t.yieldResult;v=function(M){f.onPlayerStateChange(M)};
H.addEventListener("onStateChange",v);f.addOnDisposeCallback(function(){H.removeEventListener("onStateChange",v)});
_.Bj(t)})};
_.s8e.prototype.onPlayerStateChange=function(f){var H=this,v,t;return _.Y(function(M){if(M.nextAddress==1)return M.yield(H.JSC$23003_watchApi.playerApi,2);v=M.yieldResult;t=v.getVideoData().video_id;_.fu().dispatch(_.lF("playerStateEntity",dwo,{key:dwo,playerState:Zce(f),videoId:t}));_.Bj(M)})};_.lpU=function(f){_.zO.call(this);var H=this;this.JSC$23007_watchApi=f;this.enableExternalPlaylistPanelInPlayer=_.J("delhi_web_player_use_external_playlist_panel");_.t8().resolve(_.u3).setPlayer(this.JSC$23007_watchApi.getElement("PLAYER"));f=this.JSC$23007_watchApi.subscribeToActiveChanged(function(v){H.onActiveChanged(v)});
this.addOnDisposeCallback(f);Jr4(this)};
_.e(_.lpU,_.zO);var Jr4=function(f){var H,v;_.Y(function(t){if(t.nextAddress==1)return f.enableExternalPlaylistPanelInPlayer?t.yield(f.JSC$23007_watchApi.playerApi,2):t.return();H=t.yieldResult;v=function(){if(f.playlistPanelElement)f.playlistPanelElement.onToggleExpanded()};
H.addEventListener("onToggleExternalPlaylistPanel",v);f.addOnDisposeCallback(function(){H.removeEventListener("onToggleExternalPlaylistPanel",v)});
_.Bj(t)})};
_.lpU.prototype.onActiveChanged=function(f){var H=this,v=_.t8().resolve(_.u3),t=function(){Uw1(H)};
f?(this.playlistPanelElement=this.JSC$23007_watchApi.getElement("PLAYLIST_PANEL"))?(v.setPlaylistComponent(this.playlistPanelElement),v.addEventListener("yt-playlist-data-updated",t),this.addOnDisposeCallback(function(){v.removeEventListener("yt-playlist-data-updated",t)}),Uw1(this)):_.Nw(Error("Lo")):(v.removeEventListener("yt-playlist-data-updated",t),v.cancelVideoSkip())};
var Uw1=function(f){var H=_.t8().resolve(_.u3);f.JSC$23007_watchApi.provideRenderingData("PLAYLIST",H.getPlaylistData())};_.uX=function(f){_.zO.call(this);var H=this;this.JSC$23010_watchApi=f;this.onPageScroll=function(){H.scrollThrottle.fire();H.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.Nl(this.onThrottledScroll,200,this);_.jz(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.Nl(this.onMastheadThrottledScroll,50,this);_.jz(this,this.mastheadScrollThrottle);this.animation=new _.EO(function(v){H.JSC$23010_watchApi.getRoot().setScrollTop(v)});
f=_.sI(_.vS(),_.pV,function(){H.onFullscreenChanged()});
this.addOnDisposeCallback(f);epv(this);LZ1(this);this.onThrottledScroll()};
_.e(_.uX,_.zO);
_.uX.prototype.onFullscreenChanged=function(){var f=this,H=this.JSC$23010_watchApi.getRoot();!this.pageScrollElement&&H.pageScrollElement?(this.pageScrollElement=H.pageScrollElement,H.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){f.pageScrollElement&&f.pageScrollElement.removeEventListener("scroll",f.onPageScroll)})):this.pageScrollElement&&!H.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var epv=function(f){window.addEventListener("scroll",f.onPageScroll);f.addOnDisposeCallback(function(){window.removeEventListener("scroll",f.onPageScroll)})},LZ1=function(f){f.JSC$23010_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(H){a:{var v;
if(v=f.JSC$23010_watchApi.getRoot().contains(H)&&!f.animation.isAnimating()){v=H.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var t,M,h=(H==null?void 0:(t=H.parentElement)==null?void 0:(M=t.parentElement)==null?void 0:M.id)==="fixed-secondary";v=!(v&&h)}if(v){if(_.J("kevlar_watch_scroll_manager_absolute_offset_killswitch"))t=H.offsetTop;else for(t=0,M=H;M!==null;)t+=M.offsetTop,t-=M.scrollTop,M=M.offsetParent;M=t;t=M-24;H=M+H.offsetHeight+24;M=f.JSC$23010_watchApi.getRoot().getPageScrollingElement();
v=f.JSC$23010_watchApi.getRoot().getScrollTop();h=v+M.clientHeight-56;if(t<v+56)H=t-56;else if(H>h)H-=M.clientHeight;else break a;f.scrollWatchTo(Math.max(0,H),!0)}}});
f.addOnDisposeCallback(function(){f.JSC$23010_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.uX.prototype.onThrottledScroll=function(){var f=_.vS(),H=f.dispatch,v=this.JSC$23010_watchApi.getRoot().getScrollTop();H.call(f,_.yq({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:v}}))};
_.uX.prototype.onMastheadThrottledScroll=function(){this.JSC$23010_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23010_watchApi.getRoot().getScrollTop())};
_.uX.prototype.scrollWatchTo=function(f,H){(H===void 0?0:H)?this.animation.start(this.JSC$23010_watchApi.getRoot().getScrollTop(),Math.max(0,f),500):this.JSC$23010_watchApi.getRoot().setScrollTop(f)};_.zpD=function(f){_.zO.call(this);var H=this;this.JSC$23013_watchApi=f;var v=this.JSC$23013_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){xwU(H)}),t=this.JSC$23013_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){BuO(H)});
this.addOnDisposeCallback(function(){H.JSC$23013_watchApi.unsubscribeByKey(v);H.JSC$23013_watchApi.unsubscribeByKey(t)});
xwU(this);BuO(this)};
_.e(_.zpD,_.zO);
var xwU=function(f){var H,v,t,M=(t=(H=f.JSC$23013_watchApi.getPlayerResponse())==null?void 0:(v=H.videoDetails)==null?void 0:v.title)!=null?t:"";f.JSC$23013_watchApi.dispatchEvent("yt-update-title",M)},BuO=function(f){var H,v,t,M,h,y,m,W=(m=((y=(H=f.JSC$23013_watchApi.getWatchNextResponse())==null?void 0:(v=H.contents)==null?void 0:(t=v.twoColumnWatchNextResults)==null?void 0:(M=t.results)==null?void 0:(h=M.results)==null?void 0:h.contents)!=null?y:[]).find(function(I){return!!I.videoPrimaryInfoRenderer}))==null?
void 0:m.videoPrimaryInfoRenderer;
(H=_.fG(W==null?void 0:W.title))&&f.JSC$23013_watchApi.dispatchEvent("yt-update-title",H)};_.rrv=function(f){_.zO.call(this);this.JSC$23016_watchApi=f;FZM(this)};
_.e(_.rrv,_.zO);var FZM=function(f){var H,v;_.Y(function(t){if(t.nextAddress==1)return t.yield(f.JSC$23016_watchApi.playerApi,2);H=t.yieldResult;v=function(){f.onYpcContentRequest()};
H.addEventListener("onYpcContentRequest",v);f.addOnDisposeCallback(function(){H.removeEventListener("onYpcContentRequest",v)});
_.Bj(t)})};
_.rrv.prototype.onYpcContentRequest=function(){var f,H,v,t,M,h=(f=this.JSC$23016_watchApi.getWatchNextResponse())==null?void 0:(H=f.contents)==null?void 0:(v=H.twoColumnWatchNextResults)==null?void 0:(t=v.secondaryResults)==null?void 0:(M=t.secondaryResults)==null?void 0:M.offerModule,y,m,W,I;f=(I=(W=(m=(y=h==null?void 0:h.episodeOfferModuleRenderer)!=null?y:h==null?void 0:h.movieOfferModuleRenderer)!=null?m:h==null?void 0:h.unlimitedOfferModuleRenderer)!=null?W:h==null?void 0:h.liveOfferModuleRenderer)!=
null?I:h==null?void 0:h.tvfilmOfferModuleRenderer;var S,d,Z;h=(Z=h==null?void 0:(S=h.tvfilmOfferModuleRenderer)==null?void 0:(d=S.actionButtons)==null?void 0:d.length)!=null?Z:0;d=Math.max(h-1,0);var l,L,r;S=(r=f==null?void 0:(l=f.offerButton)==null?void 0:l.buttonRenderer)!=null?r:f==null?void 0:(L=f.actionButtons)==null?void 0:L[d].buttonRenderer;var n,Q;(l=(Q=(n=S==null?void 0:S.navigationEndpoint)!=null?n:S==null?void 0:S.serviceEndpoint)!=null?Q:S==null?void 0:S.command)&&_.jW.instance.resolveCommand(l)};
}catch(e){_._DumpException(e)}
try{
var KuG,zLA,xVW;_.BT0=function(){var f=_.QA.clone(Lur),H;return(new _.IO(function(v,t){f.onSuccess=function(M){_.pVT(M)?v(new xVW(M)):t(new _.hL("Request failed, status="+_.mp(M),"net.badstatus",M))};
f.onError=function(M){t(new _.hL("Unknown request error","net.unknown",M))};
f.onTimeout=function(M){t(new _.hL("Request timed out","net.timeout",M))};
H=_.I2("//googleads.g.doubleclick.net/pagead/id",f)})).thenCatch(function(v){if(v instanceof _.pp){var t;
(t=H)==null||t.abort()}return _.DI(v)})};
_.Fuw=function(f){a:{var H="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(H="EMBEDDED_PLAYER_MODE_PFL");var v=f.raw_embedded_player_response;if(!v&&(f=f.embedded_player_response))try{v=JSON.parse(f)}catch(M){break a}if(v)b:for(var t in zLA)if(zLA[t]==v.embeddedPlayerMode){H=zLA[t];break b}}return H==="EMBEDDED_PLAYER_MODE_PFL"};
_.rMr=function(){if(_.J("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("of");if(!_.WAb())return Error("pf");var f=_.a8("PLAYER_VARS",{});if(_.QA.get(f,"privembed",!1)=="1")return Error("qf");if(_.Fuw(f))return Error("rf")};
KuG=function(f){switch(f){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:_.bC(f,"unknown result type")}};
_.DVx=function(f,H,v){H=_.m2r[H];v={detected:f===0,source:H.bny,detectionResult:KuG(f),contentCpn:v};_.Kb("biscottiBasedDetection",v);_.mUb.increment(H.bny,f);H.bdt!==void 0&&_.pc("CATSTAT",_.y3B(f,H))};
_.Rx=function(f,H){var v={};v.key=f;v.value=H;return _.NYv().then(function(t){return new Promise(function(M,h){try{var y=t.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(v);y.onsuccess=function(){M()};
y.onerror=function(){h()}}catch(m){h(m)}})})};
_.n7W=function(){var f=_.VQ("user_engagement_experiments_rate_limit_ms"),H=o7b.get("last-user-engagement-exp-trigger-timestamp");return!H||(0,_.ta)()>=H+f?(o7b.set("last-user-engagement-exp-trigger-timestamp",(0,_.ta)()),!0):!1};
_.Vx=function(f,H,v,t,M){H=H===void 0?null:H;v=v===void 0?null:v;t=t===void 0?null:t;M=M===void 0?null:M;f={youThereEventType:f};v&&(f.lactThresholdMs=v.lactThresholdMs,f.mediaPosSec=v.promptDelaySec,f.lactServerRequestMs=v.lactServerRequestMs,f.triggerReason=v.triggerReason);M!=null&&(f.renderingMediaPosSec=Math.round(M));H||(H=_.uy());H&&(f.clientScreenNonce=H);t&&(f.clientPlaybackNonce=t);_.Kb("youThere",f)};
zLA={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"};xVW=function(f){this.xhr=f};
_.hL=function(f,H,v){_.vR.call(this,f+", errorCode="+H);this.errorCode=H;this.xhr=v;this.name="PromiseAjaxError"};
_.e(_.hL,_.vR);var Lur={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var o7b=new _.P8("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.eLb=function(f){return _.yq({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:f})};
}catch(e){_._DumpException(e)}
try{
var CE,vZq,M$v,hve,Rvv,V$O,YkL,dJV,j2v,s24,y84,t$1,Olq,WpD,lyU;_.Hl1=function(){var f=window.location.hash;f.charAt(0)==="#"&&(f=f.charAt(1)==="!"?f.substring(2):f.substring(1));return _.Ar(f)};
CE=function(f,H,v){var t;return _.Y(function(M){if(M.nextAddress==1)return M.yield(H(),2);t=M.yieldResult;v(t,f);_.Bj(M)})};
vZq=function(){return _.Y(function(f){return f.nextAddress==1?f.yield((_.rMr()!==void 0?_.DI(Error("sf")):_.BT0()).then(function(){return 1},function(H){if(H.message==="Biscotti id is disabled")return 3;
_.pb("Failed fetching bid");return 0}),2):f.return(f.yieldResult)})};
M$v=function(){var f=_.R9("aG1xeXQtaGF2ZW4tZW1iZWQtcGxheWVyI2FnanpxaWU4dg=="),H=_.R9("d2lmcmFtZSNlMXRnNXpieTFq");return document.querySelector(H+t$1+f)?0:1};
hve=function(){return _.imB(_.Xz)};
Rvv=function(){return _.klb()===0?0:_.T$b()};
V$O=function(){return _.v8R(_.dWT([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
YkL=function(){return _.Glg(y84)};
_.mJ1=function(f){_.Y(function(H){switch(H.nextAddress){case 1:return H.yield(CE("b.f_",vZq,f),2);case 2:return H.yield(CE("j.s_",_.auE,f),3);case 3:return H.yield(CE("r.s_",_.pG_,f),4);case 4:return H.yield(CE("e.h_",YkL,f),5);case 5:if(!_.J("ab_det_sc_inj")){H.jumpTo(6);break}return H.yield(CE("s.i_",_.A_B,f),6);case 6:if(_.J("ab_deg_unex_thr")){H.jumpTo(8);break}return H.yield(CE("a.o_",_.c_R,f),8);case 8:if(_.J("ks_get_o_pp")){H.jumpTo(10);break}return H.yield(CE("g.o_",_.N$5,f),10);case 10:if(_.J("ks_det_gpbl")){H.jumpTo(12);
break}return H.yield(CE("p.i_",_.EI5,f),12);case 12:return H.yield(CE("f.i_",_.eBg,f),14);case 14:return H.yield(CE("a.b_",_.oIH,f),15);case 15:return H.yield(CE("p.m_",_.B$H,f),16);case 16:if(!_.J("ab_det_el_h_v2")){H.jumpTo(17);break}return H.yield(CE("n.h_",V$O,f),17);case 17:return H.yield(CE("o.p_",hve,f),19);case 19:return H.yield(CE("e.i_",M$v,f),20);case 20:if(_.J("ab_det_apm"))return H.yield(CE("o.a_",Rvv,f),0);H.jumpTo(0)}})};
_.$JD=function(f,H){f={videoId:f};H&&(f.playlistId=H);return f};
_.gZe=function(){if(_.WAb()){var f=_.a8("PLAYER_VARS",{});if(_.QA.get(f,"privembed",!1)!="1"&&!_.Fuw(f)){var H=function(){WpD=!0;"google_ad_status"in window?_.pc("DCLKSTAT",1):_.pc("DCLKSTAT",2)};
try{_.c7(_.dKH,H)}catch(v){}Olq.push(_.nN.addLowPriorityJob(function(){if(!(WpD||"google_ad_status"in window)){try{_.Mh3(_.dKH.toString(),H)}catch(v){}WpD=!0;_.pc("DCLKSTAT",3)}},5E3))}}};
_.EQ=function(f,H,v){v=v===void 0?!1:v;var t=Math.max(f.width,_.E5V);if(_.J("kevlar_watch_feed_big_thumbs")&&f.width>=1550-_.P$()&&f.height>=800)t-=_.i01;else if(f.width>=_.QN){var M=_.NiL+_.cWO+_.pz;_.J("kevlar_watch_feed_big_thumbs")&&(M=_.b0D);t-=M}else t-=_.NiL;t=Math.min(t,_.XAq);M=240;v&&(M=380);H<.5624||(!_.J("kevlar_watch_flexy_disable_small_window_sizing")&&(f.height<630&&f.width>=657||f.height>=630&&f.width>=_.QN&&f.width<1327)?M=360:!_.J("kevlar_watch_flexy_disable_large_window_sizing")&&
f.height>=630&&f.width>=1327&&(M=480));var h=Math.min(t*H,f.height-(56+_.CtO+_.AWM));h=Math.max(h,M);H<1?t=h/H:f.width>=_.QN&&(t=_.EQ(f,.5625,v).width);return new _.eF(Math.round(t),Math.round(h))};
_.Iy4=function(f){var H=0;f.indexOf("h")!=-1&&(f=f.split("h"),H=f[0]*60*60,f=f[1]);f.indexOf("m")!=-1&&(f=f.split("m"),H=f[0]*60+H,f=f[1]);f.indexOf("s")!=-1?(f=f.split("s"),H=f[0]*1+H):H=f*1+H;return H};
_.Sko=function(){_.VQ("service_worker_push_logged_out_prompt_watches")!=-1&&_.YL("WatchCount").then(function(f){f>=100||_.Rx("WatchCount",f+1)})};
dJV=function(f){var H=f.externalVideoId||"";return H?f.isShortsEligible?"https://www.youtube.com/shorts/"+H:"https://www.youtube.com/watch?v="+H:""};
j2v=function(f){var H=[];f.viewCount&&H.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:f.viewCount});f.likeCount&&H.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:f.likeCount});return H};
s24=function(f){var H,v,t={"@context":"https://schema.org","@type":"VideoObject",description:_.fG(f.description),duration:"PT"+(f.lengthSeconds||"0")+"S",embedUrl:f.embed?f.embed.iframeUrl:"",name:_.fG(f.title),thumbnailUrl:((H=f.thumbnail)==null?void 0:(v=H.thumbnails)==null?void 0:v.map(function(S){return S&&S.url||""}))||[],
uploadDate:f.publishDate};_.J("mweb_video_schema_id_killswitch")||(t["@id"]=dJV(f));H=j2v(f);H.length&&(t.interactionStatistic=H);f.category&&(t.genre=f.category);f.ownerChannelName&&(t.author=f.ownerChannelName);f.liveBroadcastDetails&&(t.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:f.liveBroadcastDetails.startTimestamp,endDate:f.liveBroadcastDetails.endTimestamp}]);if(f.learningResource){f=f.learningResource;t["@type"]=["VideoObject","LearningResource"];var M;if((M=f.learningResourceType)==
null?0:M.length)t.learningResourceType=f.learningResourceType[0];var h;if((h=f.educationalAlignment)==null?0:h.length)t.educationalAlignment={"@type":"AlignmentObject",targetName:f.educationalAlignment[0]};var y;if((y=f.educationalLevel)==null?0:y.length){M=f.educationalLevel[0];var m;if((m=f.educationalLevelCountry)==null?0:m.length)M+=" ("+f.educationalLevelCountry+")";t.educationalLevel=M}var W,I;if(((W=f.learningResourceType)==null?0:W.length)&&f.learningResourceType[0]==="Problem walkthrough"&&
((I=f.problemDescriptions)==null?0:I.length))for(t.hasPart=[],m=_.V(f.problemDescriptions),W=m.next();!W.done;W=m.next())M=W.value,W=M.problemDescriptionText,I=M.startOffset,M=M.url,W&&I!==void 0&&M&&t.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:W,text:W,startOffset:I,url:M})}return t};
_.ZlD=function(f){return _.yq({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:f}})};
y84=[[["bWFyeSNwOGI0bDRuYTd1NTlwcmk=",null,null],[null,["LWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVyI3ViZWh0ZWNkZHA3cHl0ZC10d28tY29sdW1u","I2xkYjlzenF1MTIycnN0eWxlLXNjb3Bl"],null],["I2xxemYwZGg3ejlwZW1hc3RoZWFkLWFk",["enF5dGQtcmljaC1ncmlkLXJlbmRlcmVyI3R4NnpiaGx4c2Y="],null],[null,["ejR5dGQtcmljaC1ncmlkLXJlbmRlcmVyI2pwaG43aHpobXM=","Izg1Mmd4ZDFxbTlsNnN0eWxlLXNjb3Bl"],null],[null,["dGQtYmFubmVyLXByb21vLXJlbmRlcmVyIzVpbHJvcmk0cHZmdXk=","I3F4OHRnZHZjN2EwMnN0eWxlLXNjb3Bl"],null],[null,["dndzYnl0ZC1hZC1zbG90LXJlbmRlcmVyI2N0em5yOXJw"],
null]],[["cyNlY2Y0dzZmbHczNjlwbGF5ZXItYWQ=",null,null]],[["NGZ5dTZ5cmRlc2NyaXB0aW9uLWlubmVyI2RzY3Mw",null,null],[null,null,"eXRkLW1lcmNoLXNoZWxmLXJlbmRlcmVyIzlkb2VuZDY4Z3Q3aA=="],["eG1zbWFpbiNic3p4YTh5dGc=",["eXRkLW1lcmNoLXNoZWxmLXJlbmRlcmVyI3Q4bzJkanV3Y21rNw=="],null]]];t$1="#";Olq=[];WpD=!1;_.J8O=["engagement-panel-ads"];lyU=new _.Ak("updateSentimentBarStateCommand");_.UJA=new _.Ak("showSurveyCommand");_.NK=new _.Ak("changeMarkersVisibilityCommand");var LpO,xJ1,r8o,FpM,zvU,c2;_.evo=function(f,H){this.playerProvider_=f;this.actionSenderElement_=H;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.evo.prototype.reset=function(){LpO(this);this.isUserPredictedAbsent_=!1};
LpO=function(f,H){!f.youThereData_||f.showWarningJob_||H!==void 0&&H||(_.Vx("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.uy(),f.youThereData_,f.clientPlaybackNonce_),_.DK());_.nN.cancelJob(f.showWarningJob_);f.showWarningJob_=0;_.nN.cancelJob(f.showBlockingWarningJob_);f.showBlockingWarningJob_=0;_.nN.cancelJob(f.pausePlaybackJob_);f.pausePlaybackJob_=0;f.youThereData_=null;f.clientPlaybackNonce_=void 0;f.inYouThereFlow_=!1};
_.BHM=function(f,H){var v,t,M;_.Y(function(h){if(h.nextAddress==1)return f.reset(),h.yield(f.playerProvider_().getPlayerPromise(),2);v=h.yieldResult;f.clientPlaybackNonce_=v.getVideoData().cpn;f.youThereData_=H.configData.youThereData;if(!f.youThereData_)return h.return();if(f.youThereData_.triggerReason&&f.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.n7W())return _.Vx("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.uy(),f.youThereData_,f.clientPlaybackNonce_),h.return();t=f.youThereData_.promptDelaySec;
M=v.getCurrentTime();f.showWarningJob_=_.nN.addLowPriorityJob(function(){return _.Y(function(y){f.showWarningJob_=0;return y.yield(xJ1(f),0)})},Math.max(t-M,0)*1E3);
_.Bj(h)})};
xJ1=function(f){var H,v,t,M,h,y;return _.Y(function(m){if(m.nextAddress==1)return m.yield(f.playerProvider_().getPlayerPromise(),2);if(m.nextAddress!=3)return H=m.yieldResult,v=H.getCurrentTime(),m.yield(zvU(f),3);t=m.yieldResult;if(!t||!f.youThereData_)return m.return();if(_.J("check_user_lact_at_prompt_shown_time_on_web")&&(M=parseInt(f.youThereData_.lactThresholdMs,10),_.h7()<M))return _.Vx("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.uy(),f.youThereData_,f.clientPlaybackNonce_),m.return();if(f.youThereData_.playbackPauseDelayMs<=
0)return FpM(f),m.return();!_.J("external_fullscreen")&&(h=_.M6())&&(f.ignoreFullscreenExitUserActivity_=!0,_.nN.addLowPriorityJob(function(){f.ignoreFullscreenExitUserActivity_=!1},2E3),_.Rr(h));
f.youThereData_.showToastWarningPrompt&&(c2(f,f.youThereData_.showWarningActions),f.inYouThereFlow_=!0,_.Vx("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.uy(),f.youThereData_,f.clientPlaybackNonce_,v),_.Vx("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.uy(),f.youThereData_,f.clientPlaybackNonce_,v));y=0;f.youThereData_.blockingPromptDelayMs&&(y=f.youThereData_.blockingPromptDelayMs);f.showBlockingWarningJob_=_.nN.addLowPriorityJob(function(){return _.Y(function(W){f.showBlockingWarningJob_=0;return W.yield(r8o(f),
0)})},y);
_.Bj(m)})};
r8o=function(f){var H,v,t;return _.Y(function(M){if(M.nextAddress==1)return M.yield(zvU(f),2);H=M.yieldResult;if(!f.youThereData_)return M.return();H&&(f.youThereData_.showBlockingWarningAction&&(_.Vx("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.uy(),f.youThereData_,f.clientPlaybackNonce_),(v=_.U(f.youThereData_.showBlockingWarningAction,_.Ir))?c2(f,v.commands):c2(f,[f.youThereData_.showBlockingWarningAction]),f.inYouThereFlow_=!0),t=f.youThereData_.playbackPauseDelayMs,f.pausePlaybackJob_=
_.nN.addLowPriorityJob(function(){return _.Y(function(h){f.pausePlaybackJob_=0;return h.yield(FpM(f),0)})},t));
_.Bj(M)})};
FpM=function(f){var H;return _.Y(function(v){if(v.nextAddress==1)return v.yield(zvU(f),2);H=v.yieldResult;if(!f.youThereData_)return v.return();H&&(_.Vx("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.uy(),f.youThereData_,f.clientPlaybackNonce_),c2(f,f.youThereData_.showPausedActions),f.inYouThereFlow_=!0);_.Bj(v)})};
_.evo.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var f=_.U(this.youThereData_.userActiveDuringFlowAction,_.Ir);f?c2(this,f.commands):c2(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.Vx("YOU_THERE_EVENT_TYPE_LACT_RESET",_.uy(),this.youThereData_,this.clientPlaybackNonce_),_.DK());LpO(this,!0)}_.KpD(this,!1)};
_.DJ4=function(f){_.Vx("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.uy(),f.youThereData_,f.clientPlaybackNonce_)};
zvU=function(f){var H,v;return _.Y(function(t){if(t.nextAddress==1)return t.yield(f.playerProvider_().getPlayerPromise(),2);H=t.yieldResult;v=H.getPlayerState();return t.return(v==-1||v==1||v==3)})};
_.KpD=function(f,H){var v;_.Y(function(t){if(t.nextAddress==1){if(f.isUserPredictedAbsent_==H)return t.jumpTo(0);f.isUserPredictedAbsent_=H;return t.yield(f.playerProvider_().getPlayerPromise(),3)}v=t.yieldResult;v.setUserEngagement(H);H&&_.Vx("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.uy(),f.youThereData_,f.clientPlaybackNonce_);_.Bj(t)})};
c2=function(f,H){if(_.J("handle_service_request_actions")||_.J("kevlar_youthere_service_endpoint_actions_killswitch"))_.Oj(f.actionSenderElement_,H,f.actionSenderElement_);else{H=_.V(H);for(var v=H.next();!v.done;v=H.next())v=v.value,v.commandMetadata&&v.commandMetadata.webCommandMetadata&&v.commandMetadata.webCommandMetadata.sendPost?_.WV(f.actionSenderElement_,[v]):_.Oj(f.actionSenderElement_,[v],f.actionSenderElement_)}};var oZM;var nZM;var X1=function(){var f=_.K.apply(this,arguments)||this;f.systemIcons=_.J("kevlar_system_icons");f.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return f};
_.e(X1,_.K);X1.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var f=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(f=this.data.percentIfLiked||0,this.activated=!0):(f=this.data.percentIfIndifferent||0,this.activated=!1);_.mF(this.hostElement).querySelector("#like-bar").style.width=f+"%"}};
X1.prototype.handleUpdateSentimentBarStateCommand=function(f){this.data&&this.set("data.likeStatus",_.U(f,lyU).likeStatus)};
X1.prototype.observeLikeStatus=X1.prototype.observeLikeStatus;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],X1.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],X1.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],X1.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],X1.prototype,"activated",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],X1.prototype,"systemIcons",void 0);_.E([_.Zw("data.likeStatus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],X1.prototype,"observeLikeStatus",null);_.E([_.u({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],X1);
_.G(X1,"ytd-sentiment-bar-renderer",function(){if(nZM!==void 0)return nZM;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return nZM=f},{mode:1});var pho;var A5=function(){var f=_.K.apply(this,arguments)||this;f.small=!0;return f};
_.e(A5,_.K);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],A5.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],A5.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],A5.prototype,"small",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],A5);
_.G(A5,"ytd-video-view-count-renderer",function(){if(pho!==void 0)return pho;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return pho=f},{mode:_.WK("kevlar_poly_si_batch_j080")?1:2});var bX=function(){var f=_.K.apply(this,arguments)||this;f.infoFormattedStrings=[];f.wrapVideoActions=_.J("kevar_watch_wrap_video_actions");f.hideSentimentBar=_.J("kevlar_watch_hide_sentiment_bar");f.actionMap={};return f};
_.e(bX,_.K);_.R=bX.prototype;_.R.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.J("web_modern_buttons"),forceIconButton:!_.J("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.R.dataChanged=function(){_.J("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.R.computeInfoFormattedStrings=function(f){if(!f)return[];var H=[];f.dateText&&H.push(f.dateText);f.stationName&&H.push(f.stationName);f.rating&&H.push(f.rating);f.startEndTimeTemplate&&f.startTimeUtcMillis&&f.endTimeUtcMillis&&H.push(_.qO(_.YbU(_.fG(f.startEndTimeTemplate),Number(f.startTimeUtcMillis),Number(f.endTimeUtcMillis))));f.upNextProgramText&&H.push(f.upNextProgramText);return H};
_.R.scheduleInitialUpdatedMetadataRequest=function(){var f,H=(f=this.data)==null?void 0:f.updatedMetadataEndpoint;if(H){var v;f=Number((v=_.U(H,_.h4M))==null?void 0:v.initialDelayMs);v=isNaN(f)?250:f;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),v)}};
_.R.setSentimentBarWidth=function(){var f=this;_.qV(this,function(){var H=_.mF(f.hostElement).querySelector("ytd-menu-renderer");if(H){H=H.topLevelButtons;for(var v=0,t=0;t<H.length;t++){var M=H[t],h=f.get("toggleButtonSupportedData.toggleButtonIdData.id",M.data);if(h==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||h==="TOGGLE_BUTTON_ID_TYPE_LIKE")v+=M.clientWidth+8;else break}v&&(f.sentiment.style.width=v-8+" px")}})};
_.R.fetchUpdatedMetadata=function(f){var H;f&&(H={continuation:f});var v;(f=(v=this.data)==null?void 0:v.updatedMetadataEndpoint)&&_.t8().resolve(_.MJ).resolveCommand(f,{form:Object.assign({},H,{element:this.hostElement})})};
_.R.onYtServiceRequestSent=function(f,H){H.endpoint&&_.U(H.endpoint,_.np)&&(this.hasUpdateSentimentBarStateCommands()&&!_.J("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.U(H.endpoint,_.np).status),this.setSentimentBarWidth())};
_.R.hasUpdateSentimentBarStateCommands=function(){var f,H,v,t,M=(t=(f=this.data)==null?void 0:(H=f.videoActions)==null?void 0:(v=H.menuRenderer)==null?void 0:v.topLevelButtons)!=null?t:[];f=_.V(M);for(H=f.next();!H.done;H=f.next()){H=H.value;M=t=v=void 0;var h=(v=H.toggleButtonRenderer)==null?void 0:(t=v.toggleButtonSupportedData)==null?void 0:(M=t.toggleButtonIdData)==null?void 0:M.id;if(h==="TOGGLE_BUTTON_ID_TYPE_LIKE"||h==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){t=v=void 0;H=(t=_.U((v=H.toggleButtonRenderer)==
null?void 0:v.defaultServiceEndpoint,_.Ir))==null?void 0:t.commands;if(!H)break;H=_.V(H);for(v=H.next();!v.done;v=H.next())if(_.U(v.value,lyU))return!0}}return!1};
_.R.onYtServiceRequestCompleted=function(f,H){var v;(f=(v=H.data)==null?void 0:v.loggingDirectives)&&_.eDb(_.UV(),f);this.get("continuation.timedContinuationData",H.data)&&this.data&&this.data.updatedMetadataEndpoint&&(H=H.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,H.continuation),H.timeoutMs))};
_.R.computeHasDateText=function(f){return!!f&&!!f.dateText};
_.H7.Object.defineProperties(bX.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var f,H,v,t;return!((t=(f=this.data)==null?void 0:(H=f.videoActions)==null?void 0:(v=H.menuRenderer)==null?void 0:v.flexibleItems)==null||!t.length)}}});
bX.prototype.onYtServiceRequestCompleted=bX.prototype.onYtServiceRequestCompleted;bX.prototype.onYtServiceRequestSent=bX.prototype.onYtServiceRequestSent;bX.prototype.dataChanged=bX.prototype.dataChanged;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],bX.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],bX.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],bX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.Hp.YtTaskEmitterBehavior),_.N("design:type",Object)],bX.prototype,"ytTaskEmitterBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],bX.prototype,"data",void 0);_.E([_.F({computed:"computeInfoFormattedStrings(data)"}),_.N("design:type",Array)],bX.prototype,"infoFormattedStrings",void 0);
_.E([_.F({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],bX.prototype,"hasDateText",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],bX.prototype,"wrapVideoActions",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],bX.prototype,"hideSentimentBar",void 0);_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],bX.prototype,"flexMenuEnabled",null);
_.E([_.lJ("#sentiment"),_.N("design:type",Object)],bX.prototype,"sentiment",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bX.prototype,"dataChanged",null);_.E([_.sE("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.ER]),_.N("design:returntype")],bX.prototype,"onYtServiceRequestSent",null);
_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.TI]),_.N("design:returntype")],bX.prototype,"onYtServiceRequestCompleted",null);
_.G(bX,"ytd-video-primary-info-renderer",function(){if(oZM===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);oZM=f}f=oZM;return f},{mode:1});var Q2D;var iX=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return f};
_.e(iX,_.K);_.R=iX.prototype;_.R.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"}}}};
_.R.dataChanged=function(){var f;this.descriptionToggled=!((f=this.data)==null||!f.defaultExpanded);var H;this.collapsed=this.descriptionAlwaysCollapsed||!((H=this.data)==null?0:H.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.$$(110509);this.showLessClientVe=_.$$(110510);f=_.uy();H=_.Qe();f&&H&&_.AX(f,H,[this.showMoreClientVe,this.showLessClientVe])};
_.R.onYtExpanderMoreTapped=function(){var f,H=(f=this.data)==null?void 0:f.showMoreCommand;H&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(H);(f=_.uy())&&this.showMoreClientVe&&_.Ti(f,this.showMoreClientVe)};
_.R.onYtExpanderLessTapped=function(){var f=_.uy();f&&this.showLessClientVe&&_.Ti(f,this.showLessClientVe);var H;(f=(H=this.data)==null?void 0:H.showLessCommand)&&this.componentBehavior.resolveCommand(f)};
_.R.handleUpdateDateTextAction=function(f){this.data&&this.data.dateText&&this.set("data.dateText",_.U(f,_.pAo).dateText)};
_.R.handleUpdateDescriptionAction=function(f){if(f=_.U(f,_.t3n))f.isEmpty||!f.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.Qz(f.description)):this.set("data.description",f.description)};
_.R.onYtChangeEngagementPanelVisibilityAction=function(f){if(_.J("web_structured_description_show_more")||_.J("web_engagement_panel_open_description")){var H,v=(H=_.U(f,_.nRr))==null?void 0:H.targetId,t;f=((t=_.U(f,_.nRr))==null?void 0:t.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";v==="engagement-panel-structured-description"&&f&&(this.descriptionToggled=!0)}};
_.R.updateCollapsedFromBinding=function(f){this.collapsed=f.detail.value};
_.R.updateDescriptionToggledFromBinding=function(f){this.descriptionToggled=f.detail.value};
_.R.updateCanCollapseFromBinding=function(f){this.canCollapse=f.detail.value};
_.H7.Object.defineProperties(iX.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var f,H,v=(f=this.data)==null?void 0:(H=f.metadataRowContainer)==null?void 0:H.metadataRowContainerRenderer;return!!v&&!!v.rows&&v.rows.length>v.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.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}}});
iX.prototype.onYtExpanderLessTapped=iX.prototype.onYtExpanderLessTapped;iX.prototype.onYtExpanderMoreTapped=iX.prototype.onYtExpanderMoreTapped;iX.prototype.dataChanged=iX.prototype.dataChanged;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],iX.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],iX.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],iX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],iX.prototype,"componentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],iX.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Boolean)],iX.prototype,"collapsed",void 0);_.E([_.F(),_.N("design:type",Boolean)],iX.prototype,"descriptionToggled",void 0);
_.E([_.F(),_.N("design:type",Boolean)],iX.prototype,"canCollapse",void 0);_.E([_.F(),_.N("design:type",Object)],iX.prototype,"subscribeButtonData",void 0);_.E([_.F(),_.N("design:type",Number)],iX.prototype,"descriptionCollapsedHeight",void 0);_.E([_.F(),_.N("design:type",Object)],iX.prototype,"structuredDescriptionContentRenderer",void 0);_.E([_.F({value:function(){return _.J("web_watch_description_always_collapsed")}}),
_.N("design:type",Boolean)],iX.prototype,"descriptionAlwaysCollapsed",void 0);_.E([_.lJ("#description"),_.N("design:type",HTMLDivElement)],iX.prototype,"description",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],iX.prototype,"dataChanged",null);_.E([_.sE("yt-expander-more-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],iX.prototype,"onYtExpanderMoreTapped",null);
_.E([_.sE("yt-expander-less-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],iX.prototype,"onYtExpanderLessTapped",null);_.E([_.z("data.metadataRowContainer"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],iX.prototype,"metadataCollapsible",null);_.E([_.z("data","structuredDescriptionContentRenderer"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],iX.prototype,"hasInlineStructuredDescription",null);
_.E([_.z("data.attributedDescription"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],iX.prototype,"hasAttributedDescription",null);_.E([_.z("hasInlineStructuredDescription","collapsed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],iX.prototype,"loadStructuredDescription",null);_.E([_.z("data","structuredDescriptionContentRenderer","collapsed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],iX.prototype,"showInlineStructuredDescription",null);
_.E([_.z("data","hasInlineStructuredDescription","metadataCollapsible"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],iX.prototype,"descriptionAlwaysCollapsible",null);
_.G(iX,"ytd-video-secondary-info-renderer",function(){if(Q2D===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);Q2D=f}f=Q2D;return f},{mode:2});var umo;var kN=function(){return _.K.apply(this,arguments)||this};
_.e(kN,_.K);kN.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:_.J("web_modern_buttons"),forceIconButton:!_.J("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
kN.prototype.activate=function(f){f.appendTo(this.player);f.getPlayerPromise().then(function(H){H.setMinimized(!0)});
this.active=!0};
kN.prototype.deactivate=function(){var f=this.player.firstElementChild;f.getPlayerPromise().then(function(H){H.setMinimized(!1)});
this.active=!1;return f};
kN.prototype.onScrollUpTap=function(){var f=_.t8().resolve(_.fT).getCurrentPage();f&&f.setScrollTop(0)};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],kN.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],kN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],kN.prototype,"componentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],kN.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],kN.prototype,"active",void 0);
_.E([_.F({reflectToAttribute:!0,value:function(){return _.J("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.N("design:type",Boolean)],kN.prototype,"darkLaunch",void 0);_.E([_.lJ("#player"),_.N("design:type",HTMLDivElement)],kN.prototype,"player",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],kN);
_.G(kN,"ytd-miniplayer-bar-renderer",function(){if(umo!==void 0)return umo;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return umo=f},{mode:1});_.yn(_.a(function(f){var H=_.TN("script");_.K4(function(){var v;if(v=JSON)v=s24(f.data()),v=_.Hj(JSON.stringify(v).replace(/</g,"\\u003C"));var t=f.data(),M=_.fG(t.title).trim().length===0,h=!t.publishDate||t.publishDate.trim().length===0,y,m,W,I,S=!((y=t.thumbnail)==null?0:(m=y.thumbnails)==null?0:m.length)||!((W=t.thumbnail)==null?0:W.thumbnails[0].url)||((I=t.thumbnail)==null?void 0:I.thumbnails[0].url.trim().length)===0;H.value&&v&&!(M||h||S)&&_.vj(H.value,v)},"I9AhLd");
return _.O("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.O("script",{el:H,type:"application/ld+json"}))},"bl"),"player-microformat-renderer",{props:{data:_.Rm}});
}catch(e){_._DumpException(e)}
try{
var DwV,nke;_.KZ4=function(f){return f.watch.watchWindowSize};
DwV=function(f,H,v,t){if(f.isLockupToWatchTransitionEnabled){if(H){var M={};f.viewTransitionCoordinator.registerElement(H,(M["lockup-to-watch"]="player-lockup-to-watch",M["watch-next-appears"]="player-watch-next-loaded",M))}v&&(H={},f.viewTransitionCoordinator.registerElement(v,(H["lockup-to-watch"]="below-lockup-to-watch",H["watch-next-appears"]="below-watch-next-loaded",H)));t&&(v={},f.viewTransitionCoordinator.registerElement(t,(v["watch-next-appears"]="secondary-watch-next-loaded",v)))}};
_.okU=function(f){return _.yq({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:f}})};
nke=new _.Ak("webWatchNextResponseExtensionData");var Q8D=function(f){_.zO.call(this);var H=this;this.JSC$23020_watchApi=f;var v=this.JSC$23020_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){p6q(H)});
this.addOnDisposeCallback(function(){H.JSC$23020_watchApi.unsubscribeByKey(v)});
p6q(this)};
_.e(Q8D,_.zO);var p6q=function(f){var H,v,t,M;_.Y(function(h){if(h.nextAddress==1){H=f.JSC$23020_watchApi.getWatchNextResponse();if(!H)return h.return();v=_.U(H,nke);return(t=v)!=null&&t.enableCreatorChatbot?h.yield((0,_.ByN)("NSzT5"),3):h.jumpTo(0)}M=_.Xbb;M();_.Bj(h)})};var apD=function(f){_.zO.call(this);this.JSC$23024_watchApi=f;u3D(this)};
_.e(apD,_.zO);var u3D=function(f){_.Y(function(H){if(H.nextAddress==1)return H.yield(PZM(f),2);GeU(f);_.Bj(H)})},PZM=function(f){var H,v,t,M;
return _.Y(function(h){if(h.nextAddress==1)return h.yield(f.JSC$23024_watchApi.playerApi,2);H=h.yieldResult;f.JSC$23024_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){CZM(f)});
v=f.JSC$23024_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){GeU(f)});
t=function(y){f.onCueRangeEnter(y)};
H.addEventListener("onCueRangeEnter",t);M=function(y){f.onCueRangeExit(y)};
H.addEventListener("onCueRangeExit",M);f.addOnDisposeCallback(function(){f.JSC$23024_watchApi.unsubscribeByKey(v);H.removeEventListener("onCueRangeEnter",t);H.removeEventListener("onCueRangeExit",M)});
_.Bj(h)})},Eko=function(f){var H,v,t,M,h,y,m,W,I;
return(h=(H=f.contents)==null?void 0:(v=H.twoColumnWatchNextResults)==null?void 0:(t=v.results)==null?void 0:(M=t.results)==null?void 0:M.contents)==null?void 0:(y=h.find(function(S){var d,Z,l;return(d=S.itemSectionRenderer)==null?void 0:(Z=d.contents)==null?void 0:(l=Z[0])==null?void 0:l.shoppingTimelyShelfViewModel}))==null?void 0:(m=y.itemSectionRenderer)==null?void 0:(W=m.contents)==null?void 0:(I=W[0])==null?void 0:I.shoppingTimelyShelfViewModel},GeU=function(f){var H;
_.Y(function(v){if(v.nextAddress==1)return(H=f.JSC$23024_watchApi.getWatchNextResponse())?v.yield(CZM(f),2):v.return();f.shoppingTimelyShelfViewModel=Eko(H);Nu1(f);crM(f);_.Bj(v)})},Nu1=function(f){var H,v=(H=f.shoppingTimelyShelfViewModel)==null?void 0:H.offerIdToVariants;
v&&(H=v.filter(function(t){return t.key&&t.value}).map(function(t){return[t.key,
t.value]}),f.variantsMap=new Map(H))},crM=function(f){var H,v,t,M,h,y;
_.Y(function(m){if(m.nextAddress==1)return(v=(H=f.shoppingTimelyShelfViewModel)==null?void 0:H.cueRanges)?m.yield(f.JSC$23024_watchApi.playerApi,2):m.return();t=m.yieldResult;f.cueRanges=v;M=_.V(v);for(h=M.next();!h.done;h=M.next())y=h.value,y.startTime!==void 0&&y.endTime!==void 0&&y.id!==void 0&&t.addCueRange("shopping_timely_shelf"+y.id,X6q(y.startTime),X6q(y.endTime));_.Bj(m)})},X6q=function(f){return Number(f.seconds||0)+(f.nanos||0)/1E9};
apD.prototype.onCueRangeEnter=function(f){if(f.startsWith("shopping_timely_shelf")){var H=f.substring(21),v,t;f=(v=this.variantsMap)==null?void 0:(t=v.get(H))==null?void 0:t.shelf;if(_.J("web_enable_shopping_timely_shelf_client_overwrite")){var M,h,y,m,W;v=f==null?void 0:(M=f.shoppingTimelyShelfContentViewModel)==null?void 0:(h=M.button)==null?void 0:(y=h[1])==null?void 0:(m=y.buttonViewModel)==null?void 0:(W=m.onTap)==null?void 0:W.innertubeCommand;var I,S;if(v==null?0:(I=v.menuEndpoint)==null?0:
(S=I.menu)==null?0:S.menuRenderer)v.openPopupAction=v.menuEndpoint,v.openPopupAction.popup=v.openPopupAction.menu,v.openPopupAction.popup.menuPopupRenderer=v.openPopupAction.popup.menuRenderer,v.openPopupAction.popupType="DROPDOWN",delete v.menuEndpoint,delete v.openPopupAction.menu,delete v.openPopupAction.popup.menuRenderer}f&&this.JSC$23024_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",f)}};
apD.prototype.onCueRangeExit=function(f){f.startsWith("shopping_timely_shelf")&&this.JSC$23024_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{})};
var CZM=function(f){var H,v,t,M,h;return _.Y(function(y){if(y.nextAddress==1)return y.yield(f.JSC$23024_watchApi.playerApi,2);H=y.yieldResult;if(f.cueRanges)for(v=_.V(f.cueRanges),t=v.next();!t.done;t=v.next())M=t.value,M.id&&(h="shopping_timely_shelf"+M.id,H.removeCueRange(h));f.JSC$23024_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});f.shoppingTimelyShelfViewModel=void 0;f.cueRanges=void 0;f.variantsMap=void 0;_.Bj(y)})};var TuM=function(f){_.zO.call(this);var H=this;this.JSC$23031_watchApi=f;f=_.sI(_.vS(),_.SuH,function(){Ar1(H)});
this.addOnDisposeCallback(f);f=_.sI(_.vS(),_.KZ4,function(){Ar1(H)});
this.addOnDisposeCallback(f);bcL(this);ice(this);keD()};
_.e(TuM,_.zO);var bcL=function(f){var H=function(t){_.vS().dispatch(_.H0D(t.matches))},v=window.matchMedia("(max-width: "+(999+_.P$())+"px)");
v.addListener(H);f.addOnDisposeCallback(function(){v.removeListener(H)});
H(v)},ice=function(f){f.JSC$23031_watchApi.registerActionHandler("yt-window-resized",function(){keD()});
f.addOnDisposeCallback(function(){f.JSC$23031_watchApi.unregisterActionHandler("yt-window-resized")})},keD=function(){var f=_.BS();
_.vS().dispatch(_.yq({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:f.width,height:f.height}}}))},Ar1=function(f){var H;
_.Y(function(v){if(v.nextAddress==1)return v.yield(f.JSC$23031_watchApi.playerApi,2);H=v.yieldResult;H.setSize(NaN,NaN);_.Bj(v)})};var w6o=function(f){_.zO.call(this);var H=_.t8().resolve(_.jX);DwV(H,f.getElement("PLAYER_CONTAINER"),f.getElement("BELOW_THE_PLAYER"),f.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var v=f.getElement("PLAYER_CONTAINER"),t=f.getElement("BELOW_THE_PLAYER"),M=f.getElement("SECONDARY");H.isLockupToWatchTransitionEnabled&&(v&&_.uF(H.viewTransitionCoordinator,v),t&&_.uF(H.viewTransitionCoordinator,t),M&&_.uF(H.viewTransitionCoordinator,M))})};
_.e(w6o,_.zO);_.ab=function(f){_.Yh.call(this);var H=this;this.rootElement=f;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return H.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(v){H.initOrDisposeActiveModules(v)}));
this.onAttached()};
_.e(_.ab,_.Yh);_.R=_.ab.prototype;_.R.getRoot=function(){return this.rootElement};
_.R.getElement=function(f){return this.rootElement.getElement(f)};
_.R.setPlayerResponse=function(f){this.playerResponse=f;this.publish("PLAYER_RESPONSE_UPDATED",f)};
_.R.getPlayerResponse=function(){return this.playerResponse};
_.R.setWatchNextResponse=function(f){this.watchNextResponse===f?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=f,this.publish("WATCH_NEXT_RESPONSE_UPDATED",f))};
_.R.getWatchNextResponse=function(){return this.watchNextResponse};
_.R.registerActionHandler=function(f,H){var v=this;if(_.J("web_watch_controller_reg_multiple_handlers_killswitch")){var t={};_.b$(_.A7.getInstance(),(t[f]=H,t),this.getRoot())}else this.actionHandlers.has(f)||(this.actionHandlers.set(f,[]),t={},_.b$(_.A7.getInstance(),(t[f]=function(){var M=_.NA.apply(0,arguments);return(v.actionHandlers.get(f)||[]).map(function(h){return h.apply(null,_.pS(M))})},t),this.getRoot())),this.actionHandlers.get(f).push(H)};
_.R.unregisterActionHandler=function(f){if(_.J("web_watch_controller_reg_multiple_handlers_killswitch")){var H={};_.i$(_.A7.getInstance(),(H[f]=!0,H),this.getRoot())}else(H=this.actionHandlers.get(f))?(H.pop(),H.length===0&&(H={},_.i$(_.A7.getInstance(),(H[f]=!0,H),this.getRoot()),this.actionHandlers.delete(f))):_.pb(new _.e$("Attempted to unregister an action handler which is not registered.",f))};
_.R.addPageDisposeJob=function(f){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.AN(this.rootElement.pageDisposeJobs,f)};
_.R.removePageDisposeJob=function(f){this.rootElement.pageDisposeJobs&&_.iH(this.rootElement.pageDisposeJobs,f)};
_.R.dispatchEvent=function(f,H){_.YE(this.rootElement,f,H)};
_.R.provideRenderingData=function(f,H){this.rootElement.provideRenderingData(f,H)};
_.R.scrollWatchTo=function(f,H){var v;(v=this.watchScrollManager)==null||v.scrollWatchTo(f,H)};
_.R.focusOnPlayer=function(){var f=this.getElement("PLAYER");_.qV(f,function(){if(f&&f.firstElementChild){var H=f.querySelector(".html5-video-player");H&&(_.v5(_.t8().resolve(_.xK)),H.focus())}else _.pb(Error("Mo"))})};
_.R.updateCinematicFullscreenConfig=function(){if(_.J("web_cinematic_manager_redux_killswitch")){var f=!!this.rootElement.theater,H=!!this.rootElement.fullscreen,v;(v=this.watchCinematicManager)==null||_.KE(v,H,f)}};
_.R.subscribeToActiveChanged=function(f,H){H=H===void 0?!0:H;var v=_.sI(_.vS(),_.MvL,function(t){f(t)});
H&&f(_.MvL(_.vS().getState()));return v};
_.R.isActive=function(){return _.MvL(_.vS().getState())};
_.R.onAttached=function(){var f=_.J("external_fullscreen");_.J("use_unified_flag_accessor")&&(f=_.t8().resolve(_.xAW).retriever.getFlag(_.X__));(f||_.P6("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var qS4=function(f){return f.getRoot().is==="ytd-watch-flexy"||f.getRoot().is==="ytd-watch-grid"},P2=function(f){return f.getRoot().is==="ytd-watch-fixie"};
_.ab.prototype.initPersistentModules=function(){if(P2(this)||qS4(this)&&_.J("kevlar_watch_flexy_theater_manager")){var f=new _.RiV(this);_.jz(this,f)}f=new _.cm1(this);_.jz(this,f);f=new _.B2(this);_.jz(this,f);f=new _.pE(this);_.jz(this,f);f=new _.s8e(this);_.jz(this,f);f=new _.F1(this);_.jz(this,f);if(P2(this)||qS4(this)&&_.J("kevlar_watch_flexy_playlist_manager"))f=new _.lpU(this),_.jz(this,f);_.J("web_thumbnail_to_watch_transition")&&(f=new w6o(this),_.jz(this,f))};
_.ab.prototype.initOrDisposeActiveModules=function(f){f?(this.watchScrollManager=new _.uX(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.hpL(this)),_.J("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new apD(this)),this.activeModules.push(new _.mjo(this)),P2(this)&&this.activeModules.push(new TuM(this)),this.activeModules.push(new _.zpD(this)),this.activeModules.push(new _.Qh(this)),(P2(this)||_.J("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.glM(this)),this.activeModules.push(new _.$wO(this)),(P2(this)||_.J("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.rrv(this)),(P2(this)||_.J("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.lt1(this)),_.J("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.Bpo(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.J("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.Ip1(this)),
_.J("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.EmD(this)),f=_.J("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.J("kevlar_watch_flexy_comments_manager")&&!f&&this.activeModules.push(new _.uTD(this)),_.J("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.z2(this)),this.activeModules.push(new _.gmU(this)),this.activeModules.push(new _.VKe(this)),_.J("web_enable_timely_actions")&&this.activeModules.push(new _.jhq(this)),
_.J("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.GO1(this)),_.J("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.KvD(this)),_.J("web_fullscreen_components")&&this.activeModules.push(new _.jNO(this)),_.J("web_player_rtr_ctrls")&&this.activeModules.push(new _.ElD(this)),_.J("enable_creator_chatbot")&&this.activeModules.push(new Q8D(this))):(_.hx(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.ab.prototype.disposeInternal=function(){_.Yh.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.H7.Object.defineProperties(_.ab.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var HzW,Kn,vsG,tjp,hWh,RWi,MjA,Vj0;HzW=function(){var f=_.LQ();f.info||(f.info={});return f.info};
Kn=function(f){return Math.round(_.Fl()+f)};
vsG=function(){var f;if(_.J("csi_use_performance_navigation_timing")){var H,v,t,M=_.zi==null?void 0:(f=_.zi.getEntriesByType)==null?void 0:(H=f.call(_.zi,"navigation"))==null?void 0:(v=H[0])==null?void 0:(t=v.toJSON)==null?void 0:t.call(v);M?(M.requestStart=Kn(M.requestStart),M.responseEnd=Kn(M.responseEnd),M.redirectStart=Kn(M.redirectStart),M.redirectEnd=Kn(M.redirectEnd),M.domainLookupEnd=Kn(M.domainLookupEnd),M.connectStart=Kn(M.connectStart),M.connectEnd=Kn(M.connectEnd),M.responseStart=Kn(M.responseStart),
M.secureConnectionStart=Kn(M.secureConnectionStart),M.domainLookupStart=Kn(M.domainLookupStart),M.isPerformanceNavigationTiming=!0,f=M):f=_.zi.timing}else f=_.J("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.zi.timing)):_.zi.timing;return f};
tjp=function(){if(_.zi.getEntriesByType){var f=_.zi.getEntriesByType("paint");if(f=_.Gb(f,function(v){return v.name==="first-paint"}))return Kn(f.startTime)}var H;
_.J("csi_use_performance_navigation_timing")?H=_.zi.getEntriesByType("first-paint")[0].startTime:H=_.zi.timing.msFirstPaint;return H?Math.max(0,H):0};
hWh=function(){var f=window.location.protocol,H=_.zi.getEntriesByType("resource");H=_.vI(H,function(v){return v.name.indexOf(f+"//fonts.gstatic.com/s/")===0});
(H=MjA(H,function(v,t){return t.duration>v.duration?t:v}))&&H.startTime>0&&H.responseEnd>0&&(_.rj("wffs",Kn(H.startTime)),_.rj("wffe",Kn(H.responseEnd)))};
RWi=function(f,H){f=document.querySelector(f);if(!f)return!1;var v="",t=f.nodeName;t==="SCRIPT"?(v=f.src,v||(v=f.getAttribute("data-timing-href"))&&(v=window.location.protocol+v)):t==="LINK"&&(v=f.href);_.qA(document)&&f.setAttribute("nonce",_.qA(document));return v?(f=_.zi.getEntriesByName(v))&&f[0]&&(f=f[0],v=_.Fl(),_.rj("rsf_"+H,v+Math.round(f.fetchStart)),_.rj("rse_"+H,v+Math.round(f.responseEnd)),f.transferSize!==void 0&&f.transferSize===0)?!0:!1:!1};
_.DG=function(f,H){_.Cc(function(){_.BV("").info.actionType=f;H&&_.pc("TIMING_AFT_KEYS",H);_.pc("TIMING_ACTION",f);var v=_.tHe(_.a8("TIMING_INFO",{}));Object.keys(v).length>0&&_.KQ(v);v={isNavigation:!0,actionType:_.Ng5(_.a8("TIMING_ACTION"))};var t=_.a8("PREVIOUS_ACTION");t&&(v.previousAction=_.Ng5(t));if(t=_.a8("CLIENT_PROTOCOL"))v.httpProtocol=t;if(t=_.a8("CLIENT_TRANSPORT"))v.transportProtocol=t;(t=_.uy())&&t!=="UNDEFINED_CSN"&&(v.clientScreenNonce=t);t=_.v3N();if(t===1||t===-1)v.isVisible=!0;
t=_.ptv().loadType==="cold";var M=HzW();t||(t=M.yt_lt==="cold");if(t){v.loadType="cold";t=HzW();M=vsG();var h=_.Fl(),y=_.a8("CSI_START_TIMESTAMP_MILLIS",0);y>0&&!_.J("embeds_web_enable_csi_start_override_killswitch")&&(h=y);h&&(_.rj("srt",M.responseStart),t.prerender!==1&&_.iKE(h));t=tjp();t>0&&_.rj("fpt",t);t=vsG();t.isPerformanceNavigationTiming&&_.KQ({performanceNavigationTiming:!0},void 0);_.rj("nreqs",t.requestStart,void 0);_.rj("nress",t.responseStart,void 0);_.rj("nrese",t.responseEnd,void 0);
t.redirectEnd-t.redirectStart>0&&(_.rj("nrs",t.redirectStart,void 0),_.rj("nre",t.redirectEnd,void 0));t.domainLookupEnd-t.domainLookupStart>0&&(_.rj("ndnss",t.domainLookupStart,void 0),_.rj("ndnse",t.domainLookupEnd,void 0));t.connectEnd-t.connectStart>0&&(_.rj("ntcps",t.connectStart,void 0),_.rj("ntcpe",t.connectEnd,void 0));t.secureConnectionStart>=_.Fl()&&t.connectEnd-t.secureConnectionStart>0&&(_.rj("nstcps",t.secureConnectionStart,void 0),_.rj("ntcpe",t.connectEnd,void 0));_.zi&&"getEntriesByType"in
_.zi&&hWh();t=[];if(document.querySelector&&_.zi&&_.zi.getEntriesByName)for(var m in Vj0)Vj0.hasOwnProperty(m)&&(M=Vj0[m],RWi(m,M)&&t.push(M));if(t.length>0)for(v.resourceInfo=[],m=_.V(t),t=m.next();!t.done;t=m.next())v.resourceInfo.push({resourceCache:t.value})}_.KQ(v);v=_.xE();v.preLoggedGelInfos||(v.preLoggedGelInfos=[]);m=v.preLoggedGelInfos;v=_.uDH();t=void 0;for(M=0;M<m.length;M++)if(h=m[M],h.loadType){t=h.loadType;break}if(_.ptv().loadType==="cold"&&(v.loadType==="cold"||t==="cold")){t=_.QE5();
M=_.xE();M=M.gelTicks?M.gelTicks:M.gelTicks={};for(var W in t)if(!(W in M))if(typeof t[W]==="number")_.rj(W,_.DC(W));else if(_.J("log_repeated_ytcsi_ticks"))for(h=_.V(t[W]),y=h.next();!y.done;y=h.next())y=y.value,_.rj(W.slice(1),y);W={};t=!1;m=_.V(m);for(M=m.next();!M.done;M=m.next())t=M.value,_.CP(v,t),_.CP(W,t),t=!0;t&&_.KQ(W)}_.VHH(!0);W=_.a8("TIMING_ACTION");_.ES("ytglobal.timingready_")&&W&&_.S8r()&&_.RRB()&&_.f6e()})()};
MjA=function(f,H){return Array.prototype.reduce.call(f,H,{duration:0})};
Vj0={'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 yIi={};yIi.YtVisibilityRootBehavior=[_.Mev.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.Mj(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.a8("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var f=_.a8("INNERTUBE_CLIENT_NAME")!=="WEB";_.J("kevlar_use_vimio_behavior")&&f&&_.vDh()}}];_.oL={};_.oL.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(f){f.detail.contextProvider=this;f.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
yIi.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.bE();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(f){var H=this;this.pageCount+=1;_.J("kevlar_use_vimio_behavior")&&(_.a8("INNERTUBE_CLIENT_NAME")==="WEB"?_.nN.addJob(function(){H.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(f)},
loadPage_:function(f){this.data=f},
ytPageBehaviorActiveObserver_:function(f){var H=this;_.J("kevlar_use_vimio_behavior")&&(f?_.a8("INNERTUBE_CLIENT_NAME")==="WEB"?_.nN.addJob(function(){H.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(f){if(!this.setScrollTopJobId_){var H=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){H.setScrollTopJobId_=0;var v=_.t8().resolve(_.vh(_.xK));v&&_.v5(v);this.getPageScrollingElement().scrollTop=f}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.Jh(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var fQb;var rR=function(){var f=_.K.apply(this,arguments)||this;f.playerListenerConfig=null;f.actionMap={"yt-show-watch-page-survey":"openSurvey"};return f};
_.e(rR,_.K);_.R=rR.prototype;_.R.dataChanged=function(){var f=this,H=_.vx();H&&H.getPlayerPromise().then(function(t){f.maybeRemovePlayerListeners(t)});
var v=this.data&&this.data.survey;v&&((v=(v=v.singleOptionSurveyRenderer||v.checkboxSurveyRenderer||v.multiStageSurveyRenderer)&&v.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(H,v):this.openSurvey())};
_.R.triggerWatchPageSurvey=function(f,H){var v=this,t,M,h,y,m,W,I,S,d;return _.Y(function(Z){if(Z.nextAddress==1)return f?Z.yield(f.getPlayerPromise(),2):Z.return();v.player=Z.yieldResult;if(!v.player)return Z.return();t={};M=_.V(H);for(h=M.next();!h.done;h=M.next())y=h.value,m=_.V(v.createEventListenerPair(y)),W=m.next().value,I=m.next().value,S=W,d=I,S&&d&&(t[S]=d,v.ytPlayerListenerBehavior.listenToPlayerEvent(v.player,S,d));v.playerListenerConfig=t;_.Bj(Z)})};
_.R.createEventListenerPair=function(f){var H=f.playbackEventTrigger;return H?this.handlePlaybackTrigger(H):(f=f.watchTimeTrigger)?this.handleWatchTimeTrigger(f):[void 0,void 0]};
_.R.handleWatchTimeTrigger=function(f){var H=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var v=f.videoWatchFraction,t=f.watchTimeSec;return t&&v?["onVideoProgress",function(){H.player&&H.isWatchTimeConditionMet(H.player,v,t)&&H.showSurvey()}]:[void 0,
void 0]};
_.R.isWatchTimeConditionMet=function(f,H,v){var t=f.getProgressState(),M=t.current-this.lastKnownPlaybackPosition;M<5&&(this.accumulatedMediaTime+=M);this.lastKnownPlaybackPosition=t.current;t=Math.round(this.accumulatedMediaTime/t.duration*1E3)/1E3;return f.getPresentingPlayerType&&f.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>v||t>H)};
_.R.handlePlaybackTrigger=function(f){var H=this;f=f.playbackEvent;if(f==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var v="onStateChange";var t=function(M){M===0&&H.showSurvey()}}else f==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(v="onVideoProgress",t=function(M){H.player&&H.player.getPresentingPlayerType&&H.player.getPresentingPlayerType()===1&&M&&H.showSurvey()}):f==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(v="onAdEnd",t=this.showSurvey);
return[v,t]};
_.R.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.R.openSurvey=function(){var f=this,H=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.eLb(!!H));_.nN.addJob(function(){f.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:H}})},0,0)};
_.R.maybeRemovePlayerListeners=function(f){if(this.playerListenerConfig){for(var H=_.V(Object.keys(this.playerListenerConfig)),v=H.next();!v.done;v=H.next())v=v.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(f,v,this.playerListenerConfig[v]);this.playerListenerConfig=null}};
rR.prototype.dataChanged=rR.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],rR.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.fm),_.N("design:type",Object)],rR.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.B(_.im.YtPlayerListenerBehavior),_.N("design:type",_.kI)],rR.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],rR.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.B(_.um),_.N("design:type",Object)],rR.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],rR.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],rR.prototype,"playerListenerConfig",void 0);_.E([_.F({value:0}),_.N("design:type",Number)],rR.prototype,"lastKnownPlaybackPosition",void 0);_.E([_.F({value:0}),_.N("design:type",Number)],rR.prototype,"accumulatedMediaTime",void 0);_.E([_.F(),_.N("design:type",Object)],rR.prototype,"player",void 0);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rR.prototype,"dataChanged",null);_.E([_.u({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],rR);
_.G(rR,"ytd-survey-trigger-renderer",function(){if(fQb!==void 0)return fQb;var f=document.createElement("template");_.x(f,"\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");f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return fQb=f},{mode:1});
}catch(e){_._DumpException(e)}
try{
var a_O=new _.Ak("promotedSparklesWebRenderer");var PHO=new _.Ak("relatedChipCommand");var GbD;var CHM;var Sj=function(){return _.K.apply(this,arguments)||this};
_.e(Sj,_.K);Sj.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Sj.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Sj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Sj.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],Sj);
_.G(Sj,"ytd-compact-tvfilm-entry-point-renderer",function(){if(CHM!==void 0)return CHM;var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return CHM=f},{mode:1});var Ev1;var NBM;var cN1;var d7=function(){return _.K.apply(this,arguments)||this};
_.e(d7,_.K);d7.prototype.ready=function(){this.initializeDefs()};
d7.prototype.initializeDefs=function(){var f=this.meta.byKey("yt-icons"),H=_.mF(f).querySelector("#star"),v=_.mF(f).querySelector("#star_half");f=_.mF(f).querySelector("#star_border");H&&this.defs.appendChild(H.cloneNode(!0));v&&this.defs.appendChild(v.cloneNode(!0));f&&this.defs.appendChild(f.cloneNode(!0))};
d7.prototype.percentChanged=function(){for(var f=this.rating;f.firstChild;)f.removeChild(f.firstChild);var H=Math.round(this.percent/10);f=Math.floor(H/2);H%=2;var v=5-f-H;this.appendStars("star",f,0);this.appendStars("star_half",H,f);this.appendStars("star_border",v,f+H)};
d7.prototype.appendStars=function(f,H,v){for(var t=0;t<H;t++){var M=(18+this.spacing)*(t+v),h=document.createElementNS("http://www.w3.org/2000/svg","use");_.b40(h,"#"+f);h.setAttribute("x",""+M);h.setAttribute("y","0");this.rating.appendChild(h)}};
d7.prototype.percentChanged=d7.prototype.percentChanged;_.E([_.lJ("#defs"),_.N("design:type",HTMLElement)],d7.prototype,"defs",void 0);_.E([_.lJ("#rating"),_.N("design:type",HTMLElement)],d7.prototype,"rating",void 0);_.E([_.F(),_.N("design:type",Number)],d7.prototype,"percent",void 0);_.E([_.F({value:6}),_.N("design:type",Number)],d7.prototype,"spacing",void 0);_.E([_.F({value:_.s3.create("iron-meta",{type:"iconset"})}),_.N("design:type",_.lp)],d7.prototype,"meta",void 0);
_.E([_.Zw("percent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],d7.prototype,"percentChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-ratings"})],d7);
_.G(d7,"ytd-ratings",function(){if(cN1!==void 0)return cN1;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return cN1=f},{mode:1});var jj=function(){return _.K.apply(this,arguments)||this};
_.e(jj,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],jj.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],jj.prototype,"data",void 0);_.E([_.u({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],jj);
_.G(jj,"ytd-offer-review-renderer",function(){if(NBM!==void 0)return NBM;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return NBM=f},{mode:1});var sK=function(){var f=_.K.apply(this,arguments)||this;f.badges=[{textBadge:{label:_.qO("CC")}}];return f};
_.e(sK,_.K);_.R=sK.prototype;_.R.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.R.dataChanged=function(){var f=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(f&&f.commandMetadata&&_.U(f.commandMetadata,_.eA)&&_.U(f.commandMetadata,_.eA).fireAutomatically)_.t8().resolve(_.MJ).resolveCommand(f,{form:{element:this.hostElement}});else{var H;f&&((H=_.U(f,_.eA))==null?0:H.fireAutomatically)&&_.t8().resolve(_.MJ).resolveCommand(f,{form:{element:this.hostElement}})}};
_.R.isEmptyContent=function(f){return this.isStorefrontEntryPointEmpty(f)&&this.shouldHideOfferModule(f)};
_.R.isStorefrontEntryPointEmpty=function(f){return!f||!f.storefrontEntryPoint};
_.R.shouldHideOfferModule=function(f){return!!f.hideVideoDetails};
_.R.isOfferModuleNavigationInactive=function(f){return!f.navigationEndpoint&&!f.serviceEndpoint};
_.R.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.t8().resolve(_.MJ).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
sK.prototype.dataChanged=sK.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],sK.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],sK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],sK.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.N("design:type",Boolean)],sK.prototype,"hidden",void 0);
_.E([_.F(),_.N("design:type",Object)],sK.prototype,"badges",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sK.prototype,"dataChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],sK);
_.G(sK,"ytd-movie-offer-module-renderer",function(){if(Ev1!==void 0)return Ev1;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Ev1=f},{mode:1});var XRL;var ZQ=function(){return _.K.apply(this,arguments)||this};
_.e(ZQ,_.K);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],ZQ.prototype,"componentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],ZQ.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],ZQ);
_.G(ZQ,"ytd-media-masthead-renderer",function(){if(XRL!==void 0)return XRL;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return XRL=f},{mode:1});var AN1;_.yn(_.een,"course-metadata-view-model",{props:{data:_.Rm,isOverlay:_.Rm}});var JI=function(){var f=_.K.apply(this,arguments)||this;f.isMetadataVisible=!1;f.modernPanels=_.J("kevlar_watch_modern_panels");f.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return f};
_.e(JI,_.K);_.R=JI.prototype;
_.R.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"}}}}};
_.R.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.R.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.R.expanderChanged=function(){var f;if((f=this.data)==null?0:f.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.R.isExpandButtonToggled=function(){var f,H;return(H=_.U((f=this.data)==null?void 0:f.expandMetadataButton,_.G3))==null?void 0:H.isToggled};
_.R.onVisibilityButtonClick=function(){var f;if((f=this.data)==null?0:f.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.R.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
JI.prototype.expanderChanged=JI.prototype.expanderChanged;JI.prototype.dataChanged=JI.prototype.dataChanged;JI.prototype.descriptionChanged=JI.prototype.descriptionChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],JI.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],JI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B([_.dt.YtActionHandlerBehavior]),_.N("design:type",Object)],JI.prototype,"actionHandlerBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],JI.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],JI.prototype,"isMetadataVisible",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],JI.prototype,"modernPanels",void 0);_.E([_.lJ("#expander"),_.N("design:type",Object)],JI.prototype,"expander",void 0);_.E([_.Zw("data.description"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],JI.prototype,"descriptionChanged",null);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],JI.prototype,"dataChanged",null);_.E([_.Zw("isMetadataVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],JI.prototype,"expanderChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],JI);
_.G(JI,"ytd-tvfilm-offer-module-renderer",function(){if(AN1!==void 0)return AN1;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return AN1=f},{mode:2});var bgA;var li=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return f};
_.e(li,_.K);li.prototype.dataChanged=function(){this.hostElement.hidden=!1};
li.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
li.prototype.onThumbnailTap=function(f){this.data&&this.data.serviceEndpoint&&(_.t8().resolve(_.MJ).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),f.stopPropagation())};
li.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
li.prototype.dataChanged=li.prototype.dataChanged;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],li.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],li.prototype,"rendererBehaviors",void 0);_.E([_.B([_.dt.YtActionHandlerBehavior]),_.N("design:type",Object)],li.prototype,"actionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],li.prototype,"data",void 0);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],li.prototype,"dataChanged",null);_.E([_.u({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],li);
_.G(li,"ytd-unlimited-offer-module-renderer",function(){if(bgA!==void 0)return bgA;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return bgA=f},{mode:1});var kbo;var TBD;var UK=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return f};
_.e(UK,_.K);UK.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
UK.prototype.handleRelatedChipCommand=function(f){f=_.U(f,PHO);var H=f.contents;H?_.$E(this.hostElement,"yt-item-section-replace-action",[H,f.targetSectionIdentifier]):_.$E(this.hostElement,"yt-item-section-continuation-action",[f.continuationData,f.targetSectionIdentifier])};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],UK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],UK.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],UK.prototype,"actionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],UK.prototype,"data",void 0);_.E([_.GW({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],UK);
_.G(UK,"yt-related-chip-cloud-renderer",function(){if(TBD===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;kbo===void 0&&(kbo=document.createElement("template"));var t=kbo;v.call(H,t.content.cloneNode(!0),f.content.firstChild);TBD=f}f=TBD;return f},{mode:2});var ej=function(){var f=_.K.apply(this,arguments)||this;f.isTwoColumns=!0;f.hideOfferModules=!1;f.watchFeedBigThumbs=_.J("kevlar_watch_feed_big_thumbs");f.watchFeedBigThumbsOnLockup=_.J("web_watch_next_big_thumbs");f.watchNextGridHideChips=_.J("kevlar_watch_grid_hide_chips");f.eligibleToSwitchToGrid=_.J("web_watch_eligible_to_switch_to_grid");f.disableShortsShelfHeightOverride=_.J("web_shorts_wn_shelf_ratio_tuning");f.isWatchNextGrid=!1;f.reuseComponents=!_.J("kevlar_watch_grid");f.nextContinuation=
{continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return f};
_.e(ej,_.K);_.R=ej.prototype;
_.R.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:!_.J("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}}};
_.R.getItemsPath=function(){return"data.results"};
_.R.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.R.created=function(){this.ytLazyListBehavior.initialCount=1};
_.R.ready=function(){_.Sr(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%"})};
_.R.resultsChanged=function(){if(this.data&&this.data.results){for(var f=this.data.results,H=null,v=null,t=0;t<f.length;t++)f[t].relatedChipCloudRenderer?H=f[t].relatedChipCloudRenderer:f[t].itemSectionRenderer&&(v=f[t].itemSectionRenderer);if(H&&v)for(this.set("data.continuations",[]),f=_.U(H.content,_.rcg).chips,H=0;H<f.length;H++)if(t=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",f[H]),t.loadCached||!t.contents){t.contents=v.contents;break}}};
_.R.dataChanged=function(){var f=this,H;if((H=this.data)!=null&&H.results&&this.hasAllowedInstreamAd(this.playerData)){if(H=this.data.results.filter(function(m){return!!m.promotedSparklesWebRenderer})){for(var v=0;v<H.length;v++){var t=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",H[v]);
if(t)for(var M=0;M<t.length;M++)t[M]&&t[M].baseUrl&&_.c8(t[M].baseUrl)}this.set("data.results",this.data.results.filter(function(m){return!m.promotedSparklesWebRenderer}))}if(H=this.data.results.filter(function(m){return!!f.getSparklesAd(m)})){H=_.V(H);
for(M=H.next();!M.done;M=H.next())if(t=v=void 0,M=(v=this.getSparklesAd(M.value))==null?void 0:(t=v.errorCommand)==null?void 0:t.loggingUrls)for(v=_.V(M),t=v.next();!t.done;t=v.next())(t=t.value)&&t.baseUrl&&_.c8(t.baseUrl);var h,y;this.set("data.results",(h=this.data)==null?void 0:(y=h.results)==null?void 0:y.filter(function(m){return!m.adSlotRenderer}))}}};
_.R.getSparklesAd=function(f){var H,v;f=_.U((H=f.adSlotRenderer)==null?void 0:(v=H.fulfillmentContent)==null?void 0:v.fulfilledLayout,_.Dtn);return _.U(f==null?void 0:f.renderingContent,a_O)};
_.R.hasAllowedInstreamAd=function(f){f=this.get("adPlacements",f)||[];for(var H=0;H<f.length;H++){var v=this.get("adPlacementRenderer.config.adPlacementConfig",f[H]);if(v&&v.suppressDisplayAd)return!0}return!1};
_.R.computeHideUnlimitedOfferModule=function(f,H){return f&&f.offerModule&&H&&f.offerModule.unlimitedOfferModuleRenderer&&f.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(H)?!0:!1};
_.R.hideUnlimitedOfferModuleChanged=function(){var f=_.mF(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");f&&(f.hidden=this.hideUnlimitedOfferModule)};
_.R.updateLockupContainerTypes=function(f){if(this.eligibleToSwitchToGrid){var H;(H=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||H.forEach(function(v){v.containerType=f})}};
_.R.computeHideTvfilmOfferModule=function(f,H){var v,t;return!!((f==null?0:(v=f.offerModule)==null?0:(t=v.tvfilmOfferModuleRenderer)==null?0:t.clientShouldSuppressIfCompanionAdDisplayed)&&H&&this.hasCompanionAds(H))};
_.R.hideTvfilmOfferModuleChanged=function(){var f=_.mF(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");f&&(f.hidden=this.hideTvfilmOfferModule)};
_.R.hasCompanionAds=function(f){f=this.get("adPlacements",f)||[];for(var H=0;H<f.length;H++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",f[H]))return!0;var v=void 0,t=void 0,M=void 0;if(!_.J("web_watch_top_banner_companion_check_killswitch")&&((v=f[H])==null?0:(t=v.adPlacementRenderer)==null?0:(M=t.renderer)==null?0:M.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.R.hasSuppressedResults=function(f){return f==null?!0:f.filter(function(H){return!H.continuationItemRenderer&&!H.compactPromotedVideoRenderer&&!H.promotedSparklesWebRenderer}).length===0};
_.R.computeShowButton=function(f,H){return this.isWatchNextGrid?f:f||this.hasSuppressedResults(H)};
_.R.showButtonChanged=function(){if(this.isWatchNextGrid){var f=_.mF(this.hostElement).querySelector("ytd-rich-grid-renderer");f&&this.showButton!==null&&(f.continuationShowButton=this.showButton)}else{f=_.mF(this.hostElement).querySelector("yt-next-continuation");var H=_.mF(this.hostElement).querySelector("ytd-continuation-item-renderer"),v=_.mF(this.hostElement).querySelector("ytd-item-section-renderer");f&&(f.showButton=this.showButton);H&&(H.showButton=this.showButton);v&&(v.continuationShowButton=
this.showButton)}};
_.R.continuationTap=function(f){var H;if(((H=this.data)==null?void 0:H.continuations)!=null&&f.target.tagName==="TP-YT-PAPER-BUTTON")for(f=this.data.continuations,H=0;H<f.length;H++)f[H].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(f[H].nextContinuationData||{})};
_.R.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.bM("shown-items-changed",this.shownItems))};
_.H7.Object.defineProperties(ej.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 f;return!((f=this.shownItems)==null||!f.some(function(H){return!!H.lockupViewModel||H.compactVideoRenderer}))}}});
ej.prototype.shownItemsChangedForBinding=ej.prototype.shownItemsChangedForBinding;ej.prototype.showButtonChanged=ej.prototype.showButtonChanged;ej.prototype.hideTvfilmOfferModuleChanged=ej.prototype.hideTvfilmOfferModuleChanged;ej.prototype.updateLockupContainerTypes=ej.prototype.updateLockupContainerTypes;ej.prototype.hideUnlimitedOfferModuleChanged=ej.prototype.hideUnlimitedOfferModuleChanged;ej.prototype.dataChanged=ej.prototype.dataChanged;ej.prototype.resultsChanged=ej.prototype.resultsChanged;
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ej.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],ej.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.h3.YtLazyListBehavior),_.N("design:type",Object)],ej.prototype,"ytLazyListBehavior",void 0);_.E([_.B(_.N3.YtNextContinuationBehavior),_.N("design:type",Object)],ej.prototype,"ytNextContinuationBehavior",void 0);
_.E([_.B(_.E_),_.N("design:type",Object)],ej.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],ej.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],ej.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],ej.prototype,"playerData",void 0);_.E([_.F({value:!0}),_.N("design:type",Boolean)],ej.prototype,"autoFill",void 0);_.E([_.F({value:60}),_.N("design:type",Number)],ej.prototype,"targetFramerate",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],ej.prototype,"isTwoColumns",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],ej.prototype,"hideOfferModules",void 0);_.E([_.F(),_.N("design:type",Object)],ej.prototype,"shownItems",void 0);_.E([_.F({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.N("design:type",Boolean)],ej.prototype,"hideUnlimitedOfferModule",void 0);
_.E([_.F({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.N("design:type",Boolean)],ej.prototype,"hideTvfilmOfferModule",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],ej.prototype,"watchFeedBigThumbs",void 0);_.E([_.F(),_.N("design:type",Object)],ej.prototype,"watchFeedBigThumbsOnLockup",void 0);_.E([_.F(),_.N("design:type",Object)],ej.prototype,"watchNextGridHideChips",void 0);_.E([_.F(),_.N("design:type",Object)],ej.prototype,"eligibleToSwitchToGrid",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],ej.prototype,"disableShortsShelfHeightOverride",void 0);_.E([_.F({selector:_.Qn,reflectToAttribute:!0}),_.N("design:type",Object)],ej.prototype,"isGridViewEnabled",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],ej.prototype,"showMoreButton",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],ej.prototype,"isWatchNextGrid",void 0);
_.E([_.F({computed:"computeShowButton(showMoreButton, data.results)"}),_.N("design:type",Boolean)],ej.prototype,"showButton",void 0);_.E([_.xV("data.results.*"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ej.prototype,"resultsChanged",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ej.prototype,"dataChanged",null);
_.E([_.Zw("hideUnlimitedOfferModule"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ej.prototype,"hideUnlimitedOfferModuleChanged",null);_.E([_.z("isGridViewEnabled","containsLockups","data"),_.F({reflectToAttribute:!0}),_.N("design:type",Number),_.N("design:paramtypes",[])],ej.prototype,"lockupContainerType",null);
_.E([_.Zw("lockupContainerType","data"),_.N("design:type",Function),_.N("design:paramtypes",[Number]),_.N("design:returntype")],ej.prototype,"updateLockupContainerTypes",null);_.E([_.Zw("hideTvfilmOfferModule"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ej.prototype,"hideTvfilmOfferModuleChanged",null);_.E([_.Zw("showButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ej.prototype,"showButtonChanged",null);
_.E([_.Zw("shownItems"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ej.prototype,"shownItemsChangedForBinding",null);_.E([_.z("shownItems"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ej.prototype,"containsLockups",null);
_.G(ej,"ytd-watch-next-secondary-results-renderer",function(){if(GbD===void 0){var f=document.createElement("template");_.x(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" hidden="[[hideOfferModules]]" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);GbD=f}f=GbD;return f},{mode:1});
}catch(e){_._DumpException(e)}
try{
var NVr=new _.Ak("replaceFeedContentAction");var c4p;var Xyp;var l8=function(){return _.K.apply(this,arguments)||this};
_.e(l8,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],l8.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],l8.prototype,"data",void 0);_.E([_.u({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],l8);
_.G(l8,"ytd-sub-feed-option-renderer",function(){if(Xyp!==void 0)return Xyp;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Xyp=f},{mode:1});var A4t;var Ud=function(){return _.K.apply(this,arguments)||this};
_.e(Ud,_.K);Ud.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Ud.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Ud.prototype,"ytRendererStamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Ud.prototype,"data",void 0);_.E([_.u({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],Ud);
_.G(Ud,"ytd-sub-feed-selector-renderer",function(){if(A4t!==void 0)return A4t;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return A4t=f},{mode:1});var e9=function(){return _.K.apply(this,arguments)||this};
_.e(e9,_.K);
e9.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}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],e9.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],e9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],e9.prototype,"data",void 0);_.E([_.u({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],e9);
_.G(e9,"ytd-browse-feed-actions-renderer",function(){if(c4p!==void 0)return c4p;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return c4p=f},{mode:1});var btW;var itt;var Ln=function(){return _.K.apply(this,arguments)||this};
_.e(Ln,_.K);Ln.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Ln.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Ln.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Ln.prototype,"data",void 0);_.E([_.u({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],Ln);
_.G(Ln,"ytd-mini-channel-renderer",function(){if(itt!==void 0)return itt;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return itt=f},{mode:1});var kSG;var xj=function(){return _.K.apply(this,arguments)||this};
_.e(xj,_.K);xj.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],xj.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],xj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],xj.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],xj);
_.G(xj,"ytd-vertical-channel-section-renderer",function(){if(kSG!==void 0)return kSG;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return kSG=f},{mode:1});var Be=function(){return _.K.apply(this,arguments)||this};
_.e(Be,_.K);Be.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Be.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Be.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Be.prototype,"data",void 0);_.E([_.u({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],Be);
_.G(Be,"ytd-browse-secondary-contents-renderer",function(){if(btW!==void 0)return btW;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);
return btW=f},{mode:1});var TVb;var za=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};f.notActive=!1;f.isConstrainedList=!1;return f};
_.e(za,_.K);_.R=za.prototype;
_.R.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(f){var H;return(f==null?void 0:(H=f.webComponentHint)==null?void 0:H.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":
"ytd-section-list-renderer"}}}},
"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.R.getPath=function(f,H){var v="data.tabs.#"+H+".";f.tabs[H].tabRenderer?v+="tabRenderer.":f.tabs[H].expandableTabRenderer&&(v+="expandableTabRenderer.");return v+"content.sectionListRenderer"};
_.R.computeDisplayedContent=function(f){this.unlinkPaths("content");if(f&&f.tabs)for(var H=f.tabs.length,v=0;v<H;v++){var t=f.tabs[v].tabRenderer||f.tabs[v].expandableTabRenderer;if(t.selected&&t.content)return this.linkPaths("content",this.getPath(f,v)),t.content}return null};
_.R.computeHasSecondaryColumnData=function(f){return!!f&&!!f.secondaryContents};
_.R.onRetrieveLocation=function(f,H){H.locationRetrieved(H.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);f.stopPropagation()};
_.R.onYtServiceRequestSent=function(f,H){_.J("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(H)};
_.R.onYtServiceRequestCompleted=function(f,H){_.J("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(H)};
_.R.onReplaceFeedContentAction=function(f){if(!_.J("replace_feed_content_action_killswitch")&&!this.notActive){var H;(f=(H=_.U(f,NVr))==null?void 0:H.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(f)}};
_.R.handleServiceRequestActions=function(f){if(f=f.actions){f=_.V(f);for(var H=f.next();!H.done;H=f.next()){H=H.value;var v=void 0;((v=_.U(H,NVr))==null?0:v.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.U(H,NVr).items)}}};
za.prototype.onYtServiceRequestCompleted=za.prototype.onYtServiceRequestCompleted;za.prototype.onYtServiceRequestSent=za.prototype.onYtServiceRequestSent;za.prototype.onRetrieveLocation=za.prototype.onRetrieveLocation;_.E([_.B(_.Cm),_.N("design:type",Object)],za.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],za.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],za.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],za.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],za.prototype,"data",void 0);_.E([_.F({computed:"computeDisplayedContent(data)"}),_.N("design:type",Object)],za.prototype,"content",void 0);
_.E([_.F({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],za.prototype,"hasSecondaryColumnData",void 0);_.E([_.F({value:function(){return window.outerHeight>1024?3:2}}),
_.N("design:type",Number)],za.prototype,"initialCount",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],za.prototype,"pageSubtype",void 0);_.E([_.lJ("ytd-section-list-renderer"),_.N("design:type",Object)],za.prototype,"listRenderer",void 0);_.E([_.F(),_.N("design:type",Object)],za.prototype,"notActive",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],za.prototype,"isConstrainedList",void 0);
_.E([_.F(),_.N("design:type",String)],za.prototype,"responsiveSizing",void 0);_.E([_.sE("yt-retrieve-location"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],za.prototype,"onRetrieveLocation",null);_.E([_.sE("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.ER]),_.N("design:returntype")],za.prototype,"onYtServiceRequestSent",null);
_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.TI]),_.N("design:returntype")],za.prototype,"onYtServiceRequestCompleted",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],za);
_.G(za,"ytd-two-column-browse-results-renderer",function(){if(TVb!==void 0)return TVb;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return TVb=f},{mode:2});
}catch(e){_._DumpException(e)}
try{
var ayv=function(f){if((f==null?void 0:f.value)===void 0||f==null||!f.unit)return"initial";a:{switch(f.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var H="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":H="%";break a}H=void 0}return H?""+f.value+H:"initial"},Pdv=new _.Ak("shoppingContentLineItemViewModel");var GEU=_.a(function(f){var H=_.tV(f,{}).data;return _.O("yt-shopping-content-line-item-view-model",{class:_.S2("ytShoppingContentLineItemViewModelHost")},_.O(_.iq,{text:function(){var v;return(v=H().text)==null?void 0:v.attributedString}}))},"cl");var CdO=_.a(function(f){f=_.tV(f,{});var H=f.data;return _.O("yt-shopping-content-line-view-model",{class:_.S2("ytShoppingContentLineViewModelHost",f.className),style:_.ZE({"--shopping-content-line-gap":function(){return H().itemGap?H().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return H().lineHeight?H().lineHeight+"px":void 0}})},_.O(_.eK,{each:function(){return(H().items||[]).map(function(v){return _.U(v,Pdv)}).filter(function(v){return!!v})}},function(v){return _.O(GEU,{data:v})}))},"dl");_.yn(_.a(function(f){var H=_.tV(f,{}).data,v=function(){var t;return((t=H().image)==null?void 0:t.height)||40};
return _.O("yt-shopping-timely-shelf-content-view-model",{el:_.tE(_.nT(function(){var t;return(t=H())==null?void 0:t.rendererContext},void 0,void 0,["BUTTON".toString(),
"A".toString()])),class:_.S2("ytShoppingTimelyShelfContentViewModelHost"),style:_.ZE({"--shopping-timely-shelf-content-padding-top":function(){var t;return ayv((t=H().padding)==null?void 0:t.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var t;return ayv((t=H().padding)==null?void 0:t.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var t;return ayv((t=H().padding)==null?void 0:t.start)},
"--shopping-timely-shelf-content-padding-end":function(){var t;return ayv((t=H().padding)==null?void 0:t.end)}})},_.O(_.g,{cond:function(){var t;
return(t=H().image)==null?void 0:t.image},
then:function(t){return _.O(_.Hn,{preserveHeight:!0,preserveWidth:!0,height:v,data:t,alt:"",className:"ytShoppingTimelyShelfContentViewModelImage"})}}),_.O(_.Jj,{data:function(){return H().avatar}},{avatarViewModel:_.K5}),_.O("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.O(_.Jj,{data:function(){return H().line1}},{shoppingContentLineViewModel:function(t){return _.O(CdO,{data:t.data})}}),_.O(_.Jj,{data:function(){return H().line2}},{shoppingContentLineViewModel:function(t){return _.O(CdO,
{data:t.data})}})),_.O("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.O(_.eK,{each:function(){var t;
return(t=H().button)!=null?t:[]}},function(t){return _.O(_.Jj,{data:function(){return t}},{buttonViewModel:_.Wp})})))},"el"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.ki}});_.EZO={};
_.EZO.YtdWatchBehavior=[_.k.YtRendererBehavior,_.im.YtPlayerListenerBehavior,_.h$.YtRendererstamperBehavior,_.dt.YtActionHandlerBehavior,_.oL.YtPageBehavior,_.S3.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 _.P6("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.J("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("full_bleed_single_column_default_player")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.P6("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerUnavailableFixedVisibility:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("web_watch_error_screen_fix")}},
playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,
value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isTwoColumnsInitialized:{type:Boolean,
value:!1},isSingleColumn:{type:Boolean,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,
value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.J("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 _.VQ("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.VQ("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.J("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.J("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.J("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("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 _.J("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.J("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.J("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("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 _.J("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("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 _.J("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var f={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:_.EX(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.EX(["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"||_.J("swa_prov_panels_ks")?f.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(f.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},f.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return f},
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 f=this;this.watchController=void 0;this.pageDisposeJobs=[function(){f.showMetadataPlaceholder_()},
function(){_.J("web_watch_dont_clear_comments")||f.clearComments_()},
function(){f.clearPlayerAds_()},
function(){f.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.J("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.J("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.evo(function(){return _.Hx(f)},this.hostElement);
this.pageDisposeJobs.push(function(){f.youThereManager_.reset()});
_.J("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){f.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.hH;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;_.J("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));_.J("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.jr(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(f){f&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:f}),f.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(f){_.J("kevlar_watch_flexy_theater_manager")&&(this.theater=f,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(f){!_.J("kevlar_watch_while_v2")&&!_.J("web_watch_pip")||f||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(f){this.active!==void 0&&(this.fullscreen=f,_.J("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(f){this.active!==void 0&&(_.YE(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.J("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.J("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(f>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(f){this.initCsi_();this.updatePageData_(f)},
updatePageData_:function(f){var H=this;if(f)if(this.data===f){this.onPageLoadWithSameData_();var v;(v=this.watchController)==null||v.setWatchNextResponse(this.data)}else this.data=f;this.playlist&&_.nQ({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.u0("nw");this.loading=!1;_.Lb(_.nN,function(){H.initDclkstatus_();var t,M=((t=H.player)==null?void 0:t.getVideoData().cpn)||"";_.mJ1(function(h,y){_.DVx(h,y,M)})})},
onPageLoadWithSameData_:function(){_.J("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 f=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!f);this.set("loadingData.playlistLoading",f&&f!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),f=this.watchNextSkeletonEl_.firstElementChild;f;)f.classList.remove("hidden"),f=f.nextElementSibling;if(_.J("kevlar_watch_frame0_loading_state")){var H,v,t;f=(H=this.loadingData)==null?void 0:(v=H.endpoint)==null?void 0:(t=v.watchEndpoint)==null?void 0:t.videoId;var M;f&&(M="https://i.ytimg.com/vi/"+f+"/frame0.jpg");_.mF(this.hostElement).querySelector("#player").style.backgroundImage=M?"url("+M+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var f=_.mF(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&f&&(f.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var H,v;(v=(H=this.watchMetadata).updateSentimentBarWidth)==
null||v.call(H);var t,M;(M=(t=this.watchMetadata).resize)==null||M.call(t)}_.J("kevlar_watch_frame0_loading_state")&&(_.mF(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(f){var H=_.mF(this.hostElement).querySelector(f);H?_.VZ(H,!1):_.pb(new _.e$("Overscroll monitor not found for component: ",f))},
removeSplitScrollMouseTrap:function(f){var H=_.mF(this.hostElement).querySelector(f);H?_.yZ(H):_.pb(new _.e$("Disposal component for  overscroll monitoring not found: ",f))},
onLoadingChanged_:function(f){f?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.J("web_thumbnail_to_watch_transition")&&!_.iSW||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.J("web_thumbnail_to_watch_transition")&&!_.iSW||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(f){var H=this;f?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.nN.addLowPriorityJob(function(){H.onWindowResized_(_.BS(!0))})},
updateTheaterModeState_:function(f){if(!_.J("kevlar_watch_flexy_theater_manager")){f=f||this.fullWindowMode_;if(this.theater!==void 0||f)this.theater=f;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();f&&_.y9o()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();_.J("web_watch_error_screen_fix")&&this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var f=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.J("external_fullscreen")&&this.fullscreen&&(f=!0);_.J("web_watch_error_screen_fix")&&(f=this.fullBleedPlayer);f=f?_.mF(this.hostElement).querySelector("#player-full-bleed-container"):_.mF(this.hostElement).querySelector("#player-container-inner");var H=this.getPlayerContainer(),v=_.J("kevlar_watch_while_v2")||_.J("web_watch_pip");H.parentElement!==f&&(v&&this.isMiniplayerActive()?
this.deactivateMiniplayerAndResetPlayer():(_.Hx(this).appendTo(f,H),_.J("web_watch_error_screen_fix")||f.appendChild(_.mF(this.hostElement).querySelector("#error-screen"))))},
updateErrorScreenLocation:function(){var f=_.mF(this.hostElement).querySelector("#error-screen"),H=this.fullBleedPlayer?_.mF(this.hostElement).querySelector("#player-full-bleed-container"):_.mF(this.hostElement).querySelector("#player");f.parentElement!==H&&H.appendChild(f)},
deactivateMiniplayerAndResetPlayer:function(){var f=this;return _.Y(function(H){if(H.nextAddress==1)return H.yield(_.t8().resolve(_.o0).deactivate(),2);f.updatePlayerLocation();_.Bj(H)})},
updateCinematicsLocation:function(){var f=this.getElement("CINEMATICS");if(f){var H=this.getCinematicsLocationContainer();f.parentElement!==H&&H.appendChild(f);var v;(v=this.watchController)==null||v.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.enableFullBleedSingleColumnDefaultPlayer&&this.isSingleColumn)?_.mF(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.mF(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(f,H,v){var t=document.documentElement.hasAttribute("dark"),M=t&&_.J("web_cinematic_theater_mode"),h=t&&_.J("web_cinematic_fullscreen");t=!t&&this.cinematicLightTheme;return v||f&&M||H&&h||(H||f)&&t},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var f=this,H;(H=this.watchController)==null||H.setWatchNextResponse(this.data);_.J("kevlar_watch_flexy_comments_manager")||this.initComments_();_.J("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.t8().resolve(_.u3).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,_.J("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.nN.addLowPriorityJob(function(){_.$E(f.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.J("web_watch_start_chat_in_theater_mode")){var v,t,M;if((v=this.data)==null?0:(t=v.contents)==null?0:(M=t.twoColumnWatchNextResults)==null?0:M.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var h,y;((h=this.data)==null?0:(y=h.contents)==null?0:y.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(f){var H;(H=this.watchController)==null||H.setPlayerResponse(this.playerData);f&&f.playabilityStatus&&(H=this.isVideoPlayable_(f.playabilityStatus,this.getPlayerOverlays_(this.data)),f=this.isLiveStreamOffline_(f.playabilityStatus),H&&!f||_.qV(this,function(){_.u0("pbu")}));
this.setPlayerAds_();_.$E(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(f,H){if((_.J("kevlar_watch_while_v2")||_.J("web_watch_pip"))&&this.playerData&&H)return this.playerData.videoDetails},
watchPageActiveChanged_:function(f){_.vS().dispatch(_.okU(this.active));f?this.activate_():this.deactivate_()},
attached:function(){var f=this;this.watchController=new _.ab(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);_.J("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var H=_.Hx(this);_.J("kevlar_disable_prepare_player")||
H.preparePlayer();_.J("kevlar_watch_flexy_playlist_manager")||_.t8().resolve(_.u3).setPlayer(H);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();H={"--ytd-watch-flexy-scrollbar-width":_.P$()+"px"};this.is==="ytd-watch-grid"&&(H["--ytd-watch-flexy-sidebar-width"]=_.cWO+"px",H["--ytd-watch-grid-horizontal-page-margins"]=_.pz+"px",H["--ytd-watch-grid-columns-top-margins"]=_.CtO+"px",H["--ytd-watch-grid-min-player-height-medium"]="360px");!_.VQ("kv_pl_mx_sz_ks")&&
_.VQ("kevlar_watch_max_player_width")&&(H["--ytd-watch-flexy-max-player-width-wide-screen"]=_.XAq+"px");_.VQ("kevlar_watch_flexy_metadata_height")&&(H["--ytd-watch-flexy-space-below-player"]=_.AWM+"px");this.safeUpdateStyles(H);_.J("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.Yo(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return f.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.mF(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var f=_.P$(),H=_.QN+f,v=H;this.fixedPanels&&(H+=_.cWO);var t=657+f;f=1327+f;_.mF(this.hostElement).querySelector("#two-column-query").query="(min-width: "+H+"px)";_.mF(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(t+"px), (min-height: 630px) and (min-width: ")+(H+"px) and (max-width: ")+(f+"px)");_.mF(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(f+"px)");
_.mF(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+v+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var f=_.mF(this.hostElement).querySelector("#miniplayer-bar").firstChild,H=this.squeezeback&&!_.J("web_watch_squeezeback_player_size_killswitch");return f&&f.active||this.theater||_.J("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||H||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.eF(NaN,NaN):_.EQ(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.EQ(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Mj(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var f=this;this.onWindowResized_(_.BS());_.J("browse_skeleton_removal_on_watch_killswitch")||_.P6("IS_SHELL_LOAD")&&_.q9r();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var H=_.Hx(this);H.addEventListener("yt-player-updated",_.jr(this,this.onPlayerUpdated_));H.getPlayerPromise().then(function(v){f.playerApiReady_(v)});
_.J("kevlar_watch_flexy_playlist_manager")||(H=_.t8().resolve(_.u3),_.J("kevlar_watch_observe_playlist_navigations_killswitch")&&H.addEventListener("yt-navigate",_.jr(this,this.onYtNavigate_)),H.setPlaylistComponent(_.mF(this.hostElement).querySelector("#playlist")),H.addEventListener("yt-playlist-data-updated",_.jr(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.nN.addLowPriorityJob(function(){_.YE(f.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Hx(this).removeEventListener("yt-player-updated",_.jr(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.J("kevlar_watch_flexy_playlist_manager")){var f=_.t8().resolve(_.u3);_.J("kevlar_watch_observe_playlist_navigations_killswitch")&&f.removeEventListener("yt-navigate",_.jr(this,this.onYtNavigate_));
f.cancelVideoSkip();f.removeEventListener("yt-playlist-data-updated",_.jr(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.J("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.YE(this.hostElement,"yt-autonav-pause-player",!1);f=_.M6();_.J("kevlar_exit_fullscreen_leaving_watch")&&f&&_.Rr(f)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(f){this.player&&this.player.updateVideoData({rvs:f.rvs})},
getPageContents:function(f){return f&&f.contents&&f.contents.twoColumnWatchNextResults&&f.contents.twoColumnWatchNextResults.results&&f.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(f){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",f)},
onRetrieveLocation_:function(f,H){H.hasComments?H.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):H.locationRetrieved("/related_ajax",void 0);f.stopPropagation()},
onSubscriptionChanged_:function(f,H){this.player&&(H?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.DG("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.mF(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.mF(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(f){this.player=f;this.setPlayerState(f.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.J("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.J("kevlar_unified_player")||_.J("kevlar_player_new_bootstrap_adoption"))&&_.ac()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(f,H){H=H===void 0?!0:H;_.M6()&&_.J("external_fullscreen")&&_.Rr(document.documentElement);this.theaterRequested_=f;H&&_.Zy("wide",f?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.mb(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.YE(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(f){_.u$(f,typeof this.player),this.player&&_.u$(f,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var f;((f=this.player)==null?0:f.isFullscreen())?this.player.toggleFullscreen():_.mb(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(f,H){return this.loading?H:!!Object.keys(f).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(f){if(f){f=_.V(f);for(var H=f.next();!H.done;H=f.next())H=H.value,H.youThereRenderer&&_.BHM(this.youThereManager_,H.youThereRenderer)}},
setPlaylistData_:function(f){return f||{}},
userEngagementConfigDataChanged_:function(f){if(f)if(f.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var H=this.youThereManager_;_.h7()<f.lowEngagementThresholdMs||_.KpD(H,!0)}else f.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.mb(this.hostElement,"yt-autonav-pause-user-engagement",[f])},
isPlayerUnavailable_:function(f,H,v){return!!f&&!this.isVideoPlayable_(f,v)&&!H},
getPlayerOverlays_:function(f){return(f==null?void 0:f.playerOverlays)||null},
isVideoPlayable_:function(f,H){if(!f)return!1;var v=f.status==="OK"||f.status==="LIVE_STREAM_OFFLINE",t=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",f)||this.get("errorScreen.ypcTrailerRenderer",f);f=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",f);var M;H=H==null?void 0:(M=H.playerOverlayRenderer)==null?void 0:M.gatedActionsOverlayRenderer;return!!v||!!t||!!f||!!H},
hasWatchNextResponseErrorRenderer:function(f){var H=this.getPageContents(f),v,t,M,h,y;return!(f==null?0:(v=f.contents)==null?0:(t=v.twoColumnWatchNextResults)==null?0:t.secondaryResults)&&!!((M=H[0])==null?0:(h=M.itemSectionRenderer)==null?0:(y=h.contents[0])==null?0:y.backgroundPromoRenderer)},
isLiveStreamOffline_:function(f){return f?f.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(f,H,v){var t=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",H),M=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];M=_.J("web_no_skip_video_on_verification_checks")?(f==null?void 0:f.status)&&M.includes(f.status):f&&f.status==="AGE_CHECK_REQUIRED";var h=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",f);h==void 0&&(h=!0);!v||this.isVideoPlayable_(f,this.getPlayerOverlays_(H))||
t||M||!h||_.t8().resolve(_.u3).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.Sko()},
onPlayerFeedbackStartRequest_:function(f){_.mb(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:f}])},
onPlayerFeedbackArticleRequest_:function(f){_.mb(this.hostElement,"yt-help-dialog-requested",[f])},
onPlayerYpcContentRequest_:function(){var f,H,v,t,M,h,y,m,W=((f=this.data)==null?NaN:(H=f.contents)==null?NaN:(v=H.twoColumnWatchNextResults)==null?NaN:(t=v.secondaryResults)==null?NaN:(M=t.secondaryResults)==null?NaN:(h=M.offerModule)==null?NaN:(y=h.tvfilmOfferModuleRenderer)==null?NaN:(m=y.actionButtons)==null?NaN:m.length)-1;f=[".offerButton.buttonRenderer.",".actionButtons."+(W>=0?W:0)+".buttonRenderer."];H=_.V(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(v=H.next();!v.done;v=H.next())for(v=v.value,t=_.V(f),M=t.next();!M.done;M=t.next())if(M="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+v+M.value,M=this.get(M+"navigationEndpoint",this.data)||this.get(M+"serviceEndpoint",this.data)||this.get(M+"command",this.data)){_.sV(M,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(f){_.YE(this.hostElement,"yt-autonav-pause-player",f)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(f){f()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(f){switch(f){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(f){switch(f){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.YE(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(f)},
setPlayerState:function(f){_.vS().dispatch(_.S_o(f))},
onPlayerSubscribe_:function(f){_.mb(this.hostElement,"yt-player-subscribe",[f])},
onPlayerUnsubscribe_:function(f){_.mb(this.hostElement,"yt-player-unsubscribe",[f])},
onPlayerAdYtShowToast_:function(f){_.mb(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:f.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(f){if(f)return f},
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(f){return!_.J("web_watch_move_summary_to_sd")&&!!f},
computeWatchMetadataRefresh:function(){return _.J("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.J("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var f,H,v,t;this.watchNextSecondaryResults=(f=this.data)==null?void 0:(H=f.contents)==null?void 0:(v=H.twoColumnWatchNextResults)==null?void 0:(t=v.secondaryResults)==null?void 0:t.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.J("swatcheroo_pbs_load_grid")&&!_.J("swatcheroo_provide_all_data_on_scheduled_job")){_.nN.cancelJob(this.setRichGridJobId_);var f,H,v,t,M,h,y;this.setRichGridRendererData((f=this.data)==null?void 0:(H=f.contents)==null?void 0:(v=H.twoColumnWatchNextResults)==null?void 0:(t=v.secondaryResults)==null?void 0:(M=t.secondaryResults)==null?void 0:(h=M.results)==null?void 0:(y=h[0])==null?
void 0:y.richGridRenderer)}},
setRichGridRendererData:function(f){this.richGridRendererData=f},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var f,H=(f=this.data)==null?void 0:f.engagementPanels;if(H==null?0:H.length){f=null;H=_.V(H);for(var v=H.next();!v.done;v=H.next()){v=v.value;var t=void 0;if(((t=v.engagementPanelSectionListRenderer)==null?void 0:t.targetId)==="engagement-panel-structured-description"){f=v;break}}var M,h,y;f=(M=f)==null?void 0:(h=M.engagementPanelSectionListRenderer)==null?void 0:(y=h.content)==null?void 0:y.structuredDescriptionContentRenderer;if(f==null?0:f.items){M=
[];h=_.V(f.items);for(y=h.next();!y.done;y=h.next()){y=y.value;if(!_.J("sd_horizontal_list_show_nav_killswitch")){var m=t=v=H=f=void 0,W=void 0,I=(f=y.horizontalCardListRenderer)==null?void 0:(H=f.header)==null?void 0:(v=H.richListHeaderRenderer)==null?void 0:(t=v.navigationButton)==null?void 0:(m=t.buttonRenderer)==null?void 0:(W=m.command)==null?void 0:W.commandExecutorCommand;I&&I.commands&&(I.commands=I.commands.filter(function(S){return!_.U(S,_.Vp1)}))}(!y.expandableVideoDescriptionBodyRenderer&&
!y.videoDescriptionHeaderRenderer||_.J("web_delhi_colorful_sd"))&&M.push(y)}return{items:M}}}},
constructWarning_:function(f){return{text:_.qO(f),type:"WARNING"}},
isPlaShelfEnabled_:function(f){if((this.get("adPlacements",f)||[]).length)return!0;f=this.get("playerAds",f)||[];return!(!f.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",f[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var f=this;_.YE(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.J("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var H=this.getScrollTop()>0;this.gestures_&&(H?this.gestures_.detach():this.gestures_.attach());H!==this.showFullerscreenEdu_&&_.J("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=H,_.Hx(this).getPlayerPromise().then(function(v){v.updateFullerscreenEduButtonVisibility(f.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.YE(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var f=this;this.commentsReady=!1;_.nN.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Lb(_.nN,function(){f.setComments_()},1E3)},
setComments_:function(){if(!_.J("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.u0("cmi");_.nN.cancelJob(this.setCommentsJobId_);var f=this.getPageContents(this.data);if(f&&f.length){f=_.V(f);for(var H=f.next();!H.done;H=f.next())if(H=H.value,this.get("itemSectionRenderer.sectionIdentifier",H)==="comment-item-section"){this.comments=H.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.YE(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.J("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.J("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.u0("cmc")},
doRemoveComments_:function(){this.comments={};_.J("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.nN.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.nN.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(f,H){var v=_.U(H.endpoint,_.wI);v&&(!(H=this.get("data.currentVideoEndpoint.watchEndpoint"))||v.videoId!==H.videoId||v.playlistId&&v.playlistId!==H.playlistId||v.index!==void 0&&v.index!==H.index||typeof v.startTimeSeconds!=="number"||(f.stopPropagation(),this.setScrollTop(0),_.Hx(this).getPlayerPromise().then(function(t){var M=v.startTimeSeconds;t.seekTo(M);t.wakeUpControls();M<t.getDuration()&&t.playVideo()})))},
updatePlayerStartTime_:function(){var f=_.Hl1();"t"in f&&(f=_.Iy4(f.t),this.player.seekTo(f,!0))},
updateTitleFromWatchNext:function(f){f=this.getPageContents(f);var H,v;(f=_.fG(f==null?void 0:(H=f[0])==null?void 0:(v=H.videoPrimaryInfoRenderer)==null?void 0:v.title))&&_.YE(this.hostElement,"yt-update-title",f)},
updateTitle_:function(f){f=this.get("videoDetails.title",f)||"";_.YE(this.hostElement,"yt-update-title",f)},
syncWithRemoteVideo_:function(f,H,v){if(this.active&&this.player){var t=this.player.getVideoData();if(t.video_id===v&&(v=t.list,_.J("polymer_enable_mdx_queue")&&v&&v.startsWith("RQ")&&(v=void 0),t.video_id!==f||v!=H)){var M;_.J("kevlar_player_watch_endpoint_navigation")?M=_.HaH(_.$JD(f,H)):M=this.buildWatchEndpoint_(f,H);_.YE(this.hostElement,"yt-navigate",{endpoint:M,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(f,H,v){return _.MO(f,H,v)},
initDclkstatus_:function(){_.gZe()},
attachWatchPageSkeleton_:function(){var f=document.querySelector("#watch-page-skeleton");if(f){var H=f.querySelector("#primary-info"),v=f.querySelector("#secondary-info"),t=f.querySelector("#related");H&&_.mF(this.hostElement).querySelector("#info-skeleton").appendChild(H);v&&_.mF(this.hostElement).querySelector("#meta-skeleton").appendChild(v);t&&(_.mF(this.hostElement).querySelector("#related-skeleton").appendChild(t),this.watchNextSkeletonEl_=t);_.U1(f)}},
handlePlayerUpdated_:function(){_.Hx(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(f,H){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof H!=="undefined"){var v=this.watchNextSkeletonEl_.children,t=f&&f.indexSplices.length?f.indexSplices[0].index:0;f=Math.min(this.watchNextShownItems.length,v.length);H||(t=0,f=v.length);for(H=t;H<f;H++)v[H].classList.add("hidden")}},
onPlayerFullscreenChange_:function(f){_.J("external_fullscreen")||_.mb(this.hostElement,"yt-player-fullscreen",[f.fullscreen])},
onFullscreenChange_:function(f){this.fullscreen=f;this.gestures_&&this.gestures_.update(this.fullscreen);var H=_.Hx(this);H.getPlayerPromise().then(function(v){v.setFauxFullscreen(!!_.M6())});
this.updateFullBleedElementLocations();f&&(H.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(f,H){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!H},
computeIsDonationShelfCollapsed_:function(f){return f},
computeShouldShowMerchShelf:function(f,H){return H&&!!f},
computeResponseHasComments:function(f){var H,v,t,M,h;return!!(f==null?0:(H=f.contents)==null?0:(v=H.twoColumnWatchNextResults)==null?0:(t=v.results)==null?0:(M=t.results)==null?0:(h=M.contents)==null?0:h.some(function(y){var m;return(y==null?void 0:(m=y.itemSectionRenderer)==null?void 0:m.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(f,H,v,t){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&t?!1:!!f&&!!Object.keys(f).length&&!H},
identity:_.Cg,onWindowResized_:function(f){this.windowSize_=f;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.J("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(f){var H=this;f&&f.type!=="dataloaded"&&f.type!=="dataupdated"||_.Hx(this).getPlayerPromise().then(function(v){var t=v.getPlayerState();t!==5&&t!==0&&(v=1/v.getVideoAspectRatio(),H.videoHeightToWidthRatio_!==v&&(H.videoHeightToWidthRatio_=v))})},
schedulePlayerSizeUpdate_:function(f){var H=this,v=_.J("kevlar_watch_while_v2")||_.J("web_watch_pip"),t=function(){if(H.watchMetadata){var M,h;(h=(M=H.watchMetadata).resize)==null||h.call(M)}_.Hx(H).getPlayerPromise().then(function(y){if(_.J("kevlar_set_internal_player_size")){if(!v||!H.isMiniplayerActive()){var m=H.calculateCurrentPlayerSize_();y.setInternalSize(m.width,m.height)}}else y.setSize(NaN,NaN);_.J("kevlar_watch_while")&&H.updateWatchWhileScrollThreshold_()})};
f?t():_.Vk(_.nN,t)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(f){this.set("data.survey",f.detail)},
onYtShowSurveyCommand_:function(f){this.set("data.survey",_.U(f,_.UJA).survey)},
onDownloadedVideoDeleted:function(f){var H=this,v,t;return _.Y(function(M){if(M.nextAddress==1){if(!H.active||(v=H.playerData)==null||!v.offlineState||H.videoId!==f)return M.return();(t=H.player)==null||t.stopVideo();_.S0().navigatingAwayFromWatchDeletedVideo=!0;_.sV(_.knB,H.hostElement);return M.yield(_.S0().navigationFinishPromise,2)}_.S0().navigatingAwayFromWatchDeletedVideo=!1;_.Bj(M)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var f;this.theater?f=_.FL(.5625*this.windowSize_.width,480,this.windowSize_.height-185):f=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==f&&(this.watchWhileScrollThreshold_=f,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var f=_.mF(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&f){var H=this.windowSize_.height>=624,v=this.active?this.getScrollTop():0;!f.active&&H&&v>=this.watchWhileScrollThreshold_?(f.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):f.active&&(!H||v<this.watchWhileScrollThreshold_&&!_.M6())&&(f.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var f=_.mF(this.hostElement).querySelector("#secondary-inner");if(f){var H=_.mF(this.hostElement).querySelector("#below"),v=_.mF(this.hostElement).querySelector("#secondary"),t=_.mF(this.hostElement).querySelector("#comments");t&&v&&H&&(this.defaultTwoColumnLayout?(f.appendChild(t),v.appendChild(f)):(H.appendChild(t),_.oJ(H,f)))}}},
isTwoColumnsChanged_:function(f,H){if(f!==!0||H!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(f=_.mF(this.hostElement).querySelector("#secondary-inner"))){H=_.mF(this.hostElement).querySelector("#below");var v=_.mF(this.hostElement).querySelector("#secondary"),t=_.mF(this.hostElement).querySelector("#comments");t&&v&&H&&(this.isTwoColumns_?(f.appendChild(t),v.appendChild(f)):(H.appendChild(t),
_.oJ(H,f)))}}else{f=!_.J("web_watch_enable_fs_squeezeback_panels")||!(this.fullscreen||this.iMaxTheaterMode&&this.theater);H=_.mF(this.hostElement).querySelector("#panels");var M=_.mF(this.hostElement).querySelector("#alerts");v=_.mF(this.hostElement).querySelector("#playlist");t=_.mF(this.hostElement).querySelector("#related");var h=_.mF(this.hostElement).querySelector("#donation-shelf"),y=_.mF(this.hostElement).querySelector("#comments");this.isTwoColumns_?(M=_.mF(this.hostElement).querySelector("#secondary-inner"),
f&&(M.appendChild(H),M.appendChild(v)),M.appendChild(h),M.appendChild(t)):(f&&(_.x0(H,M),_.x0(v,M)),_.x0(h,M),y&&_.x0(t,y));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.J("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.J("web_watch_enable_fs_squeezeback_panels")&&_.J("web_watch_theater_chat")){var f=_.mF(this.hostElement).querySelector("#chat-container"),H=this.theater&&!this.fullscreen||_.J("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&H?(H=_.mF(this.hostElement).querySelector("#columns"),(f==null?void 0:f.parentElement)!==H&&H.append(f),this.fixedPanels=!0):(this.fixedPanels=
!1,H=_.mF(this.hostElement).querySelector("#playlist"),f&&H?_.B4(f,H):_.pb(new _.e$("Missing element when updating chat location",{"chatContainer defined":!!f,"playlist defined":!!H})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(f,H){return _.J("sw_metadata_vis_toggle_ks")?!0:!!f||!!H},
computeForceDarkPanelTheme:function(f){return _.J("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&f:!1},
safeUpdateStyles:function(f){try{_.Sr(this.hostElement,f)}catch(H){_.pb(H)}},
videoHeightToWidthRatioChanged_:function(f,H){H&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(f){this.videoHeightToWidthRatio_=1/f},
computeIsVerticalVideo_:function(f){return f>=1},
computeIsFourThreeToSixteenNineVideo_:function(f){return f<=.7501&&f>=.5624},
computeIsExtraWideVideo_:function(f){return f<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.Hx(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Hx(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.DJ4(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(f){var H=_.Oz(f)||0;_.WH(f,H+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var f=_.Oz("yt-fullerscreen-edu-button-click-count")||0,H=_.Oz("yt-fullerscreen-edu-button-shown-count")||0,v=_.VQ("external_fullscreen_button_shown_threshold"),t=f>=_.VQ("external_fullscreen_button_click_threshold")||H>=v;_.Hx(this).getPlayerPromise().then(function(M){M.updateFullerscreenEduButtonSubtleModeState(t)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(f,H){return H},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.t8().resolve(_.u3).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var f=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.nN.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.nN.addLowPriorityJob(function(){f.fullHeightPanelPositionUpdateJobId=0;var H=_.mF(f.hostElement).querySelector("#secondary"),v=_.mF(f.hostElement).querySelector("#fixed-secondary");H=H.getBoundingClientRect();var t=H.width;f.swatcherooSqueezeback&&
(t+=_.pz);if(f.swatcherooSqueezeback){var M=_.mF(f.hostElement).querySelector("#squeezeback-constraining-container");M.style.width=t+"px";M.style.flex="0 0 "+t+"px"}v.style.width=t+"px";v.style.left=H.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var f=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.nN.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.nN.addLowPriorityJob(function(){f.panelMaxHeightUpdateJob_=0;var H;!f.isTwoColumns_||f.theater||f.fullscreen?H=460:H=f.calculateNormalPlayerSize_().height;var v=H+"px";_.J("live_chat_taller_height")&&!f.theater&&(v="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.J("live_chat_medium_height")&&!f.theater&&(v="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.J("live_chat_scaled_height")&&!f.theater&&(v="calc(100vh - var(--ytd-toolbar-height) - 238px)");f.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":H+"px","--ytd-watch-flexy-chat-max-height":v,"--ytd-watch-flexy-structured-description-max-height":H+"px","--ytd-watch-flexy-comments-panel-max-height":H+"px","--ytd-comments-engagement-panel-content-height":H+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(f){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",f)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Oj(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(f){var H=_.mF(this.hostElement).querySelector("#engagement-panel-scrim");f?H.addEventListener("tap",_.jr(this,this.onEngagementPanelScrimClick_)):H.removeEventListener("tap",_.jr(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(f){if(this.hostElement.contains(f)&&!this.scrollToAnimation_.isAnimating()){var H=f.offsetTop-24;f=f.offsetTop+f.offsetHeight+24;var v=this.getPageScrollingElement(),t=this.getScrollTop(),M=t+v.clientHeight-56;if(H<t+56)H-=56;else if(f>M)H=f-v.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,H),500)}},
onYtSignalActionScrollToComments:function(){var f=this.hostElement.querySelector("#comments");if(f&&!this.scrollToAnimation_.isAnimating()){f=f.offsetTop-56-24;if(_.J("kevlar_comment_teaser_scroll_to_midpoint")&&(f-=_.Ld().height/3,f<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,f),500)}},
onYtEngagementPanelVisibleChanged:function(f,H,v){if(this.active&&this.trackEngagementPanelVisibility&&!_.J8O.includes(v)){if(H==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.$E(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var t=_.t8().resolve(_.B5);this.visiblePanelIdentifiers_.forEach(function(M){M!==v&&t.hidePanel(M)})}this.visiblePanelIdentifiers_.add(v)}H!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&H!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(v);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(f){return f?"":"watch-active-metadata"},
computeNewMetadataClass:function(f){return f?"watch-active-metadata":""},
computeIsSingleColumn:function(f,H){return H&&!f},
computeFullBleedPlayer:function(f,H,v){return _.J("web_watch_error_screen_fix")?_.J("external_fullscreen")&&f||H||this.enableFullBleedSingleColumnDefaultPlayer&&v:f||H||this.enableFullBleedSingleColumnDefaultPlayer&&v},
computeDefaultLayout:function(f){return!f},
computeDefaultTwoColumnLayout:function(f,H){return!f&&H},
updatePanelsLocation:function(){if(_.J("web_watch_enable_fs_squeezeback_panels")){var f=_.mF(this.hostElement).querySelector("#below"),H=_.mF(this.hostElement).querySelector("#panels"),v=_.mF(this.hostElement).querySelector("#playlist"),t=_.mF(this.hostElement).querySelector("#chat-container"),M=_.mF(this.hostElement).querySelector("#panels-full-bleed-container"),h=_.mF(this.hostElement).querySelector("#secondary-inner");if(f&&H&&v&&t&&M&&h){var y=this.fullscreen||this.theater&&this.iMaxTheaterMode,
m=this.theater&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;y?(M.appendChild(H),M.appendChild(t),M.appendChild(v)):this.isTwoColumns_?(m?(f=_.mF(this.hostElement).querySelector("#columns"),(t==null?void 0:t.parentElement)!==f&&f.append(t),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):_.oJ(h,t),_.oJ(h,H),_.oJ(h,v)):(f.appendChild(H),f.appendChild(t),f.appendChild(v))}}},
swatcherooUpdatePanelsLocation:function(f,H,v,t,M,h){if(this.is==="ytd-watch-grid"){H=f&&!H;this.swatcherooSplitScroll&&(H?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));v=_.mF(this.hostElement).querySelector("#panels");var y=_.mF(this.hostElement).querySelector("#playlist"),m=_.mF(this.hostElement).querySelector("#fixed-secondary"),W=_.mF(this.hostElement).querySelector("#fixed-below"),
I=_.mF(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),S=_.mF(this.hostElement).querySelector("#chat-container");h&&(f?m.appendChild(v):W.appendChild(v));M?f?m.appendChild(S):W.appendChild(S):_.B4(S,I);t?f?m.appendChild(y):W.appendChild(y):_.B4(y,I);this.swatcherooSplitScroll&&(f=_.mF(this.hostElement).querySelector("#secondary"),t=_.mF(this.hostElement).querySelector("#columns"),M=_.mF(this.hostElement).querySelector("#fixed-columns-secondary"),H?
M.appendChild(f):t.appendChild(f))}},
computeMetadataSkinnyMode:function(f,H,v){return this.is!=="ytd-watch-grid"?!1:f?v:H},
computeWatchWhilePanelsActive:function(f,H){return f||H},
computeNoBorderOnChat:function(f){return _.J("web_watch_theater_chat_no_border")&&f},
computeLiveChatPresentAndExpanded:function(f,H){return f&&!H},
computePanelExpanded:function(f,H,v){return f||H||v},
computeSqueezeback:function(f,H,v,t){if(_.J("web_watch_enable_fs_squeezeback_panels")){var M=this.iMaxTheaterMode&&this.theater;return(f||H||v)&&(t||M)}},
computeSwatcherooSqueezeback:function(f,H,v){return this.is!=="ytd-watch-grid"||_.J("ww_squeezeback_killswitch")?!1:f&&H&&v},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(f){_.Hx(this).getPlayerPromise().then(function(H){var v;(v=H.changeMarkerVisibility)==null||v.call(H,_.U(f,_.NK).isVisible||!1,_.U(f,_.NK).entityKeys||[],_.U(f,_.NK).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(f){this.liveChatCollapsed=f.detail;_.vS().dispatch(_.ZlD(f.detail));if(!this.liveChatCollapsed&&this.squeezeback){var H=_.t8().resolve(_.B5);this.visiblePanelIdentifiers_.forEach(function(v){H.hidePanel(v)})}},
onSetPlaylistCollapsed:function(f){_.J("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!f)},
provideRenderingData:function(f,H){switch(f){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=H;break;case "PRIMARY_INFO":_.J("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=H);this.videoPrimaryInfoRendererValue=H==null?void 0:H.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.J("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=H);this.videoSecondaryInfoRendererValue=H==null?void 0:H.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
H;break;case "CLARIFICATION":this.clarifyBoxValue=H;break;case "LIVE_CHAT":this.conversationBar=H;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=H;break;case "PLAYLIST":this.externalPlaylistData_=H!=null?H:{};break;case "MERCH_SHELF":this.merchShelfValue=H==null?void 0:H.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=H;break;case "TICKET_SHELF":this.ticket=H;break;case "OFFER_MODULE":this.offerModule=H;break;case "LIMITED_STATE":this.limitedStateValue=
H;break;case "DONATION_SHELF":this.donation=H;break;case "ALERTS":this.alertsValue=H;break;case "COMMENTS":this.comments=H;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=H;break;case "ENGAGEMENT_PANELS":this.engagementPanels=H;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=H;break;case "RICH_GRID_RENDERER":this.richGridRendererData=H;break;case "EXPANDABLE_METADATA":this.expandableMetadata=H;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
H;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=H}},
toggleCinematicsActive:function(f){this.cinematicsActive=f},
isMiniplayerActive:function(){return _.t8().resolve(_.o0).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var QVb;_.pbw=function(f){if(!(0,_.Cib)(f))throw Error("K``"+String(f));};
_.u2A=function(f){return f.findIndex(function(H){return QVb.indexOf(H.tagName)>-1})>-1};
_.axG=function(){var f=_.t8().resolve(_.Z5);_.uAg(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(f.isFullscreenEnabled()?_.Rr(document.documentElement):_.sER(document.documentElement))};
QVb=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.mC=new Map;_.mC.set(32,59972);_.mC.set(27,50765);_.mC.set(70,60102);_.mC.set(76,60221);_.mC.set(77,60222);_.mC.set(74,60223);_.mC.set(84,60224);_.mC.set(38,61941);_.mC.set(40,61942);_.mC.set(73,62521);_.mC.set(67,62522);_.mC.set(80,63390);_.mC.set(78,63397);_.mC.set(75,59972);_.mC.set(188,63385);_.mC.set(190,63384);_.mC.set(36,63387);
_.mC.set(35,63386);_.mC.set(37,63388);_.mC.set(39,63389);_.mC.set(79,63423);_.mC.set(87,63424);_.mC.set(107,63426);_.mC.set(109,63425);_.mC.set(65,63428);_.mC.set(83,63430);_.mC.set(68,63429);_.mC.set(221,63431);_.mC.set(219,63432);_.mC.set(97,63439);_.mC.set(98,63440);_.mC.set(99,63441);_.mC.set(100,63442);_.mC.set(101,63443);_.mC.set(102,63444);_.mC.set(103,63445);_.mC.set(104,63446);_.mC.set(105,63447);_.$h=new Map;_.$h.set(80,63390);_.$h.set(78,63397);_.$h.set(188,63400);_.$h.set(190,63401);
_.$h.set(191,60765);_.$h.set(13,247917);_.Wg=new Map;_.Oy=new Map;
}catch(e){_._DumpException(e)}
try{
var Uki,xk0,Bp0,ziF;_.shA=function(f){return f.ui.guideIsVisibleButNotPersistent};
_.Z4t=function(f){return f.ui.tabGesturesIsActive};
_.Jmt=function(){var f=_.yQ("service_worker_scope");try{return navigator.serviceWorker.getRegistration(f)}catch(H){return Promise.reject(H)}};
_.lth=function(f){return!(!f||!f.pushManager)};
Uki=function(){return _.Jmt().then(_.lth).catch(function(){return!1})};
_.ei0=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?Uki():Promise.resolve(!1)};
_.L7W=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
xk0=function(){var f,H,v;return _.Y(function(t){switch(t.nextAddress){case 1:return t.yield(_.xP.getInstance(),2);case 2:f=t.yieldResult;if(!f){H=void 0;t.jumpTo(3);break}return t.yield(f.get("lmqf"),4);case 4:H=t.yieldResult;case 3:switch((v=H)||(v="SD"),v){case "HD":return t.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return t.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return t.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return t.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return t.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
Bp0=function(f){var H,v,t;return _.Y(function(M){if(M.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.J("disable_av1_setting")){var h=window.localStorage["yt-player-av1-pref"];h=h==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":h==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else h="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(H=f===h)return M.jumpTo(2);t=v=f;return M.yield(xk0(),3)}M.nextAddress!=2&&(H=t===M.yieldResult);return M.return(H)})};var F7x;var rmw=_.Z6.IronButtonState,K7x=(0,_.jh)(HTMLElement);
_.p2({_template:function(){if(F7x!==void 0)return F7x;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;ziF===void 0&&(ziF=document.createElement("template"));var t=ziF;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return F7x=f},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[rmw,_.jH,_.JH,_.eH],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(f){var H=(0,_.Zx)(this);H.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:f});H.shadowRoot.appendChild(f);return K7x.prototype._attachDom.call(this,f)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var f=this.contentElement;f&&f.selectedItem&&this._setSelectedItem(f.selectedItem)},
get contentElement(){for(var f=_.Fj(this.$.content).getDistributedNodes(),H=0,v=f.length;H<v;H++)if(f[H].nodeType===Node.ELEMENT_NODE)return f[H]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(f){this._setSelectedItem(f.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(f){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f)===this&&this.open()},
_selectedItemChanged:function(f){var H="";f?H=f.label||f.getAttribute("label")||f.textContent.trim():H="";this.value=H;this._setSelectedItemLabel(H)},
_computeMenuVerticalOffset:function(f,H){return H?H:f?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var f=this.opened?"true":"false",H=this.contentElement;H&&H.setAttribute("aria-expanded",f)}});_.q1=new _.Ak("navigateAction");var DkA=new _.Ak("formRenderer");var f7=function(){var f=_.er.apply(this,arguments)||this;f.showInput=!1;return f};
_.e(f7,_.er);_.R=f7.prototype;_.R.detached=function(){this.showInput&&window.removeEventListener("click",_.jr(this,this.closeOnOutsideClick_))};
_.R.stopPropagation_=function(f){this.showInput&&f.stopPropagation()};
_.R.closeOnOutsideClick_=function(f){this.closeOnOutsideClickCondition(f)&&(this.showInput=!1,window.removeEventListener("click",_.jr(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.R.closeOnOutsideClickCondition=function(){return!0};
_.R.closeOnOutsideClickHandler=function(){};
_.R.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.jr(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.R.openOnClickHandler=function(){};
_.R.showInputChanged=function(){};
_.R.setShowInput=function(f){this.showInput=f};
f7.prototype.setShowInput=f7.prototype.setShowInput;f7.prototype.showInputChanged=f7.prototype.showInputChanged;f7.prototype.openOnClickHandler=f7.prototype.openOnClickHandler;f7.prototype.openOnClick_=f7.prototype.openOnClick_;f7.prototype.closeOnOutsideClickHandler=f7.prototype.closeOnOutsideClickHandler;f7.prototype.closeOnOutsideClickCondition=f7.prototype.closeOnOutsideClickCondition;f7.prototype.closeOnOutsideClick_=f7.prototype.closeOnOutsideClick_;f7.prototype.stopPropagation_=f7.prototype.stopPropagation_;
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],f7.prototype,"showInput",void 0);_.E([_.sE("click"),_.sE("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],f7.prototype,"stopPropagation_",null);_.E([_.Zw("showInput"),_.N("design:type",Function),_.N("design:paramtypes",[Boolean]),_.N("design:returntype")],f7.prototype,"showInputChanged",null);_.E([_.L2()],f7);_.omw=[f7.prototype];var nmb;var pMt;var HP=function(){return _.K.apply(this,arguments)||this};
_.e(HP,_.K);_.R=HP.prototype;_.R.computePreselectedOption=function(f,H){return H===this.itemSelected_?f:void 0};
_.R.dataChanged_=function(){var f=this;this.preselectedSubreason=this.itemSelected_=-1;var H;(H=this.data)!=null&&H.key&&_.qV(this,function(){var v,t=Number((v=f.data)==null?void 0:v.key);!Number.isNaN(t)&&(f.itemSelected_=t,v=(v=(f.data.items||[])[t])&&v.optionSelectableItemRenderer&&v.optionSelectableItemRenderer.preselectedIndex)&&(f.preselectedSubreason=v)})};
_.R.isSubReasonHidden_=function(f,H){return f!=H};
_.R.onTopItemSelected_=function(f,H){for(var v=_.mF(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),t=0,M=v.length;t<M;t++)v[t].select(0);_.mb(this.hostElement,"yt-report-form-update",[H.item.value]);f.stopPropagation()};
_.R.onItemSelected_=function(f,H){_.mb(this.hostElement,"yt-report-form-update",[H.item.value]);f.stopPropagation()};
_.R.getItem_=function(f){return f.serviceItem?f.serviceItem:f.navigationItem?f.navigationItem:f.optionSelectableItemRenderer?f.optionSelectableItemRenderer:null};
_.R.computeText_=function(f){return(f=this.getItem_(f))?this.ytRendererBehavior.getSimpleString(f.text):null};
_.R.validate=function(){return this.itemSelected_!==-1};
_.R.computeAriaLabel_=function(f){var H=_.fG(f.text);(f=f.accessibility&&f.accessibility.accessibilityData&&f.accessibility.accessibilityData.label)&&(H+=". "+f);return H};
_.R.computeItemSelected_=function(f){return f};
_.R.preventSelection_=function(f){f.stopPropagation();this.tooltipTapped=!0};
_.R.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.R.updateItemSelectedFromBinding=function(f){this.itemSelected_=f.detail.value};
_.R.save=function(){var f;this.validate()&&(f=this.data)!=null&&f.items&&(f=this.data.items[this.itemSelected_],f!=null&&f.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(f.optionSelectableItemRenderer.submitEndpoint)||_.WV(this.hostElement,[f.optionSelectableItemRenderer.submitEndpoint])))};
HP.prototype.onPaperRippleTransitionEnd_=HP.prototype.onPaperRippleTransitionEnd_;HP.prototype.dataChanged_=HP.prototype.dataChanged_;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],HP.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],HP.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],HP.prototype,"data",void 0);_.E([_.F({value:-1}),_.N("design:type",Number)],HP.prototype,"itemSelected_",void 0);
_.E([_.F({computed:"computeItemSelected_(itemSelected_)"}),_.N("design:type",Number)],HP.prototype,"value",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],HP.prototype,"restoreFocusOnClose",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],HP.prototype,"tooltipTapped",void 0);_.E([_.F({value:-1}),_.N("design:type",Number)],HP.prototype,"preselectedSubreason",void 0);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HP.prototype,"dataChanged_",null);_.E([_.sE("transitionend"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HP.prototype,"onPaperRippleTransitionEnd_",null);_.E([_.GW({is:"yt-options-renderer",disableElementRegistration:!0})],HP);
_.G(HP,"yt-options-renderer",function(){if(pMt===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;nmb===void 0&&(nmb=document.createElement("template"));var t=nmb;v.call(H,t.content.cloneNode(!0),f.content.firstChild);pMt=f}f=pMt;return f},{mode:2});var Qhx;var uTW;var at0;var Pgt;var GL0;var Cg0;var vP=function(){return _.K.apply(this,arguments)||this};
_.e(vP,_.K);vP.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
vP.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
vP.prototype.onTap=function(f){if(this.hostElement.classList.contains("selected")||_.mb(this.hostElement,"yt-share-panel-can-select-contact-action")[0])f&&f.detail&&(f.detail.x||f.detail.y)&&_.mF(this.hostElement).querySelector("#target").blur(),(f=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),f={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:f?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.mb(this.hostElement,"yt-share-panel-select-contact-action",[f])};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],vP.prototype,"ytRendererBehavior",void 0);_.E([_.F({observer:"onDataChanged"}),_.N("design:type",Object)],vP.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.N("design:type",String)],vP.prototype,"componentTitle",void 0);_.E([_.lJ("#thumbnail"),_.N("design:type",Object)],vP.prototype,"thumbnail",void 0);_.E([_.GW({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],vP);
_.G(vP,"yt-enrolled-contact-renderer",function(){if(Cg0===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;GL0===void 0&&(GL0=document.createElement("template"));var t=GL0;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Cg0=f}f=Cg0;return f},{mode:2});var Emt;var NpG;var tS=function(){return _.K.apply(this,arguments)||this};
_.e(tS,_.K);tS.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
tS.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
tS.prototype.onTap=function(f){if(this.hostElement.classList.contains("selected")||_.mb(this.hostElement,"yt-share-panel-can-select-contact-action")[0])f&&f.detail&&(f.detail.x||f.detail.y)&&_.mF(this.hostElement).querySelector("#target").blur(),(f=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),f={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:f?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.mb(this.hostElement,"yt-share-panel-select-contact-action",[f])};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],tS.prototype,"ytRendererBehavior",void 0);_.E([_.F({observer:"onDataChanged"}),_.N("design:type",Object)],tS.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.N("design:type",String)],tS.prototype,"componentTitle",void 0);_.E([_.lJ("#thumbnail"),_.N("design:type",Object)],tS.prototype,"thumbnail",void 0);_.E([_.GW({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],tS);
_.G(tS,"yt-suggested-contact-renderer",function(){if(NpG===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;Emt===void 0&&(Emt=document.createElement("template"));var t=Emt;v.call(H,t.content.cloneNode(!0),f.content.firstChild);NpG=f}f=NpG;return f},{mode:2});var MX=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-share-panel-reset-action":"onReset"};return f};
_.e(MX,_.K);MX.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"}}}}}};
MX.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.mb(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
MX.prototype.onReset=function(){for(var f=_.mF(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),H=f.length-1;H>=0;H--)f[H].classList.toggle("selected")};
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],MX.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],MX.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],MX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F({observer:"onDataChanged"}),_.N("design:type",Object)],MX.prototype,"data",void 0);
_.E([_.GW({is:"yt-contact-section-renderer",disableElementRegistration:!0})],MX);
_.G(MX,"yt-contact-section-renderer",function(){if(Pgt===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;at0===void 0&&(at0=document.createElement("template"));var t=at0;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Pgt=f}f=Pgt;return f},{mode:2});var hS=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return f};
_.e(hS,_.K);_.R=hS.prototype;_.R.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"}}}};
_.R.onYtRefreshFormCommand=function(f){var H;(f=_.U((H=_.U(f,_.ceH))==null?void 0:H.formRenderer,DkA))&&this.set("data",f)};
_.R.reset=function(){var f=_.mF(this.hostElement).querySelector("#fields").children;f=_.V(f);for(var H=f.next();!H.done;H=f.next())H=H.value,H.reset&&H.reset()};
_.R.getForm=function(){var f={},H=_.mF(this.hostElement).querySelector("#fields").children;H=_.V(H);for(var v=H.next();!v.done;v=H.next()){v=v.value;if(!v.validate())return null;f[v.data.key]=v.value}return f};
_.R.submitFormFields=function(){if(this.fields)for(var f=_.V(this.fields),H=f.next();!H.done;H=f.next())H=H.value,H.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?H.save():H.nodeName==="YT-OPTIONS-RENDERER"&&H.save()};
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],hS.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],hS.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],hS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],hS.prototype,"data",void 0);_.E([_.UE("#fields > *"),_.N("design:type",Array)],hS.prototype,"fields",void 0);
_.E([_.GW({is:"yt-form-renderer",disableElementRegistration:!0})],hS);
_.G(hS,"yt-form-renderer",function(){if(uTW===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;Qhx===void 0&&(Qhx=document.createElement("template"));var t=Qhx;v.call(H,t.content.cloneNode(!0),f.content.firstChild);uTW=f}f=uTW;return f},{mode:2});var cmh;var Rw=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return f};
_.e(Rw,_.K);Rw.prototype.onCheckboxChange=function(f){this.data&&(f=(this.checked=_.HB(f).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.t8().resolve(_.MJ).resolveCommand(f,{form:{element:this.hostElement}})};
Rw.prototype.handleUpdateCheckboxCommand=function(f){(f=_.U(f,_.ykh))&&this.data&&this.data.id===f.id&&(this.set("data.disabled",f.disabled),this.set("data.title",f.title))};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Rw.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Rw.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Rw.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Boolean)],Rw.prototype,"checked",void 0);_.E([_.u({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],Rw);
_.G(Rw,"ytd-settings-checkbox-renderer",function(){if(cmh!==void 0)return cmh;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return cmh=f},{mode:1});var XMW;var Vr=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return f};
_.e(Vr,_.K);Vr.prototype.dataChanged=function(){var f=this,H;return _.Y(function(v){if(v.nextAddress==1)return f.radio.removeAttribute("checked"),!f.data||!f.data.id||f.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.L7W()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(H=f.data&&f.data.id)?v.yield(Bp0(f.data.id),4):v.jumpTo(3):(f.set("data.hidden",!0),v.jumpTo(0));v.nextAddress!=3&&(H=v.yieldResult);H&&_.mb(f.hostElement,"yt-select-settings-radio-option",[f.data.id]);_.Bj(v)})};
Vr.prototype.onButtonChanged=function(f){_.HB(f).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.t8().resolve(_.MJ).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.mb(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
Vr.prototype.onSelectOption=function(f){this.data&&this.data.id&&(this.data.id===f?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
Vr.prototype.dataChanged=Vr.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Vr.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Vr.prototype,"ytActionHandlerBehavior",void 0);_.E([_.lJ("#radio"),_.N("design:type",Object)],Vr.prototype,"radio",void 0);_.E([_.F(),_.N("design:type",Object)],Vr.prototype,"data",void 0);
_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],Vr.prototype,"dataChanged",null);_.E([_.u({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],Vr);
_.G(Vr,"ytd-settings-radio-option-renderer",function(){if(XMW!==void 0)return XMW;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return XMW=f},{mode:1});var Am0;var yr=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return f};
_.e(yr,_.K);
yr.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"}}}};
yr.prototype.handleUpdateTextCommand=function(f){(f=_.U(f,_.Yvr))&&this.data&&this.data.id===f.id&&this.set("data",f)};
yr.prototype.handleUpdateConnectedAppRendererCommand=function(f){if(_.U(f,_.W6r)&&this.data){var H,v;if(f=(H=_.U(f,_.W6r))==null?void 0:(v=H.newConnectedAppRenderer)==null?void 0:v.connectedAppRenderer)this.data=f}};
yr.prototype.computeConnectedAppStyle=function(f){return f.style?f.style.toLowerCase().replace(/_/g,"-"):""};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],yr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],yr.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],yr.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],yr.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.N("design:type",String)],yr.prototype,"connectedAppStyle",void 0);_.E([_.u({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],yr);
_.G(yr,"ytd-connected-app-renderer",function(){if(Am0!==void 0)return Am0;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Am0=f},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.QX("iuT5Oc");

_.uS();
}catch(e){_._DumpException(e)}
try{
_.QX("L3n37");
var kED=function(f){return f.watch.isLearningJourneyActive},THM=_.$$(115994),whV=_.$$(115993),qke=function(f,H,v){var t=this;
var M=v.dragDownAction;this.layer=0;this.JSC$23100_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return t.dragDownAction()}}}};
this.JSC$23100_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return t.dragDownAction()}}}};
this.fullscreen=!1;var h=_.UV();_.mE(h,THM,this.layer);_.mE(h,whV,this.layer);this.dragDownAction=function(){M();_.NY(h,{visualElement:t.fullscreen?THM:whV})};
this.gesture=new _.mD(f,H,this.JSC$23100_watchConfig,"pandown");this.attach()};
qke.prototype.attach=function(){this.gesture.attach()};
qke.prototype.detach=function(){this.gesture.detach()};
qke.prototype.update=function(f){this.fullscreen=f;this.gesture.config=f?this.JSC$23100_watchFullScreenConfig:this.JSC$23100_watchConfig};var fU1=function(f){_.Yh.call(this);var H=this;this.rootElement=f;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return H.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(v){H.initOrDisposeActiveModules(v)}));
this.onAttached()};
_.e(fU1,_.Yh);_.R=fU1.prototype;_.R.getRoot=function(){return this.rootElement};
_.R.getElement=function(f){return this.rootElement.getElement(f)};
_.R.setPlayerResponse=function(f){this.playerResponse=f;this.publish("PLAYER_RESPONSE_UPDATED",f)};
_.R.getPlayerResponse=function(){return this.playerResponse};
_.R.setWatchNextResponse=function(f){this.watchNextResponse===f?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=f,this.publish("WATCH_NEXT_RESPONSE_UPDATED",f))};
_.R.getWatchNextResponse=function(){return this.watchNextResponse};
_.R.registerActionHandler=function(f,H){var v=this;if(_.J("web_watch_controller_reg_multiple_handlers_killswitch")){var t={};_.b$(_.A7.getInstance(),(t[f]=H,t),this.getRoot())}else this.actionHandlers.has(f)||(this.actionHandlers.set(f,[]),t={},_.b$(_.A7.getInstance(),(t[f]=function(){var M=_.NA.apply(0,arguments);return(v.actionHandlers.get(f)||[]).map(function(h){return h.apply(null,_.pS(M))})},t),this.getRoot())),this.actionHandlers.get(f).push(H)};
_.R.unregisterActionHandler=function(f){if(_.J("web_watch_controller_reg_multiple_handlers_killswitch")){var H={};_.i$(_.A7.getInstance(),(H[f]=!0,H),this.getRoot())}else(H=this.actionHandlers.get(f))?(H.pop(),H.length===0&&(H={},_.i$(_.A7.getInstance(),(H[f]=!0,H),this.getRoot()),this.actionHandlers.delete(f))):_.pb(new _.e$("Attempted to unregister an action handler which is not registered.",f))};
_.R.addPageDisposeJob=function(f){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.AN(this.rootElement.pageDisposeJobs,f)};
_.R.removePageDisposeJob=function(f){this.rootElement.pageDisposeJobs&&_.iH(this.rootElement.pageDisposeJobs,f)};
_.R.dispatchEvent=function(f,H){_.YE(this.rootElement,f,H)};
_.R.provideRenderingData=function(f,H){this.rootElement.provideRenderingData(f,H)};
_.R.scrollWatchTo=function(f,H){var v;(v=this.watchScrollManager)==null||v.scrollWatchTo(f,H)};
_.R.focusOnPlayer=function(){var f=this.getElement("PLAYER");_.qV(f,function(){if(f&&f.firstElementChild){var H=f.querySelector(".html5-video-player");H&&(_.v5(_.t8().resolve(_.xK)),H.focus())}else _.pb(Error("Mo"))})};
_.R.updateCinematicFullscreenConfig=function(){var f=!!this.rootElement.theater,H=!!this.rootElement.fullscreen,v;(v=this.watchCinematicManager)==null||_.KE(v,H,f)};
_.R.subscribeToActiveChanged=function(f,H){H=H===void 0?!0:H;var v=_.sI(_.vS(),kED,function(t){f(t)});
H&&f(kED(_.vS().getState()));return v};
_.R.isActive=function(){return kED(_.vS().getState())};
_.R.onAttached=function(){var f=_.J("external_fullscreen");_.J("use_unified_flag_accessor")&&(f=_.t8().resolve(_.xAW).retriever.getFlag(_.X__));(f||_.P6("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.R.initPersistentModules=function(){if(_.J("kevlar_watch_flexy_theater_manager")){var f=new _.RiV(this);_.jz(this,f)}f=new _.cm1(this);_.jz(this,f);f=new _.B2(this);_.jz(this,f);f=new _.pE(this);_.jz(this,f);f=new _.s8e(this);_.jz(this,f);f=new _.F1(this);_.jz(this,f);_.J("kevlar_watch_flexy_playlist_manager")&&(f=new _.lpU(this),_.jz(this,f))};
_.R.initOrDisposeActiveModules=function(f){f?(this.watchScrollManager=new _.uX(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.hpL(this)),this.activeModules.push(new _.mjo(this)),this.activeModules.push(new _.zpD(this)),this.activeModules.push(new _.Qh(this)),_.J("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.glM(this)),this.activeModules.push(new _.$wO(this)),_.J("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.rrv(this)),
_.J("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.lt1(this)),_.J("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.Bpo(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.J("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.Ip1(this)),_.J("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.EmD(this)),f=_.J("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.J("kevlar_watch_flexy_comments_manager")&&!f&&this.activeModules.push(new _.uTD(this)),_.J("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.z2(this)),this.activeModules.push(new _.gmU(this)),this.activeModules.push(new _.VKe(this)),_.J("web_enable_timely_actions")&&this.activeModules.push(new _.jhq(this)),_.J("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.GO1(this)),_.J("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.KvD(this)),
_.J("web_fullscreen_components")&&this.activeModules.push(new _.jNO(this)),_.J("web_player_rtr_ctrls")&&this.activeModules.push(new _.ElD(this))):(_.hx(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.R.disposeInternal=function(){_.Yh.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.H7.Object.defineProperties(fU1.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var HNv={},vXO=["learning-journey-engagement-panel","PAlearning_chat"];
HNv.YtdLearningJourneyWatchBehavior=[_.k.YtRendererBehavior,_.im.YtPlayerListenerBehavior,_.h$.YtRendererstamperBehavior,_.dt.YtActionHandlerBehavior,_.oL.YtPageBehavior,_.S3.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 _.P6("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.J("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 _.P6("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 _.J("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.J("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 _.VQ("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.VQ("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.J("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.J("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("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 _.J("web_watch_rounded_player_large")||_.J("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 _.J("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.J("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("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 _.J("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("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:_.EX(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.EX(["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 f=this;this.watchController=void 0;this.pageDisposeJobs=[function(){f.showMetadataPlaceholder_()},
function(){_.J("web_watch_dont_clear_comments")||f.clearComments_()},
function(){f.clearPlayerAds_()},
function(){f.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.J("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.J("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.evo(function(){return _.Hx(f)},this.hostElement);
this.pageDisposeJobs.push(function(){f.youThereManager_.reset()});
_.J("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){f.resetFullerscreenEduButtonForNewPlayback_()}));
_.J("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.hH;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;_.J("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.J("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));_.J("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.jr(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(f){f&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:f}),f.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(f){_.J("kevlar_watch_flexy_theater_manager")&&(this.theater=f,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.J("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(f){!_.J("kevlar_watch_while_v2")&&!_.J("web_watch_pip")||f||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(f){this.active!==void 0&&(this.fullscreen=f,_.J("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(f){this.active!==void 0&&(_.YE(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.J("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.J("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(f>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(f){this.initCsi_();this.updatePageData_(f)},
updatePageData_:function(f){var H=this;if(f)if(this.data===f){this.onPageLoadWithSameData_();var v;(v=this.watchController)==null||v.setWatchNextResponse(this.data)}else this.data=f;this.playlist&&_.nQ({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.u0("nw");this.loading=!1;_.Lb(_.nN,function(){H.initDclkstatus_();var t,M=((t=H.player)==null?void 0:t.getVideoData().cpn)||"";_.mJ1(function(h,y){_.DVx(h,y,M)})})},
onPageLoadWithSameData_:function(){_.J("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 f=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!f);this.set("loadingData.playlistLoading",f&&f!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),f=this.watchNextSkeletonEl_.firstElementChild;f;)f.classList.remove("hidden"),f=f.nextElementSibling;var H,v,t;f=(H=this.loadingData)==null?void 0:(v=H.endpoint)==null?void 0:(t=v.watchEndpoint)==null?void 0:t.videoId;var M;f&&(M="https://i.ytimg.com/vi/"+f+"/frame0.jpg");_.mF(this.hostElement).querySelector("#player").style.backgroundImage=M?"url("+M+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var f=_.mF(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&f&&(f.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var H,v;(v=(H=this.watchMetadata).updateSentimentBarWidth)==
null||v.call(H);var t,M;(M=(t=this.watchMetadata).resize)==null||M.call(t)}_.mF(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(f){var H=_.mF(this.hostElement).querySelector(f);H?_.VZ(H,!1):_.pb(new _.e$("Overscroll monitor not found for component: ",f))},
removeSplitScrollMouseTrap:function(f){var H=_.mF(this.hostElement).querySelector(f);H?_.yZ(H):_.pb(new _.e$("Disposal component for  overscroll monitoring not found: ",f))},
onLoadingChanged_:function(f){f?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(f){var H=this;f?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.nN.addLowPriorityJob(function(){H.onWindowResized_(_.BS(!0))})},
updateTheaterModeState_:function(f){if(!_.J("kevlar_watch_flexy_theater_manager")){f=f||this.fullWindowMode_;if(this.theater!==void 0||f)this.theater=f;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();f&&_.y9o()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var f=this.theater;_.J("external_fullscreen")&&this.fullscreen&&(f=!0);f=f?_.mF(this.hostElement).querySelector("#player-full-bleed-container"):_.mF(this.hostElement).querySelector("#player-container-inner");var H=this.getPlayerContainer(),v=_.J("kevlar_watch_while_v2")||_.J("web_watch_pip");H.parentElement!==f&&(v&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.Hx(this).appendTo(f,H),f.appendChild(_.mF(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var f=this;return _.Y(function(H){if(H.nextAddress==1)return H.yield(_.t8().resolve(_.o0).deactivate(),2);f.updatePlayerLocation();_.Bj(H)})},
updateCinematicsLocation:function(){var f=this.getElement("CINEMATICS");if(f){var H=this.getCinematicsLocationContainer();f.parentElement!==H&&H.appendChild(f);var v;(v=this.watchController)==null||v.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.mF(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.mF(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(f,H){var v=document.documentElement.hasAttribute("dark"),t=v&&_.J("web_cinematic_theater_mode"),M=v&&_.J("web_cinematic_fullscreen");v=!v&&this.cinematicLightTheme;return f&&t||H&&M||(H||f)&&v},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var f;(f=this.watchController)==null||f.setWatchNextResponse(this.data);_.J("kevlar_watch_flexy_comments_manager")||this.initComments_();_.J("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.t8().resolve(_.u3).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.J("web_watch_start_chat_in_theater_mode")){var H,
v,t;if((H=this.data)==null?0:(v=H.contents)==null?0:(t=v.twoColumnWatchNextResults)==null?0:t.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var M,h;((M=this.data)==null?0:(h=M.contents)==null?0:h.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(f){var H;(H=this.watchController)==null||H.setPlayerResponse(this.playerData);f&&f.playabilityStatus&&(H=this.isVideoPlayable_(f.playabilityStatus,this.getPlayerOverlays_(this.data)),f=this.isLiveStreamOffline_(f.playabilityStatus),H&&!f||_.qV(this,function(){_.u0("pbu")}));
this.setPlayerAds_();_.$E(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(f){_.vS().dispatch(_.yq({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));f?this.activate_():this.deactivate_()},
attached:function(){var f=this;this.watchController=new fU1(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.J("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var H=_.Hx(this);_.J("kevlar_disable_prepare_player")||H.preparePlayer();_.J("kevlar_watch_flexy_playlist_manager")||_.t8().resolve(_.u3).setPlayer(H);this.updatePageMediaQueries();H={"--ytd-watch-flexy-scrollbar-width":_.P$()+
"px"};!_.VQ("kv_pl_mx_sz_ks")&&_.VQ("kevlar_watch_max_player_width")&&(H["--ytd-watch-flexy-max-player-width-wide-screen"]=_.XAq+"px");_.VQ("kevlar_watch_flexy_metadata_height")&&(H["--ytd-watch-flexy-space-below-player"]=_.AWM+"px");this.safeUpdateStyles(H);_.J("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new qke(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return f.onPlayerTouchPanDown_()}}));
_.J("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.mF(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var f=_.P$(),H=_.QN+f,v=H;this.fixedPanels&&(H+=_.cWO);var t=657+f;f=1327+f;_.mF(this.hostElement).querySelector("#two-column-query").query="(min-width: "+H+"px)";_.mF(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(t+"px), (min-height: 630px) and (min-width: ")+(H+"px) and (max-width: ")+(f+"px)");_.mF(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(f+"px)");
_.mF(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+v+"px)"},
calculateCurrentPlayerSize_:function(){var f=_.mF(this.hostElement).querySelector("#miniplayer-bar").firstChild;return f&&f.active||this.theater||_.J("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.eF(NaN,NaN):_.EQ(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.EQ(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Mj(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var f=this;this.onWindowResized_(_.BS());_.J("browse_skeleton_removal_on_watch_killswitch")||_.P6("IS_SHELL_LOAD")&&_.q9r();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var H=_.Hx(this);H.addEventListener("yt-player-updated",_.jr(this,this.onPlayerUpdated_));H.getPlayerPromise().then(function(v){f.playerApiReady_(v)});
_.J("kevlar_watch_flexy_playlist_manager")||(H=_.t8().resolve(_.u3),_.J("kevlar_watch_observe_playlist_navigations_killswitch")&&H.addEventListener("yt-navigate",_.jr(this,this.onYtNavigate_)),H.setPlaylistComponent(_.mF(this.hostElement).querySelector("#playlist")),H.addEventListener("yt-playlist-data-updated",_.jr(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.nN.addLowPriorityJob(function(){_.YE(f.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Hx(this).removeEventListener("yt-player-updated",_.jr(this,this.onPlayerUpdated_));if(!_.J("kevlar_watch_flexy_playlist_manager")){var f=_.t8().resolve(_.u3);_.J("kevlar_watch_observe_playlist_navigations_killswitch")&&f.removeEventListener("yt-navigate",_.jr(this,this.onYtNavigate_));f.cancelVideoSkip();f.removeEventListener("yt-playlist-data-updated",_.jr(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.J("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.YE(this.hostElement,"yt-autonav-pause-player",!1);f=_.M6();_.J("kevlar_exit_fullscreen_leaving_watch")&&f&&_.Rr(f)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(f){this.player&&this.player.updateVideoData({rvs:f.rvs})},
getPageContents:function(f){return f&&f.contents&&f.contents.twoColumnWatchNextResults&&f.contents.twoColumnWatchNextResults.results&&f.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(f){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",f)},
onRetrieveLocation_:function(f,H){H.hasComments?H.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):H.locationRetrieved("/related_ajax",void 0);f.stopPropagation()},
onSubscriptionChanged_:function(f,H){this.player&&(H?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.DG("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.mF(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.mF(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(f){this.player=f;this.setPlayerState(f.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.J("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.J("kevlar_unified_player")||_.J("kevlar_player_new_bootstrap_adoption"))&&_.ac()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(f,H){H=H===void 0?!0:H;_.M6()&&_.J("external_fullscreen")&&_.Rr(document.documentElement);this.theaterRequested_=f;H&&_.Zy("wide",f?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.J("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.mb(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.YE(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(f){_.u$(f,typeof this.player),this.player&&_.u$(f,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var f;((f=this.player)==null?0:f.isFullscreen())?this.player.toggleFullscreen():_.mb(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(f,H){return this.loading?H:!!Object.keys(f).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(f){if(f){f=_.V(f);for(var H=f.next();!H.done;H=f.next())H=H.value,H.youThereRenderer&&_.BHM(this.youThereManager_,H.youThereRenderer)}},
setPlaylistData_:function(f){return f||{}},
userEngagementConfigDataChanged_:function(f){if(f)if(f.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var H=this.youThereManager_;_.h7()<f.lowEngagementThresholdMs||_.KpD(H,!0)}else f.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.mb(this.hostElement,"yt-autonav-pause-user-engagement",[f])},
isPlayerUnavailable_:function(f,H,v){return!!f&&!this.isVideoPlayable_(f,v)&&!H},
getPlayerOverlays_:function(f){return(f==null?void 0:f.playerOverlays)||null},
isVideoPlayable_:function(f,H){if(!f)return!1;var v=f.status==="OK"||f.status==="LIVE_STREAM_OFFLINE",t=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",f)||this.get("errorScreen.ypcTrailerRenderer",f);f=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",f);var M;H=H==null?void 0:(M=H.playerOverlayRenderer)==null?void 0:M.gatedActionsOverlayRenderer;return!!v||!!t||!!f||!!H},
hasWatchNextResponseErrorRenderer:function(f){var H=this.getPageContents(f),v,t,M,h,y;return!(f==null?0:(v=f.contents)==null?0:(t=v.twoColumnWatchNextResults)==null?0:t.secondaryResults)&&!!((M=H[0])==null?0:(h=M.itemSectionRenderer)==null?0:(y=h.contents[0])==null?0:y.backgroundPromoRenderer)},
isLiveStreamOffline_:function(f){return f?f.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(f,H,v){var t=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",H),M=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];M=_.J("web_no_skip_video_on_verification_checks")?(f==null?void 0:f.status)&&M.includes(f.status):f&&f.status==="AGE_CHECK_REQUIRED";var h=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",f);h==void 0&&(h=!0);!v||this.isVideoPlayable_(f,this.getPlayerOverlays_(H))||
t||M||!h||_.t8().resolve(_.u3).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.Sko()},
onPlayerFeedbackStartRequest_:function(f){_.mb(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:f}])},
onPlayerFeedbackArticleRequest_:function(f){_.mb(this.hostElement,"yt-help-dialog-requested",[f])},
onPlayerYpcContentRequest_:function(){var f,H,v,t,M,h,y,m,W=((f=this.data)==null?NaN:(H=f.contents)==null?NaN:(v=H.twoColumnWatchNextResults)==null?NaN:(t=v.secondaryResults)==null?NaN:(M=t.secondaryResults)==null?NaN:(h=M.offerModule)==null?NaN:(y=h.tvfilmOfferModuleRenderer)==null?NaN:(m=y.actionButtons)==null?NaN:m.length)-1;f=[".offerButton.buttonRenderer.",".actionButtons."+(W>=0?W:0)+".buttonRenderer."];H=_.V(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(v=H.next();!v.done;v=H.next())for(v=v.value,t=_.V(f),M=t.next();!M.done;M=t.next())if(M="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+v+M.value,M=this.get(M+"navigationEndpoint",this.data)||this.get(M+"serviceEndpoint",this.data)||this.get(M+"command",this.data)){_.sV(M,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(f){_.YE(this.hostElement,"yt-autonav-pause-player",f)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(f){f()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(f){switch(f){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(f){switch(f){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.YE(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(f)},
setPlayerState:function(f){_.vS().dispatch(_.S_o(f))},
onPlayerSubscribe_:function(f){_.mb(this.hostElement,"yt-player-subscribe",[f])},
onPlayerUnsubscribe_:function(f){_.mb(this.hostElement,"yt-player-unsubscribe",[f])},
onPlayerAdYtShowToast_:function(f){_.mb(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:f.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(f){if(f)return f},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(f){return!_.J("web_watch_move_summary_to_sd")&&!!f},
computeWatchMetadataRefresh:function(){return _.J("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var f,H,v,t;this.watchNextSecondaryResults=(f=this.data)==null?void 0:(H=f.contents)==null?void 0:(v=H.twoColumnWatchNextResults)==null?void 0:(t=v.secondaryResults)==null?void 0:t.secondaryResults}},
setRichGridRendererData:function(f){this.richGridRendererData=f},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var f,H=(f=this.data)==null?void 0:f.engagementPanels;if(H==null?0:H.length){f=null;H=_.V(H);for(var v=H.next();!v.done;v=H.next()){v=v.value;var t=void 0;if(((t=v.engagementPanelSectionListRenderer)==null?void 0:t.targetId)==="engagement-panel-structured-description"){f=v;break}}var M,h,y;f=(M=f)==null?void 0:(h=M.engagementPanelSectionListRenderer)==null?void 0:(y=h.content)==null?void 0:y.structuredDescriptionContentRenderer;if(f==null?0:f.items){M=
[];h=_.V(f.items);for(y=h.next();!y.done;y=h.next()){y=y.value;if(!_.J("sd_horizontal_list_show_nav_killswitch")){var m=t=v=H=f=void 0,W=void 0,I=(f=y.horizontalCardListRenderer)==null?void 0:(H=f.header)==null?void 0:(v=H.richListHeaderRenderer)==null?void 0:(t=v.navigationButton)==null?void 0:(m=t.buttonRenderer)==null?void 0:(W=m.command)==null?void 0:W.commandExecutorCommand;I&&I.commands&&(I.commands=I.commands.filter(function(S){return!_.U(S,_.Vp1)}))}y.expandableVideoDescriptionBodyRenderer||
y.videoDescriptionHeaderRenderer||M.push(y)}return{items:M}}}},
constructWarning_:function(f){return{text:_.qO(f),type:"WARNING"}},
isPlaShelfEnabled_:function(f){if((this.get("adPlacements",f)||[]).length)return!0;f=this.get("playerAds",f)||[];return!(!f.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",f[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var f=this;_.YE(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.J("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var H=this.getScrollTop()>0;this.gestures_&&(H?this.gestures_.detach():this.gestures_.attach());H!==this.showFullerscreenEdu_&&_.J("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=H,_.Hx(this).getPlayerPromise().then(function(v){v.updateFullerscreenEduButtonVisibility(f.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.YE(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var f=this;this.commentsReady=!1;_.nN.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Lb(_.nN,function(){f.setComments_()},1E3)},
setComments_:function(){if(!_.J("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.u0("cmi");_.nN.cancelJob(this.setCommentsJobId_);var f=this.getPageContents(this.data);if(f&&f.length){f=_.V(f);for(var H=f.next();!H.done;H=f.next())if(H=H.value,this.get("itemSectionRenderer.sectionIdentifier",H)==="comment-item-section"){this.comments=H.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.YE(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.J("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.J("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.u0("cmc")},
doRemoveComments_:function(){this.comments={};_.J("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.nN.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.nN.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(f,H){var v=_.U(H.endpoint,_.wI);v&&(!(H=this.get("data.currentVideoEndpoint.watchEndpoint"))||v.videoId!==H.videoId||v.playlistId&&v.playlistId!==H.playlistId||v.index!==void 0&&v.index!==H.index||typeof v.startTimeSeconds!=="number"||(f.stopPropagation(),this.setScrollTop(0),_.Hx(this).getPlayerPromise().then(function(t){var M=v.startTimeSeconds;t.seekTo(M);t.wakeUpControls();M<t.getDuration()&&t.playVideo()})))},
updatePlayerStartTime_:function(){var f=_.Hl1();"t"in f&&(f=_.Iy4(f.t),this.player.seekTo(f,!0))},
updateTitleFromWatchNext:function(f){f=this.getPageContents(f);var H,v;(f=_.fG(f==null?void 0:(H=f[0])==null?void 0:(v=H.videoPrimaryInfoRenderer)==null?void 0:v.title))&&_.YE(this.hostElement,"yt-update-title",f)},
updateTitle_:function(f){f=this.get("videoDetails.title",f)||"";_.YE(this.hostElement,"yt-update-title",f)},
syncWithRemoteVideo_:function(f,H,v){if(this.active&&this.player){var t=this.player.getVideoData();if(t.video_id===v&&(v=t.list,_.J("polymer_enable_mdx_queue")&&v&&v.startsWith("RQ")&&(v=void 0),t.video_id!==f||v!=H)){var M;_.J("kevlar_player_watch_endpoint_navigation")?M=_.HaH(_.$JD(f,H)):M=this.buildWatchEndpoint_(f,H);_.YE(this.hostElement,"yt-navigate",{endpoint:M,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(f,H,v){return _.MO(f,H,v)},
initDclkstatus_:function(){_.gZe()},
attachWatchPageSkeleton_:function(){var f=document.querySelector("#watch-page-skeleton");if(f){var H=f.querySelector("#primary-info"),v=f.querySelector("#secondary-info"),t=f.querySelector("#related");H&&_.mF(this.hostElement).querySelector("#info-skeleton").appendChild(H);v&&_.mF(this.hostElement).querySelector("#meta-skeleton").appendChild(v);t&&(_.mF(this.hostElement).querySelector("#related-skeleton").appendChild(t),this.watchNextSkeletonEl_=t);_.U1(f)}},
handlePlayerUpdated_:function(){_.Hx(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(f,H){if(this.watchNextSkeletonEl_&&typeof H!=="undefined"){var v=this.watchNextSkeletonEl_.children,t=f&&f.indexSplices.length?f.indexSplices[0].index:0;f=Math.min(this.watchNextShownItems.length,v.length);H||(t=0,f=v.length);for(H=t;H<f;H++)v[H].classList.add("hidden")}},
onPlayerFullscreenChange_:function(f){_.J("external_fullscreen")||_.mb(this.hostElement,"yt-player-fullscreen",[f.fullscreen])},
onFullscreenChange_:function(f){this.fullscreen=f;this.gestures_&&this.gestures_.update(this.fullscreen);var H=_.Hx(this);H.getPlayerPromise().then(function(v){v.setFauxFullscreen(!!_.M6())});
this.updateFullBleedElementLocations();f&&(H.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(f,H){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!H},
computeIsDonationShelfCollapsed_:function(f){return f},
computeShouldShowMerchShelf:function(f,H){return H&&!!f},
computeResponseHasComments:function(f){var H,v,t,M,h;return!!(f==null?0:(H=f.contents)==null?0:(v=H.twoColumnWatchNextResults)==null?0:(t=v.results)==null?0:(M=t.results)==null?0:(h=M.contents)==null?0:h.some(function(y){var m;return(y==null?void 0:(m=y.itemSectionRenderer)==null?void 0:m.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(f,H){this.responseHasComments=this.computeResponseHasComments(this.data);return!!f&&!!Object.keys(f).length&&!H},
identity:_.Cg,onWindowResized_:function(f){this.windowSize_=f;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.J("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.J("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(f){var H=this;f&&f.type!=="dataloaded"&&f.type!=="dataupdated"||_.Hx(this).getPlayerPromise().then(function(v){var t=v.getPlayerState();t!==5&&t!==0&&(v=1/v.getVideoAspectRatio(),H.videoHeightToWidthRatio_!==v&&(H.videoHeightToWidthRatio_=v))})},
schedulePlayerSizeUpdate_:function(f){var H=this,v=_.J("kevlar_watch_while_v2")||_.J("web_watch_pip"),t=function(){if(H.watchMetadata){var M,h;(h=(M=H.watchMetadata).resize)==null||h.call(M)}_.Hx(H).getPlayerPromise().then(function(y){if(_.J("kevlar_set_internal_player_size")){if(!v||!H.isMiniplayerActive()){var m=H.calculateCurrentPlayerSize_();y.setInternalSize(m.width,m.height)}}else y.setSize(NaN,NaN);_.J("kevlar_watch_while")&&H.updateWatchWhileScrollThreshold_()})};
f?t():_.Vk(_.nN,t)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(f){this.set("data.survey",f.detail)},
onYtShowSurveyCommand_:function(f){this.set("data.survey",_.U(f,_.UJA).survey)},
onDownloadedVideoDeleted:function(f){var H=this,v,t;return _.Y(function(M){if(M.nextAddress==1){if(!H.active||(v=H.playerData)==null||!v.offlineState||H.videoId!==f)return M.return();(t=H.player)==null||t.stopVideo();_.S0().navigatingAwayFromWatchDeletedVideo=!0;_.sV(_.knB,H.hostElement);return M.yield(_.S0().navigationFinishPromise,2)}_.S0().navigatingAwayFromWatchDeletedVideo=!1;_.Bj(M)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var f;this.theater?f=_.FL(.5625*this.windowSize_.width,480,this.windowSize_.height-185):f=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==f&&(this.watchWhileScrollThreshold_=f,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var f=_.mF(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&f){var H=this.windowSize_.height>=624,v=this.active?this.getScrollTop():0;!f.active&&H&&v>=this.watchWhileScrollThreshold_?(f.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):f.active&&(!H||v<this.watchWhileScrollThreshold_&&!_.M6())&&(f.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(f,H){if(f!==!0||H!==void 0){f=!_.J("live_chat_over_engagement_panels");H=_.mF(this.hostElement).querySelector("#chat-container");var v=_.mF(this.hostElement).querySelector("#plj-sidebar"),t=_.mF(this.hostElement).querySelector("#panels"),M=_.mF(this.hostElement).querySelector("#plj-panels"),h=_.mF(this.hostElement).querySelector("#plj-playlist"),y=_.mF(this.hostElement).querySelector("#alerts"),m=_.mF(this.hostElement).querySelector("#playlist"),W=_.mF(this.hostElement).querySelector("#related"),
I=_.mF(this.hostElement).querySelector("#donation-shelf"),S=_.mF(this.hostElement).querySelector("#comments");this.isTwoColumns_?(y=_.mF(this.hostElement).querySelector("#secondary-inner"),y.appendChild(v),v.appendChild(h),h.appendChild(m),v.appendChild(M),f&&y.appendChild(t),_.J("web_watch_theater_chat")||y.appendChild(H),f||y.appendChild(t),y.appendChild(I),y.appendChild(W)):(f&&_.x0(t,y),_.x0(m,y),_.J("web_watch_theater_chat")||_.x0(H,y),f||_.x0(t,y),_.x0(I,y),S&&(M&&_.x0(M,S),_.x0(W,S)));_.J("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.J("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.J("web_watch_theater_chat")){var f=_.mF(this.hostElement).querySelector("#chat-container"),H=this.theater&&!this.fullscreen||_.J("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&H?_.J("web_watch_theater_chat_beside_player")?(H=_.mF(this.hostElement).querySelector("#panels-full-bleed-container"),(f==null?void 0:f.parentElement)!==H&&H.append(f),this.panelsBesidePlayer=!0):_.J("web_watch_theater_fixed_chat")&&
(H=_.mF(this.hostElement).querySelector("#columns"),(f==null?void 0:f.parentElement)!==H&&H.append(f),this.fixedPanels=!0):(_.J("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.J("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),H=_.mF(this.hostElement).querySelector("#playlist"),f&&H?_.B4(f,H):_.pb(new _.e$("Missing element when updating chat location",{"chatContainer defined":!!f,"playlist defined":!!H})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(f,H){return _.J("sw_metadata_vis_toggle_ks")?!0:!!f||!!H},
computeForceDarkPanelTheme:function(f){return _.J("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&f:!1},
safeUpdateStyles:function(f){try{_.Sr(this.hostElement,f)}catch(H){_.pb(H)}},
videoHeightToWidthRatioChanged_:function(f,H){H&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.J("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(f){this.videoHeightToWidthRatio_=1/f},
computeIsVerticalVideo_:function(f){return f>=1},
computeIsFourThreeToSixteenNineVideo_:function(f){return f<=.7501&&f>=.5624},
computeIsExtraWideVideo_:function(f){return f<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.Hx(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Hx(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.DJ4(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(f){var H=_.Oz(f)||0;_.WH(f,H+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var f=_.Oz("yt-fullerscreen-edu-button-click-count")||0,H=_.Oz("yt-fullerscreen-edu-button-shown-count")||0,v=_.VQ("external_fullscreen_button_shown_threshold"),t=f>=_.VQ("external_fullscreen_button_click_threshold")||H>=v;_.Hx(this).getPlayerPromise().then(function(M){M.updateFullerscreenEduButtonSubtleModeState(t)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(f,H){return H},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.t8().resolve(_.u3).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var f=this;this.panelMaxHeightUpdateJob_&&_.nN.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.nN.addLowPriorityJob(function(){f.panelMaxHeightUpdateJob_=0;var H;!f.isTwoColumns_||f.theater||f.fullscreen?H=460:H=f.calculateNormalPlayerSize_().height;var v=H+"px";_.J("live_chat_taller_height")&&!f.theater&&(v="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.J("live_chat_medium_height")&&
!f.theater&&(v="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.J("live_chat_scaled_height")&&!f.theater&&(v="calc(100vh - var(--ytd-toolbar-height) - 238px)");f.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":H+"px","--ytd-watch-flexy-chat-max-height":v,"--ytd-watch-flexy-structured-description-max-height":H+"px","--ytd-watch-flexy-comments-panel-max-height":H+"px","--ytd-comments-engagement-panel-content-height":H+"px"})})},
onYtShowEngagementPanelScrimAction_:function(f){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",f)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Oj(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(f){var H=_.mF(this.hostElement).querySelector("#engagement-panel-scrim");f?H.addEventListener("tap",_.jr(this,this.onEngagementPanelScrimClick_)):H.removeEventListener("tap",_.jr(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(f){if(this.hostElement.contains(f)&&!this.scrollToAnimation_.isAnimating()){var H=f.offsetTop-24;f=f.offsetTop+f.offsetHeight+24;var v=this.getPageScrollingElement(),t=this.getScrollTop(),M=t+v.clientHeight-56;if(H<t+56)H-=56;else if(f>M)H=f-v.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,H),500)}},
onYtSignalActionScrollToComments:function(){var f=this.hostElement.querySelector("#comments");if(f&&!this.scrollToAnimation_.isAnimating()){f=f.offsetTop-56-24;if(_.J("kevlar_comment_teaser_scroll_to_midpoint")&&(f-=_.Ld().height/3,f<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,f),500)}},
onYtEngagementPanelVisibleChanged:function(f,H,v){this.active&&this.trackEngagementPanelVisibility&&!_.J8O.includes(v)&&(H==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(v),H!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&H!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(v),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(f){return f?"":"watch-active-metadata"},
computeNewMetadataClass:function(f){return f?"watch-active-metadata":""},
computeFullBleedPlayer:function(f,H){return f||H},
computeDefaultLayout:function(f){return!f},
computeDefaultTwoColumnLayout:function(f,H){return!f&&H},
computeWatchWhilePanelsActive:function(f,H){return f||H},
computeNoBorderOnChat:function(f){return _.J("web_watch_theater_chat_no_border")&&f},
computeLiveChatPresentAndExpanded:function(f,H){return f&&!H},
computePanelExpanded:function(f,H,v){return f||H||v},
onChangeMarkersVisibility:function(f){_.Hx(this).getPlayerPromise().then(function(H){var v;(v=H.changeMarkerVisibility)==null||v.call(H,_.U(f,_.NK).isVisible||!1,_.U(f,_.NK).entityKeys||[],_.U(f,_.NK).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(f){this.liveChatCollapsed=f.detail;_.vS().dispatch(_.ZlD(f.detail))},
provideRenderingData:function(f,H){switch(f){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=H;break;case "PRIMARY_INFO":_.J("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=H);this.videoPrimaryInfoRendererValue=H==null?void 0:H.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.J("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=H);this.videoSecondaryInfoRendererValue=H==null?void 0:H.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
H;break;case "CLARIFICATION":this.clarifyBoxValue=H;break;case "LIVE_CHAT":this.conversationBar=H;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=H;break;case "PLAYLIST":this.externalPlaylistData_=H!=null?H:{};break;case "MERCH_SHELF":this.merchShelfValue=H==null?void 0:H.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=H;break;case "OFFER_MODULE":this.offerModule=H;break;case "LIMITED_STATE":this.limitedStateValue=H;break;case "DONATION_SHELF":this.donation=H;break;
case "ALERTS":this.alertsValue=H;break;case "COMMENTS":this.comments=H;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=H;break;case "ENGAGEMENT_PANELS":this.engagementPanels=H;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=H;break;case "RICH_GRID_RENDERER":this.richGridRendererData=H;break;case "EXPANDABLE_METADATA":this.expandableMetadata=H;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=H}},
toggleCinematicsActive:function(f){this.cinematicsActive=f},
isMiniplayerActive:function(){return _.t8().resolve(_.o0).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(f){return vXO.map(function(H){return f.find(function(v){var t;return(v==null?void 0:(t=v.engagementPanelSectionListRenderer)==null?void 0:t.targetId)===H})}).filter(function(H){return H!==void 0})},
getNonLearningJourneyEngagementPanels:function(f){return f.filter(function(H){var v;return!vXO.includes((H==null?void 0:(v=H.engagementPanelSectionListRenderer)==null?void 0:v.targetId)||"")})}}];var tkM;var qK=function(){var f=_.K.apply(this,arguments)||this;f.flexy=!0;f.learningJourney=!0;f.roundedInfoPanel=!0;f.viewTransitionEnabled=_.J("enable_player_resize_transition");f.smallerChatMinHeight=_.J("live_chat_smaller_min_height");f.cinematicTheaterMode=_.J("web_cinematic_theater_mode");f.transparentTheaterMode=_.J("web_transparent_theater_mode");f.cinematicFullscreen=_.J("web_cinematic_fullscreen");f.useLargerMaxPlayerValue=_.J("kevlar_flexy_use_larger_player_value");f.cinematicFullscreenV2=_.J("web_cinematic_fullscreen_v2");
f.isDarkTheme=document.documentElement.hasAttribute("dark");f.theaterLargerPlayer=_.J("web_watch_theater_larger_player");f.defaultCollapsePlaylist=_.J("web_watch_default_collapse_playlist");f.enableCanvasLayout=_.J("web_enable_canvas_on_learning_journey");return f};
_.e(qK,_.K);_.R=qK.prototype;_.R.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.R.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.R.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.R.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.R.ready=function(){var f=this,H=function(){f.onColumnScroll()};
this.primary.addEventListener("scroll",H);this.secondary.addEventListener("scroll",H)};
_.R.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.R.updateIsTwoColumnsFromBinding=function(f){_.J("web_watch_update_narrow_width_killswitch")||_.vS().dispatch(_.H0D(!f.detail.value));this.ytdWatchBehavior.isTwoColumns_=f.detail.value};
_.R.updateFlexySmallWindowFromBinding=function(f){this.ytdWatchBehavior.flexySmallWindow_=f.detail.value};
_.R.updateFlexyLargeWindowFromBinding=function(f){this.ytdWatchBehavior.flexyLargeWindow_=f.detail.value};
_.R.updateWatchWhileWindowSizeSufficientFromBinding=function(f){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=f.detail.value};
_.R.updateWatchNextCanShowMoreFromBinding=function(f){this.ytdWatchBehavior.watchNextCanShowMore=f.detail.value};
_.R.updateShownItemsFromBinding=function(f){f.detail.path?this.set(f.detail.path,f.detail.value):this.ytdWatchBehavior.watchNextShownItems=f.detail.value};
_.R.getElement=function(f){switch(f){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23109_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23109_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.H7.Object.defineProperties(qK.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 f;if((f=this.data)==null||!f.pageVisualEffects)return!1;for(var H=0;H<this.data.pageVisualEffects.length;H++)if(f=_.U(this.data.pageVisualEffects[H],_.Fp))return H=void 0,(H=f.config)==null?void 0:H.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.learningJourneyEngagementPanels)==null?void 0:f.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var f,H=(f=this.learningJourneyEngagementPanels)==null?void 0:f.find(function(Z){var l;return(Z==null?void 0:(l=Z.engagementPanelSectionListRenderer)==null?void 0:l.panelIdentifier)==="learning-journey-engagement-panel"});
if(H){var v,t,M,h,y,m,W,I,S;if(f=(I=((W=(y=((h=H==null?void 0:(v=H.engagementPanelSectionListRenderer)==null?void 0:(t=v.content)==null?void 0:(M=t.sectionListRenderer)==null?void 0:M.contents)!=null?h:[])[0])==null?void 0:(m=y.itemSectionRenderer)==null?void 0:m.contents)!=null?W:[])[0])==null?void 0:(S=I.accordionViewModel)==null?void 0:S.onTitleTap){var d=_.GK(f);if(d)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.jW.instance.resolveCommand(d)}}}}}}});
_.H7.Object.defineProperties(qK,{template:{configurable:!0,enumerable:!0,get:function(){if(tkM===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);tkM=f}f=tkM;return f}}});
qK.prototype.updateMiniplayerIsActiveValue=qK.prototype.updateMiniplayerIsActiveValue;qK.prototype.updateScrollTopValue=qK.prototype.updateScrollTopValue;qK.prototype.updateFullscreenValue=qK.prototype.updateFullscreenValue;qK.prototype.updateTheaterValue=qK.prototype.updateTheaterValue;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],qK.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],qK.prototype,"ytComponentBehavior",void 0);
_.E([_.B(HNv.YtdLearningJourneyWatchBehavior),_.N("design:type",Object)],qK.prototype,"ytdWatchBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],qK.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],qK.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],qK.prototype,"playerData",void 0);_.E([_.F(),_.N("design:type",Object)],qK.prototype,"browseData",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],qK.prototype,"flexy",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],qK.prototype,"learningJourney",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],qK.prototype,"roundedInfoPanel",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],qK.prototype,"viewTransitionEnabled",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],qK.prototype,"smallerChatMinHeight",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],qK.prototype,"cinematicTheaterMode",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],qK.prototype,"transparentTheaterMode",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],qK.prototype,"cinematicFullscreen",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],qK.prototype,"useLargerMaxPlayerValue",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],qK.prototype,"cinematicFullscreenV2",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],qK.prototype,"isDarkTheme",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],qK.prototype,"theaterLargerPlayer",void 0);_.E([_.F(),_.N("design:type",Object)],qK.prototype,"defaultCollapsePlaylist",void 0);_.E([_.F(),_.N("design:type",Object)],qK.prototype,"enableCanvasLayout",void 0);
_.E([_.F({reflectToAttribute:!0}),_.z("playerData","browseData","enableCanvasLayout"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],qK.prototype,"showBrowseResponse",null);_.E([_.F({reflectToAttribute:!0}),_.z("playerData","enableCanvasLayout"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],qK.prototype,"showWatchResponse",null);_.E([_.F({selector:_.nV}),_.N("design:type",Object)],qK.prototype,"theaterValue",void 0);
_.E([_.F({selector:_.pV}),_.N("design:type",Object)],qK.prototype,"fullscreenValue",void 0);_.E([_.F({selector:_.Lz}),_.N("design:type",Object)],qK.prototype,"scrollTopValue",void 0);_.E([_.F({selector:_.a5}),_.N("design:type",Object)],qK.prototype,"miniplayerIsActiveValue",void 0);_.E([_.lJ("#ytd-plj-player"),_.N("design:type",HTMLElement)],qK.prototype,"ytdPlayer",void 0);_.E([_.lJ("#playlist"),_.N("design:type",HTMLElement)],qK.prototype,"JSC$23109_ytdPlaylistPanelRenderer",void 0);
_.E([_.yx("ytd-comments"),_.N("design:type",HTMLElement)],qK.prototype,"ytdComments",void 0);_.E([_.lJ("#primary"),_.N("design:type",HTMLElement)],qK.prototype,"primary",void 0);_.E([_.lJ("#secondary"),_.N("design:type",HTMLElement)],qK.prototype,"secondary",void 0);_.E([_.lJ("#player-container"),_.N("design:type",HTMLElement)],qK.prototype,"playerContainer",void 0);_.E([_.lJ("#cinematics"),_.N("design:type",HTMLElement)],qK.prototype,"JSC$23109_cinematics",void 0);
_.E([_.Zw("theaterValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qK.prototype,"updateTheaterValue",null);_.E([_.Zw("fullscreenValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qK.prototype,"updateFullscreenValue",null);_.E([_.Zw("scrollTopValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qK.prototype,"updateScrollTopValue",null);
_.E([_.Zw("miniplayerIsActiveValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qK.prototype,"updateMiniplayerIsActiveValue",null);_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],qK.prototype,"cinematicLightTheme",null);_.E([_.F({reflectToAttribute:!0}),_.z("learningJourneyEngagementPanels"),_.N("design:type",Object),_.N("design:paramtypes",[])],qK.prototype,"hasLearningJourneyPanels",null);
_.E([_.z("learningJourneyEngagementPanels"),_.N("design:type",Object),_.N("design:paramtypes",[])],qK.prototype,"backButtonData",null);_.E([_.u({is:"ytd-watch-learning-journey"})],qK);_.ya.registerService(_.XeR,qK);
_.uS();
}catch(e){_._DumpException(e)}
try{
_.QX("Tm0L3c");
var c8L;var XhL;var A8V=function(){return _.K.apply(this,arguments)||this};
_.e(A8V,_.K);_.E([_.u({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],A8V);
_.G(A8V,"ytd-ghost-comments-renderer",function(){if(XhL===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);XhL=f}f=XhL;return f},{mode:1});var blv;var ilD=function(){return _.K.apply(this,arguments)||this};
_.e(ilD,_.K);_.E([_.u({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],ilD);
_.G(ilD,"ytd-ghost-watch-metadata-renderer",function(){if(blv===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);blv=f}f=blv;return f},{mode:1});var wb=function(){var f=_.K.apply(this,arguments)||this;f.ghostGridRenderer={rows:6};f.roundedInfoPanel=!0;f.hideOfferModules=!0;f.smallerChatMinHeight=_.J("live_chat_smaller_min_height");f.cinematicTheaterMode=_.J("web_cinematic_theater_mode");f.transparentTheaterMode=_.J("web_transparent_theater_mode");f.darkerPanels=_.J("web_watch_darker_panels");f.cinematicFullscreen=_.J("web_cinematic_fullscreen");f.cinematicFullscreenV2=_.J("web_cinematic_fullscreen_v2");f.isDarkTheme=document.documentElement.hasAttribute("dark");
return f};
_.e(wb,_.K);_.R=wb.prototype;_.R.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.R.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.R.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.R.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.R.ready=function(){var f=this,H=function(){f.onColumnScroll()};
this.primary.addEventListener("scroll",H);this.secondary.addEventListener("scroll",H)};
_.R.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.R.updateIsTwoColumnsFromBinding=function(f){this.ytdWatchBehavior.isTwoColumns_=f.detail.value};
_.R.updateFlexySmallWindowFromBinding=function(f){this.ytdWatchBehavior.flexySmallWindow_=f.detail.value};
_.R.updateFlexyLargeWindowFromBinding=function(f){this.ytdWatchBehavior.flexyLargeWindow_=f.detail.value};
_.R.updateWatchWhileWindowSizeSufficientFromBinding=function(f){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=f.detail.value};
_.R.updateWatchNextCanShowMoreFromBinding=function(f){this.ytdWatchBehavior.watchNextCanShowMore=f.detail.value};
_.R.updateShownItemsFromBinding=function(f){_.J("swatcheroo_direct_use_rich_grid")||(f.detail.path?this.set(f.detail.path,f.detail.value):this.ytdWatchBehavior.watchNextShownItems=f.detail.value)};
_.R.getElement=function(f){switch(f){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23097_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23097_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.H7.Object.defineProperties(wb.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null||!f.pageVisualEffects)return!1;for(var H=0;H<this.data.pageVisualEffects.length;H++)if(f=_.U(this.data.pageVisualEffects[H],_.Fp))return H=void 0,(H=f.config)==null?void 0:H.enableInLightTheme;return!1}}});
wb.prototype.updateMiniplayerIsActiveValue=wb.prototype.updateMiniplayerIsActiveValue;wb.prototype.updateScrollTopValue=wb.prototype.updateScrollTopValue;wb.prototype.updateFullscreenValue=wb.prototype.updateFullscreenValue;wb.prototype.updateTheaterValue=wb.prototype.updateTheaterValue;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],wb.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],wb.prototype,"ytComponentBehavior",void 0);
_.E([_.B(_.EZO.YtdWatchBehavior),_.N("design:type",Object)],wb.prototype,"ytdWatchBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],wb.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],wb.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],wb.prototype,"ghostGridRenderer",void 0);_.E([_.F(),_.N("design:type",Object)],wb.prototype,"playerData",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],wb.prototype,"roundedInfoPanel",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],wb.prototype,"hideOfferModules",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],wb.prototype,"smallerChatMinHeight",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],wb.prototype,"cinematicTheaterMode",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],wb.prototype,"transparentTheaterMode",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],wb.prototype,"darkerPanels",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],wb.prototype,"cinematicFullscreen",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],wb.prototype,"cinematicFullscreenV2",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],wb.prototype,"isDarkTheme",void 0);_.E([_.F({selector:_.nV}),_.N("design:type",Object)],wb.prototype,"theaterValue",void 0);
_.E([_.F({selector:_.pV}),_.N("design:type",Object)],wb.prototype,"fullscreenValue",void 0);_.E([_.F({selector:_.Lz}),_.N("design:type",Object)],wb.prototype,"scrollTopValue",void 0);_.E([_.F({selector:_.a5}),_.N("design:type",Object)],wb.prototype,"miniplayerIsActiveValue",void 0);_.E([_.lJ("#ytd-player"),_.N("design:type",HTMLElement)],wb.prototype,"ytdPlayer",void 0);_.E([_.lJ("#playlist"),_.N("design:type",HTMLElement)],wb.prototype,"JSC$23097_ytdPlaylistPanelRenderer",void 0);
_.E([_.lJ("#ytd-comments"),_.N("design:type",HTMLElement)],wb.prototype,"ytdComments",void 0);_.E([_.lJ("#primary"),_.N("design:type",HTMLElement)],wb.prototype,"primary",void 0);_.E([_.lJ("#secondary"),_.N("design:type",HTMLElement)],wb.prototype,"secondary",void 0);_.E([_.lJ("#player-container"),_.N("design:type",HTMLElement)],wb.prototype,"playerContainer",void 0);_.E([_.lJ("#cinematics"),_.N("design:type",HTMLElement)],wb.prototype,"JSC$23097_cinematics",void 0);
_.E([_.Zw("theaterValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wb.prototype,"updateTheaterValue",null);_.E([_.Zw("fullscreenValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wb.prototype,"updateFullscreenValue",null);_.E([_.Zw("scrollTopValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wb.prototype,"updateScrollTopValue",null);
_.E([_.Zw("miniplayerIsActiveValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wb.prototype,"updateMiniplayerIsActiveValue",null);_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],wb.prototype,"cinematicLightTheme",null);
_.G(wb,"ytd-watch-grid",function(){if(c8L===void 0){var f=document.createElement("template");_.x(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n          <ytd-rich-grid-renderer continuation-show-button="[[showRichGridContinuationButton]]" data="[[richGridRendererData]]" disable-upgrade$="[[!richGridRendererData]]" hidden="[[!richGridRendererData]]" hide-chips-bar="" is-watch-default-layout="[[defaultTwoColumnLayout]]" item-max-width="[[richItemMaxWidth]]" item-min-width="[[richItemMinWidth]]" reduced-bottom-margin="" row-reduced-horizontal-margin="" transparent-background-chips-bar="" class="style-scope ytd-watch-grid">\n          </ytd-rich-grid-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[richGridRendererData]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);c8L=f}f=c8L;return f},{mode:2});_.ya.registerService(_.c0b,wb);
_.uS();
}catch(e){_._DumpException(e)}
try{
_.QX("CF909");
var NH1;var T2=function(){var f=_.K.apply(this,arguments)||this;f.flexy=!0;f.roundedInfoPanel=!0;f.viewTransitionEnabled=_.J("enable_player_resize_transition");f.smallerChatMinHeight=_.J("live_chat_smaller_min_height");f.cinematicTheaterMode=_.J("web_cinematic_theater_mode");f.transparentTheaterMode=_.J("web_transparent_theater_mode");f.cinematicFullscreen=_.J("web_cinematic_fullscreen");f.useLargerMaxPlayerValue=_.J("kevlar_flexy_use_larger_player_value");f.isDarkTheme=document.documentElement.hasAttribute("dark");
f.defaultCollapsePlaylist=_.J("web_watch_default_collapse_playlist");f.retroModeReduxValue=!1;return f};
_.e(T2,_.K);_.R=T2.prototype;_.R.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.R.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.R.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.R.updateRetroModeReduxValue=function(){_.J("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.R.ready=function(){var f=this,H=function(){f.onColumnScroll()};
this.primary.addEventListener("scroll",H);this.secondary.addEventListener("scroll",H)};
_.R.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.R.updateIsTwoColumnsFromBinding=function(f){_.J("web_watch_update_narrow_width_killswitch")||_.vS().dispatch(_.H0D(!f.detail.value));this.ytdWatchBehavior.isTwoColumns_=f.detail.value};
_.R.updateFlexySmallWindowFromBinding=function(f){this.ytdWatchBehavior.flexySmallWindow_=f.detail.value};
_.R.updateFlexyLargeWindowFromBinding=function(f){this.ytdWatchBehavior.flexyLargeWindow_=f.detail.value};
_.R.updateWatchWhileWindowSizeSufficientFromBinding=function(f){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=f.detail.value};
_.R.updateWatchNextCanShowMoreFromBinding=function(f){this.ytdWatchBehavior.watchNextCanShowMore=f.detail.value};
_.R.updateShownItemsFromBinding=function(f){f.detail.path?this.set(f.detail.path,f.detail.value):this.ytdWatchBehavior.watchNextShownItems=f.detail.value};
_.R.getElement=function(f){switch(f){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23092_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23092_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary}};
_.H7.Object.defineProperties(T2.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null||!f.pageVisualEffects)return!1;for(var H=0;H<this.data.pageVisualEffects.length;H++)if(f=_.U(this.data.pageVisualEffects[H],_.Fp))return H=void 0,(H=f.config)==null?void 0:H.enableInLightTheme;return!1}}});
_.H7.Object.defineProperties(T2,{template:{configurable:!0,enumerable:!0,get:function(){if(NH1===void 0){var f=document.createElement("template");_.x(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);NH1=f}f=NH1;return f}}});
T2.prototype.updateRetroModeReduxValue=T2.prototype.updateRetroModeReduxValue;T2.prototype.updateScrollTopValue=T2.prototype.updateScrollTopValue;T2.prototype.updateFullscreenValue=T2.prototype.updateFullscreenValue;T2.prototype.updateTheaterValue=T2.prototype.updateTheaterValue;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],T2.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],T2.prototype,"ytComponentBehavior",void 0);
_.E([_.B(_.EZO.YtdWatchBehavior),_.N("design:type",Object)],T2.prototype,"ytdWatchBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],T2.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],T2.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],T2.prototype,"playerData",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],T2.prototype,"flexy",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],T2.prototype,"roundedInfoPanel",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],T2.prototype,"viewTransitionEnabled",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],T2.prototype,"smallerChatMinHeight",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],T2.prototype,"cinematicTheaterMode",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],T2.prototype,"transparentTheaterMode",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],T2.prototype,"cinematicFullscreen",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],T2.prototype,"useLargerMaxPlayerValue",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],T2.prototype,"isDarkTheme",void 0);_.E([_.F(),_.N("design:type",Object)],T2.prototype,"defaultCollapsePlaylist",void 0);
_.E([_.F({selector:_.nV}),_.N("design:type",Object)],T2.prototype,"theaterValue",void 0);_.E([_.F({selector:_.pV}),_.N("design:type",Object)],T2.prototype,"fullscreenValue",void 0);_.E([_.F({selector:_.Lz}),_.N("design:type",Object)],T2.prototype,"scrollTopValue",void 0);_.E([_.F({selector:_.a5}),_.N("design:type",Object)],T2.prototype,"miniplayerIsActive",void 0);_.E([_.F({selector:function(f){return f.watch.isWatchRetroMode}}),
_.N("design:type",Object)],T2.prototype,"retroModeReduxValue",void 0);_.E([_.yx("ytd-player"),_.N("design:type",HTMLElement)],T2.prototype,"ytdPlayer",void 0);_.E([_.lJ("#playlist"),_.N("design:type",HTMLElement)],T2.prototype,"JSC$23092_ytdPlaylistPanelRenderer",void 0);_.E([_.yx("ytd-comments"),_.N("design:type",HTMLElement)],T2.prototype,"ytdComments",void 0);_.E([_.lJ("#primary"),_.N("design:type",HTMLElement)],T2.prototype,"primary",void 0);
_.E([_.lJ("#secondary"),_.N("design:type",HTMLElement)],T2.prototype,"secondary",void 0);_.E([_.lJ("#player-container"),_.N("design:type",HTMLElement)],T2.prototype,"playerContainer",void 0);_.E([_.lJ("#below"),_.N("design:type",HTMLElement)],T2.prototype,"below",void 0);_.E([_.lJ("#cinematics"),_.N("design:type",HTMLElement)],T2.prototype,"JSC$23092_cinematics",void 0);
_.E([_.Zw("theaterValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],T2.prototype,"updateTheaterValue",null);_.E([_.Zw("fullscreenValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],T2.prototype,"updateFullscreenValue",null);_.E([_.Zw("scrollTopValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],T2.prototype,"updateScrollTopValue",null);
_.E([_.Zw("retroModeReduxValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],T2.prototype,"updateRetroModeReduxValue",null);_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],T2.prototype,"cinematicLightTheme",null);_.E([_.u({is:"ytd-watch-flexy"})],T2);_.ya.registerService(_.NR_,T2);
_.uS();
}catch(e){_._DumpException(e)}
try{
_.QX("nmfa2d");
var fyV;var G2=function(){var f=_.K.apply(this,arguments)||this;f.hidden=!1;f.errorScreen=null;f.playlistData={};return f};
_.e(G2,_.K);_.R=G2.prototype;_.R.getPlayer=function(){return this.ytdPlayer};
_.R.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:_.EX(["aa","eocs"])}}};
_.R.onActiveChanged=function(){_.vS().dispatch(_.okU(this.ytPageBehavior.active))};
_.R.playerDataChanged=function(){var f;(f=this.watchController)==null||f.setPlayerResponse(this.playerData)};
_.R.dataChanged=function(){var f;(f=this.watchController)==null||f.setWatchNextResponse(this.data)};
_.R.sizeChanged=function(){var f,H;(H=(f=this.metadata).resize)==null||H.call(f)};
_.R.attached=function(){this.watchController=new _.ab(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.R.detached=function(){_.Mj(this.watchController);this.watchController=void 0};
_.R.getPlayerContainer=function(){return this.playerContainer};
_.R.getElement=function(f){switch(f){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.R.provideRenderingData=function(f,H){switch(f){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=H;break;case "ERROR_SCREEN":this.errorScreen=H!=null?H:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=H;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=H;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=H;break;case "RICH_METADATA":this.richMetadataRowContainer=H;break;case "CLARIFICATION":this.clarificationData=H;break;case "PLAYLIST":this.playlistData=
H!=null?H:{};break;case "MERCH_SHELF":this.merchShelf=H;break;case "TICKET_SHELF":this.ticketShelf=H;break;case "LIMITED_STATE":this.limitedState=H;break;case "DONATION_SHELF":this.donationShelf=H;break;case "ALERTS":this.alerts=H}};
_.H7.Object.defineProperties(G2.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var f,H,v;return!this.hidden&&!!((f=this.data)==null?0:(H=f.contents)==null?0:(v=H.twoColumnWatchNextResults)==null?0:v.conversationBar)}}});
G2.prototype.sizeChanged=G2.prototype.sizeChanged;G2.prototype.dataChanged=G2.prototype.dataChanged;G2.prototype.playerDataChanged=G2.prototype.playerDataChanged;G2.prototype.onActiveChanged=G2.prototype.onActiveChanged;_.E([_.B(_.oL.YtPageBehavior),_.N("design:type",Object)],G2.prototype,"ytPageBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],G2.prototype,"ytComponentBehavior",void 0);
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],G2.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],G2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],G2.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],G2.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],G2.prototype,"playerData",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],G2.prototype,"hidden",void 0);_.E([_.lJ("#ytd-player"),_.N("design:type",HTMLElement)],G2.prototype,"ytdPlayer",void 0);_.E([_.lJ("#player-container"),_.N("design:type",HTMLElement)],G2.prototype,"playerContainer",void 0);_.E([_.lJ("#metadata"),_.N("design:type",Object)],G2.prototype,"metadata",void 0);_.E([_.lJ("#playlist"),_.N("design:type",HTMLElement)],G2.prototype,"playlistPanel",void 0);
_.E([_.F({selector:_.RZM,reflectToAttribute:!0}),_.N("design:type",Object)],G2.prototype,"fixie",void 0);_.E([_.F({selector:_.hZe,reflectToAttribute:!0}),_.N("design:type",Object)],G2.prototype,"singleColumn",void 0);_.E([_.F({selector:function(f){return _.nV(f)&&!_.pV(f)},
reflectToAttribute:!0}),_.N("design:type",Object)],G2.prototype,"theater",void 0);_.E([_.F({selector:_.pV,reflectToAttribute:!0}),_.N("design:type",Object)],G2.prototype,"fullscreen",void 0);_.E([_.F({selector:_.KZ4}),_.N("design:type",Object)],G2.prototype,"windowSize",void 0);_.E([_.F(),_.N("design:type",Object)],G2.prototype,"singleColumnContents",void 0);_.E([_.F(),_.N("design:type",Object)],G2.prototype,"errorScreen",void 0);_.E([_.F(),_.N("design:type",Object)],G2.prototype,"playlistData",void 0);
_.E([_.F(),_.N("design:type",Object)],G2.prototype,"videoPrimaryInfoRenderer",void 0);_.E([_.F(),_.N("design:type",Object)],G2.prototype,"videoSecondaryInfoRenderer",void 0);_.E([_.F(),_.N("design:type",Object)],G2.prototype,"richMetadataRowContainer",void 0);_.E([_.F(),_.N("design:type",Object)],G2.prototype,"clarificationData",void 0);_.E([_.F(),_.N("design:type",Object)],G2.prototype,"commentsEntryPointHeaderRenderer",void 0);_.E([_.F(),_.N("design:type",Object)],G2.prototype,"ticketShelf",void 0);
_.E([_.F(),_.N("design:type",Object)],G2.prototype,"merchShelf",void 0);_.E([_.F(),_.N("design:type",Object)],G2.prototype,"donationShelf",void 0);_.E([_.F(),_.N("design:type",Object)],G2.prototype,"limitedState",void 0);_.E([_.F(),_.N("design:type",Object)],G2.prototype,"alerts",void 0);_.E([_.z("playlistData"),_.N("design:type",Object),_.N("design:paramtypes",[])],G2.prototype,"hasPlaylistData",null);
_.E([_.z("data","hidden"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],G2.prototype,"hasChat",null);_.E([_.Zw("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],G2.prototype,"onActiveChanged",null);_.E([_.Zw("playerData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],G2.prototype,"playerDataChanged",null);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],G2.prototype,"dataChanged",null);_.E([_.Zw("windowSize","singleColumn"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],G2.prototype,"sizeChanged",null);
_.G(G2,"ytd-watch-fixie",function(){if(fyV===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);fyV=f}f=fyV;return f},{mode:1});_.ya.registerService(_.EjR,G2);
_.uS();
}catch(e){_._DumpException(e)}
try{
_.QX("xwEKAe");
var iEF=function(f){return _.wk(f)?f.getAttribute("jsname")==="coFSxe":!1},k2x=function(f,H){H.id||(H.id="ow"+_.h9(H));
f.setAttribute("jsowner",H.id);f.__owner=H;var v=_.EZ(H,iEF);v&&(_.Rl9.has(v)||_.Rl9.set(v,[]),_.Rl9.get(v).push(f));(v=_.hl9.get(H))||_.hl9.set(H,v=[]);v.includes(f)||v.push(f);H.setAttribute("__IS_OWNER",!0)},Tbx=function(){var f=_.sPv(1);
f=_.vM(f,_.L$v);if(!(_.jP3(f)||f[_.Ag3]&&!f.__hasBeenSet))return f.value},w25=function(f){var H=_.Uj();
if(H.getFlag(202))H=H.getFlag(201);else{var v;H=(f==null?void 0:(v=f.config)==null?void 0:v.settingOnByDefault)!==void 0?f.config.settingOnByDefault:!_.J("web_shorts_cinematics_disabled_by_default")}return H},qQG=function(f){var H=_.Uj();
_.eG(0,201,f);_.eG(0,202,!0);H.save()},f_D=function(f){return(f=_.Ze5(f))?_.l$E(f):0},Hgv=function(f){return f.shorts.isSmallScreenSqueezeback},vvD=function(f){return f.shorts.isPlaybackStarted},hTL=function(f){var H=_.sPv(2),v=new Set;
_.Dt(function(){return void v.forEach(function(t){return void t()})});
return function(t){var M=_.HM(H);try{var h=tED(ME4(f),t);v.add(h);return function(){h();v.delete(h)}}finally{_.HM(M)}}},RTM=function(f){var H=f.children;
var v=f.root;_.ru(function(){var t=hTL(v)(H);_.Dt(t)});
return document.createTextNode("")},tED=function(f,H){var v=VEU(f);
(f=Tbx())&&k2x(v,f);H=_.V(_.Swe(H,!0));f=H.next().value;var t=H.next().value;v.append.apply(v,_.pS(f));return function(){t();v.remove()}},ME4=function(f){if(typeof f==="string")return f=document.querySelector(f),_.pbw(f),f;
if(_.yP(f)&&f.nodeType===Node.ELEMENT_NODE)return f;if(!f.__value&&!f.__optional){var H=_.iPs.USE_ELEMENT_NOT_ASSIGNED(f.__expectedTagName);f.__hasErrored=!0;throw H;}return f.value},VEU=function(f){var H=document.createElementNS(f.namespaceURI,f.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return f.appendChild(H)},yNV=function(f,H,v,t){f=H-f;
v=t-v;return Math.sqrt(f*f+v*v)},Y5v=function(f,H){f&&_.t8().resolve(_.MJ).resolveCommand(f,{forceClickLogging:!0,
form:{element:H}})},mrO=function(f,H,v,t){f=H-f;
v=t-v;return Math.sqrt(f*f+v*v)},$rq=function(f,H){f&&_.t8().resolve(_.MJ).resolveCommand(f,{forceClickLogging:!0,
form:{element:H}})},WsL=function(){return _.t8().resolve(_.Z5).dismissedIndices},OgU=function(f,H){var v,t,M,h,y,m,W,I,S;
return _.Y(function(d){if(d.nextAddress==1){v=_.t8().resolve(_.fhA);h=(t=v)==null?void 0:(M=t.reelWatchEndpointMap)==null?void 0:M.reelWatchSequence;m=(y=f.innertubeTransportService)!=null?y:_.t8().resolve(_.PS);if(!h)return d.jumpTo(2);W=h();return(I=W.JSC$13090_getRequest(H,{}))?d.yield(_.Q8(m,I.innerTubeRequest,I.input,H.clickTrackingParams,I.config),4):d.jumpTo(2)}return d.nextAddress!=2?(S=d.yieldResult,d.return(S)):d.return(void 0)})},gv4=function(f){return _.yq({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:f}})},I_4=function(f){return _.yq({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:f}})},hI=function(f){return _.yq({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:f}})};var RJ=function(f,H){if(f instanceof RJ)this.array_=f.array_;else{var v;if(v=_.Tb(f))a:{for(var t=v=0;t<f.length;t++){if(!_.Tb(f[t])||v>0&&f[t].length!=v){v=!1;break a}for(var M=0;M<f[t].length;M++)if(typeof f[t][M]!=="number"){v=!1;break a}v==0&&(v=f[t].length)}v=v!=0}if(v)this.array_=_.kv(f);else if(f instanceof _.eF)this.array_=S5U(f.height,f.width);else if(typeof f==="number"&&typeof H==="number"&&f>0&&H>0)this.array_=S5U(f,H);else throw Error("zo");}this.size_=new _.eF(this.array_[0].length,
this.array_.length)},drq=function(f,H,v){for(var t=0;t<f.getSize().height;t++)for(var M=0;M<f.getSize().width;M++)H.call(v,f.array_[t][M],t,M,f)},j3e=function(f,H){var v=new RJ(f.getSize());
drq(f,function(t,M,h){v.array_[M][h]=H.call(void 0,t,M,h,f)});
return v},S5U=function(f,H){for(var v=[],t=0;t<f;t++){v[t]=[];
for(var M=0;M<H;M++)v[t][M]=0}return v};
RJ.prototype.add=function(f){if(!_.J5h(this.size_,f.getSize()))throw Error("Ao");return j3e(this,function(H,v,t){return H+f.array_[v][t]})};
RJ.prototype.equals=function(f,H){if(this.size_.width!=f.size_.width||this.size_.height!=f.size_.height)return!1;H=H||0;for(var v=0;v<this.size_.height;v++)for(var t=0;t<this.size_.width;t++)if(!_.ZEr(this.array_[v][t],f.array_[v][t],H))return!1;return!0};
RJ.prototype.getSize=function(){return this.size_};
var VN=function(f,H,v){return H>=0&&H<f.size_.height&&v>=0&&v<f.size_.width?f.array_[H][v]:null};
RJ.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var yN=function(f,H,v,t){if(!(H>=0&&H<f.size_.height&&v>=0&&v<f.size_.width))throw Error("Bo`"+H+"`"+v+"`"+f.size_.height+"`"+f.size_.width);f.array_[H][v]=t};
RJ.prototype.multiply=function(f){if(f instanceof RJ){if(this.size_.width!=f.getSize().height)throw Error("Co");return s3o(this,f)}if(typeof f==="number")return Zgq(this,f);throw Error("Do");};
var s3o=function(f,H){var v=new RJ(f.size_.height,H.getSize().width);drq(v,function(t,M,h){for(var y=t=0;y<this.size_.width;y++)t+=VN(this,M,y)*VN(H,y,h);yN(v,M,h,t)},f);
return v},Zgq=function(f,H){return j3e(f,function(v){return v*H})};var JND=new _.Ak("inlineSurveyRenderer");var l_v=new _.Ak("interstitialViewModel");var Ur4=new _.Ak("reelNavigateCommand");var eTM=new _.Ak("reelNonVideoContentDismissalCommand");var LsM=new _.Ak("showReelsCommentsOverlayCommand");var xro=new _.Ak("shortsSuggestedActionViewModel");var BBo=new _.Ak("videoInteractionPopUpRenderer");var zTO;var FsM;var rND;var Ys=function(){var f=_.K.apply(this,arguments)||this;f.ctaVisualElement=null;f.currentCsn=null;return f};
_.e(Ys,_.K);_.R=Ys.prototype;_.R.onDataChanged=function(){this.maybeLogShows()};
_.R.computeButtonShape=function(){var f=this;if(this.data)return{buttonText:_.fG(this.data.text),state:"active",onTap:function(){f.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.R.maybeCreateCtaVe=function(){var f;if((f=this.data)!=null&&f.badgeInteractionLogging){var H;if(f=(H=this.data.badgeInteractionLogging)==null?void 0:H.trackingParams)this.ctaVisualElement=_.zK(f)}};
_.R.maybeLogClicks=function(){this.currentCsn=_.uy(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Ti(this.currentCsn,this.ctaVisualElement)};
_.R.maybeLogShows=function(){this.currentCsn=_.uy(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.i0(this.currentCsn,[this.ctaVisualElement])};
_.R.onTap=function(){var f;if((f=this.data)!=null&&f.onClickCommand){var H;this.ytComponentBehavior.resolveCommand((H=this.data)==null?void 0:H.onClickCommand);this.maybeLogClicks()}};
Ys.prototype.onDataChanged=Ys.prototype.onDataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Ys.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Ys.prototype,"ytComponentBehavior",void 0);_.E([_.F({}),_.N("design:type",Object)],Ys.prototype,"data",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ys.prototype,"onDataChanged",null);
_.E([_.u({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],Ys);
_.G(Ys,"ytd-shopping-overlay-badge-renderer",function(){if(rND!==void 0)return rND;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return rND=f},{mode:1});_.yn(_.AWb,"reel-sound-metadata-view-model",{props:{data:_.Rm,overlayDensity:_.Rm}});_.yn(_.cT5,"player-disclosure-view-model",{props:{data:_.ki}});_.yn(_.xDo,"pivot-button-view-model",{props:{data:_.Rm,className:_.Rm}});_.yn(_.Bxv,"reel-action-bar-view-model",{props:{data:_.ki,buttonShapeOverrideables:_.ki}});_.yn(_.a(function(f){function H(){var gB,O5,s5,U5,lH=(O5=_.U((gB=w())==null?void 0:gB.command,_.jA))==null?void 0:(s5=O5.item)==null?void 0:(U5=s5.notificationTextRenderer)==null?void 0:U5.successResponseText;if(lH)_.mb(t.value,"yt-open-popup-action",[_.MS(lH),t.value]);else if(c())Y5v(c(),L.value);else{var E5;Y5v((E5=w())==null?void 0:E5.command,L.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var v=f.data;var t=_.TN("yt-player-overlay-video-interactions");f=_.V(_.gp("0px",void 0,"O3ow6c"));var M=f.next().value,h=f.next().value;f=_.V(_.gp("0px",void 0,"V0TSYd"));var y=f.next().value,m=f.next().value;f=_.V(_.gp(0,void 0,"ipRdDf"));var W=f.next().value,I=f.next().value;f=_.V(_.gp(0,void 0,"ztYEKb"));var S=f.next().value,d=f.next().value,Z=function(){var gB;if(((gB=_.O7())==null?void 0:gB.getPlayerState())!==-1){t.value.style.display="inherit";var O5;(O5=_.O7())==null||O5.removeEventListener("onStateChange",
Z)}l()},l=function(){var gB=document.querySelector("video");
if(gB){I(gB.getBoundingClientRect().width);d(gB.getBoundingClientRect().height);var O5;h((gB==null?void 0:(O5=gB.style)==null?void 0:O5.left)||"0px");var s5;m((gB==null?void 0:(s5=gB.style)==null?void 0:s5.top)||"0px")}};
_.K4(function(){var gB,O5,s5;if(((gB=_.O7())==null?void 0:gB.getPlayerState())===-1&&Math.round(((s5=(O5=_.O7())==null?void 0:O5.getVideoAspectRatio())!=null?s5:0)*100)!==Math.round(W()/S()*100)){t.value.style.display="none";var U5,lH;d(W()/((lH=(U5=_.O7())==null?void 0:U5.getVideoAspectRatio())!=null?lH:1))}},"ikzYW");
_.ru(function(){var gB;(gB=_.O7())==null||gB.addEventListener("onStateChange",Z);window.addEventListener("resize",l);l();var O5,s5,U5;if((U5=(O5=v())==null?void 0:(s5=O5.regions)==null?void 0:s5[0])==null||!U5.transformationMatrix)throw Error("Ho");var lH;if((lH=v())==null?0:lH.trackingParams){var E5;_.UV().graftServerVe((E5=v().trackingParams)!=null?E5:"")}_.Dt(function(){var uH;(uH=_.O7())==null||uH.removeEventListener("onStateChange",Z);window.removeEventListener("resize",l)})});
var L=_.TN("svg"),r=_.V(_.gp(!1,void 0,"Thzfnf"));f=r.next().value;var n=r.next().value,Q=_.V(_.gp(!1,void 0,"nsniPd"));r=Q.next().value;var C=Q.next().value,w=function(){var gB;return _.U((gB=v())==null?void 0:gB.popUp,BBo)},c=function(){var gB;
return(gB=v())==null?void 0:gB.command},A=function(){return _.U(c(),_.U7)!==void 0};
Q=_.d6(function(){H();return!1});
var X={},fg={};return _.O("yt-player-overlay-video-interactions",{el:t},_.O("svg",{"on:mouseover":_.d6(function(){A()&&n(!0);C(!0);return!1}),
"on:mouseout":_.d6(function(){n(!1);C(!1);return!1}),
"on:keydown":_.d6(function(gB){gB.key==="Enter"&&H();return!1}),
"on:focus":_.d6(function(){A()&&n(!0);return!1}),
"on:blur":_.d6(function(){A()&&n(!1);return!1}),
el:L,tabindex:0,"aria-label":function(){var gB;return(gB=v())==null?void 0:gB.a11yString},
id:"player-overlay-video-interaction-svg",class:_.S2("ytPlayerOverlayVideoInteractionsInteractionsSvg",(X.ytPlayerOverlayVideoInteractionsInteractionsSvgHover=f,X),(fg.ytPlayerOverlayVideoInteractionsInteractionsSvgHideOutline=r,fg)),role:"button",style:function(){var gB,O5,s5,U5=(s5=(gB=v())==null?void 0:(O5=gB.regions)==null?void 0:O5[0].transformationMatrix)!=null?s5:[];gB=W();O5=S();s5=[];for(var lH=0,E5=-1;lH<U5.length;lH++)lH%3===0&&(E5++,s5[E5]=[]),s5[E5].push(U5[lH]);U5=new RJ(s5);s5=new RJ([[0,
1,1,0],[0,0,1,1],[1,1,1,1]]);s5=U5.multiply(s5);U5=new RJ([[0,0],[0,0],[0,0],[0,0]]);for(lH=0;lH<s5.getSize().width;lH++){E5=VN(s5,0,lH);var uH=VN(s5,1,lH);if(E5===null||uH===null)throw Error("Go`"+(lH+1).toString());yN(U5,lH,0,E5*gB);yN(U5,lH,1,uH*O5)}gB=VN(U5,0,0);lH=VN(U5,1,0);O5=VN(U5,0,1);E5=VN(U5,1,1);if(gB===null||lH===null||O5===null||E5===null)throw Error("Eo");s5=yNV(gB,lH,O5,E5);uH=VN(U5,3,0);U5=VN(U5,3,1);if(uH===null||U5===null)throw Error("Fo");U5=yNV(gB,uH,O5,U5);E5=(Number((E5*-1).toFixed(2))-
Number((O5*-1).toFixed(2)))/(Number(lH.toFixed(2))-Number(gB.toFixed(2)));uH=Math.atan(E5)*180/Math.PI;lH=E5===Number.POSITIVE_INFINITY?-90:E5===Number.NEGATIVE_INFINITY?90:Object.is(E5,-0)?180:E5===0?0:E5>0?uH*-1:gB<lH?uH*-1:Math.abs(uH)+180;return"left:calc("+gB+"px + "+M()+"); top:calc("+(O5+"px + "+y()+"); width:")+(s5+"px; height:")+(U5+"px; transform:rotate(")+(lH+"deg);")},
"on:click":Q}))},"nk"),"yt-player-overlay-video-interactions",{props:{data:_.ki}});_.yn(_.kfx,"yt-reel-metapanel-view-model",{props:{data:_.ki,overlayDensity:_.ki}});var Ks1=_.a(function(f){var H=f.children;var v=f.region;f=_.V(_.gp(void 0,void 0,"rwJZyc"));var t=f.next().value,M=f.next().value;f=_.V(_.gp("0px",void 0,"H14H5c"));var h=f.next().value,y=f.next().value;f=_.V(_.gp("0px",void 0,"Mn8Uvf"));var m=f.next().value,W=f.next().value;f=_.V(_.gp(0,void 0,"QQCIqc"));var I=f.next().value,S=f.next().value;f=_.V(_.gp(0,void 0,"HyEvh"));var d=f.next().value,Z=f.next().value,l=function(){var w=t();if(w){var c;if(((c=_.O7())==null?void 0:c.getPlayerState())!==-1){w.style.display=
"inherit";var A;(A=_.O7())==null||A.removeEventListener("onStateChange",l)}r()}},L=function(){var w=document.querySelectorAll("video");
return Array.from(w).find(function(c){var A;return c==null?void 0:(A=c.style)==null?void 0:A.width})},r=function(){var w=L();
if(w){S(w.getBoundingClientRect().width);Z(w.getBoundingClientRect().height);var c;y((w==null?void 0:(c=w.style)==null?void 0:c.left)||"0px");var A;W((w==null?void 0:(A=w.style)==null?void 0:A.top)||"0px")}};
_.K4(function(){var w=t();if(w){var c,A,X;if(((c=_.O7())==null?void 0:c.getPlayerState())===-1&&Math.round(((X=(A=_.O7())==null?void 0:A.getVideoAspectRatio())!=null?X:0)*100)!==Math.round(I()/d()*100)){w.style.display="none";var fg,gB;Z(I()/((gB=(fg=_.O7())==null?void 0:fg.getVideoAspectRatio())!=null?gB:1))}}},"RdGxIf");
var n=function(){r()},Q;
_.ru(function(){r();var w;if(!(v==null?0:(w=v())==null?0:w.transformationMatrix))throw Error("Ho");var c;(c=_.O7())==null||c.addEventListener("onStateChange",l);if(window.ResizeObserver){if(w=L())Q=new ResizeObserver(n),Q.observe(w)}else window.addEventListener("resize",r);_.Dt(function(){var A;(A=_.O7())==null||A.removeEventListener("onStateChange",l);Q?Q.disconnect():window.removeEventListener("resize",r)})});
var C=function(){var w,c,A=(c=v==null?void 0:(w=v())==null?void 0:w.transformationMatrix)!=null?c:[];w=I();c=d();for(var X=[],fg=0,gB=-1;fg<A.length;fg++)fg%3===0&&(gB++,X[gB]=[]),X[gB].push(A[fg]);A=new RJ(X);X=new RJ([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);X=A.multiply(X);A=new RJ([[0,0],[0,0],[0,0],[0,0]]);for(fg=0;fg<X.getSize().width;fg++){gB=VN(X,0,fg);var O5=VN(X,1,fg);if(gB===null||O5===null)throw Error("Go`"+(fg+1).toString());yN(A,fg,0,gB*w);yN(A,fg,1,O5*c)}w=VN(A,0,0);fg=VN(A,1,0);c=VN(A,0,1);
gB=VN(A,1,1);if(w===null||fg===null||c===null||gB===null)throw Error("Eo");X=mrO(w,fg,c,gB);O5=VN(A,3,0);A=VN(A,3,1);if(O5===null||A===null)throw Error("Fo");A=mrO(w,O5,c,A);gB=(Number((gB*-1).toFixed(2))-Number((c*-1).toFixed(2)))/(Number(fg.toFixed(2))-Number(w.toFixed(2)));O5=Math.atan(gB)*180/Math.PI;fg=gB===Number.POSITIVE_INFINITY?-90:gB===Number.NEGATIVE_INFINITY?90:Object.is(gB,-0)?180:gB===0?0:gB>0?O5*-1:w<fg?O5*-1:Math.abs(O5)+180;return"left:calc("+w+"px + "+h()+"); top:calc("+(c+"px + "+
m()+"); width:")+(X+"px; height:")+(A+"px; transform:rotate(")+(fg+"deg);")};
return _.O(RTM,{root:"#sticker-layer"},function(){return _.O("yt-overlay-sticker",{el:_.tE(M),style:C,class:"ytOverlayStickerHost"},H)})},"ok");var Drv=_.a(function(f){function H(){var l,L,r,n,Q=(L=_.U((l=W())==null?void 0:l.command,_.jA))==null?void 0:(r=L.item)==null?void 0:(n=r.notificationTextRenderer)==null?void 0:n.successResponseText;if(Q)_.mb(t.value,"yt-open-popup-action",[_.MS(Q),t.value]);else if(I())$rq(I(),t.value);else{var C;$rq((C=W())==null?void 0:C.command,t.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var v=f.data;var t=_.TN("svg"),M=_.V(_.gp(!1,void 0,"T9Bq7b"));f=M.next().value;var h=M.next().value,y=_.V(_.gp(!1,void 0,"iMHq9c"));M=y.next().value;var m=y.next().value,W=function(){var l;return _.U((l=v())==null?void 0:l.popUp,BBo)},I=function(){var l;
return(l=v())==null?void 0:l.command},S=function(){return _.U(I(),_.U7)!==void 0};
y=_.d6(function(){H();return!1});
var d={},Z={};return _.O("svg",{"on:mouseover":_.d6(function(){S()&&h(!0);m(!0);return!1}),
"on:mouseout":_.d6(function(){h(!1);m(!1);return!1}),
"on:keydown":_.d6(function(l){l.key==="Enter"&&H();return!1}),
"on:focus":_.d6(function(){S()&&h(!0);return!1}),
"on:blur":_.d6(function(){S()&&h(!1);return!1}),
el:t,tabindex:0,"aria-label":function(){var l;return(l=v())==null?void 0:l.a11yString},
id:"player-overlay-video-interaction-svg",class:_.S2("ytPlayerOverlayInteractionInteractionsSvg",(d.ytPlayerOverlayInteractionInteractionsSvgHover=f,d),(Z.ytPlayerOverlayInteractionInteractionsSvgHideOutline=M,Z)),role:"button","on:click":y})},"qk");_.yn(_.a(function(f){var H=f.data;_.ru(function(){var v;if((v=H())==null?0:v.trackingParams){var t;_.UV().graftServerVe((t=H().trackingParams)!=null?t:"")}});
return _.O("yt-player-overlay-interaction",null,_.O(Ks1,{region:function(){var v,t;return(v=H())==null?void 0:(t=v.regions)==null?void 0:t[0]}},_.O(Drv,Object.assign({},f))))},"pk"),"yt-player-overlay-interaction",{props:{data:_.ki}});var mo=function(){var f=_.K.apply(this,arguments)||this;f.showScrubber=!1;f.isWatchWhileMode=!1;f.enableAnchoredPanel=_.J("desktop_shorts_v2_anchored_panel");f.enableNewStickers=_.J("use_shorts_sticker_overlay_web");f.anchoredPanelActive=!1;f.enableLivingroomLayout=_.J("reels_enable_livingroom_layout");f.enablePlayerMetadataContainer=_.J("reels_web_enable_metadata_container");f.enableSqueezebackPanels=_.J("web_shorts_enable_squeezeback_panels");f.useAspectRatio=_.J("web_use_aspect_ratio");f.isSqueezebackActive=
!1;f.smallScreenSqueezeback=!1;f.isPlayerStarted=!1;f.overlayDensity=0;f.isOverlay=!1;f.isImmersive=!1;f.isImmersiveHorizontal=!1;f.isFullscreen=!1;f.onWindowResized=function(){var H;f.set("isImmersive",((H=window.getComputedStyle(f.hostElement))==null?void 0:H.getPropertyValue("--immersive-mode-on"))==="1");f.set("isImmersiveHorizontal",f.isImmersive&&f.enableLivingroomLayout&&!f.isWatchWhileMode)};
return f};
_.e(mo,_.K);_.R=mo.prototype;_.R.updateIsOverlay=function(f){this.isOverlay=f.detail.value};
_.R.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.J("web_enable_flexible_overlay")||_.J("web_enable_format_first")||_.J("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.R.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.R.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.R.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.R.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.R.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.R.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.R.ready=function(){(_.J("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"))&&(!_.J("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.yQ("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.yQ("reels_action_justified_content")||"flex-start")};
_.R.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",params:{roundedContainer:!1}}},renderPriority:0}}};
_.R.setFakeLoadingButtons=function(){_.J("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.ZC("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.ZC("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.ZC("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.ZC("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.ZC("REMIX_LABEL",void 0,"Remix")}}}));this.set("data.menu",{menuRenderer:{items:[{menuServiceItemRenderer:{}}]}});this.set("data.pivotButton",{pivotButtonViewModel:{backgroundColor:"THEME_ATTRIBUTE_OVERLAY_BACKGROUND_MEDIUM",icon:{iconType:"WAVEFORM"}}});this.setEmptyOverlayMetadata()};
_.R.setEmptyOverlayMetadata=function(){_.J("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}))};
_.H7.Object.defineProperties(mo.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.infoPanel)}}});
mo.prototype.onIsActiveChanged=mo.prototype.onIsActiveChanged;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],mo.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],mo.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],mo.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.NW.YtdGuideStateAwareBehavior),_.N("design:type",Object)],mo.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],mo.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Boolean)],mo.prototype,"isActive",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],mo.prototype,"hidden",void 0);_.E([_.F({value:!0}),_.N("design:type",Boolean)],mo.prototype,"useShortsIcon",void 0);_.E([_.F({value:"left"}),_.N("design:type",String)],mo.prototype,"buttonTooltipPosition",void 0);
_.E([_.F({value:_.J("reels_enable_livingroom_layout")?"top":"left"}),_.N("design:type",String)],mo.prototype,"likeButtonTooltipPosition",void 0);_.E([_.F({value:"none"}),_.N("design:type",String)],mo.prototype,"textTransform",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],mo.prototype,"showScrubber",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],mo.prototype,"isWatchWhileMode",void 0);
_.E([_.F({reflectToAttribute:!0}),_.z("data.infoPanel"),_.N("design:type",Object),_.N("design:paramtypes",[])],mo.prototype,"hasInfoPanel",null);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],mo.prototype,"enableAnchoredPanel",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],mo.prototype,"enableNewStickers",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],mo.prototype,"anchoredPanelActive",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],mo.prototype,"enableLivingroomLayout",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],mo.prototype,"enablePlayerMetadataContainer",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],mo.prototype,"enableSqueezebackPanels",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],mo.prototype,"useAspectRatio",void 0);
_.E([_.F({selector:_.qMT,reflectToAttribute:!0}),_.N("design:type",Object)],mo.prototype,"isSqueezebackActive",void 0);_.E([_.F({selector:Hgv,reflectToAttribute:!0}),_.N("design:type",Object)],mo.prototype,"smallScreenSqueezeback",void 0);_.E([_.F({selector:vvD}),_.N("design:type",Object)],mo.prototype,"isPlayerStarted",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],mo.prototype,"overlayDensity",void 0);_.E([_.F(),_.N("design:type",Object)],mo.prototype,"isOverlay",void 0);
_.E([_.F({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.N("design:type",Boolean)],mo.prototype,"isShortsOverlay",void 0);_.E([_.F(),_.N("design:type",Object)],mo.prototype,"isImmersive",void 0);_.E([_.F(),_.N("design:type",Object)],mo.prototype,"isImmersiveHorizontal",void 0);_.E([_.F({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.N("design:type",Boolean)],mo.prototype,"isShortsImmersive",void 0);
_.E([_.F({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.N("design:type",Object)],mo.prototype,"buttonOverride",void 0);_.E([_.F({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.N("design:type",Object)],mo.prototype,"actionBarButtonOverride",void 0);_.E([_.F({selector:_.Mi,reflectToAttribute:!0}),_.N("design:type",Object)],mo.prototype,"isFullscreen",void 0);
_.E([_.Zw("isActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mo.prototype,"onIsActiveChanged",null);_.E([_.u({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],mo);
_.G(mo,"ytd-reel-player-overlay-renderer",function(){if(FsM!==void 0)return FsM;var f=document.createElement("template");_.x(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return FsM=f},{mode:1});var ovo;var $s=function(){var f=_.K.apply(this,arguments)||this;f.videoDuration=0;f.playedTime=0;f.isActive=!1;f.JSC$22284_playerEvents=new Map;return f};
_.e($s,_.K);_.R=$s.prototype;_.R.created=function(){this.JSC$22284_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22284_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.R.attached=function(){this.getPlayerAndInitializeListeners()};
_.R.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22284_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.jr(this,this.onPageChanged))};
_.R.getPlayerAndInitializeListeners=function(){var f=this,H;return _.Y(function(v){if(v.nextAddress==1)return H=_.vx(),H?v.yield(H.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.jr(f,f.onPageChanged)),v.jumpTo(0));f.player=v.yieldResult;f.initializePlayerListeners();_.Bj(v)})};
_.R.onPageChanged=function(f){var H=this;return _.Y(function(v){if(v.nextAddress==1)return f.detail.newPageType!=="ytd-shorts"?v.return():v.yield(_.tj().getPlayerPromise(),2);H.player=v.yieldResult;H.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.jr(H,H.onPageChanged));_.Bj(v)})};
_.R.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22284_playerEvents)};
_.R.onVideoDataChange=function(f){var H=this;return _.Y(function(v){if(!H.player||f.type!=="newdata")return v.return();H.videoDuration=_.J("web_shorts_use_progress_state_for_gapless")?H.player.getProgressState(f.playertype).seekableEnd:H.player.getDuration(f.playertype);H.playedTime=0;_.Bj(v)})};
_.R.onVideoProgress=function(f){var H=this,v,t;return _.Y(function(M){if(!H.player)return M.return();v=H.player.getPresentingPlayerType();t=H.player.getPlayerState();H.videoDuration=_.J("web_shorts_use_progress_state_for_gapless")?H.player.getProgressState(v).seekableEnd:H.player.getDuration(v);H.playedTime=t===0?H.videoDuration:f;_.Bj(M)})};
_.R.getPercentPlayed=function(f,H){return f?_.FL(H/f,0,1):0};
_.H7.Object.defineProperties($s.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 f="";return f=this.videoDuration&&this.playedTime?f+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):f+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],$s.prototype,"componentBehavior",void 0);_.E([_.B(_.im.YtPlayerListenerBehavior),_.N("design:type",_.kI)],$s.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],$s.prototype,"player",void 0);_.E([_.F(),_.N("design:type",Object)],$s.prototype,"videoDuration",void 0);_.E([_.F(),_.N("design:type",Object)],$s.prototype,"playedTime",void 0);_.E([_.F(),_.N("design:type",Object)],$s.prototype,"isActive",void 0);
_.E([_.z("videoDuration","playedTime"),_.N("design:type",Number),_.N("design:paramtypes",[])],$s.prototype,"percentPlayed",null);_.E([_.z("videoDuration","playedTime"),_.N("design:type",Object),_.N("design:paramtypes",[])],$s.prototype,"percentPlayedStyle",null);_.E([_.z("videoDuration","isActive"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],$s.prototype,"hideProgressBar",null);
_.G($s,"ytd-progress-bar-line",function(){if(ovo===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);ovo=f}f=ovo;return f},{mode:_.WK("kevlar_poly_si_batch_j028")?1:2});var nvU;_.yn(_.jhw,"ytm-closed-captioning-button",{props:{captionIconType:_.ki,onClick:_.Rm,ariaLabel:_.ki,ariaPressed:_.ki,isOverlay:_.Rm,isModern:_.Rm}});_.yn(_.Nrb,"desktop-shorts-volume-controls",{props:{orientation:_.ki}});var W3=function(){var f=_.K.apply(this,arguments)||this;f.playerState=null;f.isMuted=!1;f.shortsModernControlsEnabled=_.J("web_shorts_modern_controls");f.volumeControlsOrientationState=_.J("web_shorts_modern_controls")?"vertical_down":"horizontal_right";f.isOverlay=!0;f.captionIconType=-1;f.ariaLabel="";f.overlayDensity=0;f.JSC$22287_playerEvents=new Map;f.onClosedCaptionsButtonClick=function(){f.player&&_.XO(f.player)&&(f.player.toggleSubtitles(),f.updateCaptionIconType())};
return f};
_.e(W3,_.K);_.R=W3.prototype;_.R.created=function(){this.JSC$22287_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22287_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22287_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.R.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.$$(28662);this.playPauseButtonClientVE=_.$$(36842);this.fullscreenButtonToggleOffClientVE=_.$$(222256);this.fullscreenButtonToggleOnClientVE=_.$$(222257);var f=_.uy(),H=_.Qe();f&&H&&(_.J("combine_ve_grafts")?(_.YP(_.UV(),this.muteButtonClientVE,H),_.YP(_.UV(),this.playPauseButtonClientVE,H)):_.AX(f,H,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.R.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22287_playerEvents),this.player=null)};
_.R.updateCaptionIconType=function(){var f=-1,H=void 0,v=_.ZC("CLOSED_CAPTIONS_DISABLED");this.player&&_.XO(this.player)&&(_.Rip(this.player)?(H=!0,v=_.ZC("CLOSED_CAPTIONS_ON"),f=1):(H=!1,v=_.ZC("CLOSED_CAPTIONS_OFF"),f=0));this.captionIconType=f;this.ariaPressedState=H;this.ariaLabel=v};
_.R.getPlayerAndInitializeListeners=function(){var f=this,H;return _.Y(function(v){if(v.nextAddress==1)return H=_.vx(),H?v.yield(H.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.jr(f,f.onPageChanged)),v.jumpTo(0));f.player=v.yieldResult;f.initializePlayerListeners();_.Bj(v)})};
_.R.onPageChanged=function(f){var H=this;return _.Y(function(v){if(v.nextAddress==1)return f.detail.newPageType!=="ytd-shorts"?v.return():v.yield(_.tj().getPlayerPromise(),2);H.player=v.yieldResult;H.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.jr(H,H.onPageChanged));_.Bj(v)})};
_.R.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22287_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.R.onPlayerStateChange=function(f){this.playerState=f};
_.R.onPlayerVolumeChange=function(f){this.isMuted=f.muted};
_.R.onPlayPauseButtonClick=function(){var f=this,H,v;return _.Y(function(t){if(t.nextAddress==1)return t.yield(_.tj().getPlayerPromise(),2);H=t.yieldResult;(v=_.uy())&&f.playPauseButtonClientVE&&_.Ti(v,f.playPauseButtonClientVE);H.getPlayerState()!==1?H.playVideo():H.pauseVideo();_.Bj(t)})};
_.R.computePlayPauseIcon=function(f){return f===2||f===-1||f===5?_.J("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.J("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.J("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.R.computeFullscreenLabel=function(f){return f?_.ZC("FULLSCREEN_EXIT_LABEL"):_.ZC("FULLSCREEN_ENTER_LABEL")};
_.R.computePlayPauseLabel=function(f){return f===1||f===3?_.ZC("PLAYER_LABEL_PAUSE"):_.ZC("PLAYER_LABEL_PLAY")};
_.R.onMuteButtonClick=function(){var f=this,H,v;return _.Y(function(t){if(t.nextAddress==1)return t.yield(_.tj().getPlayerPromise(),2);H=t.yieldResult;(v=_.uy())&&f.muteButtonClientVE&&_.Ti(v,f.muteButtonClientVE);H.isMuted()?H.unMute(!0):H.mute(!0);_.Bj(t)})};
_.R.computeMuteIcon=function(f){return f?"miniplayer:volume-off":"miniplayer:volume-up"};
_.R.computeMuteLabel=function(f){return f?_.ZC("PLAYER_LABEL_UNMUTE"):_.ZC("PLAYER_LABEL_MUTE")};
_.R.onFullscreenButtonClick=function(){var f=_.uy();f&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.Ti(f,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.Ti(f,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.axG()};
_.H7.Object.defineProperties(W3.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var f=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(){f.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?_.J("web_shorts_modern_controls")?"player_full_exit_alt":_.J("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.J("web_shorts_modern_controls")?"player_full_enter_alt":_.J("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],W3.prototype,"componentBehavior",void 0);_.E([_.B(_.im.YtPlayerListenerBehavior),_.N("design:type",_.kI)],W3.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],W3.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],W3.prototype,"player",void 0);_.E([_.F(),_.N("design:type",Object)],W3.prototype,"playerState",void 0);_.E([_.F(),_.N("design:type",Object)],W3.prototype,"isMuted",void 0);
_.E([_.F({computed:"computePlayPauseIcon(playerState)"}),_.N("design:type",String)],W3.prototype,"playPauseIcon",void 0);_.E([_.F({computed:"computeMuteIcon(isMuted)"}),_.N("design:type",String)],W3.prototype,"muteIcon",void 0);_.E([_.F({selector:_.Mi}),_.N("design:type",Boolean)],W3.prototype,"isFullscreen",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],W3.prototype,"shortsModernControlsEnabled",void 0);
_.E([_.F(),_.N("design:type",Object)],W3.prototype,"volumeControlsOrientationState",void 0);_.E([_.F(),_.N("design:type",Object)],W3.prototype,"isOverlay",void 0);_.E([_.F(),_.N("design:type",Object)],W3.prototype,"captionIconType",void 0);_.E([_.F(),_.N("design:type",Object)],W3.prototype,"ariaLabel",void 0);_.E([_.F(),_.N("design:type",Object)],W3.prototype,"ariaPressedState",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],W3.prototype,"overlayDensity",void 0);
_.E([_.z("playerState"),_.N("design:type",Object),_.N("design:paramtypes",[])],W3.prototype,"playPauseButtonData",null);_.E([_.z("isFullscreen"),_.N("design:type",Object),_.N("design:paramtypes",[])],W3.prototype,"fullscreenButtonData",null);_.E([_.F(),_.N("design:type",Object)],W3.prototype,"onClosedCaptionsButtonClick",void 0);_.E([_.z("isFullscreen"),_.N("design:type",String),_.N("design:paramtypes",[])],W3.prototype,"fullscreenIcon",null);
_.G(W3,"ytd-shorts-player-controls",function(){if(nvU===void 0){var f=document.createElement("template");_.x(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n  </div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);nvU=f}f=nvU;return f},{mode:1});var pRo;_.yn(_.$Kg,"yt-interstitial-view-model",{props:{data:_.ki}});var Q3M=_.a(function(f){var H=f.data;return _.O("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.O("h1",{class:"reelWatchBreakViewModelHostTitle"},_.O(_.iq,{text:function(){return H().title}})),_.O("h2",{class:"reelWatchBreakViewModelHostBody"},_.O(_.iq,{text:function(){return H().body},
isOverlay:!0})),_.O(_.Jj,{data:function(){return H().buttons}},{buttonViewModel:function(v,t){return _.O("div",{class:function(){return t()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.O(_.Wp,{data:v.data}))}}))},"rk");
Q3M.idomCompat=!0;_.yn(Q3M,"reel-watch-break-view-model",{props:{data:_.ki}});var OK=function(){return _.K.apply(this,arguments)||this};
_.e(OK,_.K);OK.prototype.configureRendererStamper=function(){return{"data.renderer":{id:"nvc-container",mapping:{reelWatchBreakViewModel:{component:"reel-watch-break-view-model"},inlineSurveyRenderer:{component:"ytd-inline-survey-renderer"},interstitialViewModel:{component:"yt-interstitial-view-model"}},renderPriority:0}}};
_.H7.Object.defineProperties(OK.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var f;return!!_.U((f=this.data)==null?void 0:f.renderer,JND)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var f;return!!_.U((f=this.data)==null?void 0:f.renderer,l_v)}}});
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],OK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],OK.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],OK.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],OK.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0}),_.z("data.renderer"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],OK.prototype,"isSurvey",null);_.E([_.F({reflectToAttribute:!0}),_.z("data.renderer"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],OK.prototype,"isInterstitialViewModel",null);_.E([_.u({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],OK);
_.G(OK,"ytd-reel-non-video-content-renderer",function(){if(pRo!==void 0)return pRo;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);
return pRo=f},{mode:_.WK("kevlar_poly_si_batch_j028")?1:2});var ue1;_.yn(_.EOb,"desktop-shorts-player-controls",{});var g7=function(){var f=_.K.apply(this,arguments)||this;f.isPlayerPaused=!1;f.isPlayerStarted=!1;f.showPlayerControls=!1;f.showScrubber=!1;f.autoHideJobId=0;f.modern=_.J("web_button_rework");f.overlayType=_.yQ("web_shorts_expanded_overlay_type");f.panelData=void 0;f.isWatchWhileMode=!1;f.hasError=!1;f.panelShowDelayMs=1;f.scrubberComponent={};f.isFullscreen=!1;f.shouldHideOverlay=!1;f.enableAnchoredPanel=_.J("desktop_shorts_v2_anchored_panel");f.enablePersistentAnchoredPanel=_.J("desktop_shorts_v2_persistent_anchored_panel");
f.hideWatchWhilePanel=_.J("web_shorts_hide_watch_while_panel");f.useAspectRatio=_.J("web_use_aspect_ratio");f.isPersistentPanelActive=!1;f.anchoredPanelActive=!1;f.isShortsPipActive=!1;f.smallScreenSqueezeback=!1;f.enableFlexibleOverlay=_.J("web_enable_flexible_overlay");f.overlayDensity=0;f.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};f.onWindowResized=function(){_.iJ(f,
"calculateOverlayDensity",function(){f.calculateOverlayDensity()},100)};
return f};
_.e(g7,_.K);_.R=g7.prototype;_.R.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.R.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.R.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var f=_.t8().resolve(_.B5);this.isWatchWhileMode&&(_.J("web_enable_shorts_new_carousel")?_.nN.addJob(function(){f.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):f.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.R.handleShowReelsCommentsOverlayCommand=function(f){f=_.U(f,LsM);this.isActive&&(f==null?0:f.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))};
_.R.updateEngagementPanelVisibility=function(f,H){f&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:H?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:f}})};
_.R.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.R.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.t8().resolve(_.Z5).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.R.handleWatchWhilePanelScrimClick=function(){var f=_.t8().resolve(_.B5);this.activeWatchWhilePanel&&(f.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.R.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.R.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]"}}},renderPriority:_.J("web_enable_shorts_new_carousel")?0:void 0}}};
_.R.handlePlayerClick=function(f){var H=this,v,t;if((t=(v=window).matchMedia)!=null&&t.call(v,"(any-pointer: coarse)").matches||!f)this.showPlayerControls=!0,_.nN.cancelJob(this.autoHideJobId),this.autoHideJobId=_.Lb(_.nN,function(){H.showPlayerControls=!1},4E3)};
_.R.isFirstReel=function(){return this.index===0};
_.R.handleMouseenter=function(){_.nN.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.R.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.R.handleScrubberEnter=function(){this.showScrubber=!0};
_.R.handleScrubberLeave=function(){this.showScrubber=!1};
_.R.maybeLogNonDefaultAspectRatio=function(){var f;(f=this.data)!=null&&f.thumbnail&&this.isActive&&.5625!==f_D(this.data.thumbnail)&&_.ohb("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.R.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var f=document.querySelector("#shorts-container");if(f){f=f.offsetWidth/2-this.playerContainer.offsetWidth/2;f=f>=368?1:f>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&f===1&&(f=0);this.isPersistentPanelActive&&(f=0);window.innerWidth<=599&&(f=2);this.overlayDensity=f;var H;(H=this.onOverlayDensityChanged)==null||H.call(this,this.index,this.overlayDensity)}}};
_.R.onOverlayDensityChange=function(){var f;(f=this.onOverlayDensityChanged)==null||f.call(this,this.index,this.overlayDensity);(f=_.mF(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&f.set("overlayDensity",this.overlayDensity);if(f=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))f.overlayDensity=this.overlayDensity};
_.R.isVideoContent=function(f){_.t8().resolve(_.Z5);return!!_.U(f,_.zD)};
_.R.isNonVideoContent=function(f){_.t8().resolve(_.Z5);return!!_.U(f,_.Dk)};
_.R.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.H7.Object.defineProperties(g7.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var f,H;return _.J("web_enable_format_first")||((f=this.data)==null?void 0:f.adsOverlay)&&_.J("web_enable_format_first_ads_only")||((H=this.data)==null?void 0:H.reelPlayerOverlayRenderer)&&_.J("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.J("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var f;return!this.isActive||!this.isPlayerStarted||(f=this.data)!=null&&f.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var f;if(((f=this.data)==null?0:f.command)&&this.isVideoContent(this.data.command)){var H,v;if(((H=this.data)==null?0:H.adsOverlay)&&Object.keys((v=this.data)==null?void 0:v.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var t,M;if(((t=this.data)==null?0:t.reelPlayerOverlayRenderer)&&Object.keys((M=this.data)==null?void 0:M.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
g7.prototype.onOverlayDensityChange=g7.prototype.onOverlayDensityChange;g7.prototype.calculateOverlayDensity=g7.prototype.calculateOverlayDensity;g7.prototype.maybeLogNonDefaultAspectRatio=g7.prototype.maybeLogNonDefaultAspectRatio;g7.prototype.onEngagementPanelsChanged=g7.prototype.onEngagementPanelsChanged;g7.prototype.onScrubberDataChange=g7.prototype.onScrubberDataChange;g7.prototype.updateShouldHideOverlay=g7.prototype.updateShouldHideOverlay;
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],g7.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],g7.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.NW.YtdGuideStateAwareBehavior),_.N("design:type",Object)],g7.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],g7.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Number)],g7.prototype,"index",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],g7.prototype,"isActive",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],g7.prototype,"isHiddenInDom",void 0);_.E([_.F(),_.N("design:type",Object)],g7.prototype,"isPlayerPaused",void 0);_.E([_.F({selector:vvD}),_.N("design:type",Object)],g7.prototype,"isPlayerStarted",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],g7.prototype,"showPlayerControls",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],g7.prototype,"showScrubber",void 0);_.E([_.F(),_.N("design:type",Object)],g7.prototype,"autoHideJobId",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],g7.prototype,"modern",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],g7.prototype,"overlayType",void 0);_.E([_.B(_.um),_.N("design:type",Object)],g7.prototype,"ytdReduxBehavior",void 0);
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],g7.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],g7.prototype,"watchWhileEngagementPanels",void 0);_.E([_.F(),_.N("design:type",Object)],g7.prototype,"panelData",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],g7.prototype,"isWatchWhileMode",void 0);_.E([_.F(),_.N("design:type",String)],g7.prototype,"activeWatchWhilePanel",void 0);
_.E([_.F(),_.N("design:type",Object)],g7.prototype,"hasError",void 0);_.E([_.F(),_.N("design:type",Object)],g7.prototype,"panelShowDelayMs",void 0);_.E([_.F(),_.N("design:type",Object)],g7.prototype,"scrubberComponent",void 0);_.E([_.F({selector:_.Mi,reflectToAttribute:!0}),_.N("design:type",Object)],g7.prototype,"isFullscreen",void 0);_.E([_.F(),_.N("design:type",Object)],g7.prototype,"shouldHideOverlay",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],g7.prototype,"enableAnchoredPanel",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],g7.prototype,"enablePersistentAnchoredPanel",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],g7.prototype,"hideWatchWhilePanel",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],g7.prototype,"useAspectRatio",void 0);
_.E([_.F({selector:_.qMT,reflectToAttribute:!0}),_.N("design:type",Object)],g7.prototype,"isPersistentPanelActive",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],g7.prototype,"anchoredPanelActive",void 0);_.E([_.F({selector:_.hY,reflectToAttribute:!0}),_.N("design:type",Object)],g7.prototype,"isShortsPipActive",void 0);_.E([_.F({selector:Hgv,reflectToAttribute:!0}),_.N("design:type",Object)],g7.prototype,"smallScreenSqueezeback",void 0);
_.E([_.F({reflectToAttribute:!0}),_.z("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],g7.prototype,"enableFormatFirst",null);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],g7.prototype,"enableFlexibleOverlay",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],g7.prototype,"overlayDensity",void 0);_.E([_.F(),_.N("design:type",Function)],g7.prototype,"onOverlayDensityChanged",void 0);
_.E([_.F(),_.z("isActive","hasError","isPlayerStarted"),_.N("design:type",Object),_.N("design:paramtypes",[])],g7.prototype,"shouldRenderPlayerElements",null);_.E([_.F(),_.z("isActive","isWatchWhileMode"),_.N("design:type",Object),_.N("design:paramtypes",[])],g7.prototype,"watchWhileOrPersistentActive",null);_.E([_.Zw("isActive","hasError","showingExpandedOverlay"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],g7.prototype,"updateShouldHideOverlay",null);
_.E([_.F({reflectToAttribute:!0}),_.z("isActive","isPlayerStarted","data"),_.N("design:type",Object),_.N("design:paramtypes",[])],g7.prototype,"shouldRenderScrubber",null);_.E([_.Zw("shouldRenderScrubber"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],g7.prototype,"onScrubberDataChange",null);_.E([_.z("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],g7.prototype,"overlayComponent",null);
_.E([_.Zw("watchWhileEngagementPanels"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],g7.prototype,"onEngagementPanelsChanged",null);_.E([_.lJ("#player-container"),_.N("design:type",HTMLElement)],g7.prototype,"playerContainer",void 0);_.E([_.lJ("#cinematic-container"),_.N("design:type",HTMLElement)],g7.prototype,"cinematicContainer",void 0);
_.E([_.Zw("isPersistentPanelActive","data.thumbnail"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],g7.prototype,"maybeLogNonDefaultAspectRatio",null);_.E([_.Zw("isPersistentPanelActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],g7.prototype,"calculateOverlayDensity",null);_.E([_.Zw("overlayDensity"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],g7.prototype,"onOverlayDensityChange",null);
_.E([_.u({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],g7);
_.G(g7,"ytd-reel-video-renderer",function(){if(ue1!==void 0)return ue1;var f=document.createElement("template");_.x(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return ue1=f},{mode:_.WK("kevlar_poly_si_batch_j028")?1:2});var IJ=function(){var f=_.K.apply(this,arguments)||this;f.isPreviousPageShorts=!1;f.index=0;f.delayedActiveIndex=0;f.playablePreviousIndex=null;f.isPlayerPaused=!1;f.isPlayerStarted=!1;f.intersectionObserverThreshold=.6;f.fitToVisibleBounds=!1;f.pageSubtype="shorts";f.enablePreviousContinuation=_.J("shorts_in_playlists_web");f.shortsPipEnabled=_.J("web_shorts_pip");f.isDark=document.documentElement.hasAttribute("dark");f.shortsViewTransitions=_.J("web_shorts_view_transitions");f.isFullscreen=!1;f.isShortsPipActive=
!1;f.buttonOverride={iconPosition:"icon-only",size:"XL"};f.anchoredPanelActive=!1;f.isActive=!1;f.smallScreenPersistentPanel=!1;f.isPersistentPanelActive=!1;f.smallScreenSqueezeBack=!1;f.enableScrollIntoViewCenter=_.J("web_scroll_into_view_center");f.formatFirst=_.J("web_enable_format_first")||_.J("web_enable_format_first_ads_only")||_.J("web_enable_format_first_organic_only");f.enableFlexibleOverlay=_.J("web_enable_flexible_overlay");f.useAspectRatio=_.J("web_use_aspect_ratio");f.isShortsInitialized=
!1;f.hidePreviousButtonImmediately=!1;f.showPreviousButtonImmediately=!1;f.endOfNextContinuation=!1;f.currentPlayerIndex=0;f.nextReelVe=_.$$(56921);f.prevReelVe=_.$$(56922);f.loopToggleOffVe=_.$$(198013);f.loopToggleOnVe=_.$$(198014);f.ambientModeToggleVe=_.$$(227860);f.reelPlayerPausedStateRendererVe=_.$$(141313);f.storedPlaybackSpeed=null;f.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"};f.onOverlayDensityChanged=function(H,v){var t;(t=f.getActiveReelVideo(H))==null||t.setAttribute("overlay-density",String(v))};
return f};
_.e(IJ,_.K);_.R=IJ.prototype;
_.R.deflateInactivePreviousSlides=function(){var f=_.VQ("web_shorts_deflate_inactive_slides_aggressive_distance");if(f>0&&this.shortsProcessedSequence&&this.activeIndex){f=this.activeIndex-f;for(var H=0;H<=f;H++){var v=void 0;((v=this.shortsProcessedSequence[H].reelPlayerOverlayRenderer)==null?0:v.metapanel)&&this.set("shortsProcessedSequence."+H+".reelPlayerOverlayRenderer",{});v=void 0;((v=this.shortsProcessedSequence[H].adsOverlay)==null?0:v.adSlotMetadata)&&this.set("shortsProcessedSequence."+H+
".adsOverlay",{})}}};
_.R.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.R.onResize=function(){var f=_.vS(),H=f.dispatch,v=this.calculateIsSmallWidth();H.call(f,_.yq({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:v}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.R.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:_.J("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0}}},renderPriority:0}}};
_.R.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var f=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,H=f,v=0;f<250&&(H=f+this.shortsInnerContainer.clientWidth,v=24);_.Sr(this.hostElement,{"--ytd-shorts-header-width":H+"px","--ytd-shorts-top-spacing":v+"px"})}};
_.R.isFirstShorts=function(f){return f?this.index===-f.length:this.index===0};
_.R.isActiveReel=function(f,H,v){v&&(H=this.calculatePrevIndex(H,v));return f===H};
_.R.onFullscreenChange=function(){if(_.J("web_fullscreen_shorts")){var f;(f=this.getActiveReelVideo(this.activeIndex))==null||f.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.t8().resolve(_.o0).close(!0)}};
_.R.engagementPanelsChanged=function(){var f;this.watchWhileEngagementPanels=(f=this.data)==null?void 0:f.engagementPanels};
_.R.unregisterPanels=function(){var f=_.t8().resolve(_.B5);if(this.watchWhileEngagementPanels)for(var H=_.V(this.watchWhileEngagementPanels),v=H.next();!v.done;v=H.next()){var t=v.value,M=void 0,h=void 0;v=(M=t.engagementPanelSectionListRenderer)==null?void 0:(h=M.identifier)==null?void 0:h.tag;t=this.getPanelContentIdentifier(t.engagementPanelSectionListRenderer);f&&(v&&f.panelMap.delete(v),t&&_.J("web_shorts_panel_caching_bugfix")&&(M=v=void 0,(M=(v=f).unregisterPanelContent)==null||M.call(v,t)))}};
_.R.isVideoContent=function(f){return this.isVideoContentCommand(f==null?void 0:f.command)};
_.R.getActiveReelVideo=function(f){return _.mF(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+f+'"]')};
_.R.calculatePrevIndex=function(f,H){return H?f-((H==null?void 0:H.length)||0):-1};
_.R.onKeydown=function(f){var H=_.f2(f)||[];if(!_.u2A(H))if(f.code==="ArrowUp")f.preventDefault(),this.handlePrevButtonClick();else if(f.code==="ArrowDown")f.preventDefault(),this.handleNextButtonClick();else if(f.code==="KeyM")this.toggleMuteUnmuteVideo();else if(f.code==="KeyK"||f.code==="Space")this.togglePlayPauseVideo();else if((f.code==="KeyA"||f.code==="ArrowLeft")&&_.J("web_shorts_keyboard_enable_seek_shortcuts")){var v;(v=this.player)==null||v.seekBy(-5)}else if((f.code==="KeyD"||f.code===
"ArrowRight")&&_.J("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var t;(t=this.player)==null||t.seekBy(5)}};
_.R.onServiceRequestCompleted=function(f,H){f=H.data;f.continuationEndpoint&&f.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:f.entries,continuationEndpoint:f.continuationEndpoint}}):f.prevContinuationEndpoint&&f.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:f.prevEntries,prevContinuationEndpoint:f.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.R.handleEngagementPanelVisibilityChanged=function(f,H){var v=_.t8().resolve(_.B5);if(f&&v){var t=this.getPanelIdentifier(f);if(H==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==t){v.hidePanel(this.activePanel);var M;this.activePanel=((M=f.identifier)==null?void 0:M.tag)||f.panelIdentifier}else this.isPersistentPanelActive=!0,_.vS().dispatch(gv4(!0)),this.anchoredPanelActive=!0,this.activePanel=t;else H==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&this.activePanel===
t&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.vS().dispatch(gv4(!1)))}};
_.R.handlePanelScrimClick=function(){var f=_.t8().resolve(_.B5);this.activePanel&&(f.hidePanel(this.activePanel),_.vS().dispatch(gv4(!1)))};
_.R.getShortsLoopSetting=function(){var f,H,v,t,M;return _.Y(function(h){switch(h.nextAddress){case 1:return _.J("kevlar_shorts_auto_advance")?h.yield(_.xP.getInstance(),2):h.return(!0);case 2:return(f=h.yieldResult)?h.yield(f.get("sfvles"),3):h.return(!0);case 3:return v=(H=h.yieldResult)!=null?H:!1,h.yield(f.get("sfvle"),4);case 4:return M=(t=h.yieldResult)!=null?t:!0,v?h.return(M):h.return(!0)}})};
_.R.handleSignalActionToggleLoopShortsOff=function(){var f=this,H,v,t;return _.Y(function(M){switch(M.nextAddress){case 1:if(!f.player)return M.return();f.player.setLoopVideo(!1);H=_.UV();_.$P(H,f.loopToggleOffVe);return M.yield(_.xP.getInstance(),2);case 2:return(v=M.yieldResult)?M.yield(v.set("sfvle",!1),3):M.return();case 3:return M.yield(v.set("sfvles",!0),4);case 4:t=_.Uj(),_.eG(0,203,!1),_.eG(0,204,!0),t.save(),_.Bj(M)}})};
_.R.handleSignalActionToggleLoopShortsOn=function(){var f=this,H,v,t;return _.Y(function(M){switch(M.nextAddress){case 1:if(!f.player)return M.return();f.player.setLoopVideo(!0);H=_.UV();_.$P(H,f.loopToggleOnVe);return M.yield(_.xP.getInstance(),2);case 2:return(v=M.yieldResult)?M.yield(v.set("sfvle",!0),3):M.return();case 3:return M.yield(v.set("sfvles",!0),4);case 4:t=_.Uj(),_.eG(0,203,!0),_.eG(0,204,!0),t.save(),_.Bj(M)}})};
_.R.handleSignalActionToggleCinematicShortsOn=function(){qQG(!0);var f;(f=this.JSC$22311_cinematicController)==null||_.X2i(f,!0);_.$P(_.UV(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.R.handleSignalActionToggleCinematicShortsOff=function(){qQG(!1);var f;(f=this.JSC$22311_cinematicController)==null||_.X2i(f,!1);_.$P(_.UV(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.R.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.R.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.R.unhideCurrentOverlay=function(){if(this.overlayContainer){var f=this.overlayContainer.querySelector("#experiment-overlay");f&&_.nN.addLowPriorityJob(function(){f.style.display="unset"},100)}};
_.R.getCurrentShort=function(){if(this.currentEndpoint){var f=this.currentEndpoint;if(this.isNonVideoContentCommand(f)){var H=_.U(f,_.Dk);return{reelNonVideoContentRenderer:_.U(H==null?void 0:H.renderer,_.sfg),command:f}}if(this.data){var v;H=(v=_.U(this.currentEndpoint,_.zD))==null?void 0:v.thumbnail;var t;v=(t=this.data.overlay)==null?void 0:t.reelPlayerOverlayRenderer;_.t8().resolve(_.Z5);f=this.data;var M,h;t=(M=f.overlay)==null?void 0:(h=M.shortsAdsRenderer)==null?void 0:h.adSlots;if(t!==void 0)t.length===
0?(_.cx("Shorts ads returned no ad slots."),f=void 0):(t.length>1&&_.cx("Shorts ads has more than one ad slots."),f=_.U(t[0],_.n0C));else{var y,m;f=_.U((y=f.overlay)==null?void 0:(m=y.shortsAdsRenderer)==null?void 0:m.overlay,_.n0C)}y=f;f=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.U(this.currentEndpoint,_.zD),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:v,thumbnail:H,command:f,adsOverlay:y}}}};
_.R.created=function(){var f=this;this.scrollToVideoThrottle=new _.Nl(function(H){var v;(v=f.getActiveReelVideo(H))==null||v.scrollIntoView({behavior:"smooth",block:"nearest",inline:f.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.Nl(function(H){var v;(v=f.getActiveReelVideo(H))==null||v.scrollIntoView({behavior:"auto",block:"nearest",inline:f.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.R.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.R.attached=function(){var f=this;_.t8().resolve(_.Z5).registerRootElement(this);this.pageScrollElement=_.mF(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.jr(this,this.processResetAction));_.J("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var H=f.getActiveReelVideo(f.activeIndex);f.maybeCreateIntersectionObserver();H==null||H.scrollIntoView({behavior:"instant",
block:"nearest",inline:f.enableScrollIntoViewCenter?"center":"start"});f.shortsContainer.style.overflowY="scroll"}))};
_.R.updateReelWatchSequenceResponse=function(){var f=this;if(_.J("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&_.U(this.currentEndpoint,_.zD).sequenceParams&&!this.reelWatchSequenceResponse){var H=_.t8().resolve(_.Z5);H&&OgU(H,this.currentEndpoint).then(function(v){v&&(f.reelWatchSequenceResponse=v,_.nN.addLowPriorityJob(function(){f.maybeCreateIntersectionObserver(!0)}))})}};
_.R.calculateSqueezebackPanelSize=function(){var f=this,H=window.innerWidth-456-(window.innerHeight-106)*.5625;_.nN.addLowPriorityJob(function(){H<360?_.vS().dispatch(I_4(!0)):(f.hostElement.style.setProperty("--anchored-panel-width",Math.min(H,480)+"px"),_.vS().dispatch(I_4(!1)))})};
_.R.detached=function(){var f=_.t8().resolve(_.Z5);f.rootElement=void 0;var H;(H=f.unsubscribeFromStore)==null||H.call(f);f.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.jr(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.R.onResizeFinished=function(f,H){var v=this,t=new ResizeObserver(function(){v.shortsContainer.style.overflowY="hidden";_.nN.addLowPriorityJob(function(){H()},100)});
t.observe(f);return t};
_.R.resetDocumentScrollTop=function(){var f,H;if((f=document)==null?0:(H=f.scrollingElement)==null?0:H.scrollTop)document.scrollingElement.scrollTop=0};
_.R.loadPage_=function(f){var H=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),f){var v;!_.J("web_enable_delay_shorts_sequence_call")&&((v=_.U(this.currentEndpoint,_.zD))==null?0:v.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=f;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){H.isPlayerStarted&&(H.handleOnPlaybackCommand(),H.afterPlayerStarted=function(){})};
this.registerPanel(f)}};
_.R.afterPlayerStarted=function(){};
_.R.handleOnPlaybackCommand=function(){if(_.J("web_shorts_comment_stickers")&&this.isPlayerStarted){var f,H=(f=_.U(this.currentEndpoint,_.zD))==null?void 0:f.onPlaybackCommand;H&&this.ytComponentBehavior.resolveCommand(H)}};
_.R.maybeCreateIntersectionObserver=function(f){var H=this;f=f===void 0?!1:f;var v=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==v||f){this.intersectionObserverThreshold=v;f={rootMargin:"0px",threshold:v};var t;(t=this.intersectionObserver)==null||t.disconnect();this.intersectionObserver=new IntersectionObserver(function(M){M=_.V(M);for(var h=M.next();!h.done;h=M.next())if(h=h.value,h.intersectionRatio>v){h=Number(h.target.id);if(isNaN(h))break;
if(h===H.index)break;_.O3T();H.loadVideo(h);_.PV("r_vtc")}},f);
this.observeShorts()}};
_.R.observeShorts=function(){var f=[].concat(_.pS(_.mF(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));f=_.V(f);for(var H=f.next();!H.done;H=f.next()){H=H.value;var v=void 0;(v=this.intersectionObserver)==null||v.observe(H)}};
_.R.initCsi=function(){_.DG("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var f={reelInfo:{transitionType:this.isPreviousPageShorts?"LATENCY_REEL_TRANSITION_TYPE_REEL_TO_REEL":"LATENCY_REEL_TRANSITION_TYPE_START",videoType:this.isAd()?"REEL_VIDEO_TYPE_AD":"REEL_VIDEO_TYPE_VIDEO",reelToReelBaseline:"REEL_TO_REEL_BASELINE_VIEW_TRANSITION_START"}},H,v;if((H=this.playerData)==null?0:(v=H.cacheMetadata)==null?0:v.isCacheHit)f.isCacheHit=!0;var t;if(H=(t=_.U(this.currentEndpoint,_.zD))==null?void 0:
t.prefetchTaskId)f.prefetchInfo={taskId:H};_.nQ(f)};
_.R.isAd=function(){var f,H;return!!((f=_.U(this.currentEndpoint,_.zD))==null?0:(H=f.adClientParams)==null?0:H.isAd)};
_.R.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.R.getPlayerContainer=function(){var f;return(f=_.mF(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:f.playerContainer};
_.R.onPlayerStateChange=function(f){var H=this;this.isPlayerPaused=f===2;f!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?f===1&&this.index===0&&(this.isPlayerStarted||_.vS().dispatch(hI(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.vS().dispatch(hI(!0)));this.player&&!this.player.getLoopVideo()&&_.nN.addLowPriorityJob(function(){H.getShortsLoopSetting().then(function(v){var t;(t=H.player)==null||t.setLoopVideo(v)})});
this.isPlayerPaused&&_.J("web_shorts_paused_state_logging")&&_.i0(_.uy(),[this.reelPlayerPausedStateRendererVe])};
_.R.isInBackground=function(){var f=window.document.visibilityState;return!(!f||f==="visible")};
_.R.isShortPlayable=function(){if(_.J("kevlar_playable_short_killswitch"))return!0;var f;return(f=this.playerData)!=null&&f.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.R.setNormalPlaybackSpeed=function(){var f=this,H,v;return _.Y(function(t){if(t.nextAddress==1)return t.yield(f.getPlayer().getPlayerPromise(),2);H=t.yieldResult;v=H.getPlaybackRate();v!==1&&(f.storedPlaybackSpeed=v,H.setPlaybackRate(1));_.Bj(t)})};
_.R.restorePlaybackSpeed=function(){var f=this,H;return _.Y(function(v){if(v.nextAddress==1)return f.storedPlaybackSpeed===null?v.jumpTo(0):v.yield(f.getPlayer().getPlayerPromise(),3);H=v.yieldResult;H.setPlaybackRate(f.storedPlaybackSpeed);f.storedPlaybackSpeed=null;_.Bj(v)})};
_.R.playerDataChanged=function(){var f=this,H,v,t,M,h,y,m,W,I;return _.Y(function(S){if(S.nextAddress==1){H=f.getPlayer();(v=f.intersectionObserver)==null||v.disconnect();if(f.playerData){if(((t=f.playerData.videoDetails)==null?void 0:t.videoId)!==((M=H.getPlayer())==null?void 0:M.getVideoData().video_id)){h={};if(y=_.U(f.currentEndpoint,_.zD))h.watch_endpoint=y,y.endTimeSeconds&&(h.end=y.endTimeSeconds);H.loadVideoWithPlayerResponse(f.playerData,h)}}else return S.return();return f.player?S.jumpTo(2):
S.yield(H.getPlayerPromise(),3)}S.nextAddress!=2&&(f.player=S.yieldResult,f.JSC$22311_playerStateChangeListener=f.onPlayerStateChange.bind(f),f.player.addEventListener("onStateChange",f.JSC$22311_playerStateChangeListener),_.J("kevlar_client_enable_shorts_player_bootstrap")&&_.ac(),f.scrollToVideoThrottle.fire(f.index),f.movePlayerToVideo(f.index),_.nN.addLowPriorityJob(function(){f.getShortsLoopSetting().then(function(d){var Z;(Z=f.player)==null||Z.setLoopVideo(d)})}),_.Vlv.resolve(f.player),f.player.syncVolume(),
f.getPlayer().focusOnPlayer());
_.nN.addLowPriorityJob(function(){f.observeShorts()},100);
m=f.player.getPlayerState(f.player.getPresentingPlayerType());m!==1||f.isPlayerStarted||_.vS().dispatch(hI(!0));f.updateBackNavContainerWidth();W=_.U(f.currentEndpoint,_.zD);((I=W)==null?0:I.startTimeSeconds)&&f.player.seekTo(W.startTimeSeconds);if(f.JSC$22311_cinematicController||f.cinematicsInitializeJobId)return S.return();f.cinematicsInitializeJobId=_.nN.addLowPriorityJob(function(){f.initCinematicController();f.cinematicsInitializeJobId=void 0});
_.Bj(S)})};
_.R.onShortUndoDismiss=function(){var f=this,H=WsL().pop();H!==void 0&&(_.qV(this,function(){f.showCardWithIndex(H)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.R.onShortsDismiss=function(f){if(f=f.detail.reelDismissalActionRenderer)(f=_.U(f.onDismissalCompletionRenderer,_.lZW))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:f}}}),this.scrollAndDismissCard()};
_.R.processReelNonVideoContentDismissalCommand=function(f){var H=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);f=_.U(f,eTM);this.activeDimissalTimeout=setTimeout(function(){H.scrollAndDismissCard()},Number(f==null?void 0:f.delayMs))};
_.R.scrollAndDismissCard=function(){var f=this,H=this.index;WsL().push(H);_.qV(this,function(){var v=f.getPlayableNextIndex();v!==null&&(v=f.getActiveReelVideo(v),f.hideCardWithIndex(H),v==null||v.scrollIntoView({behavior:"smooth",block:"nearest",inline:f.enableScrollIntoViewCenter?"center":"start"}))})};
_.R.hideCardWithIndex=function(f){if(f=this.getActiveReelVideo(f))f.hidden=!0};
_.R.showCardWithIndex=function(f){if(f=this.getActiveReelVideo(f))f.hidden=!1};
_.R.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.R.activeChanged=function(f){_.vS().dispatch(_.yq({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:f}}));if(f)document.addEventListener("keydown",_.jr(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var H;(H=this.player)==null||H.sendAbandonmentPing()}var v;(v=this.player)==null||v.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.jr(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.R.graftClientVisualElements=function(){if(this.data){var f=_.UV();_.ROh(f,_.gj({response:this.reelWatchSequenceResponse}));_.YP(f,this.nextReelVe);_.YP(f,this.prevReelVe);_.J("kevlar_shorts_auto_advance")&&(_.YP(f,this.loopToggleOffVe),_.YP(f,this.loopToggleOnVe));_.YP(f,this.ambientModeToggleVe);_.i0(_.uy(),[this.nextReelVe,this.prevReelVe]);_.J("web_shorts_paused_state_logging")&&_.YP(f,this.reelPlayerPausedStateRendererVe)}};
_.R.graftNvcRenderer=function(){var f,H,v,t,M=this.index<0?(f=this.shortsProcessedPrevSequence)==null?void 0:(H=f[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:H.command:(v=this.shortsProcessedSequence)==null?void 0:(t=v[this.index])==null?void 0:t.command;if(M&&this.isNonVideoContentCommand(M)){f=_.U(M,_.Dk);var h,y;(f=(h=_.U(f==null?void 0:f.renderer,_.sfg))==null?void 0:(y=h.loggingDirectives)==null?void 0:y.trackingParams)&&_.UV().graftServerVe(f)}};
_.R.setActiveIndex=function(){_.t8().resolve(_.Z5).setActiveIndex(this.index)};
_.R.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.R.lazyUpdateMiniplayerData=function(){var f=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.nN.addLowPriorityJob(function(){f.updateMiniplayerData();f.updateMiniplayerDataJobId=void 0}))};
_.R.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.nN.cancelJob(this.updateMiniplayerDataJobId)};
_.R.updateMiniplayerData=function(){var f,H,v,t=_.t8().resolve(_.o0),M={shortsData:this.getCurrentShort(),previousButtonDisabled:!((f=this.prevButtonData)==null||!f.isDisabled),nextButtonDisabled:!((H=this.nextButtonData)==null||!H.isDisabled),playabilityStatus:(v=this.playerData)==null?void 0:v.playabilityStatus};_.uu(t,M)};
_.R.resetPlayerLocation=function(){var f=this.getPlayer();this.initialPlayerContainer&&f.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.R.movePlayerToVideo=function(f,H){var v=this;H=H===void 0?!0:H;var t=this.getActiveReelVideo(f),M=this.getPlayer();if(t){this.overlayContainer?t.appendChild(this.overlayContainer):(this.overlayContainer=_.mF(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,t.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||M.appendTo(this.overlayContainer.playerContainer,void 0,!0));var h;(h=this.player)==null||h.setSize(NaN,NaN);this.isActive||_.Lb(_.nN,function(){v.isActive=
!0});
M.style.visibility="visible";_.J("reels_web_disable_rtr_tick")||_.J("reels_web_use_pbs_first_shorts")&&f===0||_.u0("r_tr");this.currentPlayerIndex=f;t.appendChild(this.errorScreenContainer);var y;(y=this.JSC$22311_cinematicController)==null||_.bEr(y)}else H?_.nN.addLowPriorityJob(function(){v.movePlayerToVideo(v.index,!1)}):Math.random()<=_.VQ("web_shorts_error_logging_threshold")&&_.nb(new _.e$("Trying to movePlayerToVideo with undefined container.",{firstAttempt:H,
index:f}))};
_.R.enableFormatFirst=function(f){return _.J("web_enable_format_first")||f.adsOverlay&&_.J("web_enable_format_first_ads_only")||f.reelPlayerOverlayRenderer&&_.J("web_enable_format_first_organic_only")};
_.R.getAspectRatio=function(f){if(f!=null&&f.thumbnail&&this.enableFormatFirst(f))return"--ytd-shorts-player-ratio: "+f_D(f.thumbnail)};
_.R.getBackgroundImage=function(f){if(f!=null&&f.thumbnail)return(f=_.m3(f.thumbnail.thumbnails))?'background-image:url("'+f+'");':"background-color:black;"};
_.R.onPersistentPanelActiveChanged=function(){var f=this.getCurrentShort();if(f&&this.enableFormatFirst(f)&&(f==null?0:f.thumbnail)&&f_D(f.thumbnail)!==.5625){var H;(H=this.player)==null||H.setSize(NaN,NaN)}};
_.R.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.R.moveCinematicsToVideo=function(){var f=_.mF(this.hostElement).querySelector("ytd-reel-video-renderer");(f==null?0:f.cinematicContainer)&&f.cinematicContainer!==this.shortsCinematicContainer.parentElement&&f.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.R.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.R.updatePrevButtonData=function(){var f=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(f){var H;this.prevButtonData=f=Object.assign({},f,{accessibility:{label:_.ZC("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:f.isDisabled||this.index===-(((H=this.shortsProcessedPrevSequence)==null?void 0:H.length)||0),tooltip:this.isUpArrowHidden?"":_.ZC("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=f=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.R.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.R.updateNextButtonData=function(){var f=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(f){var H;this.nextButtonData=f=Object.assign({},f,{accessibility:{label:_.ZC("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:f.isDisabled||this.index===((H=this.shortsProcessedSequence)==null?void 0:H.length),tooltip:_.ZC("NEXT_VIDEO_LABEL")||""})}};
_.R.getPlayablePreviousIndex=function(){for(var f,H=this.index-1;H>=-(((f=this.prevShortsSequence)==null?void 0:f.length)||0);H--)if(!WsL().includes(H))return H;return null};
_.R.getIndexInSequence=function(f,H){return f.findIndex(function(v){var t;return((t=_.U(v.command,_.zD))==null?void 0:t.videoId)===H})};
_.R.handlePrevButtonClick=function(f){var H=this,v,t;return _.Y(function(M){v=H.getPlayablePreviousIndex();if(v===null)return M.return();H.gestureType=((t=f)==null?void 0:t.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";v===0&&(H.hidePreviousButtonImmediately=!0);if(H.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){H.transitionToVideoThrottle.fire(v)}),M.return();
H.scrollToVideoThrottle.fire(v);_.Bj(M)})};
_.R.getPlayableNextIndex=function(){for(var f,H=this.index+1;H<(((f=this.shortsProcessedSequence)==null?void 0:f.length)||0);H++)if(!WsL().includes(H))return H;return null};
_.R.handleNextButtonClick=function(f,H){var v=this,t,M;return _.Y(function(h){t=v.getPlayableNextIndex();if(t===null)return h.return();t===1&&(v.showPreviousButtonImmediately=!0);v.gestureType=((M=f)==null?void 0:M.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";H&&(v.gestureType=H);if(v.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){v.transitionToVideoThrottle.fire(t)}),h.return();
v.scrollToVideoThrottle.fire(t);_.Bj(h)})};
_.R.handleReelNavigateCommand=function(f,H,v){(f=_.U(f,Ur4))&&H&&f.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(v)};
_.R.loadVideo=function(f,H){H=H===void 0?!1:H;if(f!==this.currentPlayerIndex){_.vS().dispatch(hI(!1));if(this.isAd()&&!H){var v;(v=this.player)==null||v.notifyShortsAdSwipeEvent()}if((H=this.JSC$22311_cinematicController)!=null){var t;(t=H.currentCinematicEffect)==null||t.pause()}if((t=this.JSC$22311_cinematicController)!=null){var M;(M=t.currentCinematicEffect)==null||M.clear()}t=f>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(t));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var h,y,m,W;M=f<0?(h=this.shortsProcessedPrevSequence)==null?void 0:(y=h[this.shortsProcessedPrevSequence.length+f])==null?void 0:y.command:(m=this.shortsProcessedSequence)==null?void 0:(W=m[f])==null?void 0:W.command;this.index=f;this.gestureType||(this.gestureType=t?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
M&&this.isVideoContentCommand(M)&&(this.ytComponentBehavior.resolveCommand(M,{form:{createScreenConfig:{clickedVisualElement:t?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(M&&this.isNonVideoContentCommand(M)){this.currentEndpoint=M;this.data=void 0;h=_.UV();y=_.U(M,_.Dk);var I,S;(y=(I=_.U(y==null?void 0:y.renderer,_.sfg))==null?void 0:(S=I.screenLoggingData)==null?void 0:S.screenVeType)&&_.y8(h,y);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(I=this.getActiveReelVideo(f))&&I.appendChild(this.overlayContainer)}var d,Z;if(((d=this.reelWatchSequenceResponse)==null?0:d.continuationEndpoint)&&((Z=this.reelWatchSequenceResponse)==null?0:Z.entries)&&f===this.reelWatchSequenceResponse.entries.length-1){var l,L;d={contentPlaybackContext:_.KG({},(L=_.U((l=this.currentEndpoint)==null?void 0:l.commandMetadata,_.jG))==null?void 0:L.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:d})}var r,n,Q;((r=this.reelWatchSequenceResponse)==null?0:r.prevContinuationEndpoint)&&f===-(((n=this.reelWatchSequenceResponse)==null?void 0:(Q=n.prevEntries)==null?void 0:Q.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.R.setMiniplayerPreview=function(f){f=(f===void 0?0:f)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var H,v,t=_.t8().resolve(_.o0),M={shortsData:void 0,shortsPreviewThumbnail:f?(H=this.shortsProcessedSequence)==null?void 0:(v=H[f])==null?void 0:v.thumbnail:void 0};_.uu(t,M)};
_.R.updateTitle=function(f){var H,v;f=(f==null?0:f.adSlots)?"":(v=f==null?void 0:(H=f.videoDetails)==null?void 0:H.title)!=null?v:"";_.YE(this.hostElement,"yt-update-title",f)};
_.R.registerPanel=function(f){var H=_.t8().resolve(_.B5);if(H){f=_.V(f.engagementPanels||[]);for(var v=f.next();!v.done;v=f.next()){v=v.value;var t=this.getPanelContentIdentifier(v.engagementPanelSectionListRenderer),M=void 0,h=void 0;(h=(M=H).registerPanelContent)==null||h.call(M,t,v)}}};
_.R.getPanelIdentifier=function(f){var H;return(f==null?void 0:(H=f.identifier)==null?void 0:H.tag)||(f==null?void 0:f.panelIdentifier)||(f==null?void 0:f.targetId)};
_.R.getPanelContentIdentifier=function(f){var H;return(f==null?void 0:f.targetId)||(f==null?void 0:f.panelIdentifier)||(f==null?void 0:(H=f.identifier)==null?void 0:H.tag)};
_.R.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;_.vS().dispatch(hI(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;_.vS().dispatch(gv4(!1));var f=_.t8().resolve(_.Z5);f.dismissedIndices=[];f.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&
_.t8().resolve(_.o0).close(!0)};
_.R.processAppendReelWatchSequenceContinuationEntriesAction=function(f){var H=this,v;(v=this.intersectionObserver)==null||v.disconnect();f=f.appendReelWatchSequenceContinuationEntriesAction;if(f==null?0:f.entries){var t;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.pS(((t=this.reelWatchSequenceResponse)==null?void 0:t.entries)||[]),_.pS(f.entries)),continuationEndpoint:f.continuationEndpoint})}else if(f==null?0:f.prevEntries){var M;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.pS(((M=this.reelWatchSequenceResponse)==null?void 0:M.prevEntries)||[]),_.pS(f.prevEntries)),prevContinuationEndpoint:f.prevContinuationEndpoint});_.nN.addLowPriorityJob(function(){H.movePlayerToVideo(H.index);var h;(h=H.getActiveReelVideo(H.index))==null||h.scrollIntoView({block:"nearest",inline:H.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.nN.addLowPriorityJob(function(){H.observeShorts()},100)};
_.R.processWatchSequence=function(f){var H=this;return f.map(function(v){v=v.command;if(H.isVideoContentCommand(v)){var t=_.U(v,_.zD);return{reelPlayerOverlayRenderer:_.U(t==null?void 0:t.overlay,_.Zva),thumbnail:t.thumbnail,command:v}}return H.isNonVideoContentCommand(v)?(t=_.U(v,_.Dk),{reelNonVideoContentRenderer:_.U(t==null?void 0:t.renderer,_.sfg),command:v}):{command:v}})};
_.R.calculateIntersectionObserverThreshold=function(){var f=_.mF(this.hostElement).querySelector("ytd-reel-video-renderer"),H=1;(f==null?0:f.offsetHeight)&&(f==null?0:f.offsetWidth)&&(H=Math.min(f.offsetHeight,this.shortsContainer.offsetHeight)/f.offsetHeight*(Math.min(f.offsetWidth,this.shortsContainer.offsetWidth)/f.offsetWidth));return Math.round(H*.6*10)/10};
_.R.isVideoContentCommand=function(f){_.t8().resolve(_.Z5);return!!_.U(f,_.zD)};
_.R.isNonVideoContentCommand=function(f){_.t8().resolve(_.Z5);return!!_.U(f,_.Dk)};
_.R.initCinematicController=function(){var f=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22311_cinematicController=new _.Mq(this.shortsCinematicContainer,this.player);var H,v=_.U((H=this.data)==null?void 0:H.background,_.Fp);_.A5t(this.JSC$22311_cinematicController,v);_.X2i(this.JSC$22311_cinematicController,w25(v));_.c5A(this.JSC$22311_cinematicController);_.nN.addLowPriorityJob(function(){f.moveCinematicsToVideo()})}};
_.R.handleMiniplayerNavigateShorts=function(f){f==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():f==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.R.handleSignalActionToggleShortsPictureInPicture=function(){if(_.t8().resolve(_.o0).pictureInPictureSupported()){var f=_.t8().resolve(_.Z5);if(_.J("web_shorts_pip")){var H=_.t8().resolve(_.o0);f.isShortsPipActive()?H.deactivate():H.isMiniplayerActive()||(_.S0().shortsPipActivation=!0,_.fPw(H))}}else(f=this.player)==null||f.togglePictureInPicture()};
_.H7.Object.defineProperties(IJ.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.reelWatchSequenceResponse)!=null&&f.prevEntries)return this.processWatchSequence([].concat(_.pS(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var f=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!f)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var H=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.pS(this.prevShortsSequence.slice(0,H)),[f],_.pS(this.prevShortsSequence.slice(H+
1)))}H=this.index+this.shortsProcessedPrevSequence.length;f.thumbnail=this.shortsProcessedPrevSequence[H].thumbnail;return[].concat(_.pS(this.shortsProcessedPrevSequence.slice(0,H)),[f],_.pS(this.shortsProcessedPrevSequence.slice(H+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.reelWatchSequenceResponse)!=null&&f.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var f=this.getCurrentShort();if(!f||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[f];if(f==null||!f.reelNonVideoContentRenderer){var H=this.getIndexInSequence(this.shortsSequence,_.U(this.currentEndpoint,_.zD).videoId);if(this.index===0&&H!==-1)return this.currentPlayerIndex=this.index=H,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.pS(this.shortsSequence.slice(0,this.index)),[f],_.pS(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){f.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var v,t,M,h;H=((t=_.U((v=this.shortsProcessedSequence[0])==null?void 0:v.command,_.zD))==null?void 0:t.videoId)===((h=_.U((M=this.shortsSequence[0])==null?void 0:M.command,_.zD))==null?void 0:h.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.pS(this.shortsProcessedSequence.slice(0,
this.index)),[f],_.pS(this.shortsSequence.slice(H)))}return[f].concat(_.pS(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var f=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;f&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(f)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 f,H;return this.index===((f=this.reelWatchSequenceResponse)==null?void 0:(H=f.entries)==null?void 0:H.length)}var v;return!((v=this.reelWatchSequenceResponse)==null?0:v.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var f;(f=this.delayedActiveIndexUpdateDebouncer)==null||f.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var f,H,v;return this.isShortPlayable()||((H=_.U((f=this.data)==null?void 0:f.watchStatus,_.F59))==null?void 0:(v=H.style)==null?void 0:v.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var f=this,H=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),v;if((this.data||H)&&(((v=this.data)==null?0:v.engagementPanels)||this.isAd()||H)){H=!1;this.activePanel="shorts-comments-panel";var t;v=_.V(((t=this.data)==null?void 0:t.engagementPanels)||[]);for(t=v.next();!t.done;t=v.next())if(this.getPanelIdentifier(t.value.engagementPanelSectionListRenderer)===this.activePanel){H=!0;break}if(this.isPersistentPanelActive){var M=
_.t8().resolve(_.B5);_.Lb(_.nN,function(){M.showPanel(f.activePanel,void 0,void 0,void 0,null)},100)}var h;
t=[].concat(_.pS(Object.values(((h=this.data)==null?void 0:h.engagementPanels)||{})));if(_.J("enable_preview_panel_for_shorts_search_suggested_action")){var y,m,W,I,S;((I=_.U((y=this.data)==null?void 0:(m=y.overlay)==null?void 0:(W=m.reelPlayerOverlayRenderer)==null?void 0:W.metapanel,_.jfb))==null?void 0:(S=I.metadataItems)==null?void 0:S.find(function(d){var Z,l;return((Z=_.U(d,xro))==null?void 0:(l=Z.icon)==null?void 0:l.iconType)==="SEARCH"}))!==void 0&&t.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}h=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);y=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return h===void 0&&y===void 0||(h==null?0:h.isDisabled)||(y==null?void 0:y.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!H?(H=t==null?void 0:t.findIndex(function(d){var Z,
l;return((Z=d.engagementPanelSectionListRenderer)==null?void 0:(l=Z.identifier)==null?void 0:l.tag)==="shorts-comments-panel"}),H===-1||H===void 0||t!=null&&t.splice(H,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.ZC("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.ZC("CLOSE",void 0,"Close")}},command:{hideEngagementPanelEndpoint:{identifier:{surface:"ENGAGEMENT_PANEL_SURFACE_SHORTS",tag:"shorts-comments-panel"}}}}}}},content:{sectionListRenderer:{contents:[{itemSectionRenderer:{contents:[{messageRenderer:{style:{value:"RENDER_STYLE_PANEL"},text:{runs:[{text:_.ZC("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.ZC("LEARN_MORE",void 0,"Learn more"),navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/9706180",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://support.google.com/youtube/answer/9706180"}}}]}}}]}}]}},identifier:{surface:"ENGAGEMENT_PANEL_SURFACE_SHORTS",tag:"shorts-comments-panel"},loggingDirectives:{clientVeSpec:{uiType:139722}},visibility:"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"}}].concat(_.pS(Object.values(t||
{})))):t}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.shortsProcessedSequence)==null?void 0:f[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var f=this,H,v,t;if((H=this.playerData)==null?0:(v=H.playabilityStatus)==null?0:(t=v.errorScreen)==null?0:t.playerInterstitialRenderer)return _.nN.addLowPriorityJob(function(){f.movePlayerToVideo(f.index)}),this.playerData.playabilityStatus.errorScreen;
var M,h;return((M=this.data)==null?void 0:M.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((h=this.data)==null?0:h.watchStatus)&&_.U(this.data.watchStatus,_.lBh)?(_.nN.addLowPriorityJob(function(){f.movePlayerToVideo(f.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.H7.Object.defineProperties(IJ,{template:{configurable:!0,enumerable:!0,get:function(){if(zTO===void 0){var f=document.createElement("template");_.x(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n      <template class="style-scope ytd-shorts">\n        <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n          <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n          </div>\n        </div>\n      </template>\n    </dom-repeat>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);zTO=f}f=zTO;return f}}});
IJ.prototype.onNextButtonDataChange=IJ.prototype.onNextButtonDataChange;IJ.prototype.onPrevButtonDataChange=IJ.prototype.onPrevButtonDataChange;IJ.prototype.onPersistentPanelActiveChanged=IJ.prototype.onPersistentPanelActiveChanged;IJ.prototype.lazyUpdateMiniplayerData=IJ.prototype.lazyUpdateMiniplayerData;IJ.prototype.onShortsPipActiveChanged=IJ.prototype.onShortsPipActiveChanged;IJ.prototype.setActiveIndex=IJ.prototype.setActiveIndex;IJ.prototype.graftNvcRenderer=IJ.prototype.graftNvcRenderer;
IJ.prototype.graftClientVisualElements=IJ.prototype.graftClientVisualElements;IJ.prototype.onActiveChanged=IJ.prototype.onActiveChanged;IJ.prototype.onShortsDismiss=IJ.prototype.onShortsDismiss;IJ.prototype.onShortUndoDismiss=IJ.prototype.onShortUndoDismiss;IJ.prototype.playerDataChanged=IJ.prototype.playerDataChanged;IJ.prototype.afterPlayerStarted=IJ.prototype.afterPlayerStarted;IJ.prototype.updateReelWatchSequenceResponse=IJ.prototype.updateReelWatchSequenceResponse;
IJ.prototype.unhideCurrentOverlay=IJ.prototype.unhideCurrentOverlay;IJ.prototype.onServiceRequestCompleted=IJ.prototype.onServiceRequestCompleted;IJ.prototype.engagementPanelsChanged=IJ.prototype.engagementPanelsChanged;IJ.prototype.onFullscreenChange=IJ.prototype.onFullscreenChange;IJ.prototype.onResize=IJ.prototype.onResize;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],IJ.prototype,"ytComponentBehavior",void 0);
_.E([_.B(_.oL.YtPageBehavior),_.N("design:type",Object)],IJ.prototype,"ytPageBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],IJ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.x3),_.N("design:type",Object)],IJ.prototype,"ironResizableBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],IJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.PG),_.N("design:type",Object)],IJ.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.B(_.NW.YtdGuideStateAwareBehavior),_.N("design:type",Object)],IJ.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],IJ.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],IJ.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],IJ.prototype,"playerData",void 0);_.E([_.F(),_.N("design:type",Object)],IJ.prototype,"reelWatchSequenceResponse",void 0);
_.E([_.F(),_.N("design:type",Object)],IJ.prototype,"cachedReelWatchSequenceResponse",void 0);_.E([_.F(),_.N("design:type",Object)],IJ.prototype,"cachedSequenceParams",void 0);_.E([_.F(),_.N("design:type",Object)],IJ.prototype,"cachedSequenceProvider",void 0);_.E([_.F(),_.N("design:type",Object)],IJ.prototype,"currentEndpoint",void 0);_.E([_.F(),_.N("design:type",Object)],IJ.prototype,"nextButtonData",void 0);_.E([_.F(),_.N("design:type",Object)],IJ.prototype,"prevButtonData",void 0);
_.E([_.F(),_.N("design:type",Object)],IJ.prototype,"isPreviousPageShorts",void 0);_.E([_.F(),_.N("design:type",Object)],IJ.prototype,"index",void 0);_.E([_.F(),_.N("design:type",Object)],IJ.prototype,"delayedActiveIndex",void 0);_.E([_.F(),_.N("design:type",Object)],IJ.prototype,"playablePreviousIndex",void 0);_.E([_.F(),_.N("design:type",Object)],IJ.prototype,"player",void 0);_.E([_.F(),_.N("design:type",Object)],IJ.prototype,"isPlayerPaused",void 0);
_.E([_.F({selector:vvD}),_.N("design:type",Object)],IJ.prototype,"isPlayerStarted",void 0);_.E([_.F(),_.N("design:type",Object)],IJ.prototype,"intersectionObserver",void 0);_.E([_.F(),_.N("design:type",Number)],IJ.prototype,"cinematicsInitializeJobId",void 0);_.E([_.F(),_.N("design:type",Number)],IJ.prototype,"updateMiniplayerDataJobId",void 0);_.E([_.F(),_.N("design:type",Object)],IJ.prototype,"fitToVisibleBounds",void 0);_.E([_.F(),_.N("design:type",Object)],IJ.prototype,"pageSubtype",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],IJ.prototype,"enablePreviousContinuation",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],IJ.prototype,"shortsPipEnabled",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],IJ.prototype,"isDark",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],IJ.prototype,"shortsViewTransitions",void 0);
_.E([_.F({selector:_.Mi,reflectToAttribute:!0}),_.N("design:type",Object)],IJ.prototype,"isFullscreen",void 0);_.E([_.F({selector:_.hY,reflectToAttribute:!0}),_.N("design:type",Object)],IJ.prototype,"isShortsPipActive",void 0);_.E([_.lJ("#shorts-inner-container"),_.N("design:type",HTMLElement)],IJ.prototype,"shortsInnerContainer",void 0);_.E([_.lJ("#back-nav-button ytd-button-renderer"),_.N("design:type",_.vG)],IJ.prototype,"backNavButton",void 0);
_.E([_.lJ("#shorts-container"),_.N("design:type",HTMLElement)],IJ.prototype,"shortsContainer",void 0);_.E([_.yx("error-screen"),_.N("design:type",HTMLElement)],IJ.prototype,"errorScreenContainer",void 0);_.E([_.yx("player"),_.N("design:type",Object)],IJ.prototype,"playerElement",void 0);_.E([_.yx("shorts-cinematic-container"),_.N("design:type",HTMLElement)],IJ.prototype,"shortsCinematicContainer",void 0);
_.E([_.yx("initial-player-container"),_.N("design:type",HTMLElement)],IJ.prototype,"initialPlayerContainer",void 0);_.E([_.F(),_.N("design:type",Object)],IJ.prototype,"buttonOverride",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],IJ.prototype,"anchoredPanelActive",void 0);_.E([_.F(),_.N("design:type",String)],IJ.prototype,"activePanel",void 0);_.E([_.F(),_.N("design:type",Object)],IJ.prototype,"isActive",void 0);
_.E([_.F({selector:Hgv,reflectToAttribute:!0}),_.N("design:type",Object)],IJ.prototype,"smallScreenPersistentPanel",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],IJ.prototype,"isPersistentPanelActive",void 0);_.E([_.F(),_.N("design:type",Object)],IJ.prototype,"smallScreenSqueezeBack",void 0);_.E([_.F(),_.N("design:type",Object)],IJ.prototype,"enableScrollIntoViewCenter",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],IJ.prototype,"formatFirst",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],IJ.prototype,"enableFlexibleOverlay",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],IJ.prototype,"useAspectRatio",void 0);_.E([_.F(),_.N("design:type",Object)],IJ.prototype,"panelContainer",void 0);_.E([_.F(),_.N("design:type",Object)],IJ.prototype,"overlayContainer",void 0);_.E([_.F(),_.N("design:type",Object)],IJ.prototype,"isShortsInitialized",void 0);
_.E([_.z("reelWatchSequenceResponse"),_.N("design:type",Object),_.N("design:paramtypes",[])],IJ.prototype,"prevShortsSequence",null);_.E([_.z("data","prevShortsSequence"),_.N("design:type",Object),_.N("design:paramtypes",[])],IJ.prototype,"shortsProcessedPrevSequence",null);_.E([_.z("reelWatchSequenceResponse"),_.N("design:type",Object),_.N("design:paramtypes",[])],IJ.prototype,"shortsSequence",null);
_.E([_.z("data","shortsSequence"),_.N("design:type",Object),_.N("design:paramtypes",[])],IJ.prototype,"shortsProcessedSequence",null);_.E([_.F({reflectToAttribute:!0}),_.z("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],IJ.prototype,"isUpArrowHidden",null);
_.E([_.F({reflectToAttribute:!0}),_.z("reelWatchSequenceResponse","index","endOfNextContinuation"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],IJ.prototype,"isDownArrowHidden",null);_.E([_.F(),_.z("index"),_.N("design:type",Number),_.N("design:paramtypes",[])],IJ.prototype,"activeIndex",null);_.E([_.z("isShortPlayable","data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],IJ.prototype,"shouldRenderOfflineContent",null);
_.E([_.sE("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IJ.prototype,"onResize",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],IJ.prototype,"anchoredEngagementPanels",null);_.E([_.F(),_.N("design:type",Object)],IJ.prototype,"watchWhileEngagementPanels",void 0);_.E([_.Zw("isFullscreen"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IJ.prototype,"onFullscreenChange",null);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IJ.prototype,"engagementPanelsChanged",null);_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.TI]),_.N("design:returntype")],IJ.prototype,"onServiceRequestCompleted",null);_.E([_.z("data","shortsSequence","index"),_.N("design:type",Object),_.N("design:paramtypes",[])],IJ.prototype,"activeReel",null);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IJ.prototype,"unhideCurrentOverlay",null);_.E([_.Zw("currentEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IJ.prototype,"updateReelWatchSequenceResponse",null);_.E([_.Zw("isPlayerStarted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IJ.prototype,"afterPlayerStarted",null);
_.E([_.z("playerData","reelWatchSequenceResponse","data"),_.N("design:type",Object),_.N("design:paramtypes",[])],IJ.prototype,"errorScreen",null);_.E([_.z("errorScreen"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],IJ.prototype,"hasError",null);_.E([_.Zw("playerData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],IJ.prototype,"playerDataChanged",null);
_.E([_.sE("yt-dismissible-item-undo-feedback"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IJ.prototype,"onShortUndoDismiss",null);_.E([_.sE("yt-disable-lockup-interaction"),_.N("design:type",Function),_.N("design:paramtypes",[Object]),_.N("design:returntype")],IJ.prototype,"onShortsDismiss",null);_.E([_.xV("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IJ.prototype,"onActiveChanged",null);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IJ.prototype,"graftClientVisualElements",null);_.E([_.Zw("currentPlayerIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IJ.prototype,"graftNvcRenderer",null);_.E([_.Zw("index"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IJ.prototype,"setActiveIndex",null);
_.E([_.Zw("isShortsPipActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IJ.prototype,"onShortsPipActiveChanged",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IJ.prototype,"lazyUpdateMiniplayerData",null);_.E([_.F(),_.N("design:type",Object)],IJ.prototype,"onOverlayDensityChanged",void 0);
_.E([_.Zw("isPersistentPanelActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IJ.prototype,"onPersistentPanelActiveChanged",null);_.E([_.Zw("index","data","isUpArrowHidden"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IJ.prototype,"onPrevButtonDataChange",null);_.E([_.Zw("index","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IJ.prototype,"onNextButtonDataChange",null);
_.E([_.u({is:"ytd-shorts"})],IJ);_.ya.registerService(_.C8b,IJ);
_.uS();
}catch(e){_._DumpException(e)}
try{
_.QX("JzFVk");
var kGb;var TW5;var oG=function(){return _.K.apply(this,arguments)||this};
_.e(oG,_.K);oG.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
oG.prototype.computeBlueBottomLink=function(f){return f};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],oG.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],oG.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],oG.prototype,"data",void 0);_.E([_.F({computed:"computeIcon_(data.bottomIcon)"}),_.N("design:type",String)],oG.prototype,"bottomIcon",void 0);
_.E([_.F({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.N("design:type",Boolean)],oG.prototype,"enableBlueBottomLink",void 0);_.E([_.u({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],oG);
_.G(oG,"ytd-web-answer-renderer",function(){if(TW5!==void 0)return TW5;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return TW5=f},{mode:_.WK("kevlar_poly_si_batch_j035")?1:2});var wf5;var nt=function(){var f=_.K.apply(this,arguments)||this;f.hasChipBar=!1;return f};
_.e(nt,_.K);nt.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}}};
nt.prototype.computeHasChipBar=function(f){return!(f==null||!f.chipBar)};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],nt.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],nt.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],nt.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.N("design:type",Object)],nt.prototype,"hasChipBar",void 0);_.E([_.u({is:"ytd-search-header-renderer",disableElementRegistration:!0})],nt);
_.G(nt,"ytd-search-header-renderer",function(){if(wf5!==void 0)return wf5;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return wf5=f},{mode:1});var qA0;var pt=function(){return _.K.apply(this,arguments)||this};
_.e(pt,_.K);pt.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],pt.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],pt.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],pt.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-page-continuation"})],pt);
_.G(pt,"ytd-page-continuation",function(){if(qA0!==void 0)return qA0;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return qA0=f},{mode:1});var fZh;var HEG;var vN0;var Qf=function(){return _.K.apply(this,arguments)||this};
_.e(Qf,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Qf.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Qf.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],Qf);
_.G(Qf,"ytd-watch-card-one-vs-one-event",function(){if(vN0!==void 0)return vN0;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return vN0=f},{mode:1});var uj=function(){return _.K.apply(this,arguments)||this};
_.e(uj,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],uj.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],uj.prototype,"data",void 0);_.E([_.u({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],uj);
_.G(uj,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(HEG!==void 0)return HEG;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return HEG=f},{mode:1});var tLt;var aG=function(){return _.K.apply(this,arguments)||this};
_.e(aG,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],aG.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],aG.prototype,"data",void 0);_.E([_.u({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],aG);
_.G(aG,"ytd-banner-and-box-hero-image-renderer",function(){if(tLt!==void 0)return tLt;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return tLt=f},{mode:1});var MLh;var Py=function(){var f=_.K.apply(this,arguments)||this;f.modern=_.J("web_modern_buttons");return f};
_.e(Py,_.K);Py.prototype.computeIcon=function(){var f,H,v=(f=this.data)==null?void 0:(H=f.icon)==null?void 0:H.iconType;if(v)return _.SW(v)};
Py.prototype.computeButtonShape=function(){var f;return{buttonText:_.fG((f=this.data)==null?void 0:f.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.H7.Object.defineProperties(Py.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"}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Py.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Py.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Py.prototype,"modern",void 0);_.E([_.F({type:_.J("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.z("data.style"),_.N("design:type",Object),_.N("design:paramtypes",[])],Py.prototype,"buttonColor",null);
_.E([_.u({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],Py);
_.G(Py,"ytd-call-to-action-button-renderer",function(){if(MLh!==void 0)return MLh;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return MLh=f},{mode:1});var hyW;var GS=function(){return _.K.apply(this,arguments)||this};
_.e(GS,_.K);GS.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.mF(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.YK(this.data.leftThumbnail.thumbnails,216)+")")};
GS.prototype.onLeftThumbnailChanged=GS.prototype.onLeftThumbnailChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],GS.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],GS.prototype,"data",void 0);_.E([_.Zw("data.leftThumbnail"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],GS.prototype,"onLeftThumbnailChanged",null);_.E([_.u({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],GS);
_.G(GS,"ytd-collage-hero-image-renderer",function(){if(hyW!==void 0)return hyW;var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return hyW=f},{mode:1});var RyW;var Ct=function(){return _.K.apply(this,arguments)||this};
_.e(Ct,_.K);Ct.prototype.computeStyle=function(f){return f};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Ct.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Ct.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],Ct.prototype,"componentStyle",void 0);_.E([_.u({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],Ct);
_.G(Ct,"ytd-single-hero-image-renderer",function(){if(RyW!==void 0)return RyW;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return RyW=f},{mode:1});var VLw;var E9=function(){return _.K.apply(this,arguments)||this};
_.e(E9,_.K);_.R=E9.prototype;
_.R.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:_.J("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.R.computeSubtitle=function(f){if(this.data){var H;if(this.data.upcomingEventData){f=_.fG(f.subtitle);var v=Number(this.data.upcomingEventData.startTime);isNaN(v)||(H=_.qO(_.x$(f,v)))}else H=f.subtitle;return H}};
_.R.onHeroTap=function(f){f.preventDefault();var H=this.data&&this.data.navigationEndpoint;!H||!_.w6(_.f2(f),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.w6(_.f2(f),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.J("kevlar_watchcard_hero_video_renderer_killswitch")?_.YE(this.hostElement,"yt-navigate",{navigationEndpoint:H}):this.ytComponentBehavior.resolveCommand(H))};
_.R.computeHeroTabIndex=function(f){return f&&f.simpleText?-1:0};
_.R.computeHeroRole=function(f){return f&&f.simpleText?"":"link"};
_.R.computeIsReminderButtonPresent=function(f){return!(!f||!f.reminderButton)};
_.R.computeHideBottomItems=function(f){return!(this.computeIsReminderButtonPresent(f)||f.subtitle)};
_.R.dataChanged=function(){var f=this.get("data.buttons.buttonRenderer.serviceEndpoint"),H;((H=_.U(f==null?void 0:f.commandMetadata,_.eA))==null?0:H.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(f)};
E9.prototype.dataChanged=E9.prototype.dataChanged;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],E9.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],E9.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],E9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],E9.prototype,"data",void 0);
_.E([_.F({computed:"computeSubtitle(data)"}),_.N("design:type",String)],E9.prototype,"subtitle",void 0);_.E([_.F({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],E9.prototype,"isReminderButtonPresent",void 0);_.E([_.F({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],E9.prototype,"hideBottomItems",void 0);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],E9.prototype,"dataChanged",null);_.E([_.u({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],E9);
_.G(E9,"ytd-watch-card-hero-video-renderer",function(){if(VLw!==void 0)return VLw;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return VLw=f},{mode:1});var y50;var NZ=function(){return _.K.apply(this,arguments)||this};
_.e(NZ,_.K);_.R=NZ.prototype;_.R.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"}}}};
_.R.computeTitleBadges=function(f){return f?[f]:[]};
_.R.computeHeaderStyle=function(f){return f?f.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.R.computeAvatarAriaLabel=function(f){if(f){var H,v,t,M;return(M=(H=f.avatar)==null?void 0:(v=H.accessibility)==null?void 0:(t=v.accessibilityData)==null?void 0:t.label)!=null?M:_.fG(f==null?void 0:f.title)}};
_.R.computeAvatarHeight=function(f){return f==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.R.computeBadgeRowClass=function(f){return(f==null?0:f[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],NZ.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],NZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],NZ.prototype,"data",void 0);_.E([_.F({computed:"computeTitleBadges(data.titleBadge)"}),_.N("design:type",Array)],NZ.prototype,"titleBadges",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.N("design:type",String)],NZ.prototype,"headerStyle",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.N("design:type",String)],NZ.prototype,"badgeRowClass",void 0);_.E([_.u({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],NZ);
_.G(NZ,"ytd-watch-card-rich-header-renderer",function(){if(y50!==void 0)return y50;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return y50=f},{mode:1});var YQG;var mKw;var cy=function(){return _.K.apply(this,arguments)||this};
_.e(cy,_.K);cy.prototype.onMetadataTap=function(f){var H=this.data&&this.data.navigationEndpoint;H&&!_.w6(_.f2(f),this.hostElement,["A".toString()])&&_.YE(this.hostElement,"yt-navigate",{endpoint:H})};
_.H7.Object.defineProperties(cy.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 f;if(this.data.upcomingEventData){var H=_.fG(this.data.subtitle),v=Number(this.data.upcomingEventData.startTime);isNaN(v)||(f=_.qO(_.x$(H,v)))}else f=this.data.subtitle;return f}}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],cy.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],cy.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.z("data.style"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],cy.prototype,"isCondensed",null);_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],cy.prototype,"subtitle",null);
_.E([_.u({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],cy);
_.G(cy,"ytd-watch-card-compact-video-renderer",function(){if(mKw!==void 0)return mKw;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return mKw=f},{mode:1});var $K5;var Xc=function(){return _.K.apply(this,arguments)||this};
_.e(Xc,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Xc.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Xc.prototype,"data",void 0);_.E([_.u({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],Xc);
_.G(Xc,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if($K5!==void 0)return $K5;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return $K5=f},{mode:1});var A4=function(){return _.K.apply(this,arguments)||this};
_.e(A4,_.K);A4.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}}}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],A4.prototype,"ytRendererStamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],A4.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],A4.prototype,"data",void 0);_.E([_.u({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],A4);
_.G(A4,"ytd-vertical-watch-card-list-renderer",function(){if(YQG!==void 0)return YQG;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return YQG=f},{mode:1});var W8i;var bj=function(){var f=_.K.apply(this,arguments)||this;f.ariaExpanded="false";return f};
_.e(bj,_.K);_.R=bj.prototype;_.R.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.R.dataChanged=function(){var f;this.currentSeasonIndex=((f=this.data)==null?void 0:f.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.R.computeEpisodesInfo=function(f,H,v){if(f!==void 0&&H.length===f.length)return f[v]};
_.R.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.R.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.R.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.R.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.R.getUppercaseSimpleString=function(f){return this.ytRendererBehavior.getSimpleString(f).toUpperCase()};
_.R.updateCurrentSeasonIndexFromBinding=function(f){this.currentSeasonIndex=f.detail.value};
bj.prototype.onIronOverlayClosed=bj.prototype.onIronOverlayClosed;bj.prototype.currentSeasonIndexChanged=bj.prototype.currentSeasonIndexChanged;bj.prototype.dataChanged=bj.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],bj.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],bj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],bj.prototype,"data",void 0);
_.E([_.F(),_.N("design:type",String)],bj.prototype,"label",void 0);_.E([_.F({value:0}),_.N("design:type",Number)],bj.prototype,"currentSeasonIndex",void 0);_.E([_.F({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.N("design:type",Object)],bj.prototype,"episodesInfo",void 0);_.E([_.F({value:"false"}),_.N("design:type",Object)],bj.prototype,"ariaExpanded",void 0);_.E([_.lJ("#lists"),_.N("design:type",Object)],bj.prototype,"lists",void 0);
_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bj.prototype,"dataChanged",null);_.E([_.xV("currentSeasonIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bj.prototype,"currentSeasonIndexChanged",null);_.E([_.sE("iron-overlay-closed"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],bj.prototype,"onIronOverlayClosed",null);
_.E([_.u({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],bj);
_.G(bj,"ytd-watch-card-section-dropdown-renderer",function(){if(W8i!==void 0)return W8i;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return W8i=f},{mode:1});var OEi;var ij=function(){var f=_.K.apply(this,arguments)||this;f.isSearch=!1;return f};
_.e(ij,_.K);ij.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}}}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],ij.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ij.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],ij.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],ij.prototype,"isSearch",void 0);_.E([_.u({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],ij);
_.G(ij,"ytd-watch-card-section-sequence-renderer",function(){if(OEi!==void 0)return OEi;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);
return OEi=f},{mode:1});var gNi=_.a(function(f){return _.O("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.O(_.Jj,{data:function(){return f.data().ctaButton}},{buttonViewModel:_.Wp}),_.O(_.iq,{text:function(){return f.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"lk");
gNi.idomCompat=!0;_.yn(gNi,"ytd-button-banner-view-model",{props:{data:_.ki}});var k2=function(){var f=_.K.apply(this,arguments)||this;f.isSearch=!1;return f};
_.e(k2,_.K);
k2.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"}}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],k2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],k2.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],k2.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],k2.prototype,"rounded",void 0);_.E([_.F(),_.N("design:type",Object)],k2.prototype,"isSearch",void 0);
_.E([_.u({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],k2);
_.G(k2,"ytd-universal-watch-card-renderer",function(){if(fZh!==void 0)return fZh;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return fZh=f},{mode:1});var IZh;_.yn(_.a(function(f){var H=f.data;var v;f=!((v=_.t8().resolve(_.vh(_.TK)))==null||!v());v={};return _.O("overview-message-view-model",{class:_.S2("ytwOverviewMessageViewModelHost",(v.ytwOverviewMessageViewModelDarkBackground=f,v.ytwOverviewMessageViewModelLightBackground=!f,v))},_.O(_.g,{cond:function(){return H().primaryImage},
then:function(t){return _.O(_.Hn,{data:t,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.O(_.g,{cond:function(){return H().primaryText},
then:function(){return _.O("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.O(_.iq,{text:function(){return H().primaryText}}))}}),_.O(_.g,{cond:function(){return H().secondaryText},
then:function(){return _.O("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.O(_.iq,{text:function(){return H().secondaryText}}))}}))},"mk"),"overview-message-view-model",{props:{data:_.ki}});_.yn(_.njh,"ytd-overview-answer-view-model",{props:{data:_.ki}});var TS=function(){return _.K.apply(this,arguments)||this};
_.e(TS,_.K);TS.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"}}}};
TS.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],TS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],TS.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.E_),_.N("design:type",Object)],TS.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],TS.prototype,"data",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],TS.prototype,"isSearch",void 0);
_.E([_.u({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],TS);
_.G(TS,"ytd-secondary-search-container-renderer",function(){if(IZh!==void 0)return IZh;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);
return IZh=f},{mode:1});var SQw;var wV=function(){var f=_.K.apply(this,arguments)||this;f.renderSecondarySearchContainer=!1;f.isSearch=!1;return f};
_.e(wV,_.K);_.R=wV.prototype;_.R.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"}}}};
_.R.created=function(){var f=this;this.boundStampSecondarySearchContainerIfFits=function(){f.stampSecondarySearchContainerIfFits()};
_.pc("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.R.computeIsSearchFrictionPage=function(f){var H,v,t,M,h;f=f==null?void 0:(H=f.primaryContents)==null?void 0:(v=H.sectionListRenderer)==null?void 0:(t=v.contents)==null?void 0:(M=t[0])==null?void 0:(h=M.itemSectionRenderer)==null?void 0:h.contents;if(!f)return!1;H=_.V(f);for(v=H.next();!v.done;v=H.next())if(t=void 0,(t=v.value)==null?0:t.searchFrictionViewModel)return!0;return!1};
_.R.computeShowSecondaryColumn=function(f,H){return!!(H&&H.secondaryContents&&f)};
_.R.activeChanged=function(){var f=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.jr(this,this.debounceStampSecondarySearchContainerIfFits)),_.bJ(function(){f.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.jr(this,this.debounceStampSecondarySearchContainerIfFits))};
_.R.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.R.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.R.debounceStampSecondarySearchContainerIfFits=function(){_.iJ(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.R.onRetrieveLocation=function(f,H){H.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);f.stopPropagation()};
_.R.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
wV.prototype.dataChanged=wV.prototype.dataChanged;wV.prototype.onRetrieveLocation=wV.prototype.onRetrieveLocation;wV.prototype.persistentGuideChanged=wV.prototype.persistentGuideChanged;wV.prototype.activeChanged=wV.prototype.activeChanged;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],wV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],wV.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.NW.YtdGuideStateAwareBehavior),_.N("design:type",Object)],wV.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.B(_.x3),_.N("design:type",Object)],wV.prototype,"ironResizableBehavior",void 0);_.E([_.F(),_.N("design:type",Boolean)],wV.prototype,"active",void 0);_.E([_.F(),_.N("design:type",Object)],wV.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,value:function(){return _.J("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],wV.prototype,"useBiggerThumbs",void 0);_.E([_.F({reflectToAttribute:!0,value:function(){return _.yQ("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],wV.prototype,"biggerThumbsStyle",void 0);_.E([_.F(),_.N("design:type",Object)],wV.prototype,"renderSecondarySearchContainer",void 0);_.E([_.F({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.N("design:type",Boolean)],wV.prototype,"showSecondaryColumn",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.N("design:type",Boolean)],wV.prototype,"isSearchFrictionPage",void 0);
_.E([_.F(),_.N("design:type",Object)],wV.prototype,"isSearch",void 0);_.E([_.Zw("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wV.prototype,"activeChanged",null);_.E([_.Zw("guidePersistentAndVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wV.prototype,"persistentGuideChanged",null);
_.E([_.sE("yt-retrieve-location"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],wV.prototype,"onRetrieveLocation",null);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wV.prototype,"dataChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],wV);
_.G(wV,"ytd-two-column-search-results-renderer",function(){if(SQw!==void 0)return SQw;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return SQw=f},{mode:1});var qZ=function(){var f=_.K.apply(this,arguments)||this;f.hasSearchHeader=!1;f.hasSecondaryContent=!1;f.hasBiggerThumbs=_.J("enable_desktop_search_bigger_thumbs");f.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return f};
_.e(qZ,_.K);_.R=qZ.prototype;_.R.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:_.EX(["aa","eocs"])}}};
_.R.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.R.loadPage_=function(f){this.initCsi();f&&(this.data=f,_.pc("REFINEMENTS_TUPLE",["FromSearchResponse",f.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.Tj(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.R.initCsi=function(){_.DG("results",["ol","cpt"])};
_.R.updateTitle=function(){var f=_.c_(window.location.href,"q");f||(f=_.c_(window.location.href,"search_query"));_.YE(this.hostElement,"yt-update-title",f||"")};
_.R.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.R.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.J("web_srp_data_changed_terminate_imp_killswitch")||_.mb(this.hostElement,"yt-terminate-video-preview-action")};
_.R.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.R.computeHasSearchHeader=function(f){var H;f=f==null?void 0:(H=f.header)==null?void 0:H.searchHeaderRenderer;return!!f&&(!!f.searchFilterButton||!!f.chipBar)};
_.R.computeHasSecondaryContent=function(f){var H,v;return!!(f==null?0:(H=f.contents)==null?0:(v=H.twoColumnSearchResultsRenderer)==null?0:v.secondaryContents)};
_.H7.Object.defineProperties(qZ,{template:{configurable:!0,enumerable:!0,get:function(){if(kGb===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);kGb=f}f=kGb;return f}}});
qZ.prototype.onReloadContinuationFinish=qZ.prototype.onReloadContinuationFinish;qZ.prototype.dataChanged=qZ.prototype.dataChanged;_.E([_.B(_.oL.YtPageBehavior),_.N("design:type",Object)],qZ.prototype,"ytPageBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],qZ.prototype,"actionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],qZ.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],qZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.E_),_.N("design:type",Object)],qZ.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],qZ.prototype,"data",void 0);_.E([_.F({value:!0}),_.N("design:type",Boolean)],qZ.prototype,"monitorScroll",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],qZ.prototype,"hasSearchHeader",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],qZ.prototype,"hasSecondaryContent",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],qZ.prototype,"hasBiggerThumbs",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qZ.prototype,"dataChanged",null);
_.E([_.sE("yt-reload-continuation-finish"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qZ.prototype,"onReloadContinuationFinish",null);_.E([_.u({is:"ytd-search"})],qZ);_.ya.registerService(_.GaE,qZ);
_.uS();
}catch(e){_._DumpException(e)}
try{
_.QX("h8y2qb");
var YKG=function(f){if(f=_.Ze5(f)){var H;(H=f.sources)!=null&&H[0]?(H=_.l$E(f),H=H<1?"VERTICAL":H>1?"HORIZONTAL":"SQUARE"):H=void 0;return H}},nn=function(f){_.dK.call(this,"upload");
this.opts.query=f},$qp=function(f,H){return _.O(mq5,{data:f,
onYtNavigate:H})},Wob=function(f,H){return _.dL(f.entities,"pageHeaderEntity",H)},gsW=function(f,H){return f.map(function(v){if(v.tabRenderer)return OzW(v.tabRenderer);
if(v.expandableTabRenderer&&H){var t=v.expandableTabRenderer;return{customTabRenderable:function(){return H(t)}}}return{}})},OzW=function(f){return{identifier:f.tabIdentifier,
aTagConfig:_.NE({innertubeCommand:f.endpoint,forceNewState:!0}),title:f.title,selected:f.selected,disabled:f.unselectable,icon:f.icon}},IQr=function(f){return _.yq({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:f})},SKF=function(f){if(!_.Ml(document,"gtm-noscript")){var H=document.createElement("noscript");
H.id="gtm-noscript";H.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+f+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(H)}};_.f8(nn,_.dK);nn.prototype.JSC$10064_setLabel=function(f){nn.superClass_.JSC$10064_setLabel.call(this,f);return this};
nn.prototype.addUploadMetadata=function(f,H){nn.superClass_.addUploadMetadata.call(this,f,H);return this};var dq0=function(f){if(f!=="youtubebanner"&&f!=="youtube-channel-banner")throw Error("vo");nn.call(this,f)};
_.e(dq0,nn);dq0.prototype.JSC$10064_setLabel=function(f){nn.prototype.JSC$10064_setLabel.call(this,f);return this};
dq0.prototype.addUploadMetadata=function(f,H){nn.prototype.addUploadMetadata.call(this,f,H);return this};var jJA=[_.x3,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(f){_.Fj(f).path[0]!==this&&(this.resetLayout(),f.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var f=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.ML(this._layoutDebouncer,_.Ku,f);_.hq(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var f=this;requestAnimationFrame(function(){f.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(f){this.resizerShouldNotify(f)&&this._notifyDescendant(f)},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 sJb=[_.ssn,{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(f,H){var v=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[f];if(!v)throw new ReferenceError(this._getUndefinedMsg(f));f=this._boundEffect(v,H||{});f.setUp();return f},
_effectsChanged:function(f,H,v){this._tearDownEffects();f&&v&&(f.split(" ").forEach(function(t){var M;t!==""&&((M=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[t])?this._effects.push(this._boundEffect(M,H[t])):console.warn(this._getUndefinedMsg(t)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(f,H){H=H||{};var v=parseFloat(H.startsAt||0),t=parseFloat(H.endsAt||1),M=t-v,h=function(){};
t=v===0&&t===1?f.run:function(y,m){f.run.call(this,Math.max(0,(y-v)/M),m)};
return{setUp:f.setUp?f.setUp.bind(this,H):h,run:f.run?t.bind(this):h,tearDown:f.tearDown?f.tearDown.bind(this):h}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(f){f.setUp()!==!1&&this._effectsRunFn.push(f.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(f){f.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(f,H){this._effectsRunFn&&this._effectsRunFn.forEach(function(v){v(f,H)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var f=this._clampedScrollTop;this._updateScrollState(f);this.threshold>0&&this._setThresholdTriggered(f>=this.threshold)}},
_getDOMRef:function(f){console.warn("_getDOMRef","`"+f+"` is undefined")},
_getUndefinedMsg:function(f){return"Scroll effect `"+f+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+f+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("wo`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(f){var H={};f=parseFloat(f.scalar);H.background=this._getDOMRef("background");H.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");H.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");H.deltaBg=H.backgroundFrontLayer.offsetHeight-H.background.offsetHeight;H.deltaBg===0?(isNaN(f)&&(f=.8),H.deltaBg=(this._dHeight||0)*f):(isNaN(f)&&(f=
1),H.deltaBg*=f);this._fxParallaxBackground=H},
run:function(f){var H=this._fxParallaxBackground;this.transform("translate3d(0px, "+H.deltaBg*Math.min(1,f)+"px, 0px)",H.backgroundFrontLayer);H.backgroundRearLayer&&this.transform("translate3d(0px, "+H.deltaBg*Math.min(1,f)+"px, 0px)",H.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var Zzx;var JIh;var lQb=function(){};
_.R=lQb.prototype;_.R._scrollTargetChanged=function(){};
_.R.scroll=function(){};
_.R._isValidScrollTarget=function(){};
_.R._toggleScrollListener=function(){};
_.R.toggleScrollListener=function(){};
_.R.createEffect=function(){};
_.R._effectsChanged=function(){};
_.R._layoutIfDirty=function(){};
_.R._boundEffect=function(){};
_.R._setUpEffect=function(){};
_.R._tearDownEffects=function(){};
_.R._runEffects=function(){};
_.R._scrollHandler=function(){};
_.R._scrollStateChanged=function(){};
_.R._getUndefinedMsg=function(){};
_.R.notifyResize=function(){};
_.R.assignParentResizable=function(){};
_.R.stopResizeNotificationsFor=function(){};
_.R._subscribeIronResize=function(){};
_.R._unsubscribeIronResize=function(){};
_.R.resizerShouldNotify=function(){};
_.R._onDescendantIronResize=function(){};
_.R._fireResize=function(){};
_.R._onIronRequestResizeNotifications=function(){};
_.R._parentResizableChanged=function(){};
_.R._notifyDescendant=function(){};
_.R._requestResizeNotifications=function(){};
_.R._findParent=function(){};
_.R._appResetLayoutHandler=function(){};
_.R.resetLayout=function(){};
_.R._notifyLayoutChanged=function(){};
_.R._notifyDescendantResize=function(){};
_.R._setThresholdTriggered=function(){};
lQb=_.p2({_template:function(){if(JIh!==void 0)return JIh;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;Zzx===void 0&&(Zzx=document.createElement("template"));var t=Zzx;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return JIh=f},
is:"tp-yt-app-header",behaviors:[sJb,jJA],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 f=_.Fj(this.$.slot).getDistributedNodes(),H=0,v;v=f[H];H++)if(v.nodeType===Node.ELEMENT_NODE)if(v.hasAttribute("sticky")){this._stickyElRef=v;break}else this._stickyElRef||(this._stickyElRef=v);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var f=this._clampedScrollTop,H=this._height===0||f===0,v=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;H||this._updateScrollState(0,!0);this._mayMove()?this._dHeight=this._stickyEl?this._height-this._stickyEl.offsetHeight:0:this._dHeight=0;this._stickyElTop=this._stickyEl?this._stickyEl.offsetTop:0;this._setUpEffect();H?this._updateScrollState(f,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=v}},
_updateScrollState:function(f,H){if(this._height!==0){var v=0,t=this._top;var M=this._maxHeaderTop;var h=f-this._lastScrollTop,y=Math.abs(h),m=f>this._lastScrollTop,W=performance.now();this._mayMove()&&(v=this._clamp(this.reveals?t+h:f,0,M));f>=this._dHeight&&(v=this.condenses&&!this.fixed?Math.max(this._dHeight,v):v,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&y<100){if(W-this._initTimestamp>300||this._wasScrollingDown!==m)this._initScrollTop=f,this._initTimestamp=W;f>=M&&
(Math.abs(this._initScrollTop-f)>30||y>10?(m&&f>=M?v=M:!m&&f>=this._dHeight&&(v=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((v-t)/(h/(W-this._lastTimestamp)),0,300)+"ms"):v=this._top)}M=this._dHeight===0?f>0?1:0:v/this._dHeight;H||(this._lastScrollTop=f,this._top=v,this._wasScrollingDown=m,this._lastTimestamp=W);if(H||M!==this._progress||t!==v||f===0)this._progress=M,this._runEffects(M,v),this._transformHeader(v)}},
_mayMove:function(){return this.condenses||!this.fixed},
willCondense:function(){return this._dHeight>0&&this.condenses},
isOnScreen:function(){return this._height!==0&&this._top<this._height},
isContentBelow:function(){return this._top===0?this._clampedScrollTop>0:this._clampedScrollTop-this._maxHeaderTop>=0},
_transformHeader:function(f){this.translate3d(0,-f+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&f>=this._stickyElTop?Math.min(f,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(f,H,v){return Math.min(v,Math.max(H,f))},
_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),_.Fj(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(f){switch(f){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.Fj(this).querySelector("[main-title]");case "condensedTitle":return _.Fj(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var UqW;var eWx;_.p2({_template:function(){if(eWx!==void 0)return eWx;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;UqW===void 0&&(UqW=document.createElement("template"));var t=UqW;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return eWx=f},
is:"tp-yt-app-header-layout",behaviors:[jJA],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.Fj(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var f=this.header;if(this.isAttached&&f){this.$.wrapper.classList.remove("initializing");f.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)f.style.left=
"",f.style.right="";else{var H=this.getBoundingClientRect(),v=document.documentElement.clientWidth-H.right;f.style.left=H.left+"px";f.style.right=v+"px"}H=this.$.contentContainer.style;v=f.offsetHeight;f.fixed&&!f.condenses&&this.hasScrollingRegion?(H.marginTop=v+"px",H.paddingTop=""):(H.paddingTop=v+"px",H.marginTop="")}}});var LoW=new _.Ak("alertCommand");var xqW=new _.Ak("manageLabsStateCommand");var B7h=new _.Ak("inlineFormRenderer");var pn=new _.Ak("playlistSidebarPrimaryInfoRenderer");var zWr=new _.Ak("productDetailsThumbnailRenderer"),Fot=new _.Ak("productDetailsVariantRenderer"),rIr=new _.Ak("productDetailsVariantOptionRenderer"),Kop=new _.Ak("productDetailsOffersContainerRenderer"),DqF=new _.Ak("productDetailsOfferRenderer");var osW=new _.Ak("shoppingFlaggingRenderer");var nsh=new _.Ak("playlistBylineRenderer");var p3w=new _.Ak("insertChannelTabCommand");var Q0=function(){return _.er.apply(this,arguments)||this};
_.e(Q0,_.er);_.R=Q0.prototype;_.R.activeChanged=function(){if(this.active){var f=_.mF(this.hostElement).querySelector("#header");f&&_.YE(f,"iron-resize");window.addEventListener("scroll",_.jr(this,this.onScroll))}else window.removeEventListener("scroll",_.jr(this,this.onScroll)),_.YE(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.R.guideVisibleChanged=function(){var f=_.mF(this.hostElement).querySelector("#header");f&&_.YE(f,"iron-resize")};
_.R.onScroll=function(){var f=this;_.iJ(this,"onScroll",function(){var H=_.mF(f.hostElement).querySelector("#header");H&&H.polymerController&&(H=H.polymerController.getScrollState().progress===1?"standard":"seamed",_.YE(f.hostElement,"yt-request-panel-mode-change",{mode:H}))},10)};
_.R.tabsChanged=function(){if(this.tabs){for(var f=null,H=0,v=this.tabs.length;H<v;++H){var t=this.tabs[H].tabRenderer;if(t&&t.selected){f=H;break}}this.selected=f}};
_.R.onTabsActivate=function(f){_.YE(this.hostElement,"yt-navigate",{endpoint:this.tabs[f.detail.selected].tabRenderer.endpoint})};
Q0.prototype.tabsChanged=Q0.prototype.tabsChanged;Q0.prototype.guideVisibleChanged=Q0.prototype.guideVisibleChanged;Q0.prototype.activeChanged=Q0.prototype.activeChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Q0.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.NW.YtdGuideStateAwareBehavior),_.N("design:type",Object)],Q0.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.F(),_.N("design:type",Array)],Q0.prototype,"tabs",void 0);
_.E([_.F(),_.N("design:type",Object)],Q0.prototype,"selected",void 0);_.E([_.F(),_.N("design:type",Boolean)],Q0.prototype,"active",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Q0.prototype,"disableHeaderFluidWidth",void 0);_.E([_.Zw("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Q0.prototype,"activeChanged",null);
_.E([_.Zw("guidePersistentAndVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Q0.prototype,"guideVisibleChanged",null);_.E([_.Zw("tabs"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Q0.prototype,"tabsChanged",null);_.E([_.L2()],Q0);var QJx=[_.k.YtRendererBehavior,_.NW.YtdGuideStateAwareBehavior,Q0.prototype];var uuh=2/3,aQW=_.$$(130749),Pir=function(f,H){var v=this;this.element=f;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){v.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:uuh,moveAction:function(t){v.moveAction(t)},
triggerAction:function(){v.element.isReloading=!0;_.NY(_.UV(),{visualElement:aQW});_.jW.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:v.element}})}}}};
_.mE(_.UV(),aQW,this.layer);this.gesture=new _.mD(f,H,this.refreshConfig,"pan-down");this.attach()};
_.R=Pir.prototype;_.R.attach=function(){this.gesture.attach()};
_.R.detach=function(){this.gesture.detach()};
_.R.reset=function(){this.element.close()};
_.R.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.R.moveAction=function(f){this.element.rotation=f*360};var G0G=_.$$(130750),u8=function(f,H,v,t,M){var h=this;this.element=f;this.parent=v;this.channelHeader=t;this.ytdReduxDispatch=M;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){h.tabsStartAtInPx=h.channelHeader.clientHeight-48;var y;(y=h.selectedTab)!=null&&y.title&&(y=_.t8().resolve(_.vh(_.fT)))&&(y=y.getCurrentPage(),h.lastVisitedTabScrollPosition=y.getScrollTop(),h.previousTab&&
((h.lastVisitedTabScrollPosition===void 0?0:h.lastVisitedTabScrollPosition<h.channelHeader.clientHeight-48)?h.scrollPositionForTabs.has(h.selectedTab.title)&&h.scrollPositionForTabs.delete(h.selectedTab.title):h.scrollPositionForTabs.set(h.selectedTab.title,y.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:Cih(),triggerAction:function(){h.navigate(h.previousTab)},
moveAction:function(y,m){h.moveAction(y,m)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-Cih(),triggerAction:function(){h.navigate(h.nextTab)},
moveAction:function(y,m){h.moveAction(y,m)}}}};
_.mE(_.UV(),G0G,this.layer);this.gesture=new _.mD(f,H,this.tabConfig);this.attach()};
u8.prototype.attach=function(){this.gesture.attach()};
u8.prototype.detach=function(){this.gesture.detach()};
u8.prototype.tabsChanged=function(f){if(f){var H=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;f=_.V(f);for(var v=f.next();!v.done;v=f.next()){v=v.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=v);var t=void 0;if((t=v)==null?0:t.selected)this.previousTab=H,this.selectedTab=v;H=v}H=this.gesture;f=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}});
H.config=f;this.scrollPositionNeedsUpdate=!0}};
u8.prototype.moveAction=function(f,H){if(!this.tabsElement){var v;this.tabsElement=(v=this.parent.header)==null?void 0:v.tabsElement;H==="right"&&this.previousTab?_.tQ9(_.lq.instance,this.previousTab.endpoint,{},""):H==="left"&&this.nextTab&&_.tQ9(_.lq.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}v=this.tabsElement._pos;H==="right"&&(f*=-1);this.tabsElement._positionBar(v.width,v.left*1+v.width*f)};
var Cih=function(){var f,H;return(H=(f=_.t8().resolve(_.fT).getCurrentPage())==null?void 0:f.clientWidth)!=null?H:0};
u8.prototype.navigate=function(f){this.element.data=void 0;if(f=f==null?void 0:f.endpoint)this.ytdReduxDispatch(IQr(!0)),_.NY(_.UV(),{visualElement:G0G}),_.jW.instance.resolveCommand({navigateAction:{endpoint:f}},{form:{element:this.element}})};var EsA;var N7W;var aL=function(){return _.K.apply(this,arguments)||this};
_.e(aL,_.K);aL.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],aL.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],aL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],aL.prototype,"data",void 0);_.E([_.u({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],aL);
_.G(aL,"ytd-labs-edit-renderer",function(){if(N7W!==void 0)return N7W;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return N7W=f},{mode:1});var cIG;var Pe=function(){var f=_.K.apply(this,arguments)||this;f.dark=!1;f.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";f.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.e(Pe,_.K);Pe.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Pe.prototype.ready=function(){var f=document.documentElement.hasAttribute("dark");this.setBackgroundImage(f);this.dark=f};
Pe.prototype.onDarkModeToggledAction=function(f){this.setBackgroundImage(f);this.dark=f};
Pe.prototype.setBackgroundImage=function(f){_.Sr(this.hostElement,{"--yt-labs-header-background":"url("+(f?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Pe.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Pe.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Pe.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Pe.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Pe.prototype,"dark",void 0);
_.E([_.u({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],Pe);
_.G(Pe,"ytd-labs-header-renderer",function(){if(cIG!==void 0)return cIG;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return cIG=f},{mode:1});var X3W;var Ga=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return f};
_.e(Ga,_.K);Ga.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"}}}}}};
Ga.prototype.onYtToggleButton=function(f){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",f.detail.toggled)};
Ga.prototype.onManageLabsState=function(f){if(f=_.U(f,xqW))f.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?f.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&f.labsItemId===this.data.labsItemId&&(f.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.mb(this.hostElement,"yt-check-labs-opted-in-state").some(function(H){return H})&&this.data.confirmationDialogCommand?_.Oj(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.t8().resolve(_.MJ).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&f.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.t8().resolve(_.MJ).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
Ga.prototype.onCheckLabsOptedInState=function(){var f=this.get("data.primaryButton.toggleButtonRenderer");return f?f.isToggled:!1};
_.H7.Object.defineProperties(Ga.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
Ga.prototype.onYtToggleButton=Ga.prototype.onYtToggleButton;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Ga.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Ga.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Ga.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Ga.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ga.prototype,"itemStyle",null);_.E([_.sE("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ga.prototype,"onYtToggleButton",null);_.E([_.u({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],Ga);
_.G(Ga,"ytd-labs-item-renderer",function(){if(X3W!==void 0)return X3W;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return X3W=f},{mode:1});var AIw;var bz0;var Cn=function(){return _.K.apply(this,arguments)||this};
_.e(Cn,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Cn.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Cn.prototype,"data",void 0);_.E([_.u({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],Cn);
_.G(Cn,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(bz0!==void 0)return bz0;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return bz0=f},{mode:1});var izW;var Ed=function(){return _.K.apply(this,arguments)||this};
_.e(Ed,_.K);Ed.prototype.observeSuperchatChip=function(){if(this.data){var f={"--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)};_.Sr(this.hostElement,f)}};
Ed.prototype.colorFromDecimal=function(f){return _.cS(Number(f||0))};
Ed.prototype.observeSuperchatChip=Ed.prototype.observeSuperchatChip;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Ed.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Ed.prototype,"data",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ed.prototype,"observeSuperchatChip",null);_.E([_.u({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],Ed);
_.G(Ed,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(izW!==void 0)return izW;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return izW=f},{mode:1});var N4=function(){return _.K.apply(this,arguments)||this};
_.e(N4,_.K);N4.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"}}}};
_.H7.Object.defineProperties(N4.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],N4.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],N4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.PG),_.N("design:type",Object)],N4.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],N4.prototype,"data",void 0);_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],N4.prototype,"hideMessageBlock",null);
_.E([_.u({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],N4);
_.G(N4,"ytd-live-chat-history-entry-renderer",function(){if(AIw!==void 0)return AIw;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return AIw=f},{mode:1});var k0G;var ce=function(){return _.K.apply(this,arguments)||this};
_.e(ce,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ce.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],ce.prototype,"data",void 0);_.E([_.u({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],ce);
_.G(ce,"ytd-channel-options-renderer",function(){if(k0G!==void 0)return k0G;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return k0G=f},{mode:1});var T7h;var Xp=function(){return _.K.apply(this,arguments)||this};
_.e(Xp,_.K);Xp.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Xp.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Xp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Xp.prototype,"data",void 0);_.E([_.u({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],Xp);
_.G(Xp,"ytd-settings-email-item-renderer",function(){if(T7h!==void 0)return T7h;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return T7h=f},{mode:1});var w3x;var A0=function(){return _.K.apply(this,arguments)||this};
_.e(A0,_.K);A0.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"}}}};
A0.prototype.getExpansionIcon=function(f){return f?"COLLAPSE":"EXPAND"};
A0.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.H7.Object.defineProperties(A0.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],A0.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],A0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],A0.prototype,"data",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],A0.prototype,"expanded",void 0);_.E([_.z("expanded"),_.N("design:type",String),_.N("design:paramtypes",[])],A0.prototype,"emailListExpanded",null);
_.E([_.lJ("#options"),_.N("design:type",Object)],A0.prototype,"options",void 0);_.E([_.u({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],A0);
_.G(A0,"ytd-settings-email-list-renderer",function(){if(w3x!==void 0)return w3x;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return w3x=f},{mode:1});var qKx;var b8=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return f};
_.e(b8,_.K);b8.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"}}}};
b8.prototype.handleSignalActionSubmitForm=function(){var f,H=(f=this.formRenderer)==null?void 0:f.getForm();H&&this.data.serviceEndpoint&&_.t8().resolve(_.MJ).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},H,{element:this.hostElement})})};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],b8.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],b8.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],b8.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],b8.prototype,"data",void 0);_.E([_.lJ("yt-form-renderer"),_.N("design:type",Object)],b8.prototype,"formRenderer",void 0);
_.E([_.u({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],b8);
_.G(b8,"ytd-settings-gaia-link-renderer",function(){if(qKx!==void 0)return qKx;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return qKx=f},{mode:1});var fT0;var i8=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return f};
_.e(i8,_.K);i8.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.L7W()&&this.set("data.hidden",!1)};
i8.prototype.onSwitchReady=function(){var f=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.J("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.ei0().then(function(H){H&&(Notification.permission==="default"?f.set("data.hidden",!1):Notification.permission==="granted"&&_.YL("NotificationsDisabled").then(function(v){v||_.mb(f.hostElement,"yt-toggle-settings-switch",[f.data.id,!v]);f.set("data.hidden",!1)}).catch(function(){}))})})};
i8.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}}}}};
i8.prototype.handleUpdateOptionsCommand=function(f){(f=_.U(f,_.m7n))&&this.data&&this.data.id===f.id&&(this.set("data.hidden",f.hidden),f.text!==void 0&&this.set("data.text",f.text),f.clearOptions&&this.set("data.options",[]))};
i8.prototype.onSwitchReady=i8.prototype.onSwitchReady;i8.prototype.dataChanged=i8.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],i8.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],i8.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],i8.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],i8.prototype,"data",void 0);
_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],i8.prototype,"dataChanged",null);_.E([_.sE("yt-settings-switch-ready"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],i8.prototype,"onSwitchReady",null);_.E([_.u({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],i8);
_.G(i8,"ytd-settings-options-renderer",function(){if(fT0!==void 0)return fT0;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return fT0=f},{mode:1});var H$b;var kj=function(){return _.K.apply(this,arguments)||this};
_.e(kj,_.K);kj.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
kj.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
kj.prototype.onYtExpanderMoreTapped=kj.prototype.onYtExpanderMoreTapped;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],kj.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],kj.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],kj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],kj.prototype,"data",void 0);
_.E([_.sE("yt-expander-more-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kj.prototype,"onYtExpanderMoreTapped",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],kj);
_.G(kj,"ytd-product-details-description-renderer",function(){if(H$b!==void 0)return H$b;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return H$b=f},{mode:1});var voG;var Ta=function(){var f=_.K.apply(this,arguments)||this;f.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";f.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";f.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";f.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return f};
_.e(Ta,_.K);Ta.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.H7.Object.defineProperties(Ta.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var f,H;return((f=this.data)==null?void 0:(H=f.offerData)==null?void 0:H.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var f,H;return((f=this.data)==null?void 0:f.purchaseButtonRenderers)!==void 0&&((H=this.data)==null?void 0:H.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var f,H;return!((f=this.data)==null||!f.formattedFromMerchantText)&&(!((H=this.data)==null||!H.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Ta.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Ta.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Ta.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Ta.prototype,"data",void 0);
_.E([_.F({type:_.J("kevlar_property_type_migration_killswitch")?String:void 0}),_.N("design:type",Object)],Ta.prototype,"shippingIcon",void 0);_.E([_.F({type:_.J("kevlar_property_type_migration_killswitch")?String:void 0}),_.N("design:type",Object)],Ta.prototype,"shippingAddressIcon",void 0);_.E([_.F({type:_.J("kevlar_property_type_migration_killswitch")?String:void 0}),_.N("design:type",Object)],Ta.prototype,"googleGuaranteeIcon",void 0);
_.E([_.F({type:_.J("kevlar_property_type_migration_killswitch")?String:void 0}),_.N("design:type",Object)],Ta.prototype,"returnPolicyIcon",void 0);_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ta.prototype,"showAdditionalFees",null);_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ta.prototype,"showMultiPurchaseButtons",null);
_.E([_.z("data","showMultiPurchaseButtons"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ta.prototype,"showPurchaseData",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],Ta);
_.G(Ta,"ytd-product-details-hero-offer-renderer",function(){if(voG!==void 0)return voG;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return voG=f},{mode:1});var tZw;var MZr;var wR=function(){return _.K.apply(this,arguments)||this};
_.e(wR,_.K);_.R=wR.prototype;_.R.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.R.onKeyDown=function(f){f=f.keyCode;f!==13&&f!==32||this.handleSelection()};
_.R.onMouseEnterImage=function(){var f;((f=this.data)==null?void 0:f.thumbnailDetails)!==void 0&&_.$E(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.R.onMouseLeaveImage=function(){_.$E(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.R.handleSelection=function(){this.data&&_.YE(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.H7.Object.defineProperties(wR.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.isSelected)}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],wR.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],wR.prototype,"data",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],wR.prototype,"isSelected",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],wR);
_.G(wR,"ytd-product-details-thumbnail-renderer",function(){if(MZr!==void 0)return MZr;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return MZr=f},{mode:1});var q4=function(){var f=_.K.apply(this,arguments)||this;var H={};f.actionMap=(H["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",H["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",H);f.selectedThumbnailIndex=0;f.selectItem=function(v){v.target.onKeyDown(v)};
return f};
_.e(q4,_.K);_.R=q4.prototype;_.R.handlePreviewImageSelect=function(f){this.hoverThumbnail=f};
_.R.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.R.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.R.onThumbnailSelected=function(f,H){this.selectedThumbnailIndex=H};
_.R.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.R.updateOffset=function(){var f=_.mF(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-f));this.ytdHorizontalListBehavior.reposition_()};
_.H7.Object.defineProperties(q4.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null?0:f.imageRenderer){var H,v;return((H=this.data)==null?void 0:(v=H.imageRenderer)==null?void 0:v.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var f;if((f=this.data)==null?0:f.imageRenderer){var H;return(H=_.U(this.data.imageRenderer[this.selectedThumbnailIndex],zWr))==null?void 0:H.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var f=this,H,v,t,M=(t=(H=this.data)==null?void 0:(v=H.imageRenderer)==null?void 0:v.map(function(h,y){return{productDetailsThumbnailRenderer:Object.assign({},_.U(h,zWr),{index:y,isSelected:y===f.selectedThumbnailIndex})}}))!=null?t:[];
return Object.assign({},this.data,{imageRenderer:M})}}});
q4.prototype.updateOffset=q4.prototype.updateOffset;q4.prototype.dataChanged=q4.prototype.dataChanged;q4.prototype.onThumbnailSelected=q4.prototype.onThumbnailSelected;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],q4.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],q4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.Rt.YtdHorizontalListBehavior),_.N("design:type",Object)],q4.prototype,"ytdHorizontalListBehavior",void 0);
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],q4.prototype,"componentBehavior",void 0);_.E([_.B([_.dt.YtActionHandlerBehavior]),_.N("design:type",Object)],q4.prototype,"actionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],q4.prototype,"data",void 0);_.E([_.F({value:"$.items.children"}),_.N("design:type",String)],q4.prototype,"itemsPath",void 0);_.E([_.F({value:3}),_.N("design:type",Number)],q4.prototype,"initialCount",void 0);
_.E([_.lJ("#items"),_.N("design:type",Object)],q4.prototype,"items",void 0);_.E([_.F(),_.N("design:type",Object)],q4.prototype,"selectedThumbnailIndex",void 0);_.E([_.F(),_.N("design:type",Object)],q4.prototype,"hoverThumbnail",void 0);_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],q4.prototype,"showThumbnails",null);
_.E([_.sE("ytd-product-details-thumbnail-renderer-selected"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Number]),_.N("design:returntype")],q4.prototype,"onThumbnailSelected",null);_.E([_.z("data","selectedThumbnailIndex","hoverThumbnail"),_.N("design:type",Object),_.N("design:paramtypes",[])],q4.prototype,"thumbnailDetails",null);_.E([_.z("data","selectedThumbnailIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],q4.prototype,"populatedData",null);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],q4.prototype,"dataChanged",null);_.E([_.sE("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],q4.prototype,"updateOffset",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],q4);
_.G(q4,"ytd-product-details-image-carousel-renderer",function(){if(tZw!==void 0)return tZw;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return tZw=f},{mode:_.WK("kevlar_poly_si_batch_j079")?1:2});var hMx;var ft=function(){return _.K.apply(this,arguments)||this};
_.e(ft,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ft.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],ft.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],ft.prototype,"componentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],ft.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],ft);
_.G(ft,"ytd-product-details-offer-renderer",function(){if(hMx!==void 0)return hMx;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return hMx=f},{mode:1});var RMh;var Hy=function(){var f=_.K.apply(this,arguments)||this;f.isOffersHidden=!0;return f};
_.e(Hy,_.K);Hy.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var f,H=_.U((f=this.data)==null?void 0:f.viewOffersButton,_.nv);H&&this.ytRendererBehavior.logExplicitClick(H)};
Hy.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.H7.Object.defineProperties(Hy.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var f,H,v,t;return(v=_.U((f=this.data)==null?void 0:(H=f.offers)==null?void 0:H[0],DqF))==null?void 0:(t=v.offerData)==null?void 0:t.vendorLogoUrl}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Hy.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Hy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Hy.prototype,"componentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Hy.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],Hy.prototype,"isOffersHidden",void 0);
_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Hy.prototype,"firstOfferVendorLogoUrl",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],Hy);
_.G(Hy,"ytd-product-details-offers-container-renderer",function(){if(RMh!==void 0)return RMh;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return RMh=f},{mode:1});var VZW;var yvW;var vy=function(){return _.K.apply(this,arguments)||this};
_.e(vy,_.K);vy.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
vy.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.$E(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
vy.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.$E(this,"ytd-product-details-variant-image-unselect")};
_.H7.Object.defineProperties(vy.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 f;return((f=this.data)==null?void 0:f.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var f,H,v;return((f=this.data)==null?void 0:f.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((H=this.data)==null?void 0:H.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((v=this.data)==null?void 0:v.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var f;if(((f=this.data)==null?void 0:f.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var f,H;return this.isUnavailable?(f=this.data)==null?void 0:f.variantOptionUnavailableAccessibilityLabel:(H=this.data)==null?void 0:H.variantOptionAccessibilityLabel}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],vy.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],vy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],vy.prototype,"componentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],vy.prototype,"data",void 0);_.E([_.F(),_.N("design:type",String)],vy.prototype,"displayType",void 0);
_.E([_.z("displayType","data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],vy.prototype,"isImageButton",null);_.E([_.z("displayType","data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],vy.prototype,"isPillButton",null);_.E([_.z("data"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],vy.prototype,"isActive",null);
_.E([_.z("data"),_.F({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],vy.prototype,"isUnavailable",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],vy.prototype,"thumbnailDetails",null);_.E([_.z("isUnavailable","data"),_.N("design:type",Object),_.N("design:paramtypes",[])],vy.prototype,"accessibilityLabel",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],vy);
_.G(vy,"ytd-product-details-variant-option-renderer",function(){if(yvW!==void 0)return yvW;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return yvW=f},{mode:1});var YAr;var t4=function(){var f=_.K.apply(this,arguments)||this;f.variantsExpanded=!1;f.hideShowMoreLessVariantButton=!0;f.initialized=!1;f.computeVariantsDebouncer=null;f.computeVariants=function(H){H=H===void 0?!1:H;f.variantsExpanded||f.showOptions()||!H||(f.variantsExpanded=!0);if(f.variantsExpanded){H=_.V(f.items.children);for(var v=H.next();!v.done;v=H.next())v.value.hidden=!1}f.initialized=!0};
return f};
_.e(t4,_.K);_.R=t4.prototype;_.R.ready=function(){var f=this;setTimeout(function(){f.computeVariants(!0)})};
_.R.showOptions=function(){for(var f=_.V(this.items.children),H=f.next();!H.done;H=f.next())H.value.hidden=!0;var v=this.container.getBoundingClientRect().width,t=0,M=f=0;H=!1;for(var h=_.V(this.items.children),y=h.next();!y.done;y=h.next()){y=y.value;y.hidden=!1;var m=y.getBoundingClientRect().width;if(t+m<v)t+=m;else if(++M<2)t=m;else break;f+=1;y.hasAttribute("is-active")&&(H=!0)}for(v=f;v<this.items.children.length;v++)this.items.children[v].hidden=!0;this.hideShowMoreLessVariantButton=f===this.items.children.length;
return H};
_.R.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.ML(this.computeVariantsDebouncer,_.XQ.after(100),this.computeVariants)};
_.R.onShowMoreLessVariantsButtonClick=function(){var f;(f=this.data)!=null&&f.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.R.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.H7.Object.defineProperties(t4.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var f,H,v=(f=this.data)==null?void 0:(H=f.variantOptionRenderers)==null?void 0:H.find(function(h){return _.U(h,rIr).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),t,M;
return(M=(t=_.U(v,rIr))==null?void 0:t.name)!=null?M:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.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"}}}});
t4.prototype.debouncedComputeVariants=t4.prototype.debouncedComputeVariants;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],t4.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],t4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],t4.prototype,"componentBehavior",void 0);_.E([_.B(_.x3),_.N("design:type",Object)],t4.prototype,"ironResizableBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],t4.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],t4.prototype,"variantsExpanded",void 0);_.E([_.F(),_.N("design:type",Object)],t4.prototype,"hideShowMoreLessVariantButton",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],t4.prototype,"initialized",void 0);_.E([_.lJ("#items"),_.N("design:type",HTMLDivElement)],t4.prototype,"items",void 0);_.E([_.lJ("#container"),_.N("design:type",HTMLDivElement)],t4.prototype,"container",void 0);
_.E([_.lJ("#more-variants-button"),_.N("design:type",HTMLElement)],t4.prototype,"moreVariantsButton",void 0);_.E([_.z("data"),_.N("design:type",String),_.N("design:paramtypes",[])],t4.prototype,"selectedOptionName",null);_.E([_.Zw("data","variantsExpanded"),_.sE("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],t4.prototype,"debouncedComputeVariants",null);
_.E([_.z("data"),_.N("design:type",String),_.N("design:paramtypes",[])],t4.prototype,"displayType",null);_.E([_.z("displayType"),_.N("design:type",Object),_.N("design:paramtypes",[])],t4.prototype,"variantItemsClassname",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],t4);
_.G(t4,"ytd-product-details-variant-renderer",function(){if(YAr!==void 0)return YAr;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return YAr=f},{mode:1});var MZ=function(){return _.K.apply(this,arguments)||this};
_.e(MZ,_.K);
MZ.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"}}}};
_.H7.Object.defineProperties(MZ.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var f,H,v=(H=_.U((f=this.data)==null?void 0:f.offersContainerRenderer,Kop))==null?void 0:H.offers;return v!==void 0&&(v==null?void 0:v.length)>1}},
showBuySeparator:{configurable:!0,enumerable:!0,get:function(){return this.showOffers&&this.showPurchaseData}},
showBuyCard:{configurable:!0,enumerable:!0,get:function(){return this.showOffers||this.showPurchaseData}},
selectedVariantsText:{configurable:!0,enumerable:!0,get:function(){var f,H,v;return((v=(f=this.data)==null?void 0:(H=f.variants)==null?void 0:H.map(function(t){var M,h;t=(h=(M=_.U(t,Fot))==null?void 0:M.variantOptionRenderers)==null?void 0:h.find(function(m){var W;return((W=_.U(m,rIr))==null?void 0:W.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var y;return(y=_.U(t,rIr))==null?void 0:y.name}).filter(function(t){return typeof t==="string"}))!=null?v:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var f,H,v,t=(H=_.U((f=this.data)==null?void 0:f.shoppingFlaggingRenderer,osW))==null?void 0:(v=H.reportButton)==null?void 0:v.buttonRenderer;if(t)return{text:t.text,command:t.command,icon:{iconType:"FLAG"},accessibilityData:t.accessibilityData,trackingParams:t.trackingParams,loggingDirectives:t.loggingDirectives}}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],MZ.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],MZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],MZ.prototype,"componentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],MZ.prototype,"data",void 0);_.E([_.lJ("#image-carousel-renderer"),_.N("design:type",Object)],MZ.prototype,"imageCarouselRenderer",void 0);
_.E([_.lJ("#hero-offer-renderer"),_.N("design:type",Object)],MZ.prototype,"productDetailsHeroOfferRenderer",void 0);_.E([_.lJ("#variants"),_.N("design:type",Object)],MZ.prototype,"productDetailsVariantRenderer",void 0);_.E([_.lJ("#offers"),_.N("design:type",Object)],MZ.prototype,"productDetailsOffersContainerRenderer",void 0);_.E([_.lJ("#description-renderer"),_.N("design:type",Object)],MZ.prototype,"productDetailsDescriptionRenderer",void 0);
_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],MZ.prototype,"showPurchaseData",null);_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],MZ.prototype,"showHeroOfferRenderer",null);_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],MZ.prototype,"showBrandText",null);_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],MZ.prototype,"showOffers",null);
_.E([_.z("showOffers","showPurchaseData"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],MZ.prototype,"showBuySeparator",null);_.E([_.z("showOffers","showPurchaseData"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],MZ.prototype,"showBuyCard",null);_.E([_.z("data"),_.N("design:type",String),_.N("design:paramtypes",[])],MZ.prototype,"selectedVariantsText",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],MZ.prototype,"shoppingReportingButtonData",null);
_.E([_.u({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],MZ);
_.G(MZ,"ytd-product-details-renderer",function(){if(VZW!==void 0)return VZW;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return VZW=f},{mode:1});var m9t;var $9G;var Wqt;var h4=function(){return _.K.apply(this,arguments)||this};
_.e(h4,_.K);h4.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.H7.Object.defineProperties(h4.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],h4.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],h4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],h4.prototype,"data",void 0);_.E([_.F(),_.N("design:type",String)],h4.prototype,"formattedAmount",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],h4.prototype,"ariaLabel",void 0);
_.E([_.F({reflectToAttribute:!0}),_.z("data.style"),_.N("design:type",String),_.N("design:paramtypes",[])],h4.prototype,"vcBalanceWidgetStyle",null);_.E([_.GW({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],h4);
_.G(h4,"yt-vc-balance-renderer",function(){if(Wqt===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;$9G===void 0&&($9G=document.createElement("template"));var t=$9G;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Wqt=f}f=Wqt;return f},{mode:2});_.DE("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var RG=function(){return _.K.apply(this,arguments)||this};
_.e(RG,_.K);_.H7.Object.defineProperties(RG.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:""}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],RG.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],RG.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],RG.prototype,"data",void 0);_.E([_.F({selectorArgs:["data.vcBalanceEntityKey"],selector:function(f,H){return _.dL(f.entities,"vcBalanceEntity",H)}}),
_.N("design:type",Object)],RG.prototype,"vcBalanceEntity",void 0);_.E([_.z("vcBalanceEntity"),_.N("design:type",String),_.N("design:paramtypes",[])],RG.prototype,"formattedAmount",null);_.E([_.z("vcBalanceEntity"),_.N("design:type",String),_.N("design:paramtypes",[])],RG.prototype,"vcBalanceAriaLabel",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],RG);
_.G(RG,"ytd-vc-balance-renderer",function(){if(m9t!==void 0)return m9t;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return m9t=f},{mode:1});var O$x;var Vf=function(){var f=_.K.apply(this,arguments)||this;f.rotation=0;f.isReloading=!1;return f};
_.e(Vf,_.K);Vf.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
Vf.prototype.reset=function(){this.hostElement.style.opacity=""};
Vf.prototype.close=function(){var f=this;return _.Y(function(H){if(H.nextAddress==1)return H.yield(f.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);f.hostElement.style.opacity="0";_.Bj(H)})};
Vf.prototype.rotationChanged=Vf.prototype.rotationChanged;_.E([_.F(),_.N("design:type",Object)],Vf.prototype,"rotation",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Vf.prototype,"isReloading",void 0);_.E([_.lJ("#icon"),_.N("design:type",HTMLElement)],Vf.prototype,"icon",void 0);_.E([_.Zw("rotation"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vf.prototype,"rotationChanged",null);
_.E([_.u({disableElementRegistration:!0,is:"ytd-refresh"})],Vf);
_.G(Vf,"ytd-refresh",function(){if(O$x!==void 0)return O$x;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return O$x=f},{mode:1});var gob;var yf=function(){return _.K.apply(this,arguments)||this};
_.e(yf,_.K);yf.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"}}}};
yf.prototype.dataChanged=function(){if(this.data){var f=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var H=_.YK(this.data.banner.thumbnails,this.hostElement.clientWidth);H&&(H.indexOf("//")===0&&(H="https:"+H),this.hasBannerArt=!0,_.Sr(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+H+")"}))}this.hasBannerArt!==f&&_.mF(this.hostElement).querySelector("#header").fire("iron-resize")}};
yf.prototype.updateSelectedFromBinding=function(f){this.selected=f.detail.value};
yf.prototype.dataChanged=yf.prototype.dataChanged;_.E([_.B(QJx),_.N("design:type",Object)],yf.prototype,"ytdTabbedHeaderBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],yf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.Cm),_.N("design:type",Object)],yf.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.B(_.NW.YtdGuideStateAwareBehavior),_.N("design:type",Object)],yf.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],yf.prototype,"componentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],yf.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Number)],yf.prototype,"selected",void 0);_.E([_.F(),_.N("design:type",Boolean)],yf.prototype,"active",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],yf.prototype,"hasBannerArt",void 0);
_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yf.prototype,"dataChanged",null);_.E([_.u({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],yf);
_.G(yf,"ytd-interactive-tabbed-header-renderer",function(){if(gob!==void 0)return gob;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return gob=f},{mode:1});var IT0;var Y2=function(){return _.K.apply(this,arguments)||this};
_.e(Y2,_.K);Y2.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Y2.prototype.computeActionsAlignment=function(f){return(f==null?void 0:f.actionsAlignment)||""};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Y2.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Y2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Y2.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.N("design:type",String)],Y2.prototype,"actionsAlignment",void 0);_.E([_.u({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],Y2);
_.G(Y2,"ytd-page-footer-renderer",function(){if(IT0!==void 0)return IT0;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return IT0=f},{mode:1});var SAr;var d90;var mf=function(){var f=_.K.apply(this,arguments)||this;f.isEditing=!1;f.useSlot=!1;f.isMultiline=!1;return f};
_.e(mf,_.K);_.R=mf.prototype;_.R.onKeydown=function(f){if(f.keyCode===13&&!this.isMultiline)this.onSave();else if(f.keyCode===27)this.onCancel()};
_.R.computeComponentStyle=function(f){return(f==null?0:f.style)?f.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.R.computeisMultiline=function(f){if(this.multilineOverride!==void 0)return this.multilineOverride;var H,v;return!!(f==null?0:(H=f.formField)==null?0:(v=H.textInputFormFieldRenderer)==null?0:v.isMultiline)};
_.R.computeTextDisplayed=function(f,H){if(f)return f;if(H)return H};
_.R.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.R.onSave=function(){if(this.textForm.validate()){this.textForm.save();var f=this.textForm.value;if(f)this.set("data.textDisplayed",_.qO(f));else{var H;((H=this.data)==null?0:H.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.bM("inline-form-changed",this.data));this.isEditing=!1}};
_.R.onCancel=function(){var f=_.fG(this.data.textDisplayed);f===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(f);this.isEditing=!1};
mf.prototype.onKeydown=mf.prototype.onKeydown;_.E([_.B(_.lv.YtEventForwardingBehavior),_.N("design:type",Object)],mf.prototype,"ytEventForwardingBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],mf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],mf.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],mf.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],mf.prototype,"isEditing",void 0);_.E([_.F(),_.N("design:type",Object)],mf.prototype,"useSlot",void 0);_.E([_.F(),_.N("design:type",Boolean)],mf.prototype,"multilineOverride",void 0);_.E([_.F(),_.N("design:type",Boolean)],mf.prototype,"enableOverlayTheme",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.N("design:type",String)],mf.prototype,"componentStyle",void 0);
_.E([_.F({computed:"computeisMultiline(data)"}),_.N("design:type",Object)],mf.prototype,"isMultiline",void 0);_.E([_.lJ("#text-form"),_.N("design:type",Object)],mf.prototype,"textForm",void 0);_.E([_.sE("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],mf.prototype,"onKeydown",null);_.E([_.u({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],mf);
_.G(mf,"ytd-inline-form-renderer",function(){if(d90!==void 0)return d90;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return d90=f},{mode:1});var jyh;var $2=function(){var f=_.K.apply(this,arguments)||this;f.previousSelectValue=void 0;f.selectedItemMessage=void 0;return f};
_.e($2,_.K);$2.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
$2.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var f,H,v,t,M=(f=this.data)==null?void 0:(H=f.dropdown)==null?void 0:(v=H.dropdownRenderer)==null?void 0:(t=v.entries)==null?void 0:t.map(function(m){return m.privacyDropdownItemRenderer});
f=_.V(M!=null?M:[]);for(H=f.next();!H.done;H=f.next())if((H=H.value)&&H.int32Value===this.selectedValue){this.selectedItemMessage=H.itemMessage;break}}else this.selectedItemMessage=void 0;var h;(h=this.onValueChanged)==null||h.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var y;(y=this.data)!=null&&y.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
$2.prototype.onValueChangedForSelectedValue=function(f){this.selectedValue=f.detail.value};
$2.prototype.selectedValueChanged=$2.prototype.selectedValueChanged;_.E([_.B(_.lv.YtEventForwardingBehavior),_.N("design:type",Object)],$2.prototype,"ytEventForwardingBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],$2.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],$2.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],$2.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],$2.prototype,"data",void 0);_.E([_.F(),_.N("design:type",String)],$2.prototype,"theme",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Number)],$2.prototype,"selectedValue",void 0);_.E([_.F(),_.N("design:type",Function)],$2.prototype,"onValueChanged",void 0);
_.E([_.xV("selectedValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$2.prototype,"selectedValueChanged",null);_.E([_.u({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],$2);
_.G($2,"ytd-dropdown-form-field-renderer",function(){if(jyh!==void 0)return jyh;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return jyh=f},{mode:_.WK("kevlar_poly_si_batch_j025")?1:2});var syi;var Wy=function(){return _.K.apply(this,arguments)||this};
_.e(Wy,_.K);_.H7.Object.defineProperties(Wy.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var f=[],H=_.V(this.data||[]),v=H.next();!v.done;v=H.next())(v=_.U(v.value,nsh))&&f.push(v);return f}}});
_.E([_.F(),_.N("design:type",Array)],Wy.prototype,"data",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Wy.prototype,"byline",null);_.E([_.u({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],Wy);
_.G(Wy,"ytd-playlist-byline-renderer",function(){if(syi!==void 0)return syi;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return syi=f},{mode:1});var Z$W;var O9=function(){var f=_.K.apply(this,arguments)||this;f.rtlBullet=_.J("web_playlist_stats_rtl_bullet_icon_killswitch");f.modern=_.J("web_modern_buttons");f.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return f};
_.e(O9,_.K);_.R=O9.prototype;_.R.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"}}}}};
_.R.attached=function(){};
_.R.computeIsCustomThumbnail=function(f){return f?!!f.playlistCustomThumbnailRenderer:!1};
_.R.onYtNavigate=function(f,H){if(H&&H.actions&&H.actions.indexOf("shuffle")>-1){f=_.t8().resolve(_.u3);var v=H.tempData||{};v.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);H.tempData=v;f.isShuffleNextPlaylist=!0}};
_.R.onUpdatePlaylistAction=function(f){var H;f=(H=_.U(f,_.Pz_))==null?void 0:H.updatedRenderer;if(H=_.U(f,pn))this.data=H};
_.R.computeStyleType=function(f){return f?f.toLowerCase().replace(/_/g,"-"):""};
_.R.computeThumbnailWidth=function(f){return f==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.R.computeHideThumbnailAria=function(f){if(f==null?0:f.thumbnailOverlays)for(var H=0;H<f.thumbnailOverlays.length;H++){var v=void 0;if((v=f.thumbnailOverlays[H])==null?0:v.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
O9.prototype.onYtNavigate=O9.prototype.onYtNavigate;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],O9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],O9.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],O9.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],O9.prototype,"ytComponentBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],O9.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],O9.prototype,"rtlBullet",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.N("design:type",String)],O9.prototype,"styleType",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.N("design:type",Number)],O9.prototype,"thumbnailWidth",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],O9.prototype,"modern",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.N("design:type",Boolean)],O9.prototype,"isCustomThumbnail",void 0);_.E([_.sE("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[Event,Object]),_.N("design:returntype")],O9.prototype,"onYtNavigate",null);_.E([_.u({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],O9);
_.G(O9,"ytd-playlist-sidebar-primary-info-renderer",function(){if(Z$W!==void 0)return Z$W;var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Z$W=f},{mode:1});var JvA;var gV=function(){return _.K.apply(this,arguments)||this};
_.e(gV,_.K);gV.prototype.computeOwnerVisibility=function(f){return!(!f.videoOwner&&!f.button)};
gV.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"}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],gV.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],gV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],gV.prototype,"data",void 0);_.E([_.u({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],gV);
_.G(gV,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(JvA!==void 0)return JvA;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return JvA=f},{mode:1});var lTG;var IG=function(){var f=_.K.apply(this,arguments)||this;f.expanded=!1;f.isCompact=!1;return f};
_.e(IG,_.K);_.R=IG.prototype;_.R.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.R.dataChanged=function(){this.data&&_.Me(_.mF(this.text),_.Ih_(_.jnh,_.fG(this.data.text||null)))};
_.R.computeAutoScrollEnabled=function(f,H){return f&&!H};
_.R.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.R.toggleOnTap=function(){this.expanded=!this.expanded};
IG.prototype.expandedChanged=IG.prototype.expandedChanged;IG.prototype.dataChanged=IG.prototype.dataChanged;_.E([_.B(_.jGA),_.N("design:type",Object)],IG.prototype,"ytdAutoScrollBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],IG.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],IG.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],IG.prototype,"expanded",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],IG.prototype,"isCompact",void 0);_.E([_.F({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.N("design:type",Boolean)],IG.prototype,"autoScrollEnabled",void 0);_.E([_.lJ("#text"),_.N("design:type",Object)],IG.prototype,"text",void 0);_.E([_.lJ("#expander-icon"),_.N("design:type",Object)],IG.prototype,"expanderIcon",void 0);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IG.prototype,"dataChanged",null);_.E([_.Zw("expanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IG.prototype,"expandedChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],IG);
_.G(IG,"ytd-channel-legal-info-renderer",function(){if(lTG!==void 0)return lTG;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return lTG=f},{mode:1});var U9W;var eMi=_.ZC("DOWNLOAD",{},"Download"),LqF=_.ZC("DOWNLOADING",{},"Downloading"),x9G=_.ZC("DOWNLOADED",{},"Downloaded"),SR=function(){var f=_.K.apply(this,arguments)||this;f.downloadProgress=0;f.isDownloadComplete=!1;f.transferState="TRANSFER_STATE_UNKNOWN";return f};
_.e(SR,_.K);_.R=SR.prototype;_.R.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.R.dataChanged=function(){var f;(f=this.data)!=null&&f.tooltip||(f=_.EF(_.vS().getState(),this.playlistId),this.updateButtonState(f))};
_.R.computePlaylistId=function(f){return f};
_.R.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.R.updateButtonState=function(f){if(this.data&&(this.data.tooltip!==LqF||!_.xT(f))){this.isDownloadComplete=!1;switch(f){case "TRANSFER_STATE_UNKNOWN":f=eMi;var H="OFFLINE_DOWNLOAD";var v="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":f=x9G;H="OFFLINE_PIN";v="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":f=LqF;H="OFFLINE_DOWNLOADING_ZERO";v="ACTION_REMOVE_WITH_PROMPT";
break;default:f=eMi,H="OFFLINE_DOWNLOAD",v="ACTION_ADD"}var t=Object.assign({},this.data);t.tooltip=f;t.accessibilityData={accessibilityData:{label:f}};t.icon={iconType:H};t.size="SIZE_DEFAULT";_.U(t.command,_.d3)&&(_.U(t.command,_.d3).action=v);this.set("data",t)}};
_.R.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var f="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?f="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?f="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?f="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?f="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?f="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(f="OFFLINE_PIN",this.isDownloadComplete=!0);var H;f!==((H=this.data.icon)==null?void 0:H.iconType)&&(H=Object.assign({},this.data),H.tooltip=LqF,H.accessibilityData={accessibilityData:{label:LqF}},H.icon={iconType:f},_.U(H.command,_.d3)&&(_.U(H.command,_.d3).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",H))}};
SR.prototype.updateProgress=SR.prototype.updateProgress;SR.prototype.onTransferStateChanged=SR.prototype.onTransferStateChanged;SR.prototype.dataChanged=SR.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],SR.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],SR.prototype,"ytdReduxBehavior",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],SR.prototype,"forceIconButton",void 0);
_.E([_.F({value:!0}),_.N("design:type",Boolean)],SR.prototype,"forceIconOnly",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],SR.prototype,"overrides",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],SR.prototype,"buttonTooltipPosition",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],SR.prototype,"styleActionButton",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],SR.prototype,"disableTextTransform",void 0);
_.E([_.F({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.N("design:type",String)],SR.prototype,"playlistId",void 0);_.E([_.F(),_.N("design:type",Object)],SR.prototype,"data",void 0);_.E([_.F({selector:_.hPR,selectorArgs:["playlistId"]}),_.N("design:type",Object)],SR.prototype,"downloadProgress",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],SR.prototype,"isDownloadComplete",void 0);
_.E([_.F({selector:_.EF,selectorArgs:["playlistId"]}),_.N("design:type",String)],SR.prototype,"transferState",void 0);_.E([_.F({value:!0}),_.N("design:type",Boolean)],SR.prototype,"showTooltips",void 0);_.E([_.F({value:!0}),_.N("design:type",Boolean)],SR.prototype,"sendCommandWhenDisabled",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],SR.prototype,"disabled",void 0);
_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SR.prototype,"dataChanged",null);_.E([_.xV("transferState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SR.prototype,"onTransferStateChanged",null);_.E([_.xV("downloadProgress"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SR.prototype,"updateProgress",null);
_.E([_.u({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],SR);
_.G(SR,"ytd-download-playlist-button-renderer",function(){if(U9W!==void 0)return U9W;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return U9W=f},{mode:1});var BWG;_.yn(_.f8n,"thumbnail-overlay-button-view-model",{props:{data:_.ki,lockupExperiments:_.ki}});var dV=function(){var f=_.K.apply(this,arguments)||this;f.isSquare=!1;f.isVertical=!1;return f};
_.e(dV,_.K);dV.prototype.computeIsSquare=function(f){return f!=null&&f.thumbnail?YKG(f.thumbnail)==="SQUARE":!1};
dV.prototype.computeIsVertical=function(f){return f!=null&&f.thumbnail?YKG(f.thumbnail)==="VERTICAL":!1};
dV.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],dV.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],dV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.N("design:type",Object)],dV.prototype,"isSquare",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.N("design:type",Object)],dV.prototype,"isVertical",void 0);
_.E([_.F(),_.N("design:type",Object)],dV.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],dV);
_.G(dV,"ytd-hero-playlist-thumbnail-renderer",function(){if(BWG!==void 0)return BWG;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return BWG=f},{mode:1});var jR=function(){var f=_.K.apply(this,arguments)||this;f.isDarkTheme=!1;f.isUltraWide=!1;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return f};
_.e(jR,_.K);_.R=jR.prototype;_.R.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.t8();var f;(f=_.t8().resolve(_.vh(_.MG)))!=null&&(f.headerElement=this.hostElement)};
_.R.detached=function(){var f;(f=_.t8().resolve(_.vh(_.MG)))!=null&&(f.headerElement=void 0)};
_.R.onUpdateHeader=function(f){(f=f.detail)&&this.set("data",f)};
_.R.computeTextDisplayed=function(f){if(f)return f.textDisplayed?f.textDisplayed:f.placeholder};
_.R.gradientColorToLinearGradientStop=function(f){var H=this.isDarkTheme?f.darkThemeColor:f.lightThemeColor;return H?_.cS(H)+" "+((f==null?void 0:f.startLocation)||0)*100+"%":"transparent"};
_.R.onWindowResize=function(){var f;((f=this.data)==null?0:f.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.R.onIronResize=function(f){this.isUltraWide=!f.detail.value};
_.R.onDarkModeToggledAction=function(f){this.isDarkTheme=f};
_.R.onUpdatePlaylistName=function(f){var H=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},f.detail.value));_.qV(this,function(){var v;(v=H.editableTitle)==null||v.resize()})};
_.R.onUpdatePlaylistDescription=function(f){var H=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},f.detail.value));_.qV(this,function(){var v;(v=H.editableDescriptionInlineExpander)==null||v.resize()})};
_.R.getCinematicData=function(f){return _.U(f==null?void 0:f.cinematicContainer,_.Fp)};
_.H7.Object.defineProperties(jR.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 f,H=(f=this.getCinematicData(this.data))==null?void 0:f.config;return(f=this.isDarkTheme?H==null?void 0:H.darkThemeBackgroundColor:H==null?void 0:H.lightThemeBackgroundColor)?"background-color:"+_.NS(f)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var f;return _.U((f=this.data)==null?void 0:f.descriptionForm,B7h)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var f=this,H,v,t;return"background:linear-gradient(to bottom, "+(((t=(H=this.getCinematicData(this.data))==null?void 0:(v=H.gradientColorConfig)==null?void 0:v.map(function(M){return f.gradientColorToLinearGradientStop(M)}))==null?void 0:t.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var f;return _.fG((f=this.data)==null?void 0:f.descriptionTapText)}}});
jR.prototype.onUpdateHeader=jR.prototype.onUpdateHeader;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],jR.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],jR.prototype,"actionHandlerBehavior",void 0);_.E([_.lJ("#description-inline-expander"),_.N("design:type",Object)],jR.prototype,"descriptionInlineExpander",void 0);
_.E([_.lJ("#editable-description-inline-expander"),_.N("design:type",Object)],jR.prototype,"editableDescriptionInlineExpander",void 0);_.E([_.F(),_.N("design:type",Object)],jR.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],jR.prototype,"isUltraWide",void 0);_.E([_.lJ("#editable-title-display"),_.N("design:type",Object)],jR.prototype,"editableTitle",void 0);_.E([_.z("isUltraWide"),_.N("design:type",Object),_.N("design:paramtypes",[])],jR.prototype,"maxDescriptionLines",null);
_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],jR.prototype,"noCinematicData",null);_.E([_.sE("yt-new-playlist-header"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],jR.prototype,"onUpdateHeader",null);_.E([_.z("data","isDarkTheme"),_.N("design:type",Object),_.N("design:paramtypes",[])],jR.prototype,"backgroundStyle",null);
_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],jR.prototype,"descriptionFormData",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],jR.prototype,"getDropdownTheme",null);_.E([_.z("data","isDarkTheme"),_.N("design:type",String),_.N("design:paramtypes",[])],jR.prototype,"gradientStyle",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],jR.prototype,"descriptionTapText",null);
_.E([_.u({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],jR);
_.G(jR,"ytd-playlist-header-renderer",function(){if(SAr!==void 0)return SAr;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return SAr=f},{mode:_.WK("kevlar_poly_si_batch_j078")?1:2});var zM5;var Fqw;var s9=function(){return _.K.apply(this,arguments)||this};
_.e(s9,_.K);s9.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],s9.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],s9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],s9.prototype,"data",void 0);_.E([_.u({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],s9);
_.G(s9,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(Fqw!==void 0)return Fqw;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Fqw=f},{mode:1});var Za=function(){return _.K.apply(this,arguments)||this};
_.e(Za,_.K);
Za.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}}}}};
Za.prototype.computeUsePremiumShowStyle=function(f){if(!f||!f.items)return!1;for(var H=0;H<f.items.length;H++)if(_.U(f.items[H],pn)){var v=void 0;return((v=_.U(f.items[H],pn))==null?void 0:v.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Za.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Za.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Za.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.N("design:type",Boolean)],Za.prototype,"usePremiumShowStyle",void 0);
_.E([_.u({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],Za);
_.G(Za,"ytd-playlist-sidebar-renderer",function(){if(zM5!==void 0)return zM5;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return zM5=f},{mode:1});var rvb;var Kqi;var D9x=function(f,H,v,t,M,h,y,m){this.minWidth=f;this.minHeight=H;this.recommendedWidth=v;this.recommendedHeight=t;this.JSC$22093_maxFileSize=M;this.title=h;this.bannerGalleryTitle=y;this.channelId=m;this.picker_=null;f=_.n8v("yt-banner");H=f.addView;v=(new dq0("youtubebanner")).addUploadMetadata("silo_id","19");v.opts.ytMaxFileSize=this.JSC$22093_maxFileSize;t=this.recommendedHeight;v.opts.ytRecWidth=this.recommendedWidth;v.opts.ytRecHeight=t;H.call(f,v);f.addView(new _.ZY);H=f.addView;v=new _.ZY;
v.opts.type="ytbanner";H.call(f,v.JSC$10064_setLabel(this.bannerGalleryTitle));H=f.setTitle(this.title).setSize(1E3);H.urlParamMap_.set("thumbs","orig");v=this.minWidth;t=this.minHeight;if(isNaN(v)||isNaN(t))throw Error("gb`"+v+"`"+t);H.urlParamMap_.set("minSize",v+"x"+t);H.urlParamMap_.set("cropMode","ytcb");this.builder_=f};
D9x.prototype.open=function(){var f=this;return new _.IO(function(H,v){_.M$o(f.builder_,function(t){t.action=="picked"?H(t):t.action=="cancel"&&v(Error("xo"))});
f.picker_&&f.picker_.dispose();f.picker_=f.builder_.build();f.picker_.setVisible(!0)})};
D9x.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var oot=function(f){this.channelId=f};
oot.prototype.upload=function(f){var H="";f.viewToken&&(H=f.viewToken[2].type);var v=f.docs[0];f=v.crop;H={channel_id:this.channelId,fife_url:v.thumbnails[0].url,photo_id:v.id,is_gallery_image:H=="ytbanner"};f&&(H.crop_top=f.top,H.crop_right=f.right,H.crop_bottom=f.bottom,H.crop_left=f.left);return _.y6R("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:H})};var J4=function(){var f=_.K.apply(this,arguments)||this;f.ariaLabel=null;return f};
_.e(J4,_.K);_.R=J4.prototype;_.R.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.R.detached=function(){this.picker&&this.picker.dispose()};
_.R.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.R.computeAriaLabel=function(f){return f};
_.R.onTap=function(){var f=this,H;if((H=this.data)==null||!H.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new D9x(this.data.bannerMinWidth||0,this.data.bannerMinHeight||0,this.data.bannerRecommendedWidth||0,this.data.bannerRecommendedHeight||0,this.data.bannerMaxFileSizeInMegabytes||0,this.data.editorTitle||"",this.data.galleryViewTitle||"",this.data.channelId||""));var v;(v=this.picker)==null||v.open().then(function(t){f.handleBannerPicked(t)},function(){})}};
_.R.handleBannerPicked=function(f){var H=this;this.uploader||(this.uploader=new oot(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(f).then(function(v){H.handleBannerUploadSucceeded(v)},function(v){H.handleBannerUploadFailed(v)})};
_.R.handleBannerUploadSucceeded=function(f){f&&f.errors?this.handleBannerUploadFailed(f):(_.YE(this.hostElement,"yt-banner-updated",f),this.message=null)};
_.R.handleBannerUploadFailed=function(f){this.message=f&&f.errors&&f.errors.length?f.errors[0]:null};
J4.prototype.dataChanged=J4.prototype.dataChanged;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],J4.prototype,"componentBehavior",void 0);_.E([_.B(_.zA),_.N("design:type",Object)],J4.prototype,"ironButtonState",void 0);_.E([_.F(),_.N("design:type",Object)],J4.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.N("design:type",Object)],J4.prototype,"ariaLabel",void 0);
_.E([_.F(),_.N("design:type",Object)],J4.prototype,"message",void 0);_.E([_.F(),_.N("design:type",Object)],J4.prototype,"picker",void 0);_.E([_.F(),_.N("design:type",Object)],J4.prototype,"uploader",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],J4.prototype,"dataChanged",null);_.E([_.u({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],J4);
_.G(J4,"ytd-channel-banner-editor-renderer",function(){if(Kqi!==void 0)return Kqi;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Kqi=f},{mode:1});var noi;var pfF=_.EH(["#"]),lj=function(){return _.K.apply(this,arguments)||this};
_.e(lj,_.K);lj.prototype.computeHrefWithDefault=function(f){return this.ytComponentBehavior.computeHref_(f,!0)||_.boe(pfF)};
lj.prototype.dataChanged=function(){var f=this.data;f&&f.targetId&&_.skb(_.LM(),f.targetId,this.moreIcon)};
lj.prototype.dataChanged=lj.prototype.dataChanged;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],lj.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],lj.prototype,"data",void 0);_.E([_.lJ("#more-icon"),_.N("design:type",Object)],lj.prototype,"moreIcon",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lj.prototype,"dataChanged",null);
_.E([_.u({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],lj);
_.G(lj,"ytd-channel-tagline-renderer",function(){if(noi!==void 0)return noi;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return noi=f},{mode:1});var Qyp;var U9=function(){return _.K.apply(this,arguments)||this};
_.e(U9,_.K);_.R=U9.prototype;_.R.ready=function(){var f=this;_.mF(this.hostElement).querySelector("#form").addEventListener("submit",function(H){f.onSubmit(H)})};
_.R.onDataChanged=function(){var f;((f=this.data)==null?0:f.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.R.onIconButtonKeydown=function(f){f.keyCode===13&&this.iconButton.click()};
_.R.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.R.openOnClickHandler=function(){this.input.focus()};
_.R.onSubmit=function(f){f.preventDefault();return!1};
_.R.submitOnEnterKeyUp=function(f){var H;if(f.keyCode===13&&((H=this.data)==null?0:H.expandedText)){f=this.data.endpoint;H=_.QA.unsafeClone(f);var v;((v=_.U(H==null?void 0:H.commandMetadata,_.jG))==null?0:v.url)?(_.U(H.commandMetadata,_.jG).url=_.Pk(_.U(H.commandMetadata,_.jG).url,"query",this.data.expandedText),_.U(H,_.ec)&&(_.U(H,_.ec).query=this.data.expandedText),_.YE(this.hostElement,"yt-navigate",{endpoint:H,tempData:{disableCache:!0}})):(v=new _.e$("Error: Trying to navigate to an endpoint without url",
f),_.oO(v))}};
_.R.updateDataExpandedTextFromBinding=function(f){this.set("data.expandedText",f.detail.value)};
_.H7.Object.defineProperties(U9.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.J("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
U9.prototype.onDataChanged=U9.prototype.onDataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],U9.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.omw),_.N("design:type",Object)],U9.prototype,"ytdExpandableInputBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],U9.prototype,"data",void 0);_.E([_.lJ("#input"),_.N("design:type",Object)],U9.prototype,"input",void 0);_.E([_.lJ("#icon-button"),_.N("design:type",HTMLElement)],U9.prototype,"iconButton",void 0);
_.E([_.F(),_.N("design:type",String),_.N("design:paramtypes",[])],U9.prototype,"searchIcon",null);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],U9.prototype,"onDataChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],U9);
var mq5=_.$6()(U9,"ytd-expandable-tab-renderer",function(){if(Qyp===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);Qyp=f}f=Qyp;return f},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var uq0;var eR=function(){var f=_.K.apply(this,arguments)||this;f.avatarSize=80;f.ariaLabel=_.ZC("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return f};
_.e(eR,_.K);eR.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
eR.prototype.computeHref=function(f){var H;return((H=_.U(f,_.X7))==null?0:H.url)?this.componentBehavior.computeHref_(f):null};
eR.prototype.onTap=function(){var f,H;(f=this.data)==null||!f.editAvatarServiceEndpoint||((H=_.U(this.data.editAvatarServiceEndpoint,_.X7))==null?0:H.url)||_.t8().resolve(_.MJ).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.E([_.B(_.zA),_.N("design:type",Object)],eR.prototype,"ironButtonState",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],eR.prototype,"componentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],eR.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],eR.prototype,"avatarSize",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],eR.prototype,"ariaLabel",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],eR);
_.G(eR,"ytd-channel-avatar-editor",function(){if(uq0!==void 0)return uq0;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return uq0=f},{mode:1});var aT5=_.a(function(f){var H=f.data;var v=f.noPadding;var t=f.enableBanner;var M=f.cinematicContainerTopbarOffset;var h=f.allowCinematicContainerOverflow;var y=f.displayAsSidebar;f=f.className;_.K4(function(){H().tagManagerId&&(_.F9(H().tagManagerId,_.a8("GL")),SKF(H().tagManagerId))},"vUc8md");
var m=_.s7(Wob,function(){return H().pageHeaderEntityKey});
return _.O("yt-page-header-renderer",{class:_.S2("pageHeaderRendererHost",f)},_.O(_.Jj,{data:function(){var W;return((W=m())==null?0:W.header)?m().header:(y==null?0:y())&&H().sidebarContent?H().sidebarContent:H().content}},{pageHeaderViewModel:function(W){return _.O(_.zeC,{data:W.data,
noPadding:v,enableBanner:t,cinematicContainerTopbarOffset:M,allowCinematicContainerOverflow:h,displayAsSidebar:function(){return(y==null?void 0:y())&&H().enableSidebarView}})}}))},"jk");
aT5.idomCompat=!0;_.yn(aT5,"yt-page-header-renderer",{props:{data:_.ki,noPadding:_.ki,enableBanner:_.ki,cinematicContainerTopbarOffset:_.ki,allowCinematicContainerOverflow:_.ki,displayAsSidebar:_.ki,className:_.ki}});_.yn(_.Pr,"yt-image-banner-view-model",{props:{data:_.ki,isPositionRelative:_.ki}});_.yn(_.XeM,"yt-tab-group-shape",{props:{shape:_.ki}});var Lt=function(){var f=_.K.apply(this,arguments)||this;f.expandableCustomTabRenderable=function(H){return $qp(H,function(){return void f.onSearchNavigate()})};
f.isRichGrid=!1;f.isConstrainedList=!1;f.richGridMiniMode=!1;f.richGridStyle="RICH_GRID_STYLE_UNKNOWN";f.isRichGridShorts=!1;f.responsiveSizing="COMPACT";f.disableGridStateAware=!1;f.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return f};
_.e(Lt,_.K);_.R=Lt.prototype;_.R.computeHeaderDisabled=function(f,H){return H||!f||this.tabsHidden};
_.R.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.R.computeIsRichGridShorts=function(f){return f==="RICH_GRID_STYLE_SHORTS_GRID"||f==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.R.computeImageBannerViewModel=function(){var f,H;return _.U((H=_.U((f=this.data)==null?void 0:f.content,_.Cqa))==null?void 0:H.banner,_.nir)};
_.R.computeHasCinematicContainer=function(){var f,H;return!((H=_.U((f=this.data)==null?void 0:f.content,_.Cqa))==null||!H.background)};
_.R.handleHeaderResize=function(){var f=_.mF(this.hostElement).querySelector("#header");f&&_.YE(f,"iron-resize")};
_.R.handleInsertTabCommand=function(f){var H=_.U(f,p3w);H&&(H.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(v){return v.tabRenderer&&v.tabRenderer.tabIdentifier===H.tabIdentifier})||this.splice("tabs",H.tabIndex||-1,0,H.tab))};
_.R.handleRefreshChannelTabAction=function(f){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===f&&_.YE(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.R.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.Sr(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.R.observerRichGridSlimItemsPerRow=function(){_.Sr(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.R.updateCssVars=function(){this.richGridItemsPerRow&&_.Sr(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.VQ("rich_grid_max_item_width",500))+16)-16+"px"})};
_.R.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.Sr(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.R.onDataChanged=function(){this.handleHeaderResize()};
_.R.onWindowResize=function(){this.handleHeaderResize()};
_.R.onFocusedChanged=function(f){(f=_.HB(f))&&f.is==="tp-yt-paper-tab"&&f.hasRipple()&&(f.getRipple().holdDown=!f.pointerDown&&f.focused)};
_.R.updateSelectedFromBinding=function(f){this.ytdTabbedHeaderBehavior.selected=f.detail.value};
_.R.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.H7.Object.defineProperties(Lt.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:gsW(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.imageBannerViewModel)==null?void 0:f.style)==="IMAGE_BANNER_STYLE_INSET"}}});
Lt.prototype.onDataChanged=Lt.prototype.onDataChanged;Lt.prototype.updateCssVarsForResponsiveGrid=Lt.prototype.updateCssVarsForResponsiveGrid;Lt.prototype.updateCssVars=Lt.prototype.updateCssVars;Lt.prototype.observerRichGridSlimItemsPerRow=Lt.prototype.observerRichGridSlimItemsPerRow;Lt.prototype.observerRichGridItemsPerRow=Lt.prototype.observerRichGridItemsPerRow;_.E([_.B(_.Cm),_.N("design:type",Object)],Lt.prototype,"ytdGridStateAwareBehavior",void 0);
_.E([_.B(QJx),_.N("design:type",Object)],Lt.prototype,"ytdTabbedHeaderBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Lt.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Lt.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.NW.YtdGuideStateAwareBehavior),_.N("design:type",Object)],Lt.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.B(_.um),_.N("design:type",Object)],Lt.prototype,"ytdReduxBehavior",void 0);_.E([_.lJ("#tabs"),_.N("design:type",Object)],Lt.prototype,"tabsElement",void 0);_.E([_.F(),_.N("design:type",Array)],Lt.prototype,"tabs",void 0);_.E([_.F(),_.N("design:type",Object)],Lt.prototype,"expandableCustomTabRenderable",void 0);_.E([_.z("tabs.*"),_.N("design:type",Object),_.N("design:paramtypes",[])],Lt.prototype,"tabGroupShape",null);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Lt.prototype,"isRichGrid",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Lt.prototype,"isConstrainedList",void 0);_.E([_.F({reflectToAttribute:!0,selector:_.Qq}),_.N("design:type",Object)],Lt.prototype,"richGridMiniMode",void 0);_.E([_.F({selector:function(f){return f.ui.richGridStyle}}),
_.N("design:type",Object)],Lt.prototype,"richGridStyle",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.N("design:type",Object)],Lt.prototype,"isRichGridShorts",void 0);_.E([_.F({selector:_.uA}),_.N("design:type",Number)],Lt.prototype,"richGridItemsPerRow",void 0);_.E([_.F({selector:function(f){return f.ui.richGridContainerWidth}}),
_.N("design:type",Number)],Lt.prototype,"richGridContainerWidth",void 0);_.E([_.F({selector:_.cGT}),_.N("design:type",Number)],Lt.prototype,"richGridSlimItemsPerRow",void 0);_.E([_.F(),_.N("design:type",Object)],Lt.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Lt.prototype,"responsiveSizing",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Lt.prototype,"disableGridStateAware",void 0);
_.E([_.F({computed:"computeImageBannerViewModel(data)"}),_.N("design:type",Object)],Lt.prototype,"imageBannerViewModel",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.N("design:type",Boolean)],Lt.prototype,"hasCinematicContainer",void 0);_.E([_.F({selector:_.shA,reflectToAttribute:!0}),_.N("design:type",Boolean)],Lt.prototype,"guideIsVisibleButNotPersistent",void 0);
_.E([_.F({reflectToAttribute:!0}),_.z("imageBannerViewModel"),_.N("design:type",Object),_.N("design:paramtypes",[])],Lt.prototype,"hasBanner",null);_.E([_.F({reflectToAttribute:!0}),_.z("imageBannerViewModel"),_.N("design:type",Object),_.N("design:paramtypes",[])],Lt.prototype,"hasInsetBanner",null);_.E([_.F({computed:"computeTabsHidden(tabs)",value:!0}),_.N("design:type",Boolean)],Lt.prototype,"tabsHidden",void 0);
_.E([_.Zw("richGridItemsPerRow","isRichGrid"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Lt.prototype,"observerRichGridItemsPerRow",null);_.E([_.Zw("richGridSlimItemsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Lt.prototype,"observerRichGridSlimItemsPerRow",null);
_.E([_.Zw("richGridItemsPerRow","richGridMiniMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Lt.prototype,"updateCssVars",null);_.E([_.Zw("richGridContainerWidth"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Lt.prototype,"updateCssVarsForResponsiveGrid",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Lt.prototype,"onDataChanged",null);
_.E([_.u({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],Lt);
_.G(Lt,"ytd-tabbed-page-header",function(){if(rvb!==void 0)return rvb;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return rvb=f},{mode:1});var PxW;var x2=function(){return _.K.apply(this,arguments)||this};
_.e(x2,_.K);x2.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.Sr(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.H7.Object.defineProperties(x2.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var f,H;return this.componentBehavior.computeIcon_(((H=_.U((f=this.data)==null?void 0:f.badge,_.Jkn))==null?void 0:H.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var f,H;return(H=_.U((f=this.data)==null?void 0:f.badge,_.Jkn))==null?void 0:H.label}}});
x2.prototype.observerRichGridItemsPerRow=x2.prototype.observerRichGridItemsPerRow;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],x2.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],x2.prototype,"componentBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],x2.prototype,"ytdReduxBehavior",void 0);_.E([_.F({reflectToAttribute:!0,selector:_.Qq}),_.N("design:type",Boolean)],x2.prototype,"richGridMiniMode",void 0);
_.E([_.F({selector:_.uA}),_.N("design:type",Number)],x2.prototype,"richGridItemsPerRow",void 0);_.E([_.F(),_.N("design:type",Object)],x2.prototype,"data",void 0);_.E([_.Zw("richGridItemsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],x2.prototype,"observerRichGridItemsPerRow",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],x2.prototype,"badgeIconName",null);
_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],x2.prototype,"badgeLabel",null);_.E([_.u({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],x2);
_.G(x2,"ytd-member-hub-profile-renderer",function(){if(PxW!==void 0)return PxW;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return PxW=f},{mode:1});var GGt;var By=function(){return _.K.apply(this,arguments)||this};
_.e(By,_.K);By.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],By.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],By.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],By.prototype,"data",void 0);_.E([_.u({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],By);
_.G(By,"ytd-settings-sidebar-renderer",function(){if(GGt!==void 0)return GGt;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return GGt=f},{mode:1});var Cxw;var zS=function(){var f=_.K.apply(this,arguments)||this;f.expandableCustomTabRenderable=function(H){return $qp(H,function(){return void f.onSearchNavigate()})};
return f};
_.e(zS,_.K);zS.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
zS.prototype.onSearchNavigate=function(){this.selected=void 0};
zS.prototype.onTabsChange=function(){var f,H=(f=this.tabs)==null?void 0:f.findIndex(function(v){var t;return v==null?void 0:(t=v.tabRenderer)==null?void 0:t.selected});
H!==void 0&&(this.selected=H)};
zS.prototype.onTabsActive=function(f){if(this.tabs!==void 0){var H,v;(f=(H=this.tabs[f.detail.selected])==null?void 0:(v=H.tabRenderer)==null?void 0:v.endpoint)&&_.YE(this.hostElement,"yt-navigate",{endpoint:f})}};
_.H7.Object.defineProperties(zS.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:gsW(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
zS.prototype.onTabsChange=zS.prototype.onTabsChange;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],zS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.Cm),_.N("design:type",Object)],zS.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],zS.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.NW.YtdGuideStateAwareBehavior),_.N("design:type",Object)],zS.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],zS.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Array)],zS.prototype,"tabs",void 0);_.E([_.F(),_.N("design:type",Number)],zS.prototype,"selected",void 0);_.E([_.z("tabs.*"),_.N("design:type",Object),_.N("design:paramtypes",[])],zS.prototype,"tabGroupShape",null);_.E([_.F(),_.N("design:type",Object)],zS.prototype,"expandableCustomTabRenderable",void 0);
_.E([_.z("tabs"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],zS.prototype,"tabsEnabled",null);_.E([_.xV("tabs"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zS.prototype,"onTabsChange",null);_.E([_.u({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],zS);
_.G(zS,"ytd-topic-channel-details-renderer",function(){if(Cxw!==void 0)return Cxw;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Cxw=f},{mode:1});var Eox;var Fc=function(){var f=_.K.apply(this,arguments)||this;f.disableGridStateAware=!1;return f};
_.e(Fc,_.K);Fc.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]]"}}}}}};
Fc.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
Fc.prototype.updateCssVars=function(){_.Sr(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.VQ("rich_grid_max_item_width",500))+16)-16+"px"})};
Fc.prototype.updateCssVars=Fc.prototype.updateCssVars;Fc.prototype.activeChanged=Fc.prototype.activeChanged;_.E([_.B(_.NW.YtdGuideStateAwareBehavior),_.N("design:type",Object)],Fc.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],Fc.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Fc.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Fc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Fc.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Array)],Fc.prototype,"tabs",void 0);_.E([_.F(),_.N("design:type",Boolean)],Fc.prototype,"active",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Fc.prototype,"disableGridStateAware",void 0);
_.E([_.F({selector:_.uA}),_.N("design:type",Number)],Fc.prototype,"richGridItemsPerRow",void 0);_.E([_.F({selector:_.Qq}),_.N("design:type",Boolean)],Fc.prototype,"richGridMiniMode",void 0);_.E([_.lJ("ytd-carousel-item-renderer"),_.N("design:type",Object)],Fc.prototype,"carousel",void 0);_.E([_.Zw("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fc.prototype,"activeChanged",null);
_.E([_.Zw("richGridItemsPerRow","richGridMiniMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fc.prototype,"updateCssVars",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],Fc);
_.G(Fc,"ytd-carousel-header-renderer",function(){if(Eox!==void 0)return Eox;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Eox=f},{mode:1});var NWb;var cvb=_.EH(["https://www.google-analytics.com/analytics.js"]),rV=function(){var f=_.K.apply(this,arguments)||this;f.scriptAnalyticsAdded=!1;return f};
_.e(rV,_.K);rV.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var f,H=(f=this.data)==null?void 0:f.tagManagerId;H&&(_.F9(H,_.a8("GL")),SKF(H))};
rV.prototype.sendGoogleAnalyticsPageview=function(f){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var v=_.NA.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(v)};
var H=window.ga;H("set","page",window.location.pathname);H.l=+new Date;H("set","forceSSL",!0);H("create",f,"'auto'");H("send","pageview")};
rV.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var f=_.lS("SCRIPT");f.name="ga-analytics";var H=_.gr(cvb);_.tf(f,H);f.async=!0;_.mF(this.hostElement).appendChild(f)};
rV.prototype.dataChanged=rV.prototype.dataChanged;_.E([_.F(),_.N("design:type",Object)],rV.prototype,"data",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rV.prototype,"dataChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],rV);
_.G(rV,"ytd-channel-metadata-renderer",function(){if(NWb!==void 0)return NWb;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return NWb=f},{mode:1});var XfW;var AvG;var Kt=function(){var f=_.K.apply(this,arguments)||this;f.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"]);f.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"]);f.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return f};
_.e(Kt,_.K);_.R=Kt.prototype;_.R.attached=function(){this.requestElementsPerRow()};
_.R.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_]]"}}}}}};
_.R.onUpdateElementsPerRowAction=function(f){f&&this.elementsPerRow!==f&&(this.elementsPerRow=f)};
_.R.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.R.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.R.computeAlertStyle_=function(f){return f};
_.R.observerElementsPerRow=function(){this.elementsPerRow&&_.Sr(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.R.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.R.requestElementsPerRow=function(){_.YE(this.hostElement,"yt-request-elements-per-row")};
Kt.prototype.onIsVisibleChanged_=Kt.prototype.onIsVisibleChanged_;Kt.prototype.observerElementsPerRow=Kt.prototype.observerElementsPerRow;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Kt.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Kt.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Kt.prototype,"actionHandlerBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],Kt.prototype,"data",void 0);_.E([_.F({value:6,reflectToAttribute:!0}),_.N("design:type",Number)],Kt.prototype,"elementsPerRow",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Kt.prototype,"wrapButtons",void 0);_.E([_.F({value:_.a8("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.N("design:type",Boolean)],Kt.prototype,"isMusic",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.N("design:type",String)],Kt.prototype,"alertStyle",void 0);_.E([_.F({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.N("design:type",Function)],Kt.prototype,"dismissBoundButtonTap_",void 0);_.E([_.F({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.N("design:type",Function)],Kt.prototype,"acceptBoundButtonTap_",void 0);_.E([_.Zw("elementsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kt.prototype,"observerElementsPerRow",null);_.E([_.Zw("data.isVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kt.prototype,"onIsVisibleChanged_",null);_.E([_.GW({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],Kt);
_.G(Kt,"yt-alert-with-actions-renderer",function(){if(AvG===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;XfW===void 0&&(XfW=document.createElement("template"));var t=XfW;v.call(H,t.content.cloneNode(!0),f.content.firstChild);AvG=f}f=AvG;return f},{mode:2});_.yn(_.a(function(f){function H(Z){var l={};return _.O(_.iq,{text:Z,className:_.S2("ytPersonalGreetingViewModelHeadline",(l.ytPersonalGreetingViewModelHeadlineSmall=function(){return m()===48},l))})}
function v(Z,l){return _.O("span",{el:Z,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},H(l))}
var t=_.tE(_.nT(function(){var Z;return(Z=f.data())==null?void 0:Z.rendererContext},void 0,void 0,void 0,!0)),M=_.TN("span"),h=_.TN("span"),y=function(){return f.data().canvasPromoData},m=function(){var Z;
return(Z=f.data().bannerHeight)!=null?Z:56},W=_.GR3(t,{throttleMs:100}),I=_.GR3(M,{throttleMs:100}),S=_.GR3(h,{throttleMs:100}),d=function(){return I.width()-W.width()>1};
return _.O("yt-personal-greeting-view-model",{el:t,"aria-hidden":d,class:_.S2(f.className,"ytPersonalGreetingViewModelHost"),style:_.ZE({height:(0,_.KB)(function(){return d()?0:m()})})},_.O(_.g,{cond:function(){return f.data().avatar&&!(S.width()+(f.data().avatar?48:0)-W.width()>1)},
then:function(){return _.O(_.Jj,{data:function(){return f.data().avatar}},{decoratedAvatarViewModel:function(Z){return _.O(_.Dj,{data:Z.data,
className:_.S2("ytPersonalGreetingViewModelAvatar")})}})}}),_.O("h1",null,H(function(){var Z;
return(y==null?void 0:(Z=y())==null?void 0:Z.headline)||(S.width()+(f.data().avatar?48:0)-W.width()>1?f.data().shorterGreeting:f.data().greeting)})),v(h,function(){return f.data().greeting}),v(M,function(){return f.data().shorterGreeting}))},"kk"),"yt-personal-greeting-view-model",{props:{data:_.ki,
className:_.ki}});var Da=function(){var f=_.K.apply(this,arguments)||this;f.hidden=!1;f.isConstrainedList=!1;f.darkerDarkTheme=_.J("web_darker_dark_theme");f.responsiveSizing="COMPACT";f.attachedPlayers=_.J("kevlar_channel_trailer_multi_attach")?[]:void 0;f.player=null;f.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return f};
_.e(Da,_.K);_.R=Da.prototype;
_.R.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}}}}};
_.R.created=function(){var f=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){f.disposeMastheadAd()}]};
_.R.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new Pir(this.refresh,this.contents))};
_.R.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.R.activeChanged=function(){var f=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=f)};
_.R.tabsChanged=function(){var f=this,H,v;if(this.pageSubtype==="channels"||_.J("kevlar_tab_gestures_for_tabbed_header_data")&&((H=this.data)==null?0:(v=H.header)==null?0:v.carouselHeaderRenderer))this.tabGestures=new u8(this.contents,this.contents,this.hostElement,this.header,function(y){f.ytdReduxBehavior.dispatch(y)});
var t,M,h;H=(t=this.data)==null?void 0:(M=t.contents)==null?void 0:(h=M.twoColumnBrowseResultsRenderer)==null?void 0:h.tabs;this.tabGestures&&this.tabGestures.tabsChanged(H)};
_.R.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.R.engagementPanelsChanged=function(){var f=_.t8().resolve(_.B5);if(f){if(this.engagementPanels)for(var H=_.V(this.engagementPanels),v=H.next();!v.done;v=H.next()){var t=void 0;(v=(t=v.value.identifier)==null?void 0:t.tag)&&f.panelMap.delete(v)}this.engagementPanels=[];var M;H=_.V(((M=this.data)==null?void 0:M.panels)||[]);for(M=H.next();!M.done;M=H.next()){M=_.U(M.value,_.mZh);var h=v=void 0,y=void 0,m=void 0;if(t=((v=M)==null?void 0:v.targetId)||((h=M)==null?void 0:h.panelIdentifier)||((y=M)==
null?void 0:(m=y.identifier)==null?void 0:m.tag))h=v=void 0,(h=(v=f).registerPanelContent)==null||h.call(v,t,{engagementPanelSectionListRenderer:M}),this.engagementPanels.push(M)}}};
_.R.onStampFinished=function(){var f=this;_.qV(this,function(){if(f.tabGestures){var H=f.tabGestures;if(H.scrollPositionNeedsUpdate){var v=_.t8().resolve(_.vh(_.fT)),t;if((t=H.selectedTab)!=null&&t.title&&v&&(t=v.getCurrentPage())){if(H.scrollPositionForTabs.has(H.selectedTab.title)){var M,h;v=(h=(M=v.getCurrentPage())==null?void 0:M.clientHeight)!=null?h:0;M=H.scrollPositionForTabs.get(H.selectedTab.title);t.setScrollTop(M);v>M+100&&(H.scrollPositionNeedsUpdate=!1)}else t.setScrollTop(Math.min(H.lastVisitedTabScrollPosition!==
void 0?H.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,H.tabsStartAtInPx)),H.scrollPositionNeedsUpdate=!1;H.ytdReduxDispatch(IQr(!1))}}}})};
_.R.loadPage_=function(f){this.initCsi();f&&(this.data=f);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.R.getTitle=function(f){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",f))return this.get("microformat.microformatDataRenderer.title",f);if(this.get("header.feedTabbedHeaderRenderer.title",f))return _.fG(this.get("header.feedTabbedHeaderRenderer.title",f));if(this.get("header.interactiveTabbedHeaderRenderer.title",f))return this.get("header.interactiveTabbedHeaderRenderer.title",f);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
f))return _.fG(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",f));var H,v;return(f==null?0:(H=f.header)==null?0:(v=H.pageHeaderRenderer)==null?0:v.pageTitle)?f.header.pageHeaderRenderer.pageTitle:""};
_.R.updateTitle=function(f){_.YE(this.hostElement,"yt-update-title",this.getTitle(f))};
_.R.initCsi=function(){_.DG(this.pageSubtype||"browse",["ol","cpt"])};
_.R.getPlayer=function(){if(_.J("kevlar_channel_trailer_multi_attach")){for(var f=_.V(this.attachedPlayers),H=f.next();!H.done;H=f.next())if(H=H.value,H.isConnected||_.Nj(this.hostElement,H))return H;return null}return this.player};
_.R.getPlayerContainer=function(){return null};
_.R.onPlayerAttached=function(f,H){_.J("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(H):this.player=H};
_.R.onPlayerDetached=function(f,H){_.J("kevlar_channel_trailer_multi_attach")?(f=this.attachedPlayers.indexOf(H),f<0||this.attachedPlayers.splice(f,1)):this.player=null};
_.R.getServiceTrackingParams=function(){var f,H;return((f=this.data)==null?void 0:(H=f.responseContext)==null?void 0:H.serviceTrackingParams)||[]};
_.R.setMastheadAd=function(f){f&&f.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=f&&f.mastheadAd};
_.R.dataChanged=function(){var f=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.q9r();_.qV(this,function(){_.$E(f.hostElement,"ytd-update-grid-state-action")})};
_.R.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.R.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var f=this.data.alerts;return f&&f.find(function(H){return!!H.alertWithActionsRenderer})}};
_.R.computeGreetingData=function(){if(this.data&&this.data.alerts){var f=this.data.alerts;return f&&f.find(function(H){return!!H.personalGreetingViewModel})}};
_.R.computeHasMemberHubProfileRenderer=function(f){var H;return!!(f==null?0:(H=f.header)==null?0:H.memberHubProfileRenderer)};
_.R.handleAlertCommand=function(f){this.get("alertCommand.alert.alertWithActionsRenderer",f)&&(f=_.U(f,LoW),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",f.alert))};
_.R.handleYtPlaylistDeletionRedirect=function(f){f=this.get("playlistDeletionRedirectCommand.redirectEndpoint",f);_.YE(this.hostElement,"yt-navigate",{endpoint:f})};
_.R.computeFluidWidth=function(f,H,v){if(H==="mini_app"||v)return!0;var t,M,h;f=f==null?void 0:(t=f.contents)==null?void 0:(M=t.twoColumnBrowseResultsRenderer)==null?void 0:(h=M.tabs)==null?void 0:h.find(function(W){var I;return W==null?void 0:(I=W.tabRenderer)==null?void 0:I.selected});
if(!f)return!1;var y,m;return!!((y=f.tabRenderer)==null?0:(m=y.content)==null?0:m.richGridRenderer)&&!["channel","channels","playables"].includes(H)};
_.R.computeHeaderFluidWidth=function(f){return f==="hashtag-landing-page"};
_.R.computeHasSidebar=function(f){var H;return!!(f.sidebar||((H=f.header)==null?0:H.playlistHeaderRenderer))};
_.R.computeHasPageHeaderSidebar=function(f){var H,v;return!!((H=f.header)==null?0:(v=H.pageHeaderRenderer)==null?0:v.enableSidebarView)};
_.R.computeUseUnifiedShowPageLayout=function(f){if(!f||this.pageSubtype!=="show"||!f.sidebar||!f.sidebar.playlistSidebarRenderer)return!1;f=f.sidebar.playlistSidebarRenderer;if(!f.items)return!1;for(var H=0;H<f.items.length;H++)if(_.U(f.items[H],pn)){var v=void 0;return((v=_.U(f.items[H],pn))==null?void 0:v.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.R.computeIsConstrainedList=function(f){return _.J("web_enable_constrained_list_subscriptions_channels")&&f==="subscriptions-channels"};
_.R.computeResponsiveSizing=function(f){return f==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.H7.Object.defineProperties(Da.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var f,H;return((f=this.data)==null?0:(H=f.header)==null?0:H.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var f,H;if(!((f=this.data)==null?0:(H=f.sidebar)==null?0:H.playlistSidebarRenderer))return!1;var v;return(v=this.data)!=null&&v.header?!1:!0}}});
_.H7.Object.defineProperties(Da,{template:{configurable:!0,enumerable:!0,get:function(){if(EsA===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);EsA=f}f=EsA;return f}}});
Da.prototype.dataChanged=Da.prototype.dataChanged;Da.prototype.onPlayerDetached=Da.prototype.onPlayerDetached;Da.prototype.onPlayerAttached=Da.prototype.onPlayerAttached;Da.prototype.onStampFinished=Da.prototype.onStampFinished;Da.prototype.engagementPanelsChanged=Da.prototype.engagementPanelsChanged;Da.prototype.scrollAtTopChanged=Da.prototype.scrollAtTopChanged;Da.prototype.tabsChanged=Da.prototype.tabsChanged;Da.prototype.activeChanged=Da.prototype.activeChanged;
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Da.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.fm),_.N("design:type",Object)],Da.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Da.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],Da.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.oL.YtPageBehavior),_.N("design:type",Object)],Da.prototype,"ytPageBehavior",void 0);
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Da.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.NW.YtdGuideStateAwareBehavior),_.N("design:type",Object)],Da.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Da.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Da.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Da.prototype,"hidden",void 0);
_.E([_.F(),_.N("design:type",Object)],Da.prototype,"mastheadAdData",void 0);_.E([_.F({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.N("design:type",Object)],Da.prototype,"alertBannerData",void 0);_.E([_.F({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.N("design:type",Object)],Da.prototype,"greetingData",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],Da.prototype,"pageSubtype",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.N("design:type",Boolean)],Da.prototype,"hasMemberHubProfileRenderer",void 0);_.E([_.F({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Da.prototype,"hasSidebar",void 0);_.E([_.F({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Da.prototype,"hasPageHeaderSidebar",void 0);
_.E([_.F({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],Da.prototype,"roundedContainer",void 0);_.E([_.F({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Da.prototype,"useUnifiedShowPageLayout",void 0);_.E([_.F({computed:"computeIsConstrainedList(pageSubtype)"}),_.N("design:type",Object)],Da.prototype,"isConstrainedList",void 0);
_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Da.prototype,"usePlaylistHeaderRenderer",null);_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Da.prototype,"useOldPlaylistSidebarRenderer",null);_.E([_.F({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.N("design:type",Boolean)],Da.prototype,"fluidWidth",void 0);_.E([_.F({selector:function(f){return f.ui.scrollAtTop}}),
_.N("design:type",Boolean)],Da.prototype,"scrollAtTop",void 0);_.E([_.F({selector:_.Z4t}),_.N("design:type",Boolean)],Da.prototype,"tabGesturesIsActive",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Da.prototype,"darkerDarkTheme",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.N("design:type",Boolean)],Da.prototype,"disableHeaderFluidWidth",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.N("design:type",String)],Da.prototype,"responsiveSizing",void 0);_.E([_.lJ("ytd-two-column-browse-results-renderer"),_.N("design:type",HTMLElement)],Da.prototype,"contents",void 0);_.E([_.lJ("#header"),_.N("design:type",HTMLElement)],Da.prototype,"header",void 0);_.E([_.lJ("ytd-refresh"),_.N("design:type",Object)],Da.prototype,"refresh",void 0);
_.E([_.Zw("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Da.prototype,"activeChanged",null);_.E([_.Zw("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Da.prototype,"tabsChanged",null);_.E([_.Zw("scrollAtTop"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Da.prototype,"scrollAtTopChanged",null);
_.E([_.F(),_.N("design:type",Object)],Da.prototype,"engagementPanels",void 0);_.E([_.Zw("data.panels"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Da.prototype,"engagementPanelsChanged",null);_.E([_.sE("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Da.prototype,"onStampFinished",null);
_.E([_.sE("yt-player-attached"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Element]),_.N("design:returntype")],Da.prototype,"onPlayerAttached",null);_.E([_.sE("yt-player-detached"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Element]),_.N("design:returntype")],Da.prototype,"onPlayerDetached",null);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Da.prototype,"dataChanged",null);
_.E([_.u({is:"ytd-browse"})],Da);_.ya.registerService(_.P85,Da);
_.uS();
}catch(e){_._DumpException(e)}
try{
_.QX("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 sy,tq0,Mqw,hax,RaW,Vqw,ygx,YeW,mCx,$CW,Wg5,OP5,IFx,Ser,jWW,sWh,ZPG,lFG,UC0,eap,Lgx,ZJ,BIG,JL,zaW,Fgh,rgp,Kgt,DCb,n1A,QWw,o1G,g1r,ujt,aFh,PyF,GPw,CyA,E1G,X7W,AgF,bPW,iPW,TIb,w7i,fCx,vEb,tG0,MGW,RFw,yXw,YjA,m6x,$6b,Wbw,OQF,gEx,ICb,Sjp,d6i,jr5,sr5,ZQ0,JXW,lCp,U6F,eFp,Lbx,x6x,zFW,Fbh,rXF,Kbx,D6t,oEW,nEx,pVw,Qrb,ulF,aCG,P00,Giw,C0t,EEA,Nj0,cXF,XVr,AXt,bQx,iQ5,kix,TjF,wVA,qjb,rn,fqx,HYt,vTA,MBx,hj0,Rjp,VBG,ydh,YFp,mO0,OYG,lq0,xOW,BLA,DOx,oTG,KOA,FO0,uGh,GZt,Adp,zjr,ETG,aq5,Qx,iYA,waW,HG0,qFx,fnG,vzt,
R90,McF,Vcr,ytb,h95,tcW,Y65,G4,CJ,InF,S6p,Ey,dS0,j9F,s9F,LNF,xSp,NM,cg,z9b,BZb,FNt,rtp,KN0,XV,AL,bG,PYp,GDh,CYW,kh,Atw,EzW,XSb,bGF,NZW,kDx,ctA,q6t,TZG,wSp,T4,H2i,fwG,hsx,YEG,H9,v9,VrW,$ub,yJW,muF,Mf,Ro,Vg,yg,Dub,lwA,pBt,QKt,uIb,awW,GWh,dut,jKr,$H,Z2x,YH,mj,JJr,PJw,oV5,sKW,ON,EVh,NXb,cJA,AJW,i2b,kWr,TXw,wBt,fI0,qEt,v6W,tWx,hUx,RUW,yV0,YVW,mEx,$E0,Wxb,Oui,g6p,SVr,IIh,dE5,juW,g0,suF,Zu0,Io,JVx,lIh,UEx,eUp,Lxx,xEx,B9h,zUb,rVx,ST,Kxp,DEt,pKi,uA0,aIA,GK0,PVx,CVA,E6W,N9F,XK5,AVh,buG,iuh,kKt,T9x,wKG,qVA,
fEW,HVt,vKh,t2b,V2t,yE5,h0A,R0x,M2W,YRx,W3A,mYx,$YG,IEw,OVt,gK0,SR0,dYw,jmb,smt,JEh,lEh,UYb,L3t,xYh,z0x,rEW,DYi,nKx,Qmw,aEx,GIF,EKF,XnF,AEx,bVx,kI0,iV5,wn5,qRi,fO5,HTA,jT,v$b,tfx,Mfx,g$W,S7G,dlA,Jj5,lOw,UlF,eI0,xlw,LVb,B3t,zIx,FVp,rjG,KVG,KJ,Dlp,UN,oKx,o$p,n$w;
sy=function(f){if(!f)return"browse";var H=f.page,v=f.url,t,M,h,y=(t=f.response)==null?void 0:(M=t.responseContext)==null?void 0:(h=M.webResponseContextExtensionData)==null?void 0:h.pageTheme;if(y)H=y.toLowerCase().replace(/_/g,"-");else if(H!=="watch"&&H!=="learning_journey_watch"){var m,W;if((H==="browse"||H==="settings")&&((m=f.response)==null?0:(W=m.sidebar)==null?0:W.settingsSidebarRenderer))H="WEB_PAGE_TYPE_SETTINGS";else{var I,S;H==="browse"&&((I=f.response)==null?0:(S=I.metadata)==null?0:S.channelMetadataRenderer)?
H="channel":v&&(H=_.lY(v)||H)}}return H};
tq0=function(){var f=_.ES("yt.aba.att");return f?f:_.yo.instance!==void 0?_.yo.instance.yV0.bind(_.yo.instance):null};
Mqw=function(f,H){var v;return _.Y(function(t){return(v=tq0())?t.return(v(f,H,6E4)):t.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
hax=function(f,H,v,t,M){H=H===void 0?[]:H;M=M?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:M}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.hd(f),dialogMessages:H.map(function(h){return _.hd(h)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.hd(v),serviceEndpoint:M}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.hd(t)}}}}}};
RaW=function(f){var H=!!_.EI().queueProxy;var v,t,M;f=f==null?void 0:(v=f.response)==null?void 0:(t=v.currentVideoEndpoint)==null?void 0:(M=t.watchEndpoint)==null?void 0:M.playlistId;return!(!H&&!f)};
Vqw=function(f,H){var v=_.S0();if(RaW(f))return v.playlistWatchPageActivation=!0;switch(sy(H)){case "yts-products":return v.productDetailsPageActivation=!0;case "mini_app":return v.miniAppPageActivation=!0;case "playables":return v.playablesDestPageActivation=!0;default:return!1}};
ygx=function(f,H,v){for(var t=typeof f==="string"?f.split(""):f,M=f.length-1;M>=0;--M)M in t&&H.call(v,t[M],M,f)};
YeW=function(f,H){H=_.drT(f,H);H>=0&&_.s3g(f,H)};
mCx=function(f){return Array.prototype.concat.apply([],arguments)};
$CW=function(f){var H=0;H=H===void 0?0:H;if(!_.tW(f))throw _.Yg("uint64");var v=typeof f;switch(H){case 512:switch(v){case "string":return _.lhB(f);case "bigint":return String((0,_.Zr)(64,f));default:return _.Zrs(f)}case 1024:switch(v){case "string":return _.UT5(f);case "bigint":return _.GH((0,_.Zr)(64,f));default:return _.J9b(f)}case 0:switch(v){case "string":return _.lhB(f);case "bigint":return _.GH((0,_.Zr)(64,f));default:return _.sn3(f)}default:return _.bC(H,"Unknown format requested type for int64")}};
Wg5=function(f){f!=null&&(f=f.JSC$8810_value_||"",f=typeof f==="string"?f:new Uint8Array(f));return f};
OP5=function(f,H){if(/-[a-z]/.test(H))return null;if(_.o5b&&f.dataset){if(_.yNE()&&!(H in f.dataset))return null;f=f.dataset[H];return f===void 0?null:f}return f.getAttribute("data-"+_.Jg(H))};
IFx=function(){var f=g1r;_.ES("yt.ads.biscotti.getId_")||_.qJ("yt.ads.biscotti.getId_",f)};
Ser=function(f){_.qJ("yt.ads.biscotti.lastId_",f)};
jWW=function(){var f={};for(_.Fm=new dCF(f.handleError===void 0?_.nb:f.handleError,f.logEvent===void 0?_.Kb:f.logEvent);_.rH.length>0;)switch(f=_.rH.shift(),f.type){case "ERROR":_.Fm.logError(f.payload);break;case "EVENT":_.Fm.logEvent(f.eventType,f.payload)}};
sWh=function(f,H,v){return _.aqv(function(t){return v?t.userIdentifier!==void 0&&!f.includes(t.userIdentifier)&&v.includes(t.publicName):t.userIdentifier!==void 0&&!f.includes(t.userIdentifier)},H)};
ZPG=function(f){var H,v;return _.Y(function(t){if(t.nextAddress==1)return H=_.ld("YtIdbMeta hasAnyMeta other"),t.yield(_.aqv(function(M){return M.userIdentifier!==void 0&&M.userIdentifier!==H},f),2);
v=t.yieldResult;return t.return(v.length>0)})};
lFG=function(f,H){Jgx||(Jgx=_.nN.addLowPriorityJob(function(){var v,t,M,h,y;return _.Y(function(m){switch(m.nextAddress){case 1:return m.yield(_.fN(),2);case 2:v=m.yieldResult;if(!v)return m.return();t=!0;_.Zc(m,3);return m.yield(sWh(f,v,H),5);case 5:M=m.yieldResult;if(!M.length){t=!1;m.jumpTo(6);break}h=M[0];return m.yield(_.Xm(h.actualName),7);case 7:return m.yield(_.id(h.actualName,v),6);case 6:_.ch(m,4);break;case 3:y=_.xu(m),_.Kl(y),t=!1;case 4:_.nN.cancelJob(Jgx),Jgx=0,t&&lFG(f,H),_.Bj(m)}})}))};
UC0=function(){var f;return _.Y(function(H){return H.nextAddress==1?H.yield(_.fN(),2):(f=H.yieldResult)?H.return(ZPG(f)):H.return(!1)})};
eap=function(f){var H=100;H=H===void 0?500:H;var v,t,M,h,y,m;return _.Y(function(W){return W.nextAddress==1?(v=_.a8("INNERTUBE_CONTEXT_CLIENT_NAME",0),t=[v,(0,_.ta)()-2592E6],M=[v,(0,_.ta)()],h=IDBKeyRange.bound(t,M),W.yield(_.$Eg(f),2)):W.nextAddress!=3?(y=W.yieldResult,m=[],W.yield(_.bd(y,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(I){m.length=0;return _.ha(I.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:h,direction:"prev"},function(S){if(S.getValue()&&m.length<
H)return m.push(S.getValue()),S.delete().then(function(){return S.continue()})})}),3)):W.return(m)})};
Lgx=function(){var f;return _.Y(function(H){if(H.nextAddress==1)return H.yield(_.fN(),2);f=H.yieldResult;if(!f||!_.Uk()&&!_.J("nwl_init_require_datasync_id_killswitch")||!_.rV5())return H.jumpTo(0);_.DEH=!0;_.KxE.isNwlInitialized=_.DEH;return H.yield(_.HPH().awaitInitialization(),0)})};
ZJ=function(f,H){_.iub[f]=!0;var v=_.RO();v&&v.publish.apply(v,arguments);_.iub[f]=!1};
BIG=function(){if(_.xur()&&!xCt){var f=function(v){v=v.data;if(v.op==="serializedGelBatch"){var t=_.kIg.get(v.key);t&&(_.wnv(v.serializedBatch,t.client,t.resolve,t.networklessOptions,t.isIsolated,t.useVSSEndpoint,t.dangerousLogToVisitorSession,t.requestsOutstanding),_.kIg.delete(v.key))}},H=_.LFr();
H&&(H.addEventListener("message",f),H.onerror=function(){_.kIg.clear()});
xCt=!0}};
JL=function(){this.relativeTimeStart_=_.qN()};
zaW=function(f,H){f!=null&&this.append.apply(this,arguments)};
Fgh=function(){return _.Ee("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
rgp=function(f,H,v){v=v===void 0?!1:v;var t,M,h,y,m;return _.Y(function(W){switch(W.nextAddress){case 1:_.Zy("SOCS",f,34128E3,"youtube.com",!0);if(_.yB)return M=fetch(H,{method:"POST",mode:_.iy(H),credentials:_.by(H),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),h=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.iy("/upgrade_visitor_cookie?eom=1"),credentials:_.by("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),W.yield(Promise.all([M,h]).then(function(I){return I[1]}),5);
fetch(H,{method:"POST",mode:_.iy(H),credentials:_.by(H),cache:"no-store",headers:{"Content-Type":"text/plain"}});return W.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.iy("/upgrade_visitor_cookie?eom=1"),credentials:_.by("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:t=W.yieldResult;W.jumpTo(3);break;case 5:t=y=W.yieldResult;case 3:if(!t.ok)throw Error("nf");return W.yield(t.text(),7);case 7:m=W.yieldResult,
!m.includes('"state_switch":true')&&!v||m.includes("skip_reload_for_test")||window.location.reload(),_.Bj(W)}})};
Kgt=function(f){return _.Y(function(H){return H.nextAddress==1?H.yield(rgp(f.socsCookie,f.savePreferenceUrl,!0),2):H.return()})};
DCb=function(f){return _.Y(function(H){return H.nextAddress==1?H.yield(rgp(f.socsCookie,f.savePreferenceUrl),2):H.return()})};
n1A=function(f){f=f.xhr.responseText;if(!_.VR(f,")]}'"))throw new lG;f=JSON.parse(f.substr(4));if((f.type||1)>1)throw new lG;f=f.id;Ser(f);Uy=_.Xd(f);o1G(18E5,2);return f};
QWw=function(f,H){H=new p75(H);Ser("");Uy=_.wph(H);f>0&&o1G(12E4,f-1);throw H;};
o1G=function(f,H){_.$Z(function(){_.BT0().then(n1A,function(v){return QWw(H,v)}).thenCatch(_.gQ)},f)};
g1r=function(){var f=_.rMr();if(f!==void 0)return _.DI(f);Uy||(Uy=_.BT0().then(n1A).thenCatch(function(H){return QWw(2,H)}));
return Uy};
ujt=function(){var f=document;return _.Gb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(H){return"on"+H.toLowerCase()in f})};
aFh=function(f){f.addEventListener("click",function(H){var v=H.target;v&&v.getAttribute("href")&&(v=v.getAttribute("href"),_.we(window,v,"_blank"),H.preventDefault(),H.stopImmediatePropagation())})};
PyF=function(f){var H,v,t,M=(t=(v=((H=f.mainDownloadsListEntity)!=null?H:{})[_.QXs])==null?void 0:v.refresh)!=null?t:"",h;f=(h=f.refresh)==null?void 0:h[M];M=f!=null?f:{};return(M==null?0:M.refreshTime)?Number(M==null?void 0:M.refreshTime):0};
GPw=function(f,H){var v=_.KY(f);return H.every(function(t){var M;t=t==null?void 0:(M=t.playbackDataEntity)==null?void 0:M.key;if(!t)return!1;M=_.SB(_.OF(t).entityId,"mainVideoEntity");return!!v[M]})};
CyA=function(f){f=_.zZ(f.entities);return _.TCB(f).length};
E1G=function(f,H){if(H){var v;f=(v=_.dL(f.entities,"downloadQualityPickerEntity",H))!=null?v:void 0}else f=void 0;return f};
X7W=function(){NIG||(_.wL=_.pHB,NIG=new cgb);return NIG};
AgF=function(f){var H=document.getElementsByTagName("ytd-enforcement-message-view-model");H.length===0||getComputedStyle(H[0]).display==="none"?f(0,"p.h_"):f(1,"p.h_")};
bPW=function(){ey=0;var f=[_.BS(!0)];LJ&&_.$E(LJ,"yt-window-resized",f)};
iPW=function(){ey||(ey=_.nN.addLowPriorityJob(bPW,200))};
TIb=function(){xh=0;kPi=_.nga(document);var f=[kPi];LJ&&_.$E(LJ,"yt-window-scrolled",f)};
w7i=function(){xh||(xh=_.nN.addLowPriorityJob(TIb,200))};
fCx=function(f){f=f===void 0?null:f;qex.push(_.vk(window,"resize",iPW));qex.push(_.vk(window,"scroll",w7i));f&&(LJ=f)};
vEb=function(){var f={isWide:_.sk.get("wide","0")==="1"},H=_.Uj();if(H=H.getFlag(165)||H.getFlag(174))f.theme=_.o9(!0);if(_.zfN()){var v=_.Dn()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";f.systemTheme=v}!H&&_.J("parent_tools_enable_app_settings")&&_.bZ(window.location.href).theme!==void 0&&(f.theme=_.o9());if((H=Bg)?!_.QA.equals(H,f):f)H={currentValue:f},HQx&&(H.timeSinceLastSnapshotSecs=Math.round(((0,_.ta)()-HQx)/1E3)),Bg&&(H.previousValue=Bg),_.Kb("appSettingsCaptured",H),Bg=f,HQx=
(0,_.ta)()};
tG0=function(f){_.Y(function(H){if(H.nextAddress==1)return H.yield(f.delete("yt-appshell-assets"),2);_.Bj(H)})};
MGW=function(f){return _.A8((0,_.z3r)(),f)};
RFw=function(){var f;_.Y(function(H){return H.nextAddress==1?H.yield(z4.getInstance(),2):(f=H.yieldResult)?H.yield(hFG(f),0):H.jumpTo(0)})};
yXw=function(){var f;_.Y(function(H){return H.nextAddress==1?H.yield(FV.getInstance(),2):(f=H.yieldResult)?H.yield(VGb(f),0):H.jumpTo(0)})};
YjA=function(f){tG0(f);RFw();yXw()};
m6x=function(f){var H,v;return _.Y(function(t){if(t.nextAddress==1)return t.yield(_.TYN(f),2);if(H=t.yieldResult){var M;a:{if(H.headers&&(M=H.headers.get("date"))&&(M=Date.parse(M),!isNaN(M))){M=Math.round((0,_.ta)()-M);break a}M=-1}v=M;if(v>-1)return t.return(v)}return t.return(-1)})};
$6b=function(){var f=_.Mr.caches,H=_.P6("IS_SHELL_LOAD"),v,t;_.Y(function(M){if(M.nextAddress==1)return v=-1,H?M.yield(m6x(f),3):(t=_.Fl(),v=Math.round((0,_.ta)()-t),M.jumpTo(2));M.nextAddress!=2&&(v=M.yieldResult);v>=0&&v<2147483648&&_.nQ({appInstallDataAgeMs:v});_.Bj(M)})};
Wbw=function(f){var H=_.Ax(_.Mr.location.href),v={};"absolute_experiments forced_experiments expflag conditional_experiments client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url build mloader debugjs".split(" ").forEach(function(t){var M=H.JSC$10022_queryData_.getValues(t);if(M==null?0:M.length)v[t]=M});
return _.Il(f,new Map(Object.entries(v)))};
OQF=function(f){f=f.match(/(.*)::.*::.*/);if(f!==null)return f[1]};
gEx=function(f){if(_.IjN()){var H=Object.keys(window.localStorage);H=_.V(H);for(var v=H.next();!v.done;v=H.next()){v=v.value;var t=OQF(v);t===void 0||f.includes(t)||self.localStorage.removeItem(v)}}};
ICb=function(){if(!_.IjN())return!1;var f=_.ld(),H=Object.keys(window.localStorage);H=_.V(H);for(var v=H.next();!v.done;v=H.next())if(v=OQF(v.value),v!==void 0&&v!==f)return!0;return!1};
Sjp=function(f){return _.Rx("NotificationsDisabled",f)};
d6i=function(){return Notification.permission!="granted"?Promise.resolve():_.Jmt().then(function(f){return f?f.pushManager.getSubscription().then(function(H){if(H)return Promise.resolve();H={userVisibleOnly:!0,applicationServerKey:_.yM("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return f.pushManager.subscribe(H).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
jr5=function(f){return _.Jmt().then(function(H){if(!H||!H.active)return Promise.reject(new _.e$("serviceworker.postMessage",f,H));try{return H.active.postMessage(f),Promise.resolve()}catch(v){return Promise.reject(v)}})};
sr5=function(){jr5({type:"notifications_register",data:_.a8("ID_TOKEN")})};
ZQ0=function(){if(!_.P6("LOGGED_IN"))return Promise.resolve(!1);var f=_.yQ("service_worker_push_force_notification_prompt_tag");return f?_.YL("PromptTags").then(function(H){if(!H)return!0;var v=[];try{v=JSON.parse(H)}catch(t){return!1}return v&&v.indexOf(f)==-1}):Promise.resolve(!1)};
JXW=function(){var f=_.VQ("service_worker_push_prompt_delay_microseconds");return f?_.YL("PromptTime").then(function(H){return Promise.resolve(Date.now()-f>(H||0))}):Promise.resolve(!0)};
lCp=function(){var f=_.VQ("service_worker_push_logged_out_prompt_watches");return f==-1?Promise.resolve(!1):_.YL("WatchCount").then(function(H){return H>=f})};
U6F=function(){var f=_.Ml(document,"yt-push-prompt-modal-bg");f&&_.U1(f)};
eFp=function(){return _.VQ("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.YL("PromptCount").then(function(f){f||(f=0);return Promise.resolve(f<_.VQ("service_worker_push_prompt_cap"))})};
Lbx=function(f){return _.P6("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.P6("LOGGED_IN")&&(f===void 0?0:f)?ZQ0().then(function(H){if(H)return!0;H=[eFp(),JXW()];_.P6("LOGGED_IN")||H.push(lCp());return Promise.all(H).then(function(v){return v.every(function(t){return t})})}):Promise.resolve(!1)};
x6x=function(){_.YL("PromptCount").then(function(f){return _.Rx("PromptCount",f+1)}).then(function(){return _.Rx("PromptTime",Date.now())}).then(function(){var f=_.yQ("service_worker_push_force_notification_prompt_tag");
if(f)return _.YL("PromptTags").then(function(H){var v=[];if(H)try{v=JSON.parse(H)}catch(t){return!1}v||(v=[]);v.push(f);return _.Rx("PromptTags",JSON.stringify(v))})})};
zFW=function(){Bjp||U6F()};
Fbh=function(f){f.style.zIndex=2147483648;f.style.pointerEvents="auto";f.style.backgroundColor="rgba(0, 0, 0, 0.6)";f.style.width="100%";f.style.height="100vh";f.style.position="absolute";f.style.top="0";f.style.left="0";f.style.border="none"};
rXF=function(){var f=_.Ml(document,"yt-push-prompt-modal-bg");Bjp=_.J("service_worker_push_prompt_modal_ignore_click");f?Fbh(f):(f=_.ls("div",{id:"yt-push-prompt-modal-bg"}),Fbh(f),document.body.appendChild(f),_.cVB(document,"click",zFW))};
Kbx=function(){var f=arguments;_.J("service_worker_push_prompt_modal_enable")&&rXF();return Notification.requestPermission().then(function(H){U6F();var v=document.getElementById("ticker");v&&(v.className=v.classList.remove("show"));if(H=="granted")return d6i().then(function(){Sjp(!1);sr5();return Promise.resolve(!0)});
H=="denied"&&sr5();return Promise.resolve(!1)}).catch(function(){U6F();
return Promise.reject.apply(Promise,_.pS(f))})};
D6t=function(f){f=f===void 0?!1:f;var H=_.o8H().client;if(H&&H.browserVersion){var v=H.browserVersion,t=H.browserName=="CHROME"&&_.SE(v,"50.0.0")<0;H=H.browserName=="OPERA"&&_.SE(v,"42.0.0")<0;if(t||H)return Promise.resolve()}return _.ei0().then(function(M){if(!M)return Promise.resolve();M=d6i().then(function(){return jr5({type:"notifications_check_registration",data:_.a8("ID_TOKEN")})});
return Notification.permission!="default"?M.catch(function(){}):M.then(function(){return Lbx(f)}).then(function(h){if(h)return x6x(),Kbx().then(function(){})}).catch(function(){})})};
oEW=function(f){return _.lth(f)?D6t():Promise.resolve()};
nEx=function(f){var H=f.installing||f.waiting;return f.active||!H?Promise.resolve(f):new Promise(function(v){var t=function(M){M=M.target;if(M.state==="activated"||M.state==="redundant")H.removeEventListener("statechange",t),v(f)};
H.addEventListener("statechange",t)})};
pVw=function(){var f=new _.cAE("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.MN(f,{mainAppWeb:_.kz()});var H=_.XJ9;_.J("service_worker_forward_exp_params")&&(H=Wbw(H));try{var v=_.piR(H).catch(function(){_.hQ(f,"FAILURE");return new Promise(function(){})});
_.J("service_worker_push_enabled")&&v.then(function(t){_.hQ(f,"SUCCESS");return t}).then(nEx).then(oEW)}catch(t){if(_.hQ(f,"FAILURE"),t.name!=="SecurityError")throw t;
}};
Qrb=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&pVw()};
ulF=function(f,H){var v={};H&&(v.serializedYpcFamilyCreateLoggingParams=H);_.Kb(f,v);_.DK()};
aCG=function(f,H){var v={};v.serializedYpcRefundFlowLoggingParams=H;f&&(v.eventType=f);_.Kb("ypcRefundFlowEvent",v);_.DK()};
P00=function(f){f&&_.unE("transactionFlowSucceeded",f)};
Giw=function(f){f&&_.Ca("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",f,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
C0t=function(f){var H,v,t,M,h,y,m;_.Y(function(W){if(W.nextAddress==1)return W.yield(_.ZiH(),2);if(W.nextAddress!=3){if(!W.yieldResult)return W.return(!1);H=[];return W.yield(_.g6.keys(),3)}v=W.yieldResult;t=_.V(v);for(M=t.next();!M.done;M=t.next())h=M.value,y=_.jRR(h),m=y.datasyncId,!m||f.includes(m)||H.push(_.g6.delete(h));return W.return(Promise.all(H).then(function(I){return I.some(function(S){return S})}))})};
EEA=function(){var f,H,v,t,M,h,y;return _.Y(function(m){if(m.nextAddress==1)return m.yield(_.ZiH(),2);if(m.nextAddress!=3){if(!m.yieldResult)return m.return(!1);f=_.ld("cache contains other");return m.yield(_.g6.keys(),3)}H=m.yieldResult;v=_.V(H);for(t=v.next();!t.done;t=v.next())if(M=t.value,h=_.jRR(M),(y=h.datasyncId)&&y!==f)return m.return(!0);return m.return(!1)})};
Nj0=function(){var f=_.t8().resolve(_.vh(_.EwH));return f?f.getCurrentTime():0};
cXF=function(){var f,H,v,t,M,h,y,m,W,I,S,d,Z,l;return _.Y(function(L){switch(L.nextAddress){case 1:f={},H=_.sA_(),v=_.V(Object.entries(H)),t=v.next();case 4:if(t.done){L.jumpTo(3);break}M=t.value;h=_.V(M);y=h.next().value;m=h.next().value;W=y;I=m;if(!I){L.jumpTo(5);break}return L.yield(I(),8);case 8:f[W]=L.yieldResult;case 5:t=v.next();L.jumpTo(4);break;case 2:S=_.V(void 0),d=S.next();case 9:if(d.done){L.jumpTo(3);break}Z=d.value;l=H[Z];if(!l){L.jumpTo(10);break}return L.yield(l(),13);case 13:f[Z]=
L.yieldResult;case 10:d=S.next();L.jumpTo(9);break;case 3:return L.return(f)}})};
XVr=function(){var f;_.Y(function(H){if(H.nextAddress==1)return H.yield(cXF(),2);f=H.yieldResult;return H.yield(navigator.clipboard.writeText(JSON.stringify(f,null,2)),0)})};
AXt=function(f,H){return _.dL(f.entities,"superThanksSelectedTierEntity",H)};
bQx=function(f,H){return{popup:{searchSuggestionReportDialog:{searchQuery:f,title:_.ZC("SBOX_INAPPROPRIATE_TITLE"),suggestions:H,categoryLabel:_.ZC("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.ZC("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.ZC("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.ZC("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.ZC("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.ZC("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.ZC("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.ZC("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.ZC("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.ZC("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
iQ5=function(f){var H,v,t,M,h,y,m,W,I,S,d,Z,l,L,r,n,Q,C,w;return _.Y(function(c){switch(c.nextAddress){case 1:return c.yield(_.Zq(),2);case 2:return(H=c.yieldResult)?c.yield(_.vrs(H),3):c.return();case 3:v=c.yieldResult;if(!v)return c.return();M=((t=v.offlineVideos)==null?void 0:t.length)||0;y=((h=v.offlinePlaylists)==null?void 0:h.length)||0;if(M===0&&y===0)return c.return();m=0;if(v.offlineVideos)for(W=_.V(v.offlineVideos),I=W.next();!I.done;I=W.next())S=I.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
S.videoState&&(m+=1);f.offline_videos_count=M.toString();_.J("kevlar_log_offline_current_network_type_ks")||(f.offline_current_network_type=(d=_.OYR())!=null?d:"CONN_INVALID");_.J("kevlar_log_updated_time_for_smart_downloads")&&(Z=_.vS().getState().entities,l=_.pY(Z),L=PyF(Z),f.offline_smart_downloads_last_sync_time_ms=l.toString(),f.offline_smart_downloads_next_sync_time_ms=L.toString());f.offline_videos_playable=m.toString();f.offline_playlists_count=y.toString();v.offlineVideos&&(r=v.offlineVideos.reduce(function(A,
X){X.downloadedBytes&&(A+=Number(X.downloadedBytes));return A},0).toString())&&(f.offline_used_disk_space_bytes=r);
if(!((n=navigator)==null?0:(Q=n.storage)==null?0:Q.estimate)){c.jumpTo(4);break}return c.yield(navigator.storage.estimate(),5);case 5:C=c.yieldResult,f.offline_free_disk_space_bytes=(((w=C)==null?void 0:w.quota)||0).toString();case 4:f.offline_client_state=JSON.stringify(v),_.Bj(c)}})};
kix=function(f){f=_.V(f);for(var H=f.next(),v={};!H.done;v={setter$jscomp$5:void 0},H=f.next()){var t=H.value;H=t.params;t=t.service;H&&t&&(v.setter$jscomp$5=_.rDA[t],v.setter$jscomp$5&&H.forEach(function(M){return function(h){var y=h.key;h=h.value;y&&h&&(0,M.setter$jscomp$5)(y,h)}}(v)))}};
TjF=function(f){f=f.match(/(.*)::.*::.*/);if(f!==null)return f[1]};
wVA=function(f){if(_.$PB()){var H=Object.keys(window.sessionStorage);H=_.V(H);for(var v=H.next();!v.done;v=H.next()){v=v.value;var t=TjF(v);t===void 0||f.includes(t)||self.sessionStorage.removeItem(v)}}};
qjb=function(){if(!_.$PB())return!1;var f=_.ld(),H=Object.keys(window.sessionStorage);H=_.V(H);for(var v=H.next();!v.done;v=H.next())if(v=TjF(v.value),v!==void 0&&v!==f)return!0;return!1};
rn=function(f,H,v){(_.J("desktop_keyboard_shortcut_usage_log")||v&&_.J("web_shorts_keyboard_shortcut_usage_log"))&&(H?_.$h.get(f):_.mC.get(f))&&(f=H?_.Oy.get(f):_.Wg.get(f))&&_.Ti(_.uy(),f)};
fqx=function(f,H){return f.findIndex(function(v){return v.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(H.keyCode):!1};
HYt=function(){var f,H;return typeof CSS!=="undefined"&&((H=(f=CSS).supports)==null?void 0:H.call(f,"selector(:has(*))"))};
vTA=function(f){return f.visibility!=="hidden"&&f.display!=="none"};
MBx=function(f){if(HYt()||f.tagName!=="DETAILS"?!f.matches(tBi):f.querySelector("summary")!==null)return-1;f=f.getAttribute("tabindex")||"0";return Number(f)};
hj0=function(f){return f.some(function(H){return MBx(H)>0})};
Rjp=function(f){if(f.textContent)return!0;if(f instanceof HTMLInputElement){if(!f.labels)return!1;f=_.V(f.labels);for(var H=f.next();!H.done;H=f.next())if(H.value.textContent)return!0}return!1};
VBG=function(f){return f.sort(function(H,v){return MBx(v)-MBx(H)})};
ydh=function(f){f=Array.from(f.querySelectorAll(tBi)).filter(function(H){return(vTA(H.style)?vTA(window.getComputedStyle(H)):!1)&&Rjp(H)});
return hj0(f)?VBG(f):f};
YFp=function(f){f=ydh(f);f.length>0&&f[0].focus()};
mO0=function(f,H){H.stack&&(f.stack+="\n"+H.stack);return f};
OYG=function(f){var H=KJ(f,"Content-Type");if(!H)return null;H=H.toLowerCase();if(H.startsWith("application/json"))return H.startsWith("application/json+protobuf")?new $OA:new _.vw;if(H.startsWith("application/x-protobuf")){f=KJ(f,"Content-Transfer-Encoding");if(!f)return new DJ;if(f.toLowerCase()=="base64")return new WOw}return null};
lq0=function(f,H,v,t){var M=new gTF(function(m,W){return IqG.has(W)?m.sentinel==="gal"&&m.event!==void 0:!1},function(m){m.event?(m=SFr(m.event),m=!m||dOG(t,m)?!0:_.Ip(f.lastEvent,ox,2,nJ)?!_.Ip(m,pJ,1,nJ)&&!_.Ip(m,ox,2,nJ):!_.Ip(m,pJ,1,nJ)&&!_.Ip(m,ox,3,nJ)):m=!0;
return m});
v=_.Il(f.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",j5x(v)]]));if(f.nestedOrigins!==void 0)for(var h=_.V(f.nestedOrigins),y=h.next();!y.done;y=h.next())v=_.Il(v,new Map([["origin",y.value]]));return s5p(M,v,H).then(function(m){m=ZYF(m.event);if(_.Ip(m,pJ,1,nJ)){var W,I=(W=_.Fg(m,pJ,1,nJ))==null?void 0:_.x_(W,2);I&&t.JSC$19338_logErrorEvent(Jdh(I));W=_.Fg(m,pJ,1,nJ);_.x_(W,2)===4?(m=_.Fg(m,pJ,1,nJ),m={statusCode:11,statusMessage:_.L8(m,
3)}):(m=_.Fg(m,pJ,1,nJ),m={statusCode:12,statusMessage:_.L8(m,3)});return m}_.Ip(m,ox,3,nJ)?(m=_.Fg(m,ox,3,nJ),m={statusCode:1,consentLanguageKeys:_.L8(m,2)}):m={statusCode:1};return m}).catch(function(m){return m.errorCode!==void 0?{statusCode:m.errorCode,
statusMessage:m.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
xOW=function(f){var H={};if(f===void 0||f===null)return H;f.getToken()!==void 0&&UOW(f.getToken())&&UOW(f.getToken()).length>0&&(H.scopes=new Set(UOW(f.getToken())));f.getToken()!==void 0&&ejx(f.getToken())&&ejx(f.getToken()).length>0&&(H.capabilities=new Set(ejx(f.getToken())));_.L8(f,3)!==void 0&&(H.consistencyKey=_.L8(f,3));f.getName()!==void 0&&f.getName()!==""&&(H.linkName=f.getName());_.gP(f,LOp,4)&&(f=_.V$(f,LOp,4),f=Object.assign({},_.L8(f,1)&&{userId:_.L8(f,1)},_.L8(f,2)&&{displayName:_.L8(f,
2)},_.L8(f,3)&&{email:_.L8(f,3)},_.L8(f,5)&&{username:_.L8(f,5)},_.L8(f,4)&&{profilePicture:_.L8(f,4)}),H.profile=f);return H};
BLA=function(f,H){var v=f.flowParams,t;return{serviceId:v.serviceId,sessionId:v.sessionId,currentFlow:f.currentFlow,googleScopesString:H,linkingSessionSerialized:f.session.serialize(),consentLanguageKeys:v.consentLanguageKeys,callerState:f.callerState,dynamicUrlParameters:v.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(t=v.partnerConfigMinReadTimestamp)==null?void 0:t.serialize()}};
DOx=function(f){var H=f.googleScopes!==void 0?Array.from(f.googleScopes).join(","):"";zjr(BLA(f,H));H=FO0(f);return H===null?Promise.resolve(rdi):H.start().then(function(v){var t,M=(t=v.link)==null?void 0:t.consistencyKey;return v.statusCode===1&&f.googleScopes!==void 0&&f.googleScopes.size>0&&M!==void 0?(t=f.flowParams,KOA(t.serviceId,t.sessionId,f.googleScopes,M,t.galService,f.config,v)):v})};
oTG=function(f){var H=FO0(f);return H===null?Promise.resolve(Qx({statusCode:7,statusMessage:"Failed to create flow object"},f.callerState)):H.complete().then(function(v){var t,M=(t=v.link)==null?void 0:t.consistencyKey;return v.statusCode===1&&f.googleScopes!==void 0&&f.googleScopes.size>0&&M!==void 0?(t=f.flowParams,KOA(t.serviceId,t.sessionId,f.googleScopes,M,t.galService,f.config,v)):Qx(v,f.callerState)},function(v){return Qx({statusCode:12,
statusMessage:"Failed to complete the flow: "+v.message},f.callerState)})};
KOA=function(f,H,v,t,M,h,y){return nTx(M,{serviceId:f,sessionId:H,googleScopes:v,consistencyKey:t}).then(function(){return y},function(m){return M.deleteLink({serviceId:f,
sessionId:H,accountLinkingEntryPoint:h.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+m.message}},function(W){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+W.message}})})};
FO0=function(f){switch(f.currentFlow){case 1:var H=f.flowParams;f=_.V$(f.session,paw,1);return uG.createOAuthFlow(H,f);case 2:case 3:return H=f.flowParams,f=_.V$(f.session,Q5i,6),ax.createStreamlinedFlow(H,f);default:return null}};
uGh=function(f,H){f===2&&(f=3);var v=0;Pg.indexOf(f)!==-1&&(v=Pg.indexOf(f)+1);for(f=v;f<Pg.length;f++)if(H.has(Pg[f]))return Pg[f]};
GZt=function(f){var H=f.serviceId;var v=f.sessionId;var t=f.config;var M=f.galService;var h=f.capabilities;var y=f.scopes;var m=f.loginHint;var W=f.callerState;var I=f.consentLanguageKeys;var S=f.linkName;var d=f.dynamicUrlParameters;var Z=f.partnerConfigMinReadTimestamp;f=t.dataUsageNoticeConfig?t.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return M.startLinkingSession({serviceId:H,sessionId:v,capabilities:h,scopes:y,loginHint:m,callerState:W,supportedFlows:aq5(t.supportedFlows),completionUrl:t.completionUrl,
accountLinkingEntryPoint:t.accountLinkingEntryPoint,consentLanguageKeys:I,dataUsageNoticeConfig:f,linkName:S,dynamicUrlParameters:d,partnerConfigMinReadTimestamp:Z}).then(function(l){return new PAw(H,v,t,M,l,void 0,W,I,d,Z)})};
Adp=function(f,H,v){var t=(new CAh).getSession(f);if(t===null)return Promise.resolve({statusCode:2});ETG(f);var M=NL0(t.linkingSessionSerialized),h=t.googleScopesString!==""&&t.googleScopesString!==void 0?new Set(t.googleScopesString.split(",")):void 0,y=t.partnerConfigMinReadTimestampSerialized?cdt(t.partnerConfigMinReadTimestampSerialized):void 0;return XaW(new PAw(f,t.sessionId,H,v,M,h,t.callerState,t.consentLanguageKeys,t.dynamicUrlParameters,y),t.currentFlow,t.consentLanguageKeys)};
zjr=function(f){var H=new CAh;H.storage!==null&&H.storage.set("SAVED_SESSION",f)};
ETG=function(f){var H=new CAh;if(H.storage!==null){var v=H.storage.get("SAVED_SESSION");v!==void 0&&v.serviceId===f&&H.storage.remove("SAVED_SESSION")}};
aq5=function(f){var H=new Set;f=_.V(f);for(var v=f.next();!v.done;v=f.next())v=v.value,v!==1&&bYi.has(v)&&H.add(bYi.get(v));return H};
Qx=function(f,H){H!==void 0&&(f.callerState=H);return f};
iYA=function(f){switch(f){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
waW=function(f){return new kZG(f,new TLx(f))};
HG0=function(f,H){H=H===void 0?!1:H;var v=document.createElement("div");f&&(v.style.transform="scaleX(-1)");v.style.backgroundColor=H?"rgba(138,180,248,.24)":"#e8f0fe";v.style.height="4px";v.style.overflow="hidden";v.style.position="absolute";v.style.top="0";v.style.width="100%";v.style.zIndex="1500";v.setAttribute("aria-label","Loading");v.setAttribute("aria-live","polite");f=document.createElement("style");f.textContent="@keyframes omdc-linear-progress-primary-indeterminate-translate {\n    0% {\n      transform: translateX(0);\n    }\n\n    20% {\n      animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n      transform: translateX(0);\n    }\n\n    59.15% {\n      animation-timing-function: cubic-bezier(\n        0.302435,\n        0.381352,\n        0.55,\n        0.956352\n      );\n\n      transform: translateX(83.67142%);\n    }\n\n    100% {\n      transform: translateX(200.611057%);\n    }\n  }@keyframes omdc-linear-progress-primary-indeterminate-scale {\n    0% {\n      transform: scaleX(0.08);\n    }\n\n    36.65% {\n      animation-timing-function: cubic-bezier(0.334731, 0.12482, 0.785844, 1);\n      transform: scaleX(0.08);\n    }\n\n    69.15% {\n      animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1);\n      transform: scaleX(0.661479);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-translate {\n    0% {\n      animation-timing-function: cubic-bezier(0.15, 0, 0.515058, 0.409685);\n      transform: translateX(0);\n    }\n\n    25% {\n      animation-timing-function: cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);\n      transform: translateX(37.651913%);\n    }\n\n    48.35% {\n      animation-timing-function: cubic-bezier(0.4, 0.627035, 0.6, 0.902026);\n      transform: translateX(84.386165%);\n    }\n\n    100% {\n      transform: translateX(160.277782%);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-scale {\n    0% {\n      animation-timing-function: cubic-bezier(\n        0.205028,\n        0.057051,\n        0.57661,\n        0.453971\n      );\n      transform: scaleX(0.08);\n    }\n\n    19.15% {\n      animation-timing-function: cubic-bezier(\n        0.152313,\n        0.196432,\n        0.648374,\n        1.004315\n      );\n      transform: scaleX(0.457104);\n    }\n\n    44.15% {\n      animation-timing-function: cubic-bezier(\n        0.257759,\n        -0.003163,\n        0.211762,\n        1.38179\n      );\n      transform: scaleX(0.72796);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }";
v.appendChild(f);f=qFx();f.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";f.style.left="-145.166611%";var t=fnG(H);t.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";f.appendChild(t);v.appendChild(f);f=qFx();f.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";f.style.left="-54.888891%";H=fnG(H);H.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
f.appendChild(H);v.appendChild(f);return v};
qFx=function(){var f=document.createElement("div");f.style.height="100%";f.style.position="absolute";f.style.transformOrigin="top left";f.style.width="100%";return f};
fnG=function(f){var H=document.createElement("span");H.style.borderTop=f?"4px solid #669df6":"4px solid #4285f4";H.style.display="inline-block";H.style.position="absolute";H.style.width="100%";return H};
vzt=function(f){return f==null?void 0:_.CtM(f).valueOf()};
R90=function(f){var H=document.body,v=!1,t=function(){v||(v=!0,tcW(M,h),setTimeout(function(){H.removeChild(h);H.removeChild(M)},150))},M=McF(f,getComputedStyle(H).direction==="rtl",t),h=h95(t);
tcW(M,h);H.appendChild(h);H.appendChild(M);window.requestAnimationFrame(function(){h.style.opacity="1";M.style.opacity="1";M.style.transform="translate(-50%, -50%) scale(1)";M.children[0].focus()})};
McF=function(f,H,v){var t=document.createElement("div");t.style.position="fixed";t.style.alignItems="center";t.style.backgroundColor=f?"rgb(32, 33, 36)":"white";t.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";t.style.display="flex";t.style.flexDirection="column";t.style.justifyContent="center";t.style.left="50%";t.style.top="50%";t.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";t.style.zIndex="2002";document.body.clientWidth>=
660?(t.style.borderRadius="8px",t.style.minHeight="220px",t.style.maxHeight="90%",t.style.maxWidth="90%",t.style.minWidth="540px"):(t.style.height="100%",t.style.width="100%");t.setAttribute("aria-label","Error");t.setAttribute("aria-modal","true");t.setAttribute("role","alertdialog");t.addEventListener("keydown",function(h){h.key==="Escape"&&v()});
H=Vcr(f,H,v);t.appendChild(ytb(H));t.appendChild(H);var M=document.createElement("img");M.src=f?"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";M.style.height="72px";M.style.width="72px";M.style.color="#9aa0a6";M.setAttribute("alt","");t.appendChild(M);M=document.createElement("h1");M.textContent="Something went wrong.  Try again.";
M.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";M.style.lineHeight="24px";M.style.fontSize="16px";M.style.textAlign="center";M.style.letterSpacing="0.1px";M.style.color=f?"rgb(232,234,237)":"#3c4043";t.appendChild(M);t.appendChild(ytb(H));return t};
Vcr=function(f,H,v){var t=document.createElement("button");t.style.backgroundColor="transparent";t.style.border="none";t.style.borderRadius="50%";t.style.cursor="pointer";t.style.outline="none";t.style.padding="12px";t.setAttribute("aria-label","Close dialog");t.style.position="absolute";t.style.top="0";H?t.style.right="0":t.style.left="0";t.addEventListener("focus",function(){t.style.backgroundColor=f?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
t.addEventListener("blur",function(){t.style.backgroundColor="transparent"});
t.addEventListener("mouseenter",function(){t.style.backgroundColor=f?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
t.addEventListener("mouseleave",function(){t.style.backgroundColor="transparent"});
t.addEventListener("click",v);t.addEventListener("keydown",function(M){M.key!=="Enter"&&M.key!=="Space"||v()});
H=document.createElement("img");H.src=f?"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey200-24dp/1x/gm_close_gm_grey200_24dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey600-24dp/1x/gm_close_gm_grey600_24dp.png";H.style.display="block";H.style.height="24px";H.style.width="24px";H.setAttribute("alt","");t.appendChild(H);return t};
ytb=function(f){var H=document.createElement("div");H.setAttribute("tabindex","0");H.setAttribute("aria-hidden","true");H.addEventListener("focus",function(){return void f.focus()});
return H};
h95=function(f){var H=document.createElement("div");H.style.backgroundColor="rgba(32,33,36,0.6)";H.style.bottom="0";H.style.left="0";H.style.position="fixed";H.style.right="0";H.style.top="0";H.style.transition=" opacity 150 ms linear";H.style.zIndex="2001";H.addEventListener("click",f);return H};
tcW=function(f,H){H.style.opacity="0";f.style.opacity="0";f.style.transform="translate(-50%, -50%) scale(0.8)"};
Y65=function(f,H){f.sandbox&&f.sandbox.add&&(f.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),f.sandbox.add("allow-downloads"));f.src=H};
G4=function(f){mSx.call(this,f)};
CJ=function(f,H){H=H===void 0?!1:H;this.parsedImageUrl_=null;f instanceof $SF||(WNp==void 0&&(WNp=new OGt),f=WNp.parse(f.toString(),H));f=this.parsedImageUrl_=f;f.JSC$19550_parsedOptions_==void 0&&((H=f.getOptions())||(H=""),f.JSC$19550_parsedOptions_=(new gzw).parse(H));mSx.call(this,f.JSC$19550_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;f=this.parsedImageUrl_;H=f.uri_.JSC$10022_port_;this.JSC$19552_domain_=f.uri_.JSC$10022_domain_+(H?":"+H:"");this.JSC$19552_query_=
this.parsedImageUrl_.uri_.JSC$10022_queryData_.toString()};
InF=function(f){this.mode=4;this.data=f;this.parsedData=[];f=0;for(var H=this.data.length;f<H;f++){var v=[],t=this.data.charCodeAt(f);t>65536?(v[0]=240|(t&1835008)>>>18,v[1]=128|(t&258048)>>>12,v[2]=128|(t&4032)>>>6,v[3]=128|t&63):t>2048?(v[0]=224|(t&61440)>>>12,v[1]=128|(t&4032)>>>6,v[2]=128|t&63):t>128?(v[0]=192|(t&1984)>>>6,v[1]=128|t&63):v[0]=t;this.parsedData.push(v)}this.parsedData=Array.prototype.concat.apply([],this.parsedData);this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),
this.parsedData.unshift(187),this.parsedData.unshift(239))};
S6p=function(f){this.typeNumber=0;this.errorCorrectLevel=f===void 0?2:f;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
Ey=function(f,H){if(f.length==void 0)throw Error("Dk`"+f.length+"`"+H);for(var v=0;v<f.length&&f[v]==0;)v++;this.num=Array(f.length-v+H);for(H=0;H<f.length-v;H++)this.num[H]=f[H+v]};
dS0=function(f,H){this.totalCount=f;this.dataCount=H};
j9F=function(){this.buffer=[];this.length=0};
s9F=function(){var f=!1;if(_.Wss()){f=_.jE();var H="";_.I_5()?(H=/Windows (?:NT|Phone) ([0-9.]+)/,H=(f=H.exec(f))?f[1]:"0.0"):_.QR()?(H=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,H=(f=H.exec(f))&&f[1].replace(/_/g,".")):_.gv5()?(H=/Mac OS X ([0-9_.]+)/,H=(f=H.exec(f))?f[1].replace(/_/g,"."):"10"):_.WR(_.jE(),"KaiOS")?(H=/(?:KaiOS)\/(\S+)/i,H=(f=H.exec(f))&&f[1]):_.Wss()?(H=/Android\s+([^\);]+)(\)|;)/,H=(f=H.exec(f))&&f[1]):_.S5v()&&(H=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,H=(f=H.exec(f))&&f[1]);f=
H||""}return f};
LNF=function(f,H){this.JSC$19575__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(H)for(var v in H)this.JSC$19575__htOption[v]=H[v];this.JSC$19575__htOption.useSVG&&(ZGA=JtG);this.JSC$19575__android=s9F();this.JSC$19575__el=f;this._oQRCode=null;this._oDrawing=new ZGA(this.JSC$19575__el,this.JSC$19575__htOption);this.JSC$19575__htOption.text&&(f=this.JSC$19575__htOption.text,this._oQRCode=new S6p(this.JSC$19575__htOption.correctLevel),ln0(this._oQRCode,
f),H=this._oQRCode,USb(H,!1,e90(H)),this.JSC$19575__el.title=f,this._oDrawing.draw(this._oQRCode),this.makeImage())};
xSp=function(f,H,v,t,M){f.save();var h=new Path2D;h.roundRect(H,v,t*7,t*7,t*2);h.roundRect(H+t,v+t,t*5,t*5,t*1.3);h.roundRect(H+2*t,v+2*t,t*3,t*3,t);f.clip(h,"evenodd");f.fillStyle=M;f.fillRect(0,0,f.canvas.width,f.canvas.height);f.restore()};
NM=function(f,H){if(typeof f!=="function")throw Error("Gk");return _.Mr.setTimeout(function(){f()},H)};
cg=function(){};
z9b=function(f,H,v,t,M){(new cg).debug("TestLoadImageWithRetries: "+M);if(t==0)v(!1);else{var h=M||0;t--;BZb(f,H,function(y){y?v(!0):_.Mr.setTimeout(function(){z9b(f,H,v,t,h)},h)})}};
BZb=function(f,H,v){var t=new cg;t.debug("TestLoadImage: loading "+f);var M=new Image;M.onload=function(){try{t.debug("TestLoadImage: loaded"),FNt(M),v(!0)}catch(h){}};
M.onerror=function(){try{t.debug("TestLoadImage: error"),FNt(M),v(!1)}catch(h){}};
M.onabort=function(){try{t.debug("TestLoadImage: abort"),FNt(M),v(!1)}catch(h){}};
M.ontimeout=function(){try{t.debug("TestLoadImage: timeout"),FNt(M),v(!1)}catch(h){}};
_.Mr.setTimeout(function(){if(M.ontimeout)M.ontimeout()},H);
M.src=f};
FNt=function(f){f.onload=null;f.onerror=null;f.onabort=null;f.ontimeout=null};
rtp=function(){this.front_=[];this.back_=[]};
KN0=function(f,H){_.zO.call(this);this.delay_=new _.rA(this.JSC$19701_onTick_,0,this);_.jz(this,this.delay_);this.JSC$19699_interval_=5E3;this.nextTickTime_=0;if(typeof f==="function")H&&(f=(0,_.FH)(f,H));else if(f&&typeof f.handleEvent==="function")f=(0,_.FH)(f.handleEvent,f);else throw Error("ya");this.JSC$19701_listener_=f};
XV=function(f,H,v,t,M,h,y,m,W,I,S,d,Z,l){v=v===void 0?!1:v;t=t===void 0?function(){return""}:t;
M=M===void 0?!1:M;h=h===void 0?!1:h;y=y===void 0?!1:y;m=m===void 0?function(){return _.gj({})}:m;
W=W===void 0?!1:W;S=S===void 0?!1:S;d=d===void 0?!1:d;Z=Z===void 0?!1:Z;l=l===void 0?!1:l;this.JSC$19702_pathPrefix_=f;this.defaultQueryParams_=H;this.pubsub_=new _.dH;this.reconnectTimer_=new KN0(this.safeReconnect_,this);this.JSC$19702_channel_=null;this.JSC$19702_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$19702_pendingMessages_=[];this.enableAsyncTest_=v;this.JSC$19702_getXsrfToken_=t;this.useAsyncBrowserChannelHandler_=h;this.getAuthorizationHeader_=
m;this.getAuthorizationHeaderSync_=I;this.enableCachedUpdateAuthorizationHeader_=y;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.gj();this.enableLoungeTokenRefresh_=M;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=W;this.disableMdxAuthForNonPlaybackMessages_=S;this.disableMdxAuthForAdMessages_=d;this.enableMdxAuthForConnectionOnly_=Z;this.disableMdxAuthForShortsMessages_=l;this.JSC$19702_channelOpenedCounter=new DSx;this.JSC$19702_channelClosedCounter=new ozw;this.channelMessageSentCounter=
new nzh;this.JSC$19702_channelMessageReceivedCounter=new pSW;this.JSC$19702_channelErrorCounter=new Q9h;this.pendingMapsOnClosedCounter=new uEx;this.undeliveredMapsOnClosedCounter=new anx};
AL=function(f){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;f=f||document.location.href;var H=Number(_.Te(f)[4]||null)||"";H&&(this.port=":"+H);this.domain=_.wu(f)||"";f=_.jE();f.search("MSIE")>=0&&_.SE(f.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
bG=function(f){f=f||{};this.name=f.name||"";this.id=f.id||f.screenId||"";this.token=f.token||f.loungeToken||"";this.uuid=f.uuid||f.dialId||"";this.idType=f.screenIdType||"normal"};
PYp=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(f){var H=Math.random()*16|0;return(f=="x"?H:H&3|8).toString(16)})};
GDh=function(f){return _.uh(f,function(H){return{key:H.id,name:H.name}})};
CYW=function(f,H){return _.Gb(f,function(v){return v||H?!v!=!H?!1:v.id==H.id:!0})};
kh=function(f,H){return _.Gb(f,function(v){return iG(v,H)})};
Atw=function(){var f=EzW(),H=NZW();if(ctA()){var v=f,t=_.eTe(v,H);t<0&&_.JNH(v,-(t+1),0,H)}f=XSb(f);if(f.length==0)try{_.YFE("remote_sid")}catch(M){}else try{_.Zy("remote_sid",f.join(","),-1)}catch(M){}};
EzW=function(){var f=_.Oz("yt-remote-connected-devices")||[];f.sort(_.Ur5);return f};
XSb=function(f){if(f.length==0)return[];var H=f[0].indexOf("#"),v=H==-1?f[0]:f[0].substring(0,H);return _.uh(f,function(t,M){return M==0?t:t.substring(v.length)})};
bGF=function(f){_.WH("yt-remote-connected-devices",f,86400)};
NZW=function(){if(iGG)return iGG;var f=_.Oz("yt-remote-device-id");f||(f=PYp(),_.WH("yt-remote-device-id",f,31536E3));for(var H=EzW(),v=1,t=f;_.cR(H,t);)v++,t=f+"#"+v;return iGG=t};
kDx=function(){return _.Oz("yt-remote-session-browser-channel")};
ctA=function(){return _.Oz("yt-remote-session-screen-id")};
q6t=function(f){f.length>5&&(f=f.slice(f.length-5));var H=_.uh(TZG(),function(t){return t.loungeToken}),v=_.uh(f,function(t){return t.loungeToken});
_.Wa5(v,function(t){return!_.cR(H,t)})&&wSp();
_.WH("yt-remote-local-screens",f,31536E3)};
TZG=function(){return _.Oz("yt-remote-local-screens")||[]};
wSp=function(){_.WH("yt-remote-lounge-token-expiration",!0,86400)};
T4=function(f){f||(_.g4("yt-remote-session-screen-id"),_.g4("yt-remote-session-video-id"));Atw();f=EzW();_.iH(f,NZW());bGF(f)};
H2i=function(){fwG();return wn?!!wn.get("yt-remote-use-staging-server"):!1};
fwG=function(){if(!wn){var f=_.j5r();f&&(wn=new _.Ll(f))}};
hsx=function(f,H,v,t,M){v=v===void 0?function(){return""}:v;
var h=function(){return new XV(qM(f,"/bc"),H,!1,v,t)};
return _.J("enable_mdx_web_channel_desktop")?new vV5(function(){return new trF(qM(f,"/wc"),H,v)}):new Mrx(h,M)};
YEG=function(){var f=Rst;VrW();fx.push(f);yJW()};
H9=function(f,H){VrW();var v=muF(f,String(H));fx.length==0?$ub(v):(yJW(),_.X3(fx,function(t){t(v)}))};
v9=function(f){H9("CP",f)};
VrW=function(){fx||(fx=_.ES("yt.mdx.remote.debug.handlers_")||[],_.qJ("yt.mdx.remote.debug.handlers_",fx))};
$ub=function(f){var H=(tO+1)%50;tO=H;WFW[H]=f;O20||(O20=H==49)};
yJW=function(){var f=fx;if(WFW[0]){var H=O20?tO:-1,v={};do v={record$jscomp$15:void 0},H=(H+1)%50,v.record$jscomp$15=WFW[H],_.X3(f,function(t){return function(M){M(t.record$jscomp$15)}}(v));
while(H!=tO);WFW=Array(50);tO=-1;O20=!1}};
muF=function(f,H){var v=(Date.now()-gVb)/1E3;v.toFixed&&(v=v.toFixed(3));var t=[];t.push("[",v+"s","] ");t.push("[","yt.mdx.remote","] ");t.push(f+": "+H,"\n");return t.join("")};
Mf=function(f){_.Yh.call(this);this.JSC$19726_logName_=f;this.screens=[]};
Ro=function(f){Mf.call(this,"LocalScreenService");this.JSC$19733_http_=f;this.loungeTokenRefreshTimer_=NaN;hO(this);this.info("Initializing with "+Iwt(this.screens))};
Vg=function(f,H){H=H===void 0?!1:H;Mf.call(this,"ScreenService");this.JSC$19739_http_=f;this.disableAutomaticScreenCache_=H;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};SEx(this)};
yg=function(f,H,v){_.Yh.call(this);this.JSC$19743_logName_=v;this.JSC$19743_screenService_=f;this.receiver_=H;this.screen_=null};
Dub=function(f,H,v){v.disableCastApi?YH("Cannot initialize because disabled by Mdx config."):dut()?jKr(f,v)&&(sKW(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?Z2x(H):(window.__onGCastApiAvailable=function(t,M){t?Z2x(H):(mj("Failed to load cast API: "+M),JJr(!1),sKW(!1),_.g4("yt-remote-cast-available"),_.g4("yt-remote-cast-receiver"),lwA(),H(!1))},v.loadCastApiSetupScript?_.c7(Uub):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
esG()>=60&&LFx():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?xux():esG()>=89?BX0():(zsr(),FFx(rJh.map(KFi))))):YH("Cannot initialize because not running Chrome")};
lwA=function(){YH("dispose");var f=$H();f&&f.dispose();_.qJ("yt.mdx.remote.cloudview.instance_",null);oV5(!1);_.kKH(nVi);nVi.length=0};
pBt=function(){return!!_.Oz("yt-remote-cast-installed")};
QKt=function(){var f=_.Oz("yt-remote-cast-receiver");return f?f.friendlyName:null};
uIb=function(){YH("clearCurrentReceiver");_.g4("yt-remote-cast-receiver")};
awW=function(){return pBt()?$H()?$H().getCastSession():(mj("getCastSelector: Cast is not initialized."),null):(mj("getCastSelector: Cast API is not installed!"),null)};
GWh=function(f,H){PJw()?$H().setConnectedScreenStatus(f,H):mj("setConnectedScreenStatus called before ready.")};
dut=function(){var f=_.jE().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.Y_||f};
jKr=function(f,H){var v=!1;$H()||(f=new W9(f,H),f.subscribe("yt-remote-cast2-availability-change",function(t){_.WH("yt-remote-cast-available",t);ZJ("yt-remote-cast2-availability-change",t)}),f.subscribe("yt-remote-cast2-receiver-selected",function(t){YH("onReceiverSelected: "+t.friendlyName);
_.WH("yt-remote-cast-receiver",t);ZJ("yt-remote-cast2-receiver-selected",t)}),f.subscribe("yt-remote-cast2-receiver-resumed",function(t){YH("onReceiverResumed: "+t.friendlyName);
_.WH("yt-remote-cast-receiver",t);ZJ("yt-remote-cast2-receiver-resumed",t)}),f.subscribe("yt-remote-cast2-session-change",function(t){YH("onSessionChange: "+CJW(t));
t||_.g4("yt-remote-cast-receiver");ZJ("yt-remote-cast2-session-change",t)}),_.qJ("yt.mdx.remote.cloudview.instance_",f),v=!0);
YH("cloudview.createSingleton_: "+v);return v};
$H=function(){return _.ES("yt.mdx.remote.cloudview.instance_")};
Z2x=function(f){JJr(!0);sKW(!1);$H().init(!1,function(H){H?(oV5(!0),_.T95("yt-remote-cast2-api-ready")):(mj("Failed to initialize cast API."),JJr(!1),_.g4("yt-remote-cast-available"),_.g4("yt-remote-cast-receiver"),lwA());f(H)})};
YH=function(f){H9("cloudview",f)};
mj=function(f){H9("cloudview",f)};
JJr=function(f){YH("setCastInstalled_ "+f);_.WH("yt-remote-cast-installed",f)};
PJw=function(){return!!_.ES("yt.mdx.remote.cloudview.apiReady_")};
oV5=function(f){YH("setApiReady_ "+f);_.qJ("yt.mdx.remote.cloudview.apiReady_",f)};
sKW=function(f){_.qJ("yt.mdx.remote.cloudview.initializing_",f)};
ON=function(f){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(f)};
EVh=function(){var f,H;return _.Y(function(v){if(v.nextAddress==1)return(_.o65()||_.J("use_new_nwl"))&&_.Fx_().isNetworkAvailable()?v.yield(_.fN(),2):v.return();if(v.nextAddress!=3)return(f=v.yieldResult)?v.yield(eap(f),3):v.return();H=v.yieldResult;if(!H.length)return v.return();H.forEach(function(t){var M={timestamp:t.timestamp};t=t.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:t.appShellAssetLoadReport,options:M}:t.clientError?{payloadName:"clientError",payload:t.clientError,
options:M}:void 0;t&&_.Kb(t.payloadName,t.payload,t.options)});
H.length===100&&_.nN.addLowPriorityJob(EVh);_.Bj(v)})};
NXb=function(f){if(f.playerResponse){if(f=f.playerResponse,f.messages&&f.messages.length>0&&(f=f.messages.find(function(H){return!(!H||!H.mealbarPromoRenderer)}))&&f.mealbarPromoRenderer)return f.mealbarPromoRenderer}else if(f.response&&(f=f.response)&&f.overlay&&f.overlay.mealbarPromoRenderer)return f.overlay.mealbarPromoRenderer};
cJA=function(f){if(f.response){var H=f.response;if(H&&H.overlay&&H.overlay.tooltipRenderer)return H.overlay.tooltipRenderer}if(f.playerResponse&&(f=f.playerResponse,f.messages&&f.messages.length>0&&(f=f.messages.find(function(v){return!(!v||!v.tooltipRenderer)}))&&f.tooltipRenderer))return f.tooltipRenderer};
AJW=function(f){if(!XBx&&(f=f||_.a8("ZWIEBACK_PING_URLS"))&&f.length){XBx=!0;for(var H=0;H<f.length;H++)_.c8(f[H])}};
i2b=function(f){if(_.QA.get(_.a8("PLAYER_VARS",{}),"privembed",!1)!="1"){f&&IFx();try{b2W().then(function(){},function(){}),_.$Z(i2b,18E5)}catch(H){_.Ge(H)}}};
kWr=function(){var f=_.Uj(),H=f.getFlag(119),v=window.devicePixelRatio>1;document.body&&_.Qu(document.body,"exp-invert-logo")&&(v&&!_.Qu(document.body,"inverted-hdpi")?_.vn(document.body,"inverted-hdpi"):!v&&_.Qu(document.body,"inverted-hdpi")&&_.fV(document.body,"inverted-hdpi"));H!=v&&(_.eG(0,119,v),f.save())};
TXw=function(f){return f.filter(function(H){return"ypcGetCartEndpoint"in H||"ypcFixInstrumentEndpoint"in H})};
wBt=function(f){return f.filter(function(H){return!_.U(H,_.QMv)})};
fI0=function(f,H){var v,t,M,h,y,m,W;_.Y(function(I){switch(I.nextAddress){case 1:v=_.QS.getInstance();t=_.jW.instance;M=_.cn.instance;if(!M)return qEt(f,t,H),I.return();_.Zc(I,2);f.onLoadingCommand&&t.resolveCommand(f.onLoadingCommand);return I.yield(v.getCurrentPositionFromGeolocation(),4);case 4:h=I.yieldResult;if(!f.resolveLocationCommand){I.jumpTo(5);break}y=v.createLocationInfo(h);return I.yield(_.AE(M,f.resolveLocationCommand,{locationInfo:y}),6);case 6:m=I.yieldResult;if(!m||"error"in m&&m.error||
m.errorMetadata)return qEt(f,t,H),I.return();var S;if(m==null?0:(S=m.onResponseReceivedActions)==null?0:S.length){S=_.V(m.onResponseReceivedActions);for(var d=S.next();!d.done;d=S.next())t.resolveCommand(d.value)}(_.U(f.onSuccessCommand,_.wI)||_.U(f.onSuccessCommand,_.ec))&&_.YE(H.hostElement,"yt-navigate",{endpoint:f.onSuccessCommand,reload:!0});case 5:_.ch(I,0);break;case 2:W=_.xu(I);if(W instanceof GeolocationPositionError&&W.code===GeolocationPositionError.PERMISSION_DENIED)return f.onDeniedCommand&&
t.resolveCommand(f.onDeniedCommand),I.return();qEt(f,t,H);_.Bj(I)}})};
qEt=function(f,H,v){f.onFailureCommand&&(H.resolveCommand(f.onFailureCommand),_.mb(v.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
v6W=function(f,H){var v=_.U(f,_.GUh);if(v&&H){f=v.videoIds||[v.videoId];var t;H=(t=_.YE(H,"yt-lockup-requested",{videoIds:f}).detail)==null?void 0:t.returnValue;var M;v.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?M=H?H:f.map(function(h){return{videoId:h,navigationEndpoint:v.videoCommand}}):H&&(M=H);
M&&(t=M.map(function(h){var y=Object,m=y.assign;var W=h.navigationEndpoint;if(!_.U(W,_.zD)){var I=_.U(W,_.wI);if(I){if(delete I.index,delete I.playlistId,I=_.U(W==null?void 0:W.commandMetadata,_.jG),I==null?0:I.url){var S=I.url;S=_.tX(S,"list");S=_.tX(S,"index");I.url=S}}else W=void 0}return m.call(y,{},h,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:W})}),Huh(t,v))}};
tWx=function(f){var H=_.EI();if(f=_.U(f,_.Czo))f.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&H.clearQueue(),f.closeMiniplayer&&_.t8().resolve(_.o0).close(!0)};
hUx=function(f){MWx(_.EI(),f)};
RUW=function(f){var H;(f=(H=_.U(f,_.aea))==null?void 0:H.setVideoIds)&&f.forEach(function(v){_.i_H(_.EI(),v)})};
yV0=function(f){VWt(_.EI(),f)};
YVW=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(f){return!1}};
mEx=function(f){var H=["h","m","s"],v=_.kv(H);v.reverse();var t={};f=(f.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(y){var m=(y.match(/[hms]/)||[""])[0];return m?(t[m]=parseInt(y.match(/\d+/)[0],10),!1):!0});
for(f.reverse();f.length&&v.length;){var M=v.shift();M in t||(t[M]=parseInt(f.shift(),10))}if(f.length||t.s>59||t.m>59||t.h>9)return null;var h="";H.forEach(function(y){t[y]&&(h+=""+t[y]+y)});
return h||null};
$E0=function(f,H){var v=_.mtC(H,{},f,!0);return new Promise(function(t,M){v.listenOnce("n",function(){M(Error("rl`"+v.JSC$29412_getErrorDescription()))});
v.listenOnce("l",function(){var h=v.getResponseCode();if(h!==200)M(Error("sl`"+H+"`"+f.type+"`"+f.size+"`"+h));else try{t(JSON.parse(v.getResponseText()).encryptedBlobId)}catch(y){M(y)}});
v.run()})};
Wxb=function(f){return f.substring(f.indexOf(":")+1,f.indexOf(";"))};
Oui=function(f){return new Promise(function(H,v){var t=new FileReader;t.onloadend=function(){try{var M=new Uint8Array(t.result);M.length<8&&v(void 0);var h=M.subarray(0,8);M="";for(var y=0;y<h.length;y++)M+=("0"+h[y].toString(16)).substr(-2);M.startsWith("ffd8ff")?H("image/jpeg"):M.startsWith("47494638")?H("image/gif"):M.startsWith("89504e470d0a1a0a")?H("image/png"):M.startsWith("424d")?H("image/bmp"):H(void 0)}catch(m){v(m)}};
t.onerror=v;t.readAsArrayBuffer(f)})};
g6p=function(f){return new Promise(function(H,v){var t=new Image;t.crossOrigin="anonymous";t.onload=function(){var M=document.createElement("canvas");M.width=t.naturalWidth;M.height=t.naturalHeight;var h=M.getContext("2d");if(!h)throw Error("tl");h.drawImage(t,0,0);h=Wxb(f);M.toBlob(function(y){y?H(y):v()},h)};
t.src=f})};
SVr=function(f,H){var v;if(((v=_.U(f,_.zD))==null?void 0:v.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var t;_.YE((t=H.hostElement)!=null?t:H,"yt-shorts-reset");_.qJg(_.t8().resolve(_.Z5),f).then(function(h){IIh(h,H,f)})}else{var M;
_.WV((M=H.hostElement)!=null?M:H,[f]).then(function(h){h&&IIh(h.data,H,f)})}};
IIh=function(f,H,v){if(f){var t=_.U(f.replacementEndpoint,_.zD);if(t){f.sequenceContinuation&&(t.sequenceParams=f.sequenceContinuation);var M;_.YE((M=H.hostElement)!=null?M:H,"yt-navigate",{endpoint:f.replacementEndpoint})}else if((f==null?void 0:f.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(f==null?0:f.watchStatus)&&_.U(f.watchStatus,_.lBh)){var h;_.YE((h=H.hostElement)!=null?h:H,"yt-navigate",{endpoint:v})}}};
dE5=function(f){var H=_.t8().resolve(_.aj),v=_.E7.currentPageTypeSelector(H.getState())||"";H=_.E7.currentPageSubTypeSelector(H.getState())||"";v=v==="ytd-browse"&&H==="home";return _.J("web_guide_entry_enable_cache_for_non_home_pages")?(f=(f==null?void 0:f.navigationEndpoint)&&_.U6(f.navigationEndpoint)==="home",{disableCache:v&&f}):{disableCache:v}};
juW=function(f){if(!f)return!1;try{if(f.host&&f.host.tagName==="YT-FORMATTED-STRING"&&f.host.id==="contenteditable-textarea"||f.nodeType===Node.ELEMENT_NODE&&f.tagName==="YTD-COMMENT-INPUT")return!0}catch(H){return!1}return juW(f.parentNode)};
g0=function(f){return f?f.tagName==="A"&&f.href&&f.classList.contains("yt-simple-endpoint"):!1};
suF=function(f){return f?f.tagName==="IMG"&&f.classList.contains("emoji"):!1};
Zu0=function(f,H,v){if(!f)return null;var t=g0(f);if(t&&v)return H=f.pathname.substring(f.pathname.indexOf("/channel/")+9),document.createTextNode("@"+H);if(t&&!v)return document.createTextNode("");if(suF(f))return v=f.alt,f=f.dataset.emojiId,!f&&H&&(H=_.Vp(H,v))&&H.isCustomEmoji&&(f=H.emojiId),f?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+f+">"):document.createTextNode(v);t=f.cloneNode(!1);for(var M=0;M<f.childNodes.length;++M){var h=Zu0(f.childNodes[M],H,v);h&&t.appendChild(h)}return t};
Io=function(f){return f?g0(f)?f:Io(f.lastChild):null};
JVx=function(f){return f?g0(f)?f:JVx(f.firstChild):null};
lIh=function(f){if(!f)return null;for(var H=f.previousSibling;H;)if(H.nodeType===Node.ELEMENT_NODE&&H.nodeName==="BR")H=H.previousSibling;else if(H.nodeType===Node.TEXT_NODE&&/\s+/.test(H.textContent))H=H.previousSibling;else break;(H=Io(H))?f=H:f=(f=f.parentNode)?Io(f.previousElementSibling):null;return f};
UEx=function(f){if(!f)return null;for(var H=f.nextSibling;H;)if(H.nodeType===Node.ELEMENT_NODE&&H.nodeName==="BR")H=H.nextSibling;else if(H.nodeType===Node.TEXT_NODE&&/\s+/.test(H.textContent))H=H.nextSibling;else break;return(H=JVx(H))?H:UEx(f.parentNode)};
eUp=function(f){var H=_.Yd(),v=H.JSC$11327_getStartNode();if(!juW(v.parentNode))return null;H=H.JSC$11327_getStartOffset();if(v.nodeType===Node.TEXT_NODE){var t=_.EZ(v,g0);if(t){if(f&&H===0||!f&&H===v.length)return t}else{if(f&&H===v.length)return!v||v.nodeName==="BR"||v.nextElementSibling&&_.m2(v.nextElementSibling,"display")==="block"?null:JVx(v.nextElementSibling);if(!f&&H===0)return v?Io(v.previousElementSibling):null}}if(v.nodeType===Node.ELEMENT_NODE)if(f){if(0<=H&&H<v.childNodes.length)return JVx(v.childNodes[H])}else if(0<
H&&H<=v.childNodes.length)return Io(v.childNodes[H-1]);return null};
Lxx=function(f,H,v){if(!f)return null;if(f.nodeType===Node.TEXT_NODE)if(v){var t=lIh(f);if(t&&!/^\s+\S/.test(f.wholeText.substr(0,H)))return t}else if((t=UEx(f))&&!/\S\s+/.test(f.wholeText.substr(H,f.wholeText.length)))return t;return f.nodeType===Node.ELEMENT_NODE?v?lIh(f.childNodes[H]):UEx(f.childNodes[H]):Lxx(f.parentNode,H,v)};
xEx=function(f){if(f.hasChildNodes())switch(f.tagName){case "DIV":case "A":case "SPAN":var H="";for(f=f.firstChild;f;f=f.nextSibling)H+=xEx(f);return H;default:return""}else switch(f.nodeType){case 3:return f.textContent;default:return""}};
B9h=function(f){switch(f){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"}};
zUb=function(f){return f.map(function(H){return{settingsRadioOptionRenderer:{title:_.Vq(H.name),asideText:_.Vq(H.approximateSize),id:B9h(H.format)}}})};
rVx=function(f){if(f&&f.length!==0)return f.filter(Fxr()).map(function(H){return{settingsRadioOptionRenderer:{title:H.name,asideText:H.approximateSize,id:B9h(H.formatType)}}})};
ST=function(f){if(f)return f.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
Kxp=function(f,H){f=new Set(f!=null?f:[]);if(f.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(f.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(f.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(f.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(f.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(H)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
DEt=function(f){var H=f.indexOf("(");return H!==-1?f.substring(H+1,f.length-1):f};
_.n6b=function(f,H,v,t,M){v||(v=o6x);var h;(h=_.U(v.commandMetadata,_.jG))!=null&&h.url||(v=Error("yl`"+JSON.stringify(v)),_.oO(v),v=o6x);v=_.QA.unsafeClone(v);h=_.Pk(_.U(v.commandMetadata,_.jG).url,"search_query",f);_.c_(location.href,"sv")==="1"&&(_.U(v,_.LG).params="EgOAAgE%3D",h=_.Pk(h,"sv","1"));_.U(v,_.LG)&&(_.U(v,_.LG).query=f);h=h.replace(/%20/g,"+");_.U(v.commandMetadata,_.jG).url=h;M=_.J("desktop_enable_entity_suggest")?{entityMid:M}:{};_.t8().resolve(_.MJ).resolveCommand(v,{form:{tempData:Object.assign({},
{gs_l:H,oq:t!=null?t:f},M)}})};
pKi=function(f){switch(f){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
uA0=function(f,H,v,t,M,h){var y=_.QA.clone(QuG);y.locale=_.a8("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;y.report={description:M||"<empty>"};M=_.a8("SBOX_SETTINGS",{});H=H.join(",");var m=Date.now();f={choice_cc:t,choice_id_cc:v,choices_sc:H,gl:M.REQUEST_DOMAIN,hl:M.REQUEST_LANGUAGE,query:f,time:m};h&&(f.choice_additional_comment_cc=h);_.S$a(y,f)};
aIA=function(f){var H=new Map;H.set("authuser",_.a8("SESSION_INDEX","0"));return _.Il(f,H)};
GK0=function(f){var H;return _.Y(function(v){switch(v.nextAddress){case 1:if(!f||!PVx(f))return v.return(null);H=null;switch(_.a8("INNERTUBE_CLIENT_NAME")){case "WEB":return v.jumpTo(2);case "WEB_REMIX":H=f.getPlayer()}v.jumpTo(3);break;case 2:return v.yield(f.getPlayerPromise(),4);case 4:H=v.yieldResult;v.jumpTo(3);break;case 3:return v.return(H)}})};
PVx=function(f){return["ytd-player","ytmusic-player"].includes(String(f.tagName||"").toLowerCase())};
CVA=function(f){f=Math.round(f);return f%2?f-1:f};
E6W=function(f){f=Math.round(f);return f%2===0?f-1:f};
N9F=function(f){var H,v,t;if(f=(H=f.createPlaylistDialogFormSchema)==null?void 0:(v=H.fieldSchemas)==null?void 0:(t=v.title)==null?void 0:t.validationSchema)for(H=[f.syncStep,f.asyncStep].filter(function(M){return M!==void 0}),H=_.V(H),v=H.next();!v.done;v=H.next()){v=v.value.rules;
if(!v)break;v=_.V(v);for(v=v.next();!v.done;v=v.next())return _.U(v.value,_.apt)}};
XK5=function(f){var H,v,t;if(f=(H=f.createPlaylistDialogFormSchema)==null?void 0:(v=H.fieldSchemas)==null?void 0:(t=v.visibility)==null?void 0:t.validationSchema)for(H=[f.syncStep,f.asyncStep].filter(function(M){return M!==void 0}),H=_.V(H),v=H.next();!v.done;v=H.next()){v=v.value.rules;
if(!v)break;v=_.V(v);for(t=v.next();!t.done;t=v.next())if(t=_.U(t.value,cVi))return H=void 0,(H=t.translations)==null?void 0:H.visibilityNotValidErrorMessage}};
AVh=function(){var f,H;return(H=(f=_.t8().resolve(_.vh(_.TK)))==null?void 0:f())!=null?H:!1};
buG=function(f){var H=21;if(!f)return H;H+=f.headerTitle?27:0;H+=f.headerTitle&&f.hasHeaderActionHeader?4:0;return H+=f.headerTitle&&f.headerSubtitle?16:0};
iuh=function(f){var H=0;if(!f)return H;H+=f.hasFooterPrimaryButton||f.hasFooterSecondaryButton?48:0;H+=f.footerTrailingLabel||f.footerLeadingLabel?30:0;return H+=f.hasFooterPrimaryButton||f.hasFooterSecondaryButton||!f.footerTrailingLabel&&!f.footerLeadingLabel?0:12};
kKt=function(f){var H=new _.dH,v=f;return{subscribe:function(t){H.subscribe("changed",t)},
dispatch:function(t,M){var h=v;t==="Touch Start"?v=Object.assign({},h,{isAnimating:!1,initialY:M.event.touches[0].clientY}):t==="Touch Move"?(t=Math.min(M.fullContentWrapperHeight,M.contentHeightMap[M.contentWrapperId]+buG(M.header)-iuh(M.footer)),v=Object.assign({},h,{currentY:Math.max(M.contentScrollable?-1*(h.initialY-24):0,M.event.touches[0].clientY-h.initialY),maxHeightForContentWrapper:Math.min(t,Math.max(0,(h.isFullScreen?t:M.contentWrapperHeight)-h.currentY))})):v=t==="Snap To Full Screen"?
Object.assign({},h,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:M.maxHeight}):t==="Snap To Neutral Position"?Object.assign({},h,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:M.maxHeight}):t==="Close Sheet"?Object.assign({},h,{isAnimating:!0,currentY:M.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:M.maxHeight}):h;H.publish("changed",v)}}};
T9x=function(f){return _.d6(function(H){f(H);return!1})};
wKG=function(){_.t8().resolve(_.zQ).closeSheet()};
qVA=function(f){var H,v,t,M,h,y,m,W,I,S,d;return{headerTitle:(H=f.headerTitle)==null?void 0:H.call(f),headerSubtitle:(v=f.headerSubtitle)==null?void 0:v.call(f),headerActionHeader:f.headerActionHeader,footerPrimaryButton:f.footerPrimaryButton,footerSecondaryButton:f.footerSecondaryButton,footerButtonType:(t=f.footerButtonType)==null?void 0:t.call(f),footerLeadingLabel:(M=f.footerLeadingLabel)==null?void 0:M.call(f),footerTrailingLabel:(h=f.footerTrailingLabel)==null?void 0:h.call(f),shouldShowIcons:(y=
f.shouldShowIcons)==null?void 0:y.call(f),skipContentClick:(m=f.skipContentClick)==null?void 0:m.call(f),additionalClassName:(W=f.additionalClassName)==null?void 0:W.call(f),onClosedCallback:f.onClosedCallback,focusOnClose:(I=f.focusOnClose)==null?void 0:I.call(f),isDisabled:(S=f.isDisabled)==null?void 0:S.call(f),disabledCommand:(d=f.disabledCommand)==null?void 0:d.call(f),headerFn:f.headerFn,contentFn:f.contentFn,footerFn:f.footerFn,hasHeaderFn:f.hasHeaderFn(),hasContentFn:f.hasContentFn(),hasFooterFn:f.hasFooterFn(),
hasFooterPrimaryButton:f.hasFooterPrimaryButton(),hasFooterSecondaryButton:f.hasFooterSecondaryButton(),hasHeaderActionHeader:f.hasHeaderActionHeader()}};
fEW=function(f){switch(f){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""}};
HVt=function(f){switch(f){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""}};
vKh=function(f){switch(f){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""}};
t2b=function(f,H,v){H.forEach(function(t){_.WL(_.t8().resolve(_.z$),t)});
_.mb(f,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",v])};
V2t=function(f,H,v,t){var M=_.U(v,_.Cv).commandLifeCycleConfig;M&&M.onStartCommand&&_.Oj(f,[M.onStartCommand],H);_.Qp(H);var h=_.cn.instance;h&&_.XW(h,v)?_.AE(h,v,t).then(function(y){if(!y||(y==null?0:y.error))return y=_.U(v,_.Cv).serializedTransactionFlowLoggingParams,_.uw(H),_.DI(new d0("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",y));_.uw(H);return{data:y}}).then(function(y){_.uw(H);
M2W(y.data);var m=y.data.command;m&&_.Oj(f,[m],H);m=h0A(v,y.data);if(!m){var W=y.data;y=!1;if(W&&W.command&&_.U(W.command,_.Ir)){var I;W=((I=_.U(W.command,_.Ir))==null?void 0:I.commands)||[];for(I=0;I<W.length;I++)if(_.U(W[I],_.sMg)){y=!0;break}}y||_.r4('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!m&&M&&M.onSuccessCommand?_.Oj(f,[M.onSuccessCommand],H):m&&M&&M.onFailureCommand&&_.Oj(f,[M.onFailureCommand],H)},function(){_.uw(H);
M&&M.onFailureCommand&&_.Oj(f,[M.onFailureCommand],H);R0x(v)}):_.oO(Error("Kl"),"ERROR")};
yE5=function(f,H,v){var t=[H];v&&t.push(v);return _.WV(f,t).then(function(M){var h=_.U(H,_.Cv).serializedTransactionFlowLoggingParams,y=M.data,m=h0A(H,y);m?M=_.DI(new d0(m,h)):M2W(y);return M},function(){var M=_.U(H,_.Cv).serializedTransactionFlowLoggingParams;
R0x(H);return _.DI(new d0("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",M))})};
h0A=function(f,H){f=_.U(f,_.Cv).serializedTransactionFlowLoggingParams;var v=null;switch(H.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":v="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":v="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":v="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}v?_.wZ(v,f):P00(f);return v};
R0x=function(f){_.wZ("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.U(f,_.Cv).serializedTransactionFlowLoggingParams)};
M2W=function(f){if(f.trackingParams){var H=_.uy(),v=_.Qe();H&&v&&_.Xl(H,v,_.zK(f.trackingParams))}};
YRx=function(f,H,v){var t=_.cn.instance,M=_.FRr(_.a8("YPC_MB_URL")),h=(new _.BEb).init(),y=_.zXe(),m=_.U(v,_.Ish).languageCode;m===void 0?_.oO(Error("Gi"),"ERROR"):_.sB([h,M]).then(function(){var W={ctk:payments.business.integration.ClientTokenFactory.createClientToken(m,y)};t&&_.XW(t,v)?_.AE(t,v,W).then(function(I){return{data:I}}).then(function(I){_.YE(H,"yt-service-request-completed",I);
I.code!=="ERROR"&&(I=I.data.command)&&_.Oj(f,[I],H)}):_.oO(Error("Kl"),"ERROR")})};
W3A=function(f,H,v,t){var M=_.cn.instance;M&&_.XW(M,v)?_.AE(M,v,t).then(function(h){return{data:h}}).then(function(h){mYx(f,H,v,h)},function(){$YG(v)}):(M=_.t8().resolve(_.vh(_.a9)))&&M.requestDataForServiceEndpoint(v,t).then(function(h){mYx(f,H,v,h)},function(){$YG(v)})};
mYx=function(f,H,v,t){_.YE(H,"yt-service-request-completed",t);if(t.code&&t.code=="ERROR")$YG(v);else{(t=t.data.commands)&&_.Oj(f,t,H);var M;(f=(M=_.U(v,_.J$v))==null?void 0:M.serializedYpcPauseFlowLoggingParams)&&f&&_.Ca("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",f)}};
$YG=function(f){var H;(f=(H=_.U(f,_.J$v))==null?void 0:H.serializedYpcPauseFlowLoggingParams)&&f&&_.Ca("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",f,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
IEw=function(f,H,v){var t=_.cn.instance;t&&_.XW(t,v)?_.AE(t,v).then(function(M){return{data:M}}).then(function(M){OVt(f,H,v,M)},function(){gK0(v)}):(t=_.t8().resolve(_.vh(_.a9)))&&t.requestDataForServiceEndpoint(v).then(function(M){OVt(f,H,v,M)},function(){gK0(v)})};
OVt=function(f,H,v,t){_.YE(H,"yt-service-request-completed",t);t.code&&t.code=="ERROR"?gK0(v):((t=t.data.commands)&&_.Oj(f,t,H),(f=_.U(v,_.lsr).serializedYpcResumeFlowLoggingParams)&&f&&_.Ca("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",f))};
gK0=function(f){(f=_.U(f,_.lsr).serializedYpcResumeFlowLoggingParams)&&f&&_.Ca("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",f,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
SR0=function(f){f=f===void 0?{}:f;_.t8().resolve(_.MLH).showFeedbackDialog(f.customProductData,f.feedbackContent,f.onFeedbackSubmitted,f.bucket)};
dYw=function(f){f=f===void 0?{}:f;_.t8().resolve(_.MLH).showHelpDialog(f.helpContext,f.articleId,f.productData)};
jmb=function(){dYw()};
smt=function(){SR0()};
JEh=function(f,H,v){var t,M,h,y,m,W,I;return _.Y(function(S){switch(S.nextAddress){case 1:t=_.U(f,ZVW);if((M=t)==null?0:M.productId){W={productId:t.productId,bucket:t.bucket,enableAnonymousFeedback:(m=t.enableAnonymousFeedback)!=null?m:!0,allowNonLoggedInFeedback:!0};I={feedbackChoice:v.feedbackChoice};if(!_.J("web_collect_offline_state")){S.jumpTo(8);break}_.Zc(S,9);return S.yield(iQ5(I),11)}y={bucket:(h=t)==null?void 0:h.bucket};if(!_.J("web_collect_offline_state")){S.jumpTo(4);break}y.customProductData=
{};_.Zc(S,5);return S.yield(iQ5(y.customProductData),7);case 7:_.ch(S,4);break;case 5:_.xu(S);case 4:SR0(y);S.jumpTo(0);break;case 11:_.ch(S,8);break;case 9:_.xu(S);case 8:_.Iib(I),_.gqR("GFEEDBACK",I),t.productId==="5295751"&&(I.client_attestation=Number(_.a8("CATSTAT",0))),t.productId==="5295751"&&(I.client_time=Date.now()/1E3/3600),t.productId==="5295751"&&(I.original_playback_id=_.RhZ||""),_.S$a(W,I),_.Bj(S)}})};
lEh=function(f){if(f=_.U(f,_.KYH)){var H={bucket:f.bucketIdentifier};f.additionalDatas&&(H.customProductData={},f.additionalDatas.forEach(function(v){if(v=v.userFeedbackEndpointProductSpecificValueData)H.customProductData[v.key]=v.value}));
SR0(H)}};
UYb=function(f){var H=_.A7.getInstance();var v=_.ZC("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var t=_.ZC("DELETE",void 0,"Delete"),M=_.ZC("CANCEL",void 0,"Cancel");v=hax(v,void 0,t,M,{signal:"DELETE_ALL_DOWNLOADS"});_.r_(H,[{openPopupAction:v}],f)};
L3t=function(){return _.Y(function(f){return f.nextAddress==1?f.yield(_.t8().resolve(_.$e),2):f.yield(e0F(),0)})};
xYh=function(f){var H,v;return _.Y(function(t){return t.nextAddress==1?(v=(H=_.U(f,_.N$))==null?void 0:H.targetId)?t.yield(_.t8().resolve(_.$e),3):t.jumpTo(0):t.yield(_.t8().resolve(_.mG).deleteVideo(v),0)})};
z0x=function(f){var H,v;return _.Y(function(t){return t.nextAddress==1?(v=(H=_.U(f,_.N$))==null?void 0:H.targetId)?t.yield(_.t8().resolve(_.$e),3):t.jumpTo(0):t.yield(B6b(_.t8().resolve(_.mG),v),0)})};
rEW=function(f){var H,v;return _.Y(function(t){return(v=(H=_.U(f,_.N$))==null?void 0:H.targetId)?t.yield(F3h(v),0):t.jumpTo(0)})};
DYi=function(){_.J("kevlar_woffle_refresh_dl_load_killswitch")||K3p()};
nKx=function(){_.J("kevlar_woffle")&&_.pG.instance&&oKx()};
Qmw=function(f){var H;if((H=_.U(f,_.Sf))==null||!H.videoId)return!1;pnt(_.t8().resolve(_.mG),_.U(f,_.Sf),f.clickTrackingParams);return!0};
aEx=function(f){var H;if((H=_.U(f,_.d3))==null||!H.playlistId)return!1;uWi(_.t8().resolve(_.mG),_.U(f,_.d3),f.clickTrackingParams);return!0};
GIF=function(f){var H=_.U(f,_.V0v);(H==null?void 0:H.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(H==null?void 0:H.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||PE0(_.t8().resolve(_.mG),_.U(f,_.V0v))};
EKF=function(f){f=_.U(f,_.uyT);var H;(f==null?0:(H=f.actions)==null?0:H.length)&&CEw(f)};
XnF=function(f){var H,v;return _.Y(function(t){H=_.U(f,N6x);return(v=H)!=null&&v.localWatchHistoryCommandType?t.yield(cEi(H),0):t.return()})};
AEx=function(f){setTimeout(function(){requestAnimationFrame(f)},80)};
bVx=function(f){return Object.entries(f).map(function(H){return H.join(":")}).join(";")};
kI0=function(f){var H,v,t;_.Y(function(M){if(M.nextAddress==1)return M.yield(iV5(),2);H=M.yieldResult;v=_.jW.instance;switch(H){case "granted":t=f.getLocationCommand;break;case "denied":t=f.openDeniedDialogAction;break;case "prompt":t=f.openCollectionDialogAction;break;default:t=f.openCollectionDialogAction}t&&v.resolveCommand(t);_.Bj(M)})};
iV5=function(){var f,H;return _.Y(function(v){if(v.nextAddress==1)return f="prompt",navigator.permissions?v.yield(navigator.permissions.query({name:"geolocation"}),3):v.jumpTo(2);v.nextAddress!=2&&(H=v.yieldResult,f=H.state);return v.return(f)})};
wn5=function(){_.Y(function(f){return f.yield(_.T6r(),0)})};
qRi=function(){var f,H,v;return _.Y(function(t){if(t.nextAddress==1)return f=_.t8().resolve(_.PS),f?t.yield(_.AE(f,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.pb(Error("Nl")),t.return(void 0));if(H=t.yieldResult){if(H.errorMetadata)return _.pb(Error("Ol`"+H.errorMetadata.status+"`"+H.error)),t.return(void 0);v=H.datasyncIds;_.VE5=v.length;return t.return(v)}_.pb(Error("Pl"));return t.return(void 0)})};
fO5=function(){qRi().then(function(f){f&&(lFG(f),C0t(f),gEx(f),wVA(f))})};
HTA=function(f){_.nN.addLowPriorityJob(function(){var H,v,t,M,h;return _.Y(function(y){switch(y.nextAddress){case 1:if(_.J("ytidb_clear_optimizations_killswitch")){y.jumpTo(2);break}H=_.ld("clear");if(H.startsWith("V")&&H.endsWith("||")){var m=[H];lFG(m);C0t(m);gEx(m);wVA(m);return y.return()}v=ICb();t=qjb();return y.yield(EEA(),3);case 3:return M=y.yieldResult,y.yield(UC0(),4);case 4:if(h=y.yieldResult,!(v||t||M||h))return y.return();case 2:f.isNetworkAvailable()?fO5():f.listenOnce("publicytnetworkstatus-online",
fO5),_.Bj(y)}})})};
jT=function(f){f={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.qO(f)}}}};_.jW.instance&&_.jW.instance.resolveCommand(f)};
v$b=function(f){if(f){var H=_.UV();_.y8(H,3854,void 0,{layer:0,parentLayer:4});switch(f){case 1:var v=238708;break;case 2:v=238715;break;case 3:v=238710;break;case 6:v=238709}v&&(f=_.lV(H,{veType:v}))&&_.$P(H,f)}};
tfx=function(f){if(f){var H=_.UV();_.y8(H,3854,void 0,{layer:0,parentLayer:4});switch(f){case 1:var v=238714;break;case 2:v=238711;break;case 8:v=238709;break;case 7:v=238713;break;case 3:case 4:case 5:v=238712}v&&(f=_.lV(H,{veType:v}))&&_.$P(H,f)}};
Mfx=function(f){switch(f.latencyType){case 0:_.QZ("consent_primitive_flow");_.u0("cpit",f.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.u0("cpist",f.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.u0("cprtif",f.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.u0("cprtli",f.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.u0("cprt",f.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.u0("cpdt",f.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.u0("cpjct",f.timestampEpochMillis,"consent_primitive_flow")}};
g$W=function(f,H){var v,t,M,h,y,m,W,I,S,d,Z,l,L,r,n,Q,C,w,c,A;return _.Y(function(X){switch(X.nextAddress){case 1:_.Zc(X,2);(t=(v=_.U(f,hIt))==null?void 0:v.serializedConsentRequest)||(t=(M=_.U(f,RIw))==null?void 0:M.serializedConsentRequest);t&&(h=VfW(_.yM(t)));if(h===void 0)return X.return();y=yjG(h);y.latencyCallback=Mfx;H&&Y7x(y,function(){H.then(function(fg){fg.pauseVideo();(new mlx).increment()})});
return((m=_.U(f,hIt))==null?void 0:m.consentAction)==="CONSENT_ACTION_PREWARM"||((W=_.U(f,RIw))==null?void 0:W.consentAction)==="CONSENT_ACTION_PREWARM"?X.yield($lG(y),5):X.yield(WVi(y),6);case 6:I=X.yieldResult;S=_.js(I,sN);if(S===1){if(((d=_.Fg(I,Zo,1,sN))==null?void 0:_.x_(d,1))===1||((Z=_.Fg(I,Zo,1,sN))==null?void 0:_.x_(Z,1))===2||((l=_.Fg(I,Zo,1,sN))==null?void 0:_.x_(l,1))===3)_.U(f,RIw)?jT(_.ZC("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
jT(_.ZC("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));v$b((L=_.Fg(I,Zo,1,sN))==null?void 0:_.x_(L,1),_.VX(I,OTh,3,_.yX()))}else S===2?(((r=JO(I))==null?void 0:_.x_(r,1))===5?_.U(f,RIw)?jT(_.ZC("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):jT(_.ZC("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((n=JO(I))==null?void 0:_.x_(n,1))===1||((Q=JO(I))==null?void 0:_.x_(Q,1))===4?jT(_.ZC("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((C=JO(I))==null?void 0:_.x_(C,1))===7&&((w=h)==null?void 0:(c=_.V$(w,lc,4))==null?void 0:_.x_(c,4))!==1&&jT(_.ZC("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),tfx((A=JO(I))==null?void 0:_.x_(A,1))):jT(_.ZC("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));X.jumpTo(5);break;case 5:_.ch(X,0);break;case 2:_.xu(X),jT(_.ZC("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.Bj(X)}})};
S7G=function(){if(!IOx.has("Worker")){IOx.set("Worker",!0);var f={api:"BROWSER_API_WEB_WORKER"};f.available="Worker"in window?!0:!1;_.Kb("apiTest",f)}};
dlA=function(f){return typeof f==="undefined"?"-1":String(Math.ceil(f/1048576))};
Jj5=function(f,H){jsA(new ssF(_.U(H,ZTp).addToken,_.U(H,ZTp).commonToken)).then(function(){_.YE(f,"yt-invoke-instrument-manager-action-completed")},function(v){_.YE(f,"yt-invoke-instrument-manager-action-error",v)})};
lOw=function(){var f,H;return(H=(f=window).matchMedia)==null?void 0:H.call(f,"(prefers-reduced-motion: reduce)").matches};
UlF=function(f){var H=_.t8().resolve(_.vh(_.jX));if(H&&H.isAnyTransitionEnabled){var v={};H.viewTransitionCoordinator.registerElement(f,(v.slide="miniplayer-page-transition",v["lockup-to-watch"]="miniplayer-page-transition",v["learning-journey"]="miniplayer-page-transition",v))}};
eI0=function(f,H,v){return{horizontalAlignment:f.x+v.width/2<H.width/2?"west":"east",verticalAlignment:f.y+v.height/2<H.height/2?"north":"south"}};
xlw=function(f,H,v,t,M){M=M===void 0?new _.al(0,0):M;f=LVb(f,H,v,t);return new _.al(f.x+M.x,f.y+M.y)};
LVb=function(f,H,v,t){return new _.al(f==="west"?16:v.width-t.width-16,H==="north"?16:v.height-t.height-16)};
B3t=function(f,H){var v=0;f&&(v+=76);H&&(v+=285);return v};
zIx=function(f){return _.n8(f)};
FVp=function(f){var H=1;f=f.split(":");for(var v=[];H>0&&f.length;)v.push(f.shift()),H--;f.length&&v.push(f.join(":"));return v};
rjG=function(f){var H=new _.Mc;return _.rP(H,11,f)};
KVG=function(f){var H={};f=f.getAllResponseHeaders().split("\r\n");for(var v=0;v<f.length;v++)if(!_.ms(f[v])){var t=FVp(f[v]),M=t[0];t=t[1];if(typeof t==="string"){t=t.trim();var h=H[M]||[];H[M]=h;h.push(t)}}return _.QA.map(H,function(y){return y.join(", ")})};
KJ=function(f,H){return f.JSC$9787_xhr_?f.JSC$9787_xhr_.getResponseHeader(H):null};
Dlp=function(f,H){if(f.isDisposed())throw Error("Ea");f.kl.tE("n");var v=_.BU(f.kl,function(){return f.oDJ([H.yQ,H.jUt,H.eHW,H.kse])},"n");
f.kl.vtb(v.length);f.kl.lO();return v};
UN=function(f,H,v){Array.isArray(v)||(v=[String(v)]);_.GLr(f.JSC$10022_queryData_,H,v);return f};
oKx=function(){var f=_.pG.instance;_.Y(function(H){return f.deferredInstallPrompt?H.yield(f.deferredInstallPrompt.prompt(),0):H.jumpTo(0)})};
o$p=function(f,H,v){if(_.Tb(f))_.X3(f,H,v);else for(f=_.fxa(f);;){var t=f.next();if(t.done)break;H.call(v,t.value,void 0,f)}};
n$w={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}"]};
n$w={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 pxx=function(f,H){var v=[];o$p(H,function(t){try{var M=_.$1.prototype.getWrapper.call(this,t,!0)}catch(h){if(h=="Storage: Invalid value was encountered")return;throw h;}M===void 0?v.push(t):_.qPT(M)&&v.push(t)},f);
return v},QsW=function(f,H){pxx(f,H).forEach(function(v){_.$1.prototype.remove.call(this,v)},f)},usW=function(f){var H=_.aq;
H._minimumZ=Math.max(H._minimumZ,f)},aOr=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],PFb=function(f,H){_.Mj(f.vm);f.vm=H},GVx=function(f,H,v,t){f.setState(5);
var M=!!f.hsx&&aOr.includes(_.wu(f.hsx)||"");try{var h=new _.zU({program:H,globalName:v,uA0:{disable:!_.J("att_web_record_metrics")||!_.J("att_skip_metrics_for_cookieless_domains_ks")&&M,ia:"aGIf"}});h.vHj.then(function(){f.setState(6);t&&t(H)});
PFb(f,h)}catch(y){f.setState(7),y instanceof Error&&_.pb(y)}},CFA=function(f,H,v,t,M,h){var y=y===void 0?"trayride":y;
v?(f.setState(2),_.c7(_.K9(v),function(){if(window[y])GVx(f,t,y,M);else{f.setState(3);var m=_.hu5(v),W=document.getElementById(m);W&&(_.qVR(m),W.parentNode.removeChild(W));_.pb(new _.e$("BL:ULB",v))}},h)):H?(h=_.lS("SCRIPT"),H instanceof _.fS?_.vj(h,H):h.textContent=H,h.nonce=_.qA(document),document.head.appendChild(h),document.head.removeChild(h),window[y]?GVx(f,t,y,M):(f.setState(4),_.pb(new _.e$("BL:ULBJ")))):_.pb(new _.e$("BL:ULV"))},E$w=function(){this.state=1;
this.vm=null;this.hsx=void 0};
_.R=E$w.prototype;_.R.initialize=function(f,H,v,t){this.hsx=t;if(f.program){var M;t=(M=f.interpreterUrl)!=null?M:null;if(f.interpreterSafeScript)M=_.JJ_(f.interpreterSafeScript);else{var h;M=(h=f.interpreterScript)!=null?h:null}f.interpreterSafeUrl&&(t=_.pN(f.interpreterSafeUrl).toString());CFA(this,M,t,f.program,H,v)}else _.pb(Error("lf"))};
_.R.isInitialized=function(){return!!this.vm};
_.R.getState=function(){return this.state};
_.R.isLoading=function(){return this.state===2};
_.R.invoke=function(f){f=f===void 0?{}:f;var H;this.vm?H=Dlp(this.vm,{yQ:f}):H=null;return H};
_.R.dispose=function(){PFb(this,null);this.setState(8)};
_.R.setState=function(f){this.state=f};
var N3F=function(f,H){return f.vm.snapshot(H)},cjt=function(f,H){var v=_.VQ("botguard_async_snapshot_timeout_ms",3E3);
H=H===void 0?{}:H;v=v===void 0?3E3:v;return f.vm?new Promise(function(t,M){var h=!1,y=_.nN.addJob(function(){h=!0;M(Error("mf"))},1,v);
f.vm?N3F(f,{yQ:H}).then(function(m){_.nN.cancelJob(y);h||t(m)}).catch(function(m){_.nN.cancelJob(y);
h||M(m)}):(_.nN.cancelJob(y),t(null))}):Promise.resolve(null)},Xx0=["att/log"],o6x;
o6x={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var Ajw={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},bTx=function(f,H){return _.UF(f,{mode:"readwrite",enableRetries:!0},function(v){return _.pd5(v,H,"settingEntity")})},iTt=function(f,H,v){return _.UF(f,{mode:"readonly",
enableRetries:!0},function(t){return _.Nqn(t,H,v)})},kVb=function(f){if(!f.storage)return!1;
a:{if(f.storage){try{var H=f.storage.get("TLPQtimestamp")}catch(v){}f=Number(H);if(!isNaN(f))break a}f=void 0}return f?Date.now()-f<864E5:!1},T3b=function(f){if(f.storage){try{var H=f.storage.get("TLPQindex")}catch(v){}f=Number(H);
if(!isNaN(f))return f}},wxA=function(f,H){f.queueProxy&&H.forEach(function(v){if(v.videoId&&v.trackingParams&&f.queueProxy instanceof _.nO){var t=_.uy();
f.queueProxy.attributionData.set(v.videoId,{enqueueingVe:_.zK(v.trackingParams).getAsJson(),enqueueingCsn:t?t:void 0,clientEnqueueingTimeMs:Math.floor((0,_.ta)()).toString()})}})},q7h=function(f){var H=_.ehT(f);
H!=f.currentSnapState_&&(f.currentSnapState_=H,f.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},eT=function(f){this.JSC$13142_networkManager_=f;
this.partCallbacks_=[]};
eT.prototype.getCacheKeyForEndpoint=function(f){return _.ZXe(f,!1)};
eT.prototype.onPartsCallback_=function(f){this.partCallbacks_.forEach(function(H){f&&H(f)})};
var Lx=function(f,H,v){eT.call(this,f);this.player_=H;this.autoplayData_=v};
_.e(Lx,eT);Lx.prototype.getCacheKeyForEndpoint=function(f){return _.ZXe(f,!!this.autoplayData_)};
Lx.prototype.getTempData=function(f,H){H=H.timeBeforeNextVideo;f={itct:f.clickTrackingParams,lact:_.h7(),pbis:H,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(f.autonav=1);return f};
Lx.prototype.getXhrParams=function(f){return Object.assign({pbj:"prefetch"},f)};
Lx.prototype.getParams=function(f){f={frags:f.fragmentsRequested.join(",")};_.J("kevlar_droppable_prefetchable_requests")&&(f.prefetch=1);return f};
var f45=function(f){f.playerEvents_.forEach(function(H){f.player.removeEventListener(H.eventName,H.callback)});
f.playerEvents_.length=0},xH=function(f,H,v){this.player=f;
this.JSC$13152_taskManager=H;this.prefetchDelay=v;this.completionResolver_=null;this.playerEvents_=[]};
xH.prototype.start=function(){var f=this;this.completionResolver_=_.bE();_.Ze(this.completionResolver_.promise,function(){f45(f);f.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var HpW=function(f,H,v){f.player.addEventListener(H,v);f.playerEvents_.push({eventName:H,callback:v})},vdh={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},tOA={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},MOx=function(f,H,v){xH.call(this,f,H,v);this.cueId_="playbackTrigger-"+Math.random()};
_.e(MOx,xH);
MOx.prototype.prepareTrigger=function(f){var H=this,v=this.player.getDuration(),t=this.player.getVideoData(),M=t.isLive&&t.hasProgressBarBoundaries;if(M&&t.progressBarEndPositionUtcTimeMillis){var h=t.progressBarEndPositionUtcTimeMillis/1E3;isNaN(h)||(v=h)}var y=0;this.prefetchDelay>=0?M?t.progressBarStartPositionUtcTimeMillis&&(t=t.progressBarStartPositionUtcTimeMillis/1E3,isNaN(t)||(y=t+this.prefetchDelay)):y=this.prefetchDelay:y=v+this.prefetchDelay;M?this.player.addUtcCueRange(this.cueId_,y,v):
this.player.addCueRange(this.cueId_,y,v);_.Ze(f.promise,function(){H.player.removeCueRange(H.cueId_)});
HpW(this,"onCueRangeEnter",function(m){m==H.cueId_&&f.resolve(v-y)})};
var h75=function(f,H){f.fragmentConfiguration_[H].requiredKeys.every(function(v){return!!f.prefetchedData_[v]})&&(f.validatedFragments_.push(H),H=f.missingFragments_.indexOf(H),H!==-1&&f.missingFragments_.splice(H,1))},R7p=function(f){f.prefetchedFragments_.forEach(function(H){h75(f,H)})},VOi=function(f,H,v){this.pageFragments_=f;
this.prefetchedFragments_=H;this.fragmentConfiguration_=tOA;this.prefetchedData_=v;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;R7p(this)},yYr=function(){},Ywx=function(f){this.JSC$13166_playlistManager_=f};
_.e(Ywx,yYr);Ywx.prototype.getPrefetchEndpoint=function(){return this.JSC$13166_playlistManager_.getAutoplayEndpoint()};
var mir=function(f){this.autonavEndpoints_=f};
_.e(mir,yYr);mir.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var $it=function(f,H,v,t,M){this.autonavEndpoints=f;this.foregroundTrigger=H;this.backgroundTrigger=v;this.pageType=t;this.isInPlaylist=M},W2x=function(f,H){if(f.webPrefetchData&&f.webPrefetchData.navigationEndpoints&&f.webPrefetchData.navigationEndpoints.length){f=f.webPrefetchData.navigationEndpoints;
var v=_.U(f[0],_.wI);if(v.watchEndpointSupportedPrefetchConfig&&v.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var t=v.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;v=t.playbackRelativeSecondsPrefetchCondition;v=typeof v==="number"&&Math.abs(v)<H.videoDuration?v:void 0;t=t.countdownUiRelativeSecondsPrefetchCondition;t=typeof t!=="number"||_.J("prefetch_job_config_cleanup_ks")&&H.inPlaylist?void 0:t;if(typeof t==="number")return new $it(f,H.makeUpNextTrigger(t),H.makePlaybackTrigger(t),
"watch",H.inPlaylist);if(typeof v==="number")return new $it(f,H.makePlaybackTrigger(v),null,"watch",H.inPlaylist)}}},Opx=function(f){return f.prefetchJobConfig_.backgroundTrigger?_.Cc(_.v3N)()==0?f.prefetchJobConfig_.backgroundTrigger:f.prefetchJobConfig_.foregroundTrigger:f.prefetchJobConfig_.foregroundTrigger},gd0=function(f){_.IS(document,"visibilitychange",f.onVisibilityChange_,!1,f)},B9=function(f){eT.call(this,f)};
_.e(B9,eT);B9.prototype.getCacheKeyForEndpoint=function(f){return eT.prototype.getCacheKeyForEndpoint.call(this,f)};
B9.prototype.getTempData=function(){return{}};
B9.prototype.getXhrParams=function(f){return f};
B9.prototype.getParams=function(){return{}};
var I4W=function(f,H,v){var t=f.prefetchDelay*1E3;if(Math.abs(t)>H)v.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var M=t,h=H-t;t<0&&(M=H+t,h=Math.abs(t));var y=f.JSC$13152_taskManager.addJob(function(){v.resolve(h/1E3)},10,M);
v.promise.thenCatch(function(){f.JSC$13152_taskManager.cancelJob(y)})}},Swb=function(f,H,v){xH.call(this,f,H,v)};
_.e(Swb,xH);Swb.prototype.prepareTrigger=function(f){var H=this;HpW(this,"onAutonavCoundownStarted",function(v){I4W(H,v,f)})};
var dip=function(f){f.pendingPrefetchJob_&&(f.pendingPrefetchJob_.cancel(),f.pendingPrefetchJob_=null)},jcW=function(f,H,v){if(!f.triggeredTargets.has(H)){var t=_.jka(f,H);
t.action=v;_.SWa(f,H,t)}},scG=function(f){_.MJT();
_.I6R("cpt")&&_.pb(Error("lh"));_.Mr.requestAnimationFrame(function(){_.Mr.setTimeout(function(){_.u0("cpt");var H=_.Gi("vpl"),v=_.Gi("cpt");H&&v&&_.u0("ol",Math.max(H,v))})});
try{_.u0("fr_s"),f()}catch(H){_.oO(H)}_.Mr.requestAnimationFrame(function(){_.u0("bcp")})},Zp0=function(f,H){f.serviceEndpointHandlers.push(H)},JYh=function(f,H){H=f.pendingPages_.indexOf(H);
H>-1&&f.pendingPages_.splice(H,1)},l4G=function(f,H){var v=_.zJH.indexOf(H);
v>-1&&_.zJH.splice(v,1);f.targetPage_==H?(f.abort(),_.rFr(f)):JYh(f,H)},Uix=function(f,H,v,t){H={challenge:H};
v&&(H.webResponse=v);return _.Q8(f.innertubeTransportService,H,_.tt(Xx0),t)},e7h=function(f,H,v){if(!H.challenge)throw Error("oi");
if(H.botguardData&&H.botguardData.program){var t=new E$w;t.initialize(H.botguardData,function(){cjt(t,{atr_challenge:H.challenge}).then(function(M){if(!M)throw Error("pi");return Uix(f,H.challenge,M,v)}).catch(function(M){_.pb(M);
return Uix(f,H.challenge,void 0,v)})},void 0)}else Uix(f,H.challenge,void 0,v)},L2w=function(f,H,v){var t={};
H.ids&&(t.ids=[].concat(_.pS(H.ids)));H.engagementType&&(t.engagementType=H.engagementType);return _.Q8(f.innertubeTransportService,t,_.tt(_.V5a),v).then(function(M){if(!M)throw new _.e$("GetAttestationChallenge returned falsy");e7h(f,M,v)}).thenCatch(function(M){_.oO(M)})},xiw=function(f,H,v){return new _.IO(function(t,M){var h;
return _.Y(function(y){if(y.nextAddress==1){var m=y.yield,W=H.engagementType,I=H.ids,S={};I=_.V(I!=null?I:[]);for(var d=I.next();!d.done;d=I.next())d=d.value,d.encryptedVideoId?S.encryptedVideoId=d.encryptedVideoId:d.externalChannelId?S.externalChannelId=d.externalChannelId:d.commentId?S.commentId=d.commentId:d.externalOwnerId?S.externalOwnerId=d.externalOwnerId:d.artistId?S.artistId=d.artistId:d.playlistId?S.playlistId=d.playlistId:d.externalPostId?S.externalPostId=d.externalPostId:d.shareId&&(S.shareId=
d.shareId);return m.call(y,Mqw(W,S),2)}h=y.yieldResult;if(!h.challenge)return _.pb(Error("qi")),L2w(f,H,v).then(t,M),y.return();m=h;W={challenge:m.challenge};W.webResponse=m.webResponse;W.engagementType=H.engagementType;W.ids=H.ids;_.Q8(f.innertubeTransportService,W,_.tt(Xx0),v).then(t,M);_.Bj(y)})})},VWt=function(f,H){var v,t,M,h;
_.Y(function(y){if(y.nextAddress==1){v=_.U(H,_.Nmr);if(!(v&&v.listId&&f.response&&f.response.playingVideoId)||f.listId!==v.listId)return y.return();f.index===void 0&&(f.index=0);return y.yield(_.x3H(f.JSC$12894_playlistNetworkManager,v.listId,f.index,f.response.playingVideoId),2)}t=y.yieldResult;if(!t)return y.return();M=t.playlistId;h=t.playlistPanelRenderer;f.setPlaylistData(M,h,t.autoplayRenderer);_.Bj(y)})},ByW=function(f,H,v){var t=f.getParams(v),M=_.rjR(H,t),h=f.getTempData(H,v);
h.endpoint=JSON.stringify(H);_.J("enable_unknown_lact_fix_on_html5")&&(_.t8().resolve(_.xK),h.lact=_.h7());var y={headers:{"X-YouTube-STS":_.a8("STS"),"x-youtube-csoc":1}};_.vV(M,h);return new _.IO(function(m,W){var I=f.getXhrParams(t),S;_.J("kevlar_cache_on_ttl_player")&&(S=_.lq.instance);S&&_.iko(S,H)?_.tQ9(S,H,h,window.location.href).then(function(d){d?m(d):W()},W):_.eNr(f.JSC$13142_networkManager_,H,I,f.onPartsCallback_.bind(f),y).then(function(d){d?m(d):W()},W)})},z7p=function(f,H){f.triggerPromise_=
H.start();
f.triggerPromise_.then(function(v){var t=f.prefetchEndpointProvider_.getPrefetchEndpoint();if(t){var M=vdh[f.prefetchJobConfig_.pageType].prefetchedFragments;f.prefetchRequestPromise_=ByW(f.JSC$13178_networkPrefetchRequest_,t,{fragmentsRequested:M,timeBeforeNextVideo:v});f.prefetchResponseCacheKey_=f.JSC$13178_networkPrefetchRequest_.getCacheKeyForEndpoint(t);gd0(f);f.prefetchRequestPromise_.then(function(h){f.storePrefetchedDataCallback_(f.prefetchResponseCacheKey_,h);if(_.J("web_prefetch_preload_video")&&
M.length===1&&M[0]==="pl"&&h&&!h.playerAds&&!h.adPlacements){var y=_.U(t,_.zD),m=y!=null,W={raw_player_response:h,watch_endpoint:y};(h=_.t8().resolve(m?_.yor:_.V4))&&t&&h.then(function(I){m&&_.J("web_queue_preload_video")?(W.prefer_gapless=!0,I.queueNextVideo(W)):I.preloadVideoByPlayerVars(W)})}})}})},zT=function(f,H,v,t){this.prefetchEndpointProvider_=f;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=H;this.prefetchJobConfig_=v;this.JSC$13178_networkPrefetchRequest_=t;this.prefetchResponseCacheKey_=null};
zT.prototype.enqueue=function(){this.triggerPromise_||(z7p(this,Opx(this)),_.r9(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
zT.prototype.resolve=function(){this.cancel()};
zT.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.");gd0(this)};
zT.prototype.onVisibilityChange_=function(){var f=this;_.Cc(_.v3N)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){f.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||z7p(this,Opx(this))};
var F2A=function(f,H,v,t,M){H&&(H==null?0:H.videoId)&&v&&v.entries&&_.J("kevlar_enable_shorts_prefetch_in_sequence")&&(dip(f),H=v.entries.map(function(h){var y;return(y=_.U(h.command,_.zD))==null?void 0:y.videoId}).indexOf(H.videoId),v=v.entries[H+1],v!=null&&v.command&&!_.U(v==null?void 0:v.command,_.Dk)&&(t=new $it([v.command],new MOx(t,_.nN,1),null,"shorts",!1),f.pendingPrefetchJob_=new zT(new mir(t.autonavEndpoints),function(){return!1},t,new B9(M)),f.pendingPrefetchJob_.enqueue()))},rYi=function(f,
H,v,t,M,h){var y=_.wC.getInstance();
if(!_.J("block_all_player_prefetch_requests")){dip(f);var m=!!v.getPlaylistId(),W=v.getVideoData().isLive&&v.getVideoData().hasProgressBarBoundaries;if((y.getState()==2||m||W)&&(!v.getVideoData().isLive||W)){y={inPlaylist:m,videoDuration:v.getDuration(),makeUpNextTrigger:function(S){return new Swb(v,_.nN,S)},
makePlaybackTrigger:function(S){return new MOx(v,_.nN,S)}};
var I=W2x(H,y);I&&(f.pendingPrefetchJob_=new zT(I.isInPlaylist?new Ywx(M):new mir(I.autonavEndpoints),function(S,d){d=new VOi(vdh[I.pageType].pageFragments,vdh[I.pageType].prefetchedFragments,d);return _.VQo(d)?(f.prefetchCache_.set(S,d),!0):!1},I,new Lx(t,v,h,M)),f.pendingPrefetchJob_.enqueue())}}},K2p=function(){var f=_.EI();
f.signals.parkOrScheduleJob(function(){var H=f.storage;if(H.storage)if(kVb(H)){var v=H.getPlaylistId();H=T3b(H);v=!!v&&H!==void 0}else H.clear(),v=!1;else v=!1;if(v){v=f.pageManager.isOnWatch();a:{var t=f.storage;if(t.storage&&kVb(t)&&(H=t.getPlaylistId(),t=T3b(t),H&&t!==void 0)){v={recoverPlaylistCommand:{listId:H,index:t,openMiniplayer:!v,openListPanel:v,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}v=void 0}v&&_.r_(f.JSC$12894_actionRouter,[v],null)}},0,"ma")},Dit=function(f,H,v,t,M,h){var y=
_.$$(7111);
_.YP(f.JSC$18288_screenManager,y,h?_.zK(h):void 0);_.$P(f.JSC$18288_screenManager,y,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:t,offlineId:H,offlineabilityFormatType:v,isDefaultFormatType:M==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:M}})},odA=function(f,H,v,t,M){var h,y,m,W,I;
return _.Y(function(S){if(S.nextAddress==1)return S.yield(f.JSC$18288_playerApiPromise,2);h=S.yieldResult;Dit(f,H,v,"OFFLINE_OBJECT_TYPE_PLAYLIST",t,M);if(m=_.Tqo[f.entityTypeMap.listEntityType])I={},y=(I[m]={maximumDownloadQuality:(W=v)!=null?W:void 0},I);return S.yield(h.queueOfflineAction(H,f.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",y),0)})},ndw=function(f,H){var v,t,M,h;
return _.Y(function(y){if(y.nextAddress==1)return y.yield(f.JSC$18288_persistentStorePromiseAccessor(),2);if(y.nextAddress!=3){v=y.yieldResult;if(!v)return _.pb(new _.e$("PES is undefined")),y.return();t=_.SB(H,"downloadStatusEntity");return y.yield(iTt(v,t,"downloadStatusEntity"),3)}M=y.yieldResult;return y.return((h=M)==null?void 0:h.downloadState)})},psi=function(f,H,v,t,M){var h,y,m,W,I,S;
return _.Y(function(d){switch(d.nextAddress){case 1:return d.yield(f.JSC$18288_playerApiPromise,2);case 2:h=d.yieldResult;Dit(f,H,v,"OFFLINE_OBJECT_TYPE_VIDEO",t,M);if(m=_.Tqo[f.entityTypeMap.singleEntityType])I={},y=(I[m]={maximumDownloadQuality:(W=v)!=null?W:void 0},I);return d.yield(ndw(f,H),3);case 3:S=d.yieldResult;if(S!=="DOWNLOAD_STATE_USER_DELETED"){d.jumpTo(4);break}return d.yield(f.deleteVideo(H),4);case 4:return d.yield(h.queueOfflineAction(H,f.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
y),0)}})},Qch=function(f,H,v,t,M){return _.Y(function(h){return h.nextAddress==1?h.yield(f.deleteVideo(H,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):h.yield(psi(f,H,v,t,M),0)})},uXh=function(f,H,v){var t,M;
return _.Y(function(h){if(h.nextAddress==1)return h.yield(f.JSC$18288_playerApiPromise,2);t=h.yieldResult;M=_.SB(H,"mainVideoDownloadStateEntity");return h.yield(t.updateDownloadState(M,v),0)})},F3h=function(f){var H=_.t8().resolve(_.mG);
return _.Y(function(v){if(v.nextAddress==1)return H.previousDownloadStateForVideo[f]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&H.previousDownloadStateForVideo[f]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?v.jumpTo(2):v.yield(H.resumeVideoDownload(f),2);if(v.nextAddress!=4)return v.yield(uXh(H,f,H.previousDownloadStateForVideo[f]),4);delete H.previousDownloadStateForVideo[f];_.Bj(v)})},B6b=function(f,H){var v;
return _.Y(function(t){if(t.nextAddress==1)return t.yield(f.JSC$18288_playerApiPromise,2);v=t.yieldResult;return t.yield(v.queueOfflineAction(H,f.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},e0F=function(){var f=_.t8().resolve(_.mG),H,v;
return _.Y(function(t){if(t.nextAddress==1)return t.yield(f.JSC$18288_playerApiPromise,2);if(t.nextAddress!=3)return H=t.yieldResult,v={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},t.yield(H.queueOfflineAction("!*$_ALL_ENTITIES_!*$",f.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",v),3);var M=f.JSC$18288_commandHandler,h=M.resolveCommand,y=_.ZC("DELETING_ALL",void 0,"Downloads are being deleted");h.call(M,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.hd(y)}},
popupType:"TOAST"}});_.Bj(t)})},a4G=function(f,H){var v,t,M,h,y,m;
return _.Y(function(W){if(W.nextAddress==1)return W.yield(f.JSC$18288_persistentStorePromiseAccessor(),2);if(W.nextAddress!=3)return v=W.yieldResult,v?W.yield(iTt(v,_.Dq,"downloadsPageViewConfigurationEntity"),3):(_.pb(new _.e$("PES is undefined")),W.return());M=(t=W.yieldResult)!=null?t:{};m=(y=(h=M)==null?void 0:h.downloadsUpsellBannerVisibility)!=null?y:{};return m.visibleWithConnection?W.yield(H.refreshAllStaleEntities(0),0):W.jumpTo(0)})},Pwt=function(f){var H,v;
return _.Y(function(t){if(t.nextAddress==1)return t.yield(f.JSC$18288_prefStorage,2);H=t.yieldResult;return t.return((v=H)==null?void 0:v.get("sdois"))})},G7p=function(f){var H,v,t,M,h,y;
return _.Y(function(m){if(m.nextAddress==1)return m.yield(f.JSC$18288_persistentStorePromiseAccessor(),2);if(m.nextAddress!=3){H=m.yieldResult;if(!H)return _.pb(new _.e$("PES is undefined")),m.return();v=_.SB("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return m.yield(iTt(H,v,"settingEntity"),3)}t=m.yieldResult;return m.return((y=(M=t)==null?void 0:(h=M.settingOptionValue)==null?void 0:h.boolValue)!=null?y:!1)})},Cwp=function(f,H){var v,t,M,h;
return _.Y(function(y){switch(y.nextAddress){case 1:return((v=H)==null?void 0:v.formatType)===void 0?y.return():y.yield(f.JSC$18288_prefStorage,2);case 2:t=y.yieldResult;if(t===void 0)return y.return();if(((M=H)==null?void 0:M.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return y.yield(t.set("lmqf",H.formatType),8);if(((h=H)==null?void 0:h.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){y.jumpTo(0);break}return y.yield(t.set("lmqf",H.formatType),6);case 6:return y.yield(t.set("lmqflst",
Math.floor((0,_.ta)())),0);case 8:return y.yield(t.remove("lmqflst"),0)}})},EdW=function(f){var H,v;
return _.Y(function(t){switch(t.nextAddress){case 1:return t.yield(f.JSC$18288_prefStorage,2);case 2:H=t.yieldResult;if(!H){t.jumpTo(3);break}return t.yield(H.get("lmqflst"),4);case 4:if(v=t.yieldResult,v!==void 0)return t.return(v);case 3:return t.return(0)}})},Nyr=function(f){var H,v;
return _.Y(function(t){switch(t.nextAddress){case 1:return t.yield(f.JSC$18288_prefStorage,2);case 2:H=t.yieldResult;if(H===void 0){t.jumpTo(3);break}return t.yield(H.get("lmqf"),4);case 4:if(v=t.yieldResult,v!==void 0)return t.return(v);case 3:return t.return("SD")}})},uWi=function(f,H,v){var t,M,h,y,m,W,I,S;
_.Y(function(d){switch(d.nextAddress){case 1:return d.yield(Cwp(f,(t=H)==null?void 0:t.actionParams),2);case 2:M=H.playlistId;if(!M)return d.return();if(H.action==="ACTION_ADD")return((y=H.actionParams)==null?0:y.formatType)?d.yield(odA(f,M,H.actionParams.formatType,(S=H.actionParams)==null?void 0:S.settingsAction,v),0):d.yield(f.offlineWebClientEligibility,14);if(H.action==="ACTION_REMOVE_WITH_PROMPT"){var Z=f.JSC$18288_commandHandler,l=Z.resolveCommand,L=_.a8("INNERTUBE_CLIENT_NAME");var r=L===
"WEB_REMIX"?_.ZC("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.ZC("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var n=L==="WEB_REMIX"?[_.ZC("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];L=L==="WEB_REMIX"?_.ZC("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.ZC("DELETE",void 0,"Delete");var Q=_.ZC("CANCEL",void 0,"Cancel");r=hax(r,n,L,Q,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:M});l.call(Z,{openPopupAction:r});return d.return()}if(H.action===
"ACTION_REMOVE")return d.yield(B6b(f,M),0);if(H.action!=="ACTION_SYNC"){d.jumpTo(0);break}return d.yield(f.JSC$18288_playerApiPromise,9);case 9:return h=d.yieldResult,d.yield(h.queueOfflineAction(M,f.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return m=d.yieldResult,d.yield(Nyr(f),15);case 15:return W=d.yieldResult,d.yield(EdW(f),16);case 16:I=d.yieldResult,H.onAddCommand&&f.JSC$18288_commandHandler.resolveCommand(H.onAddCommand,{form:{preferredFormatType:W,
offlineWebClientEligibility:m,lastOfflineQualitySettingsSavedMs:I.toString()}}),d.jumpTo(0)}})},pnt=function(f,H,v){var t,M,h,y,m,W,I,S,d,Z,l,L,r,n;
_.Y(function(Q){switch(Q.nextAddress){case 1:return Q.yield(Cwp(f,(t=H)==null?void 0:t.actionParams),2);case 2:M=H.videoId;if(!M)return Q.return();if(H.action==="ACTION_REMOVE_WITH_PROMPT"){var C=f.JSC$18288_commandHandler,w=C.resolveCommand,c=_.a8("INNERTUBE_CLIENT_NAME");var A=c==="WEB_REMIX"?_.ZC("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.ZC("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var X=c==="WEB_REMIX"?[_.ZC("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,"This track won't be available to listen offline.")]:
[];c=c==="WEB_REMIX"?_.ZC("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.ZC("DELETE",void 0,"Delete");var fg=_.ZC("CANCEL",void 0,"Cancel");A=hax(A,X,c,fg,{signal:"DELETE_DOWNLOAD",targetId:M});w.call(C,{openPopupAction:A});return Q.return()}if(H.action==="ACTION_ADD")return((Z=H.actionParams)==null?0:Z.formatType)?Q.yield(psi(f,M,H.actionParams.formatType,(n=H.actionParams)==null?void 0:n.settingsAction,v),0):Q.yield(f.offlineWebClientEligibility,23);if(H.action==="ACTION_RETRY")return Q.yield(Nyr(f),
19);if(H.action==="ACTION_PAUSE")return Q.yield(f.pauseVideoDownload(M),0);if(H.action==="ACTION_RESUME")return Q.yield(f.resumeVideoDownload(M),0);if(H.action!=="ACTION_REMOVE"){Q.jumpTo(0);break}return Q.yield(ndw(f,M),13);case 13:return h=Q.yieldResult,f.previousDownloadStateForVideo[M]=(y=h)!=null?y:"DOWNLOAD_STATE_UNKNOWN",Q.yield(uXh(f,M,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(f.previousDownloadStateForVideo[M]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&f.previousDownloadStateForVideo[M]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){Q.jumpTo(15);break}return Q.yield(f.pauseVideoDownload(M),15);case 15:C=_.ZC("DELETED_VIDEO",void 0,"Video deleted from downloads.");w=_.ZC("UNDO_ACTION",void 0,"Undo");A=_.ZC("CLOSE",void 0,"Close");m={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.hd(C),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.hd(w),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:M}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:C+" "+w}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:M}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:A}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};f.JSC$18288_commandHandler.resolveCommand(m);
Q.jumpTo(0);break;case 19:W=Q.yieldResult;W==="UNKNOWN_FORMAT_TYPE"&&(W="SD");I="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((S=H.actionParams)==null?0:S.formatType)W=H.actionParams.formatType,I=(d=H.actionParams)==null?void 0:d.settingsAction;return Q.yield(Qch(f,M,W,I,v),20);case 20:return Q.return();case 23:return l=Q.yieldResult,Q.yield(Nyr(f),24);case 24:return L=Q.yieldResult,Q.yield(EdW(f),25);case 25:r=Q.yieldResult,H.onAddCommand&&f.JSC$18288_commandHandler.resolveCommand(H.onAddCommand,
{form:{preferredFormatType:L,offlineWebClientEligibility:l,lastOfflineQualitySettingsSavedMs:r.toString()}}),Q.jumpTo(0)}})},cYx=function(f,H){var v,t,M,h,y,m,W;
return _.Y(function(I){if(I.nextAddress==1)return I.yield(f.JSC$18288_persistentStorePromiseAccessor(),2);v=I.yieldResult;if(!v)return _.pb(new _.e$("PES is undefined")),I.return();if((t=H)==null||!t.settingItemId)return I.return();M=H;h=M.settingItemId;y=M.boolValue;m=_.SB(h,"settingEntity");W={key:m,settingOptionValue:{boolValue:y}};return I.yield(bTx(v,W),0)})},Xsx=function(f,H){var v,t,M,h,y,m,W;
return _.Y(function(I){switch(I.nextAddress){case 1:return I.yield(f.JSC$18288_prefStorage,2);case 2:return v=I.yieldResult,t=_.Uj(),I.yield(f.JSC$18288_persistentStorePromiseAccessor(),3);case 3:return M=I.yieldResult,v?M?I.yield(v.get("sdois"),4):(_.pb(new _.e$("PES is undefined")),I.return()):(_.pb(new _.e$("prefStorage is undefined")),I.return());case 4:h=I.yieldResult;m=(y=H)==null?void 0:y.boolValue;m===void 0||_.J("kevlar_set_sd_enabled_flag_killswitch")||_.eG(0,197,!0);h===void 0&&m===void 0&&
(m=!1);if(m===void 0){I.jumpTo(0);break}return I.yield(v.set("sdois",m),6);case 6:return _.J("kevlar_set_sd_enabled_flag_killswitch")||(_.eG(0,196,m),t.save()),W={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:m},I.yield(cYx(f,W),0)}})},AYt=function(f,H,v){var t,M,h,y,m;
return _.Y(function(W){switch(W.nextAddress){case 1:return W.yield(Pwt(f),2);case 2:return t=W.yieldResult,W.yield(Xsx(f,v),3);case 3:return W.yield(Pwt(f),4);case 4:return M=W.yieldResult,h=M!==t,W.yield(G7p(f),5);case 5:y=W.yieldResult&&!_.J("kevlar_modern_downloads_page");if((m=!M&&!y)||h)return W.yield(H.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);W.jumpTo(0)}})},K3p=function(){var f=_.t8().resolve(_.mG),
H;
_.Y(function(v){switch(v.nextAddress){case 1:return v.yield(f.JSC$18288_playerApiPromise,2);case 2:H=v.yieldResult;if(!_.J("kevlar_force_refresh_smart_downloads")){v.jumpTo(3);break}return v.yield(H.refreshAllStaleEntities(0),4);case 4:return v.return();case 3:return v.yield(H.refreshAllStaleEntities(),5);case 5:return v.yield(AYt(f,H),6);case 6:if(_.J("enable_download_pep_for_premium_countries_web"))return v.yield(a4G(f,H),0);v.jumpTo(0)}})},PE0=function(f,H){var v,t;
_.Y(function(M){switch(M.nextAddress){case 1:return M.yield(f.JSC$18288_playerApiPromise,2);case 2:v=M.yieldResult;switch((t=H)==null?void 0:t.settingItemId){case "SMART_DOWNLOADS_ENABLED":return M.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return M.jumpTo(4)}M.jumpTo(0);break;case 3:return M.yield(AYt(f,v,H),6);case 6:M.jumpTo(0);break;case 4:return M.yield(cYx(f,H),7);case 7:M.jumpTo(0)}})},bpw=function(f,H){var v,t,M;
return _.Y(function(h){if(h.nextAddress==1)return h.yield(f.JSC$18288_persistentStorePromiseAccessor(),2);if(h.nextAddress!=3){v=h.yieldResult;if(!v)return _.pb(new _.e$("PES is undefined")),h.return(!1);if(!H)return h.return(!1);t=_.SB(H,"mainVideoEntity");return h.yield(iTt(v,t,"mainVideoEntity"),3)}M=h.yieldResult;return h.return(M!==void 0)})},CEw=function(f){var H=_.t8().resolve(_.mG),v,t,M,h,y,m,W,I,S,d,Z;
_.Y(function(l){switch(l.nextAddress){case 1:return l.yield(H.JSC$18288_playerApiPromise,2);case 2:v=l.yieldResult;M=(t=f)==null?void 0:t.actions;if(!M)return l.return();h=_.V(M);y=h.next();case 3:if(y.done){l.jumpTo(0);break}m=y.value;I=W=void 0;if(!(((W=m)==null?0:W.entityKey)&&((I=m)==null?0:I.actionType))){l.jumpTo(4);break}S=_.OF(m.entityKey);d=S.entityId;Z=S.entityType;return l.yield(v.queueOfflineAction(d,Z,m.actionType),4);case 4:y=h.next(),l.jumpTo(3)}})},ipi=function(f,H){var v,t,M,h,y;
return _.Y(function(m){if(m.nextAddress==1)return m.yield(f.JSC$18288_prefStorage,2);if(m.nextAddress!=3)return(v=m.yieldResult)?m.yield(v.get("psi"),3):m.return();t=m.yieldResult;y={isPaused:H,lastSyncTimestamp:(h=(M=t)==null?void 0:M.lastSyncTimestamp)!=null?h:"0"};return m.yield(v.set("psi",y),0)})},cEi=function(f){var H=_.t8().resolve(_.mG),v,t,M,h,y,m,W,I;
return _.Y(function(S){switch(S.nextAddress){case 1:return S.yield(H.JSC$18288_playerApiPromise,2);case 2:v=S.yieldResult;M=((t=f)==null?void 0:t.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((m=f)==null?void 0:m.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":h="!*$_ALL_ENTITIES_!*$";y="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return S.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return S.jumpTo(4)}S.jumpTo(5);break;case 3:return S.yield(ipi(H,M),6);case 6:S.jumpTo(5);break;case 4:return S.yield(bpw(H,(W=f)==null?void 0:W.videoId),7);case 7:S.yieldResult&&(h=(I=f)==null?void 0:I.videoId,y="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");S.jumpTo(5);break;case 5:if(h&&y)return S.yield(v.queueOfflineAction(h,"videoPlaybackPositionEntity",y),0);S.jumpTo(0)}})},k7i=function(f,H){var v;
H!==1||((v=f.currentPersistentToast)==null?0:v.isOpened())?f.openToast():f.currentPersistentToast=void 0},Tyx=function(f,H){var v;
return(v=f.transitionTasksMap.get(H))!=null?v:[]},wsW=function(f,H){var v=[];
f.elementTasksMap.forEach(function(t){(t=t.get(H))&&v.push(t)});
return v},qw0=function(f,H,v,t,M){M=M===void 0?{}:M;
var h=H.defaultViewTransitionOptions;return Object.assign({},h,M,{beforeTransition:function(){t.forEach(function(I){I.beforeTransition()});
var y;(y=h.beforeTransition)==null||y.call(h);var m,W;(W=(m=M).beforeTransition)==null||W.call(m);v.forEach(function(I){I.beforeTransition()})},
afterTransition:function(){t.forEach(function(I){I.afterTransition()});
var y;(y=h.afterTransition)==null||y.call(h);var m,W;(W=(m=M).afterTransition)==null||W.call(m);v.forEach(function(I){I.afterTransition()})},
ignoredErrors:f.config.ignoredErrors})},fbx=function(f,H,v){f.transitionTasksMap.has(H)?f.transitionTasksMap.get(H).push(v):(f=new _.e$("Transition task registered for unknown transition type",H),_.oO(f))},HA0=function(f,H,v){if(f.transitionTasksMap.has(H)){var t=f.transitionTasksMap.get(H).filter(function(M){return M!==v});
f.transitionTasksMap.set(H,t)}},vf0=function(f,H){var v=Tyx(f,H);
v=_.V(v);for(var t=v.next();!t.done;t=v.next())t=t.value,t.runOnce&&HA0(f,H,t);f.elementTasksMap.forEach(function(M,h){M.forEach(function(y,m){y.runOnce&&H===m&&(M.delete(m),M.size===0&&f.elementTasksMap.delete(h))})})},t4w=function(f,H,v){var t,M,h,y,m,W,I,S,d;
_.Y(function(Z){if(Z.nextAddress==1){if(f.config.disableAllTransitions)return Z.return(H());if((t=v)==null||!t.transitionType)return Z.return(_.b95(H,Object.assign({},(M=v)==null?void 0:M.viewTransitionOptions,{ignoredErrors:f.config.ignoredErrors})));h=v;y=h.transitionType;m=h.viewTransitionOptions;W=f.config.transitionConfigs.get(y);if(!W)return Z.return(H());I=Tyx(f,y);S=wsW(f,y);d=_.b95(H,qw0(f,W,I,S,m));return Z.yield(d,2)}vf0(f,y);_.Bj(Z)})},M4W=function(){var f,H,v,t;
return _.Y(function(M){if(M.nextAddress==1)return f=navigator,(H=f.storage)!=null&&H.persisted?M.yield((v=f.storage)==null?void 0:v.persisted(),2):M.return("PERSISTED_STATE_NOT_SUPPORTED");t=M.yieldResult;return M.return(t?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},hHW=function(){var f,H,v,t;
return _.Y(function(M){if(M.nextAddress==1)return f=navigator,(H=f.storage)!=null&&H.persist?M.yield((v=f.storage)==null?void 0:v.persist(),2):M.return("PERSISTED_STATE_NOT_SUPPORTED");t=M.yieldResult;return M.return(t?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},RHW=function(){var f,H;
return _.Y(function(v){switch(v.nextAddress){case 1:return f="PERSISTED_STATE_NOT_SUPPORTED",_.Zc(v,2),v.yield(M4W(),4);case 4:f=v.yieldResult;if(f!=="PERSISTED_STATE_NOT_GRANTED"){v.jumpTo(5);break}return v.yield(hHW(),6);case 6:f=v.yieldResult;case 5:_.ch(v,3);break;case 2:H=_.xu(v),H instanceof Error&&_.oO(H);case 3:return _.Kb("persistentStorageStateChecked",{persistedState:f}),v.return(f)}})},V4x=function(f,H){var v=[],t=!1;
H=_.V(H);for(var M=H.next();!M.done;M=H.next()){M=f.moduleRegistry[M.value];var h=void 0,y=void 0;((h=M)==null?0:h.isFetching)&&((y=M)==null?0:y.resolver)?(v.push(M.resolver.promise),t=!0):(M=new _.dZ,M.resolve(void 0),v.push(M.promise))}return t?Promise.all(v):void 0},yQr=function(f,H,v){if(f.isAnyTransitionEnabled){var t={beforeTransition:function(){v(!0);
H.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){H.style.viewTransitionName&&(H.style.viewTransitionName="",v(!1))}};
fbx(f.viewTransitionCoordinator,"slide",t);fbx(f.viewTransitionCoordinator,"lockup-to-watch",t);fbx(f.viewTransitionCoordinator,"watch-next-appears",t);fbx(f.viewTransitionCoordinator,"learning-journey",t)}},YHx=function(f,H){f.isBrowseTransitionEnabled?t4w(f.viewTransitionCoordinator,H,{transitionType:"slide"}):(H(),Promise.resolve())},mNi=function(f,H){f.isLockupToWatchTransitionEnabled?t4w(f.viewTransitionCoordinator,H,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){f.registeredLockupThumbnail=void 0;f.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(H(),Promise.resolve())},$NG=function(f,H){f.isLockupToWatchTransitionEnabled?t4w(f.viewTransitionCoordinator,H,{transitionType:"watch-next-appears"}):(H(),Promise.resolve())},WmW=function(f,H){f.isLearningJourneyTransitionEnabled?t4w(f.viewTransitionCoordinator,H,{transitionType:"learning-journey"}):(H(),Promise.resolve())},OAG=function(f,H,v){if(f.isInitialized()){var t=
sy(v),M=t==="watch";
t=t==="shorts";var h=sy(H)==="watch";if(M)h||(f.backgroundPageData=H),f.watchPipMode&&h||f.deactivate(v.endpoint);else if(t){if(sy(H)!=="shorts"){var y;(y=f.getPlayerElement())==null||y.pause()}}else h&&!f.watchPipMode&&(Vqw(H,v)?(f.watchWhileMode&&_.hdr(f,!1),_.qZ0(f,H)):f.isMiniplayerActive()&&f.watchWhileMode&&f.deactivate());h&&_.VzW(f);f.shortsPipMode&&!t&&(window.focus(),f.deactivate());if(f.pictureInPictureEnabled())if(t&&f.shortsPipEnabled||M&&f.watchPipEnabled)_.mo3(f.handleMediaSessionPipActivation);
else if(!f.isMiniplayerActive()&&(f.shortsPipEnabled||f.watchPipEnabled)&&window.documentPictureInPicture&&_.Kg()&&_.$rT("Chromium")>=120){f=_.YfN().mediaSession;try{f.setActionHandler("enterpictureinpicture",null)}catch(m){}}}},gfA=function(f,H){var v,t;
_.Y(function(M){if(M.nextAddress==1){if(!f||!f.navigationEndpoint)return M.return();_.S0().lockupActivation=!0;var h;H?h=_.qO(_.ZC("QUEUE",void 0,"Queue")):h=f.longBylineText;t=(v=h)&&f.title?{miniplayerTitle:f.title,miniplayerSubtitle:v,playlistData:null}:void 0;return M.yield(_.SfM(_.t8().resolve(_.o0),f.navigationEndpoint,!0,t),2)}_.S0().userActivation=!0;_.Bj(M)})},MWx=function(f,H){var v,t,M,h,y,m;
_.Y(function(W){if(W.nextAddress==1){v=_.U(H,_.ER_);if(!v||!v.listId)return W.return();f.index=v.index||f.index||0;t=f.response&&f.response.playingVideoId||void 0;return W.yield(_.x3H(f.JSC$12894_playlistNetworkManager,v.listId,f.index,t),2)}M=W.yieldResult;if(!M)return W.return();h=M.playlistId;y=M.playlistPanelRenderer;!f.queueProxy&&h&&y&&h.startsWith("TLPQ")&&(f.queueProxy=new _.nO(f.JSC$12894_playlistNetworkManager,h,f.setPlaylistData.bind(f),f.clearQueue.bind(f),_.WyR(y),f.storage));if(v.openMiniplayer&&
(m=_.Omv(y))&&!f.pageManager.isOnWatch()){var I=m,S=v.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";f.isMiniplayerActive()?f.openToast(I):gfA(I,S)}f.setPlaylistData(h,y,M.autoplayRenderer);_.Bj(W)})},Huh=function(f,H){var v=_.EI();
v.index===void 0&&(v.index=0);v.temporaryItems.push.apply(v.temporaryItems,_.pS(f));if((H.videoId||H.videoIds)&&v.index!==void 0&&H.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!v.queueProxy){var t=[];if(v.response){var M=_.t8().resolve(_.o0).isMiniplayerActive();if(v.response.playlistPanelRenderer&&v.response.playlistId&&!v.response.playlistId.startsWith("TLPQ")){if(v.pageManager.isOnWatch()||M)t=_.WyR(v.response.playlistPanelRenderer)}else v.response.playingVideoId&&!H.openMiniplayer?t.push(v.response.playingVideoId):
M&&v.response.playingVideoId&&H.openMiniplayer&&t.push(v.response.playingVideoId)}v.queueProxy=new _.nO(v.JSC$12894_playlistNetworkManager,"",v.setPlaylistData.bind(v),v.clearQueue.bind(v),t,v.storage);v.queueProxy.JSC$12840_setCurrentIndex(v.index)}v.queueProxy.addVideos(H.videoIds||[H.videoId],H)}wxA(v,f);v.response&&_.NI(v,_.cL(v,v.response.autoplayRenderer));v.pageManager.isOnWatch()?v.isMiniplayerActive()&&v.openToast(f[0]):(f=f[0],H=H.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",v.isMiniplayerActive()?
v.openToast(f):gfA(f,H))},Ib0=function(f){var H=_.qT(f);
if(H=="object"||H=="array"){if(typeof f.clone==="function")return f.clone();if(typeof Map!=="undefined"&&f instanceof Map)return new Map(f);if(typeof Set!=="undefined"&&f instanceof Set)return new Set(f);H=H=="array"?[]:{};for(var v in f)H[v]=Ib0(f[v]);return H}return f},Fk=function(f,H){return _.RZe(_.OU(f,H,void 0,_.WI))},r0=function(f,H){return _.VG(_.OU(f,H,void 0,_.WI))},Kx=function(f,H){return _.Bhe(_.OU(f,H,void 0,_.WI))},Do=function(f,H){return _.OU(f,H,void 0,_.WI,_.Mvs)},SHx=_.Wv(function(f,
H,v){if(f.nextWireType_!==0)return!1;
_.O4(H,v,_.op(f.decoder_,_.vg5));return!0},_.SV,_.uT),dNb=_.Wv(function(f,H,v,t){if(f.nextWireType_!==0)return!1;
_.dP(H,v,t,_.op(f.decoder_,_.vg5));return!0},_.SV,_.uT),j0t=_.Wv(function(f,H,v){if(f.nextWireType_!==1)return!1;
var t=f.decoder_;f=_.p8(t);t=_.p8(t);f=_.Xa(f,t);_.O4(H,v,f);return!0},_.eq_,_.x9R),s0i=_.Wv(function(f,H,v){if(f.nextWireType_!==5)return!1;
_.O4(H,v,_.p8(f.decoder_));return!0},function(f,H,v){H=_.Ybv(H);
H!=null&&(_.ge(f,v,5),_.I1(f.encoder_,H))},_.Lq3),ZAb=_.Wv(function(f,H,v){if(f.nextWireType_!==0)return!1;
f=_.RMb(f.decoder_);_.O4(H,v,f===!1?void 0:f);return!0},_.LLv,_.JvR),JQr=_.Wv(function(f,H,v){if(f.nextWireType_!==2)return!1;
f=_.WqH(f);_.O4(H,v,f===""?void 0:f);return!0},_.Bes,_.lTR),lbW=_.Wv(function(f,H,v){if(f.nextWireType_!==2)return!1;
f=_.O$r(f);_.O4(H,v,f===_.nr()?void 0:f);return!0},_.FLE,_.FqT),UNb=_.IMv(function(f,H,v){if(f.nextWireType_!==0&&f.nextWireType_!==2)return!1;
H=_.ewg(H,H[_.Ob]|0,v);f.nextWireType_==2?_.goe(f,zIx,H):H.push(_.n8(f.decoder_));return!0},function(f,H,v){H=_.gUB(_.VG,H,!0);
if(H!=null&&H.length){v=_.arH(f,v);for(var t=0;t<H.length;t++)_.JDE(f.encoder_,H[t]);_.Pts(f,v)}},_.rve),eHb=_.Wv(function(f,H,v){if(f.nextWireType_!==0)return!1;
f=_.n8(f.decoder_);_.O4(H,v,f===0?void 0:f);return!0},_.rDR,_.rve),Lmw=_.Wv(function(f,H,v,t){if(f.nextWireType_!==0)return!1;
_.dP(H,v,t,_.n8(f.decoder_));return!0},_.rDR,_.rve),xN0=function(f){return f.previousElementSibling!==void 0?f.previousElementSibling:_.CCZ(f.previousSibling,!1)},Bs0=function(f,H){var v=[];
for(H=H||0;H<f.length;H+=2)_.rW_(f[H],f[H+1],v);return v.join("&")},zHW=function(f,H){var v=arguments.length==2?Bs0(arguments[1],0):Bs0(arguments,1);
return _.FWo(f,v)},cdt=_.lD(_.FX),FmW=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(FmW,_.mL);FmW.prototype.getTypeName=function(){return _.L8(this,1).split("/").pop()};
FmW.prototype.getValue=function(){var f=_.OU(this,2);if(Array.isArray(f)||f instanceof _.mL)throw Error("W");return _.Ss(this,2)};
var DSx=function(){var f=_.WS();this.JSC$9908_streamzService=f;f.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.W_("channel_type"))};
DSx.prototype.increment=function(f){this.JSC$9908_streamzService.JSC$9778_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",f)};
var ozw=function(){var f=_.WS();this.JSC$9911_streamzService=f;f.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.W_("channel_type"))};
ozw.prototype.increment=function(f){this.JSC$9911_streamzService.JSC$9778_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",f)};
var pSW=function(){var f=_.WS();this.JSC$9914_streamzService=f;f.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.W_("channel_type"))};
pSW.prototype.increment=function(f){this.JSC$9914_streamzService.JSC$9778_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",f)};
var nzh=function(){var f=_.WS();this.JSC$9917_streamzService=f;f.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
nzh.prototype.increment=function(){this.JSC$9917_streamzService.JSC$9778_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var Q9h=function(){var f=_.WS();this.JSC$9920_streamzService=f;f.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.W_("channel_type"),_.W_("error_type"))};
Q9h.prototype.increment=function(f,H){this.JSC$9920_streamzService.JSC$9778_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",f,H)};
var uEx=function(){var f=_.WS();this.JSC$9923_streamzService=f;f.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
uEx.prototype.increment=function(){this.JSC$9923_streamzService.JSC$9778_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var anx=function(){var f=_.WS();this.JSC$9926_streamzService=f;f.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
anx.prototype.increment=function(){this.JSC$9926_streamzService.JSC$9778_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var mlx=function(){var f=_.WS();this.JSC$9932_streamzService=f;f.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
mlx.prototype.increment=function(){this.JSC$9932_streamzService.JSC$9778_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var rQp=function(f){return f.getCount&&typeof f.getCount=="function"?f.getCount():_.Tb(f)||typeof f==="string"?f.length:_.QA.getCount(f)},Kmr=function(f,H){if(typeof f.every=="function")return f.every(H,void 0);
if(_.Tb(f)||typeof f==="string")return Array.prototype.every.call(f,H,void 0);for(var v=_.K7T(f),t=_.XJ(f),M=t.length,h=0;h<M;h++)if(!H.call(void 0,t[h],v&&v[h],f))return!1;return!0},DNr=function(f,H,v,t){var M=new _.qC(null);
f&&_.Ae(M,f);H&&_.bz(M,H);v&&_.iz(M,v);t&&_.kR(M,t);return M},ofW=function(){var f=_.ud&&_.SE(_.Xh_,10)>=0,H;
if(H=_.Zzr)H=_.SE(_.c8_,10)>=0;var v=_.Y_&&_.SE(_.Xh_,85)>=0;return _.hZ||f||H||v},nft=function(f){var H=_.mxM(f);
return H&&ofW()?-f.scrollLeft:H&&_.E1(f,"overflowX")!="visible"?f.scrollWidth-f.clientWidth-f.scrollLeft:f.scrollLeft},p1x=function(f,H){H=Math.max(H,0);
_.mxM(f)?ofW()?f.scrollLeft=-H:f.scrollLeft=f.scrollWidth-H-f.clientWidth:f.scrollLeft=H},Jgx=0,xCt=!1;
JL.prototype.set=function(f){this.relativeTimeStart_=f};
JL.prototype.reset=function(){this.set(_.qN())};
JL.prototype.get=function(){return this.relativeTimeStart_};
var Q0W=null,uL5=function(){Q0W||(Q0W=new JL)},abW=function(){Q0W||(Q0W=new JL)};
_.f8(abW,uL5);_.R=zaW.prototype;_.R.JSC$11336_buffer_="";_.R.set=function(f){this.JSC$11336_buffer_=""+f};
_.R.append=function(f,H,v){this.JSC$11336_buffer_+=String(f);if(H!=null)for(var t=1;t<arguments.length;t++)this.JSC$11336_buffer_+=arguments[t];return this};
_.R.clear=function(){this.JSC$11336_buffer_=""};
_.R.getLength=function(){return this.JSC$11336_buffer_.length};
_.R.toString=function(){return this.JSC$11336_buffer_};
var PLi=function(){var f={type:"unit",style:"narrow"};this.listType_=f&&f.type?f.type:"conjunction";this.listStyle_=f&&f.style?f.style:"long";this.listSymbols_=n$w;f=0;switch(this.listStyle_){case "short":f=1;break;case "narrow":f=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[f];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[f];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[f];this.listEndPattern_=
this.listSymbols_.AND_END[f];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[f];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[f];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[f];this.listEndPattern_=this.listSymbols_.OR_END[f];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[f],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[f],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[f],this.listEndPattern_=this.listSymbols_.UNIT_END[f]}};
PLi.prototype.format=function(f){return GBh(this,f)};
var GBh=function(f,H){var v=H.length;switch(v){case 0:return"";case 1:return String(H[0]);case 2:return f.listTwoPattern_.replace("{0}",String(H[0])).replace("{1}",String(H[1]))}for(var t=f.listStartPattern_.replace("{0}",String(H[0])).replace("{1}",String(H[1])),M=2;M<v-1;++M)t=f.listMiddlePattern_.replace("{0}",t).replace("{1}",String(H[M]));return f.listEndPattern_.replace("{0}",t).replace("{1}",String(H[v-1]))},cgb=function(){var f={style:1};
this.style_=(f==null?void 0:f.style)||0;this.durationSymbols_=_.qiC||_.pBC},CLx=function(f,H){switch(H){default:case "years":return f.durationSymbols_.YEAR;
case "months":return f.durationSymbols_.MONTH;case "weeks":return f.durationSymbols_.WEEK;case "days":return f.durationSymbols_.DAY;case "hours":return f.durationSymbols_.HOUR;case "minutes":return f.durationSymbols_.MINUTE;case "seconds":return f.durationSymbols_.SECOND}},oo=function(f,H,v){a:{v=CLx(f,v);
switch(f.style_){case 1:if(v.LONG!=void 0){f=v.LONG;break a}case 2:if(v.NARROW!=void 0){f=v.NARROW;break a}default:f=v.SHORT;break a}f=void 0}return f?(new _.MWb("{DURATION_VALUE,plural,"+f+"}")).format({DURATION_VALUE:H}):""};
cgb.prototype.format=function(f){var H=[],v=f.years,t=f.months,M=f.weeks,h=f.days,y=f.hours,m=f.minutes;f=f.seconds;v!=null&&H.push(oo(this,v,"years"));t!=null&&H.push(oo(this,t,"months"));M!=null&&H.push(oo(this,M,"weeks"));h!=null&&H.push(oo(this,h,"days"));y!=null&&H.push(oo(this,y,"hours"));m!=null&&H.push(oo(this,m,"minutes"));f!=null&&H.push(oo(this,f,"seconds"));return(new PLi).format(H)};
var Efx=!1,p75=function(f){_.vR.call(this,f.message||f.description||f.name);this.isMissing=f instanceof lG;this.isTimeout=f instanceof _.hL&&f.errorCode=="net.timeout";this.isCanceled=f instanceof _.pp};
_.e(p75,_.vR);p75.prototype.name="BiscottiError";var lG=function(){_.vR.call(this,"Biscotti ID is missing from server")};
_.e(lG,_.vR);lG.prototype.name="BiscottiMissingError";var Uy=null,b2W=function(){try{var f=_.ES("yt.ads.biscotti.getId_");return f?f():g1r()}catch(H){return _.DI(H)}},NIG,Nsh=function(f,H){return _.yq({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:f,command:H}})},cQb=function(f){return _.yq({type:"SET_GUIDE_IS_EXPANDED",
payload:f})},X1x=function(f){return _.yq({type:"SET_ONLINE_STATUS",
payload:f})},AQW=function(f,H){return _.yq({type:"SET_TRANSCRIPTION_STATE",
payload:{high:f,low:H}})},bAF=function(f){return _.yq({type:"SET_OVERLAY_STATE",
payload:f})},iAx=0,kBb=function(f,H,v){var t=this;
this.priority=H;this.delay=v;this.jobId=0;this.completionCallback=_.gQ;this.wrappedJob=function(){f();t.completionCallback()};
this.id=++iAx};
kBb.prototype.enqueue=function(f){this.completionCallback=f;this.jobId=_.nN.addJob(this.wrappedJob,this.priority,this.delay)};
var nx=function(){_.wK.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.e(nx,_.wK);nx.prototype.addJob=function(f,H,v){f=new kBb(f,H,v);this.taskIdToTask.set(f.id,f);this.isActive?Ts0(this,f):this.suspendedTasks.add(f);return f.id};
var Ts0=function(f,H){f.scheduledTasks.add(H);H.enqueue(function(){f.scheduledTasks.delete(H)})};
nx.prototype.cancelJob=function(f){(f=this.taskIdToTask.get(f))&&(this.scheduledTasks.delete(f)?_.nN.cancelJob(f.jobId):this.suspendedTasks.delete(f))};
nx.prototype.pause=function(){var f=this;this.isActive=!1;this.scheduledTasks.forEach(function(H){_.nN.cancelJob(H.jobId);f.suspendedTasks.add(H)});
this.scheduledTasks.clear()};
nx.prototype.start=function(){var f=this;this.isActive=!0;this.suspendedTasks.forEach(function(H){Ts0(f,H)});
this.suspendedTasks.clear()};
nx.prototype.reset=function(){this.scheduledTasks.forEach(function(f){_.nN.cancelJob(f.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var px=function(f,H){this.JSC$13026_networkService_=f;this.pageRequestPromise=H};
px.prototype.fetchData=function(f){w1W(this,this.JSC$13026_networkService_.fetchData(f))};
px.prototype.postData=function(f,H){w1W(this,this.JSC$13026_networkService_.postData(f,H))};
px.prototype.requestDataForServiceEndpoint=function(f,H){w1W(this,this.JSC$13026_networkService_.requestDataForServiceEndpoint(f,H))};
var w1W=function(f,H){H.then(f.pageRequestPromise.onSuccess,f.pageRequestPromise.onFailure,f.pageRequestPromise)};
px.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var Qg=function(f){this.buildNetworkRequest_=f;this.pendingRequests_=new Set};
Qg.prototype.reset=function(){this.pendingRequests_.forEach(function(f){f.cancel()});
this.pendingRequests_.clear()};
Qg.prototype.fetchData=function(f){var H=qHr(this);H.fetchData(f);return H.pageRequestPromise};
Qg.prototype.postData=function(f,H){var v=qHr(this);v.postData(f,H);return v.pageRequestPromise};
Qg.prototype.requestDataForServiceEndpoint=function(f,H){var v=qHr(this);v.requestDataForServiceEndpoint(f,H);return v.pageRequestPromise};
var qHr=function(f){var H=f.buildNetworkRequest_();f.pendingRequests_.add(H);var v=function(){f.pendingRequests_.delete(H)};
H.pageRequestPromise.then(v,v);return H},fVw=function(f){var H=new nx;
this.JSC$13033_networkService_=f;this.JSC$13033_taskManager_=H;this.JSC$13033_networkManager_=new Qg(this.networkRequestFactory_.bind(this))};
_.R=fVw.prototype;_.R.networkRequestFactory_=function(){return new px(this.JSC$13033_networkService_,new _.hp(this.JSC$13033_taskManager_))};
_.R.reset=function(){this.JSC$13033_taskManager_.reset();this.JSC$13033_networkManager_.reset()};
_.R.start=function(){this.JSC$13033_taskManager_.start()};
_.R.pause=function(){this.JSC$13033_taskManager_.pause()};
_.R.getTaskManager=function(){return this.JSC$13033_taskManager_};
_.R.getNetworkManager=function(){return this.JSC$13033_networkManager_};
var kPi=null,qex=[],ey=0,xh=0,LJ=null,H8i=!1,Bg=null,HQx=void 0,v_r=function(){var f=(0,_.PaC)();f&&QsW(f,f.mechanism.__iterator__(!0))},FV=function(f){this.token=f};
FV.getInstance=function(){var f;return _.Y(function(H){if(H.nextAddress==1)return H.yield(_.fN(),2);f=H.yieldResult;if(!f)return H.return();FV.instance||(FV.instance=new FV(f));return H.return(FV.instance)})};
var VGb=function(f){var H;return _.Y(function(v){if(v.nextAddress==1)return v.yield(MGW(f.token),2);H=v.yieldResult;return v.return(H.clear("resource-manifest-assets"))})},z4=function(f){this.token=f};
z4.getInstance=function(){var f;return _.Y(function(H){if(H.nextAddress==1)return H.yield(_.fN(),2);f=H.yieldResult;if(!f)return H.return();z4.instance||(z4.instance=new z4(f));return H.return(z4.instance)})};
var hFG=function(f){var H;return _.Y(function(v){if(v.nextAddress==1)return v.yield(MGW(f.token),2);H=v.yieldResult;return v.yield(H.clear("auth"),0)})},Bjp=!1,tsw=function(f){_.vR.call(this,f)};
_.e(tsw,_.sD9);var MsF="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(" ");HYt()&&MsF.push("details:not(:has(summary))");var tBi=MsF.join(",");var esG=function(){var f=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return f?parseInt(f[1],10):0},hVF=function(f){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+f)!=-1||document.currentScript.src.indexOf("&"+f)!=-1)},RVW=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},FFx=function(f){f.length?VsF(f.shift(),function(){FFx(f)}):xux()},KFi=function(f){return"chrome-extension://"+f+"/cast_sender.js"},VsF=function(f,
H,v){var t=document.createElement("script");
t.onerror=H;v&&(t.onload=v);_.tf(t,_.K9(f));(document.head||document.documentElement).appendChild(t)},yZb=function(){var f=esG(),H=[];
if(f>1){var v=f-1;H.push("//www.gstatic.com/eureka/clank/"+f+"/cast_sender.js");H.push("//www.gstatic.com/eureka/clank/"+v+"/cast_sender.js")}return H},xux=function(){var f=RVW();
f&&f(!1,"No cast extension found")},zsr=function(){if(YUG){var f=2,H=RVW(),v=function(){f--;
f==0&&H&&H(!0)};
window.__onGCastApiAvailable=v;VsF("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",xux,v)}},LFx=function(){zsr();
var f=yZb();f.push("//www.gstatic.com/eureka/clank/cast_sender.js");FFx(f)},BX0=function(){zsr();
var f=yZb();f.push.apply(f,_.pS(rJh.map(KFi)));f.push("//www.gstatic.com/eureka/clank/cast_sender.js");FFx(f)},YUG=hVF("loadCastFramework")||hVF("loadCastApplicationFramework"),rJh=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var myw=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(myw,_.mL);var $yW=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e($yW,_.mL);var W9A=function(){var f=new $yW;return _.K8(f,1,3)};var uc=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(uc,_.mL);var LOp=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(LOp,_.mL);var O8w=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(O8w,_.mL);O8w.prototype.getToken=function(){return _.L8(this,1)};
O8w.prototype.setToken=function(f){return _.G7(this,1,f)};
var UOW=function(f){return _.wi(f,3,_.ep,_.yX())},ejx=function(f){return _.wi(f,6,_.ep,_.yX())};var ao=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(ao,_.mL);ao.prototype.getToken=function(){return _.V$(this,O8w,2)};
ao.prototype.setToken=function(f){return _.eV(this,2,f)};
ao.prototype.getName=function(){return _.L8(this,6)};
var g_b=_.lD(ao);var IVx=function(f,H,v){this.requestMessage=f;this.methodDescriptor=H;this.metadata=v};
IVx.prototype.getMetadata=function(){return this.metadata};var SUF=function(f,H){H=H===void 0?{}:H;this.responseMessage=f;this.metadata=H;this.status=null};
SUF.prototype.getMetadata=function(){return this.metadata};
SUF.prototype.getStatus=function(){return this.status};var P9=function(f,H,v,t,M){this.name=f;this.methodType="unary";this.requestType=H;this.responseType=v;this.requestSerializeFn=t;this.responseDeserializeFn=M},dyx=function(f,H,v){v=v===void 0?{}:v;
return new IVx(H,f,v)};
P9.prototype.getName=function(){return this.name};var GT=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(GT,_.mL);GT.prototype.getHeader=function(){return _.V$(this,uc,1)};
GT.prototype.setHeader=function(f){return _.eV(this,1,f)};
GT.prototype.hasHeader=function(){return _.gP(this,uc,1)};var jpW=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(jpW,_.mL);var spp=new P9("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",GT,jpW,function(f){return f.serialize()},_.lD(jpW));var Cx=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(Cx,_.mL);Cx.prototype.getHeader=function(){return _.V$(this,uc,1)};
Cx.prototype.setHeader=function(f){return _.eV(this,1,f)};
Cx.prototype.hasHeader=function(){return _.gP(this,uc,1)};var Z8r=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(Z8r,_.mL);var JZi=new P9("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",Cx,Z8r,function(f){return f.serialize()},_.lD(Z8r));var EN=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(EN,_.mL);EN.prototype.getHeader=function(){return _.V$(this,uc,1)};
EN.prototype.setHeader=function(f){return _.eV(this,1,f)};
EN.prototype.hasHeader=function(){return _.gP(this,uc,1)};var lVx=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(lVx,_.mL);lVx.prototype.getLink=function(){return _.V$(this,ao,1)};var Uyh=new P9("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",EN,lVx,function(f){return f.serialize()},_.lD(lVx));var Nf=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(Nf,_.mL);Nf.prototype.getHeader=function(){return _.V$(this,uc,1)};
Nf.prototype.setHeader=function(f){return _.eV(this,1,f)};
Nf.prototype.hasHeader=function(){return _.gP(this,uc,1)};var eVp=new P9("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",Nf,ao,function(f){return f.serialize()},g_b);var L9t=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(L9t,_.mL);var xyF=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(xyF,_.mL);xyF.prototype.getUrl=function(){return _.L8(this,2)};
xyF.prototype.setUrl=function(f){return _.G7(this,2,f)};var BPW=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(BPW,_.mL);var zVx=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(zVx,_.mL);var F9p=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(F9p,_.mL);var Q5i=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(Q5i,_.mL);var paw=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(paw,_.mL);var rZb=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(rZb,_.mL);var NL0=_.lD(rZb);var K9i=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(K9i,_.mL);var DyW=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(DyW,_.mL);_.R=DyW.prototype;_.R.getHeader=function(){return _.V$(this,uc,1)};
_.R.setHeader=function(f){return _.eV(this,1,f)};
_.R.hasHeader=function(){return _.gP(this,uc,1)};
_.R.getCompletionUrl=function(){return _.L8(this,6)};
_.R.getDeviceId=function(){return _.L8(this,11)};var o_b=new P9("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",DyW,rZb,function(f){return f.serialize()},NL0);var n_G=new Set(["SAPISIDHASH","APISIDHASH"]);var pI5=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(pI5,_.mL);pI5.prototype.getMessage=function(){return _.L8(this,2)};
var Qpp=_.lD(pI5);var c9=function(f,H){this.xhrNodeReadableStream_=f.nodeReadableStream;this.grpcResponseDeserializeFn_=H;this.JSC$19265_xhr_=f.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$19265_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&ugw(this)},NP5=function(f,H){var v=new aVw;
_.r9(f.JSC$19265_xhr_,"complete",function(){if(f.JSC$19265_xhr_.isSuccess()){var t=f.JSC$19265_xhr_.getResponseText();var M;if(M=H)M=f.JSC$19265_xhr_,M.JSC$9787_xhr_&&M.isComplete()?(M=M.JSC$9787_xhr_.getResponseHeader("Content-Type"),M=M===null?void 0:M):M=void 0,M=M==="text/plain";if(M){if(!atob)throw Error("Xj");t=atob(t)}try{var h=f.grpcResponseDeserializeFn_(t)}catch(m){Xk(f,mO0(new _.lz(13,"Error when deserializing response data; error: "+m+(", response: "+t)),v));return}t=_.X6T(f.JSC$19265_xhr_.getStatus());
PTt(f,GXp(f));t==0?CTx(f,h):Xk(f,mO0(new _.lz(t,"Xhr succeeded but the status code is not 200"),v))}else{t=f.JSC$19265_xhr_.getResponseText();h=GXp(f);if(t){var y=E_p(f,t);t=y.code;M=y.details;y=y.metadata}else t=2,M="Rpc failed due to xhr error. uri: "+String(f.JSC$19265_xhr_.JSC$9787_lastUri_)+", error code: "+f.JSC$19265_xhr_.JSC$9787_lastErrorCode_+", error: "+f.JSC$19265_xhr_.getLastError(),y=h;PTt(f,h);Xk(f,mO0(new _.lz(t,M,y),v))}})},ugw=function(f){f.xhrNodeReadableStream_.on("data",function(H){if("1"in
H){var v=H["1"];
try{var t=f.grpcResponseDeserializeFn_(v)}catch(M){Xk(f,new _.lz(13,"Error when deserializing response data; error: "+M+(", response: "+v)))}t&&CTx(f,t)}if("2"in H)for(H=E_p(f,H["2"]),v=0;v<f.onStatusCallbacks_.length;v++)f.onStatusCallbacks_[v](H)});
f.xhrNodeReadableStream_.on("end",function(){PTt(f,GXp(f));for(var H=0;H<f.onEndCallbacks_.length;H++)f.onEndCallbacks_[H]()});
f.xhrNodeReadableStream_.on("error",function(){if(f.JSC$19265_onErrorCallbacks_.length!=0){var H=f.JSC$19265_xhr_.JSC$9787_lastErrorCode_;H!==0||f.JSC$19265_xhr_.isSuccess()||(H=6);var v=-1;switch(H){case 0:var t=2;break;case 7:t=10;break;case 8:t=4;break;case 6:v=f.JSC$19265_xhr_.getStatus();t=_.X6T(v);break;default:t=14}PTt(f,GXp(f));H=_.mdb(H)+", error: "+f.JSC$19265_xhr_.getLastError();v!=-1&&(H+=", http status code: "+v);Xk(f,new _.lz(t,H))}})},GXp=function(f){var H={},v=KVG(f.JSC$19265_xhr_);
Object.keys(v).forEach(function(t){H[t]=v[t]});
return H},E_p=function(f,H){var v=2,t={};
try{var M=Qpp(H);v=_.Yl(M,1);var h=M.getMessage();_.VX(M,FmW,3,_.yX()).length&&(t["grpc-web-status-details-bin"]=H)}catch(y){f.JSC$19265_xhr_&&f.JSC$19265_xhr_.getStatus()===404?(v=5,h="Not Found: "+String(f.JSC$19265_xhr_.JSC$9787_lastUri_)):(v=14,h="Unable to parse RpcStatus: "+y)}return{code:v,details:h,metadata:t}};
c9.prototype.on=function(f,H){f=="data"?this.onDataCallbacks_.push(H):f=="metadata"?this.onMetadataCallbacks_.push(H):f=="status"?this.onStatusCallbacks_.push(H):f=="end"?this.onEndCallbacks_.push(H):f=="error"&&this.JSC$19265_onErrorCallbacks_.push(H);return this};
var AO=function(f,H){H=f.indexOf(H);H>-1&&f.splice(H,1)};
c9.prototype.removeListener=function(f,H){f=="data"?AO(this.onDataCallbacks_,H):f=="metadata"?AO(this.onMetadataCallbacks_,H):f=="status"?AO(this.onStatusCallbacks_,H):f=="end"?AO(this.onEndCallbacks_,H):f=="error"&&AO(this.JSC$19265_onErrorCallbacks_,H);return this};
c9.prototype.cancel=function(){this.JSC$19265_xhr_.abort()};
var CTx=function(f,H){for(var v=0;v<f.onDataCallbacks_.length;v++)f.onDataCallbacks_[v](H)},PTt=function(f,H){for(var v=0;v<f.onMetadataCallbacks_.length;v++)f.onMetadataCallbacks_[v](H)},Xk=function(f,H){for(var v=0;v<f.JSC$19265_onErrorCallbacks_.length;v++)f.JSC$19265_onErrorCallbacks_[v](H)};
c9.prototype.cancel=c9.prototype.cancel;c9.prototype.removeListener=c9.prototype.removeListener;c9.prototype.on=c9.prototype.on;var aVw=function(){var f=Error.call(this);this.message=f.message;"stack"in f&&(this.stack=f.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.e(aVw,Error);var bc=function(f){this.JSC$19274_worker_=f.worker||null;this.JSC$19274_streamBinaryChunks_=f.streamBinaryChunks||!1;this.JSC$19274_credentialsMode_=void 0};
_.f8(bc,_.bcs);bc.prototype.createInstance=function(){var f=new ic(this.JSC$19274_worker_,this.JSC$19274_streamBinaryChunks_);this.JSC$19274_credentialsMode_&&f.setCredentialsMode(this.JSC$19274_credentialsMode_);return f};
bc.prototype.setCredentialsMode=function(f){this.JSC$19274_credentialsMode_=f};
var ic=function(f,H){_.Sg.call(this);this.JSC$19278_worker_=f;this.JSC$19278_streamBinaryChunks_=H;this.JSC$19278_credentialsMode_=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$19278_responseHeaders_=null;this.JSC$19278_method_="GET";this.JSC$19278_url_="";this.inProgress_=!1;this.JSC$19278_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.f8(ic,_.Sg);ic.prototype.open=function(f,H){if(this.readyState!=0)throw this.abort(),Error("Yj");this.JSC$19278_method_=f;this.JSC$19278_url_=H;this.readyState=1;kH(this)};
ic.prototype.send=function(f){if(this.readyState!=1)throw this.abort(),Error("Zj");if(this.abortController_.signal.aborted)throw this.abort(),Error("$j");this.inProgress_=!0;var H={headers:this.requestHeaders_,method:this.JSC$19278_method_,credentials:this.JSC$19278_credentialsMode_,cache:void 0,signal:this.abortController_.signal};f&&(H.body=f);(this.JSC$19278_worker_||_.Mr).fetch(new Request(this.JSC$19278_url_,H)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
ic.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort();this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,TT(this));this.readyState=0};
ic.prototype.handleResponse_=function(f){if(this.inProgress_&&(this.fetchResponse_=f,this.JSC$19278_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19278_responseHeaders_=f.headers,this.readyState=2,kH(this)),this.inProgress_&&(this.readyState=3,kH(this),this.inProgress_)))if(this.responseType==="arraybuffer")f.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.Mr.ReadableStream!==
"undefined"&&"body"in f){this.currentReader_=f.body.getReader();if(this.JSC$19278_streamBinaryChunks_){if(this.responseType)throw Error("ak");this.response=[]}else this.response=this.responseText="",this.JSC$19278_textDecoder_=new TextDecoder;cZW(this)}else f.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var cZW=function(f){f.currentReader_.read().then(f.handleDataFromStream_.bind(f)).catch(f.handleSendFailure_.bind(f))};
ic.prototype.handleDataFromStream_=function(f){if(this.inProgress_){if(this.JSC$19278_streamBinaryChunks_&&f.value)this.response.push(f.value);else if(!this.JSC$19278_streamBinaryChunks_){var H=f.value?f.value:new Uint8Array(0);if(H=this.JSC$19278_textDecoder_.decode(H,{stream:!f.done}))this.response=this.responseText+=H}f.done?TT(this):kH(this);this.readyState==3&&cZW(this)}};
ic.prototype.handleResponseText_=function(f){this.inProgress_&&(this.response=this.responseText=f,TT(this))};
ic.prototype.handleResponseArrayBuffer_=function(f){this.inProgress_&&(this.response=f,TT(this))};
ic.prototype.handleSendFailure_=function(){this.inProgress_&&TT(this)};
var TT=function(f){f.readyState=4;f.fetchResponse_=null;f.currentReader_=null;f.JSC$19278_textDecoder_=null;kH(f)};
ic.prototype.setRequestHeader=function(f,H){this.requestHeaders_.append(f,H)};
ic.prototype.getResponseHeader=function(f){return this.JSC$19278_responseHeaders_?this.JSC$19278_responseHeaders_.get(f.toLowerCase())||"":""};
ic.prototype.getAllResponseHeaders=function(){if(!this.JSC$19278_responseHeaders_)return"";for(var f=[],H=this.JSC$19278_responseHeaders_.entries(),v=H.next();!v.done;)v=v.value,f.push(v[0]+": "+v[1]),v=H.next();return f.join("\r\n")};
ic.prototype.setCredentialsMode=function(f){this.JSC$19278_credentialsMode_=f};
var kH=function(f){f.onreadystatechange&&f.onreadystatechange.call(f)};
Object.defineProperty(ic.prototype,"withCredentials",{get:function(){return this.JSC$19278_credentialsMode_==="include"},
set:function(f){this.setCredentialsMode(f?"include":"same-origin")}});var XIA=function(f){var H="";_.QA.forEach(f,function(v,t){H+=t;H+=":";H+=v;H+="\r\n"});
return H},AZA=function(f,H,v){if(_.QA.isEmpty(v))return f;
v=XIA(v);if(typeof f==="string")return _.us(f,_.c6(H),v);_.iS(f,H,v);return f};var b8h=function(){this.isInputValid_=!0;this.JSC$19283_streamPos_=0;this.leftoverInput_=""};
b8h.prototype.isInputValid=function(){return this.isInputValid_};
b8h.prototype.decode=function(f){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("bk`"+this.JSC$19283_streamPos_+"`stream already broken`"+f);this.leftoverInput_+=f;f=Math.floor(this.leftoverInput_.length/4);if(f==0)return null;try{var H=_.r65(this.leftoverInput_.slice(0,f*4))}catch(v){throw H=this.leftoverInput_,f=v.message,this.isInputValid_=!1,Error("bk`"+this.JSC$19283_streamPos_+"`"+f+"`"+H);}this.JSC$19283_streamPos_+=f*4;this.leftoverInput_=this.leftoverInput_.slice(f*4);return H};var DJ=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19286_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
DJ.prototype.isInputValid=function(){return this.state_!=3};
var w0=function(f,H,v,t){f.state_=3;f.errorMessage_="The stream is broken @"+f.JSC$19286_streamPos_+"/"+v+". Error: "+t+". With input:\n"+H;throw Error(f.errorMessage_);};
DJ.prototype.acceptsBinaryInput=function(){return!0};
DJ.prototype.parse=function(f){function H(W){W&128&&w0(h,y,m,"invalid tag");(W&7)!=2&&w0(h,y,m,"invalid wire type");h.tag_=W>>>3;h.tag_!=1&&h.tag_!=2&&h.tag_!=15&&w0(h,y,m,"unexpected tag");h.state_=1;h.length_=0;h.countLengthBytes_=0}
function v(W){h.countLengthBytes_++;h.countLengthBytes_==5&&W&240&&w0(h,y,m,"message length too long");h.length_|=(W&127)<<(h.countLengthBytes_-1)*7;W&128||(h.state_=2,h.countMessageBytes_=0,typeof Uint8Array!=="undefined"?h.messageBuffer_=new Uint8Array(h.length_):h.messageBuffer_=Array(h.length_),h.length_==0&&M())}
function t(W){h.messageBuffer_[h.countMessageBytes_++]=W;h.countMessageBytes_==h.length_&&M()}
function M(){if(h.tag_<15){var W={};W[h.tag_]=h.messageBuffer_;h.result_.push(W)}h.state_=0}
for(var h=this,y=f instanceof Array?f:new Uint8Array(f),m=0;m<y.length;){switch(h.state_){case 3:w0(h,y,m,"stream already broken");break;case 0:H(y[m]);break;case 1:v(y[m]);break;case 2:t(y[m]);break;default:throw Error("ck`"+h.state_);}h.JSC$19286_streamPos_++;m++}f=h.result_;h.result_=[];return f.length>0?f:null};var WOw=function(){this.errorMessage_=null;this.JSC$19289_streamPos_=0;this.base64Decoder_=new b8h;this.pbParser_=new DJ};
WOw.prototype.isInputValid=function(){return this.errorMessage_===null};
var i8p=function(f,H,v){f.errorMessage_="The stream is broken @"+f.JSC$19289_streamPos_+". Error: "+v+". With input:\n"+H;throw Error(f.errorMessage_);};
WOw.prototype.acceptsBinaryInput=function(){return!1};
WOw.prototype.parse=function(f){this.errorMessage_!==null&&i8p(this,f,"stream already broken");var H=null;try{var v=this.base64Decoder_.decode(f);H=v===null?null:this.pbParser_.parse(v)}catch(t){i8p(this,f,t.message)}this.JSC$19289_streamPos_+=f.length;return H};var $OA=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19292_streamPos_=0;this.result_=[];this.statusParsed_=!1};
$OA.prototype.isInputValid=function(){return this.errorMessage_===null};
$OA.prototype.acceptsBinaryInput=function(){return!1};
$OA.prototype.parse=function(f){function H(W){h.state_=6;h.errorMessage_="The stream is broken @"+h.JSC$19292_streamPos_+"/"+y+". Error: "+W+". With input:\n";throw Error(h.errorMessage_);}
function v(){h.jsonStreamParser_=new _.vw({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function t(W){if(W)for(var I=0;I<W.length;I++){var S={};S[1]=W[I];h.result_.push(S)}}
function M(W){if(W){(h.statusParsed_||W.length>1)&&H("extra status: "+W);h.statusParsed_=!0;var I={};I[2]=W[0];h.result_.push(I)}}
for(var h=this,y=0;y<f.length;){var m;if(m=h.state_!==2){a:{for(;y<f.length;){if(!_.Hw(f[y])){m=!0;break a}y++;h.JSC$19292_streamPos_++}m=!1}m=!m}if(m)return null;switch(h.state_){case 6:H("stream already broken");break;case 0:f[y]==="["?(h.state_=1,y++,h.JSC$19292_streamPos_++):H("unexpected input token");break;case 1:f[y]==="["?(h.state_=2,v()):f[y]===","||f.slice(y,y+5)=="null,"?h.state_=3:f[y]==="]"?(h.state_=5,y++,h.JSC$19292_streamPos_++):H("unexpected input token");break;case 2:m=h.jsonStreamParser_.parse(f.substring(y));
t(m);h.jsonStreamParser_.done()?(h.state_=3,m=h.jsonStreamParser_.JSC$11463_buffer_,h.JSC$19292_streamPos_+=f.length-y-m.length,f=m,y=0):(h.JSC$19292_streamPos_+=f.length-y,y=f.length);break;case 3:f[y]===","||f.slice(y,y+5)=="null,"?(h.state_=4,v(),h.jsonStreamParser_.parse("["),y+=f[y]===","?1:5,h.JSC$19292_streamPos_++):f[y]==="]"&&(h.state_=5,y++,h.JSC$19292_streamPos_++);break;case 4:m=h.jsonStreamParser_.parse(f.substring(y));M(m);h.jsonStreamParser_.done()?(h.state_=5,m=h.jsonStreamParser_.JSC$11463_buffer_,
h.JSC$19292_streamPos_+=f.length-y-m.length,f=m,y=0):(h.JSC$19292_streamPos_+=f.length-y,y=f.length);break;case 5:H("extra input after stream end")}}return h.result_.length>0?(f=h.result_,h.result_=[],f):null};var kXA=function(f){this.JSC$19295_xhr_=f;this.JSC$19295_parser_=null;this.status_=this.JSC$19295_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19295_textDecoder_=null;this.JSC$19295_eventHandler_=new _.Y1(this);this.JSC$19295_eventHandler_.listen(this.JSC$19295_xhr_,"readystatechange",this.JSC$19297_readyStateChangeHandler_)},qf=function(f,H){f.status_!=H&&(f.status_=H,f.statusHandler_&&f.statusHandler_())},fF=function(f){f.JSC$19295_eventHandler_.removeAll();
if(f.JSC$19295_xhr_){var H=f.JSC$19295_xhr_;f.JSC$19295_xhr_=null;H.abort();H.dispose()}};
kXA.prototype.getStatus=function(){return this.status_};
kXA.prototype.JSC$19297_readyStateChangeHandler_=function(f){f=f.target;try{if(f==this.JSC$19295_xhr_)a:{var H=_.Lh(this.JSC$19295_xhr_),v=this.JSC$19295_xhr_.JSC$9787_lastErrorCode_,t=this.JSC$19295_xhr_.getStatus(),M=this.JSC$19295_xhr_.getResponseText();f=[];if(this.JSC$19295_xhr_.getResponse()instanceof Array){var h=this.JSC$19295_xhr_.getResponse();h.length>0&&h[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,f=h)}if(!(H<3||H==3&&!M&&f.length==0))if(t=t==200||t==206,H==4&&(v==8?qf(this,
7):v==7?qf(this,8):t||qf(this,3)),this.JSC$19295_parser_||(this.JSC$19295_parser_=OYG(this.JSC$19295_xhr_),this.JSC$19295_parser_==null&&qf(this,5)),this.status_>2)fF(this);else{if(f.length>this.JSC$19295_pos_){var y=f.length;v=[];try{if(this.JSC$19295_parser_.acceptsBinaryInput())for(var m=0;m<y;m++){var W=this.JSC$19295_parser_.parse(Array.from(f[m]));W&&(v=v.concat(W))}else{W="";if(!this.JSC$19295_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("dk");this.JSC$19295_textDecoder_=new TextDecoder}for(m=
0;m<y;m++)W+=this.JSC$19295_textDecoder_.decode(f[m],{stream:H==4&&m==y-1});v=this.JSC$19295_parser_.parse(W)}f.splice(0,y);v&&this.dataHandler_(v)}catch(S){qf(this,5);fF(this);break a}}else if(M.length>this.JSC$19295_pos_){m=M.slice(this.JSC$19295_pos_);this.JSC$19295_pos_=M.length;try{var I=this.JSC$19295_parser_.parse(m);I!=null&&this.dataHandler_&&this.dataHandler_(I)}catch(S){qf(this,5);fF(this);break a}}H==4?(M.length!=0||this.hasStreamingResponseData_?qf(this,2):qf(this,4),fF(this)):qf(this,
1)}}}catch(S){qf(this,6),fF(this)}};var TPp=function(f){f=this.xhrReader_=f;var H=(0,_.FH)(this.onData_,this);f.dataHandler_=H;f=this.xhrReader_;H=(0,_.FH)(this.onStatusChange_,this);f.statusHandler_=H;this.JSC$19299_callbackMap_={};this.callbackOnceMap_={}};
_.R=TPp.prototype;_.R.on=function(f,H){var v=this.JSC$19299_callbackMap_[f];v||(v=[],this.JSC$19299_callbackMap_[f]=v);v.push(H);return this};
_.R.addListener=function(f,H){this.on(f,H);return this};
_.R.removeListener=function(f,H){var v=this.JSC$19299_callbackMap_[f];v&&_.iH(v,H);(f=this.callbackOnceMap_[f])&&_.iH(f,H);return this};
_.R.once=function(f,H){var v=this.callbackOnceMap_[f];v||(v=[],this.callbackOnceMap_[f]=v);v.push(H);return this};
_.R.onData_=function(f){var H=this.JSC$19299_callbackMap_.data;H&&wIr(f,H);(H=this.callbackOnceMap_.data)&&wIr(f,H);this.callbackOnceMap_.data=[]};
var wIr=function(f,H){for(var v={},t=0;t<f.length;v={message$jscomp$1007:void 0},t++)v.message$jscomp$1007=f[t],H.forEach(function(M){return function(h){try{h(M.message$jscomp$1007)}catch(y){}}}(v))};
TPp.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:qUt(this,"readable");break;case 5:case 6:case 4:case 7:case 3:qUt(this,"error");break;case 8:qUt(this,"close");break;case 2:qUt(this,"end")}};
var qUt=function(f,H){var v=f.JSC$19299_callbackMap_[H];v&&v.forEach(function(t){try{t()}catch(M){}});
(v=f.callbackOnceMap_[H])&&v.forEach(function(t){t()});
f.callbackOnceMap_[H]=[]};var fDx=function(){var f={format:"jspb"};f=f===void 0?{}:f;this.suppressCorsPreflight=f.suppressCorsPreflight||_.ES("suppressCorsPreflight",f)||!1;this.withCredentials=f.withCredentials||_.ES("withCredentials",f)||!1;this.streamInterceptors=f.streamInterceptors||[];this.unaryInterceptors=f.unaryInterceptors||[];this.workerScope=f.workerScope;this.chunkedServerStreaming=f.useFetchDownloadStreams||!1},tI0=function(f,H,v,t,M,h){h=h===void 0?{}:h;
var y=H.substring(0,H.length-M.name.length),m,W=(m=h)==null?void 0:m.signal;return H60(function(I){return new Promise(function(S,d){if(W==null?0:W.aborted){var Z=new _.lz(1,"Aborted");Z.cause=W.reason;d(Z)}else{var l={},L=v0r(f,I,y);L.on("error",function(r){return void d(r)});
L.on("metadata",function(r){l=r});
L.on("data",function(r){var n=l;n=n===void 0?{}:n;S(new SUF(r,n))});
W&&W.addEventListener("abort",function(){L.cancel();var r=new _.lz(1,"Aborted");r.cause=W.reason;d(r)})}})},f.unaryInterceptors).call(f,dyx(M,v,t)).then(function(I){return I.responseMessage})},Hm=function(f,H,v,t,M,h){h=h===void 0?{}:h;
return tI0(f,H,v,t,M,h)};
fDx.prototype.serverStreaming=function(f,H,v,t){var M=this,h=f.substring(0,f.length-t.name.length);return MIt(function(y){var m=y.methodDescriptor,W=y.getMetadata(),I=hKi(M,!1);W=RKx(M,W,I,h+m.getName());var S=VIG(I,m.responseDeserializeFn,!0);y=m.requestSerializeFn(y.requestMessage);I.send(W,"POST",y);return S},this.streamInterceptors).call(this,dyx(t,H,v))};
var v0r=function(f,H,v){var t=H.methodDescriptor,M=H.getMetadata(),h=hKi(f,!0);f=RKx(f,M,h,v+t.getName());v=VIG(h,t.responseDeserializeFn,!1);NP5(v,M["X-Goog-Encode-Response-If-Executable"]==="base64");H=t.requestSerializeFn(H.requestMessage);h.send(f,"POST",H);return v},hKi=function(f,H){H=f.chunkedServerStreaming&&!H;
return f.workerScope||H?new _.eg(new bc({worker:f.workerScope,streamBinaryChunks:H})):new _.eg},RKx=function(f,H,v,t){H["Content-Type"]="application/json+protobuf";
H["X-User-Agent"]="grpc-web-javascript/0.1";var M=H.Authorization;if(M&&n_G.has(M.split(" ")[0])||f.withCredentials)v.JSC$9787_withCredentials_=!0;if(f.suppressCorsPreflight)t=AZA(t,"$httpHeaders",H);else for(f=_.V(Object.keys(H)),M=f.next();!M.done;M=f.next())M=M.value,v.headers.set(M,H[M]);return t},VIG=function(f,H,v){if(v){v=new kXA(f);
var t=new TPp(v)}return new c9({xhr:f,nodeReadableStream:t},H)},MIt=function(f,H){return H.reduce(function(v,t){return function(M){return t.intercept(M,v)}},f)},H60=function(f,H){return H.reduce(function(v,t){return function(M){return t.intercept(M,v)}},f)};var yhW=function(f){this.client_=new fDx;this.hostname_=f==void 0?f:f.replace(/\/+$/,"")};
_.R=yhW.prototype;_.R.JSC$19317_depositGoogleCredential=function(f,H,v){return Hm(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",f,H||{},JZi,v)};
_.R.deleteLink=function(f,H,v){return Hm(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",f,H||{},spp,v)};
_.R.JSC$19317_finishOAuth=function(f,H,v){return Hm(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",f,H||{},Uyh,v)};
_.R.getLink=function(f,H,v){return Hm(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",f,H||{},eVp,v)};
_.R.startLinkingSession=function(f,H,v){return Hm(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",f,H||{},o_b,v)};var Y$F=[0,ZAb,1,UNb,[0,_.EU,[0,JQr,-1]],[0,lbW],[0,eHb,-1]];var mtt=function(){this.storage=new Map},WPF=function(f,H,v,t,M){if(!f.storage.has(H))return null;
f=_.V(f.storage.get(H));for(H=f.next();!H.done;H=f.next())if(H=H.value,!M||H.linkName===M)if(v&&H.scopes&&$tw(H.scopes,v)||t&&H.capabilities&&$tw(H.capabilities,t))return H;return null},O6t=function(f,H,v){if(!v)f.storage.delete(H);
else if(f.storage.has(H)){var t=f.storage.get(H).filter(function(M){return M.linkName!==v});
t.length>0?f.storage.set(H,t):f.storage.delete(H)}},$tw=function(f,H){H=_.V(H);
for(var v=H.next();!v.done;v=H.next())if(!f.has(v.value))return!1;return!0};var g0b=function(){var f=_.a8("LINK_GAL_DOMAIN");this.alsDomain1p=_.a8("LINK_GAL_DOMAIN");this.alsDomain3p=f;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},IDb=function(f,H){f.apiKey=H;
return f};
g0b.prototype.build=function(){var f={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("ek");f.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("fk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("gk");f.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(f.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)f.apiKey=
this.apiKey,f.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("hk");f.oauthToken=this.oauthToken;f.alsDomain=this.alsDomain3p}f.clientXd3=this.clientXd3;f.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(f.authUser=this.authUser);this.bucket!==void 0&&(f.bucket=this.bucket);this.completionUrl!==void 0&&(f.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(f.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(f.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(f.locale=this.locale);f.loggerType=this.loggerType;f.clientEnvironment=this.clientEnvironment;f.colorScheme=this.colorScheme;f.showCloseOption=this.showCloseOption;return f};var ox=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(ox,_.mL);var S$b=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(S$b,_.mL);var dtr=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(dtr,_.mL);var pJ=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(pJ,_.mL);var jHW=function(f){return _.x_(f,1)};var sHb=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(sHb,_.mL);var ZYF=_.lD(sHb),nJ=[1,2,3,4,5];var SFr=function(f){try{return ZYF(f)}catch(H){return null}},Z6G=function(){},dOG=function(f,H){switch(_.js(H,nJ)){case 4:return(H=_.Fg(H,dtr,4,nJ))&&f.logStateTransition(_.x_(H,1)),!0;
case 5:return(H=_.Fg(H,S$b,5,nJ))&&f.logInternalEvent(_.x_(H,1)),!0}return!1},Jdh=function(f){switch(f){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.bC(f)}};var gTF=function(f,H){var v=this;this.validator=f;this.messageListener=H;this.dismissCallback=function(){Jhi(v,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19346_receiveMessage=function(t){t.type==="message"&&(t=t.event_,t!==null&&(new URL(v.iframe.src)).origin===t.origin&&v.validator(t.data,t.origin)&&!v.messageListener(t.data)&&(v.JSC$19346_resolveCb!==void 0&&v.JSC$19346_resolveCb(t.data),lDt(v)))}},s5p=function(f,H,v){f.uiHandler!==void 0&&Jhi(f,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(t,M){f.JSC$19346_resolveCb=t;f.JSC$19346_rejectCb=M;f.iframe=document.createElement("iframe");_.T1(f.iframe,H);f.uiHandler=v.displayContent(f.iframe,f.dismissCallback);_.r9(window,"message",f.JSC$19346_receiveMessage,!1,f)})},Jhi=function(f,H){f.JSC$19346_rejectCb!==void 0&&f.JSC$19346_rejectCb(H);
lDt(f)},lDt=function(f){f.uiHandler!==void 0&&f.uiHandler.hideContent();
_.IS(window,"message",f.JSC$19346_receiveMessage,!1,f);f.JSC$19346_resolveCb=void 0;f.JSC$19346_rejectCb=void 0;f.uiHandler=void 0;f.iframe=void 0};var Utw=function(f){if(f===2){var H;f=((H=window)==null?0:H.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return f},j5x=function(f){f=Utw(f);
switch(f){case 0:return"light";case 1:return"dark";default:_.bC(f)}};var IqG=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),eKw=function(f,H){this.JSC$19358_linkingSession=f;this.noticeConfig=H;this.displayInfoMap=new Map;var v=new Map;if(_.gP(this.JSC$19358_linkingSession,BPW,7))for(f=_.V$(this.JSC$19358_linkingSession,BPW,7),f=_.VX(f,xyF,1,_.yX()),f=_.V(f),H=f.next();!H.done;H=f.next())H=H.value,v.set(_.x_(H,1),_.y85(_.V$(H,_.pE3,3)));if(v.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){H=this.noticeConfig.enabledDataUsageNoticeUis;f=H.has(0)?v.get(1):void 0;H=H.has(1)?v.get(2):void 0;v=f!==void 0&&H!==void 0?v.get(3):void 0;var t=this.noticeConfig.nestedOrigins;var M=new sHb;var h=new ox;M=_.Lo(M,2,nJ,h);h=new sHb;var y=new ox;h=_.Lo(h,3,nJ,y);y=[];f!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:f,lastEvent:M,nestedOrigins:t}]),y.push({trustedUrl:f,lastEvent:M,nestedOrigins:t}));H!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:H,lastEvent:h,nestedOrigins:t}]),y.push({trustedUrl:H,lastEvent:h,nestedOrigins:t}));v!==void 0?this.displayInfoMap.set(3,[{trustedUrl:v,lastEvent:h,nestedOrigins:t}]):this.displayInfoMap.set(3,y)}};var LPA=function(f){var H=new mtt;this.galService=f;this.galCache=H};
LPA.prototype.getLink=function(f){var H=f.serviceId;var v=f.scopes;var t=f.capabilities;var M=f.linkName;var h=this,y;return _.Y(function(m){if(t!==void 0&&v!==void 0)throw Error("ik");y=WPF(h.galCache,H,v,t,M);return y!==null?m.return(y):m.return(h.galService.getLink({serviceId:H,sessionId:Math.floor(Math.random()*2147483648),scopes:v,capabilities:t,linkName:M}).then(function(W){W=xOW(W);var I=h.galCache;I.storage.has(H)?I.storage.get(H).push(W):I.storage.set(H,[W]);return W}))})};
LPA.prototype.deleteLink=function(f,H,v){var t=this;return _.Y(function(M){O6t(t.galCache,f,v);return M.return(t.galService.deleteLink({serviceId:f,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:H,linkName:v}).then(function(){return!0}))})};var BQx=function(f,H){var v=this;this.validator=f;this.msgHandler=H;this.closedPopupTimeout=this.JSC$19380_rejectCb=this.JSC$19380_resolveCb=this.popup=null;this.JSC$19380_receiveMessage=function(t){if(t!==null&&(t=t.event_,t.source===v.popup)){var M=t.data;if(v.validator(M,t.origin)){var h;(h=v.msgHandler)!=null&&h.call(v,M)||(v.JSC$19380_resolveCb!==null&&v.JSC$19380_resolveCb(M),xtw(v))}}}};
BQx.prototype.open=function(f,H){var v=this;this.popup!==null&&zKh(this);return new Promise(function(t,M){v.JSC$19380_resolveCb=t;v.JSC$19380_rejectCb=M;v.popup=_.we(window,f,"",H);_.r9(window,"message",v.JSC$19380_receiveMessage,!1,v);FPA(v)})};
var zKh=function(f,H){f.JSC$19380_rejectCb!==null&&f.JSC$19380_rejectCb(H);xtw(f)},xtw=function(f){f.closedPopupTimeout&&(f.closedPopupTimeout.cancel(),f.closedPopupTimeout=null);
f.popup&&f.popup.close();_.IS(window,"message",f.JSC$19380_receiveMessage,!1,f);f.popup=null;f.JSC$19380_resolveCb=null;f.JSC$19380_rejectCb=null},FPA=function(f){f.closedPopupTimeout=_.hg_(100).then(function(){f.popup?f.popup.closed?rhw(f):FPA(f):zKh(f,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},rhw=function(f){f.closedPopupTimeout=_.hg_(100).then(function(){zKh(f,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var KPx=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),DtF=function(f,H,v,t,M,h,y,m,W,I){var S=this;this.serviceId=f;this.sessionId=H;this.galService=v;this.oauthDetails=t;this.galLogger=M;this.interactionMode=h;this.redirectServiceUrl=y;this.consentLanguageKeys=m;this.dynamicUrlParameters=W;this.partnerConfigMinReadTimestamp=I;this.started=!1;this.JSC$19386_dataValidator=function(d,
Z){var l=KPx.has(Z);l||S.redirectServiceUrl===void 0||(l=S.redirectServiceUrl===Z);return l?d.sentinel==="gdi":!1}};
DtF.prototype.complete=function(){var f=this,H;return _.Y(function(v){if(f.interactionMode!==1)return v.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));H=uG.getRedirectStateFromUri();return H===null?v.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):v.return(o0W(f,H))})};
DtF.prototype.start=function(){var f=this,H;return _.Y(function(v){if(f.started)return v.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.L8(f.oauthDetails,1))return v.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(f.interactionMode===1)return uG.setLocation(_.L8(f.oauthDetails,1)),v.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));f.started=!0;f.galLogger.logStateTransition(5);
H=uG.getPostMessagePopup(f.JSC$19386_dataValidator);return v.return(H.open(_.L8(f.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(t){f.started=!1;var M=f.galLogger;if((t==null?void 0:t.error)!==void 0)throw M.logInternalEvent(59),Error("jk");if((t==null?void 0:t.redirect_state)===void 0)throw M.logInternalEvent(131),Error("kk");return o0W(f,t.redirect_state)}).catch(function(t){f.started=
!1;
return t.errorCode!==void 0?{statusCode:t.errorCode,statusMessage:t.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var o0W=function(f,H){return _.Y(function(v){return v.return(n0t(f.galService,{serviceId:f.serviceId,sessionId:f.sessionId,dynamicUrlParameters:f.dynamicUrlParameters,redirectState:H,consentLanguageKeys:f.consentLanguageKeys,partnerConfigMinReadTimestamp:f.partnerConfigMinReadTimestamp}).then(function(t){var M={statusCode:1,link:xOW(t.getLink())};Wg5(_.Ss(t,3))!==void 0&&(M.callerState=Wg5(_.Ss(t,3)));f.galLogger.logInternalEvent(134);return M}))})},uG={getPostMessagePopup:function(f){return new BQx(f)},
getRedirectStateFromUri:function(){var f=_.Ax(uG.getLocation()).fragment_;return(new _.fZ(f)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(f){_.RS3(window.location,_.Co(f))},
createOAuthFlow:function(f,H){return new DtF(f.serviceId,f.sessionId,f.galService,H,f.galLogger,f.interactionMode,f.redirectServiceUrl,f.consentLanguageKeys,f.dynamicUrlParameters,f.partnerConfigMinReadTimestamp)}};var p4W=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(p4W,_.mL);var QHb=_.lD(p4W);var u_0=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),aDp=function(f,H,v,t,M,h,y,m,W){var I=this;this.serviceId=f;this.sessionId=H;this.galService=v;this.gsiWebFlowDetails=t;this.colorScheme=M;this.showCloseOption=h;this.galLogger=y;this.interactionMode=m;this.redirectServiceUrl=W;this.started=!1;this.JSC$19398_dataValidator=function(S,d){var Z=u_0.has(d);Z||I.redirectServiceUrl===
void 0||(Z=I.redirectServiceUrl===d);return Z?S.sentinel==="gal":!1};
this.logEventProcessor=function(S){return S.result?(S=SFr(S.result))?dOG(I.galLogger,S):!1:!1}};
aDp.prototype.complete=function(){var f=this,H,v;return _.Y(function(t){if(f.interactionMode!==1)return t.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));H=ax.getRedirectStateFromUri();if(H===void 0)return f.galLogger.JSC$19338_logErrorEvent(131),t.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return v=Psw(f,H),t.return(G_i(f,v))}catch(M){return t.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
aDp.prototype.start=function(){var f=this,H;return _.Y(function(v){if(f.started)return v.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.L8(f.gsiWebFlowDetails,1))return v.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(f.interactionMode===1)return ax.setLocation(CsF(f,_.L8(f.gsiWebFlowDetails,1))),v.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
f.started=!0;H=ax.getPostMessagePopup(f.JSC$19398_dataValidator,f.logEventProcessor);return v.return(H.open(CsF(f,_.L8(f.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(t){f.started=!1;if((t==null?void 0:t.result)===void 0)throw f.galLogger.JSC$19338_logErrorEvent(131),Error("kk");t=Psw(f,t.result);return G_i(f,t)}).catch(function(t){f.started=!1;
return t.errorCode!==void 0?{statusCode:t.errorCode,statusMessage:t.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var CsF=function(f,H){f=["result_channel",f.interactionMode===1?"2":"1","color_scheme",j5x(f.colorScheme),"show_close_option",f.showCloseOption];return zHW(H,f)},G_i=function(f,H){if(H!==null&&_.gP(H,pJ,2)){var v,t=H==null?void 0:(v=_.V$(H,pJ,2))==null?void 0:_.x_(v,2);
t&&f.galLogger.JSC$19338_logErrorEvent(Jdh(t));return jHW(_.V$(H,pJ,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 f.galService.getLink({serviceId:f.serviceId,sessionId:f.sessionId,consistencyKey:_.L8(H,1)}).then(function(M){M=xOW(M);f.galLogger.logInternalEvent(134);return{statusCode:1,link:M}})},Psw=function(f,H){H=QHb(H);
if(!_.gP(H,pJ,2)&&_.L8(H,1)==="")throw f.galLogger.JSC$19338_logErrorEvent(5),Error("lk");return H},ax={getPostMessagePopup:function(f,H){return new BQx(f,H)},
getRedirectStateFromUri:function(){return _.bS(_.Ax(ax.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(f){_.RS3(window.location,_.Co(f))},
createStreamlinedFlow:function(f,H){return new aDp(f.serviceId,f.sessionId,f.galService,H,f.colorScheme,f.showCloseOption,f.galLogger,f.interactionMode,f.redirectServiceUrl)}};var CAh=function(){var f=_.s5E("GAL");this.storage=f?new _.Ll(f):null};
CAh.prototype.getSession=function(f){if(this.storage!==null)try{var H=this.storage.get("SAVED_SESSION");if(H===void 0)return null;if(H.serviceId===f)return H}catch(v){}return null};var tK=function(){};
_.e(tK,Z6G);tK.prototype.logStateTransition=function(){};
tK.prototype.logInternalEvent=function(){};
tK.prototype.JSC$19338_logErrorEvent=function(){};var E0b=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(E0b,_.mL);E0b.prototype.getCompletionUrl=function(){return _.L8(this,15)};var M5=function(f,H,v,t,M,h){this.serviceId=f;this.environment=H;this.sessionId=v;this.colorSchemeSelected=t;this.colorThemeDisplayed=M;this.JSC$19411_transport=h;this.currentState=1};
_.e(M5,Z6G);M5.prototype.logStateTransition=function(f){var H=NQW(this);H=_.y$(H,3,this.currentState);H=_.y$(H,1,f);this.currentState=f;f=rjG(1);this.dispatch(H,f)};
M5.prototype.logInternalEvent=function(f){f=rjG(f);this.dispatch(NQW(this),f)};
M5.prototype.JSC$19338_logErrorEvent=function(f){var H=NQW(this);H=_.y$(H,1,10);f=rjG(f);this.dispatch(H,f)};
var NQW=function(f){var H=new E0b;H=_.y$(H,1,f.currentState);H=_.rr(H,7,f.serviceId);var v,t;var M=((v=window)==null?0:(t=v.location)==null?0:t.href)?_.Ax(window.location.href).JSC$10022_domain_:"NO_PACKAGE_NAME";v=_.rr(H,8,M);v=_.y$(v,6,f.environment);v=_.rr(v,5,"100");v=_.y$(v,11,f.colorSchemeSelected);return _.y$(v,12,f.colorThemeDisplayed)};
M5.prototype.dispatch=function(f,H){H===void 0&&(H=new _.Mc);var v=H;f=f.serialize();v=_.rr(v,8,f);_.UP(v,12,this.sessionId);this.JSC$19411_transport.dispatch(H)};var chW=function(f,H){this.loggerType=f;this.sessionIndex=H!=null?H:0},X4A;
chW.prototype.create=function(f,H,v,t,M){switch(this.loggerType){case 0:return new tK;case 1:return X4A||(X4A=(new _.dA(555,this.sessionIndex.toString())).build()),new M5(f,H,v,t,M,X4A);default:_.bC(this.loggerType,"unknown logger type")}};var Pg=[6,2,3,1],bYi=new Map([[4,1],[1,6],[2,2],[3,3]]),rdi={statusCode:7,statusMessage:"Failed to create flow object"},PAw=function(f,H,v,t,M,h,y,m,W,I){this.serviceId=f;this.sessionId=H;this.config=v;this.galService=t;this.JSC$19418_linkingSession=M;this.googleScopes=h;this.callerState=y;this.consentLanguageKeys=m;this.dynamicUrlParameters=W;this.partnerConfigMinReadTimestamp=I;this.currentFlow=0;t=this.JSC$19418_linkingSession;M=new Set;_.gP(t,paw,1)&&M.add(1);_.gP(t,F9p,2)&&_.gP(t,Q5i,6)&&M.add(2);
_.gP(t,zVx,3)&&_.gP(t,Q5i,6)&&M.add(3);_.gP(t,L9t,4)&&M.add(6);this.supportedFlows=M;t=v.loggerType;M=v.clientEnvironment;a:{h=v.colorScheme;switch(h){case 0:h=1;break a;case 1:h=2;break a;case 2:h=3;break a;default:_.bC(h)}h=void 0}a:{y=v.colorScheme;y=Utw(y);switch(y){case 0:y=1;break a;case 1:y=2;break a;default:_.bC(y)}y=void 0}this.galLogger=(new chW(t,v.authUser)).create(f,M,H,h,y)},b6A=function(f){return new Promise(function(H){var v,t,M,h,y,m,W,I,S,d;
return _.Y(function(Z){switch(Z.nextAddress){case 1:v=uGh(f.currentFlow,f.supportedFlows),t=!1,M=new eKw(f.JSC$19418_linkingSession,f.config.dataUsageNoticeConfig);case 2:if(v===void 0){Z.jumpTo(4);break}_.Zc(Z,5);var l=M,L=v,r=void 0;t?L===1&&(r=l.displayInfoMap.get(2)):L===2||L===3?r=l.displayInfoMap.get(1):L===1&&(r=l.displayInfoMap.get(3));h=r?r:[];y=f.consentLanguageKeys;m=_.V(h);W=m.next();case 7:if(W.done)return f.currentFlow=v,Z.yield(DOx(AhG(f,y)),11);I=W.value;return Z.yield(lq0(I,f.config.dataUsageNoticeConfig.uiAdapter,
f.config.colorScheme,f.galLogger),10);case 10:S=Z.yieldResult;if(S.statusCode!==1)return ETG(f.serviceId),f.currentFlow=0,H(Qx({statusCode:S.statusCode,statusMessage:S.statusMessage},f.callerState)),Z.return();S.consentLanguageKeys!==void 0&&(y=S.consentLanguageKeys);W=m.next();Z.jumpTo(7);break;case 11:d=Z.yieldResult;if(d.statusCode!==10)return d.statusCode!==6&&(ETG(f.serviceId),f.currentFlow=0),d.statusCode!==1&&f.callerState!==void 0&&(d.callerState=f.callerState),H(d),Z.return();_.ch(Z,6);break;
case 5:_.xu(Z);case 6:v=uGh(f.currentFlow,f.supportedFlows);t=!0;Z.jumpTo(2);break;case 4:ETG(f.serviceId),f.currentFlow=0,H(Qx({statusCode:12,statusMessage:"Linking failed"},f.callerState)),_.Bj(Z)}})})},XaW=function(f,H,v){f.currentFlow=H;
return oTG(AhG(f,v)).then(function(t){return t.statusCode===10&&f.config.interactionMode===1&&uGh(f.currentFlow,f.supportedFlows)!==void 0?b6A(f):t})},AhG=function(f,H){return{flowParams:{serviceId:f.serviceId,
sessionId:f.sessionId,galService:f.galService,galLogger:f.galLogger,interactionMode:f.config.interactionMode,redirectServiceUrl:f.config.redirectServiceUrl,colorScheme:f.config.colorScheme,consentLanguageKeys:H,dynamicUrlParameters:f.dynamicUrlParameters,showCloseOption:f.config.showCloseOption,partnerConfigMinReadTimestamp:f.partnerConfigMinReadTimestamp},currentFlow:f.currentFlow,config:f.config,session:f.JSC$19418_linkingSession,googleScopes:f.googleScopes,callerState:f.callerState}};var kZG=function(f,H){this.config=f;this.galService=H.getService();this.JSC$19431_galRepository=H.JSC$19449_galRepository};
kZG.prototype.getLink=function(f,H){return i6b(this,f,H)};
var i6b=function(f,H,v){return f.JSC$19431_galRepository.getLink({serviceId:H,scopes:void 0,capabilities:void 0,linkName:v}).then(function(t){return{statusCode:1,link:t}}).catch(function(t){return{statusCode:iYA(t.code),
statusMessage:t.message}})};
kZG.prototype.deleteLink=function(f,H){return this.JSC$19431_galRepository.deleteLink(f,this.config.accountLinkingEntryPoint,H).then(function(){return{statusCode:1}}).catch(function(v){return{statusCode:iYA(v.code),
statusMessage:v.message}})};
kZG.prototype.startLinkingSession=function(f){var H=f.serviceId;var v=f.sessionId;return GZt({serviceId:H,sessionId:v!==void 0?v:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:f.loginHint,callerState:f.callerState,consentLanguageKeys:f.consentLanguageKeys,linkName:f.linkName,dynamicUrlParameters:f.dynamicUrlParameters,partnerConfigMinReadTimestamp:f.partnerConfigMinReadTimestamp})};var hK=function(f,H,v,t,M,h,y){this.apiKey=H;this.authUser=v;this.oauthToken=t;this.bucket=M;this.locale=h;this.galSdkEventHandler=y;if(t===void 0){if(H===void 0)throw Error("mk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new yhW(f)};
hK.prototype.deleteLink=function(f){var H=f.serviceId;var v=f.sessionId;var t=f.accountLinkingEntryPoint;var M=f.linkName;var h=this,y;return _.Y(function(m){var W=(new GT).setHeader(h.getHeader(v));var I=k_W({serviceId:H,linkName:M});W=_.eV(W,2,I);y=_.K8(W,3,t);return m.return(h.makeRequest(h.galServiceClient.deleteLink,y,[1,3],[2,4]))})};
var n0t=function(f,H){var v=H.serviceId;var t=H.sessionId;var M=H.dynamicUrlParameters;var h=H.redirectState;var y=H.consentLanguageKeys;var m=H.partnerConfigMinReadTimestamp;var W;return _.Y(function(I){var S=(new EN).setHeader(f.getHeader(t,M));S=_.G7(S,2,v);W=_.G7(S,4,h);y!==void 0&&_.G7(W,5,y);m!==void 0&&_.eV(W,6,m);return I.return(f.makeRequest(f.galServiceClient.JSC$19317_finishOAuth,W,[1,3],[2,4]))})};
hK.prototype.getLink=function(f){var H=f.serviceId;var v=f.sessionId;var t=f.scopes;var M=f.capabilities;var h=f.consistencyKey;var y=f.linkName;var m=this,W;return _.Y(function(I){var S=(new Nf).setHeader(m.getHeader(v)),d=k_W({serviceId:H,scopes:t,capabilities:M,linkName:y});W=_.eV(S,2,d);h!==void 0&&(S=W9A(),S=_.G7(S,2,h),_.eV(W,3,S));return I.return(m.makeRequest(m.galServiceClient.getLink,W,[1,3],[2,4]))})};
var nTx=function(f,H){var v=H.serviceId;var t=H.sessionId;var M=H.googleScopes;var h=H.consistencyKey;var y;return _.Y(function(m){var W=(new Cx).setHeader(f.getHeader(t));W=_.G7(W,2,v);var I=Array.from(M.values());W=_.Hv(W,3,I,_.JW);I=W9A();I=_.G7(I,2,h);y=_.eV(W,4,I);return m.return(f.makeRequest(f.galServiceClient.JSC$19317_depositGoogleCredential,y,[1,3],[2,4]))})};
hK.prototype.startLinkingSession=function(f){var H=f.serviceId;var v=f.sessionId;var t=f.scopes;var M=f.capabilities;var h=f.loginHint;var y=f.supportedFlows;var m=f.completionUrl;var W=f.usePingPong;var I=f.twoWayLinking;var S=f.accountLinkingEntryPoint;var d=f.callerState;var Z=f.consentLanguageKeys;var l=f.googleScopes;var L=f.dataUsageNoticeConfig;var r=f.linkName;var n=f.dynamicUrlParameters;var Q=f.partnerConfigMinReadTimestamp;var C=this,w,c;return _.Y(function(A){if(M!==void 0&&t!==void 0)throw Error("ik");
var X=(new DyW).setHeader(C.getHeader(v,n));w=_.G7(X,2,H);r!==void 0&&_.G7(w,14,r);if(M!==void 0){X=w;var fg=Array.from(M.values());_.Hv(X,5,fg,_.JW)}else t!==void 0&&(X=w,fg=Array.from(t.values()),_.Hv(X,3,fg,_.JW));m!==void 0&&_.G7(w,6,m);W!==void 0&&_.oW(w,15,W);y!==void 0&&(X=w,fg=Array.from(y.values()),_.Hv(X,4,fg,_.Mx));if(I!==void 0){if(I&&(!l||l.size===0))throw Error("nk");_.oW(w,8,I)}S!==void 0&&_.K8(w,9,S);h!==void 0&&_.G7(w,13,h);d!==void 0&&(X=w,fg=(new TextEncoder).encode(d),_.vv(X,12,
_.QM(fg,!1),_.nr()));Z!==void 0&&_.G7(w,16,Z);Q!==void 0&&_.eV(w,18,Q);if(L!==void 0&&L.size>0||l!==void 0&&l.size>0)c=new K9i,l!==void 0&&l.size>0&&(X=c,fg=Array.from(l.values()),_.Hv(X,1,fg,_.JW)),L!==void 0&&(L.has(0)&&_.KWE(c,2,_.Mx,1,_.hW),L.has(1)&&_.KWE(c,2,_.Mx,2,_.hW)),_.eV(w,17,c);return A.return(C.makeRequest(C.galServiceClient.startLinkingSession,w,[1],[2]))})};
hK.prototype.getMetadata=function(){var f=this,H,v;return _.Y(function(t){H={};f.useFpa?(H["X-Goog-Api-Key"]=f.apiKey,H["X-Goog-AuthUser"]=f.authUser!==void 0?f.authUser.toString():"0",(v=_.cJR([]))&&(H.Authorization=v)):H.Authorization="Bearer "+f.oauthToken;f.locale&&(H["accept-language"]=f.locale);return t.return(H)})};
hK.prototype.makeRequest=function(f,H,v,t){var M=this,h;return _.Y(function(y){if(y.nextAddress==1)return y.yield(M.getMetadata(),2);h=y.yieldResult;TQw(M,v);return y.return(f.bind(M.galServiceClient)(H,h).finally(function(){TQw(M,t)}))})};
var TQw=function(f,H){f.galSdkEventHandler!==void 0&&H.forEach(function(v){f.galSdkEventHandler.onEvent(v)})};
hK.prototype.getHeader=function(f,H){var v=new uc;f=_.vv(v,2,_.RF(f),0);f=_.K8(f,5,3);H=_.Hv(f,8,H,_.JW);this.bucket!==void 0&&_.G7(H,1,this.bucket);return H};
var k_W=function(f){var H=f.serviceId;var v=f.scopes;var t=f.capabilities;f=f.linkName;if(t!==void 0&&v!==void 0)throw Error("ik");var M=new myw;H=_.G7(M,1,H);t!==void 0?(v=Array.from(t.values()),_.Hv(H,5,v,_.JW)):v!==void 0&&(v=Array.from(v.values()),_.Hv(H,3,v,_.JW));f!==void 0&&_.G7(H,6,f);return H};var TLx=function(f){this.galService=new hK(f.alsDomain,f.apiKey,f.authUser,f.oauthToken,f.bucket,f.locale,f.galSdkEventHandler);this.JSC$19449_galRepository=new LPA(this.galService)};
TLx.prototype.getService=function(){return this.galService};var w4i=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(w4i,_.mL);var q$5=function(f){var H=new w4i;return _.y$(H,1,f)};
w4i.prototype.setErrorMessage=function(f){return _.rr(this,2,f)};var feh=[0,_.cI,_.C8,_.cI];var R7=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(R7,_.mL);var Hhx=[0,[1,2,3],_.Ny,[0,SHx,s0i,-1],_.Ny,[0,j0t,-1],_.CxT];var vRx=[0,_.PI,1,_.cI,_.C8,-1,1,_.cve,_.ap,_.cI,-1,Hhx];var tgb=[0,_.cI,[0,_.cve,_.ap,[0,_.C8]],_.GX,[0,_.cI,-1]];var lc=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(lc,_.mL);var Mgw=[0,_.C8,_.cI,-2,_.PI,_.cI,_.PI,_.cI,-2,1,_.GX];var h8w=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(h8w,_.mL);var R8F=[0,_.PI];var Vgx=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(Vgx,_.mL);var yeW=[0,_.cI,tgb,R8F,Mgw,vRx];var VfW=_.s4(Vgx,yeW);var YBx=[0,Y$F];var OTh=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(OTh,_.mL);var mci=[0,[1,3],Lmw,_.cI,Lmw];var Zo=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(Zo,_.mL);var $ct=[0,_.cI];var WQr=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(WQr,_.mL);var JO=function(f){return _.Fg(f,w4i,2,sN)},Ohi=function(f){var H=new WQr;
return _.Lo(H,2,sN,f)},sN=[1,
2];var gRh=[0,sN,_.Ny,$ct,_.Ny,feh,_.EU,mci,1,_.cI,YBx];var Iex=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(Iex,_.mL);var dc0=function(f){var H=new Iex;return _.Lo(H,3,SB5,f)},SB5=[2,
3];var Vt=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(Vt,_.mL);var jSA=function(f,H){return _.eV(f,2,H)},sSx=function(f,H){return _.eV(f,8,H)},Zh0=function(f,H){return _.eV(f,3,H)};var Jer=[0,_.cI,gRh,yeW,_.fMh,[0,[5,6,7],[0,_.cI,-2],[0,_.PI,_.cI,_.C8],[0,Hhx],[0,_.C8,_.cI,-1,_.qxa,_.cI],_.Ny,[0,[0,_.PI],_.cI,-1],_.Ny,[0,[3,4],_.cI,-1,_.Ny,[0,[0,_.cI,_.GX]],_.Ny,[0,[0,[0,[1,2],_.Ny,[0],_.Ny,[0]]]]],_.Ny,[0]],_.fMh,-1,[0,SB5,_.cI,_.Ny,$ct,_.Ny,feh,_.EU,mci,[0,Y$F]]];var leW=_.s4(Vt,Jer),UcW=_.JD(Jer);var e8x=function(){_.zO.call(this)};
_.e(e8x,_.zO);e8x.prototype.init=function(){};
new e8x;var LQ5=_.EH(["data-"]),xch=_.EH(["aria-"]),BmG=_.EH(["aria-"]),YQ=function(f,H){this.isLatencyMeasurementExperiment=f===void 0?!1:f;this.enableDialogA11yFix=H===void 0?!1:H;this.JSC$19478_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.LWg(_.Mr.location.href)},Y7x=function(f,H){f.onConsentPrimitiveShownCallback=H},z85=function(f,H){return f.overriddenIframeLoadTimeout?f.overriddenIframeLoadTimeout:H!==void 0?H:5E3},$lG=function(f){if(f.prewarmPromise!==void 0)return f.prewarmPromise;
f.prewarmPromise=new Promise(function(H,v){mk(f,1);FQh(f,reW(f,!0),KQ5(f));f.iframe?f.prewarmChannel||Dcr(f,f.iframe,H):v(Error("ok"))});
f.prewarmPromise.finally(function(){f.prewarmPromise=void 0});
return f.prewarmPromise};
YQ.prototype.showPrimitive=function(){var f=this;if(this.consentPromise!==void 0)return this.consentPromise;var H=Date.now();oR0(this,H);this.consentPromise=new Promise(function(v,t){mk(f,0,H);var M=f.isDarkTheme();f.isLatencyMeasurementExperiment||f.initialLoadingStrategy===1||f.initialLoadingStrategy===2||(f.loadingBar||(f.loadingBar=HG0(getComputedStyle(document.body).direction==="rtl",M),f.loadingBar.style.position="fixed",f.loadingBar.style.zIndex="15000"),document.body.appendChild(f.loadingBar));
FQh(f,reW(f),KQ5(f));f.iframe?f.channel||nR0(f,f.iframe,v,t):(pUG(f),t(Error("ok")))});
this.consentPromise.finally(function(){f.consentPromise=void 0});
return this.consentPromise};
var nR0=function(f,H,v,t){var M,h;_.Y(function(y){switch(y.nextAddress){case 1:mk(f,3);M=!1;setTimeout(function(){if(!M){pUG(f);QSt(f);uJi(f);var m=q$5(7).setErrorMessage("Timeout connecting to iframe");v(sSx(jSA(new Vt,Ohi(m)),dc0(m)))}},z85(f,aeb(f)));
if(!f.prewarmPromise){y.jumpTo(2);break}_.Zc(y,3);return y.yield(f.prewarmPromise,5);case 5:_.ch(y,2);break;case 3:_.xu(y),h=q$5(4).setErrorMessage("Error while prewarming."),v(sSx(jSA(new Vt,Ohi(h)),dc0(h)));case 2:f.prewarmChannel&&f.prewarmChannel.send(UcW(Zh0(new Vt,f.consentPrimitiveRequest))),f.channel=_.bT({destination:f.JSC$19478_win,iframe:H,origin:PzW(f),channelName:"cpw",onEstablished:function(){M=!0;pUG(f);f.isLatencyMeasurementExperiment||(f.JSC$19478_previousBodyOverflow=document.body.style.overflow,
f.JSC$19478_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,f.JSC$19478_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",f.enableDialogA11yFix&&window.addEventListener("blur",f.focusChangeListener));var m=f.iframe;m.style.bottom="0";m.style.position="fixed";m.style.right="0";m.style.border="none";m.style.left="0";m.style.top=
"0";m.style.zIndex="5000";m.style.pointerEvents="";m.style.visibility="";f.initialLoadingStrategy===2||f.initialLoadingStrategy===3?mk(f,4):mk(f,6);var W;(W=f.onConsentPrimitiveShownCallback)==null||W.call(f)},
onMessage:function(m){m=leW(m.data);switch(_.x_(m,1)){case 1:QSt(f);var W=vzt(_.V$(m,_.FX,7));W&&(f.initialLoadingStrategy!==2&&f.initialLoadingStrategy!==3||mk(f,6,W),mk(f,5,W));if(W=vzt(_.V$(m,_.FX,6)))mk(f,7,W),mk(f,8);var I,S;((I=_.V$(m,WQr,2))==null?void 0:_.js(I,sN))!==0&&((S=_.V$(m,Iex,8))==null?void 0:_.js(S,SB5))!==0||t(Error("pk"));v(m);break;case 2:uJi(f)}}}),_.Bj(y)}})},Dcr=function(f,H,v){f.prewarmChannel=_.bT({destination:f.JSC$19478_win,
iframe:H,origin:PzW(f),channelName:"pwcp",onEstablished:function(){mk(f,2);v()}})},PzW=function(f){var H=_.re(f.src).toString();
return H&&H.indexOf("://")<0&&H.indexOf("//")!==0?f.origin:_.LWg(H)},reW=function(f,H){H=H===void 0?!1:H;
var v,t=new Map([["origin",f.origin],["hl",(v=GUr(f))!=null?v:null]]);H&&t.set("pw","1");H=_.V([["cpr",f.consentPrimitiveRequest.serialize()]]);for(v=H.next();!v.done;v=H.next()){var M=_.V(v.value);v=M.next().value;M=M.next().value;t.set(v,M)}f.isDarkTheme()&&t.set("color_scheme","dark");return _.Il(f.src,t)},pUG=function(f){f.isLatencyMeasurementExperiment||f.loadingBar&&document.body.removeChild(f.loadingBar)};
YQ.prototype.getSrc=function(){var f=_.wu(this.origin),H;var v=(H=_.V$(this.consentPrimitiveRequest,h8w,3))==null?void 0:_.Yl(H,1);H="consent.google.com";v=v?"/u/"+encodeURIComponent(v.toString()):"";(f==null?0:f.endsWith("youtube.com"))?H="consent.youtube.com":(f=f==null?void 0:f.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(H="consent.google."+((f[1]?"co.":"")+encodeURIComponent(f[2])));return _.FM("https://"+H+"/signedin"+v+"/landing")};
var FQh=function(f,H,v){f.iframe||(f.iframe=document.createElement("iframe"),f.iframe.style.width="100%",f.iframe.style.height="100%",v!==112496729&&(f.iframe.style.colorScheme="auto"),f.isLatencyMeasurementExperiment&&(f.iframe.style.display="none"),_.T1(f.iframe,H),f.iframe.setAttribute("jsname","C5o1O"),CzA(f.iframe),document.body.appendChild(f.iframe))},CzA=function(f){f.style.bottom="-200vh";
f.style.position="fixed";f.style.right="-200vw";f.style.border="";f.style.left="";f.style.top="";f.style.zIndex="";f.style.pointerEvents="none";f.style.visibility="hidden"},QSt=function(f){f.iframe&&(f.isLatencyMeasurementExperiment||(f.JSC$19478_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=f.JSC$19478_previousHtmlOverscroll),f.JSC$19478_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=f.JSC$19478_previousBodyOverscroll),f.JSC$19478_previousBodyOverflow!==
void 0&&(document.body.style.overflow=f.JSC$19478_previousBodyOverflow),f.enableDialogA11yFix&&ERW(f,!1)),CzA(f.iframe))};
YQ.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(ERW(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var ERW=function(f,H){var v,t,M=(v=f.iframe)==null?void 0:(t=v.parentElement)==null?void 0:t.children;if(M)for(v=0;v<M.length;v++)t=M[v],t!==f.iframe&&(H?(t.hasAttribute("aria-hidden")&&_.hf([_.YO(LQ5)],t,"data-old-aria-hidden",t.getAttribute("aria-hidden")),_.hf([_.YO(xch)],t,"aria-hidden","true")):(t.removeAttribute("aria-hidden"),t.hasAttribute("data-old-aria-hidden")&&(_.hf([_.YO(BmG)],t,"aria-hidden",t.getAttribute("data-old-aria-hidden")),t.removeAttribute("data-old-aria-hidden"))))},mk=function(f,
H,v){var t;
(t=f.latencyCallback)==null||t.call(f,{latencyType:H,timestampEpochMillis:v!=null?v:Date.now()})};var Nm0=function(f,H,v){YQ.call(this,H,v===void 0?!1:v);this.consentPrimitiveRequest=f;f=GUr(this);_.pbw(f);this.src=this.getSrc();var t;this.initialLoadingStrategy=(t=_.V$(this.consentPrimitiveRequest,lc,4))==null?void 0:_.x_(t,4)},ceh;
_.e(Nm0,YQ);var yjG=function(f){var H=_.J("enable_primitive_dialog_aria_hide_siblings");f={request:f,enableDialogA11yFix:H===void 0?!1:H};ceh||(ceh=new Nm0(f.request,f.isLatencyMeasurementExperiment||_.x_(f.request,1)===2,f.enableDialogA11yFix));return ceh},GUr=function(f){var H;
return(H=_.V$(f.consentPrimitiveRequest,lc,4))==null?void 0:_.L8(H,1)},oR0=function(f,H){if(!_.gP(f.consentPrimitiveRequest,R7,5)){var v=f.consentPrimitiveRequest,t=new R7;
_.eV(v,5,t)}var M;if((M=_.V$(f.consentPrimitiveRequest,R7,5))==null||_.L_r(_.OU(M,8))==null){var h;(h=_.V$(f.consentPrimitiveRequest,R7,5))!=null&&_.UP(h,8,H)}},KQ5=function(f){var H;
return(H=_.V$(f.consentPrimitiveRequest,R7,5))==null?void 0:_.Yl(H,1)};
Nm0.prototype.isDarkTheme=function(){var f;return((f=_.V$(this.consentPrimitiveRequest,lc,4))==null?void 0:_.x_(f,2))===2};
var aeb=function(f){var H;return((H=_.V$(f.consentPrimitiveRequest,lc,4))==null?void 0:_.Yl(H,5))||void 0},uJi=function(f){f.channel=void 0;
f.prewarmChannel=void 0;f.iframe&&(document.body.contains(f.iframe)&&document.body.removeChild(f.iframe),f.iframe=void 0);ceh=void 0},WVi=function(f){return YQ.prototype.showPrimitive.call(f).then(function(H){return _.V$(H,WQr,2)})};for(var $Q={},XUW=($Q[64]="ma",$Q[73]="ogb",$Q[89]="cr",$Q[21]="test",$Q[0]="unkn",$Q[137]="con",$Q[155]="hl",$Q[78]="yt",$Q[171]="lp",$Q[172]="ap",$Q[177]="amo",$Q[178]="pqe",$Q[74]="gg",$Q[1]="gm",$Q[140]="am",$Q[193]="sc",$Q),Ae0=_.V(Object.keys(XUW)),bhr=Ae0.next();!bhr.done;bhr=Ae0.next());var ihF=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(ihF,_.mL);var kUW=[0,[2,3,4],_.cI,dNb,Lmw,_.CxT];var Tmi=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(Tmi,_.mL);var wUw=_.s4(Tmi,[0,eHb,_.C8,_.cI,_.C8,_.cI,kUW]);var qBW=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(qBW,_.mL);qBW.prototype.getCommand=function(){return _.x_(this,1)};
var fYb=function(){var f=new qBW;return _.K8(f,1,0)};var HZb=_.JD([0,eHb,_.C8,[0,_.cI,_.C8,-1]]);var vJF=new _.mQ("s"),tdG=new _.mQ("t"),MdG=new _.mQ("u"),hQt=new _.mQ("v"),RQp=function(f,H,v){_.$R.call(this,vJF);this.mediaKey=f;this.photoUrl=H;this.photoSource=v};
_.e(RQp,_.$R);var Vd0=function(){_.$R.call(this,tdG)};
_.e(Vd0,_.$R);var yki=function(f){f=f===void 0?!1:f;_.$R.call(this,MdG);this.isError=f};
_.e(yki,_.$R);var Yv0=function(){_.$R.call(this,hQt)};
_.e(Yv0,_.$R);var m7F=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,gJr=function(f){if(typeof f=="string"){if(f.charAt(0)==".")return $7x(f.substr(1));if(f.charAt(0)=="["){var H=m7F.exec(f);f=f.indexOf("=")==-1?void 0:H[3];return W60(H[1],f)}return OZG(f)}return f},$7x=function(f){return function(H){return H.getAttribute&&_.Qu(H,f)}},W60=function(f,H){return function(v){return H!==void 0?v.getAttribute&&v.getAttribute(f)==H:v.hasAttribute&&v.hasAttribute(f)}},OZG=function(f){f=f.toUpperCase();
return function(H){return(H=H.tagName)&&H.toUpperCase()==f}},IYW=function(){return!0};var Wm=function(f,H){this.JSC$19506_key_=f;this.JSC$19506_value_=H},OM=function(f){throw Error("qk`"+f.JSC$19506_key_);
},SvA=function(f,H){return new TypeError("rk`"+H+"`"+f.JSC$19506_key_+"`"+f.JSC$19506_value_+"`"+typeof f.JSC$19506_value_)};
Wm.prototype.string=function(f){return arguments.length==0?d7t(this):jvw(this,f)};
var jvw=function(f,H){var v;return(v=sv5(f))!=null?v:H},d7t=function(f){var H=sv5(f);
H===null&&OM(f);return H},sv5=function(f){var H=f.JSC$19506_value_;
if(H==null)return null;if(typeof H==="string")return H;throw SvA(f,"string");};
Wm.prototype.bool=function(f){if(arguments.length==0){var H=this.optionalBool();H===null&&OM(this)}else{var v;H=(v=this.optionalBool())!=null?v:f}return H};
Wm.prototype.optionalBool=function(){var f=this.JSC$19506_value_;if(f==null)return null;if(typeof f==="boolean")return f;if(typeof f==="string"){f=f.toLowerCase();if(f==="true"||f==="1")return!0;if(f==="false"||f==="0")return!1}throw SvA(this,"boolean");};
Wm.prototype.number=function(f){if(arguments.length==0){var H=ZZi(this);H===null&&OM(this)}else H=JkF(this,f);return H};
var JkF=function(f,H){var v;return(v=ZZi(f))!=null?v:H},ZZi=function(f){var H=f.JSC$19506_value_;
if(H==null)return null;if(typeof H==="number")return H;if(typeof H==="string"){var v=Number(H);if(!isNaN(v)&&(v!==0||H.trim().length!==0))return v}throw SvA(f,"number");};
Wm.prototype.toString=function(){return d7t(this)};
Wm.prototype.enum=function(f,H){var v=!0,t=void 0,M;for(M in f){var h=f[M];v&&(v=!1,t=typeof h==="number"?JkF(this,H):jvw(this,H));if(h==t)return t}JSON.stringify(f);return t};
Wm.prototype.array=function(f){if(arguments.length==0){var H=lYb(this);H===null&&OM(this);return H}H=lYb(this);return H==null?f:H};
var lYb=function(f){var H=f.JSC$19506_value_;if(H==null)return null;Array.isArray(H)||(typeof H!=="string"?H=[H]:(H=H.trim(),H=H==""?[]:H.split(",").map(function(v){return v.trim()})));
return U7W(f,H)},U7W=function(f,H){var v=f.JSC$19506_key_+"[";
return Array.from(H,function(t,M){return new Wm(v+M+"]",t)})};
Wm.prototype.object=function(f){var H=this.JSC$19506_value_;if(H==null)return f===void 0&&OM(this),f;if(typeof H==="object"&&H.constructor===Object){f={};var v=this.JSC$19506_key_+".",t;for(t in H)f[t]=new Wm(v+t,H[t]);return f}throw SvA(this,"object");};var gf=function(f){this.list_=eQG(f)},eQG=function(f){if(f instanceof gf)f=f.list_;
else if(f[0]instanceof gf){for(var H=new Set,v=0;v<f.length;v++)for(var t=_.V(f[v].list_),M=t.next();!M.done;M=t.next())H.add(M.value);f=H}return[].concat(_.pS(f))};
_.R=gf.prototype;_.R.each=function(f,H,v){((v===void 0?0:v)?ygx:_.X3)(this.list_,f,H);return this};
_.R.size=function(){return this.list_.length};
_.R.isEmpty=function(){return this.list_.length===0};
_.R.get=function(f){return this.list_[f]||null};
_.R.el=function(){return this.list_[0]||null};
_.R.map=function(f,H){return _.uh(this.list_,f,H)};
_.R.equals=function(f){return this===f||_.VM(this.list_,f.list_)};
_.R.first=function(){return this.list_.length==0?null:new I7(this.list_[0])};
_.R.last=function(){return this.list_.length==0?null:new I7(this.list_[this.list_.length-1])};
_.R.find=function(f){var H=[];this.each(function(v){v=v.querySelectorAll(String(f));for(var t=0;t<v.length;t++)H.push(v[t])});
return new gf(H)};
_.R.parent=function(){var f=[];this.each(function(H){(H=H.parentElement||null)&&!_.cR(f,H)&&f.push(H)});
return new gf(f)};
_.R.children=function(){var f=[];this.each(function(H){H=_.z_(H);for(var v=0;v<H.length;v++)f.push(H[v])});
return new gf(f)};
_.R.filter=function(f){f=_.vI(this.list_,gJr(f));return new gf(f)};
_.R.closest=function(f){var H=[],v=gJr(f),t=function(M){return _.wk(M)&&v(M)};
this.each(function(M){(M=_.EZ(M,t,!0))&&!_.cR(H,M)&&H.push(M)});
return new gf(H)};
_.R.next=function(f){return L6w(this,_.EgH,f)};
_.R.prev=function(f){return L6w(this,xN0,f)};
var L6w=function(f,H,v){var t=[];var M=v?gJr(v):IYW;f.each(function(h){(h=H(h))&&M(h)&&t.push(h)});
return new gf(t)};
gf.prototype.setClass=function(f){return this.each(function(H){_.ph(H,f)})};
var x70=function(f,H){return f.each(function(v){_.vn(v,H)})},BKF=function(f,H){return f.each(function(v){_.fV(v,H)})};
gf.prototype.toggleClass=function(f,H){return H===!0?x70(this,f):H===!1?BKF(this,f):this.each(function(v){_.Qu(v,f)?_.fV(v,f):_.vn(v,f)})};
gf.prototype.setText=function(f){return this.each(function(H){_.F_(H,f)})};
var zQW=function(f){f.each(function(H){H.removeAttribute("aria-hidden")})};
gf.prototype.getStyle=function(f){if(this.list_.length>0){var H=this.list_[0],v=H.style[_.ly(f)];return typeof v!=="undefined"?v:H.style[_.v5T(H,f)]||""}};
gf.prototype.getData=function(f){if(this.list_.length===0)return new Wm(f,null);var H=OP5(this.list_[0],f);return new Wm(f,H)};
gf.prototype.focus=function(f){try{f?this.el().focus(f):this.el().focus()}catch(H){}return this};
gf.prototype.click=function(){var f=_.Gf(this.el());if(f.createEvent){var H=f.createEvent("MouseEvents");H.initMouseEvent("click",!0,!0,f.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(H)}else f=f.createEventObject(),f.clientX=0,f.clientY=0,f.screenX=0,f.screenY=0,f.altKey=!1,f.ctrlKey=!1,f.shiftKey=!1,f.button=0,this.el().fireEvent("onclick",f)};
var S8=function(f,H,v,t){function M(m,W,I){var S=W;W&&W.parentNode&&(S=W.cloneNode(!0));m(S,I)}
t=t===void 0?!1:t;if(f.list_.length==1){var h=f.list_[0],y=function(m){return H(m,h)};
v instanceof gf?v.each(y,void 0,t):Array.isArray(v)?(t?ygx:_.X3)(v,y):y(v);return f}return f.each(function(m){v instanceof gf?v.each(function(W){M(H,W,m)}):Array.isArray(v)?_.X3(v,function(W){M(H,W,m)}):M(H,v,m)})};
_.R=gf.prototype;_.R.append=function(f){return S8(this,function(H,v){H&&v.appendChild(H)},f)};
_.R.appendTo=function(f){(new gf([f])).append(this);return this};
_.R.remove=function(){return S8(this,function(f,H){_.U1(H)},null)};
_.R.empty=function(){return S8(this,function(f,H){_.L6(H)},null)};
_.R.after=function(f,H){return S8(this,function(v,t){v&&_.B4(v,t)},f,!(H===void 0||H))};
_.R.before=function(f){return S8(this,function(H,v){H&&_.x0(H,v)},f)};
_.R.replaceWith=function(f){return S8(this,function(H,v){H&&_.PCg(H,v)},f)};
_.R.toggle=function(f){return this.each(function(H){_.kl(H,f)})};
_.R.show=function(){return this.toggle(!0)};
_.R.hide=function(){return this.toggle(!1)};
_.R.trigger=function(f,H,v,t){return F6b(this,f,H,v,t)};
var F6b=function(f,H,v,t,M){return f.each(function(h){_.S05(_.Gf(h)).triggerWizEventInternal(h,H,v,t,M)})},I7=function(f,H){f instanceof gf&&(H=f.list_,f=null);
this.list_=eQG(f!=null?[f]:H)};
_.f8(I7,gf);_.R=I7.prototype;_.R.children=function(){return new gf(Array.prototype.slice.call(_.z_(this.list_[0])))};
_.R.each=function(f,H){f.call(H,this.list_[0],0);return this};
_.R.size=function(){return 1};
_.R.el=function(){return this.list_[0]};
_.R.first=function(){return this};var df=function(f,H){H=H===void 0?window:H;this.hostId=f;this.JSC$19517_win=H;this.scheme="https";this.domain="myaccount.google.com";this.authUser=this.port=0;this.colorScheme="";this.parentElement=document.body;this.iframePosition="fixed";this.opened=!1;this.JSC$19517_previousHtmlOverscroll=this.JSC$19517_previousBodyOverscroll=this.JSC$19517_previousBodyOverflow="";this.eventTarget=new _.Sg;this.JSC$19517_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
D7x=function(f){var H=rkG(rkG(rkG(new K6b(78),"po"),"hppp"),"hhc");
H.authUser=Number(_.a8("SESSION_INDEX","0"));H.colorScheme=f;return H};
df.prototype.getOrigin=function(){return this.origin?this.origin:_.iz(_.bz(_.Ae(new _.qC,this.JSC$19517_win.location.protocol),this.JSC$19517_win.location.hostname),this.JSC$19517_win.location.port).toString()};
df.prototype.getTargetOrigin=function(){return _.iz(_.bz(_.Ae(new _.qC,this.scheme),this.domain),this.port)};
df.prototype.preloadIframe=function(f){var H=this;if(this.iframeLoadPromise===void 0){var v=document.createElement("iframe");this.iframe=v;Y65(v,f);this.iframeLoadPromise=new Promise(function(t,M){var h=!1,y=function(m){m.stopPropagation();v.removeEventListener("error",y);v.removeEventListener("securitypolicyviolation",y);M(Error("sk",{cause:m}))};
v.addEventListener("error",y);v.addEventListener("securitypolicyviolation",y);setTimeout(function(){h||M(Error("tk"))},3E4);
oJp(H,v,function(){h=!0;v.removeEventListener("error",y);v.removeEventListener("securitypolicyviolation",y);t()})});
nJW(this);f=this.getTargetOrigin().toString();v.setAttribute("allow","camera "+f+"; display-capture "+f);this.parentElement.appendChild(v)}return this.iframeLoadPromise};
var u4h=function(f,H){var v,t;return _.Y(function(M){if(M.nextAddress==1)return v=HG0(getComputedStyle(f.parentElement).direction==="rtl"),f.parentElement.appendChild(v),document.activeElement instanceof HTMLElement&&(f.elementToFocusAfterClose=document.activeElement),_.Zc(M,2),M.yield(f.preloadIframe(H),4);if(M.nextAddress!=2){f.parentElement.removeChild(v);f.JSC$19517_previousBodyOverflow=f.parentElement.style.overflow;f.JSC$19517_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
f.JSC$19517_previousBodyOverscroll=f.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";f.parentElement.style.overscrollBehavior="contain";f.parentElement.style.overflow="hidden";var h=f.iframe;h.style.bottom="0";h.style.border="none";h.style.height="100%";h.style.left="0";h.style.position=f.iframePosition;h.style.right="0";h.style.top="0";h.style.width="100%";h.style.zIndex="2202";h.setAttribute("aria-hidden","false");h.setAttribute("aria-modal","true");
f.opened=!0;pCh(f);return _.ch(M,0)}t=_.xu(M);f.parentElement.removeChild(v);R90(f.isDarkTheme());QvW(f,!1);throw Error("uk",{cause:t});})},QvW=function(f,H){H=H===void 0?!0:H;
f.iframe!==void 0&&(aYt(f),document.documentElement.style.overscrollBehavior=f.JSC$19517_previousHtmlOverscroll,f.parentElement.style.overscrollBehavior=f.JSC$19517_previousBodyOverscroll,f.parentElement.style.overflow=f.JSC$19517_previousBodyOverflow,f.elementToFocusAfterClose!==void 0&&(f.elementToFocusAfterClose.focus(),f.elementToFocusAfterClose=void 0),H?nJW(f):(f.parentElement.removeChild(f.iframe),f.iframe=void 0,f.iframeLoadPromise=void 0,f.mainChannel=void 0),f.opened=!1)},aYt=function(f){f.backgroundElementsAriaHiddenIsNull&&
(zQW(f.backgroundElementsAriaHiddenIsNull),f.backgroundElementsAriaHiddenIsNull=void 0);
f.backgroundElementsAriaHiddenIsFalse&&(f.backgroundElementsAriaHiddenIsFalse.each(function(H){H.setAttribute("aria-hidden","false")}),f.backgroundElementsAriaHiddenIsFalse=void 0);
f.backgroundElementsWithoutInert&&(f.backgroundElementsWithoutInert.each(function(H){H.removeAttribute("inert")}),f.backgroundElementsWithoutInert=void 0)},pCh=function(f){f.backgroundElementsAriaHiddenIsNull=(new I7(f.iframe.parentElement)).children().filter(function(H){return H.getAttribute("aria-hidden")===null&&H!==f.iframe});
f.backgroundElementsAriaHiddenIsNull.each(function(H){H.setAttribute("aria-hidden","true")});
f.backgroundElementsAriaHiddenIsFalse=(new I7(f.iframe.parentElement)).children().filter(function(H){return H.getAttribute("aria-hidden")==="false"&&H!==f.iframe});
f.backgroundElementsAriaHiddenIsFalse.each(function(H){H.setAttribute("aria-hidden","true")});
f.backgroundElementsWithoutInert=(new I7(f.iframe.parentElement)).children().filter(function(H){return!H.hasAttribute("inert")&&H!==f.iframe});
f.backgroundElementsWithoutInert.each(function(H){H.setAttribute("inert","true")})},nJW=function(f){f=f.iframe;
f.style.bottom="-1000px";f.style.position="fixed";f.style.right="-1000px";f.style.border="";f.style.height="";f.style.left="";f.style.top="";f.style.width="";f.style.zIndex="";f.setAttribute("aria-hidden","true");f.setAttribute("aria-modal","false")};
df.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var K6b=function(f,H){df.call(this,XUW[f],H);this.options=[];this.style=""};
_.e(K6b,df);var PNp=function(f){f.style="youtube";return f},GM0=function(f,H){f.eventTarget.listen(MdG,H);
return f},CNt=function(f,H){f.eventTarget.listen(vJF,H);
return f},rkG=function(f,H){f.options.push(H);
return f},EJw=function(f){var H=[f.getOrigin()];
f.ancestorOrigins&&H.push.apply(H,_.pS(f.ancestorOrigins));var v=new _.qC(f.JSC$19517_win.location.href),t=f.startUrl?f.startUrl:f.options.includes("po")?"profile-picture/art":"profile-picture";H=UN(_.kR(f.getTargetOrigin(),t),"origin",H);f.startUrl&&_.iS(H,"startPath",f.startUrl);f.authUser>0&&_.iS(H,"authuser",f.authUser);f.pageId!==void 0&&_.iS(H,"pageId",f.pageId);_.iS(H,"hostId",f.hostId);f.jsMode!==void 0&&_.iS(H,"jsmode",f.jsMode);f.rectangleRatio!==void 0&&_.iS(H,"rectangleRatio",f.rectangleRatio);
f.options.length>0&&_.iS(H,"opts",f.options.join(","));try{for(var M=_.V(["utm_source","utm_medium","utm_campaign","utm_content"]),h=M.next();!h.done;h=M.next()){var y=h.value;_.bS(v,y)&&_.iS(H,y,_.bS(v,y))}var m,W=(m=f.hl)!=null?m:_.bS(v,"hl");W!==void 0&&_.iS(H,"hl",W)}catch(I){if(!(I instanceof URIError))throw I;}f.colorScheme&&_.iS(H,"theme",f.colorScheme);f.style&&_.iS(H,"style",f.style);return H},NKt=function(f,H){f.mainChannel=_.bT({destination:f.JSC$19517_win,
iframe:H,origin:f.getTargetOrigin().toString(),channelName:"ow",onMessage:function(v){v=wUw(v.data);if(H===f.iframe)switch(_.x_(v,1)){case 1:f.eventTarget.dispatchEvent(new yki);QvW(f);break;case 2:f.eventTarget.dispatchEvent(new RQp(_.L8(v,4),_.L8(v,2),_.x_(v,5),_.V$(v,ihF,6)));break;case 0:var t;f.eventTarget.dispatchEvent(new Vd0(_.L8(v,2),(t=_.x_(v,3))!=null?t:0));break;case 3:f.eventTarget.dispatchEvent(new yki(!0));QvW(f,!1);break;case 4:f.eventTarget.dispatchEvent(new Yv0)}}})},oJp=function(f,
H,v){_.bT({destination:f.JSC$19517_win,
iframe:H,origin:_.iz(_.bz(_.Ae(new _.qC,f.scheme),f.domain),f.port).toString(),channelName:"owi",onMessage:function(t){H===f.iframe&&(v!==void 0&&v(),NKt(f,H),f.opened&&f.mainChannel.send(HZb(fYb())),t.reply(),oJp(f,H))}})};
K6b.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?df.prototype.preloadIframe.call(this,EJw(this).toString()):this.iframeLoadPromise};
K6b.prototype.openPicker=function(f){var H=this;return _.Y(function(v){if(v.nextAddress==1)return H.startUrl=f?f:H.options.includes("po")?"profile-picture/art":"profile-picture",v.yield(u4h(H,EJw(H).toString()),2);if(H.mainChannel){var t=H.mainChannel,M=t.send;var h=fYb();h=_.rr(h,2,H.startUrl);M.call(t,HZb(h))}_.Bj(v)})};var ckG=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(ckG,_.mL);_.R=ckG.prototype;_.R.getSize=function(){return r0(this,1)};
_.R.setSize=function(f){return _.rP(this,1,f)};
_.R.getWidth=function(){return r0(this,12)};
_.R.getHeight=function(){return r0(this,13)};
_.R.setCenterCrop=function(f){return _.O1(this,20,f)};
_.R.getHtml=function(){return _.lT(this,4)};
_.R.getToken=function(){return _.Jx(this,24)};
_.R.setToken=function(f){return _.rr(this,24,f)};
_.R.getBackgroundColor=function(){return r0(this,87)};
_.R.hasBackgroundColor=function(){return _.VG(_.OU(this,87))!=null};
_.R.getStoryboardLevel=function(){return r0(this,109)};var j8=function(f){this.JSC$19525_value_=void 0;this.childNodes_={};if(f){var H=_.K7T(f);f=_.XJ(f);for(var v=0;v<H.length;v++)this.set(H[v],f[v])}};
j8.prototype.set=function(f,H){XCW(this,f,H,!1)};
j8.prototype.add=function(f,H){XCW(this,f,H,!0)};
var XCW=function(f,H,v,t){for(var M=0;M<H.length;M++){var h=H.charAt(M);f.childNodes_[h]||(f.childNodes_[h]=new j8);f=f.childNodes_[h]}if(t&&f.JSC$19525_value_!==void 0)throw Error("vk`"+H);f.JSC$19525_value_=v},Akw=function(f,H){for(var v=0;v<H.length;v++)if(f=f.childNodes_[H.charAt(v)],!f)return;
return f};
j8.prototype.get=function(f){return(f=Akw(this,f))?f.JSC$19525_value_:void 0};
j8.prototype.getValues=function(){var f=[];bZx(this,f);return f};
var bZx=function(f,H){f.JSC$19525_value_!==void 0&&H.push(f.JSC$19525_value_);for(var v in f.childNodes_)bZx(f.childNodes_[v],H)};
j8.prototype.getKeys=function(f){var H=[];if(f){for(var v=this,t=0;t<f.length;t++){var M=f.charAt(t);if(!v.childNodes_[M])return[];v=v.childNodes_[M]}iZt(v,f,H)}else iZt(this,"",H);return H};
var iZt=function(f,H,v){f.JSC$19525_value_!==void 0&&v.push(H);for(var t in f.childNodes_)iZt(f.childNodes_[t],H+t,v)};
_.R=j8.prototype;_.R.containsKey=function(f){return this.get(f)!==void 0};
_.R.containsValue=function(f){if(this.JSC$19525_value_===f)return!0;for(var H in this.childNodes_)if(this.childNodes_[H].containsValue(f))return!0;return!1};
_.R.clear=function(){this.childNodes_={};this.JSC$19525_value_=void 0};
_.R.remove=function(f){for(var H=this,v=[],t=0;t<f.length;t++){var M=f.charAt(t);if(!H.childNodes_[M])throw Error("wk`"+f);v.push([H,M]);H=H.childNodes_[M]}f=H.JSC$19525_value_;for(delete H.JSC$19525_value_;v.length>0;)if(t=v.pop(),H=t[0],t=t[1],H.childNodes_[t].isEmpty())delete H.childNodes_[t];else break;return f};
_.R.clone=function(){return new j8(this)};
_.R.getCount=function(){return rQp(this.getValues())};
_.R.isEmpty=function(){return this.JSC$19525_value_===void 0&&_.QA.isEmpty(this.childNodes_)};var gzw=function(){if(!kMw){var f=kMw=new j8,H;for(H in TKx)f.add(H,TKx[H])}},kMw,sM=function(f,H){this.types=f;
this.setters=H},TKx={a:new sM([3,
0],[function(f,H){_.O1(f,21,H)},
function(f,H){_.rP(f,56,H)}]),
al:new sM([3],[function(f,H){_.O1(f,74,H)}]),
b:new sM([3,0],[function(f,H){_.O1(f,23,H)},
function(f,H){_.rP(f,38,H)}]),
ba:new sM([0],[function(f,H){_.rP(f,85,H)}]),
bc:new sM([0],[function(f,H){_.rP(f,87,H)}]),
br:new sM([0],[function(f,H){_.rP(f,86,H)}]),
c:new sM([3,0],[function(f,H){_.O1(f,2,H)},
function(f,H){_.rP(f,39,H)}]),
cc:new sM([3],[function(f,H){_.O1(f,51,H)}]),
ci:new sM([3],[function(f,H){_.O1(f,32,H)}]),
ckm:new sM([3],[function(f,H){_.O1(f,104,H)}]),
cp:new sM([0],[function(f,H){_.rP(f,92,H)}]),
cr:new sM([3],[function(f,H){_.O1(f,108,H)}]),
cv:new sM([0],[function(f,H){_.rP(f,94,H)}]),
d:new sM([3],[function(f,H){_.O1(f,3,H)}]),
dc:new sM([5],[function(f,H){_.rr(f,99,H)}]),
df:new sM([3],[function(f,H){_.O1(f,80,H)}]),
dv:new sM([3],[function(f,H){_.O1(f,90,H)}]),
e:new sM([0],[function(f,H){_.rP(f,15,H)}]),
em:new sM([0],[function(f,H){_.rP(f,107,H)}]),
f:new sM([4],[function(f,H){_.rr(f,16,H)}]),
fg:new sM([3],[function(f,H){_.O1(f,34,H)}]),
fh:new sM([3],[function(f,H){_.O1(f,30,H)}]),
fm:new sM([3],[function(f,H){_.O1(f,84,H)}]),
fo:new sM([2],[function(f,H){_.YX(f,79,_.wh(H))}]),
ft:new sM([3],[function(f,H){_.O1(f,50,H)}]),
fv:new sM([3],[function(f,H){_.O1(f,31,H)}]),
g:new sM([3],[function(f,H){_.O1(f,14,H)}]),
gce:new sM([4],[function(f,H){_.rr(f,112,H)}]),
gd:new sM([3],[function(f,H){_.O1(f,83,H)}]),
gm:new sM([3],[function(f,H){_.O1(f,105,H)}]),
h:new sM([3,0],[function(f,H){_.O1(f,4,H)},
function(f,H){_.rP(f,13,H)}]),
i:new sM([3],[function(f,H){_.O1(f,22,H)}]),
ic:new sM([0],[function(f,H){_.rP(f,71,H)}]),
id:new sM([3],[function(f,H){_.O1(f,70,H)}]),
il:new sM([3],[function(f,H){_.O1(f,96,H)}]),
ip:new sM([3],[function(f,H){_.O1(f,54,H)}]),
iv:new sM([0],[function(f,H){_.UP(f,75,H)}]),
j:new sM([1],[function(f,H){H=H==null?H:$CW(H);_.YX(f,29,H)}]),
k:new sM([3,0],[function(f,H){_.O1(f,17,H)},
function(f,H){_.rP(f,42,H)}]),
l:new sM([0],[function(f,H){_.rP(f,44,H)}]),
lf:new sM([3],[function(f,H){_.O1(f,65,H)}]),
lo:new sM([3],[function(f,H){_.O1(f,97,H)}]),
m:new sM([0],[function(f,H){_.rP(f,63,H)}]),
md:new sM([3],[function(f,H){_.O1(f,91,H)}]),
mm:new sM([4],[function(f,H){_.rr(f,81,H)}]),
mo:new sM([3],[function(f,H){_.O1(f,73,H)}]),
mp:new sM([0],[function(f,H){_.rP(f,115,H)}]),
mv:new sM([3],[function(f,H){_.O1(f,66,H)}]),
n:new sM([3],[function(f,H){f.setCenterCrop(H)}]),
nc:new sM([3],[function(f,H){_.O1(f,55,H)}]),
nd:new sM([3],[function(f,H){_.O1(f,53,H)}]),
ng:new sM([3],[function(f,H){_.O1(f,95,H)}]),
ngm:new sM([3],[function(f,H){_.O1(f,106,H)}]),
no:new sM([3],[function(f,H){_.O1(f,37,H)}]),
ns:new sM([3],[function(f,H){_.O1(f,40,H)}]),
nt0:new sM([4],[function(f,H){_.rr(f,36,H)}]),
ntm:new sM([3],[function(f,H){_.O1(f,114,H)}]),
nu:new sM([3],[function(f,H){_.O1(f,46,H)}]),
nw:new sM([3],[function(f,H){_.O1(f,48,H)}]),
o:new sM([1,3],[function(f,H){H=H==null?H:$CW(H);_.YX(f,7,H)},
function(f,H){_.O1(f,27,H)}]),
p:new sM([3,0],[function(f,H){_.O1(f,19,H)},
function(f,H){_.rP(f,43,H)}]),
pa:new sM([3],[function(f,H){_.O1(f,61,H)}]),
pc:new sM([0],[function(f,H){_.rP(f,88,H)}]),
pd:new sM([3],[function(f,H){_.O1(f,60,H)}]),
pf:new sM([3],[function(f,H){_.O1(f,67,H)}]),
pg:new sM([3],[function(f,H){_.O1(f,72,H)}]),
pi:new sM([2],[function(f,H){_.YX(f,76,_.wh(H))}]),
pp:new sM([3],[function(f,H){_.O1(f,52,H)}]),
pt:new sM([4],[function(f,H){_.rr(f,111,H)}]),
q:new sM([4],[function(f,H){_.rr(f,28,H)}]),
r:new sM([3,0],[function(f,H){_.O1(f,6,H)},
function(f,H){_.rP(f,26,H)}]),
ra:new sM([3],[function(f,H){_.O1(f,103,H)}]),
rf:new sM([3],[function(f,H){_.O1(f,100,H)}]),
rg:new sM([3],[function(f,H){_.O1(f,59,H)}]),
rh:new sM([3],[function(f,H){_.O1(f,49,H)}]),
rj:new sM([3],[function(f,H){_.O1(f,57,H)}]),
ro:new sM([2],[function(f,H){_.YX(f,78,_.wh(H))}]),
rp:new sM([3],[function(f,H){_.O1(f,58,H)}]),
rw:new sM([3],[function(f,H){_.O1(f,35,H)}]),
rwa:new sM([3],[function(f,H){_.O1(f,64,H)}]),
rwu:new sM([3],[function(f,H){_.O1(f,41,H)}]),
s:new sM([3,0],[function(f,H){_.O1(f,33,H)},
function(f,H){f.setSize(H)}]),
sb:new sM([0],[function(f,H){_.rP(f,110,H)}]),
sc:new sM([0],[function(f,H){_.rP(f,89,H)}]),
sg:new sM([3],[function(f,H){_.O1(f,82,H)}]),
sl:new sM([0],[function(f,H){_.rP(f,109,H)}]),
sm:new sM([3],[function(f,H){_.O1(f,93,H)}]),
t:new sM([4],[function(f,H){f.setToken(H)}]),
tm:new sM([3],[function(f,H){_.O1(f,113,H)}]),
u:new sM([3],[function(f,H){_.O1(f,18,H)}]),
ut:new sM([3],[function(f,H){_.O1(f,45,H)}]),
v:new sM([0],[function(f,H){_.rP(f,62,H)}]),
vb:new sM([0],[function(f,H){_.UP(f,68,H)}]),
vf:new sM([4],[function(f,H){_.rr(f,102,H)}]),
vl:new sM([0],[function(f,H){_.UP(f,69,H)}]),
vm:new sM([3],[function(f,H){_.O1(f,98,H)}]),
w:new sM([0],[function(f,H){_.rP(f,12,H)}]),
x:new sM([0],[function(f,H){_.rP(f,9,H)}]),
y:new sM([0],[function(f,H){_.rP(f,10,H)}]),
ya:new sM([2],[function(f,H){_.YX(f,77,_.wh(H))}]),
z:new sM([0],[function(f,H){_.rP(f,11,H)}])};
gzw.prototype.parse=function(f){var H=new ckG,v=new ckG;if(f=="")f=!0;else{f=f.split("-");for(var t=!0,M=0;M<f.length;M++){var h=f[M];if(h.length==0)t=!1;else{var y=h,m=!1;var W=y;var I=y.charAt(0);I!=I.toLowerCase()&&(m=!0,W=y.charAt(0).toLowerCase()+y.substring(1));var S=kMw;for(I=1;I<=W.length;++I){var d=S,Z=W.substring(0,I);if(Z.length==0?d.isEmpty():!Akw(d,Z))break}W=I==1?null:(W=S.get(W.substring(0,I-1)))?{option:y.substring(0,I-1),value:y.substring(I-1),signed:m,attributes:W}:null;if(W){y=
[];m=[];I=!1;for(S=0;S<W.attributes.types.length;S++){d=W.attributes.types[S];var l=W.value;Z=M;if(W.signed&&d==1)for(var L=l.length;L<12&&Z<f.length-1;)l+="-"+f[Z+1],L=l.length,++Z;else if(d==2)for(;Z<f.length-1&&f[Z+1].match(/^[\d\.]/);)l+="-"+f[Z+1],++Z;L=W.attributes.setters[S];l=wCW(this,d)(W.option,l,H,v,L);if(l===null){I=!0;M=Z;break}else y.push(d),m.push(l)}if(!I)for(W=0;W<m.length;W++)S=y[W],l=m[W],qvF(this,S)(h,l);t=t&&I}else t=!1}}f=t}return new fBp(H,v,f)};
var Z8=function(f,H,v,t,M,h){M(v,H);f=f.charAt(0);h=h(f==f.toUpperCase());M(t,h)};
_.R=gzw.prototype;_.R.parseAndSetIntOption_=function(f,H,v,t,M){if(H=="")return 0;isFinite(H)&&(H=String(H));H=typeof H==="string"?/^\s*-?0x/i.test(H)?parseInt(H,16):parseInt(H,10):NaN;if(isNaN(H))return 1;Z8(f,H,v,t,M,Number);return null};
_.R.logIntParseError_=function(){};
_.R.parseAndSetFloatOption_=function(f,H,v,t,M){if(H=="")return 0;var h=Number(H);H=h==0&&_.ms(H)?NaN:h;if(isNaN(H))return 1;Z8(f,H,v,t,M,Number);return null};
_.R.logFloatParseError_=function(){};
_.R.parseAndSetBoolOption_=function(f,H,v,t,M){if(H!="")return 2;Z8(f,!0,v,t,M,Boolean);return null};
_.R.logBoolParseError_=function(){};
_.R.parseAndSetStringOption_=function(f,H,v,t,M){if(H=="")return 0;Z8(f,H,v,t,M,function(h){return h?"1":""});
return null};
_.R.logStringParseError_=function(){};
_.R.parseAndSetUint64Base64Option_=function(f,H,v,t,M){if(H=="")return 0;Z8(f,H,v,t,M,function(h){return h?1:0});
return null};
var wCW=function(f,H){switch(H){case 0:return(0,_.FH)(f.parseAndSetIntOption_,f);case 2:return(0,_.FH)(f.parseAndSetFloatOption_,f);case 3:return(0,_.FH)(f.parseAndSetBoolOption_,f);case 4:return(0,_.FH)(f.parseAndSetStringOption_,f);case 1:return(0,_.FH)(f.parseAndSetUint64Base64Option_,f);default:return function(){}}},qvF=function(f,H){switch(H){case 0:return(0,_.FH)(f.logIntParseError_,f);
case 2:return(0,_.FH)(f.logFloatParseError_,f);case 3:return(0,_.FH)(f.logBoolParseError_,f);case 4:case 1:return(0,_.FH)(f.logStringParseError_,f);default:return function(){}}},fBp=function(f,H,v){this.valueProto_=f;
this.signatureFlagProto_=H;this.JSC$19537_valid_=v};
fBp.prototype.isValid=function(){return this.JSC$19537_valid_};var mSx=function(f){this.JSC$19538_parser_=null;this.JSC$19538_components_=[];this.JSC$19538_parsedOptions_=null;HRi(this,f)},v4t=function(f){f.JSC$19538_parser_==null&&(f.JSC$19538_parser_=new gzw);
return f.JSC$19538_parser_},HRi=function(f,H){f.JSC$19538_parsedOptions_=H?typeof H==="string"?v4t(f).parse(H):H:v4t(f).parse("")},JK=function(f,H){return f==H?!1:!0};
_.R=mSx.prototype;_.R.JSC$19540_setCrop=function(f){f=f||void 0;var H=this.JSC$19538_parsedOptions_,v=H.valueProto_;JK(f,_.lT(v,2),_.lT(H.signatureFlagProto_,2))&&_.O1(v,2,f);return this};
_.R.JSC$19540_setCircleCrop=function(f){f=f||void 0;var H=this.JSC$19538_parsedOptions_,v=H.valueProto_;JK(f,Fk(v,51),Fk(H.signatureFlagProto_,51))&&_.O1(v,51,f);return this};
_.R.JSC$19540_setImageCrop=function(f){f=f||void 0;var H=this.JSC$19538_parsedOptions_,v=H.valueProto_;JK(f,Fk(v,32),Fk(H.signatureFlagProto_,32))&&_.O1(v,32,f);return this};
_.R.JSC$19540_setHeight=function(f){var H=this.JSC$19538_parsedOptions_,v=H.valueProto_;JK(f,v.getHeight(),H.signatureFlagProto_.getHeight())&&_.rP(v,13,f);return this};
_.R.setCenterCrop=function(f){f=f||void 0;var H=this.JSC$19538_parsedOptions_,v=H.valueProto_;JK(f,_.lT(v,20),_.lT(H.signatureFlagProto_,20))&&v.setCenterCrop(f);return this};
_.R.JSC$19540_setSmartCrop=function(f){f=f||void 0;var H=this.JSC$19538_parsedOptions_,v=H.valueProto_;JK(f,_.lT(v,19),_.lT(H.signatureFlagProto_,19))&&_.O1(v,19,f);return this};
_.R.JSC$19540_setPad=function(f){f=f||void 0;var H=this.JSC$19538_parsedOptions_,v=H.valueProto_;JK(f,Fk(v,60),Fk(H.signatureFlagProto_,60))&&_.O1(v,60,f);return this};
_.R.JSC$19540_setSmartCropUseFace=function(f){f=f||void 0;var H=this.JSC$19538_parsedOptions_,v=H.valueProto_;JK(f,_.lT(v,67),_.lT(H.signatureFlagProto_,67))&&_.O1(v,67,f);return this};
_.R.JSC$19540_setSmartCropNoClip=function(f){f=f||void 0;var H=this.JSC$19538_parsedOptions_,v=H.valueProto_;JK(f,_.lT(v,52),_.lT(H.signatureFlagProto_,52))&&_.O1(v,52,f);return this};
_.R.setSize=function(f){var H=this.JSC$19538_parsedOptions_,v=H.valueProto_;JK(f,v.getSize(),H.signatureFlagProto_.getSize())&&v.setSize(f);return this};
_.R.setToken=function(f){f=f||void 0;var H=this.JSC$19538_parsedOptions_,v=H.valueProto_;JK(f,v.getToken(),H.signatureFlagProto_.getToken())&&v.setToken(f);return this};
_.R.JSC$19540_setWidth=function(f){var H=this.JSC$19538_parsedOptions_,v=H.valueProto_;JK(f,v.getWidth(),H.signatureFlagProto_.getWidth())&&_.rP(v,12,f);return this};
_.R.clearOptions=function(){HRi(this,"");return this};
_.R.build=function(){this.JSC$19538_components_.length=0;var f=this.JSC$19538_parsedOptions_,H=f.valueProto_;f=f.signatureFlagProto_;l6(this,"s",H.getSize(),f.getSize());l6(this,"w",H.getWidth(),f.getWidth());UM(this,"c",_.lT(H,2),_.lT(f,2));UM(this,"d",_.lT(H,3),_.lT(f,3));l6(this,"h",H.getHeight(),f.getHeight());UM(this,"s",Fk(H,33),Fk(f,33));UM(this,"h",H.getHtml(),f.getHtml());UM(this,"p",_.lT(H,19),_.lT(f,19));UM(this,"pp",_.lT(H,52),_.lT(f,52));UM(this,"pf",_.lT(H,67),_.lT(f,67));UM(this,"n",
_.lT(H,20),_.lT(f,20));l6(this,"r",r0(H,26),r0(f,26));UM(this,"r",_.lT(H,6),_.lT(f,6));UM(this,"o",Fk(H,27),Fk(f,27));var v=_.JZ(H,7,_.WI);e8(this,"o",v,_.JZ(f,7,_.WI));v=_.JZ(H,29,_.WI);e8(this,"j",v,_.JZ(f,29,_.WI));l6(this,"x",r0(H,9),r0(f,9));l6(this,"y",r0(H,10),r0(f,10));l6(this,"z",r0(H,11),r0(f,11));UM(this,"g",_.lT(H,14),_.lT(f,14));l6(this,"e",r0(H,15),r0(f,15));e8(this,"f",_.Jx(H,16),_.Jx(f,16));UM(this,"k",Fk(H,17),Fk(f,17));UM(this,"u",Fk(H,18),!0);UM(this,"ut",Fk(H,45),!0);UM(this,"i",
Fk(H,22),!0);UM(this,"a",Fk(H,21),Fk(f,21));UM(this,"b",_.lT(H,23),_.lT(f,23));l6(this,"b",r0(H,38),r0(f,38));l6(this,"c",r0(H,39),r0(f,39),16,8);e8(this,"q",_.Jx(H,28),_.Jx(f,28));UM(this,"fh",Fk(H,30),Fk(f,30));UM(this,"fv",Fk(H,31),Fk(f,31));UM(this,"fg",_.lT(H,34),_.lT(f,34));UM(this,"ci",Fk(H,32),Fk(f,32));e8(this,"t",H.getToken(),f.getToken());e8(this,"nt0",_.Jx(H,36),_.Jx(f,36));UM(this,"rw",_.lT(H,35),_.lT(f,35));UM(this,"rwu",_.lT(H,41),_.lT(f,41));UM(this,"rwa",_.lT(H,64),_.lT(f,64));UM(this,
"nw",_.lT(H,48),_.lT(f,48));UM(this,"rh",_.lT(H,49),_.lT(f,49));UM(this,"no",_.lT(H,37),_.lT(f,37));UM(this,"ns",Fk(H,40),Fk(f,40));l6(this,"k",r0(H,42),r0(f,42));l6(this,"p",r0(H,43),r0(f,43));l6(this,"l",r0(H,44),r0(f,44));l6(this,"v",r0(H,62),r0(f,62));UM(this,"nu",Fk(H,46),Fk(f,46));UM(this,"ft",Fk(H,50),Fk(f,50));UM(this,"cc",Fk(H,51),Fk(f,51));UM(this,"nd",Fk(H,53),Fk(f,53));UM(this,"ip",Fk(H,54),Fk(f,54));UM(this,"nc",Fk(H,55),Fk(f,55));l6(this,"a",r0(H,56),r0(f,56));UM(this,"rj",Fk(H,57),
Fk(f,57));UM(this,"rp",Fk(H,58),Fk(f,58));UM(this,"rg",Fk(H,59),Fk(f,59));UM(this,"pd",Fk(H,60),Fk(f,60));UM(this,"pa",Fk(H,61),Fk(f,61));l6(this,"m",r0(H,63),r0(f,63));l6(this,"vb",Kx(H,68),Kx(f,68));l6(this,"vl",Kx(H,69),Kx(f,69));UM(this,"lf",Fk(H,65),Fk(f,65));UM(this,"mv",Fk(H,66),Fk(f,66));UM(this,"id",Fk(H,70),Fk(f,70));l6(this,"ic",r0(H,71),!0);UM(this,"pg",_.lT(H,72),_.lT(f,72));UM(this,"mo",Fk(H,73),Fk(f,73));UM(this,"al",Fk(H,74),Fk(f,74));l6(this,"iv",Kx(H,75),Kx(f,75));l6(this,"pi",Do(H,
76),Do(f,76));l6(this,"ya",Do(H,77),Do(f,77));l6(this,"ro",Do(H,78),Do(f,78));l6(this,"fo",Do(H,79),Do(f,79));UM(this,"df",Fk(H,80),Fk(f,80));e8(this,"mm",_.Jx(H,81),_.Jx(f,81));UM(this,"sg",Fk(H,82),Fk(f,82));UM(this,"gd",Fk(H,83),Fk(f,83));UM(this,"fm",Fk(H,84),Fk(f,84));l6(this,"ba",r0(H,85),r0(f,85));l6(this,"br",r0(H,86),r0(f,86));l6(this,"bc",H.getBackgroundColor(),f.getBackgroundColor(),16,8);l6(this,"pc",r0(H,88),r0(f,88),16,8);l6(this,"sc",r0(H,89),r0(f,89),16,8);UM(this,"dv",Fk(H,90),Fk(f,
90));UM(this,"md",Fk(H,91),Fk(f,91));l6(this,"cp",r0(H,92),r0(f,92));UM(this,"sm",Fk(H,93),Fk(f,93));l6(this,"cv",r0(H,94),r0(f,94));UM(this,"ng",Fk(H,95),Fk(f,95));UM(this,"il",Fk(H,96),Fk(f,96));UM(this,"lo",Fk(H,97),Fk(f,97));UM(this,"vm",Fk(H,98),Fk(f,98));e8(this,"dc",_.Jx(H,99),_.Jx(f,99));UM(this,"rf",Fk(H,100),Fk(f,100));e8(this,"vf",_.Jx(H,102),_.Jx(f,102));UM(this,"ra",_.lT(H,103),_.lT(f,103));UM(this,"ckm",Fk(H,104),Fk(f,104));UM(this,"gm",Fk(H,105),Fk(f,105));UM(this,"ngm",Fk(H,106),Fk(f,
106));l6(this,"em",r0(H,107),r0(f,107));UM(this,"cr",Fk(H,108),Fk(f,108));l6(this,"sl",H.getStoryboardLevel(),f.getStoryboardLevel());l6(this,"sb",r0(H,110),r0(f,110));e8(this,"pt",_.Jx(H,111),_.Jx(f,111));e8(this,"gce",_.Jx(H,112),_.Jx(f,112));UM(this,"tm",Fk(H,113),Fk(f,113));UM(this,"ntm",Fk(H,114),Fk(f,114));l6(this,"mp",r0(H,115),r0(f,115));return this.JSC$19538_components_.join("-")};
var l6=function(f,H,v,t,M,h){if(v!=null){var y=M==void 0||M!=10&&M!=16?10:M;v=Number(v).toString(y);M=new zaW;M.append(y==16?"0x":"");y=M.append;h==void 0?h="":(h-=v.length,h=h<=0?"":(0,_.Lsa)("0",h));y.call(M,h);M.append(v);txG(f,H,M.toString(),!!Number(t))}},UM=function(f,H,v,t){v&&txG(f,H,"",!!t)},e8=function(f,H,v,t){v&&txG(f,H,String(v),!!Number(t))},txG=function(f,H,v,t){t&&(H=H.charAt(0).toUpperCase()+H.substring(1));
f.JSC$19538_components_.push(H+v)};_.f8(G4,mSx);_.R=G4.prototype;_.R.JSC$19540_setCrop=function(f){f&&LF(this);return G4.superClass_.JSC$19540_setCrop.call(this,f)};
_.R.JSC$19540_setHeight=function(f){f=f==null||f<0?void 0:f;f!=null&&this.setSize();return G4.superClass_.JSC$19540_setHeight.call(this,f)};
_.R.JSC$19540_setImageCrop=function(f){f&&LF(this);return G4.superClass_.JSC$19540_setImageCrop.call(this,f)};
_.R.JSC$19540_setCircleCrop=function(f){f&&LF(this);return G4.superClass_.JSC$19540_setCircleCrop.call(this,f)};
_.R.setSize=function(f){_.vo(f)&&(f=Math.max(f.width,f.height));f=f==null||f<0?void 0:f;f!=null&&(this.JSC$19540_setWidth(),this.JSC$19540_setHeight());return G4.superClass_.setSize.call(this,f)};
_.R.JSC$19540_setSmartCrop=function(f){f&&LF(this);return G4.superClass_.JSC$19540_setSmartCrop.call(this,f)};
_.R.JSC$19540_setSmartCropNoClip=function(f){f&&LF(this);return G4.superClass_.JSC$19540_setSmartCropNoClip.call(this,f)};
_.R.JSC$19540_setSmartCropUseFace=function(f){f&&LF(this);return G4.superClass_.JSC$19540_setSmartCropUseFace.call(this,f)};
_.R.setCenterCrop=function(f){f&&LF(this);return G4.superClass_.setCenterCrop.call(this,f)};
_.R.JSC$19540_setPad=function(f){f&&LF(this);return G4.superClass_.JSC$19540_setPad.call(this,f)};
_.R.JSC$19540_setWidth=function(f){f=f==null||f<0?void 0:f;f!=null&&this.setSize();return G4.superClass_.JSC$19540_setWidth.call(this,f)};
var MxW=function(f){f.clearOptions();var H=f.JSC$19538_parsedOptions_,v=H.valueProto_;JK(!0,_.lT(v,3),_.lT(H.signatureFlagProto_,3))&&_.O1(v,3,!0);return f},LF=function(f){f.setCenterCrop();
f.JSC$19540_setCircleCrop();f.JSC$19540_setCrop();f.JSC$19540_setImageCrop();f.JSC$19540_setPad();f.JSC$19540_setSmartCrop();f.JSC$19540_setSmartCropNoClip();f.JSC$19540_setSmartCropUseFace()};
G4.prototype.build=function(){var f=this.JSC$19538_parsedOptions_.valueProto_;Fk(f,18)||Fk(f,45)?f.getSize()||this.setSize(0):(f=this.JSC$19538_parsedOptions_.valueProto_,f.getSize()||f.getWidth()||f.getHeight()||(this.setSize(),this.JSC$19540_setHeight(),this.JSC$19540_setWidth(),LF(this)));return G4.superClass_.build.call(this)};var hzG=/^[^\/]*\/\//,xQ=function(f,H){H=H===void 0?!1:H;this.original_=f;this.originalPrefix_="";(f=this.original_.match(hzG))&&f[0]?(this.originalPrefix_=f[0],f=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):f="http://"+this.original_;this.uri_=_.Ax(f,!0);this.isFreeformUrl_=H;this.JSC$19544_valid_=!0;this.obfuscated_=!1},Rzx=function(f,H){f.JSC$19546_pathPrefix_=f.JSC$19546_pathPrefix_?f.JSC$19546_pathPrefix_+("/"+H):H},Bm=function(f){if(f.JSC$19546_components_==
void 0){var H=f.uri_.getPath().substring(1);
f.JSC$19546_pathPrefix_=null;if(f.isFreeformUrl_){f.JSC$19546_components_=[];if((H.match(/=/g)||[]).length>1)return f.JSC$19544_valid_=!1,f.JSC$19546_components_;var v=H.indexOf("=");v!=-1?(f.JSC$19546_components_.push(H.substr(0,v)),f.JSC$19546_components_.push(H.substr(v+1))):f.JSC$19546_components_.push(H);return f.JSC$19546_components_}f.JSC$19546_components_=H.split("/");H=f.JSC$19546_components_.length;H>2&&f.JSC$19546_components_[0]=="u"&&(Rzx(f,f.JSC$19546_components_[0]+"/"+f.JSC$19546_components_[1]),
f.JSC$19546_components_.shift(),f.JSC$19546_components_.shift(),H-=2);if(H==0||H==4||H>7)return f.JSC$19544_valid_=!1,f.JSC$19546_components_;if(H==2)Rzx(f,f.JSC$19546_components_[0]);else if(f.JSC$19546_components_[0]=="image")Rzx(f,f.JSC$19546_components_[0]);else if(H==7||H==3)return f.JSC$19544_valid_=!1,f.JSC$19546_components_;if(H<=3){f.obfuscated_=!0;H==3&&(Rzx(f,f.JSC$19546_components_[1]),f.JSC$19546_components_.shift(),--H);--H;v=f.JSC$19546_components_[H];var t=v.indexOf("=");t!=-1&&(f.JSC$19546_components_[H]=
v.substr(0,t),f.JSC$19546_components_.push(v.substr(t+1)))}}return f.JSC$19546_components_};
xQ.prototype.isValid=function(){Bm(this);return this.JSC$19544_valid_};
xQ.prototype.isObfuscated=function(){Bm(this);return this.obfuscated_};
var Vxh=function(f){Bm(f);return f.isFreeformUrl_},zp=function(f){Bm(f);
f.JSC$19546_pathPrefix_==void 0&&(f.JSC$19546_pathPrefix_=null);return f.JSC$19546_pathPrefix_},yAr=function(f){switch(Bm(f).length){case 7:return!0;
case 6:return zp(f)==null;case 5:return!1;case 3:return!0;case 2:return zp(f)==null;case 1:return!1;default:return!1}},FS=function(f,H){if(Vxh(f))a:{switch(H){case 7:H=0;
break;case 4:if(!yAr(f)){f=null;break a}H=1;break;default:f=null;break a}f=Bm(f)[H]}else if(f.isObfuscated())a:{var v=zp(f)!=null?1:0;switch(H){case 6:H=v;break;case 4:if(!yAr(f)){f=null;break a}H=1+v;break;default:f=null;break a}f=Bm(f)[H]}else a:{v=zp(f)!=null?1:0;switch(H){case 0:H=v;break;case 1:H=1+v;break;case 2:H=2+v;break;case 3:H=3+v;break;case 4:if(!yAr(f)){f=null;break a}H=4+v;break;case 5:H=yAr(f)?1:0;H=4+v+H;break;default:f=null;break a}f=Bm(f)[H]}return f};
xQ.prototype.getOptions=function(){this.options_==void 0&&(this.options_=FS(this,4));return this.options_};var OGt=function(){};
OGt.prototype.parse=function(f,H){return new $SF(f,H===void 0?!1:H)};
var $SF=function(f,H){xQ.call(this,f,H===void 0?!1:H)};
_.e($SF,xQ);_.f8(CJ,G4);var WNp;CJ.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
CJ.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var f=CJ.superClass_.build.call(this),H=[];zp(this.parsedImageUrl_)!=null&&H.push(zp(this.parsedImageUrl_));var v=Vxh(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var t=this.parsedImageUrl_;t.obfuscatedData_==void 0&&(t.obfuscatedData_=FS(t,6));H.push(t.obfuscatedData_+(f?"="+f:""))}else if(v){t=H.push;var M=this.parsedImageUrl_;M.freeformUrlPath_===void 0&&(M.freeformUrlPath_=FS(M,
7));t.call(H,M.freeformUrlPath_);f&&H.push(f)}else t=H.push,M=this.parsedImageUrl_,M.obfuscatedGaiaId_==void 0&&(M.obfuscatedGaiaId_=FS(M,0)),t.call(H,M.obfuscatedGaiaId_),t=H.push,M=this.parsedImageUrl_,M.photoId_==void 0&&(M.photoId_=FS(M,1)),t.call(H,M.photoId_),t=H.push,M=this.parsedImageUrl_,M.imageVersion_==void 0&&(M.imageVersion_=FS(M,2)),t.call(H,M.imageVersion_),t=H.push,M=this.parsedImageUrl_,M.signature_==void 0&&(M.signature_=FS(M,3)),t.call(H,M.signature_),f&&H.push(f),f=H.push,t=this.parsedImageUrl_,
t.filename_==void 0&&(t.filename_=FS(t,5)),f.call(H,t.filename_);H=v?H.join("="):H.join("/");H=_.Ax(this.protocolPrefix_+this.JSC$19552_domain_+"/"+H+(this.JSC$19552_query_?"?"+this.JSC$19552_query_:"")).toString();H.startsWith("%3a//")&&(H=H.replace("%3a//","://"));return H};var YTp=_.EH(["viewBox"]),mgb=_.EH(["width"]),$gF=_.EH(["height"]),Wci=_.EH(["fill"]),ORp=_.EH(["id"]),g4G=_.EH(["x"]),IBx=_.EH(["y"]);InF.prototype.getLength=function(){return this.parsedData.length};
InF.prototype.write=function(f){for(var H=0,v=this.parsedData.length;H<v;H++)f.put(this.parsedData[H],8)};
var ln0=function(f,H){var v=new InF(H);f.dataList.push(v);v=f.errorCorrectLevel;var t=1,M=encodeURI(H).toString().replace(/%[0-9a-fA-F]{2}/g,"a");H=M.length+(M.length!=H?3:0);M=0;for(var h=rf.length;M<=h;M++){var y=0;switch(v){case 1:y=rf[M][0];break;case 0:y=rf[M][1];break;case 3:y=rf[M][2];break;case 2:y=rf[M][3]}if(H<=y)break;else t++}if(t>rf.length)throw Error("Fk");f.typeNumber=t;f.dataCache=null};
S6p.prototype.isDark=function(f,H){if(f<0||this.moduleCount<=f||H<0||this.moduleCount<=H)throw Error("xk`"+f+"`"+H);return this.modules[f][H]};
for(var USb=function(f,H,v){f.moduleCount=f.typeNumber*4+17;f.modules=Array(f.moduleCount);for(var t=0;t<f.moduleCount;t++){f.modules[t]=Array(f.moduleCount);for(var M=0;M<f.moduleCount;M++)f.modules[t][M]=null}STi(f,0,0);STi(f,f.moduleCount-7,0);STi(f,0,f.moduleCount-7);t=dgx[f.typeNumber-1];for(M=0;M<t.length;M++)for(var h=0;h<t.length;h++){var y=t[M],m=t[h];if(f.modules[y][m]==null)for(var W=-2;W<=2;W++)for(var I=-2;I<=2;I++)f.modules[y+W][m+I]=W==-2||W==2||I==-2||I==2||W==0&&I==0?!0:!1}for(t=
8;t<f.moduleCount-8;t++)f.modules[t][6]==null&&(f.modules[t][6]=t%2==0);for(t=8;t<f.moduleCount-8;t++)f.modules[6][t]==null&&(f.modules[6][t]=t%2==0);t=f.errorCorrectLevel<<3|v;for(M=t<<10;KF(M)-KF(1335)>=0;)M^=1335<<KF(M)-KF(1335);t=(t<<10|M)^21522;for(M=0;M<15;M++)h=!H&&(t>>M&1)==1,M<6?f.modules[M][8]=h:M<8?f.modules[M+1][8]=h:f.modules[f.moduleCount-15+M][8]=h;for(M=0;M<15;M++)h=!H&&(t>>M&1)==1,M<8?f.modules[8][f.moduleCount-M-1]=h:M<9?f.modules[8][15-M-1+1]=h:f.modules[8][15-M-1]=h;f.modules[f.moduleCount-
8][8]=!H;if(f.typeNumber>=7){t=f.typeNumber;for(M=t<<12;KF(M)-KF(7973)>=0;)M^=7973<<KF(M)-KF(7973);t=t<<12|M;for(M=0;M<18;M++)h=!H&&(t>>M&1)==1,f.modules[Math.floor(M/3)][M%3+f.moduleCount-8-3]=h;for(M=0;M<18;M++)h=!H&&(t>>M&1)==1,f.modules[M%3+f.moduleCount-8-3][Math.floor(M/3)]=h}if(f.dataCache==null){M=f.typeNumber;h=f.dataList;H=f.errorCorrectLevel;t=jQh(M,H);if(t==void 0)throw Error("Ek`"+M+"`"+H);y=t.length/3;H=[];for(m=0;m<y;m++){W=t[m*3];I=t[m*3+1];for(var S=t[m*3+2],d=0;d<W;d++)H.push(new dS0(I,
S))}t=new j9F;for(y=0;y<h.length;y++)m=h[y],t.put(m.mode,4),t.put(m.getLength(),sQw(m.mode,M)),m.write(t);for(y=M=0;y<H.length;y++)M+=H[y].dataCount;if(t.length>M*8)throw Error("yk`"+t.length+"`"+M*8);for(t.length+4<=M*8&&t.put(0,4);t.length%8!=0;)ZRt(t,!1);for(;!(t.length>=M*8);){t.put(236,8);if(t.length>=M*8)break;t.put(17,8)}h=M=I=0;y=Array(H.length);m=Array(H.length);for(W=0;W<H.length;W++){d=H[W].dataCount;var Z=H[W].totalCount-d;M=Math.max(M,d);h=Math.max(h,Z);y[W]=Array(d);for(S=0;S<y[W].length;S++)y[W][S]=
255&t.buffer[S+I];I+=d;S=Z;d=new Ey([1],0);for(Z=0;Z<S;Z++)d=d.multiply(new Ey([1,JAx(Z)],0));S=d;d=(new Ey(y[W],S.getLength()-1)).mod(S);m[W]=Array(S.getLength()-1);for(S=0;S<m[W].length;S++)Z=S+d.getLength()-m[W].length,m[W][S]=Z>=0?d.get(Z):0}for(S=t=0;S<H.length;S++)t+=H[S].totalCount;t=Array(t);for(S=I=0;S<M;S++)for(W=0;W<H.length;W++)S<y[W].length&&(t[I++]=y[W][S]);for(S=0;S<h;S++)for(W=0;W<H.length;W++)S<m[W].length&&(t[I++]=m[W][S]);f.dataCache=t}H=f.dataCache;t=-1;M=f.moduleCount-1;h=7;y=
0;for(m=f.moduleCount-1;m>0;m-=2)for(m==6&&m--;;){for(W=0;W<2;W++)f.modules[M][m-W]==null&&(I=!1,y<H.length&&(I=(H[y]>>>h&1)==1),lBi(v,M,m-W)&&(I=!I),f.modules[M][m-W]=I,h--,h==-1&&(y++,h=7));M+=t;if(M<0||f.moduleCount<=M){M-=t;t=-t;break}}},STi=function(f,H,v){for(var t=-1;t<=7;t++)if(!(H+t<=-1||f.moduleCount<=H+t))for(var M=-1;M<=7;M++)v+M<=-1||f.moduleCount<=v+M||(f.modules[H+t][v+M]=0<=t&&t<=6&&(M==0||M==6)||0<=M&&M<=6&&(t==0||t==6)||2<=t&&t<=4&&2<=M&&M<=4?!0:!1)},e90=function(f){for(var H=0,
v=0,t=0;t<8;t++){USb(f,!0,t);
var M=f;for(var h=M.moduleCount,y=0,m=0;m<h;m++)for(var W=0;W<h;W++){for(var I=0,S=M.isDark(m,W),d=-1;d<=1;d++)if(!(m+d<0||h<=m+d))for(var Z=-1;Z<=1;Z++)W+Z<0||h<=W+Z||(d!=0||Z!=0)&&S==M.isDark(m+d,W+Z)&&I++;I>5&&(y+=3+I-5)}for(m=0;m<h-1;m++)for(W=0;W<h-1;W++)if(I=0,M.isDark(m,W)&&I++,M.isDark(m+1,W)&&I++,M.isDark(m,W+1)&&I++,M.isDark(m+1,W+1)&&I++,I==0||I==4)y+=3;for(m=0;m<h;m++)for(W=0;W<h-6;W++)M.isDark(m,W)&&!M.isDark(m,W+1)&&M.isDark(m,W+2)&&M.isDark(m,W+3)&&M.isDark(m,W+4)&&!M.isDark(m,W+5)&&
M.isDark(m,W+6)&&(y+=40);for(W=0;W<h;W++)for(m=0;m<h-6;m++)M.isDark(m,W)&&!M.isDark(m+1,W)&&M.isDark(m+2,W)&&M.isDark(m+3,W)&&M.isDark(m+4,W)&&!M.isDark(m+5,W)&&M.isDark(m+6,W)&&(y+=40);for(W=I=0;W<h;W++)for(m=0;m<h;m++)M.isDark(m,W)&&I++;M=y+=Math.abs(100*I/h/h-50)/5*10;if(t==0||H>M)H=M,v=t}return v},dgx=[[],
[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]],KF=function(f){for(var H=0;f!=0;)H++,f>>>=1;return H},lBi=function(f,H,v){switch(f){case 0:return(H+v)%2==0;
case 1:return H%2==0;case 2:return v%3==0;case 3:return(H+v)%3==0;case 4:return(Math.floor(H/2)+Math.floor(v/3))%2==0;case 5:return H*v%2+H*v%3==0;case 6:return(H*v%2+H*v%3)%2==0;case 7:return(H*v%3+(H+v)%2)%2==0;default:throw Error("zk`"+f);}},sQw=function(f,H){if(1<=H&&H<10)switch(f){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Ak`"+f);}else if(H<27)switch(f){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Ak`"+f);}else if(H<41)switch(f){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Ak`"+f);}else throw Error("Bk`"+H);},D8=function(f){if(f<1)throw Error("Ck`"+f);
return Ug5[f]},JAx=function(f){for(;f<0;)f+=255;
for(;f>=256;)f-=255;return o7[f]},o7=Array(256),Ug5=Array(256),ezx=0;ezx<8;ezx++)o7[ezx]=1<<ezx;
for(var nF=8;nF<256;nF++)o7[nF]=o7[nF-4]^o7[nF-5]^o7[nF-6]^o7[nF-8];for(var Lc0=0;Lc0<255;Lc0++)Ug5[o7[Lc0]]=Lc0;Ey.prototype.get=function(f){return this.num[f]};
Ey.prototype.getLength=function(){return this.num.length};
Ey.prototype.multiply=function(f){for(var H=Array(this.getLength()+f.getLength()-1),v=0;v<this.getLength();v++)for(var t=0;t<f.getLength();t++)H[v+t]^=JAx(D8(this.get(v))+D8(f.get(t)));return new Ey(H,0)};
Ey.prototype.mod=function(f){if(this.getLength()-f.getLength()<0)return this;for(var H=D8(this.get(0))-D8(f.get(0)),v=Array(this.getLength()),t=0;t<this.getLength();t++)v[t]=this.get(t);for(t=0;t<f.getLength();t++)v[t]^=JAx(D8(f.get(t))+H);return(new Ey(v,0)).mod(f)};
var xgA=[[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]],jQh=function(f,H){switch(H){case 1:return xgA[(f-1)*4];case 0:return xgA[(f-1)*4+1];case 3:return xgA[(f-1)*4+2];case 2:return xgA[(f-1)*4+3]}};
j9F.prototype.get=function(f){return(this.buffer[Math.floor(f/8)]>>>7-f%8&1)==1};
j9F.prototype.put=function(f,H){for(var v=0;v<H;v++)ZRt(this,(f>>>H-v-1&1)==1)};
var ZRt=function(f,H){var v=Math.floor(f.length/8);f.buffer.length<=v&&f.buffer.push(0);H&&(f.buffer[v]|=128>>>f.length%8);f.length++},rf=[[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]],JtG=function(){var f=function(H,v){this.JSC$19572__el=H;this.JSC$19572__htOption=v};
f.prototype.draw=function(H){function v(S,d){S=document.createElementNS("http://www.w3.org/2000/svg",S);for(var Z in d)d.hasOwnProperty(Z)&&(Z==="href"?_.b40(S,d[Z]):_.hf([_.YO(YTp),_.YO(mgb),_.YO($gF),_.YO(Wci),_.YO(ORp),_.YO(g4G),_.YO(IBx)],S,Z,d[Z]));return S}
var t=this.JSC$19572__htOption,M=this.JSC$19572__el,h=H.moduleCount;this.clear();var y=v("svg",{viewBox:"0 0 "+String(h)+" "+String(h),width:"100%",height:"100%",fill:t.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});M.appendChild(y);y.appendChild(v("rect",{fill:t.colorLight,width:"100%",height:"100%"}));y.appendChild(v("rect",{fill:t.colorDark,width:"1",height:"1",id:"template"}));for(var m=0;m<h;m++)for(var W=0;W<h;W++)if(H.isDark(m,W)){var I=v("use",{x:String(m),y:String(W),href:"#template"});
y.appendChild(I)}};
f.prototype.clear=function(){for(;this.JSC$19572__el.hasChildNodes();)this.JSC$19572__el.removeChild(this.JSC$19572__el.lastChild)};
return f}(),ZGA=document.documentElement.tagName.toLowerCase()==="svg"?JtG:typeof CanvasRenderingContext2D!="undefined"?function(){var f=function(H,v){this._bIsPainted=!1;
s9F();this.JSC$19572__htOption=v;this._elCanvas=document.createElement("canvas");this._elCanvas.width=v.width;this._elCanvas.height=v.height;H.appendChild(this._elCanvas);this.JSC$19572__el=H;this._oContext=this._elCanvas.getContext("2d");this._bIsPainted=!1;this._elImage=document.createElement("img");this._elImage.alt="Scan me!";this._elImage.style.display="none";this.JSC$19572__el.appendChild(this._elImage);this._bSupportDataURI=null};
f.prototype._onMakeImage=function(){var H=this._elCanvas.toDataURL("image/png");this._elImage.src=H;this._elImage.style.display="block";this._elCanvas.style.display="none"};
f.prototype._safeSetDataURI=function(H,v){var t=this;t._fFail=v;t._fSuccess=H;t._bSupportDataURI===null?(H=_.lS("IMG"),v=function(){t._bSupportDataURI=!1;t._fFail&&t._fFail.call(t)},H.onabort=v,H.onerror=v,H.onload=function(){t._bSupportDataURI=!0;
t._fSuccess&&t._fSuccess.call(t)},H.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):t._bSupportDataURI===!0&&t._fSuccess?t._fSuccess.call(t):t._bSupportDataURI===!1&&t._fFail&&t._fFail.call(t)};
f.prototype.draw=function(H){var v=this._oContext,t=this.JSC$19572__htOption,M=H.moduleCount,h=t.width/M,y=t.height/M,m=Math.round(h),W=Math.round(y);this._elImage.style.display="none";this.clear();for(var I=0;I<M;I++)for(var S=0;S<M;S++){var d=H.isDark(I,S),Z=S*h,l=I*y;v.strokeStyle=d?t.colorDark:t.colorLight;v.lineWidth=1;v.fillStyle=d?t.colorDark:t.colorLight;v.fillRect(Z,l,h,y);v.strokeRect(Math.floor(Z)+.5,Math.floor(l)+.5,m,W);v.strokeRect(Math.ceil(Z)-.5,Math.ceil(l)-.5,m,W)}this._bIsPainted=
!0};
f.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
f.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
f.prototype.round=function(H){return H?Math.floor(H*1E3)/1E3:H};
return f}():function(){var f=function(H,v){this.JSC$19572__el=H;
this.JSC$19572__htOption=v};
f.prototype.draw=function(H){for(var v=this.JSC$19572__htOption,t=this.JSC$19572__el,M=H.moduleCount,h=Math.floor(v.width/M),y=Math.floor(v.height/M),m=['<table style="border:0;border-collapse:collapse;">'],W=0;W<M;W++){m.push("<tr>");for(var I=0;I<M;I++)m.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+h+"px;height:"+y+"px;background-color:"+(H.isDark(W,I)?v.colorDark:v.colorLight)+';"></td>');m.push("</tr>")}m.push("</table>");H=m.join("");H=_.Ih_(_.dTC,H);_.Me(t,H);
H=t.childNodes[0];M=(v.width-H.offsetWidth)/2;h=(v.height-H.offsetHeight)/2;M>0&&h>0&&(H.style.margin=h+"px "+M+"px")};
f.prototype.clear=function(){this.JSC$19572__el.textContent=""};
return f}();
LNF.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19575__android||this.JSC$19575__android>=3)&&this._oDrawing.makeImage()};
LNF.prototype.clear=function(){this._oDrawing.clear()};
_.Mr.QRCode=LNF;var B_F={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var pF=function(){};
pF.prototype.stringify=function(f){return _.Mr.JSON.stringify(f,void 0)};
pF.prototype.parse=function(f){return _.Mr.JSON.parse(f,void 0)};var zzW=function(){_.$R.call(this,"z")};
_.f8(zzW,_.$R);var Fch=function(){_.$R.call(this,"y")};
_.f8(Fch,_.$R);var rAh=null,Kcb=function(){return rAh=rAh||new _.Sg},DgF=function(f){_.$R.call(this,"serverreachability",f)};
_.f8(DgF,_.$R);var Qt=function(f){var H=Kcb();H.dispatchEvent(new DgF(H,f))},o4W=function(f,H){_.$R.call(this,"statevent",f);
this.stat=H};
_.f8(o4W,_.$R);var u6=function(f){var H=Kcb();H.dispatchEvent(new o4W(H,f))},n40=function(f,H,v,t){_.$R.call(this,"timingevent",f);
this.size=H;this.rtt=v;this.retries=t};
_.f8(n40,_.$R);var pDG=function(f,H,v){var t=Kcb();t.dispatchEvent(new n40(t,f,H,v))},a7=function(f,H){if(typeof f!=="function")throw Error("Gk");
return _.Mr.setTimeout(function(){f()},H)};var Pm=function(){this.redactEnabled_=!0};
Pm.prototype.disableRedact=function(){this.redactEnabled_=!1};
var QQW=function(f,H,v,t,M,h){f.info(function(){if(f.redactEnabled_)if(h){var y="";for(var m=h.split("&"),W=0;W<m.length;W++){var I=m[W].split("=");if(I.length>1){var S=I[0];I=I[1];var d=S.split("_");y=d.length>=2&&d[1]=="type"?y+(S+"="+I+"&"):y+(S+"=redacted&")}}}else y=null;else y=h;return"XMLHTTP REQ ("+t+") [attempt "+M+"]: "+H+"\n"+v+"\n"+y})},uQb=function(f,H,v,t,M,h,y){f.info(function(){return"XMLHTTP RESP ("+t+") [ attempt "+M+"]: "+H+"\n"+v+"\n"+h+" "+y})},Gp=function(f,H,v,t){f.info(function(){return"XMLHTTP TEXT ("+
H+"): "+aBW(f,v)+(t?" "+t:"")})},Pbp=function(f,H){f.info(function(){return"TIMEOUT: "+H})};
Pm.prototype.debug=function(){};
Pm.prototype.info=function(){};
Pm.prototype.warning=function(){};
var aBW=function(f,H){if(!f.redactEnabled_)return H;if(!H)return null;try{var v=JSON.parse(H);if(v)for(var t=0;t<v.length;t++)if(Array.isArray(v[t])){var M=v[t];if(!(M.length<2)){var h=M[1];if(Array.isArray(h)&&!(h.length<1)){var y=h[0];if(y!="noop"&&y!="stop"&&y!="close")for(var m=1;m<h.length;m++)h[m]=""}}}return(0,_.UB)(v)}catch(W){return f.debug("Exception parsing expected JS array - probably was not JS"),H}};var CF=function(f,H,v,t,M){this.JSC$19597_channel_=f;this.JSC$19597_channelDebug_=H;this.sid_=v;this.JSC$19597_rid_=t;this.JSC$19597_retryId_=M||1;this.JSC$19597_eventHandler_=new _.Y1(this);this.timeout_=45E3;this.JSC$19597_extraHeaders_=null;this.JSC$19597_successful_=!1;this.JSC$19597_postData_=this.JSC$19597_requestUri_=this.JSC$19597_baseUri_=this.JSC$19597_type_=this.JSC$19597_requestStartTime_=this.JSC$19597_watchDogTimeoutTime_=this.JSC$19597_watchDogTimerId_=null;this.JSC$19597_pendingMessages_=
[];this.JSC$19597_xmlHttp_=null;this.JSC$19597_xmlHttpChunkStart_=0;this.JSC$19597_lastError_=this.JSC$19597_verb_=null;this.JSC$19597_lastStatusCode_=-1;this.JSC$19597_cancelled_=!1;this.JSC$19597_readyStateChangeThrottleMs_=0;this.JSC$19597_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new GC5},GC5=function(){this.JSC$19599_textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},Cb0=function(f,H){switch(f){case 0:return"Non-200 return code ("+H+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},E4h={},N_b={};
CF.prototype.setTimeout=function(f){this.timeout_=f};
var XDx=function(f,H,v){f.JSC$19597_type_=1;f.JSC$19597_baseUri_=_.vC(H.clone());f.JSC$19597_postData_=v;f.decodeChunks_=!0;cAp(f,null)},cAp=function(f,H){f.JSC$19597_requestStartTime_=Date.now();
AAW(f);f.JSC$19597_requestUri_=f.JSC$19597_baseUri_.clone();UN(f.JSC$19597_requestUri_,"t",f.JSC$19597_retryId_);f.JSC$19597_xmlHttpChunkStart_=0;var v=f.JSC$19597_channel_.JSC$19616_supportsCrossDomainXhrs_;f.fetchResponseState_=new GC5;f.JSC$19597_xmlHttp_=bRx(f.JSC$19597_channel_,v?H:null,!f.JSC$19597_postData_);f.JSC$19597_readyStateChangeThrottleMs_>0&&(f.JSC$19597_readyStateChangeThrottle_=new _.Nl((0,_.FH)(f.JSC$19601_xmlHttpHandler_,f,f.JSC$19597_xmlHttp_),f.JSC$19597_readyStateChangeThrottleMs_));
f.JSC$19597_eventHandler_.listen(f.JSC$19597_xmlHttp_,"readystatechange",f.JSC$19601_readyStateChangeHandler_);H=f.JSC$19597_extraHeaders_?_.QA.clone(f.JSC$19597_extraHeaders_):{};f.JSC$19597_postData_?(f.JSC$19597_verb_||(f.JSC$19597_verb_="POST"),H["Content-Type"]="application/x-www-form-urlencoded",f.JSC$19597_xmlHttp_.send(f.JSC$19597_requestUri_,f.JSC$19597_verb_,f.JSC$19597_postData_,H)):(f.JSC$19597_verb_="GET",f.JSC$19597_xmlHttp_.send(f.JSC$19597_requestUri_,f.JSC$19597_verb_,null,H));Qt(1);
QQW(f.JSC$19597_channelDebug_,f.JSC$19597_verb_,f.JSC$19597_requestUri_,f.JSC$19597_rid_,f.JSC$19597_retryId_,f.JSC$19597_postData_)};
CF.prototype.JSC$19601_readyStateChangeHandler_=function(f){f=f.target;var H=this.JSC$19597_readyStateChangeThrottle_;H&&_.Lh(f)==3?(this.JSC$19597_channelDebug_.debug("Throttling readystatechange."),H.fire()):this.JSC$19601_xmlHttpHandler_(f)};
CF.prototype.JSC$19601_xmlHttpHandler_=function(f){try{f==this.JSC$19597_xmlHttp_?iRA(this):this.JSC$19597_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(H){this.JSC$19597_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),kCt(this)}finally{}};
var iRA=function(f){var H=_.Lh(f.JSC$19597_xmlHttp_),v=f.JSC$19597_xmlHttp_.JSC$9787_lastErrorCode_,t=f.JSC$19597_xmlHttp_.getStatus();if(!(H<3||H==3&&!kCt(f))){f.JSC$19597_cancelled_||H!=4||v==7||(v==8||t<=0?Qt(3):Qt(2));T_F(f);var M=f.JSC$19597_xmlHttp_.getStatus();f.JSC$19597_lastStatusCode_=M;v=wDx(f);kCt(f)||f.JSC$19597_channelDebug_.debug(function(){return"No response text for uri "+f.JSC$19597_requestUri_+" status "+M});
f.JSC$19597_successful_=M==200;uQb(f.JSC$19597_channelDebug_,f.JSC$19597_verb_,f.JSC$19597_requestUri_,f.JSC$19597_rid_,f.JSC$19597_retryId_,H,M);if(f.JSC$19597_successful_){if(f.decodeInitialResponse_&&!f.initialResponseDecoded_)if(t=qTW(f))Gp(f.JSC$19597_channelDebug_,f.JSC$19597_rid_,t,"Initial handshake response via X-HTTP-Initial-Response"),f.initialResponseDecoded_=!0,fN5(f,t);else{f.JSC$19597_successful_=!1;f.JSC$19597_lastError_=3;u6(12);f.JSC$19597_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
f.JSC$19597_rid_+")");EM(f);N5(f);return}f.decodeChunks_?HKW(f,H,v):(Gp(f.JSC$19597_channelDebug_,f.JSC$19597_rid_,v,null),fN5(f,v));H==4&&EM(f);f.JSC$19597_successful_&&!f.JSC$19597_cancelled_&&(H==4?va5(f.JSC$19597_channel_,f):(f.JSC$19597_successful_=!1,AAW(f)))}else KVG(f.JSC$19597_xmlHttp_),M==400&&v.indexOf("Unknown SID")>0?(f.JSC$19597_lastError_=3,u6(12),f.JSC$19597_channelDebug_.warning("XMLHTTP Unknown SID ("+f.JSC$19597_rid_+")")):(f.JSC$19597_lastError_=0,u6(13),f.JSC$19597_channelDebug_.warning("XMLHTTP Bad status "+
M+" ("+f.JSC$19597_rid_+")")),EM(f),N5(f)}},qTW=function(f){return f.JSC$19597_xmlHttp_&&(f=KJ(f.JSC$19597_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.ms(f)?f:null},wDx=function(f){if(!thw(f))return f.JSC$19597_xmlHttp_.getResponseText();
var H=f.JSC$19597_xmlHttp_.getResponse();if(H==="")return"";var v="",t=H.length,M=_.Lh(f.JSC$19597_xmlHttp_)==4;if(!f.fetchResponseState_.JSC$19599_textDecoder){if(typeof TextDecoder==="undefined")return EM(f),N5(f),"";f.fetchResponseState_.JSC$19599_textDecoder=new _.Mr.TextDecoder}for(var h=0;h<t;h++)f.fetchResponseState_.responseArrivedForFetch=!0,v+=f.fetchResponseState_.JSC$19599_textDecoder.decode(H[h],{stream:!(M&&h==t-1)});H.length=0;f.fetchResponseState_.responseBuffer+=v;f.JSC$19597_xmlHttpChunkStart_=
0;return f.fetchResponseState_.responseBuffer},kCt=function(f){return f.JSC$19597_xmlHttp_?f.fetchResponseState_.responseArrivedForFetch?!0:!(!f.JSC$19597_xmlHttp_.getResponseText()&&!f.JSC$19597_xmlHttp_.getResponse()):!1},thw=function(f){return f.JSC$19597_xmlHttp_?f.JSC$19597_verb_=="GET"&&f.JSC$19597_type_!=2&&f.JSC$19597_channel_.usesFetchStreams_:!1},HKW=function(f,H,v){for(var t=!0,M;!f.JSC$19597_cancelled_&&f.JSC$19597_xmlHttpChunkStart_<v.length;)if(M=MhF(f,v),M==N_b){H==4&&(f.JSC$19597_lastError_=
4,u6(14),t=!1);
Gp(f.JSC$19597_channelDebug_,f.JSC$19597_rid_,null,"[Incomplete Response]");break}else if(M==E4h){f.JSC$19597_lastError_=4;u6(15);Gp(f.JSC$19597_channelDebug_,f.JSC$19597_rid_,v,"[Invalid Chunk]");t=!1;break}else Gp(f.JSC$19597_channelDebug_,f.JSC$19597_rid_,M,null),fN5(f,M);thw(f)&&f.JSC$19597_xmlHttpChunkStart_!=0&&(f.fetchResponseState_.responseBuffer=f.fetchResponseState_.responseBuffer.slice(f.JSC$19597_xmlHttpChunkStart_),f.JSC$19597_xmlHttpChunkStart_=0);H!=4||v.length!=0||f.fetchResponseState_.responseArrivedForFetch||
(f.JSC$19597_lastError_=1,u6(16),t=!1);f.JSC$19597_successful_=f.JSC$19597_successful_&&t;t?v.length>0&&!f.firstByteReceived_&&(f.firstByteReceived_=!0,H=f.JSC$19597_channel_,H.JSC$19616_backChannelRequest_==f&&H.detectBufferingProxy_&&!H.bpDetectionDone_&&(H.JSC$19616_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+v.length),hux(H),H.bpDetectionDone_=!0,u6(11))):(Gp(f.JSC$19597_channelDebug_,f.JSC$19597_rid_,v,"[Invalid Chunked Response]"),EM(f),N5(f))},MhF=function(f,H){var v=
f.JSC$19597_xmlHttpChunkStart_,t=H.indexOf("\n",v);
if(t==-1)return N_b;v=Number(H.substring(v,t));if(isNaN(v))return E4h;t+=1;if(t+v>H.length)return N_b;H=H.slice(t,t+v);f.JSC$19597_xmlHttpChunkStart_=t+v;return H};
CF.prototype.cancel=function(){this.JSC$19597_cancelled_=!0;EM(this)};
var AAW=function(f){f.JSC$19597_watchDogTimeoutTime_=Date.now()+f.timeout_;Ru0(f,f.timeout_)},Ru0=function(f,H){if(f.JSC$19597_watchDogTimerId_!=null)throw Error("Hk");
f.JSC$19597_watchDogTimerId_=a7((0,_.FH)(f.JSC$19601_onWatchDogTimeout_,f),H)},T_F=function(f){f.JSC$19597_watchDogTimerId_&&(_.Mr.clearTimeout(f.JSC$19597_watchDogTimerId_),f.JSC$19597_watchDogTimerId_=null)};
CF.prototype.JSC$19601_onWatchDogTimeout_=function(){this.JSC$19597_watchDogTimerId_=null;var f=Date.now();f-this.JSC$19597_watchDogTimeoutTime_>=0?(Pbp(this.JSC$19597_channelDebug_,this.JSC$19597_requestUri_),this.JSC$19597_type_!=2&&(Qt(3),u6(17)),EM(this),this.JSC$19597_lastError_=2,N5(this)):(this.JSC$19597_channelDebug_.warning("WatchDog timer called too early"),Ru0(this,this.JSC$19597_watchDogTimeoutTime_-f))};
var N5=function(f){f.JSC$19597_channel_.state_==0||f.JSC$19597_cancelled_||va5(f.JSC$19597_channel_,f)},EM=function(f){T_F(f);
_.Mj(f.JSC$19597_readyStateChangeThrottle_);f.JSC$19597_readyStateChangeThrottle_=null;f.JSC$19597_eventHandler_.removeAll();if(f.JSC$19597_xmlHttp_){var H=f.JSC$19597_xmlHttp_;f.JSC$19597_xmlHttp_=null;H.abort();H.dispose()}};
CF.prototype.getLastError=function(){return this.JSC$19597_lastError_};
var fN5=function(f,H){try{var v=f.JSC$19597_channel_;if(v.state_!=0&&(v.JSC$19616_backChannelRequest_==f||Vhp(v.forwardChannelRequestPool_,f)))if(!f.initialResponseDecoded_&&Vhp(v.forwardChannelRequestPool_,f)&&v.state_==3){try{var t=v.wireCodec_.JSC$19611_parser_.parse(H)}catch(m){t=null}if(Array.isArray(t)&&t.length==3){H=t;if(H[0]==0)a:if(v.JSC$19616_channelDebug_.debug("Server claims our backchannel is missing."),v.JSC$19616_backChannelTimerId_)v.JSC$19616_channelDebug_.debug("But we are currently starting the request.");
else{if(v.JSC$19616_backChannelRequest_)if(v.JSC$19616_backChannelRequest_.JSC$19597_requestStartTime_+3E3<f.JSC$19597_requestStartTime_)yqr(v),Y3F(v);else break a;else v.JSC$19616_channelDebug_.warning("We do not have a BackChannel established");mL5(v);u6(18)}else{v.JSC$19616_lastPostResponseArrayId_=H[1];var M=v.JSC$19616_lastPostResponseArrayId_-v.JSC$19616_lastArrayId_;if(0<M){var h=H[2];v.JSC$19616_channelDebug_.debug(h+" bytes (in "+M+" arrays) are outstanding on the BackChannel");h<37500&&
v.enableStreaming_&&v.JSC$19616_backChannelRetryCount_==0&&!v.JSC$19616_deadBackChannelTimerId_&&(v.JSC$19616_deadBackChannelTimerId_=a7((0,_.FH)(v.JSC$19618_onBackChannelDead_,v),6E3))}}if($LF(v.forwardChannelRequestPool_)<=1&&v.forwardChannelFlushedCallback_){try{v.forwardChannelFlushedCallback_()}catch(m){}v.forwardChannelFlushedCallback_=void 0}}else v.JSC$19616_channelDebug_.debug("Bad POST response data returned"),cm(v,11)}else if((f.initialResponseDecoded_||v.JSC$19616_backChannelRequest_==
f)&&yqr(v),!_.ms(H)){var y=v.wireCodec_.JSC$19611_parser_.parse(H);v.onInput_(y,f)}Qt(4)}catch(m){}};var WAh=function(f,H){this.JSC$19604_mapId=f;this.map=H;this.context=null};var OK0=function(f){this.maxPoolSizeConfigured_=f||10;_.Mr.PerformanceNavigationTiming?(f=_.Mr.performance.getEntriesByType("navigation"),f=f.length>0&&(f[0].nextHopProtocol=="hq"||f[0].nextHopProtocol=="h2")):f=!!(_.Mr.chrome&&_.Mr.chrome.loadTimes&&_.Mr.chrome.loadTimes()&&_.Mr.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19607_maxSize_=f?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19607_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19607_request_=null;this.JSC$19607_pendingMessages_=
[]},ga5=function(f){return f.JSC$19607_request_?!0:f.requestPool_?f.requestPool_.size>=f.JSC$19607_maxSize_:!1},$LF=function(f){return f.JSC$19607_request_?1:f.requestPool_?f.requestPool_.size:0},Vhp=function(f,H){return f.JSC$19607_request_?f.JSC$19607_request_==H:f.requestPool_?f.requestPool_.has(H):!1},INW=function(f,H){f.requestPool_?f.requestPool_.add(H):f.JSC$19607_request_=H},S3r=function(f,H){f.JSC$19607_request_&&f.JSC$19607_request_==H?f.JSC$19607_request_=null:f.requestPool_&&f.requestPool_.has(H)&&
f.requestPool_.delete(H)};
OK0.prototype.cancel=function(){this.JSC$19607_pendingMessages_=dLW(this);if(this.JSC$19607_request_)this.JSC$19607_request_.cancel(),this.JSC$19607_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var f=_.V(this.requestPool_.values()),H=f.next();!H.done;H=f.next())H.value.cancel();this.requestPool_.clear()}};
var dLW=function(f){if(f.JSC$19607_request_!=null)return f.JSC$19607_pendingMessages_.concat(f.JSC$19607_request_.JSC$19597_pendingMessages_);if(f.requestPool_!=null&&f.requestPool_.size!==0){var H=f.JSC$19607_pendingMessages_;f=_.V(f.requestPool_.values());for(var v=f.next();!v.done;v=f.next())H=H.concat(v.value.JSC$19597_pendingMessages_);return H}return _.kv(f.JSC$19607_pendingMessages_)},jE0=function(f,H){f.JSC$19607_pendingMessages_=f.JSC$19607_pendingMessages_.concat(H)};var sEA=function(f,H){var v=new Pm;v.debug("TestLoadImage: loading "+f);if(_.Mr.Image){var t=new Image;t.onload=_.l0(XS,v,"TestLoadImage: loaded",!0,H,t);t.onerror=_.l0(XS,v,"TestLoadImage: error",!1,H,t);t.onabort=_.l0(XS,v,"TestLoadImage: abort",!1,H,t);t.ontimeout=_.l0(XS,v,"TestLoadImage: timeout",!1,H,t);_.Mr.setTimeout(function(){if(t.ontimeout)t.ontimeout()},1E4);
t.src=f}else H(!1)},ZKA=function(f,H){var v=new Pm,t=new AbortController,M=setTimeout(function(){t.abort();
XS(v,"TestPingServer: timeout",!1,H)},1E4);
fetch(f,{signal:t.signal}).then(function(h){clearTimeout(M);h.ok?XS(v,"TestPingServer: ok",!0,H):XS(v,"TestPingServer: server error",!1,H)}).catch(function(){clearTimeout(M);
XS(v,"TestPingServer: error",!1,H)})},XS=function(f,H,v,t,M){try{f.debug(H),M&&(M.onload=null,M.onerror=null,M.onabort=null,M.ontimeout=null),t(v)}catch(h){}};var JqA=function(){this.JSC$19611_parser_=new pF};var AK=function(f,H,v){return v&&v.internalChannelParams?v.internalChannelParams[f]||H:H},b6=function(f){this.serverVersion_=0;
this.JSC$19616_outgoingMaps_=[];this.JSC$19616_channelDebug_=new Pm;this.JSC$19616_hostPrefix_=this.JSC$19616_backChannelUri_=this.JSC$19616_forwardChannelUri_=this.JSC$19616_path_=this.JSC$19616_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19616_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19616_extraHeaders_=null;this.JSC$19616_nextMapId_=this.JSC$19616_nextRid_=0;this.JSC$19616_failFast_=AK("failFast",!1,f);this.enableStreaming_=this.JSC$19616_deadBackChannelTimerId_=
this.JSC$19616_backChannelTimerId_=this.JSC$19616_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19616_lastPostResponseArrayId_=this.JSC$19616_lastArrayId_=-1;this.JSC$19616_backChannelAttemptId_=this.JSC$19616_backChannelRetryCount_=this.JSC$19616_forwardChannelRetryCount_=0;this.JSC$19616_baseRetryDelayMs_=AK("baseRetryDelayMs",5E3,f);this.JSC$19616_retryDelaySeedMs_=AK("retryDelaySeedMs",1E4,f);this.JSC$19616_forwardChannelMaxRetries_=
AK("forwardChannelMaxRetries",2,f);this.JSC$19616_forwardChannelRequestTimeoutMs_=AK("forwardChannelRequestTimeoutMs",2E4,f);this.JSC$19616_xmlHttpFactory_=f&&f.xmlHttpFactory||void 0;this.networkTestUrl_=f&&f.networkTestUrl||void 0;this.usesFetchStreams_=f&&f.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19616_supportsCrossDomainXhrs_=f&&f.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new OK0(f&&f.concurrentRequestLimit);this.wireCodec_=new JqA;this.fastHandshake_=
f&&f.fastHandshake||!1;this.encodeInitMessageHeaders_=f&&f.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19616_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=f&&f.blockingHandshake||!1;f&&f.disableRedact&&this.JSC$19616_channelDebug_.disableRedact();f&&f.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
f&&f.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;f&&f.longPollingTimeout&&f.longPollingTimeout>0&&(this.longPollingTimeout_=f.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
b6.prototype.JSC$19618_channelVersion_=8;b6.prototype.state_=1;
b6.prototype.connect=function(f,H,v,t){this.JSC$19616_channelDebug_.debug("connect()");u6(0);this.JSC$19616_path_=f;this.JSC$19616_extraParams_=H||{};v&&t!==void 0&&(this.JSC$19616_extraParams_.OSID=v,this.JSC$19616_extraParams_.OAID=t);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19616_channelDebug_.debug("connectChannel_()");f=lNt(this,null,this.JSC$19616_path_);this.JSC$19616_channelDebug_.debug("GetForwardChannelUri: "+f);this.JSC$19616_forwardChannelUri_=f;UL5(this)};
b6.prototype.disconnect=function(){this.JSC$19616_channelDebug_.debug("disconnect()");eu5(this);if(this.state_==3){var f=this.JSC$19616_nextRid_++,H=this.JSC$19616_forwardChannelUri_.clone();_.iS(H,"SID",this.sid_);_.iS(H,"RID",f);_.iS(H,"TYPE","terminate");i6(this,H);f=new CF(this,this.JSC$19616_channelDebug_,this.sid_,f);f.JSC$19597_type_=2;f.JSC$19597_baseUri_=_.vC(H.clone());H=!1;if(_.Mr.navigator&&_.Mr.navigator.sendBeacon)try{H=_.Mr.navigator.sendBeacon(f.JSC$19597_baseUri_.toString(),"")}catch(v){}!H&&
_.Mr.Image&&((new Image).src=f.JSC$19597_baseUri_,H=!0);H||(f.JSC$19597_xmlHttp_=bRx(f.JSC$19597_channel_,null),f.JSC$19597_xmlHttp_.send(f.JSC$19597_baseUri_));f.JSC$19597_requestStartTime_=Date.now();AAW(f)}LAA(this)};
var Y3F=function(f){f.JSC$19616_backChannelRequest_&&(hux(f),f.JSC$19616_backChannelRequest_.cancel(),f.JSC$19616_backChannelRequest_=null)},eu5=function(f){Y3F(f);
f.JSC$19616_backChannelTimerId_&&(_.Mr.clearTimeout(f.JSC$19616_backChannelTimerId_),f.JSC$19616_backChannelTimerId_=null);yqr(f);f.forwardChannelRequestPool_.cancel();f.JSC$19616_forwardChannelTimerId_&&(typeof f.JSC$19616_forwardChannelTimerId_==="number"&&_.Mr.clearTimeout(f.JSC$19616_forwardChannelTimerId_),f.JSC$19616_forwardChannelTimerId_=null)};
b6.prototype.getState=function(){return this.state_};
var UL5=function(f){ga5(f.forwardChannelRequestPool_)||f.JSC$19616_forwardChannelTimerId_||(f.JSC$19616_forwardChannelTimerId_=!0,_.jg(f.JSC$19618_onStartForwardChannelTimer_,f),f.JSC$19616_forwardChannelRetryCount_=0)},Bgi=function(f,H){if($LF(f.forwardChannelRequestPool_)>=f.forwardChannelRequestPool_.JSC$19607_maxSize_-(f.JSC$19616_forwardChannelTimerId_?1:0))return!1;
if(f.JSC$19616_forwardChannelTimerId_)return f.JSC$19616_channelDebug_.debug("Use the retry request that is already scheduled."),f.JSC$19616_outgoingMaps_=H.JSC$19597_pendingMessages_.concat(f.JSC$19616_outgoingMaps_),!0;if(f.state_==1||f.state_==2||f.JSC$19616_forwardChannelRetryCount_>=(f.JSC$19616_failFast_?0:f.JSC$19616_forwardChannelMaxRetries_))return!1;f.JSC$19616_channelDebug_.debug("Going to retry POST");f.JSC$19616_forwardChannelTimerId_=a7((0,_.FH)(f.JSC$19618_onStartForwardChannelTimer_,
f,H),xL0(f,f.JSC$19616_forwardChannelRetryCount_));f.JSC$19616_forwardChannelRetryCount_++;return!0};
b6.prototype.JSC$19618_onStartForwardChannelTimer_=function(f){if(this.JSC$19616_forwardChannelTimerId_)if(this.JSC$19616_forwardChannelTimerId_=null,this.JSC$19616_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!f){this.JSC$19616_channelDebug_.debug("open_()");this.JSC$19616_nextRid_=Math.floor(Math.random()*1E5);f=this.JSC$19616_nextRid_++;var H=new CF(this,this.JSC$19616_channelDebug_,"",f),v=this.JSC$19616_extraHeaders_;this.initHeaders_&&(v?(v=_.QA.clone(v),_.QA.extend(v,this.initHeaders_)):
v=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(H.JSC$19597_extraHeaders_=v,v=null);var t;if(this.fastHandshake_)a:{for(var M=t=0;M<this.JSC$19616_outgoingMaps_.length;M++){b:{var h=this.JSC$19616_outgoingMaps_[M];if("__data__"in h.map&&(h=h.map.__data__,typeof h==="string")){h=h.length;break b}h=void 0}if(h===void 0)break;t+=h;if(t>4096){t=M;break a}if(t===4096||M===this.JSC$19616_outgoingMaps_.length-1){t=M+1;break a}}t=1E3}else t=1E3;t=zut(this,H,t);
M=this.JSC$19616_forwardChannelUri_.clone();_.iS(M,"RID",f);_.iS(M,"CVER",22);this.httpSessionIdParam_&&_.iS(M,"X-HTTP-Session-Id",this.httpSessionIdParam_);i6(this,M);v&&(this.encodeInitMessageHeaders_?t="headers="+_.c6(XIA(v))+"&"+t:this.httpHeadersOverwriteParam_&&AZA(M,this.httpHeadersOverwriteParam_,v));INW(this.forwardChannelRequestPool_,H);this.blockingHandshake_&&_.iS(M,"TYPE","init");this.fastHandshake_?(_.iS(M,"$req",t),_.iS(M,"SID","null"),H.decodeInitialResponse_=!0,XDx(H,M,null)):XDx(H,
M,t);this.state_=2}}else this.state_==3&&(f?FAx(this,f):this.JSC$19616_outgoingMaps_.length==0?this.JSC$19616_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):ga5(this.forwardChannelRequestPool_)||(FAx(this),this.JSC$19616_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var FAx=function(f,H){var v;H?v=H.JSC$19597_rid_:v=f.JSC$19616_nextRid_++;var t=f.JSC$19616_forwardChannelUri_.clone();_.iS(t,"SID",f.sid_);_.iS(t,"RID",v);_.iS(t,"AID",f.JSC$19616_lastArrayId_);i6(f,t);f.httpHeadersOverwriteParam_&&f.JSC$19616_extraHeaders_&&AZA(t,f.httpHeadersOverwriteParam_,f.JSC$19616_extraHeaders_);v=new CF(f,f.JSC$19616_channelDebug_,f.sid_,v,f.JSC$19616_forwardChannelRetryCount_+1);f.httpHeadersOverwriteParam_===null&&(v.JSC$19597_extraHeaders_=f.JSC$19616_extraHeaders_);H&&
(f.JSC$19616_outgoingMaps_=H.JSC$19597_pendingMessages_.concat(f.JSC$19616_outgoingMaps_));H=zut(f,v,1E3);v.setTimeout(Math.round(f.JSC$19616_forwardChannelRequestTimeoutMs_*.5)+Math.round(f.JSC$19616_forwardChannelRequestTimeoutMs_*.5*Math.random()));INW(f.forwardChannelRequestPool_,v);XDx(v,t,H)},i6=function(f,H){f.JSC$19616_extraParams_&&_.QA.forEach(f.JSC$19616_extraParams_,function(v,t){_.iS(H,t,v)});
f.handler_&&_.QA.forEach({},function(v,t){_.iS(H,t,v)})},zut=function(f,H,v){v=Math.min(f.JSC$19616_outgoingMaps_.length,v);
var t=f.handler_?(0,_.FH)(f.handler_.JSC$19622_badMapError,f.handler_,f):null;a:{for(var M=f.JSC$19616_outgoingMaps_,h=-1;;){var y=["count="+v];h==-1?v>0?(h=M[0].JSC$19604_mapId,y.push("ofs="+h)):h=0:y.push("ofs="+h);for(var m=!0,W=0;W<v;W++){var I=M[W].JSC$19604_mapId,S=M[W].map;I-=h;if(I<0)h=Math.max(0,M[W].JSC$19604_mapId-100),m=!1;else try{I="req"+I+"_"||"";try{var d=S instanceof Map?S:Object.entries(S);for(var Z=_.V(d),l=Z.next();!l.done;l=Z.next()){var L=_.V(l.value),r=L.next().value,n=L.next().value,
Q=n;_.vo(n)&&(Q=(0,_.UB)(n));y.push(I+r+"="+encodeURIComponent(Q))}}catch(C){throw y.push(I+"type="+encodeURIComponent("_badmap")),C;}}catch(C){t&&t(S)}}if(m){d=y.join("&");break a}}d=void 0}f=f.JSC$19616_outgoingMaps_.splice(0,v);H.JSC$19597_pendingMessages_=f;return d},rqA=function(f){f.JSC$19616_backChannelRequest_||f.JSC$19616_backChannelTimerId_||(f.JSC$19616_backChannelAttemptId_=1,_.jg(f.JSC$19618_onStartBackChannelTimer_,f),f.JSC$19616_backChannelRetryCount_=0)},mL5=function(f){if(f.JSC$19616_backChannelRequest_||
f.JSC$19616_backChannelTimerId_||f.JSC$19616_backChannelRetryCount_>=3)return!1;
f.JSC$19616_channelDebug_.debug("Going to retry GET");f.JSC$19616_backChannelAttemptId_++;f.JSC$19616_backChannelTimerId_=a7((0,_.FH)(f.JSC$19618_onStartBackChannelTimer_,f),xL0(f,f.JSC$19616_backChannelRetryCount_));f.JSC$19616_backChannelRetryCount_++;return!0};
b6.prototype.JSC$19618_onStartBackChannelTimer_=function(){this.JSC$19616_backChannelTimerId_=null;KAx(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19616_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19616_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19616_backChannelRequest_+" "+this.handshakeRttMs_);else{var f=4*this.handshakeRttMs_;this.JSC$19616_channelDebug_.info("BP detection timer enabled: "+f);this.bpDetectionTimerId_=a7((0,_.FH)(this.onBpDetectionTimer_,
this),f)}};
b6.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19616_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19616_backChannelRequest_.JSC$19597_xmlHttp_!=null){var f=this.JSC$19616_backChannelRequest_.JSC$19597_xmlHttp_.getResponseText();f&&this.JSC$19616_channelDebug_.warning("Timer should have been cancelled : "+f)}this.JSC$19616_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;u6(10);Y3F(this);KAx(this)}else this.JSC$19616_channelDebug_.warning("Invalid operation.")};
var hux=function(f){f.bpDetectionTimerId_!=null&&(f.JSC$19616_channelDebug_.debug("Cancel the BP detection timer."),_.Mr.clearTimeout(f.bpDetectionTimerId_),f.bpDetectionTimerId_=null)},KAx=function(f){f.JSC$19616_channelDebug_.debug("Creating new HttpRequest");
f.JSC$19616_backChannelRequest_=new CF(f,f.JSC$19616_channelDebug_,f.sid_,"rpc",f.JSC$19616_backChannelAttemptId_);f.httpHeadersOverwriteParam_===null&&(f.JSC$19616_backChannelRequest_.JSC$19597_extraHeaders_=f.JSC$19616_extraHeaders_);f.JSC$19616_backChannelRequest_.JSC$19597_readyStateChangeThrottleMs_=0;var H=f.JSC$19616_backChannelUri_.clone();_.iS(H,"RID","rpc");_.iS(H,"SID",f.sid_);_.iS(H,"AID",f.JSC$19616_lastArrayId_);_.iS(H,"CI",f.enableStreaming_?"0":"1");!f.enableStreaming_&&f.longPollingTimeout_&&
_.iS(H,"TO",f.longPollingTimeout_);_.iS(H,"TYPE","xmlhttp");i6(f,H);f.httpHeadersOverwriteParam_&&f.JSC$19616_extraHeaders_&&AZA(H,f.httpHeadersOverwriteParam_,f.JSC$19616_extraHeaders_);f.backChannelRequestTimeoutMs_&&f.JSC$19616_backChannelRequest_.setTimeout(f.backChannelRequestTimeoutMs_);var v=f.JSC$19616_backChannelRequest_,t=f.JSC$19616_hostPrefix_;v.JSC$19597_type_=1;v.JSC$19597_baseUri_=_.vC(H.clone());v.JSC$19597_postData_=null;v.decodeChunks_=!0;cAp(v,t);f.JSC$19616_channelDebug_.debug("New Request created")};
b6.prototype.JSC$19618_onBackChannelDead_=function(){this.JSC$19616_deadBackChannelTimerId_!=null&&(this.JSC$19616_deadBackChannelTimerId_=null,Y3F(this),mL5(this),u6(19))};
var yqr=function(f){f.JSC$19616_deadBackChannelTimerId_!=null&&(_.Mr.clearTimeout(f.JSC$19616_deadBackChannelTimerId_),f.JSC$19616_deadBackChannelTimerId_=null)},va5=function(f,H){f.JSC$19616_channelDebug_.debug("Request complete");
var v=null;if(f.JSC$19616_backChannelRequest_==H){yqr(f);hux(f);f.JSC$19616_backChannelRequest_=null;var t=2}else if(Vhp(f.forwardChannelRequestPool_,H))v=H.JSC$19597_pendingMessages_,S3r(f.forwardChannelRequestPool_,H),t=1;else return;if(f.state_!=0)if(H.JSC$19597_successful_)t==1?(pDG(H.JSC$19597_postData_?H.JSC$19597_postData_.length:0,Date.now()-H.JSC$19597_requestStartTime_,f.JSC$19616_forwardChannelRetryCount_),UL5(f)):rqA(f);else{var M=H.JSC$19597_lastStatusCode_,h=H.getLastError();if(h==3||
h==0&&M>0)f.JSC$19616_channelDebug_.debug("Not retrying due to error type"),M>200&&(f.errorResponseStatusCode_=H.JSC$19597_lastStatusCode_);else{f.JSC$19616_channelDebug_.debug(function(){return"Maybe retrying, last error: "+Cb0(h,f.errorResponseStatusCode_)});
if(t==1&&Bgi(f,H)||t==2&&mL5(f))return;f.JSC$19616_channelDebug_.debug("Exceeded max number of retries")}v&&v.length>0&&jE0(f.forwardChannelRequestPool_,v);f.JSC$19616_channelDebug_.debug("Error: HTTP request failed");switch(h){case 1:cm(f,5);break;case 4:cm(f,10);break;case 3:cm(f,6);break;default:cm(f,2)}}},xL0=function(f,H){var v=f.JSC$19616_baseRetryDelayMs_+Math.floor(Math.random()*f.JSC$19616_retryDelaySeedMs_);
f.isActive()||(f.JSC$19616_channelDebug_.debug("Inactive channel"),v*=2);return v*H};
b6.prototype.onInput_=function(f,H){for(var v=0;v<f.length;v++){var t=f[v];this.JSC$19616_lastArrayId_=t[0];t=t[1];if(this.state_==2)if(t[0]=="c"){this.sid_=t[1];this.JSC$19616_hostPrefix_=t[2];var M=t[3];M!=null&&(this.JSC$19618_channelVersion_=M,this.JSC$19616_channelDebug_.info("VER="+this.JSC$19618_channelVersion_));M=t[4];M!=null&&(this.serverVersion_=M,this.JSC$19616_channelDebug_.info("SVER="+this.serverVersion_));t=t[5];t!=null&&typeof t==="number"&&t>0&&(this.backChannelRequestTimeoutMs_=
t*=1.5,this.JSC$19616_channelDebug_.info("backChannelRequestTimeoutMs_="+t));if(t=H.JSC$19597_xmlHttp_){var h=KJ(t,"X-Client-Wire-Protocol");h&&(M=this.forwardChannelRequestPool_,!M.requestPool_&&(_.$v(h,"spdy")||_.$v(h,"quic")||_.$v(h,"h2"))&&(M.JSC$19607_maxSize_=M.maxPoolSizeConfigured_,M.requestPool_=new Set,M.JSC$19607_request_&&(INW(M,M.JSC$19607_request_),M.JSC$19607_request_=null)));this.httpSessionIdParam_&&((t=KJ(t,"X-HTTP-Session-Id"))?(this.httpSessionId_=t,_.iS(this.JSC$19616_forwardChannelUri_,
this.httpSessionIdParam_,t)):this.JSC$19616_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$19622_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-H.JSC$19597_requestStartTime_,this.JSC$19616_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));t=H;M=lNt(this,this.JSC$19616_supportsCrossDomainXhrs_?this.JSC$19616_hostPrefix_:null,this.JSC$19616_path_);this.JSC$19616_channelDebug_.debug("GetBackChannelUri: "+
M);this.JSC$19616_backChannelUri_=M;t.initialResponseDecoded_?(this.JSC$19616_channelDebug_.debug("Upgrade the handshake request to a backchannel."),S3r(this.forwardChannelRequestPool_,t),M=t,(h=this.backChannelRequestTimeoutMs_)&&M.setTimeout(h),M.JSC$19597_watchDogTimerId_&&(T_F(M),AAW(M)),this.JSC$19616_backChannelRequest_=t):rqA(this);this.JSC$19616_outgoingMaps_.length>0&&UL5(this)}else t[0]!="stop"&&t[0]!="close"||cm(this,7);else this.state_==3&&(t[0]=="stop"||t[0]=="close"?t[0]=="stop"?cm(this,
7):this.disconnect():t[0]!="noop"&&this.handler_&&this.handler_.JSC$19622_channelHandleArray(t),this.JSC$19616_backChannelRetryCount_=0)}};
var cm=function(f,H){f.JSC$19616_channelDebug_.info("Error code "+H);if(H==2){var v=(0,_.FH)(f.testNetworkCallback_,f),t=f.networkTestUrl_,M=!t;t=new _.qC(t||"//www.google.com/images/cleardot.gif");_.Mr.location&&_.Mr.location.protocol=="http"||_.Ae(t,"https");_.vC(t);M?sEA(t.toString(),v):ZKA(t.toString(),v)}else u6(2);f.onError_(H)};
b6.prototype.testNetworkCallback_=function(f){f?(this.JSC$19616_channelDebug_.info("Successfully pinged google.com"),u6(2)):(this.JSC$19616_channelDebug_.info("Failed to ping google.com"),u6(1))};
b6.prototype.onError_=function(f){this.JSC$19616_channelDebug_.debug("HttpChannel: error - "+f);this.state_=0;this.handler_&&this.handler_.JSC$19622_channelError(f);LAA(this);eu5(this)};
var LAA=function(f){f.state_=0;f.nonAckedMapsAtChannelClose_=[];if(f.handler_){var H=dLW(f.forwardChannelRequestPool_);if(H.length!=0||f.JSC$19616_outgoingMaps_.length!=0)f.JSC$19616_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+H.length+", outgoing: "+f.JSC$19616_outgoingMaps_.length}),_.qr(f.nonAckedMapsAtChannelClose_,H),_.qr(f.nonAckedMapsAtChannelClose_,f.JSC$19616_outgoingMaps_),f.forwardChannelRequestPool_.JSC$19607_pendingMessages_.length=0,_.kv(f.JSC$19616_outgoingMaps_),
f.JSC$19616_outgoingMaps_.length=0;
f.handler_.JSC$19622_channelClosed()}},DLh=function(f){if(f.state_==0)return f.nonAckedMapsAtChannelClose_;
var H=[];_.qr(H,dLW(f.forwardChannelRequestPool_));_.qr(H,f.JSC$19616_outgoingMaps_);return H},lNt=function(f,H,v){var t=_.Ax(v);
t.JSC$10022_domain_!=""?(H&&_.bz(t,H+"."+t.JSC$10022_domain_),_.iz(t,t.JSC$10022_port_)):(t=_.Mr.location,t=DNr(t.protocol,H?H+"."+t.hostname:t.hostname,+t.port,v));H=f.httpSessionIdParam_;v=f.httpSessionId_;H&&v&&_.iS(t,H,v);_.iS(t,"VER",f.JSC$19618_channelVersion_);i6(f,t);return t},bRx=function(f,H,v){if(H&&!f.JSC$19616_supportsCrossDomainXhrs_)throw Error("Ik");
H=f.usesFetchStreams_&&!f.JSC$19616_xmlHttpFactory_?new _.eg(new bc({streamBinaryChunks:v})):new _.eg(f.JSC$19616_xmlHttpFactory_);H.JSC$9787_withCredentials_=f.JSC$19616_supportsCrossDomainXhrs_;return H};
b6.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var oa0=function(){};
_.R=oa0.prototype;_.R.JSC$19622_channelOpened=function(){};
_.R.JSC$19622_channelHandleArray=function(){};
_.R.JSC$19622_channelError=function(){};
_.R.JSC$19622_channelClosed=function(){};
_.R.isActive=function(){return!0};
_.R.JSC$19622_badMapError=function(){};var naG=function(){},Tp=function(f,H){_.Sg.call(this);
this.JSC$19625_channel_=new b6(H);this.JSC$19625_url_=f;this.messageUrlParams_=H&&H.messageUrlParams||null;f=H&&H.messageHeaders||null;H&&H.clientProtocolHeaderRequired&&(f?_.QA.set(f,"X-Client-Protocol","webchannel"):f=_.QA.create("X-Client-Protocol","webchannel"));this.JSC$19625_channel_.JSC$19616_extraHeaders_=f;f=H&&H.initMessageHeaders||null;H&&H.messageContentType&&(f?_.QA.set(f,"X-WebChannel-Content-Type",H.messageContentType):f=_.QA.create("X-WebChannel-Content-Type",H.messageContentType));
H&&H.clientProfile&&(f?_.QA.set(f,"X-WebChannel-Client-Profile",H.clientProfile):f=_.QA.create("X-WebChannel-Client-Profile",H.clientProfile));this.JSC$19625_channel_.initHeaders_=f;(f=H&&H.httpHeadersOverwriteParam)&&!_.ms(f)&&(this.JSC$19625_channel_.httpHeadersOverwriteParam_=f);this.supportsCrossDomainXhr_=H&&H.supportsCrossDomainXhr||!1;this.sendRawJson_=H&&H.sendRawJson||!1;(H=H&&H.httpSessionIdParam)&&!_.ms(H)&&(this.JSC$19625_channel_.httpSessionIdParam_=H,_.QA.containsKey(this.messageUrlParams_,
H)&&_.QA.remove(this.messageUrlParams_,H));this.channelHandler_=new kQ(this)};
_.f8(Tp,_.Sg);Tp.prototype.open=function(){this.JSC$19625_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19625_channel_.JSC$19616_supportsCrossDomainXhrs_=!0);this.JSC$19625_channel_.connect(this.JSC$19625_url_,this.messageUrlParams_||void 0)};
Tp.prototype.close=function(){this.JSC$19625_channel_.disconnect()};
Tp.prototype.send=function(f){var H=this.JSC$19625_channel_;if(typeof f==="string"){var v={};v.__data__=f;f=v}else this.sendRawJson_&&(v={},v.__data__=(0,_.UB)(f),f=v);H.JSC$19616_outgoingMaps_.push(new WAh(H.JSC$19616_nextMapId_++,f));H.state_==3&&UL5(H)};
Tp.prototype.disposeInternal=function(){this.JSC$19625_channel_.handler_=null;delete this.channelHandler_;this.JSC$19625_channel_.disconnect();delete this.JSC$19625_channel_;Tp.superClass_.disposeInternal.call(this)};
var pt5=function(f){zzW.call(this);f.__headers__&&(this.headers=f.__headers__,this.statusCode=f.__status__,delete f.__headers__,delete f.__status__);var H=f.__sm__;H?this.data=(this.metadataKey=_.QA.getAnyKey(H))?_.QA.get(H,this.metadataKey):H:this.data=f};
_.f8(pt5,zzW);var QEx=function(f){Fch.call(this);this.status=1;this.errorCode=f};
_.f8(QEx,Fch);var kQ=function(f){this.JSC$19632_channel_=f};
_.f8(kQ,oa0);kQ.prototype.JSC$19622_channelOpened=function(){this.JSC$19632_channel_.dispatchEvent("w")};
kQ.prototype.JSC$19622_channelHandleArray=function(f){this.JSC$19632_channel_.dispatchEvent(new pt5(f))};
kQ.prototype.JSC$19622_channelError=function(f){this.JSC$19632_channel_.dispatchEvent(new QEx(f))};
kQ.prototype.JSC$19622_channelClosed=function(){this.JSC$19632_channel_.dispatchEvent("x")};
var uDt=function(f,H){this.transportChannel_=f;this.JSC$19635_channel_=H},aNA=function(f){return DLh(f.JSC$19635_channel_).map(function(H){var v=f.transportChannel_;
H=H.map;"__data__"in H?(H=H.__data__,v=v.sendRawJson_?(0,_.YZh)(H):H):v=H;return v})};
uDt.prototype.commit=function(f){this.JSC$19635_channel_.forwardChannelFlushedCallback_=f};var wf=function(f){Pew.dispatchEvent(new Gsp(Pew,f))},Pew=new _.Sg,Gsp=function(f,H){_.$R.call(this,"statevent",f);
this.stat=H};
_.e(Gsp,_.$R);var q5=function(f,H,v,t,M){this.JSC$19640_channel_=f;this.JSC$19640_channelDebug_=H;this.sid_=v;this.JSC$19640_rid_=t;this.JSC$19640_retryId_=M||1;this.timeout_=45E3;this.JSC$19640_eventHandler_=new _.Y1(this);this.pollingTimer_=new _.ye;this.pollingTimer_.setInterval(250)};
_.R=q5.prototype;_.R.JSC$19642_extraHeaders_=null;_.R.JSC$19642_successful_=!1;_.R.JSC$19642_watchDogTimerId_=null;_.R.JSC$19642_watchDogTimeoutTime_=null;_.R.JSC$19642_requestStartTime_=null;_.R.JSC$19642_type_=null;_.R.JSC$19642_baseUri_=null;_.R.JSC$19642_requestUri_=null;_.R.JSC$19642_postData_=null;_.R.JSC$19642_xmlHttp_=null;_.R.JSC$19642_xmlHttpChunkStart_=0;_.R.trident_=null;_.R.JSC$19642_verb_=null;_.R.JSC$19642_lastError_=null;_.R.JSC$19642_lastStatusCode_=-1;_.R.sendClose_=!0;
_.R.JSC$19642_cancelled_=!1;_.R.JSC$19642_readyStateChangeThrottleMs_=0;_.R.JSC$19642_readyStateChangeThrottle_=null;var Cep=function(f,H){switch(f){case 0:return"Non-200 return code ("+H+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},Ea0={},Ngx={};
q5.prototype.setTimeout=function(f){this.timeout_=f};
var Xtp=function(f,H,v){f.JSC$19642_type_=1;f.JSC$19642_baseUri_=_.vC(H.clone());f.JSC$19642_postData_=v;f.decodeChunks_=!0;cqt(f,null)},Aqr=function(f,H,v,t,M){f.JSC$19642_type_=1;
f.JSC$19642_baseUri_=_.vC(H.clone());f.JSC$19642_postData_=null;f.decodeChunks_=v;M&&(f.sendClose_=!1);cqt(f,t)},cqt=function(f,H){f.JSC$19642_requestStartTime_=Date.now();
bKA(f);f.JSC$19642_requestUri_=f.JSC$19642_baseUri_.clone();UN(f.JSC$19642_requestUri_,"t",f.JSC$19640_retryId_);f.JSC$19642_xmlHttpChunkStart_=0;f.JSC$19642_xmlHttp_=f.JSC$19640_channel_.JSC$19649_createXhrIo(f.JSC$19640_channel_.JSC$19649_shouldUseSecondaryDomains()?H:null);f.JSC$19642_readyStateChangeThrottleMs_>0&&(f.JSC$19642_readyStateChangeThrottle_=new _.Nl((0,_.FH)(f.JSC$19642_xmlHttpHandler_,f,f.JSC$19642_xmlHttp_),f.JSC$19642_readyStateChangeThrottleMs_));f.JSC$19640_eventHandler_.listen(f.JSC$19642_xmlHttp_,
"readystatechange",f.JSC$19642_readyStateChangeHandler_);H=f.JSC$19642_extraHeaders_?_.QA.clone(f.JSC$19642_extraHeaders_):{};f.JSC$19642_postData_?(f.JSC$19642_verb_="POST",H["Content-Type"]="application/x-www-form-urlencoded",f.JSC$19642_xmlHttp_.send(f.JSC$19642_requestUri_,f.JSC$19642_verb_,f.JSC$19642_postData_,H)):(f.JSC$19642_verb_="GET",f.sendClose_&&!_.Rp&&(H.Connection="close"),f.JSC$19642_xmlHttp_.send(f.JSC$19642_requestUri_,f.JSC$19642_verb_,null,H));f.JSC$19640_channel_.notifyServerReachabilityEvent(1);
H=f.JSC$19640_channelDebug_;var v=f.JSC$19642_postData_;if(v){var t="";v=v.split("&");for(var M=0;M<v.length;M++){var h=v[M].split("=");if(h.length>1){var y=h[0];h=h[1];var m=y.split("_");t=m.length>=2&&m[1]=="type"?t+(y+"="+h+"&"):t+(y+"=redacted&")}}}else t=null;H.info("XMLHTTP REQ ("+f.JSC$19640_rid_+") [attempt "+f.JSC$19640_retryId_+"]: "+f.JSC$19642_verb_+"\n"+f.JSC$19642_requestUri_+"\n"+t)};
q5.prototype.JSC$19642_readyStateChangeHandler_=function(f){f=f.target;var H=this.JSC$19642_readyStateChangeThrottle_;H&&_.Lh(f)==3?(this.JSC$19640_channelDebug_.debug("Throttling readystatechange."),H.fire()):this.JSC$19642_xmlHttpHandler_(f)};
q5.prototype.JSC$19642_xmlHttpHandler_=function(f){try{if(f==this.JSC$19642_xmlHttp_)a:{var H=_.Lh(this.JSC$19642_xmlHttp_),v=this.JSC$19642_xmlHttp_.JSC$9787_lastErrorCode_,t=this.JSC$19642_xmlHttp_.getStatus();if(_.Rp&&!_.VB("420+")){if(H<4)break a}else if(H<3||H==3&&!this.JSC$19642_xmlHttp_.getResponseText())break a;this.JSC$19642_cancelled_||H!=4||v==7||(v==8||t<=0?this.JSC$19640_channel_.notifyServerReachabilityEvent(3):this.JSC$19640_channel_.notifyServerReachabilityEvent(2));iKp(this);var M=
this.JSC$19642_xmlHttp_.getStatus();this.JSC$19642_lastStatusCode_=M;var h=this.JSC$19642_xmlHttp_.getResponseText();h||this.JSC$19640_channelDebug_.debug("No response text for uri "+this.JSC$19642_requestUri_+" status "+M);this.JSC$19642_successful_=M==200;this.JSC$19640_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19640_rid_+") [ attempt "+this.JSC$19640_retryId_+"]: "+this.JSC$19642_verb_+"\n"+this.JSC$19642_requestUri_+"\n"+H+" "+M);if(this.JSC$19642_successful_){H==4&&fH(this);if(this.decodeChunks_){for(f=
!0;!this.JSC$19642_cancelled_&&this.JSC$19642_xmlHttpChunkStart_<h.length;){var y=ksx(this,h);if(y==Ngx){H==4&&(this.JSC$19642_lastError_=4,wf(15),f=!1);Hz(this.JSC$19640_channelDebug_,this.JSC$19640_rid_,null,"[Incomplete Response]");break}else if(y==Ea0){this.JSC$19642_lastError_=4;wf(16);Hz(this.JSC$19640_channelDebug_,this.JSC$19640_rid_,h,"[Invalid Chunk]");f=!1;break}else Hz(this.JSC$19640_channelDebug_,this.JSC$19640_rid_,y,null),TgW(this,y)}H==4&&h.length==0&&(this.JSC$19642_lastError_=1,
wf(17),f=!1);this.JSC$19642_successful_=this.JSC$19642_successful_&&f;f||(Hz(this.JSC$19640_channelDebug_,this.JSC$19640_rid_,h,"[Invalid Chunked Response]"),fH(this),wth(this))}else Hz(this.JSC$19640_channelDebug_,this.JSC$19640_rid_,h,null),TgW(this,h);this.JSC$19642_successful_&&!this.JSC$19642_cancelled_&&(H==4?this.JSC$19640_channel_.JSC$19649_onRequestComplete(this):(this.JSC$19642_successful_=!1,bKA(this)))}else M==400&&h.indexOf("Unknown SID")>0?(this.JSC$19642_lastError_=3,wf(13),this.JSC$19640_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19640_rid_+")")):(this.JSC$19642_lastError_=0,wf(14),this.JSC$19640_channelDebug_.warning("XMLHTTP Bad status "+M+" ("+this.JSC$19640_rid_+")")),fH(this),wth(this)}else this.JSC$19640_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(m){this.JSC$19640_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var ksx=function(f,H){var v=f.JSC$19642_xmlHttpChunkStart_,t=H.indexOf("\n",v);if(t==-1)return Ngx;v=Number(H.substring(v,t));if(isNaN(v))return Ea0;t+=1;if(t+v>H.length)return Ngx;H=H.slice(t,t+v);f.JSC$19642_xmlHttpChunkStart_=t+v;return H};
q5.prototype.cancel=function(){this.JSC$19642_cancelled_=!0;fH(this)};
var bKA=function(f){f.JSC$19642_watchDogTimeoutTime_=Date.now()+f.timeout_;q3A(f,f.timeout_)},q3A=function(f,H){if(f.JSC$19642_watchDogTimerId_!=null)throw Error("Hk");
f.JSC$19642_watchDogTimerId_=NM((0,_.FH)(f.JSC$19642_onWatchDogTimeout_,f),H)},iKp=function(f){f.JSC$19642_watchDogTimerId_&&(_.Mr.clearTimeout(f.JSC$19642_watchDogTimerId_),f.JSC$19642_watchDogTimerId_=null)};
q5.prototype.JSC$19642_onWatchDogTimeout_=function(){this.JSC$19642_watchDogTimerId_=null;var f=Date.now();f-this.JSC$19642_watchDogTimeoutTime_>=0?(this.JSC$19640_channelDebug_.info("TIMEOUT: "+this.JSC$19642_requestUri_),this.JSC$19642_type_!=2&&this.JSC$19640_channel_.notifyServerReachabilityEvent(3),fH(this),this.JSC$19642_lastError_=2,wf(18),wth(this)):(this.JSC$19640_channelDebug_.warning("WatchDog timer called too early"),q3A(this,this.JSC$19642_watchDogTimeoutTime_-f))};
var wth=function(f){f.JSC$19640_channel_.JSC$19649_isClosed()||f.JSC$19642_cancelled_||f.JSC$19640_channel_.JSC$19649_onRequestComplete(f)},fH=function(f){iKp(f);
_.Mj(f.JSC$19642_readyStateChangeThrottle_);f.JSC$19642_readyStateChangeThrottle_=null;f.pollingTimer_.stop();f.JSC$19640_eventHandler_.removeAll();if(f.JSC$19642_xmlHttp_){var H=f.JSC$19642_xmlHttp_;f.JSC$19642_xmlHttp_=null;H.abort();H.dispose()}f.trident_&&(f.trident_=null)};
q5.prototype.getLastError=function(){return this.JSC$19642_lastError_};
var TgW=function(f,H){try{f.JSC$19640_channel_.JSC$19649_onRequestData(f,H),f.JSC$19640_channel_.notifyServerReachabilityEvent(4)}catch(v){}};var Hz=function(f,H,v,t){var M=f.info;a:if(v&&v!="y2f%"){try{var h=JSON.parse(v);if(h)for(var y=0;y<h.length;y++)if(Array.isArray(h[y])){var m=h[y];if(!(m.length<2)){var W=m[1];if(Array.isArray(W)&&!(W.length<1)){var I=W[0];if(I!="noop"&&I!="stop")for(var S=1;S<W.length;S++)W[S]=""}}}var d=(0,_.UB)(h);break a}catch(Z){f.debug("Exception parsing expected JS array - probably was not JS");d=v;break a}d=void 0}else d=v;M.call(f,"XMLHTTP TEXT ("+H+"): "+d+(t?" "+t:""))};
cg.prototype.debug=function(f){this.info(f)};
cg.prototype.info=function(){};
cg.prototype.warning=function(){};var f6b=function(f,H){this.JSC$19647_channel_=f;this.JSC$19647_channelDebug_=H;this.JSC$19647_parser_=new pF};
_.R=f6b.prototype;_.R.JSC$19649_extraHeaders_=null;_.R.JSC$19649_request_=null;_.R.receivedIntermediateResult_=!1;_.R.JSC$19649_path_=null;_.R.state_=null;_.R.JSC$19649_lastStatusCode_=-1;_.R.JSC$19649_hostPrefix_=null;_.R.blockedPrefix_=null;
_.R.connect=function(f){this.JSC$19649_path_=f;f=H3F(this.JSC$19647_channel_,this.JSC$19649_path_);wf(3);Date.now();var H=this.JSC$19647_channel_.firstTestResults_;H!=null?(this.JSC$19649_hostPrefix_=H[0],(this.blockedPrefix_=H[1])?(this.state_=1,v3W(this)):(this.state_=2,tHb(this))):(UN(f,"MODE","init"),this.JSC$19649_request_=new q5(this,this.JSC$19647_channelDebug_),this.JSC$19649_request_.JSC$19642_extraHeaders_=this.JSC$19649_extraHeaders_,Aqr(this.JSC$19649_request_,f,!1,null,!0),this.state_=
0)};
var v3W=function(f){var H=MHA(f.JSC$19647_channel_,f.blockedPrefix_,"/mail/images/cleardot.gif");_.vC(H);z9b(H.toString(),5E3,(0,_.FH)(f.checkBlockedCallback_,f),3,2E3);f.notifyServerReachabilityEvent(1)};
f6b.prototype.checkBlockedCallback_=function(f){if(f)this.state_=2,tHb(this);else{wf(4);var H=this.JSC$19647_channel_;H.JSC$19650_channelDebug_.debug("Test Connection Blocked");H.JSC$19654_lastStatusCode_=H.connectionTest_.JSC$19649_lastStatusCode_;vz(H,9)}f&&this.notifyServerReachabilityEvent(2)};
var tHb=function(f){f.JSC$19647_channelDebug_.debug("TestConnection: starting stage 2");var H=f.JSC$19647_channel_.secondTestResults_;H!=null?(f.JSC$19647_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+H?"Buffered":"Unbuffered"),wf(5),H?(wf(11),tC(f.JSC$19647_channel_,f,!1)):(wf(12),tC(f.JSC$19647_channel_,f,!0))):(f.JSC$19649_request_=new q5(f,f.JSC$19647_channelDebug_),f.JSC$19649_request_.JSC$19642_extraHeaders_=f.JSC$19649_extraHeaders_,H=iOr(f.JSC$19647_channel_,
f.JSC$19649_hostPrefix_,f.JSC$19649_path_),wf(5),UN(H,"TYPE","xmlhttp"),Aqr(f.JSC$19649_request_,H,!1,f.JSC$19649_hostPrefix_,!1))};
_.R=f6b.prototype;_.R.JSC$19649_createXhrIo=function(f){return this.JSC$19647_channel_.JSC$19649_createXhrIo(f)};
_.R.abort=function(){this.JSC$19649_request_&&(this.JSC$19649_request_.cancel(),this.JSC$19649_request_=null);this.JSC$19649_lastStatusCode_=-1};
_.R.JSC$19649_isClosed=function(){return!1};
_.R.JSC$19649_onRequestData=function(f,H){this.JSC$19649_lastStatusCode_=f.JSC$19642_lastStatusCode_;if(this.state_==0)if(this.JSC$19647_channelDebug_.debug("TestConnection: Got data for stage 1"),H){try{var v=this.JSC$19647_parser_.parse(H)}catch(t){kut(this.JSC$19647_channel_,this);return}this.JSC$19649_hostPrefix_=v[0];this.blockedPrefix_=v[1]}else this.JSC$19647_channelDebug_.debug("TestConnection: Null responseText"),kut(this.JSC$19647_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(wf(7),Date.now()):H=="11111"?(wf(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19649_lastStatusCode_=200,this.JSC$19649_request_.cancel(),this.JSC$19647_channelDebug_.debug("Test connection succeeded; using streaming connection"),wf(12),tC(this.JSC$19647_channel_,this,!0)):(wf(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.R.JSC$19649_onRequestComplete=function(){this.JSC$19649_lastStatusCode_=this.JSC$19649_request_.JSC$19642_lastStatusCode_;this.JSC$19649_request_.JSC$19642_successful_?this.state_==0?(this.JSC$19647_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,v3W(this)):(this.state_=2,tHb(this))):this.state_==2&&(this.JSC$19647_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19647_channelDebug_.debug("Test connection succeeded; using streaming connection"),
wf(12),tC(this.JSC$19647_channel_,this,!0)):(this.JSC$19647_channelDebug_.debug("Test connection failed; not using streaming"),wf(11),tC(this.JSC$19647_channel_,this,!1))):(this.JSC$19647_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?wf(9):this.state_==2&&wf(10),kut(this.JSC$19647_channel_,this,this.JSC$19649_request_.getLastError()))};
_.R.JSC$19649_shouldUseSecondaryDomains=function(){return this.JSC$19647_channel_.JSC$19649_shouldUseSecondaryDomains()};
_.R.isActive=function(){return this.JSC$19647_channel_.isActive()};
_.R.notifyServerReachabilityEvent=function(f){this.JSC$19647_channel_.notifyServerReachabilityEvent(f)};var MH=function(f,H,v){this.state_=1;this.JSC$19650_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19650_channelDebug_=new cg;this.JSC$19650_parser_=new pF;this.firstTestResults_=f||null;this.secondTestResults_=H!=null?H:null;this.asyncTest_=v||!1},ToW=function(f,H){this.JSC$19652_mapId=f;
this.map=H;this.context=null};
_.R=MH.prototype;_.R.JSC$19654_extraHeaders_=null;_.R.JSC$19654_extraParams_=null;_.R.forwardChannelRequest_=null;_.R.JSC$19654_backChannelRequest_=null;_.R.JSC$19654_path_=null;_.R.JSC$19654_forwardChannelUri_=null;_.R.JSC$19654_backChannelUri_=null;_.R.JSC$19654_hostPrefix_=null;_.R.JSC$19654_nextRid_=0;_.R.JSC$19654_nextMapId_=0;_.R.handler_=null;_.R.JSC$19654_forwardChannelTimerId_=null;_.R.JSC$19654_backChannelTimerId_=null;_.R.JSC$19654_deadBackChannelTimerId_=null;_.R.connectionTest_=null;
_.R.useChunked_=null;_.R.JSC$19654_lastArrayId_=-1;_.R.JSC$19654_lastPostResponseArrayId_=-1;_.R.JSC$19654_lastStatusCode_=-1;_.R.JSC$19654_forwardChannelRetryCount_=0;_.R.JSC$19654_backChannelRetryCount_=0;_.R.JSC$19654_channelVersion_=8;var wLp={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},qIx=function(f,H,v,t){_.$R.call(this,"timingevent",f);this.size=H;this.rtt=v;this.retries=t};
_.f8(qIx,_.$R);var f5t=function(f){_.$R.call(this,"serverreachability",f)};
_.f8(f5t,_.$R);MH.prototype.connect=function(f,H,v,t,M){this.JSC$19650_channelDebug_.debug("connect()");wf(0);this.JSC$19654_path_=H;this.JSC$19654_extraParams_=v||{};t&&M!==void 0&&(this.JSC$19654_extraParams_.OSID=t,this.JSC$19654_extraParams_.OAID=M);this.asyncTest_?(NM((0,_.FH)(this.connectTest_,this,f),100),HM0(this)):this.connectTest_(f)};
MH.prototype.disconnect=function(){this.JSC$19650_channelDebug_.debug("disconnect()");vii(this);if(this.state_==3){var f=this.JSC$19654_nextRid_++,H=this.JSC$19654_forwardChannelUri_.clone();_.iS(H,"SID",this.sid_);_.iS(H,"RID",f);_.iS(H,"TYPE","terminate");hC(this,H);f=new q5(this,this.JSC$19650_channelDebug_,this.sid_,f);f.JSC$19642_type_=2;f.JSC$19642_baseUri_=_.vC(H.clone());(new Image).src=f.JSC$19642_baseUri_.toString();f.JSC$19642_requestStartTime_=Date.now();bKA(f)}tDw(this)};
MH.prototype.connectTest_=function(f){this.JSC$19650_channelDebug_.debug("connectTest_()");this.connectionTest_=new f6b(this,this.JSC$19650_channelDebug_);this.connectionTest_.JSC$19649_extraHeaders_=this.JSC$19654_extraHeaders_;this.connectionTest_.JSC$19647_parser_=this.JSC$19650_parser_;this.connectionTest_.connect(f)};
var HM0=function(f){f.JSC$19650_channelDebug_.debug("connectChannel_()");f.JSC$19654_ensureInState_(1,0);f.JSC$19654_forwardChannelUri_=H3F(f,f.JSC$19654_path_);MDG(f)},vii=function(f){f.connectionTest_&&(f.connectionTest_.abort(),f.connectionTest_=null);
f.JSC$19654_backChannelRequest_&&(f.JSC$19654_backChannelRequest_.cancel(),f.JSC$19654_backChannelRequest_=null);f.JSC$19654_backChannelTimerId_&&(_.Mr.clearTimeout(f.JSC$19654_backChannelTimerId_),f.JSC$19654_backChannelTimerId_=null);hPG(f);f.forwardChannelRequest_&&(f.forwardChannelRequest_.cancel(),f.forwardChannelRequest_=null);f.JSC$19654_forwardChannelTimerId_&&(_.Mr.clearTimeout(f.JSC$19654_forwardChannelTimerId_),f.JSC$19654_forwardChannelTimerId_=null)},RPW=function(f,H){if(f.state_==0)throw Error("Kk");
f.JSC$19650_outgoingMaps_.length==1E3&&f.JSC$19650_parser_.stringify(H);f.JSC$19650_outgoingMaps_.push(new ToW(f.JSC$19654_nextMapId_++,H));f.state_!=2&&f.state_!=3||MDG(f)};
MH.prototype.JSC$19649_isClosed=function(){return this.state_==0};
MH.prototype.getState=function(){return this.state_};
var MDG=function(f){f.forwardChannelRequest_||f.JSC$19654_forwardChannelTimerId_||(f.JSC$19654_forwardChannelTimerId_=NM((0,_.FH)(f.JSC$19654_onStartForwardChannelTimer_,f),0),f.JSC$19654_forwardChannelRetryCount_=0)};
MH.prototype.JSC$19654_onStartForwardChannelTimer_=function(f){this.JSC$19654_forwardChannelTimerId_=null;VDw(this,f)};
var VDw=function(f,H){f.JSC$19650_channelDebug_.debug("startForwardChannel_");if(f.state_==1){if(!H){f.JSC$19650_channelDebug_.debug("open_()");f.JSC$19654_nextRid_=Math.floor(Math.random()*1E5);H=f.JSC$19654_nextRid_++;var v=new q5(f,f.JSC$19650_channelDebug_,"",H);v.JSC$19642_extraHeaders_=f.JSC$19654_extraHeaders_;var t=yph(f),M=f.JSC$19654_forwardChannelUri_.clone();_.iS(M,"RID",H);_.iS(M,"CVER","1");hC(f,M);Xtp(v,M,t);f.forwardChannelRequest_=v;f.state_=2}}else f.state_==3&&(H?Yzx(f,H):f.JSC$19650_outgoingMaps_.length==
0?f.JSC$19650_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):f.forwardChannelRequest_||(Yzx(f),f.JSC$19650_channelDebug_.debug("startForwardChannel_ finished, sent request")))},Yzx=function(f,H){if(H)if(f.JSC$19654_channelVersion_>6){f.JSC$19650_outgoingMaps_=f.pendingMaps_.concat(f.JSC$19650_outgoingMaps_);
f.pendingMaps_.length=0;var v=f.JSC$19654_nextRid_-1;H=yph(f)}else v=H.JSC$19640_rid_,H=H.JSC$19642_postData_;else v=f.JSC$19654_nextRid_++,H=yph(f);var t=f.JSC$19654_forwardChannelUri_.clone();_.iS(t,"SID",f.sid_);_.iS(t,"RID",v);_.iS(t,"AID",f.JSC$19654_lastArrayId_);hC(f,t);v=new q5(f,f.JSC$19650_channelDebug_,f.sid_,v,f.JSC$19654_forwardChannelRetryCount_+1);v.JSC$19642_extraHeaders_=f.JSC$19654_extraHeaders_;v.setTimeout(1E4+Math.round(1E4*Math.random()));f.forwardChannelRequest_=v;Xtp(v,t,H)},
hC=function(f,H){f.handler_&&(f=f.handler_.JSC$19661_getAdditionalParams())&&_.QA.forEach(f,function(v,t){_.iS(H,t,v)})},yph=function(f){var H=Math.min(f.JSC$19650_outgoingMaps_.length,1E3),v=["count="+H];
if(f.JSC$19654_channelVersion_>6&&H>0){var t=f.JSC$19650_outgoingMaps_[0].JSC$19652_mapId;v.push("ofs="+t)}else t=0;for(var M={},h=0;h<H;M={mapId$jscomp$3:void 0},h++){M.mapId$jscomp$3=f.JSC$19650_outgoingMaps_[h].JSC$19652_mapId;var y=f.JSC$19650_outgoingMaps_[h].map;M.mapId$jscomp$3=f.JSC$19654_channelVersion_<=6?h:M.mapId$jscomp$3-t;try{_.QA.forEach(y,function(m){return function(W,I){v.push("req"+m.mapId$jscomp$3+"_"+I+"="+encodeURIComponent(W))}}(M))}catch(m){v.push("req"+M.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}f.pendingMaps_=f.pendingMaps_.concat(f.JSC$19650_outgoingMaps_.splice(0,H));
return v.join("&")},mBh=function(f){f.JSC$19654_backChannelRequest_||f.JSC$19654_backChannelTimerId_||(f.JSC$19654_backChannelAttemptId_=1,f.JSC$19654_backChannelTimerId_=NM((0,_.FH)(f.JSC$19654_onStartBackChannelTimer_,f),0),f.JSC$19654_backChannelRetryCount_=0)},WHW=function(f){if(f.JSC$19654_backChannelRequest_||f.JSC$19654_backChannelTimerId_||f.JSC$19654_backChannelRetryCount_>=3)return!1;
f.JSC$19650_channelDebug_.debug("Going to retry GET");f.JSC$19654_backChannelAttemptId_++;f.JSC$19654_backChannelTimerId_=NM((0,_.FH)(f.JSC$19654_onStartBackChannelTimer_,f),$BW(f,f.JSC$19654_backChannelRetryCount_));f.JSC$19654_backChannelRetryCount_++;return!0};
MH.prototype.JSC$19654_onStartBackChannelTimer_=function(){this.JSC$19654_backChannelTimerId_=null;this.JSC$19650_channelDebug_.debug("Creating new HttpRequest");this.JSC$19654_backChannelRequest_=new q5(this,this.JSC$19650_channelDebug_,this.sid_,"rpc",this.JSC$19654_backChannelAttemptId_);this.JSC$19654_backChannelRequest_.JSC$19642_extraHeaders_=this.JSC$19654_extraHeaders_;this.JSC$19654_backChannelRequest_.JSC$19642_readyStateChangeThrottleMs_=0;var f=this.JSC$19654_backChannelUri_.clone();_.iS(f,
"RID","rpc");_.iS(f,"SID",this.sid_);_.iS(f,"CI",this.useChunked_?"0":"1");_.iS(f,"AID",this.JSC$19654_lastArrayId_);hC(this,f);_.iS(f,"TYPE","xmlhttp");Aqr(this.JSC$19654_backChannelRequest_,f,!0,this.JSC$19654_hostPrefix_,!1);this.JSC$19650_channelDebug_.debug("New Request created")};
var tC=function(f,H,v){f.JSC$19650_channelDebug_.debug("Test Connection Finished");f.useChunked_=f.secondTestResults_==null?v:!f.secondTestResults_;f.JSC$19654_lastStatusCode_=H.JSC$19649_lastStatusCode_;f.asyncTest_||HM0(f)},kut=function(f,H){f.JSC$19650_channelDebug_.debug("Test Connection Failed");
f.JSC$19654_lastStatusCode_=H.JSC$19649_lastStatusCode_;vz(f,2)};
MH.prototype.JSC$19649_onRequestData=function(f,H){if(this.state_!=0&&(this.JSC$19654_backChannelRequest_==f||this.forwardChannelRequest_==f))if(this.JSC$19654_lastStatusCode_=f.JSC$19642_lastStatusCode_,this.forwardChannelRequest_==f&&this.state_==3)if(this.JSC$19654_channelVersion_>7){try{var v=this.JSC$19650_parser_.parse(H)}catch(t){v=null}if(Array.isArray(v)&&v.length==3)if(H=v,H[0]==0)a:if(this.JSC$19650_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19654_backChannelTimerId_)this.JSC$19650_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19654_backChannelRequest_)if(this.JSC$19654_backChannelRequest_.JSC$19642_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19642_requestStartTime_)hPG(this),this.JSC$19654_backChannelRequest_.cancel(),this.JSC$19654_backChannelRequest_=null;else break a;else this.JSC$19650_channelDebug_.warning("We do not have a BackChannel established");WHW(this);wf(19)}else this.JSC$19654_lastPostResponseArrayId_=H[1],f=this.JSC$19654_lastPostResponseArrayId_-this.JSC$19654_lastArrayId_,0<
f&&(H=H[2],this.JSC$19650_channelDebug_.debug(H+" bytes (in "+f+" arrays) are outstanding on the BackChannel"),H<37500&&this.useChunked_&&this.JSC$19654_backChannelRetryCount_==0&&!this.JSC$19654_deadBackChannelTimerId_&&(this.JSC$19654_deadBackChannelTimerId_=NM((0,_.FH)(this.JSC$19654_onBackChannelDead_,this),6E3)));else this.JSC$19650_channelDebug_.debug("Bad POST response data returned"),vz(this,11)}else H!="y2f%"&&(this.JSC$19650_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
vz(this,11));else this.JSC$19654_backChannelRequest_==f&&hPG(this),_.ms(H)||(f=this.JSC$19650_parser_.parse(H),this.onInput_(f))};
MH.prototype.JSC$19654_onBackChannelDead_=function(){this.JSC$19654_deadBackChannelTimerId_!=null&&(this.JSC$19654_deadBackChannelTimerId_=null,this.JSC$19654_backChannelRequest_.cancel(),this.JSC$19654_backChannelRequest_=null,WHW(this),wf(20))};
var hPG=function(f){f.JSC$19654_deadBackChannelTimerId_!=null&&(_.Mr.clearTimeout(f.JSC$19654_deadBackChannelTimerId_),f.JSC$19654_deadBackChannelTimerId_=null)};
MH.prototype.JSC$19649_onRequestComplete=function(f){this.JSC$19650_channelDebug_.debug("Request complete");if(this.JSC$19654_backChannelRequest_==f){hPG(this);this.JSC$19654_backChannelRequest_=null;var H=2}else if(this.forwardChannelRequest_==f)this.forwardChannelRequest_=null,H=1;else return;this.JSC$19654_lastStatusCode_=f.JSC$19642_lastStatusCode_;if(this.state_!=0)if(f.JSC$19642_successful_)if(H==1){H=f.JSC$19642_postData_?f.JSC$19642_postData_.length:0;f=Date.now()-f.JSC$19642_requestStartTime_;
var v=Pew;v.dispatchEvent(new qIx(v,H,f,this.JSC$19654_forwardChannelRetryCount_));MDG(this);this.handler_&&this.handler_.JSC$19661_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else mBh(this);else{v=f.getLastError();if(v==3||v==7||v==0&&this.JSC$19654_lastStatusCode_>0)this.JSC$19650_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19650_channelDebug_.debug("Maybe retrying, last error: "+Cep(v,this.JSC$19654_lastStatusCode_));var t;if(t=H==1)this.forwardChannelRequest_||
this.JSC$19654_forwardChannelTimerId_||this.state_==1||this.JSC$19654_forwardChannelRetryCount_>=2?t=!1:(this.JSC$19650_channelDebug_.debug("Going to retry POST"),this.JSC$19654_forwardChannelTimerId_=NM((0,_.FH)(this.JSC$19654_onStartForwardChannelTimer_,this,f),$BW(this,this.JSC$19654_forwardChannelRetryCount_)),this.JSC$19654_forwardChannelRetryCount_++,t=!0);if(t||H==2&&WHW(this))return;this.JSC$19650_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19650_channelDebug_.debug("Error: HTTP request failed");
switch(v){case 1:vz(this,5);break;case 4:vz(this,10);break;case 3:vz(this,6);break;case 7:vz(this,12);break;default:vz(this,2)}}};
var $BW=function(f,H){var v=5E3+Math.floor(Math.random()*1E4);f.isActive()||(f.JSC$19650_channelDebug_.debug("Inactive channel"),v*=2);return v*H};
MH.prototype.onInput_=function(f){for(var H=0;H<f.length;H++){var v=f[H];this.JSC$19654_lastArrayId_=v[0];v=v[1];this.state_==2?v[0]=="c"?(this.sid_=v[1],this.JSC$19654_hostPrefix_=v[2],v=v[3],v!=null?this.JSC$19654_channelVersion_=v:this.JSC$19654_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19661_channelOpened(),this.JSC$19654_backChannelUri_=iOr(this,this.JSC$19654_hostPrefix_,this.JSC$19654_path_),mBh(this)):v[0]=="stop"&&vz(this,7):this.state_==3&&(v[0]=="stop"?vz(this,7):
v[0]!="noop"&&this.handler_&&this.handler_.JSC$19661_channelHandleArray(v),this.JSC$19654_backChannelRetryCount_=0)}};
MH.prototype.JSC$19654_ensureInState_=function(f){if(!_.cR(arguments,this.state_))throw Error("Lk`"+this.state_);};
var vz=function(f,H){f.JSC$19650_channelDebug_.info("Error code "+H);if(H==2||H==9){var v=null;f.handler_&&(v=null);var t=(0,_.FH)(f.testGoogleComCallback_,f);v||(v=new _.qC("//www.google.com/images/cleardot.gif"),_.vC(v));BZb(v.toString(),1E4,t)}else wf(2);f.onError_(H)};
MH.prototype.testGoogleComCallback_=function(f){f?(this.JSC$19650_channelDebug_.info("Successfully pinged google.com"),wf(2)):(this.JSC$19650_channelDebug_.info("Failed to ping google.com"),wf(1),this.onError_(8))};
MH.prototype.onError_=function(f){this.JSC$19650_channelDebug_.debug("HttpChannel: error - "+f);this.state_=0;this.handler_&&this.handler_.JSC$19661_channelError(f);tDw(this);vii(this)};
var tDw=function(f){f.state_=0;f.JSC$19654_lastStatusCode_=-1;if(f.handler_)if(f.pendingMaps_.length==0&&f.JSC$19650_outgoingMaps_.length==0)f.handler_.JSC$19661_channelClosed();else{f.JSC$19650_channelDebug_.debug("Number of undelivered maps, pending: "+f.pendingMaps_.length+", outgoing: "+f.JSC$19650_outgoingMaps_.length);var H=_.kv(f.pendingMaps_),v=_.kv(f.JSC$19650_outgoingMaps_);f.pendingMaps_.length=0;f.JSC$19650_outgoingMaps_.length=0;f.handler_.JSC$19661_channelClosed(H,v)}},H3F=function(f,
H){H=MHA(f,null,H);
f.JSC$19650_channelDebug_.debug("GetForwardChannelUri: "+H);return H},iOr=function(f,H,v){H=MHA(f,f.JSC$19649_shouldUseSecondaryDomains()?H:null,v);
f.JSC$19650_channelDebug_.debug("GetBackChannelUri: "+H);return H},MHA=function(f,H,v){var t=_.Ax(v);
if(t.JSC$10022_domain_!="")H&&_.bz(t,H+"."+t.JSC$10022_domain_),_.iz(t,t.JSC$10022_port_);else{var M=window.location;t=DNr(M.protocol,H?H+"."+M.hostname:M.hostname,+M.port,v)}f.JSC$19654_extraParams_&&_.QA.forEach(f.JSC$19654_extraParams_,function(h,y){_.iS(t,y,h)});
_.iS(t,"VER",f.JSC$19654_channelVersion_);hC(f,t);return t};
MH.prototype.JSC$19649_createXhrIo=function(f){if(f)throw Error("Ik");f=new _.eg;f.JSC$9787_withCredentials_=!1;return f};
MH.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
MH.prototype.notifyServerReachabilityEvent=function(f){var H=Pew;H.dispatchEvent(new f5t(H,f))};
MH.prototype.JSC$19649_shouldUseSecondaryDomains=function(){return!1};
new abW;var OMG=function(){};
_.R=OMG.prototype;_.R.JSC$19661_channelOpened=function(){};
_.R.JSC$19661_channelHandleArray=function(){};
_.R.JSC$19661_channelSuccess=function(){};
_.R.JSC$19661_channelError=function(){};
_.R.JSC$19661_channelClosed=function(){};
_.R.JSC$19661_getAdditionalParams=function(){return{}};
_.R.isActive=function(){return!0};var gi0=function(f){f.front_.length===0&&(f.front_=f.back_,f.front_.reverse(),f.back_=[])};
_.R=rtp.prototype;_.R.enqueue=function(f){this.back_.push(f)};
_.R.peek=function(){gi0(this);return _.PR(this.front_)};
_.R.getCount=function(){return this.front_.length+this.back_.length};
_.R.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.R.clear=function(){this.front_=[];this.back_=[]};
_.R.contains=function(f){return _.cR(this.front_,f)||_.cR(this.back_,f)};
_.R.remove=function(f){var H=this.front_;var v=Array.prototype.lastIndexOf.call(H,f,H.length-1);v>=0?(_.s3g(H,v),H=!0):H=!1;return H||_.iH(this.back_,f)};
_.R.getValues=function(){for(var f=[],H=this.front_.length-1;H>=0;--H)f.push(this.front_[H]);H=this.back_.length;for(var v=0;v<H;++v)f.push(this.back_[v]);return f};var RD=function(f){this.JSC$19665_map_=new _.hH;this.size=0;f&&this.addAll(f)},I55=function(f){var H=typeof f;
return H=="object"&&f||H=="function"?"o"+_.h9(f):H.charAt(0)+f};
_.R=RD.prototype;_.R.getCount=function(){return this.JSC$19665_map_.size};
_.R.add=function(f){this.JSC$19665_map_.set(I55(f),f);this.size=this.JSC$19665_map_.size};
_.R.addAll=function(f){f=_.XJ(f);for(var H=f.length,v=0;v<H;v++)this.add(f[v]);this.size=this.JSC$19665_map_.size};
_.R.removeAll=function(f){f=_.XJ(f);for(var H=f.length,v=0;v<H;v++)this.remove(f[v]);this.size=this.JSC$19665_map_.size};
_.R.delete=function(f){f=this.JSC$19665_map_.remove(I55(f));this.size=this.JSC$19665_map_.size;return f};
_.R.remove=function(f){return this.delete(f)};
_.R.clear=function(){this.JSC$19665_map_.clear();this.size=0};
_.R.isEmpty=function(){return this.JSC$19665_map_.size===0};
_.R.has=function(f){return this.JSC$19665_map_.containsKey(I55(f))};
_.R.contains=function(f){return this.JSC$19665_map_.containsKey(I55(f))};
_.R.getValues=function(){return this.JSC$19665_map_.getValues()};
_.R.values=function(){return this.JSC$19665_map_.values()};
_.R.clone=function(){return new RD(this)};
_.R.equals=function(f){return this.getCount()==rQp(f)&&Szw(this,f)};
var Szw=function(f,H){var v=rQp(H);if(f.getCount()>v)return!1;!(H instanceof RD)&&v>5&&(H=new RD(H));return Kmr(f,function(t){var M=H;return M.contains&&typeof M.contains=="function"?M.contains(t):M.containsValue&&typeof M.containsValue=="function"?M.containsValue(t):_.Tb(M)||typeof M==="string"?_.cR(M,t):_.QA.containsValue(M,t)})};
RD.prototype.__iterator__=function(){return this.JSC$19665_map_.__iterator__(!1)};
RD.prototype[Symbol.iterator]=function(){return this.values()};var dBb={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(f){return(this._clampValue(f)-this.min)/(this.max-this.min)},
_clampValue:function(f){return Math.min(this.max,Math.max(this.min,this._calcStep(f)))},
_calcStep:function(f){f=parseFloat(f);if(!this.step)return f;f=Math.round((f-this.min)/this.step);return this.step<1?f/(1/this.step)+this.min:f*this.step+this.min},
_validateValue:function(){var f=this._clampValue(this.value);this.value=this.oldValue=isNaN(f)?this.oldValue:f;return this.value!==f},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var jjt;var sjW;_.p2({_template:function(){if(sjW!==void 0)return sjW;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;jjt===void 0&&(jjt=document.createElement("template"));var t=jjt;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return sjW=f},
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(){_.qV(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(f){f.keyCode===27&&(f.preventDefault(),this.close())},
_track:function(f){if(!this.persistent&&!this.disableSwipe)switch(f.preventDefault(),f.detail.state){case "start":this._trackStart(f);break;case "track":this._trackMove(f);break;case "end":this._trackEnd(f)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var f=this.$.contentContainer.getBoundingClientRect();this._savedWidth=f.width;this._translateOffset=this.position==="left"?f.left:f.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(f){this._trackDetails&&(this._translateDrawer(f.detail.dx+this._translateOffset),this._trackDetails.push({dx:f.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(f){if(this._trackDetails){var H=f.detail.dx+this._translateOffset,v=this.getWidth();H=this.position==="left"?H>=0||H<=-v:H<=0||H>=v;if(!H){var t=this._trackDetails;this._trackDetails=null;this._flingDrawer(f,t);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}v/=2;f.detail.dx<-v?this.opened=this.position==="right":f.detail.dx>v&&(this.opened=this.position==="left");H?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(f,H){for(var v=Date.now(),t=v-100,M,h=0,y=H.length-1;h<=y;){var m=h+y>>1,W=H[m];W.timeStamp>=t?(M=W,y=m-1):h=m+1}return M?(f.detail.dx-M.dx)/(v-M.timeStamp||1):0},
_flingDrawer:function(f,H){H=this._calculateVelocity(f,H);if(!(Math.abs(H)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;f=f.detail.dx+this._translateOffset;var v=this.getWidth(),t=this.position==="left",M=H>0;M?(H=Math.max(H,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(H=Math.min(H,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");H=this._FLING_INITIAL_SLOPE*(!M&&t?-(f+v):M&&!t?v-f:-f)/H;this._styleTransitionDuration(H);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,H)}},
_styleTransitionDuration:function(f){this.style.transitionDuration=f+"ms";this.$.contentContainer.style.transitionDuration=f+"ms";this.$.scrim.style.transitionDuration=f+"ms"},
_styleTransitionTimingFunction:function(f){this.$.contentContainer.style.transitionTimingFunction=f;this.$.scrim.style.transitionTimingFunction=f},
_translateDrawer:function(f){var H=this.getWidth();this.position==="left"?(f=Math.max(-H,Math.min(f,0)),this.$.scrim.style.opacity=1+f/H):(f=Math.max(0,Math.min(f,H)),this.$.scrim.style.opacity=1-f/H);this.translate3d(f+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var f=this._drawerState;f===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;f!==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=""),f!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var f=_.Fj(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"])');f.length>0?(this._firstTabStop=f[0],this._lastTabStop=f[f.length-1]):
this._lastTabStop=this._firstTabStop=null;(f=this.getAttribute("tabindex"))&&parseInt(f,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(f){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||f.keyCode!==9||(f.shiftKey?this._firstTabStop&&_.Fj(f).localTarget===this._firstTabStop&&(f.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.Fj(f).localTarget===this._lastTabStop&&(f.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(f,H){this.toggleClass("visible",f&&!H,this.$.scrim);this.debounce("_resetDrawerState",this._resetDrawerState,this.transitionDuration)},
_MIN_FLING_THRESHOLD:.2,_MIN_TRANSITION_VELOCITY:1.2,_FLING_TIMING_FUNCTION:"cubic-bezier(0.667, 1, 0.667, 1)",_FLING_INITIAL_SLOPE:1.5,_DRAWER_STATE:{INIT:0,OPENED:1,OPENED_PERSISTENT:2,CLOSED:3,TRACKING:4,FLINGING:5}});var ZMG;var Jpp;_.p2({_template:function(){if(Jpp!==void 0)return Jpp;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;ZMG===void 0&&(ZMG=document.createElement("template"));var t=ZMG;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return Jpp=f},
is:"tp-yt-paper-progress",behaviors:[dBb],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(f){this.toggleClass("indeterminate",f,this.$.primaryProgress)},
_transformProgress:function(f,H){f.style.transform=f.style.webkitTransform="scaleX("+H/100+")"},
_mainRatioChanged:function(f){this._transformProgress(this.$.primaryProgress,f)},
_progressChanged:function(f,H,v,t,M){f=this._clampValue(f);H=this._clampValue(H);var h=this._calcRatio(f)*100,y=this._calcRatio(H)*100;this._setSecondaryRatio(h);this._transformProgress(this.$.secondaryProgress,h);this._transformProgress(this.$.primaryProgress,y);this.secondaryProgress=f;M?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",H);this.setAttribute("aria-valuemin",v);this.setAttribute("aria-valuemax",t)},
_disabledChanged:function(f){this.setAttribute("aria-disabled",f?"true":"false")},
_hideSecondaryProgress:function(f){return f===0}});var l5p;var UBh;var ePx=function(){};
_.R=ePx.prototype;_.R.registered=function(){};
_.R.addOwnKeyBinding=function(){};
_.R.removeOwnKeyBindings=function(){};
_.R.keyboardEventMatchesKeys=function(){};
_.R._collectKeyBindings=function(){};
_.R._prepKeyBindings=function(){};
_.R._addKeyBinding=function(){};
_.R._resetKeyEventListeners=function(){};
_.R._listenKeyEventListeners=function(){};
_.R._unlistenKeyEventListeners=function(){};
_.R._onKeyBindingEvent=function(){};
_.R._triggerKeyHandler=function(){};
_.R._tapHandler=function(){};
_.R._focusChanged=function(){};
_.R._detectKeyboardFocus=function(){};
_.R._userActivate=function(){};
_.R._upHandler=function(){};
_.R._spaceKeyDownHandler=function(){};
_.R._spaceKeyUpHandler=function(){};
_.R._asyncClick=function(){};
_.R._pressedChanged=function(){};
_.R._ariaActiveAttributeChanged=function(){};
_.R._activeChanged=function(){};
_.R._controlStateChanged=function(){};
_.R._changedButtonState=function(){};
_.R._focusBlurHandler=function(){};
_.R._disabledChanged=function(){};
_.R._changedControlState=function(){};
_.R._buttonStateChanged=function(){};
_.R._downHandler=function(){};
_.R.ensureRipple=function(){};
_.R.getRipple=function(){};
_.R.hasRipple=function(){};
_.R._noinkChanged=function(){};
_.R._calcRatio=function(){};
_.R._clampValue=function(){};
_.R._calcStep=function(){};
_.R._validateValue=function(){};
_.R._update=function(){};
_.R._setImmediateValue=function(){};
_.R._setExpand=function(){};
_.R._setDragging=function(){};
_.R._setTransiting=function(){};
_.R._setMarkers=function(){};
_.R._setPressed=function(){};
_.R._setPointerDown=function(){};
_.R._setReceivedFocusFromKeyboard=function(){};
_.R._setFocused=function(){};
_.R._setRatio=function(){};
ePx=_.p2({_template:function(){if(UBh!==void 0)return UBh;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;l5p===void 0&&(l5p=document.createElement("template"));var t=l5p;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return UBh=f},
is:"tp-yt-paper-slider",behaviors:[_.dS,_.JH,_.t4Z,dBb],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&&_.uK(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(f,H,v){this.setAttribute("aria-valuemin",H);this.setAttribute("aria-valuemax",v);this.setAttribute("aria-valuenow",f);this._positionKnob(this._calcRatio(f)*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(f){this._setImmediateValue(this._calcStep(this._calcKnobPosition(f)));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(f){return(this.max-this.min)*f/100+this.min},
_onTrack:function(f){f.stopPropagation();switch(f.detail.state){case "start":this._trackStart(f);break;case "track":this._trackX(f);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(f){this.dragging||this._trackStart(f);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,f.detail.dx*(this._isRTL?-1:1)));f=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(f);f=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(f+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var f=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;f.transform=f.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(f){this._expandKnob();f.preventDefault();this.focus()},
_bartrack:function(f){this._allowBarEvent(f)&&this._onTrack(f)},
_barclick:function(f){this._w=this.$.sliderBar.offsetWidth;var H=this.$.sliderBar.getBoundingClientRect();H=(f.detail.x-H.left)/this._w*100;this._isRTL&&(H=100-H);var v=this.ratio;this._setTransiting(!0);this._positionKnob(H);v===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
f.preventDefault();this.focus()},
_bardown:function(f){this._allowBarEvent(f)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(f))},
_knobTransitionEnd:function(f){f.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(f,H,v,t){t||this._setMarkers([]);H=Math.round((v-H)/this.step);H>f&&(H=f);if(H<0||!isFinite(H))H=0;this._setMarkers(Array(H))},
_mergeClasses:function(f){return Object.keys(f).filter(function(H){return f[H]}).join(" ")},
_getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},
_allowBarEvent:function(f){return!this.ignoreBarTouch||f.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(f){this._isRTL?this._incrementKey(f):this._decrementKey(f)},
_rightKey:function(f){this._isRTL?this._decrementKey(f):this._incrementKey(f)},
_incrementKey:function(f){this.disabled||(f.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),f.preventDefault())},
_decrementKey:function(f){this.disabled||(f.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),f.preventDefault())},
_changeValue:function(f){this.value=f.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(f){f.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.vfr._createRipple.call(this)},
_focusedChanged:function(f){f&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=f?"":"none",this._ripple.holdDown=f)}});var LHi;var xBb;var Vm=null,B4p=function(){};
_.R=B4p.prototype;_.R.fit=function(){};
_.R._discoverInfo=function(){};
_.R.resetFit=function(){};
_.R.refit=function(){};
_.R.position=function(){};
_.R.constrain=function(){};
_.R._sizeDimension=function(){};
_.R.__sizeDimension=function(){};
_.R.center=function(){};
_.R.__getNormalizedRect=function(){};
_.R.__getOffscreenArea=function(){};
_.R.__getPosition=function(){};
_.R.notifyResize=function(){};
_.R.assignParentResizable=function(){};
_.R.stopResizeNotificationsFor=function(){};
_.R._subscribeIronResize=function(){};
_.R._unsubscribeIronResize=function(){};
_.R.resizerShouldNotify=function(){};
_.R._onDescendantIronResize=function(){};
_.R._fireResize=function(){};
_.R._onIronRequestResizeNotifications=function(){};
_.R._parentResizableChanged=function(){};
_.R._notifyDescendant=function(){};
_.R._requestResizeNotifications=function(){};
_.R._findParent=function(){};
_.R.toggle=function(){};
_.R.open=function(){};
_.R.close=function(){};
_.R.cancel=function(){};
_.R.invalidateTabbables=function(){};
_.R._ensureSetup=function(){};
_.R._canceledChanged=function(){};
_.R._withBackdropChanged=function(){};
_.R._prepareRenderOpened=function(){};
_.R._finishRenderOpened=function(){};
_.R._finishRenderClosed=function(){};
_.R._preparePositioning=function(){};
_.R._finishPositioning=function(){};
_.R._applyFocus=function(){};
_.R._onCaptureClick=function(){};
_.R._onCaptureFocus=function(){};
_.R._onCaptureEsc=function(){};
_.R._onCaptureTab=function(){};
_.R._onIronResize=function(){};
_.R._onNodesChange=function(){};
_.R.__ensureFirstLastFocusables=function(){};
_.R.__openedChanged=function(){};
_.R.__deraf=function(){};
_.R.__updateScrollObservers=function(){};
_.R.__addScrollListeners=function(){};
_.R.__removeScrollListeners=function(){};
_.R.__isValidScrollAction=function(){};
_.R.__onCaptureScroll=function(){};
_.R.__saveScrollPosition=function(){};
_.R.__restoreScrollPosition=function(){};
_.R._setCanceled=function(){};
B4p=_.p2({_template:function(){if(xBb!==void 0)return xBb;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;LHi===void 0&&(LHi=document.createElement("template"));var t=LHi;v.call(H,t.content.cloneNode(!0),f.content.firstChild);return xBb=f},
is:"tp-yt-paper-toast",behaviors:[_.GA],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(){_.s3._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.p3.requestAvailability()},
show:function(f){typeof f=="string"&&(f={text:f});for(var H in f)H.indexOf("_")===0?_.s3._warn('The property "'+H+'" is private and was not set.'):H in this?this[H]=f[H]:_.s3._warn('The property "'+H+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(f){f&&f.target===this&&f.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(Vm&&Vm!==this&&Vm.close(),Vm=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):Vm===this&&(Vm=null);_.Pw._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(f){this.positionTarget=f},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var zPp=new _.Ak("disablePersonalizationAction");var hIt=new _.Ak("showDmaConsentFlowCommand");var RIw=new _.Ak("showMmgNoticeCommand");var FHx=new _.Ak("saveConsentAction");var rp0=function(f){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.C0(f)};
_.e(rp0,_.mL);var KHW=_.oUR(rp0);var DBx=new _.Ak("updateTopbarAvatarAction");var oit=new _.Ak("channelHandleValidationResultRenderer");var ni0=new _.Ak("generateHandleFromNameResultRenderer");var pHi=new _.Ak("channelHandleInputRenderer");var QjA=new _.Ak("copyLinkRenderer");var u9p=new _.Ak("timedCommand");var a5i=new _.Ak("clearCookieAction");var Pqb=new _.Ak("getMultiPageMenuAction");var GFF=new _.Ak("addToGuideSectionAction"),Cqb=new _.Ak("removeFromGuideSectionAction");var EiA=new _.Ak("updateNotificationsUnseenCountAction");var N4b=new _.Ak("resetChannelUnreadCountCommand");var cp0=new _.Ak("resetSubscriptionsUnreadDotCommand");var XHx=new _.Ak("selectLanguageCommand");var ZVW=new _.Ak("sendFeedbackAction");var ApG=new _.Ak("uploadImageToScottyCommand");var bMi=new _.Ak("registerPromoCommand");var iMt=new _.Ak("setPushNotificationsEnabledCommand");var kFx=new _.Ak("desktopTopbarRenderer");var T45=new _.Ak("surveyFollowUpRenderer");var wHF=new _.Ak("handlesClaimingRadioOptionRenderer");var qzb=new _.Ak("hotkeyDialogRenderer");var fsx=new _.Ak("modifyReportFormCommand");var HW0=new _.Ak("accountLinkCommand");var vpG=new _.Ak("accountUnlinkCommand");var t3F=new _.Ak("logAccountLinkingEventCommand");var M3t=new _.Ak("guideCollapsibleEntryRenderer");var h5G=new _.Ak("guideDownloadsEntryRenderer");var ym=new _.Ak("guideEntryRenderer");var R5G=new _.Ak("getLocationCommand");var V3G=new _.Ak("locationCollectionCommand");var y$G=new _.Ak("storiesItemViewModel");var YLG=new _.Ak("addToRemoteQueueAction");var m80=new _.Ak("insertInRemoteQueueAction");var $8t=new _.Ak("removeFromRemoteQueueAction");var WJW=new _.Ak("notificationRenderer");var N6x=new _.Ak("localWatchHistoryCommand");var OW0=new _.Ak("pdgBuyFlowHeaderRenderer");var gpx=new _.Ak("pdgColorSliderRenderer");var Isi=new _.Ak("pdgCommentOptionRenderer");var SLG=new _.Ak("pdgCommentPreviewRenderer");var d8W=new _.Ak("superVodSelectableItemButtonRenderer");var jMb=new _.Ak("switchButtonRenderer");var sM5=new _.Ak("upsellDialogRenderer");var ZWW=new _.Ak("feedbackQuestionRenderer"),J$p=new _.Ak("feedbackOptionRenderer");var ls0=new _.Ak("sponsorshipsTierRenderer"),U8A=new _.Ak("sponsorshipsPromotionChannelRenderer");var e5F=new _.Ak("simpleSurveyMessageRenderer");var ZTp=new _.Ak("invokeInstrumentManagerAction");var LJw=new _.Ak("logYpcFlowDismissCommand");var x8G=new _.Ak("logYpcFlowStartCommand");var Btx=new _.Ak("unlimitedCreateFamilyEndpoint");var z55=new _.Ak("iconBadgeRenderer");var cVi=new _.Ak("collaborativePlaylistVisibilityValidationRule");var FJx=function(f){_.$R.call(this,"channelMessage");this.message=f};
_.e(FJx,_.$R);var r$t=function(f){_.$R.call(this,"channelError");this.error=f};
_.e(r$t,_.$R);var KJt={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw",PUNCTUAL_WATCH:"pcw",IP_VALIDATION:"ipv"},D85={UNKNOWN_THEME:"u",CLASSIC:"cl",
KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},opp={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},np5={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},ppW={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var Yt=function(f){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 _.hH;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;f&&(this.id=f.id||f.name,this.name=f.name,this.clientName=f.clientName?f.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=f.app,this.type=f.type||"REMOTE_CONTROL",this.username=f.user||"",this.avatar=f.userAvatarUri||"",this.obfuscatedGaiaId=f.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=f.ownerObfuscatedGaiaId||"",this.castUserId=f.castUserId||"",this.theme=f.theme||"u",QMp(this,f.capabilities||""),uoA(this,
f.compatibleSenderThemes||""),asA(this,f.experiments||""),this.remoteControllerUrl=f.remoteControllerUrl||"",this.localChannelEncryptionKey=f.localChannelEncryptionKey||"",this.deviceContext=f.deviceContext,this.brand=f.brand||"",this.model=f.model||"",this.year=f.year||0,this.os=f.os||"",this.osVersion=f.osVersion||"",this.chipset=f.chipset||"",this.mdxDialServerType=f.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=f.pairingType||"unknown",f=f.deviceInfo)&&(f=JSON.parse(f),this.brand=
f.brand||"",this.model=f.model||"",this.year=f.year||0,this.os=f.os||"",this.osVersion=f.osVersion||"",this.chipset=f.chipset||"",this.clientName=f.clientName?f.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=f.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
Yt.prototype.copy=function(){var f={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&&(f.brand=this.brand);
this.model&&(f.model=this.model);this.year&&(f.year=this.year);this.os&&(f.os=this.os);this.osVersion&&(f.osVersion=this.osVersion);this.chipset&&(f.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(f.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(f.mdxDialServerType=this.mdxDialServerType);f=new Yt(f);f.connected=this.connected;f.remoteControllerUrl=this.remoteControllerUrl;f.localChannelEncryptionKey=this.localChannelEncryptionKey;f.deviceContext=
this.deviceContext;f.castUserId=this.castUserId;return f};
Yt.prototype.equals=function(f){return f?this.id==f.id:!1};
var QMp=function(f,H){f.capabilities.clear();_.vI(H.split(","),_.l0(_.QA.contains,KJt)).forEach(function(v){f.capabilities.add(v)})},uoA=function(f,H){f.compatibleSenderThemes.clear();
_.vI(H.split(","),_.l0(_.QA.contains,D85)).forEach(function(v){f.compatibleSenderThemes.add(v)})},asA=function(f,H){f.experiments.clear();
H.split(",").forEach(function(v){f.experiments.add(v)})};var PMG=function(f,H){this.action=f;this.params=H||{}};_.f8(KN0,_.zO);_.R=KN0.prototype;_.R.JSC$19701_onTick_=function(){this.JSC$19699_interval_=Math.min(3E5,this.JSC$19699_interval_*2);this.JSC$19701_listener_();this.nextTickTime_&&this.start()};
_.R.start=function(){var f=this.JSC$19699_interval_+15E3*Math.random(),H=this.delay_;H.isActive()||H.start(f);this.nextTickTime_=Date.now()+f};
_.R.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.R.isActive=function(){return this.delay_.isActive()};
_.R.reset=function(){this.delay_.stop();this.JSC$19699_interval_=5E3};_.f8(XV,OMG);_.R=XV.prototype;_.R.subscribe=function(f,H,v){return this.pubsub_.subscribe(f,H,v)};
_.R.unsubscribe=function(f,H,v){return this.pubsub_.unsubscribe(f,H,v)};
_.R.unsubscribeByKey=function(f){return this.pubsub_.unsubscribeByKey(f)};
_.R.publish=function(f,H){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.R.dispose=function(){this.JSC$19702_disposed_||(this.JSC$19702_disposed_=!0,_.Mj(this.pubsub_),this.disconnect(),_.Mj(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$19702_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.gj({})})};
_.R.isDisposed=function(){return this.JSC$19702_disposed_};
_.R.connect=function(f,H,v){var t=this,M,h,y,m;return _.Y(function(W){if(W.nextAddress==1)return _.Uq(W,2),t.useAsyncBrowserChannelHandler_?W.yield(t.connectPromise_,2):W.jumpTo(2);_.lk(W);if(t.JSC$19702_disposed_||t.JSC$19702_channel_&&t.JSC$19702_channel_.getState()==2)return W.return();t.sCookie_="";t.reconnectTimer_.stop();t.connectionParams_=f||null;t.connectUi_=H||0;M=t.JSC$19702_pathPrefix_+"/test";h=t.JSC$19702_pathPrefix_+"/bind";y=new MH(v?v.firstTestResults:null,v?v.secondTestResults:null,
t.enableAsyncTest_);if(m=t.JSC$19702_channel_)m.handler_=null;y.handler_=t;t.JSC$19702_channel_=y;if(t.useAsyncBrowserChannelHandler_)return t.connectPromise_=G$G(t).then(function(){return CMt(t,M,h,m,v)}),W.return(t.connectPromise_.then(function(){t.connectPromise_=_.gj()}));
CMt(t,M,h,m,v);return _.ea(W,0)})};
var CMt=function(f,H,v,t,M){Epw(f);if(f.JSC$19702_channel_){var h=_.a8("ID_TOKEN"),y=f.JSC$19702_channel_.JSC$19654_extraHeaders_||{};h?y["x-youtube-identity-token"]=h:delete y["x-youtube-identity-token"];f.JSC$19702_channel_.JSC$19654_extraHeaders_=y}Ntw(f);t?(t.getState(),f.JSC$19702_channel_.connect(H,v,f.defaultQueryParams_,t.sid_,t.JSC$19654_lastArrayId_)):M?f.JSC$19702_channel_.connect(H,v,f.defaultQueryParams_,M.sessionId,M.arrayId):f.JSC$19702_channel_.connect(H,v,f.defaultQueryParams_)};
XV.prototype.disconnect=function(f){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.gj())}finally{this.disconnectUi_=f||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),Epw(this),this.JSC$19702_channel_&&(this.JSC$19702_channel_.getState()==3&&VDw(this.JSC$19702_channel_),this.JSC$19702_channel_.disconnect()),this.disconnectUi_=0}};
XV.prototype.sendMessage=function(f,H){var v=this,t;return _.Y(function(M){switch(M.nextAddress){case 1:_.Uq(M,2);if(!v.useAsyncBrowserChannelHandler_){M.jumpTo(2);break}return M.yield(v.connectPromise_,2);case 2:_.lk(M);if(v.JSC$19702_disposed_)return M.return();t={_sc:f};H&&_.QA.extend(t,H);if(v.reconnectTimer_.isActive()||(v.JSC$19702_channel_?v.JSC$19702_channel_.getState():0)==2){v.JSC$19702_pendingMessages_.push(t);M.jumpTo(6);break}if(!v.isChannelOpened()){M.jumpTo(6);break}_.Uq(M,8);if(!v.useAsyncBrowserChannelHandler_||
c$0(v,f)){M.jumpTo(8);break}return M.yield(G$G(v),8);case 8:_.lk(M,0,0,1);v.isChannelOpened()&&(c$0(v,f)||Ntw(v),Epw(v),RPW(v.JSC$19702_channel_,t));_.ea(M,6,1);break;case 6:_.ea(M,0)}})};
var c$0=function(f,H){return f.enableMdxAuthForConnectionOnly_?!0:f.disableMdxAuthForAdMessages_?Object.values(opp).includes(H):f.disableMdxAuthForNonPlaybackMessages_?!Object.values(np5).includes(H):f.disableMdxAuthForShortsMessages_?Object.values(ppW).includes(H):!1};
XV.prototype.JSC$19661_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$19702_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)Xpb(this);else{var f=this.JSC$19702_pendingMessages_;this.JSC$19702_pendingMessages_=[];var H=f.length;Ntw(this);A$x(this,f,H);bWA(this)}else bWA(this)};
var Xpb=function(f){var H,v;_.Y(function(t){if(t.nextAddress==1)return _.Uq(t,2),t.yield(G$G(f),2);_.lk(t);H=f.JSC$19702_pendingMessages_;f.JSC$19702_pendingMessages_=[];v=H.length;A$x(f,H,v);bWA(f);return _.ea(t,0)})},A$x=function(f,H,v){for(var t=0;t<v;++t)RPW(f.JSC$19702_channel_,H[t]);
bWA(f)},bWA=function(f){f.publish("handlerOpened");
f.JSC$19702_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.R=XV.prototype;_.R.JSC$19661_channelError=function(f){var H=f==2&&this.JSC$19702_channel_.JSC$19654_lastStatusCode_==401;f==4||H||this.reconnectTimer_.start();this.publish("handlerError",f,H);H=Object.keys(wLp).find(function(v){return wLp[v]===f});
this.JSC$19702_channelErrorCounter.increment("BROWSER_CHANNEL",H!=null?H:"UNKNOWN")};
_.R.JSC$19661_channelClosed=function(f,H){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(H)for(var v=H.length,t=0;t<v;++t){var M=H[t].map;M&&this.JSC$19702_pendingMessages_.push(M)}this.JSC$19702_channelClosedCounter.increment("BROWSER_CHANNEL");f&&this.pendingMapsOnClosedCounter.JSC$9923_streamzService.JSC$9778_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",f.length);H&&this.undeliveredMapsOnClosedCounter.JSC$9926_streamzService.JSC$9778_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
H.length)};
_.R.JSC$19661_channelSuccess=function(f,H){H!=null&&f!=null&&this.channelMessageSentCounter.increment()};
_.R.JSC$19661_getAdditionalParams=function(){var f={v:2};this.sCookie_&&(f.gsessionid=this.sCookie_);this.connectUi_!=0&&(f.ui=""+this.connectUi_);this.disconnectUi_!=0&&(f.ui=""+this.disconnectUi_);this.connectionParams_&&_.QA.extend(f,this.connectionParams_);return f};
_.R.JSC$19661_channelHandleArray=function(f){f[0]=="S"?this.sCookie_=f[1]:f[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$19702_channel_.disconnect()):this.publish("handlerMessage",new PMG(f[0],f[1]));this.JSC$19702_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.R.isChannelOpened=function(){return!!this.JSC$19702_channel_&&this.JSC$19702_channel_.getState()==3};
var Epw=function(f){if(f.JSC$19702_channel_){var H=f.JSC$19702_getXsrfToken_(),v=f.JSC$19702_channel_.JSC$19654_extraHeaders_||{};H?v["x-youtube-lounge-xsrf-token"]=H:delete v["x-youtube-lounge-xsrf-token"];f.JSC$19702_channel_.JSC$19654_extraHeaders_=v}},G$G=function(f){if(f.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.gj();
if(!f.enableCachedUpdateAuthorizationHeader_)return iWW(f);f.updateAuthorizationHeaderPromise_===null&&(f.updateAuthorizationHeaderPromise_=iWW(f));return f.updateAuthorizationHeaderPromise_},iWW=function(f){return _.Ze(f.getAuthorizationHeader_().then(function(H){k$h(f,H)}).thenCatch(function(){}),function(){f.updateAuthorizationHeaderPromise_=null})},k$h=function(f,H){if(f.JSC$19702_channel_){var v=f.JSC$19702_channel_.JSC$19654_extraHeaders_||{};
H&&Object.keys(H).length>0?v=Object.assign({},v,H):delete v.Authorization;f.JSC$19702_channel_.JSC$19654_extraHeaders_=v}},Ntw=function(f){f.getAuthorizationHeaderSync_&&!f.useAsyncBrowserChannelHandler_&&k$h(f,f.getAuthorizationHeaderSync_())};
_.R=XV.prototype;_.R.setLoungeToken=function(f){(this.defaultQueryParams_.loungeIdToken=f)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$19702_channel_){var H=this.JSC$19702_channel_.JSC$19654_extraHeaders_||{};f?H["X-YouTube-LoungeId-Token"]=f:delete H["X-YouTube-LoungeId-Token"];this.JSC$19702_channel_.JSC$19654_extraHeaders_=H}};
_.R.getDeviceId=function(){return this.defaultQueryParams_.id};
_.R.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.R.reconnect=function(){var f=this.reconnectTimer_;f.delay_.fire();f.start()};
_.R.safeReconnect_=function(){var f=this.JSC$19702_channel_,H=0;f.JSC$19654_backChannelRequest_&&H++;f.forwardChannelRequest_&&H++;H==0&&this.connect(this.connectionParams_,this.connectUi_)};var qM=function(f,H){var v=f.basePath;f.supportCors&&(v=f.scheme+"://"+f.domain+f.port+f.basePath);return _.kk(v+H,{})};
AL.prototype.sendRequest=function(f,H,v,t,M,h,y){f={format:h?"RAW":"JSON",method:f,context:this,timeout:5E3,withCredentials:!!y,onSuccess:_.l0(this.JSC$19707_onSuccess_,t,!h),onError:_.l0(this.onError_,M),onTimeout:_.l0(this.JSC$19707_onTimeout_,M)};v&&(f.postParams=v,f.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.I2(H,f)};
AL.prototype.JSC$19707_onSuccess_=function(f,H,v,t){H?f(t):f({text:v.responseText})};
AL.prototype.onError_=function(f,H){f(Error("Mk`"+H.status))};
AL.prototype.JSC$19707_onTimeout_=function(f){f(Error("Nk"))};var iG=function(f,H){return!!H&&(f.id==H||f.uuid==H)},TtW=function(f){return{name:f.name,
screenId:f.id,loungeToken:f.token,dialId:f.uuid,screenIdType:f.idType}},wpr=function(f){return new bG(f)},qLx=function(f){return Array.isArray(f)?_.uh(f,wpr):[]},CJW=function(f){if(!f)return"null";
var H=f.token?".."+f.token.slice(-6):"-",v=f.uuid?".."+f.uuid.slice(-6):"-";return'{name:"'+f.name+'",id:'+f.id.substr(0,6)+"..,token:"+(H+",uuid:"+v+",idType:"+f.idType+"}")},Iwt=function(f){return Array.isArray(f)?"["+_.uh(f,CJW).join(",")+"]":"null"};var iGG="",wn=null;var Mrx=function(f,H){_.Sg.call(this);var v=this;this.handler=f();this.handler.subscribe("handlerOpened",this.JSC$19714_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(t,M){v.onError(M)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=H};
_.e(Mrx,_.Sg);_.R=Mrx.prototype;_.R.connect=function(f,H,v){this.handler.connect(f,H,v)};
_.R.disconnect=function(f){this.handler.disconnect(f)};
_.R.reconnect=function(){this.handler.reconnect()};
_.R.getDeviceId=function(){return this.handler.getDeviceId()};
_.R.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.R.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.R.JSC$19714_onOpened=function(){this.dispatchEvent("channelOpened");var f=this.handler,H=this.currentScreenId;_.WH("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!f.JSC$19702_channel_.useChunked_,sessionId:f.JSC$19702_channel_.sid_,arrayId:f.JSC$19702_channel_.JSC$19654_lastArrayId_});_.WH("yt-remote-session-screen-id",H);f=EzW();H=NZW();_.cR(f,H)||f.push(H);bGF(f);Atw()};
_.R.onClosed=function(){this.dispatchEvent("channelClosed")};
_.R.onMessage=function(f){this.dispatchEvent(new FJx(f))};
_.R.onError=function(f){this.dispatchEvent(new r$t(f?1:0))};
_.R.sendMessage=function(f,H){this.handler.sendMessage(f,H)};
_.R.setLoungeToken=function(f){this.handler.setLoungeToken(f)};
_.R.dispose=function(){this.handler.dispose()};var trF=function(f,H,v){var t=this;v=v===void 0?function(){return""}:v;
var M=M===void 0?new naG:M;var h=h===void 0?new _.dH:h;this.pathPrefix=f;this.defaultQueryParams=H;this.getXsrfToken=v;this.JSC$19717_pubsub=h;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new KN0(function(){var y;((y=t.channel)==null?void 0:$LF((new uDt(y,y.JSC$19625_channel_)).JSC$19635_channel_.forwardChannelRequestPool_))===0&&t.connect(t.connectionParams,t.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$19717_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$19717_channelOpenedCounter=new DSx;this.JSC$19717_channelClosedCounter=new ozw;this.JSC$19717_channelMessageReceivedCounter=new pSW;this.JSC$19717_channelErrorCounter=new Q9h};
trF.prototype.connect=function(f,H){f=f===void 0?{}:f;H=H===void 0?0:H;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=f,this.connectUi=H,fu5(this),(f=_.a8("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=f: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 Tp(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,HmW(this))};
var HmW=function(f){_.r9(f.channel,"w",function(){f.channelState=3;f.reconnectTimer.reset();f.connectionParams=null;f.connectUi=0;for(var H=_.V(f.nonAckedMessagesOnChannelClosed),v=H.next();!v.done;v=H.next())v=v.value,f.channel&&f.channel.send(v);f.nonAckedMessagesOnChannelClosed=[];f.publish("webChannelOpened");f.JSC$19717_channelOpenedCounter.increment("WEB_CHANNEL")});
_.r9(f.channel,"x",function(){f.channelState=0;f.reconnectTimer.isActive()||f.publish("webChannelClosed");var H,v=(H=f.channel)==null?void 0:aNA(new uDt(H,H.JSC$19625_channel_));v&&(f.nonAckedMessagesOnChannelClosed=[].concat(_.pS(v)));f.JSC$19717_channelClosedCounter.increment("WEB_CHANNEL")});
_.r9(f.channel,"z",function(H){var v=H.data;v[0]==="gracefulReconnect"?(f.reconnectTimer.start(),f.channel&&f.channel.close()):f.publish("webChannelMessage",new PMG(v[0],v[1]));f.lastStatusCode=H.statusCode;f.JSC$19717_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.r9(f.channel,"y",function(){f.lastStatusCode===401||f.reconnectTimer.start();f.publish("webChannelError");f.JSC$19717_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.R=trF.prototype;_.R.disconnect=function(f){this.disconnectUi=f===void 0?0:f;this.reconnectTimer.stop();fu5(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.R.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.R.reconnect=function(){var f=this.reconnectTimer;f.delay_.fire();f.start()};
_.R.sendMessage=function(f,H){this.channel&&(fu5(this),f=Object.assign({},{_sc:f},H),this.channel.send(f))};
_.R.setLoungeToken=function(f){f||this.reconnectTimer.stop();f?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=f:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var fu5=function(f){var H=f.getXsrfToken();H?f.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=H:delete f.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.R=trF.prototype;_.R.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.R.publish=function(f){return this.JSC$19717_pubsub.publish.apply(this.JSC$19717_pubsub,[f].concat(_.pS(_.NA.apply(1,arguments))))};
_.R.subscribe=function(f,H,v){return this.JSC$19717_pubsub.subscribe(f,H,v)};
_.R.unsubscribe=function(f,H,v){return this.JSC$19717_pubsub.unsubscribe(f,H,v)};
_.R.unsubscribeByKey=function(f){return this.JSC$19717_pubsub.unsubscribeByKey(f)};
_.R.dispose=function(){this.JSC$19717_disposed||(this.JSC$19717_disposed=!0,_.Mj(this.JSC$19717_pubsub),this.disconnect(),_.Mj(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.R.isDisposed=function(){return this.JSC$19717_disposed};var vV5=function(f){_.Sg.call(this);this.webChannelService=f();this.webChannelService.subscribe("webChannelOpened",this.JSC$19725_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.e(vV5,_.Sg);_.R=vV5.prototype;_.R.connect=function(f,H){this.webChannelService.connect(f,H)};
_.R.disconnect=function(f){this.webChannelService.disconnect(f)};
_.R.reconnect=function(){this.webChannelService.reconnect()};
_.R.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.R.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.R.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.R.JSC$19725_onOpened=function(){this.dispatchEvent("channelOpened")};
_.R.onClosed=function(){this.dispatchEvent("channelClosed")};
_.R.onMessage=function(f){this.dispatchEvent(new FJx(f))};
_.R.onError=function(){this.dispatchEvent(new r$t(this.webChannelService.lastStatusCode===401?1:0))};
_.R.sendMessage=function(f,H){this.webChannelService.sendMessage(f,H)};
_.R.setLoungeToken=function(f){this.webChannelService.setLoungeToken(f)};
_.R.dispose=function(){this.webChannelService.dispose()};var gVb=Date.now(),fx=null,WFW=Array(50),tO=-1,O20=!1;_.f8(Mf,_.Yh);Mf.prototype.getScreens=function(){return this.screens};
Mf.prototype.contains=function(f){return!!CYW(this.screens,f)};
Mf.prototype.get=function(f){return f?kh(this.screens,f):null};
var vIh=function(f,H){var v=f.get(H.uuid)||f.get(H.id);if(v)return f=v.name,v.id=H.id||v.id,v.name=H.name,v.token=H.token,v.uuid=H.uuid||v.uuid,v.name!=f;f.screens.push(H);return!0},t5x=function(f,H){var v=f.screens.length!=H.length;
f.screens=_.vI(f.screens,function(h){return!!CYW(H,h)});
for(var t=H.length,M=0;M<t;M++)v=vIh(f,H[M])||v;return v},M5x=function(f,H){var v=f.screens.length;
f.screens=_.vI(f.screens,function(t){return!(t||H?!t!=!H?0:t.id==H.id:1)});
return f.screens.length<v};
Mf.prototype.info=function(f){H9(this.JSC$19726_logName_,f)};var hBW=function(f,H,v,t,M){_.Yh.call(this);this.JSC$19729_http_=f;this.pairingCode_=H;this.deviceId_=v;this.friendlyName_=t;this.enableShortLivedLoungeToken_=M;this.pollIndex_=0;this.JSC$19729_xhr_=null;this.JSC$19729_timer_=NaN};
_.e(hBW,_.Yh);_.R=hBW.prototype;_.R.start=function(){!this.JSC$19729_xhr_&&isNaN(this.JSC$19729_timer_)&&this.poll_()};
_.R.stop=function(){this.JSC$19729_xhr_&&(this.JSC$19729_xhr_.abort(),this.JSC$19729_xhr_=null);isNaN(this.JSC$19729_timer_)||(_.Ok(this.JSC$19729_timer_),this.JSC$19729_timer_=NaN)};
_.R.disposeInternal=function(){this.stop();_.Yh.prototype.disposeInternal.call(this)};
_.R.poll_=function(){this.JSC$19729_timer_=NaN;this.JSC$19729_xhr_=_.I2(qM(this.JSC$19729_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.FH)(this.JSC$19731_onSuccess_,this),onError:(0,_.FH)(this.onError_,this),onTimeout:(0,_.FH)(this.JSC$19731_onTimeout_,this)})};
_.R.JSC$19731_onSuccess_=function(f,H){this.JSC$19729_xhr_=null;f=H.screen||{};f.dialId=this.deviceId_;f.name=this.friendlyName_;H=-1;this.enableShortLivedLoungeToken_&&f.shortLivedLoungeToken&&f.shortLivedLoungeToken.value&&f.shortLivedLoungeToken.refreshIntervalMs&&(f.screenIdType="shortLived",f.loungeToken=f.shortLivedLoungeToken.value,H=f.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new bG(f),H)};
_.R.onError_=function(f){this.JSC$19729_xhr_=null;f.status&&f.status==404?this.pollIndex_>=RBh.length?this.publish("pairingFailed",Error("Ok")):(f=RBh[this.pollIndex_],this.JSC$19729_timer_=_.$Z((0,_.FH)(this.poll_,this),f),this.pollIndex_++):this.publish("pairingFailed",Error("Pk`"+f.status))};
_.R.JSC$19731_onTimeout_=function(){this.JSC$19729_xhr_=null;this.publish("pairingFailed",Error("Qk"))};
var RBh=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.f8(Ro,Mf);_.R=Ro.prototype;_.R.start=function(){hO(this)&&this.publish("screenChange");!_.Oz("yt-remote-lounge-token-expiration")&&V5b(this);_.Ok(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.$Z((0,_.FH)(this.start,this),1E4)};
_.R.add=function(f,H){hO(this);vIh(this,f);y_i(this,!1);this.publish("screenChange");H(f);f.token||V5b(this)};
_.R.remove=function(f,H){var v=hO(this);M5x(this,f)&&(y_i(this,!1),v=!0);H(f);v&&this.publish("screenChange")};
_.R.updateName=function(f,H,v,t){var M=hO(this),h=this.get(f.id);h?(h.name!=H&&(h.name=H,y_i(this,!1),M=!0),v(f)):t(Error("Rk"));M&&this.publish("screenChange")};
_.R.disposeInternal=function(){_.Ok(this.loungeTokenRefreshTimer_);Ro.superClass_.disposeInternal.call(this)};
var V5b=function(f){if(f.screens.length){var H=_.uh(f.screens,function(t){return t.id}),v=qM(f.JSC$19733_http_,"/pairing/get_lounge_token_batch");
f.JSC$19733_http_.sendRequest("POST",v,{screen_ids:H.join(",")},(0,_.FH)(f.handleLoungeTokens_,f),(0,_.FH)(f.handleLoungeTokenError_,f))}};
Ro.prototype.handleLoungeTokens_=function(f){hO(this);var H=this.screens.length;f=f&&f.screens||[];for(var v=f.length,t=0;t<v;++t){var M=f[t],h=this.get(M.screenId);h&&(h.token=M.loungeToken,--H)}y_i(this,!H);H&&H9(this.JSC$19726_logName_,"Missed "+H+" lounge tokens.")};
Ro.prototype.handleLoungeTokenError_=function(f){H9(this.JSC$19726_logName_,"Requesting lounge tokens failed: "+f)};
var hO=function(f){if(_.J("deprecate_pair_servlet_enabled"))return t5x(f,[]);var H=qLx(TZG());H=_.vI(H,function(v){return!v.uuid});
return t5x(f,H)},y_i=function(f,H){q6t(_.uh(f.screens,TtW));
H&&wSp()};var mw=function(f,H){_.Yh.call(this);this.getScreensToCheck_=H;H=(H=_.Oz("yt-remote-online-screen-ids")||"")?H.split(","):[];for(var v={},t=this.getScreensToCheck_(),M=t.length,h=0;h<M;++h){var y=t[h].id;v[y]=_.cR(H,y)}this.screenIdSet_=v;this.JSC$19736_http_=f;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;Yhx("Initialized with "+(0,_.UB)(this.screenIdSet_))};
_.e(mw,_.Yh);mw.prototype.isOnline=function(f){return!!this.screenIdSet_[f]};
mw.prototype.start=function(){var f=parseInt(_.Oz("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.qN()-144E5<f?0:f)?mWG(this):(this.fastCheckEndTime_=_.qN()+3E5,_.WH("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
mw.prototype.isEmpty=function(){return _.QA.isEmpty(this.screenIdSet_)};
mw.prototype.update=function(){Yhx("Updating availability on schedule.");var f=this.getScreensToCheck_(),H=_.QA.filter(this.screenIdSet_,function(v,t){return v&&!!kh(f,t)},this);
$Wr(this,H)};
var WyG=function(f,H,v){var t=qM(f.JSC$19736_http_,"/pairing/get_screen_availability");f.JSC$19736_http_.sendRequest("POST",t,{lounge_token:H.token},(0,_.FH)(function(M){M=M.screens||[];for(var h=M.length,y=0;y<h;++y)if(M[y].loungeToken==H.token){v(M[y].status=="online");return}v(!1)},f),(0,_.FH)(function(){v(!1)},f))};
mw.prototype.disposeInternal=function(){_.Ok(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.Yh.prototype.disposeInternal.call(this)};
var $Wr=function(f,H){a:if(_.QA.getCount(H)!=_.QA.getCount(f.screenIdSet_))var v=!1;else{v=_.QA.getKeys(H);for(var t=v.length,M=0;M<t;++M)if(!f.screenIdSet_[v[M]]){v=!1;break a}v=!0}v||(Yhx("Updated online screens: "+(0,_.UB)(f.screenIdSet_)),f.screenIdSet_=H,f.publish("screenChange"));Om5(f)},mWG=function(f){isNaN(f.refreshTimer_)||_.Ok(f.refreshTimer_);
f.refreshTimer_=_.$Z((0,_.FH)(f.requestScreenAvailability_,f),f.fastCheckEndTime_>0&&f.fastCheckEndTime_<_.qN()?2E4:1E4)};
mw.prototype.requestScreenAvailability_=function(){_.Ok(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var f=gI5(this);if(_.QA.getCount(f)){var H=qM(this.JSC$19736_http_,"/pairing/get_screen_availability"),v={lounge_token:_.QA.getKeys(f).join(",")};this.currentRequest_=this.JSC$19736_http_.sendRequest("POST",H,v,(0,_.FH)(this.onScreenAvailability_,this,f),(0,_.FH)(this.onScreenAvailabilityError_,this))}else $Wr(this,{}),mWG(this)};
mw.prototype.onScreenAvailability_=function(f,H){this.currentRequest_=null;var v=_.QA.getKeys(gI5(this));if(_.VM(v,_.QA.getKeys(f))){H=H.screens||[];v={};for(var t=H.length,M=0;M<t;++M)v[f[H[M].loungeToken]]=H[M].status=="online";$Wr(this,v);mWG(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
mw.prototype.onScreenAvailabilityError_=function(f){this.warn_("Screen availability failed: "+f);this.currentRequest_=null;mWG(this)};
var Yhx=function(f){H9("OnlineScreenService",f)};
mw.prototype.warn_=function(f){H9("OnlineScreenService",f)};
var gI5=function(f){var H={};_.X3(f.getScreensToCheck_(),function(v){v.token?H[v.token]=v.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return H},Om5=function(f){f=_.QA.getKeys(_.QA.filter(f.screenIdSet_,function(H){return H}));
f.sort(_.Ur5);f.length?_.WH("yt-remote-online-screen-ids",f.join(","),60):_.g4("yt-remote-online-screen-ids")};_.f8(Vg,Mf);_.R=Vg.prototype;_.R.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.R.add=function(f,H,v){this.localScreenService_.add(f,H,v)};
_.R.remove=function(f,H,v){this.localScreenService_.remove(f,H,v);this.onlineScreenService_.update()};
_.R.updateName=function(f,H,v,t){this.localScreenService_.contains(f)?this.localScreenService_.updateName(f,H,v,t):(f="Updating name of unknown screen: "+f.name,H9(this.JSC$19726_logName_,f),t(Error(f)))};
_.R.getScreens=function(f){return f?this.screens:mCx(this.screens,_.vI(this.automaticScreens_,function(H){return!this.contains(H)},this))};
_.R.JSC$19741_getOnlineScreens=function(){return _.vI(this.getScreens(!0),function(f){return this.onlineScreenService_.isOnline(f.id)},this)};
var Shp=function(f,H,v,t,M,h){f.info("getAutomaticScreenByIds "+v+" / "+H);v||(v=f.deviceToScreenId_[H]);var y=f.getScreens(),m=v?kh(y,v):null;v&&(f.disableAutomaticScreenCache_||m)||(m=kh(y,H));if(m){m.uuid=H;var W=$t(f,m);WyG(f.onlineScreenService_,W,function(I){M(I?W:null)})}else v?IuF(f,v,(0,_.FH)(function(I){var S=$t(this,new bG({name:t,
screenId:v,loungeToken:I,dialId:H||""}));WyG(this.onlineScreenService_,S,function(d){M(d?S:null)})},f),h):M(null)};
Vg.prototype.JSC$19741_getScreenByPollingPairingCode=function(f,H,v,t,M,h){var y=this;this.info("getDialScreenByPairingCode "+f+" / "+H);var m=new hBW(this.JSC$19739_http_,f,H,v,t);m.subscribe("pairingComplete",function(W,I){_.Mj(m);M($t(y,W),I)});
m.subscribe("pairingFailed",function(W){_.Mj(m);h(W)});
m.start();return(0,_.FH)(m.stop,m)};
var dWw=function(f,H){for(var v=f.screens.length,t=0;t<v;++t)if(f.screens[t].name==H)return f.screens[t];return null};
Vg.prototype.JSC$19741_getScreenByPairingCode=function(f,H,v,t){_.I2(qM(this.JSC$19739_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:f},timeout:5E3,onSuccess:(0,_.FH)(function(M,h){M=new bG(h.screen||{});if(!M.name||dWw(this,M.name)){a:{h=M.name;for(var y=2,m=H(h,y);dWw(this,m);){y++;if(y>20)break a;m=H(h,y)}h=m}M.name=h}v($t(this,M))},this),
onError:(0,_.FH)(function(M){t(Error("Sk`"+M.status))},this),
onTimeout:(0,_.FH)(function(){t(Error("Tk"))},this)})};
var jip=function(f,H,v){WyG(f.onlineScreenService_,H,v)};
Vg.prototype.disposeInternal=function(){_.Mj(this.localScreenService_);_.Mj(this.onlineScreenService_);Vg.superClass_.disposeInternal.call(this)};
var IuF=function(f,H,v,t){f.info("requestLoungeToken_ for "+H);var M={postParams:{screen_ids:H},method:"POST",context:f,onSuccess:function(h,y){h=y&&y.screens||[];h[0]&&h[0].screenId==H?v(h[0].loungeToken):t(Error("Uk"))},
onError:function(){t(Error("Vk"))}};
_.I2(qM(f.JSC$19739_http_,"/pairing/get_lounge_token_batch"),M)},sii=function(f){f.screens=f.localScreenService_.getScreens();
for(var H=_.QA.transpose(f.deviceToScreenId_),v=f.screens.length,t=0;t<v;++t){var M=f.screens[t];M.uuid=H[M.id]||""}f.info("Updated manual screens: "+Iwt(f.screens))};
Vg.prototype.handleScreenChange_=function(){sii(this);this.publish("screenChange");this.onlineScreenService_.update()};
var SEx=function(f){Zmb(f);f.localScreenService_=new Ro(f.JSC$19739_http_);f.localScreenService_.subscribe("screenChange",(0,_.FH)(f.handleScreenChange_,f));sii(f);f.disableAutomaticScreenCache_||(f.automaticScreens_=qLx(_.Oz("yt-remote-automatic-screen-cache")||[]));Zmb(f);f.info("Initializing automatic screens: "+Iwt(f.automaticScreens_));f.onlineScreenService_=new mw(f.JSC$19739_http_,(0,_.FH)(f.getScreens,f,!0));f.onlineScreenService_.subscribe("screenChange",(0,_.FH)(function(){this.publish("onlineScreenChange")},
f))},$t=function(f,H){var v=f.get(H.id);
v?(v.uuid=H.uuid,H=v):((v=kh(f.automaticScreens_,H.uuid))?(v.id=H.id,v.token=H.token,H=v):f.automaticScreens_.push(H),f.disableAutomaticScreenCache_||J_5(f));Zmb(f);f.deviceToScreenId_[H.uuid]=H.id;_.WH("yt-remote-device-id-map",f.deviceToScreenId_,31536E3);return H},J_5=function(f){f=_.vI(f.automaticScreens_,function(H){return H.idType!="shortLived"});
_.WH("yt-remote-automatic-screen-cache",_.uh(f,TtW))},Zmb=function(f){f.deviceToScreenId_=_.Oz("yt-remote-device-id-map")||{}};
Vg.prototype.dispose=Vg.prototype.dispose;_.f8(yg,_.Yh);var Wz=function(f,H){f.screen_=H;f.publish("sessionScreen",f.screen_)},lur=function(f,H){f.screen_&&(f.screen_.token=H,$t(f.JSC$19743_screenService_,f.screen_));
f.publish("sessionScreen",f.screen_)};
yg.prototype.onSessionStopped=function(f){this.isDisposed()||(f&&(Or(this,""+f),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
yg.prototype.info=function(f){H9(this.JSC$19743_logName_,f)};
var Or=function(f,H){H9(f.JSC$19743_logName_,H)};
yg.prototype.JSC$19745_getCastSession=function(){return null};
yg.prototype.setDisplayStatus=function(f){var H=this.receiver_;f?(H.displayStatus=new chrome.cast.ReceiverDisplayStatus(f,[]),H.displayStatus.showStop=!0):H.displayStatus=null;chrome.cast.setReceiverDisplayStatus(H,(0,_.FH)(function(){this.info("Updated receiver status for "+H.friendlyName+": "+f)},this),(0,_.FH)(function(){Or(this,"Failed to update receiver status for: "+H.friendlyName)},this))};
yg.prototype.disposeInternal=function(){this.setDisplayStatus("");yg.superClass_.disposeInternal.call(this)};var gN=function(f,H,v){yg.call(this,f,H,"CastSession");var t=this;this.config_=v;this.JSC$19748_session_=null;this.JSC$19748_boundSessionUpdate_=(0,_.FH)(this.JSC$19750_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.FH)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.$Z(function(){UWb(t,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$19748_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$19748_isInitLoungeToken_=!1;this.JSC$19748_lastLoungeTokenRefreshError_="unknown"};
_.e(gN,yg);_.R=gN.prototype;
_.R.setCastSession=function(f){if(this.JSC$19748_session_){if(this.JSC$19748_session_==f)return;Or(this,"Overriding cast session with new session object");eB0(this);this.JSC$19748_isInitLoungeToken_=!1;this.JSC$19748_lastLoungeTokenRefreshError_="unknown";this.JSC$19748_session_.removeUpdateListener(this.JSC$19748_boundSessionUpdate_);this.JSC$19748_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$19748_session_=f;this.JSC$19748_session_.addUpdateListener(this.JSC$19748_boundSessionUpdate_);this.JSC$19748_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);LyW(this,"getMdxSessionStatus")};
_.R.launchWithParams=function(f){this.info("launchWithParams no-op for Cast: "+(0,_.UB)(f))};
_.R.stop=function(){if(this.JSC$19748_session_)this.JSC$19748_session_.stop((0,_.FH)(function(){this.onSessionStopped()},this),(0,_.FH)(function(){this.onSessionStopped(Error("Wk"))},this));
else this.onSessionStopped(Error("Xk"))};
_.R.setDisplayStatus=function(){};
_.R.disposeInternal=function(){this.info("disposeInternal");eB0(this);this.JSC$19748_session_&&(this.JSC$19748_session_.removeUpdateListener(this.JSC$19748_boundSessionUpdate_),this.JSC$19748_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$19748_session_=null;yg.prototype.disposeInternal.call(this)};
var B$t=function(f,H){_.Ok(f.getLoungeTokenTimeoutKey_);f.getLoungeTokenTimeoutKey_=0;H==0?xWx(f):f.getLoungeTokenTimeoutKey_=_.$Z(function(){xWx(f)},H)},xWx=function(f){LyW(f,"getLoungeToken");
_.Ok(f.onLoungeTokenTimeoutKey_);f.onLoungeTokenTimeoutKey_=_.$Z(function(){zB0(f,null)},3E4)},LyW=function(f,H){f.info("sendYoutubeMessage_: "+H+" "+(0,_.UB)(void 0));
var v={};v.type=H;f.JSC$19748_session_?f.JSC$19748_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",v,function(){},(0,_.FH)(function(){Or(this,"Failed to send message: "+H+".")},f)):Or(f,"Sending yt message without session: "+(0,_.UB)(v))};
gN.prototype.onYoutubeMessage_=function(f,H){if(!this.isDisposed())if(H)if(H=(0,_.DF)(H),_.vo(H))switch(f=""+H.type,H=H.data||{},this.info("onYoutubeMessage_: "+f+" "+(0,_.UB)(H)),f){case "mdxSessionStatus":UWb(this,H);break;case "loungeToken":zB0(this,H);break;default:Or(this,"Unknown youtube message: "+f)}else Or(this,"Unable to parse message.");else Or(this,"No data in message.")};
var Fyb=function(f,H){if(H)f.info("onConnectedScreenId_: Received screenId: "+H),f.screen_&&f.screen_.id==H||f.getScreen_(H,function(v){Wz(f,v)},function(){return f.onSessionStopped()},5);
else f.onSessionStopped(Error("Yk"))},Kyi=function(f,H,v){f.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(H));
var t=new bG(H);r_G(f,t,function(M){M?(f.JSC$19748_isInitLoungeToken_=!0,$t(f.JSC$19743_screenService_,t),Wz(f,t),f.JSC$19748_lastLoungeTokenRefreshError_="unknown",B$t(f,v)):(_.Ge(Error("Zk`"+JSON.stringify(H))),f.onSessionStopped())},5)},UWb=function(f,H){_.Ok(f.sessionStatusTimeoutKey_);
f.sessionStatusTimeoutKey_=0;if(H)f.config_.enableCastLoungeToken&&H.loungeToken?H.deviceId?f.screen_&&f.screen_.uuid==H.deviceId||(H.loungeTokenRefreshIntervalMs?Kyi(f,{name:f.receiver_.friendlyName,screenId:H.screenId,loungeToken:H.loungeToken,dialId:H.deviceId,screenIdType:"shortLived"},H.loungeTokenRefreshIntervalMs):(_.Ge(Error("al`"+JSON.stringify(H))),Fyb(f,H.screenId))):(_.Ge(Error("$k`"+JSON.stringify(H))),Fyb(f,H.screenId)):Fyb(f,H.screenId);else f.onSessionStopped(Error("Yk"))},zB0=function(f,
H){_.Ok(f.onLoungeTokenTimeoutKey_);
f.onLoungeTokenTimeoutKey_=0;var v=null;if(H)if(H.loungeToken){var t;((t=f.screen_)==null?void 0:t.token)==H.loungeToken&&(v="staleLoungeToken")}else v="missingLoungeToken";else v="noLoungeTokenResponse";v?(f.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(H)+", error: "+v)),f.JSC$19748_lastLoungeTokenRefreshError_=v,B$t(f,3E4)):(lur(f,H.loungeToken),f.JSC$19748_isInitLoungeToken_=!1,f.JSC$19748_lastLoungeTokenRefreshError_="unknown",B$t(f,H.loungeTokenRefreshIntervalMs))};
gN.prototype.getScreen_=function(f,H,v,t){_.Ok(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;Shp(this.JSC$19743_screenService_,this.receiver_.label,f,this.receiver_.friendlyName,(0,_.FH)(function(M){M?H(M):t>=0?(Or(this,"Screen "+f+" appears to be offline. "+t+" retries left."),this.getScreenTimeoutKey_=_.$Z((0,_.FH)(this.getScreen_,this,f,H,v,t-1),300)):v(Error("bl"))},this),v)};
var r_G=function(f,H,v,t){_.Ok(f.JSC$19748_checkScreenAvailabilityTimeoutKey_);f.JSC$19748_checkScreenAvailabilityTimeoutKey_=0;jip(f.JSC$19743_screenService_,H,function(M){M||t<0?v(M):f.JSC$19748_checkScreenAvailabilityTimeoutKey_=_.$Z(function(){r_G(f,H,v,t-1)},300)})};
gN.prototype.JSC$19745_getCastSession=function(){return this.JSC$19748_session_};
gN.prototype.JSC$19750_onSessionUpdate_=function(f){this.isDisposed()||f||(Or(this,"Cast session died."),this.onSessionStopped())};
var eB0=function(f){_.Ok(f.getScreenTimeoutKey_);f.getScreenTimeoutKey_=0;_.Ok(f.JSC$19748_checkScreenAvailabilityTimeoutKey_);f.JSC$19748_checkScreenAvailabilityTimeoutKey_=0;_.Ok(f.sessionStatusTimeoutKey_);f.sessionStatusTimeoutKey_=0;_.Ok(f.onLoungeTokenTimeoutKey_);f.onLoungeTokenTimeoutKey_=0;_.Ok(f.getLoungeTokenTimeoutKey_);f.getLoungeTokenTimeoutKey_=0};var ID=function(f,H,v,t){yg.call(this,f,H,"DialSession");this.config_=t;this.JSC$19752_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$19752_theme_=v;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$19752_deferredLaunchDeadlineTimer_=NaN;this.JSC$19752_boundSessionUpdate_=(0,_.FH)(this.JSC$19754_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$19752_checkScreenAvailabilityTimeoutKey_=0;this.JSC$19752_isInitLoungeToken_=!1;this.JSC$19752_lastLoungeTokenRefreshError_="unknown"};
_.e(ID,yg);ID.prototype.setCastSession=function(f){this.JSC$19752_session_=f;this.JSC$19752_session_.addUpdateListener(this.JSC$19752_boundSessionUpdate_)};
ID.prototype.launchWithParams=function(f){this.connectData_=f;this.deferredLaunch_()};
ID.prototype.stop=function(){DWh(this);if(this.JSC$19752_session_)this.JSC$19752_session_.stop((0,_.FH)(this.onSessionStopped,this,null),(0,_.FH)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
ID.prototype.disposeInternal=function(){DWh(this);this.JSC$19752_session_&&this.JSC$19752_session_.removeUpdateListener(this.JSC$19752_boundSessionUpdate_);this.JSC$19752_session_=null;yg.prototype.disposeInternal.call(this)};
var oIt=function(f){var H;return!!(f.config_.enableDialLoungeToken&&((H=f.JSC$19752_session_)==null?0:H.getDialAppInfo))},nIp=function(f){f.cancelPolling_=f.JSC$19743_screenService_.JSC$19741_getScreenByPollingPairingCode(f.reversePairingCode_,f.receiver_.label,f.receiver_.friendlyName,oIt(f),function(H,v){f.cancelPolling_=function(){};
f.JSC$19752_isInitLoungeToken_=!0;Wz(f,H);H.idType=="shortLived"&&v>0&&SM(f,v)},function(H){f.cancelPolling_=function(){};
f.onSessionStopped(H)})};
ID.prototype.JSC$19754_onSessionUpdate_=function(f){this.isDisposed()||f||(Or(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var pGr=function(f){var H={};H.pairingCode=f.reversePairingCode_;H.theme=f.JSC$19752_theme_;H2i()&&(H.env_useStageMdx=1);return _.S$(H)},Qi5=function(f){return new Promise(function(H){f.reversePairingCode_=PYp();
if(f.connectData_){var v=new chrome.cast.DialLaunchResponse(!0,pGr(f));H(v);nIp(f)}else f.deferredLaunch_=function(){_.Ok(f.JSC$19752_deferredLaunchDeadlineTimer_);f.deferredLaunch_=function(){};
f.JSC$19752_deferredLaunchDeadlineTimer_=NaN;var t=new chrome.cast.DialLaunchResponse(!0,pGr(f));H(t);nIp(f)},f.JSC$19752_deferredLaunchDeadlineTimer_=_.$Z(function(){f.deferredLaunch_()},100)})},aup=function(f,H,v){f.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(H));
var t=new bG(H);return(new Promise(function(M){uiG(f,t,function(h){h?(f.JSC$19752_isInitLoungeToken_=!0,$t(f.JSC$19743_screenService_,t),Wz(f,t),SM(f,v)):_.Ge(Error("dl`"+JSON.stringify(H)));M(h)},5)})).then(function(M){return M?new chrome.cast.DialLaunchResponse(!1):Qi5(f)})},Pmp=function(f,H){var v=f.launchData_.receiver.label,t=f.receiver_.friendlyName;
return(new Promise(function(M){Shp(f.JSC$19743_screenService_,v,H,t,function(h){h&&h.token&&Wz(f,h);M(h)},function(h){Or(f,"Failed to get DIAL screen: "+h);
M(null)})})).then(function(M){return M&&M.token?new chrome.cast.DialLaunchResponse(!1):Qi5(f)})},uiG=function(f,H,v,t){_.Ok(f.JSC$19752_checkScreenAvailabilityTimeoutKey_);
f.JSC$19752_checkScreenAvailabilityTimeoutKey_=0;jip(f.JSC$19743_screenService_,H,function(M){M||t<0?v(M):f.JSC$19752_checkScreenAvailabilityTimeoutKey_=_.$Z(function(){uiG(f,H,v,t-1)},300)})},SM=function(f,H){f.info("getDialAppInfoWithTimeout_ "+H);
oIt(f)&&(_.Ok(f.getDialAppInfoTimeoutKey_),f.getDialAppInfoTimeoutKey_=0,H==0?Gl0(f):f.getDialAppInfoTimeoutKey_=_.$Z(function(){Gl0(f)},H))},Gl0=function(f){oIt(f)&&f.JSC$19752_session_.getDialAppInfo(function(H){f.info("getDialAppInfo dialLaunchData: "+JSON.stringify(H));
H=H.extraData||{};var v=null;if(H.loungeToken){var t;((t=f.screen_)==null?void 0:t.token)==H.loungeToken&&(v="staleLoungeToken")}else v="missingLoungeToken";v?(f.JSC$19752_lastLoungeTokenRefreshError_=v,SM(f,3E4)):(f.JSC$19752_isInitLoungeToken_=!1,f.JSC$19752_lastLoungeTokenRefreshError_="unknown",lur(f,H.loungeToken),SM(f,H.loungeTokenRefreshIntervalMs))},function(H){f.info("getDialAppInfo error: "+H);
f.JSC$19752_lastLoungeTokenRefreshError_="noLoungeTokenResponse";SM(f,3E4)})},DWh=function(f){_.Ok(f.JSC$19752_checkScreenAvailabilityTimeoutKey_);
f.JSC$19752_checkScreenAvailabilityTimeoutKey_=0;_.Ok(f.getDialAppInfoTimeoutKey_);f.getDialAppInfoTimeoutKey_=0;f.cancelPolling_();f.cancelPolling_=function(){};
_.Ok(f.JSC$19752_deferredLaunchDeadlineTimer_)};var dN=function(f,H){yg.call(this,f,H,"ManualSession");this.JSC$19756_deferredLaunchDeadlineTimer_=_.$Z((0,_.FH)(this.launchWithParams,this,null),150)};
_.e(dN,yg);dN.prototype.stop=function(){this.onSessionStopped()};
dN.prototype.setCastSession=function(){};
dN.prototype.launchWithParams=function(){_.Ok(this.JSC$19756_deferredLaunchDeadlineTimer_);this.JSC$19756_deferredLaunchDeadlineTimer_=NaN;var f=kh(this.JSC$19743_screenService_.getScreens(),this.receiver_.label);if(f)Wz(this,f);else this.onSessionStopped(Error("el"))};
dN.prototype.disposeInternal=function(){_.Ok(this.JSC$19756_deferredLaunchDeadlineTimer_);this.JSC$19756_deferredLaunchDeadlineTimer_=NaN;yg.prototype.disposeInternal.call(this)};var W9=function(f,H){_.Yh.call(this);this.config_=H;this.JSC$19759_screenService_=f;this.JSC$19759_appId_=H.appId||"233637DE";this.JSC$19759_theme_=H.theme||"cl";this.disableDial_=H.disableCastApi||!1;this.forceMirroring_=H.forceMirroring||!1;this.JSC$19759_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.FH)(this.onReceiverAction_,this)};
_.e(W9,_.Yh);
W9.prototype.init=function(f,H){chrome.cast.timeout.requestSession=3E4;var v=new chrome.cast.SessionRequest(this.JSC$19759_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.J("desktop_enable_cast_connect")&&(v.androidReceiverCompatible=!0);this.disableDial_||(v.dialRequest=new chrome.cast.DialRequest("YouTube"));var t=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;f=f||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var M=(0,_.FH)(this.onReceiverUpdated_,
this);v=new chrome.cast.ApiConfig(v,(0,_.FH)(this.onSessionEstablished_,this),M,t,f);v.customDialLaunchCallback=(0,_.FH)(this.onDialLaunchRequested_,this);chrome.cast.initialize(v,(0,_.FH)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),YEG(),this.JSC$19759_screenService_.subscribe("onlineScreenChange",(0,_.FH)(this.JSC$19761_onScreenChange_,this)),this.customReceivers_=Cmx(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.FH)(function(h){this.warn_("Failed to set initial custom receivers: "+(0,_.UB)(h))},this)),this.publish("yt-remote-cast2-availability-change",jM(this)),H(!0))},this),(0,_.FH)(function(h){this.warn_("Failed to initialize API: "+(0,_.UB)(h));
H(!1)},this))};
W9.prototype.setConnectedScreenStatus=function(f,H){sr("Setting connected screen ID: "+f+" -> "+H);if(this.JSC$19759_session_){var v=this.JSC$19759_session_.screen_;if(!f||v&&v.id!=f)sr("Unsetting old screen status: "+this.JSC$19759_session_.receiver_.friendlyName),Zd(this,null)}if(f&&H){if(!this.JSC$19759_session_){f=kh(this.JSC$19759_screenService_.getScreens(),f);if(!f){sr("setConnectedScreenStatus: Unknown screen.");return}if(f.idType=="shortLived"){sr("setConnectedScreenStatus: Screen with id type to be short lived.");
return}v=EIx(this,f);v||(sr("setConnectedScreenStatus: Connected receiver not custom..."),v=new chrome.cast.Receiver(f.uuid?f.uuid:f.id,f.name),v.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(v),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.FH)(function(t){this.warn_("Failed to set initial custom receivers: "+(0,_.UB)(t))},this)));
sr("setConnectedScreenStatus: new active receiver: "+v.friendlyName);Zd(this,new dN(this.JSC$19759_screenService_,v),!0)}this.JSC$19759_session_.setDisplayStatus(H)}else sr("setConnectedScreenStatus: no screen.")};
var EIx=function(f,H){return H?_.Gb(f.customReceivers_,function(v){return iG(H,v.label)},f):null};
W9.prototype.setLaunchParams=function(f){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$19759_session_?this.JSC$19759_session_.launchWithParams(f):this.warn_("Setting connection data without a session")};
W9.prototype.JSC$19761_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$19759_session_?(this.JSC$19759_session_.stop(),Zd(this,null)):sr("Stopping non-existing session")};
W9.prototype.requestSession=function(){chrome.cast.requestSession((0,_.FH)(this.onSessionEstablished_,this),(0,_.FH)(this.onSessionRequestFailed_,this))};
W9.prototype.disposeInternal=function(){this.JSC$19759_screenService_.unsubscribe("onlineScreenChange",(0,_.FH)(this.JSC$19761_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.iH(_.ES("yt.mdx.remote.debug.handlers_")||[],Rst);_.Mj(this.JSC$19759_session_);_.Yh.prototype.disposeInternal.call(this)};
var sr=function(f){H9("Controller",f)};
W9.prototype.warn_=function(f){H9("Controller",f)};
var Rst=function(f){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(f)},jM=function(f){return f.hasCastReceiver_||!!f.customReceivers_.length||!!f.JSC$19759_session_},Zd=function(f,H,v){H!=f.JSC$19759_session_&&(_.Mj(f.JSC$19759_session_),(f.JSC$19759_session_=H)?(v?f.publish("yt-remote-cast2-receiver-resumed",H.receiver_):f.publish("yt-remote-cast2-receiver-selected",H.receiver_),H.subscribe("sessionScreen",(0,_.FH)(f.onSessionScreen_,f,H)),H.subscribe("sessionFailed",
function(){return N$x(f,H)}),H.screen_?f.publish("yt-remote-cast2-session-change",H.screen_):v&&f.JSC$19759_session_.launchWithParams(null)):f.publish("yt-remote-cast2-session-change",null))},N$x=function(f,H){f.JSC$19759_session_==H&&f.publish("yt-remote-cast2-session-failed")};
_.R=W9.prototype;_.R.onSessionScreen_=function(f,H){this.JSC$19759_session_==f&&(H||Zd(this,null),this.publish("yt-remote-cast2-session-change",H))};
_.R.onReceiverAction_=function(f,H){if(!this.isDisposed())if(f)switch(f.friendlyName=chrome.cast.unescape(f.friendlyName),sr("onReceiverAction_ "+f.label+" / "+f.friendlyName+"-- "+H),H){case chrome.cast.ReceiverAction.CAST:if(this.JSC$19759_session_)if(this.JSC$19759_session_.receiver_.label!=f.label)sr("onReceiverAction_: Stopping active receiver: "+this.JSC$19759_session_.receiver_.friendlyName),this.JSC$19759_session_.stop();else{sr("onReceiverAction_: Casting to active receiver.");this.JSC$19759_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$19759_session_.screen_);break}switch(f.receiverType){case chrome.cast.ReceiverType.CUSTOM:Zd(this,new dN(this.JSC$19759_screenService_,f));break;case chrome.cast.ReceiverType.DIAL:Zd(this,new ID(this.JSC$19759_screenService_,f,this.JSC$19759_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:Zd(this,new gN(this.JSC$19759_screenService_,f,this.config_));break;default:this.warn_("Unknown receiver type: "+f.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$19759_session_&&
this.JSC$19759_session_.receiver_.label==f.label?this.JSC$19759_session_.stop():this.warn_("Stopping receiver w/o session: "+f.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.R.onDialLaunchRequested_=function(f){if(this.isDisposed())return Promise.reject(Error("fl"));var H=f.receiver;H.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+H.friendlyName),H.receiverType=chrome.cast.ReceiverType.DIAL);var v=this.JSC$19759_session_?this.JSC$19759_session_.receiver_:null;if(!v||v.label!=H.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+H.friendlyName),Promise.reject(Error("gl"));if(v&&v.label==H.label&&v.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$19759_session_.screen_)return sr("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$19759_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+v.receiverType+'" to "dial" for '+H.friendlyName);Zd(this,new ID(this.JSC$19759_screenService_,H,this.JSC$19759_theme_,this.config_))}H=this.JSC$19759_session_;H.launchData_=f;H.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(f=H.launchData_.extraData||{},v=f.screenId||null,oIt(H)&&f.loungeToken?f.loungeTokenRefreshIntervalMs?f=aup(H,{name:H.receiver_.friendlyName,screenId:f.screenId,loungeToken:f.loungeToken,dialId:H.launchData_.receiver.label,screenIdType:"shortLived"},f.loungeTokenRefreshIntervalMs):(_.Ge(Error("cl`"+JSON.stringify(f))),f=Pmp(H,v)):f=Pmp(H,v)):f=Qi5(H);return f};
_.R.onSessionEstablished_=function(f){var H=this;if(!this.isDisposed()&&!this.forceMirroring_){sr("New cast session ID: "+f.sessionId);var v=f.receiver;if(v.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$19759_session_)if(v.receiverType==chrome.cast.ReceiverType.CAST)sr("Got resumed cast session before resumed mdx connection."),v.friendlyName=chrome.cast.unescape(v.friendlyName),Zd(this,new gN(this.JSC$19759_screenService_,v,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var t=this.JSC$19759_session_.receiver_,M=kh(this.JSC$19759_screenService_.getScreens(),t.label);M&&iG(M,v.label)&&t.receiverType!=chrome.cast.ReceiverType.CAST&&v.receiverType==chrome.cast.ReceiverType.CAST&&(sr("onSessionEstablished_: manual to cast session change "+v.friendlyName),_.Mj(this.JSC$19759_session_),this.JSC$19759_session_=new gN(this.JSC$19759_screenService_,v,this.config_),this.JSC$19759_session_.subscribe("sessionScreen",(0,_.FH)(this.onSessionScreen_,this,this.JSC$19759_session_)),
this.JSC$19759_session_.subscribe("sessionFailed",function(){return N$x(H,H.JSC$19759_session_)}),this.JSC$19759_session_.launchWithParams(null));
this.JSC$19759_session_.setCastSession(f)}}};
_.R.JSC$19761_getCastSession=function(){return this.JSC$19759_session_?this.JSC$19759_session_.JSC$19745_getCastSession():null};
_.R.onSessionRequestFailed_=function(f){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.UB)(f)),f.code!=chrome.cast.ErrorCode.CANCEL&&Zd(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.R.onReceiverUpdated_=function(f){sr("Receiver availability updated: "+f);if(!this.isDisposed()){var H=jM(this);this.hasCastReceiver_=f==chrome.cast.ReceiverAvailability.AVAILABLE;jM(this)!=H&&this.publish("yt-remote-cast2-availability-change",jM(this))}};
var Cmx=function(f){var H=f.JSC$19759_screenService_.JSC$19741_getOnlineScreens(),v=f.JSC$19759_session_&&f.JSC$19759_session_.receiver_;f=_.uh(H,function(t){v&&iG(t,v.label)&&(v=null);var M=t.uuid?t.uuid:t.id,h=EIx(this,t);h?(h.label=M,h.friendlyName=t.name):(h=new chrome.cast.Receiver(M,t.name),h.receiverType=chrome.cast.ReceiverType.CUSTOM);return h},f);
v&&(v.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(v=new chrome.cast.Receiver(v.label,v.friendlyName),v.receiverType=chrome.cast.ReceiverType.CUSTOM),f.push(v));return f};
W9.prototype.JSC$19761_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=Cmx(this),sr("Updating custom receivers: "+(0,_.UB)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.FH)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",jM(this)))};
W9.prototype.setLaunchParams=W9.prototype.setLaunchParams;W9.prototype.setConnectedScreenStatus=W9.prototype.setConnectedScreenStatus;W9.prototype.stopSession=W9.prototype.JSC$19761_stopSession;W9.prototype.getCastSession=W9.prototype.JSC$19761_getCastSession;W9.prototype.requestSession=W9.prototype.requestSession;W9.prototype.init=W9.prototype.init;W9.prototype.dispose=W9.prototype.dispose;var c_A=_.EH(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),nVi=[],Uub=_.gr(c_A);var XGp=function(f){f.audioTrackId=null;f.trackData=null;f.playerState=-1;f.hasPrevious=!1;f.hasNext=!1;f.playerTime_=0;f.playerTimeAt_=_.qN();f.seekableStart_=0;f.seekableEnd_=0;f.duration_=0;f.loadedTime=0;f.liveIngestionTime_=NaN;f.isLive_=!1};
_.R=ON.prototype;
_.R.reset=function(f){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;f&&(this.index=f.index,this.listId=f.listId,this.videoId=f.videoId,this.playerState=f.playerState,this.volume=f.volume,this.muted=f.muted,this.audioTrackId=f.audioTrackId,this.trackData=f.trackData,this.hasPrevious=f.hasPrevious,this.hasNext=f.hasNext,this.playerTime_=f.playerTime,this.playerTimeAt_=f.playerTimeAt,this.seekableStart_=f.seekableStart,this.seekableEnd_=f.seekableEnd,this.duration_=f.duration,this.loadedTime=
f.loadedTime,this.liveIngestionTime_=f.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.R.stopPlayer=function(){this.index=-1;this.videoId="";XGp(this)};
_.R.isPlaying=function(){return this.playerState==1};
_.R.isBuffering=function(){return this.playerState==3};
_.R.isAdPlaying=function(){return this.playerState==1081};
var JC=function(f,H){f.playerTime_=H;f.playerTimeAt_=_.qN()},A_i=function(f){switch(f.playerState){case 1:case 1081:return(_.qN()-f.playerTimeAt_)/1E3+f.playerTime_;
case -1E3:return 0}return f.playerTime_};
ON.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.qN()-this.playerTimeAt_)/1E3:0):this.duration_};
var bmb=function(f,H,v){var t=f.videoId;f.videoId=H;f.index=v;H!=t&&XGp(f)},imi=function(f){var H={};
H.index=f.index;H.listId=f.listId;H.videoId=f.videoId;H.playerState=f.playerState;H.volume=f.volume;H.muted=f.muted;H.audioTrackId=f.audioTrackId;H.trackData=_.QA.unsafeClone(f.trackData);H.hasPrevious=f.hasPrevious;H.hasNext=f.hasNext;H.playerTime=f.playerTime_;H.playerTimeAt=f.playerTimeAt_;H.seekableStart=f.seekableStart_;H.seekableEnd=f.seekableEnd_;H.duration=f.duration_;H.loadedTime=f.loadedTime;H.liveIngestionTime=f.liveIngestionTime_;return H};
ON.prototype.clone=function(){return new ON(imi(this))};var l1=function(f,H){_.Yh.call(this);var v=this;this.state_=0;this.connection_=f;this.contextSubscriptions_=[];this.actionQueue_=new rtp;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.FH)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.FH)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.FH)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.FH)(this.onCloudviewAvailabilityChange_,this);var t=0;f?(t=f.getProxyState(),
t!=3&&(f.subscribe("proxyStateChange",this.setState_,this),klh(this))):t=3;t!=0&&(H?this.setState_(t):_.$Z(function(){v.setState_(t)},0));
(f=awW())&&T$h(this,f);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.e(l1,_.Yh);l1.prototype.getState=function(){return this.state_};
l1.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
l1.prototype.reconnect=function(){this.connection_.reconnect()};
var Ur=function(f){return new ON(f.connection_.getPlayerContextData())};
_.R=l1.prototype;_.R.play=function(){eM(this)?(this.castMedia_?this.castMedia_.play(null,_.gQ,wGr(this,"play")):LH(this,"play"),qhW(this,1,A_i(Ur(this))),this.publish("remotePlayerChange")):xt(this,this.play)};
_.R.pause=function(){eM(this)?(this.castMedia_?this.castMedia_.pause(null,_.gQ,wGr(this,"pause")):LH(this,"pause"),qhW(this,2,A_i(Ur(this))),this.publish("remotePlayerChange")):xt(this,this.pause)};
_.R.seekTo=function(f){if(eM(this)){if(this.castMedia_){var H=Ur(this),v=new chrome.cast.media.SeekRequest;v.currentTime=f;H.isPlaying()||H.isBuffering()?v.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:v.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(v,_.gQ,wGr(this,"seekTo",{newTime:f}))}else LH(this,"seekTo",{newTime:f});qhW(this,3,f);this.publish("remotePlayerChange")}else xt(this,_.l0(this.seekTo,f))};
_.R.stop=function(){if(eM(this)){this.castMedia_?this.castMedia_.stop(null,_.gQ,wGr(this,"stopVideo")):LH(this,"stopVideo");var f=Ur(this);f.stopPlayer();Bz(this,f);this.publish("remotePlayerChange")}else xt(this,this.stop)};
_.R.setVolume=function(f,H){if(eM(this)){var v=Ur(this);if(this.castSession_){if(v.volume!=f){var t=Math.round(f)/100;this.castSession_.setReceiverVolumeLevel(t,(0,_.FH)(function(){v9("set receiver volume: "+t)},this),(0,_.FH)(function(){this.warn_("failed to set receiver volume.")},this))}v.muted!=H&&this.castSession_.setReceiverMuted(H,(0,_.FH)(function(){v9("set receiver muted: "+H)},this),(0,_.FH)(function(){this.warn_("failed to set receiver muted.")},this))}else{var M={volume:f,
muted:H};v.volume!=-1&&(M.delta=f-v.volume);LH(this,"setVolume",M)}v.muted=H;v.volume=f;Bz(this,v)}else xt(this,_.l0(this.setVolume,f,H))};
_.R.setAudioTrack=function(f,H){eM(this)?(H=H.getLanguageInfo().getId(),LH(this,"setAudioTrack",{videoId:f,audioTrackId:H}),f=Ur(this),f.audioTrackId=H,Bz(this,f)):xt(this,_.l0(this.setAudioTrack,f,H))};
_.R.addVideo=function(f){eM(this)?LH(this,"addVideo",{videoId:f}):xt(this,_.l0(this.addVideo,f))};
_.R.addPlaylist=function(f){eM(this)?LH(this,"addVideos",{listId:f}):xt(this,_.l0(this.addPlaylist,f))};
_.R.addVideos=function(f){f.length==0?this.warn_("Ignore add videos request due to empty list"):eM(this)?LH(this,"addVideos",{videoIds:f.join(",")}):xt(this,_.l0(this.addVideos,f))};
_.R.JSC$19771_removeVideo=function(f){eM(this)?LH(this,"removeVideo",{videoId:f}):xt(this,_.l0(this.JSC$19771_removeVideo,f))};
_.R.JSC$19771_insertVideo=function(f){eM(this)?LH(this,"insertVideo",{videoId:f}):xt(this,_.l0(this.JSC$19771_insertVideo,f))};
_.R.playVideo=function(f,H,v,t,M,h,y){t=t===void 0?null:t;M=M===void 0?null:M;h=h===void 0?null:h;y=y===void 0?null:y;var m=Ur(this),W={videoId:f};v!==void 0&&(W.currentIndex=v);bmb(m,f,v||0);H!==void 0&&(JC(m,H),W.currentTime=H);t&&(W.listId=t);M&&(W.playerParams=M);h&&(W.clickTrackingParams=h);y&&(W.locationInfo=(0,_.UB)(y));LH(this,"setPlaylist",W);t||Bz(this,m)};
_.R.nextVideo=function(f,H){if(eM(this)){if(f&&H){var v=Ur(this);bmb(v,f,H);Bz(this,v)}LH(this,"next")}else xt(this,_.l0(this.nextVideo,f,H))};
_.R.clearPlaylist=function(){if(eM(this)){LH(this,"clearPlaylist");var f=Ur(this);f.reset();Bz(this,f);this.publish("remotePlayerChange")}else xt(this,this.clearPlaylist)};
_.R.dispose=function(){if(this.state_!=3){var f=this.state_;this.state_=3;this.publish("proxyStateChange",f,this.state_)}_.Yh.prototype.dispose.call(this)};
_.R.disposeInternal=function(){ffp(this);this.connection_=null;this.actionQueue_.clear();T$h(this,null);_.Yh.prototype.disposeInternal.call(this)};
var klh=function(f){_.X3("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(H){this.contextSubscriptions_.push(this.connection_.subscribe(H,_.l0(this.onProxyEvent_,H),this))},f)},ffp=function(f){_.X3(f.contextSubscriptions_,function(H){this.connection_.unsubscribeByKey(H)},f);
f.contextSubscriptions_.length=0},eM=function(f){return f.getState()==1},xt=function(f,H){f.actionQueue_.getCount()<50&&f.actionQueue_.enqueue(H)},qhW=function(f,H,v){var t=Ur(f);
JC(t,v);t.playerState!=-1E3&&(t.playerState=H);Bz(f,t)},LH=function(f,H,v){f.connection_.sendMessage(H,v)},Bz=function(f,H){ffp(f);
f.connection_.setPlayerContextData(imi(H));klh(f)};
l1.prototype.setState_=function(f){if((f!=this.state_||f==2)&&this.state_!=3&&f!=0){var H=this.state_;this.state_=f;this.publish("proxyStateChange",H,f);if(f==1)for(;!this.actionQueue_.isEmpty();)f=this.actionQueue_,gi0(f),f.front_.pop().apply(this);else f==3&&this.dispose()}};
l1.prototype.onProxyEvent_=function(f,H){this.publish(f,H)};
var T$h=function(f,H){f.castSession_&&(f.castSession_.removeUpdateListener(f.boundCastStatusListener_),f.castSession_.removeMediaListener(f.boundCastMediaListener_),f.onCastMediaChange_(null));f.castSession_=H;if(f.castSession_&&(v9("Setting cast session: "+f.castSession_.sessionId),f.castSession_.addUpdateListener(f.boundCastStatusListener_),f.castSession_.addMediaListener(f.boundCastMediaListener_),f.castSession_.media.length))f.onCastMediaChange_(f.castSession_.media[0])};
l1.prototype.onCastStatusUpdate_=function(f){if(!f)this.onCastMediaChange_(null),T$h(this,null);else if(this.castSession_.receiver.volume){f=this.castSession_.receiver.volume;var H=Ur(this),v=Math.round(100*f.level||0);if(H.volume!=v||H.muted!=f.muted)v9("Cast volume update: "+f.level+(f.muted?" muted":"")),H.volume=v,H.muted=!!f.muted,Bz(this,H)}};
l1.prototype.onCastMediaChange_=function(f){v9("Cast media: "+!!f);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=f)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),HX5(this),this.publish("remotePlayerChange")};
var HX5=function(f){var H=f.castMedia_.media,v=f.castMedia_.customData;if(H&&v){var t=Ur(f);H.contentId!=t.videoId&&v9("Cast changing video to: "+H.contentId);t.videoId=H.contentId;t.playerState=v.playerState;JC(t,f.castMedia_.getEstimatedTime());Bz(f,t)}else v9("No cast media video. Ignoring state update.")};
l1.prototype.onCastMediaUpdate_=function(f){if(f)HX5(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
l1.prototype.onCloudviewAvailabilityChange_=function(){var f=awW();f&&T$h(this,f)};
l1.prototype.warn_=function(f){H9("CP",f)};
var wGr=function(f,H,v){return(0,_.FH)(function(t){this.warn_("Failed to "+H+" with cast v2 channel. Error code: "+t.code);t.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+H+" using MDx browser channel."),LH(this,H,v))},f)};var Fh=function(f,H,v,t){t=t===void 0?!1:t;_.Yh.call(this);var M=this;this.connectTimerId_=NaN;this.reconnecting_=!1;this.idleDisconnectTimerId_=this.clientSetVideoTimerId_=this.playingSyncTimerId_=this.reconnectedCheckScreenTimeout_=NaN;this.listeners_=[];this.autoplayMode_=this.autoplayVideoId_=this.clientVideoId_=this.playerContext_=this.channelService=null;this.JSC$19776_http_=f;this.enableConnectWithInitialState_=t;this.listeners_.push(_.vk(window,"beforeunload",function(){M.JSC$19779_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new ON;this.currentScreenId_=H.id;this.currentScreenIdType_=H.idType;this.channelService=hsx(this.JSC$19776_http_,v,this.JSC$19779_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){v8A(M)});
this.channelService.listen("channelClosed",function(){zn("Channel closed");isNaN(M.connectTimerId_)?T4(!0):T4();M.dispose()});
this.channelService.listen("channelError",function(h){T4();isNaN(M.getReconnectTimeout_())?(h==1&&M.currentScreenIdType_=="shortLived"&&M.publish("browserChannelAuthError",h),zn("Channel error: "+h+" without reconnection"),M.dispose()):(M.reconnecting_=!0,zn("Channel error: "+h+" with reconnection in "+M.getReconnectTimeout_()+" ms"),tUb(M,2))});
this.channelService.listen("channelMessage",function(h){MUx(M,h)});
this.channelService.setLoungeToken(H.token);this.subscribe("remoteQueueChange",function(){var h=M.playerContext_.videoId;ctA()&&_.WH("yt-remote-session-video-id",h)})};
_.e(Fh,_.Yh);
Fh.prototype.connect=function(f,H){if(H){var v=H.listId,t=H.videoId,M=H.videoIds,h=H.playerParams,y=H.clickTrackingParams,m=H.index,W={videoId:t},I=H.currentTime,S=H.locationInfo;H=H.loopMode;I!==void 0&&(W.currentTime=I<=5?0:I);h&&(W.playerParams=h);S&&(W.locationInfo=S);y&&(W.clickTrackingParams=y);v&&(W.listId=v);M&&M.length>0&&(W.videoIds=M.join(","));m!==void 0&&(W.currentIndex=m);this.enableConnectWithInitialState_&&(W.loopMode=H||"LOOP_MODE_OFF");v&&(this.playerContext_.listId=v);this.playerContext_.videoId=
t;this.playerContext_.index=m||0;this.playerContext_.state=3;JC(this.playerContext_,I);this.autoplayMode_="UNSUPPORTED";v=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";zn("Connecting with "+v+" and params: "+(0,_.UB)(W));this.channelService.connect({method:v,params:(0,_.UB)(W)},f,kDx())}else zn("Connecting without params"),this.channelService.connect({},f,kDx());hfF(this)};
Fh.prototype.setLoungeToken=function(f){this.channelService.setLoungeToken(f)};
Fh.prototype.dispose=function(){this.isDisposed()||(_.qJ("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),tUb(this,3));_.Yh.prototype.dispose.call(this)};
Fh.prototype.disposeInternal=function(){RfF(this);VUW(this);y3i(this);_.Ok(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.Ok(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.N93(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.Yh.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var Ysw=function(f){return _.Gb(f.connectedDevices_,function(H){return H.type=="LOUNGE_SCREEN"})},zn=function(f){H9("conn",f)},tUb=function(f,H){f.publish("proxyStateChange",H)},hfF=function(f){f.connectTimerId_=_.$Z(function(){zn("Connecting timeout");
f.JSC$19779_disconnect_(1)},2E4)},RfF=function(f){_.Ok(f.connectTimerId_);
f.connectTimerId_=NaN},y3i=function(f){_.Ok(f.reconnectedCheckScreenTimeout_);
f.reconnectedCheckScreenTimeout_=NaN},m2x=function(f){VUW(f);
f.playingSyncTimerId_=_.$Z(function(){rN(f,"getNowPlaying")},2E4)},VUW=function(f){_.Ok(f.playingSyncTimerId_);
f.playingSyncTimerId_=NaN},v8A=function(f){zn("Channel opened");
f.reconnecting_&&(f.reconnecting_=!1,y3i(f),f.reconnectedCheckScreenTimeout_=_.$Z(function(){zn("Timing out waiting for a screen.");f.JSC$19779_disconnect_(1)},15E3))},Wnx=function(f,H){var v=null;
if(H){var t=Ysw(f);t&&(v={clientName:t.clientName,deviceMake:t.brand,deviceModel:t.model,osVersion:t.osVersion})}_.qJ("yt.mdx.remote.remoteClient_",v);H&&(RfF(f),y3i(f));v=f.channelService.isChannelOpened()&&isNaN(f.connectTimerId_);H==v?H&&(tUb(f,1),rN(f,"getSubtitlesTrack")):H?(f.getOtherConnectedRemoteId_()&&f.playerContext_.reset(),tUb(f,1),rN(f,"getNowPlaying"),$2W(f)):f.JSC$19779_disconnect_(1)},OX5=function(f,H){var v=H.params.videoId;
delete H.params.videoId;v==f.playerContext_.videoId&&(_.QA.isEmpty(H.params)?f.playerContext_.trackData=null:f.playerContext_.trackData=H.params,f.publish("remotePlayerChange"))},g8p=function(f,H,v){var t=H.params.videoId||H.params.video_id,M=parseInt(H.params.currentIndex,10);
f.playerContext_.listId=H.params.listId||f.playerContext_.listId;bmb(f.playerContext_,t,M);f.publish("remoteQueueChange",v)},Ifp=function(f,H){H.params=H.params||{};
g8p(f,H,"NOW_PLAYING_MAY_CHANGE");f.onStateChange_(H);f.publish("autoplayDismissed")};
Fh.prototype.onStateChange_=function(f){var H=parseInt(f.params.currentTime||f.params.current_time,10);JC(this.playerContext_,isNaN(H)?0:H);H=parseInt(f.params.state,10);H=isNaN(H)?-1:H;H==-1&&this.playerContext_.playerState==-1E3&&(H=-1E3);this.playerContext_.playerState=H;H=Number(f.params.loadedTime);this.playerContext_.loadedTime=isNaN(H)?0:H;H=Number(f.params.duration);this.playerContext_.duration_=isNaN(H)?0:H;H=this.playerContext_;var v=Number(f.params.liveIngestionTime);H.liveIngestionTime_=
v;H.isLive_=isNaN(v)?!1:!0;H=this.playerContext_;v=Number(f.params.seekableStartTime);f=Number(f.params.seekableEndTime);H.seekableStart_=isNaN(v)?0:v;H.seekableEnd_=isNaN(f)?0:f;this.playerContext_.playerState==1?m2x(this):VUW(this);this.publish("remotePlayerChange")};
Fh.prototype.onAdStateChange_=function(f){if(this.playerContext_.playerState!=-1E3){var H=1085;switch(parseInt(f.params.adState,10)){case 1:H=1081;break;case 2:H=1084;break;case 0:H=1083}this.playerContext_.playerState=H;f=parseInt(f.params.currentTime,10);JC(this.playerContext_,isNaN(f)?0:f);this.publish("remotePlayerChange")}};
var SsA=function(f,H){var v=H.params.muted=="true";f.playerContext_.volume=parseInt(H.params.volume,10);f.playerContext_.muted=v;f.publish("remotePlayerChange")},d2b=function(f,H){f.autoplayVideoId_=H.params.videoId;
f.publish("nowAutoplaying",parseInt(H.params.timeout,10))},jtx=function(f,H){f.autoplayVideoId_=H.params.videoId||null;
f.publish("autoplayUpNext",f.autoplayVideoId_)},stt=function(f,H){f.autoplayMode_=H.params.autoplayMode;
f.publish("autoplayModeChange",f.autoplayMode_);f.autoplayMode_=="DISABLED"&&f.publish("autoplayDismissed")},ZXb=function(f,H){var v=H.params.hasNext=="true";
f.playerContext_.hasPrevious=H.params.hasPrevious=="true";f.playerContext_.hasNext=v;f.publish("previousNextChange")};
Fh.prototype.isCapabilitySupportedOnConnectedDevices_=function(f){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var H=_.V(this.connectedDevices_),v=H.next();!v.done;v=H.next())if(!v.value.capabilities.has(f))return!1;return!0};
var MUx=function(f,H){H=H.message;H.params?zn("Received: action="+H.action+", params="+(0,_.UB)(H.params)):zn("Received: action="+H.action+" {}");switch(H.action){case "loungeStatus":H=(0,_.DF)(H.params.devices);f.connectedDevices_=_.uh(H,function(t){return new Yt(t)});
H=!!_.Gb(f.connectedDevices_,function(t){return t.type=="LOUNGE_SCREEN"});
Wnx(f,H);H=f.isCapabilitySupportedOnConnectedDevices_("mlm");f.publish("multiStateLoopEnabled",H);break;case "loungeScreenDisconnected":YeW(f.connectedDevices_,function(t){return t.type=="LOUNGE_SCREEN"});
Wnx(f,!1);break;case "remoteConnected":var v=new Yt((0,_.DF)(H.params.device));_.Gb(f.connectedDevices_,function(t){return t.equals(v)})||_.AN(f.connectedDevices_,v);
break;case "remoteDisconnected":v=new Yt((0,_.DF)(H.params.device));YeW(f.connectedDevices_,function(t){return t.equals(v)});
break;case "gracefulDisconnect":break;case "playlistModified":g8p(f,H,"QUEUE_MODIFIED");break;case "nowPlaying":Ifp(f,H);break;case "onStateChange":f.onStateChange_(H);break;case "onAdStateChange":f.onAdStateChange_(H);break;case "onVolumeChanged":SsA(f,H);break;case "onSubtitlesTrackChanged":OX5(f,H);break;case "nowAutoplaying":d2b(f,H);break;case "autoplayDismissed":f.publish("autoplayDismissed");break;case "autoplayUpNext":jtx(f,H);break;case "onAutoplayModeChanged":stt(f,H);break;case "onHasPreviousNextChanged":ZXb(f,
H);break;case "requestAssistedSignIn":f.publish("assistedSignInRequested",H.params.authCode);break;case "onLoopModeChanged":f.publish("loopModeChange",H.params.loopMode);break;default:zn("Unrecognized action: "+H.action)}};
_.R=Fh.prototype;_.R.getProxyState_=function(){var f=3;this.isDisposed()||(f=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(f=1):f=2);return f};
_.R.JSC$19779_disconnect_=function(f){zn("Disconnecting with "+f);_.qJ("yt.mdx.remote.remoteClient_",null);RfF(this);this.publish("beforeDisconnect",f);f==1&&T4();this.channelService.disconnect(f);this.dispose()};
_.R.getPlayerContextData_=function(){var f=this.playerContext_;this.clientVideoId_&&(f=this.playerContext_.clone(),bmb(f,this.clientVideoId_,f.index));return imi(f)};
_.R.setPlayerContextData_=function(f){var H=this,v=new ON(f);v.videoId&&v.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=v.videoId,_.Ok(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.$Z(function(){if(H.clientVideoId_){var M=H.clientVideoId_;H.clientVideoId_=null;H.playerContext_.videoId!=M&&rN(H,"getNowPlaying")}},5E3));
var t=[];this.playerContext_.listId==v.listId&&this.playerContext_.videoId==v.videoId&&this.playerContext_.index==v.index||t.push("remoteQueueChange");this.playerContext_.playerState==v.playerState&&this.playerContext_.volume==v.volume&&this.playerContext_.muted==v.muted&&A_i(this.playerContext_)==A_i(v)&&(0,_.UB)(this.playerContext_.trackData)==(0,_.UB)(v.trackData)||t.push("remotePlayerChange");this.playerContext_.reset(f);_.X3(t,function(M){this.publish(M)},this)};
_.R.getOtherConnectedRemoteId_=function(){var f=this.channelService.getDeviceId(),H=_.Gb(this.connectedDevices_,function(v){return v.type=="REMOTE_CONTROL"&&v.id!=f});
return H?H.id:""};
_.R.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.R.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.R.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.R.JSC$19779_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var $2W=function(f){_.Ok(f.idleDisconnectTimerId_);f.idleDisconnectTimerId_=_.$Z(function(){f.JSC$19779_disconnect_(1)},864E5)},rN=function(f,H,v){v?zn("Sending: action="+H+", params="+(0,_.UB)(v)):zn("Sending: action="+H);
f.channelService.sendMessage(H,v)};
Fh.prototype.sendMessageWithUserAction_=function(f,H){rN(this,f,H);$2W(this)};
Fh.prototype.JSC$19779_getXsrfToken_=function(){var f=_.sk.get("SAPISID","")||_.sk.get("__Secure-1PAPISID",void 0)||"",H=_.sk.get("__Secure-3PAPISID","")||"";if(!f&&!H)return"";f=_.QG(_.B_(f),2);H=_.QG(_.B_(H),2);return _.QG(_.B_(","+f+","+H),2)};
Fh.prototype.subscribe=Fh.prototype.subscribe;Fh.prototype.unsubscribeByKey=Fh.prototype.unsubscribeByKey;Fh.prototype.getProxyState=Fh.prototype.getProxyState_;Fh.prototype.disconnect=Fh.prototype.JSC$19779_disconnect_;Fh.prototype.getPlayerContextData=Fh.prototype.getPlayerContextData_;Fh.prototype.setPlayerContextData=Fh.prototype.setPlayerContextData_;Fh.prototype.getOtherConnectedRemoteId=Fh.prototype.getOtherConnectedRemoteId_;Fh.prototype.getReconnectTimeout=Fh.prototype.getReconnectTimeout_;
Fh.prototype.getAutoplayMode=Fh.prototype.getAutoplayMode_;Fh.prototype.getAutoplayVideoId=Fh.prototype.getAutoplayVideoId_;Fh.prototype.reconnect=Fh.prototype.JSC$19779_reconnect_;Fh.prototype.sendMessage=Fh.prototype.sendMessageWithUserAction_;Fh.prototype.getXsrfToken=Fh.prototype.JSC$19779_getXsrfToken_;Fh.prototype.isCapabilitySupportedOnConnectedDevices=Fh.prototype.isCapabilitySupportedOnConnectedDevices_;var J3W=function(f){Mf.call(this,"ScreenServiceProxy");this.instance_=f;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.FH)(this.JSC$19782_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.FH)(this.onOnlineScreenChange_,this)))};
_.e(J3W,Mf);_.R=J3W.prototype;_.R.getScreens=function(f){return this.instance_.$_gs(f)};
_.R.contains=function(f){return!!this.instance_.$_c(f)};
_.R.get=function(f){return this.instance_.$_g(f)};
_.R.start=function(){this.instance_.$_st()};
_.R.add=function(f,H,v){this.instance_.$_a(f,H,v)};
_.R.remove=function(f,H,v){this.instance_.$_r(f,H,v)};
_.R.updateName=function(f,H,v,t){this.instance_.$_un(f,H,v,t)};
_.R.disposeInternal=function(){for(var f=this.subscriptionKeys_.length,H=0;H<f;++H)this.instance_.$_ubk(this.subscriptionKeys_[H]);this.subscriptionKeys_.length=0;this.instance_=null;Mf.prototype.disposeInternal.call(this)};
_.R.JSC$19782_onScreenChange_=function(){this.publish("screenChange")};
_.R.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
Vg.prototype.$_st=Vg.prototype.start;Vg.prototype.$_gspc=Vg.prototype.JSC$19741_getScreenByPairingCode;Vg.prototype.$_gsppc=Vg.prototype.JSC$19741_getScreenByPollingPairingCode;Vg.prototype.$_c=Vg.prototype.contains;Vg.prototype.$_g=Vg.prototype.get;Vg.prototype.$_a=Vg.prototype.add;Vg.prototype.$_un=Vg.prototype.updateName;Vg.prototype.$_r=Vg.prototype.remove;Vg.prototype.$_gs=Vg.prototype.getScreens;Vg.prototype.$_gos=Vg.prototype.JSC$19741_getOnlineScreens;Vg.prototype.$_s=Vg.prototype.subscribe;
Vg.prototype.$_ubk=Vg.prototype.unsubscribeByKey;var zfW=function(f){fwG();if(!wn||!wn.get("yt-remote-disable-remote-module-for-dev")){f=_.a8("MDX_CONFIG")||f;v_r();Atw();KH||(KH=new AL(f?f.loungeApiHost:void 0),H2i()&&(KH.basePath="/api/loungedev"));Dd||(Dd=_.ES("yt.mdx.remote.deferredProxies_")||[],_.qJ("yt.mdx.remote.deferredProxies_",Dd));lf5();var H=oD();if(!H){var v=new Vg(KH,f?f.disableAutomaticScreenCache||!1:!1);_.qJ("yt.mdx.remote.screenService_",v);H=oD();var t={};f&&(t={appId:f.appId,disableDial:f.disableDial,theme:f.theme,loadCastApiSetupScript:f.loadCastApiSetupScript,
disableCastApi:f.disableCastApi,enableDialLoungeToken:f.enableDialLoungeToken,enableCastLoungeToken:f.enableCastLoungeToken,forceMirroring:f.forceMirroring});_.qJ("yt.mdx.remote.enableConnectWithInitialState_",f?f.enableConnectWithInitialState||!1:!1);Dub(v,function(h){h?nH()&&GWh(nH(),"YouTube TV"):v.subscribe("onlineScreenChange",function(){ZJ("yt-remote-receiver-availability-change")})},t)}if(f&&!_.ES("yt.mdx.remote.initialized_")){_.qJ("yt.mdx.remote.initialized_",!0);
pH("Initializing: "+(0,_.UB)(f));Qm.push(_.YF("yt-remote-cast2-api-ready",function(){ZJ("yt-remote-api-ready")}));
Qm.push(_.YF("yt-remote-cast2-availability-change",function(){ZJ("yt-remote-receiver-availability-change")}));
Qm.push(_.YF("yt-remote-cast2-receiver-selected",function(){U2x();ZJ("yt-remote-auto-connect","cast-selector-receiver")}));
Qm.push(_.YF("yt-remote-cast2-receiver-resumed",function(){ZJ("yt-remote-receiver-resumed","cast-selector-receiver")}));
Qm.push(_.YF("yt-remote-cast2-session-change",efW));Qm.push(_.YF("yt-remote-connection-change",function(h){h?GWh(nH(),"YouTube TV"):Lnx()||(GWh(null,null),uIb())}));
Qm.push(_.YF("yt-remote-cast2-session-failed",function(){ZJ("yt-remote-connection-failed")}));
t=x2x();f.isAuto&&(t.id+="#dial");var M=f.capabilities||[];M.length>0&&(t.capabilities=M);t.name=f.device;t.app=f.app;(f=f.theme)&&(t.theme=f);pH(" -- with channel params: "+(0,_.UB)(t));t?(_.WH("yt-remote-session-app",t.app),_.WH("yt-remote-session-name",t.name)):(_.g4("yt-remote-session-app"),_.g4("yt-remote-session-name"));_.qJ("yt.mdx.remote.channelParams_",t);H.start();nH()||BYx()}}},r3A=function(){var f=oD().instance_.$_gos();
var H=FnA();H&&u1()&&(CYW(f,H)||f.push(H));return GDh(f)},Kn0=function(){var f=r3A(),H=FnA();
H||(H=Lnx());return _.Gb(f,function(v){return H&&iG(H,v.key)?!0:!1})},FnA=function(){var f=nH();
if(!f)return null;var H=oD().getScreens();return kh(H,f)},efW=function(f){pH("remote.onCastSessionChange_: "+CJW(f));
if(f){var H=FnA();H&&H.id==f.id?(GWh(H.id,"YouTube TV"),f.idType=="shortLived"&&(f=f.token)&&(H=u1())&&H.setLoungeToken(f)):(H&&D2A(),o8t(f,1))}else u1()&&D2A()},D2A=function(){PJw()?$H().stopSession():mj("stopSession called before API ready.");
var f=u1();f&&(f.disconnect(1),n85(null))},p5x=function(){var f=u1();
return f&&f.getProxyState()!=3?new l1(u1(),void 0):null},pH=function(f){H9("remote",f)},oD=function(){if(!Qth){var f=_.ES("yt.mdx.remote.screenService_");
Qth=f?new J3W(f):null}return Qth},nH=function(){return _.ES("yt.mdx.remote.currentScreenId_")},uF5=function(f){_.qJ("yt.mdx.remote.currentScreenId_",f)},U2x=function(){_.qJ("yt.mdx.remote.connectData_",null)},u1=function(){return _.ES("yt.mdx.remote.connection_")},n85=function(f){var H=u1();
U2x();f||uF5("");_.qJ("yt.mdx.remote.connection_",f);Dd&&(_.X3(Dd,function(v){v(f)}),Dd.length=0);
H&&!f?ZJ("yt-remote-connection-change",!1):!H&&f&&ZJ("yt-remote-connection-change",!0)},Lnx=function(){var f=ctA();
if(!f)return null;var H=oD();if(!H)return null;H=H.getScreens();return kh(H,f)},o8t=function(f,H){uF5(f.id);
f=new Fh(KH,f,x2x(),_.ES("yt.mdx.remote.enableConnectWithInitialState_")||!1);f.connect(H,_.ES("yt.mdx.remote.connectData_"));f.subscribe("beforeDisconnect",function(v){ZJ("yt-remote-before-disconnect",v)});
f.subscribe("beforeDispose",function(){u1()&&n85(null)});
f.subscribe("browserChannelAuthError",function(){var v=FnA();v&&v.idType=="shortLived"&&(PJw()?$H().handleBrowserChannelAuthError():mj("refreshLoungeToken called before API ready."))});
n85(f)},BYx=function(){var f=Lnx();
f?(pH("Resume connection to: "+CJW(f)),o8t(f,0)):(T4(),uIb(),pH("Skipping connecting because no session screen found."))},KH=null,Dd=null,Qth=null,lf5=function(){var f=x2x();
if(_.QA.isEmpty(f)){f=NZW();var H=_.Oz("yt-remote-session-name")||"",v=_.Oz("yt-remote-session-app")||"";f={device:"REMOTE_CONTROL",id:f,name:H,app:v,mdxVersion:3};f.authuser=String(_.a8("SESSION_INDEX","0"));(H=_.a8("DELEGATED_SESSION_ID"))&&(f.pageId=String(H));_.qJ("yt.mdx.remote.channelParams_",f)}},x2x=function(){return _.ES("yt.mdx.remote.channelParams_")||{}},Qm=[];var af0=new _.P8("yt-menu"),P5t=function(){},C5i=function(f,H,v){f=H=="right-click"?v.rightClickMenuPopupHint:v.menuPopupHint;
if(!(GQh(H)>10))return H=H||"default",af0.set(H+"-impression",GQh(H)+1),f},GQh=function(f){return parseInt(af0.get((f||"default")+"-impression")||0,10)};
_.ws(P5t);var E8h=function(){this.contexts_=new WeakMap;this.JSC$19788_networkService_=this.activeContext_=null},NY5=function(f,H,v){var t=f.contexts_.get(H);
t||(t=new fVw(f.JSC$19788_networkService_),f.contexts_.set(H,t));f.activeContext_=t;v&&f.activeContext_.reset();f.activeContext_.start();return f.activeContext_};var aD=function(){};
aD.prototype.enqueue=function(){var f=this,H;return _.Y(function(v){if(f.isCounterfactual())return(H=f.getCounterfactualData())&&f.shouldLogCounterfactualImpression()&&f.sendImpressionEndpoints(H),v.return();f.doEnqueue();_.Bj(v)})};
aD.prototype.sendImpressionEndpoints=function(f){_.A7.getInstance().triggerOptionalAction("yt-service-request",{},f[0])};var Pz=function(f,H){this.renderer=f;this.page=H};
_.e(Pz,aD);Pz.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
Pz.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
Pz.prototype.shouldLogCounterfactualImpression=function(){return!0};
Pz.prototype.doEnqueue=function(){var f=_.Hx(this.page);f&&f.pause();this.renderer.impressionCommand&&_.A7.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.r_(_.A7.getInstance(),[this.renderer.promoCommand],this.page)};var c3b=function(f,H){this.renderer=f;this.resolver=_.bE();this.JSC$19800_enforcementCounter=new _.rxg;H?this.JSC$19800_playerManager=_.Hx(H):this.JSC$19800_playerManager=null;_.Jt(1,!0)};
_.e(c3b,aD);_.R=c3b.prototype;_.R.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var f=[];this.renderer.impressionEndpoints.forEach(function(H){(H=_.GK(H))&&f.push(H)});
return f}};
_.R.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.R.shouldLogCounterfactualImpression=function(){var f=_.e13();f?(this.JSC$19800_enforcementCounter.increment("POPUP"),_.Jt(3)):_.Jt(2);return f};
_.R.cancel=function(){this.resolver.promise.cancel()};
_.R.doEnqueue=function(){var f=this;_.e13()?(this.JSC$19800_enforcementCounter.increment("POPUP"),_.Jt(3),X5b(this)):this.JSC$19800_playerManager?(this.resolver.promise.then(function(){X5b(f)}),A3G(this.resolver,this.JSC$19800_playerManager)):_.Jt(2)};
var A3G=function(f,H){var v=_.bE();H.getPlayerPromise().then(function(t){v.resolve(t)});
v.promise.then(function(t){t.addEventListener("onAbnormalityDetected",f.resolve);_.Ze(f.promise,function(){t.removeEventListener("onAbnormalityDetected",f.resolve)})});
f.promise.thenCatch(function(){v.promise.cancel()})},X5b=function(f){_.Jt(3);
var H={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:f.renderer}};H=_.A7.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:H},{});Promise.all(H).then(function(){bX0();f.JSC$19800_playerManager&&f.JSC$19800_playerManager.pause()})},bX0=function(){AgF(function(f,H){_.DVx(f,H);
f===0?_.Jt(7):_.Jt(4)})};var iXW=function(f,H){this.renderer=f;this.page=H;this.resolver=_.bE()};
_.e(iXW,aD);_.R=iXW.prototype;_.R.cancel=function(){this.resolver.promise.cancel()};
_.R.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.R.isCounterfactual=function(){return!this.renderer.isVisible};
_.R.shouldLogCounterfactualImpression=function(){return!0};
_.R.doEnqueue=function(){var f=this;this.resolver.promise.then(function(){var v={popup:{mealbarPromoRenderer:f.renderer},popupType:"MEALBAR"};_.A7.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:v},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var H=_.Hx(this.page);H&&kQx(this.resolver,H)}break;default:this.resolver.resolve()}};
var kQx=function(f,H){var v=_.bE();H.getPlayerPromise().then(function(t){v.resolve(t)});
v.promise.then(function(t){t.addEventListener("onAdEnd",f.resolve);_.Ze(f.promise,function(){t.removeEventListener("onAdEnd",f.resolve)})});
f.promise.thenCatch(function(){v.promise.cancel()})};var TYW=function(f,H){this.renderer=f;this.page=H};
_.e(TYW,aD);_.R=TYW.prototype;_.R.cancel=function(){this.JSC$19808_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19808_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19808_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.R.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.R.isCounterfactual=function(){return!this.renderer.isVisible};
_.R.shouldLogCounterfactualImpression=function(){return!0};
_.R.doEnqueue=function(){var f=this,H,v;((H=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(v=H.playbackUpsellDialogTriggerConditionData)==null?void 0:v.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$19808_downloadedVideosCountSelectorUnsubscriber=_.sI(_.vS(),CyA,function(t,M){t>M&&(w5W(f),f.cancel())}):w5W(this)};
var w5W=function(f){var H={popup:{upsellDialogRenderer:f.renderer},popupType:"MODAL"};_.A7.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:H},{});(f=_.Hx(f.page))&&f.pause()};var Gn={},qsp=(Gn.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",Gn.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",Gn.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",Gn.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",Gn.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",Gn.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",Gn.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",Gn),fjb=function(f,H){this.renderer=f;this.targetManager=
H};
_.e(fjb,aD);_.R=fjb.prototype;_.R.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$19815_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19815_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19815_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.R.getCounterfactualData=function(){if(this.isCounterfactual()){var f;return(f=this.renderer.promoConfig)==null?void 0:f.impressionEndpoints}};
_.R.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.R.shouldLogCounterfactualImpression=function(){return!0};
_.R.doEnqueue=function(){var f=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$19815_downloadedVideosCountSelectorUnsubscriber=_.sI(_.vS(),CyA,function(H,v){f.renderer.targetId&&H>v&&(jcW(f.targetManager,f.renderer.targetId,H5t(f)),f.cancel())});
break;default:jcW(this.targetManager,this.renderer.targetId,H5t(this))}};
var H5t=function(f){var H;if((H=f.renderer.suggestedPosition)==null?0:H.type)var v=qsp[f.renderer.suggestedPosition.type];v||(v="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:f.renderer},popupType:"HINT",position:v}}};var vDr=function(){this.previousPage=null},tYW;
vDr.prototype.registerPromoCommand=function(f,H){MYw(this,void 0,void 0,_.U(f.roadblock,sM5),void 0,void 0,H)};
var MYw=function(f,H,v,t,M,h,y){f.previousPage!==y&&f.pendingTooltipPromo&&f.pendingTooltipPromo.cancel();f.previousPage=y;M?(f.pendingEnforcementPromo&&f.pendingEnforcementPromo.cancel(),f.pendingEnforcementPromo=new c3b(M,y),f.pendingEnforcementPromo.enqueue()):h?(f.pendingCommandWrapperPromo=new Pz(h,y),f.pendingCommandWrapperPromo.enqueue()):t?(f.pendingRoadblockPromo&&f.pendingRoadblockPromo.cancel(),f.pendingRoadblockPromo=new TYW(t,y),f.pendingRoadblockPromo.enqueue()):H?(f.pendingMealbarPromo&&
f.pendingMealbarPromo.cancel(),f.pendingMealbarPromo=new iXW(H,y),f.pendingMealbarPromo.enqueue()):v&&(f.pendingTooltipPromo&&f.pendingTooltipPromo.cancel(),f.pendingTooltipPromo=new fjb(v,_.LM()),f.pendingTooltipPromo.enqueue())},hO0=function(){tYW||(tYW=new vDr);
return tYW};var XBx=!1;var ssF=function(f,H){var v=_.a8("SESSION_INDEX");this.actionToken_=f;this.commonToken_=H;this.sessionIndex_=v},jsA=function(f){var H=_.bE(),v=_.ES("payments.business.integration.bootstrap"),t=_.ES("payments.business.integration"),M=t.Style.create().withMaterialDesignStyle(),h=t.mashupMode.popup("instrument-manager");
v.asMashupMode(h).usingUserIndex(f.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(M).inStandaloneContext(t.standaloneContextAuthId.forUserId()).instrumentManager(f.actionToken_,f.commonToken_.length>0?f.commonToken_:void 0,function(y){var m=y.instrumentId;m?H.resolve(m):(m=_.ES("payments.business.integration.scenario.InstrumentManager"),H.reject(y.errorCode&&y.errorCode===m.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(y){_.Ge(y);
H.reject("instrumentManagerLoadError")});
return H.promise};var d0=function(f,H,v){this.payloadName="transactionFlowFailed";this.payload={errorType:f,serializedTransactionFlowLoggingParams:H,isUserDismiss:v===void 0?!1:v}};
_.qJ("yt.ypc.shared.YpcTransactionFlowError",d0);var CH=function(){return _.er.apply(this,arguments)||this};
_.e(CH,_.er);CH.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
CH.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
CH.prototype.onErrorMessageDismiss=CH.prototype.onErrorMessageDismiss;_.E([_.F({readOnly:!0,observer:"errorRendererChanged"}),_.N("design:type",Object)],CH.prototype,"errorRenderer",void 0);_.E([_.sE("yt-live-chat-error-message-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],CH.prototype,"onErrorMessageDismiss",null);_.E([_.L2()],CH);var ROr=[CH.prototype];var VYt;var yzh;var YiG=new _.P8("yt-live-chat"),mvG=new Map;mvG.set("timestamp_toggle","show-timestamps");mvG.set("reactions_toggle","allow-reactions");var Er=function(){return _.K.apply(this,arguments)||this};
_.e(Er,_.K);_.R=Er.prototype;_.R.menuItemIdentifierChanged=function(){var f;(f=this.data)!=null&&f.menuItemIdentifier&&(f=mvG.get(this.data.menuItemIdentifier))&&(_.J("enable_lwe_web_mute")?(f=YiG.get(f),this.isToggled=!(f===void 0?!this.data.isToggled:!f)):this.isToggled=YiG.get(f))};
_.R.onFocus=function(){this.toggleButton.focus()};
_.R.onTap=function(){var f=this.data.command;f&&this.componentBehavior.resolveCommand(f)};
_.R.computeText=function(f,H,v){return this.componentBehavior.getSimpleString(f?v:H)};
_.R.computeIcon=function(f,H,v){return(f=f?v:H)&&f.iconType?_.SW(f.iconType):""};
Er.prototype.onTap=Er.prototype.onTap;Er.prototype.onFocus=Er.prototype.onFocus;Er.prototype.menuItemIdentifierChanged=Er.prototype.menuItemIdentifierChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Er.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Er.prototype,"componentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Er.prototype,"data",void 0);
_.E([_.F({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.N("design:type",String)],Er.prototype,"icon",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],Er.prototype,"isToggled",void 0);_.E([_.lJ("tp-yt-paper-toggle-button"),_.N("design:type",Object)],Er.prototype,"toggleButton",void 0);_.E([_.Zw("data.menuItemIdentifier"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Er.prototype,"menuItemIdentifierChanged",null);
_.E([_.sE("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Er.prototype,"onFocus",null);_.E([_.sE("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Er.prototype,"onTap",null);_.E([_.GW({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],Er);
_.G(Er,"yt-live-chat-toggle-renderer",function(){if(yzh===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;VYt===void 0&&(VYt=document.createElement("template"));var t=VYt;v.call(H,t.content.cloneNode(!0),f.content.firstChild);yzh=f}f=yzh;return f},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var $vr=new _.iN("NAVIGATION_PROGRESS_TOKEN");var Wax={},O50={},gDt=(O50[V3G.name]=!0,O50),NH=function(){var f=_.er.apply(this,arguments)||this;f._noAccessors=!0;f.tabGesturesIsActive=!1;f.actionRouterIsRoot=!0;f.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"};f.pageTitle="";f.titleSuffix="YouTube";f.unseenNotificationCount=
0;f.hasNavigated=!1;f.hasSetScrollTopForNavigation=!1;f.pagePreparer=null;f.zwiebackInitJobId=0;f.dataUpdatePromise=null;f.loadDepsPromise=_.gj();f.hasPendingNavigation=!1;f.pendingPlayerOnResponseReceivedActions=[];return f};
_.e(NH,_.er);NH.prototype.attached=function(){IjW(this);document.addEventListener("yt-navigate-cache",_.jr(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var f=cz();f.init();f.dispatchElement=this.hostElement};
var IjW=function(f,H){H=H===void 0?0:H;var v=_.t8().resolve(_.vh(_.eD));if(v)Sib(f,v);else{if(H>=5)throw Error("hl");setTimeout(function(){IjW(f,H+1)},0)}},Sib=function(f,H){H.addEventListener("yt-navigate-start",_.jr(f,f.onYtNavigateStart));
H.addEventListener("yt-navigate-finish",_.jr(f,f.onYtNavigateFinish));H.addEventListener("yt-navigate-error",_.jr(f,f.onYtNavigateError));H.addEventListener("yt-page-data-fetched",_.jr(f,f.onYtPageDataFetched))};
_.R=NH.prototype;_.R.detached=function(){var f=_.t8().resolve(_.eD);f.removeEventListener("yt-navigate-start",_.jr(this,this.onYtNavigateStart));f.removeEventListener("yt-navigate-finish",_.jr(this,this.onYtNavigateFinish));f.removeEventListener("yt-navigate-error",_.jr(this,this.onYtNavigateError));f.removeEventListener("yt-page-data-fetched",_.jr(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.jr(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.R.setPageOffset=function(f,H){f?_.mb(this.hostElement,"yt-set-page-offset",[f,H]):_.oO(Error("il"))};
_.R.setPageOffsetForNavigation=function(f,H){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(f,H))};
_.R.onYtNavigateSetPageOffset=function(f,H){this.setPageOffsetForNavigation(H.page,H.offset)};
_.R.getPageOffset=function(){var f=_.mF(this.hostElement).querySelector("#page-manager").getCurrentPage(),H=0;f&&(H=_.mb(this.hostElement,"yt-get-page-offset",[f])[0]);return H};
_.R.onYtHistoryPop=function(f,H){if(_.P6("DISABLE_WARM_LOADS"))f.preventDefault(),window.location.reload();else{var v=_.t8().resolve(_.eD);v.hasPendingNavigation()&&f.preventDefault();v.cancelPendingNavigation();_.$E(this.hostElement,"yt-pending-navigation-cancelled");H.errorMsg&&(f=H.errorMsg.split(" - "),H=Error(f[0]),f.length==2&&f[1]&&(_.u$(H,f[1]),_.pb(H)),window.location.reload())}};
_.R.onYtHistoryLoad=function(f,H){var v=this;if(_.P6("DISABLE_WARM_LOADS"))window.location.reload();else{(f=H.endpoint)&&Object.keys(f).length||(f=null);var t=H.historyEntry,M=_.t8().resolve(_.eD),h=_.t8().resolve(_.fT),y=null;t&&t.rootData&&(y=t.rootData);var m=y&&dvx(y);!y||m||y.filler?f?(M.navigate(f,!0),jYr(this,f)):(H.legacyBorder||m||(H.JSC$30119_savedComponentState==null&&y==null?_.pb(new _.e$("Incomplete history entry",H.forward)):_.nb(new _.e$("Malformed history entry",H.JSC$30119_savedComponentState,
H.forward,y))),window.location.reload()):(_.O3T({isHot:!0}),_.nQ({webInfo:{navigationReason:"h"}}),_.zcT(),_.u0("srt"),_.u0("pdc"),this.cancelPendingTasks(),sYp(this,H.forward,y),y.player&&(y.player.loaded=!1),jYr(this,f),_.O7h(M,f||{},y,2,{},!1,H).then(function(){v.setPageOffset(h.getCurrentPage(),t.scrollTop||0)}))}};
_.R.initHistoryManager=function(f){if(!this.hasNavigated){this.hasNavigated=!0;var H=_.mF(this.hostElement).querySelector("#page-manager").getCurrentData();f=isNaN(f)?this.getPageOffset():f;var v=_.t8().resolve(_.eD).currentEndpoint;this.replaceState(v,H,f)}};
_.R.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.R.onYtNavigateStart=function(f,H){this.cancelPendingTasks();H.noProgressBar||(f=_.t8().resolve(_.vh($vr)))&&f.start();f=this.hasPendingNavigation?null:this.data;var v=_.t8().resolve(_.fT),t,M,h;_.J("kevlar_use_vimio_behavior")&&!((t=H.endpoint)==null?0:(M=t.commandMetadata)==null?0:(h=M.webCommandMetadata)==null?0:h.ignoreNavigation)&&(t=v.getCurrentPage())&&t.disconnectVisibilityRoot();v.prepareForNavigation(H.pageType,H.endpoint);_.J("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.t$(1,
"pcl"),_.M8(this.pagePreparer,v.preparePage.bind(v,H.pageType,H.endpoint)));t=this.getPageOffset();this.initHistoryManager(t);H.reload||this.hasPendingNavigation?(_.J("web_enable_delay_shorts_sequence_call")&&H.pageType==="shorts"&&H.reload&&_.YE(this.hostElement,"yt-shorts-reset"),this.replaceState(H.endpoint,f,t)):(f==null?void 0:f.page)==="watch"&&H.pageType==="watch"&&_.J("kevlar_replace_watch_to_watch_history_state")?this.replaceState(H.endpoint,f,t):(f==null?void 0:f.page)!=="shorts"||H.pageType!==
"shorts"||H.endpoint.reelWatchEndpoint.sequenceParams||_.J("short_to_short_back_nav_killswitch")?H.type!="navigate-back"&&H.type!="navigate-forward"&&(H.pageType==="shorts"&&_.YE(this.hostElement,"yt-shorts-reset"),this.saveAndPush(H.url,H.endpoint,f,t)):(_.J("web_enable_delay_shorts_sequence_call")&&(H.endpoint.reelWatchEndpoint.sequenceParams=f==null?void 0:f.cachedSequenceParams,H.endpoint.reelWatchEndpoint.sequenceProvider=f==null?void 0:f.cachedSequenceProvider),this.replaceState(H.endpoint,
f,0));this.hasPendingNavigation=!0};
var Z5F=function(f){f.hasPendingNavigation=!1;(f=_.t8().resolve(_.vh($vr)))&&f.finish()};
NH.prototype.onYtNavigateError=function(f,H){Z5F(this);f=this.get("endpoint.commandMetadata.webCommandMetadata.url",H);var v=_.bZ(window.location.href);f&&!v.pbjreload&&(H=H.navigationErrorReason||"10",_.J("kevlar_parent_on_pbjreload")&&(v={csn:_.uy()},this.get("data.endpoint.clickTrackingParams")&&(v.itct=this.data.endpoint.clickTrackingParams),_.vV(f,v)),_.iY(_.iZ(f,{pbjreload:H})))};
NH.prototype.onYtNavigateCache=function(f,H){var v=this,t=H.url,M=H.endpoint,h=H.data;f=!!H.miniplayer;H=!!H.skipHistory;if(t&&M&&h){var y=this.getPageOffset(),m=this.data||null;H||this.saveAndPush(t,M,m,y);t=_.O7h(_.t8().resolve(_.eD),M,h,f?4:3,{},f);f&&t.then(function(){v.dataUpdatePromise&&v.dataUpdatePromise.then(function(){var W=_.t8().resolve(_.fT);v.setPageOffset(W.getCurrentPage(),0)})})}};
NH.prototype.onYtNavigateFinish=function(f,H){var v=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){JzF(v,H.fromHistory)})};
var JzF=function(f,H){Z5F(f);if(f.pendingPlayerOnResponseReceivedActions){for(var v=_.V(f.pendingPlayerOnResponseReceivedActions),t=v.next();!t.done;t=v.next())_.sV(t.value,f.hostElement);f.pendingPlayerOnResponseReceivedActions=[]}v=_.t8().resolve(_.fT);H||!f.hasNavigated||_.J("web_disable_scroll_on_navigate_finish")||((H=v.getCurrentPage())?H.is==="ytd-shorts"||f.tabGesturesIsActive||f.setPageOffsetForNavigation(H,0):_.pb(Error("jl")));_.bJ(function(){_.bJ(function(){_.u0("pda")})})};
NH.prototype.onYtNavigate=function(f){if(!f.detail.endpoint){var H=new _.e$("Error: Missing yt-navigate endpoint from target:",f.target,f.target.nodeName);_.oO(H)}if(H=_.J("cold_missing_history"))H=cz(),H.init(!1),H=!(H.browserHistory.boundHistoryReplaceState&&H.browserHistory.boundHistoryPushState);if(H){_.pc("DISABLE_WARM_LOADS",!0);H=new _.e$("Failed to initialize history manager",this.getDebugString());var v=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
v?_.pb(H):_.oO(H)}H=f.detail.endpoint;var t,M;_.J("debug_forward_web_query_parameters")&&((t=H.commandMetadata)==null?0:(M=t.webCommandMetadata)==null?0:M.url)&&(H=JSON.parse(JSON.stringify(H)),H.commandMetadata.webCommandMetadata.url=_.Njg(H.commandMetadata.webCommandMetadata.url,window.location.search));f={type:0,command:H,form:{params:f.detail.params,tempData:f.detail.tempData||{},requestType:f.detail.type,createScreenConfig:f.detail.createScreenConfig,reload:f.detail.reload?f.detail.reload:!1,
requestForm:f.detail}};_.J("kevlar_yt_navigate_command_handler")?(t=_.t8().resolve(_.MJ),f.form.skipDefaultElement=!0,t.resolveCommand(H,{form:f.form})):this.handleNavigate(f)};
NH.prototype.handleNavigate=function(f){this.hasSetScrollTopForNavigation=!1;var H=_.t8().resolve(_.eD),v=f.form||{};H.navigate(f.command,v.reload,v.params,v.tempData,v.requestType,v.createScreenConfig,v.ignoreConfirmation,v.requestForm)&&jYr(this,f.command,v.tempData)};
NH.prototype.onYtPageDataFetched=function(f,H){try{_.MJT().reset();this.data=H.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.t8().resolve(_.fT).updatePageData(this.data);if(!_.J("web_service_params_response_processor")){var v=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);v&&kix(v);var t=this.get("response.responseContext.serviceTrackingParams",
this.data);t&&kix(t)}var M=this.get("playerResponse.onResponseReceivedActions",this.data);M&&(M=ljb(this,M));M&&_.Oj(this.hostElement,M,this.hostElement);var h=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),y=this.get("response.responseContext.consistencyTokenJar",this.data);if(h||y){var m=_.D2R(),W=(0,_.QA.getValues)(m.tokenJars);h&&m.replace(W,h);y&&m.replace(W,y)}}catch(I){_.oO(I)}};
var jYr=function(f,H,v){try{f.onYtEndpointChangeHandler(H,v)}catch(t){_.oO(t)}};
_.R=NH.prototype;_.R.onYtEndpointChangeHandler=function(){};
_.R.setPageTitle=function(f){f=(this.pageTitle=f)?f+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+f};
_.R.onYtUpdateTitle=function(f,H){this.setPageTitle(H)};
_.R.setUnseenNotificationCount=function(f){this.unseenNotificationCount=f;this.setPageTitle(this.pageTitle)};
_.R.handleUpdateNotificationsUnseenCountAction=function(f){_.U(f,EiA)&&((f=_.U(f,EiA).unseenCount)?this.setUnseenNotificationCount(f):this.setUnseenNotificationCount(0))};
_.R.handleClearCookieAction=function(f){var H;(f=(H=_.U(f,a5i))==null?void 0:H.cookieName)&&_.YFE(f)};
_.R.onYtUpdateUnseenNotificationCount=function(f,H){this.setUnseenNotificationCount(H)};
_.R.loadData=function(f){var H=this;this.loadDepsPromise.then(function(){var v=_.t8().resolve(_.vh(_.eD));v||_.oO(Error("kl"));if(f&&f.response){if(!f.endpoint){var t=_.Ag(window.document.location.href)||"/",M="";if(t==="/"||t.startsWith("/?"))M="WEB_PAGE_TYPE_BROWSE";f.endpoint={commandMetadata:{webCommandMetadata:{url:t,webPageType:M,rootVe:3854}}}}_.O7h(v,f.endpoint,f,5,{})}else f.endpoint?v.navigate(f.endpoint):v.navigate(_.j0);_.nN.cancelJob(H.zwiebackInitJobId);H.zwiebackInitJobId=_.nN.addLowPriorityJob(AJW)})};
var cz=function(){return _.t8().resolve(_.SU)};
NH.prototype.getDebugString=function(){return cz().getDebugString()};
NH.prototype.getThirdPartyManipulationSuspected=function(){return cz().getThirdPartyManipulationSuspected()};
NH.prototype.replaceState=function(f,H,v){cz().saveAndReplace(f,H,v)};
NH.prototype.saveAndPush=function(f,H,v,t){cz().saveAndPush(f,H,v,t)};
var dvx=function(f){return _.U(f.endpoint,_.wI)||_.U(f.endpoint,_.zD)?!0:!f||isNaN(f.expirationTime)?!1:(0,_.ta)()>f.expirationTime},sYp=function(f,H,v){var t=f.get("response.trackingParams",v),M=_.Qe(),h=_.uy();
if(t&&M&&h&&(t=f.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",v),!t&&v.rootVe&&(t=v.rootVe),M=H?"forwardButton":"backButton",H=f.get("playerResponse.topbar.desktopTopbarRenderer."+M+".buttonRenderer.command.clickTrackingParams",f.data),f=f.get("response.topbar.desktopTopbarRenderer."+M+".buttonRenderer.command.clickTrackingParams",f.data),H=(f=H||f)?_.zK(f):void 0,f=_.UV(),M=[_.gj(v)],_.y8(f,t,H,{dataPromises:M,csnToClone:v.csn}),v.graftedVes))for(v=
_.V(v.graftedVes),t=v.next();!t.done;t=v.next())_.YP(f,t.value)};
NH.prototype.onStoreGraftedVeAction=function(f){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(f)):_.pb(Error("ll"))};
var ljb=function(f,H){return H.filter(function(v){for(var t in v)if(gDt[t])return f.pendingPlayerOnResponseReceivedActions.push(v),!0;return!1})};
_.H7.Object.defineProperties(NH.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
NH.prototype.onStoreGraftedVeAction=NH.prototype.onStoreGraftedVeAction;NH.prototype.loadData=NH.prototype.loadData;NH.prototype.onYtUpdateUnseenNotificationCount=NH.prototype.onYtUpdateUnseenNotificationCount;NH.prototype.handleClearCookieAction=NH.prototype.handleClearCookieAction;NH.prototype.handleUpdateNotificationsUnseenCountAction=NH.prototype.handleUpdateNotificationsUnseenCountAction;NH.prototype.setUnseenNotificationCount=NH.prototype.setUnseenNotificationCount;
NH.prototype.onYtUpdateTitle=NH.prototype.onYtUpdateTitle;NH.prototype.setPageTitle=NH.prototype.setPageTitle;NH.prototype.onYtEndpointChangeHandler=NH.prototype.onYtEndpointChangeHandler;NH.prototype.onYtPageDataFetched=NH.prototype.onYtPageDataFetched;NH.prototype.handleNavigate=NH.prototype.handleNavigate;NH.prototype.onYtNavigate=NH.prototype.onYtNavigate;NH.prototype.onYtNavigateFinish=NH.prototype.onYtNavigateFinish;NH.prototype.onYtNavigateCache=NH.prototype.onYtNavigateCache;
NH.prototype.onYtNavigateError=NH.prototype.onYtNavigateError;NH.prototype.onYtNavigateStart=NH.prototype.onYtNavigateStart;NH.prototype.cancelPendingTasks=NH.prototype.cancelPendingTasks;NH.prototype.initHistoryManager=NH.prototype.initHistoryManager;NH.prototype.onYtHistoryLoad=NH.prototype.onYtHistoryLoad;NH.prototype.onYtHistoryPop=NH.prototype.onYtHistoryPop;NH.prototype.onYtNavigateSetPageOffset=NH.prototype.onYtNavigateSetPageOffset;NH.prototype.setPageOffset=NH.prototype.setPageOffset;
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],NH.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],NH.prototype,"data",void 0);_.E([_.sE("yt-navigate-set-page-offset"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],NH.prototype,"onYtNavigateSetPageOffset",null);
_.E([_.sE("yt-history-pop"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],NH.prototype,"onYtHistoryPop",null);_.E([_.sE("yt-history-load"),_.N("design:type",Function),_.N("design:paramtypes",[Event,_.oer]),_.N("design:returntype")],NH.prototype,"onYtHistoryLoad",null);_.E([_.sE("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],NH.prototype,"onYtNavigate",null);
_.E([_.sE("yt-update-title"),_.N("design:type",Function),_.N("design:paramtypes",[Event,String]),_.N("design:returntype")],NH.prototype,"onYtUpdateTitle",null);_.E([_.sE("yt-update-unseen-notification-count"),_.N("design:type",Function),_.N("design:paramtypes",[Event,Number]),_.N("design:returntype")],NH.prototype,"onYtUpdateUnseenNotificationCount",null);_.E([_.L2()],NH);Wax.YtdAppBehavior=[_.dt.YtActionHandlerBehavior,NH.prototype];var Xh=function(){var f=_.er.apply(this,arguments)||this;f._noAccessors=!0;return f};
_.e(Xh,_.er);Xh.prototype.ready=function(){var f=this;_.mF(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){f.onChange_()})};
Xh.prototype.dataChanged_=function(){_.mF(this.hostElement).querySelector("#checkbox").checked=!1};
Xh.prototype.onChange_=function(){var f=_.mF(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.YE(this.hostElement,"yt-dismissal-reason-"+f,this.data.feedbackToken)};
Xh.prototype.dataChanged_=Xh.prototype.dataChanged_;_.E([_.F(),_.N("design:type",Object)],Xh.prototype,"data",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xh.prototype,"dataChanged_",null);_.E([_.L2()],Xh);var Uv5=[Xh.prototype];var AC=function(){var f=_.er.apply(this,arguments)||this;f.timeoutJobId=0;f.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return f};
_.e(AC,_.er);AC.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
AC.prototype.startTimeout=function(){var f=this,H=this.data&&this.data.displayDurationSeconds;H&&!this.timeoutJobId&&(this.timeoutJobId=_.Lb(_.nN,function(){_.mb(f.hostElement,"yt-close-popup-action",[f.is]);f.timeoutJobId=0},H*1E3))};
AC.prototype.cancelTimeout=function(){_.nN.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
AC.prototype.ytdHatsSurveyBehaviorDataChanged=AC.prototype.ytdHatsSurveyBehaviorDataChanged;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],AC.prototype,"ytActionHandlerBehavior",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],AC.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.E([_.L2()],AC);var eOi=[_.dt.YtActionHandlerBehavior,AC.prototype];var Lat=function(f,H){var v;return((v=f.prefixMapping)==null?0:v[H])?f.prefixMapping[H]:f.SHARED_RENDERERS_.hasOwnProperty(H)?"yt":f.prefix},b1={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}};b1.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.J("kevlar_mealbar_above_player"),modern:_.J("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"}};
b1.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};b1.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};b1.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
b1.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)"}};
b1.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};
b1.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};
b1.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};
b1.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};b1.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"}};
b1.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};b1.TOAST={component:null,properties:{}};var xvp=new function(f,H,v){this.supportedPopups=f;this.navigationEndpointPopupMap=H;this.popupTypeMap=v;this.supportedPopups=f;this.navigationEndpointPopupMap=H;this.popupTypeMap=v}({aboutThisAdRenderer:!0,
adFeedbackRenderer:!0,adInfoDialogRenderer:!0,addToPlaylistRenderer:!0,backstagePostDialogPopupRenderer:!0,bubbleHintRenderer:!0,channelCreationDialogRenderer:!0,channelWarmWelcomeRenderer:!0,channelWarmWelcomeContRenderer:!0,checkboxSurveyRenderer:!0,confirmDialogRenderer:!0,dismissalFollowUpRenderer:!0,enforcementMessageViewModel:!0,fancyDismissibleDialogRenderer:!0,formPopupRenderer:!0,gamingAccountLinkConfirmDialogRenderer:!0,gamingAccountLinkSettingRenderer:!0,hotkeyDialogRenderer:!0,sponsorshipConfirmCancelRenderer:!0,
modalWithTitleAndButtonRenderer:!0,notificationActionRenderer:!0,reportFormModalRenderer:!0,searchSuggestionReportDialog:!0,sharingRenderer:!0,sharingEmbedRenderer:!0,menuPopupRenderer:!0,singleOptionSurveyRenderer:!0,surveyFollowUpRenderer:!0,unifiedSharePanelRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,ypcUpgradeDialogRenderer:!0,ypcOffersOverlayRenderer:!0,redCancelSurveyRenderer:!0,conversationSectionController:!0,
conversationHighPriorityNotificationContentRenderer:!0},{adFeedbackEndpoint:"adFeedbackEndpoint.content",adInfoDialogEndpoint:"adInfoDialogEndpoint.dialog",createBackstagePostDialogEndpoint:"createBackstagePostDialogEndpoint.dialog",confirmDialogEndpoint:"confirmDialogEndpoint.content",managePurchaseEndpoint:"managePurchaseEndpoint.content",modalEndpoint:"modalEndpoint.modal",shareEndpoint:"shareEndpoint",shareEntityEndpoint:"shareEntityEndpoint",unlimitedFamilyFlowEndpoint:"unlimitedFamilyFlowEndpoint.unlimitedFamilyFlowEndpointSupportedRenderers",
openPopupAction:"openPopupAction.popup",ypcCancelSurveyEndpoint:"ypcCancelSurveyEndpoint.surveySupportedRenderers"},{aboutThisAdRenderer:"DIALOG",adFeedbackRenderer:"DIALOG",adInfoDialogRenderer:"RESPONSIVE_DROPDOWN",addToPlaylistRenderer:_.J("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"}),Bqi=new function(){this.prefix="ytd";this.prefixMapping=void 0;this.SHARED_RENDERERS_=
{aboutThisAdRenderer:!0,bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,
ypcUpgradeDialogRenderer:!0,loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$19865_popupConfig=b1;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 zOx=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.nm.getInstance()},i1=function(f,H){var v=f.pageNameToElement.get(H);
if(!v){switch(H){case "watch":var t=_.J("web_watch_force_learning_journey_for_testing")?_.vp("ytd-watch-learning-journey"):_.J("kevlar_watch_fixie")?_.vp("ytd-watch-fixie"):_.J("kevlar_watch_grid")?_.vp("ytd-watch-grid"):_.vp("ytd-watch-flexy");break;case "learning_journey_watch":t=_.vp("ytd-watch-learning-journey");break;case "shorts":t=_.vp("ytd-shorts");break;case "search":t=_.vp("ytd-search");break;case "channel":t=_.vp("ytd-browse");t.pageSubtype="channels";break;case "trending":t=_.vp("ytd-browse");
t.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":t=
_.vp("ytd-browse");t.pageSubtype=H;break;case "browse":t=_.vp("ytd-browse");break;default:_.pb(new _.e$("Error getting page element for type",H))}v=t;f.pageNameToElement.set(H,v)}return v};
zOx.prototype.preparePage=function(f,H,v){v&&(f=_.U6(v)||f);if(f!=="watch"&&f!=="learning_journey_watch"){var t=this.elementPoolPopulator,M=f;M!=t.targetPage_&&t.pendingPages_.indexOf(M)>-1&&(t.targetPage_&&(t.pendingPages_.unshift(t.targetPage_),t.abort()),JYh(t,M),_.FiM(t,M))}if((t=i1(this,f))||!_.U(v,_.X7)){t.isAttached||t===H||(t.hidden=!0);if(!t.data&&(f!=="watch"&&f!=="learning_journey_watch"||!_.J("swatcheroo_page_pool_dont_provide_filler_data"))){var h;if(f=(h=_.a8("FILLER_DATA",{})[f])==
null?void 0:h.response)t.data=f}return t}};var Faw=function(f){this.JSC$32010_clientRoot=f;this.playlistHandlerActionMap={"yt-add-to-playlist-command":v6W,"yt-end-playlist-command":tWx,"yt-recover-playlist-command":hUx,"yt-refresh-playlist-command":yV0,"yt-playlist-remove-videos-action":RUW};_.b$(_.A7.getInstance(),this.playlistHandlerActionMap,this.JSC$32010_clientRoot);K2p()},rzx;var kt=function(f,H,v){this.apiKey=f;this.endpoint=H;this.confidenceThreshold=v===void 0?.5:v;this.stream=null;this.state=0;this.manuallyClosedChannel=this.channelOpen=!1;this.prefetchResponseSetTimeoutId=-1;this.languageCode="en-us";this.youtubeAssistantRequest=null;this.listeningHandler=function(){};
this.audioDetectedHandler=function(){};
this.completeHandler=function(){};
this.errorHandler=function(){};
this.stopHandler=function(){};
this.transcriptionUpdateHandler=function(){};
this.transcriptionCompleteHandler=function(){};
this.vaaConsentUpdateHandler=function(){};
this.vozEndOfDataTimeout=this.noResponseReceivedTimeout=-1;this.transcribedSpeechResults=[];this.receivedEndOfUtterance=!1;this.startCustomCsiTimeline=!0;this.supportsCrossDomainXhr=!1;this.supportsHttpHeadersOverwriteParam=!0;this.prefetchResponseTimeoutMs=-1;this.isUsingVoz=H==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||H==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
H==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||H==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new naG};
_.R=kt.prototype;
_.R.start=function(f){if(this.state===0)if(this.isOnline()){f.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=f.supportsHttpHeadersOverwriteParam);f.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=f.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.QZ("voice_assistant");_.ar("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=f.languageCode||"en-US";this.supportsCrossDomainXhr=f.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=f.youtubeAssistantRequest||null;this.listeningHandler=f.listeningHandler||this.listeningHandler;this.audioDetectedHandler=f.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=f.stopHandler||this.stopHandler;this.completeHandler=f.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=f.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=f.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
f.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=f.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=f.accessToken;this.additionalHeaders=f.additionalHeaders||{};var H;this.prefetchResponseTimeoutMs=(H=f.prefetchResponseTimeoutMs)!=null?H:this.prefetchResponseTimeoutMs;Ka5(this);this.startAudio();DvW(this)}else this.errorHandler("OFFLINE")};
_.R.stop=function(f){var H=f===void 0?{}:f;f=H.logCancel===void 0?!0:H.logCancel;var v=H.logMicClosed===void 0?!0:H.logMicClosed;var t=H.handleError===void 0?!0:H.handleError;H=H.handleStop===void 0?!0:H.handleStop;this.state!==0&&(f&&Tn("voz_cx"),wN(this,{logMicClosed:v,handleStop:H}),t&&this.errorHandler("ABORTED"))};
_.R.getState=function(){return this.state};
_.R.isSupported=function(){return!0};
_.R.stopAudio=function(f){(f===void 0||f)&&Tn("voz_mf")};
_.R.startAudio=function(){Tn("voz_vp");return _.gj(null)};
var oDh=function(f,H){f.channelOpen&&(f.state!==2&&(f.state=2,Tn("voz_ss"),f.listeningHandler()),H=new Uint8Array(H),H='{ "audioIn": "'+_.QG(H)+'" }',f.channel.send(H))},wN=function(f,H){var v=H===void 0?{}:H;
H=v.logMicClosed===void 0?!0:v.logMicClosed;v=v.handleStop===void 0?!0:v.handleStop;f.vozEndOfDataTimeout>-1&&(clearTimeout(f.vozEndOfDataTimeout),f.vozEndOfDataTimeout=-1);nDG(f);f.stopAudio(H);f.channel&&(f.channelOpen=!1,f.manuallyClosedChannel=!0,f.channel.close(),f.channel=void 0);f.transcribedSpeechResults=[];f.state=0;v&&f.stopHandler()},Ka5=function(f){var H={httpHeadersOverwriteParam:f.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},f.additionalHeaders,f.accessToken&&f.isUsingVoz?{Authorization:"Bearer "+f.accessToken}:{"x-goog-api-key":f.apiKey}),supportsCrossDomainXhr:f.supportsCrossDomainXhr};f.channel=new Tp(f.endpoint,H);f.channel.open();_.r9(f.channel,"w",function(){var v=f.channel,t=v.send,M=f.isUsingVoz?"PLACEHOLDER":"example";M={config:{dialogStateIn:{languageCode:f.languageCode},deviceConfig:{deviceId:M,deviceModelId:M},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!f.isUsingVoz)M.config.requestType=4;else if(f.isUsingVoz&&f.youtubeAssistantRequest){var h=JSON.stringify(f.youtubeAssistantRequest);M.config.internalIn={youtubeAssistantS3InputJson:h}}t.call(v,M);f.channelOpen=!0;f.manuallyClosedChannel=!1});
_.r9(f.channel,"x",function(){f.manuallyClosedChannel||(f.channelOpen=!1,f.channel=void 0,wN(f))});
_.r9(f.channel,"z",function(v){if(v.data){nDG(f);for(var t=0;t<v.data.length;t++){var M=f,h=v.data[t],y=h.speechResults;if(y)a:{var m=[];h=[];var W=!1;y=_.V(y);for(var I=y.next();!I.done;I=y.next()){I=I.value;if(I.noSpeech){wN(M);M.errorHandler("NO_SPEECH");break a}I.transcript!==void 0&&I.stability!==void 0&&(I.stability<M.confidenceThreshold&&(W=!0),W?h.push(I.transcript):m.push(I.transcript))}if(m.length!==0||h.length!==0)m=m.join(" "),h=h.join(" "),M.receivedEndOfUtterance&&!M.isUsingVoz?M.isUsingVoz||
M.completeHandler([m,h]):(W=M,y=m,I=h,Tn("voz_sf"),W.transcriptionUpdateHandler(y,I),W.transcribedSpeechResults=[y,I]),M.receivedEndOfUtterance&&(Tn("voz_eou"),M.transcriptionCompleteHandler([m,h]),M.isUsingVoz&&(M.prefetchResponseTimeoutMs===0?wN(M,{logMicClosed:!1,handleStop:!0}):M.prefetchResponseTimeoutMs>0&&piA(M)))}else M.isUsingVoz&&(h==null?0:h.internalOut)?(h=JSON.parse(h.internalOut.youtubeAssistantS3OutputJson),h.userHasOptedInToVaa||h.vaaConsent?M.vaaConsentUpdateHandler(!!h.userHasOptedInToVaa,
!!h.vaaConsent):(QYw(M),h&&(m=M.transcribedSpeechResults,Tn("voz_rqf"),M.completeHandler(m,h)))):h.eventType==="END_OF_UTTERANCE"?M.receivedEndOfUtterance=!0:(Tn("voz_err"),M.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.pb(Error("ml")))}}});
_.r9(f.channel,"y",function(v){wN(f);switch(v.status){case 1:v="WEBCHANNEL_NETWORK_ERROR";break;case 2:v="WEBCHANNEL_SERVER_ERROR";break;default:v="WEBCHANNEL_UNKNOWN_ERROR"}f.errorHandler(v);f.logError(Error(v))})};
kt.prototype.logError=function(f){_.oO(f)};
kt.prototype.isOnline=function(){return!0};
var piA=function(f){QYw(f);f.prefetchResponseSetTimeoutId=setTimeout(function(){wN(f,{logMicClosed:!1,handleStop:!0})},f.prefetchResponseTimeoutMs)},QYw=function(f){f.prefetchResponseSetTimeoutId>-1&&(clearTimeout(f.prefetchResponseSetTimeoutId),f.prefetchResponseSetTimeoutId=-1)},DvW=function(f){nDG(f);
f.noResponseReceivedTimeout=window.setTimeout(function(){wN(f);f.errorHandler("NO_SPEECH")},11E3)},nDG=function(f){f.noResponseReceivedTimeout>-1&&(window.clearTimeout(f.noResponseReceivedTimeout),f.noResponseReceivedTimeout=-1)},Tn=function(f){_.u0(f,void 0,"voice_assistant")};var qH=function(){kt.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.e(qH,kt);qH.prototype.isSupported=function(){return YVW()};
qH.prototype.startAudio=function(){var f=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.DI(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(t){unp(f,t)};
this.processor.connect(this.audioContext.destination);var H=function(t){f.stream=t;if(!f.audioContext)return _.gj(null);t=f.audioContext.createMediaStreamSource(t);f.processor&&t.connect(f.processor);return _.gj(null)},v={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?H(this.stream):(v=navigator.mediaDevices.getUserMedia(v))?v.then(H).catch(function(t){wN(f);t.name&&t.name==="NotAllowedError"?f.errorHandler("NO_MICROPHONE_PERMISSION"):(f.errorHandler("AUDIO_ERROR"),f.logError(t));return _.DI(null)}):(wN(this),this.errorHandler("AUDIO_ERROR"),_.pb(Error("nl")));
return kt.prototype.startAudio.call(this)};
qH.prototype.stopAudio=function(f){f=f===void 0?!0:f;this.audioContext&&(this.audioContext.state==="running"&&this.processor&&(this.processor.onaudioprocess=function(){}),this.audioContext.close(),this.audioContext=null,this.stream&&(this.stream.getAudioTracks().forEach(function(H){H.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;kt.prototype.stopAudio.call(this,f)};
qH.prototype.isOnline=function(){return navigator.onLine};
var unp=function(f,H){if(f.audioContext)if(window.OfflineAudioContext){var v=f.audioContext.sampleRate,t=H.inputBuffer.getChannelData(0);H=new window.OfflineAudioContext(1,t.length,16E3);for(var M=H.createBuffer(1,t.length,v),h=M.getChannelData(0),y=0,m=0;m<t.length;m++)h[m]=t[m],y+=h[m]*h[m];!f.audioDetected&&Math.sqrt(y/t.length)>.01&&(f.audioDetected=!0,f.audioDetectedHandler());t=H.createBufferSource();t.buffer=M;t.connect(H.destination);t.start(0);H.oncomplete=function(W){W=W.renderedBuffer.getChannelData(0);
for(var I=Math.floor(16384E3/v),S=new Int16Array(I),d=0;d<I;++d)S[d]=Math.max(-1,Math.min(1,W[d]))*32767;oDh(f,S.buffer)};
H.startRendering()}else ajw(f,H)},ajw=function(f,H){var v=f.audioContext.sampleRate,t=H.inputBuffer.getChannelData(0),M=Math.floor((v+8E3)/16E3);
v=t.length/M;H=new Float32Array(v);for(var h=0;h<v;++h)H[h]=t[h*M];t=new Int16Array(v);for(M=0;M<v;++M)t[M]=Math.max(-1,Math.min(1,H[M]))*32767;oDh(f,t.buffer)};var Pvw={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var G65=function(){this.JSC$19930_audioEnabled=!0;this.audioFeedbackHolder={}};
G65.prototype.isPlaying=function(f){return f.currentTime>0&&!f.paused&&!f.ended&&f.readyState>2};
var Cvt=function(f){for(var H=_.V(Object.values(Pvw)),v=H.next();!v.done;v=H.next())v=v.value,f.audioFeedbackHolder[v]=new Audio,f.audioFeedbackHolder[v].src="/s/search/audio/"+v+".mp3",f.audioFeedbackHolder[v].load()},fC=function(f,H){if(f.JSC$19930_audioEnabled!==!1&&H in f.audioFeedbackHolder){for(var v=_.V(Object.values(f.audioFeedbackHolder)),t=v.next();!t.done;t=v.next())t=t.value,f.isPlaying(t)&&t.pause();
f.audioFeedbackHolder[H].currentTime=0;f.audioFeedbackHolder[H].play().catch(function(){})}};var EDG=function(f,H){var v=this;this.store=f;this.service=H;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){v.setState("offline");v.stop()};
this.audioPlayer=new G65;var t;(t=this.audioPlayer)==null||Cvt(t)};
_.R=EDG.prototype;_.R.getService=function(){return this.service};
_.R.isEnabled=function(){return!!this.service};
_.R.isSupported=function(){var f;return(f=this.service)==null?void 0:f.isSupported()};
_.R.start=function(){var f=this,H,v,t,M,h,y,m,W,I,S,d,Z,l;return _.Y(function(L){switch(L.nextAddress){case 1:f.store.dispatch(AQW("",""));if(!navigator.onLine)return f.setState("offline"),L.return();window.addEventListener("offline",f.handleOfflineEvent);f.stream=null;if(!f.permissionsSupported){L.jumpTo(2);break}_.Zc(L,3);return L.yield(NqF(f),5);case 5:H=L.yieldResult;if(!H)return(v=f.audioPlayer)==null||fC(v,"failure"),L.return();f.service.stream=f.stream;f.setState("listening");_.ch(L,2);break;
case 3:_.xu(L),f.permissionsSupported=!1;case 2:t={context:_.In3(_.RP())},t.youtubeAssistantParams={searchParams:{inlineSearchResponse:f.enableInlineSearchResponse}},M=function(r,n){f.store.dispatch(bAF("transcribing"));f.store.dispatch(AQW(r,n))},h=function(){var r;
(r=f.audioPlayer)==null||fC(r,"open");f.setState("listening")},y=function(){f.setState("transcribing")},m=function(r){f.setErrorState(r)},W=function(r,n){var Q;
(Q=f.audioPlayer)==null||fC(Q,"success");n&&(_.J("kevlar_voice_search_inline_search")&&(f.responseProcessor=_.t8().resolve(_.faN),f.responseProcessor&&(Q=n.navigationAction,r=n.prefetchedSearchResponse,Q&&r&&(Q=(new _.mTF).JSC$13097_getStoreKey(Q),_.uL(f.responseProcessor,r,Q)))),f.JSC$19948_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",n))},I=function(){window.removeEventListener("offline",f.handleOfflineEvent)},S=_.e9g(!1),d=S.Authorization!=null,Z=f.enableFirstPartyAuth||
f.enableFPAForSignedInUsers&&d?S:{"X-Goog-Visitor-Id":S["X-Goog-Visitor-Id"]},l={completeHandler:W,
errorHandler:m,listeningHandler:h,audioDetectedHandler:y,stopHandler:I,transcriptionUpdateHandler:M,youtubeAssistantRequest:t,languageCode:czt(),additionalHeaders:Z,supportsCrossDomainXhr:f.enableFirstPartyAuth||f.enableFPAForSignedInUsers&&d,supportsHttpHeadersOverwriteParam:!f.disableHttpHeadersOverwrite},f.service.start(l),_.Bj(L)}})};
_.R.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.R.reset=function(){this.store.dispatch(_.yq({type:"RESET_VOICE_SEARCH_STATE"}))};
_.R.setState=function(f){this.store.dispatch(bAF(f))};
_.R.setErrorState=function(f){switch(f){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var H;(H=this.audioPlayer)==null||fC(H,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)NqF(this);else{var v;(v=this.audioPlayer)==null||fC(v,"failure");this.setState("permission-denied")}break;case "ABORTED":var t;(t=this.audioPlayer)==null||fC(t,"no_input");break;default:var M;(M=this.audioPlayer)==
null||fC(M,"no_input");this.setState("timeout")}};
var NqF=function(f){var H,v;return _.Y(function(t){switch(t.nextAddress){case 1:return t.yield(navigator.permissions.query({name:"microphone"}),2);case 2:H=t.yieldResult;if(H.state==="granted")return t.return(!0);if(H.state==="denied")return f.setState("permission-denied"),t.return(!1);f.setState("permission");v={audio:{sampleSize:16,channelCount:1},video:!1};_.Zc(t,3);return t.yield(navigator.mediaDevices.getUserMedia(v),5);case 5:return f.stream=t.yieldResult,t.return(!0);case 3:return _.xu(t),
f.setState("permission-denied"),t.return(!1)}})},czt=function(){var f=_.a8("INNERTUBE_CONTEXT_HL"),H=_.a8("INNERTUBE_CONTEXT_GL");
return f.indexOf("-")>-1?f:f+"-"+H};var XiW=function(f,H,v){EDG.call(this,H,v);this.JSC$19948_actionRouter=f;this.enableInlineSearchResponse=_.J("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.J("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.J("kevlar_voice_search_enable_fpa_signedin_users")},AzW;
_.e(XiW,EDG);
var b50=function(){if(!AzW){var f="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.J("kevlar_voice_search_auth_enabled")||_.J("kevlar_voice_search_use_yt_endpoint")?f="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.J("kevlar_voice_search_use_fp_endpoint")&&(f="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");AzW=
new XiW(_.A7.getInstance(),_.vS(),new qH(_.a8("VOZ_API_KEY"),f,.5))}return AzW};var i5b=function(f){this.JSC$19952_clientRoot=f;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$19952_clientRoot,new Map([["iron-overlay-opened",this.onIronOverlayOpened.bind(this)],["iron-overlay-closed",this.onIronOverlayClosed.bind(this)],["yt-autonav-pause-focus",this.onYtAutonavPauseFocus.bind(this)],["yt-autonav-pause-blur",this.onYtAutonavPauseBlur.bind(this)],["yt-autonav-pause-guide-opened",
this.onYtAutonavPauseGuideOpened.bind(this)],["yt-autonav-pause-guide-closed",this.onYtAutonavPauseGuideClosed.bind(this)],["yt-autonav-pause-scroll",this.onYtAutonavPauseScroll.bind(this)],["yt-autonav-pause-player",this.onYtAutonavPausePlayer.bind(this)],["yt-autonav-pause-player-ended",this.onYtAutonavPausePlayerEnded.bind(this)]]));f=_.V(this.eventListeners);for(var H=f.next();!H.done;H=f.next()){var v=_.V(H.value);H=v.next().value;v=v.next().value;v=_.V(v);for(var t=v.next();!t.done;t=v.next()){var M=
_.V(t.value);t=M.next().value;M=M.next().value;H.addEventListener(t,M)}}_.b$(_.A7.getInstance(),this.autonavPauseActionMap,this.JSC$19952_clientRoot)},k6x,TqA=function(f){return _.J("kevlar_autonav_popup_filtering")?(f=_.HB(f))?f.hasAttribute("prevent-autonav"):!0:!0};
_.R=i5b.prototype;_.R.onIronOverlayOpened=function(f){TqA(f)&&(this.autonavPauseReasons.overlayOpen=!0,HF(this))};
_.R.onIronOverlayClosed=function(f){TqA(f)&&(this.autonavPauseReasons.overlayOpen=!1,HF(this))};
_.R.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;HF(this)};
_.R.onYtAutonavPauseBlur=function(){var f=this;_.nN.addJob(function(){f.isInBackground()||(f.autonavPauseReasons.inputBoxFocus=!1,HF(f))},8,0)};
_.R.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;HF(this)};
_.R.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;HF(this)};
_.R.onYtAutonavPauseScroll=function(){var f=_.t8().resolve(_.fT);f.isOnWatch()&&(f=f.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=f.getBoundingClientRect().top<-200,HF(this))};
_.R.onYtAutonavPauseUserEngagement=function(f){var H=this;if(_.J("user_engagement_enable_autoplay_pause_feature")){var v=Number(f.lowEngagementThresholdMs);isNaN(v)||v<=0||f.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.Vx("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.t8().resolve(_.xK),_.h7()<v?_.Lb(_.nN,function(){_.Vx("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.n7W()?(this.userEngagementCsn=_.uy(),_.Lb(_.nN,function(){_.Vx("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
H.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,HF(this)):_.Vx("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.B3H(Error("ol`"+JSON.stringify(f)))};
_.R.onYtAutonavPausePlayer=function(f){this.autonavPauseReasons.requestedByPlayer=!!f.detail;HF(this)};
_.R.onYtAutonavVisibilityChanged=function(){var f=this,H,v,t;return _.Y(function(M){if(M.nextAddress==1)return(H=_.vx())?M.yield(H.getPlayerPromise(),2):M.return();v=M.yieldResult;t=v.isMuted()||v.getVolume()===0;f.autonavPauseReasons.backgroundAndMute=f.isInBackground()&&t;HF(f);_.Bj(M)})};
_.R.onYtAutonavPausePlayerEnded=function(){_.t8().resolve(_.xK);var f=144E5;_.J("user_engagement_enable_autoplay_pause_feature")||_.J("is_part_of_any_user_engagement_experiment")||(f=45E5);this.autonavPauseReasons.longIdle=_.h7()>f;wi5(this);HF(this)};
_.R.onYtUserActivity=function(){var f=this;this.autonavPauseReasons.userEngagement&&(_.Lb(_.nN,function(){_.Vx("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",f.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,HF(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.Lb(_.nN,function(){_.Vx("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",f.userEngagementCsn);_.DK()}),this.autonavPauseReasons.youthereLactExperiment=!1,HF(this));
this.autonavPauseReasons.longIdle&&!_.J("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,HF(this))};
_.R.isInBackground=function(){var f=window.document.visibilityState;return!(!f||f==="visible")};
var HF=function(f){for(var H=!1,v=_.V(Object.values(f.autonavPauseReasons)),t=v.next();!t.done;t=v.next())t=t.value,H=H||t;H?_.wC.getInstance().pause(f.autonavPauseReasons):(f=_.wC.getInstance(),f.autonavState_==3?(f.setState(2,!1,!1),f.autonavPauseReason_=void 0):f.autonavState_==1&&(f.disabledAutonavPauseReason_=void 0))},wi5=function(f){var H=!1;
if(_.J("enable_autoplay_pause_by_lact")){_.t8().resolve(_.xK);H=_.VQ("autoplay_pause_by_lact_sec")*1E3;var v=_.VQ("autoplay_pause_by_lact_sampling_fraction");(H=_.h7()>=H&&Math.random()<v)&&!_.n7W()&&(_.Lb(_.nN,function(){_.Vx("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),H=!1)}H!==f.autonavPauseReasons.youthereLactExperiment&&(f.autonavPauseReasons.youthereLactExperiment=H)&&(f.userEngagementCsn=_.uy(),_.Lb(_.nN,function(){_.Vx("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",f.userEngagementCsn)}));
f.autonavPauseReasons.userEngagement&&_.Lb(_.nN,function(){_.Vx("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",f.userEngagementCsn)})};
i5b.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.Vx("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.DK(),this.autonavPauseReasons.youthereLactExperiment=!1,HF(this));this.autonavPauseReasons.userEngagement&&(_.Vx("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,HF(this))};
i5b.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var vF=function(){var f=_.K.apply(this,arguments)||this;f.miniGuideVisible=!1;f.guideOpened=_.J("disable_initial_guide_state_fix")?!1:f.canFitPersistentGuide(f.initialBodyClientWidth);f.guideUserStateOpened=f.getInitialGuideUserStateOpened();f.isFullscreenShorts=!1;f.miniGuideWidthThreshold=_.VQ("kevlar_mini_guide_width_threshold",791);f.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");f.persistentGuideBlockedPagesPatterns=
"^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");f.persistentGuideBlockedPagePathRegex=new RegExp(f.persistentGuideBlockedPagesPatterns.join("|"));f.animationTransitionDuration=0;f.lateDataResolver=_.bE();f.initialGuideDataFetchFailed=!1;f.initialLoad=!0;f.guideRenderers=new Set;f.isMouseOverGuide=!1;f.sessionUserManuallyExpandedGuideState=!1;f.actionMap={"yt-start-loading-watch":"startLoadingWatch",
"yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return f};
_.e(vF,_.K);_.R=vF.prototype;_.R.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.R.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.R.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.R.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.R.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.R.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.R.ready=function(){_.t8().addProvider({provide:_.Eh,useValue:this.hostElement})};
_.R.attached=function(){var f=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.jr(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.jr(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.jr(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.jr(this,this.onYtGuideShow));_.qV(this,function(){f.animationTransitionDuration=200})};
_.R.detached=function(){document.removeEventListener("yt-navigate-finish",_.jr(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.jr(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.jr(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.jr(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.jr(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.jr(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.jr(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.R.getData=function(){return this.data};
_.R.load=function(){var f=this,H,v,t,M;return _.Y(function(h){switch(h.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=f.lateDataResolver.resolve.bind(f),h.return(f.lateDataResolver.promise);if(window.ytInitialGuideData)return H=_.bE(),H.resolve(window.ytInitialGuideData),h.return(H.promise);t=!1;_.Zc(h,2);return h.yield(f.fetchGuideData(),4);case 4:v=h.yieldResult;_.ch(h,3);break;case 2:M=_.xu(h),M.message==="Returned error"&&(t=
!0);case 3:if(v)return h.return(v);f.onYtGuideClose();t||(f.initialGuideDataFetchFailed=!0);return h.return(f.lateDataResolver.promise)}})};
_.R.fetchGuideData=function(){var f=this,H,v,t,M,h,y,m;return _.Y(function(W){if(W.nextAddress==1)return H=_.t8(),f.guidePromise||(v=H.resolve(_.PS),f.guidePromise=_.AE(v,Ajw)),W.yield(f.guidePromise,2);if(W.nextAddress!=3)return t=W.yieldResult,M=H.resolve(_.v$),W.yield(M(),3);(h=W.yieldResult)&&((y=t)==null?void 0:(m=y.responseContext)==null?void 0:m.maxAgeSeconds)!==0&&h.put("service:guide:fallback",new _.W5({innertubeResponse:t}));return W.return(t)})};
_.R.initializeGuideDataIfEmpty=function(){var f=this,H,v;return _.Y(function(t){if(t.nextAddress==1){if(!f.initialGuideDataFetchFailed||f.data)return t.return();_.Zc(t,2);return t.yield(f.fetchGuideData(),4)}if(t.nextAddress!=2)return(H=t.yieldResult)&&f.lateDataResolver.resolve(H),_.ch(t,0);v=_.xu(t);_.pb(v);_.Bj(t)})};
_.R.initializeGuideData=function(){var f=this,H;return _.Y(function(v){switch(v.nextAddress){case 1:return _.MN(Fgh(),{mainAppWeb:_.kz()}),_.Zc(v,2),v.yield(f.load(),4);case 4:f.data=v.yieldResult;_.ch(v,3);break;case 2:_.xu(v),_.hQ(Fgh(),"FAILURE");case 3:H=f.data&&f.data.items&&f.data.items.length>0?"SUCCESS":"FAILURE",_.hQ(Fgh(),H),_.Bj(v)}})};
_.R.setGuideData=function(f){var H=this,v,t;return _.Y(function(M){if(M.nextAddress==1)return H.disabled?M.return():H.data?(f.data=H.data,H.guideRenderers.add(f),M.return()):M.yield(H.initializeGuideData(),2);H.graftGuideToPage();v=_.P6("IS_HOMEPAGE_COLD")?"eop":void 0;_.J("disable_element_pool_populator")?H.setGuideDataAfterInit(f):(t=new _.t$(1,v),_.M8(t,H.setGuideDataAfterInit.bind(H,f)));_.Bj(M)})};
_.R.setGuideDataAfterInit=function(f){f.data=this.data;f.markDirty();this.guideRenderers.add(f);_.bJ(function(){_.u0("gle")});
_.qV(this,function(){_.u0("gpe")})};
_.R.graftGuideToPage=function(){if(this.data){var f=this.data&&this.data.trackingParams;f&&(f=_.zK(f),_.mE(_.UV(),f))}};
_.R.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.jr(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.R.onDrawerOpenedChanged=function(f,H){!H.value&&this.guideOpened&&(this.guideOpened=!1)};
_.R.onYtGuideToggle=function(f){var H=this.guideOpened;this.guideOpened=!H;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var v=_.Uj();_.eG(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;v.save()}this.updateGuideDrawerElementState();if(this.guideElement){var t;this.guideOpened&&((t=f.detail)==null?0:t.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.jr(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.jr(this,this.onAppDrawerTransitioned))}H||this.initializeGuideDataIfEmpty()};
_.R.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.jr(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.Tj(this.guideElement)};
_.R.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.jr(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(cQb(this.guideOpened))};
_.R.guidePersistentAndVisibleChanged=function(){_.$E(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.R.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.yq({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.R.miniGuideVisibleChanged=function(){_.$E(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.R.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(cQb(this.guideOpened)),this.initialLoad=!1);_.$E(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.R.activeEndpointChanged=function(){_.$E(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.R.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.R.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()};
_.R.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var f=this.canFitPersistentGuide(this.cachedClientWidth);f?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=f}this.updateGuideDrawerElementState()};
_.R.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.R.getGuideOpened=function(){return this.guideOpened};
_.R.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.R.getActiveEndpoint=function(){return this.activeEndpoint};
_.R.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.R.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&&_.YE(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.R.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.J("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.R.handleGuideMouseLeave=function(){var f=this;!this.sessionUserManuallyExpandedGuideState&&_.J("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.iJ(this,"handleGuideMouseLeave",function(){f.isMouseOverGuide||!f.guideOpened||f.miniGuideVisible||(f.guideOpened=!1,f.updateGuideDrawerElementState())},100))};
_.R.computeGuidePersistentAndVisible=function(){var f=this;_.iJ(this,"computeGuidePersistentAndVisible",function(){f.guidePersistentAndVisible=f.guideOpened&&f.guidePersistent;f.guideIsVisibleButNotPersistent=!(!f.guideOpened||f.guidePersistent)})};
_.R.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.R.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.R.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.R.startLoadingWatch=function(){this.closeGuide()};
_.R.startLoadingShorts=function(){_.J("web_hide_guide_on_shorts")&&this.closeGuide()};
_.R.onYtNavigateFinish=function(f,H){if(!_.My||H){this.activeEndpoint=H.endpoint;this.pageType=H.pageType;this.pageUrl=H.response.url;var v,t;f=(t=_.U((v=H.endpoint)==null?void 0:v.commandMetadata,_.jG))==null?void 0:t.url;!this.pageUrl&&f&&(this.pageUrl=f);_.J("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.R.getVisibleGuideRenderer=function(){for(var f=_.V(this.guideRenderers),H=f.next();!H.done;H=f.next())if(H=H.value,this.miniGuideVisible&&H.is==="ytd-mini-guide-renderer"||this.guideOpened&&H.is==="ytd-guide-renderer")return H;return null};
_.R.markGuideRendererDirty=function(f){if(f){typeof f.markDirty==="function"&&f.markDirty();f=_.V([].concat(_.pS(_.mF(f).children)));for(var H=f.next();!H.done;H=f.next())this.markGuideRendererDirty(H.value)}};
_.R.persistentGuideEnabled=function(f,H){if(!H||f==="watch"||f==="settings"||f==="shorts"&&this.isFullscreenShorts||_.J("reels_web_disable_persistent_guide_shorts")&&f==="shorts")return!1;var v=_.gH(H)||"";return _.J("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(t){return v===t}):!this.persistentGuideBlockedPagePathRegex.test(v)};
_.R.canFitPersistentGuide=function(f){var H=_.VQ("kevlar_persistent_guide_width_threshold",1312);return H===-1||_.J("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:f>H};
_.R.canFitMiniGuide=function(f){return this.miniGuideWidthThreshold===-1?!1:f>this.miniGuideWidthThreshold};
_.R.onResize=function(){var f=this;_.iJ(this,"calculateGuideState",function(){f.onResizeDebounced()})};
_.R.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.R.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.R.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.R.getInitialGuideUserStateOpened=function(){return _.J("web_force_mini_guide_default")?!1:!_.Uj().getFlag(109)};
_.H7.Object.defineProperties(vF.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.a8("initialBodyClientWidth")||window.innerWidth}}});
vF.prototype.onResize=vF.prototype.onResize;vF.prototype.observeForMiniGuideVisible=vF.prototype.observeForMiniGuideVisible;vF.prototype.computeGuidePersistentAndVisible=vF.prototype.computeGuidePersistentAndVisible;vF.prototype.cachedClientWidthChanged=vF.prototype.cachedClientWidthChanged;vF.prototype.resetGuide=vF.prototype.resetGuide;vF.prototype.activeEndpointChanged=vF.prototype.activeEndpointChanged;vF.prototype.guideOpenedChanged=vF.prototype.guideOpenedChanged;
vF.prototype.miniGuideVisibleChanged=vF.prototype.miniGuideVisibleChanged;vF.prototype.guideIsVisibleButNotPersistentChanged=vF.prototype.guideIsVisibleButNotPersistentChanged;vF.prototype.guidePersistentAndVisibleChanged=vF.prototype.guidePersistentAndVisibleChanged;vF.prototype.onGuideElementChanged=vF.prototype.onGuideElementChanged;vF.prototype.onGuidePersistentChanged=vF.prototype.onGuidePersistentChanged;vF.prototype.onRenderGuideChanged=vF.prototype.onRenderGuideChanged;
vF.prototype.onActiveEndpointChanged=vF.prototype.onActiveEndpointChanged;vF.prototype.onMiniGuideVisibleChanged=vF.prototype.onMiniGuideVisibleChanged;vF.prototype.onGuideIsVisibleButNotPersistentChanged=vF.prototype.onGuideIsVisibleButNotPersistentChanged;vF.prototype.onGuidePersistendAndVisibleChanged=vF.prototype.onGuidePersistendAndVisibleChanged;_.E([_.B(_.x3),_.N("design:type",Object)],vF.prototype,"ironResizableBehavior",void 0);
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],vF.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],vF.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],vF.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],vF.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Boolean)],vF.prototype,"disabled",void 0);
_.E([_.F(),_.N("design:type",Boolean)],vF.prototype,"guidePersistentAndVisible",void 0);_.E([_.Zw("guidePersistentAndVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vF.prototype,"onGuidePersistendAndVisibleChanged",null);_.E([_.F(),_.N("design:type",Boolean)],vF.prototype,"guideIsVisibleButNotPersistent",void 0);
_.E([_.Zw("guideIsVisibleButNotPersistent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vF.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.E([_.F(),_.N("design:type",Object)],vF.prototype,"miniGuideVisible",void 0);_.E([_.Zw("miniGuideVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vF.prototype,"onMiniGuideVisibleChanged",null);_.E([_.F(),_.N("design:type",Boolean)],vF.prototype,"forceMiniGuideClose",void 0);
_.E([_.F(),_.N("design:type",Object)],vF.prototype,"activeEndpoint",void 0);_.E([_.Zw("activeEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vF.prototype,"onActiveEndpointChanged",null);_.E([_.F(),_.N("design:type",Boolean)],vF.prototype,"renderGuide",void 0);_.E([_.Zw("renderGuide"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vF.prototype,"onRenderGuideChanged",null);
_.E([_.F(),_.N("design:type",Object)],vF.prototype,"guideOpened",void 0);_.E([_.F(),_.N("design:type",Boolean)],vF.prototype,"guidePersistent",void 0);_.E([_.Zw("guidePersistent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vF.prototype,"onGuidePersistentChanged",null);_.E([_.F(),_.N("design:type",Object)],vF.prototype,"guideUserStateOpened",void 0);_.E([_.F(),_.N("design:type",String)],vF.prototype,"pageUrl",void 0);
_.E([_.F(),_.N("design:type",String)],vF.prototype,"pageType",void 0);_.E([_.F(),_.N("design:type",Number)],vF.prototype,"cachedClientWidth",void 0);_.E([_.F(),_.N("design:type",Object)],vF.prototype,"guideElement",void 0);_.E([_.F({selector:_.Mi}),_.N("design:type",Object)],vF.prototype,"isFullscreenShorts",void 0);_.E([_.Zw("guideElement"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vF.prototype,"onGuideElementChanged",null);
_.E([_.Zw("guidePersistentAndVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vF.prototype,"guidePersistentAndVisibleChanged",null);_.E([_.xV("guideIsVisibleButNotPersistent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vF.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.E([_.Zw("miniGuideVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vF.prototype,"miniGuideVisibleChanged",null);_.E([_.xV("guideOpened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vF.prototype,"guideOpenedChanged",null);_.E([_.Zw("activeEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vF.prototype,"activeEndpointChanged",null);
_.E([_.xV("pageUrl"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vF.prototype,"resetGuide",null);_.E([_.xV("cachedClientWidth"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vF.prototype,"cachedClientWidthChanged",null);_.E([_.Zw("guideOpened","guidePersistent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vF.prototype,"computeGuidePersistentAndVisible",null);
_.E([_.xV("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vF.prototype,"observeForMiniGuideVisible",null);_.E([_.sE("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vF.prototype,"onResize",null);_.E([_.u({disableElementRegistration:!0,is:"yt-guide-manager"})],vF);var qit=_.G(vF,"yt-guide-manager",void 0,{mode:_.WK("kevlar_poly_si_batch_j081")?1:2});var tw=function(){var f=_.K.apply(this,arguments)||this;f.JSC$19962_keyboardInUse=!1;f.boundHandleCapturedKeydownEvent=function(H){f.handleCapturedKeydownEvent(H)};
return f};
_.e(tw,_.K);_.R=tw.prototype;_.R.attached=function(){this.listenToDocument(document)};
_.R.listenToDocument=function(f){f.addEventListener("keydown",_.jr(this,this.onKeyDownEvent));f.addEventListener("keyup",_.jr(this,this.onKeyUpEvent));f.addEventListener("mousedown",_.jr(this,this.onMouseDownEvent));_.J("desktop_keyboard_capture_keydown_killswitch")||f.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);f.addEventListener("yt-page-data-updated",_.jr(this,this.onPageUpdate))};
_.R.detached=function(){this.unlistenFromDocument(document)};
_.R.unlistenFromDocument=function(f){f.removeEventListener("keydown",_.jr(this,this.onKeyDownEvent));f.removeEventListener("keyup",_.jr(this,this.onKeyUpEvent));f.removeEventListener("mousedown",_.jr(this,this.onMouseDownEvent));_.J("desktop_keyboard_capture_keydown_killswitch")||f.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);f.removeEventListener("yt-page-data-updated",_.jr(this,this.onPageUpdate))};
_.R.ready=function(){_.t8().addProvider({provide:_.RM,useValue:this})};
_.R.isKeyBoardInUse=function(){return this.JSC$19962_keyboardInUse};
_.R.handleCapturedKeydownEvent=function(f){if(f.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(f)};
_.R.onMouseDownEvent=function(){this.JSC$19962_keyboardInUse=!1};
_.R.onPageUpdate=function(){if(_.J("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.J("web_shorts_keyboard_shortcut_usage_log")){_.Wg.clear();for(var f=_.V(_.mC),H=f.next();!H.done;H=f.next()){var v=_.V(H.value);H=v.next().value;v=v.next().value;v=_.$$(v);_.Wg.set(H,v);_.Xl(_.uy(),_.Qe(),v)}_.Oy.clear();f=_.V(_.$h);for(H=f.next();!H.done;H=f.next())v=_.V(H.value),H=v.next().value,v=v.next().value,v=_.$$(v),_.Oy.set(H,v),_.Xl(_.uy(),_.Qe(),v);_.AX(_.uy(),_.Qe(),[].concat(_.pS(_.Oy.values()),
_.pS(_.Wg.values())));_.i0(_.uy(),[].concat(_.pS(_.Oy.values()),_.pS(_.Wg.values())))}};
_.R.onMiniplayerActiveChange=function(){var f;(f=_.t8().resolve(_.o0).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(f.document):this.unlistenFromDocument(f.document))};
_.R.ignoreKeyEvent=function(f){if(f.ctrlKey||f.altKey)if(_.J("kevlar_macro_markers_keyboard_shortcut")){if(f.keyCode!==37&&f.keyCode!==39)return!0}else return!0;var H=_.f2(f)||[];return _.u2A(H)?(_.J("web_button_or_anchor_list_item")&&fqx(H,f)&&(this.JSC$19962_keyboardInUse=!0),!0):f.defaultPrevented?(rn(f.keyCode,f.shiftKey,this.isShortsPage),!0):f.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(f):!1};
_.R.isSpacebarClick=function(f){var H=f||window.event;var v;H.composedPath&&typeof H.composedPath==="function"?v=H.composedPath():v=H.path;v&&v.length?H=v[0]:(H=H||window.event,H=H.target||H.srcElement,H.nodeType==3&&(H=H.parentNode));return H&&f.keyCode===32&&(f=H.tagName==="BUTTON"||H.tagName==="A"||H.tagName==="INPUT",H=(H=H.getAttribute("role"))&&(H==="option"||H==="button"||H.indexOf("menuitem")===0),f||H)?!0:!1};
_.R.onKeyDownEvent=function(f){if(!this.ignoreKeyEvent(f)&&(f.keyCode===191&&(f.shiftKey||f.metaKey?f.repeat!=null&&f.repeat||(this.openHotkeyDialog(),rn(f.keyCode,f.shiftKey,this.isShortsPage)):(this.focusSearchBox(),f.preventDefault())),!f.metaKey)){var H=_.t8().resolve(_.o0);switch(f.keyCode){case 9:this.JSC$19962_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(f);break;case 84:H.pipController.getWindow()&&window.focus();this.toggleTheaterMode(f.keyCode,f.shiftKey);break;case 73:H.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(f.keyCode,f.shiftKey);break;case 70:if(this.isShortsPage&&_.J("web_fullscreen_shorts")){_.axG();break}this.isMiniplayerActive()?H.pipController.getWindow()&&(H.close(!0),window.focus()):this.passEventToPlayer(f);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(f.keyCode,f.shiftKey):this.closeMiniplayer(f.keyCode,f.shiftKey)||this.passEventToPlayer(f);break;case 13:f.shiftKey&&_.t8().resolve(_.eS).activate(f);break;default:this.passEventToPlayer(f)}}};
_.R.onKeyUpEvent=function(f){if(!this.ignoreKeyEvent(f))if(_.J("web_speedmaster_spacebar_control")&&f.keyCode===32)this.handlePlayerSpaceKey(f,!0);else{var H=this.getPlayerManager();H&&(H=H.getPlayer())&&H.handleGlobalKeyUp(f.keyCode,f.shiftKey,f.ctrlKey,f.altKey,f.metaKey,f.key,f.code)}};
_.R.getPlayerManager=function(){var f=_.vx(),H=_.t8().resolve(_.vh(_.fT));return f&&H&&H.isOnWatch()?f:null};
_.R.passEventToPlayer=function(f,H){var v=this,t,M,h,y;return _.Y(function(m){if(m.nextAddress==1){if(!_.J("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&v.isMiniplayerActive())t=_.t8().resolve(_.o0).getPlayerElement();else if(v.inlinePreviewIsActive){if(M=_.$E(v.hostElement,"yt-get-inline-preview-player-action"),(h=M)==null?0:h[0])t=M[0]}else t=_.vx();return t?m.yield(t.getPlayerPromise(),3):m.jumpTo(0)}y=m.yieldResult;H?y.handleGlobalKeyUp(f.keyCode,f.shiftKey,f.ctrlKey,f.altKey,f.metaKey,
f.key,f.code):y.handleGlobalKeyDown(f.keyCode,f.shiftKey,f.ctrlKey,f.altKey,f.metaKey,f.key,f.code,f.repeat);f.keyCode!==38&&f.keyCode!==40&&rn(f.keyCode,f.shiftKey,v.isShortsPage);_.Bj(m)})};
_.R.focusSearchBox=function(){_.YE(this.hostElement,"yt-focus-searchbox")};
_.R.openHotkeyDialog=function(){_.YE(this.hostElement,"yt-open-hotkey-dialog")};
_.R.isMiniplayerActive=function(){return _.t8().resolve(_.o0).isMiniplayerActive()};
_.R.closeMiniplayer=function(f,H){return this.isMiniplayerActive()?(_.t8().resolve(_.o0).close(),rn(f,H,this.isShortsPage),!0):!1};
_.R.toggleTheaterMode=function(f,H){var v=_.nV(_.vS().getState()),t=this.getPlayerManager(),M=_.J("disable_theater_mode_keyboard")||_.P6("START_IN_FULL_WINDOW_MODE");t&&!M&&(v=!v,_.M6()&&_.J("external_fullscreen")&&(v=!0),_.mb(this.hostElement,"yt-toggle-theater-mode",[v]),rn(f,H,this.isShortsPage))};
_.R.toggleMiniplayer=function(f,H){var v=this.getPlayerManager();if(this.isMiniplayerActive()){var t;((t=_.t8().resolve(_.vh(_.fT)))==null?0:t.isOnWatch())?_.t8().resolve(_.o0).close(!0):_.oA(_.t8().resolve(_.o0));rn(f,H,this.isShortsPage)}else v&&(_.mb(this.hostElement,"yt-activate-miniplayer-from-watch-action"),rn(f,H,this.isShortsPage))};
_.R.handlePlayerSpaceKey=function(f,H){var v=!!_.vx()||this.isMiniplayerActive();v=_.J("disable_space_scroll_fix")||v;_.J("global_spacebar_pause")&&!this.isKeyBoardInUse()&&v&&(f.preventDefault(),this.passEventToPlayer(f,H))};
_.R.isPresentingTheaterMode=function(){return _.J("web_watch_enable_tm_esc_key")?_.nV(_.vS().getState())&&!_.M6():!1};
tw.prototype.onMiniplayerActiveChange=tw.prototype.onMiniplayerActiveChange;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],tw.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],tw.prototype,"ytdReduxBehavior",void 0);_.E([_.F({selector:_.kuH}),_.N("design:type",Boolean)],tw.prototype,"inlinePreviewIsActive",void 0);_.E([_.F({selector:_.wmB}),_.N("design:type",Boolean)],tw.prototype,"isShortsPage",void 0);
_.E([_.F({selector:_.a5}),_.N("design:type",Boolean)],tw.prototype,"miniplayerIsActive",void 0);_.E([_.Zw("miniplayerIsActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tw.prototype,"onMiniplayerActiveChange",null);_.E([_.u({disableElementRegistration:!0,is:"yt-hotkey-manager"})],tw);_.G(tw,"yt-hotkey-manager",void 0,{mode:_.WK("kevlar_poly_si_batch_j081")?1:2});var MD=function(){var f=_.K.apply(this,arguments)||this;f.loopStateEntityKey_=null;f.playlistLoopStateEntity_=null;f.isShuffleNextPlaylist=!1;f.PLAYER_EVENTS_=new Map;f.playerListenersSetup_=!1;f.videoSkipJob_=0;f.canAutoAdvance_=!1;f.playerManager_=null;f.TEST_ONLY={};return f};
_.e(MD,_.K);_.R=MD.prototype;_.R.ready=function(){_.t8().addProvider({provide:_.u3,useValue:this.hostElement})};
_.R.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_)};
_.R.attached=function(){document.addEventListener("yt-navigate-start",_.jr(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.jr(this,this.onYtNavigateFinish_))};
_.R.detached=function(){document.removeEventListener("yt-navigate-start",_.jr(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.jr(this,this.onYtNavigateFinish_))};
_.R.updatePlaylistEventListeners=function(f,H){H&&!this.playerListenersSetup_?(this.playerManager_=f,this.registerPlaylistEventListeners_(f)):!H&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(f))};
_.R.setPlayer=function(f){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=f};
_.R.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.R.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.R.registerPlaylistEventListeners_=function(f){var H=this;f.getPlayerPromise().then(function(v){H.playerListenersSetup_||(H.ytPlayerListenerBehavior.listenToPlayerEvents(v,H.PLAYER_EVENTS_),H.playerListenersSetup_=!0)})};
_.R.removePlaylistEventListeners_=function(f){var H=this;f.getPlayerPromise().then(function(v){H.playerListenersSetup_&&(H.ytPlayerListenerBehavior.unlistenFromPlayerEvents(v,H.PLAYER_EVENTS_),H.playerListenersSetup_=!1)})};
_.R.setPlaylistComponent=function(f){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.jr(this,this.onPlaylistYtNavigate_)),f&&(f.data&&this.playlistComponent.data&&f.data.playlistId==this.playlistComponent.data.playlistId?(f.loopOn=this.playlistComponent.loopOn,f.shuffleOn=this.playlistComponent.shuffleOn):(f.loopOn=!1,f.shuffleOn=!1),this.isShuffleNextPlaylist&&(f.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=f;this.playlistComponent.addEventListener("yt-navigate",
_.jr(this,this.onPlaylistYtNavigate_))};
_.R.setAutoplayRenderer=function(f){this.autoplayData=f};
_.R.setPlaylistData=function(f){this.currentPlaylistData_=f;_.YE(this.hostElement,"yt-playlist-data-updated");_.QA.isEmpty(f)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(f)};
_.R.setPlayerPlaybackControlData=function(f){this.playerManager_&&this.playerManager_.updatePlayerComponents(f.playlistPanelRenderer)};
_.R.getPlaylistData=function(){return this.currentPlaylistData_};
_.R.getTempData_=function(f,H){if(this.playlistComponent==null)return null;f={};this.playlistComponent.shuffleOn&&(f.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(f.loop_on=this.playlistComponent.loopOn);H&&(f.autonav="1",_.t8().resolve(_.xK),H=_.h7(),H>0&&(f.lact=H),this.playerManager_&&(H=this.playerManager_.getPlayer())&&H.shouldSendVisibilityState()&&(H=H.getVisibilityState(),H!=0&&(f.vis=H)));_.J("enable_unknown_lact_fix_on_html5")&&(_.t8().resolve(_.xK),f.lact=
_.h7());return f};
_.R.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.R.setLoopStateEntityKey_=function(f){var H;this.loopStateEntityKey_=((H=this.getPlaylistLoopData_(f))==null?void 0:H.playlistLoopStateEntityKey)||null};
_.R.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.R.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.R.skipVideo=function(){var f=this,H=_.J("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||H)H=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.LT(_.nN,function(){f.onPlaylistNext();f.videoSkipJob_=0},H)};
_.R.cancelVideoSkip=function(){this.videoSkipJob_&&(_.nN.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.R.isInBackground_=function(){var f=window.document.visibilityState;return!(!f||f=="visible")};
_.R.onPlaylistIndex_=function(f){this.playlistComponent&&(f=this.playlistComponent.data.contents[f].playlistPanelVideoRenderer.navigationEndpoint,_.YE(this.hostElement,"yt-navigate",{endpoint:f,tempData:this.getTempData_(f)}))};
_.R.onPlayerStateChange_=function(f){if(f=f==0&&this.playlistComponent&&this.canAutoAdvance_)f=_.wC.getInstance(),f=!(f.autonavState_===3?f.autonavPauseReason_&&f.autonavPauseReason_.inputBoxFocus===!0:f.autonavState_===1&&f.disabledAutonavPauseReason_&&f.disabledAutonavPauseReason_.inputBoxFocus===!0);f&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.R.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.R.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.R.navigateToAutoplayWatchEndpoint_=function(f,H,v){var t=this.playlistComponent.data.currentIndex,M=this.getNumPlayableVideos_();f=="NORMAL"&&H=="autoplayVideo"&&t+1>=M&&v||!(f=this.getVideoEndpoint_(f,H))||(v=this.getTempData_(f,v),_.YE(this.hostElement,"yt-navigate",{endpoint:f,tempData:v}))};
_.R.getNumPlayableVideos_=function(){for(var f=0,H=_.V(this.playlistComponent.data.contents||[]),v=H.next();!v.done;v=H.next())v.value.playlistPanelVideoRenderer&&(f+=1);return f};
_.R.getVideoEndpoint_=function(f,H){if(this.autoplayData&&this.autoplayData.sets)for(var v=0,t=this.autoplayData.sets.length;v<t;v++){var M=this.autoplayData.sets[v];if(M.mode==f){if(M[H])return M[H];break}}else f=new _.e$("AutoplayData is undefined in playlist manager","Mode: "+f+" endpoint: "+H),_.pb(f)};
_.R.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.R.onPlaylistYtNavigate_=function(f){if(f.detail.endpoint){f.stopPropagation();var H=f.detail;H.tempData=this.getTempData_(f.detail.endpoint);_.YE(this.hostElement,"yt-navigate",H)}};
_.R.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.R.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.R.playlistLoopStateEntityChanged_=function(f){var H=this,v,t,M;return _.Y(function(h){if(h.nextAddress==1){if(!f)return h.return();v=f.state==="PLAYLIST_LOOP_STATE_ONE";return H.playerManager_?h.yield(H.playerManager_.getPlayerPromise(),3):h.jumpTo(2)}h.nextAddress!=2&&(t=h.yieldResult,t.setLoopVideo(v));M=f.state==="PLAYLIST_LOOP_STATE_ALL";H.playlistComponent&&(H.playlistComponent.loopOn=M);_.Bj(h)})};
_.R.getPlaylistLoopData_=function(f){var H,v;if(f=f==null?void 0:(H=f.playlistButtons)==null?void 0:(v=H.menuRenderer)==null?void 0:v.topLevelButtons)for(H=_.V(f),v=H.next();!v.done;v=H.next())if(v=v.value,v.playlistLoopButtonRenderer)return v.playlistLoopButtonRenderer};
_.R.getLoopStateCommand_=function(f){var H=this.getPlaylistData(),v;H=((v=this.getPlaylistLoopData_(H))==null?void 0:v.states)||[];var t;f=(t=_.U(H[f?1:2],_.U7_))==null?void 0:t.button;var M;return(M=_.U(f,_.nv))==null?void 0:M.command};
_.R.onPlayerLoopChange_=function(f){this.playlistLoopStateEntity_&&(f?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(f=this.getLoopStateCommand_(f))&&this.ytComponentBehavior.resolveCommand(f)};
_.R.onSleepTimerSettingsChanged_=function(f){this.canAutoAdvance_=f!=="End of video"};
MD.prototype.onPlaylistLoopStateEntityChanged=MD.prototype.onPlaylistLoopStateEntityChanged;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],MD.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.im.YtPlayerListenerBehavior),_.N("design:type",_.kI)],MD.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],MD.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],MD.prototype,"loopStateEntityKey_",void 0);
_.E([_.F({selectorArgs:["loopStateEntityKey_"],selector:_.AiB}),_.N("design:type",Object)],MD.prototype,"playlistLoopStateEntity_",void 0);_.E([_.Zw("playlistLoopStateEntity_"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],MD.prototype,"onPlaylistLoopStateEntityChanged",null);_.E([_.u({disableElementRegistration:!0,is:"yt-playlist-manager"})],MD);_.G(MD,"yt-playlist-manager",void 0,{mode:_.WK("kevlar_poly_si_batch_j081")?1:2});var f1W,H_p=function(){if(f1W!==void 0)return f1W;var f=document.createElement("template");_.x(f,"\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");f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return f1W=f};var hw=function(){var f=_.K.apply(this,arguments)||this;f.lastCallback=null;f.getAccountLinkPromises={};f.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);f.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return f};
_.e(hw,_.K);_.R=hw.prototype;_.R.getLocation=function(){return window.location.href};
_.R.getCompletionUrl=function(){return _.HV(this.getLocation())};
_.R.containsRedirectState=function(f){return(f=_.sH(_.LG_(f)))?(new URLSearchParams(f)).get("redirect_state")!==null:!1};
_.R.createGalConfig=function(f,H){var v=new g0b;f=v=H?this.getPopupOrRedirectSetting(v,_.a8("LINK_API_KEY"),_.a8("LINK_API_KEY_REDIRECT"),f):IDb(v,_.a8("LINK_API_KEY"));f.authUser=_.a8("SESSION_INDEX")||0;f.supportedFlows=new Set([4]);return f.build()};
_.R.getPopupOrRedirectSetting=function(f,H,v,t){this.isGalInteractionPopupMode(t)?(f.interactionMode=0,f=IDb(f,H)):(f.interactionMode=1,H=this.getCompletionUrl(),f.completionUrl=H,f=IDb(f,v));return f};
_.R.isGalInteractionPopupMode=function(f){if(this.redirectModeProviderAllowlist.has(f))switch(f){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.R.getStatusEntityKeyForProviderId=function(f){return _.SB(f+":all","accountLinkStatusEntity")};
_.R.findNestedPropValue=function(f,H){var v=!1,t=null;JSON.stringify(f,function(M,h){v||M!==H||(v=!0,t=h);return v?null:h});
return t};
_.R.findAccountLinkButtonViewModel=function(f,H){var v=null,t=!1;JSON.stringify(f,function(M,h){t||h.accountLinkStatusEntityKey!==H||h.accountLinkStatusSecondaryEntityKey||(t=!0,v=h);return t?null:h});
return v};
_.R.executeLinkingSuccessOrFailureCommands=function(f,H,v){var t=null,M;(H==null?0:(M=H.url)==null?0:M.includes("account_sharing"))?t=H==null?void 0:H.response:t=H==null?void 0:H.response;(H=this.findAccountLinkButtonViewModel(t,f))?(f=v?this.findNestedPropValue(H,"onSuccessCommand"):this.findNestedPropValue(H,"onFailureCommand"))?_.SG([f],this.hostElement):_.Nw(Error("pl")):_.Nw(Error("ql`"+f))};
_.R.handleInitializeRequest=function(f,H){var v=this,t=waW(this.createGalConfig(f,!0));this.containsRedirectState(this.getLocation())?Adp(f,t.config,t.galService).then(function(M){var h=v.getStatusEntityKeyForProviderId(f);if(M.statusCode===1)H&&v.executeLinkingSuccessOrFailureCommands(h,H,!0),M=v.getLocation().indexOf("#"),M!==-1&&window.history.pushState(null,"",v.getLocation().substring(0,M));else return H&&v.executeLinkingSuccessOrFailureCommands(h,H,!1),Promise.reject(Error(M.statusMessage))}).catch(function(M){_.pb(M);
_.Kb("gamingAccountLinkStatusChanged",{serviceId:f,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(M)}):this.getAccountLinkPromises[f]=t.startLinkingSession({serviceId:f})};
_.R.handleAccountLinkCommand=function(f){_.U(f,HW0)&&this.handleLinkRequest(_.U(f,HW0))};
_.R.handleLinkRequest=function(f){var H=this,v=f.thirdPartyId;if(v)if(this.isGalInteractionPopupMode(v)){var t=function(){H.closeAndFire("ytd-gaming-account-link-setting-renderer",f.onFailureCommand)},M=function(){H.closeAndFire("ytd-gaming-account-link-setting-renderer",f.onSuccessCommand)};
this.lastCallback=M;this.getAccountLinkPromises[v].then(function(h){b6A(h).then(function(y){y.statusCode===1?M():t()})}).catch(function(){t()})}else this.getAccountLinkPromises[v].then(function(h){b6A(h).then(function(y){if(y.statusCode!==1)return Promise.reject(Error(y.statusMessage))})}).catch(function(h){_.pb(h);
_.Kb("gamingAccountLinkStatusChanged",{serviceId:v,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(h)})};
_.R.closeAndFire=function(f,H){_.mb(this.hostElement,"yt-close-popup-action",[f]);H&&_.SG([H],this.hostElement)};
_.R.handleAccountUnlinkCommand=function(f){_.U(f,vpG)&&this.handleUnlinkRequest(_.U(f,vpG))};
_.R.handleUnlinkRequest=function(f){var H=this,v=f.thirdPartyId;if(v){var t=function(){H.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",f.onFailureCommand)},M=function(){H.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",f.onSuccessCommand)};
this.lastCallback=M;var h=waW(this.createGalConfig(v,!1));this.unlinkUserGal(h,v).then(function(y){y.statusCode===1?M():t()}).catch(function(){t()})}};
_.R.unlinkUserGal=function(f,H){return f.deleteLink(H)};
_.R.handleLogAccountLinkingEventCommand=function(f){_.J("enable_gel_log_commands")&&_.U(f,t3F)&&(f=_.U(f,t3F).event)&&_.Kb("gamingAccountLinkStatusChanged",f)};
_.H7.Object.defineProperties(hw,{template:{configurable:!0,enumerable:!0,get:function(){return H_p()}}});
_.E([_.B(_.IM.YtOpenPopupBehavior),_.N("design:type",Object)],hw.prototype,"ytOpenPopupBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],hw.prototype,"ytActionHandlerBehavior",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-third-party-manager"})],hw);_.G(hw,"ytd-third-party-manager",function(){return H_p()},{mode:_.WK("kevlar_poly_si_batch_j081")?1:2});var vMW,tlr=function(){if(vMW!==void 0)return vMW;var f=document.createElement("template");_.x(f,"\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");f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return vMW=f};var RC=function(){var f=_.K.apply(this,arguments)||this;f.currentPage=void 0;f.renderLoadingStateJobId=0;f.updatePageDataJobId=0;f.pageDisposeJobsets=new WeakMap;f.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"};f.shouldApplyLockupToWatchTransition=_.J("web_thumbnail_to_watch_transition");f.shouldApplySlideTransition=_.yQ("web_page_transition_type")==="slide"||_.J("enable_plj_landing_page");f.shouldApplyLearningJourneyTransition=_.J("enable_plj_landing_page");f.TEST_ONLY=void 0;return f};
_.e(RC,_.K);_.R=RC.prototype;_.R.ready=function(){var f=_.t8();f.addProvider({provide:_.fT,useValue:this});f.addProvider({provide:_.syh,useValue:this})};
_.R.created=function(){this.pagePool=new zOx;this.contextSwitcher=new E8h};
_.R.attached=function(){_.YE(this.hostElement,"attached");var f=_.t8().resolve(_.vh(_.a9));f&&(this.contextSwitcher.JSC$19788_networkService_=f);this.viewTransitionManager=_.t8().resolve(_.jX)};
_.R.getPageOffset=function(f){return f.getScrollTop()};
_.R.setPageOffset=function(f,H){try{f.setScrollTop(H)}catch(v){}};
_.R.setPageOffsetForNavigation=function(f,H){_.YE(this.hostElement,"yt-navigate-set-page-offset",{page:f,offset:H===void 0?0:H})};
_.R.pauseActiveContext=function(){var f=this.contextSwitcher;f.activeContext_&&f.activeContext_.pause()};
_.R.getModuleNameForType=function(f){return f==="watch"?_.J("kevlar_watch_fixie")?"watchFixie":_.J("kevlar_watch_grid")?"watchGrid":"watchFlexy":f==="shorts"||f==="search"?f:"browse"};
_.R.attachPage=function(f){var H,v=!_.J("pc_is_attached_ks")&&(f==null?void 0:(H=f.polymerController)==null?void 0:H.isAttached);if(!f.isAttached&&!v)try{_.mF(this.hostElement).appendChild(f)}catch(M){var t;_.pb(new _.e$("Error attaching page element for component",{origin:(t=this.currentPage)==null?void 0:t.is,component:f.is}))}};
_.R.setActivePage=function(f){var H=this,v=!1,t=function(){var M=H.isOnWatch(),h=H.currentPage;if(f)if(f!==H.currentPage){h&&(h.hidden=!0,h.active=!1,h.removeAttribute("role"));H.currentPage=f;var y,m=_.U6((y=H.data)==null?void 0:y.endpoint);h&&_.YE(H.hostElement,"yt-page-type-changed",{oldPageType:h.is,newPageType:f.is,newPageSubtype:m});_.fu().dispatch(_.yq({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:f.is}));_.fu().dispatch(_.yq({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:m||""}));f.hidden=
!1;H.attachPage(f);f.active=!0;f.setAttribute("role","main");h&&H.setPageOffsetForNavigation(f,0);_.J("kevlar_remove_page_dom_on_switch")&&!M&&h&&_.mF(H.hostElement).removeChild(h)}else v=!0;else H.handleMissingDestinationPage(h)};
this.shouldRunBrowseTransition(this.currentPage,f)?YHx(this.viewTransitionManager,t):this.shouldRunLearningJourneyTransition(this.currentPage,f)?WmW(this.viewTransitionManager,t):t();return v};
_.R.handleMissingDestinationPage=function(f){if(this.isColdLoadForUnknownPage(f))_.pb(new _.e$("Cold load for unknown page"));else{var H;f=new _.e$("Unable to set active page",f?f.is:"unknown origin",(H=this.data)==null?void 0:H.endpoint);_.oO(f)}};
_.R.isColdLoadForUnknownPage=function(f){return!f&&sy(this.data)==="unknown"};
_.R.shouldRunBrowseTransition=function(f,H){return this.shouldApplySlideTransition&&(f==null?void 0:f.is)==="ytd-browse"&&(H==null?void 0:H.is)==="ytd-browse"&&f!==H};
_.R.shouldRunLearningJourneyTransition=function(f,H){return this.shouldApplyLearningJourneyTransition&&(f==null?void 0:f.is)==="ytd-browse"&&((H==null?void 0:H.is)==="ytd-watch-learning-journey"||(H==null?void 0:H.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.R.shouldRunWatchNextLoadedTransition=function(f,H){return this.viewTransitionManager&&f.is==="ytd-watch-flexy"&&H};
_.R.updatePageData=function(f){var H=this,v=this.data;this.updatePageDataJobId&&_.nN.cancelJob(this.updatePageDataJobId);this.data=f;return new _.IO(function(t){var M=function(){f.filler?H.performDataUpdate(f,v):scG(function(){H.performDataUpdate(f,v)});
var W=_.PL();_.Gu(W,"cr")||W.processSignal("cr");t()},h=function(){f&&f.page==="watch"?H.updatePageDataJobId=_.LT(_.nN,M):M()};
if(_.J("kevlar_enable_mss_page_modules_client")&&f){var y=_.t8().resolve(_.pA),m=H.getModuleNameForType(f.page);(y=V4x(y,[m]))?y.then(h):h()}else h()})};
_.R.isDownloadsPage=function(f){var H,v;return(f==null?void 0:(H=f.endpoint)==null?void 0:(v=H.browseEndpoint)==null?void 0:v.browseId)==="FEdownloads"};
_.R.setPlayerSyncInterval=function(f){var H;return _.Y(function(v){if(v.nextAddress==1)return v.yield(_.t8().resolve(_.V4),2);H=v.yieldResult;H.setUpPositionSyncInterval(f);_.Bj(v)})};
_.R.performDataUpdate=function(f,H){_.J("kevlar_early_popup_close")||_.mb(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var v=!f.filler;v&&(_.u0("lps"),_.J("config_age_report_killswitch")||$6b());var t=sy(f),M,h=!1;if(_.J("kevlar_remove_page_dom_on_switch")){var y=H&&sy(H);t===y&&(M=this.getCurrentPage())}M||(M=i1(this.pagePool,t));v&&l4G(this.pagePool.elementPoolPopulator,t);v&&!this.renderLoadingStateJobId&&(h=this.setActivePage(M));if(M){y=t==="watch";var m=
t==="shorts",W=t==="learning_journey_watch";_.J("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(M);if(y||m||W)M.playerData=f.playerResponse;if(m)if(_.J("web_enable_delay_shorts_sequence_call")){f.reelWatchSequenceResponse&&(f.reelWatchSequenceResponse.entries||f.reelWatchSequenceResponse.prevEntries)&&(M.reelWatchSequenceResponse=f.reelWatchSequenceResponse);M.currentEndpoint=f.endpoint;var I;M.isPreviousPageShorts=!!(H==null?0:(I=H.endpoint)==null?0:I.reelWatchEndpoint);
var S,d;f.cachedSequenceParams=((S=f.endpoint)==null?void 0:(d=S.reelWatchEndpoint)==null?void 0:d.sequenceParams)||f.cachedSequenceParams||(H==null?void 0:H.cachedSequenceParams);var Z,l;f.cachedSequenceProvider=((Z=f.endpoint)==null?void 0:(l=Z.reelWatchEndpoint)==null?void 0:l.sequenceProvider)||f.cachedSequenceProvider||(H==null?void 0:H.cachedSequenceProvider);M.cachedSequenceParams=f.cachedSequenceParams;M.cachedSequenceProvider=f.cachedSequenceProvider}else{f.reelWatchSequenceResponse&&(f.reelWatchSequenceResponse.entries||
f.reelWatchSequenceResponse.prevEntries)?M.reelWatchSequenceResponse=f.reelWatchSequenceResponse:f.cachedReelWatchSequenceResponse?M.reelWatchSequenceResponse=f.cachedReelWatchSequenceResponse:_.J("web_enable_cached_reel_sequence_fix")&&M.cachedReelWatchSequenceResponse&&!M.reelWatchSequenceResponse&&(M.reelWatchSequenceResponse=M.cachedReelWatchSequenceResponse);M.currentEndpoint=f.endpoint;var L;M.isPreviousPageShorts=!!(H==null?0:(L=H.endpoint)==null?0:L.reelWatchEndpoint);f.cachedReelWatchSequenceResponse=
f.reelWatchSequenceResponse||f.cachedReelWatchSequenceResponse||(H==null?void 0:H.cachedReelWatchSequenceResponse);M.cachedReelWatchSequenceResponse=f.cachedReelWatchSequenceResponse}I=this.isDownloadsPage(f);S=this.isDownloadsPage(H);I&&!S?this.setPlayerSyncInterval(6E5):!I&&S&&this.setPlayerSyncInterval();_.J("block_all_player_prefetch_requests")||this.preparePrefetchRequest(f,M,v,y,m,W);OAG(_.t8().resolve(_.o0),H,f);_.v5(_.t8().resolve(_.xK));_.J("kevlar_flush_jobs_before_setting_player_response")||
this.flushPageDisposeJobset(M);v?(v=typeof M.loadPage,v==="function"?(M.pageContext=NY5(this.contextSwitcher,M,M.data!==f.response),v=function(){M.loadPage(f.response)},this.shouldApplySlideTransition&&M.is==="ytd-browse"&&h&&(t==="learning"||this.isDifferentBrowseId(f==null?void 0:f.endpoint,H==null?void 0:H.endpoint))?YHx(this.viewTransitionManager,v):this.shouldRunWatchNextLoadedTransition(M,h)?$NG(this.viewTransitionManager,v):v()):_.nb(new _.e$("b/38014653 ",[t,
M.is,M.nodeName,v,M.isAttached,H&&sy(H),this.hostElement.children.length])),_.u0("pdl")):(M.hidden=!0,f.response.filler=!0,M.data=f.response,this.attachPage(M));_.YE(this.hostElement,"yt-page-data-updated",{pageType:t})}_.Lb(_.nN,function(){_.J("logging_avoid_blocking_during_navigation")&&_.fOv().transition("none");var r=hO0(),n=M;if(f){var Q=NXb(f),C=cJA(f),w;a:{if(f.playerResponse){var c=f.playerResponse,A;if((w=c.auxiliaryUi)==null?0:(A=w.messageRenderers)==null?0:A.upsellDialogRenderer){w=c.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(f.response&&(w=f.response,(c=w.overlay)==null?0:c.upsellDialogRenderer)){w=w.overlay.upsellDialogRenderer;break a}w=void 0}var X;var fg;A=(X=f.playerResponse)==null?void 0:(fg=X.auxiliaryUi)==null?void 0:fg.messageRenderers;X=(A==null?void 0:A.enforcementMessageViewModel)||(A==null?void 0:A.bkaEnforcementMessageViewModel);X=(X==null?void 0:X.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?X:void 0;var gB;a:{if(f.response&&(fg=f.response,(gB=fg.overlay)==null?0:
gB.commandWrapperPromoRenderer)){gB=fg.overlay.commandWrapperPromoRenderer;break a}gB=void 0}MYw(r,Q,C,w,X,gB,n)}})};
_.R.preparePrefetchRequest=function(f,H,v,t,M,h){var y,m,W,I,S,d,Z,l,L,r,n,Q,C,w,c;return _.Y(function(A){if(A.nextAddress==1)return!v||!(t||M||h)||_.J("kevlar_disable_background_prefetch")&&_.Cc(_.v3N)()===0?A.return():(y=_.Hx(H))?A.yield(y.getPlayerPromise(),2):A.return();m=A.yieldResult;W=_.t8().resolve(_.vh(_.a9));if(!W)return A.return();if(M)return I=_.iw(_.Uz),F2A(I,(S=f.endpoint)==null?void 0:S.reelWatchEndpoint,H.reelWatchSequenceResponse,m,W),A.return();l=(d=f.response)==null?void 0:(Z=d.responseContext)==
null?void 0:Z.webResponseContextExtensionData;if(!l)return A.return();C=(L=f.response)==null?void 0:(r=L.contents)==null?void 0:(n=r.twoColumnWatchNextResults)==null?void 0:(Q=n.autoplay)==null?void 0:Q.autoplay;w=_.t8().resolve(_.u3);c=_.iw(_.Uz);rYi(c,l,m,W,w,C);_.Bj(A)})};
_.R.movePlayerToWatch=function(f){var H=this,v,t;return _.Y(function(M){v=i1(H.pagePool,"watch");t=v.getPlayerContainer();f.appendTo(t);_.Bj(M)})};
_.R.movePlayerToShorts=function(f){var H=this,v,t,M;return _.Y(function(h){v=i1(H.pagePool,"shorts");t=v.getPlayerContainer();(M=f)==null||M.appendTo(t,void 0,!0);_.Bj(h)})};
_.R.getPlayerFromWatch=function(){var f=i1(this.pagePool,"watch");return _.Hx(f)};
_.R.getPlayerFromShorts=function(){var f=i1(this.pagePool,"shorts");return _.Hx(f)};
_.R.startLoadingWatch=function(){var f=this,H=i1(this.pagePool,"watch");this.renderLoadingStateJobId?(_.nN.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.J("web_watch_transition_enable_start_loading_watch_callsite")?mNi(this.viewTransitionManager,function(){f.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(H)};
_.R.startLoadingShorts=function(){var f=i1(this.pagePool,"shorts");this.setActivePage(f)};
_.R.startLoadingLearningJourney=function(){var f=i1(this.pagePool,"learning_journey_watch");this.setActivePage(f)};
_.R.getCurrentPage=function(){return this.currentPage};
_.R.getDestinationPageType=function(){return this.destinationPageType};
_.R.getCurrentData=function(){return this.data};
_.R.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.R.isOnShorts=function(){var f;return((f=this.currentPage)==null?void 0:f.is)==="ytd-shorts"};
_.R.isWatchPage=function(f){return!!f&&(f.is==="ytd-watch-flexy"||f.is==="ytd-watch-fixie"||f.is==="ytd-watch-grid")};
_.R.preparePage=function(f,H){var v=this,t=function(){var y=v.pagePool.preparePage(f,v.currentPage,H);y&&v.attachPage(y)},M=function(y){_.u$(y,H);
_.pb(y)};
if(_.J("kevlar_enable_mss_page_modules_client")){var h=this.getModuleNameForType(f);if(h=V4x(_.t8().resolve(_.pA),[h])){h.then(t.bind(this)).catch(M.bind(this));return}}try{t()}catch(y){M(y)}};
_.R.lazyPrepareCriticalPages=function(f,H){f=_.U6(H)||f;_.J("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(f).then(this.maybePrepareWatchPage.bind(this,f)):this.maybePrepareWatchPage(f)};
_.R.maybePrepareWatchPage=function(f){f!=="watch"&&_.Lb(_.nN,this.preparePage.bind(this,"watch"))};
_.R.downloadPageModules=function(f){f=this.getModuleNameForType(f);var H=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);H.delete(f);var v=_.t8().resolve(_.pA);v.JSC$18531_loadModules(f);return v.JSC$18531_loadModules.apply(v,_.pS(H))};
_.R.renderPageLoadingState=function(f,H){this.preparePage(f,H);var v=i1(this.pagePool,f);v.loadingData&&(v.loadingData.endpoint=H);v.loading=!0;this.setActivePage(v);f!=="watch"&&f!=="learning_journey_watch"||_.YE(this.hostElement,"yt-guide-close")};
_.R.prepareForNavigation=function(f,H){var v=this;if(this.currentPage&&this.data){var t=_.U6(H)||f;this.destinationPageType=t;sy(this.data)==t&&_.YE(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((f==="watch"||f==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.nN.cancelJob(this.renderLoadingStateJobId);_.t8().resolve(_.o0).deactivate(H);_.Vk(_.nN,function(){var h=v.viewTransitionManager,y=v.currentPage;
if(h.isLockupToWatchTransitionEnabled&&h.isLockupThumbnailRegistrationEnabled&&y)if(h.registeredLockupThumbnail)h.lockupThumbnailRegisteredFromWatchEndpoint&&_.pb(new _.e$("Lockup thumbnail already registered from watch endpoint."));else{a:{var m=_.U(H,_.wI);if(m==null?0:m.videoId){var W="yt-lockup-view-model ."+_.t8e(m.videoId)+" yt-thumbnail-view-model";y=y.querySelectorAll(W);if(y.length===1){m=y[0];break a}y.length>1?_.pb(new _.e$("Multiple LockupViewModel thumbnails found for videoId: "+m.videoId+
". Selector: "+W)):_.J("web_thumbnail_to_watch_transition_debug")&&_.pb(new _.e$("No LockupViewModel thumbnail found for videoId: "+m.videoId+". Selector: "+W))}m=void 0}m&&(h.registeredLockupThumbnail=m,h.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.fR5(h,m))}});
var M=this.data;this.renderLoadingStateJobId=_.Vk(_.nN,function(){mNi(v.viewTransitionManager,function(){if(v.data!=M){var h=i1(v.pagePool,f);v.setActivePage(h)}else v.renderPageLoadingState(f,H);v.renderLoadingStateJobId=0})},150)}};
_.R.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var f=new _.t$(1);this.currentPage.pageDisposeJobs.forEach(function(H){_.M8(f,H)});
this.pageDisposeJobsets.set(this.currentPage,f)}};
_.R.flushPageDisposeJobset=function(f){var H=this.pageDisposeJobsets.get(f);H&&(H.flushJobs(),this.pageDisposeJobsets.delete(f))};
_.R.onYtStopOldPlayer=function(f,H){H=H===void 0?!1:H;var v,t=_.YZ("kevlar_new_stop_old_player_logic_pages");if(_.J("kevlar_check_current_page_on_stop_old_player")&&(t.length===0||this.currentPage&&t.includes(this.currentPage.is)))if(this.data&&(v=sy(this.data)),sy(f)===v&&this.currentPage&&sy(this.currentPage.data)!==v)var M=_.Hx(this.currentPage);else v=sy(this.data),M=i1(this.pagePool,v),M=_.Hx(M);else this.data&&(v=sy(this.data),M=i1(this.pagePool,v),M=_.Hx(M));if(M)if(f=sy(f),t=i1(this.pagePool,
f),t=_.Hx(t),M==t)H&&!_.J("kevlar_disable_preemptive_player_reset")&&M.resetForNewPlayback();else if(H=v==="watch"&&f!=="watch",!H||f==="shorts"||_.Z5n()&&!RaW(this.data)&&f!=="yts-products"&&f!="mini_app"&&f!="playables")v=_.t8().resolve(_.o0),H&&v.isMiniplayerActive()&&v.pipController.getWindow()||M.stop()};
_.R.isDifferentBrowseId=function(f,H){f=_.U(f,_.ec);H=_.U(H,_.ec);return(f==null?void 0:f.browseId)!==(H==null?void 0:H.browseId)};
_.H7.Object.defineProperties(RC,{template:{configurable:!0,enumerable:!0,get:function(){return tlr()}}});
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],RC.prototype,"ytActionHandlerBehavior",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-page-manager"})],RC);_.G(RC,"ytd-page-manager",function(){return tlr()},{mode:_.WK("kevlar_poly_si_batch_j081")?1:2});var Mlb;var VT=function(){var f=_.K.apply(this,arguments)||this;f.useListItemStyles=_.J("web_list_item_style_for_menu_items");f.systemIcons=_.J("kevlar_system_icons");return f};
_.e(VT,_.K);_.R=VT.prototype;_.R.ready=function(){this.hostElement.addEventListener("tap",_.jr(this,this.onEndpointTapExtra))};
_.R.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.R.onFocus=function(){var f;(f=_.mF(this.hostElement).querySelector("tp-yt-paper-item"))==null||f.focus()};
_.R.onEndpointTapExtra=function(f){_.YE(this.hostElement,"iron-activate");var H=this.data.navigationEndpoint;H&&_.U(H,_.KYH)&&(f.stopPropagation(),_.Oj(this.hostElement,[H],this.hostElement))};
_.R.computeIcon=function(f){return f&&f.iconType?_.SW(f.iconType):""};
_.R.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.R.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.R.forceUpdateStylesOnLegacyBrowsers=function(){_.J("kevlar_legacy_browsers")&&_.Sr(this.hostElement)};
VT.prototype.forceUpdateStylesOnLegacyBrowsers=VT.prototype.forceUpdateStylesOnLegacyBrowsers;VT.prototype.onFocus=VT.prototype.onFocus;_.E([_.B(_.fm),_.N("design:type",Object)],VT.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.B(_.AvM.YtConditionalRendererBehavior),_.N("design:type",Object)],VT.prototype,"ytConditionalRendererBehavior",void 0);_.E([_.B(_.S3.YtEndpointBehavior),_.N("design:type",Object)],VT.prototype,"ytEndpointBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],VT.prototype,"data",void 0);_.E([_.F({computed:"computeIcon(data.icon)",value:""}),_.N("design:type",String)],VT.prototype,"icon",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],VT.prototype,"useIcons",void 0);_.E([_.F({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.N("design:type",Boolean)],VT.prototype,"hasSeparator",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],VT.prototype,"useListItemStyles",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],VT.prototype,"systemIcons",void 0);_.E([_.sE("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],VT.prototype,"onFocus",null);_.E([_.Zw("useIcons","hasSeparator"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],VT.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.G(VT,"ytd-menu-navigation-item-renderer",function(){if(Mlb===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);Mlb=f}f=Mlb;return f},{mode:1});var h2W;var R2x=_.qO(_.ZC("DOWNLOAD",{},"Download")),Vlp=_.qO(_.ZC("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),yo0=_.qO(_.ZC("RETRY",{},"Retry")),Y_i=_.qO(_.ZC("PAUSE_DOWNLOADING",{},"Pause downloading")),m3x=_.qO(_.ZC("RESUME_DOWNLOAD",{},"Resume download")),yT=function(){var f=_.K.apply(this,arguments)||this;f.primaryText=R2x;f.primaryIconType="OFFLINE_DOWNLOAD";f.hasSecondaryContent=!1;f.hasSeparator=!1;f.transferState="TRANSFER_STATE_UNKNOWN";f.isVideoDeletedByUser=!1;f.isHidden=!1;f.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return f};
_.e(yT,_.K);_.R=yT.prototype;_.R.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.R.onFocus=function(){this.primaryEntry.focus()};
_.R.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.R.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.R.getRemoveAction=function(){return"ACTION_REMOVE"};
_.R.sendOfflineAction=function(f){var H=this.data.serviceEndpoint;if(H){var v=_.U(H,_.Sf);v&&f&&(v.action=f);this.ytComponentBehavior.resolveCommand(H)}};
_.R.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=R2x,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=R2x;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=yo0;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=Vlp;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=m3x;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=Vlp;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
Y_i;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=Vlp;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=Vlp;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=R2x,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.R.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.R.isSecondaryEntryHidden=function(f,H){return f?!0:!H};
_.R.computeHasSeparator=function(){var f;return!((f=this.data)==null||!f.hasSeparator)};
yT.prototype.showHideButton=yT.prototype.showHideButton;yT.prototype.onTransferStateChange=yT.prototype.onTransferStateChange;yT.prototype.onFocus=yT.prototype.onFocus;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],yT.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],yT.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],yT.prototype,"ytComponentBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],yT.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],yT.prototype,"primaryText",void 0);_.E([_.F(),_.N("design:type",String)],yT.prototype,"primaryIconType",void 0);_.E([_.F(),_.N("design:type",String)],yT.prototype,"primaryAction",void 0);_.E([_.F(),_.N("design:type",Object)],yT.prototype,"secondaryText",void 0);_.E([_.F(),_.N("design:type",String)],yT.prototype,"secondaryIconType",void 0);
_.E([_.F(),_.N("design:type",String)],yT.prototype,"secondaryAction",void 0);_.E([_.F(),_.N("design:type",Object)],yT.prototype,"hasSecondaryContent",void 0);_.E([_.F({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.N("design:type",Object)],yT.prototype,"hasSeparator",void 0);_.E([_.F({selector:_.CY,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.N("design:type",String)],yT.prototype,"transferState",void 0);
_.E([_.F({selector:_.gig,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.N("design:type",Object)],yT.prototype,"isVideoDeletedByUser",void 0);_.E([_.F(),_.N("design:type",Object)],yT.prototype,"isHidden",void 0);_.E([_.F({selector:_.VDT,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.N("design:type",Object)],yT.prototype,"offlineabilityState",void 0);_.E([_.lJ("#primary-entry"),_.N("design:type",Object)],yT.prototype,"primaryEntry",void 0);
_.E([_.sE("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yT.prototype,"onFocus",null);_.E([_.xV("transferState","isVideoDeletedByUser"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yT.prototype,"onTransferStateChange",null);_.E([_.xV("offlineabilityState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yT.prototype,"showHideButton",null);
_.G(yT,"ytd-menu-service-item-download-renderer",function(){if(h2W===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);h2W=f}f=h2W;return f},{mode:1});var $3t;var YY=function(){var f=_.K.apply(this,arguments)||this;f.useIcons=!1;f.systemIcons=_.J("kevlar_system_icons");f.useListItemStyles=_.J("web_list_item_style_for_menu_items");return f};
_.e(YY,_.K);_.R=YY.prototype;_.R.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.R.onFocus=function(){var f;(f=_.mF(this.hostElement).querySelector("tp-yt-paper-item"))==null||f.focus()};
_.R.onTap=function(){_.$E(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var f=this.data.serviceEndpoint,H=this.data.command;if(f){var v,t=(v=this.data)==null?void 0:v.trackingParams;v=!!_.U(f,_.D_b);t&&v&&_.vS().dispatch(_.yq({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:t}}));this.ytComponentBehavior.resolveCommand(f)||_.t8().resolve(_.MJ).resolveCommand(f,{form:{element:this.hostElement}})}H&&(this.ytComponentBehavior.resolveCommand(H)||_.Oj(this.hostElement,
[H],this.hostElement))};
_.R.computeIcon=function(f){return f&&f.iconType?_.SW(f.iconType):""};
_.R.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.R.computeHasSeparator=function(){var f;return!((f=this.data)==null||!f.hasSeparator)};
_.R.forceUpdateStylesOnLegacyBrowsers=function(){_.J("kevlar_legacy_browsers")&&_.Sr(this.hostElement)};
_.R.computeIsSelected=function(){var f;return!((f=this.data)==null||!f.isSelected)};
YY.prototype.forceUpdateStylesOnLegacyBrowsers=YY.prototype.forceUpdateStylesOnLegacyBrowsers;YY.prototype.onTap=YY.prototype.onTap;YY.prototype.onFocus=YY.prototype.onFocus;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],YY.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.fm),_.N("design:type",Object)],YY.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],YY.prototype,"ytComponentBehavior",void 0);
_.E([_.B(_.AvM.YtConditionalRendererBehavior),_.N("design:type",Object)],YY.prototype,"ytConditionalRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],YY.prototype,"data",void 0);_.E([_.F({computed:"computeIcon(data.icon)",value:""}),_.N("design:type",String)],YY.prototype,"icon",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],YY.prototype,"useIcons",void 0);
_.E([_.F({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.N("design:type",Boolean)],YY.prototype,"hasSeparator",void 0);_.E([_.F({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.N("design:type",Boolean)],YY.prototype,"isSelected",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],YY.prototype,"systemIcons",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],YY.prototype,"useListItemStyles",void 0);
_.E([_.sE("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YY.prototype,"onFocus",null);_.E([_.sE("tap"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],YY.prototype,"onTap",null);_.E([_.Zw("useIcons","hasSeparator"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YY.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.G(YY,"ytd-menu-service-item-renderer",function(){if($3t===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);$3t=f}f=$3t;return f},{mode:2});var WdW;var mX=function(){return _.K.apply(this,arguments)||this};
_.e(mX,_.K);_.R=mX.prototype;_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.onDataChanged=function(){var f=this;_.qV(this,function(){f.postbox.openDialog();f.focus();_.YE(f.hostElement,"yt-refit")})};
_.R.focus=function(){this.postbox.focus()};
_.R.closePopup=function(){_.mb(this.hostElement,"yt-close-popup-action")};
_.R.onYtCommentboxDismiss=function(){this.closePopup()};
mX.prototype.onYtCommentboxDismiss=mX.prototype.onYtCommentboxDismiss;mX.prototype.onDataChanged=mX.prototype.onDataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],mX.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],mX.prototype,"data",void 0);_.E([_.F({value:function(){return _.ZC("SBOX_INAPPROPRIATE_CANCEL")}}),
_.N("design:type",String)],mX.prototype,"closeButtonAriaLabel",void 0);_.E([_.lJ("#postbox"),_.N("design:type",Object)],mX.prototype,"postbox",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mX.prototype,"onDataChanged",null);_.E([_.sE("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mX.prototype,"onYtCommentboxDismiss",null);
_.E([_.u({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],mX);
_.G(mX,"ytd-backstage-post-dialog-popup-renderer",function(){if(WdW!==void 0)return WdW;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return WdW=f},{mode:1});var O_i;var $Y=function(){return _.K.apply(this,arguments)||this};
_.e($Y,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],$Y.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],$Y.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],$Y);
_.G($Y,"ytd-sender-id-section-renderer",function(){if(O_i!==void 0)return O_i;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);
return O_i=f},{mode:1});var gMt;var I1W;var S_A;var WF=function(){return _.K.apply(this,arguments)||this};
_.e(WF,_.K);WF.prototype.closePopup=function(){_.mb(this.hostElement,"yt-close-popup-action")};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],WF.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],WF.prototype,"data",void 0);_.E([_.GW({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],WF);
_.G(WF,"yt-community-post-section-renderer",function(){if(S_A===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;I1W===void 0&&(I1W=document.createElement("template"));var t=I1W;v.call(H,t.content.cloneNode(!0),f.content.firstChild);S_A=f}f=S_A;return f},{mode:2});var d3G;var jet;var ser;var Z_F;var Jor;var l15;var OY=function(){return _.K.apply(this,arguments)||this};
_.e(OY,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],OY.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],OY.prototype,"data",void 0);_.E([_.GW({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],OY);
_.G(OY,"yt-share-start-time-with-context-renderer",function(){if(l15===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;Jor===void 0&&(Jor=document.createElement("template"));var t=Jor;v.call(H,t.content.cloneNode(!0),f.content.firstChild);l15=f}f=l15;return f},{mode:2});var gx=function(){return _.K.apply(this,arguments)||this};
_.e(gx,_.K);gx.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],gx.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],gx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],gx.prototype,"data",void 0);_.E([_.GW({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],gx);
_.G(gx,"yt-share-panel-title-v15-renderer",function(){if(Z_F===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;ser===void 0&&(ser=document.createElement("template"));var t=ser;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Z_F=f}f=Z_F;return f},{mode:2});var IC=function(){return _.K.apply(this,arguments)||this};
_.e(IC,_.K);IC.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"}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],IC.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],IC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],IC.prototype,"data",void 0);_.E([_.GW({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],IC);
_.G(IC,"yt-share-panel-header-renderer",function(){if(jet===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;d3G===void 0&&(d3G=document.createElement("template"));var t=d3G;v.call(H,t.content.cloneNode(!0),f.content.firstChild);jet=f}f=jet;return f},{mode:2});var U30;var e2t;var Sw=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-open-popup-action":"onOpen"};return f};
_.e(Sw,_.K);_.R=Sw.prototype;_.R.attached=function(){this.onOpen()};
_.R.updateTimeSecs=function(f){this.currentTimeSecs=f};
_.R.computeTimeString=function(f){f=f.toString();var H=Math.floor(Number(f)/3600),v=Math.floor(Number(f)%3600%60);return(H>0?H+":":"")+_.wP(Math.floor(Number(f)%3600/60),H>0?2:1)+":"+_.wP(v,2)};
_.R.computeTimeStringA11y=function(f){f=_.SzT({seconds:f});var H=f.hours===void 0?0:f.hours,v=f.minutes===void 0?0:f.minutes,t=f.seconds===void 0?0:f.seconds;f=[];if(H>0){var M=X7W().format({hours:H});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.XG)||H>9999)M=M.replace(H.toString(),_.dBe(H)),_.XG==="km"&&(M=M.replace(".",","));f.push(M)}v>0&&f.push(X7W().format({minutes:v}));t>0&&f.push(X7W().format({seconds:t}));H="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");v=_.XG==
"am"?"{0}\u1363 ":_.XG=="fa"?"{0}\u060c\u200f ":_.XG=="my"?"{0} - ":_.XG=="ne"?"{0},":_.XG=="th"?"{0} ":_.XG=="ur"?"{0}\u060c ":_.XG=="ar"||_.XG=="ar-XB"?"{0} \u0648":_.XG=="ja"||_.XG=="zh-CN"||_.XG=="zh-HK"||_.XG=="zh-TW"?"{0}\u3001":"{0}, ";t=_.XG=="am"?"\u1363 ":_.XG=="fa"?"\u060c\u200f ":_.XG=="my"?" - ":_.XG=="th"?" ":_.XG=="ur"?"\u060c ":_.XG=="ar"||_.XG=="ar-XB"?" \u0648":_.XG=="ja"||_.XG=="zh-CN"||_.XG=="zh-HK"||_.XG=="zh-TW"?"\u3001":", ";M=_.XG=="am"?" \u12a5\u1293 {0}":_.XG=="as"?" \u0986\u09f0\u09c1 {0}":
_.XG=="az"?" v\u0259 {0}":_.XG=="bn"?" \u098f\u09ac\u0982 {0}":_.XG=="cs"?" a\u00a0{0}":_.XG=="de"?" und {0}":_.XG=="el"?" \u03ba\u03b1\u03b9 {0}":_.XG=="eu"?" eta {0}":_.XG=="fa"?"\u060c \u0648 {0}":_.XG=="fil"?", at {0}":_.XG=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.XG=="hi"?", \u0914\u0930 {0}":_.XG=="hu"?" \u00e9s {0}":_.XG=="hy"?" \u0587 {0}":_.XG=="id"?", dan {0}":_.XG=="iw"?" \u05d5-{0}":_.XG=="ja"?"\u3001{0}":_.XG=="ka"?" \u10d3\u10d0 {0}":_.XG=="km"?" \u1793\u17b7\u1784 {0}":_.XG=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.XG=="ko"?" \ubc0f {0}":_.XG=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.XG=="lt"?" ir {0}":_.XG=="lv"?" un {0}":_.XG=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.XG=="mr"?" \u0906\u0923\u093f {0}":_.XG=="ms"?" dan {0}":_.XG=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.XG=="ne"?" \u0930 {0}":_.XG=="or"?", \u0b13 {0}":_.XG=="pa"?" \u0a05\u0a24\u0a47 {0}":_.XG=="ro"?" \u0219i {0}":_.XG=="si"?", \u0dc3\u0dc4 {0}":_.XG=="sk"?" a {0}":_.XG=="sl"?" in {0}":_.XG=="sq"?" dhe {0}":_.XG=="sv"?" och {0}":
_.XG=="sw"?" na {0}":_.XG=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.XG=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.XG=="th"?" \u0e41\u0e25\u0e30{0}":_.XG=="tr"?" ve {0}":_.XG=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.XG=="uz"?" va {0}":_.XG=="vi"?" v\u00e0 {0}":_.XG=="zh-HK"?"\u53ca{0}":_.XG=="zu"?", ne-{0}":_.XG=="af"||_.XG=="nl"?" en {0}":_.XG=="ar"||_.XG=="ar-XB"?" \u0648{0}":_.XG=="be"||_.XG=="uk"?" \u0456 {0}":_.XG=="en-GB"||_.XG=="en-IN"?" and {0}":_.XG=="en"||_.XG=="en-XA"?
", and {0}":_.XG=="et"||_.XG=="fi"?" ja {0}":_.XG=="fr"||_.XG=="fr-CA"?" et {0}":_.XG=="zh-CN"||_.XG=="zh-TW"?"\u548c{0}":_.XG=="da"||_.XG=="is"||_.XG=="no"?" og {0}":_.XG=="es"||_.XG=="es-419"||_.XG=="es-US"?" y {0}":_.XG=="kk"||_.XG=="lo"||_.XG=="mn"?", {0}":_.XG=="bg"||_.XG=="mk"||_.XG=="ru"||_.XG=="sr"?" \u0438 {0}":_.XG=="gl"||_.XG=="it"||_.XG=="pt-BR"||_.XG=="pt-PT"?" e {0}":" i {0}";var h=_.XG=="am"?"{0} \u12a5\u1293 {1}":_.XG=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.XG=="az"?"{0} v\u0259 {1}":
_.XG=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.XG=="de"?"{0} und {1}":_.XG=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.XG=="eu"?"{0} eta {1}":_.XG=="fa"?"{0} \u0648 {1}":_.XG=="fil"?"{0} at {1}":_.XG=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.XG=="hi"?"{0} \u0914\u0930 {1}":_.XG=="hu"?"{0} \u00e9s {1}":_.XG=="hy"?"{0} \u0587 {1}":_.XG=="iw"?"{0} \u05d5-{1}":_.XG=="ja"?"{0}\u3001{1}":_.XG=="ka"?"{0} \u10d3\u10d0 {1}":_.XG=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.XG=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.XG=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.XG=="ko"?"{0} \ubc0f {1}":_.XG=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.XG=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.XG=="lt"?"{0} ir {1}":_.XG=="lv"?"{0} un {1}":_.XG=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.XG=="mn"?"{0}, {1}":_.XG=="mr"?"{0} \u0906\u0923\u093f {1}":_.XG=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.XG=="ne"?"{0} \u0930 {1}":_.XG=="or"?"{0} \u0b13 {1}":_.XG=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.XG=="ro"?"{0} \u0219i {1}":_.XG==
"si"?"{0} \u0dc3\u0dc4 {1}":_.XG=="sl"?"{0} in {1}":_.XG=="sq"?"{0} dhe {1}":_.XG=="sv"?"{0} och {1}":_.XG=="sw"?"{0} na {1}":_.XG=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.XG=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.XG=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.XG=="tr"?"{0} ve {1}":_.XG=="ur"?"{0} \u0627\u0648\u0631 {1}":_.XG=="uz"?"{0} va {1}":_.XG=="vi"?"{0} v\u00e0 {1}":_.XG=="zh-HK"?"{0}\u53ca{1}":_.XG=="zu"?"{0} ne-{1}":_.XG=="af"||_.XG=="nl"?"{0} en {1}":_.XG=="ar"||_.XG==
"ar-XB"?"{0} \u0648{1}":_.XG=="be"||_.XG=="uk"?"{0} \u0456 {1}":_.XG=="cs"||_.XG=="sk"?"{0} a\u00a0{1}":_.XG=="et"||_.XG=="fi"?"{0} ja {1}":_.XG=="fr"||_.XG=="fr-CA"?"{0} et {1}":_.XG=="id"||_.XG=="ms"?"{0} dan {1}":_.XG=="zh-CN"||_.XG=="zh-TW"?"{0}\u548c{1}":_.XG=="da"||_.XG=="is"||_.XG=="no"?"{0} og {1}":_.XG=="es"||_.XG=="es-419"||_.XG=="es-US"?"{0} y {1}":_.XG=="bg"||_.XG=="mk"||_.XG=="ru"||_.XG=="sr"?"{0} \u0438 {1}":_.XG=="en"||_.XG=="en-GB"||_.XG=="en-IN"||_.XG=="en-XA"?"{0} and {1}":_.XG==
"gl"||_.XG=="it"||_.XG=="pt-BR"||_.XG=="pt-PT"?"{0} e {1}":"{0} i {1}";_.XG==="sq"?(M=M.replace("dhe","e"),h=h.replace("dhe","e")):_.XG==="th"?(t=t.replace("{0}"," {0}"),h=h.replace("{0}","{0} "),h=h.replace("{1}"," {1}")):_.XG==="ne"?t=",":_.XG==="zh-CN"?t="":H.includes(_.XG)&&(t=" ");return f.length<2?f.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(_.XG)?f.length===2?
h.replace("{0}",f[0]).replace("{1}",f[1]):v.replace("{0}",f[0])+f.slice(1,-1).join(t)+M.replace("{0}",f[f.length-1]):f.join(t)};
_.R.getTimeParam=function(){return mEx(this.timeString)};
_.R.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var f={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},H;_.WL(_.UV(),(H=this.data)==null?void 0:H.trackingParams,f,7)};
_.R.onChangeStartAtTimestamp=function(){for(var f=this.startAtTimestamp.value.split(":"),H=0,v=1,t=f.length-1;t>=0;t--)H+=Number(f[t])*v,v*=60;this.updateTimeSecs(H);this.setTimestamp()};
_.R.onOpen=function(){var f=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var H=_.vx();H?H.getPlayerPromise().then(function(v){v=v.getCurrentTime();f.updateTimeSecs(v)}):Nj0()&&this.updateTimeSecs(Nj0())};
_.R.setTimestamp=function(){var f=Math.floor(this.currentTimeSecs);_.mb(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!f,timestamp:f||""}])};
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Sw.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Sw.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Sw.prototype,"data",void 0);_.E([_.F({value:!1,notify:!0}),_.N("design:type",Boolean)],Sw.prototype,"isStartAtChecked",void 0);_.E([_.F(),_.N("design:type",Number)],Sw.prototype,"currentTimeSecs",void 0);
_.E([_.F({computed:"computeTimeString(currentTimeSecs)"}),_.N("design:type",String)],Sw.prototype,"timeString",void 0);_.E([_.F({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.N("design:type",String)],Sw.prototype,"timeStringA11y",void 0);_.E([_.lJ("#start-at-timestamp"),_.N("design:type",Object)],Sw.prototype,"startAtTimestamp",void 0);_.E([_.GW({is:"yt-start-at-renderer",disableElementRegistration:!0})],Sw);
_.G(Sw,"yt-start-at-renderer",function(){if(e2t===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;U30===void 0&&(U30=document.createElement("template"));var t=U30;v.call(H,t.content.cloneNode(!0),f.content.firstChild);e2t=f}f=e2t;return f},{mode:2});var Ldt;var x3h;var BzW=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"]]),z2w=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"]]),FdA=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var roi={};roi.YtBindingExpressionsBehavior={identity:_.Cg,msg:function(f,H){H=H===void 0?{}:H;return _.ZC(f,H,f)},
msgPlural:function(f,H){return _.JX(f,H)},
getMusicIconFromType:function(f){if(_.J("music_web_enable_icon_wil"))f=_.SW(f);else if(z2w.has(f))f="yt-sys-icons:"+z2w.get(f);else{var H=BzW.get(f)||_.SW(f).split(":")[1];H=_.cPb(H);var v;f=((v=FdA.get(f))!=null?v:"yt-sys-icons:")+H}return f}};var Kd5;var D3r;var oMb;var nMx=document.head,pOx=nMx.appendChild,Qex;if(oMb===void 0){var uCW=document.createElement("template");_.x(uCW,'\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>');oMb=uCW}Qex=oMb;pOx.call(nMx,Qex.content);var dx=function(){var f=_.K.apply(this,arguments)||this;f.screenLayer=7;return f};
_.e(dx,_.K);dx.prototype.getScreenLayer=function(){return this.screenLayer};
dx.prototype.onTap=function(f){f&&f.detail&&(f.detail.x||f.detail.y)&&_.mF(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.WV(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(f=this.getScreenLayer(),_.YE(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:f}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.H7.Object.defineProperties(dx.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()}}});
dx.prototype.onTap=dx.prototype.onTap;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],dx.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],dx.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],dx.prototype,"data",void 0);_.E([_.z("data.title"),_.N("design:type",Object),_.N("design:paramtypes",[])],dx.prototype,"title",null);
_.E([_.z("data.serviceName"),_.N("design:type",String),_.N("design:paramtypes",[])],dx.prototype,"icon",null);_.E([_.sE("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],dx.prototype,"onTap",null);_.E([_.GW({is:"yt-share-target-renderer",disableElementRegistration:!0})],dx);
_.G(dx,"yt-share-target-renderer",function(){if(D3r===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;Kd5===void 0&&(Kd5=document.createElement("template"));var t=Kd5;v.call(H,t.content.cloneNode(!0),f.content.firstChild);D3r=f}f=D3r;return f},{mode:2});var a1p;var Pnr;var jw=function(){var f=_.K.apply(this,arguments)||this;f.SHARE_TARGET_WIDTH=70;f.SHARE_TARGET_MARGIN_RIGHT=8;f.PAGE_SCROLL_SPEED=9;f.actionMap={"yt-share-panel-reset-action":"onReset_"};return f};
_.e(jw,_.K);_.R=jw.prototype;_.R.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.R.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.mF(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.mF(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.R.onReset_=function(){if(_.mF(this.hostElement).querySelector("#list")){var f=_.mF(this.hostElement).querySelector("#list");var H=_.mF(this.hostElement).querySelector("#list");var v=H.offsetLeft,t=H.offsetParent;t||_.Mpn(H)!="fixed"||(t=_.Gf(H).documentElement);if(t){if(_.hZ&&!_.VB(58)){var M=_.WWh(t);v+=M.left}else Number(_.rI_)>=8&&!(Number(_.rI_)>=9)&&(M=_.WWh(t),v-=M.left);H=_.mxM(t)?t.clientWidth-(v+H.offsetWidth):v}else H=v;p1x(f,H);this.updateScrollButtons_()}};
_.R.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.R.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.R.onScrollWheel_=function(f){f.stopPropagation();f.preventDefault();var H=nft(_.mF(this.hostElement).querySelector("#list"));f=Math.abs(f.deltaX)>Math.abs(f.deltaY)?f.deltaX:f.deltaY;p1x(_.mF(this.hostElement).querySelector("#list"),H+f);this.updateScrollButtons_()};
_.R.smoothScrollByOnePage_=function(f){var H=_.mF(this.hostElement).querySelector("#list"),v=(Math.floor(H.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,t=nft(H),M=v*(f?1:-1),h=this.PAGE_SCROLL_SPEED,y=this.updateScrollButtons_.bind(this),m=0,W;(function S(){m+=h;W=m/v*2;p1x(H,t+M*(W<1?W*W:-W*W+4*W-2));m<v?window.requestAnimationFrame(S):y()})()};
_.R.updateScrollButtons_=function(){var f=nft(_.mF(this.hostElement).querySelector("#list")),H=_.mF(this.hostElement).querySelector("#list").scrollWidth-_.mF(this.hostElement).querySelector("#list").clientWidth;_.mF(this.hostElement).querySelector("#scroll-button-back").hidden=f<=0;_.mF(this.hostElement).querySelector("#scroll-button-forward").hidden=f>=H};
jw.prototype.onScrollWheel_=jw.prototype.onScrollWheel_;jw.prototype.onDataChanged_=jw.prototype.onDataChanged_;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],jw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],jw.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(roi.YtBindingExpressionsBehavior),_.N("design:type",Object)],jw.prototype,"ytBindingExpressionsBehavior",void 0);
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],jw.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],jw.prototype,"data",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jw.prototype,"onDataChanged_",null);_.E([_.sE("wheel"),_.N("design:type",Function),_.N("design:paramtypes",[WheelEvent]),_.N("design:returntype")],jw.prototype,"onScrollWheel_",null);
_.E([_.GW({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],jw);
_.G(jw,"yt-third-party-share-target-section-renderer",function(){if(Pnr===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;a1p===void 0&&(a1p=document.createElement("template"));var t=a1p;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Pnr=f}f=Pnr;return f},{mode:2});var sY=function(){return _.K.apply(this,arguments)||this};
_.e(sY,_.K);sY.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"}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],sY.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],sY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],sY.prototype,"data",void 0);_.E([_.GW({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],sY);
_.G(sY,"yt-third-party-network-section-renderer",function(){if(x3h===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;Ldt===void 0&&(Ldt=document.createElement("template"));var t=Ldt;v.call(H,t.content.cloneNode(!0),f.content.firstChild);x3h=f}f=x3h;return f},{mode:2});_.yn(_.a(function(f){return _.O("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.O("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.O(_.Jj,{data:function(){return f.data().firstPartyItems}},{listItemViewModel:_.pB})))},"gh"),"first-party-network-section-view-model",{props:{data:_.ki}});var Ggw=_.EH(["data:image/svg+xml;charset=UTF-8;base64,",""]),ZW=function(){var f=_.K.apply(this,arguments)||this;f.screenLayer=7;f.qrCodeEnabled=_.J("web_enable_sharing_qr_code");f.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return f};
_.e(ZW,_.K);_.R=ZW.prototype;_.R.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"}}}};
_.R.attached=function(){this.JSC$20027_scroller&&(this.JSC$20027_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20027_scroller.attached&&typeof this.JSC$20027_scroller.attached==="function"&&this.JSC$20027_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.R.onDataChanged=function(){var f=this,H;(H=this.data)!=null&&H.contents&&(this.hostElement.setAttribute("links-only","true"),_.OE(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.qV(this,function(){_.YE(f.hostElement,"yt-refit");f.focusSharePanelHeader()}))};
_.R.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.R.handleSetTimestamp=function(f){var H=this.shortUrl();f.isSet&&(H=_.us(H,"t",f.timestamp));this.maybeRenderQrCode(H)};
_.R.shortUrl=function(){var f,H=(f=this.data)==null?void 0:f.contents;if(H)for(f=0;f<H.length;f++){var v=void 0,t=void 0;if((v=H[f])==null?0:(t=v.thirdPartyNetworkSection)==null?0:t.copyLinkContainer){var M=t=v=void 0;return(M=_.U((v=H[f])==null?void 0:(t=v.thirdPartyNetworkSection)==null?void 0:t.copyLinkContainer,QjA))==null?void 0:M.shortUrl}}};
_.R.maybeRenderQrCode=function(f){var H=this,v,t,M,h,y,m,W,I,S;return _.Y(function(d){if(d.nextAddress==1){v=_.mF(H.hostElement).querySelector("#qr-code");if(!H.qrCodeEnabled||!f)return v&&(v.style.display="none"),d.return();t=_.qmR(_.t8().resolve(_.d9),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});M=document.createElement("div");return typeof t==="function"?(t(M),d.jumpTo(2)):d.yield(t,3)}d.nextAddress!=2&&(h=d.yieldResult,h(M));W=(y=M)==null?void 0:(m=y.firstChild)==null?void 0:m.firstChild;
I=document.createElement("img");S=_.boe(Ggw,btoa(W.outerHTML));I.onload=function(){var Z={canvas:v,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:I},l=new S6p;ln0(l,f);USb(l,!1,e90(l));var L=l.modules,r=Object.assign({},B_F,Z);L=structuredClone(L);Z=L.length;var n,Q=(n=r.canvas)!=null?n:document.createElement("canvas");n=r.cellSize;l=r.logo;var C,w=(C=r.logoSize)!=null?C:Math.floor(Z/4);Z%2!==w%2&&w++;var c=r.logoPadding,A=r.backgroundColor;C=Z*n;var X=
r.width,fg=0;X&&(fg=r.padding,fg=Math.ceil(fg*C/(X-fg*2)),Q.style.width=X+"px",Q.style.height=X+"px");Q.width!==C+fg*2&&(Q.width=C+fg*2);Q.height!==C+fg*2&&(Q.height=C+fg*2);C=Q.getContext("2d");r.autoClear&&C.clearRect(0,0,Q.width,Q.height);C.fillStyle=A;C.beginPath();C.roundRect(0,0,Q.width,Q.height,r.borderRadius);C.fill();C.save();C.translate(fg,fg);if(l)for(Q=Math.floor(Z-w)/2-c,c=Math.floor(Z+w)/2+c,A=Q;A<c;A++)for(X=Q;X<c;X++)L[A][X]=!1;for(Q=0;Q<Z;Q++)for(c=0;c<Z;c++)(Q<7&&c<7||Q<7&&c>=Z-
7||Q>=Z-7&&c<7)&&(L[Q][c]=!1);var gB;Q=(gB=r.markerColor)!=null?gB:r.color;xSp(C,0,0,n,Q);xSp(C,n*(Z-7),0,n,Q);xSp(C,0,n*(Z-7),n,Q);switch(r.cellStyle){case 0:gB=L;L=gB.length;Q=r.cellSize;C.beginPath();for(c=0;c<L;c++)for(A=0;A<L;A++)gB[c][A]&&C.rect(c*Q,A*Q,Q,Q);C.fillStyle=r.color;C.fill();break;case 1:gB=L;L=gB.length;Q=r.cellSize;c=Q*r.relativeCircleSize;C.fillStyle=r.color;C.beginPath();for(r=0;r<L;r++)for(A=0;A<L;A++)gB[r][A]&&(C.beginPath(),C.ellipse((r+.5)*Q,(A+.5)*Q,c/2,c/2,0,0,2*Math.PI),
C.fill());C.fill();break;case 2:gB=L;L=gB.length;Q=r.cellSize;C.fillStyle=r.color;r=[[1,1],[-1,1],[-1,-1],[1,-1]];C.beginPath();for(c=0;c<L;c++)for(A=0;A<L;A++)if(gB[c][A])C.roundRect(c*Q,A*Q,Q,Q,Q/2),c+1<L&&gB[c+1][A]&&C.rect(c*Q+Q/2,A*Q,Q,Q),A+1<L&&gB[c][A+1]&&C.rect(c*Q,A*Q+Q/2,Q,Q);else{X=c*Q+Q/2;fg=A*Q+Q/2;for(var O5=0;O5<4;O5++){var s5=_.V(r[O5]),U5=s5.next().value;s5=s5.next().value;c+U5>=0&&c+U5<L&&A+s5>=0&&A+s5<L&&gB[c+U5][A]&&gB[c][A+s5]&&gB[c+U5][A+s5]&&(U5=O5*Math.PI/2,s5=Q/2,C.moveTo(X+
s5*Math.cos(U5),fg+s5*Math.sin(U5)),C.arc(X,fg,Q/2,U5,U5+Math.PI/2,!1),C.lineTo(X+s5*(Math.cos(U5)-Math.sin(U5)),fg+s5*(Math.cos(U5)+Math.sin(U5))),C.lineTo(X+s5*Math.cos(U5),fg+s5*Math.sin(U5)))}}C.fill()}l&&C.drawImage(l,(Z-w)*n/2,(Z-w)*n/2,w*n,w*n);C.restore();v.style.removeProperty("display")};
I.src=_.QO(S);_.Bj(d)})};
_.R.hasCommunityPostRenderer=function(){var f,H,v,t;return!!((f=this.data)==null?0:(H=f.header)==null?0:(v=H.sharePanelHeaderRenderer)==null?0:(t=v.communityPost)==null?0:t.communityPostSectionRenderer)};
_.R.onTapClose=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.R.getScreenLayer=function(){return this.screenLayer};
_.R.logSharePanelPage=function(){if(!_.J("enable_share_panel_navigation_logging_fix_on_web")){var f;if((f=this.data)!=null&&f.trackingParams){f=this.data.trackingParams;var H=this.parentClickTrackingParams;H=H?_.zK(H):void 0;var v=_.UV();_.y8(v,21760,H,{layer:7,parentLayer:0});v.graftServerVe(f,void 0,7);_.vS().dispatch(_.yq({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
ZW.prototype.onDataChanged=ZW.prototype.onDataChanged;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],ZW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ZW.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],ZW.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],ZW.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],ZW.prototype,"data",void 0);_.E([_.F({value:_.ZC("SBOX_INAPPROPRIATE_CANCEL")}),_.N("design:type",String)],ZW.prototype,"closeButtonAriaLabel",void 0);_.E([_.lJ("yt-share-panel-header-renderer"),_.N("design:type",HTMLElement)],ZW.prototype,"header",void 0);_.E([_.F({selector:function(f){return f.share.parentClickTrackingParams}}),
_.N("design:type",String)],ZW.prototype,"parentClickTrackingParams",void 0);_.E([_.F(),_.N("design:type",Object)],ZW.prototype,"qrCodeEnabled",void 0);_.E([_.lJ("#scroller"),_.N("design:type",Object)],ZW.prototype,"JSC$20027_scroller",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ZW.prototype,"onDataChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],ZW);
_.G(ZW,"ytd-unified-share-panel-renderer",function(){if(gMt!==void 0)return gMt;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return gMt=f},{mode:1});var Cnx;var Jw=function(){var f=_.K.apply(this,arguments)||this;f.modernModal=!0;return f};
_.e(Jw,_.K);Jw.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
Jw.prototype.computeShouldHideOldButtons=function(){var f;return!((f=this.data)==null?0:f.button)};
_.H7.Object.defineProperties(Jw.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var f,H;return(f=this.data)==null?void 0:(H=f.button)==null?void 0:H.buttonRenderer}}});
_.E([_.F(),_.N("design:type",Object)],Jw.prototype,"data",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Jw.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.lv.YtEventForwardingBehavior),_.N("design:type",Object)],Jw.prototype,"ytEventForwardingBehavior",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Jw.prototype,"modernModal",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Jw.prototype,"buttonRendererData",null);
_.E([_.u({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],Jw);
_.G(Jw,"ytd-modal-with-title-and-button-renderer",function(){if(Cnx!==void 0)return Cnx;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Cnx=f},{mode:1});var EMw;var l_=function(){return _.K.apply(this,arguments)||this};
_.e(l_,_.K);l_.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.bM("page-changed",this.page))};
l_.prototype.pageChangedForBinding=l_.prototype.pageChangedForBinding;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],l_.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],l_.prototype,"data",void 0);_.E([_.F(),_.N("design:type",String)],l_.prototype,"page",void 0);_.E([_.Zw("page"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],l_.prototype,"pageChangedForBinding",null);
_.E([_.u({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],l_);
_.G(l_,"ytd-account-item-section-header-renderer",function(){if(EMw!==void 0)return EMw;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return EMw=f},{mode:1});var Nzi;var UY=function(){return _.K.apply(this,arguments)||this};
_.e(UY,_.K);UY.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"}}}};
UY.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],UY.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],UY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.E_),_.N("design:type",Object)],UY.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],UY.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!1}),_.N("design:type",Function)],UY.prototype,"onAccountItemTap",void 0);
_.E([_.u({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],UY);
_.G(UY,"ytd-account-item-section-renderer",function(){if(Nzi!==void 0)return Nzi;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Nzi=f},{mode:1});var coA;var XOh;var ew=function(){return _.K.apply(this,arguments)||this};
_.e(ew,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ew.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],ew.prototype,"data",void 0);_.E([_.u({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],ew);
_.G(ew,"ytd-accounts-dialog-header-renderer",function(){if(XOh!==void 0)return XOh;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return XOh=f},{mode:1});var Ao0;var LC=function(){return _.K.apply(this,arguments)||this};
_.e(LC,_.K);LC.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],LC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],LC.prototype,"data",void 0);_.E([_.u({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],LC);
_.G(LC,"ytd-google-account-header-renderer",function(){if(Ao0!==void 0)return Ao0;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Ao0=f},{mode:1});var xY=function(){return _.K.apply(this,arguments)||this};
_.e(xY,_.K);xY.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"}}}};
xY.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.bM("page-changed",this.page))};
xY.prototype.pageChangedForBinding=xY.prototype.pageChangedForBinding;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],xY.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],xY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],xY.prototype,"data",void 0);_.E([_.F(),_.N("design:type",String)],xY.prototype,"page",void 0);
_.E([_.Zw("page"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xY.prototype,"pageChangedForBinding",null);_.E([_.u({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],xY);
_.$6()(xY,"ytd-account-section-list-renderer",function(){if(coA===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);coA=f}f=coA;return f},{allowedProps:["data"],
mode:1});var b_F;var BF=function(){var f=_.K.apply(this,arguments)||this;f.enableHandlesAccountMenuSwitcher=_.J("enable_handles_account_menu_switcher");return f};
_.e(BF,_.K);BF.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
BF.prototype.dataChanged=BF.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],BF.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],BF.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],BF.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.E([_.lJ("#avatar"),_.N("design:type",Object)],BF.prototype,"avatar",void 0);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BF.prototype,"dataChanged",null);_.E([_.u({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],BF);
_.$6()(BF,"ytd-active-account-header-renderer",function(){if(b_F===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);b_F=f}f=b_F;return f},{allowedProps:["data"],
mode:1});var i_h;var kgh;var zR=function(){return _.K.apply(this,arguments)||this};
_.e(zR,_.K);zR.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
zR.prototype.onBackTap=function(){_.YE(this.hostElement,"yt-menu-back-tapped")};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],zR.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],zR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],zR.prototype,"data",void 0);_.E([_.u({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],zR);
_.$6()(zR,"ytd-simple-menu-header-renderer",function(){if(kgh===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);kgh=f}f=kgh;return f},{allowedProps:["data"],
mode:2});var Tzi;var F5=function(){return _.K.apply(this,arguments)||this};
_.e(F5,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],F5.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],F5.prototype,"data",void 0);_.E([_.u({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],F5);
_.G(F5,"ytd-comment-video-thumbnail-header-renderer",function(){if(Tzi!==void 0)return Tzi;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Tzi=f},{mode:1});var wOA;var rx=function(){return _.K.apply(this,arguments)||this};
_.e(rx,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],rx.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],rx.prototype,"data",void 0);_.E([_.u({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],rx);
_.G(rx,"ytd-abuse-type-selector-renderer",function(){if(wOA!==void 0)return wOA;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return wOA=f},{mode:1});var q_5;var KC=function(){return _.K.apply(this,arguments)||this};
_.e(KC,_.K);KC.prototype.attached=function(){var f=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){f.additionalContextInput.focusTextInput()})};
KC.prototype.handleAdditionalContextChanged=function(){var f=this;_.iJ(this,"ytd-report-channel-additional-context-update",function(){f.ytdReduxBehavior.dispatch(_.yq({type:"ADDITIONAL_CONTEXT_UPDATED",payload:f.additionalContext}))},300)};
KC.prototype.updateAdditionalContextFromBinding=function(f){this.additionalContext=f.detail.value};
KC.prototype.handleAdditionalContextChanged=KC.prototype.handleAdditionalContextChanged;_.E([_.B(_.um),_.N("design:type",Object)],KC.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",String)],KC.prototype,"additionalContext",void 0);_.E([_.F({selector:function(f){return f.reportChannelAbuse.additionalContext}}),
_.N("design:type",String)],KC.prototype,"additionalContextRedux",void 0);_.E([_.F(),_.N("design:type",Object)],KC.prototype,"data",void 0);_.E([_.lJ("yt-text-input-form-field-renderer"),_.N("design:type",Object)],KC.prototype,"additionalContextInput",void 0);_.E([_.Zw("additionalContext"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],KC.prototype,"handleAdditionalContextChanged",null);
_.E([_.u({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],KC);
_.G(KC,"ytd-report-channel-modal-additional-context-renderer",function(){if(q_5!==void 0)return q_5;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return q_5=f},{mode:1});var f2G;var DW=function(){var f=_.K.apply(this,arguments)||this;f.nextButtonDisabled=null;f.submitEndpoint=null;f.navigationEndpoint=null;f.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return f};
_.e(DW,_.K);_.R=DW.prototype;_.R.computeNextButtonData=function(f,H,v){var t={};H&&(t.navigationEndpoint=H);v&&(t.serviceEndpoint=v);f&&f.buttonRenderer&&_.QA.extend(t,f.buttonRenderer);return t};
_.R.handleReportChannelModalDisableNextButtonAction=function(f){this.setNextButtonIsDisabled(f)};
_.R.handleReportFormEndpointUpdateAction=function(f){this.setNextButtonIsDisabled(!!f.disableSubmitButton);this.resetEndpointData();f.submitEndpoint?this.submitEndpoint=f.submitEndpoint:f.submitNavigationEndpoint&&(this.navigationEndpoint=f.submitNavigationEndpoint)};
_.R.handleSignalActionSubmitForm=function(){var f,H=Object.keys(((f=this.reportChannelAbuseForm)==null?void 0:f.selectedVideoIds)||{}),v;f=((v=this.reportChannelAbuseForm)==null?void 0:v.additionalContext)||"";var t;v=((t=this.reportChannelAbuseForm)==null?void 0:t.impersonatedChannelUrl)||"";var M;if((M=this.data)==null?0:M.submitEndpoint){H={impersonated_channel_url:v,text:f,video_ids:H};var h;_.t8().resolve(_.MJ).resolveCommand((h=this.data)==null?void 0:h.submitEndpoint,{form:Object.assign({},
H,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.R.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.R.onYtServiceRequestError=function(f){this.setNextButtonIsDisabled(!1);_.Xs(this.hostElement,f.detail.error.message)};
_.R.setNextButtonIsDisabled=function(f){this.set("data.nextButton.buttonRenderer.isDisabled",f)};
_.R.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
DW.prototype.onYtServiceRequestError=DW.prototype.onYtServiceRequestError;DW.prototype.onYtServiceRequestCompleted=DW.prototype.onYtServiceRequestCompleted;_.E([_.F(),_.N("design:type",Object)],DW.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],DW.prototype,"nextButtonDisabled",void 0);_.E([_.B(_.um),_.N("design:type",Object)],DW.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],DW.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],DW.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],DW.prototype,"submitEndpoint",void 0);_.E([_.F(),_.N("design:type",Object)],DW.prototype,"navigationEndpoint",void 0);_.E([_.F({selector:function(f){return f.reportChannelAbuse}}),
_.N("design:type",Object)],DW.prototype,"reportChannelAbuseForm",void 0);_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],DW.prototype,"onYtServiceRequestCompleted",null);_.E([_.sE("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],DW.prototype,"onYtServiceRequestError",null);
_.E([_.u({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],DW);
_.G(DW,"ytd-report-channel-modal-footer-renderer",function(){if(f2G!==void 0)return f2G;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return f2G=f},{mode:1});var HkF;var oC=function(){var f=_.K.apply(this,arguments)||this;f.boundOnTapDismissButton=function(){f.closePopup()};
return f};
_.e(oC,_.K);oC.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
oC.prototype.handleDataChanged=function(){_.kX(this.hostElement)};
oC.prototype.closePopup=function(){_.mb(this.hostElement,"yt-close-popup-action")};
oC.prototype.handleDataChanged=oC.prototype.handleDataChanged;_.E([_.F(),_.N("design:type",Object)],oC.prototype,"boundOnTapDismissButton",void 0);_.E([_.F(),_.N("design:type",Object)],oC.prototype,"data",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],oC.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],oC.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oC.prototype,"handleDataChanged",null);_.E([_.u({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],oC);
_.G(oC,"ytd-report-channel-modal-header-renderer",function(){if(HkF!==void 0)return HkF;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return HkF=f},{mode:1});var vCW;var nC=function(){var f=_.K.apply(this,arguments)||this;f.autoValidate=!1;f.invalid=!1;f.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return f};
_.e(nC,_.K);_.R=nC.prototype;_.R.attached=function(){var f=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){f.channelUrlInput.focusTextInput()})};
_.R.disableNextButton=function(f){_.mb(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[f])};
_.R.handleImpersonatedChannelUrlChanged=function(){var f=this;this.disableNextButton(!0);this.invalid=!1;_.iJ(this,"ytd-report-channel-impersonated-channel-update",function(){var H=f.impersonatedChannelUrl.trim();f.ytdReduxBehavior.dispatch(_.yq({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:H}));var v;((v=f.data)==null?0:v.submitEndpoint)&&H&&_.t8().resolve(_.MJ).resolveCommand(f.data.submitEndpoint,{form:{impersonated_channel_url:H,element:f.hostElement}})},500)};
_.R.handleModifyReportFormCommand=function(f){this.invalid=this.get("modifyReportFormCommand.action",f)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.R.updateInvalidFromBinding=function(f){this.invalid=f.detail.value};
_.R.updateImpersonatedChannelUrlFromBinding=function(f){this.impersonatedChannelUrl=f.detail.value};
nC.prototype.handleImpersonatedChannelUrlChanged=nC.prototype.handleImpersonatedChannelUrlChanged;_.E([_.B(_.um),_.N("design:type",Object)],nC.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],nC.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],nC.prototype,"autoValidate",void 0);_.E([_.F(),_.N("design:type",Object)],nC.prototype,"invalid",void 0);
_.E([_.F(),_.N("design:type",String)],nC.prototype,"impersonatedChannelUrl",void 0);_.E([_.F({selector:function(f){return f.reportChannelAbuse.impersonatedChannelUrl}}),
_.N("design:type",String)],nC.prototype,"impersonatedChannelUrlRedux",void 0);_.E([_.F(),_.N("design:type",Object)],nC.prototype,"data",void 0);_.E([_.lJ("#text-input"),_.N("design:type",Object)],nC.prototype,"channelUrlInput",void 0);_.E([_.Zw("impersonatedChannelUrl"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nC.prototype,"handleImpersonatedChannelUrlChanged",null);
_.E([_.u({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],nC);
_.G(nC,"ytd-report-channel-modal-impersonation-renderer",function(){if(vCW!==void 0)return vCW;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return vCW=f},{mode:1});var tur;var MuF;var pC=function(){return _.K.apply(this,arguments)||this};
_.e(pC,_.K);pC.prototype.onCheckboxToggled=function(f){var H,v,t=(v=_.U((H=this.data)==null?void 0:H.video,_.QD))==null?void 0:v.videoId;t&&this.ytdReduxBehavior.dispatch(f.target.checked?_.yq({type:"VIDEO_SELECTED",payload:t}):_.yq({type:"VIDEO_UNSELECTED",payload:t}))};
pC.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.H7.Object.defineProperties(pC.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var f,H=(f=this.data)==null?void 0:f.video;if(!H)return{};var v;f=(v=_.U(H,_.QD))==null?void 0:v.navigationEndpoint;if(!f)return H;_.U(f==null?void 0:f.commandMetadata,_.jG)&&(_.U(f.commandMetadata,_.jG).ignoreNavigation=!0);return H}}});
_.E([_.F({reflectToAttribute:!0,selector:function(f,H){return H in f.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.N("design:type",Boolean)],pC.prototype,"checked",void 0);_.E([_.F(),_.N("design:type",Object)],pC.prototype,"data",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],pC.prototype,"video",null);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],pC.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],pC.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.B(_.um),_.N("design:type",Object)],pC.prototype,"ytdReduxBehavior",void 0);_.E([_.u({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],pC);
_.G(pC,"ytd-selectable-video-renderer",function(){if(MuF!==void 0)return MuF;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return MuF=f},{mode:1});var QT=function(){var f=_.K.apply(this,arguments)||this;f.monitorScroll=!0;return f};
_.e(QT,_.K);QT.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],QT.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],QT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],QT.prototype,"data",void 0);_.E([_.u({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],QT);
_.G(QT,"ytd-selectable-video-list-renderer",function(){if(tur!==void 0)return tur;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return tur=f},{mode:1});var hhh;_.DE("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var u_=function(){return _.K.apply(this,arguments)||this};
_.e(u_,_.K);u_.prototype.onChange=function(f){if(f=_.HB(f).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.J("kevlar_command_handler_migration_killswitch"))_.Oj(this.hostElement,f,this.hostElement);else{f=_.V(f);for(var H=f.next();!H.done;H=f.next())this.ytComponentBehavior.resolveCommand(H.value)}};
u_.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
u_.prototype.updateDataToggledFromBinding=function(f){this.set("data.toggled",f.detail.value)};
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],u_.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],u_.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],u_.prototype,"data",void 0);_.E([_.F({computed:"isEnabled(data)"}),_.N("design:type",Boolean)],u_.prototype,"enabled",void 0);_.E([_.u({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],u_);
_.G(u_,"ytd-toggle-item-renderer",function(){if(hhh!==void 0)return hhh;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return hhh=f},{mode:1});var Rhw;var Vuh;var y1b;var aC=function(){var f=_.K.apply(this,arguments)||this;f.setVisible=!1;f.boundOnSubmitButtonClick=function(){f.onSubmitButtonClick()};
f.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return f};
_.e(aC,_.K);aC.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}}}}}};
aC.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
aC.prototype.onSubmitButtonClick=function(){var f;((f=this.data)==null?0:f.submitEndpoint)&&!_.J("enable_ytc_refunds_submit_form_signal_action")&&_.WV(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
aC.prototype.handleSignalActionSubmitForm=function(){var f;((f=this.data)==null?0:f.submitEndpoint)&&_.WV(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.H7.Object.defineProperties(aC.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.hiddenByDefault)&&!this.setVisible}}});
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],aC.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],aC.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],aC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],aC.prototype,"setVisible",void 0);_.E([_.F(),_.N("design:type",Object)],aC.prototype,"data",void 0);
_.E([_.F(),_.N("design:type",Object)],aC.prototype,"surveyFeedbackData",void 0);_.E([_.F(),_.N("design:type",Object)],aC.prototype,"boundOnSubmitButtonClick",void 0);_.E([_.F({reflectToAttribute:!0}),_.z("data","setVisible"),_.N("design:type",Object),_.N("design:paramtypes",[])],aC.prototype,"visibilityHidden",null);_.E([_.GW({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],aC);
_.G(aC,"yt-flow-footer-renderer",function(){if(y1b===void 0){var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;Vuh===void 0&&(Vuh=document.createElement("template"));var t=Vuh;v.call(H,t.content.cloneNode(!0),f.content.firstChild);y1b=f}f=y1b;return f},{mode:2});var PF=function(){return _.K.apply(this,arguments)||this};
_.e(PF,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],PF.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],PF.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],PF.prototype,"data",void 0);_.E([_.F({selector:function(f){return f.ypc.surveyFeedbackData}}),
_.N("design:type",Object)],PF.prototype,"surveyFeedbackData",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],PF);
_.G(PF,"ytd-flow-footer-renderer",function(){if(Rhw!==void 0)return Rhw;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Rhw=f},{mode:_.WK("kevlar_poly_si_batch_j025")?1:2});var YJh;var mUx;var GR=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return f};
_.e(GR,_.K);_.R=GR.prototype;_.R.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.om("multiPageMenuSectionItems")}}};
_.R.handleHideEnclosingAction_=function(f){if(this.data&&this.data.items)for(var H=0;H<this.data.items.length;H++){var v=this.data.items[H].notificationRenderer;if(v&&v.notificationId==f.hideEnclosingAction.notificationId){this.splice("data.items",H,1);_.mb(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.R.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.OE(this.hostElement,"hidden",!0)};
_.R.updateMenu_=function(f){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&f&&!f.doNotRefreshInbox){f=this.data.continuations;for(var H=0;H<f.length;H++)if(f[H].invalidationContinuationData){var v=void 0;var t=(v=f[H].invalidationContinuationData)==null?void 0:v.continuation;break}f=_.QA.clone(this.data.continuationUpdateEndpoint||null);f.continuation=t;f.click_tracking_params=this.data.trackingParams;_.WV(this.hostElement,[f])}};
_.R.onServiceRequestCompleted_=function(f,H){if(this.data&&(f=H.actions)){H=0;for(var v=f.length;H<v;H++){var t=_.U(f[H],_.oRr);if(!t)break;if((t.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||t.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&t.continuationItems&&this.data.items){var M=this.data.items.length-1;this.data.items[M].continuationItemRenderer&&(t=["data.items",M,1].concat(t.continuationItems),this.splice.apply(this,t))}}}};
GR.prototype.onServiceRequestCompleted_=GR.prototype.onServiceRequestCompleted_;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],GR.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],GR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],GR.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],GR.prototype,"data",void 0);
_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.TI]),_.N("design:returntype")],GR.prototype,"onServiceRequestCompleted_",null);_.E([_.GW({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],GR);
_.$6()(GR,"yt-multi-page-menu-section-renderer",function(){if(mUx===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;YJh===void 0&&(YJh=document.createElement("template"));var t=YJh;v.call(H,t.content.cloneNode(!0),f.content.firstChild);mUx=f}f=mUx;return f},{allowedProps:["data"],
mode:2});var $Uw;var Wer;var CC=function(){return _.K.apply(this,arguments)||this};
_.e(CC,_.K);CC.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.H7.Object.defineProperties(CC.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.progress)==null?0:this.data.progress*100}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],CC.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],CC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],CC.prototype,"data",void 0);_.E([_.z("data.progress"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],CC.prototype,"showProgressBar",null);
_.E([_.z("data.progress"),_.N("design:type",Number),_.N("design:paramtypes",[])],CC.prototype,"progress",null);_.E([_.GW({is:"yt-flow-header-renderer",disableElementRegistration:!0})],CC);
_.G(CC,"yt-flow-header-renderer",function(){if(Wer===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;$Uw===void 0&&($Uw=document.createElement("template"));var t=$Uw;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Wer=f}f=Wer;return f},{mode:2});var Okp;var gCW;var EY=function(){return _.K.apply(this,arguments)||this};
_.e(EY,_.K);EY.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],EY.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],EY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],EY.prototype,"data",void 0);_.E([_.GW({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],EY);
_.G(EY,"yt-post-confirmation-flow-step-renderer",function(){if(gCW===void 0){var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;Okp===void 0&&(Okp=document.createElement("template"));var t=Okp;v.call(H,t.content.cloneNode(!0),f.content.firstChild);gCW=f}f=gCW;return f},{mode:2});var I2A;var SJA;var ND=function(){return _.K.apply(this,arguments)||this};
_.e(ND,_.K);
ND.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"}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ND.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],ND.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],ND.prototype,"data",void 0);_.E([_.GW({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],ND);
_.G(ND,"yt-refund-confirmation-flow-step-renderer",function(){if(SJA===void 0){var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;I2A===void 0&&(I2A=document.createElement("template"));var t=I2A;v.call(H,t.content.cloneNode(!0),f.content.firstChild);SJA=f}f=SJA;return f},{mode:2});var dUi=_.a(function(f){var H=f.data;return _.O("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.O("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.O(_.Hn,{data:function(){return{thumbnails:[{url:H().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.O("div",{class:"profileBadgeViewModelContent"},_.O("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return H().badgeDesc}),_.O(_.g,{cond:function(){return H().badgeSubtitle},
then:function(){return _.O("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return H().badgeSubtitle})}})))},"hh");
dUi.idomCompat=!0;var j$t=_.a(function(f){var H=f.data;return _.O("yt-comment-interaction-view-model",{el:_.tE(_.nT(function(){return H().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.O("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return H().onTapA11yLabel},
"on:keydown":_.Xge(),tabindex:0},_.O("div",{class:"ytCommentInteractionViewModelHeader"},_.O("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return H().headerPrefix},' "',function(){return H().videoTitle}),_.O("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.O("div",{class:"ytCommentInteractionViewModelContent"},_.O("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return H().commentContent}),_.O("div",{class:"ytCommentInteractionViewModelChevron"},
_.O(_.Hn,{data:function(){return{thumbnails:[{url:H().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"ih");
j$t.idomCompat=!0;var s$5=_.a(function(f){var H=f.data;return _.O("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.O(_.Jj,{data:function(){return H().avatar}},{avatarViewModel:_.K5}),_.O("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return H().channelName}))},"jh");
s$5.idomCompat=!0;var ehx=_.a(function(f){var H=f.data;f={};return _.O("yt-profile-info-view-model",{class:_.S2("ytProfileInfoViewModelHost",(f.ytProfileInfoViewModelWithVideoShelf=function(){return H().videosHorizontalShelf},f))},_.O(Zkh,{profileInfo:H}),_.O(_.Jj,{data:function(){return H().videosHorizontalShelf}},{horizontalShelfViewModel:function(v){return _.O("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.O(_.u4,{data:v.data}))}}),_.O(_.g,{cond:function(){return H().comments},
then:function(){return _.O(J1A,{profileInfo:H})}}),_.O(_.g,{cond:function(){return H().sharedSubscriptionsTitle},
then:function(){return _.O(_.g,{cond:function(){return H().subscriptionsAccessButtonCommand},
then:function(){return _.O(l2G,{profileInfo:H})},
else:function(){return _.O(UUh,{profileInfo:H})}})}}))},"kh");
ehx.idomCompat=!0;var J1A=_.a(function(f){var H=f.profileInfo;return _.O("div",{class:"ytProfileInfoViewModelActivity"},_.O("div",{class:"ytProfileInfoViewModelHeader"},_.O("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return H().commentsInteractionTitle})),_.O(_.Jj,{data:function(){return H().comments}},{commentInteractionViewModel:function(v){return _.O("div",{class:"ytProfileInfoViewModelActivity"},_.O(j$t,{data:v.data}))}}))},"lh"),l2G=_.a(function(f){var H=f.profileInfo;
return _.O("div",{class:"ytProfileInfoViewModelSubSection"},_.O("div",{class:"ytProfileInfoViewModelSubHeader"},_.O(_.VU,{command:function(){return H().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.O("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return H().sharedSubscriptionsTitle}),_.O("div",null,_.O(_.Jj,{data:function(){return H().subscriptionsAccessButton}},{buttonViewModel:_.Wp})))),_.O(Lep,{sharedSubscriptions:function(){var v;
return((v=H().sharedSubscriptions)==null?void 0:v.slice(0,5))||[]}}))},"mh"),UUh=_.a(function(f){var H=f.profileInfo;
return _.O("div",{class:"ytProfileInfoViewModelSubSection"},_.O("div",{class:"ytProfileInfoViewModelSubHeader"},_.O("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return H().sharedSubscriptionsTitle})),_.O(Lep,{sharedSubscriptions:function(){var v;
return((v=H().sharedSubscriptions)==null?void 0:v.slice(0,5))||[]}}))},"nh"),Lep=_.a(function(f){return _.O("div",{class:"ytProfileInfoViewModelSubs"},_.O(_.Jj,{data:f.sharedSubscriptions},{sharedSubscriptionViewModel:function(H){return _.O("div",{class:"ytProfileInfoViewModelSub"},_.O(s$5,{data:H.data}))}}))},"oh"),Zkh=_.a(function(f){var H=f.profileInfo;
return _.O("div",{class:"ytProfileInfoViewModelActivity"},_.O(_.eK,{each:function(){return[H().profileBadgeInfoYtWide,H().profileBadgeInfoChannelWide].filter(function(v){return!!v})},
keyBy:"INDEX"},function(v){return _.O(_.R8,null,_.O("div",{class:"ytProfileInfoViewModelHeader"},_.O("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return v().profileSectionTitle}),_.O("div",{class:"ytProfileInfoViewModelSectionDesc"},_.O("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var t;
return(t=v().commentBadge)==null?void 0:t.commentDesc}),_.O(_.g,{cond:function(){var t;
return(t=v().commentBadge)==null?void 0:t.blackHeartDesc},
then:function(){return _.O("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.O("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.O(_.Hn,{data:function(){var t;
return{thumbnails:[{url:(t=v().commentBadge)==null?void 0:t.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.O("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var t;return(t=v().commentBadge)==null?void 0:t.blackHeartDesc}))),_.O("div",{class:"ytProfileInfoViewModelBadge"},_.O(_.eK,{each:function(){return v().badges||[]}},function(t){return _.O(dUi,{data:t})})))}))},"ph");var xUG=_.a(function(f){var H=f.data;var v=function(){return H().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.O("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.O(_.Jj,{data:function(){return H().profileIdentityInfo}},{profileIdentityInfoViewModel:function(t){return _.O(_.IUx,{data:t.data,
hideDivider:v,isChannelInfoCard:v})},
profileInfoViewModel:ehx}),_.O(_.Jj,{data:function(){return H().profileInfo}},{profileIdentityInfoViewModel:_.IUx,
profileInfoViewModel:ehx}))},"qh");
xUG.idomCompat=!0;_.yn(xUG,"yt-profile-card-view-model",{props:{data:_.ki}});var cF=function(){var f=_.K.apply(this,arguments)||this;f.enableFocusFix=_.J("music_web_enable_focus_on_setting_menu_fix")&&_.P6("IS_MOBILE_WEB",!1);f.covered=!1;f.hideMenu=!1;f.isCommentNotificationOnProfileCard=!1;f.scrolledByTouch=!1;f.disableBackdropFilter=_.J("web_disable_backdrop_filter");f.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return f};
_.e(cF,_.K);_.R=cF.prototype;
_.R.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"}}}};
_.R.ready=function(){var f=this;this.JSC$20129_containerElement.addEventListener("scroll",function(){f.ytRendererBehavior.markDirty()})};
_.R.attributeChanged=function(f,H){f==="menu-style"&&_.mb(this.hostElement,"yt-multi-page-menu-closed-action",[H])};
_.R.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.jr(this,this.focusOnStampFinished))};
_.R.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.jr(this,this.focusOnStampFinished))};
_.R.reset=function(){this.closeJobId&&(_.nN.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.R.focusOnStampFinished=function(f){f.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.jr(this,this.focusOnStampFinished)),this.doFocus())};
_.R.doFocus=function(){var f=_.QcH(this.sectionsElement);f.length&&f[0].focus()};
_.R.computeMenuStyle=function(f){return f?f.toLowerCase().replace(/_/g,"-"):""};
_.R.computeIsCommentNotificationOnProfileCard=function(f){return _.J("enable_profile_cards_on_comments")&&f.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.R.computeHideMenu=function(f,H){return f||!(!H||!H.showLoadingSpinner)};
_.R.onPopupClosed=function(){this.isPopUpOpen=!1;_.mb(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.R.onPopupOpened=function(f,H){this.isPopUpOpen=!0;H.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.YE(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.yq({type:"CHANNEL_REPORT_RESET"})))};
_.R.onYtNavigate=function(f,H){this.shouldCloseOnNavigateEvent(H.endpoint)&&_.mb(this.hostElement,"yt-close-all-popups-action")};
_.R.handleEndpoint=function(f){f=_.U(f,_.rC);!this.isCommentNotificationOnProfileCard&&f&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20129_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.R.handleActions=function(f){for(var H=0,v=f.length;H<v;H++){var t=_.U(f[H],Pqb);t&&this.handleGetMultiPageMenuAction(t);(t=_.U(f[H],_.oRr))&&this.handleAppendContinuationItemsAction(t)}};
_.R.onServiceRequestSentOrCompleted=function(f,H){f.detail&&f.detail.endpoint&&this.handleEndpoint(f.detail.endpoint);H.actions&&this.handleActions(H.actions)};
_.R.handleGetMultiPageMenuAction=function(f){var H=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.mF(this.submenuElement).appendChild(H);(f=f.menu.multiPageMenuRenderer)&&this.logSubmenu(f);H.data=f;H.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.R.handleAppendContinuationItemsAction=function(f){if(this.data&&f.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&f.continuationItems&&this.data.sections){var H=this.data.sections.length-1;this.data.sections[H].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),H--);if(this.data.sections[H].multiPageMenuNotificationSectionRenderer&&f.continuationItems){f=_.V(f==null?void 0:f.continuationItems);for(var v=f.next();!v.done;v=f.next())if(v=v.value,_.U(v,WJW)){var t=
void 0,M=void 0,h=void 0,y=void 0,m=void 0;((t=this)==null?0:(M=t.data)==null?0:(h=M.sections)==null?0:(y=h[H])==null?0:(m=y.multiPageMenuNotificationSectionRenderer)==null?0:m.items)&&this.push("data.sections."+H+".multiPageMenuNotificationSectionRenderer.items",v)}else if(_.U(v,_.lYa)||_.U(v,_.bw))this.push("data.sections",v),H++}}};
_.R.logSubmenu=function(f){if(!_.J("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var H=this.ytRendererBehavior.getScreenLayer(),v=_.uy(H),t=_.Qe(H);if((f=f.trackingParams)&&v&&t){var M=_.zK(f);_.J("combine_ve_grafts")?_.UV().graftServerVe(f,t,H):_.Xl(v,t,M)}}};
_.R.emptySubmenuContainer=function(){for(var f=_.mF(this.submenuElement);f.firstChild;)f.removeChild(f.firstChild)};
_.R.onMenuBackTap=function(f){_.YE(this.hostElement,"yt-submenu-closed");f.stopPropagation()};
_.R.onSubmenuClosed=function(f){_.HB(f)!==this.hostElement&&(this.covered=!1,_.YE(this.hostElement,"yt-refit"),f.stopPropagation())};
_.R.onRetrieveLocation=function(f,H){H.hasComments&&(H.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),f.stopPropagation())};
_.R.shouldCloseOnNavigateEvent=function(f){if(!f)return!0;if(_.U(f,_.L4o)||_.U(f,_.x_n)||_.U(f,_.eRo)||_.U(f,_.X7))return!1;var H;return((H=_.U(f==null?void 0:f.commandMetadata,_.jG))==null?0:H.ignoreNavigation)?!1:!0};
_.R.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.R.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.R.refitAfterRender=function(){var f=this;_.qV(this,function(){_.YE(f.hostElement,"yt-refit")})};
cF.prototype.refitAfterRender=cF.prototype.refitAfterRender;cF.prototype.onRetrieveLocation=cF.prototype.onRetrieveLocation;cF.prototype.onSubmenuClosed=cF.prototype.onSubmenuClosed;cF.prototype.onMenuBackTap=cF.prototype.onMenuBackTap;cF.prototype.onServiceRequestSentOrCompleted=cF.prototype.onServiceRequestSentOrCompleted;cF.prototype.onYtNavigate=cF.prototype.onYtNavigate;cF.prototype.onPopupOpened=cF.prototype.onPopupOpened;cF.prototype.onPopupClosed=cF.prototype.onPopupClosed;
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],cF.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.lv.YtEventForwardingBehavior),_.N("design:type",Object)],cF.prototype,"ytEventForwardingBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],cF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],cF.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],cF.prototype,"data",void 0);
_.E([_.F(),_.N("design:type",Object)],cF.prototype,"enableFocusFix",void 0);_.E([_.F(),_.N("design:type",Object)],cF.prototype,"covered",void 0);_.E([_.F({computed:"computeHideMenu(covered, data)"}),_.N("design:type",Object)],cF.prototype,"hideMenu",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.N("design:type",String)],cF.prototype,"menuStyle",void 0);
_.E([_.F({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.N("design:type",Object)],cF.prototype,"isCommentNotificationOnProfileCard",void 0);_.E([_.F(),_.N("design:type",Boolean)],cF.prototype,"isPopUpOpen",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],cF.prototype,"scrolledByTouch",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],cF.prototype,"disableBackdropFilter",void 0);
_.E([_.lJ("#sections"),_.N("design:type",HTMLElement)],cF.prototype,"sectionsElement",void 0);_.E([_.lJ("#spinner"),_.N("design:type",HTMLElement)],cF.prototype,"spinnerElement",void 0);_.E([_.lJ("#header"),_.N("design:type",HTMLElement)],cF.prototype,"headerElement",void 0);_.E([_.lJ("#container"),_.N("design:type",HTMLElement)],cF.prototype,"JSC$20129_containerElement",void 0);_.E([_.lJ("#submenu"),_.N("design:type",HTMLElement)],cF.prototype,"submenuElement",void 0);
_.E([_.sE("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cF.prototype,"onPopupClosed",null);_.E([_.sE("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],cF.prototype,"onPopupOpened",null);_.E([_.sE("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],cF.prototype,"onYtNavigate",null);
_.E([_.sE("yt-service-request-completed"),_.sE("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.TI]),_.N("design:returntype")],cF.prototype,"onServiceRequestSentOrCompleted",null);_.E([_.sE("yt-menu-back-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],cF.prototype,"onMenuBackTap",null);
_.E([_.sE("yt-submenu-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],cF.prototype,"onSubmenuClosed",null);_.E([_.sE("yt-retrieve-location"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],cF.prototype,"onRetrieveLocation",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cF.prototype,"refitAfterRender",null);
_.E([_.u({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],cF);
_.G(cF,"ytd-multi-page-menu-renderer",function(){if(i_h!==void 0)return i_h;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return i_h=f},{mode:1});var B2G;var X5=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return f};
_.e(X5,_.K);_.R=X5.prototype;_.R.created=function(){this.showTooltips=!0};
_.R.computeAccessibility_=function(f){return this.get("accessibility.accessibilityData",f)||null};
_.R.onTap=function(){var f=_.$E(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(f&&f.length===1&&f[0])_.mb(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var H;if((H=this.data)==null?0:H.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var v;((v=this.data)==null?0:v.menuRequest)&&_.WV(this.hostElement,[this.data.menuRequest])}}};
_.R.handleTopbarMenuClosedAction=function(f){var H,v;(new Map([["multi-page-menu-style-type-creation","VIDEO_CALL"],["multi-page-menu-style-type-notifications","NOTIFICATIONS"],["multi-page-menu-style-type-yt-apps","APPS"]])).get(f)===((H=this.data)==null?void 0:(v=H.icon)==null?void 0:v.iconType)&&this.toggleIconState(!1)};
_.R.toggleIconState=function(f){_.J("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=f)};
_.R.handleUpdateTopbarAvatarAction=function(f){var H;f=(H=_.U(f,DBx))==null?void 0:H.avatarUrl;var v,t;H=(v=this.data)==null?void 0:(t=v.avatar)==null?void 0:t.thumbnails;f&&H&&(v={thumbnails:[Object.assign({},H[0],{url:f})]},this.set("data.avatar",v))};
_.H7.Object.defineProperties(X5.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.mF(this.hostElement).querySelector("#button")}}});
X5.prototype.onTap=X5.prototype.onTap;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],X5.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],X5.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.fm),_.N("design:type",Object)],X5.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.B(_.y2H.YtButtonBehavior),_.N("design:type",Object)],X5.prototype,"ytButtonBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],X5.prototype,"data",void 0);
_.E([_.lJ("yt-icon-button#button"),_.N("design:type",Object)],X5.prototype,"iconButton",void 0);_.E([_.sE("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],X5.prototype,"onTap",null);_.E([_.u({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],X5);
_.$6()(X5,"ytd-topbar-menu-button-renderer",function(){if(B2G===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);B2G=f}f=B2G;return f},{allowedProps:["data"],
mode:1});var zhW;var Aw=function(){return _.K.apply(this,arguments)||this};
_.e(Aw,_.K);Aw.prototype.getSelected=function(){return this.reasons.selected};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Aw.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Aw.prototype,"data",void 0);_.E([_.lJ("#reasons"),_.N("design:type",Object)],Aw.prototype,"reasons",void 0);_.E([_.u({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],Aw);
_.G(Aw,"ytd-ad-feedback-content",function(){if(zhW!==void 0)return zhW;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return zhW=f},{mode:1});var Fet;var b_=function(){return _.K.apply(this,arguments)||this};
_.e(b_,_.K);_.R=b_.prototype;_.R.onPopupOpened=function(){_.mb(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.R.computeConfirmButton=function(f){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:f.confirmLabel}};
_.R.computeCancelButton=function(f){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:f.cancelLabel}};
_.R.onConfirmTap=function(){var f=this.content.getSelected();f!==void 0&&(f=this.data.reasons[f].endpoint)&&(_.t8().resolve(_.MJ).resolveCommand(f,{form:{element:this.hostElement}}),_.mb(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.R.sendFeedbackSubmitToastAction=function(){var f;(f=this.data)!=null&&f.completionMessage&&_.mb(this.hostElement,"yt-open-popup-action",[_.MS(this.data.completionMessage),this])};
_.R.onCancelTap=function(){_.mb(this.hostElement,"yt-close-popup-action")};
b_.prototype.onPopupOpened=b_.prototype.onPopupOpened;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],b_.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],b_.prototype,"data",void 0);_.E([_.lJ("#content"),_.N("design:type",Object)],b_.prototype,"content",void 0);_.E([_.sE("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],b_.prototype,"onPopupOpened",null);
_.E([_.u({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],b_);
_.G(b_,"ytd-ad-feedback-renderer",function(){if(Fet!==void 0)return Fet;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Fet=f},{mode:1});var r1i;var i_=function(){return _.K.apply(this,arguments)||this};
_.e(i_,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],i_.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],i_.prototype,"data",void 0);_.E([_.u({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],i_);
_.G(i_,"ytd-ad-info-dialog-content",function(){if(r1i!==void 0)return r1i;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return r1i=f},{mode:1});var KeF;var kY=function(){return _.K.apply(this,arguments)||this};
_.e(kY,_.K);kY.prototype.computeConfirmButton=function(f){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:f.confirmLabel}};
kY.prototype.onConfirmTap=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
kY.prototype.computeShouldShowTitle=function(){var f;return!((f=this.data)==null||!f.title)};
kY.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.t8().resolve(_.MJ).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
kY.prototype.onPopupClosed=kY.prototype.onPopupClosed;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],kY.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],kY.prototype,"data",void 0);_.E([_.sE("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],kY.prototype,"onPopupClosed",null);_.E([_.u({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],kY);
_.G(kY,"ytd-ad-info-dialog-renderer",function(){if(KeF!==void 0)return KeF;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return KeF=f},{mode:1});var DUW;var TR=function(){var f=_.K.apply(this,arguments)||this;f.actionButtonClass="action-button";f.dismissButtonId="dismiss-button";f.dialogDismiss=!0;return f};
_.e(TR,_.K);_.R=TR.prototype;_.R.computeInPlayer=function(f){return(f==null?void 0:f.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.R.computedLogo=function(){var f,H;return this.isDarkTheme()?(f=this.data)==null?void 0:f.logoDark:(H=this.data)==null?void 0:H.logo};
_.R.computedHeaderImage=function(){var f,H;return this.isDarkTheme()?(f=this.data)==null?void 0:f.headerImageDark:(H=this.data)==null?void 0:H.headerImage};
_.R.computeLogoIconId=function(){var f,H,v,t=(f=this.computedLogo())==null?void 0:(H=f.sources)==null?void 0:(v=H[0])==null?void 0:v.height;return t&&t%31===0?"logo-icon-with-padding":"logo-icon"};
_.R.computeLogoIconHeight=function(){var f,H,v,t=(f=this.computedLogo())==null?void 0:(H=f.sources)==null?void 0:(v=H[0])==null?void 0:v.height;return t&&t%31===0?"31":"24"};
_.R.onPopupClosed=function(){_.t8().resolve(_.gG).dispose()};
_.R.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.R.onShow=function(){this.inPlayer&&_.Jt(6)};
_.R.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var f=0;f<this.data.impressionEndpoints.length;f++){var H=_.U(this.data.impressionEndpoints[f],_.PK);H&&this.ytComponentBehavior.resolveCommand(H)}};
_.R.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.mb(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.H7.Object.defineProperties(TR.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var f,H;return!((f=this.data)==null||!f.headerImageDark)&&!((H=this.data)==null||!H.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.secondaryButton)}}});
TR.prototype.onPopupClosed=TR.prototype.onPopupClosed;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],TR.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],TR.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.cH.YtVisibilityBehavior),_.N("design:type",Object)],TR.prototype,"ytVisibilityBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],TR.prototype,"data",void 0);
_.E([_.F(),_.N("design:type",Object)],TR.prototype,"actionButtonClass",void 0);_.E([_.F(),_.N("design:type",Object)],TR.prototype,"dismissButtonId",void 0);_.E([_.F(),_.N("design:type",Object)],TR.prototype,"dialogDismiss",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],TR.prototype,"hasHeaderImage",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],TR.prototype,"hasPremiumButton",null);
_.E([_.F({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.N("design:type",Boolean)],TR.prototype,"inPlayer",void 0);_.E([_.lJ("#dismiss-button"),_.N("design:type",HTMLElement)],TR.prototype,"dismissButton",void 0);_.E([_.sE("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],TR.prototype,"onPopupClosed",null);_.E([_.u({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],TR);
_.G(TR,"ytd-enforcement-message-view-model",function(){if(DUW!==void 0)return DUW;var f=document.createElement("template");_.x(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return DUW=f},{mode:1});var oC5;var nCx;var wx=function(){var f=_.K.apply(this,arguments)||this;f.TEST_ONLY={immediateValidation:function(){f.immediateValidation()},
onValidationResponse:function(H){f.onValidationResponse(H)},
onGenerateHandleFromNameResponse:function(H){f.onGenerateHandleFromNameResponse(H)}};
return f};
_.e(wx,_.K);_.R=wx.prototype;_.R.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.R.validate=function(){this.immediateValidation()};
_.R.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.R.setHandleInputValue=function(f){this.handleDir=this.getHandleDir(f);this.handleInput.value=f;this.validationState={status:"PENDING"};this.immediateValidation()};
_.R.getHandleDir=function(f){var H=f===""&&!1;return(H=_.Zba.test.call(_.Zba,f))?"rtl":"ltr"};
_.R.onDataChanged=function(){var f,H;this.handleDir=this.getHandleDir((H=(f=this.data)==null?void 0:f.handle)!=null?H:"");var v;this.validationState=((v=this.data)==null?0:v.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var t;((t=this.data)==null?0:t.validateOnInit)&&this.immediateValidation()};
_.R.stopPropagation=function(f){f.stopPropagation()};
_.R.onInput=function(){var f;this.handleDir=this.getHandleDir((f=this.handleInput.value)!=null?f:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.R.onFocusout=function(f){this.handleInput.contains(f.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.R.delayedValidation=function(){var f,H;this.debouncedValidation((H=(f=this.data)==null?void 0:f.validationDelayMs)!=null?H:1E3)};
_.R.immediateValidation=function(){this.debouncedValidation(0)};
_.R.debouncedValidation=function(f){var H=this;_.iJ(this,"debouncedValidation",function(){var v,t=H.staticValidation((v=H.handleInput.value)!=null?v:"");if(t!==void 0)H.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:t};else{var M;if((M=H.data)!=null&&M.validateChannelHandleCommand){H.validationState={status:"LOADING"};var h;H.ytComponentBehavior.resolveCommand(H.data.validateChannelHandleCommand,{form:{handle:(h=H.handleInput.value)!=null?h:""},commandController:{onSuccess:function(y,
m){H.onValidationResponse(m)},
onServerError:function(y,m){H.onValidationServerError(m)}}})}else H.handleUnexpectedValidationError(new _.e$("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",H.data))}},f)};
_.R.staticValidation=function(f){var H;if(((H=this.data)==null?void 0:H.channelHandleStaticValidationParams)!==void 0){H=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(f)&&H.validValueRegexpErrorMessage!==void 0)return H.validValueRegexpErrorMessage;if(H.minLength!==void 0&&f.length<H.minLength&&H.minLengthErrorMessage!==void 0)return H.minLengthErrorMessage;if(H.maxLength!==void 0&&f.length>H.maxLength&&H.maxLengthErrorMessage!==void 0)return H.maxLengthErrorMessage}};
_.R.onValidationResponse=function(f){var H=_.U(f.result,oit);H===void 0?this.handleUnexpectedValidationError(new _.e$("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",f)):this.handleValidationResultRenderer(H)};
_.R.onValidationServerError=function(f){this.handleUnexpectedValidationError(new _.e$("ValidateChannelHandle request failed.",f))};
_.R.handleValidationResultRenderer=function(f){if(f.handle===void 0)this.handleUnexpectedValidationError(new _.e$("ChannelHandleValidationResultRenderer does not contain handle.",f));else if(f.handle===this.handleInput.value)switch(f.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:f.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:f.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.e$("Unrecognized ChannelHandleValidationResult",f));break;default:_.bC(f.result)}};
_.R.handleUnexpectedValidationError=function(f){var H;this.validationState={status:"UNKNOWN",handle:(H=this.handleInput.value)!=null?H:""};_.pb(f)};
_.R.stopEventPropagation=function(f){f.stopPropagation()};
_.R.updateHandleOnChannelNameInputChange=function(f){if(!this.wasEdited){var H,v;this.debouncedGenerateHandleFromName(f,(v=(H=this.data)==null?void 0:H.validationDelayMs)!=null?v:1E3)}};
_.R.debouncedGenerateHandleFromName=function(f,H){var v=this;_.iJ(this,"debouncedGenerateHandleFromName",function(){var t;(t=v.data)!=null&&t.validateChannelHandleCommand?v.ytComponentBehavior.resolveCommand(v.data.validateChannelHandleCommand,{form:{name:f},commandController:{onSuccess:function(M,h){v.onGenerateHandleFromNameResponse(h)},
onServerError:function(M,h){_.pb(new _.e$("Error calling GenerateHandleFromName",h))}}}):_.pb(new _.e$("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",v.data))},H)};
_.R.onGenerateHandleFromNameResponse=function(f){this.wasEdited||((f=_.U(f.result,ni0))?this.setHandleInputValue(f.handle):_.pb(new _.e$("Invalid results when generate handle from name")))};
_.H7.Object.defineProperties(wx.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var f;if(f=this.validationState)f=this.validationState,f=f.status==="OK"||f.status==="UNKNOWN";if(f)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var f;if(((f=this.validationState)==null?void 0:f.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 f,H=(f=this.channelHandleEntity)==null?void 0:f.handleEdit;this.handleDir=this.getHandleDir(H!=null?H:"");return H}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var f,H;if(((f=this.data)==null?void 0:(H=f.channelHandleStaticValidationParams)==null?void 0:H.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
wx.prototype.stopEventPropagation=wx.prototype.stopEventPropagation;wx.prototype.onDataChanged=wx.prototype.onDataChanged;wx.prototype.applyHandleEdit=wx.prototype.applyHandleEdit;wx.prototype.onValueChanged=wx.prototype.onValueChanged;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],wx.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],wx.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],wx.prototype,"data",void 0);
_.E([_.F(),_.N("design:type",Boolean)],wx.prototype,"wasEdited",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],wx.prototype,"handleDir",void 0);_.E([_.lJ("#handle-input"),_.N("design:type",Object)],wx.prototype,"handleInput",void 0);_.E([_.F(),_.z("validationState"),_.N("design:type",Object),_.N("design:paramtypes",[])],wx.prototype,"value",null);
_.E([_.Zw("value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wx.prototype,"onValueChanged",null);_.E([_.z("validationState"),_.N("design:type",Object),_.N("design:paramtypes",[])],wx.prototype,"errorIndicator",null);_.E([_.F({reflectToAttribute:!0}),_.z("errorIndicator"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],wx.prototype,"borderErrorIndicator",null);
_.E([_.F({selectorArgs:["data.channelHandleEntityKey"],selector:function(f,H){return _.dL(f.entities,"channelHandle",H)}}),
_.N("design:type",Object)],wx.prototype,"channelHandleEntity",void 0);_.E([_.z("channelHandleEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],wx.prototype,"handleEdit",null);_.E([_.Zw("handleEdit"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wx.prototype,"applyHandleEdit",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wx.prototype,"onDataChanged",null);
_.E([_.z("data.channelHandleStaticValidationParams.validValueRegexp"),_.N("design:type",Object),_.N("design:paramtypes",[])],wx.prototype,"validValueRegexp",null);_.E([_.sE("yt-service-request-sent"),_.sE("yt-service-request-completed"),_.sE("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],wx.prototype,"stopEventPropagation",null);_.E([_.u({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],wx);
_.G(wx,"ytd-channel-handle-input-renderer",function(){if(nCx!==void 0)return nCx;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return nCx=f},{mode:_.WK("kevlar_poly_si_batch_j025")?1:2});var qD=function(){var f=_.K.apply(this,arguments)||this;f.data=null;f.errorMessage=null;f.isLoading=!0;f.hideContainer=!1;f.enableNewChannelCreationOnIdForAll=_.J("enable_new_channel_creation_for_id4all");f.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"};f.testOnly={setErrorMessage:function(H){f.resetErrorState();
f.setErrorState(H)}};
return f};
_.e(qD,_.K);_.R=qD.prototype;_.R.created=function(){this.logScreenVe()};
_.R.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")};
_.R.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var f;((f=this.zeroStepErrorMessageEntity)==null?0:f.value)&&this.set("errorMessage",_.qO(this.zeroStepErrorMessageEntity.value))};
_.R.onCreateTap=function(){var f=this;if(this.data&&this.data.channelCreationEndpoint){var H,v;if(!((H=this.data.createChannelButton)==null?0:(v=H.buttonRenderer)==null?0:v.isDisabled)){var t;if((t=this.nameInput)!=null&&t.value){this.setLoadingState();var M,h;H=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(M=this.handleInput)==null?void 0:M.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((h=this.handleInput)==null?void 0:h.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:H,commandController:{onSuccess:function(y,m){f.onChannelCreationEndpointSuccess(m);f.obakeImageSource&&_.Kb("channelCreatedWithObakeImage",{imageSourceType:f.obakeImageSource})},
onServerError:function(){f.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.R.endpointRequiresServiceRequestAction=function(f){return!!_.U(f,_.UH)||!!_.U(f,DBx)};
_.R.isNavigateAction=function(f){var H;return!!_.U(f,_.q1)||!!_.U((H=_.U(f,u9p))==null?void 0:H.command,_.q1)};
_.R.isPlaylistAction=function(f){return!!_.U(f,_.Kv)||!!_.U(f,_.uP)};
_.R.onChannelCreationEndpointSuccess=function(f){if(f.createChannelError){var H;this.setErrorState((H=f.createChannelError)==null?void 0:H.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.J("enable_secondary_channel_creation_form")&&f.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(f.navigationEndpoint);if(f.actions){H=_.V(f.actions);for(var v=H.next();!v.done;v=H.next())if(v=v.value,this.endpointRequiresServiceRequestAction(v)&&this.ytComponentBehavior.resolveCommand(v),
this.isNavigateAction(v)){var t=void 0;v=_.U((t=_.U(v,u9p))==null?void 0:t.command,_.q1);t=void 0;this.isPlaylistAction((t=v)==null?void 0:t.endpoint)&&(_.mb(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),t=void 0,this.ytComponentBehavior.resolveCommand((t=v)==null?void 0:t.endpoint))}}f.actions&&f.actions.some(function(M){var h;return _.U(M,_.q1)||_.U((h=_.U(M,u9p))==null?void 0:h.command,_.q1)})||_.mb(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.R.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.R.onCancelTap=function(){var f,H,v;if(!((f=this.data)==null?0:(H=f.cancelButton)==null?0:(v=H.buttonRenderer)==null?0:v.isDisabled)){var t,M,h;f=(t=this.data)==null?void 0:(M=t.cancelButton)==null?void 0:(h=M.buttonRenderer)==null?void 0:h.command;if(!f||!_.U(f,_.nwB)){var y;this.nameInput&&((y=this.data)==null?0:y.name)&&(this.nameInput.value=this.data.name);var m;this.handleInput&&((m=this.data)==null?0:m.channelHandleInput)&&(this.handleInput.data=_.U(this.data.channelHandleInput,pHi));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.R.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.R.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.R.onClearProfilePhotoTap=function(){var f,H,v;((f=this.data)==null?0:(H=f.clearProfilePhotoButton)==null?0:(v=H.buttonRenderer)==null?0:v.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.R.onEditAvatarTap=function(){var f,H,v;((f=this.data)==null?0:(H=f.editAvatarButton)==null?0:(v=H.buttonRenderer)==null?0:v.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.R.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)};
_.R.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var f;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((f=this.data)==null?0:f.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.R.setErrorState=function(f){this.resetErrorState();if(f)this.set("errorMessage",f);else{var H;if((H=this.zeroStepErrorMessageEntity)==null?0:H.value)this.set("errorMessage",_.qO(this.zeroStepErrorMessageEntity.value));else{var v;((v=this.data)==null?0:v.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.R.fetchImageBlobWithAlr=function(f,H){H=H===void 0?5:H;var v=this,t,M,h,y,m;return _.Y(function(W){switch(W.nextAddress){case 1:return W.yield(fetch(f,{method:"GET",mode:"cors"}),2);case 2:t=W.yieldResult;if(t.ok){W.jumpTo(3);break}if(H===0)throw Error();M=v.addJitter(Math.pow(2,5-H));return W.yield(new Promise(function(I){setTimeout(I,M*1E3)}),4);
case 4:return W.return(v.fetchImageBlobWithAlr(f,H-1));case 3:if(!t.headers.get("content-type").split(";").some(function(I){return I.trim()==="text/plain"})){W.jumpTo(5);
break}h=v;y=h.fetchImageBlobWithAlr;return W.yield(t.text(),6);case 6:return W.return(y.call(h,W.yieldResult,H-1));case 5:return W.yield(t.blob(),7);case 7:return m=W.yieldResult,W.return(m)}})};
_.R.addJitter=function(f){var H=f*.3*Math.random();Math.random()>.5&&(H*=-1);return f+H};
_.R.openProfilePicturePicker=function(){var f=this,H,v,t,M,h;return _.Y(function(y){if(y.nextAddress==1){H=f.data.scottyUploadUrl;if(!H)return y.return();v=document.documentElement.hasAttribute("dark");t=document.body.style.colorScheme;v&&(document.body.style.colorScheme="dark");M=GM0(CNt(PNp(D7x(v?"dark":"light")),function(m){var W,I,S,d,Z;return _.Y(function(l){if(l.nextAddress==1)return W=_.us(MxW(new CJ(m.photoUrl,!1)).build(),"alr","yes"),f.obakeImageSource=f.pictureChangeSourceToObakeImageSourceType(m.photoSource),
_.Zc(l,2),f.setLoadingState(),l.yield(f.fetchImageBlobWithAlr(W),4);if(l.nextAddress!=2)return I=l.yieldResult,S=new FileReader,S.addEventListener("load",function(){var L,r,n,Q,C,w;return _.Y(function(c){if(c.nextAddress==1){if(I.size>15728640)return f.setErrorState((L=f.data)==null?void 0:L.imageSizeErrorMessage),_.pb(Error("ul")),c.return();if(!S.result)return f.setErrorState((r=f.data)==null?void 0:r.genericImageLoadErrorMessage),_.pb(Error("vl")),c.return();n=S.result;_.Zc(c,2);return c.yield($E0(I,
H),4)}if(c.nextAddress!=2)return Q=c.yieldResult,f.handleImageUpdatedAction(n,Q),f.resetErrorState(),_.ch(c,0);C=_.xu(c);f.setErrorState((w=f.data)==null?void 0:w.uploadErrorMessage);if(C instanceof Error)_.oO(C);else{var A=new _.e$(JSON.stringify(C));_.oO(A)}_.Bj(c)})}),S.readAsDataURL(I),_.ch(l,0);
d=_.xu(l);f.setErrorState((Z=f.data)==null?void 0:Z.genericImageLoadErrorMessage);d instanceof Error?_.oO(d):_.nb(new _.e$(JSON.stringify(d)));_.Bj(l)})}),function(){f.hideContainer=!1;
document.body.style.colorScheme=t});
_.Zc(y,2);return y.yield(M.openPicker(),4)}if(y.nextAddress!=2)return _.ch(y,0);_.xu(y);f.setErrorState((h=f.data)==null?void 0:h.selectImageErrorMessage);_.Bj(y)})};
_.R.pictureChangeSourceToObakeImageSourceType=function(f){switch(f){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.R.logScreenVe=function(){_.y8(_.UV(),124448)};
_.R.graftServerVe=function(){var f=_.Qe(),H,v,t=(H=this.data)==null?void 0:(v=H.loggingDirectives)==null?void 0:v.trackingParams;t&&f&&(this.channelCreationFormVe=_.UV().graftServerVe(t,f),f={visualElement:this.channelCreationFormVe},_.JV().reportShown(f))};
_.R.isNameChanged=function(f){var H;return((H=this.data)==null?void 0:H.name)!==f};
_.R.isHandleChanged=function(f){var H,v=_.U((H=this.data)==null?void 0:H.channelHandleInput,pHi);return v&&f?v.handle!==f:!1};
_.R.handleImageUpdatedAction=function(f,H){this.hideContainer=!1;this.previewDataUrl=f;this.encryptedBlobId=H};
_.R.handleImageSelectionErrorAction=function(f){this.hideContainer=!1;this.setErrorState(f)};
_.R.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.R.showContainer=function(){this.hideContainer=!1};
_.R.maybeWipeZeroStepErrorMessage=function(){var f,H=(f=this.data)==null?void 0:f.zeroStepErrorMessageEntityKey,v;H&&((v=this.zeroStepErrorMessageEntity)==null?0:v.value)&&this.ytdReduxBehavior.dispatch(_.lF("stringEntity",H,{key:H,value:""}))};
_.H7.Object.defineProperties(qD.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 f;return((f=this.photoThumbnail)==null?0:f.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 f;return!((f=this.data)==null||!f.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.descriptionInfo}}});
qD.prototype.dataChanged=qD.prototype.dataChanged;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],qD.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],qD.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],qD.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],qD.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],qD.prototype,"errorMessage",void 0);
_.E([_.F(),_.N("design:type",Object)],qD.prototype,"isLoading",void 0);_.E([_.F(),_.N("design:type",String)],qD.prototype,"previewDataUrl",void 0);_.E([_.F(),_.N("design:type",Number)],qD.prototype,"obakeImageSource",void 0);_.E([_.F(),_.N("design:type",Object)],qD.prototype,"hideContainer",void 0);_.E([_.lJ("#title-input"),_.N("design:type",Object)],qD.prototype,"nameInput",void 0);_.E([_.lJ("#handle-input"),_.N("design:type",Object)],qD.prototype,"handleInput",void 0);
_.E([_.F(),_.N("design:type",Boolean)],qD.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.E([_.F({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.Pn}),_.N("design:type",Object)],qD.prototype,"zeroStepErrorMessageEntity",void 0);_.E([_.z("data","data.isDefaultProfilePhoto","previewDataUrl"),_.N("design:type",Object),_.N("design:paramtypes",[])],qD.prototype,"photoThumbnail",null);
_.E([_.z("data","data.isDefaultProfilePhoto","photoThumbnail"),_.N("design:type",Object),_.N("design:paramtypes",[])],qD.prototype,"userSetPhotoThumbnailUrl",null);_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],qD.prototype,"hideProfilePhotoButtonLayer",null);_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],qD.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.E([_.xV("data","zeroStepErrorMessageEntity"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qD.prototype,"dataChanged",null);_.E([_.F({reflectToAttribute:!0}),_.z("data.descriptionInfo","zeroStepErrorMessageEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],qD.prototype,"description",null);_.E([_.u({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],qD);
_.G(qD,"ytd-channel-creation-dialog-renderer",function(){if(oC5!==void 0)return oC5;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return oC5=f},{mode:1});var pci;var fw=function(){var f=_.K.apply(this,arguments)||this;f.isLoading=!1;f.isDisabled=!1;return f};
_.e(fw,_.K);fw.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
fw.prototype.updateDisabled=function(){var f;this.isDisabled=this.isLoading||((f=this.handleInput)==null?void 0:f.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
fw.prototype.onSaveClick=function(){var f=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var H;((H=this.data)==null?void 0:H.editChannelHandleEndpoint)!==void 0&&(this.errorMessage=void 0,this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.editChannelHandleEndpoint,{form:{handle:this.handleInput.value},commandController:{onSuccess:function(){var v;if((v=f.data)==null?0:v.nextEndpoint){var t;f.ytComponentBehavior.resolveCommand((t=f.data)==null?void 0:t.nextEndpoint)}else f.isLoading=
!1,f.closeDialog()},
onServerError:function(){f.isLoading=!1;f.handleInput.validate();var v;f.errorMessage=(v=f.data)==null?void 0:v.errorMessage}}}))}};
fw.prototype.closeDialog=function(){_.mb(this.hostElement,"yt-close-popup-action",[this.is])};
fw.prototype.updateDisabled=fw.prototype.updateDisabled;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],fw.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],fw.prototype,"data",void 0);_.E([_.lJ("#handle-input"),_.N("design:type",Object)],fw.prototype,"handleInput",void 0);_.E([_.Zw("isLoading"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fw.prototype,"updateDisabled",null);
_.E([_.u({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],fw);
_.G(fw,"ytd-channel-handle-edit-dialog-renderer",function(){if(pci!==void 0)return pci;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return pci=f},{mode:1});var Q$5;var HX=function(){return _.K.apply(this,arguments)||this};
_.e(HX,_.K);HX.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],HX.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],HX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],HX.prototype,"data",void 0);_.E([_.u({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],HX);
_.G(HX,"ytd-channel-switcher-footer-renderer",function(){if(Q$5!==void 0)return Q$5;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Q$5=f},{mode:1});var u$i;var a25;var vX=function(){return _.K.apply(this,arguments)||this};
_.e(vX,_.K);vX.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
vX.prototype.onIronChange=vX.prototype.onIronChange;_.E([_.F(),_.N("design:type",Object)],vX.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!1}),_.N("design:type",Function)],vX.prototype,"onDontAskAgainChanged",void 0);_.E([_.lJ("#checkbox"),_.N("design:type",Object)],vX.prototype,"checkbox",void 0);_.E([_.sE("iron-change"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vX.prototype,"onIronChange",null);
_.E([_.u({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],vX);
_.G(vX,"ytd-identity-prompt-footer-renderer",function(){if(a25!==void 0)return a25;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return a25=f},{mode:1});var tU=function(){var f=_.K.apply(this,arguments)||this;f.dontAskAgain=!1;f.showPopup=!1;f.boundDontAskAgainChanged=function(H){f.dontAskAgainChanged(H)};
f.boundOnAccountItemTap=function(H){f.onAccountItemTap(H)};
return f};
_.e(tU,_.K);_.R=tU.prototype;
_.R.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]]"}}}}}};
_.R.ready=function(){var f=this;_.mF(this.hostElement).querySelector("#container").addEventListener("scroll",function(){f.ytRendererBehavior.markDirty()})};
_.R.dontAskAgainChanged=function(f){this.dontAskAgain=f};
_.R.onAccountItemTap=function(f){if(f){var H={};this.dontAskAgain&&(H={dont_ask_again:this.dontAskAgain});_.iY(f,H)}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.R.redirectOnlyAccount=function(f){f.sections&&f.sections.length>0&&(f=_.U(f.sections[0],_.Jhh),(f==null?0:f.contents)&&(f==null?void 0:f.contents.length)<=1?(f=_.bZ(window.location.href),(f==null?0:f.next)&&_.JXs(f.next)?_.iY(f.next):_.iY("/")):this.showPopup=!0)};
tU.prototype.dataChanged=tU.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],tU.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],tU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],tU.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!1}),_.N("design:type",Object)],tU.prototype,"dontAskAgain",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],tU.prototype,"showPopup",void 0);_.E([_.F({reflectToAttribute:!1}),_.N("design:type",Object)],tU.prototype,"boundDontAskAgainChanged",void 0);_.E([_.F({reflectToAttribute:!1}),_.N("design:type",Object)],tU.prototype,"boundOnAccountItemTap",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tU.prototype,"dataChanged",null);
_.E([_.u({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],tU);
_.G(tU,"ytd-channel-switcher-renderer",function(){if(u$i!==void 0)return u$i;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return u$i=f},{mode:1});var Pat;var VK=function(){return _.K.apply(this,arguments)||this};
_.e(VK,_.K);_.H7.Object.defineProperties(VK.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.E([_.F(),_.N("design:type",Object)],VK.prototype,"data",void 0);_.E([_.z("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],VK.prototype,"steps",null);_.E([_.u({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],VK);
_.G(VK,"ytd-channel-transfer-stepper-renderer",function(){if(Pat!==void 0)return Pat;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Pat=f},{mode:1});var Gqw;var yK=function(){var f=_.K.apply(this,arguments)||this;f.data=null;f.isError=!1;f.isLoading=!1;return f};
_.e(yK,_.K);_.R=yK.prototype;_.R.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"}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.R.computeProfileName=function(f){return f?f.givenNameValue+" "+f.familyNameValue:""};
_.R.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)};
_.R.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)};
yK.prototype.onYtServiceRequestError=yK.prototype.onYtServiceRequestError;yK.prototype.onYtServiceRequestSent=yK.prototype.onYtServiceRequestSent;yK.prototype.dataChanged=yK.prototype.dataChanged;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],yK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],yK.prototype,"data",void 0);
_.E([_.F({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.N("design:type",String)],yK.prototype,"profileName",void 0);_.E([_.F(),_.N("design:type",Object)],yK.prototype,"isError",void 0);_.E([_.F(),_.N("design:type",Object)],yK.prototype,"isLoading",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yK.prototype,"dataChanged",null);
_.E([_.sE("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.ER]),_.N("design:returntype")],yK.prototype,"onYtServiceRequestSent",null);_.E([_.sE("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.ER]),_.N("design:returntype")],yK.prototype,"onYtServiceRequestError",null);_.E([_.u({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],yK);
_.G(yK,"ytd-channel-warm-welcome-cont-renderer",function(){if(Gqw!==void 0)return Gqw;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Gqw=f},{mode:1});var Cap;var YB=function(){var f=_.K.apply(this,arguments)||this;f.data=null;return f};
_.e(YB,_.K);YB.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
YB.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],YB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],YB.prototype,"data",void 0);_.E([_.u({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],YB);
_.G(YB,"ytd-channel-warm-welcome-renderer",function(){if(Cap!==void 0)return Cap;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Cap=f},{mode:1});var ECt;var m0=function(){return _.K.apply(this,arguments)||this};
_.e(m0,_.K);_.H7.Object.defineProperties(m0.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.authorThumbnail)||{}}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],m0.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],m0.prototype,"data",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],m0.prototype,"thumbnailDetails",null);_.E([_.u({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],m0);
_.G(m0,"ytd-comment-preview-renderer",function(){if(ECt!==void 0)return ECt;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return ECt=f},{mode:1});var N2W;var $B=function(){return _.K.apply(this,arguments)||this};
_.e($B,_.K);$B.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.H7.Object.defineProperties($B.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.submitButton}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],$B.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],$B.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],$B.prototype,"data",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],$B.prototype,"submitButton",null);_.E([_.u({is:"ytd-notice-renderer",disableElementRegistration:!0})],$B);
_.G($B,"ytd-notice-renderer",function(){if(N2W!==void 0)return N2W;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return N2W=f},{mode:1});var c1F;var WX=function(){return _.K.apply(this,arguments)||this};
_.e(WX,_.K);WX.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],WX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],WX.prototype,"data",void 0);_.E([_.u({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],WX);
_.G(WX,"ytd-preview-comment-dialog-content",function(){if(c1F!==void 0)return c1F;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return c1F=f},{mode:1});var Xcw;var Oa=function(){return _.K.apply(this,arguments)||this};
_.e(Oa,_.K);Oa.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Oa.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Oa.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Oa.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Oa.prototype,"data",void 0);_.E([_.u({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],Oa);
_.G(Oa,"ytd-preview-comment-dialog-renderer",function(){if(Xcw!==void 0)return Xcw;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Xcw=f},{mode:1});var A1r;var bkW=_.J("web_button_rework")&&_.P6("BUTTON_REWORK")||_.J("web_button_rework_with_live"),IB=function(){var f=_.K.apply(this,arguments)||this;f.closeLabel=_.ZC("CLOSE");f.selectedAmountIndex=1;f.privacyCheckboxValue=!1;f.useAmsterdamStyle=bkW;f.amountPlaceholderIndex=-1;return f};
_.e(IB,_.K);_.R=IB.prototype;_.R.onAmountClick=function(f){this.selectedAmountIndex=_.mF(this.hostElement).querySelector("#amounts").indexForElement(f.currentTarget)};
_.R.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.mb(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.R.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.mb(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.mb(this.hostElement,"yt-close-popup-action",[this.is]);var f;(f=_.vx())==null||f.getPlayerPromise().then(function(H){H.pauseVideo()})}};
_.R.donationCallback=function(f){f.success?(this.hostElement.hasAttribute("live-chat")&&f.response&&f.response.data&&f.response.data.actions&&_.mb(this.hostElement,"yt-live-chat-open-popup",[f.response.data.actions[0]]),_.mb(this.hostElement,"yt-close-popup-action",[this.is]),_.mb(this.hostElement,"yt-live-chat-close-buy-flow")):f.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(f.errorMessageRenderer)};
_.R.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.mF(this.hostElement).querySelector("#custom-amount-input").focus()};
_.R.updateConfirmationDialogTextWithAmount=function(f){var H=this.getConfirmDialogRuns();H&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(H),"text"],this.getFormattedAmount(f))};
_.R.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.R.getAmountPlaceholderIndex=function(f){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=f.findIndex(function(H){return H.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.R.getFormattedAmount=function(f){var H;return(new _.Ad(4,((H=this.data)==null?void 0:H.currencyCode)||"")).format(f)};
_.R.isAmountValid=function(f){if(f==="")return!1;f=Number(f)*1E6;var H=this.get("minAmountMicros",this.data),v=this.get("maxAmountMicros",this.data);return H&&f<H||v&&f>v?!1:!0};
_.R.setInputError=function(){this.shouldShowValidationError?_.mF(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.mF(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.R.setInitialCheckboxValue=function(){var f;this.privacyCheckboxValue=!((f=this.data)==null||!f.privacyCheckboxInitialState)};
_.R.updateCustomAmountInputFromBinding=function(f){this.customAmountInput=f.detail.value};
_.R.updatePrivacyCheckboxValueFromBinding=function(f){this.privacyCheckboxValue=f.detail.value};
_.H7.Object.defineProperties(IB.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var f=this,H,v;return((H=this.data)==null?void 0:(v=H.suggestedAmounts)==null?void 0:v.map(function(t,M){return{buttonRenderer:{style:f.selectedAmountIndex===M?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:t.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 f;return!((f=this.data)==null||!f.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 f=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(f&&this.amountMicros!==null)return Object.assign({},f,{ypcGetCartEndpoint:Object.assign({},f.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 f=this.get("confirmLargeAmount",this.data);if(f&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),f}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var f=this.get("donateButton.buttonRenderer",this.data);if(f)return Object.assign({},f,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
IB.prototype.setInitialCheckboxValue=IB.prototype.setInitialCheckboxValue;IB.prototype.setInputError=IB.prototype.setInputError;IB.prototype.setFocusOnCustomAmountInput=IB.prototype.setFocusOnCustomAmountInput;_.E([_.B(ROr),_.N("design:type",Object)],IB.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],IB.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],IB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],IB.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],IB.prototype,"closeLabel",void 0);_.E([_.F(),_.N("design:type",Object)],IB.prototype,"selectedAmountIndex",void 0);_.E([_.F(),_.N("design:type",String)],IB.prototype,"customAmountInput",void 0);_.E([_.F(),_.N("design:type",Object)],IB.prototype,"privacyCheckboxValue",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],IB.prototype,"useAmsterdamStyle",void 0);_.E([_.Zw("customAmount"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IB.prototype,"setFocusOnCustomAmountInput",null);_.E([_.z("data","selectedAmountIndex"),_.N("design:type",Array),_.N("design:paramtypes",[])],IB.prototype,"suggestedAmountButtons",null);
_.E([_.z("data","selectedAmountIndex"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],IB.prototype,"isCustomAmountSelected",null);_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],IB.prototype,"showPrivacyCheckbox",null);_.E([_.z("data","selectedAmountIndex","customAmount"),_.N("design:type",Object),_.N("design:paramtypes",[])],IB.prototype,"amountMicros",null);
_.E([_.z("isCustomAmountSelected","customAmountInput"),_.N("design:type",Object),_.N("design:paramtypes",[])],IB.prototype,"customAmount",null);_.E([_.z("customAmount"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],IB.prototype,"shouldShowValidationError",null);_.E([_.z("customAmount"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],IB.prototype,"isDonateButtonEnabled",null);
_.E([_.z("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.N("design:type",Object),_.N("design:paramtypes",[])],IB.prototype,"donateCommand",null);_.E([_.z("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.N("design:type",Object),_.N("design:paramtypes",[])],IB.prototype,"donateCommandWithConfirmation",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],IB.prototype,"largeDonationThreshold",null);
_.E([_.z("customAmount","donateCommand","amountMicros"),_.N("design:type",Object),_.N("design:paramtypes",[])],IB.prototype,"confirmLargeAmountCommand",null);_.E([_.z("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.N("design:type",Object),_.N("design:paramtypes",[])],IB.prototype,"donateButtonRenderer",null);_.E([_.Zw("shouldShowValidationError"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IB.prototype,"setInputError",null);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IB.prototype,"setInitialCheckboxValue",null);_.E([_.u({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],IB);
_.G(IB,"ytd-donation-amount-picker-renderer",function(){if(A1r!==void 0)return A1r;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return A1r=f},{mode:1});var ikA;var St=function(){return _.K.apply(this,arguments)||this};
_.e(St,_.K);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],St.prototype,"ytComponentBehavior",void 0);_.E([_.F({}),_.N("design:type",Object)],St.prototype,"data",void 0);_.E([_.u({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],St);
_.G(St,"ytd-donation-post-transaction-content",function(){if(ikA!==void 0)return ikA;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return ikA=f},{mode:1});var kqw;var dc=function(){return _.K.apply(this,arguments)||this};
_.e(dc,_.K);dc.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],dc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],dc.prototype,"ytRendererBehavior",void 0);_.E([_.F({}),_.N("design:type",Object)],dc.prototype,"data",void 0);_.E([_.u({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],dc);
_.G(dc,"ytd-donation-post-transaction-renderer",function(){if(kqw!==void 0)return kqw;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return kqw=f},{mode:1});var T2i;var wcF;var jt=function(){return _.K.apply(this,arguments)||this};
_.e(jt,_.K);jt.prototype.computeIsStreamingProvider=function(f){return!!f.isStreamingShelf};
jt.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],jt.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],jt.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],jt.prototype,"data",void 0);_.E([_.F({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],jt.prototype,"isStreamingProvider",void 0);
_.E([_.u({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],jt);
_.G(jt,"ytd-media-provider-renderer",function(){if(wcF!==void 0)return wcF;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return wcF=f},{mode:1});var qJ5;var sa=function(){return _.K.apply(this,arguments)||this};
_.e(sa,_.K);sa.prototype.observeLightsourcePalette=function(){var f,H=(f=this.data)==null?void 0:f.vibrantsourceColorPaletteData;H&&_.r6(this.hostElement,H)};
sa.prototype.observeLightsourcePalette=sa.prototype.observeLightsourcePalette;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],sa.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],sa.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],sa.prototype,"data",void 0);
_.E([_.Zw("data.vibrantsourceColorPaletteData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sa.prototype,"observeLightsourcePalette",null);_.E([_.u({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],sa);
_.G(sa,"ytd-streaming-pop-up-dialog",function(){if(qJ5!==void 0)return qJ5;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return qJ5=f},{mode:1});var ZX=function(){return _.K.apply(this,arguments)||this};
_.e(ZX,_.K);ZX.prototype.onPopupOpened_=function(){var f;((f=this.data)==null?0:f.serviceEndpoint)&&_.t8().resolve(_.MJ).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
ZX.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
ZX.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"}}}}};
ZX.prototype.onPopupOpened_=ZX.prototype.onPopupOpened_;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ZX.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],ZX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.E_),_.N("design:type",Object)],ZX.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],ZX.prototype,"data",void 0);
_.E([_.sE("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ZX.prototype,"onPopupOpened_",null);_.E([_.u({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],ZX);
_.G(ZX,"ytd-brandconnect-popup-renderer",function(){if(T2i!==void 0)return T2i;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return T2i=f},{mode:1});var fzF;var JU=function(){return _.K.apply(this,arguments)||this};
_.e(JU,_.K);_.R=JU.prototype;_.R.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.dataChanged=function(){for(var f=0;f<this.getOptionRenderers().length;f++)this.notifyPath("data.options."+f+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+f+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.R.updateSubmitButton=function(f){this.set("data.submitButton.buttonRenderer.isDisabled",!f)};
_.R.computeAlt=function(f){return _.fG(f)};
_.R.onDismissTap=function(){_.mb(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.t8().resolve(_.MJ).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.R.getOptionRenderers=function(f){return(f=f||this.data)&&f.options?f.options.reduce(function(H,v){v.checkboxSurveyOptionRenderer&&H.push(v.checkboxSurveyOptionRenderer);return H},[]):[]};
_.R.onOptionChange=function(f){var H=this,v=!1;if(f.detail.checked)for(var t=this.getOptionRenderers().find(function(m){return m.value===f.detail.value}),M=this.getOptionRenderers(),h=0;h<M.length;h++){var y=M[h];
this.notifyPath("data.options."+h+".checkboxSurveyOptionRenderer.checked");y.checked&&((t==null?0:t.isExclusiveOption)?!y.isExclusiveOption:y.isExclusiveOption)?this.set("data.options."+h+".checkboxSurveyOptionRenderer.checked",!1):y.checked&&(v=!0)}else v=this.getOptionRenderers().some(function(m,W){H.notifyPath("data.options."+W+".checkboxSurveyOptionRenderer.checked");return m.checked});
this.updateSubmitButton(v)};
_.R.onSubmitTap=function(){var f=this.getOptionRenderers().filter(function(h){return h.checked});
if(f.length!==0){var H=f.map(function(h){return h.responseEndpoint});
f=[];for(var v=1;v<H.length;v++){var t=void 0,M=(t=_.U(H[v],_.B1))==null?void 0:t.feedbackToken;M&&f.push(M)}H=[H[0]];f.length&&H.push({extra_feedback_tokens:f});_.WV(this.hostElement,H);_.mb(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);f=this.data&&this.data.submitActions||[];if(_.J("kevlar_command_handler_migration_killswitch"))_.Oj(this.hostElement,f,this.hostElement);else for(f=_.V(f),H=f.next();!H.done;H=f.next())this.ytComponentBehavior.resolveCommand(H.value)}};
JU.prototype.onOptionChange=JU.prototype.onOptionChange;JU.prototype.dataChanged=JU.prototype.dataChanged;_.E([_.B(_.lv.YtEventForwardingBehavior),_.N("design:type",Object)],JU.prototype,"ytEventForwardingBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],JU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],JU.prototype,"ytComponentBehavior",void 0);
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],JU.prototype,"ytRendererBehavior",void 0);_.E([_.B(eOi),_.N("design:type",Object)],JU.prototype,"ytdHatsSurveyBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],JU.prototype,"data",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],JU.prototype,"dataChanged",null);
_.E([_.sE("ytd-checkbox-survey-option-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],JU.prototype,"onOptionChange",null);_.E([_.u({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],JU);
_.G(JU,"ytd-checkbox-survey-renderer",function(){if(fzF!==void 0)return fzF;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return fzF=f},{mode:1});var Hft;var vxt;var lI=function(){return _.K.apply(this,arguments)||this};
_.e(lI,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],lI.prototype,"ytRendererBehavior",void 0);_.E([_.B(Uv5),_.N("design:type",Object)],lI.prototype,"ytdDismissalReasonBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],lI.prototype,"data",void 0);_.E([_.u({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],lI);
_.G(lI,"ytd-dismissal-reason-text-renderer",function(){if(vxt!==void 0)return vxt;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return vxt=f},{mode:1});var tQW;var Ua=function(){return _.K.apply(this,arguments)||this};
_.e(Ua,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Ua.prototype,"ytRendererBehavior",void 0);_.E([_.B(Uv5),_.N("design:type",Object)],Ua.prototype,"ytdDismissalReasonBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Ua.prototype,"data",void 0);_.E([_.u({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],Ua);
_.G(Ua,"ytd-dismissal-reason-video-renderer",function(){if(tQW!==void 0)return tQW;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return tQW=f},{mode:1});var et=function(){var f=_.K.apply(this,arguments)||this;f.darkerDarkTheme=_.J("web_darker_dark_theme");return f};
_.e(et,_.K);_.R=et.prototype;_.R.created=function(){this.selectedFeedbackTokens=new RD};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.R.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.R.onDismissalReasonSelected=function(f,H){_.YE(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(H);this.hasReasonsSelected=!0};
_.R.onDismissalReasonDeselected=function(f,H){_.YE(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(H);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.R.onCancelTap=function(){_.mb(this.hostElement,"yt-close-popup-action")};
_.R.onSubmitTap=function(){var f=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(f={feedback_tokens:f},_.t8().resolve(_.MJ).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},f,{element:this.hostElement})}));_.mb(this.hostElement,"yt-close-popup-action")};
et.prototype.onDismissalReasonDeselected=et.prototype.onDismissalReasonDeselected;et.prototype.onDismissalReasonSelected=et.prototype.onDismissalReasonSelected;et.prototype.dataChanged=et.prototype.dataChanged;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],et.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],et.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],et.prototype,"data",void 0);
_.E([_.F(),_.N("design:type",Boolean)],et.prototype,"hasReasonsSelected",void 0);_.E([_.F(),_.N("design:type",RD)],et.prototype,"selectedFeedbackTokens",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],et.prototype,"darkerDarkTheme",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],et.prototype,"dataChanged",null);
_.E([_.sE("yt-dismissal-reason-selected"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,String]),_.N("design:returntype")],et.prototype,"onDismissalReasonSelected",null);_.E([_.sE("yt-dismissal-reason-deselected"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,String]),_.N("design:returntype")],et.prototype,"onDismissalReasonDeselected",null);_.E([_.u({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],et);
_.G(et,"ytd-dismissal-follow-up-renderer",function(){if(Hft!==void 0)return Hft;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Hft=f},{mode:1});var MQx;var Lw=function(){return _.K.apply(this,arguments)||this};
_.e(Lw,_.K);_.R=Lw.prototype;_.R.onCheckedChange=function(){this.multiselect||_.YE(this.hostElement,"yt-feedback-single-select-changed");_.mF(this.hostElement).querySelector("#freeform").focus();_.YE(this.hostElement,"yt-refit")};
_.R.showTextBox=function(f,H){return f&&H};
_.R.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))};
_.R.updateDataCheckedFromBinding=function(f){this.set("data.checked",f.detail.value)};
_.R.updateDataResultTextFromBinding=function(f){this.set("data.resultText",f.detail.value)};
Lw.prototype.dataChanged=Lw.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Lw.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Lw.prototype,"data",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],Lw.prototype,"multiselect",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Lw.prototype,"dataChanged",null);
_.E([_.u({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],Lw);
_.G(Lw,"ytd-feedback-option-renderer",function(){if(MQx!==void 0)return MQx;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return MQx=f},{mode:1});var h3G;var xB=function(){return _.K.apply(this,arguments)||this};
_.e(xB,_.K);xB.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
xB.prototype.onSingleSelectCheckedChanged=function(f){f=_.HB(f);for(var H=0;H<this.data.options.length;H++)if(f.data!==_.U(this.data.options[H],J$p)){var v="data.options."+H+".feedbackOptionRenderer.checked";this.notifyPath(v);this.set(v,!1)}};
xB.prototype.onSingleSelectCheckedChanged=xB.prototype.onSingleSelectCheckedChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],xB.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],xB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],xB.prototype,"data",void 0);
_.E([_.sE("yt-feedback-single-select-changed"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],xB.prototype,"onSingleSelectCheckedChanged",null);_.E([_.u({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],xB);
_.G(xB,"ytd-feedback-question-renderer",function(){if(h3G!==void 0)return h3G;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return h3G=f},{mode:1});var R3h;var BX=function(){return _.K.apply(this,arguments)||this};
_.e(BX,_.K);BX.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
BX.prototype.getSelectedFeedbackResults=function(){for(var f={},H=0;H<this.data.questions.length;H++)for(var v=_.U(this.data.questions[H],ZWW),t=0;t<v.options.length;t++){var M=_.U(v.options[t],J$p);M&&M.checked&&(f[M.optionKey]=M.resultText)}return f};
BX.prototype.onKeyUp=function(){var f=this;_.OR(_.nN,function(){_.YE(f.hostElement,"yt-refit")});
_.nN.start()};
BX.prototype.submitSurvey=function(){var f=this.getSelectedFeedbackResults();Object.keys(f).length>0&&this.data.submitFeedbackEndpoint&&(f={survey_results:f,is_feedback_token_unencrypted:!0},_.t8().resolve(_.MJ).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},f,{element:this.hostElement})}))};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],BX.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],BX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],BX.prototype,"data",void 0);_.E([_.u({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],BX);
_.G(BX,"ytd-feedback-survey-renderer",function(){if(R3h!==void 0)return R3h;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return R3h=f},{mode:1});var VQA;var yni;var zk=function(){return _.K.apply(this,arguments)||this};
_.e(zk,_.K);zk.prototype.computeAlt=function(f){return _.fG(f)};
zk.prototype.submitResponse=function(){var f,H;(f=this.data)!=null&&f.feedbackToken&&((H=this.data)==null?void 0:H.nextStageIndex)!==void 0&&(_.$E(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.$E(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
zk.prototype.onClick=function(){this.submitResponse()};
zk.prototype.onClick=zk.prototype.onClick;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],zk.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],zk.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],zk.prototype,"vertical",void 0);_.E([_.sE("click"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zk.prototype,"onClick",null);
_.E([_.u({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],zk);
_.G(zk,"ytd-single-select-answer-option-renderer",function(){if(yni!==void 0)return yni;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return yni=f},{mode:1});var YWF;var Ff=function(){var f=_.K.apply(this,arguments)||this;f.darkerDarkTheme=_.J("web_darker_dark_theme");f.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return f};
_.e(Ff,_.K);Ff.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
Ff.prototype.dataChanged=function(){var f,H;this.vertical=((H=(f=this.data)==null?void 0:f.answerOrientation)!=null?H:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
Ff.prototype.submitFeedback=function(f){var H;((H=this.data)==null?0:H.responseEndpoint)&&f&&_.WV(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[f]}])};
Ff.prototype.dataChanged=Ff.prototype.dataChanged;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Ff.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.lv.YtEventForwardingBehavior),_.N("design:type",Object)],Ff.prototype,"eventForwardingBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Ff.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Ff.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],Ff.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ff.prototype,"vertical",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Ff.prototype,"darkerDarkTheme",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ff.prototype,"dataChanged",null);_.E([_.u({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],Ff);
_.G(Ff,"ytd-single-select-question-renderer",function(){if(YWF!==void 0)return YWF;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return YWF=f},{mode:1});var rc=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return f};
_.e(rc,_.K);_.R=rc.prototype;_.R.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"}}}};
_.R.dataChanged=function(){this.jumpToStage(0)};
_.R.jumpToStage=function(f){var H,v;if((H=this.data)==null?0:(v=H.stages)==null?0:v[f])this.currentStage=this.data.stages[f],this.refitAfterRender()};
_.R.computeAlt=function(f){return _.fG(f)};
_.R.computeSimpleMessage=function(f){var H;return(H=_.U(f,e5F))==null?void 0:H.messageText};
_.R.computeHideDismiss=function(f){var H;return(H=_.U(f,T45))==null?void 0:H.hideParentDismissButton};
_.R.onDismissTap=function(){_.mb(this.hostElement,"yt-close-popup-action");_.U(this.currentStage,e5F)||this.data.dismissalEndpoint&&_.t8().resolve(_.MJ).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.R.refitAfterRender=function(){var f=this;_.qV(this,function(){_.YE(f.hostElement,"yt-refit")})};
rc.prototype.dataChanged=rc.prototype.dataChanged;_.E([_.B(_.lv.YtEventForwardingBehavior),_.N("design:type",Object)],rc.prototype,"eventForwardingBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],rc.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],rc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],rc.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.B(eOi),_.N("design:type",Object)],rc.prototype,"ytdHatsSurveyBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],rc.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],rc.prototype,"currentStage",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rc.prototype,"dataChanged",null);_.E([_.u({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],rc);
_.G(rc,"ytd-multi-stage-survey-renderer",function(){if(VQA!==void 0)return VQA;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return VQA=f},{mode:1});var mmp;var Kw=function(){return _.K.apply(this,arguments)||this};
_.e(Kw,_.K);Kw.prototype.computeAlt=function(f){return _.fG(f)};
Kw.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.t8().resolve(_.MJ).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.mb(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.eLb(!1)))};
Kw.prototype.onTap=function(){this.vertical&&this.submitResponse()};
Kw.prototype.onTap=Kw.prototype.onTap;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Kw.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],Kw.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Kw.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],Kw.prototype,"vertical",void 0);
_.E([_.sE("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kw.prototype,"onTap",null);_.E([_.u({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],Kw);
_.G(Kw,"ytd-single-option-survey-option-renderer",function(){if(mmp!==void 0)return mmp;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return mmp=f},{mode:1});var $mr;var DX=function(){return _.K.apply(this,arguments)||this};
_.e(DX,_.K);_.R=DX.prototype;_.R.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.dataChanged=function(){var f,H;this.vertical=(((f=this.data)==null?void 0:(H=f.surveyOrientation)==null?void 0:H.type)||"HORIZONTAL")==="VERTICAL"};
_.R.computeAlt=function(f){return _.fG(f)};
_.R.onDismissTap=function(){_.mb(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.t8().resolve(_.MJ).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.eLb(!1))};
DX.prototype.dataChanged=DX.prototype.dataChanged;_.E([_.B(_.lv.YtEventForwardingBehavior),_.N("design:type",Object)],DX.prototype,"eventForwardingBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],DX.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],DX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(eOi),_.N("design:type",Object)],DX.prototype,"ytdHatsSurveyBehavior",void 0);
_.E([_.B(_.um),_.N("design:type",Object)],DX.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],DX.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],DX.prototype,"vertical",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DX.prototype,"dataChanged",null);_.E([_.u({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],DX);
_.G(DX,"ytd-single-option-survey-renderer",function(){if($mr!==void 0)return $mr;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return $mr=f},{mode:1});var Wrb;var oB=function(){var f=_.K.apply(this,arguments)||this;f.darkerDarkTheme=_.J("web_darker_dark_theme");return f};
_.e(oB,_.K);oB.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
oB.prototype.onDismissTap=function(){_.mb(this.hostElement,"yt-close-popup-action")};
oB.prototype.onNavigate=function(){_.mb(this.hostElement,"yt-close-popup-action")};
oB.prototype.onNavigate=oB.prototype.onNavigate;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],oB.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.lv.YtEventForwardingBehavior),_.N("design:type",Object)],oB.prototype,"ytEventForwardingBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],oB.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],oB.prototype,"darkerDarkTheme",void 0);
_.E([_.sE("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oB.prototype,"onNavigate",null);_.E([_.u({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],oB);
_.G(oB,"ytd-survey-follow-up-renderer",function(){if(Wrb!==void 0)return Wrb;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Wrb=f},{mode:1});var Of0;var gx0;var Izh;var nw=function(){var f=_.K.apply(this,arguments)||this;f.polymer2="Element"in Polymer;return f};
_.e(nw,_.K);_.R=nw.prototype;_.R.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.R.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.R.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.R.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.bM("minutes-changed",this.minutes))};
_.R.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.bM("seconds-changed",this.seconds))};
_.R.updateMinutesFromBinding=function(f){this.minutes=f.detail.value};
_.R.updateSecondsFromBinding=function(f){this.seconds=f.detail.value};
nw.prototype.secondsChangedForBinding=nw.prototype.secondsChangedForBinding;nw.prototype.minutesChangedForBinding=nw.prototype.minutesChangedForBinding;nw.prototype.secondsChanged=nw.prototype.secondsChanged;_.E([_.F(),_.N("design:type",String)],nw.prototype,"minutes",void 0);_.E([_.F(),_.N("design:type",String)],nw.prototype,"seconds",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],nw.prototype,"polymer2",void 0);
_.E([_.lJ("#seconds"),_.N("design:type",Object)],nw.prototype,"secondsEl",void 0);_.E([_.Zw("seconds"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nw.prototype,"secondsChanged",null);_.E([_.Zw("minutes"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nw.prototype,"minutesChangedForBinding",null);
_.E([_.Zw("seconds"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nw.prototype,"secondsChangedForBinding",null);_.E([_.GW({is:"yt-timestamp-input",disableElementRegistration:!0})],nw);
_.G(nw,"yt-timestamp-input",function(){if(Izh===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;gx0===void 0&&(gx0=document.createElement("template"));var t=gx0;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Izh=f}f=Izh;return f},{mode:2});var pw=function(){return _.K.apply(this,arguments)||this};
_.e(pw,_.K);_.R=pw.prototype;_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20301_scroller.dialogElement=this.hostElement.parentNode};
_.R.dataChanged=function(){var f=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.tj().getPlayerPromise().then(function(H){H=H.getCurrentTime();f.minutes=Math.floor(H/60).toString();f.seconds=(Math.floor(H)%60).toString()})};
_.R.onTapSubmit=function(f){f.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(f={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(f.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(f.minutes=this.minutes,f.seconds=this.seconds),_.t8().resolve(_.MJ).resolveCommand(this.serviceEndpoint,{form:Object.assign({},f,{element:this.hostElement})}))};
_.R.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.R.onYtServiceRequestCompleted=function(f,H){H=H.actions;if(Array.isArray(H))for(var v=0,t=H.length;v<t;v++)_.U(H[v],_.Up)&&(f.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(H[v]))};
_.R.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.R.toggleSubmitButton=function(f){this.set("submitButton.isDisabled",!f)};
_.R.handleInput=function(){var f=this.issueType,H=this.affiliation,v=this.minutes,t=this.seconds;v=!this.showTimestamp||!!v&&!!t;this.toggleSubmitButton(!!this.descriptionText&&!!f&&!!H&&v)};
_.R.computeServiceEndpoint=function(f){return this.get("submitButton.buttonRenderer.serviceEndpoint",f)};
_.R.computeSubmitButton=function(f){(f=this.get("submitButton.buttonRenderer",f))&&(f=Object.assign({},f,{serviceEndpoint:void 0}));return f};
_.R.computeShowTimestamp=function(f){return!!f};
_.R.onValueChangedForIssueType=function(f){this.issueType=f.detail.value};
_.R.onValueChangedForAffiliation=function(f){this.affiliation=f.detail.value};
_.R.updateDescriptionTextFromBinding=function(f){this.descriptionText=f.detail.value};
_.R.updateFullNameTextFromBinding=function(f){this.fullNameText=f.detail.value};
_.R.updateMinutesFromBinding=function(f){this.minutes=f.detail.value};
_.R.updateSecondsFromBinding=function(f){this.seconds=f.detail.value};
pw.prototype.handleInput=pw.prototype.handleInput;pw.prototype.onYtServiceRequestError=pw.prototype.onYtServiceRequestError;pw.prototype.onYtServiceRequestCompleted=pw.prototype.onYtServiceRequestCompleted;pw.prototype.onYtServiceRequestSent=pw.prototype.onYtServiceRequestSent;pw.prototype.dataChanged=pw.prototype.dataChanged;_.E([_.B(_.IM.YtOpenPopupBehavior),_.N("design:type",Object)],pw.prototype,"ytOpenPopupBehavior",void 0);
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],pw.prototype,"ytRendererBehavior",void 0);_.E([_.lJ("#scroller"),_.N("design:type",Object)],pw.prototype,"JSC$20301_scroller",void 0);_.E([_.lJ("#description"),_.N("design:type",HTMLInputElement)],pw.prototype,"description",void 0);_.E([_.lJ("#full-name"),_.N("design:type",Object)],pw.prototype,"fullName",void 0);_.E([_.F(),_.N("design:type",Object)],pw.prototype,"data",void 0);
_.E([_.F({computed:"computeShowTimestamp(data.timestampLabel)"}),_.N("design:type",Boolean)],pw.prototype,"showTimestamp",void 0);_.E([_.F({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.N("design:type",Object)],pw.prototype,"serviceEndpoint",void 0);_.E([_.F({computed:"computeSubmitButton(data)"}),_.N("design:type",Object)],pw.prototype,"submitButton",void 0);_.E([_.F(),_.N("design:type",String)],pw.prototype,"descriptionText",void 0);
_.E([_.F(),_.N("design:type",Number)],pw.prototype,"issueType",void 0);_.E([_.F(),_.N("design:type",Number)],pw.prototype,"affiliation",void 0);_.E([_.F(),_.N("design:type",String)],pw.prototype,"fullNameText",void 0);_.E([_.F(),_.N("design:type",String)],pw.prototype,"minutes",void 0);_.E([_.F(),_.N("design:type",String)],pw.prototype,"seconds",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pw.prototype,"dataChanged",null);
_.E([_.sE("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.ER]),_.N("design:returntype")],pw.prototype,"onYtServiceRequestSent",null);_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.TI]),_.N("design:returntype")],pw.prototype,"onYtServiceRequestCompleted",null);
_.E([_.sE("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],pw.prototype,"onYtServiceRequestError",null);_.E([_.Zw("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pw.prototype,"handleInput",null);_.E([_.u({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],pw);
_.G(pw,"ytd-legal-report-details-form-renderer",function(){if(Of0!==void 0)return Of0;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Of0=f},{mode:1});var SWb;var QK=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return f};
_.e(QK,_.K);QK.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
QK.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var f=this.formRenderer.getForm();f&&this.data.submitEndpoint&&(_.t8().resolve(_.MJ).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},f,{element:this.hostElement})}),_.mb(this.hostElement,"yt-close-popup-action"))}};
QK.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.mb(this.hostElement,"yt-close-popup-action"))};
QK.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
QK.prototype.onPopupClosed=QK.prototype.onPopupClosed;_.E([_.B(_.lv.YtEventForwardingBehavior),_.N("design:type",Object)],QK.prototype,"ytEventForwardingBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],QK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],QK.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],QK.prototype,"ytRendererBehavior",void 0);
_.E([_.lJ("yt-form-renderer"),_.N("design:type",Object)],QK.prototype,"formRenderer",void 0);_.E([_.F(),_.N("design:type",Object)],QK.prototype,"data",void 0);_.E([_.sE("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],QK.prototype,"onPopupClosed",null);_.E([_.u({is:"ytd-form-popup-content",disableElementRegistration:!0})],QK);
_.G(QK,"ytd-form-popup-content",function(){if(SWb!==void 0)return SWb;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return SWb=f},{mode:1});var dmb;var uI=function(){return _.K.apply(this,arguments)||this};
_.e(uI,_.K);uI.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
uI.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
uI.prototype.onPopupOpened=function(){_.YE(this.hostElement,"yt-invalidate-popup-tabbables")};
uI.prototype.onYtServiceRequestCompleted=function(f,H){H.data&&H.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.YE(this.hostElement,"yt-invalidate-popup-tabbables"))};
uI.prototype.onYtServiceRequestCompleted=uI.prototype.onYtServiceRequestCompleted;uI.prototype.onPopupOpened=uI.prototype.onPopupOpened;_.E([_.B(_.lv.YtEventForwardingBehavior),_.N("design:type",Object)],uI.prototype,"ytEventForwardingBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],uI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],uI.prototype,"ytRendererBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],uI.prototype,"data",void 0);_.E([_.sE("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uI.prototype,"onPopupOpened",null);_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.TI]),_.N("design:returntype")],uI.prototype,"onYtServiceRequestCompleted",null);_.E([_.u({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],uI);
_.G(uI,"ytd-form-popup-renderer",function(){if(dmb!==void 0)return dmb;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return dmb=f},{mode:1});var jkb;var aB=function(){var f=_.K.apply(this,arguments)||this;f.isLoading=!1;return f};
_.e(aB,_.K);_.R=aB.prototype;_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");aFh(this.hostElement)};
_.R.onYtServiceRequestSent=function(){this.isLoading=!0};
_.R.onYtServiceRequestCompleted=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.R.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.Oj(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.R.closePopupHandler=function(){this.fireOnCloseActions()};
_.R.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var f=this.get("data.headerImage.thumbnails");f&&(f=_.YK(f,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+f+")")}};
_.R.onYtNavigate=function(f){(f=_.HB(f))&&f.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
aB.prototype.onYtNavigate=aB.prototype.onYtNavigate;aB.prototype.onHeaderImageChanged=aB.prototype.onHeaderImageChanged;aB.prototype.closePopupHandler=aB.prototype.closePopupHandler;aB.prototype.onYtServiceRequestCompleted=aB.prototype.onYtServiceRequestCompleted;aB.prototype.onYtServiceRequestSent=aB.prototype.onYtServiceRequestSent;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],aB.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.lv.YtEventForwardingBehavior),_.N("design:type",Object)],aB.prototype,"ytEventForwardingBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],aB.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],aB.prototype,"isLoading",void 0);_.E([_.lJ("#header"),_.N("design:type",HTMLDivElement)],aB.prototype,"header",void 0);_.E([_.lJ("#confirm-button"),_.N("design:type",_.LW)],aB.prototype,"confirmButton",void 0);
_.E([_.sE("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],aB.prototype,"onYtServiceRequestSent",null);_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],aB.prototype,"onYtServiceRequestCompleted",null);
_.E([_.sE("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],aB.prototype,"closePopupHandler",null);_.E([_.Zw("data.headerImage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aB.prototype,"onHeaderImageChanged",null);_.E([_.sE("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],aB.prototype,"onYtNavigate",null);
_.E([_.u({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],aB);
_.G(aB,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(jkb!==void 0)return jkb;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return jkb=f},{mode:1});var skx;var PX=function(){var f=_.K.apply(this,arguments)||this;f.isLoading=!1;return f};
_.e(PX,_.K);_.R=PX.prototype;_.R.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"}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);aFh(this.hostElement)};
_.R.onYtServiceRequestCompleted=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.R.onYtServiceRequestError=function(f){_.Xs(this.hostElement,f.detail.error.message)};
_.R.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.R.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.mb(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.R.onDataChanged=function(){this.isLoading=!1;var f=this.get("data.headerImage.thumbnails");f&&(f=_.YK(f,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+f+")");f=_.uy();var H=_.Qe(),v=this.get("data.trackingParams");v&&H&&f&&_.Xl(f,H,_.zK(v))};
_.H7.Object.defineProperties(PX.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
PX.prototype.onDataChanged=PX.prototype.onDataChanged;PX.prototype.onDomChange=PX.prototype.onDomChange;PX.prototype.onYtServiceRequestError=PX.prototype.onYtServiceRequestError;PX.prototype.onYtServiceRequestCompleted=PX.prototype.onYtServiceRequestCompleted;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],PX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],PX.prototype,"ytRendererBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],PX.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],PX.prototype,"isLoading",void 0);_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],PX.prototype,"hasDescription",null);_.E([_.lJ("tp-yt-paper-dialog-scrollable"),_.N("design:type",Object)],PX.prototype,"scrollable",void 0);_.E([_.lJ("#header"),_.N("design:type",HTMLElement)],PX.prototype,"header",void 0);
_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],PX.prototype,"onYtServiceRequestCompleted",null);_.E([_.sE("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],PX.prototype,"onYtServiceRequestError",null);
_.E([_.sE("dom-change"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],PX.prototype,"onDomChange",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],PX.prototype,"onDataChanged",null);_.E([_.u({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],PX);
_.G(PX,"ytd-gaming-account-link-setting-renderer",function(){if(skx!==void 0)return skx;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return skx=f},{mode:1});var Zfx;var JnW;var Gk=function(){var f=_.K.apply(this,arguments)||this;f.isHeader=!1;f.getEndpointForm=function(){return dE5(f.data)};
return f};
_.e(Gk,_.K);_.R=Gk.prototype;_.R.triggerHintActions=function(){var f=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var H=_.$E(f.hostElement,"yt-get-opened-popups-action");!(H&&H.length===1?H[0]:[]).some(function(v){v=v.openPopupAction.popupType;return v==="SURVEY"||v==="MEALBAR"||v==="HINT"})&&f.data.hintActions&&f.guideOpened&&(_.Oj(f.hostElement,f.data.hintActions,f.hostElement),f.data.hintActions=void 0)})};
_.R.getBadgeIconType=function(f){return f&&f.liveBroadcasting?"live":null};
_.R.onDown=function(){this.interaction.triggerDown()};
_.R.onUp=function(){this.interaction.triggerUp()};
_.R.onTap=function(f){if(this.data.serviceEndpoint){var H;_.J("shorts_controller_retrieve_seedless_sequence_v2")&&((H=_.U(this.data.serviceEndpoint,_.zD))==null?void 0:H.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):SVr(this.data.serviceEndpoint,this);f.preventDefault()}else this.data.navigationEndpoint&&!_.w6(_.f2(f),this.hostElement,["A".toString()])&&_.YE(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.R.computeActive=function(f,H){if(!f)return!1;var v=f.navigationEndpoint;f=f.serviceEndpoint;if(!v&&!f||!H)return!1;if(v){f=(f=_.U6(H))&&["subscriptions","filteredsubscriptions"].includes(f);if(_.U(v,_.ec)&&_.U(H,_.ec)&&!f){var t=_.U(v,_.ec).browseId;H=_.U(H,_.ec).browseId;return t!==void 0&&H!==void 0&&(t===H||t==="VLWL"&&H==="FEwatch_later"||t==="FEwatch_later"&&H==="VLWL")}var M;v=(M=_.U(v.commandMetadata,_.jG))==null?void 0:M.url;H=(t=_.U(H.commandMetadata,_.jG))==null?void 0:t.url;return!(!v||
!H||v!==H&&v!==_.gH(H))}return this.isActiveShortsTab(f,H)};
_.R.isActiveShortsTab=function(f,H){H=!!_.U(H,_.zD)||!!_.U(H,_.Dk);return(!!_.U(f,_.zD)||!!_.U(f,_.Dk))&&H};
_.R.computeIsPrimary=function(f){return!!f};
_.H7.Object.defineProperties(Gk.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 f=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&f)return f}}});
Gk.prototype.onTap=Gk.prototype.onTap;Gk.prototype.onUp=Gk.prototype.onUp;Gk.prototype.onDown=Gk.prototype.onDown;Gk.prototype.triggerHintActions=Gk.prototype.triggerHintActions;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Gk.prototype,"componentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Gk.prototype,"rendererBehavior",void 0);_.E([_.B(_.Hp.YtTaskEmitterBehavior),_.N("design:type",Object)],Gk.prototype,"taskEmitterBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],Gk.prototype,"activeEndpoint",void 0);_.E([_.F(),_.N("design:type",Object)],Gk.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Boolean)],Gk.prototype,"guideOpened",void 0);_.E([_.F(),_.N("design:type",String)],Gk.prototype,"type",void 0);_.E([_.lJ("yt-interaction"),_.N("design:type",Object)],Gk.prototype,"interaction",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Gk.prototype,"isHeader",void 0);
_.E([_.F({reflectToAttribute:!0}),_.z("data","activeEndpoint"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Gk.prototype,"active",null);_.E([_.F({reflectToAttribute:!0}),_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Gk.prototype,"isPrimary",null);_.E([_.F({reflectToAttribute:!0}),_.z("data.count","data.presentationStyle","data.badges.*"),_.N("design:type",String),_.N("design:paramtypes",[])],Gk.prototype,"lineEndStyle",null);
_.E([_.z("lineEndStyle"),_.N("design:type",Object),_.N("design:paramtypes",[])],Gk.prototype,"ariaLabel",null);_.E([_.Zw("data.hintActions","guideOpened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Gk.prototype,"triggerHintActions",null);_.E([_.sE("down"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Gk.prototype,"onDown",null);
_.E([_.sE("up"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Gk.prototype,"onUp",null);_.E([_.sE("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Gk.prototype,"onTap",null);_.E([_.u({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],Gk);
_.G(Gk,"ytd-guide-entry-renderer",function(){if(JnW!==void 0)return JnW;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return JnW=f},{mode:1});var Cw=function(){var f=_.K.apply(this,arguments)||this;f.userToggled=!1;return f};
_.e(Cw,_.K);_.R=Cw.prototype;_.R.getItemsPath=function(){return"data.expandableItems"};
_.R.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.R.onExpanderItemTapped=function(f){var H=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.J("kevlar_guide_expandable_items_killswitch")&&_.qV(this,function(){_.Tj(H.expandableItems)});
f.preventDefault()};
_.R.onCollapserItemTapped=function(f){var H=this;this._setExpanded(!1);this.userToggled=!0;f.preventDefault();this.expandableItems&&!_.J("kevlar_guide_collapsible_items_killswitch")&&_.qV(this,function(){_.kX(H.hostElement)})};
_.R.observeActiveEndpoint=function(){for(var f=this.activeEndpoint,H=this.data,v=this.expandableItems.children,t=0,M=v.length;t<M;t++)v[t].activeEndpoint=f;H&&H.autoExpandCommand&&f&&!this.userToggled&&(v=this.data.autoExpandCommand,H=!(!_.U(v,_.ec)||!_.U(f,_.ec)||_.U(v,_.ec).browseId!==_.U(f,_.ec).browseId),f=this.get("commandMetadata.webCommandMetadata.url",f),v=this.get("commandMetadata.webCommandMetadata.url",v),H=H||!!(f&&v&&f.includes(v)),this._setExpanded(H),H&&this.ytLazyListBehavior.fillRemainingListItems())};
Cw.prototype.observeActiveEndpoint=Cw.prototype.observeActiveEndpoint;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Cw.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Cw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.h3.YtLazyListBehavior),_.N("design:type",Object)],Cw.prototype,"ytLazyListBehavior",void 0);_.E([_.lJ("#expandable-items"),_.N("design:type",HTMLElement)],Cw.prototype,"expandableItems",void 0);
_.E([_.F(),_.N("design:type",Object)],Cw.prototype,"data",void 0);_.E([_.F({readOnly:!0,reflectToAttribute:!0}),_.N("design:type",Boolean)],Cw.prototype,"expanded",void 0);_.E([_.F({value:0}),_.N("design:type",Number)],Cw.prototype,"initialCount",void 0);_.E([_.F(),_.N("design:type",Object)],Cw.prototype,"activeEndpoint",void 0);_.E([_.Zw("data","activeEndpoint","canShowMore"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Cw.prototype,"observeActiveEndpoint",null);
_.E([_.u({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],Cw);
_.G(Cw,"ytd-guide-collapsible-entry-renderer",function(){if(Zfx!==void 0)return Zfx;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Zfx=f},{mode:_.WK("kevlar_poly_si_batch_j079")?1:2});var lzh;var Umt;var Ea=function(){var f=_.K.apply(this,arguments)||this;f.allVideosCount=0;f.renderGuideEntry=!1;return f};
_.e(Ea,_.K);Ea.prototype.observeRenderEntry=function(){var f;this.renderGuideEntry=!((f=this.data)==null||!f.alwaysShow)||!!this.allVideosCount};
Ea.prototype.observeRenderEntry=Ea.prototype.observeRenderEntry;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Ea.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],Ea.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Ea.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],Ea.prototype,"activeEndpoint",void 0);_.E([_.F({selector:_.viB}),_.N("design:type",Object)],Ea.prototype,"allVideosCount",void 0);
_.E([_.F(),_.N("design:type",Object)],Ea.prototype,"renderGuideEntry",void 0);_.E([_.xV("allVideosCount","data.alwaysShow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ea.prototype,"observeRenderEntry",null);_.E([_.u({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],Ea);
_.G(Ea,"ytd-guide-downloads-entry-renderer",function(){if(Umt===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);Umt=f}f=Umt;return f},{mode:1});var Nh=function(){var f=_.K.apply(this,arguments)||this;f.youtab=_.J("web_enable_youtab");f.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return f};
_.e(Nh,_.K);_.R=Nh.prototype;_.R.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]]"}}}}}};
_.R.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var f=this.sectionItems.children,H=0,v=f.length;H<v;H++)f[H].activeEndpoint=this.activeEndpoint}};
_.R.handleAddToGuideSectionAction=function(f){var H=_.U(f,GFF);if(H&&this.data&&(f=H.items,H=H.handlerData,f&&H&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(H)>-1)){H=0;for(var v=f.length;H<v;H++)f[H].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,f[H])}};
_.R.handleRemoveFromGuideSectionAction=function(f){var H=_.U(f,Cqb);H&&this.data&&(f=H.guideEntryId,H=H.handlerData,f&&H&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(H)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(f,this.data.sectionItems),this.removeFromCollapsedSection(f,this.data.sectionItems)))};
_.R.removeFromExpandedSection=function(f,H){f=this.getEntryIndexMatchingId(f,H);f!==-1&&this.splice("data.sectionItems",f,1)};
_.R.removeFromCollapsedSection=function(f,H){var v=H.findIndex(function(t){return!!_.U(t,M3t)});
v&&v!==-1&&H[v]&&_.U(H[v],M3t)&&(H=_.U(H[v],M3t).expandableItems)&&(f=this.getEntryIndexMatchingId(f,H),f!==-1&&this.splice("data.sectionItems."+v+".guideCollapsibleEntryRenderer.expandableItems",f,1))};
_.R.getEntryIndexMatchingId=function(f,H){var v=this;return H.findIndex(function(t){return v.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",t)===f})};
Nh.prototype.activeEndpointChanged=Nh.prototype.activeEndpointChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Nh.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Nh.prototype,"actionHandlerBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Nh.prototype,"ytRendererstamperBehavior",void 0);_.E([_.lJ("#section-items"),_.N("design:type",HTMLDivElement)],Nh.prototype,"sectionItems",void 0);
_.E([_.lJ("#header-entry"),_.N("design:type",Object)],Nh.prototype,"headerEntry",void 0);_.E([_.F(),_.N("design:type",Object)],Nh.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],Nh.prototype,"activeEndpoint",void 0);_.E([_.F(),_.N("design:type",Object)],Nh.prototype,"youtab",void 0);_.E([_.Zw("activeEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Nh.prototype,"activeEndpointChanged",null);
_.E([_.u({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],Nh);
_.G(Nh,"ytd-guide-collapsible-section-entry-renderer",function(){if(lzh===void 0){var f=document.createElement("template");_.x(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="[[youtab]]" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);lzh=f}f=lzh;return f},{mode:1});var e3i;var Lrr;var cX=function(){var f=_.K.apply(this,arguments)||this;f.modernTypography=_.J("web_modern_typography");f.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 f};
_.e(cX,_.K);_.R=cX.prototype;
_.R.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}}}}};
_.R.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var f=_.$E(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);f&&f.length===1&&f[0]&&_.$E(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.R.handleResetChannelUnreadCountCommand=function(f){var H;(f=(H=_.U(f,N4b))==null?void 0:H.channelId)&&this.data&&this.data.items&&(H=this.getPathToEntryMatchingId(f))&&(this.set(H+".guideEntryRenderer.count",0),this.set(H+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.R.handleResetSubscriptionsUnreadDotCommand=function(f){var H,v=(H=_.U(f,cp0))==null?void 0:H.targetId,t;v&&(t=this.data)!=null&&t.items&&(f=this.data.items.findIndex(function(M){var h;return((h=M.guideEntryRenderer)==null?void 0:h.targetId)===v}),f<0||this.set("data.items."+f+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.R.getPathToEntryMatchingId=function(f){if(this.data&&this.data.items){var H=this.getEntryIndexMatchingId(f,this.data.items);if(H>-1)return"data.items."+H;for(var v=0;v<this.data.items.length;v++)if(H=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[v]))if(H=this.getEntryIndexMatchingId(f,H),H>-1)return"data.items."+v+".guideCollapsibleEntryRenderer.expandableItems."+H}};
_.R.handleAddToGuideSectionAction=function(f){var H=this;if(_.U(f,GFF)){var v=_.U(f,GFF).items;f=_.U(f,GFF).handlerData;var t,M;if(v&&f&&((t=this.data)==null?void 0:(M=t.handlerDatas)==null?void 0:M.indexOf(f))>-1){v=v.filter(function(y){return(y=H.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",y))&&!H.isGuideItemPresent(y)});
var h;if(f==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((h=this.data)==null?0:h.items)&&(t=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),t>-1)){this.splice.apply(this,["data.items",t+1,0].concat(_.pS(v)));return}this.unshift.apply(this,["data.items"].concat(_.pS(v)))}}};
_.R.isGuideItemPresent=function(f){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(f,this.data.items)!==-1)return!0;var H=this.data.items.find(function(v){return!!v.guideCollapsibleEntryRenderer});
if((H==null?0:H.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(f,H.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.R.getEntryIndexMatchingId=function(f,H){var v=this;return H.findIndex(function(t){return v.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",t)===f})};
_.R.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(f,H){var v=this;return H.findIndex(function(t){return v.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",t)===f})};
_.R.handleRemoveFromGuideSectionAction=function(f){if(_.U(f,Cqb)){var H=_.U(f,Cqb).guideEntryId;f=_.U(f,Cqb).handlerData;var v,t;H&&f&&((v=this.data)==null?void 0:(t=v.handlerDatas)==null?void 0:t.indexOf(f))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(H,this.data.items),this.removeFromCollapsedSection(H,this.data.items))}};
_.R.removeFromExpandedSection=function(f,H){f=this.getEntryIndexMatchingId(f,H);f!==-1&&this.splice("data.items",f,1)};
_.R.removeFromCollapsedSection=function(f,H){var v=H.findIndex(function(t){return!!t.guideCollapsibleEntryRenderer});
v!==-1&&(H=H[v].guideCollapsibleEntryRenderer.expandableItems)&&(f=this.getEntryIndexMatchingId(f,H),f!==-1&&this.splice("data.items."+v+".guideCollapsibleEntryRenderer.expandableItems",f,1))};
_.R.activeEndpointChanged=function(){for(var f=_.mF(this.hostElement).querySelector("#items").children,H=0,v=f.length;H<v;H++)f[H].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.R.guideOpenedChanged=function(){for(var f=_.mF(this.hostElement).querySelector("#items").children,H=0,v=f.length;H<v;H++)f[H].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
cX.prototype.guideOpenedChanged=cX.prototype.guideOpenedChanged;cX.prototype.activeEndpointChanged=cX.prototype.activeEndpointChanged;cX.prototype.persistentGuideChanged=cX.prototype.persistentGuideChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],cX.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],cX.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],cX.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.h3.YtLazyListBehavior),_.N("design:type",Object)],cX.prototype,"ytLazyListBehavior",void 0);_.E([_.B(_.NW.YtdGuideStateAwareBehavior),_.N("design:type",Object)],cX.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],cX.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],cX.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],cX.prototype,"modernTypography",void 0);_.E([_.F(),_.N("design:type",String)],cX.prototype,"type",void 0);_.E([_.F({value:20}),_.N("design:type",Number)],cX.prototype,"initialCount",void 0);_.E([_.F({value:10}),_.N("design:type",Number)],cX.prototype,"targetFramerate",void 0);_.E([_.F({value:!0}),_.N("design:type",Boolean)],cX.prototype,"autoFill",void 0);_.E([_.F({value:50}),_.N("design:type",Number)],cX.prototype,"renderDelay",void 0);
_.E([_.Zw("guidePersistentAndVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cX.prototype,"persistentGuideChanged",null);_.E([_.xV("activeEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cX.prototype,"activeEndpointChanged",null);_.E([_.xV("guideOpened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cX.prototype,"guideOpenedChanged",null);
_.E([_.u({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],cX);
_.G(cX,"ytd-guide-section-renderer",function(){if(Lrr!==void 0)return Lrr;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Lrr=f},{mode:_.WK("kevlar_poly_si_batch_j073")?1:2});var xm5;var Xf=function(){return _.K.apply(this,arguments)||this};
_.e(Xf,_.K);_.H7.Object.defineProperties(Xf.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Xf.prototype,"rendererBehaviors",void 0);_.E([_.F(),_.N("design:type",Object)],Xf.prototype,"data",void 0);_.E([_.F(),_.z("data.signInButton.buttonRenderer.style"),_.N("design:type",Object),_.N("design:paramtypes",[])],Xf.prototype,"alignByText",null);_.E([_.u({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],Xf);
_.G(Xf,"ytd-guide-signin-promo-renderer",function(){if(xm5===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);xm5=f}f=xm5;return f},{mode:1});var AU=function(){var f=_.K.apply(this,arguments)||this;f.showFooter=!1;return f};
_.e(AU,_.K);AU.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}}}}};
AU.prototype.attached=function(){var f=this,H;return _.Y(function(v){if(v.nextAddress==1){H=_.t8().resolve(_.vh(_.Eh));if(!H)return v.jumpTo(0);H.setGuideData(f.hostElement);return v.yield(0,3)}f.ytLazyListBehavior.initialCount=2;return v.return()})};
AU.prototype.onMouseExit=function(){_.J("web_guide_hover_expansion")&&_.$E(this.hostElement,"yt-guide-mouseleaved",[])};
AU.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
AU.prototype.dataChanged=AU.prototype.dataChanged;AU.prototype.onMouseExit=AU.prototype.onMouseExit;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],AU.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],AU.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.h3.YtLazyListBehavior),_.N("design:type",Object)],AU.prototype,"ytLazyListBehavior",void 0);
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],AU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],AU.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],AU.prototype,"showFooter",void 0);_.E([_.F({value:!0}),_.N("design:type",Boolean)],AU.prototype,"autoFill",void 0);_.E([_.sE("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],AU.prototype,"onMouseExit",null);
_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],AU.prototype,"dataChanged",null);_.E([_.u({is:"ytd-guide-renderer",disableElementRegistration:!0})],AU);
_.G(AU,"ytd-guide-renderer",function(){if(e3i!==void 0)return e3i;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return e3i=f},{mode:_.WK("kevlar_poly_si_batch_j073")?1:2});var BF0;var bI=function(){var f=_.K.apply(this,arguments)||this;f.systemIcons=_.J("kevlar_system_icons");f.frostedGlass=_.J("web_frosted_glass");f.getEndpointForm=function(){return dE5(f.data)};
return f};
_.e(bI,_.K);_.R=bI.prototype;_.R.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.R.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.fG(this.data.formattedTitle))};
_.R.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.R.onDown=function(){this.interaction.triggerDown()};
_.R.onUp=function(){this.interaction.triggerUp()};
_.R.onTap=function(f){if(this.data.serviceEndpoint){var H;_.J("shorts_controller_retrieve_seedless_sequence_v2")&&((H=_.U(this.data.serviceEndpoint,_.zD))==null?void 0:H.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):SVr(this.data.serviceEndpoint,this);f.preventDefault()}else{var v;((v=this.data)==null?0:v.navigationEndpoint)&&!_.w6(_.f2(f),this.hostElement,["A".toString()])&&_.YE(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.R.computeActive=function(f,H){if(!f)return!1;var v=f.navigationEndpoint;f=f.serviceEndpoint;if(!v&&!f||!H)return!1;if(v){f=_.U(v,_.ec);var t=_.U(H,_.ec);if(f&&t)return f.browseId===t.browseId&&f.params===t.params;var M;v=(M=_.U(v.commandMetadata,_.jG))==null?void 0:M.url;var h;H=(h=_.U(H.commandMetadata,_.jG))==null?void 0:h.url;return!(!v||!H||v!==H&&v!==_.gH(H))}return this.isActiveShortsTab(f,H)};
_.R.isActiveShortsTab=function(f,H){H=!!_.U(H,_.zD)||!!_.U(H,_.Dk);return(!!_.U(f,_.zD)||!!_.U(f,_.Dk))&&H};
_.R.computeTitle=function(f,H){return H?"":_.fG(f)};
_.H7.Object.defineProperties(bI.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
bI.prototype.onTap=bI.prototype.onTap;bI.prototype.onUp=bI.prototype.onUp;bI.prototype.onDown=bI.prototype.onDown;bI.prototype.onActiveStateChange=bI.prototype.onActiveStateChange;bI.prototype.dataChanged=bI.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],bI.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],bI.prototype,"ytComponentBehavior",void 0);
_.E([_.B(_.zA),_.N("design:type",Object)],bI.prototype,"ironButtonState",void 0);_.E([_.F(),_.N("design:type",Object)],bI.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],bI.prototype,"activeEndpoint",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],bI.prototype,"noLabels",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.N("design:type",Boolean)],bI.prototype,"isActive",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],bI.prototype,"systemIcons",void 0);_.E([_.lJ("yt-interaction"),_.N("design:type",Object)],bI.prototype,"interaction",void 0);_.E([_.z("isActive"),_.N("design:type",Object),_.N("design:paramtypes",[])],bI.prototype,"ariaSelected",null);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],bI.prototype,"frostedGlass",void 0);
_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bI.prototype,"dataChanged",null);_.E([_.Zw("isActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bI.prototype,"onActiveStateChange",null);_.E([_.sE("down"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bI.prototype,"onDown",null);
_.E([_.sE("up"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bI.prototype,"onUp",null);_.E([_.sE("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],bI.prototype,"onTap",null);_.E([_.u({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],bI);
_.G(bI,"ytd-mini-guide-entry-renderer",function(){if(BF0!==void 0)return BF0;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return BF0=f},{mode:_.WK("kevlar_poly_si_batch_j063")?1:2});var z30;var iI=function(){var f=_.K.apply(this,arguments)||this;f.allVideosCount=0;f.noLabels=_.J("kevlar_mini_guide_no_labels");f.frostedGlass=_.J("web_frosted_glass");return f};
_.e(iI,_.K);_.R=iI.prototype;_.R.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.R.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.R.onMouseEnter=function(){_.J("web_guide_hover_expansion")&&_.$E(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.R.visibleChanged=function(){if(this.visible&&!this.data){var f=_.t8().resolve(_.vh(_.Eh));f&&f.setGuideData(this.hostElement)}};
_.R.dataChanged=function(){var f=[],H;if((H=this.data)!=null&&H.items){H=_.V(this.data.items);for(var v=H.next();!v.done;v=H.next()){v=v.value;var t=void 0;if((t=v.guideSectionRenderer)==null?0:t.items)for(t=void 0,v=_.V((t=v.guideSectionRenderer)==null?void 0:t.items),t=v.next();!t.done;t=v.next())if(t=t.value,t.guideEntryRenderer)t=t.guideEntryRenderer,t.isPrimary&&f.push({guideEntryRenderer:t});else if(t.guideCollapsibleSectionEntryRenderer){var M=void 0;((M=_.U(t.guideCollapsibleSectionEntryRenderer.headerEntry,
ym))==null?0:M.isPrimary)&&f.push({guideEntryRenderer:_.U(t.guideCollapsibleSectionEntryRenderer.headerEntry,ym)});if(t=t.guideCollapsibleSectionEntryRenderer.sectionItems)for(t=_.V(t),M=t.next();!M.done;M=t.next()){var h=M.value;M=_.U(h,h5G);var y=void 0;((y=_.U(h,ym))==null?0:y.isPrimary)?f.push({guideEntryRenderer:_.U(h,ym)}):M&&(h=void 0,_.U((h=M)==null?void 0:h.entryRenderer,ym)&&(M.alwaysShow||this.allVideosCount)&&f.push({guideEntryRenderer:_.U(M.entryRenderer,ym)}))}}}}this.miniGuideItems=
f};
_.R.activeEndpointChanged=function(){for(var f=this.items.children,H=0;H<f.length;H++)f[H].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.R.registerWithViewTransitionManager=function(){var f=this;_.Lb(_.nN,function(){var H=_.t8().resolve(_.vh(_.jX));if(H&&H.isAnyTransitionEnabled){var v={};H.viewTransitionCoordinator.registerElement(f.hostElement,(v.slide="mini-guide-page-transition",v))}})};
iI.prototype.activeEndpointChanged=iI.prototype.activeEndpointChanged;iI.prototype.dataChanged=iI.prototype.dataChanged;iI.prototype.visibleChanged=iI.prototype.visibleChanged;iI.prototype.onMouseEnter=iI.prototype.onMouseEnter;_.E([_.B(_.um),_.N("design:type",Object)],iI.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],iI.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],iI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.NW.YtdGuideStateAwareBehavior),_.N("design:type",Object)],iI.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],iI.prototype,"ytComponentBehavior",void 0);_.E([_.lJ("#items"),_.N("design:type",Object)],iI.prototype,"items",void 0);_.E([_.F(),_.N("design:type",Object)],iI.prototype,"data",void 0);
_.E([_.F(),_.N("design:type",Boolean)],iI.prototype,"visible",void 0);_.E([_.F(),_.N("design:type",Object)],iI.prototype,"miniGuideItems",void 0);_.E([_.F({selector:_.viB}),_.N("design:type",Object)],iI.prototype,"allVideosCount",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],iI.prototype,"noLabels",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],iI.prototype,"frostedGlass",void 0);
_.E([_.sE("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],iI.prototype,"onMouseEnter",null);_.E([_.xV("visible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],iI.prototype,"visibleChanged",null);_.E([_.xV("data","allVideosCount"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],iI.prototype,"dataChanged",null);
_.E([_.xV("activeEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],iI.prototype,"activeEndpointChanged",null);_.E([_.u({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],iI);
_.G(iI,"ytd-mini-guide-renderer",function(){if(z30===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);z30=f}f=z30;return f},{mode:1});var Frw;var rnx=/^[\x00-\x7F]+$/,kB=function(){var f=_.K.apply(this,arguments)||this;f.darkerDarkTheme=_.J("web_darker_dark_theme");return f};
_.e(kB,_.K);_.H7.Object.defineProperties(kB.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var f,H=_.fG((f=this.data)==null?void 0:f.handle);if(H)return _.qO("@"+H)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var f=_.fG(this.displayHandle),H,v=_.fG((H=this.data)==null?void 0:H.handleUrl);if(f&&v)return _.qO(v+f)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var f=_.fG(this.displayHandle);if(f&&!rnx.test(f)){var H;return(H=this.data)==null?void 0:H.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var f=_.fG(this.displayHandleUrl),H,v=_.fG((H=this.data)==null?void 0:H.urlInfoText);if(f&&v)return _.qO(v+" "+f)}}});
_.E([_.F(),_.N("design:type",Object)],kB.prototype,"data",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],kB.prototype,"displayHandle",null);_.E([_.z("displayHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],kB.prototype,"displayHandleUrl",null);_.E([_.z("displayHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],kB.prototype,"warningText",null);
_.E([_.z("displayHandleUrl"),_.N("design:type",Object),_.N("design:paramtypes",[])],kB.prototype,"urlInfoTextWithUrl",null);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],kB.prototype,"darkerDarkTheme",void 0);_.E([_.u({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],kB);
_.G(kB,"ytd-handles-claiming-confirm-dialog-content",function(){if(Frw!==void 0)return Frw;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Frw=f},{mode:1});var Krh;var Tk=function(){var f=_.K.apply(this,arguments)||this;f.okButtonOverride={style:"mono",type:"outline",size:"M"};return f};
_.e(Tk,_.K);Tk.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Tk.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Tk.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Tk.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Tk.prototype,"okButtonOverride",void 0);_.E([_.F(),_.N("design:type",Object)],Tk.prototype,"data",void 0);_.E([_.u({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],Tk);
_.G(Tk,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(Krh!==void 0)return Krh;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Krh=f},{mode:1});var DmF;var oxb=/^[\x00-\x7F]+$/,wc=function(){var f=_.K.apply(this,arguments)||this;f.isLoading=!1;f.darkerDarkTheme=_.J("web_darker_dark_theme");return f};
_.e(wc,_.K);wc.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var f;this.selectedHandle=(f=this.handleInput)==null?void 0:f.value;this.onSelectedHandleChanged(this.selectedHandle);_.$E(this.hostElement,"yt-refit-popups-action")}};
_.H7.Object.defineProperties(wc.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var f;return(f=this.data)==null?void 0:f.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.qO("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.qO(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!oxb.test(this.selectedHandle)){var f;return(f=this.data)==null?void 0:f.warningText}}}});
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],wc.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],wc.prototype,"data",void 0);_.E([_.F(),_.N("design:type",String)],wc.prototype,"selectedHandle",void 0);_.E([_.F(),_.N("design:type",Object)],wc.prototype,"isLoading",void 0);_.E([_.F(),_.N("design:type",Function)],wc.prototype,"onSelectedHandleChanged",void 0);_.E([_.lJ("#channel-handle-input"),_.N("design:type",Object)],wc.prototype,"handleInput",void 0);
_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],wc.prototype,"handleUrlPrefix",null);_.E([_.z("selectedHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],wc.prototype,"displayHandle",null);_.E([_.z("selectedHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],wc.prototype,"displayHandleUrl",null);_.E([_.z("selectedHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],wc.prototype,"warningText",null);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],wc.prototype,"darkerDarkTheme",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],wc.prototype,"ytRendererBehavior",void 0);_.E([_.u({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],wc);
_.G(wc,"ytd-handles-claiming-edit-dialog-content",function(){if(DmF!==void 0)return DmF;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return DmF=f},{mode:1});var nxx;var qh=function(){var f=_.K.apply(this,arguments)||this;f.actionButtonOverride={style:"mono",type:"filled",size:"M"};f.cancelButtonOverride={style:"mono",type:"text",size:"M"};f.selectButtonDisabled=!1;f.isLoading=!1;f.hasSelectedHandleEventListener=!1;f.selectedHandleChanged=function(H){f.selectedHandle=H};
return f};
_.e(qh,_.K);_.R=qh.prototype;_.R.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.R.onDataChanged=function(){var f,H;this.selectedHandle=(H=_.U((f=this.data)==null?void 0:f.inputField,pHi))==null?void 0:H.handle};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.onCancel=function(){this.selectedHandle="";_.mb(this.hostElement,"yt-close-popup-action",[this.is])};
_.R.onSelectHandle=function(){var f=this;if(this.selectedHandle!==void 0){var H;((H=this.data)==null?void 0:H.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(v,t){if(t.newHandleUpdateStatus!==void 0&&t.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&t.newHandleUpdateStatus.errorMessage)_.Xs(f.hostElement,_.fG(t.newHandleUpdateStatus.errorMessage)),
f.isLoading=!1;else{var M;if((M=f.data)==null?0:M.onChannelUpdateSuccess){v=f.data.onChannelUpdateSuccess;var h,y;if(t=(h=_.U(v,_.Up))==null?void 0:(y=h.popup)==null?void 0:y.handlesClaimingConfirmDialogRenderer)t.handle=_.qO(f.selectedHandle);f.ytComponentBehavior.resolveCommand(v);_.mb(f.hostElement,"yt-close-popup-action",[f.is])}else f.isLoading=!1}},
onServerError:function(){var v;f.content&&((v=f.content)==null?0:v.handleInput)&&f.content.handleInput.validate();f.isLoading=!1;_.Xs(f.hostElement,_.ZC("TRY_AGAIN_LATER"))}}}))}};
_.R.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
qh.prototype.onDataChanged=qh.prototype.onDataChanged;qh.prototype.onSelectedHandleChanged=qh.prototype.onSelectedHandleChanged;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],qh.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],qh.prototype,"actionButtonOverride",void 0);_.E([_.F(),_.N("design:type",Object)],qh.prototype,"cancelButtonOverride",void 0);_.E([_.F(),_.N("design:type",Object)],qh.prototype,"data",void 0);
_.E([_.F(),_.N("design:type",String)],qh.prototype,"selectedHandle",void 0);_.E([_.F(),_.N("design:type",Object)],qh.prototype,"selectButtonDisabled",void 0);_.E([_.F(),_.N("design:type",Object)],qh.prototype,"isLoading",void 0);_.E([_.F(),_.N("design:type",Object)],qh.prototype,"hasSelectedHandleEventListener",void 0);_.E([_.F(),_.N("design:type",Object)],qh.prototype,"handleInput",void 0);
_.E([_.Zw("selectedHandle"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qh.prototype,"onSelectedHandleChanged",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qh.prototype,"onDataChanged",null);_.E([_.lJ("ytd-handles-claiming-edit-dialog-content"),_.N("design:type",Object)],qh.prototype,"content",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],qh.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],qh.prototype,"ytRendererstamperBehavior",void 0);_.E([_.u({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],qh);
_.G(qh,"ytd-handles-claiming-edit-dialog-renderer",function(){if(nxx!==void 0)return nxx;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return nxx=f},{mode:1});var pJh;var fI=function(){return _.K.apply(this,arguments)||this};
_.e(fI,_.K);_.H7.Object.defineProperties(fI.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null?0:f.handle){var H;return _.qO("@"+_.fG((H=this.data)==null?void 0:H.handle))}}}});
_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],fI.prototype,"formattedHandle",null);_.E([_.F(),_.N("design:type",Object)],fI.prototype,"data",void 0);_.E([_.u({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],fI);
_.G(fI,"ytd-handles-claiming-radio-option-renderer",function(){if(pJh!==void 0)return pJh;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return pJh=f},{mode:1});var Qkh;var uww=/^[\x00-\x7F]+$/,HE=function(){var f=_.K.apply(this,arguments)||this;f.initialRadioIndex="-1";f.isLoading=!1;f.darkerDarkTheme=_.J("web_darker_dark_theme");f.maybeSubmitFeedback=function(){f.feedbackSurveyRenderer.submitSurvey()};
return f};
_.e(HE,_.K);HE.prototype.updateSelectedHandleIndexFromBinding=function(f){this.selectedRadioIndex=+f.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(f)};
HE.prototype.selectedHandleChanged=function(f){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var H;this.selectedHandle=(H=this.handleInput)==null?void 0:H.value;this.onSelectedHandleChanged(f)}};
_.H7.Object.defineProperties(HE.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var f;return(((f=this.data)==null?void 0:f.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var f;return this.ytRendererBehavior.getSimpleString((f=this.data)==null?void 0:f.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.qO("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.qO(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!uww.test(this.selectedHandle)){var f;return(f=this.data)==null?void 0:f.warningText}}}});
_.E([_.F(),_.N("design:type",Object)],HE.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],HE.prototype,"initialRadioIndex",void 0);_.E([_.F(),_.N("design:type",Number)],HE.prototype,"selectedRadioIndex",void 0);_.E([_.F(),_.N("design:type",String)],HE.prototype,"selectedHandle",void 0);_.E([_.F(),_.N("design:type",Object)],HE.prototype,"isLoading",void 0);_.E([_.F(),_.N("design:type",Function)],HE.prototype,"onSelectedHandleChanged",void 0);
_.E([_.F(),_.N("design:type",Function)],HE.prototype,"onSelectedRadioIndexChanged",void 0);_.E([_.lJ("#channel-handle-input"),_.N("design:type",Object)],HE.prototype,"handleInput",void 0);_.E([_.lJ("ytd-feedback-survey-renderer"),_.N("design:type",Object)],HE.prototype,"feedbackSurveyRenderer",void 0);_.E([_.z("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],HE.prototype,"radioButtonLength",null);
_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],HE.prototype,"handleUrlPrefix",null);_.E([_.z("selectedHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],HE.prototype,"displayHandle",null);_.E([_.z("selectedHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],HE.prototype,"displayHandleUrl",null);_.E([_.z("selectedHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],HE.prototype,"warningText",null);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],HE.prototype,"darkerDarkTheme",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],HE.prototype,"ytRendererBehavior",void 0);_.E([_.u({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],HE);
_.G(HE,"ytd-handles-claiming-select-dialog-content",function(){if(Qkh!==void 0)return Qkh;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Qkh=f},{mode:1});var azF;var vE=function(){var f=_.K.apply(this,arguments)||this;f.actionButtonOverride={style:"mono",type:"filled",size:"M"};f.cancelButtonOverride={style:"mono",type:"text",size:"M"};f.initialRadioIndex="-1";f.selectButtonDisabled=!1;f.isLoading=!1;f.selectedRadioIndexChanged=function(H){f.selectedRadioIndex=Number(H.detail.value)};
f.selectedHandleChanged=function(H){f.selectedHandle=H.detail.value};
f.darkerDarkTheme=_.J("web_darker_dark_theme");return f};
_.e(vE,_.K);_.R=vE.prototype;_.R.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.R.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.R.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.$E(this.hostElement,"yt-refit-popups-action")};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.mb(this.hostElement,"yt-close-popup-action",[this.is])};
_.R.onSelectHandle=function(){var f=this;if(this.selectedHandle!==void 0){var H;((H=this.data)==null?void 0:H.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(v,t){if(t.newHandleUpdateStatus!==void 0&&t.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&t.newHandleUpdateStatus.errorMessage)_.Xs(f.hostElement,_.fG(t.newHandleUpdateStatus.errorMessage)),
f.isLoading=!1;else{var M;if((M=f.data)==null?0:M.onChannelUpdateSuccess){v=f.data.onChannelUpdateSuccess;t=_.U(v,_.Up);var h;if(t==null?0:(h=t.popup)==null?0:h.handlesClaimingConfirmDialogRenderer)t.popup.handlesClaimingConfirmDialogRenderer.handle=_.qO(f.selectedHandle);f.ytComponentBehavior.resolveCommand(v);_.mb(f.hostElement,"yt-close-popup-action",[f.is])}else f.isLoading=!1}},
onServerError:function(){if(f.selectedRadioIndex===f.radioButtonLength){var v;f.content&&((v=f.content)==null?0:v.handleInput)&&f.content.handleInput.validate()}f.isLoading=!1;_.Xs(f.hostElement,_.ZC("TRY_AGAIN_LATER"))}}}))}};
_.R.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var f,H;this.selectedHandle=(f=this.content)==null?void 0:(H=f.handleInput)==null?void 0:H.value}else this.selectedRadioIndex>=0&&((f=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(f==null?void 0:f.handle):this.selectedHandle=void 0)};
_.R.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.R.getRadioItem=function(f){if(this.radioButtonLength>f&&f>=0)return _.U(this.data.radioButton[f],wHF)};
_.H7.Object.defineProperties(vE.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var f;return(((f=this.data)==null?void 0:f.radioButton)||[]).length}}});
vE.prototype.onSelectedHandleChanged=vE.prototype.onSelectedHandleChanged;vE.prototype.onSelectedHandleIndexChanged=vE.prototype.onSelectedHandleIndexChanged;vE.prototype.onDataChanged=vE.prototype.onDataChanged;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],vE.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],vE.prototype,"actionButtonOverride",void 0);_.E([_.F(),_.N("design:type",Object)],vE.prototype,"cancelButtonOverride",void 0);
_.E([_.F(),_.N("design:type",Object)],vE.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],vE.prototype,"initialRadioIndex",void 0);_.E([_.F(),_.N("design:type",Number)],vE.prototype,"selectedRadioIndex",void 0);_.E([_.F(),_.N("design:type",String)],vE.prototype,"selectedHandle",void 0);_.E([_.F(),_.N("design:type",Object)],vE.prototype,"selectButtonDisabled",void 0);_.E([_.F(),_.N("design:type",Object)],vE.prototype,"isLoading",void 0);
_.E([_.z("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],vE.prototype,"radioButtonLength",null);_.E([_.lJ("ytd-handles-claiming-select-dialog-content"),_.N("design:type",Object)],vE.prototype,"content",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vE.prototype,"onDataChanged",null);
_.E([_.Zw("selectedRadioIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vE.prototype,"onSelectedHandleIndexChanged",null);_.E([_.Zw("selectedHandle"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vE.prototype,"onSelectedHandleChanged",null);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],vE.prototype,"darkerDarkTheme",void 0);
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],vE.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],vE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.u({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],vE);
_.G(vE,"ytd-handles-claiming-select-dialog-renderer",function(){if(azF!==void 0)return azF;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return azF=f},{mode:1});var Plh;var G9x;var t6=function(){return _.K.apply(this,arguments)||this};
_.e(t6,_.K);t6.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],t6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],t6.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],t6.prototype,"data",void 0);_.E([_.u({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],t6);
_.G(t6,"ytd-hotkey-dialog-section-option-renderer",function(){if(G9x!==void 0)return G9x;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return G9x=f},{mode:1});var Clr;var M0=function(){return _.K.apply(this,arguments)||this};
_.e(M0,_.K);M0.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],M0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],M0.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],M0.prototype,"data",void 0);_.E([_.u({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],M0);
_.G(M0,"ytd-hotkey-dialog-section-renderer",function(){if(Clr!==void 0)return Clr;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Clr=f},{mode:1});var h6=function(){var f=_.K.apply(this,arguments)||this;f.darkerDarkTheme=_.J("web_darker_dark_theme");return f};
_.e(h6,_.K);h6.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],h6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],h6.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],h6.prototype,"darkerDarkTheme",void 0);_.E([_.u({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],h6);
_.G(h6,"ytd-hotkey-dialog-content",function(){if(Plh!==void 0)return Plh;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Plh=f},{mode:1});var ExW;var Rg=function(){return _.K.apply(this,arguments)||this};
_.e(Rg,_.K);Rg.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var f=document.querySelector("ytd-hotkey-dialog-content #scrollable");f&&(f.dialogElement=this.hostElement.parentElement)};
Rg.prototype.onCloseTap=function(){_.mb(this.hostElement,"yt-close-popup-action")};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Rg.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Rg.prototype,"data",void 0);_.E([_.u({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],Rg);
_.G(Rg,"ytd-hotkey-dialog-renderer",function(){if(ExW!==void 0)return ExW;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return ExW=f},{mode:1});var NFp;var VE=function(){return _.K.apply(this,arguments)||this};
_.e(VE,_.K);VE.prototype.onYtServiceRequestError=function(){if(this.blocked){var f;var H=(f=this.data)==null?void 0:f.defaultServiceEndpoint}else{var v;H=(v=this.data)==null?void 0:v.toggledServiceEndpoint}var t;(H=(t=_.U(H,_.ezb))==null?void 0:t.onFailureAction)&&this.ytComponentBehavior.resolveCommand(H);this.updateBlockState(!this.blocked)};
VE.prototype.onYtToggleButton=function(f){this.updateBlockState(f.detail.toggled)};
VE.prototype.updateBlockState=function(f){if(f!==this.blocked){var H=this.blockedEntityKey;H&&this.ytdReduxBehavior.dispatch(_.lF("blockStateEntity",H,{key:H,blocked:f}));this.set("data.isToggled",f)}};
_.H7.Object.defineProperties(VE.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)}}});
VE.prototype.onYtToggleButton=VE.prototype.onYtToggleButton;VE.prototype.onYtServiceRequestError=VE.prototype.onYtServiceRequestError;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],VE.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],VE.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],VE.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],VE.prototype,"blockedEntityKey",void 0);
_.E([_.F({selectorArgs:["blockedEntityKey"],selector:function(f,H){return _.dL(f.entities,"blockStateEntity",H)}}),
_.N("design:type",Object)],VE.prototype,"blockStateEntity",void 0);_.E([_.z("data","blockStateEntity"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],VE.prototype,"blocked",null);_.E([_.sE("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],VE.prototype,"onYtServiceRequestError",null);
_.E([_.sE("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],VE.prototype,"onYtToggleButton",null);_.E([_.u({is:"ytd-block-button",disableElementRegistration:!0})],VE);
_.G(VE,"ytd-block-button",function(){if(NFp!==void 0)return NFp;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return NFp=f},
{mode:1});var cn5;var XJW;var yE=function(){return _.K.apply(this,arguments)||this};
_.e(yE,_.K);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],yE.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],yE.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],yE.prototype,"data",void 0);_.E([_.u({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],yE);
_.G(yE,"ytd-kids-blocklist-picker-item-renderer",function(){if(XJW!==void 0)return XJW;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return XJW=f},{mode:1});var Yq=function(){return _.K.apply(this,arguments)||this};
_.e(Yq,_.K);Yq.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Yq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Yq.prototype,"data",void 0);_.E([_.u({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],Yq);
_.G(Yq,"ytd-kids-blocklist-picker-content",function(){if(cn5!==void 0)return cn5;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return cn5=
f},{mode:_.WK("kevlar_poly_si_batch_j025")?1:2});var AnG;var mt=function(){var f=_.K.apply(this,arguments)||this;f.hasAnyRequestSucceeded=!1;f.hasAnyRequestFailed=!1;f.numPendingRequests=0;return f};
_.e(mt,_.K);_.R=mt.prototype;_.R.attached=function(){this.hostElement.setAttribute("dialog","")};
_.R.onDoneButtonTap=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.R.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.R.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.R.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.R.onPopupClosed=function(f){var H,v;if(((H=f.detail)==null?void 0:(v=H.popup)==null?void 0:v.is)==="tp-yt-paper-dialog"){var t;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((t=this.data)==null?0:t.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.MS(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
mt.prototype.onPopupClosed=mt.prototype.onPopupClosed;mt.prototype.onYtServiceRequestError=mt.prototype.onYtServiceRequestError;mt.prototype.onYtServiceRequestCompleted=mt.prototype.onYtServiceRequestCompleted;mt.prototype.onYtServiceRequestSent=mt.prototype.onYtServiceRequestSent;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],mt.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],mt.prototype,"ytRendererBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],mt.prototype,"data",void 0);_.E([_.sE("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mt.prototype,"onYtServiceRequestSent",null);_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mt.prototype,"onYtServiceRequestCompleted",null);
_.E([_.sE("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mt.prototype,"onYtServiceRequestError",null);_.E([_.sE("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],mt.prototype,"onPopupClosed",null);_.E([_.u({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],mt);
_.G(mt,"ytd-kids-blocklist-picker-renderer",function(){if(AnG!==void 0)return AnG;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return AnG=f},{mode:1});var bft;var ifF;var $q=function(){return _.K.apply(this,arguments)||this};
_.e($q,_.K);$q.prototype.setTip=function(f){var H=this;this.data&&(this.tip=C5i(P5t.getInstance(),f,this.data),_.qV(this,function(){_.YE(H.hostElement,"yt-refit")}))};
$q.prototype.clearTip=function(){this.tip=void 0};
$q.prototype.computeHidden=function(f){return!f};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],$q.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],$q.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.N("design:type",Boolean)],$q.prototype,"hidden",void 0);_.E([_.F(),_.N("design:type",Object)],$q.prototype,"tip",void 0);_.E([_.u({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],$q);
_.G($q,"ytd-menu-popup-tip-renderer",function(){if(ifF!==void 0)return ifF;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);
return ifF=f},{mode:1});var k9W;var WE=function(){var f=_.K.apply(this,arguments)||this;f.useIcons=!1;f.systemIcons=_.J("kevlar_system_icons");f.useListItemStyles=_.J("web_list_item_style_for_menu_items");return f};
_.e(WE,_.K);_.R=WE.prototype;_.R.onFocus=function(){var f;(f=_.mF(this.hostElement).querySelector("tp-yt-paper-item"))==null||f.focus()};
_.R.onTap=function(){var f=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(f&&_.U(f,_.Ir))this.componentBehavior.resolveCommand(f),this.updateToggledStateInEntity();else if(f){this.componentBehavior.resolveCommand(f)||_.t8().resolve(_.MJ).resolveCommand(f,{form:{element:this.hostElement}});var H;((H=_.U(f,_.dj))==null?void 0:H.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.R.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.R.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.R.updateToggledStateInEntity=function(){var f=this.data.toggleMenuServiceItemEntityKey,H=!this.data.isToggled;f&&this.ytdReduxBehavior.dispatch(_.lF("toggleMenuServiceItemEntity",f,{key:f,isToggled:H}))};
_.R.computeIcon=function(f,H,v){return(f=f?v:H)&&f.iconType?_.SW(f.iconType):""};
_.R.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.R.isIconActive=function(f){return!_.J("toggle_menu_active_icon_killswitch")&&f};
_.H7.Object.defineProperties(WE.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var f,H,v;return((f=this.data)==null?0:f.isToggled)?(H=this.data)==null?void 0:H.toggledText:(v=this.data)==null?void 0:v.defaultText}}});
WE.prototype.toggledStateEntityChanged=WE.prototype.toggledStateEntityChanged;WE.prototype.onYtServiceRequestCompleted=WE.prototype.onYtServiceRequestCompleted;WE.prototype.onTap=WE.prototype.onTap;WE.prototype.onFocus=WE.prototype.onFocus;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],WE.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],WE.prototype,"componentBehavior",void 0);
_.E([_.B(_.um),_.N("design:type",Object)],WE.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],WE.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],WE.prototype,"useIcons",void 0);_.E([_.F({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.N("design:type",String)],WE.prototype,"icon",void 0);
_.E([_.F({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(f,H){return _.dL(f.entities,"toggleMenuServiceItemEntity",H)}}),
_.N("design:type",Object)],WE.prototype,"toggleMenuServiceItemEntity",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],WE.prototype,"systemIcons",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],WE.prototype,"useListItemStyles",void 0);_.E([_.sE("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WE.prototype,"onFocus",null);
_.E([_.z("data.isToggled"),_.N("design:type",Object),_.N("design:paramtypes",[])],WE.prototype,"toggleButtonText",null);_.E([_.sE("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WE.prototype,"onTap",null);_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WE.prototype,"onYtServiceRequestCompleted",null);
_.E([_.Zw("toggleMenuServiceItemEntity.isToggled","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WE.prototype,"toggledStateEntityChanged",null);_.E([_.u({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],WE);
_.G(WE,"ytd-toggle-menu-service-item-renderer",function(){if(k9W!==void 0)return k9W;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return k9W=f},{mode:1});var TFi;var OC=function(){return _.K.apply(this,arguments)||this};
_.e(OC,_.K);OC.prototype.onFocus=function(){var f;(f=_.mF(this.hostElement).querySelector("tp-yt-paper-item"))==null||f.focus()};
_.H7.Object.defineProperties(OC.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.Co(this.data.iconUrl)}}});
OC.prototype.onFocus=OC.prototype.onFocus;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],OC.prototype,"rendererBehavior",void 0);_.E([_.B(_.S3.YtEndpointBehavior),_.N("design:type",Object)],OC.prototype,"ytEndpointBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],OC.prototype,"data",void 0);_.E([_.sE("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],OC.prototype,"onFocus",null);
_.E([_.z("data.iconUrl"),_.N("design:type",Object),_.N("design:paramtypes",[])],OC.prototype,"imageSource",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],OC);
_.G(OC,"ytd-menu-custom-icon-item-renderer",function(){if(TFi!==void 0)return TFi;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return TFi=f},{mode:_.WK("kevlar_poly_si_batch_j028")?1:2});_.yn(_.pB,"yt-list-item-view-model",{props:{data:_.ki,isMenuItem:_.ki,isCompact:_.ki,onTap:_.Rm,trailingAccessory:_.Rm,hideSelectionTextChevron:_.ki,disabled:_.ki,inPopup:_.ki,disableHorizontalPadding:_.ki,isOverlay:_.ki,isToggled:_.ki,ariaLabel:_.ki,ariaPressed:_.ki}});var gO=function(){var f=_.K.apply(this,arguments)||this;f.disableBackdropFilter=_.J("web_disable_backdrop_filter");return f};
_.e(gO,_.K);_.R=gO.prototype;
_.R.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"}}}};
_.R.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.R.computeAriaLabel=function(f){return f};
_.R.onPopupOpened=function(){this.items.selected=0;for(var f=_.V(_.mF(this.items).children),H=f.next();!H.done;H=f.next())H.value.popupPositionTarget=this.positionTarget;if(f=this.popupTip||void 0)f.setTip(this.source||""),this.source=void 0;this.veData&&(f=_.uy())&&_.i0(f,[this.veData])};
_.R.onPopupClosed=function(){var f=this.popupTip||void 0;f&&f.clearTip()};
_.R.onIronActivate=function(f){this.shouldPersist(f)||_.mb(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(f=_.uy())&&_.Ti(f,this.veData)};
_.R.shouldPersist=function(f){var H,v;if(((H=f.detail)==null?void 0:H.selected)===void 0||(v=this.data)==null||!v.items)return!1;var t,M;return!((M=(t=this.data.items[f.detail.selected])==null?void 0:t.toggleMenuServiceItemRenderer)==null||!M.persistentOnMenuPopup)};
_.R.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(f){return f.menuNavigationItemRenderer?!!f.menuNavigationItemRenderer.icon:f.menuServiceItemRenderer?!!f.menuServiceItemRenderer.icon:f.menuConditionalServiceItemRenderer?!!f.menuConditionalServiceItemRenderer.icon:f.menuConditionalNavigationItemRenderer?!!f.menuConditionalNavigationItemRenderer.icon:f.toggleMenuServiceItemRenderer?!!f.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
gO.prototype.onPopupClosed=gO.prototype.onPopupClosed;gO.prototype.onPopupOpened=gO.prototype.onPopupOpened;_.E([_.B(_.lv.YtEventForwardingBehavior),_.N("design:type",Object)],gO.prototype,"ytEventForwardingBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],gO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],gO.prototype,"ytRendererBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],gO.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],gO.prototype,"veData",void 0);_.E([_.F({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.N("design:type",String)],gO.prototype,"ariaLabel",void 0);_.E([_.F({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],gO.prototype,"useIcons",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],gO.prototype,"disableBackdropFilter",void 0);_.E([_.lJ("#items"),_.N("design:type",Object)],gO.prototype,"items",void 0);_.E([_.lJ("ytd-menu-popup-tip-renderer"),_.N("design:type",Object)],gO.prototype,"popupTip",void 0);_.E([_.sE("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],gO.prototype,"onPopupOpened",null);
_.E([_.sE("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],gO.prototype,"onPopupClosed",null);_.E([_.u({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],gO);
_.G(gO,"ytd-menu-popup-renderer",function(){if(bft!==void 0)return bft;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return bft=f},{mode:1});var wJt;var qWp=_.a(function(f){f=_.tV(f,{icon:void 0});var H=f.data;f=f.icon;var v=function(){return H().iconBadgeText},t={},M=_.S2("yt-spec-icon-badge-shape",function(){a:switch(H().iconBadgeType){case "notification":var h="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":h="yt-spec-icon-badge-shape--type-cart";break a;default:h=""}return h},function(){a:switch(H().iconBadgeStyle){case "overlay":var h="yt-spec-icon-badge-shape--style-overlay";
break a;default:h=""}return h},(t["yt-spec-icon-badge-shape--text-size-small"]=function(){var h=v();
return!!((h==null?0:h.length)&&h.length>2)},t));
return _.O("yt-icon-badge-shape",null,_.O(_.g,{cond:f,then:function(h){return _.O("div",{class:M},_.O("div",{class:"yt-spec-icon-badge-shape__icon"},_.O(_.JE,{icon:h})),_.O(_.g,{cond:v,then:function(y){return _.O("div",{class:"yt-spec-icon-badge-shape__badge"},y)}}))}}))},"rh");
qWp.idomCompat=!0;_.yn(qWp,"yt-icon-badge-shape",{props:{data:_.ki,icon:_.ki}});var Ig=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};f.unseenCount=0;f.isOverlay=!1;return f};
_.e(Ig,_.K);_.R=Ig.prototype;_.R.attached=function(){var f=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(H){f.onServiceWorkerMessage(H)})};
_.R.onDataChanged=function(){this.isAttached&&!this.JSC$20432_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20432_lastData=this.data};
_.R.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.R.computeIcon=function(){var f,H;return(f=this.data)==null?void 0:(H=f.icon)==null?void 0:H.iconType};
_.R.onServiceWorkerMessage=function(f){f.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.R.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.U(this.data.updateUnseenCountEndpoint,_.dj)&&_.U(this.data.updateUnseenCountEndpoint,_.dj).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.R.handleUpdateNotificationsUnseenCountAction=function(f){var H=this;f=_.U(f,EiA);f!=null&&f.unseenCount&&f.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(f.unseenCount),_.nN.addLowPriorityJob(function(){H.data.updateUnseenCountEndpoint&&H.ytComponentBehavior.resolveCommand(H.data.updateUnseenCountEndpoint)},f.timeoutMs))};
_.R.onClick=function(){_.YE(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var f=_.$E(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),H=this.data.menuRequest;f&&f.length===1&&f[0]?_.mb(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):H&&this.ytComponentBehavior.resolveCommand(H)};
_.R.handleTopbarMenuClosedAction=function(f){f==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.R.toggleIconState=function(f){this.iconButton&&(this.iconButton.pressed=f)};
_.R.sendUnseenCountRequest=function(f){var H=this;_.Lb(_.nN,function(){H.ytComponentBehavior.resolveCommand(f)})};
_.R.updateCountUI=function(f){this.set("unseenCount",f<9?f:"9+")};
_.H7.Object.defineProperties(Ig.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
Ig.prototype.handleUpdateNotificationsUnseenCountAction=Ig.prototype.handleUpdateNotificationsUnseenCountAction;Ig.prototype.onDataChanged=Ig.prototype.onDataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Ig.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Ig.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.fm),_.N("design:type",Object)],Ig.prototype,"ytdOpenPopupBehavior",void 0);
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Ig.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Ig.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],Ig.prototype,"unseenCount",void 0);_.E([_.F(),_.N("design:type",Object)],Ig.prototype,"isOverlay",void 0);_.E([_.F({value:!0}),_.N("design:type",Boolean)],Ig.prototype,"showTooltips",void 0);_.E([_.lJ("yt-icon-button"),_.N("design:type",Object)],Ig.prototype,"iconButton",void 0);
_.E([_.z("unseenCount"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ig.prototype,"showNotificationCount",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ig.prototype,"onDataChanged",null);_.E([_.sE("yt-update-notifications-unseen-count-action"),_.N("design:type",Function),_.N("design:paramtypes",[Object]),_.N("design:returntype")],Ig.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.E([_.u({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],Ig);
_.G(Ig,"ytd-notification-topbar-button-renderer",function(){if(wJt!==void 0)return wJt;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return wJt=f},{mode:_.WK("kevlar_poly_si_batch_j025")?1:2});var fvW;var SP=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return f};
_.e(SP,_.K);SP.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}}}}}};
SP.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
SP.prototype.onDarkModeToggled=function(f){this.dark=f};
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],SP.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],SP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],SP.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],SP.prototype,"data",void 0);_.E([_.F({value:!0,reflectToAttribute:!0}),_.N("design:type",Boolean)],SP.prototype,"dark",void 0);
_.E([_.u({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],SP);
_.G(SP,"yt-pdg-buy-flow-header-renderer",function(){if(fvW!==void 0)return fvW;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return fvW=f},{mode:1});var HLx;var vcW;var dO=function(){var f=_.K.apply(this,arguments)||this;f.immediateValue=0;f.isDarkTheme=!1;f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.e(dO,_.K);_.R=dO.prototype;_.R.created=function(){_.p3.requestAvailability()};
_.R.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.R.dataChanged=function(){var f=_.mF(this.hostElement).querySelector("#color-slider");f.immediateValue&&this.updateSliderKnobAndGradientStyles(f.immediateValue);this.data.notches[0].knobColorArgb&&_.Sr(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.cS(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.a8("HTML_DIR")==="rtl"&&_.mF(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.R.onSliderImmediateChange=function(){var f=_.mF(this.hostElement).querySelector("#color-slider");f.dragging&&(f.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(f.immediateValue),this.updateSliderKnobAndGradientStyles(f.immediateValue)),this.updateSliderAria())};
_.R.onSliderChange=function(){var f=_.mF(this.hostElement).querySelector("#color-slider");f.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(f.immediateValue),this.updateSliderKnobAndGradientStyles(f.immediateValue));this.updateSliderAria()};
_.R.updateSliderAria=function(){var f=_.mF(this.hostElement).querySelector("#color-slider"),H=_.mF(this.hostElement).querySelector("#color-slider");H=_.fG(this.data.notches[H.immediateValue].tierValue);_.o3()&&_.YE(this.hostElement,"iron-announce",{text:H});f.setAttribute("aria-valuetext",H)};
_.R.updateSuperThanksSelectedTierEntity=function(f){if(f!==this.immediateValue){var H,v,t=this==null?void 0:(H=this.data)==null?void 0:(v=H.superThanksSelectedTierEntity)==null?void 0:v.key;t&&t.length>0&&this.ytdReduxBehavior.dispatch(_.lF("superThanksSelectedTierEntity",t,{key:t,index:f}))}};
_.R.onDarkModeToggledAction=function(f){this.isDarkTheme=f};
_.R.updateSliderKnobAndGradientStyles=function(f){this.immediateValue=f;f=this.data.notches[f];if(f==null?0:f.knobColorArgb)var H={"--ytd-pdg-color-slider-knob-color":_.cS(f.knobColorArgb)};(f==null?0:f.linearGradientCssStyle)&&H!==null&&(H=Object.assign({},H,{"--ytd-pdg-color-slider-active-color":f==null?void 0:f.linearGradientCssStyle}));H!==null&&_.Sr(this.hostElement,H)};
dO.prototype.onSliderChange=dO.prototype.onSliderChange;dO.prototype.onSliderImmediateChange=dO.prototype.onSliderImmediateChange;dO.prototype.dataChanged=dO.prototype.dataChanged;_.E([_.F(),_.N("design:type",Object)],dO.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],dO.prototype,"immediateValue",void 0);_.E([_.F(),_.N("design:type",Number)],dO.prototype,"maxMarkers",void 0);
_.E([_.F({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:AXt}),_.N("design:type",Object)],dO.prototype,"superThanksSelectedTierEntity",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],dO.prototype,"isDarkTheme",void 0);_.E([_.B(_.um),_.N("design:type",Object)],dO.prototype,"ytdReduxBehavior",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dO.prototype,"dataChanged",null);
_.E([_.sE("immediate-value-change"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dO.prototype,"onSliderImmediateChange",null);_.E([_.sE("change"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dO.prototype,"onSliderChange",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],dO);
_.G(dO,"ytd-pdg-color-slider-renderer",function(){if(vcW!==void 0)return vcW;var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return vcW=f},{mode:1});var tXp;var MXW;var jP=null;
_.p2({is:"ytd-comment-input",_template:function(){if(MXW!==void 0)return MXW;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return MXW=f},
behaviors:[_.SJR.YtHostElementBehavior,_.dS,_.CM.YtComponentBehavior,_.h$.YtRendererstamperBehavior,_.G8a.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 _.N8}},
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",_.jr(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;_.Ya();this.focus()},
detached:function(){document.removeEventListener("tap",_.jr(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(f){f=f.detail;f=f.isCustomEmoji?f.shortcuts[0]:f.emojiId;var H=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(H,f);this.maybeUpdateTextDirection_();_.YE(this.hostElement,"input")},
getInputRange_:function(){var f=_.Yd();if(f){f=f.getBrowserRangeObject();for(var H=f.commonAncestorContainer;H;){if(H===this.getEditableTextArea_())return f;H=H.parentNode}}f=this.getEditableTextArea_();f=_.DN(f,f.childNodes.length);f.select();return f.getBrowserRangeObject()},
insertTextWithEmojis_:function(f,H,v){(H=this.emojiManager.createDocumentFragment(H,!0,!1,v===void 0?!0:v))&&H.childNodes.length!==0&&(f.collapsed||f.deleteContents(),v=H.lastChild,f.insertNode(H),_.Q9H(v).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var f=_.Yd();if(f){var H=f.JSC$11327_getStartNode(),v=f.JSC$11327_getEndNode();if(juW(H)&&juW(v)){var t=f.JSC$11327_getStartOffset(),M;if(_.yB&&H.nodeType===Node.ELEMENT_NODE&&(M=_.K_g(H)))_.DN(M,0).select();else{M=g0(H)?H:_.EZ(H,g0);var h=g0(v)?v:_.EZ(v,g0);if(M||h)if(f.isCollapsed()){if(H.nodeType===Node.TEXT_NODE){f=!0;t===H.length&&(f=!1);if(jP==="end"||jP==="right")f=!1;H=H.parentNode;f=[].concat(_.pS(H.parentNode.childNodes)).indexOf(H)+(f?0:1);_.DN(H.parentNode,
f).select()}}else M?M.previousSibling&&M.previousSibling.length>0?_.oE(v,f.JSC$11327_getEndOffset(),M.previousSibling,M.previousSibling.length-1).select():(H=document.createTextNode("\u200b"),M.parentNode.insertBefore(H,M),_.oE(v,f.JSC$11327_getEndOffset(),H,0).select()):h&&(h.nextSibling&&h.nextSibling.length>0?_.oE(H,f.JSC$11327_getStartOffset(),h.nextSibling,1).select():(v=document.createTextNode("\u200b"),h.parentNode.insertBefore(v,h.nextSibling),_.oE(H,f.JSC$11327_getStartOffset(),v,v.length).select()));
jP=null}}else jP=null}else jP=null},
leftKeyPressed_:function(){jP="left"},
rightKeyPressed_:function(){jP="right"},
endKeyPressed_:function(){jP="end"},
maybeDeleteChip_:function(){var f=eUp(!0);if(f){var H=_.Yd(),v=H.JSC$11327_getStartNode();H=H.JSC$11327_getStartOffset();_.Bt(v,H,f,f.childNodes.length).select()}},
maybeBackspaceChip_:function(){var f=eUp(!1);if(f){var H=_.Yd(),v=H.JSC$11327_getStartNode();H=H.JSC$11327_getStartOffset();_.Bt(v,H,f,0).select()}},
maybeBackspaceChipWordMode_:function(f){var H=_.Yd();if(H.isCollapsed()){var v=H.JSC$11327_getStartNode();H=H.JSC$11327_getStartOffset();var t=Lxx(v,H,!0);t&&(_.Bt(v,H,t,0).select(),document.execCommand("delete"),f.preventDefault(),f.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(f){var H=_.Yd();if(H.isCollapsed()){var v=H.JSC$11327_getStartNode();H=H.JSC$11327_getStartOffset();var t=Lxx(v,H,!1);t&&(_.Bt(v,H,t,t.childNodes.length).select(),document.execCommand("delete"),f.preventDefault(),f.stopImmediatePropagation())}},
onContentClick:function(f){f.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(f){f.defaultPrevented||f.currentTarget.tagName==="YTD-COMMENT-INPUT"&&g0(f.target)&&f.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.mF(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.mF(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(f,H){f=Zu0(f,this.emojiManager,H).cloneNode(!0);for(H=f.firstChild;H;)if(H.nodeType!==1)H=H.nextSibling;else switch(H.tagName){case "BR":var v=_.U$();_.PCg(v,H);H=v.nextSibling;break;case "DIV":(v=H.lastChild)&&H.nextSibling&&_.B4(_.U$(),v);H.previousSibling&&(H.previousSibling.nodeType===1||H.previousSibling.nodeType===3&&!H.previousSibling.textContent.endsWith("\n"))&&_.x0(_.U$(),H);v&&v.nodeName==="BR"&&_.U1(v);v=H;H.hasChildNodes()?(H=H.firstChild,
_.GHr(v)):(H=H.nextSibling,_.U1(v));break;default:H=H.nextSibling}return xEx(f)},
setTextAreaValue:function(f){f||(f="");var H=this.getEditableFormattedString_();H.text="";this.getEditableTextArea_().innerText="";typeof f==="string"&&(f={runs:[{text:f}]});H.text=f},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();jP=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var f=this.getEditableTextArea_();f&&(_.DN(f,f.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.a8("HTML_DIR")==="rtl"){var f=this.getEditableTextArea_(),H=this.getTextAreaValue()!==""?"auto":"rtl";f.setAttribute("dir",H)}},
handleInputEvent_:function(){var f=null;if(this.isEmojiButtonDisplayed){var H=this.getInputRange_();H&&(f=this.emojiInput.retrieveTextBeforeRange(H))}this.insertText_(f,!0);this.updateCharCount_();f=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=f.scrollHeight>f.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var f=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:f})},
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(f){this.isEmojiButtonDisplayed&&(f.preventDefault(),f.stopImmediatePropagation(),f=f.clipboardData.getData("text/plain"),this.insertText_(f,!1,!1),_.YE(this.hostElement,"input"))},
insertText_:function(f,H,v){H=H===void 0?!1:H;v=v===void 0?!0:v;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&f){var t=this.getInputRange_().cloneRange();this.emojiManager&&t&&(H&&this.emojiInput.offsetStartOfRangeBy(t,f.length),this.insertTextWithEmojis_(t,f,v),suF(this.getEditableTextArea_().lastChild)||(t=this.getInputRange_().cloneRange()),t&&(this.emojiInput.updateSuggestions(t,f),this.updateSuggestionOffset_(t)))}},
getSimpleString:_.fG,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(f){return f?"focused":"not-focused"},
computePlaceholderText_:function(f){return this.getSimpleString(f)},
computeEditableText_:function(f){return this.getSimpleString(f)},
onPrefilledContentDismissed_:function(f){f.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(f,H){f?this.fire("yt-autonav-pause-focus"):H!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(f){var H=this.getEditableTextArea_();[].concat(_.pS(f.dataTransfer.items)).forEach(function(v){v.kind==="string"&&v.type.match("^text/plain")&&v.getAsString(function(t){H.appendChild(document.createTextNode(t))})});
f.preventDefault()},
preventDefault_:function(f){f.preventDefault()},
onSuggestionInsert_:function(f){this.insertTextWithEmojis_(f.detail.range,f.detail.text)},
onEmojiSuggestionClick_:function(f){this.emojiInput.insertSuggestion(f.detail)},
updateSuggestionOffset_:function(f){if(this.emojiInput&&_.mF(this.emojiInput).querySelector("#dropdown")){var H=this.getEditableTextArea_().getBoundingClientRect().bottom,v=f.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(H-v)+5;H=this.getEditableTextArea_().getBoundingClientRect().left;f=f.getBoundingClientRect().left-H;_.mF(this.emojiInput).querySelector("#dropdown").style.marginLeft=f+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.P8("yt-post"));return this.localStorage}});var sC=function(){var f=_.K.apply(this,arguments)||this;f.currentCommentOptionIndex=0;f.isEmojiPickerDisplayed=!1;f.emojiManager=_.N8;f.isUgcEmpty=!1;f.userGeneratedCommentChangedHandler=function(){_.YE(f.hostElement,"ytd-pdg-user-generated-comment-changed");f.isEmojiYtdCommentInputEnabled&&(f.isUgcEmpty=!f.ytdCommentInputEl.getTextAreaValue())};
f.pasteHandler=function(H){H.preventDefault();H.stopImmediatePropagation();var v;if(H=(v=H.clipboardData)==null?void 0:v.getData("text/plain"))v=document.getSelection().getRangeAt(0),v.collapsed||v.deleteContents(),H=document.createTextNode(H),v.insertNode(H),v.selectNodeContents(H),v.collapse(!1),H=window.getSelection(),H.removeAllRanges(),H.addRange(v)};
f.onDocumentClick=function(H){if(f.isEmojiPickerDisplayed){var v,t,M;!(H.target instanceof Node)||(v=H.composedPath())!=null&&v.includes(f.editableTextEl)||(t=H.composedPath())!=null&&t.includes(f.emojiButtonEl)||(M=H.composedPath())!=null&&M.includes(f.emojiPickerEl)||(f.isEmojiPickerDisplayed=!1)}};
return f};
_.e(sC,_.K);_.R=sC.prototype;_.R.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.R.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.R.detached=function(){var f;(f=this.contentEl)==null||f.removeEventListener("input",this.userGeneratedCommentChangedHandler);var H;(H=this.contentEl)==null||H.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.R.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.R.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var f;this.contentEl.textContent=this.rendererBehavior.getSimpleString((f=this.data)==null?void 0:f.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.R.reloadEmojis=function(){this.emojiPickerEl&&_.U(this.emojiPicker,_.pDM)&&this.emojiPickerEl.updateEmojiCategories()};
_.R.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.Sr(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.R.handleBackgroundColorStyling=function(){var f;if((f=this.currentCommentOption)==null?0:f.commentBackgroundColorArgb){var H;_.Sr(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.cS((H=this.currentCommentOption)==null?void 0:H.commentBackgroundColorArgb)})}else _.Sr(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.R.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var f;(f=this.contentEl)==null||f.focus()}};
_.R.onEditButtonClick=function(f){var H=document.getSelection();H&&this.contentEl&&(f.stopPropagation(),f.preventDefault(),H.selectAllChildren(this.contentEl),H.collapseToEnd())};
_.R.onContentDrop=function(f){var H=this;if(f.dataTransfer){f=_.V(f.dataTransfer.items);for(var v=f.next();!v.done;v=f.next())v=v.value,v.kind==="string"&&v.type.match("^text/plain")&&v.getAsString(function(t){var M;(M=H.contentEl)==null||M.appendChild(document.createTextNode(t))})}};
_.R.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.R.getUserGeneratedCommentText=function(){var f,H=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(f=this.contentEl)==null?void 0:f.textContent;return H?H.trim():""};
_.R.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.R.onEmojiSelect=function(f){this.ytdCommentInputEl.onEmojiSelect(f)};
_.H7.Object.defineProperties(sC.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.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 f;return!((f=this.currentCommentOption)==null||!f.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var f;if(_.U((f=this.currentCommentOption)==null?void 0:f.chipRenderer,_.Hvh)){var H;return _.U((H=this.currentCommentOption)==null?void 0:H.chipRenderer,_.Hvh)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var f,H;return((f=this.data)==null?0:f.commentOptionRenderers)?_.U((H=this.data)==null?void 0:H.commentOptionRenderers[this.superThanksSelectedTierEntity.index],Isi):void 0}var v,t;return((v=this.data)==null?0:v.commentOptionRenderers)?_.U((t=this.data)==null?void 0:t.commentOptionRenderers[this.currentCommentOptionIndex],Isi):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var f;return this.rendererBehavior.getSimpleString((f=this.data)==null?void 0:f.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var f;return this.rendererBehavior.getSimpleString((f=this.data)==null?void 0:f.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var f,H;return(H=_.U((f=this.data)==null?void 0:f.commentDialog,_.xcH))==null?void 0:H.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var f,H;return(H=_.U((f=this.data)==null?void 0:f.commentDialog,_.xcH))==null?void 0:H.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var f,H;return(H=_.U((f=this.data)==null?void 0:f.commentDialog,_.xcH))==null?void 0:H.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var f,H,v=(H=_.U((f=this.data)==null?void 0:f.commentDialog,_.xcH))==null?void 0:H.emojiPicker;if(!_.U(v,_.pDM)||!_.U(v,_.pDM).categories)return!1;f=function(h){return h.emojiPickerCategoryRenderer?h.emojiPickerCategoryRenderer.emojiIds&&h.emojiPickerCategoryRenderer.emojiIds.length>0:h.emojiPickerUpsellCategoryRenderer?h.emojiPickerUpsellCategoryRenderer.emojis&&h.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var t,M;return((t=_.U(v,_.pDM))==null?0:(M=t.categories)==null?0:M.find(f))?!0:!1}}});
sC.prototype.onEmojiSelect=sC.prototype.onEmojiSelect;sC.prototype.dataChanged=sC.prototype.dataChanged;sC.prototype.currentCommentOptionChanged=sC.prototype.currentCommentOptionChanged;_.E([_.B(_.um),_.N("design:type",Object)],sC.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],sC.prototype,"rendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],sC.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.lJ("#content-dom-if"),_.N("design:type",_.uJ)],sC.prototype,"contentDomIfEl",void 0);_.E([_.lJ("#content-no-emojis"),_.N("design:type",HTMLElement)],sC.prototype,"contentEl",void 0);_.E([_.lJ("#container"),_.N("design:type",HTMLElement)],sC.prototype,"containerEl",void 0);_.E([_.lJ("#comment-chip-container"),_.N("design:type",HTMLElement)],sC.prototype,"paidCommentChipContainerEl",void 0);_.E([_.lJ("#text-input"),_.N("design:type",HTMLElement)],sC.prototype,"editableTextEl",void 0);
_.E([_.lJ("#emoji-button"),_.N("design:type",HTMLElement)],sC.prototype,"emojiButtonEl",void 0);_.E([_.lJ("#emoji-picker > yt-emoji-picker-renderer"),_.N("design:type",Object)],sC.prototype,"emojiPickerEl",void 0);_.E([_.lJ("#text-input > ytd-comment-input"),_.N("design:type",Object)],sC.prototype,"ytdCommentInputEl",void 0);_.E([_.F(),_.N("design:type",Object)],sC.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],sC.prototype,"currentCommentOptionIndex",void 0);
_.E([_.F({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:AXt}),_.N("design:type",Object)],sC.prototype,"superThanksSelectedTierEntity",void 0);_.E([_.F(),_.N("design:type",Object)],sC.prototype,"isEmojiPickerDisplayed",void 0);_.E([_.F(),_.N("design:type",Object)],sC.prototype,"emojiManager",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],sC.prototype,"isUgcEmpty",void 0);
_.E([_.Zw("currentCommentOption"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sC.prototype,"currentCommentOptionChanged",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sC.prototype,"dataChanged",null);_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],sC.prototype,"isEmojiYtdCommentInputEnabled",null);
_.E([_.z("data.title"),_.N("design:type",Object),_.N("design:paramtypes",[])],sC.prototype,"title",null);_.E([_.z("data.authorText"),_.N("design:type",Object),_.N("design:paramtypes",[])],sC.prototype,"channelName",null);_.E([_.z("data.commentOptionRenderers","currentCommentOption"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],sC.prototype,"shouldShowPaidCommentChipRenderer",null);
_.E([_.z("data.commentOptionRenderers","currentCommentOption"),_.N("design:type",Object),_.N("design:paramtypes",[])],sC.prototype,"paidCommentChipRenderer",null);_.E([_.z("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],sC.prototype,"currentCommentOption",null);
_.E([_.z("data.defaultCommentText","superThanksSelectedTierEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],sC.prototype,"commentText",null);_.E([_.z("data.placeholderText"),_.N("design:type",Object),_.N("design:paramtypes",[])],sC.prototype,"placeholderText",null);_.E([_.z("data.commentDialog.commentDialogRenderer.editableText"),_.N("design:type",Object),_.N("design:paramtypes",[])],sC.prototype,"editableText",null);
_.E([_.z("data.commentDialog.commentDialogRenderer.emojiButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],sC.prototype,"emojiButton",null);_.E([_.z("data.commentDialog.commentDialogRenderer.emojiPicker"),_.N("design:type",Object),_.N("design:paramtypes",[])],sC.prototype,"emojiPicker",null);
_.E([_.z("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],sC.prototype,"isEmojiButtonDisplayed",null);_.E([_.sE("yt-emoji-select"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],sC.prototype,"onEmojiSelect",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],sC);
_.G(sC,"ytd-pdg-comment-preview-renderer",function(){if(tXp!==void 0)return tXp;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return tXp=f},{mode:2});var hAx;var Zi=function(){var f=_.K.apply(this,arguments)||this;f.selected=!1;return f};
_.e(Zi,_.K);_.R=Zi.prototype;_.R.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.R.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.R.dataChanged=function(){this.data&&(_.$V(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.Sr(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.cS(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.cS(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.R.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.R.onClick=function(){this.logClick()};
_.R.onKeyboardSelect=function(){_.YE(this.hostElement,"tap");this.onClick()};
_.R.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Zi.prototype.onClick=Zi.prototype.onClick;Zi.prototype.selectedChanged=Zi.prototype.selectedChanged;Zi.prototype.dataChanged=Zi.prototype.dataChanged;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Zi.prototype,"componentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Zi.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.dS),_.N("design:type",Object)],Zi.prototype,"ironA11yKeysBehavior",void 0);
_.E([_.B(_.TW),_.N("design:type",Object)],Zi.prototype,"ironSelectableBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Zi.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],Zi.prototype,"shownThumbnail",void 0);_.E([_.F(),_.N("design:type",Object)],Zi.prototype,"basePriceText",void 0);_.E([_.F(),_.N("design:type",Object)],Zi.prototype,"purchaseCommand",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Zi.prototype,"selected",void 0);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zi.prototype,"dataChanged",null);_.E([_.Zw("selected"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zi.prototype,"selectedChanged",null);_.E([_.sE("click"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zi.prototype,"onClick",null);
_.E([_.u({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],Zi);
_.G(Zi,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(hAx!==void 0)return hAx;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return hAx=f},{mode:1});var J6=function(){var f=_.K.apply(this,arguments)||this;f.selectedItemIndex=0;f.buyButtonDisabled=!1;return f};
_.e(J6,_.K);_.R=J6.prototype;
_.R.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]]"}}}}}};
_.R.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var f;var H=(f=_.U(this.data.colorSlider,gpx))==null?void 0:f.notches[this.selectedItemIndex].purchaseCommand}else{var v;H=(v=_.U(this.data.selectableItemButtons[this.selectedItemIndex],d8W))==null?void 0:v.purchaseCommand}if(H){f=_.U(H,_.QMv);f.productData||(f.productData={});var t;f.productData={pdgData:{commentMessageText:(t=this.commentPreviewRenderer)==null?void 0:t.getUserGeneratedCommentText()}};
_.YE(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(H)}}};
_.R.dataChanged=function(){if(this.data){_.N8.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.SlZ(_.N8,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.N8.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var f;this.buyButtonDisabled=!((f=_.U(this.data.commentPreview,SLG))==null||!f.placeholderText);this.updatePriceSelectorStatus();var H;if((H=this.data)==null?0:H.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;f=[];this.data.preloadImages&&(f=this.data.preloadImages);
f=f.map(function(v){return _.YK(v.thumbnails,1920)});
f=_.V(f);for(H=f.next();!H.done;H=f.next())(H=H.value)&&_.XWR(H).thenCatch(function(){_.pb(Error("wl"))})}};
_.R.superThanksSelectedTierEntityChanged=function(){var f;(this==null?void 0:(f=this.superThanksSelectedTierEntity)==null?void 0:f.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.R.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.R.updatePriceSelectorStatus=function(){this.isColorSlider?(_.mF(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.mF(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.mF(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.mF(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.R.closeBuyFlow=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.R.onUserGeneratedContentChanged=function(){var f;this.buyButtonDisabled=!((f=this.commentPreviewRenderer)==null?0:f.getUserGeneratedCommentText())};
_.R.updateSelectedItemIndexFromBinding=function(f){this.selectedItemIndex=f.detail.value};
_.H7.Object.defineProperties(J6.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var f;return!((f=this.data)==null||!f.disclaimerText)}}});
J6.prototype.onUserGeneratedContentChanged=J6.prototype.onUserGeneratedContentChanged;J6.prototype.closeBuyFlow=J6.prototype.closeBuyFlow;J6.prototype.selectedItemIndexChanged=J6.prototype.selectedItemIndexChanged;J6.prototype.superThanksSelectedTierEntityChanged=J6.prototype.superThanksSelectedTierEntityChanged;J6.prototype.dataChanged=J6.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],J6.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],J6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],J6.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],J6.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],J6.prototype,"selectedItemIndex",void 0);_.E([_.F(),_.N("design:type",Boolean)],J6.prototype,"isColorSlider",void 0);
_.E([_.F(),_.N("design:type",Object)],J6.prototype,"buyButtonDisabled",void 0);_.E([_.F({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:AXt}),_.N("design:type",Object)],J6.prototype,"superThanksSelectedTierEntity",void 0);_.E([_.lJ("ytd-pdg-comment-preview-renderer"),_.N("design:type",Object)],J6.prototype,"commentPreviewRenderer",void 0);_.E([_.B(_.um),_.N("design:type",Object)],J6.prototype,"ytdReduxBehavior",void 0);
_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],J6.prototype,"dataChanged",null);_.E([_.Zw("superThanksSelectedTierEntity"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],J6.prototype,"superThanksSelectedTierEntityChanged",null);_.E([_.Zw("selectedItemIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],J6.prototype,"selectedItemIndexChanged",null);
_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],J6.prototype,"closeBuyFlow",null);_.E([_.sE("ytd-pdg-user-generated-comment-changed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],J6.prototype,"onUserGeneratedContentChanged",null);_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],J6.prototype,"isDisclaimerTextShown",null);
_.E([_.u({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],J6);
_.G(J6,"yt-super-vod-buy-flow-content-renderer",function(){if(HLx!==void 0)return HLx;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return HLx=f},{mode:1});var RAW;var lr=function(){var f=_.K.apply(this,arguments)||this;f.lottieAnimationRef={};return f};
_.e(lr,_.K);_.R=lr.prototype;_.R.created=function(){_.p3.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.jr(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.R.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.YE(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.R.detached=function(){this.autoCloseJobId&&_.nN.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.jr(this,this.onPopupIronOverlayOpened))};
_.R.dataChanged=function(){var f=this;this.data&&this.data.autoCloseDelay&&(_.mb(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.OR(_.nN,function(){f.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.Sr(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.R.onDOMLoadedLottie=function(){var f=this,H,v,t=Number((H=this.data)==null?void 0:(v=H.autoCloseDelay)==null?void 0:v.seconds)||0;this.fadeOutJobId=_.OR(_.nN,function(){f.lottiePlayerEl.classList.add("fadeout")},(t-.25)*1E3);
this.autoCloseJobId=_.OR(_.nN,function(){f.closePopup()},t*1E3)};
_.R.openPopup=function(){this.ironOverlayBehavior.open()};
_.R.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.mb(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.Oj(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.t8().resolve(_.MJ).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.nN.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.nN.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.R.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var f,H;(f=this.lottieAnimationRef)==null||(H=f.lottieEl)==null||H.destroy();f=this.data.lottie;var v,t;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:f.url+"_"+Math.random(),path:f.url,autoplay:!0,loop:(t=(v=f.settings)==null?void 0:v.loop)!=null?t:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.H7.Object.defineProperties(lr.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var f,H;return!!((f=this.data)==null?0:(H=f.lottie)==null?0:H.url)}}});
lr.prototype.maybeInitializeLottie=lr.prototype.maybeInitializeLottie;lr.prototype.dataChanged=lr.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],lr.prototype,"rendererBehavior",void 0);_.E([_.B(_.GA),_.N("design:type",Object)],lr.prototype,"ironOverlayBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],lr.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],lr.prototype,"lottiePlayerProps",void 0);
_.E([_.F(),_.N("design:type",Object)],lr.prototype,"lottieAnimationRef",void 0);_.E([_.lJ("ytd-lottie-player"),_.N("design:type",HTMLElement)],lr.prototype,"lottiePlayerEl",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lr.prototype,"dataChanged",null);_.E([_.z("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],lr.prototype,"hasLottieAnimation",null);
_.E([_.Zw("data.lottie.url"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lr.prototype,"maybeInitializeLottie",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],lr);
_.G(lr,"ytd-desktop-image-overlay-renderer",function(){if(RAW!==void 0)return RAW;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return RAW=f},{mode:1});var VX5;var UC=function(){return _.K.apply(this,arguments)||this};
_.e(UC,_.K);_.R=UC.prototype;_.R.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"}}}}};
_.R.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",_.jr(this,this.closePopup))};
_.R.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.jr(this,this.closePopup))};
_.R.dataChanged=function(){_.$E(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.U(this.data.header,OW0)&&(this.hasBackgroundBanner=!!_.U(this.data.header,OW0).backgroundBanner)};
_.R.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.jr(this,this.closePopup))};
_.R.closePopup=function(){this.data&&this.data.onCloseCommand&&_.WV(this.hostElement,[this.data.onCloseCommand])};
UC.prototype.handleBuyflowSelectionSubmitted=UC.prototype.handleBuyflowSelectionSubmitted;UC.prototype.dataChanged=UC.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],UC.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],UC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],UC.prototype,"data",void 0);
_.E([_.F({value:!0,reflectToAttribute:!0}),_.N("design:type",Boolean)],UC.prototype,"hasBackgroundBanner",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UC.prototype,"dataChanged",null);_.E([_.sE("yt-pdg-buy-flow-selection-submitted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UC.prototype,"handleBuyflowSelectionSubmitted",null);
_.E([_.u({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],UC);
_.G(UC,"ytd-pdg-buy-flow-renderer",function(){if(VX5!==void 0)return VX5;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return VX5=f},{mode:1});var yst;var eP=function(){var f=_.K.apply(this,arguments)||this;f.isOpen=!1;f.isPlaylistCreated=!1;return f};
_.e(eP,_.K);_.R=eP.prototype;_.R.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.R.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.YE(this.hostElement,"yt-refit")};
_.R.onCreateTap=function(){var f=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.WV(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(H,v){if(!_.J("killswitch_ep_in_create_playlist_response")&&(v==null?0:v.actions))for(H=_.V(v.actions),v=H.next();!v.done;v=H.next())v=v.value,_.U(v,_.UH)&&f.ytComponentBehavior.resolveCommand(v)}}]),this.isPlaylistCreated=!0)};
_.R.onKeydown=function(f){if(f.keyCode===13)this.onCreateTap()};
_.R.onServiceRequestCompleted=function(f){f.stopPropagation();_.mb(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.R.computePrivacyBadge=function(f){return f?[{metadataBadgeRenderer:f}]:[]};
eP.prototype.onServiceRequestCompleted=eP.prototype.onServiceRequestCompleted;eP.prototype.onKeydown=eP.prototype.onKeydown;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],eP.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],eP.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],eP.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],eP.prototype,"isOpen",void 0);
_.E([_.F(),_.N("design:type",Object)],eP.prototype,"isPlaylistCreated",void 0);_.E([_.F({value:{REQUIRED_LABEL:_.ZC("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.ZC("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.N("design:type",Object)],eP.prototype,"addToStrings",void 0);_.E([_.F({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.N("design:type",Array)],eP.prototype,"privacyBadge",void 0);
_.E([_.lJ("#privacy-input"),_.N("design:type",Object)],eP.prototype,"privacyInput",void 0);_.E([_.lJ("#name-input"),_.N("design:type",Object)],eP.prototype,"nameInput",void 0);_.E([_.sE("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],eP.prototype,"onKeydown",null);_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],eP.prototype,"onServiceRequestCompleted",null);
_.E([_.u({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],eP);
_.G(eP,"ytd-add-to-playlist-create-renderer",function(){if(yst!==void 0)return yst;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return yst=f},{mode:1});var Yti;var mzh;var LI=function(){var f=_.K.apply(this,arguments)||this;f.transferState="TRANSFER_STATE_UNKNOWN";return f};
_.e(LI,_.K);LI.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
LI.prototype.onCheckboxChange=function(f){var H=this;this.data&&_.iJ(this,"yt-playlist-checkbox-changed",function(){var v=_.HB(f).checked?H.data.addToPlaylistServiceEndpoint:H.data.removeFromPlaylistServiceEndpoint;v&&_.t8().resolve(_.MJ).resolveCommand(v,{form:{element:H.hostElement}});_.J("dl_playlist_killswitch")||H.transferState!=="TRANSFER_STATE_UNKNOWN"&&H.transferState!=="TRANSFER_STATE_FAILED"&&H.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:H.data.playlistId,action:"ACTION_SYNC"}})},
100)};
LI.prototype.computeIconType=function(f){return f?"yt-icons:"+f.toLowerCase():null};
LI.prototype.dataChanged=LI.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],LI.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],LI.prototype,"data",void 0);_.E([_.B(_.um),_.N("design:type",Object)],LI.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],LI.prototype,"ytComponentBehavior",void 0);_.E([_.lJ("#checkbox"),_.N("design:type",HTMLInputElement)],LI.prototype,"checkbox",void 0);
_.E([_.F({selector:_.EF,selectorArgs:["data.playlistId"]}),_.N("design:type",String)],LI.prototype,"transferState",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],LI.prototype,"dataChanged",null);_.E([_.u({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],LI);
_.G(LI,"ytd-playlist-add-to-option-renderer",function(){if(mzh!==void 0)return mzh;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return mzh=f},{mode:1});var $z5=_.a(function(f){var H=f.data;return _.O("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.O("div",null,_.O(_.iq,{text:function(){return H().title}})),_.O(_.g,{cond:function(){return H().subtitle},
then:function(v){return _.O("div",{class:"ytdMenuTitleRendererSubtitle"},_.O(_.iq,{text:v}))}}))},"sh");
$z5.idomCompat=!0;_.yn($z5,"ytd-menu-title-renderer",{props:{data:_.ki}});var xq=function(){var f=_.K.apply(this,arguments)||this;f.addToStrings={ADD_TO_DROPDOWN_LABEL:_.ZC("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};f.closeButtonAriaLabel=_.ZC("SBOX_INAPPROPRIATE_CANCEL");f.dialog=_.J("desktop_add_to_playlist_renderer_dialog_popup");return f};
_.e(xq,_.K);_.R=xq.prototype;_.R.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"}}}};
_.R.onPopupOpened=function(){_.WB(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.R.onPopupClosed=function(){_.WB(this.playlists,"scrollable",!1)};
_.R.computeAriaLabel=function(){var f;if(this==null?0:(f=this.data)==null?0:f.actions){f=_.V(this.data.actions);for(var H=f.next();!H.done;H=f.next())if(H=H.value,H.menuTitleRenderer)return _.fG(H.menuTitleRenderer.title)}};
_.R.onTapClose=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.H7.Object.defineProperties(xq.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var f;if(this==null?0:(f=this.data)==null?0:f.actions){f=_.V(this.data.actions);for(var H=f.next();!H.done;H=f.next())if(H=H.value,H.menuTitleRenderer)return H.menuTitleRenderer}return!1}}});
xq.prototype.onPopupClosed=xq.prototype.onPopupClosed;xq.prototype.onPopupOpened=xq.prototype.onPopupOpened;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],xq.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.lv.YtEventForwardingBehavior),_.N("design:type",Object)],xq.prototype,"ytEventForwardingBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],xq.prototype,"ytRendererStamperBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],xq.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],xq.prototype,"addToStrings",void 0);_.E([_.F({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.N("design:type",String)],xq.prototype,"ariaLabel",void 0);_.E([_.F(),_.N("design:type",String)],xq.prototype,"closeButtonAriaLabel",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],xq.prototype,"dialog",void 0);
_.E([_.lJ("#playlists"),_.N("design:type",HTMLElement)],xq.prototype,"playlists",void 0);_.E([_.lJ("ytd-add-to-playlist-create-renderer"),_.N("design:type",Object)],xq.prototype,"createRenderer",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],xq.prototype,"menuTitleRenderer",null);_.E([_.sE("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xq.prototype,"onPopupOpened",null);
_.E([_.sE("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xq.prototype,"onPopupClosed",null);_.E([_.u({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],xq);
_.G(xq,"ytd-add-to-playlist-renderer",function(){if(Yti!==void 0)return Yti;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Yti=f},{mode:1});var WIw;var BE=function(){var f=_.K.apply(this,arguments)||this;f.isPlaylistEditComplete=!1;f.isCollabEngagementDisabled=!1;f.closeButtonAriaLabel=_.ZC("SBOX_INAPPROPRIATE_CANCEL");f.saveButton={title:_.ZC("SAVE_PLAYLIST",void 0,"Save"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",state:"BUTTON_VIEW_MODEL_STATE_DISABLED"};f.onValueChanged=function(){f.updateSaveButtonState();f.computeCollabEngagementDisabled()};
return f};
_.e(BE,_.K);_.R=BE.prototype;_.R.attached=function(){this.JSC$20486_scroller&&(this.JSC$20486_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20486_scroller.attached&&typeof this.JSC$20486_scroller.attached==="function"&&this.JSC$20486_scroller.attached())};
_.R.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.R.onPopupClosed=function(){this.reset()};
_.R.close=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.R.onClickSave=function(){var f=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var H=[];this.nameInput.value!==null&&H.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&H.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var v=Number(this.privacyInput.value);isNaN(v)||H.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:v})}this.votingInput.value!==null&&(v=this.votingInput.value)&&H.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:v});if(H.length>0){var t;_.U((t=this.data)==null?void 0:t.updateSettingsEndpoint,_.Kv).actions=H;var M;if((M=this.data)==null?0:M.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){f.close()}}}),this.isPlaylistEditComplete=!0}}};
_.R.computePrivacyBadge=function(f){return f?[{metadataBadgeRenderer:f}]:[]};
_.R.computeEditorData=function(f){var H,v;return f==null?void 0:(H=f.sections)==null?void 0:(v=H[0])==null?void 0:v.playlistSettingsEditorCasualSectionRenderer};
_.R.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.R.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}}}}}};
_.R.computeAriaLabel=function(){var f,H,v,t=(f=this.data)==null?void 0:(H=f.sections)==null?void 0:(v=H[0])==null?void 0:v.playlistSettingsEditorCasualSectionRenderer;return _.fG(t==null?void 0:t.title)};
_.R.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"}))};
_.R.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.R.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.R.isNameChanged=function(){var f,H,v;return(((f=this.editorData)==null?void 0:(H=f.name)==null?void 0:(v=H.textInputFormFieldRenderer)==null?void 0:v.value)||"")!==(this.nameInput.value||"")};
_.R.isDescriptionChanged=function(){var f,H,v;return(((f=this.editorData)==null?void 0:(H=f.description)==null?void 0:(v=H.textInputFormFieldRenderer)==null?void 0:v.value)||"")!==(this.descriptionInput.value||"")};
_.R.isPrivacyChanged=function(){var f,H,v,t,M,h,y,m;return((y=(f=this.editorData)==null?void 0:(H=f.privacy)==null?void 0:(v=H.dropdownFormFieldRenderer)==null?void 0:(t=v.dropdown)==null?void 0:(M=t.dropdownRenderer)==null?void 0:(h=M.entries)==null?void 0:h.find(function(W){var I;return W==null?void 0:(I=W.privacyDropdownItemRenderer)==null?void 0:I.isSelected}))==null?void 0:(m=y.privacyDropdownItemRenderer)==null?void 0:m.int32Value)!==this.privacyInput.value};
_.R.isVotingChanged=function(){var f,H,v,t,M,h,y,m;return((y=(f=this.editorData)==null?void 0:(H=f.voting)==null?void 0:(v=H.dropdownFormFieldRenderer)==null?void 0:(t=v.dropdown)==null?void 0:(M=t.dropdownRenderer)==null?void 0:(h=M.entries)==null?void 0:h.find(function(W){var I;return W==null?void 0:(I=W.privacyDropdownItemRenderer)==null?void 0:I.isSelected}))==null?void 0:(m=y.privacyDropdownItemRenderer)==null?void 0:m.int32Value)!==this.votingInput.value};
BE.prototype.onPopupClosed=BE.prototype.onPopupClosed;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],BE.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],BE.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.lv.YtEventForwardingBehavior),_.N("design:type",Object)],BE.prototype,"ytEventForwardingBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],BE.prototype,"ytRendererStamperBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],BE.prototype,"data",void 0);_.E([_.F({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.N("design:type",Array)],BE.prototype,"privacyBadge",void 0);_.E([_.F({computed:"computeEditorData(data)"}),_.N("design:type",Object)],BE.prototype,"editorData",void 0);_.E([_.F(),_.N("design:type",Object)],BE.prototype,"isPlaylistEditComplete",void 0);_.E([_.F(),_.N("design:type",Object)],BE.prototype,"isCollabEngagementDisabled",void 0);
_.E([_.F({value:{REQUIRED_LABEL:_.ZC("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.ZC("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.N("design:type",Object)],BE.prototype,"addToStrings",void 0);_.E([_.F({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.N("design:type",String)],BE.prototype,"ariaLabel",void 0);_.E([_.F(),_.N("design:type",String)],BE.prototype,"closeButtonAriaLabel",void 0);
_.E([_.F(),_.N("design:type",Object)],BE.prototype,"saveButton",void 0);_.E([_.lJ("#name-input"),_.N("design:type",Object)],BE.prototype,"nameInput",void 0);_.E([_.lJ("#description-input"),_.N("design:type",Object)],BE.prototype,"descriptionInput",void 0);_.E([_.lJ("#privacy-input"),_.N("design:type",Object)],BE.prototype,"privacyInput",void 0);_.E([_.lJ("#voting-input"),_.N("design:type",Object)],BE.prototype,"votingInput",void 0);
_.E([_.lJ("#scroller"),_.N("design:type",Object)],BE.prototype,"JSC$20486_scroller",void 0);_.E([_.sE("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BE.prototype,"onPopupClosed",null);_.E([_.F(),_.N("design:type",Object)],BE.prototype,"onValueChanged",void 0);_.E([_.u({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],BE);
_.G(BE,"ytd-playlist-settings-editor-renderer",function(){if(WIw===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);WIw=f}f=WIw;return f},{mode:1});var OL0;_.DE("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var zw=function(){return _.K.apply(this,arguments)||this};
_.e(zw,_.K);_.R=zw.prototype;_.R.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}}}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.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 f=this.get("data.nextButton.buttonRenderer.navigationEndpoint");f&&(this.nextNavigationEndpoint=f,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.R.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 f={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",f)}}};
_.R.onPopupOpened=function(f){f.detail!==this&&f.detail!==this.hostElement||!_.J("enable_premium_voluntary_pause")||_.mb(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.R.onNextButtonTap=function(){var f=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);f&&this.ytdOpenPopupBehavior.openPopup(f)};
_.R.updateSelectedResponseIndexFromBinding=function(f){this.selectedResponseIndex=f.detail.value};
zw.prototype.onPopupOpened=zw.prototype.onPopupOpened;zw.prototype.onSelectedResponseIndexChange=zw.prototype.onSelectedResponseIndexChange;zw.prototype.dataChanged=zw.prototype.dataChanged;_.E([_.B(_.fm),_.N("design:type",Object)],zw.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],zw.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],zw.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],zw.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Number)],zw.prototype,"selectedResponseIndex",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zw.prototype,"dataChanged",null);_.E([_.Zw("selectedResponseIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zw.prototype,"onSelectedResponseIndexChange",null);
_.E([_.sE("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],zw.prototype,"onPopupOpened",null);_.E([_.u({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],zw);
_.G(zw,"ytd-red-cancel-survey-renderer",function(){if(OL0!==void 0)return OL0;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return OL0=f},{mode:1});var gc0;var FR=function(){var f=_.K.apply(this,arguments)||this;f.closeButtonAriaLabel=_.ZC("SBOX_INAPPROPRIATE_CANCEL");return f};
_.e(FR,_.K);FR.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
FR.prototype.onClickClose=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],FR.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],FR.prototype,"rendererStamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],FR.prototype,"data",void 0);_.E([_.F(),_.N("design:type",String)],FR.prototype,"closeButtonAriaLabel",void 0);_.E([_.u({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],FR);
_.G(FR,"ytd-search-filter-options-dialog-renderer",function(){if(gc0!==void 0)return gc0;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return gc0=f},{mode:1});var Ivb;var Fxr=function(){return function(f){f=f.availabilityType;return f===void 0||f==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||f==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var rO=function(){var f=_.K.apply(this,arguments)||this;f.qualityOptions=[];f.upsellOptions=[];f.showUpsellSection=!1;f.darkerDarkTheme=_.J("web_darker_dark_theme");f.rememberSettingsChecked=!1;return f};
_.e(rO,_.K);_.R=rO.prototype;_.R.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}}}}};
_.R.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.R.updateQualityOptions=function(){if(this.formats===void 0)_.mb(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var f=[],H=[];this.showUpsellSection=!1;for(var v=_.V(this.formats),t=v.next();!t.done;t=v.next())(t=t.value)&&(t.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?H.push(t):f.push(t));f.length&&(this.qualityOptions=zUb(f));H.length&&(this.showUpsellSection=!0,this.upsellOptions=zUb(H))}};
_.R.updateRememberString=function(){if(this.downloadQualityPickerEntity)var f=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var H;f=(H=this.data)==null?void 0:H.premiumRememberSettingString}else{var v;f=(v=this.data)==null?void 0:v.rememberSettingString}f=f===void 0?_.ZC("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):f;this.rememberSettingsCheckboxRenderer={title:_.hd(f),disabled:!1}};
_.R.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.H7.Object.defineProperties(rO.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var f;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(f=this.data)==null?void 0:f.qualityFormats}}});
rO.prototype.updateRememberString=rO.prototype.updateRememberString;rO.prototype.updateQualityOptions=rO.prototype.updateQualityOptions;rO.prototype.dataChanged=rO.prototype.dataChanged;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],rO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],rO.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],rO.prototype,"data",void 0);
_.E([_.B(_.um),_.N("design:type",Object)],rO.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Boolean)],rO.prototype,"selectedUpsellQuality",void 0);_.E([_.F({computed:"computeIcon_(data.premiumIcon)",value:""}),_.N("design:type",String)],rO.prototype,"premiumIcon",void 0);_.E([_.F({selector:E1G,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.N("design:type",Object)],rO.prototype,"downloadQualityPickerEntity",void 0);
_.E([_.F(),_.N("design:type",Array)],rO.prototype,"qualityOptions",void 0);_.E([_.F(),_.N("design:type",Array)],rO.prototype,"upsellOptions",void 0);_.E([_.F(),_.N("design:type",Object)],rO.prototype,"showUpsellSection",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],rO.prototype,"darkerDarkTheme",void 0);_.E([_.F(),_.N("design:type",Object)],rO.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.E([_.lJ("#remember-settings"),_.N("design:type",HTMLInputElement)],rO.prototype,"rememberSettingsCheckbox",void 0);_.E([_.F(),_.N("design:type",Object)],rO.prototype,"rememberSettingsChecked",void 0);_.E([_.F(),_.N("design:type",Function)],rO.prototype,"onRememberSettingsCheckedChanged",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rO.prototype,"dataChanged",null);
_.E([_.Zw("downloadQualityPickerEntity"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rO.prototype,"updateQualityOptions",null);_.E([_.Zw("selectedUpsellQuality"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rO.prototype,"updateRememberString",null);_.E([_.u({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],rO);
_.G(rO,"ytd-download-quality-selector-content",function(){if(Ivb!==void 0)return Ivb;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Ivb=f},{mode:1});var Stw;var KI=function(){var f=_.K.apply(this,arguments)||this;f.selectedUpsellQuality=!1;f.qualityOptions=[];f.darkerDarkTheme=_.J("web_darker_dark_theme");f.useUpsellDismissAlternate=_.J("use_not_now_dl_upsell_dismiss_cta");f.shouldShowAlternateUpsellDimiss=!1;f.rememberSettings=!1;f.rememberSettingsChecked=!1;f.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};f.rememberSettingsCheckedChanged=function(H){f.rememberSettingsChecked=H};
return f};
_.e(KI,_.K);_.R=KI.prototype;
_.R.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.hd(_.ZC("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.hd(_.ZC("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.hd(_.ZC("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.hd(_.ZC("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.R.updateQualityOptions=function(){this.formats===void 0?_.mb(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=zUb(this.formats)};
_.R.onQualityOptionsSelect=function(f){if(this.qualityOptions&&f){f!==void 0&&(this.downloadButtonRenderer&&(this.downloadButtonRenderer=Object.assign({},this.downloadButtonRenderer,{isDisabled:!1})),this.upsellButtonRenderer&&(this.upsellButtonRenderer=Object.assign({},this.upsellButtonRenderer,{isDisabled:!1})),this.upsellCancelButtonRenderer&&(this.upsellCancelButtonRenderer=Object.assign({},this.upsellCancelButtonRenderer,{isDisabled:!1})));for(var H=_.V(this.qualityOptions.entries()),v=H.next();!v.done;v=
H.next()){v=_.V(v.value);var t=v.next().value;v=v.next().value;var M=void 0,h=void 0;if(((M=v)==null?void 0:(h=M.settingsRadioOptionRenderer)==null?void 0:h.id)===f){this.selectedQualityIndex=t;f=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((f=this.formats[t])==null?void 0:f.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.R.onClickSubmit=function(){var f;if((f=this.downloadButtonRenderer)==null||!f.isDisabled){var H,v;f=(v=(H=this.data)==null?void 0:H.onSubmitEndpoint)!=null?v:{};var t,M;if(this.formats&&(((t=_.U(f,_.Sf))==null?0:t.videoId)||((M=_.U(f,_.d3))==null?0:M.playlistId))){var h,y,m,W,I,S;H={formatType:(W=(h=this.formats)==null?void 0:(y=h[(m=this.selectedQualityIndex)!=null?m:0])==null?void 0:y.format)!=null?W:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(I=this.getOfflineEndpoint(f))==null?void 0:(S=I.actionParams)==null?void 0:S.settingsAction)};this.getOfflineEndpoint(f).actionParams=H;this.ytComponentBehavior.resolveCommand(f)}_.mb(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.R.onClickUpsell=function(){var f;if((f=this.upsellButtonRenderer)==null||!f.isDisabled){var H,v;f=(v=(H=this.data)==null?void 0:H.upsellEndpoint)!=null?v:{};this.ytComponentBehavior.resolveCommand(f);_.mb(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);H="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var t,M,h,y;H=(y=(t=this.formats)==null?void 0:(M=t[(h=this.selectedQualityIndex)!=null?h:0])==null?void 0:M.format)!=null?y:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:H}})}};
_.R.onClickClose=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.R.getOfflineSettingsAction=function(f,H){return f?H===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":H:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.R.getOfflineEndpoint=function(f){return _.U(f,_.Sf)?_.U(f,_.Sf):_.U(f,_.d3)};
_.H7.Object.defineProperties(KI.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.hd(_.ZC("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var f;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(f=this.data)==null?void 0:f.qualityFormats}}});
KI.prototype.updateQualityOptions=KI.prototype.updateQualityOptions;KI.prototype.dataChanged=KI.prototype.dataChanged;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],KI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],KI.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],KI.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],KI.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],KI.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Number)],KI.prototype,"selectedQualityIndex",void 0);_.E([_.F(),_.N("design:type",Object)],KI.prototype,"selectedUpsellQuality",void 0);_.E([_.B(_.um),_.N("design:type",Object)],KI.prototype,"ytdReduxBehavior",void 0);
_.E([_.F({selector:E1G,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.N("design:type",Object)],KI.prototype,"downloadQualityPickerEntity",void 0);_.E([_.F(),_.N("design:type",Array)],KI.prototype,"qualityOptions",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],KI.prototype,"darkerDarkTheme",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],KI.prototype,"useUpsellDismissAlternate",void 0);
_.E([_.F(),_.N("design:type",Object)],KI.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.E([_.F(),_.N("design:type",Object)],KI.prototype,"downloadButtonRenderer",void 0);_.E([_.F(),_.N("design:type",Object)],KI.prototype,"upsellButtonRenderer",void 0);_.E([_.F(),_.N("design:type",Object)],KI.prototype,"cancelButtonRenderer",void 0);_.E([_.F(),_.N("design:type",Object)],KI.prototype,"upsellCancelButtonRenderer",void 0);_.E([_.F(),_.N("design:type",Object)],KI.prototype,"rememberSettings",void 0);
_.E([_.F(),_.N("design:type",Object)],KI.prototype,"rememberSettingsChecked",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],KI.prototype,"dataChanged",null);_.E([_.Zw("downloadQualityPickerEntity"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],KI.prototype,"updateQualityOptions",null);_.E([_.u({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],KI);
_.G(KI,"ytd-download-quality-selector-renderer",function(){if(Stw!==void 0)return Stw;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Stw=f},{mode:1});var dzW;var Di=function(){var f=_.K.apply(this,arguments)||this;f.darkerDarkTheme=_.J("web_darker_dark_theme");return f};
_.e(Di,_.K);Di.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Di.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"}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Di.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Di.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Di.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Di.prototype,"darkerDarkTheme",void 0);_.E([_.F({computed:"computeIcon_(data.infoIcon)"}),_.N("design:type",Object)],Di.prototype,"infoIcon",void 0);
_.E([_.F({computed:"computeIcon_(data.warningIcon)"}),_.N("design:type",Object)],Di.prototype,"warningIcon",void 0);_.E([_.u({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Di);
_.G(Di,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(dzW!==void 0)return dzW;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return dzW=f},{mode:1});var jIG;var og=function(){var f=_.K.apply(this,arguments)||this;f.darkerDarkTheme=_.J("web_darker_dark_theme");return f};
_.e(og,_.K);og.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
og.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"}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],og.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],og.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],og.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],og.prototype,"darkerDarkTheme",void 0);_.E([_.u({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],og);
_.G(og,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(jIG!==void 0)return jIG;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return jIG=f},{mode:1});var sIw;var nI=function(){var f=_.K.apply(this,arguments)||this;f.darkerDarkTheme=_.J("web_darker_dark_theme");return f};
_.e(nI,_.K);nI.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
nI.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"}}}}};
nI.prototype.onServiceRequestSentOrCompleted=function(f,H){H&&H.actions&&H.actions.length>0&&_.mb(this.hostElement,"yt-close-popup-action",[this.is])};
nI.prototype.onServiceRequestSentOrCompleted=nI.prototype.onServiceRequestSentOrCompleted;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],nI.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],nI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],nI.prototype,"darkerDarkTheme",void 0);_.E([_.F(),_.N("design:type",Object)],nI.prototype,"data",void 0);
_.E([_.sE("yt-service-request-completed"),_.sE("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.TI]),_.N("design:returntype")],nI.prototype,"onServiceRequestSentOrCompleted",null);_.E([_.u({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],nI);
_.G(nI,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(sIw!==void 0)return sIw;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return sIw=f},{mode:1});var ZLi;var pI=function(){var f=_.K.apply(this,arguments)||this;f.darkerDarkTheme=_.J("web_darker_dark_theme");f.submitButtonDisabled=!0;return f};
_.e(pI,_.K);_.R=pI.prototype;_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.R.onDataChanged=function(){var f,H,v;if(((f=this.data)==null?void 0:(H=f.confirmButton)==null?void 0:(v=H.buttonRenderer)==null?void 0:v.isDisabled)!==void 0){var t,M,h;this.submitButtonDisabled=(t=this.data)==null?void 0:(M=t.confirmButton)==null?void 0:(h=M.buttonRenderer)==null?void 0:h.isDisabled}};
_.R.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.R.updateSubmitButtonDisabledFromBinding=function(f){this.submitButtonDisabled=f.detail.value};
_.R.updateSubmitButtonDisabledFromConfirmCheckbox=function(f){this.submitButtonDisabled=!f.detail.value};
pI.prototype.onDataChanged=pI.prototype.onDataChanged;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],pI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],pI.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],pI.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],pI.prototype,"darkerDarkTheme",void 0);
_.E([_.F(),_.N("design:type",Object)],pI.prototype,"submitButtonDisabled",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pI.prototype,"onDataChanged",null);_.E([_.u({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],pI);
_.G(pI,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(ZLi!==void 0)return ZLi;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return ZLi=f},{mode:1});var JsG;var QE=function(){return _.K.apply(this,arguments)||this};
_.e(QE,_.K);_.H7.Object.defineProperties(QE.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var f,H,v;return((f=this.data)==null?void 0:f.title)+" "+((H=this.data)==null?void 0:H.metadataPrimary)+" "+((v=this.data)==null?void 0:v.metadataSecondary)}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],QE.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],QE.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],QE.prototype,"data",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],QE.prototype,"ariaLabel",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],QE);
_.G(QE,"ytd-compact-product-list-item-renderer",function(){if(JsG!==void 0)return JsG;var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return JsG=f},{mode:1});var lvx;var ur=function(){return _.K.apply(this,arguments)||this};
_.e(ur,_.K);ur.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]]"}}}}}};
_.H7.Object.defineProperties(ur.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ur.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],ur.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],ur.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],ur.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],ur);
_.G(ur,"ytd-compact-product-list-renderer",function(){if(lvx!==void 0)return lvx;var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return lvx=f},{mode:1});var Uzt;var ag=function(){var f=_.K.apply(this,arguments)||this;f.darkerDarkTheme=_.J("web_darker_dark_theme");return f};
_.e(ag,_.K);_.R=ag.prototype;_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.R.getBackgroundUrl=function(){var f=this.get("data.headerImage.thumbnails");return f?"url("+_.YK(f,this.hostElement.clientWidth)+")":""};
_.R.onDataChanged=function(){var f=this.getBackgroundUrl();f&&(this.header.style.backgroundImage=f);f=_.uy();var H=_.Qe(),v=this.get("data.trackingParams");v&&H&&f&&_.Xl(f,H,_.zK(v));f=_.V(this.hostElement.querySelectorAll("yt-img-shadow"));for(H=f.next();!H.done;H=f.next())H.value.onShow()};
_.R.onPopupClosed=function(f){_.HB(f).localName==="ytd-membership-post-cancel-renderer"&&_.mb(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
ag.prototype.onPopupClosed=ag.prototype.onPopupClosed;ag.prototype.onDataChanged=ag.prototype.onDataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ag.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],ag.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],ag.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],ag.prototype,"darkerDarkTheme",void 0);
_.E([_.lJ("#header"),_.N("design:type",HTMLDivElement)],ag.prototype,"header",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ag.prototype,"onDataChanged",null);_.E([_.sE("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],ag.prototype,"onPopupClosed",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],ag);
_.G(ag,"ytd-membership-post-cancel-renderer",function(){if(Uzt!==void 0)return Uzt;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Uzt=f},{mode:1});var eAA;var PE=function(){var f=_.K.apply(this,arguments)||this;f.darkerDarkTheme=_.J("web_darker_dark_theme");return f};
_.e(PE,_.K);PE.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
PE.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],PE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],PE.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],PE.prototype,"darkerDarkTheme",void 0);_.E([_.lJ("ytd-feedback-survey-renderer"),_.N("design:type",Object)],PE.prototype,"feedbackSurveyRenderer",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],PE);
_.G(PE,"ytd-sponsorship-confirm-cancel-content",function(){if(eAA!==void 0)return eAA;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return eAA=f},{mode:1});var LIF;var Gw=function(){var f=_.K.apply(this,arguments)||this;f.darkerDarkTheme=_.J("web_darker_dark_theme");f.maybeSubmitFeedback=function(){f.content&&f.content.maybeSubmitFeedback()};
return f};
_.e(Gw,_.K);_.R=Gw.prototype;_.R.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.R.onYtPopupOpened=function(f,H){H===this&&this.data&&this.data.onOpenCommands&&_.Oj(this.hostElement,this.data.onOpenCommands,this.hostElement);_.mb(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.R.onYtPopupClosed=function(f,H){(H&&H.canceled===!0||H&&H.canceled===!1&&H.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.Oj(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.R.onYtServiceRequestCompleted=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.R.onYtServiceRequestError=function(f){_.Xs(this.hostElement,f.detail.error.message)};
_.R.onDataChanged=function(){if(this.isAttached){var f=this.backgroundUrl;f&&(_.mF(this.hostElement).querySelector("#header").style.backgroundImage=f)}};
_.H7.Object.defineProperties(Gw.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var f=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return f?"url("+_.YK(f,this.hostElement.clientWidth)+")":""}}});
Gw.prototype.onDataChanged=Gw.prototype.onDataChanged;Gw.prototype.onYtServiceRequestError=Gw.prototype.onYtServiceRequestError;Gw.prototype.onYtServiceRequestCompleted=Gw.prototype.onYtServiceRequestCompleted;Gw.prototype.onYtPopupClosed=Gw.prototype.onYtPopupClosed;Gw.prototype.onYtPopupOpened=Gw.prototype.onYtPopupOpened;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Gw.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Gw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Gw.prototype,"data",void 0);_.E([_.F({value:function(){return _.ZC("SBOX_INAPPROPRIATE_CANCEL")}}),
_.N("design:type",String)],Gw.prototype,"closeButtonAriaLabel",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Gw.prototype,"darkerDarkTheme",void 0);_.E([_.lJ("#scrollable"),_.N("design:type",Object)],Gw.prototype,"scrollable",void 0);_.E([_.lJ("ytd-sponsorship-confirm-cancel-content"),_.N("design:type",Object)],Gw.prototype,"content",void 0);
_.E([_.sE("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Gw.prototype,"onYtPopupOpened",null);_.E([_.sE("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Gw.prototype,"onYtPopupClosed",null);
_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Gw.prototype,"onYtServiceRequestCompleted",null);_.E([_.sE("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Gw.prototype,"onYtServiceRequestError",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Gw.prototype,"onDataChanged",null);
_.E([_.u({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],Gw);
_.G(Gw,"ytd-sponsorship-confirm-cancel-renderer",function(){if(LIF!==void 0)return LIF;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return LIF=f},{mode:_.WK("kevlar_poly_si_batch_j081")?1:2});var xzi;var CI=function(){var f=_.K.apply(this,arguments)||this;f.darkerDarkTheme=_.J("web_darker_dark_theme");return f};
_.e(CI,_.K);CI.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],CI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],CI.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],CI.prototype,"darkerDarkTheme",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],CI);
_.G(CI,"ytd-sponsorships-celebration-content",function(){if(xzi!==void 0)return xzi;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return xzi=
f},{mode:1});var Bv0;var zA5=_.EH(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),EC=function(){var f=_.K.apply(this,arguments)||this;f.scriptsAppended=!1;f.useFullWidthPrimaryButton=!1;f.buttonOverrides={type:"tonal",style:"overlay-dark"};return f};
_.e(EC,_.K);_.R=EC.prototype;_.R.dataChanged=function(){var f;this.useFullWidthPrimaryButton=!((f=this.data)==null||!f.useFullWidthPrimaryButton)};
_.R.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:_.J("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.onDataChanged=function(){var f;(f=this.header)==null||f.style.setProperty("background-color",this.backgroundColor);if(f=this.headerImageUrl){var H;(H=this.header)==null||H.style.setProperty("background-image",f)}H=_.uy(4);f=_.Qe(4);var v=this.get("data.trackingParams");if(v&&f&&H){var t=_.zK(v);_.Xl(H,f,t);_.J("combine_ve_grafts")?_.UV().graftServerVe(v,f,4):_.Xl(H,f,t)}H=_.V(this.hostElement.querySelectorAll("yt-img-shadow"));for(f=H.next();!f.done;f=H.next())f.value.onShow();if(H=this.get("data.gtmId"))_.F9(H,
_.a8("GL","")),this.setupConversionTracking()};
_.R.setupConversionTracking=function(){if(!this.scriptsAppended){var f=document.createElement("script");var H=_.Hj(zA5.join(""));_.vj(f,H);document.head.appendChild(f);f=document.createElement("noscript");f.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(f);this.scriptsAppended=!0}};
_.R.onPopupClosed=function(f){if(_.HB(f).localName==="ytd-sponsorships-celebration-renderer"){_.mb(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var H;this.data&&((H=this.data)==null?0:H.dismissCommand)&&_.jW.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.H7.Object.defineProperties(EC.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var f=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.cS(f)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var f=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return f?"url("+_.YK(f,this.hostElement.getBoundingClientRect().width)+")":""}}});
EC.prototype.onPopupClosed=EC.prototype.onPopupClosed;EC.prototype.onDataChanged=EC.prototype.onDataChanged;EC.prototype.dataChanged=EC.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],EC.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],EC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],EC.prototype,"data",void 0);
_.E([_.lJ("#header"),_.N("design:type",HTMLElement)],EC.prototype,"header",void 0);_.E([_.F(),_.N("design:type",Object)],EC.prototype,"scriptsAppended",void 0);_.E([_.F({type:Boolean,reflectToAttribute:!0}),_.N("design:type",Object)],EC.prototype,"useFullWidthPrimaryButton",void 0);_.E([_.F(),_.N("design:type",Object)],EC.prototype,"buttonOverrides",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EC.prototype,"dataChanged",null);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EC.prototype,"onDataChanged",null);_.E([_.sE("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],EC.prototype,"onPopupClosed",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],EC);
_.G(EC,"ytd-sponsorships-celebration-renderer",function(){if(Bv0!==void 0)return Bv0;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Bv0=f},{mode:1});var FIr;var N0=function(){var f=_.K.apply(this,arguments)||this;f.isToggleChecked=!1;return f};
_.e(N0,_.K);N0.prototype.onDataChanged=function(){var f;this.isToggleChecked=((f=this.data)==null?void 0:f.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
N0.prototype.close=function(){var f;((f=this.data)==null?0:f.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
N0.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var f,H=_.U((f=this.data)==null?void 0:f.switchButton,jMb);H&&(this.isToggleChecked&&H.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(H.switchOnInnertubeCommand),!this.isToggleChecked&&H.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(H.switchOffInnertubeCommand))};
N0.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
N0.prototype.onDataChanged=N0.prototype.onDataChanged;_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],N0.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],N0.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],N0.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],N0.prototype,"isToggleChecked",void 0);_.E([_.F({value:_.ZC("CLOSE")}),_.N("design:type",String)],N0.prototype,"closeButtonAriaLabel",void 0);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],N0.prototype,"onDataChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],N0);
_.G(N0,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(FIr!==void 0)return FIr;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return FIr=f},{mode:1});var rsx;var cE=function(){return _.K.apply(this,arguments)||this};
_.e(cE,_.K);_.R=cE.prototype;_.R.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"}}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.detached=function(){this.playerElement.stop()};
_.R.onYtServiceRequestCompleted=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.R.onYtServiceRequestError=function(f){_.Xs(this.hostElement,f.detail.error.message)};
_.R.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.R.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.R.getTier=function(f,H){return!f||!f.tiers||H<0?null:_.U(f.tiers[H],ls0)};
_.R.moreThanOne=function(f){return!!(f&&f.length>1)};
_.R.tierOverviewTap=function(f){var H=this;this.selectedTier=f.model.index;_.qV(this,function(){_.YE(H.hostElement,"yt-refit")})};
_.R.computeSelectedClass=function(f,H){return this.isSelected(f,H)?"selected":""};
_.R.computeButtonAriaPressed=function(f,H){return this.isSelected(f,H)?"true":"false"};
_.R.isSelected=function(f,H){return f===H};
_.R.onDataChanged=function(){_.mF(this.hostElement).querySelector("#header-overlay").style.visibility="";_.mF(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 f=_.V(this.hostElement.querySelectorAll("yt-img-shadow")),
H=f.next();!H.done;H=f.next())H.value.onShow();var v;this.set("selectedTier",(v=this.get("data.targetTierIndex"))!=null?v:0);var t;(f=(t=this.data)==null?void 0:t.onVisible)&&this.ytComponentBehavior.resolveCommand(f)};
_.R.initializeVe=function(f){var H=_.uy(),v=_.Qe(),t=this.get("data.trackingParams");v&&H&&(this.screenLayer=4,H=_.Cc(_.L4R)(void 0,69877,{clientScreenNonce:H,visualElement:v},void 0,void 0,void 0),_.P7(H,69877,4),v=_.Qe(4),t&&v&&(t=_.zK(t),_.Xl(H,v,t),f&&(this.offerVideoVe=_.$$(74659),_.Xl(H,t,this.offerVideoVe))))};
_.R.setHeaderBackground=function(){var f=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.mF(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.cS(f);if(f=this.getHeaderImage())f=_.YK(f,screen.width),_.mF(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+f+")"};
_.R.getHeaderImage=function(){var f=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&f?f:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.R.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.R.setupVideoPlayer=function(f){var H=this,v,t,M,h;return _.Y(function(y){if(y.nextAddress==1)return v=H.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),t=H.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.J("kevlar_player_update_killswitch")?H.playerElement.update({args:{autoplay:v,video_id:f,player_params:t}}):H.playerElement.loadVideoWithPlayerVars({autoplay:v,video_id:f,player_params:t}),
y.yield(H.playerElement.getPlayerPromise(),2);M=y.yieldResult;M.addEventListener("onStateChange",function(m){H.onPlayerStateChange(m)});
M.setScreenLayer(H.screenLayer);(h=_.uy(4))&&H.offerVideoVe&&_.b0(h,H.offerVideoVe);v&&(H.pauseOtherPlayers(),H.playerElement.focusOnPlayer(),H.playerElement.getPlayer().hideControls(),_.Lb(_.nN,function(){H.fadeOutHeaderOverlay()},4E3));
_.Bj(y)})};
_.R.onPlayerStateChange=function(f){f===1?this.backgroundPlayerElement&&(f=this.backgroundPlayerElement.player_.getPlayerState(),f!==1&&f!==3||this.backgroundPlayerElement.pause()):f===0&&(_.mF(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.mF(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.R.fadeOutHeaderOverlay=function(){_.mF(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.R.onHeaderTap=function(){if(this.offerVideo){_.mF(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var f;((f=this.playerElement.player_)==null?void 0:f.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(f=_.uy(4))&&this.offerVideoVe&&_.Ti(f,this.offerVideoVe)}};
_.R.getBackgroundImageLayerClass=function(f){return f?"background-image-layer-with-video":""};
_.R.getHeaderClass=function(f){return f?"header-with-video":""};
_.R.getHeaderOverlayClass=function(f){return f?"header-overlay-with-video":""};
_.R.getTitleContainerClass=function(f,H){return f?"title-container-with-video":H?"title-container-without-video-flexible":"title-container-without-video"};
_.R.tierTitleDisplayStatus=function(f){return this.moreThanOne(f)?"hide":"show"};
_.R.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.t8().resolve(_.o0).getPlayerElement():this.backgroundPlayerElement=_.vx();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var f=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=f===1||f===3;this.backgroundPlayerElement.pause()}};
_.R.isMiniplayerActive=function(){return _.t8().resolve(_.o0).isMiniplayerActive()};
_.R.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.bM("selected-tier-changed",this.selectedTier))};
cE.prototype.selectedTierChangedForBinding=cE.prototype.selectedTierChangedForBinding;cE.prototype.onDataChanged=cE.prototype.onDataChanged;cE.prototype.onYtPopupClosed=cE.prototype.onYtPopupClosed;cE.prototype.onYtPopupOpened=cE.prototype.onYtPopupOpened;cE.prototype.onYtServiceRequestError=cE.prototype.onYtServiceRequestError;cE.prototype.onYtServiceRequestCompleted=cE.prototype.onYtServiceRequestCompleted;
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],cE.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],cE.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],cE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],cE.prototype,"data",void 0);_.E([_.F({value:0}),_.N("design:type",Number)],cE.prototype,"selectedTier",void 0);
_.E([_.F({value:""}),_.N("design:type",String)],cE.prototype,"offerVideo",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],cE.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.E([_.F({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.h9(this)}}),
_.N("design:type",String)],cE.prototype,"playerId",void 0);_.E([_.lJ("tp-yt-paper-dialog-scrollable"),_.N("design:type",Object)],cE.prototype,"scrollable",void 0);_.E([_.lJ("ytd-sponsorships-tier-renderer"),_.N("design:type",Object)],cE.prototype,"tierRenderer",void 0);_.E([_.lJ("#player"),_.N("design:type",Object)],cE.prototype,"playerElement",void 0);
_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],cE.prototype,"onYtServiceRequestCompleted",null);_.E([_.sE("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],cE.prototype,"onYtServiceRequestError",null);
_.E([_.sE("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cE.prototype,"onYtPopupOpened",null);_.E([_.sE("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cE.prototype,"onYtPopupClosed",null);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cE.prototype,"onDataChanged",null);
_.E([_.Zw("selectedTier"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cE.prototype,"selectedTierChangedForBinding",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],cE);
_.G(cE,"ytd-sponsorships-offer-renderer",function(){if(rsx!==void 0)return rsx;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return rsx=f},{mode:_.WK("kevlar_poly_si_batch_j077")?1:2});var KIr;var A6=function(){var f=_.K.apply(this,arguments)||this;f.buttonOverrides={type:"filled",style:"mono"};return f};
_.e(A6,_.K);A6.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}}}}}};
A6.prototype.backgroundColorChanged=function(){var f,H,v,t=(H=_.U((f=this.data)==null?void 0:f.content,U8A))==null?void 0:(v=H.backgroundColor)==null?void 0:v.backgroundColor;t&&(f=_.NS(t),_.mF(this.hostElement).querySelector("#banner").style.backgroundColor=f,_.mF(this.hostElement).querySelector("#abstract-art").style.backgroundColor=f)};
A6.prototype.attached=function(){this.JSC$20572_scroller&&(this.JSC$20572_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20572_scroller.attached&&typeof this.JSC$20572_scroller.attached==="function"&&this.JSC$20572_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
A6.prototype.backgroundColorChanged=A6.prototype.backgroundColorChanged;_.E([_.F(),_.N("design:type",Object)],A6.prototype,"data",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],A6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.lJ("#scroller"),_.N("design:type",Object)],A6.prototype,"JSC$20572_scroller",void 0);_.E([_.F(),_.N("design:type",Object)],A6.prototype,"buttonOverrides",void 0);
_.E([_.Zw("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],A6.prototype,"backgroundColorChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],A6);
_.G(A6,"ytd-sponsorships-promotion-celebration-renderer",function(){if(KIr!==void 0)return KIr;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return KIr=f},{mode:_.WK("kevlar_poly_si_batch_j077")?1:2});var Dzr;var ocp;var br=function(){return _.K.apply(this,arguments)||this};
_.e(br,_.K);br.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
br.prototype.computeIsInitiallyChecked=function(f){return f===1};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],br.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],br.prototype,"data",void 0);_.E([_.lJ("#checkbox"),_.N("design:type",Object)],br.prototype,"checkbox",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],br);
_.G(br,"ytd-subscription-toggle-option-renderer",function(){if(ocp!==void 0)return ocp;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return ocp=f},{mode:1});var ir=function(){var f=_.K.apply(this,arguments)||this;f.darkerDarkTheme=_.J("web_darker_dark_theme");f.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return f};
_.e(ir,_.K);ir.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"}}}};
ir.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ir.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var f=_.mF(this.hostElement).querySelector("#options").selected;f=this.data.options[f].subscriptionRadioOptionRenderer.serviceEndpoint;var H=_.mF(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");H&&f&&f.modifyChannelNotificationPreferenceEndpoint&&(H=H.getValue())&&(f.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[H]);_.t8().resolve(_.MJ).resolveCommand(f,{form:{element:this.hostElement}});
_.mb(this.hostElement,"yt-close-popup-action")};
_.H7.Object.defineProperties(ir.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var f=this.data.options,H=0;H<f.length;H++){var v=f[H].subscriptionRadioOptionRenderer;if(v&&v.selected)return H}return null}}});
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],ir.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],ir.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.lv.YtEventForwardingBehavior),_.N("design:type",Object)],ir.prototype,"eventForwardingBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ir.prototype,"ytRendererBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],ir.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],ir.prototype,"darkerDarkTheme",void 0);_.E([_.z("data.options"),_.N("design:type",Object),_.N("design:paramtypes",[])],ir.prototype,"initialIndex",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],ir);
_.G(ir,"ytd-subscription-notification-options-renderer",function(){if(Dzr!==void 0)return Dzr;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Dzr=f},{mode:1});var ncG;var kq=function(){return _.K.apply(this,arguments)||this};
_.e(kq,_.K);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],kq.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],kq.prototype,"data",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],kq);
_.G(kq,"ytd-tvfilm-offer-groups-renderer",function(){if(ncG!==void 0)return ncG;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return ncG=f},{mode:1});var pTb;var Tw=function(){var f=_.K.apply(this,arguments)||this;f.darkerDarkTheme=_.J("web_darker_dark_theme");return f};
_.e(Tw,_.K);_.R=Tw.prototype;_.R.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"}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.R.computeThumbnailClass=function(f){return f.thumbnailOverlays?f.isShow?"thumbnail-show":"thumbnail-movie":f.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.R.computeCommerceSectionClass=function(f){return f.offers&&f.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.R.computeTitleClass=function(f){return f.offers&&f.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.R.onDataChanged=function(){[].concat(_.pS(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(f){f.onShow()})};
Tw.prototype.onDataChanged=Tw.prototype.onDataChanged;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Tw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Tw.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Tw.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Tw.prototype,"darkerDarkTheme",void 0);
_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tw.prototype,"onDataChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],Tw);
_.G(Tw,"ytd-ypc-offers-overlay-renderer",function(){if(pTb!==void 0)return pTb;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return pTb=f},{mode:_.WK("kevlar_poly_si_batch_j028")?1:2});var QIW;var uYt=function(){this.usedMethods=new Set};
uYt.prototype.add=function(f){this.usedMethods.add(f)};
uYt.prototype.reset=function(){this.usedMethods.clear()};var Gy0=function(f,H){this.query=f;this.previousSearchQuery=H;this.id=avA++;if(!PUW){H=_.a8("SBOX_SETTINGS");f="https://"+((H==null?void 0:H.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var v=H==null?void 0:H.REQUEST_LANGUAGE;v&&(f+="&hl="+v);(v=H==null?void 0:H.REQUEST_DOMAIN)&&(f+="&gl="+v);f+="&client=youtube&gs_ri=youtube";(v=H==null?void 0:H.SUGG_EXP_ID)&&(f+="&sugexp="+encodeURIComponent(v));(v=H==null?void 0:H.PSUGGEST_TOKEN)&&(f+="&tok="+v);(H=
H==null?void 0:H.SESSION_INDEX)&&(f+="&authuser="+H);_.J("desktop_enable_visual_suggest")&&(f+="&h=180&w=320&ytvs=1");PUW=f}},CU5=function(f){var H="q="+encodeURIComponent(f.query);
f.previousSearchQuery&&(H+="&pq="+encodeURIComponent(f.previousSearchQuery));return H},Ecw=function(){var f=_.a8("SBOX_SETTINGS"),H={};
if(f==null?0:f.SEND_VISITOR_DATA)H["X-Goog-Visitor-Id"]=f==null?void 0:f.VISITOR_DATA;return H},Nvr=function(f){var H=PUW;
H+="&gs_id="+f.id.toString(36);H+="&q="+encodeURIComponent(f.query);H+="&cp="+f.query.length;f.previousSearchQuery&&(H+="&pq="+encodeURIComponent(f.previousSearchQuery));(f=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(H+="&video_id="+f);return H},avA=0,PUW="";var csi=_.tL.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,XT5=_.tL.SEARCH_ENTITY_SUGGESTION_MOVIE,Asp=_.tL.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,bLW=_.tL.SEARCH_ENTITY_SUGGESTION_TV_SHOW,iLt=function(f,H){this.text=f;this.bold=H},kyp=function(f,H,v){this.input=H;
this.index=v;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=f[0];this.type=f[1];this.subtypes=f[2];var t;this.displayText=ST((t=f[3])==null?void 0:t.b);var M;this.ignoredPrefix=ST((M=f[3])==null?void 0:M.a);var h,y;this.hasNewVideo=((h=f[3])==null?void 0:(y=h.zam)==null?void 0:y.toString())==="true"?!0:!1;var m;this.visualSuggestUrl=(m=f[3])==null?void 0:m.zai;var W;this.entityType=ST((W=f[3])==null?void 0:W.zap);var I;this.entityName=ST((I=f[3])==null?void 0:I.zao);var S;H=ST((S=
f[3])==null?void 0:S.zaf);var d;this.entityMid=(d=f[3])==null?void 0:d.zae;S=Kxp(this.subtypes,this.entityMid);if(H&&S){if(H){d="";switch(S){case "YOUTUBE_ENTITY_TYPE_SONG":d=Asp;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":d=csi;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":d=bLW;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":d=XT5}S=S==="YOUTUBE_ENTITY_TYPE_SONG"||S==="YOUTUBE_ENTITY_TYPE_ALBUM"?d+" \u2022  \u2022 "+H:H}else S="";this.entitySubtitle=S}var Z;this.externalChannelId=(Z=f[3])==null?void 0:Z.zav;var l;
this.entityThumbnailAttributionUrl=(l=f[3])==null?void 0:l.zaq},wTt=function(f,H){var v=[],t,M=(t=f.displayText)!=null?t:f.text;
(H==null?0:H.useEntityName)&&Tvt(f)&&f.entityName&&(M=f.entityName);if(f.type===33)return v.push(new iLt(M,!1)),v;if(M.length>=f.input.length&&M.substring(0,f.input.length)===f.input)v.push(new iLt(f.input,!1)),v.push(new iLt(M.substring(f.input.length),!0));else{var h=new Set(f.input.split(/\s/)),y=M.split(/\s/);v=y.map(function(m,W){return new iLt(m.trim()+(W===y.length-1?"":" "),!h.has(m))})}return v},Tvt=function(f){var H=!!Kxp(f.subtypes);
f=!!f.entityMid;return H||f};var qth=function(f){this.rawResponse=["",[],{}];this.suggestions=[];try{var H=JSON.parse(DEt(f));if(typeof H==="object"&&H!==null)this.rawResponse=H;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(t){console.log("Suggest: Failed to parse SuggestResponse!");return}var v=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(t,M){return new kyp(t,v,M)})};var fHh=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new uYt;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$20609_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},HBx,vbW=function(){HBx||(HBx=new fHh);
return HBx};
fHh.prototype.updateSuggestions=function(f){var H=this;this.availableSuggestions.forEach(function(v){H.previousSuggestions[v]=!0});
this.availableSuggestions=f.map(function(v){var t=v.type.toString();v.subtypes.length>0&&(t+="i"+v.subtypes.join("i"),t+="k"+v.suggestionSources.COMPLETE_SERVER.toString());return t})};
var teA=function(f,H){var v=Date.now();f.firstEditTime<0&&(f.firstEditTime=v);H&&(f.lastQueryBuildTime=v);f.lastEditTime=v};
fHh.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$20609_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var Mep=function(f){var H="";f.availableSuggestions.forEach(function(M){delete f.previousSuggestions[M]});
for(var v=_.V(Object.keys(f.previousSuggestions)),t=v.next();!t.done;t=v.next())t=t.value,f.previousSuggestions[t]&&(H+=(H?"j":"")+t);return H},h$W=function(f,H){var v=[];
H&&(v[1]=H.toString());v[0]="youtube";v[7]=Date.now()-f.startTime;v[6]=f.sessionNumber;f.zeroPrefixSuggestionCount>=0&&(v[33]=f.zeroPrefixSuggestionCount);v[13]=f.outOfSyncResponseCount;if(f.availableSuggestions.length>0){for(var t=H="",M=0,h=_.V(f.availableSuggestions),y=h.next();!y.done;y=h.next())y=y.value,y!==t&&(M>1&&(H+="l"+M),H+=(t?"j":"")+y,M=0,t=y),M+=1;M>1&&(H+="l"+M);v[3]=H}v[35]=Mep(f);f.selectedSuggestionIndex>=0&&(v[2]=f.selectedSuggestionIndex);var m;if(H=(m=_.a8("SBOX_SETTINGS"))==
null?void 0:m.SUGG_EXP_ID)v[19]=f.normalize(H),m=0,f.experimentTriggeredBeforeFinal&&(m|=1),f.experimentTriggeredFinal&&(m|=2),v[20]=m;v[26]=Array.from(f.inputMethodsTracker.usedMethods).join("j");if(f.JSC$20609_totalRoundTripTime>0){v[15]=f.JSC$20609_totalRoundTripTime;v[14]=f.maxRoundTripTime;m=[];for(M=H=0;M<10;M++)t=f.roundTripTimeHistogram[M],t===0?H++:(H>1?m.push(M+"-"+t):H===1?m.push("0j"+t):m.push(t.toString()),H=0);m=m.join("j");v[16]=m}f.zeroPrefixRoundTripTime>0&&(v[36]=f.zeroPrefixRoundTripTime);
f.lastQueryBuildTime>0&&(v[18]=f.lastQueryBuildTime-f.startTime);f.firstEditTime>0&&(v[4]=f.firstEditTime-f.startTime);f.lastEditTime>0&&(v[5]=f.lastEditTime-f.startTime);return v.join(".")};
fHh.prototype.normalize=function(f){return f.replaceAll(".","-")};
var R$F=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var wO=function(){var f=_.K.apply(this,arguments)||this;f.microphoneSpinnerActive=!1;f.noAnimations=!1;f.boundExitClick=function(){f.onExitButtonClick()};
f.speechOverlayClassName="";f.isLevelAnimating=!1;f.playCloseDialogAudioFeedback=!0;f.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return f};
_.e(wO,_.K);_.R=wO.prototype;_.R.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.R.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=b50()};
_.R.dataChanged=function(){this.logDialog()};
_.R.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var f;(f=this.manager.audioPlayer)!=null&&(f.JSC$19930_audioEnabled=!1)}this.manager.stop();(f=this.manager.audioPlayer)!=null&&(f.JSC$19930_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.R.handleSpeechQueryCompleteAction=function(f){var H=f.navigationAction;H&&(f.trackingParams&&_.UV().graftServerVe(f.trackingParams,this.dialogVe,5),_.YE(this.hostElement,"yt-navigate",{endpoint:H,tempData:this.getNavigationParams(H),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.R.onExitButtonClick=function(){this.closeDialog()};
_.R.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var f;if((f=this.manager)!=null){var H;(H=f.audioPlayer)==null||fC(H,"failure");f.setState("microphone-off");f.stop()}}else(f=this.manager)==null||f.start()};
_.R.transcriptionChanged=function(){var f,H;(((f=this.transcription)==null?0:f.low)||((H=this.transcription)==null?0:H.high))&&this.setState("transcribing",this.transcription)};
_.R.stateChanged=function(){this.setState(this.state,this.transcription)};
_.R.logDialog=function(){var f;(f=this.data)!=null&&f.trackingParams&&(f=_.UV(),_.y8(f,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=f.graftServerVe(this.data.trackingParams,void 0,5))};
_.R.getNavigationParams=function(f){var H={};if(_.J("web_yt_searchbox")){var v=vbW();v.inputMethodsTracker.add(6);v=h$W(v,15);H.gs_l=v;var t;H.oq=((t=_.U(f,_.LG))==null?void 0:t.query)||""}else if(f=window.ytvoicesearchloggingparams){if(f=f())H.oq=f.oq,H.gs_l=f.gs_l}else _.Nw(Error("xl"));return H};
_.R.closeDialog=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.R.setState=function(f,H){if(this.data){var v=this.data,t={};switch(f){case "listening":t={headerText:v.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:v.microphoneButtonAriaLabel};break;case "timeout":t={headerText:v.promptHeader,microphoneState:"try-again",microphoneLabel:v.promptMicrophoneLabel,microphoneAriaLabel:v.promptMicrophoneLabel};break;case "microphone-off":t={headerText:v.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:v.promptMicrophoneLabel,
microphoneAriaLabel:v.promptMicrophoneLabel};break;case "transcribing":(H==null?0:H.low)||(H==null?0:H.high)?t={transcriptionLow:H==null?void 0:H.low,transcriptionHigh:H==null?void 0:H.high,microphoneState:"speaking",microphoneAriaLabel:v.microphoneButtonAriaLabel}:t={headerText:v.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:v.microphoneButtonAriaLabel};break;case "processing":t={headerText:v.loadingHeader,microphoneState:"processing",microphoneAriaLabel:v.microphoneButtonAriaLabel};
break;case "offline":t={headerText:v.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:v.connectionErrorMicrophoneLabel,microphoneAriaLabel:v.connectionErrorMicrophoneLabel};break;case "permission":t={headerText:v.permissionsHeader,bodyLine1:v.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:v.permissionsSubtext};break;case "permission-denied":t={headerText:v.disabledHeader,bodyLine1:v.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:v.disabledSubtext}}t.className=
f;this.speechOverlayState=t;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.R.setMicrophoneState=function(f){var H=this.isLevelAnimating;this.isLevelAnimating=f==="speaking";!H&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=f==="processing"&&!this.noAnimations};
_.R.setClass=function(f){this.speechOverlayClassName&&_.WB(this.hostElement,this.speechOverlayClassName,!1);f&&(this.speechOverlayClassName=f,_.WB(this.hostElement,f,!0))};
_.R.runLevelAnimation=function(){var f=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var H=1+Math.random()*.75,v=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+v/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+H+")");_.nN.addJob(function(){f.runLevelAnimation()},3,v)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
wO.prototype.stateChanged=wO.prototype.stateChanged;wO.prototype.transcriptionChanged=wO.prototype.transcriptionChanged;wO.prototype.onPopupClosed=wO.prototype.onPopupClosed;wO.prototype.dataChanged=wO.prototype.dataChanged;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],wO.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],wO.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],wO.prototype,"rendererStamperBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],wO.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.lv.YtEventForwardingBehavior),_.N("design:type",Object)],wO.prototype,"eventForwardingBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],wO.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],wO.prototype,"speechOverlayState",void 0);
_.E([_.F(),_.N("design:type",Object)],wO.prototype,"microphoneSpinnerActive",void 0);_.E([_.F({type:_.J("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.N("design:type",Object)],wO.prototype,"noAnimations",void 0);_.E([_.F({selector:function(f){var H;return(H=f.voiceSearch)==null?void 0:H.transcription}}),
_.N("design:type",Object)],wO.prototype,"transcription",void 0);_.E([_.F({selector:function(f){var H;return(H=f.voiceSearch)==null?void 0:H.overlay}}),
_.N("design:type",String)],wO.prototype,"state",void 0);_.E([_.F(),_.N("design:type",Object)],wO.prototype,"boundExitClick",void 0);_.E([_.lJ("#microphone-levels"),_.N("design:type",HTMLElement)],wO.prototype,"level",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wO.prototype,"dataChanged",null);_.E([_.sE("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wO.prototype,"onPopupClosed",null);
_.E([_.xV("transcription"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wO.prototype,"transcriptionChanged",null);_.E([_.xV("state"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wO.prototype,"stateChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],wO);
_.G(wO,"ytd-voice-search-dialog-renderer",function(){if(QIW!==void 0)return QIW;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return QIW=f},{mode:1});var Vex;var q0=function(){var f=_.K.apply(this,arguments)||this;f.isOverlay=!1;f.hidden=!1;return f};
_.e(q0,_.K);_.R=q0.prototype;_.R.onPopupClosed=function(){this.toggleIconState(!1)};
_.R.computeIcon=function(){var f,H,v;return(H=_.U((f=this.data)==null?void 0:f.icon,z55))==null?void 0:(v=H.icon)==null?void 0:v.iconType};
_.R.computeIconBadgeShape=function(){var f;return{iconBadgeType:"cart",iconBadgeText:(f=this.iconBadgeEntity)==null?void 0:f.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.R.onClick=function(){var f;(f=this.data)!=null&&f.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.R.computeHidden=function(f){return!f};
_.R.toggleIconState=function(f){this.iconButton&&(this.iconButton.pressed=f)};
q0.prototype.onPopupClosed=q0.prototype.onPopupClosed;_.E([_.B(_.um),_.N("design:type",Object)],q0.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],q0.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],q0.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],q0.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],q0.prototype,"isOverlay",void 0);
_.E([_.F({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.N("design:type",Object)],q0.prototype,"hidden",void 0);_.E([_.F({selectorArgs:["data.iconBadgeEntityKey"],selector:function(f,H){return _.dL(f.entities,"iconBadgeEntity",H)}}),
_.N("design:type",Object)],q0.prototype,"iconBadgeEntity",void 0);_.E([_.lJ("yt-icon-button"),_.N("design:type",HTMLButtonElement)],q0.prototype,"iconButton",void 0);_.E([_.sE("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],q0.prototype,"onPopupClosed",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],q0);
_.G(q0,"ytd-icon-badge-topbar-button-renderer",function(){if(Vex!==void 0)return Vex;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Vex=f},{mode:1});var yPG;var HZ=function(){var f=_.K.apply(this,arguments)||this;f.premiumOptions=[];f.darkerDarkTheme=_.J("web_darker_dark_theme");return f};
_.e(HZ,_.K);HZ.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.H7.Object.defineProperties(HZ.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],HZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],HZ.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Array)],HZ.prototype,"premiumOptions",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],HZ.prototype,"darkerDarkTheme",void 0);_.E([_.z("premiumOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],HZ.prototype,"hasPremiumOptions",null);
_.E([_.u({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],HZ);
_.G(HZ,"ytd-offline-promo-content",function(){if(yPG!==void 0)return yPG;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return yPG=f},{mode:1});var Ycr;var vZ=function(){var f=_.K.apply(this,arguments)||this;f.premiumOptions=[];return f};
_.e(vZ,_.K);vZ.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var f;this.premiumOptions=rVx((f=this.data)==null?void 0:f.formats)};
vZ.prototype.onClickSubmit=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var f;(f=_.vx())==null||f.pause()};
vZ.prototype.attached=function(){this.JSC$20629_scroller&&(this.JSC$20629_scroller.dialogElement=this.hostElement.parentNode)};
_.H7.Object.defineProperties(vZ.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
vZ.prototype.dataChanged=vZ.prototype.dataChanged;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],vZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],vZ.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],vZ.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],vZ.prototype,"data",void 0);
_.E([_.F({computed:"computeIcon_(data.headersIcon)",value:""}),_.N("design:type",String)],vZ.prototype,"headersIcon",void 0);_.E([_.F(),_.N("design:type",Array)],vZ.prototype,"premiumOptions",void 0);_.E([_.lJ("#scroller"),_.N("design:type",Object)],vZ.prototype,"JSC$20629_scroller",void 0);_.E([_.z("headersIcon"),_.N("design:type",Object),_.N("design:paramtypes",[])],vZ.prototype,"showIcon",null);
_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vZ.prototype,"dataChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],vZ);
_.G(vZ,"ytd-offline-promo-renderer",function(){if(Ycr!==void 0)return Ycr;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Ycr=f},{mode:1});var mnb;var tu=function(){var f=_.K.apply(this,arguments)||this;f.playbackPauseInterval=NaN;f.isLoading=!1;f.hasError=!1;f.dialogClass="";f.youtubeLabel=_.ZC("LOGO_ALT_LABEL",{},"YouTube Home");f.logoName="yt-logos-ext:yt-logo-updated";f.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return f};
_.e(tu,_.K);_.R=tu.prototype;_.R.onDataChange=function(){var f;if(this.showEOMV1Text=!((f=this.data)==null||!f.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.R.attached=function(){this.pausePlayer()};
_.R.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.R.handleLangSelect=function(f){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[f.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.R.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.R.handleSaveConsent=function(f){var H=this;this.showLoadingSpinner();this.showLoadingSpinner();Kgt(_.U(f,FHx)).catch(function(v){_.pb(new _.e$("Something went wrong when save consent "+(v.message?v.message:v)+"."));H.hideLoadingSpinner();H.showErrorMessage()})};
_.R.handleDisablePersonalization=function(f){var H=this;this.showLoadingSpinner();DCb(_.U(f,zPp)).then(function(){H.dialog.close();H.resumePlayer()}).catch(function(v){_.pb(new _.e$("Something went wrong when disable personalization "+(v.message?v.message:v)+"."));
H.hideLoadingSpinner();H.showErrorMessage()})};
_.R.showLoadingSpinner=function(){var f=this;this.showSpinnerJobId=_.nN.addLowPriorityJob(function(){f.isLoading=!0},500)};
_.R.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.nN.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.R.showErrorMessage=function(){var f=this;this.hasError=!0;_.nN.addLowPriorityJob(function(){f.hasError=!1},2E3)};
_.R.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.Wh(function(){try{var f=_.vx();f&&f.pause()}catch(H){}},100))};
_.R.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var f=_.vx();f&&f.play()}catch(H){}};
_.H7.Object.defineProperties(tu.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null||!f.eomV1Text)return[];f=[];for(var H=["SHIELD","WARNING","BAR_CHART"],v=this.data.eomV1Text.essentialCookieMsg.items,t=0;t<H.length&&t<v.length;t++)f.push({icon:H[t],text:v[t]});return f}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var f;if((f=this.data)==null||!f.eomV1Text)return[];f=[];for(var H=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],v=this.data.eomV1Text.nonEssentialCookieMsg.items,t=0;t<H.length&&t<v.length;t++)f.push({icon:H[t],text:v[t]});return f}}});
tu.prototype.onDataChange=tu.prototype.onDataChange;_.E([_.F(),_.N("design:type",Object)],tu.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Boolean)],tu.prototype,"showEOMV1Text",void 0);_.E([_.F(),_.N("design:type",Object)],tu.prototype,"isLoading",void 0);_.E([_.F(),_.N("design:type",Object)],tu.prototype,"hasError",void 0);_.E([_.F(),_.N("design:type",Number)],tu.prototype,"showSpinnerJobId",void 0);_.E([_.F(),_.N("design:type",Object)],tu.prototype,"dialogClass",void 0);
_.E([_.lJ("#dialog"),_.N("design:type",Object)],tu.prototype,"dialog",void 0);_.E([_.lJ("#cb-header"),_.N("design:type",HTMLElement)],tu.prototype,"header",void 0);_.E([_.lJ("#lang-select"),_.N("design:type",HTMLElement)],tu.prototype,"langSelect",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],tu.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],tu.prototype,"ytComponentBehavior",void 0);
_.E([_.F(),_.N("design:type",String)],tu.prototype,"youtubeLabel",void 0);_.E([_.F(),_.N("design:type",Object)],tu.prototype,"logoName",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tu.prototype,"onDataChange",null);_.E([_.z("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],tu.prototype,"eomEssentialCookieMsgItems",null);
_.E([_.z("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],tu.prototype,"eomNonEssentialCookieMsgItems",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],tu);
_.G(tu,"ytd-consent-bump-v2-lightbox",function(){if(mnb!==void 0)return mnb;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return mnb=f},{mode:1});var $nh;var MF=function(){return _.K.apply(this,arguments)||this};
_.e(MF,_.K);MF.prototype.ready=function(){if(!_.J8()||Efx)var f=!0;else Efx=!0,f=!1;f||(f=document.querySelector("ytd-app"),f||(f=document.body),this.internalLightBox=_.mF(f).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.E([_.F(),_.N("design:type",Object)],MF.prototype,"data",void 0);_.E([_.lJ("#lightbox"),_.N("design:type",Object)],MF.prototype,"lightBox",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],MF);
_.G(MF,"ytd-consent-bump-v2-renderer",function(){if($nh!==void 0)return $nh;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return $nh=f},{mode:1});var W1W;var OBw;var gbp;var hu=function(){return _.K.apply(this,arguments)||this};
_.e(hu,_.K);_.R=hu.prototype;_.R.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&k7i(this.toastManager,this.toastType)};
_.R.open=function(f){this.toast&&(this.ephemeralAction&&_.t8().resolve(_.eS).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=f!=null?f:0,this.toastManager.enqueue(this.toast,f)):this.toast.open())};
_.R.close=function(f){var H;(H=this.toast)==null||H.close();this.toastManager&&f===1&&k7i(this.toastManager,f)};
_.R.refit=function(){var f;(f=this.toast)==null||f.refit()};
_.R.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var f;(f=this.toast)==null||f.close()}};
_.R.setVerticalOffset=function(f){this.toast&&(this.toast.verticalOffset=f,this.toast.fit())};
_.R.computeButtonClass_=function(f){return f?"toast-button":""};
_.R.computeText_=function(f){return _.fG(f)};
_.R.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.bM("toast-opened-changed",this.toastOpened))};
_.R.updateToastOpenedFromBinding=function(f){this.toastOpened=f.detail.value};
_.H7.Object.defineProperties(hu.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var f,H,v=(f=this.data)==null?void 0:(H=f.actionButton)==null?void 0:H.buttonRenderer;return(v==null?void 0:v.command)||(v==null?void 0:v.serviceEndpoint)||(v==null?void 0:v.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var f=[],H;((H=this.data)==null?0:H.responseText)&&f.push(_.fG(this.data.responseText));var v;((v=this.data)==null?0:v.subText)&&f.push(_.fG(this.data.subText));var t,M;if((t=this.data)==null?0:(M=t.actionButton)==null?0:M.buttonRenderer){var h,y;f.push(((h=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(y=h.accessibilityData)==null?void 0:y.label)||_.fG(this.data.actionButton.buttonRenderer.text))}return f.filter(function(m){return m}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var f,H;return(H=(f=this.toast)==null?void 0:f.opened)!=null?H:!1}}});
hu.prototype.toastOpenedChangedForBinding=hu.prototype.toastOpenedChangedForBinding;hu.prototype.toastOpenedChanged=hu.prototype.toastOpenedChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],hu.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.lv.YtEventForwardingBehavior),_.N("design:type",Object)],hu.prototype,"ytEventForwardingBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],hu.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],hu.prototype,"duration",void 0);
_.E([_.F(),_.N("design:type",Number)],hu.prototype,"toastType",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],hu.prototype,"useCloseButton",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],hu.prototype,"closeToastOnActionButtonClick",void 0);_.E([_.F({value:function(){return _.ZC("SBOX_INAPPROPRIATE_CANCEL")}}),
_.N("design:type",String)],hu.prototype,"closeButtonAriaLabel",void 0);_.E([_.F(),_.N("design:type",Boolean)],hu.prototype,"toastOpened",void 0);_.E([_.F(),_.N("design:type",Boolean)],hu.prototype,"hasOpened",void 0);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],hu.prototype,"command",null);_.E([_.z("labelText","command","duration"),_.N("design:type",Object),_.N("design:paramtypes",[])],hu.prototype,"ephemeralAction",null);
_.E([_.z("ephemeralAction"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],hu.prototype,"hasEphemeralAction",null);_.E([_.lJ("#toast"),_.N("design:type",Object)],hu.prototype,"toast",void 0);_.E([_.F({value:function(){return{style:"call-to-action-inverse"}}}),
_.N("design:type",Object)],hu.prototype,"buttonOverrides",void 0);_.E([_.F({value:{style:"mono-inverse"}}),_.N("design:type",Object)],hu.prototype,"closeButtonOverrides",void 0);_.E([_.F({value:function(){return _.t8().resolve(_.vh(_.sX))}}),
_.N("design:type",Object)],hu.prototype,"toastManager",void 0);_.E([_.z("data.responseText","data.subText","data.actionButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],hu.prototype,"labelText",null);_.E([_.Zw("toastOpened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hu.prototype,"toastOpenedChanged",null);
_.E([_.Zw("toastOpened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hu.prototype,"toastOpenedChangedForBinding",null);_.E([_.GW({is:"yt-notification-action-renderer",disableElementRegistration:!0})],hu);
_.G(hu,"yt-notification-action-renderer",function(){if(gbp===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;OBw===void 0&&(OBw=document.createElement("template"));var t=OBw;v.call(H,t.content.cloneNode(!0),f.content.firstChild);gbp=f}f=gbp;return f},{mode:2});var R4=function(){var f=_.K.apply(this,arguments)||this;f.duration=4E3;f.downloadingCount=0;f.downloadedCount=0;f.downloadingOnlySmartDownloads=!1;f.sessionTotalDownloads=0;f.sessionDownloaded=0;f.previousSessionsDownloaded=0;f.totalDownloadPercentage=0;f.currentDownloadProgress=0;f.currentDownloadPercentage=0;f.isLeaderTab=!0;f.isFullScreen=!1;f.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};f.boundBeforeUnload=function(H){f.isLeaderTab&&f.downloadingCount>0&&(H.preventDefault(),
H.returnValue=!0)};
return f};
_.e(R4,_.K);_.R=R4.prototype;
_.R.open=function(){this.updateDownloadState();if(this.data){var f=this.sessionDownloaded+1,H=this.sessionTotalDownloads>1?_.ZC("VIDEOS_DOWNLOADING_RATIO",{downloaded:f.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+f+"/"+this.sessionTotalDownloads):_.ZC("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(H=this.sessionTotalDownloads>1?_.ZC("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:f.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
f+"/"+this.sessionTotalDownloads):_.ZC("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));f=this.isLeaderTab?_.ZC("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.fG(this.data.responseText)!==H||_.fG(this.data.subText)!==f)this.set("data.responseText",_.qO(H)),this.set("data.subText",_.qO(f)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.R.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.R.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.R.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.R.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var f=this.downloadedCount-this.previousSessionsDownloaded;f<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-f);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.R.handleFullscreenChange=function(f){(this.isFullScreen=f)||this.updatePopup()};
R4.prototype.updateCurrentDownloadProgress=R4.prototype.updateCurrentDownloadProgress;R4.prototype.updatePopup=R4.prototype.updatePopup;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],R4.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],R4.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.lv.YtEventForwardingBehavior),_.N("design:type",Object)],R4.prototype,"ytEventForwardingBehavior",void 0);
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],R4.prototype,"actionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],R4.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],R4.prototype,"duration",void 0);_.E([_.F({selector:function(f){return _.HOB(f.entities).length}}),
_.N("design:type",Object)],R4.prototype,"downloadingCount",void 0);_.E([_.F({selector:CyA}),_.N("design:type",Object)],R4.prototype,"downloadedCount",void 0);_.E([_.F({selector:function(f){var H=_.HOB(f.entities);return GPw(f.entities,H)}}),
_.N("design:type",Object)],R4.prototype,"downloadingOnlySmartDownloads",void 0);_.E([_.F(),_.N("design:type",Object)],R4.prototype,"sessionTotalDownloads",void 0);_.E([_.F(),_.N("design:type",Object)],R4.prototype,"sessionDownloaded",void 0);_.E([_.F(),_.N("design:type",Object)],R4.prototype,"previousSessionsDownloaded",void 0);_.E([_.F(),_.N("design:type",Object)],R4.prototype,"totalDownloadPercentage",void 0);
_.E([_.F({selector:function(f){var H;f=(H=_.HOB(f.entities))!=null?H:[];return f.length>0?_.NCg(f.slice(-1)):0}}),
_.N("design:type",Object)],R4.prototype,"currentDownloadProgress",void 0);_.E([_.F(),_.N("design:type",Object)],R4.prototype,"currentDownloadPercentage",void 0);_.E([_.F({selector:_.RPN}),_.N("design:type",Object)],R4.prototype,"isLeaderTab",void 0);_.E([_.lJ("yt-notification-action-renderer"),_.N("design:type",Object)],R4.prototype,"notificationActionRenderer",void 0);
_.E([_.xV("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],R4.prototype,"updatePopup",null);_.E([_.xV("currentDownloadProgress"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],R4.prototype,"updateCurrentDownloadProgress",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],R4);
_.G(R4,"ytd-video-download-toast-renderer",function(){if(W1W!==void 0)return W1W;var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return W1W=f},{mode:1});var IHW;var Sc0;var Vj=function(){return _.K.apply(this,arguments)||this};
_.e(Vj,_.K);Vj.prototype.computeIsRedLogo=function(f,H){!f&&H&&(f=H);return f==="YOUTUBE_RED_LOGO"||f==="YOUTUBE_PREMIUM_LOGO"};
Vj.prototype.computeLogoName=function(f){f=this.componentBehavior.computeIcon_(f);return f===""?"yt-logos-ext:yt-logo-updated":f};
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Vj.prototype,"componentBehavior",void 0);_.E([_.F({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.N("design:type",Boolean)],Vj.prototype,"isRedLogo",void 0);_.E([_.F({computed:"computeLogoName(data)"}),_.N("design:type",String)],Vj.prototype,"logoName",void 0);_.E([_.F({value:{}}),_.N("design:type",Object)],Vj.prototype,"data",void 0);
_.E([_.F(),_.N("design:type",Object)],Vj.prototype,"logoType",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-logo"})],Vj);
_.G(Vj,"ytd-logo",function(){if(Sc0!==void 0)return Sc0;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return Sc0=f},{mode:_.WK("kevlar_poly_si_batch_j074")?1:2});var yj=function(){var f=_.K.apply(this,arguments)||this;f.animationRef={};return f};
_.e(yj,_.K);_.R=yj.prototype;_.R.attached=function(){document.addEventListener("yt-navigate-finish",_.jr(this,this.logYoodle))};
_.R.detached=function(){document.removeEventListener("yt-navigate-finish",_.jr(this,this.logYoodle))};
_.R.logYoodle=function(){var f,H;if((f=this.data)==null?0:(H=f.loggingDirectives)==null?0:H.trackingParams)this.ytRendererBehavior.markDirty(),_.UV().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.R.computeHideImg=function(f,H){return!!f||!!H};
_.R.computeHideYtdLogo=function(f,H){return!f||!!H};
_.R.computeHideLottie=function(f){return!f};
_.R.computeIsRedLogo=function(f){return f==="YOUTUBE_RED_LOGO"||f==="YOUTUBE_PREMIUM_LOGO"};
_.R.renderLogoEntity=function(){var f=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),H=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),v=this.getLogoTitleText(this.data),t=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==f&&(this.url=f);this.animatedUrl!==H&&(this.animatedUrl=H);this.logoTitleText!==v&&(this.logoTitleText=v);this.lottieUrl!==t&&(this.lottieUrl=t,this.lottiePlayerProps=this.computeLottiePlayerProps(t))};
_.R.getSanitizedThumbnail=function(f){return f&&f.thumbnails?_.Yl5(f.thumbnails,122)||"":""};
_.R.getThumbnailUrl=function(f,H){if(!H)return"";var v,t;f=f?(v=H.darkThemeLogo)==null?void 0:v.thumbnail:(t=H.lightThemeLogo)==null?void 0:t.thumbnail;return this.getSanitizedThumbnail(f)};
_.R.getAnimatedThumbnailUrl=function(f,H){return H?this.getSanitizedThumbnail(f?H.darkThemeAnimatedLogo:H.lightThemeAnimatedLogo):""};
_.R.getLogoTitleText=function(f){if(f)return _.fG(f.tooltipText)};
_.R.computeLogoIcon=function(f,H){if(H){var v,t;return f?(v=H.darkThemeLogo)==null?void 0:v.icon:(t=H.lightThemeLogo)==null?void 0:t.icon}};
_.R.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.R.getLottieUrl=function(f,H){var v,t,M,h;return f?H==null?void 0:(v=H.darkThemeLogo)==null?void 0:(t=v.lottieAnimation)==null?void 0:t.url:H==null?void 0:(M=H.lightThemeLogo)==null?void 0:(h=M.lottieAnimation)==null?void 0:h.url};
_.R.computeLottiePlayerProps=function(f){if(f){var H;if((H=this.animationRef)==null?0:H.lottieEl){var v;(v=this.animationRef)==null||v.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:f,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.R.onLottieError=function(){this.data&&this.lottieUrl&&_.YE(this.hostElement,"yoodle-error")};
_.R.onImgError=function(){this.data&&!this.lottieUrl&&_.YE(this.hostElement,"yoodle-error")};
yj.prototype.playAnimation=yj.prototype.playAnimation;yj.prototype.renderLogoEntity=yj.prototype.renderLogoEntity;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],yj.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],yj.prototype,"data",void 0);_.E([_.F({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.N("design:type",Boolean)],yj.prototype,"hideImg",void 0);
_.E([_.F({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.N("design:type",Boolean)],yj.prototype,"hideYtdLogo",void 0);_.E([_.F({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.N("design:type",Boolean)],yj.prototype,"hideLottie",void 0);_.E([_.F({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.N("design:type",Boolean)],yj.prototype,"isRedLogo",void 0);
_.E([_.F(),_.N("design:type",Boolean)],yj.prototype,"useDarkThemeYoodle",void 0);_.E([_.F(),_.N("design:type",String)],yj.prototype,"url",void 0);_.E([_.F(),_.N("design:type",String)],yj.prototype,"animatedUrl",void 0);_.E([_.F(),_.N("design:type",String)],yj.prototype,"logoTitleText",void 0);_.E([_.F({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.N("design:type",Object)],yj.prototype,"logoIcon",void 0);_.E([_.F(),_.N("design:type",Object)],yj.prototype,"logoType",void 0);
_.E([_.F(),_.N("design:type",String)],yj.prototype,"lottieUrl",void 0);_.E([_.F(),_.N("design:type",Object)],yj.prototype,"lottiePlayerProps",void 0);_.E([_.F(),_.N("design:type",Object)],yj.prototype,"animationRef",void 0);_.E([_.Zw("data"),_.Zw("useDarkThemeYoodle"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yj.prototype,"renderLogoEntity",null);
_.E([_.sE("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],yj.prototype,"playAnimation",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],yj);
_.G(yj,"ytd-yoodle-renderer",function(){if(IHW!==void 0)return IHW;var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return IHW=f},{mode:_.WK("kevlar_poly_si_batch_j074")?1:2});var dnW;var jar;var saW=_.E7.currentPageTypeSelector,ZBG=_.E7.currentPageSubTypeSelector,Yy=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return f};
_.e(Yy,_.K);_.R=Yy.prototype;_.R.onYoodleError=function(){_.J("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.R.computeLogoName=function(f){f=this.componentBehavior.computeIcon_(f);return f===""?"yt-logos-ext:yt-logo-updated":f};
_.R.computeTitle=function(f,H,v){return v&&(H==null?0:H.tooltipText)?_.fG(H.tooltipText):_.fG(f)};
_.R.computeAriaLabel=function(f,H,v){return v&&(H==null?0:H.tooltipText)?_.fG(f):""};
_.R.computeShowYoodle=function(f,H,v){return!f||!H&&!!v&&!_.QA.isEmpty(v)};
_.R.onNavigateHomeAction=function(){if(_.J("kevlar_miniplayer_navigate_home_from_app_killswitch")){var f;(f=_.mF(this.hostElement).querySelector(".yt-simple-endpoint"))==null||f.click()}};
_.R.computeLogoHref=function(f,H,v){var t;(v==null?0:v.onTapCommand)?t=this.componentBehavior.computeHref_(v.onTapCommand):f&&(t=this.componentBehavior.computeHref_(f));return t?t:H};
_.R.computeCommand=function(f,H){return(H==null?void 0:H.onTapCommand)||f};
_.R.getEndpointForm=function(){if(_.J("kevlar_topbar_disable_cache_only_home")){var f=_.t8().resolve(_.aj),H=saW(f.getState())||"";f=ZBG(f.getState())||"";return{disableCache:H==="ytd-browse"&&f==="home"}}return{disableCache:!0}};
Yy.prototype.onYoodleError=Yy.prototype.onYoodleError;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],Yy.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Yy.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Yy.prototype,"componentBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],Yy.prototype,"ytdReduxBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],Yy.prototype,"data",void 0);_.E([_.F(),_.N("design:type",String)],Yy.prototype,"countryCode",void 0);_.E([_.F({selectorArgs:["data.overrideEntityKey"],selector:function(f,H){return _.dL(f.entities,"logoEntity",H)}}),
_.N("design:type",Object)],Yy.prototype,"logoEntity",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.N("design:type",Boolean)],Yy.prototype,"showYoodle",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],Yy.prototype,"yoodleError",void 0);_.E([_.F({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.N("design:type",String)],Yy.prototype,"titleText",void 0);
_.E([_.F({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.N("design:type",String)],Yy.prototype,"ariaLabelText",void 0);_.E([_.F({value:"/"}),_.N("design:type",String)],Yy.prototype,"defaultEndpointUrl",void 0);_.E([_.F({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.N("design:type",String)],Yy.prototype,"endpointUrl",void 0);
_.E([_.F({computed:"computeCommand(data.endpoint, logoEntity)"}),_.N("design:type",String)],Yy.prototype,"command",void 0);_.E([_.F(),_.N("design:type",Object)],Yy.prototype,"logoType",void 0);_.E([_.F({}),_.N("design:type",Boolean)],Yy.prototype,"useDarkThemeYoodle",void 0);_.E([_.sE("yoodle-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Yy.prototype,"onYoodleError",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],Yy);
_.G(Yy,"ytd-topbar-logo-renderer",function(){if(jar!==void 0)return jar;var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return jar=f},{mode:_.WK("kevlar_poly_si_batch_j027")?1:2});var JPw=0;var lHb=_.tL.SEARCH_APPEND_LABEL,Unb=_.tL.SUGGESTION_NEW_VIDEOS_TEXT,e$t=_.tL.SUGGESTION_THUMBNAIL_LABEL,L1h=_.tL.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,xnG=_.a(function(f){function H(Fa){var lt,Oq;return _.Y(function(di){if(di.nextAddress==1)return lt=new Request(Fa),_.Zc(di,2),di.yield(fetch(lt,{credentials:"include"}),4);if(di.nextAddress!=2)return BA(!0),_.ch(di,0);Oq=_.xu(di);_.pb(Oq);_.Bj(di)})}
var v=f.isHighlighted;var t=f.suggestion;var M=f.onClickCallback;var h=f.onHoverUpdateCallback;var y=f.labels;var m=f.queryBuilderFunction;var W=f.onRemoveCallback;var I=f.suggestionIndex;var S=f.generateUniqueId;var d=f.highlightedId;var Z=f.useScrollMargin;var l=f.isKeyboardMode;var L=null,r=null,n=_.TN("div"),Q=_.TN("span");f=_.V(_.gp(!1,void 0,"CgAMgc"));var C=f.next().value,w=f.next().value,c=_.w8("a",function(Fa){Fa&&_.lw(237477,Fa,r,function(lt){r=lt})}),A=_.w8("button",function(Fa){Fa&&_.lw(237477,
Fa,r,function(lt){r=lt})}),X=_.d6(function(Fa){if((Fa==null?void 0:Fa.button)===2)return Fa.preventDefault(),!1;
var lt=_.uy();lt&&L&&_.wj(lt,L,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var Oq;M(Fa,t().text,t().index,t().entityMid,Fa==null?void 0:(Oq=Fa.detail)==null?void 0:Oq.wasSelectedByKeyboard);return!1}),fg=function(){return t().type===35},gB=function(){return _.J("desktop_enable_single_suggestion_highlight")},O5=function(){return _.VQ("desktop_suggestions_panel_row_height")||0},s5=function(){var Fa;
return _.J("desktop_enable_new_video_metadata")&&((Fa=t())==null?void 0:Fa.hasNewVideo)===!0},U5=function(){return _.J("desktop_enable_visual_suggest")},lH=function(){return _.J("desktop_enable_entity_suggest")&&Tvt(t())},E5=function(){return t().entitySubtitle},uH=function(){return gB()?(v==null?void 0:v())||Ho()&&!(l==null?0:l()):(v==null?void 0:v())||Ho()},Rn=function(){var Fa=_.a8("SBOX_SETTINGS");
return fg()&&!(Fa==null?0:Fa.HIDE_REMOVE_LINK)},pr=function(){return wTt(t(),{useEntityName:lH()})},gh,fr=!((gh=_.t8().resolve(_.vh(_.TK)))==null||!gh()),sb=function(){return fg()?_.J("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},In=function(){return y==null?void 0:y().SUGGESTION_DISMISS_LABEL},Kr=function(){return y==null?void 0:y().SUGGESTION_DISMISSED_LABEL};
f=_.V(_.gp(!1,void 0,"RcUcKd"));gh=f.next().value;var BA=f.next().value;f=_.V(_.gp(!1,void 0,"yGR7je"));var TH=f.next().value,hN=f.next().value,Ho=TH,J9=_.d6(function(){m(Q.value.innerText);return!1}),Ox=_.d6(function(Fa){Fa.preventDefault();
return!1}),lC=_.d6(function(Fa){var lt=t().text,Oq=_.a8("SBOX_SETTINGS"),di="https://"+(Oq.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
di+="&delq="+encodeURIComponent(lt);(lt=Oq==null?void 0:Oq.PSUGGEST_TOKEN)&&(di+="&tok="+lt);(Oq=Oq==null?void 0:Oq.SESSION_INDEX)&&(di+="&authuser="+Oq);H(di);Fa.preventDefault();(Fa=_.uy())&&r&&_.wj(Fa,r,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");W(I==null?void 0:I());return!1}),vA=_.d6(function(){if(gB()&&(l==null?0:l()))return!1;
hN(!0);h(!0);return!1}),Rd=_.d6(function(){hN(!1);
h(!1);return!1}),HA=_.d6(function(){w(!0);
return!1}),$g=_.d6(function(){w(!1);
return!1}),iC=_.d6(function(Fa){Fa.preventDefault();
var lt;(Fa=(lt=t().entityThumbnailAttributionUrl)!=null?lt:"")&&_.rz5(Fa);return!1});
f=_.V(_.gp("",void 0,"k9uVge"));var jp=f.next().value,zH=f.next().value;_.ru(function(){Rn()&&zH(S==null?void 0:S(I==null?void 0:I()));n.value&&_.lw(12453,n.value,L,function(Fa){L=Fa})});
return _.O(_.g,{cond:gh,then:function(){var Fa={};return _.O("div",{class:_.S2("ytSuggestionComponentRemovedText",(Fa.ytSuggestionComponentLargerRemovedText=function(){return U5()},Fa)),
style:function(){return O5()>0?"height: "+O5()+"px;":""},
role:"button"},Kr)},
else:function(){var Fa={},lt={};return _.O("div",{class:_.S2("ytSuggestionComponentSuggestion",(Fa.ytSuggestionComponentSuggestionHover=function(){return!gB()},Fa.ytSuggestionComponentHighlighted=uH,Fa.ytSuggestionComponentPersonalizedSuggestion=fg,Fa.ytSuggestionComponentMweb=!1,Fa.ytSuggestionComponentLargerSuggestion=function(){return s5()||U5()},Fa.ytSuggestionComponentThumbnailSuggestion=function(){return U5()},Fa.ytSuggestionComponentRoundedSuggestion=function(){return _.J("desktop_enable_scrollable_suggestions_panel")&&
_.J("desktop_enable_suggestions_panel_padding")},Fa.ytSuggestionComponentThumbnailPadding=function(){return U5()&&!fg()},Fa)),
style:function(){return O5()>0?"height: "+O5()+"px;":""},
role:"presentation","on:mousedown":X,"on:mouseover":vA,"on:mouseout":Rd,el:n},_.O("div",{class:_.S2("ytSuggestionComponentText",(lt.ytSuggestionComponentScrollMargin=Z,lt)),"aria-label":function(){return s5()?t().text+" "+Unb:t().text},
id:function(){return S==null?void 0:S(I==null?void 0:I())},
"on:mousedown":X,role:"option"},_.O(_.g,{cond:function(){return t().type!==33},
then:function(){return _.O(_.JE,{icon:sb,className:"ytSuggestionComponentIcon"})}}),_.O("div",{class:"ytSuggestionComponentLeftContainer"},_.O("span",{el:Q,
role:"button",tabindex:0},_.O(_.eK,{each:pr},function(Oq){return Oq.bold?_.O("span",{class:"ytSuggestionComponentBold"},Oq.text):_.O("span",null,Oq.text)})),_.O(_.g,{cond:function(){return lH()&&!!t().entitySubtitle||s5()},
then:function(){return _.O("div",{class:"ytSuggestionComponentMetadataContainer"},_.O(_.g,{cond:function(){return lH()&&!!t().entitySubtitle},
then:function(){return _.O("div",{class:"ytSuggestionComponentEntitySubtitle"},E5)}}),_.O(_.g,{cond:function(){return s5()},
then:function(){return _.O("div",{class:"ytSuggestionComponentNewVideoContainer"},_.O("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.O("div",{class:"ytSuggestionComponentNewVideoText"},Unb))}}))}}))),_.O("div",{class:"ytSuggestionComponentRightContainer"},_.O(_.g,{cond:function(){return U5()&&t().visualSuggestUrl!==void 0},
then:function(){var Oq={};return _.O("div",{class:"ytSuggestionComponentThumbnailContainer"},_.O("img",{"aria-label":e$t,class:_.S2("ytSuggestionComponentVisualSuggestThumbnail",(Oq.ytSuggestionComponentCircularFrame=function(){return lH()&&t().subtypes.includes(790)},Oq.ytSuggestionComponentEntitySuggestThumbnail=function(){return lH()},Oq)),
src:function(){return t().visualSuggestUrl}}),_.O(_.g,{cond:function(){return lH()&&!!t().entityThumbnailAttributionUrl},
then:function(){var di={};return _.O("span",{title:L1h,role:"tooltip"},_.O("div",{"on:mouseover":HA,"on:mouseout":$g,"on:mousedown":iC,class:_.S2("ytSuggestionComponentThumbnailOverlay",(di.ytSuggestionComponentThumbnailOverlayHidden=function(){return!C()},di))},_.O(_.JE,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.O(_.B6,null,_.O(_.Lc,{when:function(){return U5()&&Rn()}},function(){var Oq={};
return _.O("button",{class:_.S2("ytSuggestionComponentRemoveLinkClearButton",(Oq.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return jp()&&jp()===(d==null?void 0:d())},Oq.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!uH()},Oq)),
el:A,"on:mousedown":lC,"aria-label":In,id:function(){return jp()}},_.O(_.JE,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.O(_.Lc,{when:function(){return!(U5()&&t().visualSuggestUrl!==void 0)&&Rn()}},function(){var Oq={};
return _.O("a",{class:_.S2("ytSuggestionComponentRemoveLink",(Oq.ytSuggestionComponentRemoveLinkDark=fr,Oq.ytSuggestionComponentRemoveLinkSelected=function(){return jp()&&jp()===(d==null?void 0:d())},Oq)),
el:c,"on:mousedown":lC,"aria-label":In,tabindex:0,role:"button",id:function(){return jp()}},In)}),_.O(_.Lc,{when:function(){return!1}},function(){return _.O("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":J9,"on:mousedown":Ox,role:"button","aria-label":lHb},_.O(_.JE,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"th");var B5W=_.EH(["//www.google.com/textinputassistant/","/","_tia.js"]),z$W=_.a(function(){return _.O("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.O("button",{class:"ytdTextInputAssistantButton","on:click":_.d6(function(){vbW().inputMethodsTracker.add(3);var f,H=(f=_.a8("SBOX_SETTINGS"))==null?void 0:f.REQUEST_LANGUAGE;if(H)return _.c7(_.gr(B5W,14,H)),!1})},_.O("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"uh");var F1x=function(){this.cache=new Map},rPb=function(f){for(var H=_.V(f.cache.entries()),v=H.next();!v.done;v=H.next()){var t=_.V(v.value);
v=t.next().value;t=t.next().value;t.suggestions.some(function(M){return M.type===35})&&f.cache.delete(v)}};var K1p=_.tL.SEARCH,Dnw=_.tL.SEARCH_CLEAR_LABEL,obt=new _.iN("FAKE_SUGGEST_RESPONSE");_.yn(_.a(function(f){function H(){HA||(HA=setTimeout(function(){iC()},1E3))}
function v(ev,Ub,n0){if(ev.trim()){Rd=ev;_.pc("REFINEMENTS_TUPLE",void 0);lC=!0;var de;Ub=h$W(TH,Ub);var jv=(de=f.searchEndpoint)==null?void 0:de.call(f);_.n6b(ev,Ub,jv,sb.value.value,n0);iC();sb.value.value=ev;sb.value.blur();TH.reset()}}
function t(ev){return _.Y(function(Ub){return Ub.return(new Promise(function(n0){var de=new XMLHttpRequest;de.open("GET",Nvr(ev),!0);de.withCredentials=!0;var jv=_.a8("SBOX_SETTINGS");(jv==null?0:jv.SEND_VISITOR_DATA)&&de.setRequestHeader("X-Goog-Visitor-Id",jv==null?void 0:jv.VISITOR_DATA);de.onload=function(){n0(de.responseText)};
de.onerror=function(){_.pb(Error("zl"));n0(null)};
setTimeout(function(){de.abort()},1E4);
de.send(null)}))})}
function M(ev){var Ub,n0,de,jv;return _.Y(function(UZ){switch(UZ.nextAddress){case 1:return Ub={credentials:"include",headers:Ecw()},window.AbortController&&(n0=new AbortController,setTimeout(function(){n0.abort("ytsbox-suggest-timeout")},1E4),Ub.signal=n0.signal),_.Zc(UZ,2),UZ.yield(fetch(Nvr(ev),Ub),4);
case 4:de=UZ.yieldResult.text();_.ch(UZ,3);break;case 2:return jv=_.xu(UZ),jv!=="ytsbox-abort-last"&&jv!=="ytsbox-suggest-timeout"&&_.pb(jv),UZ.return(null);case 3:return UZ.return(de)}})}
function h(ev){var Ub,n0,de;return _.Y(function(jv){switch(jv.nextAddress){case 1:if(Ub=_.t8().resolve(_.vh(obt)))return jv.return(Ub);n0=Date.now();H();return _.J("yt_searchbox_xhr")?jv.yield(t(ev),5):jv.yield(M(ev),4);case 4:de=jv.yieldResult;jv.jumpTo(3);break;case 5:de=jv.yieldResult;case 3:if(de){HA&&(clearTimeout(HA),HA=null);var UZ=TH,hr=n0,a1=ev.query.length===0;hr=Date.now()-hr;a1?UZ.zeroPrefixRoundTripTime=hr:(UZ.JSC$20609_totalRoundTripTime+=hr,UZ.maxRoundTripTime=Math.max(UZ.maxRoundTripTime,
hr),a1=Math.floor(hr/100),a1>=R$F.length?++UZ.roundTripTimeHistogram[9]:++UZ.roundTripTimeHistogram[R$F[a1]])}return jv.return(de)}})}
function y(ev){var Ub,n0,de;return _.Y(function(jv){if(jv.nextAddress==1)return(Ub=BA.cache.get(CU5(ev)))?jv.return(Ub):jv.yield(h(ev),2);n0=jv.yieldResult;if(n0===null)return jv.return(null);de=new qth(n0);ev.query.length===0&&de.suggestions.length===0||BA.cache.set(CU5(ev),de);return jv.return(de)})}
function m(ev){var Ub,n0;return _.Y(function(de){if(de.nextAddress==1){vA=!1;var jv=Rd;jv=_.Bfv()==="search"?(_.c_(location.href,"search_query")||_.c_(location.href,"q"))===jv:!1;Ub=new Gy0(ev,jv?Rd:null);return de.yield(y(Ub),2)}n0=de.yieldResult;if(n0===null)return de.return();Ub.query.length===0&&(TH.zeroPrefixSuggestionCount=n0.suggestions.length);if(Ub.id<=$g)return TH.outOfSyncResponseCount++,de.return();if(document.activeElement!==sb.value)return de.return();$g=Ub.id;var UZ=TH,hr=n0.rawResponse[2]||
{};UZ.experimentTriggeredBeforeFinal||(UZ.experimentTriggeredBeforeFinal=UZ.experimentTriggeredFinal);UZ.experimentTriggeredFinal=!!hr.e;TH.updateSuggestions(n0.suggestions);n(-1);Rn([]);n0.suggestions!==l()&&Jm(n0.suggestions.length);L(n0.suggestions);gB(n0.suggestions.length>0&&n0.suggestions[0].type===33);Kr&&(Kr.hidden=n0.suggestions.length===0,fg()?(Kr.style.minWidth="",UZ=Kr.style,hr=(jv=l()[0])==null?void 0:jv.ignoredPrefix,UZ.marginLeft=(hr?Math.min(hr.length*6,In.value.offsetWidth):0).toString()+
"px"):(Kr.style.minWidth=In.value.offsetWidth+"px",Kr.style.marginLeft="0"),Go());_.Bj(de)})}
function W(){if(!lC)return!1;var ev=_.a8("REFINEMENTS_TUPLE");return ev?(ev=ev[1].map(function(Ub,n0){return new kyp([Ub,0,[71]],sb.value.value,n0)}),l()!==ev&&Jm(ev.length),Rn([]),L(ev),TH.updateSuggestions(ev),lC=!1,Kr.hidden=ev.length===0,vA=ev.length>0,!0):!1}
function I(){var ev=sb.value.value;(typeof ev==="string"||ev instanceof String)&&ev!==""?c(!0):c(!1)}
function S(){if(_.Bfv()==="search"){var ev=window.location.href;try{var Ub=_.c_(ev,"search_query")||_.c_(ev,"q")||""}catch(n0){Ub=""}Ub&&(sb.value.value=Ub,c(!0))}}
var d=_.V(_.gp([],void 0,"kGFAjf")),Z=d.next().value;d=d.next().value;var l=Z,L=d;Z=_.V(_.gp(-1,void 0,"mLGL9e"));var r=Z.next().value,n=Z.next().value;Z=_.V(_.gp(-1,void 0,"u2rYdc"));var Q=Z.next().value,C=Z.next().value;Z=_.V(_.gp(!1,void 0,"W9DFC"));var w=Z.next().value,c=Z.next().value;Z=_.V(_.gp(!1,void 0,"Ip4dNc"));var A=Z.next().value,X=Z.next().value;d=_.V(_.gp(!1,void 0,"ZNKSQb"));Z=d.next().value;d=d.next().value;var fg=Z,gB=d;d=_.V(_.gp(!1,void 0,"JBrGLd"));Z=d.next().value;var O5=d.next().value;
d=_.V(_.gp(!1,void 0,"P2pD6e"));var s5=d.next().value,U5=d.next().value;d=_.V(_.gp(1,void 0,"SjP20c"));var lH=d.next().value,E5=d.next().value;d=_.V(_.gp([],void 0,"h4dRaf"));var uH=d.next().value,Rn=d.next().value;d=_.V(_.gp(!1,void 0,"TUTzaf"));var pr=d.next().value,gh=d.next().value;d=_.J("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var fr=_.TN("yt-searchbox"),sb=_.TN("input"),In=_.TN("div"),Kr,BA=
new F1x,TH=vbW(),hN=_.t8().resolve(_.vh(_.TK)),Ho=function(){var ev;return((ev=f.forceDarkMode)==null?void 0:ev.call(f))||!(hN==null||!hN())},J9=function(){return _.J("desktop_enable_scrollable_suggestions_panel")},Ox="i"+JPw++,lC=!1,vA=!1,Rd="",HA=null,$g=-1,iC=function(){Rn([]);
L([]);gB(!1);Kr&&(Kr.hidden=!0);HA&&(clearTimeout(HA),HA=null);n(-1)},jp=function(ev,Ub){ev.preventDefault();
gh(!0);Kr&&(Kr.hidden=!1);var n0=r();ev=l();var de=uH();Ub=pKi(Ub);n0+=Ub;for(n0>=ev.length?n0=-1:n0<-1&&(n0=ev.length-1);n0!==-1&&(de.includes(n0)||n0>=ev.length||n0<0);)n0+=Ub,n0>=ev.length&&(n0=-1);n(n0);r()>=0&&(sb.value.value=l()[r()].text,C(0),I(),ev=r(),de=Q(),(de=document.getElementById(mS[ev][de]))&&J9()&&(ev===l().length-1?Kr.scrollTop=Kr.scrollHeight:de.scrollIntoView({block:"nearest",inline:"start"})))},zH=_.d6(function(ev){if(!(ev.relatedTarget instanceof Element&&ev.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){X(!0);
var Ub;(Ub=f.focusCallback)==null||Ub.call(f,!0);W()||(vA?Kr.hidden=!1:(_.YE(fr.value,"yt-autonav-pause-focus",{}),m(ev.target.value)))}}),Fa=_.d6(function(ev){if(!(ev.relatedTarget instanceof Element&&ev.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){X(!1);
var Ub;(Ub=f.focusCallback)==null||Ub.call(f,!1);Kr.scrollTop=0;Kr.hidden=!0;_.YE(fr.value,"yt-autonav-pause-blur",{})}}),lt=function(ev){ev=pKi(ev);
var Ub;((Ub=mS[r()])==null?0:Ub[Q()+ev])&&C(Q()+ev)},Oq=_.d6(function(ev){var Ub=ev.target;
switch(ev.keyCode){case 13:ev.preventDefault();var n0;if((n0=mS[r()])==null?0:n0[Q()]){var de;(de=document.getElementById(mS[r()][Q()]))==null||de.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}ev=ev.shiftKey?4:3;n0=TH;de=r();n0.selectedSuggestionIndex=de;v(Ub.value,ev);break;case 27:Kr&&(Kr.hidden=!0);break;case 40:jp(ev,40);break;case 38:jp(ev,38);break;case 39:lt(39);break;case 37:lt(37);break;case 229:TH.inputMethodsTracker.add(4);break;default:TH.inputMethodsTracker.add(1),
teA(TH)}return!1}),di=_.d6(function(ev){m(ev.target.value);
I();J9()&&Kr&&(Kr.scrollTop=0);return!1}),zf=_.d6(function(){TH.inputMethodsTracker.add(2);
teA(TH);return!1});
_.ru(function(){if(Kr){TH.reset();if(window.ResizeObserver){var ev=new ResizeObserver(function(){fg()||(Kr.style.minWidth=In.value.offsetWidth+"px")});
ev.observe(In.value);(new ResizeObserver(function(){Go()})).observe(Kr);
_.Dt(function(){ev.disconnect()})}S();
window.addEventListener("yt-navigate-finish",S);window.addEventListener("yt-focus-searchbox",function(){sb.value.focus()});
var Ub;O5((Ub=_.a8("SBOX_SETTINGS"))==null?void 0:Ub.HAS_ON_SCREEN_KEYBOARD)}else _.oO(new _.e$("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var lK=_.d6(function(ev){ev.preventDefault();v(sb.value.value,12);return!1}),Eb=_.d6(function(ev){ev.preventDefault();
var Ub,n0;(Ub=sb)==null||(n0=Ub.value)==null||n0.focus();var de,jv;((de=sb)==null?void 0:(jv=de.value)==null?void 0:jv.value)!==""&&(sb.value.value="",sb.value.dispatchEvent(new Event("input")));return!1}),PA=_.d6(function(){var ev=bQx(sb.value.value,l().filter(function(Ub){return Ub.type!==35}).map(function(Ub){return{label:Ub.text}}));
_.mb(fr.value,"yt-open-popup-action",[{openPopupAction:ev},document.body]);return!1}),Xb=_.d6(function(){sb.value.focus();
return!1}),YU=function(ev,Ub,n0,de,jv){TH.selectedSuggestionIndex=n0;
v(Ub,jv?3:1,de)},MR=function(ev){sb.value.value=ev;
sb.value.dispatchEvent(new Event("input"));TH.inputMethodsTracker.add(5);teA(TH,!0)},mS=[[]],U0=function(ev){var Ub="searchbox-suggestion"+_.BC(_.r5);
mS[ev].push(Ub);return Ub},Jm=function(ev){if(l()){mS=[[]];
for(var Ub=0;Ub<ev;Ub++)mS.push([])}},Go=function(){if(J9()){var ev=Kr,Ub=ev.scrollTop;
ev=ev.scrollHeight-ev.clientHeight;U5(Ub>=ev);Ub=Math.abs(ev-Ub);Ub<=40?E5(1-(40-Ub)/40):E5(1)}},RW=function(){return"opacity: "+lH()*100+"%"},zb=_.d6(function(){Go();
return!1}),a3=_.d6(function(){gh(!1);
return!1}),Xe,dh={},gi={},DM={},L0={};
return _.O("yt-searchbox",{class:_.S2("ytSearchboxComponentHost",(dh.ytSearchboxComponentMweb=!1,dh.ytSearchboxComponentDesktop=!0,dh["yt-searchbox-filled-query"]=function(){return w()},dh["ytd-masthead"]=function(){return!A()},dh.ytSearchboxComponentHostDark=Ho,dh)),
role:"search",el:fr,"client-ve-type":10349},_.O("div",{el:In,"on:click":Xb,class:_.S2("ytSearchboxComponentInputBox",(gi.ytSearchboxComponentInputBoxDark=Ho,gi.ytSearchboxComponentInputBoxHasFocus=A,gi))},_.O("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":lK},_.O(_.g,{cond:A,then:function(){return _.O("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.O(_.JE,{icon:"SEARCH"}))}}),_.O("input",{el:sb,
class:_.S2("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":Ox,"aria-expanded":!((Xe=Kr)==null?0:Xe.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":Fa,"on:focus":zH,"on:input":di,"on:keydown":Oq,"on:paste":zf,placeholder:f.placeholderText,"aria-activedescendant":function(){var ev;return(ev=mS[r()])==null?void 0:ev[Q()]},
"aria-autocomplete":"list",role:"combobox"})),_.O(_.g,{cond:Z,then:function(){return _.O("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.O(z$W,null))}}),_.O(_.g,{cond:w,
then:function(){return _.O("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.O("button",{class:"ytSearchboxComponentClearButton","on:click":Eb,"aria-label":f.clearButtonAriaLabel||Dnw},_.O(_.JE,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.O(_.yU,{model:{}})))}})),_.O("button",{class:_.S2("ytSearchboxComponentSearchButton",(DM.ytSearchboxComponentSearchButtonDark=Ho,DM)),
"on:click":lK,"aria-label":K1p,title:f.placeholderText},_.O(_.JE,{icon:"SEARCH"})),_.O(_.g,{cond:function(){if(YVW()&&_.J("mweb_voice_search")&&f.voiceSearchButton)return f.voiceSearchButton()},
then:function(ev){var Ub={};return _.O("div",{class:_.S2("ytSearchboxComponentVoiceSearchWrapper",(Ub.ytSearchboxComponentHideVoiceSearchButton=function(){return w()},Ub))},_.O(_.Jj,{data:ev},{buttonRenderer:function(n0){return _.O(_.bv,{data:n0.data,
onButtonClickCallback:function(){}})}}))}}),_.O("div",{el:_.tE(function(ev){return void(Kr=ev)}),
id:Ox,class:_.S2("ytSearchboxComponentSuggestionsContainer",(L0.ytSearchboxComponentSuggestionsContainerDark=Ho,L0["yt-searchbox-suggestions-container"]=!1,L0.ytSearchboxComponentSuggestionsContainerScrollable=J9(),L0.ytSearchboxComponentSuggestionsContainerAnimated=d,L0)),"on:scroll":zb,"on:mousemove":a3,role:"listbox",hidden:!0},_.O(_.eK,{each:l},function(ev,Ub){return _.O(xnG,{suggestion:ev,isHighlighted:function(){return Ub()===r()},
onClickCallback:YU,onHoverUpdateCallback:function(n0){if(_.J("desktop_enable_single_suggestion_highlight")){var de=Ub();n0&&(C(0),n(de))}},
onRemoveCallback:function(n0){rPb(BA);n0===void 0||n0<0||uH().includes(n0)||Rn([].concat(_.pS(uH()),[n0]))},
labels:f.labels,queryBuilderFunction:MR,suggestionIndex:Ub,generateUniqueId:U0,highlightedId:function(){var n0;return(n0=mS[r()])==null?void 0:n0[Q()]},
useScrollMargin:J9(),isKeyboardMode:pr})}),_.O(_.g,{cond:function(){return!fg()&&l().find(function(ev){return ev.type!==35})&&_.J("searchbox_reporting")},
then:function(){return _.O("button",{class:"ytSearchboxComponentReportButton","on:mousedown":PA},_.ZC("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.O(_.g,{cond:function(){return!s5()&&J9()},
then:function(){return _.O("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.O("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:RW}))}})))},"vh"),"yt-searchbox",{props:{searchEndpoint:_.ki,
placeholderText:_.ki,labels:_.ki,voiceSearchButton:_.ki,focusCallback:_.Rm,clearButtonAriaLabel:_.ki,forceDarkMode:_.ki}});var mR=function(){var f=_.K.apply(this,arguments)||this;f.menuButtonTargetId="topbar-guide-menu";f.narrow=!1;f.menuStrings={BACK_ALT_LABEL:_.ZC("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.ZC("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.ZC("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.ZC("SBOX_PLACEHOLDER",void 0,"Search")};f.pageDarkTheme=document.documentElement.hasAttribute("dark");f.watchPageScrollTop=0;f.theater=!1;f.fullscreen=!1;f.disableFrostedGlassDuringViewTransition=
!1;f.desktopUnifiedSearchPanelMode=_.J("desktop_enable_unified_search_panel");f.cinematicTheaterMode=_.J("web_cinematic_theater_mode");f.ytSearchboxFocused=!1;f.searchboxLabels=_.a8("SBOX_LABELS");f.topbarIsAboveChipbar=!1;f.isDarkThemeForced=!1;f.areGhostCardsHidden=!1;f.guideKeyboardToggle=!1;f.voiceSearchManager=b50();f.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};f.setYtSearchboxFocused=function(H){f.ytSearchboxFocused=
H};
f.toggleFrostedGlassDuringViewTransition=function(H){f.disableFrostedGlassDuringViewTransition=H};
return f};
_.e(mR,_.K);_.R=mR.prototype;_.R.computeSimpleText=function(f){return _.fG(f)};
_.R.onDarkChanged=function(){for(var f=_.V(this.buttons||[]),H=f.next();!H.done;H=f.next())H.value.isOverlay=!!this.dark;f=_.V(this.buttonRenderers||[]);for(H=f.next();!H.done;H=f.next())H.value.overrides=this.computeButtonOverride()};
_.R.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.R.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},
notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var f=_.Gu(_.PL(),"aa");_.WB(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||f||(this.isDarkThemeForced=this.dark=!0);this.logoType?(f=this.hostElement.querySelector("#masthead-logo"))&&(_.J("polymer_on_demand_shady_dom")?f.setAttribute("slot","masthead-logo-old"):_.U1(f)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.jr(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.jr(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.R.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.jr(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.jr(this,this.onSetTheaterModeEnabled))};
_.R.dataChanged=function(){var f=this.data;f&&(this.voiceEnabled=f.voiceSearchButton?b50().isSupported():!1,_.skb(_.LM(),this.menuButtonTargetId,this.guideButton),f.onReceivedActions&&f.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.Oj(this.hostElement,f.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&f&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.WB(this.hostElement,"dark",!1),_.WB(this.hostElement,"theater",!1),
(f=this.hostElement.querySelector("#masthead-logo"))&&(_.J("polymer_on_demand_shady_dom")?f.setAttribute("slot","masthead-logo-old"):_.U1(f))))};
_.R.computeCenterHidden=function(){var f;return this.data&&!((f=this.data.searchbox)==null?0:f.fusionSearchboxRenderer)};
_.R.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.WB(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.R.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.R.onWatchScroll=function(f){this.watchPageScrollTop=f.detail||0;this.updateMastheadBackgroundOpacity()};
_.R.onFullscreenChangeAction=function(f){f||(this.watchPageScrollTop=0);this.fullscreen=f;this.updateMastheadBackgroundOpacity()};
_.R.onSetTheaterModeEnabled=function(f){this.theater=f.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.R.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.R.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.R.setBackgroundOpacity=function(f){f=this.calculateBackgroundOpacity(f);this.background.style.opacity=""+f};
_.R.calculateBackgroundOpacity=function(f){var H=this.theater&&this.cinematicTheaterMode?.6:0,v=this.hostElement.clientHeight/2;return Math.min(Math.max(f,0),v)/v*(1-H)+H};
_.R.shouldShowCinematicMastHead=function(){var f=_.J("kevlar_watch_grid")&&!_.J("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(f||this.pageDarkTheme)};
_.R.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.R.focusGuide=function(){this.guideButton.focus()};
_.R.onGuideToggleTap=function(){_.YE(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.R.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.R.onGuideToggleHover=function(){_.YE(this.hostElement,"yt-guide-hover")};
_.R.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.R.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.R.closeOnOutsideClickCondition=function(f){for(f=_.f2(f);f[0];){var H=f.shift();if(H instanceof Element&&H.id==="kbd")return!1}return!0};
_.R.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.R.pausePlayer=function(){var f;(f=_.vx())==null||f.pause();this.pauseMiniplayer()};
_.R.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var f;(f=_.t8().resolve(_.o0).getPlayerElement())==null||f.pause()}};
_.R.isMiniplayerActive=function(){return _.t8().resolve(_.o0).isMiniplayerActive()};
_.R.updateNarrowFromBinding=function(f){this.narrow=f.detail.value};
_.R.onYtSendFeedbackAction=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.R.registerWithViewTransitionManager=function(){yQr(_.t8().resolve(_.jX),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.H7.Object.defineProperties(mR.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.J("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var f;return(f=this.data)==null?void 0:f.voiceSearchButton}}}});
mR.prototype.narrowChanged=mR.prototype.narrowChanged;mR.prototype.onWatchPageChange=mR.prototype.onWatchPageChange;mR.prototype.onRendererStamperFinished=mR.prototype.onRendererStamperFinished;mR.prototype.dataChanged=mR.prototype.dataChanged;mR.prototype.onDarkChanged=mR.prototype.onDarkChanged;_.E([_.B(_.x3),_.N("design:type",Object)],mR.prototype,"ironResizableBehavior",void 0);_.E([_.B(_.omw),_.N("design:type",Object)],mR.prototype,"ytdExpandableInputBehavior",void 0);
_.E([_.B(_.NW.YtdGuideStateAwareBehavior),_.N("design:type",Object)],mR.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],mR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],mR.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],mR.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],mR.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.um),_.N("design:type",Object)],mR.prototype,"ytdReduxBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],mR.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],mR.prototype,"narrow",void 0);_.E([_.F(),_.N("design:type",Object)],mR.prototype,"logoType",void 0);_.E([_.F(),_.N("design:type",Boolean)],mR.prototype,"voiceEnabled",void 0);
_.E([_.F(),_.N("design:type",Object)],mR.prototype,"menuStrings",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],mR.prototype,"dark",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],mR.prototype,"pageDarkTheme",void 0);_.E([_.F(),_.N("design:type",Object)],mR.prototype,"watchPageScrollTop",void 0);_.E([_.F({reflectToAttribute:!0,selector:_.bO3}),_.N("design:type",Boolean)],mR.prototype,"isWatchPage",void 0);
_.E([_.F({reflectToAttribute:!0,selector:_.iO_}),_.N("design:type",Boolean)],mR.prototype,"isShortsPage",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],mR.prototype,"theater",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],mR.prototype,"fullscreen",void 0);_.E([_.F({reflectToAttribute:!0,selector:_.qI5}),_.N("design:type",String)],mR.prototype,"frostedGlassMode",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],mR.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.E([_.F(),_.N("design:type",Object)],mR.prototype,"ytSearchboxFocused",void 0);_.E([_.UE("#buttons > *"),_.N("design:type",Array)],mR.prototype,"buttons",void 0);_.E([_.UE("ytd-button-renderer"),_.N("design:type",Array)],mR.prototype,"buttonRenderers",void 0);_.E([_.lJ("#background"),_.N("design:type",HTMLDivElement)],mR.prototype,"background",void 0);
_.E([_.lJ("#guide-button"),_.N("design:type",Object)],mR.prototype,"guideButton",void 0);_.E([_.lJ("#logo"),_.N("design:type",Object)],mR.prototype,"logo",void 0);_.E([_.F({computed:"computeButtonOverride(dark)"}),_.N("design:type",Object)],mR.prototype,"buttonOverrides",void 0);_.E([_.xV("dark"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mR.prototype,"onDarkChanged",null);_.E([_.F({value:function(){return this.onVoiceTap.bind(this)}}),
_.N("design:type",Function)],mR.prototype,"boundOnTapVoiceButton",void 0);_.E([_.F(),_.N("design:type",Object)],mR.prototype,"topbarIsAboveChipbar",void 0);_.E([_.F(),_.N("design:type",String),_.N("design:paramtypes",[])],mR.prototype,"guideIcon",null);_.E([_.z("voiceEnabled"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],mR.prototype,"shouldShowVoiceSearchButton",null);_.E([_.z("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],mR.prototype,"voiceSearchButton",null);
_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mR.prototype,"dataChanged",null);_.E([_.sE("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mR.prototype,"onRendererStamperFinished",null);_.E([_.xV("isWatchPage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mR.prototype,"onWatchPageChange",null);
_.E([_.xV("narrow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mR.prototype,"narrowChanged",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-masthead"})],mR);
_.G(mR,"ytd-masthead",function(){if(dnW!==void 0)return dnW;var f=document.createElement("template");_.x(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="max-width: 656px" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return dnW=f},{mode:_.WK("kevlar_poly_si_batch_j036")?1:2});var nbt;var prp={},Qat={},uxF={},aHp={},P4w=(aHp.OFFLINE=(prp["publicytnetworkstatus-online"]="BACK_ONLINE",prp),aHp.ONLINE=(Qat["publicytnetworkstatus-offline"]="OFFLINE",Qat),aHp.BACK_ONLINE=(uxF["publicytnetworkstatus-offline"]="OFFLINE",uxF.TIMER_TRIGGER="ONLINE",uxF),aHp),$y=function(){var f=_.K.apply(this,arguments)||this;f.currentState="ONLINE";f.scheduledJobId=0;f.bannerString="";f.bannerVe=null;f.networkStatusManagerInstance=new _.Aa;return f};
_.e($y,_.K);_.R=$y.prototype;_.R.attached=function(){var f=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){f.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){f.stateChangeHandler("publicytnetworkstatus-offline")})};
_.R.detached=function(){var f=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){f.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){f.stateChangeHandler("publicytnetworkstatus-offline")})};
_.R.enterState=function(f){var H=this;this.scheduledJobId&&_.nN.cancelJob(this.scheduledJobId);f==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):f==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.ZC("NO_INTERNET_CONNECTION",void 0,"No internet connection")):f==="BACK_ONLINE"&&(this.bannerString=_.ZC("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.Lb(_.nN,function(){H.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=f};
_.R.stateChangeHandler=function(f){(f=P4w[this.currentState][f])&&this.enterState(f)};
_.R.logVisibility=function(f){var H=_.uy();this.createBannerVe(f);H&&this.bannerVe&&(f?_.i0(H,[this.bannerVe]):_.kE(H,[this.bannerVe]))};
_.R.createBannerVe=function(f){!this.bannerVe&&f&&(this.bannerVe=_.$$(37929),_.mE(_.UV(),this.bannerVe))};
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",String)],$y.prototype,"currentState",void 0);_.E([_.F(),_.N("design:type",Object)],$y.prototype,"scheduledJobId",void 0);_.E([_.F(),_.N("design:type",Object)],$y.prototype,"bannerString",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-network-status-banner"})],$y);
_.G($y,"ytd-network-status-banner",function(){if(nbt!==void 0)return nbt;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return nbt=
f},{mode:1});var GmG;var WZ=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};f.hidden=!0;f.frostedGlass=_.J("web_frosted_glass");return f};
_.e(WZ,_.K);WZ.prototype.computeHidden=function(f){return f&&f.status?!1:!0};
WZ.prototype.handleUpdatePermissionRoleCommand=function(f){if(f=_.U(f,_.tAn))if(f=_.U(f.renderer,_.vWh))this.data=f};
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],WZ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],WZ.prototype,"componentBehavior",void 0);_.E([_.F({value:!0,computed:"computeHidden(data)"}),_.N("design:type",Object)],WZ.prototype,"hidden",void 0);_.E([_.F(),_.N("design:type",Object)],WZ.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],WZ.prototype,"frostedGlass",void 0);
_.E([_.u({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],WZ);
_.G(WZ,"ytd-permission-role-bottom-bar-renderer",function(){if(GmG!==void 0)return GmG;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return GmG=f},{mode:1});var C4x;var Eb5;var QuG={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var OG=function(){return _.K.apply(this,arguments)||this};
_.e(OG,_.K);_.R=OG.prototype;_.R.attached=function(){this.JSC$20712_scroller&&(this.JSC$20712_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20712_scroller.attached&&typeof this.JSC$20712_scroller.attached==="function"&&this.JSC$20712_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(v){v.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var f=_.mF(this.hostElement);f.querySelector("tp-yt-paper-radio-group").selected="";var H=f.querySelector("#reason-text");H&&(H.value="");f.querySelector("#description-text").value=""}};
_.R.canSubmit=function(f,H){_.YE(this.hostElement,"yt-invalidate-popup-tabbables");return!(f&&H)};
_.R.onCancel=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.R.onSubmit=function(){var f=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(h){return h.active}).map(function(h){return h.innerText.trim()}),H=this.hostElement.querySelector("tp-yt-paper-radio-group"),v=H.selectedItem,t=v.name;
v=v.innerText.trim();var M=H.querySelector("#reason-text");H=void 0;M&&(H=M.value);(M=this.descriptionText.value)&&(M=M.trim());uA0(this.data.searchQuery,f,t,v,M,H);_.mb(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.R.sendFormSubmitToast=function(){var f=_.ht(_.ZC("SBOX_INAPPROPRIATE_TOAST"));_.mb(this.hostElement,"yt-open-popup-action",[f,this])};
_.R.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(f){return f.active})};
_.R.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
OG.prototype.onIronSelect=OG.prototype.onIronSelect;OG.prototype.onIronChange=OG.prototype.onIronChange;OG.prototype.dataChanged=OG.prototype.dataChanged;_.E([_.F(),_.N("design:type",Object)],OG.prototype,"data",void 0);_.E([_.F({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.N("design:type",Boolean)],OG.prototype,"submitDisabled",void 0);_.E([_.F(),_.N("design:type",Boolean)],OG.prototype,"suggestionSelected",void 0);
_.E([_.F(),_.N("design:type",Boolean)],OG.prototype,"catagorySelected",void 0);_.E([_.lJ("#scroller"),_.N("design:type",Object)],OG.prototype,"JSC$20712_scroller",void 0);_.E([_.lJ("#description-text"),_.N("design:type",Object)],OG.prototype,"descriptionText",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],OG.prototype,"dataChanged",null);
_.E([_.sE("iron-change"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],OG.prototype,"onIronChange",null);_.E([_.sE("iron-select"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],OG.prototype,"onIronSelect",null);_.E([_.u({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],OG);
_.G(OG,"ytd-search-suggestion-report-dialog",function(){if(Eb5!==void 0)return Eb5;var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);return Eb5=f},{mode:1});var gE=function(f){var H=f.openPopupAction;var v=f.target;var t=f.container;var M=f.popupContainerConfig;var h=f.getElement;f=f.removeWhenClosed===void 0?!1:f.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=H;this.target=v;this.container=t;this.popupContainerConfig=M;this.getElement=h;this.JSC$20718_popupConfig=this.popupContainerConfig.JSC$19865_popupConfig[this.openPopupAction.popupType];this.rendererName=(H=this.getName())?_.o$E(H,Lat(this.popupContainerConfig,
H)):"";_.J("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=f);this.createPopup()};
gE.prototype.updatePopup=function(f){this.openPopupAction=f;this.JSC$20718_popupConfig=this.popupContainerConfig.JSC$19865_popupConfig[this.openPopupAction.popupType];N5F(this);_.J("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
gE.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var AP5=function(f,H,v){(H=H&&f.JSC$20718_popupConfig.narrowProperties?f.JSC$20718_popupConfig.narrowProperties:f.JSC$20718_popupConfig.properties)&&v!==void 0&&(H.isAriaModal=v);cPh(f,H);f.isRtl()&&cPh(f,f.JSC$20718_popupConfig.rtlProperties);XrF(f)};
gE.prototype.createPopup=function(){var f=this.JSC$20718_popupConfig.component;if(this.popupContent=bBt(this,this.rendererName)){if(f){this.popup=bBt(this,f);var H=this.popupContent;_.J("web_enable_wrapper_for_cow_component_in_popup")&&(H=document.createElement("div"),H.appendChild(this.popupContent));_.J("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$20718_popupConfig.slotName&&H.setAttribute("slot",this.JSC$20718_popupConfig.slotName);f=this.popup;var v=this.container.tagName.toLowerCase(),
t=_.vB(H);_.jeH(_.Mu(f),_.Vs(H,v,t));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.J("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.mF(this.container).appendChild(this.popup)}};
var N5F=function(f){var H,v,t=(H=f.openPopupAction.accessibilityData)==null?void 0:(v=H.accessibilityData)==null?void 0:v.label;t&&(f.popup.ariaLabel=t);var M;((M=f.popupContent.polymerController)!=null?M:f.popupContent).data=(0,_.QA.unsafeClone)(f.openPopupAction.popup[f.getName()]);f.popupContent.duration=iBW(f);f.popupContent.positionType=f.openPopupAction.position;var h=f.openPopupAction.properties;h&&Object.keys(h).forEach(function(y){f.popupContent[y]=h[y]})},cPh=function(f,H){if(H)for(var v=
_.V(Object.keys(H)),t=v.next();!t.done;t=v.next())t=t.value,f.popup[t]=H[t]},XrF=function(f){if(f.openPopupAction.position){var H=f.JSC$20718_popupConfig.positionalProperties&&f.JSC$20718_popupConfig.positionalProperties[f.openPopupAction.position],v=f.JSC$20718_popupConfig.rtlPositionalProperties&&f.JSC$20718_popupConfig.rtlPositionalProperties[f.openPopupAction.position];
H=f.isRtl()&&v?v:H;H.shiftedHorizontalOffset&&(v=f.popup.style.display,f.popup.style.display="block",f.popupContent&&f.popup.positionTarget&&f.popupContent.clientWidth>f.popup.positionTarget.clientWidth&&(H.horizontalOffset=f.popup.positionTarget.clientWidth/2-H.shiftedHorizontalOffset),f.popup.style.display=v);cPh(f,H)}},kmG=function(f,H){if(H)for(var v=_.V(Object.keys(H)),t=v.next();!t.done;t=v.next())t=t.value,f.popup.style[t]=H[t]};
gE.prototype.getName=function(){return _.o8(this.openPopupAction.popup,"renderer")||_.o8(this.openPopupAction.popup,"dialog")||_.o8(this.openPopupAction.popup,"model")||void 0};
var iBW=function(f){f=f.openPopupAction.durationHintMs;return f===0?f:Math.max(4E3,f||4E3)};
gE.prototype.isRtl=function(){return _.a8("HTML_DIR")==="rtl"};
var bBt=function(f,H){f=f.getElement(H,f.target);f==null&&_.pb(new _.e$("popup getElement returned null",H));return f};var T5G={};
T5G.YtPopupContainerBehavior=[_.CM.YtComponentBehavior,_.dt.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_);_.VZ(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.yZ(this.hostElement)},
closePopup:function(f){var H=this.createCacheKey(void 0,f);this.popups_[H]&&this.handleClosePopupAction_(void 0,f)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.nN.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.nN.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(f){f.opened&&f.keepBelowPlayer&&this.ensurePopupBelowPlayer(f)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var f in this.popups_){var H=this.popups_[f];if(H.popup.scrollAction==="refit"){var v=H.popup.positionTarget.getBoundingClientRect(),t=H.popup;v=v.top;var M=H;if(!M.naturalHeight){M.popup.hidden=!1;M.popup.style.position="fixed";M.popup.style.top="0px";M.popup.style.left="0px";var h=M.popup.getBoundingClientRect();M.naturalHeight=h.bottom-h.top;M.popup.refit()}t.hidden=!(v>=M.naturalHeight+60);H.popupContent.clientHeight===0&&H.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(f){this.popupContainerConfig=f},
handleOpenPopupAction:function(f,H){var v=f.openPopupAction,t=_.t8().resolve(_.vh(_.sX))&&v.popupType==="TOAST";t&&!v.uniqueId&&(v.uniqueId=_.aA());if(!_.J("popup_container_parent_target_killswitch")){var M;H=(M=this.getParentTarget(H))!=null?M:H}var h=this.ensurePopup_(v,H);return new _.IO(function(y){h.then(function(m){if(!m)return y();this.maybeCreateNarrowMediaQuery_();var W=this.createCacheKey(m.rendererName,m.openPopupAction.uniqueId);if(v.showOncePerUniqueId){if(this.shownPopupKeys_.has(W))return y();
this.shownPopupKeys_.add(W)}W=this.popups_[W];var I=!(!W||!W.openPopupAction.beReused);I=!!v.reusePopup||I;if(m.popup.opened&&!I){t&&!m.openPopupAction.replacePopup||this.handleClosePopupAction_(m.rendererName,m.openPopupAction.uniqueId);I=v.popupType==="DIALOG"&&!_.J("popup_container_dialog_reopen_killswitch");if(!t&&!I&&W&&W.target==H&&!m.openPopupAction.replacePopup)return y();_.qV(m.popup,function(){this.completeOpenPopupAction_(v,H,m);y()}.bind(this))}else m.popup.opened?m.updatePopup(v):this.completeOpenPopupAction_(v,
H,m),y()}.bind(this))}.bind(this))},
getParentTarget:function(f){if(f&&f instanceof HTMLElement)for(var H=_.V(Object.entries(this.popups_)),v=H.next();!v.done;v=H.next())if(v=_.V(v.value),v.next(),v=v.next().value,v.popup.tagName==="TP-YT-IRON-DROPDOWN"&&f.closest(v.rendererName))return v.target},
completeOpenPopupAction_:function(f,H,v){v.updatePopup(f);f=this.narrowMediaQuery_.queryMatches;var t=this.isAriaModal;v.target=H;var M;H=((M=v.target.polymerController)!=null?M:v.target).popupPositionTarget||v.target;v.JSC$20718_popupConfig.targetContainer&&(H=v.container);v.popup.positionTarget=H;v.popupContent.positionTarget=H;XrF(v);v.JSC$20718_popupConfig.forceFocus&&(v.popupContent.style.outline="none");v.popupContent.tabIndex=-1;v.JSC$20718_popupConfig.narrowProperties&&(v.popup.style.position=
"static");v.JSC$20718_popupConfig.preventAutonav&&v.popup.setAttribute("prevent-autonav",!0);v.JSC$20718_popupConfig.forceCloseOnOutsideClick&&v.popup.setAttribute("force-close-on-outside-click",!0);AP5(v,f,t);kmG(v,v.JSC$20718_popupConfig.styles);v.isRtl()&&kmG(v,v.JSC$20718_popupConfig.rtlStyles);if(!v.openPopupAction.shouldStopParentSignal){var h;M=(h=v.target.polymerController)!=null?h:v.target;(v.popupContent.startForwardingEvents||v.popupContainerConfig.forwardingEnabledPopups.has(v.rendererName))&&
M.parentComponent!==v.popupContent&&v.popupContent!==v.target&&v.target!==document.body&&(v.popupContent.startForwardingEvents?v.popupContent.startForwardingEvents(v.popupContainerConfig.forwardedEvents,v.target):(v.JSC$20718_eventForwarder||(v.JSC$20718_eventForwarder=new _.H1(v.popupContent)),v.JSC$20718_eventForwarder.start(v.popupContainerConfig.forwardedEvents,v.target)))}v=v.popup;v.addEventListener("iron-overlay-opened",_.jr(this,this.onPopupIronOverlayOpened_));v.addEventListener("iron-overlay-closed",
_.jr(this,this.onPopupIronOverlayClosed_));v.addEventListener("iron-overlay-canceled",_.jr(this,this.onPopupIronOverlayCanceled_));v.addEventListener("yt-refit",_.jr(this,this.refitPopup_));v.addEventListener("yt-invalidate-popup-tabbables",_.jr(this,this.handleInvalidatePopupTabbables_));v.open()},
getPopupDurationMs_:function(f){return f.durationHintMs===0?f.durationHintMs:Math.max(4E3,f.durationHintMs||4E3)},
handleClosePopupAction_:function(f,H){var v=_.J("web_popup_cache_key_killswitch")||!!H;if(f||v){var t=this.createCacheKey(f,H);f=(f=this.popups_[t])&&f.popup}else f=_.PwC(_.aq);if(f&&f.close){if(H=_.t8().resolve(_.vh(_.RM)))f.restoreFocusOnClose=H.isKeyBoardInUse();f.close();this.removePopup_(f,t)}},
handleClosePopupCommand_:function(f){f.closePopupCommand&&f.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,f.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(f){var H={},v;for(v in this.popups_)if(H={key$jscomp$1208:H.key$jscomp$1208},H.key$jscomp$1208=v,!f||!f.some(function(h){return function(y){return y==h.key$jscomp$1208}}(H))){var t=this.popups_[H.key$jscomp$1208],M=t.popup;
_.t8().resolve(_.vh(_.sX))&&t.openPopupAction.popupType==="TOAST"||(M&&M.close&&M.close(),this.removePopup_(M,H.key$jscomp$1208))}},
handleClosePopupsAction_:function(f){f.forEach(function(H){var v=this.popups_[H];v&&((v=v.popup)&&v.close&&v.close(),this.removePopup_(v,H))}.bind(this))},
handleGetPopupOpenedAction_:function(f,H){return(H=this.createCacheKey(f,H))&&this.popups_[H]?this.popups_[f].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var f=[],H;for(H in this.popups_){var v=this.popups_[H];v.popup.opened&&f.push(v)}return f},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(f,H){_.J("ytpopup_disable_default_html_caching")&&f&&f.removeWhenClosed&&(_.mF(this.hostElement).removeChild(f),H&&this.popups_[H]&&delete this.popups_[H])},
shouldReusePopup_:function(f){return!(!f||!f.reusePopup)||!(!f||!f.beReused)},
ensurePopup_:function(f,H){this.maybeCreateNarrowMediaQuery_();var v=_.o8(f.popup,"renderer")||_.o8(f.popup,"dialog")||_.o8(f.popup,"model");if(!v)return _.gj();v=_.o$E(v,Lat(this.popupContainerConfig,v));return _.gj(this.getAndMaybeCreatePopup_(f,v,H))},
getAndMaybeCreatePopup_:function(f,H,v){var t=this.createCacheKey(H,f.uniqueId);if(this.popups_[t])return this.popups_[t];f=new gE({openPopupAction:f,target:v,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(H)});return this.popups_[t]=f},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(f){return _.J("ytpopup_disable_default_html_caching")?f&&f.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",_.jr(this,this.openPopupQueryMatchesChanged_)),_.mF(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(f){f=f.detail.value;for(var H in this.popups_)AP5(this.popups_[H],f)},
onPopupIronOverlayClosed_:function(f){var H=f.currentTarget,v=_.a1E(H);v=v.length>0?v[0]:H;if(v.is!=="ytd-reel-watch-while-dialog-renderer"||f.target.is!=="tp-yt-iron-dropdown"){f.detail.popup=H;f.detail.popupRenderer=v;var t,M={context:{openingElement:((t=this.popups_[(v==null?void 0:v.is)||""])==null?void 0:t.target)||void 0}};Object.assign(M,f.detail);var h;_.YE((h=v.hostElement)!=null?h:v,"yt-popup-closed",M);H.removeEventListener("yt-refit",_.jr(this,this.refitPopup_));H.removeEventListener("yt-invalidate-popup-tabbables",
_.jr(this,this.handleInvalidatePopupTabbables_));H.removeEventListener("iron-overlay-canceled",_.jr(this,this.onPopupIronOverlayCanceled_));H.removeEventListener("iron-overlay-closed",_.jr(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(H)}},
onPopupIronOverlayCanceled_:function(f,H){var v=f.currentTarget,t=_.a1E(v);t=t.length>0?t[0]:v;if(t.is!=="ytd-reel-watch-while-dialog-renderer"||f.target.is!=="tp-yt-iron-dropdown"){var M;_.YE((M=t.hostElement)!=null?M:t,"yt-popup-canceled",f.detail);M=H?_.f2(H):null;(!H||["click","tap"].includes(H.type))&&!v.hasAttribute("force-close-on-outside-click")&&v.positionTarget&&M&&M.includes(v.positionTarget)&&f.preventDefault();v.restoreFocusOnClose=_.dS.keyboardEventMatchesKeys(H,"esc")}},
onPopupIronOverlayOpened_:function(f){f=f.currentTarget;var H=_.a1E(f);H=H.length>0?H[0]:f;var v,t;_.YE((v=H.hostElement)!=null?v:H,"yt-popup-opened",(t=H.hostElement)!=null?t:H);f.keepBelowPlayer&&(this.ensurePopupBelowPlayer(f,!0),this.dynamicallyPositionedElements_.add(f));v=_.t8().resolve(_.vh(_.RM));t=!!H.querySelector("#toast");v&&v.isKeyBoardInUse()&&!t&&(typeof H.focusFirstItem==="function"?H.focusFirstItem():(H=_.QcH(f),H.length&&H[0].focus()));f.removeEventListener("iron-overlay-opened",
_.jr(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(f){f=f.currentTarget;f.refit&&f.refit()},
refitPopups_:function(){for(var f in this.popups_)this.popups_[f].refit()},
handleInvalidatePopupTabbables_:function(f){f=f.currentTarget;f.invalidateTabbables&&f.invalidateTabbables()},
createCacheKey:function(f,H){return _.J("web_popup_cache_key_killswitch")?H?f+"#"+H:f:H?"#"+H:f},
openSheet:function(f,H){var v=f==null?void 0:f.openPopupActionCommand;!v&&(f==null?0:f.viewModel)&&(v={openPopupAction:{popup:{sheetViewModel:f.viewModel},popupType:"CONTEXTUAL_SHEET"}});v&&this.handleOpenPopupAction(v,H)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var f=this;return _.Y(function(H){return H.return(f.handleGetOpenedPopupsAction_().filter(function(v){var t;return((t=v.openPopupAction)==null?void 0:t.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(f,H,v){if(_.J("web_dialog_utils_killswitch")){var t=f==null?void 0:f.openPopupActionCommand,M=(v==null?0:v.ariaLabel)?{accessibilityData:{accessibilityData:{label:v.ariaLabel}}}:void 0;!t&&(f==null?0:f.viewModel)&&(t={openPopupAction:Object.assign({},{popup:{dialogViewModel:f.viewModel},popupType:(v==null?0:v.isModal)?"MODAL":"DIALOG"},M&&M)});t&&this.handleOpenPopupAction(t,H)}else{if(M=f==null?void 0:f.viewModel){var h=v=v===void 0?{}:v;v=h.ariaLabel;M={popup:{dialogViewModel:M},
popupType:h.isModal?"MODAL":"DIALOG"};h={accessibilityData:{label:v}};v&&(M.accessibilityData=h);M={openPopupAction:M}}else M=void 0;if(M=(t=M)!=null?t:f==null?void 0:f.openPopupActionCommand)this.isAriaModal=_.J("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(M,H)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var f=this;return _.Y(function(H){return H.return(f.handleGetOpenedPopupsAction_().filter(function(v){var t;return((t=v.openPopupAction)==null?void 0:t.popupType)==="DIALOG"}).length>0)})}}];var wrW;var qcp;var flG=_.EH(["about:blank"]),I4=function(){var f=_.K.apply(this,arguments)||this;f.isMuted=!1;f.pageLoadTimeoutId=void 0;return f};
_.e(I4,_.K);_.R=I4.prototype;_.R.dataChanged=function(){var f=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var H=this.data.url,v=_.pN(H);_.J("enable_yt_ata_iframe_authuser")?(v=_.pN(H),_.T1(this.iframe,aIA(v))):_.T1(this.iframe,v);this.pageLoadTimeoutId=_.Lb(_.Zb(),function(){return void f.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.bT({destination:window,iframe:this.iframe,origin:_.LWg(v.toString()),channelName:"ataiframe",onMessage:_.r5H(rp0,function(t){KHW(t.data)?(t=_.wi(t.data,1,_.hW,_.yX()),t.length!==1?_.pb(Error("Al")):(t=t[0],t===3?(f.isMuted=!0,f.logStateChanged({adMuteRequested:!0})):t===1&&f.close())):_.pb(Error("Bl"))}),
onEstablished:function(){f.cancelPageLoadTimeout();f.logStateChanged({pageLoadSucceeded:!0})}})}};
_.R.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.Zb().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.R.logStateChanged=function(f){var H;if((H=this.data)==null?0:H.trackingParams)f={adsClientData:{aboutThisAdData:f}},_.UV().stateChanged(this.data.trackingParams,f)};
_.R.close=function(){_.mb(this.hostElement,"yt-close-popup-action",[this.is])};
_.R.handlesPopupClosed=function(f,H){var v=this,t,M;return _.Y(function(h){if(h.nextAddress==1)return _.a8("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.mb(v.hostElement,"on-about-this-ad-popup-closed",[v.isMuted,H]),h.jumpTo(0)):f&&PVx(f)?h.yield(GK0(f),4):(v.isMuted&&_.mb(v.hostElement,"yt-mute-ad-action",[v.is,v]),h.jumpTo(0));if(t=h.yieldResult){var y=M=new _.L_(t),m=v.isMuted;y.getOptions().includes("onAboutThisAdPopupClosed")?_.wmh(y,"onAboutThisAdPopupClosed",{isMuted:m,layoutId:H}):_.cx("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.Bj(h)})};
_.R.onPopupClosed=function(f){var H=this,v,t;return _.Y(function(M){v=_.gr(flG);_.T1(H.iframe,v);H.cancelPageLoadTimeout();if(!H.data)return M.jumpTo(0);H.ytRendererBehavior.markDirty();t=f.detail.context.openingElement;return M.yield(H.handlesPopupClosed(t,H.data.layoutId),0)})};
_.R.detached=function(){this.cancelPageLoadTimeout()};
_.R.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
I4.prototype.onPopupClosed=I4.prototype.onPopupClosed;I4.prototype.dataChanged=I4.prototype.dataChanged;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],I4.prototype,"ytRendererBehavior",void 0);_.E([_.lJ("#iframe"),_.N("design:type",HTMLIFrameElement)],I4.prototype,"iframe",void 0);_.E([_.F(),_.N("design:type",Object)],I4.prototype,"data",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],I4.prototype,"dataChanged",null);
_.E([_.sE("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype",Promise)],I4.prototype,"onPopupClosed",null);_.E([_.GW({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],I4);
_.G(I4,"yt-about-this-ad-renderer",function(){if(qcp===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;wrW===void 0&&(wrW=document.createElement("template"));var t=wrW;v.call(H,t.content.cloneNode(!0),f.content.firstChild);qcp=f}f=qcp;return f},{mode:2});var Hqb;var v95;var SC=function(f){var H=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=H.message;"stack"in H&&(this.stack=H.stack);this.maxFileSizeMB=f;Object.setPrototypeOf(this,SC.prototype)};
_.e(SC,Error);var tJW=function(f,H){var v=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=v.message;"stack"in v&&(this.stack=v.stack);this.minWidth=f;this.minHeight=H;Object.setPrototypeOf(this,tJW.prototype)};
_.e(tJW,Error);var MJx=function(f){this.requirements=f;this.JSC$20746_maxFileSize=f.maxFileSizeMB*1024*1024},h_t=function(f,H){if(H.size>f.JSC$20746_maxFileSize)throw new SC(f.requirements.maxFileSizeMB);
};var R_w=function(f,H){this.canvas=f;this.imageEditorBuilder=H};
R_w.prototype.addEventListeners=function(f){var H=function(M){VJx(f,M)};
this.JSC$20752_mouseDownEvent=H;var v=function(M){yBG(f,M)};
this.JSC$20752_mouseMoveEvent=v;var t=function(){YOt(f)};
this.JSC$20752_mouseUpEvent=t;this.canvas.addEventListener("mousedown",H);this.canvas.addEventListener("mousemove",v);document.addEventListener("mouseup",t)};
R_w.prototype.removeEventListeners=function(){this.JSC$20752_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$20752_mouseDownEvent);this.JSC$20752_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$20752_mouseMoveEvent);this.JSC$20752_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$20752_mouseUpEvent)};
var mpG=function(f,H){f.removeEventListeners();return new Promise(function(v){var t=new Image;t.crossOrigin="anonymous";t.onload=function(){var M=f.imageEditorBuilder(f.canvas,t);f.addEventListeners(M);v(M)};
t.src=H})},dE=function(f,H,v,t,M,h,y,m){this.canvas=f;
this.image=H;this.requiredRatio=v;this.minImageCropDimension=t;this.minOutputImageResolution=M;this.component=h;this.styleFocusedCorner=m===void 0?!0:m;this.action=2;this.focusedCorner=this.resizeCorner=0;f=this.canvas.getContext("2d");if(!f)throw Error("Cl");this.ctx=f;this.canvasMargin=y!=null?y:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;y=this.image;f=this.canvasInnerWidth/y.width;y.height*f>912&&(f=y.width/y.height*912/y.width);y=f;this.scaledImageWidth=this.canvas.width%2?
E6W(this.image.width*y):CVA(this.image.width*y);this.scaledImageHeight=Math.round(this.image.height*y);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$20755_overlayMarginBottom=this.JSC$20755_overlayMarginTop=this.canvasMargin;this.JSC$20755_overlayMarginRight=this.JSC$20755_overlayMarginLeft=this.horizontalMargin;this.JSC$20755_overlayWidth=this.scaledImageWidth;this.JSC$20755_overlayHeight=this.scaledImageHeight;
f=this.image.width/this.image.height;f>this.requiredRatio?(this.JSC$20755_overlayWidth=this.canvas.width%2?E6W(this.scaledImageHeight*this.requiredRatio):CVA(this.scaledImageHeight*this.requiredRatio),this.JSC$20755_overlayMarginRight=this.JSC$20755_overlayMarginLeft=(this.canvas.width-this.JSC$20755_overlayWidth)/2):f<this.requiredRatio&&(this.JSC$20755_overlayHeight=this.canvas.height%2?E6W(this.scaledImageWidth/this.requiredRatio):CVA(this.scaledImageWidth/this.requiredRatio),this.JSC$20755_overlayMarginBottom=
this.JSC$20755_overlayMarginTop=(this.canvas.height-this.JSC$20755_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*y,this.scaledImageWidth);$pt(this)};
dE.prototype.getContext=function(){return this.ctx};
var VJx=function(f,H){H={x:Math.round(H.pageX-f.canvas.getBoundingClientRect().left),y:Math.round(H.pageY-f.canvas.getBoundingClientRect().top)};f.dragStart=H;Wzh(f,H)!==0?(f.action=1,Oqt(f,H),f.resizeCorner=Wzh(f,H)):H.x>f.JSC$20755_overlayMarginLeft&&H.x<f.JSC$20755_overlayMarginLeft+f.JSC$20755_overlayWidth&&H.y>f.JSC$20755_overlayMarginTop&&H.y<f.JSC$20755_overlayMarginTop+f.JSC$20755_overlayHeight&&(f.action=0)},g9W=function(f,H){switch(H){case 1:return{x:f.JSC$20755_overlayMarginLeft,
y:f.JSC$20755_overlayMarginTop};case 2:return{x:f.JSC$20755_overlayMarginLeft,y:f.JSC$20755_overlayMarginTop+f.JSC$20755_overlayHeight};case 3:return{x:f.JSC$20755_overlayMarginLeft+f.JSC$20755_overlayWidth,y:f.JSC$20755_overlayMarginTop};case 4:return{x:f.JSC$20755_overlayMarginLeft+f.JSC$20755_overlayWidth,y:f.JSC$20755_overlayMarginTop+f.JSC$20755_overlayHeight};default:throw Error("Dl");}},SO5=function(f,H){if(f.focusedCorner!==0){f.dragStart=g9W(f,f.focusedCorner);
f.action=1;f.resizeCorner=f.focusedCorner;var v=f.dragStart.x,t=f.dragStart.y;switch(H){case 0:f.focusedCorner===1||f.focusedCorner===4?(v-=10,t-=10):(v-=10,t+=10);break;case 1:f.focusedCorner===1||f.focusedCorner===4?(v+=10,t+=10):(v+=10,t-=10);break;case 2:v=f.focusedCorner===1||f.focusedCorner===4?v-10:v+10;t-=10;break;case 3:v=f.focusedCorner===1||f.focusedCorner===4?v+10:v-10;t+=10;break;default:throw Error("El");}IlG(f,{x:v,y:t});$pt(f);f.action=2;f.dragStart=void 0}},yBG=function(f,H){H={x:Math.round(H.pageX-
f.canvas.getBoundingClientRect().left),
y:Math.round(H.pageY-f.canvas.getBoundingClientRect().top)};Oqt(f,H);switch(f.action){case 1:IlG(f,H);break;case 0:f.dragStart&&(f.JSC$20755_overlayMarginLeft=Math.max(f.horizontalMargin,Math.min(f.JSC$20755_overlayMarginLeft-(f.dragStart.x-H.x),f.horizontalMargin+f.scaledImageWidth-f.JSC$20755_overlayWidth)),f.JSC$20755_overlayMarginRight=f.canvas.width-f.JSC$20755_overlayMarginLeft-f.JSC$20755_overlayWidth,f.JSC$20755_overlayMarginTop=Math.max(f.canvasMargin,Math.min(f.JSC$20755_overlayMarginTop-
(f.dragStart.y-H.y),f.scaledImageHeight-f.JSC$20755_overlayHeight+f.canvasMargin)),f.JSC$20755_overlayMarginBottom=f.canvas.height-(f.JSC$20755_overlayMarginTop+f.JSC$20755_overlayHeight));break;default:return}$pt(f);f.dragStart=H},YOt=function(f){f.action=2;
f.dragStart=void 0;document.body.style.cursor="auto"},Oqt=function(f,H){switch(Wzh(f,H)){case 1:document.body.style.cursor="nw-resize";
break;case 3:document.body.style.cursor="ne-resize";break;case 2:document.body.style.cursor="sw-resize";break;case 4:document.body.style.cursor="se-resize";break;default:f.action!==1&&(document.body.style.cursor="auto")}},Wzh=function(f,H){var v=f.JSC$20755_overlayMarginLeft-5,t=f.JSC$20755_overlayMarginTop-5,M=f.JSC$20755_overlayMarginLeft+f.JSC$20755_overlayWidth-5;
f=f.JSC$20755_overlayMarginTop+f.JSC$20755_overlayHeight-5;return dpG(H,{x:v,y:t})?1:dpG(H,{x:M,y:t})?3:dpG(H,{x:v,y:f})?2:dpG(H,{x:M,y:f})?4:0},dpG=function(f,H){return f.x>=H.x&&f.x<=H.x+10&&f.y>=H.y&&f.y<=H.y+10},IlG=function(f,H){if(f.dragStart)switch(f.resizeCorner){case 2:Math.abs((f.JSC$20755_overlayMarginLeft+f.JSC$20755_overlayWidth-H.x)/(H.y-f.JSC$20755_overlayMarginTop))>=f.requiredRatio?jUp(f,H.x):sUW(f,H.y);
break;case 1:Math.abs((f.JSC$20755_overlayMarginLeft+f.JSC$20755_overlayWidth-H.x)/(f.JSC$20755_overlayMarginTop+f.JSC$20755_overlayHeight-H.y))>=f.requiredRatio?ZqW(f,H.x):sUW(f,H.y);break;case 4:Math.abs((H.x-f.JSC$20755_overlayMarginLeft)/(H.y-f.JSC$20755_overlayMarginTop))>=f.requiredRatio?jUp(f,H.x):JB0(f,H.y);break;case 3:Math.abs((H.x-f.JSC$20755_overlayMarginLeft)/(f.JSC$20755_overlayMarginTop+f.JSC$20755_overlayHeight-H.y))>=f.requiredRatio?ZqW(f,H.x):JB0(f,H.y);break;default:throw Error("Fl");
}},jUp=function(f,H){var v=f.JSC$20755_overlayMarginTop;
f.JSC$20755_overlayMarginBottom=lli(f,H);f.JSC$20755_overlayHeight=f.canvas.height-f.JSC$20755_overlayMarginBottom-v;f.JSC$20755_overlayWidth=Math.round(f.JSC$20755_overlayHeight*f.requiredRatio);UpA(f)},ZqW=function(f,H){var v=f.JSC$20755_overlayMarginTop+f.JSC$20755_overlayHeight;
f.JSC$20755_overlayMarginTop=lli(f,H);f.JSC$20755_overlayHeight=v-f.JSC$20755_overlayMarginTop;f.JSC$20755_overlayWidth=Math.round(f.JSC$20755_overlayHeight*f.requiredRatio);UpA(f)},UpA=function(f){switch(f.resizeCorner){case 2:case 1:f.JSC$20755_overlayMarginLeft=f.canvas.width-f.JSC$20755_overlayMarginRight-f.JSC$20755_overlayWidth;
break;case 4:case 3:f.JSC$20755_overlayMarginRight=f.canvas.width-f.JSC$20755_overlayMarginLeft-f.JSC$20755_overlayWidth;break;default:throw Error("Fl");}},sUW=function(f,H){var v=f.JSC$20755_overlayMarginLeft+f.JSC$20755_overlayWidth;
f.JSC$20755_overlayMarginLeft=e_x(f,H);f.JSC$20755_overlayWidth=v-f.JSC$20755_overlayMarginLeft;f.JSC$20755_overlayHeight=Math.round(f.JSC$20755_overlayWidth/f.requiredRatio);Lzx(f)},JB0=function(f,H){var v=f.JSC$20755_overlayMarginLeft;
f.JSC$20755_overlayMarginRight=e_x(f,H);f.JSC$20755_overlayWidth=f.canvas.width-f.JSC$20755_overlayMarginRight-v;f.JSC$20755_overlayHeight=Math.round(f.JSC$20755_overlayWidth/f.requiredRatio);Lzx(f)},Lzx=function(f){switch(f.resizeCorner){case 2:case 4:f.JSC$20755_overlayMarginBottom=f.canvas.height-f.JSC$20755_overlayMarginTop-f.JSC$20755_overlayHeight;
break;case 1:case 3:f.JSC$20755_overlayMarginTop=f.canvas.height-f.JSC$20755_overlayMarginBottom-f.JSC$20755_overlayHeight;break;default:throw Error("Fl");}},lli=function(f,H){switch(f.resizeCorner){case 2:H=f.canvas.height-(f.JSC$20755_overlayMarginTop+xpx(f,H));
break;case 4:H=f.canvas.height-(f.JSC$20755_overlayMarginTop+BwF(f,H));break;case 1:H=f.JSC$20755_overlayMarginTop+f.JSC$20755_overlayHeight-xpx(f,H);break;case 3:H=f.JSC$20755_overlayMarginTop+f.JSC$20755_overlayHeight-BwF(f,H);break;default:throw Error("Fl");}return Math.max(H,f.canvasMargin)},xpx=function(f,H){H=f.JSC$20755_overlayMarginLeft+f.JSC$20755_overlayWidth-Math.max(H,f.horizontalMargin);
H=H<0?f.JSC$20755_overlayWidth:Math.max(H,f.minOverlayWidth);return Math.round(H/f.requiredRatio)},BwF=function(f,H){H=f.canvas.width-Math.max(f.canvas.width-H,f.horizontalMargin)-f.JSC$20755_overlayMarginLeft;
H=H<0?f.JSC$20755_overlayWidth:Math.max(H,f.minOverlayWidth);return Math.round(H/f.requiredRatio)},e_x=function(f,H){switch(f.resizeCorner){case 2:H=f.canvas.width-f.JSC$20755_overlayMarginRight-z_0(f,H);
break;case 4:H=f.canvas.width-f.JSC$20755_overlayMarginLeft-z_0(f,H);break;case 1:H=f.canvas.width-f.JSC$20755_overlayMarginRight-Fzi(f,H);break;case 3:H=f.canvas.width-f.JSC$20755_overlayMarginLeft-Fzi(f,H);break;default:throw Error("Fl");}return Math.max(H,f.horizontalMargin)},z_0=function(f,H){H=f.canvas.height-Math.max(f.canvas.height-H,f.canvasMargin)-f.JSC$20755_overlayMarginTop;
return H<0?f.JSC$20755_overlayWidth:Math.max(Math.round(H*f.requiredRatio),f.minOverlayWidth)},Fzi=function(f,H){H=f.JSC$20755_overlayMarginTop+f.JSC$20755_overlayHeight-Math.max(H,f.canvasMargin);
return H<0?f.JSC$20755_overlayWidth:Math.max(Math.round(H*f.requiredRatio),f.minOverlayWidth)},$pt=function(f){f.ctx.clearRect(0,0,f.canvas.width,f.canvas.height);
f.ctx.drawImage(f.image,0,0,f.image.width,f.image.height,f.horizontalMargin,f.canvasMargin,f.canvas.width-2*f.horizontalMargin,f.scaledImageHeight);f.ctx.fillStyle="rgba(0, 0, 0, 0.7)";f.ctx.fillRect(f.horizontalMargin,f.JSC$20755_overlayMarginTop,f.JSC$20755_overlayMarginLeft-f.horizontalMargin,f.JSC$20755_overlayHeight);f.ctx.fillRect(f.JSC$20755_overlayMarginLeft+f.JSC$20755_overlayWidth,f.JSC$20755_overlayMarginTop,f.JSC$20755_overlayMarginRight-f.horizontalMargin,f.JSC$20755_overlayHeight);f.ctx.fillRect(f.horizontalMargin,
f.canvasMargin,f.scaledImageWidth,f.JSC$20755_overlayMarginTop-f.canvasMargin);f.ctx.fillRect(f.horizontalMargin,f.JSC$20755_overlayMarginTop+f.JSC$20755_overlayHeight,f.scaledImageWidth,f.JSC$20755_overlayMarginBottom-f.canvasMargin);f.drawOverlay();f.component&&_.YE(f.component,"image-updated")};
dE.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$20755_overlayMarginLeft,this.JSC$20755_overlayMarginTop,this.JSC$20755_overlayWidth,this.JSC$20755_overlayHeight);rBi(this)};
var rBi=function(f){var H=f.JSC$20755_overlayMarginLeft-5,v=f.JSC$20755_overlayMarginTop-5,t=f.JSC$20755_overlayMarginLeft+f.JSC$20755_overlayWidth-5,M=f.JSC$20755_overlayMarginTop+f.JSC$20755_overlayHeight-5;f.ctx.fillStyle="#FFF";f.ctx.fillRect(H,v,10,10);f.ctx.strokeRect(H,v,10,10);f.ctx.fillRect(t,v,10,10);f.ctx.strokeRect(t,v,10,10);f.ctx.fillRect(H,M,10,10);f.ctx.strokeRect(H,M,10,10);f.ctx.fillRect(t,M,10,10);f.ctx.strokeRect(t,M,10,10);if(f.focusedCorner!==0&&f.styleFocusedCorner){f.ctx.lineWidth=
4;f.ctx.strokeStyle="#3EA6FF";switch(f.focusedCorner){case 1:--H;--v;break;case 2:--H;v=M-1;break;case 3:H=t-1;--v;break;case 4:H=t-1;v=M-1;break;default:return}f.ctx.strokeRect(H,v,12,12)}};
dE.prototype.crop=function(f,H){H=H===void 0?!0:H;var v=this.image.width/this.scaledImageWidth,t=document.createElement("canvas"),M=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],h=this.JSC$20755_overlayWidth*v,y=this.JSC$20755_overlayHeight*v;t.width=Math.max(h,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);t.height=Math.max(y,M);f&&(t.width=Math.min(t.width,t.height),t.height=Math.min(t.width,t.height));
f=t.getContext("2d");if(!f)throw Error("tl");M=(this.JSC$20755_overlayMarginLeft-this.horizontalMargin)*v;v*=this.JSC$20755_overlayMarginTop-this.canvasMargin;H||(f.fillStyle="white",f.fillRect(0,0,t.width,t.height));f.drawImage(this.image,M,v,h,y,0,0,t.width,t.height);return t};var KzF=function(f,H,v,t,M){dE.call(this,f,H,v,t,void 0,M,8,!1)};
_.e(KzF,dE);KzF.prototype.drawOverlay=function(){var f=this.getContext(),H=this.JSC$20755_overlayWidth,v=this.JSC$20755_overlayHeight,t=this.JSC$20755_overlayMarginTop,M=this.JSC$20755_overlayMarginLeft;f.lineWidth=2;f.strokeStyle="#3EA6FF";f.beginPath();f.arc(M+H/2,t+v/2,H/2,0,2*Math.PI);f.stroke();f.strokeRect(M,t,H,v);rBi(this)};
var Dph={maxFileSizeMB:15,minWidth:98,minHeight:98},o9G=["image/png","image/jpeg","image/gif"],jC=function(){var f=_.K.apply(this,arguments)||this;f.fileSelectorFocusListener=null;f.errorMessage=null;f.isLoading=!0;f.hideContainer=!0;f.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return f};
_.e(jC,_.K);_.R=jC.prototype;_.R.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.R.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.R.computePlaylistThumbnail=function(f){return f==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.R.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.mb(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.R.setErrorState=function(f){this.resetErrorState();f&&(this.errorMessage=f)};
_.R.showPopup=function(){var f=this;this.hideContainer=!1;_.Lb(_.nN,function(){_.YE(f.hostElement,"yt-refit")});
this.isLoading=!1};
_.R.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.R.closePopup=function(){this.resetFileSelector();_.mb(this.hostElement,"yt-close-popup-action",[this.is])};
_.R.onCancelTap=function(){this.isPlaylistThumbnail||_.mb(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.R.openFileSelector=function(){var f=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.Lb(_.nN,function(){setTimeout(function(){if(!f.fileSelector.files||f.fileSelector.files.length===0)f.onCancelTap();f.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(H){H instanceof Error?_.oO(H):_.nb(new _.e$(JSON.stringify(H)))}};
_.R.handleFileSelection=function(){var f=this,H,v,t,M,h,y;return _.Y(function(m){switch(m.nextAddress){case 1:_.Zc(m,2);if(!f.fileSelector.files||!f.imageEditorCanvas)return f.onCancelTap(),m.return();H=f.fileSelector.files[0];h_t(f.imageChecker,H);_.Zc(m,4);return m.yield(Oui(H),6);case 6:f.mimeType=m.yieldResult;_.ch(m,5,2);break;case 4:_.xu(m,2),_.mb(f.hostElement,"yt-image-selection-error-action",[(v=f.data)==null?void 0:v.genericImageLoadErrorMessage]),f.onCancelTap();case 5:t=new FileReader;
t.addEventListener("load",function(){var W,I;return _.Y(function(S){if(S.nextAddress==1){if(!t.result)return _.pb(Error("vl")),S.return();W=t.result;I=new Image;I.src=W;I.onload=function(){try{var d=f.imageChecker;if(I.width<d.requirements.minWidth||I.height<d.requirements.minHeight)throw new tJW(d.requirements.minWidth,d.requirements.minHeight);}catch(l){if(l instanceof tJW){var Z;_.mb(f.hostElement,"yt-image-selection-error-action",[(Z=f.data)==null?void 0:Z.imageDimensionErrorMessage]);f.logImageDimensionErrorVe()}else l instanceof
Error?_.oO(l):(d=new _.e$(JSON.stringify(l)),_.oO(d));f.onCancelTap()}f.showPopup()};
I.onerror=function(){var d;_.mb(f.hostElement,"yt-image-selection-error-action",[(d=f.data)==null?void 0:d.genericImageLoadErrorMessage]);f.onCancelTap()};
return S.yield(mpG(f.imageEditorCanvas,W),2)}f.imageEditor=S.yieldResult;f.updatePositionOfAllCorners();f.addEventListeners(f.imageEditor);_.Bj(S)})},!1);
t.readAsDataURL(H);_.ch(m,0);break;case 2:M=_.xu(m),M instanceof SC?_.mb(f.hostElement,"yt-image-selection-error-action",[(h=f.data)==null?void 0:h.imageSizeErrorMessage]):(M instanceof Error?_.oO(M):_.nb(new _.e$(JSON.stringify(M))),_.mb(f.hostElement,"yt-image-selection-error-action",[(y=f.data)==null?void 0:y.genericImageLoadErrorMessage])),f.onCancelTap(),_.Bj(m)}})};
_.R.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var f=_.lV(_.UV(),{veType:232707,visualElement:_.$$(232707)});f&&(f={visualElement:f},_.JV().reportShown(f))}};
_.R.handleImageSelectionErrorAction=function(f){this.isPlaylistThumbnail&&_.ZFg(this.hostElement,f)};
_.R.convertToImageFormatBundle=function(f){var H=this,v,t,M;return _.Y(function(h){switch(h.nextAddress){case 1:return v=f.toDataURL(H.outputMimeType,1),h.yield(g6p(v),2);case 2:t=h.yieldResult;_.Zc(h,3);h_t(H.imageChecker,t);_.ch(h,4);break;case 3:M=_.xu(h);if(!(M instanceof SC))throw M;_.pb(new _.e$("Output size is bigger than input size for image",H.mimeType,H.outputMimeType,t.size));v=f.toDataURL("image/jpeg",.95);return h.yield(g6p(v),6);case 6:t=h.yieldResult;case 4:return h.return({dataUrl:v,
imageFile:t})}})};
_.R.handleUploadImageToScottyCommand=function(f){var H=this,v,t,M,h,y,m,W,I,S,d;return _.Y(function(Z){switch(Z.nextAddress){case 1:if(!H.imageEditor||!_.U(f,ApG))return Z.return();v=_.U(f,ApG).scottyUploadUrl;if(!v){var l=new _.e$("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.oO(l);return Z.return()}_.Zc(Z,2);H.setLoadingState();t=H.imageEditor.crop(!1,!1);return Z.yield(H.convertToImageFormatBundle(t),4);case 4:return M=Z.yieldResult,Z.yield($E0(M.imageFile,v),5);
case 5:h=Z.yieldResult;((y=H.data)==null?0:y.onUploadEndpoint)?(m=H.buildUploadServiceEndpoint(h),H.ytComponentBehavior.resolveCommand(m),W=_.U(m,_.Kv),((I=W)==null?0:I.params)?H.closePopup():H.resetFileSelector()):(_.mb(H.hostElement,"yt-image-updated-action",[M.dataUrl,h]),H.closePopup());_.ch(Z,0);break;case 2:S=_.xu(Z),H.setErrorState((d=H.data)==null?void 0:d.uploadErrorMessage),S instanceof Error?_.oO(S):(l=new _.e$(JSON.stringify(S)),_.oO(l)),_.Bj(Z)}})};
_.R.buildUploadServiceEndpoint=function(f){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",f),this.data.onUploadEndpoint):null};
_.R.dataChanged=function(){var f=this,H;return _.Y(function(v){if(v.nextAddress==1){if(!f.data||!f.canvasElement)return v.return();f.data.imageRatio&&f.data.minImageCropWidth||_.nb(new _.e$("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));H=function(t,M){return f.data.imageType==="IMAGE_TYPE_AVATAR"?new KzF(t,M,f.data.imageRatio,[f.data.minImageCropWidth,f.data.minImageCropWidth/f.data.imageRatio],f.hostElement):new dE(t,M,f.data.imageRatio,[f.data.minImageCropWidth,
f.data.minImageCropWidth/f.data.imageRatio],void 0,f.hostElement,8,!1)};
f.imageEditorCanvas=new R_w(f.canvasElement,H);return f.data.url?v.yield(mpG(f.imageEditorCanvas,f.data.url),3):(f.hideContainer=!0,f.openFileSelector(),v.jumpTo(0))}f.imageEditor=v.yieldResult;f.showPopup();f.addEventListeners(f.imageEditor);_.Bj(v)})};
_.R.addEventListeners=function(f){this.removeEventListeners();var H=function(M){VJx(f,M)};
this.JSC$20763_mouseDownEvent=H;var v=function(M){yBG(f,M)};
this.JSC$20763_mouseMoveEvent=v;var t=function(){YOt(f)};
this.JSC$20763_mouseUpEvent=t;this.topLeftCorner.addEventListener("mousedown",H);this.topLeftCorner.addEventListener("mousemove",v);this.topLeftCorner.addEventListener("mouseup",t);this.topRightCorner.addEventListener("mousedown",H);this.topRightCorner.addEventListener("mousemove",v);this.topRightCorner.addEventListener("mouseup",t);this.bottomLeftCorner.addEventListener("mousedown",H);this.bottomLeftCorner.addEventListener("mousemove",v);this.bottomLeftCorner.addEventListener("mouseup",t);this.bottomRightCorner.addEventListener("mousedown",
H);this.bottomRightCorner.addEventListener("mousemove",v);this.bottomRightCorner.addEventListener("mouseup",t)};
_.R.removeEventListeners=function(){this.JSC$20763_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$20763_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$20763_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$20763_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$20763_mouseDownEvent));this.JSC$20763_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$20763_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$20763_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$20763_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$20763_mouseMoveEvent));this.JSC$20763_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$20763_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$20763_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$20763_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$20763_mouseUpEvent))};
_.R.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var f=document.activeElement;f&&f.shadowRoot&&f.shadowRoot.activeElement;)f=f.shadowRoot.activeElement;switch(f){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};
_.R.updatePositionOfCorner=function(f,H){var v=f.y-H.offsetHeight/2+4;H.style.left=f.x-H.offsetWidth/2+16+"px";H.style.top=v+"px"};
_.R.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var f=_.V([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),H=f.next();!H.done;H=f.next()){H=H.value;var v=g9W(this.imageEditor,H.corner);this.updatePositionOfCorner(v,H.div)}};
_.R.onLeft=function(f){this.imageEditor&&this.setFocusInImageEditor()&&(SO5(this.imageEditor,0),this.updatePositionOfAllCorners(),f.preventDefault())};
_.R.onRight=function(f){this.imageEditor&&this.setFocusInImageEditor()&&(SO5(this.imageEditor,1),this.updatePositionOfAllCorners(),f.preventDefault())};
_.R.onUp=function(f){this.imageEditor&&this.setFocusInImageEditor()&&(SO5(this.imageEditor,2),this.updatePositionOfAllCorners(),f.preventDefault())};
_.R.onDown=function(f){this.imageEditor&&this.setFocusInImageEditor()&&(SO5(this.imageEditor,3),this.updatePositionOfAllCorners(),f.preventDefault())};
_.R.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.H7.Object.defineProperties(jC.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&o9G.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var f,H,v;((H=this.data)==null?0:H.imageRatio)&&((v=this.data)==null?0:v.minImageCropWidth)?f={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:f=Dph;return new MJx(f)}}});
jC.prototype.updatePositionOfAllCorners=jC.prototype.updatePositionOfAllCorners;jC.prototype.dataChanged=jC.prototype.dataChanged;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],jC.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],jC.prototype,"ytComponentBehavior",void 0);_.E([_.B(_.dS),_.N("design:type",Object)],jC.prototype,"ironA11yKeysBehavior",void 0);
_.E([_.lJ("#canvas"),_.N("design:type",HTMLCanvasElement)],jC.prototype,"canvasElement",void 0);_.E([_.lJ("#file-selector"),_.N("design:type",HTMLInputElement)],jC.prototype,"fileSelector",void 0);_.E([_.lJ("#top-left-corner"),_.N("design:type",HTMLDivElement)],jC.prototype,"topLeftCorner",void 0);_.E([_.lJ("#top-right-corner"),_.N("design:type",HTMLDivElement)],jC.prototype,"topRightCorner",void 0);
_.E([_.lJ("#bottom-left-corner"),_.N("design:type",HTMLDivElement)],jC.prototype,"bottomLeftCorner",void 0);_.E([_.lJ("#bottom-right-corner"),_.N("design:type",HTMLDivElement)],jC.prototype,"bottomRightCorner",void 0);_.E([_.F(),_.N("design:type",Object)],jC.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],jC.prototype,"errorMessage",void 0);_.E([_.F(),_.N("design:type",Object)],jC.prototype,"isLoading",void 0);_.E([_.F(),_.N("design:type",Object)],jC.prototype,"hideContainer",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.N("design:type",Boolean)],jC.prototype,"isPlaylistThumbnail",void 0);_.E([_.xV("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],jC.prototype,"dataChanged",null);_.E([_.sE("image-updated"),_.sE("yt-refit"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jC.prototype,"updatePositionOfAllCorners",null);
_.E([_.GW({is:"yt-image-editor-renderer",disableElementRegistration:!0})],jC);
_.G(jC,"yt-image-editor-renderer",function(){if(v95===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;Hqb===void 0&&(Hqb=document.createElement("template"));var t=Hqb;v.call(H,t.content.cloneNode(!0),f.content.firstChild);v95=f}f=v95;return f},{mode:2});var n9x;var plx;var sG=function(){return _.K.apply(this,arguments)||this};
_.e(sG,_.K);sG.prototype.updateMinutesFromBinding=function(f){this.handleMinutesChanged&&this.handleMinutesChanged(f)};
sG.prototype.updateSecondsFromBinding=function(f){this.handleSecondsChanged&&this.handleSecondsChanged(f)};
sG.prototype.updateDescriptionFromBinding=function(f){this.handleDescriptionChanged&&this.handleDescriptionChanged(f)};
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],sG.prototype,"ytComponentBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],sG.prototype,"data",void 0);_.E([_.F(),_.N("design:type",String)],sG.prototype,"minutes",void 0);_.E([_.F(),_.N("design:type",String)],sG.prototype,"seconds",void 0);_.E([_.F(),_.N("design:type",String)],sG.prototype,"description",void 0);_.E([_.F(),_.N("design:type",Function)],sG.prototype,"handleMinutesChanged",void 0);
_.E([_.F(),_.N("design:type",Function)],sG.prototype,"handleSecondsChanged",void 0);_.E([_.F(),_.N("design:type",Function)],sG.prototype,"handleDescriptionChanged",void 0);_.E([_.F(),_.N("design:type",Number)],sG.prototype,"characterLimit",void 0);_.E([_.F(),_.N("design:type",Number)],sG.prototype,"textNumRows",void 0);_.E([_.GW({is:"yt-report-details-form-content",disableElementRegistration:!0})],sG);
_.G(sG,"yt-report-details-form-content",function(){if(plx===void 0){var f=document.createElement("template");_.x(f,'\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>');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;n9x===void 0&&(n9x=document.createElement("template"));var t=n9x;v.call(H,t.content.cloneNode(!0),f.content.firstChild);plx=f}f=plx;return f},{mode:2});var QUA;var u8h;var Z9=function(){var f=_.K.apply(this,arguments)||this;f.updateMinutesFromBinding=function(H){f.minutes=H.detail.value};
f.updateSecondsFromBinding=function(H){f.seconds=H.detail.value};
f.updateDescriptionFromBinding=function(H){f.description=H.detail.value};
return f};
_.e(Z9,_.K);_.R=Z9.prototype;_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.R.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"}}}};
_.R.ready=function(){_.mF(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.R.onSubmitYtAction=function(f){var H=f.detail;H.actionName==="yt-service-request"&&(H=H.args[1],H.flagEndpoint&&(f.stopPropagation(),this.refireAction(H)))};
_.R.refireAction=function(f){var H={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(H.vss_id=this.vssId);_.WV(this.hostElement,[f,H]);this.submitDisabled=!0};
_.R.dataChanged=function(){var f=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var H=_.vx();H&&H.getPlayerPromise().then(function(v){var t=v.getOption("cc","track")||v.getOption("captions","track");t&&(f.vssId=t.vss_id);v=v.getCurrentTime();f.minutes=Math.floor(v/60).toString();f.seconds=(Math.floor(v)%60).toString()})};
_.R.updateSubmitButtonState=function(){var f;((f=this.data)==null?0:f.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==="")};
_.R.onYtServiceRequestCompleted=function(){_.mb(this.hostElement,"yt-close-popup-action")};
_.R.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.H7.Object.defineProperties(Z9.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var f;return((f=this.data)==null?void 0:f.textNumRows)||4}}});
Z9.prototype.onYtServiceRequestError=Z9.prototype.onYtServiceRequestError;Z9.prototype.onYtServiceRequestCompleted=Z9.prototype.onYtServiceRequestCompleted;Z9.prototype.updateSubmitButtonState=Z9.prototype.updateSubmitButtonState;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Z9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Z9.prototype,"ytRendererBehavior",void 0);
_.E([_.F({observer:"dataChanged"}),_.N("design:type",Object)],Z9.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Boolean)],Z9.prototype,"submitDisabled",void 0);_.E([_.F(),_.N("design:type",String)],Z9.prototype,"minutes",void 0);_.E([_.F(),_.N("design:type",String)],Z9.prototype,"seconds",void 0);_.E([_.F(),_.N("design:type",String)],Z9.prototype,"description",void 0);_.E([_.F(),_.N("design:type",String)],Z9.prototype,"vssId",void 0);
_.E([_.F({value:_.a8("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.N("design:type",Boolean)],Z9.prototype,"isMusic",void 0);_.E([_.z("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],Z9.prototype,"characterLimit",null);_.E([_.z("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],Z9.prototype,"textNumRows",null);
_.E([_.xV("minutes","seconds","description","submitDisabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Z9.prototype,"updateSubmitButtonState",null);_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Z9.prototype,"onYtServiceRequestCompleted",null);
_.E([_.sE("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Z9.prototype,"onYtServiceRequestError",null);_.E([_.GW({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],Z9);
_.G(Z9,"yt-report-details-form-renderer",function(){if(u8h===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;QUA===void 0&&(QUA=document.createElement("template"));var t=QUA;v.call(H,t.content.cloneNode(!0),f.content.firstChild);u8h=f}f=u8h;return f});var alt;var Pob;var Gtx;var CoW;var Ju=function(){return _.K.apply(this,arguments)||this};
_.e(Ju,_.K);
Ju.prototype.onCheckedChanged_=function(){if(this.data){var f=_.mF(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.mb(this.hostElement,"yt-additional-detail-checkbox-update",[f]):this.data.identifier==="yt-hide-user-checkbox"?_.mb(this.hostElement,"yt-hide-user-checkbox-update",[f]):f&&this.data.enableCommand?_.mb(this.hostElement,"yt-modify-report-form-command",[_.U(this.data.enableCommand,fsx)]):!f&&this.data.disableCommand&&_.mb(this.hostElement,
"yt-modify-report-form-command",[_.U(this.data.enableCommand,fsx)])}};
Ju.prototype.onLabelTap_=function(f){f.target.tagName!="A"&&(_.mF(this.hostElement).querySelector("#checkbox").checked=!_.mF(this.hostElement).querySelector("#checkbox").checked)};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Ju.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Ju.prototype,"data",void 0);_.E([_.GW({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],Ju);
_.G(Ju,"yt-boolean-form-field-v2-renderer",function(){if(CoW===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;Gtx===void 0&&(Gtx=document.createElement("template"));var t=Gtx;v.call(H,t.content.cloneNode(!0),f.content.firstChild);CoW=f}f=CoW;return f});var l2=function(){var f=_.K.apply(this,arguments)||this;f.canShowAdditionalDetailCheckbox=!1;f.canShowCheckbox=!1;f.keepDropdownFocusedAfterSelection=!0;return f};
_.e(l2,_.K);l2.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}}}}};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],l2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],l2.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],l2.prototype,"canShowAdditionalDetailCheckbox",void 0);_.E([_.F(),_.N("design:type",Object)],l2.prototype,"canShowCheckbox",void 0);_.E([_.F(),_.N("design:type",Object)],l2.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.E([_.GW({is:"yt-report-form-modal-content",disableElementRegistration:!0})],l2);
_.G(l2,"yt-report-form-modal-content",function(){if(Pob===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;alt===void 0&&(alt=document.createElement("template"));var t=alt;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Pob=f}f=Pob;return f},{mode:2});var E9h;var NwG;var UG=function(){var f=_.K.apply(this,arguments)||this;f.submitting=!1;f.submitButtonDisabled=!0;f.command=null;f.canShowCheckbox=!1;f.canShowAdditionalDetailCheckbox=!1;f.canShowNextButton=!1;f.additionalDetailCheckboxChecked=!1;f.refitJob=0;f.keepDropdownFocusedAfterSelection=!0;f.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 f};
_.e(UG,_.K);_.R=UG.prototype;_.R.created=function(){this.refitJob=0};
_.R.attached=function(){this.JSC$20786_scroller&&(this.JSC$20786_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20786_scroller.attached&&typeof this.JSC$20786_scroller.attached==="function"&&this.JSC$20786_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.dataChanged=function(f){f&&(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,f.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),f.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.R.onYtPopupOpened=function(){var f=_.vx();f&&f.getPlayerPromise().then(function(H){H.pauseVideo()})};
_.R.onYtNavigate=function(f){_.U(f.detail.endpoint,_.Hhb)&&(f.stopPropagation(),this.hideReportForm=!0)};
_.R.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.R.onYtServiceRequestCompleted=function(f,H){var v=H.actions;if(v){if(v.length===1&&_.U(v[0],_.Ir)){var t;v=((t=_.U(v[0],_.Ir))==null?void 0:t.commands)||[]}t=0;for(var M=v.length;t<M;t++)_.U(v[t],_.Up)&&(f.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(v[t]))}if(H.data&&(f=this.get("feedbackResponses",H.data)))for(H=0;H<f.length;H++)if(f[H].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.R.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.R._onDescendantIronResize=function(f){f.stopPropagation();return!1};
_.R.handleReportFormEndpointUpdateAction=function(f){if(f.submitEndpoint){var H=this.command=f.submitEndpoint;H=_.U(H,_.wC9);if(H==null?0:H.additionalDetailCheckboxChecked)H.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else f.submitNavigationEndpoint?(this.command=f.submitNavigationEndpoint,this.toggleSubmitButton(!1)):f.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:f.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;f.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",f));this.refit()};
_.R.handleConfirmDialogCloseAction=function(f){f.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.R.submitButtonDisabledChanged=function(){var f=this.hostElement.parentElement;f&&f.invalidateTabbables&&f.invalidateTabbables()};
_.R.handleModifyReportFormCommand=function(f){f=this.get("action",f);f==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:f==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:f==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:f==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:f==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:f==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.R.updateDialogStyling=function(){var f,H,v,t,M,h=((M=(f=this.data)==null?void 0:(H=f.optionsSupportedRenderers)==null?void 0:(v=H.optionsRenderer)==null?void 0:(t=v.items)==null?void 0:t.length)!=null?M:0)<=2?0:240;_.Sr(this.hostElement,{"--yt-report-form-modal-renderer-min-width":h+"px"})};
_.R.toggleSubmitButton=function(f){this.submitButtonDisabled=!f;this.submitButtonDisabled=f};
_.R.computeSubmitButtonData=function(f,H){var v={};_.U(H,_.Hhb)?v.navigationEndpoint=H:v.command=H||void 0;f&&f.buttonRenderer&&_.QA.extend(v,f.buttonRenderer);return v};
_.R.computeNextButtonData=function(f,H){var v={};if(!f||!f.buttonRenderer)return v;_.QA.extend(v,f.buttonRenderer);if(!H)return v;if(_.U(H,_.Hhb))v.navigationEndpoint=Ib0(H);else if(v.command=Ib0(H),f=_.U(v.command,_.wC9))f.legalCheckboxChecked=!0;return v};
_.R.computeShowNextButton=function(f,H,v){return!!f&&H&&v};
_.R.refit=function(){var f=this;this.refitJob||(this.refitJob=_.nN.addLowPriorityJob(function(){_.YE(f.hostElement,"yt-refit");f.refitJob=0}))};
_.R.handleAdditionalDetailCheckboxUpdateAction=function(f){this.additionalDetailCheckboxChecked=f;_.U(this.command,_.wC9).additionalDetailCheckboxChecked=f};
_.H7.Object.defineProperties(UG,{template:{configurable:!0,enumerable:!0,get:function(){if(NwG===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;E9h===void 0&&(E9h=document.createElement("template"));var t=E9h;v.call(H,t.content.cloneNode(!0),f.content.firstChild);NwG=f}f=NwG;return f}}});
UG.prototype.onYtServiceRequestError=UG.prototype.onYtServiceRequestError;UG.prototype.onYtServiceRequestCompleted=UG.prototype.onYtServiceRequestCompleted;UG.prototype.onYtServiceRequestSent=UG.prototype.onYtServiceRequestSent;UG.prototype.onYtNavigate=UG.prototype.onYtNavigate;UG.prototype.onYtPopupOpened=UG.prototype.onYtPopupOpened;_.E([_.B(_.IM.YtOpenPopupBehavior),_.N("design:type",Object)],UG.prototype,"openPopupBehavior",void 0);
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],UG.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],UG.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.lv.YtEventForwardingBehavior),_.N("design:type",Object)],UG.prototype,"eventForwardingBehavior",void 0);_.E([_.B(_.x3),_.N("design:type",Object)],UG.prototype,"ironResizableBehavior",void 0);_.E([_.F({observer:"dataChanged"}),_.N("design:type",Object)],UG.prototype,"data",void 0);
_.E([_.F(),_.N("design:type",Object)],UG.prototype,"submitting",void 0);_.E([_.F({observer:"submitButtonDisabledChanged"}),_.N("design:type",Object)],UG.prototype,"submitButtonDisabled",void 0);_.E([_.F(),_.N("design:type",Object)],UG.prototype,"command",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],UG.prototype,"hideReportForm",void 0);_.E([_.F(),_.N("design:type",Object)],UG.prototype,"canShowCheckbox",void 0);
_.E([_.F(),_.N("design:type",Object)],UG.prototype,"canShowAdditionalDetailCheckbox",void 0);_.E([_.F(),_.N("design:type",Object)],UG.prototype,"canShowNextButton",void 0);_.E([_.F(),_.N("design:type",Object)],UG.prototype,"additionalDetailCheckboxChecked",void 0);_.E([_.F(),_.N("design:type",Object)],UG.prototype,"refitJob",void 0);_.E([_.F(),_.N("design:type",Object)],UG.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.E([_.lJ("#scroller"),_.N("design:type",Object)],UG.prototype,"JSC$20786_scroller",void 0);_.E([_.sE("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UG.prototype,"onYtPopupOpened",null);_.E([_.sE("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],UG.prototype,"onYtNavigate",null);
_.E([_.sE("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.ER]),_.N("design:returntype")],UG.prototype,"onYtServiceRequestSent",null);_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.TI]),_.N("design:returntype")],UG.prototype,"onYtServiceRequestCompleted",null);
_.E([_.sE("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],UG.prototype,"onYtServiceRequestError",null);_.E([_.GW({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],UG);var cBx;var Xlx;var eC=function(){return _.K.apply(this,arguments)||this};
_.e(eC,_.K);_.R=eC.prototype;_.R.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.R.onVisible=function(){var f,H;(H=_.t8().resolve(_.vh(_.eS)))==null||H.enqueue({label:_.fG((f=this.data)==null?void 0:f.messageTitle),elementToFocus:this.hostElement})};
_.R.onThumbnailLoaded=function(){_.YE(this.hostElement,"yt-refit")};
_.R.onDismissTap=function(){_.mb(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.R.computeAlternateIcon=function(f){return f?f==="BACKSTAGE_ARTWORK"?"backstage:artwork":f:null};
_.R.computeFontFamily=function(f){return f==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.R.computeBackgroundStyle=function(f,H){if(f=this.computeBackgroundImage(f,H))if(f=_.m3(f.thumbnails))return'background-image: url("'+f+'");'};
_.R.computeHasFullHeightImage=function(f){return!(!(f&&f.thumbnails&&f.thumbnails.length>0)||this.modern)};
_.R.isModernStyle=function(f){return f.style==="STYLE_MODERN"};
_.R.computeIcon=function(f,H){if(f&&f.icon)return H?f.iconDark:f.icon};
_.R.computeBackgroundImage=function(f,H){if(f&&f.backgroundImage)return H?f.backgroundImageDark:f.backgroundImage};
_.R.computeLogo=function(f,H){if(f&&f.logo)return H?f.logoDark:f.logo};
_.R.computeShouldShowModernIcon=function(f,H){return f&&!!H};
_.R.getLogoContainerClassName=function(f){return this.logoWithPadding(f)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.R.getLogoImageId=function(f){return this.logoWithPadding(f)?"mealbar-logo-with-padding":"mealbar-logo"};
_.R.logoWithPadding=function(f){var H,v,t;return(f=(H=this.computeLogo(f,this.isDarkTheme))==null?void 0:(v=H.thumbnails)==null?void 0:(t=v[0])==null?void 0:t.height)&&f%31===0?!0:!1};
eC.prototype.onThumbnailLoaded=eC.prototype.onThumbnailLoaded;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],eC.prototype,"ytRendererBehavior",void 0);_.E([_.F({}),_.N("design:type",Object)],eC.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.N("design:type",Boolean)],eC.prototype,"modern",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],eC.prototype,"isDarkTheme",void 0);
_.E([_.F({computed:"computeIcon(data, isDarkTheme)"}),_.N("design:type",Object)],eC.prototype,"icon",void 0);_.E([_.F({computed:"computeLogo(data, isDarkTheme)"}),_.N("design:type",Object)],eC.prototype,"logo",void 0);_.E([_.F({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.N("design:type",Object)],eC.prototype,"backgroundStyle",void 0);_.E([_.F({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.N("design:type",Object)],eC.prototype,"alternateIcon",void 0);
_.E([_.F({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.N("design:type",Boolean)],eC.prototype,"hasFullHeightImage",void 0);_.E([_.F({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.N("design:type",Boolean)],eC.prototype,"useYoutubeSans",void 0);_.E([_.F({computed:"computeShouldShowModernIcon(modern, icon)"}),_.N("design:type",Boolean)],eC.prototype,"shouldShowModernIcon",void 0);
_.E([_.sE("yt-img-shadow-loaded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],eC.prototype,"onThumbnailLoaded",null);_.E([_.GW({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],eC);
_.G(eC,"yt-mealbar-promo-renderer",function(){if(Xlx===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;cBx===void 0&&(cBx=document.createElement("template"));var t=cBx;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Xlx=f}f=Xlx;return f},{mode:2});var ABh;var bqp;var Ls=function(){return _.K.apply(this,arguments)||this};
_.e(Ls,_.K);_.R=Ls.prototype;_.R.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]]"}}}}}};
_.R.computeHasButtons_=function(f){return!(!f.dismissButton&&!f.acceptButton)};
_.R.computeStyle_=function(f){return f||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.R.observeImpressionEndpoints_=function(){var f=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(H){H.clickTrackingParams&&delete H.clickTrackingParams;_.WV(f.hostElement,[H])})};
_.R.onTap_=function(){_.mb(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
Ls.prototype.observeImpressionEndpoints_=Ls.prototype.observeImpressionEndpoints_;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Ls.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.lv.YtEventForwardingBehavior),_.N("design:type",Object)],Ls.prototype,"ytEventForwardingBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Ls.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Ls.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Ls.prototype,"positionType",void 0);_.E([_.F({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.N("design:type",Boolean)],Ls.prototype,"hasButtons_",void 0);_.E([_.F({value:function(){return this.onTap_.bind(this)}}),
_.N("design:type",Function)],Ls.prototype,"boundOnTap_",void 0);_.E([_.F({value:{style:"mono-inverse"}}),_.N("design:type",Object)],Ls.prototype,"buttonOverride",void 0);_.E([_.Zw("data.promoConfig.impressionEndpoints"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ls.prototype,"observeImpressionEndpoints_",null);_.E([_.GW({is:"yt-tooltip-renderer",disableElementRegistration:!0})],Ls);
_.G(Ls,"yt-tooltip-renderer",function(){if(bqp===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;ABh===void 0&&(ABh=document.createElement("template"));var t=ABh;v.call(H,t.content.cloneNode(!0),f.content.firstChild);bqp=f}f=bqp;return f},{mode:2});var iq0;var ktp;var Twx={},wlw=(Twx.WEB_REMIX="music.youtube.com",Twx),xy=function(){var f=_.K.apply(this,arguments)||this;f.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return f};
_.e(xy,_.K);_.R=xy.prototype;_.R.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.created=function(){this.embedHost_=wlw[_.a8("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.R.ready=function(){_.mF(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.R.computeEmbedCode_=function(f,H,v,t,M){if(!f)return"";var h=f.videoId,y=f.fullListId,m=[];f.attributionId&&m.push("si="+f.attributionId);t||m.push("controls=0");v&&Number(H)>0&&m.push("start="+H);y&&(h="videoseries",m.push("list="+y));v="https://"+(M?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+h;f.clipId&&(m.push("clip="+f.clipId),m.push("clipt="+f.clipTiming));H=m.length>0?v+"?"+m.join("&amp;"):v;f.encryptedEmbedConfig&&m.push("embed_config="+JSON.stringify({enc:f.encryptedEmbedConfig}));
m=m.length>0?v+"?"+m.join("&amp;"):v;_.J("web_sharing_embed_preview_killswitch")?_.mF(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(m,f.previewWidth||854,f.previewHeight||480):(_.L6(this.videoPreviewContainer),_.mF(this.videoPreviewContainer).appendChild(this.buildIframeElement(m)));return this.getEmbedCode_(H,f.width||560,f.height||315)};
_.R.buildIframeElement=function(f){var H=document.createElement("iframe"),v,t;H.width=""+((t=(v=this.data)==null?void 0:v.previewWidth)!=null?t:854);var M,h;H.height=""+((h=(M=this.data)==null?void 0:M.previewHeight)!=null?h:480);_.fcg(H,2,f);H.title="YouTube video player";H.frameBorder="0";H.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";H.referrerPolicy="strict-origin-when-cross-origin";H.allowFullscreen=!0;return H};
_.R.computeIsSquareAspectRatio_=function(f){return f.previewHeight&&f.previewWidth?f.previewHeight==f.previewWidth:!1};
_.R.computeShowEmbedOptions_=function(f){return!!f.enablePrivacyModeOptionLabel||!!f.showPlayerControlsOptionLabel};
_.R.getEmbedCode_=function(f,H,v){return'<iframe width="'+H+'" height="'+v+'" src="'+f+'" 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>'};
_.R.handleSignalActionCopyShareEmbedUrl_=function(){_.mF(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.R.handleSetTimestamp_=function(f){this.startAtTimeStamp_=(this.startAtChecked_=f.isSet)?f.timestamp:0};
_.R.closePanel_=function(){_.mb(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.R.onEmbedCode_=function(){_.mF(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.R.onYtPopupClosed_=function(){_.L6(_.mF(this.hostElement).querySelector("#video-preview"))};
_.R.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.U(this.data.actionButtons[0],_.nv)&&this.ytRendererBehavior.logExplicitClick(_.U(this.data.actionButtons[0],_.nv))};
xy.prototype.onYtPopupClosed_=xy.prototype.onYtPopupClosed_;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],xy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],xy.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],xy.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],xy.prototype,"data",void 0);
_.E([_.F({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.N("design:type",String)],xy.prototype,"embedCode_",void 0);_.E([_.F({value:!0}),_.N("design:type",Boolean)],xy.prototype,"isPlayerControlsOptionChecked_",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],xy.prototype,"isPrivacyModeOptionChecked_",void 0);_.E([_.F({value:!1,notify:!0}),_.N("design:type",Boolean)],xy.prototype,"startAtChecked_",void 0);
_.E([_.F({value:0}),_.N("design:type",Number)],xy.prototype,"startAtTimeStamp_",void 0);_.E([_.F({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],xy.prototype,"isSquareAspectRatio_",void 0);_.E([_.lJ("#video-preview"),_.N("design:type",HTMLElement)],xy.prototype,"videoPreviewContainer",void 0);_.E([_.sE("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xy.prototype,"onYtPopupClosed_",null);
_.E([_.GW({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],xy);
_.G(xy,"yt-sharing-embed-renderer",function(){if(ktp===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;iq0===void 0&&(iq0=document.createElement("template"));var t=iq0;v.call(H,t.content.cloneNode(!0),f.content.firstChild);ktp=f}f=ktp;return f},{mode:2});var qOx={};
qOx.YtUnlimitedFamilyInterstitialBehavior=[_.IM.YtOpenPopupBehavior,_.dt.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(f){f=_.H09(_.HB(f),"yt-button-renderer");return f?f.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(f){this.dialogHistory_.push(f)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var f=this.popFromHistory();if(f){var H={openPopupAction:{popupType:"DIALOG",popup:{}}};H.openPopupAction.popup[f.renderer]=f.data;this.showingPreviousDialog_=!0;this.openPopup(H)}},
handleOpenPopupAction_:function(f){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var H=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(t){return!!f.openPopupAction.popup[t]}),v=this.getElementName_();
H&&this.data&&(this.pushToHistory({renderer:v,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(f){if(f=_.U(f,Btx))this.loading=!0,_.mb(this.hostElement,"yt-open-create-family-dialog",[f,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var f=this.hostElement.nodeName.split("-").slice(1).map(function(H){return""+H[0].toUpperCase()+H.slice(1).toLowerCase()}).join("");
return f[0].toLowerCase()+f.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var f$i;var Hep;var BZ=function(){return _.K.apply(this,arguments)||this};
_.e(BZ,_.K);_.R=BZ.prototype;_.R.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}}}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.mb(this.hostElement,"yt-register-create-family-dialog");_.mF(this.hostElement).querySelector("#thumbnail").onShow()};
_.R.fireOnCloseCommand_=function(){var f;((f=this.data)==null?0:f.onCloseCommand)&&_.Oj(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.R.onYtServiceRequestSent_=function(f,H){H&&H.endpoint&&_.U(H.endpoint,_.dj)||(this.loading=!0)};
_.R.onYtServiceRequestCompleted_=function(){var f=this.hostElement.parentElement;f.close&&f.close();this.loading=!1};
_.R.openPopupHandler_=function(f){if(f.detail==this){var H;((H=this.data)==null?0:H.onOpenCommands)&&_.Oj(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.R.closePopupHandler_=function(f,H){this.fireOnCloseCommand_();if(H&&H.canceled===!0||H&&H.canceled===!1&&H.confirmed===!1){var v;((v=this.data)==null?0:v.onDismissCommands)&&_.Oj(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.R.dataChanged_=function(){this.loading=!1};
BZ.prototype.dataChanged_=BZ.prototype.dataChanged_;BZ.prototype.closePopupHandler_=BZ.prototype.closePopupHandler_;BZ.prototype.openPopupHandler_=BZ.prototype.openPopupHandler_;BZ.prototype.onYtServiceRequestCompleted_=BZ.prototype.onYtServiceRequestCompleted_;BZ.prototype.onYtServiceRequestSent_=BZ.prototype.onYtServiceRequestSent_;_.E([_.B(_.lv.YtEventForwardingBehavior),_.N("design:type",Object)],BZ.prototype,"ytEventForwardingBehavior",void 0);
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],BZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(qOx.YtUnlimitedFamilyInterstitialBehavior),_.N("design:type",Object)],BZ.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],BZ.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],BZ.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],BZ.prototype,"loading",void 0);_.E([_.sE("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.ER]),_.N("design:returntype")],BZ.prototype,"onYtServiceRequestSent_",null);_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.TI]),_.N("design:returntype")],BZ.prototype,"onYtServiceRequestCompleted_",null);
_.E([_.sE("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],BZ.prototype,"openPopupHandler_",null);_.E([_.sE("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],BZ.prototype,"closePopupHandler_",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BZ.prototype,"dataChanged_",null);
_.E([_.GW({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],BZ);
_.G(BZ,"yt-unlimited-family-message-interstitial-renderer",function(){if(Hep===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;f$i===void 0&&(f$i=document.createElement("template"));var t=f$i;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Hep=f}f=Hep;return f},{mode:2});var vAG;var toA;var zJ=function(){return _.K.apply(this,arguments)||this};
_.e(zJ,_.K);zJ.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"}}}};
zJ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.mF(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(f){f.onShow()});
_.mF(this.hostElement).querySelector("#main-thumbnail").onShow()};
zJ.prototype.onButtonTap_=function(f){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(f)};
zJ.prototype.computeMainThumbnailWidth_=function(f){return f&&f.length!==0?72:96};
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],zJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],zJ.prototype,"ytRendererBehavior",void 0);_.E([_.B(qOx.YtUnlimitedFamilyInterstitialBehavior),_.N("design:type",Object)],zJ.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],zJ.prototype,"data",void 0);
_.E([_.F({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.N("design:type",Number)],zJ.prototype,"mainThumbnailWidth_",void 0);_.E([_.F({value:function(){return this.onButtonTap_.bind(this)}}),
_.N("design:type",Function)],zJ.prototype,"boundButtonTap_",void 0);_.E([_.GW({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],zJ);
_.G(zJ,"yt-unlimited-family-profile-interstitial-renderer",function(){if(toA===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;vAG===void 0&&(vAG=document.createElement("template"));var t=vAG;v.call(H,t.content.cloneNode(!0),f.content.firstChild);toA=f}f=toA;return f},{mode:2});var Mow;var hk5;var F0=function(){var f=_.K.apply(this,arguments)||this;f.sliderAriaValueText_=null;f.selectedIndex_=0;f.messages={PAUSE_SLIDER:_.ZC("PAUSE_SLIDER",void 0,"Pause Duration")};return f};
_.e(F0,_.K);_.R=F0.prototype;_.R.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_]]"}}}}}};
_.R.onPopupOpened_=function(f){f.detail==this&&_.J("enable_premium_voluntary_pause")&&(_.mb(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.setDialogData=function(f){this.data=f;this.resetSlider_()};
_.R.dataChanged_=function(){this.data&&this.resetSlider_()};
_.R.onSubmitTap_=function(){if(this.data.confirmCommand){var f=this.data.confirmCommand;_.U(f,_.J$v)&&_.WV(this.hostElement,[f,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.R.onExitButtonTap_=function(){_.mb(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.R.closePopupHandler_=function(f,H){(H&&H.canceled===!0||H.canceled===!1&&H.confirmed===!1)&&this.handleOnDismissCommands_()};
_.R.onSliderChange_=function(){this.selectedIndex_=_.mF(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.R.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.R.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.R.resetSlider_=function(){if(this.data){var f=this.data.defaultEndOptionIndex||0,H=_.mF(this.hostElement).querySelector("#id-pause-slider");if(H.immediateValue<f)for(;H.immediateValue!=f;)H.increment();else if(f<H.immediateValue)for(;H.immediateValue!=f;)H.decrement();this.selectedIndex_=f;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.R.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.Oj(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.R.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.Oj(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.R.onYtServiceRequestSent=function(){this.loading=!0};
_.R.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
F0.prototype.onYtServiceRequestCompleted=F0.prototype.onYtServiceRequestCompleted;F0.prototype.onYtServiceRequestSent=F0.prototype.onYtServiceRequestSent;F0.prototype.closePopupHandler_=F0.prototype.closePopupHandler_;F0.prototype.dataChanged_=F0.prototype.dataChanged_;F0.prototype.onPopupOpened_=F0.prototype.onPopupOpened_;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],F0.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],F0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],F0.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],F0.prototype,"loading",void 0);_.E([_.F(),_.N("design:type",Number)],F0.prototype,"selectIndexMax_",void 0);_.E([_.F(),_.N("design:type",Object)],F0.prototype,"selectedData_",void 0);
_.E([_.F(),_.N("design:type",Object)],F0.prototype,"sliderAriaValueText_",void 0);_.E([_.F({value:function(){return this.onSubmitTap_.bind(this)}}),
_.N("design:type",Function)],F0.prototype,"onButtonTap_",void 0);_.E([_.F({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.N("design:type",Function)],F0.prototype,"onSecondaryTap_",void 0);_.E([_.F(),_.N("design:type",Object)],F0.prototype,"messages",void 0);_.E([_.sE("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],F0.prototype,"onPopupOpened_",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],F0.prototype,"dataChanged_",null);
_.E([_.sE("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],F0.prototype,"closePopupHandler_",null);_.E([_.sE("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.ER]),_.N("design:returntype")],F0.prototype,"onYtServiceRequestSent",null);
_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.TI]),_.N("design:returntype")],F0.prototype,"onYtServiceRequestCompleted",null);_.E([_.GW({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],F0);
_.G(F0,"yt-unplugged-pause-membership-dialog-renderer",function(){if(hk5===void 0){var f=document.createElement("template");_.x(f,'\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>');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;Mow===void 0&&(Mow=document.createElement("template"));var t=Mow;v.call(H,t.content.cloneNode(!0),f.content.firstChild);hk5=f}f=hk5;return f},{mode:2});var RkA;var VoW;var rE=function(){return _.K.apply(this,arguments)||this};
_.e(rE,_.K);rE.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.om("vcBalanceRenderer")}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],rE.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],rE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],rE.prototype,"data",void 0);_.E([_.GW({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],rE);
_.G(rE,"yt-vc-offer-layout-header-renderer",function(){if(VoW===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;RkA===void 0&&(RkA=document.createElement("template"));var t=RkA;v.call(H,t.content.cloneNode(!0),f.content.firstChild);VoW=f}f=VoW;return f},{mode:2});var y2h;var Y2W;var map;var $ai;var Ks=function(){return _.K.apply(this,arguments)||this};
_.e(Ks,_.K);Ks.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.H7.Object.defineProperties(Ks.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)}}});
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Ks.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Ks.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.Xyv.YtTappableItemBehavior),_.N("design:type",Object)],Ks.prototype,"ytTappableItemBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Ks.prototype,"data",void 0);
_.E([_.F({reflectToAttribute:!0}),_.z("data.accessibilityText"),_.N("design:type",String),_.N("design:paramtypes",[])],Ks.prototype,"ariaLabel",null);_.E([_.F({reflectToAttribute:!0}),_.z("data.style"),_.N("design:type",String),_.N("design:paramtypes",[])],Ks.prototype,"vcOfferStyle",null);_.E([_.z("data.style","data.titleText"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ks.prototype,"showTitleText",null);_.E([_.GW({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],Ks);
_.G(Ks,"yt-vc-offer-renderer",function(){if($ai===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;map===void 0&&(map=document.createElement("template"));var t=map;v.call(H,t.content.cloneNode(!0),f.content.firstChild);$ai=f}f=$ai;return f},{mode:2});var D9=function(){return _.K.apply(this,arguments)||this};
_.e(D9,_.K);D9.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}}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],D9.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],D9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],D9.prototype,"data",void 0);_.E([_.GW({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],D9);
_.G(D9,"yt-vc-offer-layout-renderer",function(){if(Y2W===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;y2h===void 0&&(y2h=document.createElement("template"));var t=y2h;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Y2W=f}f=Y2W;return f},{mode:2});var WMA;var Oex;var gAx;var I$x;var o4=function(){return _.K.apply(this,arguments)||this};
_.e(o4,_.K);o4.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}}}}}};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],o4.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],o4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],o4.prototype,"data",void 0);_.E([_.GW({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],o4);
_.G(o4,"yt-ypc-offers-modal-top-bar-renderer",function(){if(I$x===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;gAx===void 0&&(gAx=document.createElement("template"));var t=gAx;v.call(H,t.content.cloneNode(!0),f.content.firstChild);I$x=f}f=I$x;return f},{mode:2});var ns=function(){return _.K.apply(this,arguments)||this};
_.e(ns,_.K);ns.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"}}}}};
ns.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
ns.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var f=this.scrollable;f.attached&&typeof f.attached==="function"&&f.attached()};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ns.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],ns.prototype,"ytRendererstamperBehavior",void 0);_.E([_.lJ("#scrollable"),_.N("design:type",Object)],ns.prototype,"scrollable",void 0);_.E([_.F(),_.N("design:type",Object)],ns.prototype,"data",void 0);_.E([_.GW({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],ns);
_.G(ns,"yt-ypc-offers-modal-renderer",function(){if(Oex===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;WMA===void 0&&(WMA=document.createElement("template"));var t=WMA;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Oex=f}f=Oex;return f},{mode:2});var S2h;var da0;var ps=function(){return _.K.apply(this,arguments)||this};
_.e(ps,_.K);_.R=ps.prototype;_.R.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}}}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.mF(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.R.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.mb(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.R.onYtPopupOpened_=function(f,H){(H==null?void 0:H.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.Oj(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.R.onYtPopupClosed_=function(f,H){this.continueButtonTapped||H&&(H.canceled===!0||H.canceled===!1&&H.confirmed===!1)&&this.data.onDismissCommands&&_.Oj(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.R.onYtServiceRequestError_=function(f){this.set("showSpinner",!1);_.Xs(this.hostElement,f.detail.error.message)};
_.R.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.J("enable_ypc_spinners")?_.mb(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
ps.prototype.onYtServiceRequestError_=ps.prototype.onYtServiceRequestError_;ps.prototype.onYtPopupClosed_=ps.prototype.onYtPopupClosed_;ps.prototype.onYtPopupOpened_=ps.prototype.onYtPopupOpened_;ps.prototype.onYtServiceRequestCompleted_=ps.prototype.onYtServiceRequestCompleted_;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],ps.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],ps.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.F(),_.N("design:type",Object)],ps.prototype,"data",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],ps.prototype,"showSpinner",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],ps.prototype,"continueButtonTapped",void 0);_.E([_.F({value:function(){return this.onContinueTapped_.bind(this)}}),
_.N("design:type",Function)],ps.prototype,"bindOnContinueTapped_",void 0);_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],ps.prototype,"onYtServiceRequestCompleted_",null);_.E([_.sE("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],ps.prototype,"onYtPopupOpened_",null);
_.E([_.sE("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],ps.prototype,"onYtPopupClosed_",null);_.E([_.sE("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],ps.prototype,"onYtServiceRequestError_",null);_.E([_.GW({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],ps);
_.G(ps,"yt-ypc-upgrade-dialog-renderer",function(){if(da0===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;S2h===void 0&&(S2h=document.createElement("template"));var t=S2h;v.call(H,t.content.cloneNode(!0),f.content.firstChild);da0=f}f=da0;return f},{mode:2});var jzA;var szW;var Qj=function(){return _.K.apply(this,arguments)||this};
_.e(Qj,_.K);Qj.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Qj.prototype.computeHasButtons_=function(f){return!(!f.dismissButton&&!f.confirmButton)};
Qj.prototype.computeStyle_=function(f){return f||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],Qj.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.lv.YtEventForwardingBehavior),_.N("design:type",Object)],Qj.prototype,"ytEventForwardingBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],Qj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],Qj.prototype,"data",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],Qj.prototype,"positionType",void 0);
_.E([_.F({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.N("design:type",Boolean)],Qj.prototype,"hasButtons_",void 0);_.E([_.F({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Qj.prototype,"style_",void 0);_.E([_.GW({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],Qj);
_.G(Qj,"yt-bubble-hint-renderer",function(){if(szW===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;jzA===void 0&&(jzA=document.createElement("template"));var t=jzA;v.call(H,t.content.cloneNode(!0),f.content.firstChild);szW=f}f=szW;return f},{mode:2});var Zex;var J2x;var u2=function(){var f=_.v7.apply(this,arguments)||this;f.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return f};
_.e(u2,_.v7);_.R=u2.prototype;_.R.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.R.attached=function(){var f=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){f.$.thumbnail.onShow();f.$["header-image"].onShow()})};
_.R.handleCheckBoxUpdateAction_=function(f){this.canShowCheckboxEnabledConfirmButton=f};
_.R.computeUseOverlayForSpinner_=function(f,H){return!!f&&H};
_.R.computeShowSpinner_=function(f,H){return f||!!H};
_.R.fireOnCloseActions_=function(){var f,H=_.V(((f=this.data)==null?void 0:f.onClosedActions)||[]);for(f=H.next();!f.done;f=H.next())this.ytRendererBehavior.resolveCommand(f.value)};
_.R.fireOnOpenCommands_=function(f){var H,v=(H=this.data)==null?void 0:H.onOpenCommands;if(v)for(f.stopImmediatePropagation(),f=_.V(v),H=f.next();!H.done;H=f.next())this.ytRendererBehavior.resolveCommand(H.value)};
_.R.fireOnDismissCommands_=function(f){var H,v=(H=this.data)==null?void 0:H.onDismissCommands;if(v)for(f.stopImmediatePropagation(),f=_.V(v),H=f.next();!H.done;H=f.next())this.ytRendererBehavior.resolveCommand(H.value)};
_.R.openPopupHandler_=function(f){f.detail==this&&this.fireOnOpenCommands_(f)};
_.R.closePopupHandler_=function(f,H){_.$E(this,"yt-confirm-dialog-close-action",[H]);this.fireOnCloseActions_();(H&&H.canceled===!0||H&&H.canceled===!1&&H.confirmed===!1)&&this.fireOnDismissCommands_(f)};
_.R.onHeaderImageChanged_=function(){var f;((f=this.data)==null?0:f.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.R.computeHasHeaderImageWidth_=function(f){return f!=void 0};
_.R.computeHasLoadingMessage=function(f){return!!f};
_.R.onHeaderImageWidthChanged_=function(){var f,H=(f=this.data)==null?void 0:f.headerImageWidth;if(H){if(f=1.25*H*2+H,this.$.main.style.width=f+"px",H=this.$.scroller.firstElementChild)H.style.minWidth=f+"px"}else this.$.main.style.width="100%"};
_.R.onThumbnailChanged_=function(){var f;((f=this.data)==null?0:f.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")};
_.R.onYtNavigate_=function(f){f=_.HB(f);f instanceof Node&&_.$V(this.$["confirm-button"]).contains(f)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.R.computePrimaryIsCancel_=function(f){return f};
_.R.computeIsCancelButtonHidden_=function(f){return f.skipCancelButton||!f.cancelButton};
_.R.computeIsCheckboxHidden_=function(f){return!f.checkbox};
_.R.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.R.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.R.onYtServiceRequestCompleted_=function(){var f;((f=this.data)==null?0:f.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.H7.Object.defineProperties(u2,{template:{configurable:!0,enumerable:!0,get:function(){if(J2x===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;Zex===void 0&&(Zex=document.createElement("template"));var t=Zex;v.call(H,t.content.cloneNode(!0),f.content.firstChild);J2x=f}f=J2x;return f}}});
u2.prototype.onYtServiceRequestCompleted_=u2.prototype.onYtServiceRequestCompleted_;u2.prototype.onYtServiceRequestSent_=u2.prototype.onYtServiceRequestSent_;u2.prototype.onThumbnailLoaded_=u2.prototype.onThumbnailLoaded_;u2.prototype.onYtNavigate_=u2.prototype.onYtNavigate_;u2.prototype.onThumbnailChanged_=u2.prototype.onThumbnailChanged_;u2.prototype.onHeaderImageWidthChanged_=u2.prototype.onHeaderImageWidthChanged_;u2.prototype.onHeaderImageChanged_=u2.prototype.onHeaderImageChanged_;
u2.prototype.closePopupHandler_=u2.prototype.closePopupHandler_;u2.prototype.openPopupHandler_=u2.prototype.openPopupHandler_;_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],u2.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],u2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],u2.prototype,"ytRendererBehavior",void 0);
_.E([_.B(_.lv.YtEventForwardingBehavior),_.N("design:type",Object)],u2.prototype,"ytEventForwardingBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],u2.prototype,"data",void 0);_.E([_.F({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.N("design:type",Boolean)],u2.prototype,"primaryIsCancel",void 0);_.E([_.F({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.N("design:type",Boolean)],u2.prototype,"isCancelButtonHidden",void 0);
_.E([_.F({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.N("design:type",Boolean)],u2.prototype,"isCheckboxHidden",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],u2.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.E([_.F({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.N("design:type",Boolean)],u2.prototype,"useOverlayForSpinner_",void 0);
_.E([_.F({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.N("design:type",Boolean)],u2.prototype,"showSpinner_",void 0);_.E([_.F({value:!1}),_.N("design:type",Boolean)],u2.prototype,"isActionInProgress_",void 0);_.E([_.F({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.N("design:type",Boolean)],u2.prototype,"hasHeaderImageWidth_",void 0);
_.E([_.F({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.N("design:type",Boolean)],u2.prototype,"hasLoadingMessage",void 0);_.E([_.sE("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],u2.prototype,"openPopupHandler_",null);_.E([_.sE("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],u2.prototype,"closePopupHandler_",null);
_.E([_.Zw("data.headerImage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],u2.prototype,"onHeaderImageChanged_",null);_.E([_.Zw("data.headerImageWidth"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],u2.prototype,"onHeaderImageWidthChanged_",null);_.E([_.Zw("data.thumbnail"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],u2.prototype,"onThumbnailChanged_",null);
_.E([_.sE("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],u2.prototype,"onYtNavigate_",null);_.E([_.sE("yt-img-shadow-loaded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],u2.prototype,"onThumbnailLoaded_",null);_.E([_.sE("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.ER]),_.N("design:returntype")],u2.prototype,"onYtServiceRequestSent_",null);
_.E([_.sE("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.TI]),_.N("design:returntype")],u2.prototype,"onYtServiceRequestCompleted_",null);_.E([_.GW({is:"yt-confirm-dialog-renderer",noInjection:!0})],u2);var l$p;var Uab;var a4=function(){return _.K.apply(this,arguments)||this};
_.e(a4,_.K);a4.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.mF(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
a4.prototype.computeConfirmButton_=function(f){var H={text:f.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};f.confirmNavigationEndpoint?H.navigationEndpoint=f.confirmNavigationEndpoint:f.confirmServiceEndpoint&&(H.serviceEndpoint=f.confirmServiceEndpoint);return H};
a4.prototype.computeShowTitle_=function(f){return!(f==null||!f.title)};
_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],a4.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],a4.prototype,"data",void 0);_.E([_.F({computed:"computeShowTitle_(data)"}),_.N("design:type",Boolean)],a4.prototype,"showTitle",void 0);_.E([_.GW({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],a4);
_.G(a4,"yt-fancy-dismissible-dialog-renderer",function(){if(Uab===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;l$p===void 0&&(l$p=document.createElement("template"));var t=l$p;v.call(H,t.content.cloneNode(!0),f.content.firstChild);Uab=f}f=Uab;return f});var ek0;var LMx;var PZ=function(){var f=_.K.apply(this,arguments)||this;f.spinnerActive=!1;return f};
_.e(PZ,_.K);PZ.prototype.created=function(){usW(2201)};
PZ.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
PZ.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
PZ.prototype.onIronOverlayClosed=PZ.prototype.onIronOverlayClosed;PZ.prototype.onIronOverlayOpened=PZ.prototype.onIronOverlayOpened;_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],PZ.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.GA),_.N("design:type",Object)],PZ.prototype,"tpYtIronOverlayBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],PZ.prototype,"data",void 0);_.E([_.F(),_.N("design:type",Object)],PZ.prototype,"spinnerActive",void 0);
_.E([_.sE("iron-overlay-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],PZ.prototype,"onIronOverlayOpened",null);_.E([_.sE("iron-overlay-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],PZ.prototype,"onIronOverlayClosed",null);_.E([_.GW({is:"yt-loading-renderer",disableElementRegistration:!0})],PZ);
_.G(PZ,"yt-loading-renderer",function(){if(LMx===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;ek0===void 0&&(ek0=document.createElement("template"));var t=ek0;v.call(H,t.content.cloneNode(!0),f.content.firstChild);LMx=f}f=LMx;return f},{mode:2});var xaW;var BGw;var GJ=function(){var f=_.K.apply(this,arguments)||this;f.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);f.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);f.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";f.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return f};
_.e(GJ,_.K);_.R=GJ.prototype;_.R.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.R.onDarkModeToggledAction=function(f){this.isDarkTheme=f};
_.R.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.R.openPopupHandler_=function(f){f.detail===this.hostElement&&this.hostElement.hidden&&_.mb(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.R.onDismissButtonTap_=function(){var f;this.closeOnDismissButton_.has(((f=this.data)==null?void 0:f.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.mb(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.R.onAcceptButtonTap_=function(){var f;this.closeOnAcceptButton_.has(((f=this.data)==null?void 0:f.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.mb(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.R.computeHasHeader_=function(f){return!!f.headerBackgroundImage};
_.R.computeLayoutStyle_=function(f){return f};
_.R.computePopupSize_=function(f){return f};
_.R.computeIconType_=function(f){return f.dialogIcon&&f.dialogIcon.iconType?f.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":f.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":f.dialogIcon.iconType:""};
_.R.computeIsLogo_=function(f){return!!f.dialogIcon&&!!f.dialogIcon.iconType&&(f.dialogIcon.iconType==="YOUTUBE_LOGO"||f.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||f.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.R.computeHasCustomLogo=function(f){return!(f==null||!f.headerForegroundImage)};
_.R.computeCustomLogo=function(f,H){if(f!=null&&f.headerForegroundImage)return f.headerForegroundImageDark?H?f.headerForegroundImageDark:f.headerForegroundImage:f.headerForegroundImage};
_.R.computeHeaderBackgroundImage=function(f,H){if(f!=null&&f.headerBackgroundImage)return H&&(f==null?0:f.headerBackgroundImageDark)?f.headerBackgroundImageDark:f.headerBackgroundImage};
_.R.shouldShowIconContainer=function(f,H){return f&&!H};
_.R.shouldShowNonYouTubeIcon=function(f,H){return!f&&!H};
_.R.getLogoImageId=function(f){var H,v,t;return(f=(H=this.computeCustomLogo(f,this.isDarkTheme))==null?void 0:(v=H.thumbnails)==null?void 0:(t=v[0])==null?void 0:t.height)&&f%31===0?"custom-logo-with-padding":"custom-logo"};
GJ.prototype.openPopupHandler_=GJ.prototype.openPopupHandler_;GJ.prototype.dataChanged_=GJ.prototype.dataChanged_;_.E([_.B(_.h$.YtRendererstamperBehavior),_.N("design:type",Object)],GJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],GJ.prototype,"ytRendererBehavior",void 0);_.E([_.F(),_.N("design:type",Boolean)],GJ.prototype,"isDarkTheme",void 0);
_.E([_.F({computed:"computeCustomLogo(data, isDarkTheme)"}),_.N("design:type",Object)],GJ.prototype,"customLogo",void 0);_.E([_.F({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.N("design:type",Object)],GJ.prototype,"headerBackgroundImage",void 0);_.E([_.F(),_.N("design:type",Object)],GJ.prototype,"data",void 0);_.E([_.F({computed:"computeHasHeader_(data)"}),_.N("design:type",Boolean)],GJ.prototype,"hasHeader",void 0);
_.E([_.F({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.N("design:type",Object)],GJ.prototype,"layoutStyle",void 0);_.E([_.F({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.N("design:type",Object)],GJ.prototype,"popupSize",void 0);_.E([_.F({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],GJ.prototype,"hasLogo",void 0);
_.E([_.F({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],GJ.prototype,"hasCustomLogo",void 0);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],GJ.prototype,"dataChanged_",null);_.E([_.sE("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],GJ.prototype,"openPopupHandler_",null);
_.E([_.GW({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],GJ);
_.G(GJ,"yt-upsell-dialog-renderer",function(){if(BGw===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;xaW===void 0&&(xaW=document.createElement("template"));var t=xaW;v.call(H,t.content.cloneNode(!0),f.content.firstChild);BGw=f}f=BGw;return f},{mode:2});var zkp=_.a(function(f){return _.O("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.O(_.g,{cond:f.title,then:function(H){return _.O("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},H)}}))},"wh"),FMx=_.a(function(f){return _.O("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.O(_.Jj,{data:f.closeButton},{buttonViewModel:function(H){return _.O("div",null,_.O(_.Wp,{data:H.data}))}}))},"xh"),r2t=_.a(function(f){var H=f.data;
return _.O(_.R8,null,_.O("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.O("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.O(_.g,{cond:function(){return!!H().image&&!!H().title},
then:function(){return _.O(_.Hn,{data:function(){return H().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.O("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.O(_.g,{cond:function(){return H().title},
then:function(v){return _.O("h3",{class:"miniAppGameInfoDialogViewModelTitle"},v)}}),_.O(_.g,{cond:function(){return H().primaryGenre},
then:function(v){return _.O("span",{class:"miniAppGameInfoDialogViewModelGenre"},v)}}))),_.O(_.g,{cond:function(){var v=H().description;
return v&&v.length<=150},
then:function(){return _.O("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.O("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return H().description}))}}))},"yh"),KMx=_.a(function(f){f=f.infoRows;
var H=_.t8().resolve(_.Np),v=_.J("enable_displaying_ppn");return _.O("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.O(_.eK,{each:f},function(t){return _.O("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.O(_.g,{cond:function(){return t.label},
then:function(M){return _.O("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},M)}}),_.O(_.g,{cond:function(){return t.attributedLabel},
then:function(M){return _.O("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.O(_.iq,{text:M,noPreWrap:!0}))}}),_.O(_.g,{cond:function(){return t.value},
then:function(M){return _.O("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},M)}}),_.O(_.g,{cond:function(){return t.attributedValue},
then:function(M){return _.O("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.O(_.iq,{text:M,noPreWrap:!0}))}}))}),_.O(_.g,{cond:function(){return v&&H.clientData.has("post_play_nonce")},
then:function(){return _.O("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.O("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.O("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},H.getData("post_play_nonce")))}}))},"zh"),Dai=_.a(function(f){var H=f.data;
return _.O("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.O(zkp,{title:function(){return H().dialogTitle}}),_.O(r2t,{data:H}),_.O(_.g,{cond:function(){return H().infoRow},
then:function(v){return _.O(KMx,{infoRows:v})}}),_.O(FMx,{closeButton:function(){return H().closeButton}}))},"Ah");
Dai.idomCompat=!0;_.yn(Dai,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.ki}});_.yn(_.a(function(f){var H=f.data;return _.O("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.O(_.Hn,{data:function(){return H().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.O("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.O("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.O(_.g,{cond:function(){var v=H().ytLogo;return v?v.iconType:null},
then:function(v){return _.O(_.JE,{icon:v,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.O("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.O("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.O(_.iq,{text:function(){return H().title}})),_.O("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.O(_.iq,{text:function(){return H().body}})),_.O("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.O(_.iq,{text:function(){return H().verifyStateText}}))),
_.O("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.O("div",null,_.O(_.Jj,{data:function(){return H().dismissButton}},{buttonViewModel:_.Wp})),_.O("div",null,_.O(_.Jj,{data:function(){return H().linkParentButton}},{buttonViewModel:_.Wp})))))},"Bh"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.ki}});var oA0=_.a(function(f){var H=f.data;f=_.vK(function(){return H().agreements},[]);
return _.O("installment-agreements-view-model",{class:_.S2("ytInstallmentAgreementsViewModelHost")},_.O(_.eK,{each:f},function(v){return _.O("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.O("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.O(_.iq,{text:v.label})),_.O("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.O(_.Jj,{data:function(){return v.openButton}},{buttonViewModel:_.Wp})))}))},"Ch");
oA0.idomCompat=!0;var nAt=_.a(function(f){return _.O("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.O("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.O(_.iq,{text:function(){return f.data().inviteMessage}})),_.O("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.O(_.iq,{text:function(){return f.data().attributedAccountSectionHeaderText}})),_.O("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.O(_.Jj,{data:function(){return f.data().accountAvatar}},{avatarViewModel:_.K5}),_.O("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.O(_.iq,{text:function(){return f.data().accountName}}),_.O("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.O(_.iq,{text:function(){return f.data().handle}}))),_.O(_.Jj,{data:function(){return f.data().trailingButton}},{buttonViewModel:_.Wp})),_.O("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.O(_.iq,{text:function(){return f.data().termsOfService}})))},"Dh");var pYA=_.a(function(f){var H=_.V(_.sR(function(){var X,fg;return((X=f.data().createPlaylistDialogFormSchema)==null?0:(fg=X.initialValues)==null?0:fg.title)?f.data().createPlaylistDialogFormSchema.initialValues.title:""})),v=H.next().value,t=H.next().value;
H=_.V(_.sR(function(){f.data();return!1}));
var M=H.next().value,h=H.next().value;H=_.V(_.sR(function(){f.data();return!1}));
var y=H.next().value,m=H.next().value;H=_.V(_.sR(function(){var X,fg;return(X=f.data().createPlaylistDialogFormSchema)==null?void 0:(fg=X.initialValues)==null?void 0:fg.visibility}));
var W=H.next().value,I=H.next().value;H=_.V(_.sR(function(){f.data();return!1}));
var S=H.next().value,d=H.next().value;H=_.V(_.sR(function(){var X,fg;return(X=f.data().createPlaylistDialogFormSchema)==null?void 0:(fg=X.initialValues)==null?void 0:fg.isCollaborative}));
var Z=H.next().value,l=H.next().value,L=_.TN("div");_.K4(function(){var X=L.value.querySelector("textarea");X&&(X.value=v())},"OCauEe");
_.Kc(function(){var X;_.Tph((X=f.data().createPlaylistDialogFormSchema)==null?void 0:X.id,{onSubmit:function(){var fg=v();var gB=W(),O5=Z(),s5=f.data();fg={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:fg,privacyStatus:gB,videoIds:s5.videoIds,sourcePlaylistId:s5.sourcePlaylistId,params:O5?s5.createPlaylistParamsCollaborationEnabled:s5.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.t8().resolve(_.MJ).resolveCommand(fg)},
isValid:function(){return M()&&!y()&&!S()}})});
var r=function(X){if(X!==void 0&&(t(X),!M()&&X.length>0&&h(!0),M())){var fg=N9F(f.data());if(fg){var gB=fg.minLength;fg=fg.maxLength;gB&&X.length<gB?m(!0):fg&&X.length>fg?m(!0):m(!1)}}},n=function(){var X=!(!Z()||W()!=="PRIVATE");
d(X)},Q=function(X){X!==void 0&&(I(X),n())},C=function(){if(S())return XK5(f.data())},w=function(){l(!Z());
n()},c=function(){return{validate:function(X){if(M()){var fg=N9F(f.data());
if(fg){var gB=fg.minLength;fg=fg.translations;if(gB&&X.length<gB)return fg==null?void 0:fg.minLengthErrorMessage}}}}},A=function(){var X=N9F(f.data()),fg=X==null?void 0:X.maxLength,gB;
X=X==null?void 0:(gB=X.translations)==null?void 0:gB.maxLengthErrorMessage;if(fg&&X)return{maxChars:fg,errorMessage:X}};
return _.O("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.O("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:L},_.O(_.Jj,{data:function(){return f.data().playlistTitle}},{textFormFieldViewModel:function(X){return _.O(_.pkb,{data:X.data,
text:v,onInput:r,validation:c,characterLimit:A})},
textFieldViewModel:function(X){return _.O(_.nFW,{data:X.data,text:v,onInput:r,validation:c,characterLimit:A})}})),_.O("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.O(_.Jj,{data:function(){return f.data().playlistVisibility}},{dropdownViewModel:function(X){return _.O(_.Xkh,{data:X.data,
onSelected:Q,error:C})}})),_.O(_.g,{cond:function(){return!!f.data().playlistCollaborate},
then:function(){return _.O("div",null,_.O(_.Jj,{data:function(){return f.data().playlistCollaborate}},{switchListItemViewModel:function(X){return _.O(_.Eng,{data:X.data,
onTap:w})}}))}}))},"Eh");var Qzr=_.a(function(f){var H=f.data;return _.O("upsell-offer-table-cell-content-view-model",null,_.O("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.O(_.B6,null,_.O(_.Lc,{when:function(){return H().iconType}},function(){return _.O("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.O(_.JE,{icon:function(){return H().iconType.toString()}}))}),_.O(_.Lc,{when:function(){return H().title}},function(){return _.O(_.iq,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return H().title}})}),_.O(_.Lc,{when:function(){return H().subtitle}},function(){return _.O(_.iq,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return H().subtitle}})}),_.O(_.Lc,{when:function(){return H().infoText}},function(){return _.O(_.iq,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return H().infoText}})}),_.O(_.Lc,{when:function(){return H().featureDescription}},function(){return _.O(_.iq,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return H().featureDescription}})}),_.O(_.Lc,{when:function(){return H().note}},function(){return _.O(_.iq,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return H().note}})}))))},"Fh");
Qzr.idomCompat=!0;var uNh=_.a(function(f){var H=f.data;return _.O("upsell-offer-table-cell-view-model",null,_.O("div",{class:_.S2("ytUpsellOfferTableCellViewModelCellWrapper",function(){return H().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.O(_.Jj,{data:function(){return H().contents}},{upsellOfferTableCellContentViewModel:Qzr})))},"Gh");
uNh.idomCompat=!0;var a$x=_.a(function(f){var H=f.data;var v=f.upsellTableIsFirstRow;var t=function(){return(v==null?0:v())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},M=function(){return(v==null?0:v())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.O("ytm-upsell-offer-table-row-view-model",null,_.O("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.O(_.Jj,{data:function(){return H().rowHeaderCell}},{upsellOfferTableCellViewModel:function(h){return _.O("div",{class:t},_.O(uNh,{data:h.data}))}}),_.O(_.Jj,{data:function(){return H().contentCells}},{upsellOfferTableCellViewModel:function(h){return _.O("div",{class:M},_.O(uNh,{data:h.data}))}})))},"Hh");
a$x.idomCompat=!0;var PBW=_.a(function(f){var H=f.data;return _.O("ytm-upsell-offer-table-view-model",null,_.O("div",{class:"ytUpsellOfferTableViewModelHost"},_.O("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.O(_.Jj,{data:function(){return H().rows}},{upsellOfferTableRowViewModel:function(v,t){return _.O(a$x,{data:v.data,
upsellTableIsFirstRow:function(){return t()===0}})}}))))},"Ih");
PBW.idomCompat=!0;var GcF=_.a(function(f){var H=_.vK(f.noPadding,!1),v=function(){var h,y;return(y=(h=f.data().logo.accessibilityData)==null?void 0:h.label)!=null?y:""},t=function(){return f.data().offerTable},M={};
return _.O("upsell-view-model",{class:_.S2("ytUpsellViewModelHost",(M.ytUpsellViewModelHostNoPadding=function(){return H()},M.ytUpsellViewModelHostWide=function(){return t()!==void 0},M))},_.O("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.O(_.g,{cond:function(){return _.CT(f.data().logo)},
then:function(h){return _.O(_.Hn,{data:h,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:v})}})),_.O("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.O(_.iq,{text:function(){return f.data().title}})),_.O("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.O(_.eK,{each:function(){var h;
return(h=f.data().subtitles)!=null?h:[]},
keyBy:"INDEX"},function(h){var y={};return _.O("div",{class:_.S2("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(y.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return t()!==void 0},y))},_.O(_.iq,{text:h}))})),_.O("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.O(_.eK,{each:function(){var h;
return(h=f.data().benefitInfos)!=null?h:[]},
keyBy:"INDEX"},function(h){return _.O(_.g,{cond:function(){return h().info},
then:function(y){return _.O("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.O(_.JE,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.O(_.iq,{text:y}))}})})),_.O(_.g,{cond:function(){return t()!==void 0},
then:function(){return _.O("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.O(PBW,{data:t}))}}),_.O("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.O(_.eK,{each:function(){var h;
return(h=f.data().legalInfos)!=null?h:[]},
keyBy:"INDEX"},function(h){var y={};return _.O("div",{class:_.S2("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(y.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return t()!==void 0},y))},_.O(_.iq,{text:h}))})))},"Jh");var CBW=_.a(function(f){var H=f.data;f={};f=(f.ytMiniAppScoreChallengeViewModelScoreRadial=!0,f.ytMiniAppScoreChallengeViewModelDarkScoreRadial=AVh(),f);return _.O("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.O("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return H().title}),_.O("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return H().subtitle}),_.O("div",{class:_.zV(f)},_.O("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return H().score})),_.O("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return H().prompt}))},"Kh");var EAF=function(){this.store=_.fu();this.formId=""};
EAF.prototype.onInit=function(f){f.formId&&(this.formId=f.formId,this.store.dispatch(_.yq({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var NGx=_.a(function(f){function H(m){if(m&&(m=_.U(m,_.ef)))return Object.assign({},m,{isSelected:h()})}
var v=_.V(_.sR(function(){var m,W;return(W=(m=_.U(f.data().option,_.ef))==null?void 0:m.isSelected)!=null?W:!1})),t=v.next().value,M=v.next().value,h=t;
_.Kc(function(){var m;_.Tph((m=f.data().formSchema)==null?void 0:m.id,{onSubmit:function(){var W=_.t8().resolve(_.MJ),I=!!f.data().selectedCommand,S=!!f.data().unselectedCommand;if(h()){if(I)var d=f.data().selectedCommand}else S&&(d=f.data().unselectedCommand);d=_.GK(d);H(f.data().option)&&!d?(W="",!I&&S?W="selected ":I&&!S&&(W="unselected "),I=new _.e$("No "+W+"command found for SelectionListItemFormViewModel"),_.oO(I)):d&&W.resolveCommand(d)},
isValid:function(){return!0}})});
var y=function(){M(!h())};
_.Dt(function(){var m,W,I=(m=f.data())==null?void 0:(W=m.formSchema)==null?void 0:W.id;I&&_.rSe()().delete(I)});
return _.O("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.O("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.O(_.iq,{text:function(){return f.data().paragraph}})),_.O(_.g,{cond:function(){return H(f.data().option)},
then:function(m){return _.O(_.pB,{data:m,isCompact:!0,hideSelectionTextChevron:!0,onTap:y,disableHorizontalPadding:!0})}}))},"Lh");var c2p=_.a(function(f){var H=f.data;var v=f.disablePadding;var t=f.className;var M=_.TN("yt-dialog-header-view-model"),h=function(){var m=H().imageBanner;a:switch(H().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var W="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:W="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:m,style:W,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},y=function(){return H().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.Kc(function(){var m=function(){_.mb(M.value,"yt-refit-popups-action")},W;
(W=M.value)==null||W.addEventListener("image-loaded",m);_.Dt(function(){var I;(I=M.value)==null||I.removeEventListener("image-loaded",m)})});
f={};return _.O("yt-dialog-header-view-model",{el:M,class:_.S2(t,(f.ytDialogHeaderViewModelHost=!0,f.ytDialogHeaderViewModelHostDisablePadding=v,f))},_.O(_.g,{cond:function(){return H().imageBanner},
then:function(){var m={};return _.O("div",{class:_.S2(t,(m.ytDialogHeaderViewModelBanner=!0,m.ytDialogHeaderViewModelBannerFullBleed=y,m)),style:_.ZE({"max-height":function(){return H().assetContainerMaxHeight!==void 0?H().assetContainerMaxHeight+"px":void 0}})},_.O(_.M3,{data:h,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.O(_.g,{cond:function(){return H().headerBlock},
then:function(){return _.O("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.O(_.Jj,{data:function(){return H().headerBlock}},{contentPreviewImageViewModel:function(m){return _.O(_.M3,{data:m.data,
notifyOnLoaded:!0})}}))}}),_.O(_.g,{cond:function(){return H().customBanner},
then:function(m){return _.O("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.O(_.Jj,{data:m},{avatarStackViewModel:_.oY}))}}),_.O(_.g,{cond:function(){return H().headline},
then:function(m){return _.O("h2",null,_.O(_.iq,{text:m,className:"ytDialogHeaderViewModelText"}))}}))},"Mh");
c2p.idomCompat=!0;var XYb=_.a(function(f){var H=_.BMR(function(){return f.data().formId}),v=H.submitForm,t=H.isValid;
return _.O("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.O(_.Jj,{data:function(){return f.data().panelFooter}},{panelFooterViewModel:function(M){return _.O(_.wM,{data:M.data,
disablePadding:!0,disablePrimaryButton:function(){return!t()},
onClickPrimaryButton:function(){v()}})}}))},"Nh");var A2i=_.a(function(f){var H=function(){var v,t;return(t=(v=_.U(f.data().rendererContext,_.dC))==null?void 0:v.label)!=null?t:""};
return _.O("yt-dialog-image-content-view-model",{class:_.S2("ytDialogImageContentViewModelHost",f.className)},_.O(_.g,{cond:function(){return _.CT(f.data().image)},
then:function(v){var t={};return _.O("div",{style:_.ZE((t.width=(0,_.KB)(function(){var M;return(M=f.data().imageMaxWidth)!=null?M:""}),t)),
class:"ytDialogImageContentViewModelImage"},_.O(_.Hn,{data:v,alt:H,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.O(_.iq,{text:function(){return f.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Oh");var kcb=_.a(function(f){var H=_.tV(f,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),v=H.elRefCallback;f=H.iconWiz;var t=H.assetWiz,M=H.assetType,h=H.titleWiz,y=H.leadingActionHeaderWiz,m=H.trailingActionHeaderWiz,W=H.headerPosition,I=H.contentWiz,S=H.buttonLayout,d=H.buttonStyle,Z=H.primaryButtonWiz,l=H.secondaryButtonWiz,L=H.contentAlignment,r=H.isFullscreen,n=H.width,Q=H.maxHeight,C=H.isHeaderWizDefined,
w=H.headerWiz,c=H.isFooterWizDefined,A=H.footerWiz;H=_.TN("dialog-layout",function(uH){v==null||v(uH)});
var X=t?function(){return t({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,fg=Z?function(){var uH={};
return Z({buttonOverrides:function(){return{style:(d==null?void 0:d())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.S2((uH["yt-spec-dialog-layout__dialog-layout-button"]=!0,uH["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(S==null?void 0:S())===0||(S==null?void 0:S())===2},uH))})}:void 0,gB=l?function(){var uH={};
return l({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.S2((uH["yt-spec-dialog-layout__dialog-layout-button"]=!0,uH["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(S==null?void 0:S())===0||(S==null?void 0:S())===2},uH))})}:void 0,O5=function(){return(!!h||!!y||!!m)&&W()===0},s5={},U5={},lH={},E5={};
return _.O("dialog-layout",{el:H,class:_.S2((s5["yt-spec-dialog-layout"]=!0,s5["yt-spec-dialog-layout--dialog-layout-fullscreen"]=r,s5["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!r()},s5["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return Q()===1},s5["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(M==null?void 0:M())===1},s5)),
style:function(){return(n==null?void 0:n())!==void 0?"width: "+n+"px;":""}},f?_.O("div",{class:_.S2((U5["yt-spec-dialog-layout__dialog-layout-icon"]=!0,U5["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!t&&W()===1},U5["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return L()===1},U5))},_.O(f,null)):null,_.O(_.g,{cond:C,
then:function(){return w?_.O("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.O(w,null)):null},
else:function(){return _.O(_.R8,null,_.O(_.g,{cond:O5,then:function(){return _.O(bei,{contentAlignment:L,LeadingActionHeader:y,TrailingActionHeader:m,Title:h,isAboveAsset:!!X})}}),X?_.O("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.O(X,null)):null)}}),_.O("div",{class:_.S2((lH["yt-spec-dialog-layout__dialog-layout-container"]=!0,lH["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(L==null?void 0:L())===1},lH["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!h&&!w||!!X&&(W==null?void 0:W())===0},lH))},_.O(_.g,{cond:function(){return h&&!w&&(W==null?void 0:W())===1},
then:function(){return _.O(bei,{contentAlignment:L,LeadingActionHeader:y,TrailingActionHeader:m,Title:h,isAboveAsset:!1})}}),I?_.O("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.O("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.O(I,null))):null,_.O(_.g,{cond:c,
then:function(){return A?_.O("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.O(A,null)):null}}),fg||gB?_.O(iex,{footerClasses:_.S2((E5["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,E5["yt-spec-dialog-layout__dialog-layout-footer"]=!0,E5["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(S==null?void 0:S())===2},E5["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(S==null?void 0:S())===1},E5)),
PrimaryButton:fg,SecondaryButton:gB}):null))},"Ph"),bei=_.a(function(f){var H=_.tV(f,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),v=H.contentAlignment,t=H.LeadingActionHeader;f=H.Title;var M=H.TrailingActionHeader,h=H.isAboveAsset,y=H.enableLeadingActionHeader;H={};return _.O("div",{class:_.S2((H["yt-spec-dialog-layout__dialog-header-container"]=!0,H["yt-spec-dialog-layout__dialog-header"]=!0,H["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=h,H["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(v==null?void 0:v())===1&&y()},H))},_.O(_.g,{cond:function(){return y()},
then:function(){return t?_.O("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.O(t,null)):null}}),f?_.O("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.O(f,null)):null,M?_.O("div",null,_.O(M,null)):null)},"Qh"),iex=_.a(function(f){var H=f.footerClasses;
var v=f.PrimaryButton;f=f.SecondaryButton;return _.O("div",{class:H},f?_.O(f,null):null,v?_.O(v,null):null)},"Rh");var TGb=_.a(function(f){var H=f.data;return _.O("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.O("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.O(_.Jj,{data:function(){return H().avatar}},{avatarViewModel:_.K5})),_.O("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.O(_.iq,{text:function(){return H().title}})),_.O(_.iq,{text:function(){return H().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Sh");var wYA=_.a(function(f){var H=f.data;return _.O("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.O("div",{class:"ytAccessConfirmationViewModelContent"},_.O(_.Jj,{data:function(){var v;return(v=H().avatar)!=null?v:H().dualAvatar}},{dualAvatarViewModel:function(v){return _.O(_.rva,{data:v.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(v){return _.O(_.Dj,{data:v.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.O("h2",{class:"ytAccessConfirmationViewModelTitle"},_.O(_.iq,{text:function(){return H().title}})),_.O(_.iq,{text:function(){return H().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Th");var q2F=_.a(function(f){var H=f.data;var v=void 0;f=_.V(_.sR(function(){var I;return((I=_.U(H().content,_.JS))==null?void 0:I.defaultSelectedKey)||""}));
var t=f.next().value,M=f.next().value,h,y=function(){M("");var I;(I=v)!=null&&I.store.dispatch(_.yq({type:"RESET_COMMAND_MAP"}))};
_.Kc(function(){v=new EAF;window.addEventListener("yt-popup-closed",y)});
_.K4(function(){if(v&&h!==H().formId&&(v.onInit(H()),(h=H().formId)&&t())){var I=v,S={key:t()};S.command&&I.store.dispatch(Nsh(h,S.command))}},"k6b6Qe");
_.Dt(function(){window.removeEventListener("yt-popup-closed",y)});
var m=function(I,S,d){S.key&&d&&S.key!==t()&&(M(S.key),v&&S.command&&v.store.dispatch(Nsh(d,S.command)))},W=function(){if(_.U(H().content,_.JS))return!(t==null?0:t())};
return _.O("yt-dialog-view-model",{class:_.S2("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.O(kcb,{headerWiz:function(){return _.O("span",{skip:!0},_.O(_.Jj,{data:function(){return H().header}},{dialogHeaderViewModel:function(I){return _.O(c2p,{data:I.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!H().header},
contentWiz:function(){return _.O("span",{skip:!0},_.O(_.Jj,{data:function(){return H().customContent?H().customContent:H().content}},{basicContentViewModel:_.Ghx,
createPlaylistDialogFormViewModel:pYA,collaborativePlaylistInviteMessageViewModel:nAt,miniAppScoreChallengeViewModel:CBW,radioButtonGroupViewModel:function(I){var S=I.data;return _.O(_.r7b,{data:S,selectedKey:t,onSelected:m,groupName:function(){return S().formId}})},
selectionListItemFormViewModel:NGx,upsellViewModel:function(I){return _.O(GcF,{data:I.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:TGb,installmentAgreementsViewModel:oA0,accessConfirmationViewModel:wYA,listViewModel:function(I){return _.O(_.T1o,{data:I.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:A2i}))},
footerWiz:function(){return _.O("span",{skip:!0},_.O(_.Jj,{data:function(){return H().footer}},{panelFooterViewModel:function(I){return _.O(_.wM,{data:I.data,
disablePadding:!0,disablePrimaryButton:W})},
formPanelFooterViewModel:XYb,formFooterViewModel:function(I){return _.O(_.LUi,{data:I.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!H().footer}}))},"Uh");
q2F.idomCompat=!0;_.yn(q2F,"yt-dialog-view-model",{props:{data:_.ki},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var fA0=_.a(function(f){var H=f.data;f={};return _.O("yt-panel-header-view-model",{class:_.S2("yt-panel-header-view-model-wiz",(f["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!H().shouldHideDivider},f["yt-panel-header-view-model-wiz--compact"]=function(){return!!H().subtitle},f))},_.O("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.O(_.g,{cond:function(){return H().title},
then:function(v){return _.O(_.iq,{text:v,className:"yt-panel-header-view-model-wiz__title"})}}),_.O(_.g,{cond:function(){return H().subtitle},
then:function(v){return _.O(_.iq,{text:v,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.O("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.O(_.Jj,{data:function(){return H().trailingButtons}},{buttonViewModel:function(v){return _.O(_.Wp,{data:v.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"Vh");
fA0.idomCompat=!0;var Hix=_.a(function(f){var H=_.d6(function(h){var y;if((y=f.skipContentClick)==null?0:y.call(f))return!1;f.onContentWrapperClick(h);return!0}),v,t,M;
return _.O("div",{class:_.S2("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return f.isAnimating()?"transform: translateY("+f.currentY()+"px);transition: 0.2s":""}},(v=f.header)==null?void 0:v.call(f),_.O("div",{id:f.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.ZE({"max-height":(0,_.KB)(f.maxHeightForContentWrapper)}),"on:scroll":T9x(f.onScroll),"on:touchmove":T9x(function(h){return void h.stopPropagation()})},_.O("div",{el:{onRender:f.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":H},(t=f.body)==null?void 0:t.call(f))),(M=f.footer)==null?void 0:M.call(f))},"Wh");
Hix.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var vGp=_.a(function(f){var H=_.vK(f.leadingLabel),v=_.vK(f.trailingLabel),t=_.vK(f.footerButtonType),M=function(){return H()||v()||f.hasPrimaryButton()||f.hasSecondaryButton()},h={},y=_.S2("yt-spec-bottom-sheet-layout__primary-button",(h["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return t()===0&&f.hasPrimaryButton()},h["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return t()===1&&f.hasPrimaryButton()},h["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return t()===2&&f.hasPrimaryButton()},h["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return t()===3&&f.hasPrimaryButton()},h));
h={};var m=_.S2("yt-spec-bottom-sheet-layout__secondary-button",(h["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return t()===1&&f.hasSecondaryButton()},h["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return t()===2&&f.hasSecondaryButton()},h["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return t()===3&&f.hasPrimaryButton()},h));
return _.O(_.g,{cond:f.hasFooterOverride,then:function(){var W;return _.O(_.R8,null,(W=f.footerOverride)==null?void 0:W.call(f))},
else:function(){return _.O(_.g,{cond:M,then:function(){return _.O("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.O(_.g,{cond:function(){return H()||v()},
then:function(){var W={};return _.O("div",{class:_.S2("yt-spec-bottom-sheet-layout__footer-label-wrapper",(W["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!f.hasPrimaryButton()},W))},_.O(_.g,{cond:H,
then:function(){return _.O("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},H)}}),_.O(_.g,{cond:v,
then:function(){return _.O("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},v)}}))}}),_.O(_.g,{cond:function(){return f.hasPrimaryButton()||f.hasSecondaryButton()},
then:function(){var W={};return _.O("div",{class:_.S2("yt-spec-bottom-sheet-layout__footer-button-wrapper",(W["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.cPH,W))},_.O(_.g,{cond:function(){return f.hasSecondaryButton()&&t()!==0},
then:function(){var I;return _.O("div",{class:m},(I=f.secondaryButton)==null?void 0:I.call(f))}}),_.O(_.g,{cond:f.hasPrimaryButton,
then:function(){var I;return _.O("div",{class:y},(I=f.primaryButton)==null?void 0:I.call(f))}}))}}))}})}})},"Xh");
vGp.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var tmw=_.a(function(f){var H=_.vK(f.title),v=_.vK(f.subtitle);return _.O("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:f.headerId,"on:touchstart":_.d6(function(t){var M;(M=f.touchstart)==null||M.call(f,t);return!1}),
"on:touchmove":_.d6(function(t){var M;(M=f.touchmove)==null||M.call(f,t);return!1}),
"on:touchend":_.d6(function(t){var M;(M=f.touchend)==null||M.call(f,t);return!1})},_.O("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.O(_.g,{cond:f.hasHeaderOverride,
then:function(){var t;return _.O(_.R8,null,(t=f.headerOverride)==null?void 0:t.call(f))},
else:function(){var t={};return _.O("div",{class:_.S2((t["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,t["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=H,t))},_.O("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.O(_.g,{cond:H,then:function(){return _.O(_.R8,null,_.O("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},H),_.O(_.g,{cond:v,then:function(){return _.O("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
v)}}))}})),_.O(_.g,{cond:function(){return H()&&f.hasActionHeader()},
then:function(){var M;return _.O("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(M=f.actionHeader)==null?void 0:M.call(f))}}))}}))},"Yh");
tmw.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.a(function(f){function H(X){if(!Q&&typeof MutationObserver!=="undefined"){var fg={childList:!0};"MutationObserver"in window&&(Q=new MutationObserver(v.bind(void 0,X)),Q.observe(X,fg))}}
function v(X){typeof Q!=="undefined"&&(C["content-wrapper"]===void 0&&(C["content-wrapper"]=X.children[0].clientHeight),l(C["content-wrapper"]),Z()>L()||r(Z()))}
function t(){d(window.innerHeight);Z()>L()||r(Z());w.isFullScreen[0]()&&Z()>L()?c().dispatch("Snap To Full Screen",{maxHeight:n()}):c().dispatch("Snap To Neutral Position",{maxHeight:L()})}
function M(X){document.body.style.overscrollBehavior="none";X.preventDefault();c().dispatch("Touch Start",{event:X})}
function h(X){X.preventDefault();c().dispatch("Touch Move",{event:X,contentScrollable:Z()>L(),fullContentWrapperHeight:n(),contentWrapperHeight:L(),contentHeightMap:C,contentWrapperId:"content-wrapper",header:qVA(f),footer:qVA(f)})}
function y(){document.body.style.overscrollBehavior="";w.isFullScreen[0]()?w.currentY[0]()>=60?c().dispatch("Snap To Neutral Position",{maxHeight:L()}):c().dispatch("Snap To Full Screen",{maxHeight:n()}):w.currentY[0]()>=60?m():w.currentY[0]()<=-60&&Z()>L()?c().dispatch("Snap To Full Screen",{maxHeight:n()}):c().dispatch("Snap To Neutral Position",{maxHeight:L()})}
function m(){c().dispatch("Close Sheet",{clientHeight:S(),maxHeight:0});setTimeout(function(){wKG()},250)}
var W=_.V(_.gp(window.innerHeight,void 0,"NWeFS")),I=W.next().value;W=W.next().value;var S=I,d=W;W=_.V(_.gp(0,void 0,"oxfm4"));I=W.next().value;W=W.next().value;var Z=I,l=W;W=_.V(_.sR(function(){var X=qVA(f);return.6*S()-buG(X)-iuh(X)}));
I=W.next().value;W=W.next().value;var L=I,r=W,n=function(){var X=qVA(f);return S()-buG(X)-iuh(X)-24-24},Q=null,C={},w={initialY:_.gp(0,void 0,"cYBE5c"),
currentY:_.gp(0,void 0,"RndqHc"),isAnimating:_.gp(!1,void 0,"vO9DVd"),isFullScreen:_.gp(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.sR(L)},c=function(){var X=null;return function(){if(!X){var fg={initialY:w.initialY[0](),currentY:w.currentY[0](),isAnimating:w.isAnimating[0](),isFullScreen:w.isFullScreen[0](),maxHeightForContentWrapper:w.maxHeightForContentWrapper[0]()};X=kKt(fg)}return X}}();
_.Kc(function(){window.addEventListener("resize",t);c().subscribe(function(X){w.initialY[1](X.initialY);w.currentY[1](X.currentY);w.isAnimating[1](X.isAnimating);w.isFullScreen[1](X.isFullScreen);w.maxHeightForContentWrapper[1](X.maxHeightForContentWrapper)})});
_.Dt(function(){window.removeEventListener("resize",t);Q&&(Q.disconnect(),Q=null)});
var A=_.S2({"bottom-sheet-content-without-icon":function(){var X;return!((X=f.shouldShowIcons)==null?0:X.call(f))}});
return _.O("bottom-sheet-layout",null,_.O(Hix,{contentWrapperId:"content-wrapper",isAnimating:function(){return w.isAnimating[0]()},
currentY:function(){return w.currentY[0]()},
maxHeightForContentWrapper:function(){return w.maxHeightForContentWrapper[0]()},
shouldShowIcons:f.shouldShowIcons,skipContentClick:f.skipContentClick,onScroll:function(){var X=document.getElementById("header-wrapper"),fg=document.getElementById("content-wrapper");if(X&&fg){var gB={};gB=(gB["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,gB["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,gB);X.className=fg.scrollTop>1?_.zV(gB):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:wKG,contentWrapperEl:function(X){H(X);requestAnimationFrame(function(){v(X)})},
header:function(){return _.O(tmw,{touchstart:M,touchmove:h,touchend:y,title:f.headerTitle,subtitle:f.headerSubtitle,headerId:"header-wrapper",headerOverride:f.headerFn,hasHeaderOverride:f.hasHeaderFn,actionHeader:f.headerActionHeader,hasActionHeader:f.hasHeaderActionHeader})},
footer:function(){return _.O(vGp,{footerButtonType:f.footerButtonType,leadingLabel:f.footerLeadingLabel,trailingLabel:f.footerTrailingLabel,primaryButton:f.footerPrimaryButton,hasPrimaryButton:f.hasFooterPrimaryButton,secondaryButton:f.footerSecondaryButton,hasSecondaryButton:f.hasFooterSecondaryButton,footerOverride:f.footerFn,hasFooterOverride:f.hasFooterFn})},
body:function(){return _.O(_.g,{cond:f.hasContentFn,then:function(){var X;return _.O("div",{class:A},(X=f.contentFn)==null?void 0:X.call(f))}})}}))},"Zh").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var MmF=_.a(function(f){var H=_.t8().resolve(_.zQ);return _.O("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.d6(function(){return void H.closeSheet()})},_.O(_.g,{cond:function(){return!!f.header},
then:function(){return _.O("div",{class:"ytContextualSheetLayoutHeaderContainer"},f.header())}}),_.O(_.g,{cond:function(){return!!f.content},
then:function(){return _.O("div",{class:"ytContextualSheetLayoutContentContainer"},f.content())}}),_.O(_.g,{cond:function(){return!!f.footer},
then:function(){return _.O("div",{class:"ytContextualSheetLayoutFooterContainer"},f.footer())}}))},"$h");
MmF.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var hN0=_.a(function(f){f=f.data;var H=_.TN("yt-sheet-view-model",function(t){if(_.J("web_focus_first_element_sheet")||!_.J("sheet_focus_first_killswitch"))return t.addEventListener("focus",function(){YFp(t)}),function(){t.removeEventListener("focus",function(){YFp(t)})}}),v={};
return _.O("yt-sheet-view-model",{"on:mousedown":_.d6(function(t){_.J("sheet_focus_first_killswitch")||t.currentTarget!==t.target&&t.preventDefault()}),
"on:focus":_.d6(function(){_.J("sheet_focus_first_killswitch")||YFp(H.value)}),
class:_.S2("ytSheetViewModelHost",(v.ytSheetViewModelContextual=!0,v.ytSheetViewModelDisableBackdropFilter=_.J("web_disable_backdrop_filter"),v)),el:H,tabindex:-1},_.O(_.g,{cond:f,then:function(t){return _.O(MmF,{header:function(){return _.O(_.Jj,{data:function(){return t().header}},{panelHeaderViewModel:fA0})},
content:function(){return _.O(_.Jj,{data:function(){return t().content}},{listViewModel:function(M){return _.O(_.T1o,{data:M.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:GcF,miniAppScoreChallengeViewModel:CBW})},
footer:function(){return _.O(_.Jj,{data:function(){return t().footer}},{panelFooterViewModel:_.wM})}})}}))},"ai");
hN0.idomCompat=!0;_.yn(hN0,"yt-sheet-view-model",{props:{data:_.ki}});var Vm0=_.a(function(f){var H=function(){var v;return(v=f.data().enableDebuggingFeatures)!=null?v:!1};
return _.O("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.O(_.eK,{each:function(){var v;return(v=f.data().stickers)!=null?v:[]}},function(v){return _.O(RNh,{data:function(){return v},
debugMode:H})}))},"bi"),RNh=_.a(function(f){var H=_.tV(f,{debugMode:!1}).debugMode,v=_.vK(function(){var W;
return(W=f.data().region)==null?void 0:W.w},0),t=_.vK(function(){var W;
return(W=f.data().region)==null?void 0:W.h},0),M=_.vK(function(){var W;
return(W=f.data().region)==null?void 0:W.x},0),h=_.vK(function(){var W;
return(W=f.data().region)==null?void 0:W.y},0),y=_.d6(function(){var W=f.data().onTap;
W&&_.XA(W)}),m={};
return _.O("div",{class:_.S2("ytStoriesStickerLayerViewModelSticker",(m.ytStoriesStickerLayerViewModelDebugMode=H,m)),style:_.ZE({width:function(){return 100*v()+"%"},
height:function(){return 100*t()+"%"},
left:function(){return 100*M()+"%"},
top:function(){return 100*h()+"%"},
"flex-direction":function(){return fEW(f.data().flexDirection)},
"justify-content":function(){return HVt(f.data().justifyContent)},
"align-items":function(){return vKh(f.data().alignItems)}}),
"on:click":y},_.O(_.Jj,{data:function(){return f.data().button||f.data().toggleButton}},{buttonViewModel:function(W){return _.O(_.Wp,{data:W.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(W){return _.O(_.Fo,{data:W.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"ci");var Ylx=_.a(function(f){var H=function(){return f.data()},v={},t=_.vK(function(){return H().backgroundColor},0),M=_.vK(function(){return H().actionButtons},[]),h=_.vK(function(){return H().stickerLayer},{}),y=function(){var W,I;
return{animationRef:v,animationConfig:{autoplay:!1,loop:!1,path:(I=(W=H().foregroundAnimation)==null?void 0:W.url)!=null?I:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){f.navigateToNextItemOnLottieComplete()}}}},m=function(){var W,I,S,d,Z,l,L,r;
return{animationConfig:{autoplay:(l=(W=H().backgroundAnimation)==null?void 0:(I=W.settings)==null?void 0:I.autoplay)!=null?l:!1,loop:(L=(S=H().backgroundAnimation)==null?void 0:(d=S.settings)==null?void 0:d.loop)!=null?L:!1,path:(r=(Z=H().backgroundAnimation)==null?void 0:Z.url)!=null?r:"",name:"stories_item_background_animation"}}};
_.K4(function(){if(f.isVisible()){var W;(W=v.lottieEl)==null||W.play();f.animationRef()&&(f.animationRef().lottieEl=v.lottieEl)}else{var I;(I=v.lottieEl)==null||I.stop()}},"Cbnkwd");
return _.O("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.ZE({"background-color":function(){return _.cS(t())+";"}})},_.O("div",{class:"ytStoriesItemViewModelAssetContent"},_.O(_.g,{cond:function(){return!!H().backgroundAnimation},
then:function(){return _.O(_.j3,{data:m,animationName:function(){return m().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.O(_.g,{cond:function(){return!!H().backgroundImage},
then:function(){return _.O(_.Hn,{data:function(){return H().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.O(_.g,{cond:function(){return!!H().foregroundAnimation},
then:function(){return _.O(_.j3,{data:y,animationName:function(){return y().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.O(_.g,{cond:function(){return!!H().foregroundImage},
then:function(){return _.O(_.Hn,{data:function(){return H().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.O("div",{class:"ytStoriesItemViewModelTopShadow"}),_.O(_.Jj,{data:function(){return h()}},{storiesStickerLayerViewModel:Vm0})),_.O("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.ZE({"background-color":function(){return _.cS(t())}})},_.O("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.O(_.eK,{each:M},function(W){return _.O(yRr,{data:function(){return W},
pauseAutoNavigation:f.pauseAutoNavigation})}))))},"di"),mGA={style:"overlay",
type:"outline"},yRr=_.a(function(f){var H={};return _.O("div",{class:_.S2("ytStoriesItemViewModelActionButton",(H.ytStoriesItemViewModelStretchedActionButton=function(){return f.data().size==="STORIES_BUTTON_SIZE_STRETCH"},H)),
"on:click":_.d6(f.pauseAutoNavigation)},_.O(_.Jj,{data:function(){return f.data().button}},{buttonViewModel:function(v){return _.O(_.Wp,{data:v.data,
buttonOverrides:mGA})}}))},"ei");_.yn(_.a(function(f){var H=function(){var O5;return(O5=f.data().startIndex)!=null?O5:0},v=_.V(_.sR(H)),t=v.next().value,M=v.next().value;
v=_.V(_.gp(!1,void 0,"O8yPf"));var h=v.next().value,y=v.next().value,m=function(){var O5;return(O5=f.data().storyItems)!=null?O5:[]},W={},I=_.TN("yt-stories-viewer-view-model"),S=function(){return f.data().dismissButton},d=function(){var O5;
return _.GK((O5=_.U(S(),_.af))==null?void 0:O5.onTap)},Z=_.TN("div"),l,L,r=!1,n=function(){var O5;
(O5=l)==null||O5.cancel();l=Q(t()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});l.onfinish=function(){var s5=_.U(m()[t()],y$G),U5,lH;s5!=null&&s5.foregroundAnimation&&((s5==null?0:(U5=s5.foregroundAnimation)==null?0:U5.url)||(s5==null?0:(lH=s5.foregroundAnimation)==null?0:lH.payload))||(t()!==m().length-1?(M(t()+1),n()):d()&&_.Cu(d()))}},Q=function(O5){return Z.value.children[O5].children[0]},C=function(){for(var O5=0;O5<t();O5++)Q(O5).style.transform=
"scaleX(1)"};
v=_.d6(function(){r||(h()?y(!1):(t()===m().length-1&&d()&&_.Cu(d()),Q(t()).style.transform="scaleX(1)",t()!==m().length-1&&(M(t()+1),n())))});
var w=_.d6(function(){r||(h()?y(!1):(Q(t()).style.transform="scaleX(0)",t()!==0&&M(t()-1),n()))}),c=function(){y(!0)},A=function(){Q(t()).style.transform="scaleX(1)";
t()!==m().length-1?(M(t()+1),n()):d()&&_.Cu(d())},X=_.d6(function(){r=!1;
L=setTimeout(function(){y(!0);r=!0},300)}),fg=_.d6(function(){clearTimeout(L);
r&&h()&&y(!1)});
_.K4(function(){if(h()){var O5;(O5=l)==null||O5.pause();var s5;(s5=W.lottieEl)==null||s5.pause()}else{var U5;(U5=l)==null||U5.play();var lH;(lH=W.lottieEl)==null||lH.play()}},"CoaJZb");
_.K4(function(){C();t()===H()&&n()},"h78u9b");
var gB=function(O5){O5.target===I.value&&(O5=d())&&_.Cu(O5)};
_.Kc(function(){C();n();window.addEventListener("yt-popup-closed",gB)});
_.Dt(function(){clearTimeout(L);window.removeEventListener("yt-popup-closed",gB)});
return _.O("yt-stories-viewer-view-model",{el:I,class:_.S2("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.O("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.O("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":w,"on:mousedown":X,"on:mouseup":fg,"on:mouseleave":fg}),_.O("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":v,"on:mousedown":X,"on:mouseup":fg,"on:mouseleave":fg})),_.O("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},
_.O(_.Jj,{data:m},{storiesItemViewModel:function(O5,s5){var U5=O5.data;return _.O(_.g,{cond:function(){return Math.abs(s5()-t())<=1},
then:function(){var lH={};return _.O("div",{class:_.S2("ytStoriesViewerViewModelStoryItem",(lH.ytStoriesViewerViewModelActiveStoryItem=function(){return s5()===t()},lH))},_.O(Ylx,{data:U5,
pauseAutoNavigation:c,navigateToNextItemOnLottieComplete:A,isVisible:function(){return s5()===t()},
animationRef:W}))}})}})),_.O("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:Z},_.O(_.eK,{each:m},function(){return _.O("div",{class:"ytStoriesViewerViewModelProgressBar"},_.O("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.O("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.O(_.Jj,{data:S},{buttonViewModel:_.Wp})))},"fi"),"yt-stories-viewer-view-model",{props:{data:_.ki}});_.yn(_.a(function(f){var H=f.data;var v=_.TN("yt-gen-ai-feedback-form-view-model"),t=[];return _.O("yt-gen-ai-feedback-form-view-model",{el:v,class:"ytGenAiFeedbackFormViewModelHost"},_.O(_.iq,{text:function(){return H().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.O("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.O(_.Jj,{data:function(){return H().feedbackChips}},{toggleButtonViewModel:function(M){var h=M.data;
return _.O(_.Fo,{data:h,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(y){var m=h();m=_.U(m,_.G3);m=_.U(m==null?void 0:m.defaultButtonViewModel,_.af).trackingParams;y?t.push(m):(y=t.indexOf(m),y>-1&&t.splice(y,1))}})}})),_.O(_.iq,{text:function(){return H().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.O("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.O(_.Jj,{data:function(){return H().submitButton}},{buttonViewModel:function(M){return _.O(_.Wp,{data:M.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){t2b(v.value,t,H().uniqueId)}})}}),_.O(_.Jj,{data:function(){return H().moreFeedbackButton}},{buttonViewModel:function(M){return _.O(_.Wp,{data:M.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"gi"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.ki},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var Cs=function(){return _.K.apply(this,arguments)||this};
_.e(Cs,_.K);Cs.prototype.created=function(){usW(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(Bqi);var f=_.t8().resolve(_.$xb);f&&(f.container=this.ytPopupContainerBehavior);if(f=_.t8().resolve(_.zQ))f.container=this.ytPopupContainerBehavior;if(f=_.t8().resolve(_.FF)){var H=this.ytPopupContainerBehavior;f.containerWasInjected?_.pb(Error("fj")):f.container=H}};
Cs.prototype.ensurePopupBelowPlayer=function(f,H){var v=_.t8().resolve(_.vh(_.fT));if(!v||!v.isOnWatch()||!_.vx())return!1;v=v.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.BS().height>v+this.getPopupHeight(f,H)?(f.style.top="auto",f.style.bottom="0px"):(f.style.top=v+"px",f.style.bottom="auto");return!0};
Cs.prototype.getPopupHeight=function(f,H){H&&(f.cachedPopupHeight=0);if(!f.cachedPopupHeight){H=0;var v=f.clientHeight,t=window.getComputedStyle(f);H+=parseInt(t.marginTop,10);H+=parseInt(t.marginBottom,10);f.cachedPopupHeight=v+H}return f.cachedPopupHeight};
Cs.prototype.getElement=function(f){return document.createElement(f)};
_.E([_.B(T5G.YtPopupContainerBehavior),_.N("design:type",Object)],Cs.prototype,"ytPopupContainerBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],Cs.prototype,"ytComponentBehavior",void 0);_.E([_.u({disableElementRegistration:!0,is:"ytd-popup-container"})],Cs);
_.G(Cs,"ytd-popup-container",function(){if(C4x!==void 0)return C4x;var f=document.createElement("template");_.x(f,"\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");f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);return C4x=f},{mode:1});var $Gr;var WTb={};WTb.YtLogYpcFlowCommandsBehavior=[_.dt.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(f){_.U(f,x8G)&&(f=_.U(f,x8G))&&(f.serializedTransactionFlowLoggingParams?_.ajT(f.serializedTransactionFlowLoggingParams):f.serializedYpcCancelFlowLoggingParams?(f=f.serializedYpcCancelFlowLoggingParams)&&_.Ca("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",f):f.serializedYpcResumeFlowLoggingParams?(f=f.serializedYpcResumeFlowLoggingParams)&&_.Ca("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",f):f.serializedYpcPauseFlowLoggingParams?(f=f.serializedYpcPauseFlowLoggingParams)&&
_.Ca("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",f):f.serializedYpcRefundFlowLoggingParams?(f=f.serializedYpcRefundFlowLoggingParams)&&aCG("YPC_EVENT_TYPE_START",f):f.serializedYpcDeactivateFlowLoggingParams?(f=f.serializedYpcDeactivateFlowLoggingParams)&&_.Ca("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",f):f.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(f=f.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.Ca("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",f))},
handleLogYpcFlowDismiss_:function(f){_.U(f,LJw)&&(f=_.U(f,LJw),f.serializedTransactionFlowLoggingParams?_.PvT(f.serializedTransactionFlowLoggingParams):f.serializedYpcCancelFlowLoggingParams?(f=f.serializedYpcCancelFlowLoggingParams)&&_.Ca("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",f):f.serializedYpcResumeFlowLoggingParams?(f=f.serializedYpcResumeFlowLoggingParams)&&_.Ca("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",f):f.serializedYpcPauseFlowLoggingParams?(f=
f.serializedYpcPauseFlowLoggingParams)&&_.Ca("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",f):f.serializedYpcRefundFlowLoggingParams&&(f=f.serializedYpcRefundFlowLoggingParams)&&aCG("YPC_EVENT_TYPE_CANCEL",f))}}];var Oit={};Oit.YtCancelRecurrenceBehavior=[_.CM.YtComponentBehavior,_.utg,{attached:function(){var f=this;Zp0(this,function(H,v){return f.ypcCancelRecurrenceHandler(H,v)})},
ypcCancelRecurrenceHandler:function(f,H){var v=this;if(!H||!H.ypcCancelRecurrenceEndpoint)return!1;if(!H.ypcCancelRecurrenceEndpoint.params)return _.Ge(Error("Gl")),!0;_.Qp(this.hostElement);var t=_.cn.instance,M=_.t8().resolve(_.vh(_.a9));t&&_.XW(t,H)?_.AE(t,H).then(function(h){v.ypcCancelRecurrenceSuccess_(f,H,{data:h})},function(h){v.ypcCancelRecurrenceFailure_(f,H,h)}).thenCatch(function(){_.Ge(Error("Hl"))}):M?M.requestDataForServiceEndpoint(H).then(function(h){v.ypcCancelRecurrenceSuccess_(f,
H,h)},function(h){v.ypcCancelRecurrenceFailure_(f,H,h)}).thenCatch(function(){_.Ge(Error("Hl"))}):_.Ge(Error("Il"));
return!0},
ypcCancelRecurrenceSuccess_:function(f,H,v){_.uw(this.hostElement);v.data||(v={data:v});v.data&&v.data.actions&&_.Oj(this.hostElement,v.data.actions,this.hostElement);v.data.messageRenderer?Giw(H.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(H=H.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.Ca("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",H);_.YE(f,"yt-service-request-completed",v)},
ypcCancelRecurrenceFailure_:function(f,H,v){_.uw(this.hostElement);Giw(H.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.YE(f,"yt-service-request-error",{error:v,params:[f,H]})}}];var gGi=function(f,H){_.vR.call(this,H)};
_.e(gGi,tsw);var IAb={};IAb.YtCompleteTransactionBehavior=[_.CM.YtComponentBehavior,_.utg,{attached:function(){var f=this;Zp0(this,function(H,v){return f.ypcCompleteTransactionHandler(H,v)})},
completeTransaction:function(f,H){var v=this;H={payments_payload:window.btoa(H.integratorData),buybucket_params:f.data.buybucketParams,offer_params:f.data.offerParams};var t=_.t8().resolve(_.a9),M=f.data.completeTransactionEndpoint,h=this.get("ypcCompleteTransactionEndpoint.actions",M);h&&_.Oj(this.hostElement,h,this.hostElement);return(h=_.cn.instance)&&_.XW(h,M)?_.AE(h,M,H).then(function(y){return!y||(y==null?0:y.error)?(y=v.get("data.serializedTransactionFlowLoggingParams",f),_.DI(new d0("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
y))):{data:y}}).then(function(y){return v.handleCompleteTransactionSuccess_(y,f)},function(){return v.handleCompleteTransactionFailure_(f)}):t.requestDataForServiceEndpoint(M,H).then(function(y){return v.handleCompleteTransactionSuccess_(y,f)},function(){return v.handleCompleteTransactionFailure_(f)})},
handleCompleteTransactionSuccess_:function(f,H){f.data||(f={data:f});if(f.data.messageRenderer)return _.DI(new gGi(f.data.messageRenderer));if(f.data.trackingParams){var v=_.uy(),t=_.Qe();v&&t&&_.Xl(v,t,_.zK(f.data.trackingParams))}H=this.get("data.serializedTransactionFlowLoggingParams",H);P00(H);return _.gj(f)},
handleCompleteTransactionFailure_:function(f){f=this.get("data.serializedTransactionFlowLoggingParams",f);_.wZ("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",f);return _.DI(new d0("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",f))},
ypcCompleteTransactionHandler:function(f,H){var v=this;if(!H.ypcCompleteTransactionEndpoint)return!1;if(!H.ypcCompleteTransactionEndpoint.transactionParams)return _.Ge(Error("Jl")),!0;H.ypcCompleteTransactionEndpoint&&H.ypcCompleteTransactionEndpoint.gtmData&&_.r4(H.ypcCompleteTransactionEndpoint.gtmData);var t=_.t8().resolve(_.vh(_.a9));if(t){_.Qp(this.hostElement);var M=_.cn.instance;M&&_.XW(M,H)?_.AE(M,H).then(function(h){return!h||(h==null?0:h.error)?(h=v.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
H),_.DI(new d0("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",h))):{data:h}}).then(function(h){_.YE(f,"yt-service-request-completed");
v.ypcCompleteTransactionSuccess_(H,h)},function(){return v.ypcCompleteTransactionFailure_(H)}):t.requestDataForServiceEndpoint(H).then(function(h){_.YE(f,"yt-service-request-completed");
v.ypcCompleteTransactionSuccess_(H,h)},function(){return v.ypcCompleteTransactionFailure_(H)})}return!0},
ypcCompleteTransactionSuccess_:function(f,H){_.uw(this.hostElement);H.data||(H={data:H});_.mb(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);H.data.messageRenderer||H.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(f):(_.r4('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",f));H.data.actions&&(f=TXw(H.data.actions),H=wBt(H.data.actions),f.length&&_.WV(this.hostElement,
f),H.length&&_.Oj(this.hostElement,H,this.hostElement))},
ypcCompleteTransactionFailure_:function(f){_.uw(this.hostElement);_.mb(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",f,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(f,H,v){if(H=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",H))H={serializedTransactionFlowLoggingParams:H},v&&(H.errorType=v),_.Kb(f,H),_.DK()}}];var Slw={};Slw.YtEndpointHandlerWithYpcBehavior=[_.utg,_.dt.YtActionHandlerBehavior,[{openWalletDialog:function(f,H,v,t,M,h,y){var m=this,W=_.bE();H=H.replace(/-/g,"+").replace(/_/g,"/");var I=_.Uj().get("hl");_.DFH(_.iw(_.qS),H,W.resolve,M,function(S){h&&h();W.reject(S)},I,function(S){return m.onServerBackendAnalyticEvent_(f,v,S)},this.onDialogClose_.bind(this),t,y);
return W.promise},
openFixFlowDialog:function(f,H,v,t){f=f.replace(/-/g,"+").replace(/_/g,"/");_.iw(_.qS).openFixFlowDialog(f,H,v,t)},
onDialogClose_:function(){_.mb(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(f,H,v){_.YE(f,"yt-commerce-action-init-done");H&&_.WV(this.hostElement,[H,{backend_analytics:v}])}}],
_.IM.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(f,H){f=this.get("data.nativeFlowEndpoint",H);H=this.get("data.fallbackEndpoint",H);f?_.WV(this.hostElement,[f]):H&&_.YE(this.hostElement,"yt-navigate",{endpoint:H})}}],
Oit.YtCancelRecurrenceBehavior,IAb.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 f=this;Zp0(this,function(H,v,t){return f.handleYPCEndpoint(H,v,t)});
this.ypcRegisterActionMapJobId_=_.Lb(_.nN,function(){f.registerActionMap(f.buyFlowActionMap_)})},
detached:function(){var f=this;_.nN.cancelJob(this.ypcRegisterActionMapJobId_);_.Lb(_.nN,function(){f.unregisterActionMap(f.buyFlowActionMap_)})},
handleYPCEndpoint:function(f,H,v){var t=H.ypcGetCartEndpoint;if(t){_.QZ("commerce_transaction");var M=t.gtmId;M&&_.F9(M);(t=t.gtmData)&&_.r4(t)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",H)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(f,H),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",H)!=null?(this.handleYPCFixInstrumentEndpoint_(f,H),!0):H.ypcPauseSubscriptionCommand?(W3A(this.hostElement,f,H,v),
!0):H.ypcResumeSubscriptionCommand?(IEw(this.hostElement,f,H),!0):H.getPaymentInstrumentsParamsCommand?(YRx(this.hostElement,f,H),!0):H.ypcHandleTransactionEndpoint?(V2t(this.hostElement,f,H,v),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(f,H){var v=this;_.u0("ttcr",void 0,"commerce_transaction");H=H.ypcGetCartEndpoint;var t=H.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,M=t.encryptedPurchaseParams,h=t.serializedTransactionFlowLoggingParams,y=t.serializedPaymentsClientParams,m=this.createGetCartResponseFromParams_(t,H.offerParams,h);this.changeButtonState(f,!0);_.Ze(this.openWalletDialog(f,M,t.ypcLogWalletAnalyticDataEndpoint,h,function(){v.changeButtonState(f,!1)},function(){v.changeButtonState(f,
!1)},y).then(function(W){return v.handleBuyFlowCompleteCallback_(f,m,W)},function(){return v.handleOnLoadError(m)}).then(function(W){return void v.handlePostPurchaseSuccess_(f,m,W)},function(W){return void v.handlePostPurchaseError_(W)}),function(){v.changeButtonState(f,!1);
f instanceof Element&&_.YE(f,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(f,H,v){var t=f.completeTransactionEndpoint,M=f.handleTransactionEndpoint;H={data:{offerParams:window.btoa(H),serializedTransactionFlowLoggingParams:v}};M?H.data.handleTransactionEndpoint=M:H.data.completeTransactionEndpoint=t;f.onCartDismissCommand&&(H.data.onCartDismissCommand=f.onCartDismissCommand);return H},
onGetCartServiceRequestCompleted_:function(f,H){var v=this,t=f.target;if(H&&H.data&&H.data.messageRenderer)_.uw(this.hostElement),this.handleMessageRenderer_(H.data.messageRenderer),this.changeButtonState(t,!1);else{var M=this.get("data.encryptedPurchaseParams",H),h=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",H),y=this.get("data.ypcLogWalletAnalyticDataEndpoint",H),m=this.get("data.serializedPaymentsClientParams",H),W=this.getLoggingParams_(H);if(W||M||h)f.stopPropagation(),_.u0("ttcr",
void 0,"commerce_transaction"),M||_.uw(this.hostElement),this.changeButtonState(t,!1),h?_.mb(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.a8("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:h}}},this]):M&&(this.changeButtonState(t,!0),f=null,f=this.openWalletDialog(t,M,y,W,function(){_.uw(v.hostElement);v.changeButtonState(t,!1)},function(){_.uw(v.hostElement);
v.changeButtonState(t,!1)},m),_.Ze(f.then(function(I){return v.handleBuyFlowCompleteCallback_(t,H,I)},function(){return v.handleOnLoadError(H)}).then(function(I){return v.handlePostPurchaseSuccess_(t,H,I)},function(I){return v.handlePostPurchaseError_(I)}),function(){v.changeButtonState(t,!1);
_.YE(t,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(f,H){H&&H.endpoint&&H.endpoint.ypcGetCartEndpoint&&!H.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",H.endpoint.ypcGetCartEndpoint)&&_.Oj(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",H.endpoint.ypcGetCartEndpoint)],f.target),_.Qp(this.hostElement),this.changeButtonState(f.target,!0))},
onServiceRequestError_:function(f,H){if(H&&H.params&&H.params.length){H=_.V(H.params);for(var v=H.next();!v.done;v=H.next())if((v=v.value)&&v.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",v.ypcGetCartEndpoint)&&_.Oj(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",v.ypcGetCartEndpoint)],f.target);_.uw(this.hostElement);this.changeButtonState(f.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(f,H,v){var t=v.integratorData;return t==null||t===""||v.error!=null?(t=this.getLoggingParams_(H),String(v.error)==="-1"?(H.data.onCartDismissCommand&&_.Oj(this.hostElement,[H.data.onCartDismissCommand],f),_.DI(new d0("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",t,!0))):_.DI(new d0("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",t))):H.data.handleTransactionEndpoint?yE5(this.hostElement,H.data.handleTransactionEndpoint,{payments_payload:t,funds_guarantee_callback_client_data:v.integratorClientCallbackData}):
this.completeTransaction(H,v)},
handlePostPurchaseSuccess_:function(f,H,v){H=v.data;var t=!1,M,h;if(H&&((M=H.command)==null?0:(h=M.commandExecutorCommand)==null?0:h.commands)){var y,m;M=(y=H.command)==null?void 0:(m=y.commandExecutorCommand)==null?void 0:m.commands;for(y=0;y<M.length;y++)if(_.U(M[y],_.sMg)){t=!0;break}}t||(H&&H.gtmDatas&&H.gtmDatas.length?_.r4(H.gtmDatas[0]):_.r4('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));v.data&&v.data.actions&&(H=TXw(v.data.actions),v=wBt(v.data.actions),H.length&&
_.WV(this.hostElement,H),v.length&&_.Oj(this.hostElement,v,f))},
handlePostPurchaseError_:function(f){f&&f.payload&&f.payload.isUserDismiss||_.oO(Error("Ll"))},
handleOnLoadError:function(f){f=this.getLoggingParams_(f);return _.DI(new d0("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",f))},
getLoggingParams_:function(f){return this.get("data.serializedTransactionFlowLoggingParams",f)},
handleMessageRenderer_:function(f){var H=_.o8(f,"renderer"),v=_.a8("openPopupConfig");H==="confirmDialogRenderer"&&v&&_.mb(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:v.popupTypeMap[H],popup:f}},this])},
handleYPCFixInstrumentEndpoint_:function(f,H){var v=this,t=H.ypcFixInstrumentEndpoint;H=t.encryptedFixInstrumentParameters;this.logFixFopEvent_(t,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(f,!0);this.openFixFlowDialog(H,function(M,h){v.onFixFlowCompleteCallback_(t,M,h)},function(){return v.changeButtonState(f,!1)},function(){v.changeButtonState(f,!1);
v.logFixFopEvent_(t,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(f,H,v){var t=_.ES("payments.business.integration.scenario.FixInstrument");if(H==t.IntegratorCallbackType.ON_COMPLETE){H="FIX_FOP_EVENT_TYPE_CANCEL";var M=null;v.error!=null?v.error!=t.OnCompleteCallbackError.USER_CANCELLED&&(_.Oj(this.hostElement,[f.errorAction],this.hostElement),H="FIX_FOP_EVENT_TYPE_FAILURE",M="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.Oj(this.hostElement,[f.successAction],this.hostElement),H="FIX_FOP_EVENT_TYPE_SUCCESS");_.Oj(this.hostElement,[f.onFinishAction],
this.hostElement);this.logFixFopEvent_(f,H,M)}},
logFixFopEvent_:function(f,H,v){(f=f.serializedFixFopLoggingParams)?(H={eventType:H,serializedFixFopLoggingParams:f},v!=null&&(H.errorType=v),_.Kb("fixFopFlow",H),_.DK()):_.oO(Error("Ml"))},
changeButtonState:function(f,H){_.J("enable_ypc_spinners")&&f&&(f.is==="yt-button-renderer"||f.is==="ytd-button-renderer")&&(f.disabled=H)}}];var dG0=function(f){this.JSC$32297_clientRoot=f;this.feedbackCollectorActionMap={"yt-help-dialog-requested":dYw,"yt-feedback-dialog-requested":SR0,"yt-signal-action-help":jmb,"yt-signal-action-send-feedback":smt,"yt-send-feedback-action":JEh,"yt-user-feedback-endpoint":lEh};_.b$(_.A7.getInstance(),this.feedbackCollectorActionMap,this.JSC$32297_clientRoot)},jRA;var sRp=function(f){this.JSC$32302_clientRoot=f;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":UYb.bind(null,this.JSC$32302_clientRoot),"yt-signal-action-delete-all-downloads":L3t,"yt-signal-action-delete-download":xYh,"yt-signal-action-delete-playlist-download":z0x,"yt-signal-action-install-pwa":nKx,"yt-signal-action-refresh-downloads":DYi,"yt-offline-video-endpoint":Qmw,"yt-offline-playlist-endpoint":aEx,"yt-update-local-app-setting-command":GIF,"yt-offline-orchestration-action-command":EKF,
"yt-signal-action-undo-delete-download":rEW,"yt-local-watch-history-command":XnF};_.b$(_.A7.getInstance(),this.downloadManagerActionMap,this.JSC$32302_clientRoot);_.pG.instance=new _.pG},Zit;var EG=function(){var f=_.K.apply(this,arguments)||this;f.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_"};f.remoteApi_=null;return f};
_.e(EG,_.K);_.R=EG.prototype;
_.R.ready=function(){_.J("polymer_enable_mdx")&&(zfW({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.J("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.J("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.J("enable_cast_short_lived_lounge_token")}),_.YF("yt-remote-connection-change",this.handleConnectionChange_,this),_.YF("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=p5x())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.R.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.R.handleConnectionChange_=function(f){(this.mdxConnected=f)?(f=Kn0(),!f&&pBt()&&QKt()&&(f={key:"cast-selector-receiver",name:QKt()}),f=f.name):f=null;this.receiverName=f;_.Mj(this.remoteApi_);(this.remoteApi_=p5x())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.R.handleReceiverAvailabilityChange_=function(){var f=r3A();pBt()&&_.Oz("yt-remote-cast-available")&&f.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=f.length>0};
_.R.handleRemoteQueueChange_=function(){var f=this.currentVideoId_,H=this.currentListId_,v=Ur(this.remoteApi_);this.currentVideoId_=v.videoId;this.currentListId_=v.listId;this.currentVideoId_&&_.mb(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.J("polymer_enable_mdx_queue")?this.currentListId_:null,f,H])};
_.R.handleAddToQueueAction_=function(f){f=_.U(f,YLG);this.remoteApi_&&(f.videoId?this.remoteApi_.addVideo(f.videoId):f.playlistId&&this.remoteApi_.addPlaylist(f.playlistId))};
_.R.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.R.handleInsertInQueueAction_=function(f){f=_.U(f,m80);this.remoteApi_&&f.videoId&&this.remoteApi_.JSC$19771_insertVideo(f.videoId)};
_.R.handleRemoveFromQueueAction_=function(f){f=_.U(f,$8t);this.remoteApi_&&f.videoId&&this.remoteApi_.JSC$19771_removeVideo(f.videoId)};
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],EG.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F(),_.N("design:type",Object)],EG.prototype,"appId",void 0);_.E([_.F(),_.N("design:type",Boolean)],EG.prototype,"mdxConnected",void 0);_.E([_.F(),_.N("design:type",Boolean)],EG.prototype,"receiverAvailable",void 0);_.E([_.F(),_.N("design:type",Object)],EG.prototype,"receiverName",void 0);_.E([_.F(),_.N("design:type",Object)],EG.prototype,"currentVideoId_",void 0);
_.E([_.F(),_.N("design:type",Object)],EG.prototype,"currentListId_",void 0);_.E([_.GW({is:"yt-mdx-manager",disableElementRegistration:!0})],EG);_.G(EG,"yt-mdx-manager",void 0,{mode:2});var JRr;var lA0;var NF=function(){var f=_.K.apply(this,arguments)||this;f.APP_IDS={ytr:3,ytm:5};f.JSC$20978_timeoutId_=0;f.actionMap={"yt-open-create-family-dialog":"open"};return f};
_.e(NF,_.K);_.R=NF.prototype;_.R.created=function(){usW(2200)};
_.R.detached=function(){this.observer_&&this.observer_.disconnect()};
_.R.open=function(f,H){var v=this,t=f.serializedYpcFamilyCreateLoggingParams;this.JSC$20978_timeoutId_=setTimeout(this.abort_.bind(this,f.postFlowErrorEndpoint,t),3E4);H&&(this.onReadyCallback_=H);var M=_.mF(this.hostElement).querySelector("#unicorn-iframe");t&&t&&ulF("ypcFamilyCreateFlowStarted",t);_.LAR("family_creation",function(){var h=_.ES("gapi.family_creation.render");_.ES("gapi.config.update")("iframes/family_creation/url",v.getFamilyCreationUrlWithUnicornParams_());var y=3;f.appId&&f.appId in
v.APP_IDS&&(y=v.APP_IDS[f.appId]);y={authUser:_.a8("SESSION_INDEX")||0,clientId:y,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.a8("HL"),initialflow:[4,5,6,7],m:v.isMobile?1:0,onFlowComplete:v.onUnicornFlowComplete_.bind(v,f.postFlowSuccessEndpoint,t),onError:v.onUnicornFlowError_.bind(v,f.postFlowErrorEndpoint,t),onReady:v.onUnicornFlowReady_.bind(v,f.referencePcidParams)};h(M,y)})};
_.R.close=function(){_.mF(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.R.onUnicornFlowComplete_=function(f,H){this.close();H&&H&&ulF("ypcFamilyCreateFlowSucceeded",H);_.YE(this.hostElement,"yt-navigate",{endpoint:f})};
_.R.onUnicornFlowError_=function(f,H){this.close();H&&ulF("ypcFamilyCreateFlowCancelled",H);_.YE(this.hostElement,"yt-navigate",{endpoint:f})};
_.R.onUnicornFlowReady_=function(f){var H=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();f&&_.ES("gapi.family_creation.setConfig")(0,f);this.observer_=new MutationObserver(function(){_.mF(H.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.mF(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.mF(this.hostElement).querySelector("#dialog").open()};
_.R.getFamilyCreationUrlWithUnicornParams_=function(){return _.a8("YTR_FAMILY_CREATION_URL")};
_.R.getCurrentUrl_=function(){return document.location.href};
_.R.abort_=function(f,H){this.clearTimeout_();this.onUnicornFlowError_(f,H)};
_.R.clearTimeout_=function(){clearTimeout(this.JSC$20978_timeoutId_)};
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],NF.prototype,"ytActionHandlerBehavior",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],NF.prototype,"isMobile",void 0);_.E([_.F(),_.N("design:type",Object)],NF.prototype,"onReadyCallback_",void 0);_.E([_.F(),_.N("design:type",Object)],NF.prototype,"observer_",void 0);_.E([_.GW({is:"yt-create-family-dialog",disableElementRegistration:!0})],NF);
_.G(NF,"yt-create-family-dialog",function(){if(lA0===void 0){var f=document.createElement("template");_.x(f,'\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');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);var H=f.content,v=H.insertBefore;JRr===void 0&&(JRr=document.createElement("template"));var t=JRr;v.call(H,t.content.cloneNode(!0),f.content.firstChild);lA0=f}f=lA0;return f},{mode:2});var UGF;var eN0;var cZ=function(){var f=_.K.apply(this,arguments)||this;f.STEP=1;f.BLOCK_ON=80;f.MIN_PROGESS=0;f.MAX_PROGESS=100;return f};
_.e(cZ,_.K);_.R=cZ.prototype;_.R.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.R.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));_.t8().addProvider({provide:$vr,useValue:this})};
_.R.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.R.finish=function(){var f=this;this.progress=this.MAX_PROGESS;AEx(function(){f.progress==f.MAX_PROGESS&&(f.hostElement.hidden=!0)})};
_.R.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.H7.Object.defineProperties(cZ.prototype,{progress:{configurable:!0,enumerable:!0,set:function(f){this.progress_=f;var H="scaleX("+f/this.MAX_PROGESS+")",v=_.mF(this.hostElement).querySelector("#progress").style;v.transform=H;v.webkitTransform=H;this.hostElement.setAttribute("aria-valuenow",String(f))},
get:function(){return this.progress_}}});
_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],cZ.prototype,"ytComponentBehavior",void 0);_.E([_.GW({is:"yt-page-navigation-progress",disableElementRegistration:!0})],cZ);
_.G(cZ,"yt-page-navigation-progress",function(){if(eN0===void 0){var f=document.createElement("template");_.x(f,'\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');f.content.insertBefore(_.b().content.cloneNode(!0),
f.content.firstChild);var H=f.content,v=H.insertBefore;UGF===void 0&&(UGF=document.createElement("template"));var t=UGF;v.call(H,t.content.cloneNode(!0),f.content.firstChild);eN0=f}f=eN0;return f},{mode:2});var LTh={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"},xGG={"font-size":"12px","font-style":"italic"},Blr={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.T6r=function(){return _.Y(function(f){_.Bj(f)})};var zNh=_.a(function(f){var H=function(){return f.data().subtext},v={};
return _.O("snackbar-view-model",{class:_.S2("snackbarViewModelHost",f.className)},_.O("div",{class:_.S2("snackbarViewModelEngagementBarWrapper",f.className)},_.O(_.g,{cond:function(){return f.data().image},
then:function(t){return _.O(_.Hn,{data:t,alt:"",targetHeight:48,targetWidth:86,preserveHeight:!0,preserveWidth:!0,className:"snackbarViewModelImageContainer"})}}),_.O(_.g,{cond:function(){return f.data().imageContent},
then:function(){return _.O("div",{class:"snackbarViewModelAvatarContainer"},_.O(_.Jj,{data:function(){return f.data().imageContent}},{decoratedAvatarViewModel:_.Dj}))}}),_.O("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.O("div",{class:_.S2((v.snackbarViewModelTitle=!0,v.snackbarViewModelTitleWithSubtext=H,v))},_.O(_.iq,{text:function(){return f.data().text}})),_.O(_.g,{cond:H,
then:function(){return _.O("div",{class:"snackbarViewModelSubtext"},_.O(_.iq,{text:function(){return H()}}))}})),_.O(_.g,{cond:function(){return f.data().buttons},
then:function(){return _.O("div",{class:"snackbarViewModelButtonClassWrapper"},_.O(_.Jj,{data:function(){return f.data().buttons}},{buttonViewModel:function(t){return _.O(_.Wp,{data:t.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:f.target})}}))}})))},"hi");_.yn(_.a(function(){function f(C,w,c){L(C);n(c);Z("in");S(!0);H(C,w);y=setTimeout(function(){v()},w)}
function H(C,w){var c,A=(c=C.text)==null?void 0:c.content;C=_.KT(C.rendererContext);A&&(w={label:A,command:C,durationMs:w},_.t8().resolve(_.eS).enqueue(w))}
function v(C){Z("out");C&&clearTimeout(y)}
function t(){v(!0)}
function M(C){if(C){var w=C.snackbarViewModel,c=C.durationMs,A=C.target;c||(c=3E3);w&&(C=_.t8().resolve(_.vh(_.sX)))&&C.enqueue({isOpened:I,open:function(){f(w,c,A)},
close:v},0)}}
var h=_.w8("snackbar-container"),y=void 0,m=_.V(_.gp(!1,void 0,"jJ4tBf")),W=m.next().value;m=m.next().value;var I=W,S=m;W=_.V(_.gp("out",void 0,"M6Rbpb"));var d=W.next().value,Z=W.next().value;W=_.V(_.gp(void 0,void 0,"aFswib"));var l=W.next().value,L=W.next().value;W=_.V(_.gp(void 0,void 0,"mlWWhb"));var r=W.next().value,n=W.next().value,Q=_.d6(function(){if(d()==="out"){S(!1);L(void 0);n(void 0);var C=_.t8().resolve(_.vh(_.sX));C&&k7i(C,0)}});
_.Kc(function(){var C=_.t8().resolve(_.vh(_.ov0));C&&(C.showSnackbarFn=M,C.closeSnackbarFn=t)});
return _.O("snackbar-container",{class:"ytSnackbarContainerHost",el:h},_.O(_.g,{cond:function(){return I()&&!!l()},
then:function(){var C={};return _.O("div",{class:_.S2("ytSnackbarContainerSnackbarContainer",(C.ytSnackbarContainerMobile=!1,C.ytSnackbarContainerPivotBar=function(){var w;return!((w=_.t8().resolve(_.vh(_.nv5)))==null||!w())},C.ytSnackbarContainerOpened=function(){return I()&&d()==="in"},C.ytSnackbarContainerClosed=function(){return I()&&d()==="out"},C)),
"on:animationend":Q},_.O(zNh,{data:function(){return l()},
target:function(){return r()}}))}}))},"ii"),"snackbar-container");_.yn(_.u8H,"yt-tooltip");var FT0=_.woi.ephemeralActionSelector;_.yn(_.a(function(){var f=_.uE(FT0);return _.O("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var H;return(H=f())==null?void 0:H.announcement})},"ji"),"yt-ephemeral-actions");var IOx=new Map;var dCF=function(f,H){var v=this;this.handleError=f;this.logEventInternal=H;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){v.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
dCF.prototype.logError=function(f){this.handleError(f)};
dCF.prototype.logEvent=function(f,H){switch(f){case "IDB_DATA_CORRUPTED":_.J("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",H);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",H);break;case "IS_SUPPORTED_COMPLETED":_.J("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",H);break;case "QUOTA_EXCEEDED":rRW(this,H);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",H);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":f=Object.assign({},H,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",f)}};
var rRW=function(f,H){_.B$.getInstance().estimate().then(function(v){v=Object.assign({},H,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:dlA(v==null?void 0:v.usage),deviceStorageQuotaMbytes:dlA(v==null?void 0:v.quota)});f.logEventInternal("idbQuotaExceeded",v)})};var KTx=_.a(function(f){var H=_.TN("yt-draggable"),v=f.onDrag,t=f.onDragStart,M=f.onDragEnd,h=_.tV(f,{allowClicks:!1,dragThreshold:5}),y=h.dragThreshold,m=h.allowClicks;f=h.children;h=h.className;var W=void 0,I=void 0,S=new _.al(0,0),d=!1;_.Kc(function(){W=new _.KZ(H.value);I=new _.MC(l);Z(W,I);if(m()){_.fUH(W,y());var r;(r=H.value)==null||r.addEventListener("click",L,{capture:!0})}_.Dt(function(){var n;(n=W)==null||n.dispose();if(m()){var Q;(Q=H.value)==null||Q.removeEventListener("click",L,{capture:!0})}})});
var Z=function(r,n){_.r9(r,"earlycancel",function(){m()&&(d=!1)});
_.r9(r,"start",function(Q){t==null||t(Q);Q.defaultPrevented||m()&&(d=!0)});
_.r9(r,"beforedrag",function(Q){W&&I&&(Q.preventDefault(),S=new _.al(Q.clientX-W.startX,Q.clientY-W.startY),I.start())});
_.r9(r,"end",function(){n.stop();M==null||M();S=new _.al(0,0)})},l=function(){S&&v(S)},L=function(r){d&&(d=!1,r.stopPropagation(),r.preventDefault())};
return _.O("yt-draggable",{el:H,class:_.S2("ytDraggableComponentHost",h)},f)},"ki");var DGW=_.a(function(f){var H=_.V(_.gp(0,void 0,"CvAwBd")),v=H.next().value,t=H.next().value;H=function(M){var h={},y={};return _.O(KTx,{className:_.S2("ytdMiniplayerComponentResizer",(h.ytdMiniplayerComponentResizerDisabled=function(){return M===f.horizontalAlignment()||M===f.verticalAlignment()},h.ytdMiniplayerComponentResizerNorth=M==="north",h.ytdMiniplayerComponentResizerEast=M==="east",h.ytdMiniplayerComponentResizerSouth=M==="south",h.ytdMiniplayerComponentResizerWest=M==="west",h)),
onDragStart:function(){t(f.currentMiniplayerSize());if(f.onResizeStart)f.onResizeStart()},
onDrag:function(m){M!=="north"&&M!=="west"||m.scale(-1);var W;m=(W=M==="north"||M==="south")?m.y:m.x;var I=f.currentAspectRatio();W&&I>=1?m*=I:!W&&I<1&&(m/=I);W=m;f.onResize(v()+W)}},_.O("div",{class:_.S2("ytdMiniplayerComponentResizerCorner",(y.ytdMiniplayerComponentResizerNorthCorner=M==="north",y.ytdMiniplayerComponentResizerEastCorner=M==="east",y.ytdMiniplayerComponentResizerSouthCorner=M==="south",y.ytdMiniplayerComponentResizerWestCorner=M==="west",y))}))};
return _.O("div",{class:"ytdMiniplayerComponentResizers"},H("north"),H("east"),H("south"),H("west"))},"li");var oGx=16/9;_.yn(_.a(function(){var f=_.TN("ytd-miniplayer"),H=_.V(_.gp(new _.eF(NaN,NaN),void 0,"GNXZTe")),v=H.next().value,t=H.next().value;H=_.V(_.gp(!1,void 0,"XqI9xc"));var M=H.next().value,h=H.next().value;H=_.V(_.gp(!1,void 0,"k3iLGe"));var y=H.next().value,m=H.next().value;H=_.V(_.gp(!1,void 0,"ApjQ9b"));var W=H.next().value,I=H.next().value;H=_.V(_.gp(!1,void 0,"PzlhGe"));var S=H.next().value,d=H.next().value;H=_.V(_.gp(!1,void 0,"pm6fl"));var Z=H.next().value,l=H.next().value;H=_.V(_.gp(!1,void 0,"xQrL1e"));
var L=H.next().value,r=H.next().value;H=_.V(_.gp(oGx,void 0,"NcrWZb"));var n=H.next().value,Q=H.next().value,C=_.V(_.gp(!1,void 0,"e5rxBc"));H=C.next().value;var w=C.next().value;C=_.V(_.gp(!1,void 0,"uZtCde"));var c=C.next().value,A=C.next().value;C=_.V(_.gp(void 0,void 0,"wKFvEe"));var X=C.next().value,fg=C.next().value;C=_.V(_.gp(_.a8("HTML_DIR")==="rtl"?"west":"east",void 0,"FF7oMe"));var gB=C.next().value,O5=C.next().value;C=_.V(_.gp("south",void 0,"QXcssb"));var s5=C.next().value,U5=C.next().value;
C=_.V(_.gp(400,void 0,"Fr8gSb"));var lH=C.next().value,E5=C.next().value,uH=_.t8().resolve(_.o0).miniplayerPropSignalMap[0],Rn=uH.data,pr=uH.externalPlaylistData;C=uH.toastData;var gh=uH.playabilityStatus,fr=uH.isReadyToResume,sb=uH.isDisabled,In=uH.watchWhile,Kr=uH.playerVe,BA=uH.expandVe,TH=uH.closeVe,hN=uH.readyToResumeVe,Ho=uH.readyToResumeCloseVe,J9=uH.repositionVe,Ox=uH.resizeVe;uH=_.V(_.sR(fr));var lC=uH.next().value,vA=uH.next().value,Rd=!1,HA=!1,$g;_.Kc(function(){t(_.BS());f.value.addEventListener("animationend",
function(Eb){Eb.target===f.value&&(l(!1),r(!1))});
UlF(f.value)});
_.kF("yt-window-resized",function(Eb){Eb&&t(Eb)});
var iC=function(){$g&&Q($g.getVideoAspectRatio())},jp=function(){if($g){var Eb=$g.getPlayerState()===1;
lC()&&Eb&&vA(!1)}},zH=function(){var Eb=BA();
if(Eb){var PA=_.uy(3);PA&&_.Ti(PA,Eb)}},Fa=function(){var Eb=TH(),PA=Ho();
Eb&&_.Ti(_.uy(3),Eb);fr()&&PA&&_.Ti(_.uy(3),PA)};
_.kF("yt-activate-miniplayer",function(Eb){var PA;return _.Y(function(Xb){if(Xb.nextAddress==1)return M()?Xb.return():Xb.yield((PA=_.t8().resolve(_.o0).getPlayerElement())==null?void 0:PA.getPlayerPromise(),2);$g=Xb.yieldResult;if(!$g)return Xb.return();!c()&&_.J("kevlar_watch_while_v2")&&(U5(Eb&&!_.J("kevlar_watch_while_bottom_align")?"north":"south"),O5(_.a8("HTML_DIR")==="rtl"?"west":"east"));var YU=$g;YU.addEventListener("onVideoDataChange",iC);YU.addEventListener("onStateChange",jp);YU.addEventListener("onExpandMiniplayer",
zH);YU.addEventListener("onCloseMiniplayer",Fa);Q($g.getVideoAspectRatio());h(!0);lOw()||l(!0);_.Bj(Xb)})});
_.kF("yt-deactivate-miniplayer",function(Eb){return _.Y(function(PA){if(!M())return PA.return();h(!1);vA(!1);r(Eb);d(!1);m(!1);if($g){var Xb=$g;Xb.removeEventListener("onVideoDataChange",iC);Xb.removeEventListener("onStateChange",jp);Xb.removeEventListener("onExpandMiniplayer",zH);Xb.removeEventListener("onCloseMiniplayer",Fa)}lOw()||l(!0);_.Bj(PA)})});
var lt=function(){return!(In()&&_.J("kevlar_watch_while_modern"))},Oq=function(){var Eb;
return!((Eb=pr())==null||!Eb.contents)},di=function(){var Eb=lH();
var PA=v();PA=Math.min(Math.min(PA.width,PA.height)-32,720);var Xb=n(),YU=lt(),MR=Oq()&&y(),mS=Math.min(Eb,PA);Eb=new _.eF(192,YU?116:192);Xb=new _.eF(MR?oGx:Xb,1);mS=new _.eF(mS,YU?mS-76:mS);mS=Xb.aspectRatio()>mS.aspectRatio()?mS.width/Xb.width:mS.height/Xb.height;Xb=Xb.scale(mS);Eb.width<=Xb.width&&Eb.height<=Xb.height||(Eb=Xb.aspectRatio()<=Eb.aspectRatio()?Eb.width/Xb.width:Eb.height/Xb.height,Xb.scale(Eb),Xb.width=Math.min(Xb.width,PA),Xb.height=Math.min(Xb.height,PA));return new _.eF(Xb.width,
_.FL(192,Xb.height+B3t(YU,MR),720))},zf=function(){var Eb=di(),PA=lt(),Xb=Oq()&&y();
return new _.eF(Eb.width,Eb.height-B3t(PA,Xb))},lK=function(){var Eb=function(PA){PA.target===f.value&&S()&&(d(!1),f.value.removeEventListener("transitionend",Eb))};
lOw()||(f.value.addEventListener("transitionend",Eb),d(!0));m(!y())};
_.K4(function(){var Eb=Kr(),PA=_.uy(3),Xb=_.Qe(3);if(PA&&Xb&&Eb){_.Xl(PA,Xb,Eb);Xb=J9();var YU=Ox(),MR=BA(),mS=TH(),U0=Ho();MR&&mS&&U0&&(_.AX(PA,Eb,[MR,mS,U0]),_.i0(PA,[MR,mS]));Xb&&YU&&_.AX(PA,Eb,[Xb,YU])}},"Snz6Ld");
_.K4(function(){var Eb=hN();if(Eb){var PA=_.uy(0),Xb=_.Qe(0);PA&&Xb&&(_.Xl(PA,Xb,Eb),_.i0(PA,[Eb]))}},"X1FpHd");
uH={};return _.O("ytd-miniplayer",{el:f,class:_.S2("ytdMiniplayerComponentHost",(uH.ytdMiniplayerComponentVisible=function(){return M()||Z()},uH.ytdMiniplayerComponentAnimatingSnap=W,uH.ytdMiniplayerComponentAnimatingPlaylistExpand=S,uH.ytdMiniplayerComponentAnimatingFade=Z,uH),function(){if(Z()){var Eb=s5();
var PA=M(),Xb=L();Eb=PA?Eb==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":Xb?Eb==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":Eb==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else Eb="";return Eb}),
style:_.ZE({top:function(){return s5()==="north"?"16px":""},
right:function(){return gB()==="east"?"16px":""},
bottom:function(){return s5()==="south"?"16px":""},
left:function(){return gB()==="west"?"16px":""},
width:function(){return di().width+"px"},
height:function(){return di().height+"px"},
transform:function(){var Eb=X();return Eb?"translate("+Eb.x+"px, "+Eb.y+"px)":""}})},_.O("div",{class:"ytdMiniplayerComponentContent"},_.O(KTx,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(Eb){var PA=xlw(gB(),s5(),v(),di(),X()),Xb=zf();Math.abs(Eb.clientY-(PA.y+Xb.height))>15?(w(!0),Eb=_.uy(3),PA=J9(),Rd||(Rd=!0,Eb&&PA&&_.i0(Eb,[PA])),Eb&&PA&&_.Ti(Eb,PA)):Eb.preventDefault()},
onDrag:function(Eb){fg(Eb)},
onDragEnd:function(){var Eb=eI0(xlw(gB(),s5(),v(),di(),X()),v(),di()),PA=LVb(gB(),s5(),v(),di()),Xb=LVb(Eb.horizontalAlignment,Eb.verticalAlignment,v(),di());Xb=new _.al(Xb.x-PA.x,Xb.y-PA.y);var YU;PA=PA.y+(((YU=X())==null?void 0:YU.y)||0)+di().height/2;var MR=function(){gB()===Eb.horizontalAlignment&&s5()===Eb.verticalAlignment||A(!0);O5(Eb.horizontalAlignment);U5(Eb.verticalAlignment);fg(void 0)},mS=function(U0){U0.target===f.value&&W()&&(I(!1),MR(),f.value.removeEventListener("transitionend",mS))};
w(!1);s5()==="south"&&PA>v().height?(MR(),_.t8().resolve(_.o0).close()):(f.value.addEventListener("transitionend",mS),I(!0),fg(Xb))}},_.O(_.g,{cond:M,
then:function(){return _.O(_.MFt,{isDisabled:sb,playabilityStatus:gh,size:zf})}}),_.O(_.g,{cond:lt,
then:function(){return _.O(_.vO5,{isReadyToResume:lC,data:Rn,expanded:y,onExpandClick:lK,playlistData:pr})}}),_.O(_.g,{cond:H,
then:function(){return _.O("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.O(_.g,{cond:function(){return Oq()&&y()||S()},
then:function(){return _.O(_.NWa,{className:"ytdMiniplayerComponentPlaylistPanel",data:pr,hideHeaderText:!0,withinMiniplayer:!0})}}),_.O("div",{class:"ytdMiniplayerComponentToast"},_.O(_.hgW,{toastData:C}))),_.O(DGW,{onResize:function(Eb){E5(_.FL(192,Eb,720))},
onResizeStart:function(){var Eb=_.uy(3),PA=Ox();HA||(HA=!0,Eb&&PA&&_.i0(Eb,[PA]));Eb&&PA&&_.Ti(Eb,PA)},
currentAspectRatio:n,currentMiniplayerSize:lH,horizontalAlignment:gB,verticalAlignment:s5}))},"mi"),"ytd-miniplayer",{});var X0=function(){var f=_.K.apply(this,arguments)||this;f.tabGesturesIsActive=!1;f.deprecateFullerscreenUi=_.J("web_watch_fullerscreen_deprecation_ui");f.hasDelegation=!1;f.darkerDarkTheme=_.J("web_darker_dark_theme");f.isFrostedGlassInitialized=!1;f.frostedGlassExp=_.J("web_frosted_glass");f.mastheadHiddenFocusWithinKillswitch=_.J("web_masthead_hidden_focus_within_killswitch");f.clientOnlyWizTooltipsEnabled=_.J("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");f.scrollAtTop=
!0;f.guideScrollTop=0;f.isTheaterModeSession=_.P6("START_IN_THEATER_MODE");f.iMaxTheaterMode=_.J("web_watch_imax_theater_mode");f.isFullWindowSession=_.P6("START_IN_FULL_WINDOW_MODE");f.hasCreateFamilyDialog=!1;f.mastheadHeight=56;f.networkStatusManager=new _.Aa;f.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"};f.dynamicActionMap={"yt-run-attestation-command":function(H){var v=_.F8v.instance,t=_.U(H,_.dth);return t?_.J("use_rta_manager_for_async")&&
tq0()?xiw(v,t,H.clickTrackingParams):L2w(v,t,H.clickTrackingParams):_.DI(Error("ni"))}};
f.isFrostedGlassDisabled=!1;f.isChannelOrPlaylistPage=!1;return f};
_.e(X0,_.K);_.R=X0.prototype;_.R.created=function(){var f=_.t8();_.J("kevlar_clear_duplicate_pref_cookie")&&_.Lb(_.nN,function(){var H=_.sk.get("PREF");H&&!/f\d=/.test(H)&&(H=_.yQ("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=H?"PREF=null;domain="+H+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.J("gzip_gel_with_worker")&&_.rJb();_.J("jspb_serialize_with_worker")&&BIG();_.J("web_worker_availability_check")&&S7G();_.J("nwl_init_killswitch")||Lgx().then(function(){_.nN.addLowPriorityJob(EVh)});
this.pageManagerAttachedPromise=_.bE();this.ytdAppBehavior.loadDepsPromise=_.sB([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.Nl(this.onThrottledScroll,200,this);_.J("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);jWW();H8i=!!_.ES("ytappsettings.initialized");Bg=_.ES("ytappsettings.previousValue");HQx=_.ES("ytappsettings.previousSnapshotTime");H8i||(H8i=!0,vEb());i2b();kWr();_.pc("DEFERRED_DETACH",
_.J("kevlar_tuner_should_defer_detach"));_.pc("REUSE_COMPONENTS",!0);_.pc("STAMPER_STABLE_LIST",!0);_.pc("SCHEDULED_LAZY_LIST",!0);_.pc("openPopupConfig",xvp);_.pc("useClickHandler",!0);_.J("kevlar_shell_cleanup")&&_.nN.addLowPriorityJob(YjA.bind(this,_.Mr.caches));_.P6("IS_SHELL_LOAD")&&_.nQ({shellStartupDurationMs:Math.round((0,_.ta)()-_.Fl())});HTA(this.networkStatusManager);_.J("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",bVx(LTh)),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!",
bVx(xGG)),console.log("%cVisit http://go/join-youtube-web to apply today.",bVx(Blr)));_.ayA(f.resolve(_.lu),1E3)};
_.R.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var f=ujt();f&&!_.J("external_fullscreen_killswitch")&&document.addEventListener(f,this.setFullscreen.bind(this));(f=window.matchMedia("(prefers-color-scheme: dark)"))&&f.addEventListener&&f.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.R.attached=function(){var f=this;_.PL().processSignal("ci");_.J("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.eyR?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.hQ(_.XDr(),"SUCCESS");this.updateIconSet();_.VZ(this.guideInnerContent,!1);_.LM().initVisibilityObserver();this.guideService.guideElement=this.guide;var H=document.createElement("ytd-miniplayer"),v=_.mF(this.hostElement).querySelector("#content");
_.mF(this.hostElement).insertBefore(H,v);_.PL().processSignal("ma");_.t8().resolve(_.o0).init(H);_.P6("IS_SHELL_LOAD")&&(v=document.createElement("ytd-network-status-banner"),_.mF(this.hostElement).insertBefore(v,H));_.J("kevlar_right_click_on_lockups")&&_.aq._onCaptureClick&&document.addEventListener("contextmenu",_.aq._onCaptureClick.bind(_.aq),!0);var t=function(){var M=_.vp("yt-page-navigation-progress");_.mF(f.hostElement).appendChild(M)};
setTimeout(function(){_.PL().parkOrScheduleJob(t,0,"eocs",16)},0);
_.J("service_worker_push_enabled")&&_.Lb(_.nN,Qrb);_.b$(_.A7.getInstance(),this.dynamicActionMap,this.hostElement);_.YE(this.hostElement,"ytd-app-attached");_.PL().processSignal("aa");fCx(this.hostElement);_.qJ("gapi.load",_.LAR);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.Lb(_.nN,
function(){var M=document.createElement("ytd-video-preview");_.mF(_.mF(f.hostElement).querySelector("#video-preview")).appendChild(M)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.Lb(_.nN,function(){wn5();f.registerWithViewTransitionManager()});
if(_.nG()&&this.isAppDarkTheme()!==_.Dn())this.onDarkModeToggledAction();else H=_.o9()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==H&&(_.J("enable_dark_theme_only_on_shorts")?_.iY(_.J("enable_dark_theme_only_on_shorts_control")?window.location.href:_.iZ(window.location.href,{theme:"dark"})):_.pb(new _.e$("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(rzx=new Faw(this.hostElement)),Zit=new sRp(this.hostElement),jRA=new dG0(this.hostElement),k6x=new i5b(this.hostElement)};
_.R.getThemeSettingsToLog=function(){var f=_.o9()==="USER_INTERFACE_THEME_DARK";f=_.nG()?_.Dn()?"os-dark":"os-light":f?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:f,cookiesEnabled:_.J8()}};
_.R.detached=function(){_.yZ(this.guideInnerContent);_.nN.cancelJob(ey);ey=0;_.nN.cancelJob(xh);xh=0;_.N93(qex);qex.length=0;kPi=_.jtr=null;_.LM().dispose();_.J("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.i$(_.A7.getInstance(),rzx.playlistHandlerActionMap,rzx.JSC$32010_clientRoot);_.i$(_.A7.getInstance(),Zit.downloadManagerActionMap,Zit.JSC$32302_clientRoot);_.i$(_.A7.getInstance(),jRA.feedbackCollectorActionMap,jRA.JSC$32297_clientRoot);
for(var f=_.V(k6x.eventListeners),H=f.next();!H.done;H=f.next()){var v=_.V(H.value);H=v.next().value;v=v.next().value;v=_.V(v);for(var t=v.next();!t.done;t=v.next()){var M=_.V(t.value);t=M.next().value;M=M.next().value;H.removeEventListener(t,M)}}_.i$(_.A7.getInstance(),k6x.autonavPauseActionMap,k6x.JSC$19952_clientRoot)};
_.R.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.Uj().getFlag(186)};
_.R.computeIsInlinePreviewEnabled=function(f,H,v){return!v&&_.nZb({miniplayerIsActive:f,miniplayerPlaybackState:H})};
_.R.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.yq({type:"SET_FROSTED_GLASS_MODE",payload:!_.J("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"}))};
_.R.computeIsFrostedGlassDisabled=function(f,H,v,t){return f||H||v||t&&_.J("web_frosted_glass_disable_watch")};
_.R.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.J("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.R.computeIsHomePage=function(f,H){if(!f||H==null||!H.endpoint)return!1;var v;return((v=_.U(H.endpoint,_.ec))==null?void 0:v.browseId)==="FEwhat_to_watch"};
_.R.updateIsChannelOrPlaylistPage=function(){if(_.J("web_frosted_glass")){var f,H,v=(H=(f=_.t8().resolve(_.vh(_.fT)))==null?void 0:f.getCurrentPage())==null?void 0:H.pageSubtype;this.isChannelOrPlaylistPage=v?["channel","channels","playlist"].includes(v):!1}};
_.R.scheduleFrostedGlassInitialization=function(){var f=this;_.J("web_frosted_glass")&&_.PL().parkOrScheduleJob(function(){f.isFrostedGlassInitialized=!0},0,_.EX(["eocs",
"cr"]),300)};
_.R.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.gMC(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.yq({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.yq({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.R.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(X1x(!0))};
_.R.onYtSignalActionRequestPersistentStorage=function(){if(!_.J("request_persistent_storage_killswitch")){var f=_.t8().resolve(_.DxW);f.cachedPersistStatePromise||(f.cachedPersistStatePromise=RHW())}};
_.R.handleYtChannelCreationFormEndpoints=function(f){f&&this.ytComponentBehavior.resolveCommand(f)};
_.R.handleShowEngagementPanelEndpoint=function(f){f&&this.ytComponentBehavior.resolveCommand(f)};
_.R.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(X1x(!1))};
_.R.initIconDefs=function(f,H){var v=document.createElement("iron-iconset-svg");v.name=f;f=document.createElementNS("http://www.w3.org/2000/svg","svg");v.appendChild(f);f.appendChild(H);document.body.appendChild(v);return v};
_.R.onWindowResized=function(){_.mb(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var f=_.Lev.getInstance();f.documentWidth_=document.body.clientWidth;q7h(f)};
_.R.onWindowScrolled=function(){var f=_.t8().resolve(_.fT).getCurrentPage();if(f!=null&&f.getScrollTop){var H=this.ytdReduxBehavior,v=H.dispatch;f=f.getScrollTop()<=0;v.call(H,_.yq({type:"SET_SCROLL_AT_TOP",payload:f}))}};
_.R.guideIsVisibleButNotPersistentSelectorChanged=function(){var f=_.t8().resolve(_.fT).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=f.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"),
f.setScrollTop(this.guideScrollTop));_.$E(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.R.getCurrentPageScrollableElementType=function(){var f=_.t8().resolve(_.fT).getCurrentPage();if(f&&f.getPageScrollingElement())return f.getPageScrollingElement().nodeName};
_.R.observeGuideVisibility=function(){var f=_.Lev.getInstance(),H=this.miniGuideVisible;f.guidePersistentAndVisible_=this.guidePersistentAndVisible;f.miniGuideVisible_=H;q7h(f)};
_.R.handleEduDismissAction=function(f){f&&f.eduDismissAction&&(_.mb(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.ZkH.getInstance(),_.fM.set(f.eduDismissAction.key+"-dismissed",!0))};
_.R.handleEduImpressionAction=function(f){if(f&&f.eduImpressionAction){var H=_.ZkH.getInstance();f=f.eduImpressionAction.key;H.JSC$12998_eduDisplayedThisLoad_[_.s$g[f].setKey||f]=!0;_.fM.set(f+"-impression",parseInt(_.fM.get(f+"-impression")||0,10)+1)}};
_.R.onYtSignalActionConfirmMentionsEdu=function(){_.mb(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.tp.getInstance();_.vH.set("edu-dismissed",!0)};
_.R.onYtSignalActionRecordMentionsEduImpression=function(){_.tp.getInstance();var f=_.vH.set,H=parseInt(_.vH.get("edu-impressions"),10);f.call(_.vH,"edu-impressions",(isFinite(H)?H:0)+1)};
_.R.onYtPageManagerAttached=function(f){var H;((H=_.HB(f))==null?void 0:H.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.R.onInvokeInstrumentManagerAction=function(f,H){Jj5(H,f)};
_.R.updateIconSet=function(){var f=this.hostElement.querySelector("#masthead");if(f){var H=_.$V(f),v=H.querySelector("g#yt-logo-updated");v&&(f=document.createElementNS("http://www.w3.org/2000/svg","defs"),f.appendChild(v.cloneNode(!0)),(H=H.querySelector("g#yt-logo-red-updated"))&&f.appendChild(H.cloneNode(!0)),this.initIconDefs("yt-logos-ext",f))}};
_.R.updateMastheadData=function(){var f=this,H,v,t,M,h;return _.Y(function(y){if(y.nextAddress==1){H=f.data;v=f.hostElement.querySelector("#masthead");if(!v)return y.return();_.qV(f,function(){v.data=f.topbarData});
if(!f.get("response.topbar",H)||f.get("response.topbar.responseContext.maxAgeSeconds",H)===0)return y.jumpTo(0);if(t=_.t8().resolve(_.v$))return y.yield(t(),6);M=_.t8().resolve(_.$8);return y.yield(M.put("service:topbar:fallback",new _.W5({innertubeResponse:f.get("response.topbar",H)})),0)}return(h=y.yieldResult)?y.yield(h.put("service:topbar:fallback",new _.W5({innertubeResponse:f.get("response.topbar",H)})),0):y.jumpTo(0)})};
_.R.computeTopbarData=function(f){if(!f)return null;var H;return this.isShortsPage&&this.topbarData&&!_.U((H=f.response)==null?void 0:H.topbar,kFx)?this.topbarData:f.response&&"topbar"in f.response?_.U(f.response.topbar,kFx)||null:null};
_.R.onSetTheaterModeEnabled=function(f,H){this.isTheaterModeSession=H.enabled;this.setTheaterModeStyles(H.enabled)};
_.R.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.R.onDarkModeToggledAction=function(){var f=_.gH(window.location.href);if(!_.FnR(f)){(f=!!_.bZ(window.location.href).themeRefresh)&&_.pb(new _.e$("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!f){vEb();f={themeRefresh:1};var H=_.t8().resolve(_.fT);if(H.isOnWatch()){var v,t;H=((v=H.getPlayerFromWatch())==null?void 0:(t=v.getPlayer())==null?void 0:t.getCurrentTime())||0;H>=1&&(f.time_continue=Math.floor(H))}_.J8()||_.o9()!=="USER_INTERFACE_THEME_DARK"||(f.theme="dark");_.iY(_.iZ(window.location.href,
f))}_.J("web_appshell_refresh_trigger")&&_.Mr.caches&&this.refreshAppShellResponse();v=_.Ag(window.location.href);_.It(_.t8().resolve(_.SU),_.tX(v,"theme"))}};
_.R.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.R.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.R.onPlayerFullscreen=function(f){_.M6();this.playerFullscreen=f};
_.R.setRestrictedMode=function(f){var H=_.Uj();_.eG(0,58,f);H.save();_.t8().resolve(_.eD).reload()};
_.R.onPageChanged=function(f){f.detail.newPageType==="ytd-watch-flexy"||f.detail.newPageType==="ytd-watch-fixie"||f.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.JQ("WEB_PAGE_TYPE_WATCH")):f.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.JQ("WEB_PAGE_TYPE_SHORTS")):f.detail.newPageType==="ytd-browse"&&f.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.JQ("WEB_PAGE_TYPE_MINI_APP")):_.J("web_frosted_glass")&&f.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.JQ("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.JQ("WEB_PAGE_TYPE_UNKNOWN"));f.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.R.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.R.onGuideToggleTap=function(){_.YE(this.hostElement,"yt-guide-toggle")};
_.R.onGuideToggleHover=function(){_.YE(this.hostElement,"yt-guide-hover")};
_.R.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.R.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.R.setMastheadTheme=function(){var f=_.$V(this.hostElement).querySelector("#masthead");f&&(f.dark=f.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),f.isDarkThemeForced=!1)};
_.R.onRequestPanelModeChange=function(f,H){this.hideHeaderShadow=H.mode!=="seamed"};
_.R.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.R.onDrawerIronSelect=function(f){_.HB(f).id==="guide"&&this.processDrawerIronSelect()};
_.R.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var f="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(f="opened"));_.YE(this.hostElement,"yt-autonav-pause-guide-"+f)};
_.R.onAddElementToApp=function(f){_.mF(this.hostElement).appendChild(f.detail)};
_.R.onThrottledScroll=function(){var f=_.t8().resolve(_.fT).getCurrentPage();f&&(this.scrollAtTop=f.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.R.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.R.setFullscreen=function(){if(_.J("external_fullscreen")||!this.isWatchPage){var f=_.J("kevlar_fullerscreen_root_only_killswitch")?!!_.M6():!!_.M6()&&_.M6()===document.documentElement;f=(this.isWatchPage||_.J("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(f||this.isFullWindowSession);this.fullscreen!==f&&((this.fullscreen=f)&&_.$E(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.vS().dispatch(_.Mla(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.mb(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.R.setFullscreenLoggingForShorts=function(f){var H,v,t;return _.Y(function(M){if(M.nextAddress==1)return M.yield((H=_.vx())==null?void 0:H.getPlayerPromise(),2);v=M.yieldResult;(t=v)==null||t.setAppFullscreen(f);_.Bj(M)})};
_.R.updateMastheadCssHeight=function(){var f=this.mastheadHeight;this.fullscreen&&(f=0);_.Sr(this.hostElement,{"--ytd-masthead-height":f+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.R.updateNetworkStatusBannerDisplayStatus=function(){var f="unset";this.fullscreen&&(f="none");_.Sr(this.hostElement,{"--ytd-network-status-banner-display":f})};
_.R.updateNetworkStatusBannerCssHeight=function(){var f="unset";this.fullscreen&&(f="0px");_.Sr(this.hostElement,{"--ytd-network-status-banner-max-height":f})};
_.R.updateScrollAndMasthead=function(f,H,v,t){this.iMaxTheaterMode||(t=!1);var M=_.t8().resolve(_.fT).getCurrentPage();f||H||t?(document.body.classList.add("no-scroll"),M.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.jr(this,this.onScroll)),M.setScrollTop(0),_.Sr(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.P$()+"px"})):v?_.YE(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.YE(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
M.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.jr(this,this.onScroll)));this.mastheadHidden=f||H||v;this.updateMastheadCssHeight();_.J("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.R.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.R.onYtNavigateAction=function(f){f=this.get("navigateAction.endpoint",f);_.YE(this.hostElement,"yt-navigate",{endpoint:f})};
_.R.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var f=document.createElement("yt-create-family-dialog");_.mF(this.hostElement).appendChild(f);this.hasCreateFamilyDialog=!0}};
_.R.onSetPushNotificationsEnabledCommand=function(f){var H=this,v=_.U(f,iMt);v&&typeof v.enabled==="boolean"&&(Notification.permission!=="granted"?Kbx().then(function(){Notification.permission==="granted"?(Sjp(!v.enabled).then(sr5),v.successAction&&_.WV(H.hostElement,[v.successAction])):v.failureAction&&_.WV(H.hostElement,[v.failureAction])}):(Sjp(!v.enabled).then(sr5),v.successAction&&_.WV(this.hostElement,[v.successAction])))};
_.R.onYtSignalActionEnableChromeNotifications=function(){D6t(!0)};
_.R.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.U(this.topbarData.hotkeyDialog,qzb)}}})};
_.R.onYtSignalActionShowKeyboardShortcutDialog=function(){_.mb(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.R.onYtEndpointChangeHandler=function(f,H){var v=_.iw(_.Uz);v.pendingPrefetchJob_&&(H=!(!H||H.autonav!="1"),v.pendingPrefetchJob_.resolve(f&&_.stH(f)?_.ZXe(f,H):""),v.pendingPrefetchJob_=null);_.mb(this.hostElement,"yt-pause-active-page-context");_.mb(this.hostElement,"ytd-log-youthere-nav");_.mb(this.hostElement,"yt-prepare-page-dispose")};
_.R.handleCommandWithCommandHandler=function(f,H){_.jW.instance.resolveCommand(f,{form:{element:H}})};
_.R.onYtTimedCommand=function(f){var H=this;f=_.U(f,u9p);var v=f.command;v&&_.Vk(_.nN,function(){var t=_.U(v,_.PPh);t?(_.jW.instance.resolveCommand(v),H.maybeLogGetAnswerRequestTick(t)):_.Oj(H.hostElement,[v],H.hostElement)},f.timeoutMs||0)};
_.R.maybeLogGetAnswerRequestTick=function(f){f&&f.isFirstRequest&&(_.QZ("search_overview_answer"),_.u0("so_rq",void 0,"search_overview_answer"))};
_.R.onYtSignalActionSkipNavigation=function(){var f=_.t8().resolve(_.fT).getCurrentPage();_.Tj(f)};
_.R.onYtSignalActionCopyDebugData=function(){XVr()};
_.R.handleEntityUpdateCommand=function(f){_.lA(_.U(f,_.u4H).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.R.logFlowLoggingEventCommand=function(f){if(f=_.U(f,_.YOH))if(f.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var H=f.flowEventNamespace,v=f.flowEventType,t=f.flowType;t&&H&&v&&_.Wn5(_.jc(H,v,f.flowEventMetadata),t)}else{H=_.Zn();v=f.flowEventNamespace;t=f.flowEventType;var M=f.flowType;M&&v&&t&&_.s6(H,_.jc(v,t,f.flowEventMetadata),M,f.flowNonce)}};
_.R.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.R.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.R.onTouchStart=function(){var f=_.xi();_.uy()&&_.NY(f.JSC$13225_screenManager,{visualElement:f.ve})};
_.R.handleSelectLanguageCommand=function(f){if(f=_.U(f,XHx).hl){var H=_.Uj();H.set("hl",f);H.save();_.t8().resolve(_.eD).reload()}};
_.R.handleConfirmDialogEndpoint=function(f){(f=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(f))&&this.ytOpenPopupBehavior.openPopup(f)};
_.R.handleOpenPopupNavigationEndpoints=function(f,H){_.J("web_button_rework")&&(f=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(f))&&this.ytOpenPopupBehavior.openPopup(f,H)};
_.R.handleSaveCommandToSessionStorage=function(f){if(f=_.U(f,_.UtZ)){var H=f.key;H&&f.command&&window.sessionStorage.setItem(H,JSON.stringify(f.command))}};
_.R.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(f){f&&f.active&&f.active.postMessage({type:"refresh_shell"})}).catch(function(f){f.name!=="SecurityError"&&_.oO(f)})};
_.R.onDeviceThemeChanged=function(){var f=_.Dn();_.eG(_.Uj(),185,f);_.Uj().save()};
_.R.handleYtRegisterPromoCommand=function(f){if(_.U(f,bMi)){var H=_.t8().resolve(_.fT).getCurrentPage()||this.hostElement;hO0().registerPromoCommand(_.U(f,bMi),H)}};
_.R.onYtNavigateHomeAction=function(){if(!_.J("kevlar_miniplayer_navigate_home_from_app_killswitch")){var f,H,v,t,M=(t=(f=this.topbarData)==null?void 0:(H=f.logo)==null?void 0:(v=H.topbarLogoRenderer)==null?void 0:v.endpoint)!=null?t:_.j0;this.ytComponentBehavior.resolveCommand(M)}};
_.R.onYtLocationCollectionCommand=function(f){kI0(_.U(f,V3G))};
_.R.onYtGetLocationCommand=function(f){fI0(_.U(f,R5G),this)};
_.R.updateRenderGuideFromBinding=function(f){this.renderGuide=f.detail.value};
_.R.updateGuidePersistentAndVisibleFromBinding=function(f){this.guidePersistentAndVisible=f.detail.value};
_.R.updateMiniGuideVisibleFromBinding=function(f){this.miniGuideVisible=f.detail.value};
_.R.onThemeSelected=function(f,H){var v=_.Uj(),t=f||H?f:_.Dn(),M=(t&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!t&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.FnR(_.gH(window.location.href));_.eG(0,165,f);_.eG(0,174,H);v.save();M&&_.mb(this.hostElement,"yt-dark-mode-toggled-action",[t]);_.mb(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.R.getCurrentTheme=function(){return _.nG()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.o9()};
_.R.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.R.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.R.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.R.handleShowConsentPrimitive=function(f){var H=this,v,t;return _.Y(function(M){if(M.nextAddress==1){try{v=(t=_.vx())==null?void 0:t.getPlayerPromise()}catch(h){}return M.yield(g$W(f,v),2)}_.mb(H.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.Bj(M)})};
_.R.handleSelectActiveIdentityEndpointInternal=function(f){_.At();f=_.U(f,_.vPM);if(f!=null&&f.supportedTokens){f=_.V(f.supportedTokens);for(var H=f.next();!H.done;H=f.next())H=H.value,H.accountSigninToken&&_.iY(H.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.R.handleUpdatePermissionRoleCommand=function(f){if(f=_.U(f,_.tAn)){var H;this.hasDelegation=!((H=_.U(f.renderer,_.vWh))==null||!H.status)}};
_.R.registerWithViewTransitionManager=function(){var f=_.t8().resolve(_.vh(_.jX));if(f){var H,v=(H=this.guide)==null?void 0:H.querySelector("#scrim"),t;H=(t=this.guide)==null?void 0:t.querySelector("#contentContainer");v&&H&&f.isAnyTransitionEnabled&&(t={},f.viewTransitionCoordinator.registerElement(v,(t.slide="app-drawer-scrim-page-transition",t["lockup-to-watch"]="app-drawer-scrim-page-transition",t["learning-journey"]="app-drawer-scrim-page-transition",t)),v={},f.viewTransitionCoordinator.registerElement(H,
(v.slide="app-drawer-container-page-transition",v["lockup-to-watch"]="app-drawer-container-page-transition",v["learning-journey"]="app-drawer-container-page-transition",v)))}};
_.H7.Object.defineProperties(X0.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.J("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.H7.Object.defineProperties(X0,{template:{configurable:!0,enumerable:!0,get:function(){if($Gr===void 0){var f=document.createElement("template");_.x(f,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
f.content.insertBefore(_.b().content.cloneNode(!0),f.content.firstChild);$Gr=f}f=$Gr;return f}}});
X0.prototype.onOpenHotkeyDialog=X0.prototype.onOpenHotkeyDialog;X0.prototype.setFullscreen=X0.prototype.setFullscreen;X0.prototype.onAddElementToApp=X0.prototype.onAddElementToApp;X0.prototype.onDrawerIronSelect=X0.prototype.onDrawerIronSelect;X0.prototype.onGuideOpenButtonHover=X0.prototype.onGuideOpenButtonHover;X0.prototype.onRequestPanelModeChange=X0.prototype.onRequestPanelModeChange;X0.prototype.onPageDataUpdated=X0.prototype.onPageDataUpdated;X0.prototype.onPageChanged=X0.prototype.onPageChanged;
X0.prototype.onSetTheaterModeEnabled=X0.prototype.onSetTheaterModeEnabled;X0.prototype.updateMastheadData=X0.prototype.updateMastheadData;X0.prototype.onYtPageManagerAttached=X0.prototype.onYtPageManagerAttached;X0.prototype.observeGuideVisibility=X0.prototype.observeGuideVisibility;X0.prototype.guideIsVisibleButNotPersistentSelectorChanged=X0.prototype.guideIsVisibleButNotPersistentSelectorChanged;X0.prototype.isInlinePreviewEnabledChanged=X0.prototype.isInlinePreviewEnabledChanged;
X0.prototype.isWatchPageChanged=X0.prototype.isWatchPageChanged;X0.prototype.dispatchFrostedGlassMode=X0.prototype.dispatchFrostedGlassMode;_.E([_.B(_.um),_.N("design:type",Object)],X0.prototype,"ytdReduxBehavior",void 0);_.E([_.B(_.lv.YtEventForwardingBehavior),_.N("design:type",Object)],X0.prototype,"ytEventForwardingBehavior",void 0);_.E([_.B(_.IM.YtOpenPopupBehavior),_.N("design:type",Object)],X0.prototype,"ytOpenPopupBehavior",void 0);
_.E([_.B(_.dt.YtActionHandlerBehavior),_.N("design:type",Object)],X0.prototype,"ytActionHandlerBehavior",void 0);_.E([_.B({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.A7.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.J("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var f;((f=this.actionRouterNode.hostElement)!=null?f:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var f;((f=this.actionRouterNode.hostElement)!=null?f:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(f){this.actionRouter_.handleAction(f.detail)}}),
_.N("design:type",Object)],X0.prototype,"ytActionRouterBehavior",void 0);_.E([_.B(Wax.YtdAppBehavior),_.N("design:type",Object)],X0.prototype,"ytdAppBehavior",void 0);_.E([_.B(_.S3.YtEndpointBehavior),_.N("design:type",Object)],X0.prototype,"ytEndpointBehavior",void 0);_.E([_.B(Slw.YtEndpointHandlerWithYpcBehavior),_.N("design:type",Object)],X0.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.E([_.B(WTb.YtLogYpcFlowCommandsBehavior),_.N("design:type",Object)],X0.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.E([_.B(_.k.YtRendererBehavior),_.N("design:type",Object)],X0.prototype,"ytRendererBehavior",void 0);_.E([_.B(_.CM.YtComponentBehavior),_.N("design:type",Object)],X0.prototype,"ytComponentBehavior",void 0);_.E([_.F({selector:_.Z4t}),_.N("design:type",Object)],X0.prototype,"tabGesturesIsActive",void 0);_.E([_.F(),_.N("design:type",Boolean)],X0.prototype,"renderGuide",void 0);
_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],X0.prototype,"guidePersistentAndVisible",void 0);_.E([_.F({selector:_.shA}),_.N("design:type",Boolean)],X0.prototype,"guideIsVisibleButNotPersistent",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],X0.prototype,"standalone",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],X0.prototype,"miniGuideVisible",void 0);
_.E([_.F({selector:_.wLE}),_.N("design:type",Number)],X0.prototype,"miniplayerPlaybackState",void 0);_.E([_.F({selector:_.a5,reflectToAttribute:!0}),_.N("design:type",Boolean)],X0.prototype,"miniplayerIsActive",void 0);_.E([_.F({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.N("design:type",Boolean)],X0.prototype,"isInlinePreviewEnabled",void 0);_.E([_.F(),_.N("design:type",Boolean)],X0.prototype,"isInlinePreviewDisabled",void 0);
_.E([_.F({reflectToAttribute:!0,value:function(){return _.P6("START_IN_FULL_WINDOW_MODE")}}),
_.N("design:type",Boolean)],X0.prototype,"mastheadHidden",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],X0.prototype,"playerFullscreen",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],X0.prototype,"deprecateFullerscreenUi",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],X0.prototype,"fullscreen",void 0);_.E([_.F({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],X0.prototype,"hideHeaderShadow",void 0);
_.E([_.F({value:{GUIDE_ALT_LABEL:_.ZC("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.N("design:type",Object)],X0.prototype,"menuStrings",void 0);_.E([_.F({computed:"computeTopbarData(data)"}),_.N("design:type",Object)],X0.prototype,"topbarData",void 0);_.E([_.F({selector:_.bO3}),_.N("design:type",Boolean)],X0.prototype,"isWatchPage",void 0);_.E([_.F({selector:_.iO_,reflectToAttribute:!0}),_.N("design:type",Boolean)],X0.prototype,"isShortsPage",void 0);_.E([_.F({selector:function(f){return _.Pa(f)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.N("design:type",Boolean)],X0.prototype,"isMiniAppPage",void 0);_.E([_.F({selector:function(f){return _.Pa(f)==="WEB_PAGE_TYPE_BROWSE"}}),
_.N("design:type",Boolean)],X0.prototype,"isBrowsePage",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Boolean)],X0.prototype,"scrolling",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],X0.prototype,"hasDelegation",void 0);_.E([_.F({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],X0.prototype,"guideScrolledByTouch",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],X0.prototype,"darkerDarkTheme",void 0);
_.E([_.F(),_.N("design:type",Object)],X0.prototype,"isFrostedGlassInitialized",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],X0.prototype,"frostedGlassExp",void 0);_.E([_.F({selector:function(f){return f.ui.chipBarIsSticky}}),
_.N("design:type",Boolean)],X0.prototype,"chipBarIsSticky",void 0);_.E([_.F({computed:"computeIsHomePage(isBrowsePage, data)"}),_.N("design:type",Boolean)],X0.prototype,"isHomePage",void 0);_.E([_.F({reflectToAttribute:!0}),_.N("design:type",Object)],X0.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.E([_.F(),_.N("design:type",Object)],X0.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.E([_.yx("guide"),_.N("design:type",Object)],X0.prototype,"guide",void 0);
_.E([_.yx("guide-service"),_.N("design:type",qit)],X0.prototype,"guideService",void 0);_.E([_.yx("guide-inner-content"),_.N("design:type",HTMLDivElement)],X0.prototype,"guideInnerContent",void 0);_.E([_.F({selector:_.qI5}),_.N("design:type",String)],X0.prototype,"frostedGlassMode",void 0);
_.E([_.Zw("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],X0.prototype,"dispatchFrostedGlassMode",null);_.E([_.F({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.N("design:type",Object)],X0.prototype,"isFrostedGlassDisabled",void 0);
_.E([_.Zw("isWatchPage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],X0.prototype,"isWatchPageChanged",null);_.E([_.z("isHomePage","chipBarIsSticky"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],X0.prototype,"applyFrostedGlassToChipBar",null);_.E([_.F(),_.N("design:type",Object)],X0.prototype,"isChannelOrPlaylistPage",void 0);
_.E([_.xV("isInlinePreviewEnabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],X0.prototype,"isInlinePreviewEnabledChanged",null);_.E([_.Zw("guideIsVisibleButNotPersistent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],X0.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.E([_.Zw("guidePersistentAndVisible","miniGuideVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],X0.prototype,"observeGuideVisibility",null);_.E([_.sE("attached"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],X0.prototype,"onYtPageManagerAttached",null);_.E([_.Zw("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],X0.prototype,"updateMastheadData",null);
_.E([_.sE("yt-set-theater-mode-enabled"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],X0.prototype,"onSetTheaterModeEnabled",null);_.E([_.sE("yt-page-type-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],X0.prototype,"onPageChanged",null);_.E([_.sE("yt-page-data-updated"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],X0.prototype,"onPageDataUpdated",null);
_.E([_.sE("yt-request-panel-mode-change"),_.N("design:type",Function),_.N("design:paramtypes",[Event,Object]),_.N("design:returntype")],X0.prototype,"onRequestPanelModeChange",null);_.E([_.sE("yt-guide-hover"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],X0.prototype,"onGuideOpenButtonHover",null);_.E([_.sE("app-drawer-transitioned"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],X0.prototype,"onDrawerIronSelect",null);
_.E([_.sE("yt-add-element-to-app"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],X0.prototype,"onAddElementToApp",null);_.E([_.sE("yt-set-fullerscreen-styles"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],X0.prototype,"setFullscreen",null);_.E([_.sE("yt-open-hotkey-dialog"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],X0.prototype,"onOpenHotkeyDialog",null);
_.E([_.u({is:"ytd-app"})],X0);_.PL().processSignal("eor");
_.uS();
}catch(e){_._DumpException(e)}
try{
_.QX("NSzT5");
var PK5,CKp;_.gn=function(f){var H=document.createElement("link");_.V1(H,f,"stylesheet");document.head.appendChild(H)};
_.Ix=function(f,H){var v,t;return _.Y(function(M){v=document.createElement("div");v.id=f.id;f.className&&(v.className=f.className);t=f.element;if(!t)throw Error("Vj");if(f.location==="prepend")t.prepend(v);else if(f.location==="appendChild")t.appendChild(v);else if(f.location==="after")t.after(v);else throw Error("Wj");return M.return(_.F3(v,H,"ah"))})};
_.Sy=function(f){var H;return _.Y(function(v){(H=document.getElementById(f))&&H.remove();_.Bj(v)})};
_.dn=function(f,H){var v=document.querySelector(f);v?H(v):setTimeout(function(){_.dn(f,H)},1E3)};
_.G5b=function(f,H,v){var t;_.Y(function(M){if(M.nextAddress==1)return(t=document.getElementById(f))?M.jumpTo(2):M.yield(PK5(f,H,v),2);if(t=document.getElementById(f))t.style.display="block";_.Bj(M)})};
PK5=function(f,H,v){return _.Y(function(t){return t.return(new Promise(function(M){_.dn("div #panels",function(h){_.Ix({element:h,location:"appendChild",id:f,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+v},H);M()})}))})};
CKp=function(){var f=document.querySelector("ytd-watch-metadata");f&&f.querySelectorAll("yt-button-view-model").forEach(function(H){H.querySelector('button[aria-label="Ask"]')&&H.remove()})};
_.Xbb=function(){_.Sy("creator_chatbots-entry-point");_.Sy("creator_chatbots-panel");_.gn(E7F);_.dn("ytd-watch-metadata #top-level-buttons-computed",function(f){document.getElementById("creator_chatbots-entry-point")||(_.Ix({element:f,location:"appendChild",id:"creator_chatbots-entry-point",className:"ytprotoCreatorChatbotsExtensionExtensionMountPoint"},function(){return _.O(NT0,null)}),_.G5b("creator_chatbots-panel",function(){return _.O(cMr,null)},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint"));
CKp()})};_.jy=_.a(function(f){var H=f.text;var v=f.onClick;var t=f.color;var M=f.backgroundColor;var h=f.buttonSize;var y=f.disabled;var m=f.iconName;var W=f.iconSize;f=f.className;var I=_.d6(function(d){v(d)}),S={};
return _.O("button",{class:_.S2("ytpStandardButtonsHost",(S.ytpStandardButtonsLarge=function(){return(h==null?void 0:h())==="large"},S),f),
"on:click":I,style:_.ZE({color:t,"background-color":M}),disabled:y}," ",_.O(_.g,{cond:m,then:function(){return _.O(_.JE,{className:"ytpStandardButtonsIconContainer",icon:m,size:W})}}),H)},"$g");_.AMt=_.a(function(f){var H;return _.O("div",{class:_.S2("ytprototypesEngagementPanelComponentHost",f.className),id:f.id},_.O("div",{class:_.S2("ytprototypesEngagementPanelComponentEngagementPanelHeader",f.headerClassName)},_.O("div",null,f.header()),_.O("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.O("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(H=f.HeaderButton)==null?void 0:H.call(f)),_.O(_.jy,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",
onClick:function(){var v=f.id();if(v=document.getElementById(v))v.style.display="none"}}))),_.O("div",{class:_.S2("ytprototypesEngagementPanelComponentEngagementPanelContent",f.contentClassName),
style:function(){var v;return"height: "+(((v=f.height)==null?void 0:v.call(f))||"800px")+";"}},f.content()))},"bh");var b1h=_.EH(["https://portraits.google.com"]),i1W=_.EH(["https://portraits.google.com/kimscott_vidcontexttests"]),k5A=_.EH(["https://labs-characters.teams.x20web.corp.google.com"]),TTi=_.gr(b1h),wbW=_.gr(i1W),qo5=_.gr(k5A),cMr=_.a(function(){var f=_.J("enable_creator_chatbots_extension_dev_server"),H=document.createElement("iframe"),v=f?qo5:wbW;_.fcg(H,1,v);H.className="ytprotoCreatorChatbotsAppLabsIframe";H.allow="microphone; clipboard-read; clipboard-write self "+v;var t=function(){var h;return _.Y(function(y){if(y.nextAddress==
1)return y.yield(_.t8().resolve(_.V4),2);(h=y.yieldResult)&&h.pauseVideo();_.Bj(y)})},M=function(){var h,y,m;
return _.Y(function(W){return W.nextAddress==1?W.yield(_.t8().resolve(_.V4),2):(h=W.yieldResult)?W.return({video_id:(m=(y=h.getVideoData())==null?void 0:y.video_id)!=null?m:"",timestamp_sec:h.getCurrentTime().toString()}):W.return({})})};
window.addEventListener("message",function(h){var y,m,W,I,S,d;return _.Y(function(Z){if(Z.nextAddress==1){y=f?qo5.toString():TTi.toString();if(h.origin!==y)return console.warn("Received message from untrusted origin:",h.origin),Z.return();m=h.data;if(typeof m!=="object"||m===null||!m.action)return Z.return();if(m.action==="pause")return Z.yield(t(),0);if(m.action!=="getYouTubeContext"||!h.source)return Z.jumpTo(0);W=h.source;I=W.postMessage;S=JSON;d=S.stringify;return Z.yield(M(),7)}I.call(W,d.call(S,
{youTubeContext:Z.yieldResult}),{targetOrigin:h.origin});return Z.jumpTo(0)})});
_.bT({destination:window,iframe:H,origin:v.toString(),channelName:"xdc1",onMessage:function(h){var y,m;return _.Y(function(W){if(W.nextAddress==1){if(h.data.action==="pause")return W.yield(t(),0);if(h.data.action!=="getYouTubeContext")return W.jumpTo(0);y=h;m=y.reply;return W.yield(M(),5)}m.call(y,{youTubeContext:W.yieldResult});return W.jumpTo(0)})}});
return _.O("div",{class:"ytprotoCreatorChatbotsAppHost",style:"height: var(--ytd-watch-flexy-panel-max-height);"},_.O(_.AMt,{id:"creator_chatbots-panel",height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",header:function(){return _.O("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.O("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},
"Talk to the Creator"),_.O(_.u5,{data:{text:"AI experiment",type:0}}))},
HeaderButton:function(){return _.O(_.jy,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",onClick:function(){_.we(window,_.Pv(v.toString()),"_blank")}})},
content:function(){return H}}))},"ch");var fFx=_.EH(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]),E7F=_.gr(fFx),NT0=_.a(function(){var f=function(){_.G5b("creator_chatbots-panel",function(){return _.O(cMr,null)},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")};
return _.O("div",{class:"ytd-menu-renderer"},_.O(_.$p,{data:function(){return{style:"mono",type:"tonal",state:"active",iconPosition:"leading",size:"M",buttonText:"Chat now",onTap:f}},
icon:function(){return _.O(_.JE,{icon:"SPARK"})}}))},"dh");
_.uS();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
